@aurodesignsystem-dev/auro-formkit 0.0.0-pr1573.2 → 0.0.0-pr1576.0
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/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.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/customize.md +40 -0
- package/components/combobox/demo/customize.min.js +247 -17
- package/components/combobox/demo/getting-started.min.js +247 -17
- package/components/combobox/demo/index.min.js +247 -17
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/customize.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/customize.min.js +3 -3
- package/components/datepicker/demo/index.min.js +3 -3
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.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/form/demo/customize.min.js +257 -27
- package/components/form/demo/getting-started.min.js +257 -27
- package/components/form/demo/index.min.js +257 -27
- package/components/form/demo/registerDemoDeps.min.js +257 -27
- package/components/input/demo/customize.min.js +1 -1
- package/components/input/demo/getting-started.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/index.min.js +244 -14
- package/components/menu/dist/auro-menu-utils.d.ts +30 -0
- package/components/menu/dist/auro-menu.d.ts +23 -0
- package/components/menu/dist/index.js +244 -14
- package/components/menu/dist/registered.js +244 -14
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.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/customize.md +72 -0
- package/components/select/demo/customize.min.js +246 -16
- package/components/select/demo/getting-started.min.js +246 -16
- package/components/select/demo/index.min.js +246 -16
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +1617 -1513
- package/package.json +1 -1
|
@@ -13388,7 +13388,7 @@ let AuroHelpText$8 = class AuroHelpText extends i$3 {
|
|
|
13388
13388
|
}
|
|
13389
13389
|
};
|
|
13390
13390
|
|
|
13391
|
-
var formkitVersion$8 = '
|
|
13391
|
+
var formkitVersion$8 = '202608032144';
|
|
13392
13392
|
|
|
13393
13393
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13394
13394
|
// See LICENSE in the project root for license information.
|
|
@@ -27820,7 +27820,7 @@ let AuroBibtemplate$3 = class AuroBibtemplate extends i$3 {
|
|
|
27820
27820
|
}
|
|
27821
27821
|
};
|
|
27822
27822
|
|
|
27823
|
-
var formkitVersion$2$1 = '
|
|
27823
|
+
var formkitVersion$2$1 = '202608032144';
|
|
27824
27824
|
|
|
27825
27825
|
let l$1$2 = 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$2`${s$3(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1$2 = 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$2 = 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$3=i$6`: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}
|
|
27826
27826
|
`,u$4$2=i$6`.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}}
|
|
@@ -33551,7 +33551,7 @@ let AuroHelpText$2$1 = class AuroHelpText extends i$3 {
|
|
|
33551
33551
|
}
|
|
33552
33552
|
};
|
|
33553
33553
|
|
|
33554
|
-
var formkitVersion$1$3 = '
|
|
33554
|
+
var formkitVersion$1$3 = '202608032144';
|
|
33555
33555
|
|
|
33556
33556
|
let AuroElement$2$2 = class AuroElement extends i$3 {
|
|
33557
33557
|
static get properties() {
|
|
@@ -47233,7 +47233,7 @@ let AuroHelpText$1$3 = class AuroHelpText extends i$3 {
|
|
|
47233
47233
|
}
|
|
47234
47234
|
};
|
|
47235
47235
|
|
|
47236
|
-
var formkitVersion$7 = '
|
|
47236
|
+
var formkitVersion$7 = '202608032144';
|
|
47237
47237
|
|
|
47238
47238
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
47239
47239
|
// See LICENSE in the project root for license information.
|
|
@@ -52215,7 +52215,7 @@ let AuroHelpText$1$2 = class AuroHelpText extends i$3 {
|
|
|
52215
52215
|
}
|
|
52216
52216
|
};
|
|
52217
52217
|
|
|
52218
|
-
var formkitVersion$1$2 = '
|
|
52218
|
+
var formkitVersion$1$2 = '202608032144';
|
|
52219
52219
|
|
|
52220
52220
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
52221
52221
|
// See LICENSE in the project root for license information.
|
|
@@ -56368,7 +56368,7 @@ let AuroHelpText$6 = class AuroHelpText extends i$3 {
|
|
|
56368
56368
|
}
|
|
56369
56369
|
};
|
|
56370
56370
|
|
|
56371
|
-
var formkitVersion$6 = '
|
|
56371
|
+
var formkitVersion$6 = '202608032144';
|
|
56372
56372
|
|
|
56373
56373
|
let AuroElement$1$2 = class AuroElement extends i$3 {
|
|
56374
56374
|
static get properties() {
|
|
@@ -60422,7 +60422,7 @@ let AuroHelpText$5 = class AuroHelpText extends i$3 {
|
|
|
60422
60422
|
}
|
|
60423
60423
|
};
|
|
60424
60424
|
|
|
60425
|
-
var formkitVersion$5 = '
|
|
60425
|
+
var formkitVersion$5 = '202608032144';
|
|
60426
60426
|
|
|
60427
60427
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
60428
60428
|
// See LICENSE in the project root for license information.
|
|
@@ -62187,7 +62187,7 @@ let AuroHelpText$4 = class AuroHelpText extends i$3 {
|
|
|
62187
62187
|
}
|
|
62188
62188
|
};
|
|
62189
62189
|
|
|
62190
|
-
var formkitVersion$4 = '
|
|
62190
|
+
var formkitVersion$4 = '202608032144';
|
|
62191
62191
|
|
|
62192
62192
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
62193
62193
|
// See LICENSE in the project root for license information.
|
|
@@ -67506,7 +67506,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
67506
67506
|
}
|
|
67507
67507
|
};
|
|
67508
67508
|
|
|
67509
|
-
var formkitVersion$2 = '
|
|
67509
|
+
var formkitVersion$2 = '202608032144';
|
|
67510
67510
|
|
|
67511
67511
|
let AuroElement$2$1 = class AuroElement extends i$3 {
|
|
67512
67512
|
static get properties() {
|
|
@@ -81188,7 +81188,7 @@ let AuroHelpText$1$1 = class AuroHelpText extends i$3 {
|
|
|
81188
81188
|
}
|
|
81189
81189
|
};
|
|
81190
81190
|
|
|
81191
|
-
var formkitVersion$1$1 = '
|
|
81191
|
+
var formkitVersion$1$1 = '202608032144';
|
|
81192
81192
|
|
|
81193
81193
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
81194
81194
|
// See LICENSE in the project root for license information.
|
|
@@ -82344,7 +82344,7 @@ let AuroBibtemplate$1 = class AuroBibtemplate extends i$3 {
|
|
|
82344
82344
|
}
|
|
82345
82345
|
};
|
|
82346
82346
|
|
|
82347
|
-
var formkitVersion$3 = '
|
|
82347
|
+
var formkitVersion$3 = '202608032144';
|
|
82348
82348
|
|
|
82349
82349
|
var styleCss$1$3 = i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
82350
82350
|
|
|
@@ -84960,6 +84960,107 @@ function isSelectableByValue(option) {
|
|
|
84960
84960
|
!option.hasAttribute('static');
|
|
84961
84961
|
}
|
|
84962
84962
|
|
|
84963
|
+
/* eslint-disable no-underscore-dangle */
|
|
84964
|
+
/**
|
|
84965
|
+
* Resolves the single selected option for a given `value`, preferring the
|
|
84966
|
+
* option tracked by `selectedKey` (a user-initiated selection) over a
|
|
84967
|
+
* first-by-value match. When multiple options share the same `value`, matching
|
|
84968
|
+
* by `value` alone cannot distinguish which one the user picked; the key
|
|
84969
|
+
* disambiguates it.
|
|
84970
|
+
*
|
|
84971
|
+
* The key is trusted only when it still resolves to an option whose `value`
|
|
84972
|
+
* matches the requested `value`. If the key is stale (option removed) or the
|
|
84973
|
+
* value was changed programmatically, resolution falls back to value matching —
|
|
84974
|
+
* preserving backward-compatible behavior for preselection and `selectByValue`.
|
|
84975
|
+
* @private
|
|
84976
|
+
* @param {Array<HTMLElement>} items - The menu's flat option list.
|
|
84977
|
+
* @param {string} value - The value to resolve.
|
|
84978
|
+
* @param {string|undefined} selectedKey - The `_optionKey` of the user-selected option, if any.
|
|
84979
|
+
* @returns {HTMLElement|undefined} The resolved option, or undefined when none match.
|
|
84980
|
+
*/
|
|
84981
|
+
function resolveSelectedOption(items, value, selectedKey) {
|
|
84982
|
+
if (!items) {
|
|
84983
|
+
return undefined;
|
|
84984
|
+
}
|
|
84985
|
+
|
|
84986
|
+
if (selectedKey !== undefined) {
|
|
84987
|
+
const keyed = items.find((item) => item._optionKey === selectedKey);
|
|
84988
|
+
if (keyed && isSelectableByValue(keyed) && keyed.value === value) {
|
|
84989
|
+
return keyed;
|
|
84990
|
+
}
|
|
84991
|
+
// Key exists but the option is gone or its value no longer matches — fall
|
|
84992
|
+
// through to value-based matching.
|
|
84993
|
+
}
|
|
84994
|
+
|
|
84995
|
+
return items.find((item) => isSelectableByValue(item) && item.value === value);
|
|
84996
|
+
}
|
|
84997
|
+
|
|
84998
|
+
/**
|
|
84999
|
+
* Resolves the selected options for a multi-select `value` array, preferring
|
|
85000
|
+
* options tracked by `selectedKeys` (user-initiated selections) and falling
|
|
85001
|
+
* back to value matching for any values not resolved by key. The result is
|
|
85002
|
+
* always sorted into DOM order regardless of selection sequence.
|
|
85003
|
+
* @private
|
|
85004
|
+
* @param {Array<HTMLElement>} items - The menu's flat option list.
|
|
85005
|
+
* @param {Array<string>} valueArray - The selected values.
|
|
85006
|
+
* @param {Array<string>|undefined} selectedKeys - The `_optionKey`s of the user-selected options, if any.
|
|
85007
|
+
* @returns {Array<HTMLElement>} The resolved options in DOM order.
|
|
85008
|
+
*/
|
|
85009
|
+
function resolveSelectedOptions(items, valueArray, selectedKeys) {
|
|
85010
|
+
if (!items) {
|
|
85011
|
+
return [];
|
|
85012
|
+
}
|
|
85013
|
+
|
|
85014
|
+
const resolved = [];
|
|
85015
|
+
|
|
85016
|
+
// Track how many of each value are still available to resolve. A value that
|
|
85017
|
+
// appears N times in `valueArray` may be satisfied at most N times total across
|
|
85018
|
+
// the key pass and the value fallback below — matching by count, not presence,
|
|
85019
|
+
// on BOTH passes. This stops a duplicate value from being over-resolved: e.g.
|
|
85020
|
+
// two keyed options that both carry `SEA` cannot both match a single requested
|
|
85021
|
+
// `SEA` (which happens when `value` is set directly without clearing
|
|
85022
|
+
// `_selectedKey`, so more keys survive than the value set now asks for).
|
|
85023
|
+
const remaining = new Map();
|
|
85024
|
+
valueArray.forEach((val) => remaining.set(val, (remaining.get(val) || 0) + 1));
|
|
85025
|
+
|
|
85026
|
+
// Resolve by key first: trust a key only when its option is still selectable
|
|
85027
|
+
// and there is still an unmatched occurrence of its value in the request set.
|
|
85028
|
+
if (Array.isArray(selectedKeys)) {
|
|
85029
|
+
selectedKeys.forEach((key) => {
|
|
85030
|
+
const keyed = items.find((item) => item._optionKey === key);
|
|
85031
|
+
if (keyed && isSelectableByValue(keyed) && (remaining.get(keyed.value) || 0) > 0 && !resolved.includes(keyed)) {
|
|
85032
|
+
resolved.push(keyed);
|
|
85033
|
+
remaining.set(keyed.value, remaining.get(keyed.value) - 1);
|
|
85034
|
+
}
|
|
85035
|
+
});
|
|
85036
|
+
}
|
|
85037
|
+
|
|
85038
|
+
// Fall back to value matching for the occurrences not resolved by key. Iterate
|
|
85039
|
+
// the leftover per-value counts so a value that appears twice but was only
|
|
85040
|
+
// resolved once by key still matches its remaining occurrence(s).
|
|
85041
|
+
remaining.forEach((count, val) => {
|
|
85042
|
+
for (let occurrence = 0; occurrence < count; occurrence += 1) {
|
|
85043
|
+
const option = items.find((item) => isSelectableByValue(item) && item.value === val && !resolved.includes(item));
|
|
85044
|
+
if (option) {
|
|
85045
|
+
resolved.push(option);
|
|
85046
|
+
}
|
|
85047
|
+
}
|
|
85048
|
+
});
|
|
85049
|
+
|
|
85050
|
+
// Always return in DOM order so display is consistent regardless of the order
|
|
85051
|
+
// keys/values were selected. Every resolved option came from `items`, so an
|
|
85052
|
+
// O(1) index lookup mirrors `_sortSelectedByDomOrder` and avoids the O(n)
|
|
85053
|
+
// `items.indexOf` per comparison for large combobox option sets.
|
|
85054
|
+
const indexMap = new Map(items.map((item, index) => [
|
|
85055
|
+
item,
|
|
85056
|
+
index
|
|
85057
|
+
]));
|
|
85058
|
+
resolved.sort((optionA, optionB) => indexMap.get(optionA) - indexMap.get(optionB));
|
|
85059
|
+
|
|
85060
|
+
return resolved;
|
|
85061
|
+
}
|
|
85062
|
+
/* eslint-enable no-underscore-dangle */
|
|
85063
|
+
|
|
84963
85064
|
/**
|
|
84964
85065
|
* Helper method to dispatch custom events.
|
|
84965
85066
|
* @param {HTMLElement} element - Element to dispatch event from.
|
|
@@ -84985,6 +85086,14 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
84985
85086
|
// See LICENSE in the project root for license information.
|
|
84986
85087
|
|
|
84987
85088
|
|
|
85089
|
+
/**
|
|
85090
|
+
* Monotonically increasing counter used to give each menu instance a unique
|
|
85091
|
+
* `_menuInstanceId` prefix. Auto-generating the id (rather than using a random
|
|
85092
|
+
* string) keeps option keys deterministic and collision-free across menus.
|
|
85093
|
+
* @private
|
|
85094
|
+
*/
|
|
85095
|
+
let menuInstanceIdCounter = 0;
|
|
85096
|
+
|
|
84988
85097
|
|
|
84989
85098
|
/**
|
|
84990
85099
|
* The `auro-menu` element provides users a way to select from a list of options.
|
|
@@ -85059,6 +85168,8 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85059
85168
|
/**
|
|
85060
85169
|
* @private
|
|
85061
85170
|
*/
|
|
85171
|
+
menuInstanceIdCounter += 1;
|
|
85172
|
+
|
|
85062
85173
|
Object.assign(this, {
|
|
85063
85174
|
// Root-level menu (true) or a nested submenu (false)
|
|
85064
85175
|
rootMenu: true,
|
|
@@ -85068,6 +85179,21 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85068
85179
|
nestingSpacer: '<span class="nestingSpacer"></span>',
|
|
85069
85180
|
// Loading indicator for slot elements
|
|
85070
85181
|
loadingSlots: null,
|
|
85182
|
+
// Unique id for this menu instance; prefixes every auto-generated option
|
|
85183
|
+
// key so keys never collide across menus in the same document.
|
|
85184
|
+
_menuInstanceId: `menu-${menuInstanceIdCounter}`,
|
|
85185
|
+
// Monotonically increasing counter for option key generation. Never
|
|
85186
|
+
// resets, so a key is never reused within this instance's lifetime.
|
|
85187
|
+
_optionKeyCounter: 0,
|
|
85188
|
+
// Key(s) of the option(s) the user has actively selected. A single string
|
|
85189
|
+
// in single-select, an array in multi-select, undefined when nothing is
|
|
85190
|
+
// user-selected. Used to disambiguate options that share a `value`.
|
|
85191
|
+
_selectedKey: undefined,
|
|
85192
|
+
// True only for the one updated() cycle following a user selection, so
|
|
85193
|
+
// reconciliation trusts `_selectedKey`. A `value` change from a consumer's
|
|
85194
|
+
// direct property assignment leaves this false, dropping the stale key so
|
|
85195
|
+
// reconciliation falls back to first-by-value (see updated()).
|
|
85196
|
+
_valueChangeFromSelection: false,
|
|
85071
85197
|
});
|
|
85072
85198
|
}
|
|
85073
85199
|
|
|
@@ -85287,6 +85413,13 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85287
85413
|
return;
|
|
85288
85414
|
}
|
|
85289
85415
|
|
|
85416
|
+
// A programmatic value set carries no positional intent, so drop any
|
|
85417
|
+
// `_selectedKey` left over from a prior user click. This makes reconciliation
|
|
85418
|
+
// in updated() fall back to first-by-value (single) / value-in-DOM-order
|
|
85419
|
+
// (multi), matching the documented contract for programmatic selection even
|
|
85420
|
+
// when a stale key would still resolve to a duplicate-value option.
|
|
85421
|
+
this._selectedKey = undefined;
|
|
85422
|
+
|
|
85290
85423
|
// `value` is a String property; stringify arrays so attribute reflection and `formattedValue` parsing stay correct.
|
|
85291
85424
|
this.value = Array.isArray(value) ? JSON.stringify(value) : value;
|
|
85292
85425
|
}
|
|
@@ -85334,6 +85467,7 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85334
85467
|
updated(changedProperties) {
|
|
85335
85468
|
super.updated(changedProperties);
|
|
85336
85469
|
|
|
85470
|
+
|
|
85337
85471
|
// Single source of truth for 'auroMenu-selectedOption'. Selection handlers
|
|
85338
85472
|
// mutate optionSelected and let Lit's update cycle dispatch here; the prior
|
|
85339
85473
|
// .value comparison missed multi-select array changes and combined with the
|
|
@@ -85357,6 +85491,18 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85357
85491
|
this.initItems();
|
|
85358
85492
|
}
|
|
85359
85493
|
|
|
85494
|
+
// Distinguish a selection-driven `value` change (a user click, which set
|
|
85495
|
+
// the flag in handleSelectState / _sortSelectedByDomOrder) from a
|
|
85496
|
+
// programmatic assignment by a consumer. A programmatic set carries no
|
|
85497
|
+
// positional intent, so drop any leftover `_selectedKey` and let
|
|
85498
|
+
// reconciliation fall back to first-by-value (single) / value-in-DOM-order
|
|
85499
|
+
// (multi) — the same contract selectByValue() guarantees, even when a
|
|
85500
|
+
// stale key would otherwise still resolve to a duplicate-value option.
|
|
85501
|
+
if (!this._valueChangeFromSelection) {
|
|
85502
|
+
this._selectedKey = undefined;
|
|
85503
|
+
}
|
|
85504
|
+
this._valueChangeFromSelection = false;
|
|
85505
|
+
|
|
85360
85506
|
// Set when reconciliation reassigns `value` below. That reassignment schedules a
|
|
85361
85507
|
// second updated() cycle, so the `event`-attribute dispatch is deferred to that
|
|
85362
85508
|
// cycle to avoid firing option custom events twice on the same selection.
|
|
@@ -85374,7 +85520,10 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85374
85520
|
// Defensive default: `formattedValue` can be undefined for unexpected value types,
|
|
85375
85521
|
// and calling `.includes` on undefined would throw during reconciliation.
|
|
85376
85522
|
const valueArray = this.formattedValue || [];
|
|
85377
|
-
|
|
85523
|
+
// Resolve by key first (the user's exact picks), then fall back to
|
|
85524
|
+
// value matching for any values not resolved by key — so pre-selection
|
|
85525
|
+
// and programmatic value sets keep working. Result is DOM-ordered.
|
|
85526
|
+
const matchingOptions = resolveSelectedOptions(this.items, valueArray, this._selectedKey);
|
|
85378
85527
|
newSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
|
|
85379
85528
|
|
|
85380
85529
|
// Reconcile `value` with the selectable set. Drop only entries whose option is
|
|
@@ -85387,6 +85536,12 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85387
85536
|
: [];
|
|
85388
85537
|
if (rejectedValues.length > 0) {
|
|
85389
85538
|
const reconciled = valueArray.filter((val) => !rejectedValues.includes(val));
|
|
85539
|
+
// This is an internal correction, not a consumer's programmatic set,
|
|
85540
|
+
// so preserve the selection-driven flag through the re-entrant
|
|
85541
|
+
// updated() cycle it schedules. Otherwise that cycle would treat the
|
|
85542
|
+
// reassignment as programmatic and drop `_selectedKey` mid-cascade,
|
|
85543
|
+
// flipping resolution and looping.
|
|
85544
|
+
this._valueChangeFromSelection = true;
|
|
85390
85545
|
this.value = serializeMultiSelectValue(reconciled);
|
|
85391
85546
|
valueReconciled = true;
|
|
85392
85547
|
}
|
|
@@ -85398,7 +85553,11 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85398
85553
|
// `hidden` is intentionally NOT excluded: the combobox toggles
|
|
85399
85554
|
// `hidden` as its type-ahead filter, so a filtered-out option is
|
|
85400
85555
|
// still a valid programmatic selection.
|
|
85401
|
-
|
|
85556
|
+
// Prefer the option the user actually selected (tracked by
|
|
85557
|
+
// `_selectedKey`) so a click on the second of two options sharing a
|
|
85558
|
+
// `value` resolves back to that exact element instead of the first
|
|
85559
|
+
// value match. Falls back to first-by-value for programmatic sets.
|
|
85560
|
+
const matchingOption = resolveSelectedOption(this.items, this.value, this._selectedKey);
|
|
85402
85561
|
|
|
85403
85562
|
if (matchingOption) {
|
|
85404
85563
|
newSelected = matchingOption;
|
|
@@ -85626,6 +85785,14 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85626
85785
|
}
|
|
85627
85786
|
});
|
|
85628
85787
|
|
|
85788
|
+
// Assign private keys once items are populated. Only the root menu assigns
|
|
85789
|
+
// keys: its `items` is a deep query that already includes nested submenu
|
|
85790
|
+
// options, so a single pass keys the entire tree. Nested menus skip this
|
|
85791
|
+
// and inherit keys from the root.
|
|
85792
|
+
if (this.rootMenu) {
|
|
85793
|
+
this._assignOptionKeys();
|
|
85794
|
+
}
|
|
85795
|
+
|
|
85629
85796
|
if (this.noCheckmark) {
|
|
85630
85797
|
this.updateItemsState(new Map([
|
|
85631
85798
|
[
|
|
@@ -85642,6 +85809,31 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85642
85809
|
}));
|
|
85643
85810
|
}
|
|
85644
85811
|
|
|
85812
|
+
/**
|
|
85813
|
+
* Assigns a private, auto-generated unique key (`_optionKey`) to each menu
|
|
85814
|
+
* option that does not already have one. Keys are internal state on the
|
|
85815
|
+
* element instance — never reflected as an attribute or exposed publicly —
|
|
85816
|
+
* and let selection tracking distinguish options that share the same `value`.
|
|
85817
|
+
*
|
|
85818
|
+
* The `_optionKey === undefined` guard makes this idempotent: options keep the
|
|
85819
|
+
* key they were first assigned across re-renders and slot changes, and if a
|
|
85820
|
+
* nested menu's lifecycle runs a pass before the root, options simply wait for
|
|
85821
|
+
* the root to key them (or keep whatever key they already hold).
|
|
85822
|
+
* @private
|
|
85823
|
+
*/
|
|
85824
|
+
_assignOptionKeys() {
|
|
85825
|
+
if (!this.items) {
|
|
85826
|
+
return;
|
|
85827
|
+
}
|
|
85828
|
+
|
|
85829
|
+
this.items.forEach((option) => {
|
|
85830
|
+
if (option._optionKey === undefined) {
|
|
85831
|
+
this._optionKeyCounter += 1;
|
|
85832
|
+
option._optionKey = `${this._menuInstanceId}-${this._optionKeyCounter}`;
|
|
85833
|
+
}
|
|
85834
|
+
});
|
|
85835
|
+
}
|
|
85836
|
+
|
|
85645
85837
|
// Logic Methods
|
|
85646
85838
|
|
|
85647
85839
|
/**
|
|
@@ -85651,24 +85843,28 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85651
85843
|
*/
|
|
85652
85844
|
handleSelectState(option) {
|
|
85653
85845
|
if (this.multiSelect) {
|
|
85654
|
-
const currentValue = this.formattedValue || [];
|
|
85655
85846
|
const currentSelected = this.optionSelected || [];
|
|
85656
85847
|
|
|
85657
|
-
if (!currentValue.includes(option.value)) {
|
|
85658
|
-
this.value = serializeMultiSelectValue([
|
|
85659
|
-
...currentValue,
|
|
85660
|
-
option.value
|
|
85661
|
-
]);
|
|
85662
|
-
}
|
|
85663
85848
|
if (!currentSelected.includes(option)) {
|
|
85664
85849
|
this.optionSelected = [
|
|
85665
85850
|
...currentSelected,
|
|
85666
85851
|
option
|
|
85667
85852
|
];
|
|
85668
85853
|
}
|
|
85854
|
+
|
|
85855
|
+
// Re-sort by DOM order and rebuild `_selectedKey`/`value` from the
|
|
85856
|
+
// selected set so display order stays consistent with the menu, not with
|
|
85857
|
+
// click order.
|
|
85858
|
+
this._sortSelectedByDomOrder();
|
|
85669
85859
|
} else {
|
|
85670
85860
|
this.value = option.value;
|
|
85671
85861
|
this.optionSelected = option;
|
|
85862
|
+
// Track the specific option the user selected so the value→option
|
|
85863
|
+
// reconciliation in updated() resolves back to this exact element even
|
|
85864
|
+
// when another option shares the same `value`.
|
|
85865
|
+
this._selectedKey = option._optionKey;
|
|
85866
|
+
// Mark this `value` change as selection-driven so updated() trusts the key.
|
|
85867
|
+
this._valueChangeFromSelection = true;
|
|
85672
85868
|
}
|
|
85673
85869
|
|
|
85674
85870
|
this._index = this.items.indexOf(option);
|
|
@@ -85681,18 +85877,22 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85681
85877
|
*/
|
|
85682
85878
|
handleDeselectState(option) {
|
|
85683
85879
|
if (this.multiSelect) {
|
|
85684
|
-
// Remove this
|
|
85685
|
-
|
|
85686
|
-
|
|
85687
|
-
|
|
85688
|
-
this.optionSelected = this.optionSelected.filter((val) => val !== option);
|
|
85880
|
+
// Remove this exact element from the selection (identity, not value — two
|
|
85881
|
+
// options can share a `value`), then rebuild `value`/`_selectedKey` from
|
|
85882
|
+
// the remaining set in DOM order. An empty result collapses to undefined.
|
|
85883
|
+
this.optionSelected = this.optionSelected.filter((selected) => selected !== option);
|
|
85689
85884
|
if (this.optionSelected.length === 0) {
|
|
85690
85885
|
this.optionSelected = undefined;
|
|
85886
|
+
this._selectedKey = undefined;
|
|
85887
|
+
this.value = undefined;
|
|
85888
|
+
} else {
|
|
85889
|
+
this._sortSelectedByDomOrder();
|
|
85691
85890
|
}
|
|
85692
85891
|
} else {
|
|
85693
85892
|
// For single-select: Back to undefined when deselected
|
|
85694
85893
|
this.value = undefined;
|
|
85695
85894
|
this.optionSelected = undefined;
|
|
85895
|
+
this._selectedKey = undefined;
|
|
85696
85896
|
}
|
|
85697
85897
|
|
|
85698
85898
|
// Update the index tracking
|
|
@@ -85716,9 +85916,38 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85716
85916
|
clearSelection() {
|
|
85717
85917
|
this.optionSelected = undefined;
|
|
85718
85918
|
this.value = undefined;
|
|
85919
|
+
this._selectedKey = undefined;
|
|
85719
85920
|
this._index = -1;
|
|
85720
85921
|
}
|
|
85721
85922
|
|
|
85923
|
+
/**
|
|
85924
|
+
* Re-sorts the multi-select selection into DOM order and rebuilds the derived
|
|
85925
|
+
* `_selectedKey` and `value` from `optionSelected`. Selection is always stored
|
|
85926
|
+
* and serialized in the order options appear in the menu, never in click
|
|
85927
|
+
* order — so selecting C then A yields `[A, C]`.
|
|
85928
|
+
* @private
|
|
85929
|
+
*/
|
|
85930
|
+
_sortSelectedByDomOrder() {
|
|
85931
|
+
if (!this.multiSelect || !Array.isArray(this.optionSelected) || !this.items) {
|
|
85932
|
+
return;
|
|
85933
|
+
}
|
|
85934
|
+
|
|
85935
|
+
const indexMap = new Map(this.items.map((item, index) => [
|
|
85936
|
+
item,
|
|
85937
|
+
index
|
|
85938
|
+
]));
|
|
85939
|
+
|
|
85940
|
+
// Sort any element no longer in `items` (a stale selection left over from a
|
|
85941
|
+
// dynamic rebuild that the consumer has not cleared) to the END rather than
|
|
85942
|
+
// the front, so it never displaces a live option to the head of the
|
|
85943
|
+
// serialized order. Value reconciliation drops it on the next updated() cycle.
|
|
85944
|
+
this.optionSelected.sort((optionA, optionB) => (indexMap.get(optionA) ?? this.items.length) - (indexMap.get(optionB) ?? this.items.length));
|
|
85945
|
+
this._selectedKey = this.optionSelected.map((option) => option._optionKey);
|
|
85946
|
+
this.value = serializeMultiSelectValue(this.optionSelected.map((option) => option.value));
|
|
85947
|
+
// Mark this `value` change as selection-driven so updated() trusts the keys.
|
|
85948
|
+
this._valueChangeFromSelection = true;
|
|
85949
|
+
}
|
|
85950
|
+
|
|
85722
85951
|
/**
|
|
85723
85952
|
* Resets the menu to its initial state.
|
|
85724
85953
|
* This is the only way to return value to undefined.
|
|
@@ -85728,6 +85957,7 @@ class AuroMenu extends AuroElement$2 {
|
|
|
85728
85957
|
// Reset to undefined - initial state
|
|
85729
85958
|
this.value = undefined;
|
|
85730
85959
|
this.optionSelected = undefined;
|
|
85960
|
+
this._selectedKey = undefined;
|
|
85731
85961
|
this._index = -1;
|
|
85732
85962
|
|
|
85733
85963
|
// Clear active option state so a follow-up open/navigation starts fresh
|
|
@@ -91219,7 +91449,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
91219
91449
|
}
|
|
91220
91450
|
};
|
|
91221
91451
|
|
|
91222
|
-
var formkitVersion$1 = '
|
|
91452
|
+
var formkitVersion$1 = '202608032144';
|
|
91223
91453
|
|
|
91224
91454
|
class AuroElement extends i$3 {
|
|
91225
91455
|
static get properties() {
|
|
@@ -93321,7 +93551,7 @@ class AuroHelpText extends i$3 {
|
|
|
93321
93551
|
}
|
|
93322
93552
|
}
|
|
93323
93553
|
|
|
93324
|
-
var formkitVersion = '
|
|
93554
|
+
var formkitVersion = '202608032144';
|
|
93325
93555
|
|
|
93326
93556
|
var styleCss = i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-size:var(--wcss-body-sm-emphasized-font-size, 0.875rem);font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-size:var(--wcss-body-xs-emphasized-font-size, 0.75rem);font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.body-2xs,.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-size:var(--wcss-body-2xs-emphasized-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, 0.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, 300);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, 300);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, 0.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, 0.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, 0.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, 0.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, 0.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, 0.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(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer{max-width:100%}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{overflow:hidden;height:auto;text-overflow:ellipsis;white-space:nowrap}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
93327
93557
|
|