Remove with Text

Remove GetEngineeringSpcReview
Better error message
EnforceCodeStyleInBuild
NginxFileSystem
Remove Reactors and Working Directory
AppSettings
Delete self contained Thunder Tests
Back to .net8.0
api/v4/InfinityQS
ApiExplorerSettings
Wafer Counter
This commit is contained in:
2024-04-15 13:13:55 -07:00
parent 7e16ee7f98
commit 5c9f0d1aff
974 changed files with 205399 additions and 1385 deletions

View File

@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=colorNames.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"colorNames.js","sourceRoot":"","sources":["../../src/global/colorNames.ts"],"names":[],"mappings":"","sourcesContent":["export type mainColors = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';"]}

View File

@ -0,0 +1,23 @@
export function animationTo(element, keyframes, options) {
const animated = element.animate(keyframes, Object.assign(Object.assign({}, options), { fill: 'both' }));
animated.addEventListener('finish', () => {
// @ts-ignore
animated.commitStyles();
animated.cancel();
});
return animated;
}
const keyframeDefaults = {
easing: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)',
};
export const KEYFRAMES = {
fadeIn: [
Object.assign(Object.assign({ offset: 0 }, keyframeDefaults), { opacity: 0 }),
Object.assign(Object.assign({ offset: 1 }, keyframeDefaults), { opacity: 1 }),
],
fadeOut: [
Object.assign(Object.assign({ offset: 0 }, keyframeDefaults), { opacity: 1 }),
Object.assign(Object.assign({ offset: 1 }, keyframeDefaults), { opacity: 0 }),
],
};
//# sourceMappingURL=animation.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"animation.js","sourceRoot":"","sources":["../../../src/global/utils/animation.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW,CACzB,OAAoB,EACpB,SAAgC,EAChC,OAAkC;EAElC,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,kCAAO,OAAO,KAAE,IAAI,EAAE,MAAM,IAAG,CAAC;EAC1E,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE;IACvC,aAAa;IACb,QAAQ,CAAC,YAAY,EAAE,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,CAAC;EACpB,CAAC,CAAC,CAAC;EAEH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,gBAAgB,GAAG;EACvB,MAAM,EAAE,0CAA0C;CACnD,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;EACvB,MAAM,EAAE;kCAEJ,MAAM,EAAE,CAAC,IACN,gBAAgB,KACnB,OAAO,EAAE,CAAC;kCAGV,MAAM,EAAE,CAAC,IACN,gBAAgB,KACnB,OAAO,EAAE,CAAC;GAEb;EACD,OAAO,EAAE;kCAEL,MAAM,EAAE,CAAC,IACN,gBAAgB,KACnB,OAAO,EAAE,CAAC;kCAGV,MAAM,EAAE,CAAC,IACN,gBAAgB,KACnB,OAAO,EAAE,CAAC;GAEb;CACF,CAAC","sourcesContent":["export function animationTo(\n element: HTMLElement,\n keyframes: Keyframe | Keyframe[],\n options?: KeyframeAnimationOptions\n) {\n const animated = element.animate(keyframes, { ...options, fill: 'both' });\n animated.addEventListener('finish', () => {\n // @ts-ignore\n animated.commitStyles();\n animated.cancel();\n });\n\n return animated;\n}\n\nconst keyframeDefaults = {\n easing: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)',\n};\n\nexport const KEYFRAMES = {\n fadeIn: [\n {\n offset: 0,\n ...keyframeDefaults,\n opacity: 0,\n },\n {\n offset: 1,\n ...keyframeDefaults,\n opacity: 1,\n },\n ],\n fadeOut: [\n {\n offset: 0,\n ...keyframeDefaults,\n opacity: 1,\n },\n {\n offset: 1,\n ...keyframeDefaults,\n opacity: 0,\n },\n ],\n};"]}

View File

@ -0,0 +1,121 @@
/**
* Copy/pasted from https://github.com/andreasbm/focus-trap
*/
/**
* Traverses the slots of the open shadowroots and returns all children matching the query.
* We need to traverse each child-depth one at a time because if an element should be skipped
* (for example because it is hidden) we need to skip all of it's children. If we use querySelectorAll("*")
* the information of whether the children is within a hidden parent is lost.
* @param {ShadowRoot | HTMLElement} root
* @param skipNode
* @param isMatch
* @param {number} maxDepth
* @param {number} depth
* @returns {HTMLElement[]}
*/
export function queryShadowRoot(root, skipNode, isMatch, maxDepth = 20, depth = 0) {
const matches = [];
// If the depth is above the max depth, abort the searching here.
if (depth >= maxDepth) {
return matches;
}
// Traverses a slot element
const traverseSlot = ($slot) => {
// Only check nodes that are of the type Node.ELEMENT_NODE
// Read more here https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
const assignedNodes = $slot
.assignedNodes()
.filter((node) => node.nodeType === 1);
if (assignedNodes.length > 0) {
const $slotParent = assignedNodes[0].parentElement;
return queryShadowRoot($slotParent, skipNode, isMatch, maxDepth, depth + 1);
}
return [];
};
// Go through each child and continue the traversing if necessary
// Even though the typing says that children can't be undefined, Edge 15 sometimes gives an undefined value.
// Therefore we fallback to an empty array if it is undefined.
const children = Array.from(root.children || []);
for (const $child of children) {
// Check if the element and its descendants should be skipped
if (skipNode($child)) {
// console.log('-- SKIP', $child);
continue;
}
// console.log('$child', $child);
// If the element matches we always add it
if (isMatch($child)) {
matches.push($child);
}
if ($child.shadowRoot != null) {
// If the element has a shadow root we need to traverse it
matches.push(...queryShadowRoot($child.shadowRoot, skipNode, isMatch, maxDepth, depth + 1));
}
else if ($child.tagName === 'SLOT') {
// If the child is a slot we need to traverse each assigned node
matches.push(...traverseSlot($child));
}
else {
// Traverse the children of the element
matches.push(...queryShadowRoot($child, skipNode, isMatch, maxDepth, depth + 1));
}
}
return matches;
}
/**
* Returns whether the element is hidden.
* @param $elem
*/
export function isHidden($elem) {
return ($elem.hasAttribute('hidden') ||
($elem.hasAttribute('aria-hidden') &&
$elem.getAttribute('aria-hidden') !== 'false') ||
// A quick and dirty way to check whether the element is hidden.
// For a more fine-grained check we could use "window.getComputedStyle" but we don't because of bad performance.
// If the element has visibility set to "hidden" or "collapse", display set to "none" or opacity set to "0" through CSS
// we won't be able to catch it here. We accept it due to the huge performance benefits.
$elem.style.display === `none` ||
$elem.style.opacity === `0` ||
$elem.style.visibility === `hidden` ||
$elem.style.visibility === `collapse`);
// If offsetParent is null we can assume that the element is hidden
// https://stackoverflow.com/questions/306305/what-would-make-offsetparent-null
// || $elem.offsetParent == null;
}
/**
* Returns whether the element is disabled.
* @param $elem
*/
export function isDisabled($elem) {
return ($elem.hasAttribute('disabled') ||
($elem.hasAttribute('aria-disabled') &&
$elem.getAttribute('aria-disabled') !== 'false'));
}
/**
* Determines whether an element is focusable.
* Read more here: https://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus/1600194#1600194
* Or here: https://stackoverflow.com/questions/18261595/how-to-check-if-a-dom-element-is-focusable
* @param $elem
*/
export function isFocusable($elem) {
// Discard elements that are removed from the tab order.
if ($elem.getAttribute('tabindex') === '-1' ||
isHidden($elem) ||
isDisabled($elem)) {
return false;
}
return (
// At this point we know that the element can have focus (eg. won't be -1) if the tabindex attribute exists
$elem.hasAttribute('tabindex') ||
// Anchor tags or area tags with a href set
(($elem instanceof HTMLAnchorElement || $elem instanceof HTMLAreaElement) &&
$elem.hasAttribute('href')) ||
// Form elements which are not disabled
$elem instanceof HTMLButtonElement ||
$elem instanceof HTMLInputElement ||
$elem instanceof HTMLTextAreaElement ||
$elem instanceof HTMLSelectElement ||
// IFrames
$elem instanceof HTMLIFrameElement);
}
//# sourceMappingURL=focus-trap.js.map

File diff suppressed because one or more lines are too long