@aurodesignsystem-dev/auro-formkit 0.0.0-pr1344.0 → 0.0.0-pr1344.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +91 -67
- package/components/combobox/demo/index.min.js +91 -67
- package/components/combobox/dist/index.js +91 -67
- package/components/combobox/dist/registered.js +91 -67
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.min.js +91 -67
- package/components/datepicker/demo/index.min.js +91 -67
- package/components/datepicker/dist/index.js +91 -67
- package/components/datepicker/dist/registered.js +91 -67
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/input/demo/api.md +73 -30
- package/components/input/demo/api.min.js +89 -65
- package/components/input/demo/index.md +2 -22
- package/components/input/demo/index.min.js +89 -65
- package/components/input/dist/base-input.d.ts +1 -16
- package/components/input/dist/index.js +89 -65
- package/components/input/dist/registered.js +89 -65
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +0 -70
- package/package.json +2 -2
|
@@ -9278,7 +9278,7 @@ class AuroBibtemplate extends i$1 {
|
|
|
9278
9278
|
}
|
|
9279
9279
|
}
|
|
9280
9280
|
|
|
9281
|
-
var formkitVersion$2 = '
|
|
9281
|
+
var formkitVersion$2 = '202602201815';
|
|
9282
9282
|
|
|
9283
9283
|
let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=i$5`${s$5(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`),s=(o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim();return s||null}};let h$4 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$3=i$3`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
9284
9284
|
`,u$6=i$3`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -13009,7 +13009,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$1 {
|
|
|
13009
13009
|
}
|
|
13010
13010
|
};
|
|
13011
13011
|
|
|
13012
|
-
var formkitVersion$1 = '
|
|
13012
|
+
var formkitVersion$1 = '202602201815';
|
|
13013
13013
|
|
|
13014
13014
|
let AuroElement$2 = class AuroElement extends i$1 {
|
|
13015
13015
|
static get properties() {
|
|
@@ -24602,6 +24602,92 @@ class UniqueId {
|
|
|
24602
24602
|
}
|
|
24603
24603
|
}
|
|
24604
24604
|
|
|
24605
|
+
/**
|
|
24606
|
+
* Class for interaction with the DOM.
|
|
24607
|
+
*/
|
|
24608
|
+
class DomHandler {
|
|
24609
|
+
/**
|
|
24610
|
+
* Walk up the DOM (including Shadow DOM boundaries) to find
|
|
24611
|
+
* the closest ancestor with a given attribute.
|
|
24612
|
+
*
|
|
24613
|
+
* @param {Node} startNode - The node to start from
|
|
24614
|
+
* @param {string} attrName - Attribute name to match
|
|
24615
|
+
* @returns {Element|null}
|
|
24616
|
+
*/
|
|
24617
|
+
closestWithAttribute(startNode, attrName) {
|
|
24618
|
+
let node = startNode;
|
|
24619
|
+
|
|
24620
|
+
while (node) {
|
|
24621
|
+
// Only check Elements
|
|
24622
|
+
if (node.nodeType === Node.ELEMENT_NODE && node.hasAttribute(attrName)) {
|
|
24623
|
+
return node;
|
|
24624
|
+
}
|
|
24625
|
+
|
|
24626
|
+
// Normal DOM parent
|
|
24627
|
+
if (node.parentNode) {
|
|
24628
|
+
node = node.parentNode;
|
|
24629
|
+
continue;
|
|
24630
|
+
}
|
|
24631
|
+
|
|
24632
|
+
// Cross Shadow DOM boundary
|
|
24633
|
+
if (node instanceof ShadowRoot) {
|
|
24634
|
+
node = node.host;
|
|
24635
|
+
continue;
|
|
24636
|
+
}
|
|
24637
|
+
|
|
24638
|
+
// If we're inside a shadow tree and parentNode is null
|
|
24639
|
+
if (node.getRootNode) {
|
|
24640
|
+
const root = node.getRootNode();
|
|
24641
|
+
if (root instanceof ShadowRoot) {
|
|
24642
|
+
node = root.host;
|
|
24643
|
+
continue;
|
|
24644
|
+
}
|
|
24645
|
+
}
|
|
24646
|
+
|
|
24647
|
+
// Nothing left to traverse
|
|
24648
|
+
node = null;
|
|
24649
|
+
}
|
|
24650
|
+
|
|
24651
|
+
return null;
|
|
24652
|
+
}
|
|
24653
|
+
|
|
24654
|
+
/**
|
|
24655
|
+
* If the locale wasn't set via attribute on `elem`,
|
|
24656
|
+
* then use the closest `data-locale` attribute crawling up the DOM tree.
|
|
24657
|
+
* If none is found, default to 'en-US'.
|
|
24658
|
+
*/
|
|
24659
|
+
getLocale(elem) {
|
|
24660
|
+
let locale = "en-US";
|
|
24661
|
+
|
|
24662
|
+
try {
|
|
24663
|
+
if (elem.hasAttribute("locale")) {
|
|
24664
|
+
locale = elem.getAttribute("locale");
|
|
24665
|
+
} else {
|
|
24666
|
+
const closestLocaleElement = this.closestWithAttribute(
|
|
24667
|
+
elem,
|
|
24668
|
+
"data-locale",
|
|
24669
|
+
);
|
|
24670
|
+
|
|
24671
|
+
if (closestLocaleElement) {
|
|
24672
|
+
locale = closestLocaleElement.getAttribute("data-locale");
|
|
24673
|
+
}
|
|
24674
|
+
}
|
|
24675
|
+
} catch (error) {
|
|
24676
|
+
if (!elem) {
|
|
24677
|
+
console.debug(
|
|
24678
|
+
"Auro getLocale: No element provided, defaulting to 'en-US'",
|
|
24679
|
+
);
|
|
24680
|
+
} else {
|
|
24681
|
+
console.debug(
|
|
24682
|
+
"Auro getLocale: Error accessing attributes, defaulting to 'en-US'",
|
|
24683
|
+
);
|
|
24684
|
+
}
|
|
24685
|
+
}
|
|
24686
|
+
|
|
24687
|
+
return locale;
|
|
24688
|
+
}
|
|
24689
|
+
}
|
|
24690
|
+
|
|
24605
24691
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
24606
24692
|
// See LICENSE in the project root for license information.
|
|
24607
24693
|
|
|
@@ -24665,6 +24751,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
24665
24751
|
'dd/mm': 'dateDDMM',
|
|
24666
24752
|
'mm/dd': 'dateMMDD'
|
|
24667
24753
|
};
|
|
24754
|
+
this.domHandler = new DomHandler();
|
|
24668
24755
|
this.dvInputOnly = false;
|
|
24669
24756
|
this.hasValue = false;
|
|
24670
24757
|
this.inputIconName = undefined;
|
|
@@ -25099,7 +25186,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
25099
25186
|
connectedCallback() {
|
|
25100
25187
|
super.connectedCallback();
|
|
25101
25188
|
|
|
25102
|
-
this.
|
|
25189
|
+
this.locale = this.domHandler.getLocale(this);
|
|
25103
25190
|
}
|
|
25104
25191
|
|
|
25105
25192
|
firstUpdated() {
|
|
@@ -25202,69 +25289,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
25202
25289
|
}
|
|
25203
25290
|
}
|
|
25204
25291
|
|
|
25205
|
-
/**
|
|
25206
|
-
* MOVE THIS TO AURO-LIBRARY ???
|
|
25207
|
-
* Walk up the DOM (including Shadow DOM boundaries) to find
|
|
25208
|
-
* the closest ancestor with a given attribute.
|
|
25209
|
-
*
|
|
25210
|
-
* @param {Node} startNode - The node to start from
|
|
25211
|
-
* @param {string} attrName - Attribute name to match
|
|
25212
|
-
* @returns {Element|null}
|
|
25213
|
-
*/
|
|
25214
|
-
closestWithAttribute(startNode, attrName) {
|
|
25215
|
-
let node = startNode;
|
|
25216
|
-
|
|
25217
|
-
while (node) {
|
|
25218
|
-
// Only check Elements
|
|
25219
|
-
if (node.nodeType === Node.ELEMENT_NODE && node.hasAttribute(attrName)) {
|
|
25220
|
-
return node;
|
|
25221
|
-
}
|
|
25222
|
-
|
|
25223
|
-
// Normal DOM parent
|
|
25224
|
-
if (node.parentNode) {
|
|
25225
|
-
node = node.parentNode;
|
|
25226
|
-
continue;
|
|
25227
|
-
}
|
|
25228
|
-
|
|
25229
|
-
// Cross Shadow DOM boundary
|
|
25230
|
-
if (node instanceof ShadowRoot) {
|
|
25231
|
-
node = node.host;
|
|
25232
|
-
continue;
|
|
25233
|
-
}
|
|
25234
|
-
|
|
25235
|
-
// If we're inside a shadow tree and parentNode is null
|
|
25236
|
-
if (node.getRootNode) {
|
|
25237
|
-
const root = node.getRootNode();
|
|
25238
|
-
if (root instanceof ShadowRoot) {
|
|
25239
|
-
node = root.host;
|
|
25240
|
-
continue;
|
|
25241
|
-
}
|
|
25242
|
-
}
|
|
25243
|
-
|
|
25244
|
-
// Nothing left to traverse
|
|
25245
|
-
node = null;
|
|
25246
|
-
}
|
|
25247
|
-
|
|
25248
|
-
return null;
|
|
25249
|
-
}
|
|
25250
|
-
|
|
25251
|
-
/**
|
|
25252
|
-
* If the locale wasn't set via attribute,
|
|
25253
|
-
* look for the closest `data-locale` attribute in the DOM and use that.
|
|
25254
|
-
* If none is found, default to 'en-US'.
|
|
25255
|
-
*/
|
|
25256
|
-
setLocale() {
|
|
25257
|
-
if (!this.hasAttribute('locale')) {
|
|
25258
|
-
const closestLocaleElement = this.closestWithAttribute(this, 'data-locale');
|
|
25259
|
-
|
|
25260
|
-
if (closestLocaleElement) {
|
|
25261
|
-
this.locale = closestLocaleElement.getAttribute('data-locale');
|
|
25262
|
-
} else {
|
|
25263
|
-
this.locale = 'en-US';
|
|
25264
|
-
}
|
|
25265
|
-
}
|
|
25266
|
-
}
|
|
25267
|
-
|
|
25268
25292
|
/**
|
|
25269
25293
|
* LitElement lifecycle method. Called after the DOM has been updated.
|
|
25270
25294
|
* @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
|
|
@@ -26084,7 +26108,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
|
26084
26108
|
}
|
|
26085
26109
|
};
|
|
26086
26110
|
|
|
26087
|
-
var formkitVersion = '
|
|
26111
|
+
var formkitVersion = '202602201815';
|
|
26088
26112
|
|
|
26089
26113
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
26090
26114
|
// See LICENSE in the project root for license information.
|
|
@@ -9228,7 +9228,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
9228
9228
|
}
|
|
9229
9229
|
}
|
|
9230
9230
|
|
|
9231
|
-
var formkitVersion$2 = '
|
|
9231
|
+
var formkitVersion$2 = '202602201815';
|
|
9232
9232
|
|
|
9233
9233
|
let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=literal`${unsafeStatic(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`),s=(o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim();return s||null}};let h$1 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$1=css`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
9234
9234
|
`,u$4=css`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -12941,7 +12941,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
12941
12941
|
}
|
|
12942
12942
|
};
|
|
12943
12943
|
|
|
12944
|
-
var formkitVersion$1 = '
|
|
12944
|
+
var formkitVersion$1 = '202602201815';
|
|
12945
12945
|
|
|
12946
12946
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
12947
12947
|
static get properties() {
|
|
@@ -24527,6 +24527,92 @@ class UniqueId {
|
|
|
24527
24527
|
}
|
|
24528
24528
|
}
|
|
24529
24529
|
|
|
24530
|
+
/**
|
|
24531
|
+
* Class for interaction with the DOM.
|
|
24532
|
+
*/
|
|
24533
|
+
class DomHandler {
|
|
24534
|
+
/**
|
|
24535
|
+
* Walk up the DOM (including Shadow DOM boundaries) to find
|
|
24536
|
+
* the closest ancestor with a given attribute.
|
|
24537
|
+
*
|
|
24538
|
+
* @param {Node} startNode - The node to start from
|
|
24539
|
+
* @param {string} attrName - Attribute name to match
|
|
24540
|
+
* @returns {Element|null}
|
|
24541
|
+
*/
|
|
24542
|
+
closestWithAttribute(startNode, attrName) {
|
|
24543
|
+
let node = startNode;
|
|
24544
|
+
|
|
24545
|
+
while (node) {
|
|
24546
|
+
// Only check Elements
|
|
24547
|
+
if (node.nodeType === Node.ELEMENT_NODE && node.hasAttribute(attrName)) {
|
|
24548
|
+
return node;
|
|
24549
|
+
}
|
|
24550
|
+
|
|
24551
|
+
// Normal DOM parent
|
|
24552
|
+
if (node.parentNode) {
|
|
24553
|
+
node = node.parentNode;
|
|
24554
|
+
continue;
|
|
24555
|
+
}
|
|
24556
|
+
|
|
24557
|
+
// Cross Shadow DOM boundary
|
|
24558
|
+
if (node instanceof ShadowRoot) {
|
|
24559
|
+
node = node.host;
|
|
24560
|
+
continue;
|
|
24561
|
+
}
|
|
24562
|
+
|
|
24563
|
+
// If we're inside a shadow tree and parentNode is null
|
|
24564
|
+
if (node.getRootNode) {
|
|
24565
|
+
const root = node.getRootNode();
|
|
24566
|
+
if (root instanceof ShadowRoot) {
|
|
24567
|
+
node = root.host;
|
|
24568
|
+
continue;
|
|
24569
|
+
}
|
|
24570
|
+
}
|
|
24571
|
+
|
|
24572
|
+
// Nothing left to traverse
|
|
24573
|
+
node = null;
|
|
24574
|
+
}
|
|
24575
|
+
|
|
24576
|
+
return null;
|
|
24577
|
+
}
|
|
24578
|
+
|
|
24579
|
+
/**
|
|
24580
|
+
* If the locale wasn't set via attribute on `elem`,
|
|
24581
|
+
* then use the closest `data-locale` attribute crawling up the DOM tree.
|
|
24582
|
+
* If none is found, default to 'en-US'.
|
|
24583
|
+
*/
|
|
24584
|
+
getLocale(elem) {
|
|
24585
|
+
let locale = "en-US";
|
|
24586
|
+
|
|
24587
|
+
try {
|
|
24588
|
+
if (elem.hasAttribute("locale")) {
|
|
24589
|
+
locale = elem.getAttribute("locale");
|
|
24590
|
+
} else {
|
|
24591
|
+
const closestLocaleElement = this.closestWithAttribute(
|
|
24592
|
+
elem,
|
|
24593
|
+
"data-locale",
|
|
24594
|
+
);
|
|
24595
|
+
|
|
24596
|
+
if (closestLocaleElement) {
|
|
24597
|
+
locale = closestLocaleElement.getAttribute("data-locale");
|
|
24598
|
+
}
|
|
24599
|
+
}
|
|
24600
|
+
} catch (error) {
|
|
24601
|
+
if (!elem) {
|
|
24602
|
+
console.debug(
|
|
24603
|
+
"Auro getLocale: No element provided, defaulting to 'en-US'",
|
|
24604
|
+
);
|
|
24605
|
+
} else {
|
|
24606
|
+
console.debug(
|
|
24607
|
+
"Auro getLocale: Error accessing attributes, defaulting to 'en-US'",
|
|
24608
|
+
);
|
|
24609
|
+
}
|
|
24610
|
+
}
|
|
24611
|
+
|
|
24612
|
+
return locale;
|
|
24613
|
+
}
|
|
24614
|
+
}
|
|
24615
|
+
|
|
24530
24616
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
24531
24617
|
// See LICENSE in the project root for license information.
|
|
24532
24618
|
|
|
@@ -24590,6 +24676,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
24590
24676
|
'dd/mm': 'dateDDMM',
|
|
24591
24677
|
'mm/dd': 'dateMMDD'
|
|
24592
24678
|
};
|
|
24679
|
+
this.domHandler = new DomHandler();
|
|
24593
24680
|
this.dvInputOnly = false;
|
|
24594
24681
|
this.hasValue = false;
|
|
24595
24682
|
this.inputIconName = undefined;
|
|
@@ -25024,7 +25111,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
25024
25111
|
connectedCallback() {
|
|
25025
25112
|
super.connectedCallback();
|
|
25026
25113
|
|
|
25027
|
-
this.
|
|
25114
|
+
this.locale = this.domHandler.getLocale(this);
|
|
25028
25115
|
}
|
|
25029
25116
|
|
|
25030
25117
|
firstUpdated() {
|
|
@@ -25127,69 +25214,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
25127
25214
|
}
|
|
25128
25215
|
}
|
|
25129
25216
|
|
|
25130
|
-
/**
|
|
25131
|
-
* MOVE THIS TO AURO-LIBRARY ???
|
|
25132
|
-
* Walk up the DOM (including Shadow DOM boundaries) to find
|
|
25133
|
-
* the closest ancestor with a given attribute.
|
|
25134
|
-
*
|
|
25135
|
-
* @param {Node} startNode - The node to start from
|
|
25136
|
-
* @param {string} attrName - Attribute name to match
|
|
25137
|
-
* @returns {Element|null}
|
|
25138
|
-
*/
|
|
25139
|
-
closestWithAttribute(startNode, attrName) {
|
|
25140
|
-
let node = startNode;
|
|
25141
|
-
|
|
25142
|
-
while (node) {
|
|
25143
|
-
// Only check Elements
|
|
25144
|
-
if (node.nodeType === Node.ELEMENT_NODE && node.hasAttribute(attrName)) {
|
|
25145
|
-
return node;
|
|
25146
|
-
}
|
|
25147
|
-
|
|
25148
|
-
// Normal DOM parent
|
|
25149
|
-
if (node.parentNode) {
|
|
25150
|
-
node = node.parentNode;
|
|
25151
|
-
continue;
|
|
25152
|
-
}
|
|
25153
|
-
|
|
25154
|
-
// Cross Shadow DOM boundary
|
|
25155
|
-
if (node instanceof ShadowRoot) {
|
|
25156
|
-
node = node.host;
|
|
25157
|
-
continue;
|
|
25158
|
-
}
|
|
25159
|
-
|
|
25160
|
-
// If we're inside a shadow tree and parentNode is null
|
|
25161
|
-
if (node.getRootNode) {
|
|
25162
|
-
const root = node.getRootNode();
|
|
25163
|
-
if (root instanceof ShadowRoot) {
|
|
25164
|
-
node = root.host;
|
|
25165
|
-
continue;
|
|
25166
|
-
}
|
|
25167
|
-
}
|
|
25168
|
-
|
|
25169
|
-
// Nothing left to traverse
|
|
25170
|
-
node = null;
|
|
25171
|
-
}
|
|
25172
|
-
|
|
25173
|
-
return null;
|
|
25174
|
-
}
|
|
25175
|
-
|
|
25176
|
-
/**
|
|
25177
|
-
* If the locale wasn't set via attribute,
|
|
25178
|
-
* look for the closest `data-locale` attribute in the DOM and use that.
|
|
25179
|
-
* If none is found, default to 'en-US'.
|
|
25180
|
-
*/
|
|
25181
|
-
setLocale() {
|
|
25182
|
-
if (!this.hasAttribute('locale')) {
|
|
25183
|
-
const closestLocaleElement = this.closestWithAttribute(this, 'data-locale');
|
|
25184
|
-
|
|
25185
|
-
if (closestLocaleElement) {
|
|
25186
|
-
this.locale = closestLocaleElement.getAttribute('data-locale');
|
|
25187
|
-
} else {
|
|
25188
|
-
this.locale = 'en-US';
|
|
25189
|
-
}
|
|
25190
|
-
}
|
|
25191
|
-
}
|
|
25192
|
-
|
|
25193
25217
|
/**
|
|
25194
25218
|
* LitElement lifecycle method. Called after the DOM has been updated.
|
|
25195
25219
|
* @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
|
|
@@ -26009,7 +26033,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
26009
26033
|
}
|
|
26010
26034
|
};
|
|
26011
26035
|
|
|
26012
|
-
var formkitVersion = '
|
|
26036
|
+
var formkitVersion = '202602201815';
|
|
26013
26037
|
|
|
26014
26038
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
26015
26039
|
// See LICENSE in the project root for license information.
|