@aurodesignsystem/auro-formkit 2.0.0-beta.10 → 2.0.0-beta.11
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/.turbo/cache/0c8124a987c1cc05-meta.json +1 -1
- package/.turbo/cache/0cd512cdf86242c7-meta.json +1 -0
- package/.turbo/cache/{ff4dbfffc29255ab.tar.zst → 0cd512cdf86242c7.tar.zst} +0 -0
- package/.turbo/cache/123c83cd8727dff3-meta.json +1 -0
- package/.turbo/cache/123c83cd8727dff3.tar.zst +0 -0
- package/.turbo/cache/18129dba20f51b6b-meta.json +1 -1
- package/.turbo/cache/253e861af7025ed4-meta.json +1 -0
- package/.turbo/cache/253e861af7025ed4.tar.zst +0 -0
- package/.turbo/cache/2787020e69f50af2-meta.json +1 -1
- package/.turbo/cache/2a5295c8f561ed84-meta.json +1 -0
- package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
- package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
- package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
- package/.turbo/cache/4e3619d9dfc86809-meta.json +1 -0
- package/.turbo/cache/4e3619d9dfc86809.tar.zst +0 -0
- package/.turbo/cache/50993de942ec15a9-meta.json +1 -1
- package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -0
- package/.turbo/cache/50cd7dcfc9f820c5.tar.zst +0 -0
- package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
- package/.turbo/cache/5a0d3e26da304c62-meta.json +1 -0
- package/.turbo/cache/5a0d3e26da304c62.tar.zst +0 -0
- package/.turbo/cache/5c960af698582835-meta.json +1 -0
- package/.turbo/cache/5c960af698582835.tar.zst +0 -0
- package/.turbo/cache/5dbbb71dffc3f542-meta.json +1 -0
- package/.turbo/cache/5dbbb71dffc3f542.tar.zst +0 -0
- package/.turbo/cache/6081837e8943b62e-meta.json +1 -1
- package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
- package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
- package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
- package/.turbo/cache/7964d1656e9e702a-meta.json +1 -0
- package/.turbo/cache/7964d1656e9e702a.tar.zst +0 -0
- package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
- package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -1
- package/.turbo/cache/80aca269cd346fb4-meta.json +1 -0
- package/.turbo/cache/80aca269cd346fb4.tar.zst +0 -0
- package/.turbo/cache/8602fc2bb737a5cf-meta.json +1 -0
- package/.turbo/cache/89e0e7a6148e854f-meta.json +1 -0
- package/.turbo/cache/89e0e7a6148e854f.tar.zst +0 -0
- package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -1
- package/.turbo/cache/93c887fb93a10daa-meta.json +1 -0
- package/.turbo/cache/93c887fb93a10daa.tar.zst +0 -0
- package/.turbo/cache/94dae2a64e9d8356-meta.json +1 -0
- package/.turbo/cache/97f6fe83b54acf09-meta.json +1 -0
- package/.turbo/cache/{080ca6155e637d5d.tar.zst → 97f6fe83b54acf09.tar.zst} +0 -0
- package/.turbo/cache/98317b0d14d94df7-meta.json +1 -0
- package/.turbo/cache/98317b0d14d94df7.tar.zst +0 -0
- package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -1
- package/.turbo/cache/9cbcd13b1d031f63-meta.json +1 -0
- package/.turbo/cache/{8af27c076dc010c3.tar.zst → 9cbcd13b1d031f63.tar.zst} +0 -0
- package/.turbo/cache/afbbd49ed1a558b9-meta.json +1 -0
- package/.turbo/cache/b353ce8f6da43dea-meta.json +1 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
- package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
- package/.turbo/cache/b8db059a9b9ccb5d-meta.json +1 -0
- package/.turbo/cache/bc24a38aa1b1a102-meta.json +1 -0
- package/.turbo/cache/be0b95293ea517cc-meta.json +1 -1
- package/.turbo/cache/c3a4f7a3565d6706-meta.json +1 -0
- package/.turbo/cache/c3a4f7a3565d6706.tar.zst +0 -0
- package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -1
- package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
- package/.turbo/cache/c97b043e748e3580-meta.json +1 -0
- package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
- package/.turbo/cache/d775555355d6b8fc-meta.json +1 -1
- package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -1
- package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -1
- package/.turbo/cache/dc597b3ea4f61ec8-meta.json +1 -0
- package/.turbo/cache/dc597b3ea4f61ec8.tar.zst +0 -0
- package/.turbo/cache/df40b180126e5351-meta.json +1 -0
- package/.turbo/cache/df40b180126e5351.tar.zst +0 -0
- package/.turbo/cache/e5f217f77c32c93b-meta.json +1 -0
- package/.turbo/cache/{c2b51643f886a493.tar.zst → e5f217f77c32c93b.tar.zst} +0 -0
- package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
- package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -1
- package/.turbo/cache/ee1a3c1fe389da51-meta.json +1 -0
- package/.turbo/cache/f3c7b40f2c6a4094-meta.json +1 -0
- package/.turbo/cache/{b22ca87b2f7f9cc2.tar.zst → f3c7b40f2c6a4094.tar.zst} +0 -0
- package/.turbo/cache/f5958c3acb889631-meta.json +1 -0
- package/.turbo/cache/fb3809ac3f90e3b2-meta.json +1 -0
- package/.turbo/cache/{eb1dbe885532c1dc.tar.zst → fb3809ac3f90e3b2.tar.zst} +0 -0
- package/.turbo/cache/fd5ddfa43ebd8e5c-meta.json +1 -0
- package/.turbo/cache/fd5ddfa43ebd8e5c.tar.zst +0 -0
- package/CHANGELOG.md +13 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/checkbox/README.md +1 -1
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/README.md +4 -4
- package/components/combobox/demo/api.md +9 -9
- package/components/combobox/demo/api.min.js +2508 -642
- package/components/combobox/demo/index.min.js +2505 -639
- package/components/combobox/dist/auro-combobox.d.ts +9 -4
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/index.js +1863 -312
- package/components/combobox/src/auro-combobox.js +70 -26
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/counter/README.md +1 -1
- package/components/datepicker/.turbo/turbo-build.log +3 -3
- package/components/datepicker/README.md +4 -4
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +2 -2
- package/components/dropdown/README.md +1 -1
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/form/README.md +1 -1
- package/components/input/.turbo/turbo-build.log +3 -3
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/README.md +1 -1
- package/components/menu/.turbo/turbo-build.log +4 -2
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.md +57 -20
- package/components/menu/demo/api.min.js +620 -305
- package/components/menu/demo/index.min.js +618 -303
- package/components/menu/dist/auro-menu-utils.d.ts +43 -0
- package/components/menu/dist/auro-menu-utils.d.ts.map +1 -0
- package/components/menu/dist/auro-menu.d.ts +97 -81
- package/components/menu/dist/auro-menu.d.ts.map +1 -1
- package/components/menu/dist/index.d.ts +1 -0
- package/components/menu/dist/index.js +619 -304
- package/components/menu/src/auro-menu-utils.js +131 -0
- package/components/menu/src/auro-menu.js +493 -303
- package/components/menu/src/index.js +7 -0
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/radio/README.md +1 -1
- package/components/select/.turbo/turbo-build.log +5 -3
- package/components/select/README.md +3 -3
- package/components/select/demo/api.md +46 -11
- package/components/select/demo/api.min.js +2336 -485
- package/components/select/demo/index.min.js +2337 -486
- package/components/select/dist/auro-select.d.ts +17 -6
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +1706 -170
- package/components/select/src/auro-select.js +53 -24
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +7 -0
- package/components/select/src/styles/style.scss +13 -0
- package/package.json +1 -1
- package/.turbo/cache/026e4d886ba97e63-meta.json +0 -1
- package/.turbo/cache/026e4d886ba97e63.tar.zst +0 -0
- package/.turbo/cache/080ca6155e637d5d-meta.json +0 -1
- package/.turbo/cache/0b115e30ff606299-meta.json +0 -1
- package/.turbo/cache/0b115e30ff606299.tar.zst +0 -0
- package/.turbo/cache/1c630fb3411e4a41-meta.json +0 -1
- package/.turbo/cache/24b19ac5895e5dd6-meta.json +0 -1
- package/.turbo/cache/24b19ac5895e5dd6.tar.zst +0 -0
- package/.turbo/cache/29b72c73cbccb53d-meta.json +0 -1
- package/.turbo/cache/29b72c73cbccb53d.tar.zst +0 -0
- package/.turbo/cache/3e647c5863d32e6f-meta.json +0 -1
- package/.turbo/cache/3e647c5863d32e6f.tar.zst +0 -0
- package/.turbo/cache/43f5206cc4e69b44-meta.json +0 -1
- package/.turbo/cache/4a85ec226b585fd5-meta.json +0 -1
- package/.turbo/cache/50a29c70b93c57dd-meta.json +0 -1
- package/.turbo/cache/50a29c70b93c57dd.tar.zst +0 -0
- package/.turbo/cache/56455145cd768755-meta.json +0 -1
- package/.turbo/cache/56455145cd768755.tar.zst +0 -0
- package/.turbo/cache/5c06332cf9f132da-meta.json +0 -1
- package/.turbo/cache/5e613afc6868d0e2-meta.json +0 -1
- package/.turbo/cache/5e613afc6868d0e2.tar.zst +0 -0
- package/.turbo/cache/639dac15b979bedc-meta.json +0 -1
- package/.turbo/cache/664c2e08614fd212-meta.json +0 -1
- package/.turbo/cache/6c51b0ebfc086faa-meta.json +0 -1
- package/.turbo/cache/6c51b0ebfc086faa.tar.zst +0 -0
- package/.turbo/cache/7216d994164825fb-meta.json +0 -1
- package/.turbo/cache/7216d994164825fb.tar.zst +0 -0
- package/.turbo/cache/83a167e135cb431a-meta.json +0 -1
- package/.turbo/cache/83a167e135cb431a.tar.zst +0 -0
- package/.turbo/cache/8af27c076dc010c3-meta.json +0 -1
- package/.turbo/cache/953c8216249d3509-meta.json +0 -1
- package/.turbo/cache/95a5e76ffd8c5110-meta.json +0 -1
- package/.turbo/cache/95a5e76ffd8c5110.tar.zst +0 -0
- package/.turbo/cache/a8b0fa0a9aa707c5-meta.json +0 -1
- package/.turbo/cache/a8b0fa0a9aa707c5.tar.zst +0 -0
- package/.turbo/cache/b22ca87b2f7f9cc2-meta.json +0 -1
- package/.turbo/cache/b7bbe2e7d44b77f0-meta.json +0 -1
- package/.turbo/cache/b7bbe2e7d44b77f0.tar.zst +0 -0
- package/.turbo/cache/c2b51643f886a493-meta.json +0 -1
- package/.turbo/cache/c74d369a0475b124-meta.json +0 -1
- package/.turbo/cache/c7f5a276ddb73cf7-meta.json +0 -1
- package/.turbo/cache/c96933d40404e4c8-meta.json +0 -1
- package/.turbo/cache/c96933d40404e4c8.tar.zst +0 -0
- package/.turbo/cache/eb1dbe885532c1dc-meta.json +0 -1
- package/.turbo/cache/f1f6744948f1b18f-meta.json +0 -1
- package/.turbo/cache/f1f6744948f1b18f.tar.zst +0 -0
- package/.turbo/cache/feefbc25d550c1cd-meta.json +0 -1
- package/.turbo/cache/ff4dbfffc29255ab-meta.json +0 -1
- /package/.turbo/cache/{639dac15b979bedc.tar.zst → 2a5295c8f561ed84.tar.zst} +0 -0
- /package/.turbo/cache/{1c630fb3411e4a41.tar.zst → 8602fc2bb737a5cf.tar.zst} +0 -0
- /package/.turbo/cache/{664c2e08614fd212.tar.zst → 94dae2a64e9d8356.tar.zst} +0 -0
- /package/.turbo/cache/{c7f5a276ddb73cf7.tar.zst → afbbd49ed1a558b9.tar.zst} +0 -0
- /package/.turbo/cache/{43f5206cc4e69b44.tar.zst → b353ce8f6da43dea.tar.zst} +0 -0
- /package/.turbo/cache/{c74d369a0475b124.tar.zst → b8db059a9b9ccb5d.tar.zst} +0 -0
- /package/.turbo/cache/{4a85ec226b585fd5.tar.zst → bc24a38aa1b1a102.tar.zst} +0 -0
- /package/.turbo/cache/{5c06332cf9f132da.tar.zst → c97b043e748e3580.tar.zst} +0 -0
- /package/.turbo/cache/{953c8216249d3509.tar.zst → ee1a3c1fe389da51.tar.zst} +0 -0
- /package/.turbo/cache/{feefbc25d550c1cd.tar.zst → f5958c3acb889631.tar.zst} +0 -0
|
@@ -3,39 +3,39 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const t$
|
|
6
|
+
const t$7=globalThis,e$9=t$7.ShadowRoot&&(undefined===t$7.ShadyCSS||t$7.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$8=Symbol(),o$a=new WeakMap;let n$9 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$8)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$9&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$a.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$a.set(s,t));}return t}toString(){return this.cssText}};const r$a=t=>new n$9("string"==typeof t?t:t+"",undefined,s$8),i$c=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$9(o,t,s$8)},S$5=(s,o)=>{if(e$9)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$7.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$8=e$9?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$a(e)})(t):t;
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/const{is:i$
|
|
12
|
+
*/const{is:i$b,defineProperty:e$8,getOwnPropertyDescriptor:r$9,getOwnPropertyNames:h$5,getOwnPropertySymbols:o$9,getPrototypeOf:n$8}=Object,a$7=globalThis,c$7=a$7.trustedTypes,l$7=c$7?c$7.emptyScript:"",p$6=a$7.reactiveElementPolyfillSupport,d$5=(t,s)=>t,u$9={toAttribute(t,s){switch(s){case Boolean:t=t?l$7:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$5=(t,s)=>!i$b(t,s),y$5={attribute:true,type:String,converter:u$9,reflect:false,hasChanged:f$5};Symbol.metadata??=Symbol("metadata"),a$7.litPropertyMetadata??=new WeakMap;let b$3 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$5){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$8(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$9(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$5}static _$Ei(){if(this.hasOwnProperty(d$5("elementProperties")))return;const t=n$8(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$5("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$5("properties"))){const t=this.properties,s=[...h$5(t),...o$9(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$8(s));}else undefined!==s&&i.push(c$8(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$5(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$9).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u$9;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$5)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$3.elementStyles=[],b$3.shadowRootOptions={mode:"open"},b$3[d$5("elementProperties")]=new Map,b$3[d$5("finalized")]=new Map,p$6?.({ReactiveElement:b$3}),(a$7.reactiveElementVersions??=[]).push("2.0.4");
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
18
|
*/
|
|
19
|
-
const t$
|
|
19
|
+
const t$6=globalThis,i$a=t$6.trustedTypes,s$7=i$a?i$a.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$7="$lit$",h$4=`lit$${Math.random().toFixed(9).slice(2)}$`,o$8="?"+h$4,n$7=`<${o$8}>`,r$8=document,l$6=()=>r$8.createComment(""),c$6=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$6=Array.isArray,u$8=t=>a$6(t)||"function"==typeof t?.[Symbol.iterator],d$4="[ \t\n\f\r]",f$4=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$4=/-->/g,_$3=/>/g,m$4=RegExp(`>|${d$4}(?:([^\\s"'>=/]+)(${d$4}*=${d$4}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$5=/'/g,g$3=/"/g,$$3=/^(?:script|style|textarea|title)$/i,y$4=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$3=y$4(1),T$3=Symbol.for("lit-noChange"),E$3=Symbol.for("lit-nothing"),A$3=new WeakMap,C$3=r$8.createTreeWalker(r$8,129);function P$3(t,i){if(!a$6(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$7?s$7.createHTML(i):i}const V$3=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$4;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$4?"!--"===u[1]?c=v$4:undefined!==u[1]?c=_$3:undefined!==u[2]?($$3.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$4):undefined!==u[3]&&(c=m$4):c===m$4?">"===u[0]?(c=r??f$4,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$4:'"'===u[3]?g$3:p$5):c===g$3||c===p$5?c=m$4:c===v$4||c===_$3?c=f$4:(c=m$4,r=undefined);const x=c===m$4&&t[i+1].startsWith("/>")?" ":"";l+=c===f$4?s+n$7:d>=0?(o.push(a),s.slice(0,d)+e$7+s.slice(d)+h$4+x):s+h$4+(-2===d?i:x);}return [P$3(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$3 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$3(t,s);if(this.el=N.createElement(f,n),C$3.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$3.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$7)){const i=v[a++],s=r.getAttribute(t).split(h$4),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$3:"?"===e[1]?I$3:"@"===e[1]?L$3:k$3}),r.removeAttribute(t);}else t.startsWith(h$4)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$3.test(r.tagName)){const t=r.textContent.split(h$4),s=t.length-1;if(s>0){r.textContent=i$a?i$a.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$6()),C$3.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$6());}}}else if(8===r.nodeType)if(r.data===o$8)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$4,t+1));)d.push({type:7,index:c}),t+=h$4.length-1;}c++;}}static createElement(t,i){const s=r$8.createElement("template");return s.innerHTML=t,s}};function S$4(t,i,s=t,e){if(i===T$3)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$6(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$4(t,h._$AS(t,i.values),h,e)),i}let M$4 = class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$8).importNode(i,true);C$3.currentNode=e;let h=C$3.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R$3(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$3(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$3.nextNode(),o++);}return C$3.currentNode=r$8,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$3 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$3,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$4(this,t,i),c$6(t)?t===E$3||null==t||""===t?(this._$AH!==E$3&&this._$AR(),this._$AH=E$3):t!==this._$AH&&t!==T$3&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$8(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$3&&c$6(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$8.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N$3.createElement(P$3(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$4(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$3.get(t.strings);return undefined===i&&A$3.set(t.strings,i=new N$3(t)),i}k(t){a$6(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$6()),this.O(l$6()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$3 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$3,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$3;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$4(this,t,i,0),o=!c$6(t)||t!==this._$AH&&t!==T$3,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$4(this,e[s+n],i,n),r===T$3&&(r=this._$AH[n]),o||=!c$6(r)||r!==this._$AH[n],r===E$3?t=E$3:t!==E$3&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$3?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$3 = class H extends k$3{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$3?undefined:t;}};let I$3 = class I extends k$3{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$3);}};let L$3 = class L extends k$3{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$4(this,t,i,0)??E$3)===T$3)return;const s=this._$AH,e=t===E$3&&s!==E$3||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$3&&(s===E$3||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$3 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$4(this,t);}};const j$3=t$6.litHtmlPolyfillSupport;j$3?.(N$3,R$3),(t$6.litHtmlVersions??=[]).push("3.2.1");const B$3=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$3(i.insertBefore(l$6(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/let r$
|
|
25
|
+
*/let r$7 = class r extends b$3{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$3(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$3}};r$7._$litElement$=true,r$7["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$7});const i$9=globalThis.litElementPolyfillSupport;i$9?.({LitElement:r$7});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2020 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
31
|
*/
|
|
32
|
-
const a$
|
|
32
|
+
const a$5=Symbol.for(""),o$7=t=>{if(t?.r===a$5)return t?._$litStatic$},s$6=t=>({_$litStatic$:t,r:a$5}),i$8=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$5}),l$5=new Map,n$6=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$7(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$5.get(t))&&(n.raw=n,l$5.set(t,r=n)),e=u;}return t(r,...e)},u$7=n$6(x$3);
|
|
33
33
|
|
|
34
34
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
35
35
|
// See LICENSE in the project root for license information.
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
let AuroDependencyVersioning$
|
|
38
|
+
let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -61,7 +61,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
61
61
|
*/
|
|
62
62
|
generateTag(baseName, version, tagClass) {
|
|
63
63
|
const elementName = this.generateElementName(baseName, version);
|
|
64
|
-
const tag = i$
|
|
64
|
+
const tag = i$8`${s$6(elementName)}`;
|
|
65
65
|
|
|
66
66
|
if (!customElements.get(elementName)) {
|
|
67
67
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -78,7 +78,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
78
78
|
|
|
79
79
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
80
80
|
|
|
81
|
-
let AuroLibraryRuntimeUtils$
|
|
81
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
82
82
|
|
|
83
83
|
/* eslint-disable jsdoc/require-param */
|
|
84
84
|
|
|
@@ -147,7 +147,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
147
147
|
|
|
148
148
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
149
149
|
constructor() {
|
|
150
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
150
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
/**
|
|
@@ -460,33 +460,33 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
460
460
|
* Copyright 2017 Google LLC
|
|
461
461
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
462
462
|
*/
|
|
463
|
-
const t$2$
|
|
463
|
+
const t$2$2=globalThis,i$5$2=t$2$2.trustedTypes,s$2$2=i$5$2?i$5$2.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$4$2="$lit$",h$1$2=`lit$${Math.random().toFixed(9).slice(2)}$`,o$4$2="?"+h$1$2,n$3$2=`<${o$4$2}>`,r$3$2=document,l$2$2=()=>r$3$2.createComment(""),c$2$2=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2$2=Array.isArray,u$2$2=t=>a$2$2(t)||"function"==typeof t?.[Symbol.iterator],d$1$2="[ \t\n\f\r]",f$1$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,_$2=/>/g,m$3=RegExp(`>|${d$1$2}(?:([^\\s"'>=/]+)(${d$1$2}*=${d$1$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1$2=/'/g,g$2=/"/g,$$2=/^(?:script|style|textarea|title)$/i,y$1$2=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$2=y$1$2(1),T$2=Symbol.for("lit-noChange"),E$2=Symbol.for("lit-nothing"),A$2=new WeakMap,C$2=r$3$2.createTreeWalker(r$3$2,129);function P$2(t,i){if(!a$2$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$2$2?s$2$2.createHTML(i):i}const V$2=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$1$2;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$1$2?"!--"===u[1]?c=v$3:undefined!==u[1]?c=_$2:undefined!==u[2]?($$2.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$3):undefined!==u[3]&&(c=m$3):c===m$3?">"===u[0]?(c=r??f$1$2,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$3:'"'===u[3]?g$2:p$1$2):c===g$2||c===p$1$2?c=m$3:c===v$3||c===_$2?c=f$1$2:(c=m$3,r=undefined);const x=c===m$3&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1$2?s+n$3$2:d>=0?(o.push(a),s.slice(0,d)+e$4$2+s.slice(d)+h$1$2+x):s+h$1$2+(-2===d?i:x);}return [P$2(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$2 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$2(t,s);if(this.el=N.createElement(f,n),C$2.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$2.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$4$2)){const i=v[a++],s=r.getAttribute(t).split(h$1$2),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$2:"?"===e[1]?I$2:"@"===e[1]?L$2:k$2}),r.removeAttribute(t);}else t.startsWith(h$1$2)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$2.test(r.tagName)){const t=r.textContent.split(h$1$2),s=t.length-1;if(s>0){r.textContent=i$5$2?i$5$2.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2$2()),C$2.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2$2());}}}else if(8===r.nodeType)if(r.data===o$4$2)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1$2,t+1));)d.push({type:7,index:c}),t+=h$1$2.length-1;}c++;}}static createElement(t,i){const s=r$3$2.createElement("template");return s.innerHTML=t,s}};function S$1$2(t,i,s=t,e){if(i===T$2)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$2$2(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$1$2(t,h._$AS(t,i.values),h,e)),i}let M$3 = class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$3$2).importNode(i,true);C$2.currentNode=e;let h=C$2.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R$2(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$2(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$2.nextNode(),o++);}return C$2.currentNode=r$3$2,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$2 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$2,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1$2(this,t,i),c$2$2(t)?t===E$2||null==t||""===t?(this._$AH!==E$2&&this._$AR(),this._$AH=E$2):t!==this._$AH&&t!==T$2&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$2$2(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$2&&c$2$2(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3$2.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N$2.createElement(P$2(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$3(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$2.get(t.strings);return undefined===i&&A$2.set(t.strings,i=new N$2(t)),i}k(t){a$2$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2$2()),this.O(l$2$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$2 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$2,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$2;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$1$2(this,t,i,0),o=!c$2$2(t)||t!==this._$AH&&t!==T$2,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$1$2(this,e[s+n],i,n),r===T$2&&(r=this._$AH[n]),o||=!c$2$2(r)||r!==this._$AH[n],r===E$2?t=E$2:t!==E$2&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$2?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$2 = class H extends k$2{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$2?undefined:t;}};let I$2 = class I extends k$2{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$2);}};let L$2 = class L extends k$2{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$1$2(this,t,i,0)??E$2)===T$2)return;const s=this._$AH,e=t===E$2&&s!==E$2||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$2&&(s===E$2||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$2 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1$2(this,t);}};const j$2=t$2$2.litHtmlPolyfillSupport;j$2?.(N$2,R$2),(t$2$2.litHtmlVersions??=[]).push("3.2.1");const B$2=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$2(i.insertBefore(l$2$2(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
466
|
* @license
|
|
467
467
|
* Copyright 2020 Google LLC
|
|
468
468
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
469
469
|
*/
|
|
470
|
-
const a$1$
|
|
470
|
+
const a$1$2=Symbol.for(""),o$3$2=t=>{if(t?.r===a$1$2)return t?._$litStatic$},s$1$2=t=>({_$litStatic$:t,r:a$1$2}),i$4$2=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$1$2}),l$1$2=new Map,n$2$2=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$3$2(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$1$2.get(t))&&(n.raw=n,l$1$2.set(t,r=n)),e=u;}return t(r,...e)},u$1$2=n$2$2(x$2);
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
473
|
* @license
|
|
474
474
|
* Copyright 2019 Google LLC
|
|
475
475
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
476
476
|
*/
|
|
477
|
-
const t$1$
|
|
477
|
+
const t$1$2=globalThis,e$3$2=t$1$2.ShadowRoot&&(undefined===t$1$2.ShadyCSS||t$1$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$5=Symbol(),o$2$2=new WeakMap;let n$1$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$3$2&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$2$2.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2$2.set(s,t));}return t}toString(){return this.cssText}};const r$2$2=t=>new n$1$2("string"==typeof t?t:t+"",undefined,s$5),i$3$2=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$1$2(o,t,s$5)},S$3=(s,o)=>{if(e$3$2)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1$2.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1$2=e$3$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2$2(e)})(t):t;
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
480
|
* @license
|
|
481
481
|
* Copyright 2017 Google LLC
|
|
482
482
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
483
|
-
*/const{is:i$2$
|
|
483
|
+
*/const{is:i$2$2,defineProperty:e$2$2,getOwnPropertyDescriptor:r$1$2,getOwnPropertyNames:h$3,getOwnPropertySymbols:o$1$2,getPrototypeOf:n$5}=Object,a$4=globalThis,c$5=a$4.trustedTypes,l$4=c$5?c$5.emptyScript:"",p$4=a$4.reactiveElementPolyfillSupport,d$3=(t,s)=>t,u$6={toAttribute(t,s){switch(s){case Boolean:t=t?l$4:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$3=(t,s)=>!i$2$2(t,s),y$3={attribute:true,type:String,converter:u$6,reflect:false,hasChanged:f$3};Symbol.metadata??=Symbol("metadata"),a$4.litPropertyMetadata??=new WeakMap;let b$2 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$3){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$2$2(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$1$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$3}static _$Ei(){if(this.hasOwnProperty(d$3("elementProperties")))return;const t=n$5(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$3("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$3("properties"))){const t=this.properties,s=[...h$3(t),...o$1$2(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$1$2(s));}else undefined!==s&&i.push(c$1$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$3(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$6).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u$6;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$3)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$2.elementStyles=[],b$2.shadowRootOptions={mode:"open"},b$2[d$3("elementProperties")]=new Map,b$2[d$3("finalized")]=new Map,p$4?.({ReactiveElement:b$2}),(a$4.reactiveElementVersions??=[]).push("2.0.4");
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
486
|
* @license
|
|
487
487
|
* Copyright 2017 Google LLC
|
|
488
488
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
489
|
-
*/let r$
|
|
489
|
+
*/let r$6 = class r extends b$2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$2(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$2}};r$6._$litElement$=true,r$6["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$6});const i$1$2=globalThis.litElementPolyfillSupport;i$1$2?.({LitElement:r$6});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
490
490
|
|
|
491
491
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
492
492
|
// See LICENSE in the project root for license information.
|
|
@@ -495,7 +495,7 @@ const t$1$1=globalThis,e$3$1=t$1$1.ShadowRoot&&(undefined===t$1$1.ShadyCSS||t$1$
|
|
|
495
495
|
|
|
496
496
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
497
497
|
|
|
498
|
-
let AuroLibraryRuntimeUtils$
|
|
498
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
499
499
|
|
|
500
500
|
/* eslint-disable jsdoc/require-param */
|
|
501
501
|
|
|
@@ -2444,7 +2444,7 @@ class AuroFloatingUI {
|
|
|
2444
2444
|
// See LICENSE in the project root for license information.
|
|
2445
2445
|
|
|
2446
2446
|
|
|
2447
|
-
let AuroDependencyVersioning$
|
|
2447
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
2448
2448
|
|
|
2449
2449
|
/**
|
|
2450
2450
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -2470,7 +2470,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
2470
2470
|
*/
|
|
2471
2471
|
generateTag(baseName, version, tagClass) {
|
|
2472
2472
|
const elementName = this.generateElementName(baseName, version);
|
|
2473
|
-
const tag = i$4$
|
|
2473
|
+
const tag = i$4$2`${s$1$2(elementName)}`;
|
|
2474
2474
|
|
|
2475
2475
|
if (!customElements.get(elementName)) {
|
|
2476
2476
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -2485,19 +2485,19 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
2485
2485
|
* Copyright 2017 Google LLC
|
|
2486
2486
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2487
2487
|
*/
|
|
2488
|
-
const t$
|
|
2488
|
+
const t$5={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$1$2=t=>(...e)=>({_$litDirective$:t,values:e});let i$7 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
2489
2489
|
|
|
2490
2490
|
/**
|
|
2491
2491
|
* @license
|
|
2492
2492
|
* Copyright 2018 Google LLC
|
|
2493
2493
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2494
|
-
*/const e$
|
|
2494
|
+
*/const e$6=e$1$2(class extends i$7{constructor(t$1){if(super(t$1),t$1.type!==t$5.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$2}});
|
|
2495
2495
|
|
|
2496
2496
|
/**
|
|
2497
2497
|
* @license
|
|
2498
2498
|
* Copyright 2018 Google LLC
|
|
2499
2499
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2500
|
-
*/const o$
|
|
2500
|
+
*/const o$6=o=>o??E$2;
|
|
2501
2501
|
|
|
2502
2502
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2503
2503
|
// See LICENSE in the project root for license information.
|
|
@@ -2509,7 +2509,7 @@ const t$4={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6}
|
|
|
2509
2509
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
2510
2510
|
*/
|
|
2511
2511
|
|
|
2512
|
-
let AuroElement$
|
|
2512
|
+
let AuroElement$2 = class AuroElement extends r$6 {
|
|
2513
2513
|
|
|
2514
2514
|
// function to define props used within the scope of this component
|
|
2515
2515
|
static get properties() {
|
|
@@ -2535,11 +2535,11 @@ let AuroElement$1 = class AuroElement extends r$5 {
|
|
|
2535
2535
|
}
|
|
2536
2536
|
};
|
|
2537
2537
|
|
|
2538
|
-
var error$
|
|
2538
|
+
var error$2 = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
2539
2539
|
|
|
2540
2540
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
2541
2541
|
|
|
2542
|
-
const _fetchMap$
|
|
2542
|
+
const _fetchMap$2 = new Map();
|
|
2543
2543
|
|
|
2544
2544
|
/**
|
|
2545
2545
|
* A callback to parse Response body.
|
|
@@ -2557,15 +2557,15 @@ const _fetchMap$1 = new Map();
|
|
|
2557
2557
|
* @param {ResponseParser} [options.responseParser=(response) => response.text()]
|
|
2558
2558
|
* @returns {Promise}
|
|
2559
2559
|
*/
|
|
2560
|
-
const cacheFetch$
|
|
2560
|
+
const cacheFetch$2 = (uri, options = {}) => {
|
|
2561
2561
|
const responseParser = options.responseParser || ((response) => response.text());
|
|
2562
|
-
if (!_fetchMap$
|
|
2563
|
-
_fetchMap$
|
|
2562
|
+
if (!_fetchMap$2.has(uri)) {
|
|
2563
|
+
_fetchMap$2.set(uri, fetch(uri).then(responseParser));
|
|
2564
2564
|
}
|
|
2565
|
-
return _fetchMap$
|
|
2565
|
+
return _fetchMap$2.get(uri);
|
|
2566
2566
|
};
|
|
2567
2567
|
|
|
2568
|
-
var styleCss$2$
|
|
2568
|
+
var styleCss$2$2 = i$3$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
2569
2569
|
|
|
2570
2570
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2571
2571
|
// See LICENSE in the project root for license information.
|
|
@@ -2578,7 +2578,7 @@ var styleCss$2$1 = i$3$1`*,*:before,*:after{box-sizing:border-box}@media(prefers
|
|
|
2578
2578
|
*/
|
|
2579
2579
|
|
|
2580
2580
|
// build the component class
|
|
2581
|
-
let BaseIcon$
|
|
2581
|
+
let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
2582
2582
|
constructor() {
|
|
2583
2583
|
super();
|
|
2584
2584
|
this.onDark = false;
|
|
@@ -2604,8 +2604,8 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
2604
2604
|
}
|
|
2605
2605
|
|
|
2606
2606
|
static get styles() {
|
|
2607
|
-
return i$3$
|
|
2608
|
-
${styleCss$2$
|
|
2607
|
+
return i$3$2`
|
|
2608
|
+
${styleCss$2$2}
|
|
2609
2609
|
`;
|
|
2610
2610
|
}
|
|
2611
2611
|
|
|
@@ -2620,9 +2620,9 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
2620
2620
|
let iconHTML = '';
|
|
2621
2621
|
|
|
2622
2622
|
if (category === 'logos') {
|
|
2623
|
-
iconHTML = await cacheFetch$
|
|
2623
|
+
iconHTML = await cacheFetch$2(`${this.uri}/${category}/${name}.svg`);
|
|
2624
2624
|
} else {
|
|
2625
|
-
iconHTML = await cacheFetch$
|
|
2625
|
+
iconHTML = await cacheFetch$2(`${this.uri}/icons/${category}/${name}.svg`);
|
|
2626
2626
|
}
|
|
2627
2627
|
|
|
2628
2628
|
const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
|
|
@@ -2638,7 +2638,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
2638
2638
|
if (svg) {
|
|
2639
2639
|
this.svg = svg;
|
|
2640
2640
|
} else if (!svg) {
|
|
2641
|
-
const penDOM = new DOMParser().parseFromString(error$
|
|
2641
|
+
const penDOM = new DOMParser().parseFromString(error$2.svg, 'text/html');
|
|
2642
2642
|
|
|
2643
2643
|
this.svg = penDOM.body.firstChild;
|
|
2644
2644
|
}
|
|
@@ -2646,9 +2646,9 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
2646
2646
|
}
|
|
2647
2647
|
};
|
|
2648
2648
|
|
|
2649
|
-
var tokensCss$1$
|
|
2649
|
+
var tokensCss$1$2 = i$3$2`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
|
|
2650
2650
|
|
|
2651
|
-
var colorCss$2$
|
|
2651
|
+
var colorCss$2$2 = i$3$2`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
2652
2652
|
|
|
2653
2653
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2654
2654
|
// See LICENSE in the project root for license information.
|
|
@@ -2681,7 +2681,7 @@ var colorCss$2$1 = i$3$1`:host{color:var(--ds-auro-icon-color)}:host([customColo
|
|
|
2681
2681
|
*/
|
|
2682
2682
|
|
|
2683
2683
|
// build the component class
|
|
2684
|
-
let AuroIcon$
|
|
2684
|
+
let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
2685
2685
|
constructor() {
|
|
2686
2686
|
super();
|
|
2687
2687
|
|
|
@@ -2710,7 +2710,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2710
2710
|
this.success = false;
|
|
2711
2711
|
this.tertiary = false;
|
|
2712
2712
|
this.warning = false;
|
|
2713
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
2713
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
2714
2714
|
}
|
|
2715
2715
|
|
|
2716
2716
|
// function to define props used within the scope of this component
|
|
@@ -2792,9 +2792,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2792
2792
|
static get styles() {
|
|
2793
2793
|
return [
|
|
2794
2794
|
super.styles,
|
|
2795
|
-
i$3$
|
|
2796
|
-
i$3$
|
|
2797
|
-
i$3$
|
|
2795
|
+
i$3$2`${tokensCss$1$2}`,
|
|
2796
|
+
i$3$2`${styleCss$2$2}`,
|
|
2797
|
+
i$3$2`${colorCss$2$2}`
|
|
2798
2798
|
];
|
|
2799
2799
|
}
|
|
2800
2800
|
|
|
@@ -2807,7 +2807,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2807
2807
|
*
|
|
2808
2808
|
*/
|
|
2809
2809
|
static register(name = "auro-icon") {
|
|
2810
|
-
AuroLibraryRuntimeUtils$
|
|
2810
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
|
|
2811
2811
|
}
|
|
2812
2812
|
|
|
2813
2813
|
connectedCallback() {
|
|
@@ -2836,20 +2836,20 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2836
2836
|
'wrapper': true,
|
|
2837
2837
|
};
|
|
2838
2838
|
|
|
2839
|
-
return x$
|
|
2839
|
+
return x$2`
|
|
2840
2840
|
<div
|
|
2841
|
-
class="${e$
|
|
2842
|
-
title="${o$
|
|
2843
|
-
<span aria-hidden="${o$
|
|
2844
|
-
${this.customSvg ? x$
|
|
2841
|
+
class="${e$6(classes)}"
|
|
2842
|
+
title="${o$6(this.title || undefined)}">
|
|
2843
|
+
<span aria-hidden="${o$6(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
2844
|
+
${this.customSvg ? x$2`
|
|
2845
2845
|
<slot name="svg"></slot>
|
|
2846
|
-
` : x$
|
|
2846
|
+
` : x$2`
|
|
2847
2847
|
${this.svg}
|
|
2848
2848
|
`
|
|
2849
2849
|
}
|
|
2850
2850
|
</span>
|
|
2851
2851
|
|
|
2852
|
-
<div class="${e$
|
|
2852
|
+
<div class="${e$6(a11y)}">
|
|
2853
2853
|
<slot></slot>
|
|
2854
2854
|
</div>
|
|
2855
2855
|
</div>
|
|
@@ -2857,17 +2857,17 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
};
|
|
2859
2859
|
|
|
2860
|
-
var iconVersion$
|
|
2860
|
+
var iconVersion$2 = '6.1.2';
|
|
2861
2861
|
|
|
2862
|
-
var styleCss$1$
|
|
2862
|
+
var styleCss$1$2 = i$3$2`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2863
2863
|
|
|
2864
|
-
var colorCss$1$
|
|
2864
|
+
var colorCss$1$2 = i$3$2`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}.helpText{color:var(--ds-auro-dropdown-help-text-color)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #cc1816);--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
2865
2865
|
|
|
2866
|
-
var tokensCss$
|
|
2866
|
+
var tokensCss$5 = i$3$2`:host{--ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
2867
2867
|
|
|
2868
|
-
var styleCss$5 = i$3$
|
|
2868
|
+
var styleCss$5 = i$3$2`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
2869
2869
|
|
|
2870
|
-
var colorCss$
|
|
2870
|
+
var colorCss$5 = i$3$2`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2871
2871
|
|
|
2872
2872
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2873
2873
|
// See LICENSE in the project root for license information.
|
|
@@ -2887,7 +2887,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2887
2887
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2888
2888
|
*/
|
|
2889
2889
|
|
|
2890
|
-
class AuroDropdownBib extends r$
|
|
2890
|
+
class AuroDropdownBib extends r$6 {
|
|
2891
2891
|
|
|
2892
2892
|
constructor() {
|
|
2893
2893
|
super();
|
|
@@ -2901,8 +2901,8 @@ class AuroDropdownBib extends r$5 {
|
|
|
2901
2901
|
static get styles() {
|
|
2902
2902
|
return [
|
|
2903
2903
|
styleCss$5,
|
|
2904
|
-
colorCss$
|
|
2905
|
-
tokensCss$
|
|
2904
|
+
colorCss$5,
|
|
2905
|
+
tokensCss$5
|
|
2906
2906
|
];
|
|
2907
2907
|
}
|
|
2908
2908
|
|
|
@@ -2953,7 +2953,7 @@ class AuroDropdownBib extends r$5 {
|
|
|
2953
2953
|
|
|
2954
2954
|
// function that renders the HTML and CSS into the scope of the component
|
|
2955
2955
|
render() {
|
|
2956
|
-
return u$1$
|
|
2956
|
+
return u$1$2`
|
|
2957
2957
|
<div class="container" part="bibContainer">
|
|
2958
2958
|
<slot></slot>
|
|
2959
2959
|
</div>
|
|
@@ -2983,7 +2983,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
2983
2983
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
2984
2984
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
2985
2985
|
*/
|
|
2986
|
-
class AuroDropdown extends r$
|
|
2986
|
+
class AuroDropdown extends r$6 {
|
|
2987
2987
|
constructor() {
|
|
2988
2988
|
super();
|
|
2989
2989
|
|
|
@@ -3022,7 +3022,7 @@ class AuroDropdown extends r$5 {
|
|
|
3022
3022
|
/**
|
|
3023
3023
|
* @private
|
|
3024
3024
|
*/
|
|
3025
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
3025
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
3026
3026
|
|
|
3027
3027
|
/**
|
|
3028
3028
|
* @private
|
|
@@ -3042,8 +3042,8 @@ class AuroDropdown extends r$5 {
|
|
|
3042
3042
|
/**
|
|
3043
3043
|
* Generate unique names for dependency components.
|
|
3044
3044
|
*/
|
|
3045
|
-
const versioning = new AuroDependencyVersioning$
|
|
3046
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$
|
|
3045
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
3046
|
+
this.iconTag = versioning.generateTag('auro-icon', iconVersion$2, AuroIcon$2);
|
|
3047
3047
|
}
|
|
3048
3048
|
|
|
3049
3049
|
/**
|
|
@@ -3223,9 +3223,9 @@ class AuroDropdown extends r$5 {
|
|
|
3223
3223
|
|
|
3224
3224
|
static get styles() {
|
|
3225
3225
|
return [
|
|
3226
|
-
colorCss$1$
|
|
3227
|
-
styleCss$1$
|
|
3228
|
-
tokensCss$
|
|
3226
|
+
colorCss$1$2,
|
|
3227
|
+
styleCss$1$2,
|
|
3228
|
+
tokensCss$5
|
|
3229
3229
|
];
|
|
3230
3230
|
}
|
|
3231
3231
|
|
|
@@ -3238,7 +3238,7 @@ class AuroDropdown extends r$5 {
|
|
|
3238
3238
|
*
|
|
3239
3239
|
*/
|
|
3240
3240
|
static register(name = "auro-dropdown") {
|
|
3241
|
-
AuroLibraryRuntimeUtils$
|
|
3241
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
3242
3242
|
}
|
|
3243
3243
|
|
|
3244
3244
|
connectedCallback() {
|
|
@@ -3362,7 +3362,7 @@ class AuroDropdown extends r$5 {
|
|
|
3362
3362
|
|
|
3363
3363
|
// function that renders the HTML and CSS into the scope of the component
|
|
3364
3364
|
render() {
|
|
3365
|
-
return u$1$
|
|
3365
|
+
return u$1$2`
|
|
3366
3366
|
<div>
|
|
3367
3367
|
<div
|
|
3368
3368
|
id="trigger"
|
|
@@ -3383,7 +3383,7 @@ class AuroDropdown extends r$5 {
|
|
|
3383
3383
|
@slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
|
|
3384
3384
|
</div>
|
|
3385
3385
|
</div>
|
|
3386
|
-
${this.chevron || this.common ? u$1$
|
|
3386
|
+
${this.chevron || this.common ? u$1$2`
|
|
3387
3387
|
<div
|
|
3388
3388
|
id="showStateIcon"
|
|
3389
3389
|
part="chevron">
|
|
@@ -3427,46 +3427,46 @@ var dropdownVersion = '3.0.0';
|
|
|
3427
3427
|
* Copyright 2017 Google LLC
|
|
3428
3428
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3429
3429
|
*/
|
|
3430
|
-
const t$3=globalThis,i$5=t$3.trustedTypes,s$3=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$4="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$4="?"+h$1,n$3=`<${o$4}>`,r$4=document,l$2=()=>r$4.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$4=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_=/>/g,m$1=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/g,g=/"/g
|
|
3430
|
+
const t$3=globalThis,i$5$1=t$3.trustedTypes,s$3=i$5$1?i$5$1.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$4$1="$lit$",h$1$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$4$1="?"+h$1$1,n$3$1=`<${o$4$1}>`,r$4=document,l$2$1=()=>r$4.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2$1=Array.isArray,u$4=t=>a$2$1(t)||"function"==typeof t?.[Symbol.iterator],d$1$1="[ \t\n\f\r]",f$1$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$1$1}(?:([^\\s"'>=/]+)(${d$1$1}*=${d$1$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$1$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$1$1(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$4.createTreeWalker(r$4,129);function P$1(t,i){if(!a$2$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$3?s$3.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$1$1;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$1$1?"!--"===u[1]?c=v$1:undefined!==u[1]?c=_$1:undefined!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):undefined!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f$1$1,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m$1:'"'===u[3]?g$1:p$2):c===g$1||c===p$2?c=m$1:c===v$1||c===_$1?c=f$1$1:(c=m$1,r=undefined);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1$1?s+n$3$1:d>=0?(o.push(a),s.slice(0,d)+e$4$1+s.slice(d)+h$1$1+x):s+h$1$1+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$4$1)){const i=v[a++],s=r.getAttribute(t).split(h$1$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$1$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$1$1),s=t.length-1;if(s>0){r.textContent=i$5$1?i$5$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2$1()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2$1());}}}else if(8===r.nodeType)if(r.data===o$4$1)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1$1,t+1));)d.push({type:7,index:c}),t+=h$1$1.length-1;}c++;}}static createElement(t,i){const s=r$4.createElement("template");return s.innerHTML=t,s}};function S$1$1(t,i,s=t,e){if(i===T$1)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$1$1(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$4).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$4,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1$1(this,t,i),c$3(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$4.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return undefined===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$2$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2$1()),this.O(l$2$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$1$1(this,t,i,0),o=!c$3(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$1$1(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$3(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1 = class H extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?undefined:t;}};let I$1 = class I extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}};let L$1 = class L extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$1$1(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$1 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1$1(this,t);}};const Z={M:e$4$1,P:h$1$1,A:o$4$1,C:1,L:V$1,R:M$1,D:u$4,V:S$1$1,I:R$1,H:k$1,N:I$1,U:L$1,B:H$1,F:z$1},j$1=t$3.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$3.litHtmlVersions??=[]).push("3.2.1");const B$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$2$1(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
3431
3431
|
|
|
3432
3432
|
/**
|
|
3433
3433
|
* @license
|
|
3434
3434
|
* Copyright 2020 Google LLC
|
|
3435
3435
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3436
3436
|
*/
|
|
3437
|
-
const a$1=Symbol.for(""),o$3=t=>{if(t?.r===a$1)return t?._$litStatic$},s$2=t=>({_$litStatic$:t,r:a$1}),i$4=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$1}),l$1=new Map,n$2=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$3(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$1.get(t))&&(n.raw=n,l$1.set(t,r=n)),e=u;}return t(r,...e)},u$3=n$2(x);
|
|
3437
|
+
const a$1$1=Symbol.for(""),o$3$1=t=>{if(t?.r===a$1$1)return t?._$litStatic$},s$2$1=t=>({_$litStatic$:t,r:a$1$1}),i$4$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$1$1}),l$1$1=new Map,n$2$1=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$3$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$1$1.get(t))&&(n.raw=n,l$1$1.set(t,r=n)),e=u;}return t(r,...e)},u$3=n$2$1(x$1);
|
|
3438
3438
|
|
|
3439
3439
|
/**
|
|
3440
3440
|
* @license
|
|
3441
3441
|
* Copyright 2017 Google LLC
|
|
3442
3442
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3443
3443
|
*/
|
|
3444
|
-
const t$2={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$3=t=>(...e)=>({_$litDirective$:t,values:e});let i$3 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
3444
|
+
const t$2$1={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$3$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$3$1 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
3445
3445
|
|
|
3446
3446
|
/**
|
|
3447
3447
|
* @license
|
|
3448
3448
|
* Copyright 2020 Google LLC
|
|
3449
3449
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3450
|
-
*/const {I:t$1}=Z,s$1=()=>document.createComment(""),r$3=(o,i,n)=>{const e=o._$AA.parentNode,l=undefined===i?o._$AB:i._$AA;if(undefined===n){const i=e.insertBefore(s$1(),l),c=e.insertBefore(s$1(),l);n=new t$1(i,c,o,o.options);}else {const t=n._$AB.nextSibling,i=n._$AM,c=i!==o;if(c){let t;n._$AQ?.(o),n._$AM=o,undefined!==n._$AP&&(t=o._$AU)!==i._$AU&&n._$AP(t);}if(t!==l||c){let o=n._$AA;for(;o!==t;){const t=o.nextSibling;e.insertBefore(o,l),o=t;}}}return n},v=(o,t,i=o)=>(o._$AI(t,i),o),u$2={},m=(o,t=u$2)=>o._$AH=t,p$1=o=>o._$AH,M=o=>{o._$AP?.(false,true);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o;}};
|
|
3450
|
+
*/const {I:t$1$1}=Z,s$1$1=()=>document.createComment(""),r$3$1=(o,i,n)=>{const e=o._$AA.parentNode,l=undefined===i?o._$AB:i._$AA;if(undefined===n){const i=e.insertBefore(s$1$1(),l),c=e.insertBefore(s$1$1(),l);n=new t$1$1(i,c,o,o.options);}else {const t=n._$AB.nextSibling,i=n._$AM,c=i!==o;if(c){let t;n._$AQ?.(o),n._$AM=o,undefined!==n._$AP&&(t=o._$AU)!==i._$AU&&n._$AP(t);}if(t!==l||c){let o=n._$AA;for(;o!==t;){const t=o.nextSibling;e.insertBefore(o,l),o=t;}}}return n},v$2=(o,t,i=o)=>(o._$AI(t,i),o),u$2$1={},m$2=(o,t=u$2$1)=>o._$AH=t,p$1$1=o=>o._$AH,M$2=o=>{o._$AP?.(false,true);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o;}};
|
|
3451
3451
|
|
|
3452
3452
|
/**
|
|
3453
3453
|
* @license
|
|
3454
3454
|
* Copyright 2017 Google LLC
|
|
3455
3455
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3456
3456
|
*/
|
|
3457
|
-
const u$1=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c$2=e$3(class extends i$3{constructor(e){if(super(e),e.type!==t$2.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;undefined===t?t=s:undefined!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){const d=p$1(s),{values:p,keys:a}=this.dt(t,r,c);if(!Array.isArray(d))return this.ut=a,p;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p[w]),r$3(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p[k]),r$3(s,d[x],d[j]),j--,k++;else if(undefined===m$1&&(m$1=u$1(a,k,w),y=u$1(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=undefined!==e?d[e]:null;if(null===t){const e=r$3(s,d[x]);v(e,p[k]),v$1[k]=e;}else v$1[k]=v(t,p[k]),r$3(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r$3(s,v$1[w+1]);v(e,p[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
|
|
3457
|
+
const u$1$1=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c$2$1=e$3$1(class extends i$3$1{constructor(e){if(super(e),e.type!==t$2$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;undefined===t?t=s:undefined!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){const d=p$1$1(s),{values:p,keys:a}=this.dt(t,r,c);if(!Array.isArray(d))return this.ut=a,p;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v$2(d[x],p[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v$2(d[j],p[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v$2(d[x],p[w]),r$3$1(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v$2(d[j],p[k]),r$3$1(s,d[x],d[j]),j--,k++;else if(undefined===m$1&&(m$1=u$1$1(a,k,w),y=u$1$1(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=undefined!==e?d[e]:null;if(null===t){const e=r$3$1(s,d[x]);v$2(e,p[k]),v$1[k]=e;}else v$1[k]=v$2(t,p[k]),r$3$1(s,d[x],t),d[e]=null;k++;}else M$2(d[j]),j--;else M$2(d[x]),x++;for(;k<=w;){const e=r$3$1(s,v$1[w+1]);v$2(e,p[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M$2(e);}return this.ut=a,m$2(s,v$1),T$1}});
|
|
3458
3458
|
|
|
3459
3459
|
/**
|
|
3460
3460
|
* @license
|
|
3461
3461
|
* Copyright 2018 Google LLC
|
|
3462
3462
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3463
|
-
*/const e$2=e$3(class extends i$3{constructor(t){if(super(t),t.type!==t$2.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
3463
|
+
*/const e$2$1=e$3$1(class extends i$3$1{constructor(t){if(super(t),t.type!==t$2$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
|
|
3464
3464
|
|
|
3465
3465
|
/**
|
|
3466
3466
|
* @license
|
|
3467
3467
|
* Copyright 2018 Google LLC
|
|
3468
3468
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3469
|
-
*/const o$2=o=>o??E;
|
|
3469
|
+
*/const o$2$1=o=>o??E$1;
|
|
3470
3470
|
|
|
3471
3471
|
const watchedItems = new Set();
|
|
3472
3472
|
|
|
@@ -3576,25 +3576,25 @@ function stopNotifyingOnLangChange(element) {
|
|
|
3576
3576
|
* Copyright 2019 Google LLC
|
|
3577
3577
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3578
3578
|
*/
|
|
3579
|
-
const t=globalThis,e$1=t.ShadowRoot&&(undefined===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o$1=new WeakMap;let n$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$1&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$1.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$1.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new n$1("string"==typeof t?t:t+"",undefined,s),i$2=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$1(o,t,s)},S=(s,o)=>{if(e$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1=e$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
|
|
3579
|
+
const t$4=globalThis,e$1$1=t$4.ShadowRoot&&(undefined===t$4.ShadyCSS||t$4.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$4=Symbol(),o$1$1=new WeakMap;let n$1$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$1$1&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$1$1.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$1$1.set(s,t));}return t}toString(){return this.cssText}};const r$2$1=t=>new n$1$1("string"==typeof t?t:t+"",undefined,s$4),i$2$1=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$1$1(o,t,s$4)},S$2=(s,o)=>{if(e$1$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$4.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1$1=e$1$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2$1(e)})(t):t;
|
|
3580
3580
|
|
|
3581
3581
|
/**
|
|
3582
3582
|
* @license
|
|
3583
3583
|
* Copyright 2017 Google LLC
|
|
3584
3584
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3585
|
-
*/const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f=(t,s)=>!i$1(t,s),y={attribute:true,type:String,converter:u,reflect:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...h(t),...o(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$1(s));}else undefined!==s&&i.push(c$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d("elementProperties")]=new Map,b[d("finalized")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push("2.0.4");
|
|
3585
|
+
*/const{is:i$1$1,defineProperty:e$5,getOwnPropertyDescriptor:r$1$1,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$5,getPrototypeOf:n$4}=Object,a$3=globalThis,c$4=a$3.trustedTypes,l$3=c$4?c$4.emptyScript:"",p$3=a$3.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$5={toAttribute(t,s){switch(s){case Boolean:t=t?l$3:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2=(t,s)=>!i$1$1(t,s),y$2={attribute:true,type:String,converter:u$5,reflect:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$3.litPropertyMetadata??=new WeakMap;let b$1 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$2){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$5(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$1$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$2}static _$Ei(){if(this.hasOwnProperty(d$2("elementProperties")))return;const t=n$4(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2("properties"))){const t=this.properties,s=[...h$2(t),...o$5(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$1$1(s));}else undefined!==s&&i.push(c$1$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$2(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$5).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u$5;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$2("elementProperties")]=new Map,b$1[d$2("finalized")]=new Map,p$3?.({ReactiveElement:b$1}),(a$3.reactiveElementVersions??=[]).push("2.0.4");
|
|
3586
3586
|
|
|
3587
3587
|
/**
|
|
3588
3588
|
* @license
|
|
3589
3589
|
* Copyright 2017 Google LLC
|
|
3590
3590
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3591
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
3591
|
+
*/let r$5 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$5._$litElement$=true,r$5["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$5});const i$6=globalThis.litElementPolyfillSupport;i$6?.({LitElement:r$5});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
3592
3592
|
|
|
3593
|
-
var styleCss$3 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.inputElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));max-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
3593
|
+
var styleCss$3$1 = i$2$1`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.inputElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));max-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
3594
3594
|
|
|
3595
|
-
var colorCss$3 = i$2`.wrapper{border-color:transparent}.inputElement-helpText{color:var(--ds-auro-input-help-text-color)}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-input-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}label{color:var(--ds-auro-input-label-text-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host(:not([borderless])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host(:not([borderless])) .wrapper:focus-within:before{border-bottom-color:transparent}:host([validity]:not([validity=valid])){--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);--ds-auro-input-help-text-color: var(--ds-color-text-error-default, #cc1816)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-input-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
3595
|
+
var colorCss$3 = i$2$1`.wrapper{border-color:transparent}.inputElement-helpText{color:var(--ds-auro-input-help-text-color)}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-input-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}label{color:var(--ds-auro-input-label-text-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host(:not([borderless])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host(:not([borderless])) .wrapper:focus-within:before{border-bottom-color:transparent}:host([validity]:not([validity=valid])){--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);--ds-auro-input-help-text-color: var(--ds-color-text-error-default, #cc1816)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-input-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
3596
3596
|
|
|
3597
|
-
var tokensCss$3 = i$2`:host{--ds-auro-input-border-color: var(--ds-color-border-secondary-default, #939fad);--ds-auro-input-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-input-caret-color: var(--ds-color-text-ui-focus-default, #2c67b5);--ds-auro-input-help-text-color: var(--ds-color-text-tertiary-default, #6a717c);--ds-auro-input-label-text-color: var(--ds-color-text-tertiary-default, #6a717c);--ds-auro-input-placeholder-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
3597
|
+
var tokensCss$3 = i$2$1`:host{--ds-auro-input-border-color: var(--ds-color-border-secondary-default, #939fad);--ds-auro-input-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-input-caret-color: var(--ds-color-text-ui-focus-default, #2c67b5);--ds-auro-input-help-text-color: var(--ds-color-text-tertiary-default, #6a717c);--ds-auro-input-label-text-color: var(--ds-color-text-tertiary-default, #6a717c);--ds-auro-input-placeholder-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
3598
3598
|
|
|
3599
3599
|
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
3600
3600
|
|
|
@@ -5160,7 +5160,7 @@ var Cleave_1 = Cleave;
|
|
|
5160
5160
|
|
|
5161
5161
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5162
5162
|
|
|
5163
|
-
class AuroLibraryRuntimeUtils {
|
|
5163
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
5164
5164
|
|
|
5165
5165
|
/* eslint-disable jsdoc/require-param */
|
|
5166
5166
|
|
|
@@ -5221,7 +5221,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
5221
5221
|
|
|
5222
5222
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
5223
5223
|
}
|
|
5224
|
-
}
|
|
5224
|
+
};
|
|
5225
5225
|
|
|
5226
5226
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5227
5227
|
// See LICENSE in the project root for license information.
|
|
@@ -5229,7 +5229,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
5229
5229
|
|
|
5230
5230
|
class AuroFormValidation {
|
|
5231
5231
|
constructor() {
|
|
5232
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
5232
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
5233
5233
|
}
|
|
5234
5234
|
|
|
5235
5235
|
/**
|
|
@@ -5559,7 +5559,7 @@ class AuroFormValidation {
|
|
|
5559
5559
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
5560
5560
|
*/
|
|
5561
5561
|
|
|
5562
|
-
class BaseInput extends r {
|
|
5562
|
+
class BaseInput extends r$5 {
|
|
5563
5563
|
|
|
5564
5564
|
constructor() {
|
|
5565
5565
|
super();
|
|
@@ -5901,9 +5901,9 @@ class BaseInput extends r {
|
|
|
5901
5901
|
|
|
5902
5902
|
static get styles() {
|
|
5903
5903
|
return [
|
|
5904
|
-
i$2`${colorCss$3}`,
|
|
5905
|
-
i$2`${styleCss$3}`,
|
|
5906
|
-
i$2`${tokensCss$3}`
|
|
5904
|
+
i$2$1`${colorCss$3}`,
|
|
5905
|
+
i$2$1`${styleCss$3$1}`,
|
|
5906
|
+
i$2$1`${tokensCss$3}`
|
|
5907
5907
|
];
|
|
5908
5908
|
}
|
|
5909
5909
|
|
|
@@ -6476,7 +6476,7 @@ class BaseInput extends r {
|
|
|
6476
6476
|
return !this.placeholder ? 'MM' : this.placeholder;
|
|
6477
6477
|
}
|
|
6478
6478
|
|
|
6479
|
-
return o$2(this.placeholder);
|
|
6479
|
+
return o$2$1(this.placeholder);
|
|
6480
6480
|
}
|
|
6481
6481
|
|
|
6482
6482
|
/**
|
|
@@ -6627,7 +6627,7 @@ class BaseInput extends r {
|
|
|
6627
6627
|
// See LICENSE in the project root for license information.
|
|
6628
6628
|
|
|
6629
6629
|
|
|
6630
|
-
class AuroDependencyVersioning {
|
|
6630
|
+
let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
6631
6631
|
|
|
6632
6632
|
/**
|
|
6633
6633
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -6653,7 +6653,7 @@ class AuroDependencyVersioning {
|
|
|
6653
6653
|
*/
|
|
6654
6654
|
generateTag(baseName, version, tagClass) {
|
|
6655
6655
|
const elementName = this.generateElementName(baseName, version);
|
|
6656
|
-
const tag = i$4`${s$2(elementName)}`;
|
|
6656
|
+
const tag = i$4$1`${s$2$1(elementName)}`;
|
|
6657
6657
|
|
|
6658
6658
|
if (!customElements.get(elementName)) {
|
|
6659
6659
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -6661,7 +6661,7 @@ class AuroDependencyVersioning {
|
|
|
6661
6661
|
|
|
6662
6662
|
return tag;
|
|
6663
6663
|
}
|
|
6664
|
-
}
|
|
6664
|
+
};
|
|
6665
6665
|
|
|
6666
6666
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6667
6667
|
// See LICENSE in the project root for license information.
|
|
@@ -6673,7 +6673,7 @@ class AuroDependencyVersioning {
|
|
|
6673
6673
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
6674
6674
|
*/
|
|
6675
6675
|
|
|
6676
|
-
class AuroElement extends r {
|
|
6676
|
+
let AuroElement$1 = class AuroElement extends r$5 {
|
|
6677
6677
|
|
|
6678
6678
|
// function to define props used within the scope of this component
|
|
6679
6679
|
static get properties() {
|
|
@@ -6697,13 +6697,13 @@ class AuroElement extends r {
|
|
|
6697
6697
|
|
|
6698
6698
|
return 'false'
|
|
6699
6699
|
}
|
|
6700
|
-
}
|
|
6700
|
+
};
|
|
6701
6701
|
|
|
6702
|
-
var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
6702
|
+
var error$1 = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
6703
6703
|
|
|
6704
6704
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
6705
6705
|
|
|
6706
|
-
const _fetchMap = new Map();
|
|
6706
|
+
const _fetchMap$1 = new Map();
|
|
6707
6707
|
|
|
6708
6708
|
/**
|
|
6709
6709
|
* A callback to parse Response body.
|
|
@@ -6721,15 +6721,15 @@ const _fetchMap = new Map();
|
|
|
6721
6721
|
* @param {ResponseParser} [options.responseParser=(response) => response.text()]
|
|
6722
6722
|
* @returns {Promise}
|
|
6723
6723
|
*/
|
|
6724
|
-
const cacheFetch = (uri, options = {}) => {
|
|
6724
|
+
const cacheFetch$1 = (uri, options = {}) => {
|
|
6725
6725
|
const responseParser = options.responseParser || ((response) => response.text());
|
|
6726
|
-
if (!_fetchMap.has(uri)) {
|
|
6727
|
-
_fetchMap.set(uri, fetch(uri).then(responseParser));
|
|
6726
|
+
if (!_fetchMap$1.has(uri)) {
|
|
6727
|
+
_fetchMap$1.set(uri, fetch(uri).then(responseParser));
|
|
6728
6728
|
}
|
|
6729
|
-
return _fetchMap.get(uri);
|
|
6729
|
+
return _fetchMap$1.get(uri);
|
|
6730
6730
|
};
|
|
6731
6731
|
|
|
6732
|
-
var styleCss$2 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
6732
|
+
var styleCss$2$1 = i$2$1`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
6733
6733
|
|
|
6734
6734
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6735
6735
|
// See LICENSE in the project root for license information.
|
|
@@ -6742,7 +6742,7 @@ var styleCss$2 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-red
|
|
|
6742
6742
|
*/
|
|
6743
6743
|
|
|
6744
6744
|
// build the component class
|
|
6745
|
-
class BaseIcon extends AuroElement {
|
|
6745
|
+
let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
6746
6746
|
constructor() {
|
|
6747
6747
|
super();
|
|
6748
6748
|
this.onDark = false;
|
|
@@ -6768,8 +6768,8 @@ class BaseIcon extends AuroElement {
|
|
|
6768
6768
|
}
|
|
6769
6769
|
|
|
6770
6770
|
static get styles() {
|
|
6771
|
-
return i$2`
|
|
6772
|
-
${styleCss$2}
|
|
6771
|
+
return i$2$1`
|
|
6772
|
+
${styleCss$2$1}
|
|
6773
6773
|
`;
|
|
6774
6774
|
}
|
|
6775
6775
|
|
|
@@ -6784,9 +6784,9 @@ class BaseIcon extends AuroElement {
|
|
|
6784
6784
|
let iconHTML = '';
|
|
6785
6785
|
|
|
6786
6786
|
if (category === 'logos') {
|
|
6787
|
-
iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
|
|
6787
|
+
iconHTML = await cacheFetch$1(`${this.uri}/${category}/${name}.svg`);
|
|
6788
6788
|
} else {
|
|
6789
|
-
iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
|
|
6789
|
+
iconHTML = await cacheFetch$1(`${this.uri}/icons/${category}/${name}.svg`);
|
|
6790
6790
|
}
|
|
6791
6791
|
|
|
6792
6792
|
const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
|
|
@@ -6802,17 +6802,17 @@ class BaseIcon extends AuroElement {
|
|
|
6802
6802
|
if (svg) {
|
|
6803
6803
|
this.svg = svg;
|
|
6804
6804
|
} else if (!svg) {
|
|
6805
|
-
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
6805
|
+
const penDOM = new DOMParser().parseFromString(error$1.svg, 'text/html');
|
|
6806
6806
|
|
|
6807
6807
|
this.svg = penDOM.body.firstChild;
|
|
6808
6808
|
}
|
|
6809
6809
|
}
|
|
6810
6810
|
}
|
|
6811
|
-
}
|
|
6811
|
+
};
|
|
6812
6812
|
|
|
6813
|
-
var tokensCss$2 = i$2`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
|
|
6813
|
+
var tokensCss$2 = i$2$1`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
|
|
6814
6814
|
|
|
6815
|
-
var colorCss$2 = i$2`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
6815
|
+
var colorCss$2$1 = i$2$1`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
6816
6816
|
|
|
6817
6817
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6818
6818
|
// See LICENSE in the project root for license information.
|
|
@@ -6845,7 +6845,7 @@ var colorCss$2 = i$2`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
6845
6845
|
*/
|
|
6846
6846
|
|
|
6847
6847
|
// build the component class
|
|
6848
|
-
class AuroIcon extends BaseIcon {
|
|
6848
|
+
let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
6849
6849
|
constructor() {
|
|
6850
6850
|
super();
|
|
6851
6851
|
|
|
@@ -6874,7 +6874,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6874
6874
|
this.success = false;
|
|
6875
6875
|
this.tertiary = false;
|
|
6876
6876
|
this.warning = false;
|
|
6877
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
6877
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
6878
6878
|
}
|
|
6879
6879
|
|
|
6880
6880
|
// function to define props used within the scope of this component
|
|
@@ -6956,9 +6956,9 @@ class AuroIcon extends BaseIcon {
|
|
|
6956
6956
|
static get styles() {
|
|
6957
6957
|
return [
|
|
6958
6958
|
super.styles,
|
|
6959
|
-
i$2`${tokensCss$2}`,
|
|
6960
|
-
i$2`${styleCss$2}`,
|
|
6961
|
-
i$2`${colorCss$2}`
|
|
6959
|
+
i$2$1`${tokensCss$2}`,
|
|
6960
|
+
i$2$1`${styleCss$2$1}`,
|
|
6961
|
+
i$2$1`${colorCss$2$1}`
|
|
6962
6962
|
];
|
|
6963
6963
|
}
|
|
6964
6964
|
|
|
@@ -6971,7 +6971,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6971
6971
|
*
|
|
6972
6972
|
*/
|
|
6973
6973
|
static register(name = "auro-icon") {
|
|
6974
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
6974
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
6975
6975
|
}
|
|
6976
6976
|
|
|
6977
6977
|
connectedCallback() {
|
|
@@ -7000,40 +7000,40 @@ class AuroIcon extends BaseIcon {
|
|
|
7000
7000
|
'wrapper': true,
|
|
7001
7001
|
};
|
|
7002
7002
|
|
|
7003
|
-
return x`
|
|
7003
|
+
return x$1`
|
|
7004
7004
|
<div
|
|
7005
|
-
class="${e$2(classes)}"
|
|
7006
|
-
title="${o$2(this.title || undefined)}">
|
|
7007
|
-
<span aria-hidden="${o$2(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
7008
|
-
${this.customSvg ? x`
|
|
7005
|
+
class="${e$2$1(classes)}"
|
|
7006
|
+
title="${o$2$1(this.title || undefined)}">
|
|
7007
|
+
<span aria-hidden="${o$2$1(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
7008
|
+
${this.customSvg ? x$1`
|
|
7009
7009
|
<slot name="svg"></slot>
|
|
7010
|
-
` : x`
|
|
7010
|
+
` : x$1`
|
|
7011
7011
|
${this.svg}
|
|
7012
7012
|
`
|
|
7013
7013
|
}
|
|
7014
7014
|
</span>
|
|
7015
7015
|
|
|
7016
|
-
<div class="${e$2(a11y)}">
|
|
7016
|
+
<div class="${e$2$1(a11y)}">
|
|
7017
7017
|
<slot></slot>
|
|
7018
7018
|
</div>
|
|
7019
7019
|
</div>
|
|
7020
7020
|
`;
|
|
7021
7021
|
}
|
|
7022
|
-
}
|
|
7022
|
+
};
|
|
7023
7023
|
|
|
7024
|
-
var iconVersion = '6.1.2';
|
|
7024
|
+
var iconVersion$1 = '6.1.2';
|
|
7025
7025
|
|
|
7026
|
-
var styleCss$1 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
7026
|
+
var styleCss$1$1 = i$2$1`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
7027
7027
|
|
|
7028
|
-
var colorCss$1 = i$2`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
7028
|
+
var colorCss$1$1 = i$2$1`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
7029
7029
|
|
|
7030
|
-
var tokensCss$1 = i$2`:host{--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color: var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color: transparent}`;
|
|
7030
|
+
var tokensCss$1$1 = i$2$1`:host{--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color: var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color: transparent}`;
|
|
7031
7031
|
|
|
7032
|
-
var styleCss$4 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}: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}: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: 0.375rem;--margin-xs: 0.2rem;--margin-sm: 0.5rem;--margin-md: 0.75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.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(0deg)}100%{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{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{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%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
7032
|
+
var styleCss$4 = i$2$1`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}: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}: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: 0.375rem;--margin-xs: 0.2rem;--margin-sm: 0.5rem;--margin-md: 0.75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.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(0deg)}100%{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{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{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%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
7033
7033
|
|
|
7034
|
-
var colorCss = i$2`: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]){--ds-auro-loader-color: var(--ds-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color: var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color: var(--ds-color-utility-neutral-inverse, #ccd2db)}: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}`;
|
|
7034
|
+
var colorCss$4 = i$2$1`: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]){--ds-auro-loader-color: var(--ds-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color: var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color: var(--ds-color-utility-neutral-inverse, #ccd2db)}: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}`;
|
|
7035
7035
|
|
|
7036
|
-
var tokensCss = i$2`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}`;
|
|
7036
|
+
var tokensCss$4 = i$2$1`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}`;
|
|
7037
7037
|
|
|
7038
7038
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7039
7039
|
// See LICENSE in the project root for license information.
|
|
@@ -7058,7 +7058,7 @@ var tokensCss = i$2`:host{--ds-auro-loader-background-color: currentcolor;--ds-a
|
|
|
7058
7058
|
*/
|
|
7059
7059
|
|
|
7060
7060
|
// build the component class
|
|
7061
|
-
class AuroLoader extends r {
|
|
7061
|
+
class AuroLoader extends r$5 {
|
|
7062
7062
|
constructor() {
|
|
7063
7063
|
super();
|
|
7064
7064
|
|
|
@@ -7080,7 +7080,7 @@ class AuroLoader extends r {
|
|
|
7080
7080
|
/**
|
|
7081
7081
|
* @private
|
|
7082
7082
|
*/
|
|
7083
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
7083
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
7084
7084
|
|
|
7085
7085
|
this.orbit = false;
|
|
7086
7086
|
this.ringworm = false;
|
|
@@ -7112,9 +7112,9 @@ class AuroLoader extends r {
|
|
|
7112
7112
|
|
|
7113
7113
|
static get styles() {
|
|
7114
7114
|
return [
|
|
7115
|
-
i$2`${styleCss$4}`,
|
|
7116
|
-
i$2`${colorCss}`,
|
|
7117
|
-
i$2`${tokensCss}`
|
|
7115
|
+
i$2$1`${styleCss$4}`,
|
|
7116
|
+
i$2$1`${colorCss$4}`,
|
|
7117
|
+
i$2$1`${tokensCss$4}`
|
|
7118
7118
|
];
|
|
7119
7119
|
}
|
|
7120
7120
|
|
|
@@ -7127,7 +7127,7 @@ class AuroLoader extends r {
|
|
|
7127
7127
|
*
|
|
7128
7128
|
*/
|
|
7129
7129
|
static register(name = "auro-loader") {
|
|
7130
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroLoader);
|
|
7130
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroLoader);
|
|
7131
7131
|
}
|
|
7132
7132
|
|
|
7133
7133
|
firstUpdated() {
|
|
@@ -7160,14 +7160,14 @@ class AuroLoader extends r {
|
|
|
7160
7160
|
|
|
7161
7161
|
// function that renders the HTML and CSS into the scope of the component
|
|
7162
7162
|
render() {
|
|
7163
|
-
return x`
|
|
7164
|
-
${this.defineTemplate().map((idx) => x`
|
|
7163
|
+
return x$1`
|
|
7164
|
+
${this.defineTemplate().map((idx) => x$1`
|
|
7165
7165
|
<span part="element" class="loader node-${idx}"></span>
|
|
7166
7166
|
`)}
|
|
7167
7167
|
|
|
7168
7168
|
<div class="no-animation">Loading...</div>
|
|
7169
7169
|
|
|
7170
|
-
${this.ringworm ? x`
|
|
7170
|
+
${this.ringworm ? x$1`
|
|
7171
7171
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
7172
7172
|
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
7173
7173
|
</svg>`
|
|
@@ -7213,7 +7213,7 @@ var loaderVersion = '3.1.1';
|
|
|
7213
7213
|
|
|
7214
7214
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
7215
7215
|
|
|
7216
|
-
class AuroButton extends r {
|
|
7216
|
+
class AuroButton extends r$5 {
|
|
7217
7217
|
|
|
7218
7218
|
constructor() {
|
|
7219
7219
|
super();
|
|
@@ -7232,7 +7232,7 @@ class AuroButton extends r {
|
|
|
7232
7232
|
/**
|
|
7233
7233
|
* Generate unique names for dependency components.
|
|
7234
7234
|
*/
|
|
7235
|
-
const versioning = new AuroDependencyVersioning();
|
|
7235
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
7236
7236
|
|
|
7237
7237
|
/**
|
|
7238
7238
|
* @private
|
|
@@ -7242,9 +7242,9 @@ class AuroButton extends r {
|
|
|
7242
7242
|
|
|
7243
7243
|
static get styles() {
|
|
7244
7244
|
return [
|
|
7245
|
-
tokensCss$1,
|
|
7246
|
-
styleCss$1,
|
|
7247
|
-
colorCss$1
|
|
7245
|
+
tokensCss$1$1,
|
|
7246
|
+
styleCss$1$1,
|
|
7247
|
+
colorCss$1$1
|
|
7248
7248
|
];
|
|
7249
7249
|
}
|
|
7250
7250
|
|
|
@@ -7327,7 +7327,7 @@ class AuroButton extends r {
|
|
|
7327
7327
|
*
|
|
7328
7328
|
*/
|
|
7329
7329
|
static register(name = "auro-button") {
|
|
7330
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroButton);
|
|
7330
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroButton);
|
|
7331
7331
|
}
|
|
7332
7332
|
|
|
7333
7333
|
/**
|
|
@@ -7384,20 +7384,20 @@ class AuroButton extends r {
|
|
|
7384
7384
|
return u$3`
|
|
7385
7385
|
<button
|
|
7386
7386
|
part="button"
|
|
7387
|
-
aria-label="${o$2(this.arialabel ? this.arialabel : undefined)}"
|
|
7388
|
-
aria-labelledby="${o$2(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
7387
|
+
aria-label="${o$2$1(this.arialabel ? this.arialabel : undefined)}"
|
|
7388
|
+
aria-labelledby="${o$2$1(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
7389
7389
|
?autofocus="${this.autofocus}"
|
|
7390
|
-
class="${e$2(classes)}"
|
|
7390
|
+
class="${e$2$1(classes)}"
|
|
7391
7391
|
?disabled="${this.disabled || this.loading}"
|
|
7392
7392
|
?onDark="${this.onDark}"
|
|
7393
|
-
title="${o$2(this.title ? this.title : undefined)}"
|
|
7394
|
-
name="${o$2(this.name ? this.name : undefined)}"
|
|
7395
|
-
type="${o$2(this.type ? this.type : undefined)}"
|
|
7396
|
-
variant="${o$2(this.variant ? this.variant : undefined)}"
|
|
7397
|
-
.value="${o$2(this.value ? this.value : undefined)}"
|
|
7393
|
+
title="${o$2$1(this.title ? this.title : undefined)}"
|
|
7394
|
+
name="${o$2$1(this.name ? this.name : undefined)}"
|
|
7395
|
+
type="${o$2$1(this.type ? this.type : undefined)}"
|
|
7396
|
+
variant="${o$2$1(this.variant ? this.variant : undefined)}"
|
|
7397
|
+
.value="${o$2$1(this.value ? this.value : undefined)}"
|
|
7398
7398
|
@click="${() => {}}"
|
|
7399
7399
|
>
|
|
7400
|
-
${o$2(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
7400
|
+
${o$2$1(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
7401
7401
|
|
|
7402
7402
|
<span class="contentWrapper">
|
|
7403
7403
|
<span class="textSlot" part="text">
|
|
@@ -7427,12 +7427,12 @@ class AuroInput extends BaseInput {
|
|
|
7427
7427
|
/**
|
|
7428
7428
|
* Generate unique names for dependency components.
|
|
7429
7429
|
*/
|
|
7430
|
-
const versioning = new AuroDependencyVersioning();
|
|
7430
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
7431
7431
|
|
|
7432
7432
|
/**
|
|
7433
7433
|
* @private
|
|
7434
7434
|
*/
|
|
7435
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
7435
|
+
this.iconTag = versioning.generateTag('auro-icon', iconVersion$1, AuroIcon$1);
|
|
7436
7436
|
|
|
7437
7437
|
/**
|
|
7438
7438
|
* @private
|
|
@@ -7449,7 +7449,7 @@ class AuroInput extends BaseInput {
|
|
|
7449
7449
|
*
|
|
7450
7450
|
*/
|
|
7451
7451
|
static register(name = "auro-input") {
|
|
7452
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroInput);
|
|
7452
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroInput);
|
|
7453
7453
|
}
|
|
7454
7454
|
|
|
7455
7455
|
/**
|
|
@@ -7511,7 +7511,7 @@ class AuroInput extends BaseInput {
|
|
|
7511
7511
|
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
7512
7512
|
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
7513
7513
|
${this.inputIconName
|
|
7514
|
-
? c$2([this.inputIconName], (val) => val, (name) => u$3`
|
|
7514
|
+
? c$2$1([this.inputIconName], (val) => val, (name) => u$3`
|
|
7515
7515
|
<${this.iconTag}
|
|
7516
7516
|
class="accentIcon"
|
|
7517
7517
|
category="payment"
|
|
@@ -7534,7 +7534,7 @@ class AuroInput extends BaseInput {
|
|
|
7534
7534
|
: undefined
|
|
7535
7535
|
}
|
|
7536
7536
|
</div>
|
|
7537
|
-
<label for=${this.id} class="${e$2(labelClasses)}" part="label">
|
|
7537
|
+
<label for=${this.id} class="${e$2$1(labelClasses)}" part="label">
|
|
7538
7538
|
<slot name="label">
|
|
7539
7539
|
${this.label}
|
|
7540
7540
|
</slot>
|
|
@@ -7545,23 +7545,23 @@ class AuroInput extends BaseInput {
|
|
|
7545
7545
|
@focusin="${this.handleFocusin}"
|
|
7546
7546
|
@blur="${this.handleBlur}"
|
|
7547
7547
|
id="${this.id}"
|
|
7548
|
-
name="${o$2(this.name)}"
|
|
7548
|
+
name="${o$2$1(this.name)}"
|
|
7549
7549
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
7550
|
-
pattern="${o$2(this.definePattern())}"
|
|
7551
|
-
maxlength="${o$2(this.maxLength ? this.maxLength : undefined)}"
|
|
7552
|
-
minlength="${o$2(this.minLength ? this.minLength : undefined)}"
|
|
7553
|
-
inputMode="${o$2(this.inputMode ? this.inputMode : undefined)}"
|
|
7550
|
+
pattern="${o$2$1(this.definePattern())}"
|
|
7551
|
+
maxlength="${o$2$1(this.maxLength ? this.maxLength : undefined)}"
|
|
7552
|
+
minlength="${o$2$1(this.minLength ? this.minLength : undefined)}"
|
|
7553
|
+
inputMode="${o$2$1(this.inputMode ? this.inputMode : undefined)}"
|
|
7554
7554
|
?required="${this.required}"
|
|
7555
7555
|
?disabled="${this.disabled}"
|
|
7556
7556
|
aria-describedby="${this.uniqueId}"
|
|
7557
7557
|
aria-invalid="${this.validity !== 'valid'}"
|
|
7558
7558
|
placeholder=${this.getPlaceholder()}
|
|
7559
|
-
lang="${o$2(this.lang)}"
|
|
7559
|
+
lang="${o$2$1(this.lang)}"
|
|
7560
7560
|
?activeLabel="${this.activeLabel}"
|
|
7561
|
-
spellcheck="${o$2(this.spellcheck ? this.spellcheck : undefined)}"
|
|
7562
|
-
autocorrect="${o$2(this.autocorrect ? this.autocorrect : undefined)}"
|
|
7563
|
-
autocapitalize="${o$2(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7564
|
-
autocomplete="${o$2(this.autocomplete ? this.autocomplete : undefined)}"
|
|
7561
|
+
spellcheck="${o$2$1(this.spellcheck ? this.spellcheck : undefined)}"
|
|
7562
|
+
autocorrect="${o$2$1(this.autocorrect ? this.autocorrect : undefined)}"
|
|
7563
|
+
autocapitalize="${o$2$1(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7564
|
+
autocomplete="${o$2$1(this.autocomplete ? this.autocomplete : undefined)}"
|
|
7565
7565
|
part="input"
|
|
7566
7566
|
/>
|
|
7567
7567
|
</div>
|
|
@@ -7641,137 +7641,1654 @@ AuroInput.register();
|
|
|
7641
7641
|
|
|
7642
7642
|
var inputVersion = '4.2.0';
|
|
7643
7643
|
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7644
|
+
/**
|
|
7645
|
+
* @license
|
|
7646
|
+
* Copyright 2019 Google LLC
|
|
7647
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7648
|
+
*/
|
|
7649
|
+
const t$2=globalThis,e$4=t$2.ShadowRoot&&(undefined===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$3 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$4.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$3("string"==typeof t?t:t+"",undefined,s$2),i$5=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3(o,t,s$2)},S$1=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
|
|
7648
7650
|
|
|
7651
|
+
/**
|
|
7652
|
+
* @license
|
|
7653
|
+
* Copyright 2017 Google LLC
|
|
7654
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7655
|
+
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$3,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),y$1={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$3(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$3(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);undefined!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else undefined!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
7649
7656
|
|
|
7650
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
7651
7657
|
/**
|
|
7652
|
-
* @
|
|
7653
|
-
*
|
|
7654
|
-
*
|
|
7655
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
7656
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
7657
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
7658
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
7659
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
7660
|
-
* @attr {Boolean} disabled - If set, disables the combobox.
|
|
7661
|
-
* @attr {Boolean} noFilter - If set, combobox will not filter menuoptions based in input.
|
|
7662
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
7663
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
7664
|
-
* @attr {Boolean} triggerIcon - If set, the `icon` attribute will be applied to the trigger `auro-input` element.
|
|
7665
|
-
* @attr {String} type - Applies the defined value as the type attribute on auro-input.
|
|
7666
|
-
* @slot - Default slot for the menu content.
|
|
7667
|
-
* @slot label - Defines the content of the label.
|
|
7668
|
-
* @slot helpText - Defines the content of the helpText.
|
|
7669
|
-
* @event auroCombobox-valueSet - Notifies that the component has a new value set.
|
|
7670
|
-
* @event auroFormElement-validated - Notifies that the component value(s) have been validated.
|
|
7658
|
+
* @license
|
|
7659
|
+
* Copyright 2017 Google LLC
|
|
7660
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7671
7661
|
*/
|
|
7662
|
+
const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2="?"+h,n$1=`<${o$2}>`,r$1=document,l$1=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u$1=t=>a$1(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$1?s$1.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v:undefined!==u[1]?c=_:undefined!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):undefined!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=undefined);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n$1:d>=0?(o.push(a),s.slice(0,d)+e$2+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$2)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$3?i$3.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1());}}}else if(8===r.nodeType)if(r.data===o$2)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=undefined,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$1,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$1(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return undefined===i&&A.set(t.strings,i=new N(t)),i}k(t){a$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$1()),this.O(l$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?undefined:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j=t$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$1(),t),t,undefined,s??{});}return h._$AI(t),h};
|
|
7672
7663
|
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7664
|
+
/**
|
|
7665
|
+
* @license
|
|
7666
|
+
* Copyright 2017 Google LLC
|
|
7667
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7668
|
+
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i$2=globalThis.litElementPolyfillSupport;i$2?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
7677
7669
|
|
|
7678
|
-
this.noFilter = false;
|
|
7679
|
-
this.validity = undefined;
|
|
7680
|
-
this.value = null;
|
|
7681
|
-
this.optionSelected = null;
|
|
7670
|
+
var styleCss$2 = i$5`:root{--ds-asset-font-circular-family-name: "AS Circular";--ds-asset-font-circular-filename: "ASCircularWeb";--ds-asset-font-circular-weight-light: "-Light";--ds-asset-font-circular-weight-medium: "-Medium";--ds-asset-font-circular-weight-book: "-Book";--ds-border-radius: 0.375rem;--ds-size-25: 0.125rem;--ds-size-50: 0.25rem;--ds-size-75: 0.375rem;--ds-size-100: 0.5rem;--ds-size-150: 0.75rem;--ds-size-200: 1rem;--ds-size-250: 1.25rem;--ds-size-300: 1.5rem;--ds-size-400: 2rem;--ds-size-500: 2.5rem;--ds-size-600: 3rem;--ds-size-700: 3.5rem;--ds-size-800: 4rem;--ds-size-900: 4.5rem;--ds-size-1000: 5rem;--ds-unitless-scale-20: 0.25;--ds-unitless-scale-50: 0.5;--ds-unitless-scale-100: 1;--ds-unitless-scale-140: 1.4;--ds-unitless-scale-150: 1.5;--ds-unitless-scale-200: 2;--ds-unitless-scale-300: 3;--ds-unitless-scale-350: 3.5;--ds-animation-default-property: all;--ds-animation-default-duration: 0.3s;--ds-animation-default-timing: ease-out;--ds-depth-overlay: 200;--ds-depth-modal: 300;--ds-depth-tooltip: 400;--ds-elevation-100: 0px 0px 5px rgba(0, 0, 0, 0.15);--ds-elevation-200: 0px 0px 10px rgba(0, 0, 0, 0.15);--ds-elevation-300: 0px 0px 15px rgba(0, 0, 0, 0.2);--ds-grid-breakpoint-xs: 320px;--ds-grid-breakpoint-sm: 576px;--ds-grid-breakpoint-md: 768px;--ds-grid-breakpoint-lg: 1024px;--ds-grid-breakpoint-xl: 1232px;--ds-grid-column-xs: 6;--ds-grid-column-sm: 12;--ds-grid-column-md: 12;--ds-grid-column-lg: 12;--ds-grid-column-xl: 12;--ds-grid-gutter-xs: 0.5rem;--ds-grid-gutter-sm: 1rem;--ds-grid-gutter-md: 1.5rem;--ds-grid-gutter-lg: 1.5rem;--ds-grid-gutter-xl: 2rem;--ds-grid-margin-xs: 1rem;--ds-grid-margin-sm: 1rem;--ds-grid-margin-md: 1.5rem;--ds-grid-margin-lg: 2rem;--ds-grid-margin-xl: 2rem;--ds-font-family-default: "AS Circular", Helvetica Neue, Arial, sans-serif;--ds-font-family-mono: Menlo, Monaco, Consolas, "Courier New", monospace;--ds-text-heading-300-weight: 300;--ds-text-heading-300-px: 18px;--ds-text-heading-300-size: 1.125rem;--ds-text-heading-300-height: 1.625rem;--ds-text-heading-300-height-px: 26px;--ds-text-heading-400-weight: 300;--ds-text-heading-400-px: 20px;--ds-text-heading-400-size: 1.25rem;--ds-text-heading-400-height: 1.625rem;--ds-text-heading-400-height-px: 26px;--ds-text-heading-500-weight: 300;--ds-text-heading-500-px-breakpoint-sm: 22px;--ds-text-heading-500-px-breakpoint-md: 24px;--ds-text-heading-500-px-breakpoint-lg: 24px;--ds-text-heading-500-size-breakpoint-sm: 1.375rem;--ds-text-heading-500-size-breakpoint-md: 1.5rem;--ds-text-heading-500-size-breakpoint-lg: 1.5rem;--ds-text-heading-500-height-breakpoint-sm: 1.625rem;--ds-text-heading-500-height-breakpoint-px-sm: 26px;--ds-text-heading-500-height-breakpoint-md: 1.875rem;--ds-text-heading-500-height-breakpoint-px-md: 30px;--ds-text-heading-500-height-breakpoint-lg: 2rem;--ds-text-heading-500-height-breakpoint-px-lg: 32px;--ds-text-heading-600-weight: 300;--ds-text-heading-600-px-breakpoint-sm: 26px;--ds-text-heading-600-px-breakpoint-md: 28px;--ds-text-heading-600-px-breakpoint-lg: 28px;--ds-text-heading-600-size-breakpoint-sm: 1.625rem;--ds-text-heading-600-size-breakpoint-md: 1.75rem;--ds-text-heading-600-size-breakpoint-lg: 1.75rem;--ds-text-heading-600-height-breakpoint-sm: 1.875rem;--ds-text-heading-600-height-breakpoint-px-sm: 30px;--ds-text-heading-600-height-breakpoint-md: 2.125rem;--ds-text-heading-600-height-breakpoint-px-md: 34px;--ds-text-heading-600-height-breakpoint-lg: 2.25rem;--ds-text-heading-600-height-breakpoint-px-lg: 36px;--ds-text-heading-700-weight: 500;--ds-text-heading-700-px-breakpoint-sm: 28px;--ds-text-heading-700-px-breakpoint-md: 32px;--ds-text-heading-700-px-breakpoint-lg: 36px;--ds-text-heading-700-size-breakpoint-sm: 1.75rem;--ds-text-heading-700-size-breakpoint-md: 2rem;--ds-text-heading-700-size-breakpoint-lg: 2.25rem;--ds-text-heading-700-height-breakpoint-sm: 2.125rem;--ds-text-heading-700-height-breakpoint-px-sm: 34px;--ds-text-heading-700-height-breakpoint-md: 2.375rem;--ds-text-heading-700-height-breakpoint-px-md: 38px;--ds-text-heading-700-height-breakpoint-lg: 2.75rem;--ds-text-heading-700-height-breakpoint-px-lg: 44px;--ds-text-heading-800-weight: 500;--ds-text-heading-800-px-breakpoint-sm: 32px;--ds-text-heading-800-px-breakpoint-md: 36px;--ds-text-heading-800-px-breakpoint-lg: 40px;--ds-text-heading-800-size-breakpoint-sm: 2rem;--ds-text-heading-800-size-breakpoint-md: 2.25rem;--ds-text-heading-800-size-breakpoint-lg: 2.5rem;--ds-text-heading-800-height-breakpoint-sm: 2.375rem;--ds-text-heading-800-height-breakpoint-px-sm: 38px;--ds-text-heading-800-height-breakpoint-md: 2.625rem;--ds-text-heading-800-height-breakpoint-px-md: 42px;--ds-text-heading-800-height-breakpoint-lg: 3rem;--ds-text-heading-800-height-breakpoint-px-lg: 48px;--ds-text-heading-default-weight: 500;--ds-text-heading-default-margin: 0;--ds-text-heading-default-spacing: -0.2px;--ds-text-heading-medium-weight: 300;--ds-text-heading-display-weight: 100;--ds-text-heading-display-px-breakpoint-sm: 44px;--ds-text-heading-display-px-breakpoint-md: 48px;--ds-text-heading-display-px-breakpoint-lg: 56px;--ds-text-heading-display-size-breakpoint-sm: 2.75rem;--ds-text-heading-display-size-breakpoint-md: 3rem;--ds-text-heading-display-size-breakpoint-lg: 3.5rem;--ds-text-heading-display-height-breakpoint-sm: 3.375rem;--ds-text-heading-display-height-breakpoint-px-sm: 54px;--ds-text-heading-display-height-breakpoint-md: 3.75rem;--ds-text-heading-display-height-breakpoint-px-md: 60px;--ds-text-heading-display-height-breakpoint-lg: 4.25rem;--ds-text-heading-display-height-breakpoint-px-lg: 68px;--ds-text-body-default-weight: 500;--ds-text-body-size-xxs: 0.625rem;--ds-text-body-size-xs: 0.75rem;--ds-text-body-size-sm: 0.875rem;--ds-text-body-size-default: 1rem;--ds-text-body-size-lg: 1.125rem;--ds-text-body-height-xs: 1rem;--ds-text-body-height-sm: 1.25rem;--ds-text-body-height-default: 1.5rem;--ds-text-body-height-lg: 1.625rem;--ds-color-alert-notification-default: #0074c8;--ds-color-alert-warning-default: #de750c;--ds-color-alert-error-default: #df0b37;--ds-color-alert-success-default: #00805d;--ds-color-alert-advisory-default: #fff0cd;--ds-color-alert-bkg-success-default: #ddf6e8;--ds-color-alert-bkg-error-default: #ffedf1;--ds-color-background-primary-100-default: #ffffff;--ds-color-background-primary-100-inverse: #0e2b4f;--ds-color-background-primary-200-default: #f7f7f7;--ds-color-background-primary-200-inverse: #194069;--ds-color-background-primary-300-default: #e4e8ec;--ds-color-background-primary-300-inverse: #265688;--ds-color-background-primary-400-default: #dddddd;--ds-color-background-primary-400-inverse: #326aa5;--ds-color-background-success-default: #eef8f5;--ds-color-background-success-inverse: #173c30;--ds-color-background-error-default: #fff4f4;--ds-color-background-error-inverse: #74110e;--ds-color-background-warning-default: #fef8e9;--ds-color-background-warning-inverse: #5d4514;--ds-color-background-info-default: #f0f7fd;--ds-color-background-info-inverse: #193d73;--ds-color-background-subtle-default: #f7f8fa;--ds-color-background-subtle-inverse: #2a2a2a;--ds-color-background-accent-default: #ebfafd;--ds-color-background-accent-inverse: #275b72;--ds-color-background-emphasis-default: #c9e0f7;--ds-color-background-emphasis-inverse: #225296;--ds-color-background-scrimmed-default: rgba(0, 0, 0, 0.5);--ds-color-background-lightest: #ffffff;--ds-color-background-lighter: #f7f7f7;--ds-color-background-darker: #01426a;--ds-color-background-darkest: #00274a;--ds-color-background-gradient-default: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));--ds-color-base-white: #ffffff;--ds-color-base-white-100: rgba(255, 255, 255, 0.03);--ds-color-base-white-200: rgba(255, 255, 255, 0.06);--ds-color-base-white-300: rgba(255, 255, 255, 0.12);--ds-color-base-white-400: rgba(255, 255, 255, 0.25);--ds-color-base-white-500: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-50: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-40: rgba(255, 255, 255, 0.4);--ds-color-base-white-opacity-0: rgba(255, 255, 255, 0);--ds-color-base-black: #000000;--ds-color-base-black-100: rgba(0, 0, 0, 0.03);--ds-color-base-black-200: rgba(0, 0, 0, 0.06);--ds-color-base-black-300: rgba(0, 0, 0, 0.12);--ds-color-base-black-400: rgba(0, 0, 0, 0.25);--ds-color-base-black-500: rgba(0, 0, 0, 0.5);--ds-color-base-black-opacity-15: rgba(0, 0, 0, 0.15);--ds-color-base-blue-100: #f0f7fd;--ds-color-base-blue-200: #c9e0f7;--ds-color-base-blue-300: #a0c9f1;--ds-color-base-blue-400: #79b2ec;--ds-color-base-blue-500: #5398e6;--ds-color-base-blue-600: #3b7fd2;--ds-color-base-blue-700: #2c67b5;--ds-color-base-blue-800: #225296;--ds-color-base-blue-900: #193d73;--ds-color-base-blue-1000: #102a51;--ds-color-base-cyan-100: #ebfafd;--ds-color-base-cyan-200: #a8e9f7;--ds-color-base-cyan-300: #6ad5ef;--ds-color-base-cyan-400: #56bbde;--ds-color-base-cyan-500: #4aa2c7;--ds-color-base-cyan-600: #3e89aa;--ds-color-base-cyan-700: #32718e;--ds-color-base-cyan-800: #275b72;--ds-color-base-cyan-900: #1d4658;--ds-color-base-cyan-1000: #12303d;--ds-color-base-error-100: #fff4f4;--ds-color-base-error-200: #f9aca6;--ds-color-base-error-300: #f16359;--ds-color-base-error-400: #cc1816;--ds-color-base-error-500: #74110e;--ds-color-base-gray-100: #f7f7f7;--ds-color-base-gray-200: #d4d4d4;--ds-color-base-gray-300: #c5c5c5;--ds-color-base-gray-400: #adadad;--ds-color-base-gray-500: #959595;--ds-color-base-gray-600: #7e7e7e;--ds-color-base-gray-700: #676767;--ds-color-base-gray-800: #525252;--ds-color-base-gray-900: #3d3d3d;--ds-color-base-gray-1000: #2a2a2a;--ds-color-base-green-100: #f3faf7;--ds-color-base-green-200: #000000;--ds-color-base-green-300: #addbca;--ds-color-base-green-400: #7ec6ac;--ds-color-base-green-500: #51ae8c;--ds-color-base-green-600: #459578;--ds-color-base-green-700: #3a7d64;--ds-color-base-green-800: #306854;--ds-color-base-green-900: #285545;--ds-color-base-green-1000: #1f4436;--ds-color-base-lime-100: #f5fbeb;--ds-color-base-lime-200: #d8efb4;--ds-color-base-lime-300: #badd81;--ds-color-base-lime-400: #a2c270;--ds-color-base-lime-500: #8ca761;--ds-color-base-lime-600: #778f53;--ds-color-base-lime-700: #647845;--ds-color-base-lime-800: #53643a;--ds-color-base-lime-900: #44522f;--ds-color-base-lime-1000: #364126;--ds-color-base-navy-100: #f2f7fb;--ds-color-base-navy-200: #cfe0ef;--ds-color-base-navy-300: #acc9e2;--ds-color-base-navy-400: #89b2d4;--ds-color-base-navy-500: #6899c6;--ds-color-base-navy-600: #4a82b7;--ds-color-base-navy-700: #326aa5;--ds-color-base-navy-800: #265688;--ds-color-base-navy-900: #194069;--ds-color-base-navy-1000: #0e2b4f;--ds-color-base-neutral-100: #f7f8fa;--ds-color-base-neutral-200: #e4e8ec;--ds-color-base-neutral-300: #ccd2db;--ds-color-base-neutral-400: #afb9c6;--ds-color-base-neutral-500: #939fad;--ds-color-base-neutral-600: #7e8894;--ds-color-base-neutral-700: #6a717c;--ds-color-base-neutral-800: #585e67;--ds-color-base-neutral-900: #484d55;--ds-color-base-neutral-1000: #393d43;--ds-color-base-pink-100: #fff7f8;--ds-color-base-pink-200: #fde0e6;--ds-color-base-pink-300: #fcc2ce;--ds-color-base-pink-400: #fa9db0;--ds-color-base-pink-500: #f7738e;--ds-color-base-pink-600: #e45472;--ds-color-base-pink-700: #bf475f;--ds-color-base-pink-800: #a03b50;--ds-color-base-pink-900: #833142;--ds-color-base-pink-1000: #692734;--ds-color-base-purple-100: #fbf8fe;--ds-color-base-purple-200: #ede3fd;--ds-color-base-purple-300: #ddc9fb;--ds-color-base-purple-400: #c9a9f8;--ds-color-base-purple-500: #b588f5;--ds-color-base-purple-600: #a268f3;--ds-color-base-purple-700: #8d47f0;--ds-color-base-purple-800: #7633d7;--ds-color-base-purple-900: #622ab2;--ds-color-base-purple-1000: #4e228d;--ds-color-base-red-100: #fef7f5;--ds-color-base-red-200: #fae2da;--ds-color-base-red-300: #f5c7b8;--ds-color-base-red-400: #f0a68d;--ds-color-base-red-500: #e9815e;--ds-color-base-red-600: #e35c2f;--ds-color-base-red-700: #d03a08;--ds-color-base-red-800: #ae3007;--ds-color-base-red-900: #902806;--ds-color-base-red-1000: #732005;--ds-color-base-success-100: #eef8f5;--ds-color-base-success-200: #8eceb9;--ds-color-base-success-300: #40a080;--ds-color-base-success-400: #0b6f4d;--ds-color-base-success-500: #173c30;--ds-color-base-turquoise-100: #f7fafa;--ds-color-base-turquoise-200: #dfe9ea;--ds-color-base-turquoise-300: #c2d5d6;--ds-color-base-turquoise-400: #9fbdbe;--ds-color-base-turquoise-500: #7ba5a6;--ds-color-base-turquoise-600: #5c8f91;--ds-color-base-turquoise-700: #3d7a7d;--ds-color-base-turquoise-800: #21686a;--ds-color-base-turquoise-900: #085659;--ds-color-base-turquoise-1000: #004447;--ds-color-base-yellow-100: #fff9df;--ds-color-base-yellow-200: #ffe87e;--ds-color-base-yellow-300: #f9ce06;--ds-color-base-yellow-400: #d6b622;--ds-color-base-yellow-500: #b49d35;--ds-color-base-yellow-600: #96873e;--ds-color-base-yellow-700: #7c7140;--ds-color-base-yellow-800: #665e3d;--ds-color-base-yellow-900: #524e38;--ds-color-base-yellow-1000: #403d30;--ds-color-base-warning-100: #fef8e9;--ds-color-base-warning-200: #f2c153;--ds-color-base-warning-300: #c49432;--ds-color-base-warning-400: #8e6b22;--ds-color-base-warning-500: #5d4514;--ds-color-state-error-100: #ff999b;--ds-color-state-error-500: #df0b37;--ds-color-state-success-100: #69cf96;--ds-color-state-success-500: #00805d;--ds-color-state-warning-500: #de750c;--ds-color-border-primary-default: #585e67;--ds-color-border-primary-inverse: #afb9c6;--ds-color-border-secondary-default: #939fad;--ds-color-border-secondary-inverse: #7e8894;--ds-color-border-tertiary-default: #dddddd;--ds-color-border-tertiary-inverse: #676767;--ds-color-border-error-default: #cc1816;--ds-color-border-error-inverse: #f9aca6;--ds-color-border-divider-default: rgba(0, 0, 0, 0.12);--ds-color-border-divider-inverse: rgba(255, 255, 255, 0.25);--ds-color-border-subtle-default: #f0f7fd;--ds-color-border-subtle-inverse: #326aa5;--ds-color-border-emphasis-default: #194069;--ds-color-border-emphasis-inverse: #f2f7fb;--ds-color-border-accent-default: #badd81;--ds-color-border-accent-inverse: #a2c270;--ds-color-border-success-default: #0b6f4d;--ds-color-border-success-inverse: #8eceb9;--ds-color-border-warning-default: #c49432;--ds-color-border-warning-inverse: #f2c153;--ds-color-border-info-default: #326aa5;--ds-color-border-info-inverse: #89b2d4;--ds-color-border-ui-default-default: #2c67b5;--ds-color-border-ui-default-inverse: #56bbde;--ds-color-border-ui-hover-default: #193d73;--ds-color-border-ui-hover-inverse: #a8e9f7;--ds-color-border-ui-active-default: #225296;--ds-color-border-ui-active-inverse: #6ad5ef;--ds-color-border-ui-focus-default: #2c67b5;--ds-color-border-ui-focus-inverse: #56bbde;--ds-color-border-ui-disabled-default: #adadad;--ds-color-border-ui-disabled-inverse: #7e7e7e;--ds-color-border-active-default: #0074c8;--ds-color-border-active-inverse: #00cff0;--ds-color-border-disabled-default: #d4d4d4;--ds-color-border-focus-default: #959595;--ds-color-brand-neutral-100: #f7f8fa;--ds-color-brand-neutral-200: #e4e8ec;--ds-color-brand-neutral-300: #ccd2db;--ds-color-brand-neutral-400: #afb9c6;--ds-color-brand-neutral-500: #939fad;--ds-color-brand-neutral-600: #7e8894;--ds-color-brand-neutral-700: #6a717c;--ds-color-brand-neutral-800: #585e67;--ds-color-brand-neutral-900: #484d55;--ds-color-brand-neutral-1000: #393d43;--ds-color-brand-gray-100: #f7f7f7;--ds-color-brand-gray-200: #dddddd;--ds-color-brand-gray-300: #c5c5c5;--ds-color-brand-gray-400: #adadad;--ds-color-brand-gray-500: #959595;--ds-color-brand-gray-600: #7e7e7e;--ds-color-brand-gray-700: #676767;--ds-color-brand-gray-800: #525252;--ds-color-brand-gray-900: #3d3d3d;--ds-color-brand-gray-1000: #2a2a2a;--ds-color-brand-red-100: #fef7f5;--ds-color-brand-red-200: #fae2da;--ds-color-brand-red-300: #f5c7b8;--ds-color-brand-red-400: #f0a68d;--ds-color-brand-red-500: #e9815e;--ds-color-brand-red-600: #e35c2f;--ds-color-brand-red-700: #d03a08;--ds-color-brand-red-800: #ae3007;--ds-color-brand-red-900: #902806;--ds-color-brand-red-1000: #732005;--ds-color-brand-yellow-100: #fff9df;--ds-color-brand-yellow-200: #ffe87e;--ds-color-brand-yellow-300: #f9ce06;--ds-color-brand-yellow-400: #d6b622;--ds-color-brand-yellow-500: #b49d35;--ds-color-brand-yellow-600: #96873e;--ds-color-brand-yellow-700: #7c7140;--ds-color-brand-yellow-800: #665e3d;--ds-color-brand-yellow-900: #524e38;--ds-color-brand-yellow-1000: #403d30;--ds-color-brand-lime-100: #f5fbeb;--ds-color-brand-lime-200: #d8efb4;--ds-color-brand-lime-300: #badd81;--ds-color-brand-lime-400: #a2c270;--ds-color-brand-lime-500: #8ca761;--ds-color-brand-lime-600: #778f53;--ds-color-brand-lime-700: #647845;--ds-color-brand-lime-800: #53643a;--ds-color-brand-lime-900: #44522f;--ds-color-brand-lime-1000: #364126;--ds-color-brand-green-100: #f3faf7;--ds-color-brand-green-200: #d4ece4;--ds-color-brand-green-300: #addbca;--ds-color-brand-green-400: #7ec6ac;--ds-color-brand-green-500: #51ae8c;--ds-color-brand-green-600: #459578;--ds-color-brand-green-700: #3a7d64;--ds-color-brand-green-800: #306854;--ds-color-brand-green-900: #285545;--ds-color-brand-green-1000: #1f4436;--ds-color-brand-turquoise-100: #f7fafa;--ds-color-brand-turquoise-200: #dfe9ea;--ds-color-brand-turquoise-300: #c2d5d6;--ds-color-brand-turquoise-400: #9fbdbe;--ds-color-brand-turquoise-500: #7ba5a6;--ds-color-brand-turquoise-600: #5c8f91;--ds-color-brand-turquoise-700: #3d7a7d;--ds-color-brand-turquoise-800: #21686a;--ds-color-brand-turquoise-900: #085659;--ds-color-brand-turquoise-1000: #004447;--ds-color-brand-cyan-100: #ebfafd;--ds-color-brand-cyan-200: #a8e9f7;--ds-color-brand-cyan-300: #6ad5ef;--ds-color-brand-cyan-400: #56bbde;--ds-color-brand-cyan-500: #4aa2c7;--ds-color-brand-cyan-600: #3e89aa;--ds-color-brand-cyan-700: #32718e;--ds-color-brand-cyan-800: #275b72;--ds-color-brand-cyan-900: #1d4658;--ds-color-brand-cyan-1000: #12303d;--ds-color-brand-blue-100: #f0f7fd;--ds-color-brand-blue-200: #c9e0f7;--ds-color-brand-blue-300: #a0c9f1;--ds-color-brand-blue-400: #79b2ec;--ds-color-brand-blue-500: #5398e6;--ds-color-brand-blue-600: #3b7fd2;--ds-color-brand-blue-700: #2c67b5;--ds-color-brand-blue-800: #225296;--ds-color-brand-blue-900: #193d73;--ds-color-brand-blue-1000: #102a51;--ds-color-brand-navy-100: #f2f7fb;--ds-color-brand-navy-200: #cfe0ef;--ds-color-brand-navy-300: #acc9e2;--ds-color-brand-navy-400: #89b2d4;--ds-color-brand-navy-500: #6899c6;--ds-color-brand-navy-600: #4a82b7;--ds-color-brand-navy-700: #326aa5;--ds-color-brand-navy-800: #265688;--ds-color-brand-navy-900: #194069;--ds-color-brand-navy-1000: #0e2b4f;--ds-color-brand-purple-100: #fbf8fe;--ds-color-brand-purple-200: #ede3fd;--ds-color-brand-purple-300: #ddc9fb;--ds-color-brand-purple-400: #c9a9f8;--ds-color-brand-purple-500: #b588f5;--ds-color-brand-purple-600: #a268f3;--ds-color-brand-purple-700: #8d47f0;--ds-color-brand-purple-800: #7633d7;--ds-color-brand-purple-900: #622ab2;--ds-color-brand-purple-1000: #4e228d;--ds-color-brand-pink-100: #fff7f8;--ds-color-brand-pink-200: #fde0e6;--ds-color-brand-pink-300: #fcc2ce;--ds-color-brand-pink-400: #fa9db0;--ds-color-brand-pink-500: #f7738e;--ds-color-brand-pink-600: #e45472;--ds-color-brand-pink-700: #bf475f;--ds-color-brand-pink-800: #a03b50;--ds-color-brand-pink-900: #833142;--ds-color-brand-pink-1000: #692734;--ds-color-brand-midnight-100: #c1daf0;--ds-color-brand-midnight-200: #569ed7;--ds-color-brand-midnight-300: #156fad;--ds-color-brand-midnight-400: #01426a;--ds-color-brand-midnight-500: #00274a;--ds-color-brand-atlas-100: #cde6ff;--ds-color-brand-atlas-200: #6bb7fb;--ds-color-brand-atlas-300: #2492eb;--ds-color-brand-atlas-400: #0074c8;--ds-color-brand-atlas-500: #054687;--ds-color-brand-atlas-400-opacity-20: rgba(0, 116, 200, 0.2);--ds-color-brand-breeze-100: #c0f7ff;--ds-color-brand-breeze-200: #5de3f7;--ds-color-brand-breeze-300: #00cff0;--ds-color-brand-breeze-400: #099dc5;--ds-color-brand-breeze-500: #0b5575;--ds-color-brand-breeze-300-opacity-30: rgba(0, 207, 240, 0.3);--ds-color-brand-tropical-100: #e2ffcd;--ds-color-brand-tropical-200: #d0fba6;--ds-color-brand-tropical-300: #c0e585;--ds-color-brand-tropical-400: #91be62;--ds-color-brand-tropical-500: #5e8741;--ds-color-brand-alpine-100: #bcaae6;--ds-color-brand-alpine-200: #9e73ea;--ds-color-brand-alpine-300: #8439ef;--ds-color-brand-alpine-400: #631db8;--ds-color-brand-alpine-500: #39115c;--ds-color-brand-flamingo-100: #ffebee;--ds-color-brand-flamingo-200: #ffc0ca;--ds-color-brand-flamingo-300: #ff94a7;--ds-color-brand-flamingo-400: #f65b7b;--ds-color-brand-flamingo-500: #b82b47;--ds-color-brand-canyon-100: #ffcab6;--ds-color-brand-canyon-200: #f99574;--ds-color-brand-canyon-300: #f26135;--ds-color-brand-canyon-400: #de3e09;--ds-color-brand-canyon-500: #b83302;--ds-color-brand-goldcoast-100: #fff0cd;--ds-color-brand-goldcoast-200: #ffdb67;--ds-color-brand-goldcoast-300: #ffd200;--ds-color-brand-goldcoast-400: #e5ad07;--ds-color-brand-goldcoast-500: #b88624;--ds-color-brand-goldgray-100: #c5c1bf;--ds-color-brand-goldgray-200: #726e6c;--ds-color-brand-gold-100: #ccbc94;--ds-color-brand-gold-200: #7f682e;--ds-color-brand-emerald: #139142;--ds-color-brand-sapphire: #015daa;--ds-color-brand-ruby: #a41d4a;--ds-color-brand-lounge: #01426a;--ds-color-brand-loungeplus: #53b390;--ds-color-container-accent-default: #f5fbeb;--ds-color-container-accent-inverse: #badd81;--ds-color-container-emphasis-default: #ebfafd;--ds-color-container-emphasis-inverse: #6ad5ef;--ds-color-container-error-default: #fff4f4;--ds-color-container-error-inverse: #74110e;--ds-color-container-info-default: #f0f7fd;--ds-color-container-info-inverse: #193d73;--ds-color-container-primary-default: #ffffff;--ds-color-container-primary-inverse: #0e2b4f;--ds-color-container-secondary-default: #f7f7f7;--ds-color-container-secondary-inverse: #194069;--ds-color-container-subtle-default: #f7f8fa;--ds-color-container-subtle-inverse: #393d43;--ds-color-container-success-default: #eef8f5;--ds-color-container-success-inverse: #173c30;--ds-color-container-tertiary-default: rgba(0, 0, 0, 0.03);--ds-color-container-tertiary-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-warning-default: #fef8e9;--ds-color-container-warning-inverse: #5d4514;--ds-color-container-ui-primary-active-default: #225296;--ds-color-container-ui-primary-active-inverse: #6ad5ef;--ds-color-container-ui-primary-default-default: #2c67b5;--ds-color-container-ui-primary-default-inverse: #56bbde;--ds-color-container-ui-primary-disabled-default: #a0c9f1;--ds-color-container-ui-primary-disabled-inverse: #275b72;--ds-color-container-ui-primary-focus-default: #2c67b5;--ds-color-container-ui-primary-focus-inverse: #56bbde;--ds-color-container-ui-primary-hover-default: #193d73;--ds-color-container-ui-primary-hover-inverse: #a8e9f7;--ds-color-container-ui-secondary-active-default: #f0f7fd;--ds-color-container-ui-secondary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-secondary-default-default: #ffffff;--ds-color-container-ui-secondary-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-disabled-default: #f7f7f7;--ds-color-container-ui-secondary-disabled-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-secondary-focus-default: #ffffff;--ds-color-container-ui-secondary-focus-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-hover-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-secondary-hover-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-active-default: rgba(0, 0, 0, 0.06);--ds-color-container-ui-tertiary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-tertiary-default-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-default-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-disabled-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-disabled-inverse: rgba(255, 255, 255, 0.25);--ds-color-container-ui-tertiary-focus-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-focus-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-hover-default: rgba(0, 0, 0, 0.12);--ds-color-container-ui-tertiary-hover-inverse: rgba(255, 255, 255, 0.25);--ds-color-icon-primary-default: #676767;--ds-color-icon-primary-inverse: #f7f7f7;--ds-color-icon-secondary-default: #7e8894;--ds-color-icon-secondary-inverse: #ccd2db;--ds-color-icon-tertiary-default: #afb9c6;--ds-color-icon-tertiary-inverse: #939fad;--ds-color-icon-emphasis-default: #2a2a2a;--ds-color-icon-emphasis-inverse: #ffffff;--ds-color-icon-accent-default: #a2c270;--ds-color-icon-accent-inverse: #badd81;--ds-color-icon-info-default: #326aa5;--ds-color-icon-info-inverse: #89b2d4;--ds-color-icon-error-default: #cc1816;--ds-color-icon-error-inverse: #f9aca6;--ds-color-icon-warning-default: #c49432;--ds-color-icon-warning-inverse: #f2c153;--ds-color-icon-success-default: #40a080;--ds-color-icon-success-inverse: #8eceb9;--ds-color-icon-subtle-default: #a0c9f1;--ds-color-icon-subtle-inverse: #326aa5;--ds-color-icon-ui-primary-default-default: #2c67b5;--ds-color-icon-ui-primary-default-inverse: #56bbde;--ds-color-icon-ui-primary-hover-default: #193d73;--ds-color-icon-ui-primary-hover-inverse: #a8e9f7;--ds-color-icon-ui-primary-active-default: #225296;--ds-color-icon-ui-primary-active-inverse: #6ad5ef;--ds-color-icon-ui-primary-disabled-default: #adadad;--ds-color-icon-ui-primary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-primary-focus-default: #2c67b5;--ds-color-icon-ui-primary-focus-inverse: #56bbde;--ds-color-icon-ui-secondary-active-default: #676767;--ds-color-icon-ui-secondary-active-inverse: #c5c5c5;--ds-color-icon-ui-secondary-default-default: #7e7e7e;--ds-color-icon-ui-secondary-default-inverse: #adadad;--ds-color-icon-ui-secondary-disabled-default: #adadad;--ds-color-icon-ui-secondary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-secondary-focus-default: #7e7e7e;--ds-color-icon-ui-secondary-focus-inverse: #adadad;--ds-color-icon-ui-secondary-hover-default: #525252;--ds-color-icon-ui-secondary-hover-inverse: #dddddd;--ds-color-icon-brand-red-default: #d03a08;--ds-color-icon-brand-red-inverse: #e9815e;--ds-color-icon-brand-yellow-default: #7c7140;--ds-color-icon-brand-yellow-inverse: #f9ce06;--ds-color-icon-brand-pink-default: #bf475f;--ds-color-icon-brand-pink-inverse: #f7738e;--ds-color-icon-brand-purple-default: #8d47f0;--ds-color-icon-brand-purple-inverse: #b588f5;--ds-color-icon-brand-lime-default: #647845;--ds-color-icon-brand-lime-inverse: #badd81;--ds-color-icon-brand-green-default: #3a7d64;--ds-color-icon-brand-green-inverse: #51ae8c;--ds-color-icon-brand-turquoise-default: #3d7a7d;--ds-color-icon-brand-turquoise-inverse: #7ba5a6;--ds-color-icon-brand-navy-default: #265688;--ds-color-icon-brand-navy-inverse: #6899c6;--ds-color-icon-brand-blue-default: #2c67b5;--ds-color-icon-brand-blue-inverse: #5398e6;--ds-color-icon-brand-cyan-default: #32718e;--ds-color-icon-brand-cyan-inverse: #6ad5ef;--ds-color-icon-brand-gray-default: #676767;--ds-color-icon-brand-gray-inverse: #c5c5c5;--ds-color-icon-brand-neutral-default: #6a717c;--ds-color-icon-brand-neutral-inverse: #afb9c6;--ds-color-icon-disabled-default: rgba(0, 0, 0, 0.15);--ds-color-text-primary-default: #2a2a2a;--ds-color-text-primary-inverse: #ffffff;--ds-color-text-secondary-default: #525252;--ds-color-text-secondary-inverse: #dddddd;--ds-color-text-tertiary-default: #6a717c;--ds-color-text-tertiary-inverse: #adadad;--ds-color-text-error-default: #cc1816;--ds-color-text-error-inverse: #f9aca6;--ds-color-text-emphasis-default: #265688;--ds-color-text-emphasis-inverse: #cfe0ef;--ds-color-text-accent-default: #647845;--ds-color-text-accent-inverse: #badd81;--ds-color-text-info-default: #326aa5;--ds-color-text-info-inverse: #acc9e2;--ds-color-text-subtle-default: #32718e;--ds-color-text-subtle-inverse: #56bbde;--ds-color-text-success-default: #0b6f4d;--ds-color-text-success-inverse: #8eceb9;--ds-color-text-ui-active-default: #225296;--ds-color-text-ui-active-inverse: #6ad5ef;--ds-color-text-ui-default-default: #2c67b5;--ds-color-text-ui-default-inverse: #56bbde;--ds-color-text-ui-disabled-default: #adadad;--ds-color-text-ui-disabled-inverse: #7e7e7e;--ds-color-text-ui-focus-default: #2c67b5;--ds-color-text-ui-focus-inverse: #56bbde;--ds-color-text-ui-hover-default: #193d73;--ds-color-text-ui-hover-inverse: #a8e9f7;--ds-color-text-link-default: #0074c8;--ds-color-text-link-inverse: #00cff0;--ds-color-tier-alaska-mvp-default: #726e6c;--ds-color-tier-alaska-mvp-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold-default: #7f682e;--ds-color-tier-alaska-mvpgold-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold75k-default: #7f682e;--ds-color-tier-alaska-mvpgold75k-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold100k-default: #7f682e;--ds-color-tier-alaska-mvpgold100k-inverse: #c5c1bf;--ds-color-tier-alaska-lounge: #01426a;--ds-color-tier-alaska-loungeplus: #53b390;--ds-color-tier-fare-business-default: #005154;--ds-color-tier-fare-business-inverse: #9fbdbe;--ds-color-tier-fare-economy-default: #2c67b5;--ds-color-tier-fare-economy-inverse: #a0c9f1;--ds-color-tier-fare-first-class-default: #002c4e;--ds-color-tier-fare-first-class-inverse: #89b2d4;--ds-color-tier-fare-saver-default: #4aa2c7;--ds-color-tier-fare-saver-inverse: #a8e9f7;--ds-color-tier-oneworld-emerald: #139142;--ds-color-tier-oneworld-sapphire: #015daa;--ds-color-tier-oneworld-ruby: #a41d4a;--ds-color-ui-default-default: #0074c8;--ds-color-ui-default-inverse: #00cff0;--ds-color-ui-hover-default: #054687;--ds-color-ui-hover-inverse: #5de3f7;--ds-color-ui-active-default: #054687;--ds-color-ui-active-inverse: #5de3f7;--ds-color-ui-disabled-default: rgba(0, 116, 200, 0.2);--ds-color-ui-bkg-default-default: rgba(0, 0, 0, 0.03);--ds-color-ui-bkg-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-ui-bkg-hover-default: rgba(0, 0, 0, 0.06);--ds-color-ui-bkg-hover-inverse: rgba(255, 255, 255, 0.06);--ds-color-utility-blue-default: #79b2ec;--ds-color-utility-blue-inverse: #c9e0f7;--ds-color-utility-cyan-default: #6ad5ef;--ds-color-utility-cyan-inverse: #a8e9f7;--ds-color-utility-green-default: #7ec6ac;--ds-color-utility-green-inverse: #addbca;--ds-color-utility-gray-default: #adadad;--ds-color-utility-gray-inverse: #dddddd;--ds-color-utility-lime-default: #badd81;--ds-color-utility-lime-inverse: #d8efb4;--ds-color-utility-navy-default: #265688;--ds-color-utility-navy-inverse: #acc9e2;--ds-color-utility-neutral-default: #7e8894;--ds-color-utility-neutral-inverse: #ccd2db;--ds-color-utility-pink-default: #f7738e;--ds-color-utility-pink-inverse: #fcc2ce;--ds-color-utility-purple-default: #8d47f0;--ds-color-utility-purple-inverse: #ddc9fb;--ds-color-utility-red-default: #e35c2f;--ds-color-utility-red-inverse: #f0a68d;--ds-color-utility-turquoise-default: #5c8f91;--ds-color-utility-turquoise-inverse: #9fbdbe;--ds-color-utility-yellow-default: #f9ce06;--ds-color-utility-yellow-inverse: #ffe87e;--ds-color-utility-error-default: #cc1816;--ds-color-utility-error-inverse: #f9aca6;--ds-color-utility-warning-default: #f2c153;--ds-color-utility-warning-inverse: #f2c153;--ds-color-utility-success-default: #0b6f4d;--ds-color-utility-success-inverse: #8eceb9}*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}:host{display:inline-block;width:100%;margin:0;padding:0;vertical-align:middle}:host ::slotted(auro-menuoption),:host ::slotted([auro-menuoption]),:host auro-menuoption[loadingplaceholder]{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host ::slotted([selected]){padding-left:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host([nocheckmark]) ::slotted(auro-menuoption),:host([nocheckmark]) auro-menuoption[loadingplaceholder]{padding-left:var(--ds-size-200, 1rem)}:host([root]){overflow-y:auto}[loadingplaceholder]{color:var(--ds-color-text-secondary-default, #525252)}[loadingplaceholder].empty{opacity:0;position:absolute}[loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}[loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}`;
|
|
7682
7671
|
|
|
7683
|
-
|
|
7672
|
+
var colorCss$2 = i$5`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color) !important}`;
|
|
7684
7673
|
|
|
7685
|
-
|
|
7686
|
-
* @private
|
|
7687
|
-
*/
|
|
7688
|
-
this.validation = new AuroFormValidation$1();
|
|
7674
|
+
var tokensCss$1 = i$5`:host{--ds-auro-menu-divider-color: var(--ds-color-border-divider-default, $ds-color-border-divider-default);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-color-text-primary-default, $ds-color-text-primary-default)}`;
|
|
7689
7675
|
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
*/
|
|
7693
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
7676
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
7677
|
+
// See LICENSE in the project root for license information.
|
|
7694
7678
|
|
|
7695
|
-
|
|
7696
|
-
* @private
|
|
7697
|
-
*/
|
|
7698
|
-
this.isHiddenWhileLoading = false;
|
|
7679
|
+
// ---------------------------------------------------------------------
|
|
7699
7680
|
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
this.inputTag = versioning.generateTag('auro-input', inputVersion, AuroInput);
|
|
7706
|
-
}
|
|
7681
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
7682
|
+
|
|
7683
|
+
class AuroLibraryRuntimeUtils {
|
|
7684
|
+
|
|
7685
|
+
/* eslint-disable jsdoc/require-param */
|
|
7707
7686
|
|
|
7708
7687
|
/**
|
|
7709
|
-
*
|
|
7710
|
-
* @
|
|
7688
|
+
* This will register a new custom element with the browser.
|
|
7689
|
+
* @param {String} name - The name of the custom element.
|
|
7690
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
7691
|
+
* @returns {void}
|
|
7711
7692
|
*/
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7693
|
+
registerComponent(name, componentClass) {
|
|
7694
|
+
if (!customElements.get(name)) {
|
|
7695
|
+
customElements.define(name, class extends componentClass {});
|
|
7696
|
+
}
|
|
7716
7697
|
}
|
|
7717
7698
|
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
type: String
|
|
7736
|
-
},
|
|
7737
|
-
validity: {
|
|
7738
|
-
type: String,
|
|
7739
|
-
reflect: true
|
|
7740
|
-
},
|
|
7741
|
-
disabled: {
|
|
7742
|
-
type: Boolean,
|
|
7743
|
-
reflect: true
|
|
7744
|
-
},
|
|
7745
|
-
noFilter: {
|
|
7746
|
-
type: Boolean,
|
|
7747
|
-
reflect: true
|
|
7748
|
-
},
|
|
7749
|
-
optionSelected: { type: Object },
|
|
7750
|
-
noValidate: { type: Boolean },
|
|
7751
|
-
required: {
|
|
7752
|
-
type: Boolean,
|
|
7753
|
-
reflect: true
|
|
7754
|
-
},
|
|
7755
|
-
triggerIcon: {
|
|
7756
|
-
type: Boolean,
|
|
7757
|
-
reflect: true
|
|
7758
|
-
},
|
|
7759
|
-
type: {
|
|
7760
|
-
type: String,
|
|
7761
|
-
reflect: true
|
|
7762
|
-
},
|
|
7763
|
-
value: {
|
|
7764
|
-
type: String
|
|
7765
|
-
},
|
|
7766
|
-
checkmark: {
|
|
7767
|
-
type: Boolean,
|
|
7768
|
-
reflect: true
|
|
7769
|
-
},
|
|
7699
|
+
/**
|
|
7700
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
7701
|
+
* @returns {void}
|
|
7702
|
+
*/
|
|
7703
|
+
closestElement(
|
|
7704
|
+
selector, // selector like in .closest()
|
|
7705
|
+
base = this, // extra functionality to skip a parent
|
|
7706
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
7707
|
+
!el || el === document || el === window
|
|
7708
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
7709
|
+
: found
|
|
7710
|
+
? found // found a selector INside this element
|
|
7711
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
7712
|
+
) {
|
|
7713
|
+
return __Closest(base);
|
|
7714
|
+
}
|
|
7715
|
+
/* eslint-enable jsdoc/require-param */
|
|
7770
7716
|
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7717
|
+
/**
|
|
7718
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
7719
|
+
* @param {Object} elem - The element to check.
|
|
7720
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
7721
|
+
* @returns {void}
|
|
7722
|
+
*/
|
|
7723
|
+
handleComponentTagRename(elem, tagName) {
|
|
7724
|
+
const tag = tagName.toLowerCase();
|
|
7725
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
7726
|
+
|
|
7727
|
+
if (elemTag !== tag) {
|
|
7728
|
+
elem.setAttribute(tag, true);
|
|
7729
|
+
}
|
|
7730
|
+
}
|
|
7731
|
+
|
|
7732
|
+
/**
|
|
7733
|
+
* Validates if an element is a specific Auro component.
|
|
7734
|
+
* @param {Object} elem - The element to validate.
|
|
7735
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
7736
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
7737
|
+
*/
|
|
7738
|
+
elementMatch(elem, tagName) {
|
|
7739
|
+
const tag = tagName.toLowerCase();
|
|
7740
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
7741
|
+
|
|
7742
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
7743
|
+
}
|
|
7744
|
+
}
|
|
7745
|
+
|
|
7746
|
+
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7747
|
+
// See LICENSE in the project root for license information.
|
|
7748
|
+
|
|
7749
|
+
// ---------------------------------------------------------------------
|
|
7750
|
+
|
|
7751
|
+
/**
|
|
7752
|
+
* Converts value to an array.
|
|
7753
|
+
* If the value is a JSON string representing an array, it will be parsed.
|
|
7754
|
+
* If the value is already an array, it is returned.
|
|
7755
|
+
* If the value is undefined, it returns undefined.
|
|
7756
|
+
* @private
|
|
7757
|
+
* @param {any} value - The value to be converted. Can be a string, array, or undefined.
|
|
7758
|
+
* @returns {Array|undefined} - The converted array or undefined.
|
|
7759
|
+
* @throws {Error} - Throws an error if the value is not an array, undefined,
|
|
7760
|
+
* or if the value cannot be parsed into an array from a JSON string.
|
|
7761
|
+
*/
|
|
7762
|
+
function arrayConverter(value) {
|
|
7763
|
+
// Allow undefined
|
|
7764
|
+
if (value === undefined) {
|
|
7765
|
+
return undefined;
|
|
7766
|
+
}
|
|
7767
|
+
|
|
7768
|
+
// Return the value if it is already an array
|
|
7769
|
+
if (Array.isArray(value)) {
|
|
7770
|
+
return value;
|
|
7771
|
+
}
|
|
7772
|
+
|
|
7773
|
+
try {
|
|
7774
|
+
// If value is a JSON string, parse it
|
|
7775
|
+
const parsed = typeof value === 'string' ? JSON.parse(value) : value;
|
|
7776
|
+
|
|
7777
|
+
// Check if the parsed value is an array
|
|
7778
|
+
if (Array.isArray(parsed)) {
|
|
7779
|
+
return parsed;
|
|
7780
|
+
}
|
|
7781
|
+
} catch (error) {
|
|
7782
|
+
// If JSON parsing fails, continue to throw an error below
|
|
7783
|
+
/* eslint-disable no-console */
|
|
7784
|
+
console.error('JSON parsing failed:', error);
|
|
7785
|
+
}
|
|
7786
|
+
|
|
7787
|
+
// Throw error if the input is not an array or undefined
|
|
7788
|
+
throw new Error('Invalid value: Input must be an array or undefined');
|
|
7789
|
+
}
|
|
7790
|
+
|
|
7791
|
+
/**
|
|
7792
|
+
* Compare two arrays for equality.
|
|
7793
|
+
* @private
|
|
7794
|
+
* @param {Array} arr1 - First array to compare.
|
|
7795
|
+
* @param {Array} arr2 - Second array to compare.
|
|
7796
|
+
* @returns {boolean} True if arrays are equal.
|
|
7797
|
+
*/
|
|
7798
|
+
function arraysAreEqual(arr1, arr2) {
|
|
7799
|
+
// If both arrays undefined, they are equal (true)
|
|
7800
|
+
if (arr1 === undefined || arr2 === undefined) {
|
|
7801
|
+
return arr1 === arr2;
|
|
7802
|
+
}
|
|
7803
|
+
|
|
7804
|
+
// If arrays have different lengths, they are not equal
|
|
7805
|
+
if (arr1.length !== arr2.length) {
|
|
7806
|
+
return false;
|
|
7807
|
+
}
|
|
7808
|
+
|
|
7809
|
+
// If every item at each index is the same, return true
|
|
7810
|
+
for (let index = 0; index < arr1.length; index += 1) {
|
|
7811
|
+
if (arr1[index] !== arr2[index]) {
|
|
7812
|
+
return false;
|
|
7813
|
+
}
|
|
7814
|
+
}
|
|
7815
|
+
return true;
|
|
7816
|
+
}
|
|
7817
|
+
|
|
7818
|
+
/**
|
|
7819
|
+
* Compares array for changes.
|
|
7820
|
+
* @private
|
|
7821
|
+
* @param {Array|any} newVal - New value to compare.
|
|
7822
|
+
* @param {Array|any} oldVal - Old value to compare.
|
|
7823
|
+
* @returns {boolean} True if arrays have changed.
|
|
7824
|
+
*/
|
|
7825
|
+
function arrayOrUndefinedHasChanged(newVal, oldVal) {
|
|
7826
|
+
try {
|
|
7827
|
+
// Check if values are undefined or arrays
|
|
7828
|
+
const isArrayOrUndefined = (val) => val === undefined || Array.isArray(val);
|
|
7829
|
+
|
|
7830
|
+
// If non-array or non-undefined, throw error
|
|
7831
|
+
if (!isArrayOrUndefined(newVal) || !isArrayOrUndefined(oldVal)) {
|
|
7832
|
+
const invalidValue = isArrayOrUndefined(newVal) ? oldVal : newVal;
|
|
7833
|
+
throw new Error(`Value must be an array or undefined, received ${typeof invalidValue}`);
|
|
7834
|
+
}
|
|
7835
|
+
|
|
7836
|
+
// Return true if arrays have changed, false if they are the same
|
|
7837
|
+
return !arraysAreEqual(newVal, oldVal);
|
|
7838
|
+
} catch (error) {
|
|
7839
|
+
/* eslint-disable no-console */
|
|
7840
|
+
console.error(error);
|
|
7841
|
+
// If validation fails, it has changed
|
|
7842
|
+
return true;
|
|
7843
|
+
}
|
|
7844
|
+
}
|
|
7845
|
+
|
|
7846
|
+
/**
|
|
7847
|
+
* Validates if an option can be interacted with.
|
|
7848
|
+
* @private
|
|
7849
|
+
* @param {HTMLElement} option - The option to check.
|
|
7850
|
+
* @returns {boolean} True if option is interactive.
|
|
7851
|
+
*/
|
|
7852
|
+
function isOptionInteractive(option) {
|
|
7853
|
+
return !option.hasAttribute('hidden') &&
|
|
7854
|
+
!option.hasAttribute('disabled') &&
|
|
7855
|
+
!option.hasAttribute('static');
|
|
7856
|
+
}
|
|
7857
|
+
|
|
7858
|
+
/**
|
|
7859
|
+
* Helper method to dispatch custom events.
|
|
7860
|
+
* @param {HTMLElement} element - Element to dispatch event from.
|
|
7861
|
+
* @param {string} eventName - Name of the event to dispatch.
|
|
7862
|
+
* @param {Object} [detail] - Optional detail object to include with the event.
|
|
7863
|
+
*/
|
|
7864
|
+
function dispatchMenuEvent(element, eventName, detail = null) {
|
|
7865
|
+
const eventConfig = {
|
|
7866
|
+
bubbles: true,
|
|
7867
|
+
cancelable: false,
|
|
7868
|
+
composed: true
|
|
7869
|
+
};
|
|
7870
|
+
|
|
7871
|
+
if (detail !== null) {
|
|
7872
|
+
eventConfig.detail = detail;
|
|
7873
|
+
}
|
|
7874
|
+
|
|
7875
|
+
element.dispatchEvent(new CustomEvent(eventName, eventConfig));
|
|
7876
|
+
}
|
|
7877
|
+
|
|
7878
|
+
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7879
|
+
// See LICENSE in the project root for license information.
|
|
7880
|
+
|
|
7881
|
+
|
|
7882
|
+
|
|
7883
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
7884
|
+
/**
|
|
7885
|
+
* The auro-menu element provides users a way to select from a list of options.
|
|
7886
|
+
* @attr {Array<HTMLElement>|undefined} optionselected - An array of currently selected menu options. In single-select mode, the array will contain only one HTMLElement. `undefined` when no options are selected.
|
|
7887
|
+
* @attr {object} optionactive - Specifies the current active menuOption.
|
|
7888
|
+
* @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
|
|
7889
|
+
* @attr {boolean} disabled - When true, the entire menu and all options are disabled;
|
|
7890
|
+
* @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
|
|
7891
|
+
* @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
7892
|
+
* @attr {boolean} multiselect - When true, the selected option can be multiple options.
|
|
7893
|
+
* @attr {Array<string>|undefined} value - Value selected for the menu. `undefined` when no selection has been made, otherwise an array of strings. In single-select mode, the array will contain only one value.
|
|
7894
|
+
* @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
7895
|
+
* @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
7896
|
+
* @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
7897
|
+
* @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
|
|
7898
|
+
* @event {CustomEvent<any>} auroMenu-selectValueFailure - Notifies that an attempt to select a menuoption by matching a value has failed.
|
|
7899
|
+
* @event {CustomEvent<any>} auroMenu-selectValueReset - Notifies that the component value has been reset.
|
|
7900
|
+
* @event {CustomEvent<any>} auroMenu-selectedOption - Notifies that a new menuoption selection has been made.
|
|
7901
|
+
* @slot loadingText - Text to show while loading attribute is set
|
|
7902
|
+
* @slot loadingIcon - Icon to show while loading attribute is set
|
|
7903
|
+
* @slot - Slot for insertion of menu options.
|
|
7904
|
+
*/
|
|
7905
|
+
|
|
7906
|
+
/* eslint-disable no-magic-numbers, max-lines */
|
|
7907
|
+
|
|
7908
|
+
class AuroMenu extends r {
|
|
7909
|
+
constructor() {
|
|
7910
|
+
super();
|
|
7911
|
+
|
|
7912
|
+
// State properties (reactive)
|
|
7913
|
+
|
|
7914
|
+
// Value of the selected options
|
|
7915
|
+
this.value = undefined;
|
|
7916
|
+
// Currently selected option
|
|
7917
|
+
this.optionSelected = undefined;
|
|
7918
|
+
// String used for highlighting/filtering
|
|
7919
|
+
this.matchWord = undefined;
|
|
7920
|
+
// Hide the checkmark icon on selected options
|
|
7921
|
+
this.noCheckmark = false;
|
|
7922
|
+
// Currently active option
|
|
7923
|
+
this.optionActive = undefined;
|
|
7924
|
+
// Loading state
|
|
7925
|
+
this.loading = false;
|
|
7926
|
+
// Multi-select mode
|
|
7927
|
+
this.multiSelect = false;
|
|
7928
|
+
|
|
7929
|
+
// Event Bindings
|
|
7930
|
+
|
|
7931
|
+
/**
|
|
7932
|
+
* @private
|
|
7933
|
+
*/
|
|
7934
|
+
this.handleKeyDown = this.handleKeyDown.bind(this);
|
|
7935
|
+
|
|
7936
|
+
/**
|
|
7937
|
+
* @private
|
|
7938
|
+
*/
|
|
7939
|
+
this.handleMouseSelect = this.handleMouseSelect.bind(this);
|
|
7940
|
+
|
|
7941
|
+
/**
|
|
7942
|
+
* @private
|
|
7943
|
+
*/
|
|
7944
|
+
this.handleOptionHover = this.handleOptionHover.bind(this);
|
|
7945
|
+
|
|
7946
|
+
/**
|
|
7947
|
+
* @private
|
|
7948
|
+
*/
|
|
7949
|
+
this.handleSlotChange = this.handleSlotChange.bind(this);
|
|
7950
|
+
|
|
7951
|
+
// Instance properties (non-reactive)
|
|
7952
|
+
|
|
7953
|
+
/**
|
|
7954
|
+
* @private
|
|
7955
|
+
*/
|
|
7956
|
+
Object.assign(this, {
|
|
7957
|
+
// Root-level menu (true) or a nested submenu (false)
|
|
7958
|
+
rootMenu: true,
|
|
7959
|
+
// Currently focused/active menu item index
|
|
7960
|
+
index: -1,
|
|
7961
|
+
// Nested menu spacer
|
|
7962
|
+
nestingSpacer: '<span class="nestingSpacer"></span>',
|
|
7963
|
+
// Loading indicator for slot elements
|
|
7964
|
+
loadingSlots: null,
|
|
7965
|
+
// Store for menu items
|
|
7966
|
+
items: [],
|
|
7967
|
+
});
|
|
7968
|
+
}
|
|
7969
|
+
|
|
7970
|
+
static get properties() {
|
|
7971
|
+
return {
|
|
7972
|
+
noCheckmark: {
|
|
7973
|
+
type: Boolean,
|
|
7974
|
+
reflect: true,
|
|
7975
|
+
attribute: 'nocheckmark'
|
|
7976
|
+
},
|
|
7977
|
+
disabled: {
|
|
7978
|
+
type: Boolean,
|
|
7979
|
+
reflect: true
|
|
7980
|
+
},
|
|
7981
|
+
loading: {
|
|
7982
|
+
type: Boolean,
|
|
7983
|
+
reflect: true
|
|
7984
|
+
},
|
|
7985
|
+
optionSelected: {
|
|
7986
|
+
// Allow HTMLElement[] arrays and undefined
|
|
7987
|
+
converter: arrayConverter,
|
|
7988
|
+
hasChanged: arrayOrUndefinedHasChanged
|
|
7989
|
+
},
|
|
7990
|
+
optionActive: {
|
|
7991
|
+
type: Object,
|
|
7992
|
+
attribute: 'optionactive'
|
|
7993
|
+
},
|
|
7994
|
+
matchWord: {
|
|
7995
|
+
type: String,
|
|
7996
|
+
attribute: 'matchword'
|
|
7997
|
+
},
|
|
7998
|
+
multiSelect: {
|
|
7999
|
+
type: Boolean,
|
|
8000
|
+
reflect: true,
|
|
8001
|
+
attribute: 'multiselect'
|
|
8002
|
+
},
|
|
8003
|
+
value: {
|
|
8004
|
+
// Allow string[] arrays and undefined
|
|
8005
|
+
type: Object,
|
|
8006
|
+
converter: arrayConverter,
|
|
8007
|
+
hasChanged: arrayOrUndefinedHasChanged
|
|
8008
|
+
}
|
|
8009
|
+
};
|
|
8010
|
+
}
|
|
8011
|
+
|
|
8012
|
+
static get styles() {
|
|
8013
|
+
return [
|
|
8014
|
+
styleCss$2,
|
|
8015
|
+
colorCss$2,
|
|
8016
|
+
tokensCss$1
|
|
8017
|
+
];
|
|
8018
|
+
}
|
|
8019
|
+
|
|
8020
|
+
/**
|
|
8021
|
+
* This will register this element with the browser.
|
|
8022
|
+
* @param {string} [name="auro-menu"] - The name of element that you want to register to.
|
|
8023
|
+
*
|
|
8024
|
+
* @example
|
|
8025
|
+
* AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>
|
|
8026
|
+
*
|
|
8027
|
+
*/
|
|
8028
|
+
static register(name = "auro-menu") {
|
|
8029
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroMenu);
|
|
8030
|
+
}
|
|
8031
|
+
|
|
8032
|
+
// Lifecycle Methods
|
|
8033
|
+
|
|
8034
|
+
connectedCallback() {
|
|
8035
|
+
super.connectedCallback();
|
|
8036
|
+
|
|
8037
|
+
this.addEventListener('keydown', this.handleKeyDown);
|
|
8038
|
+
this.addEventListener('mousedown', this.handleMouseSelect);
|
|
8039
|
+
this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
|
|
8040
|
+
this.addEventListener('slotchange', this.handleSlotChange);
|
|
8041
|
+
}
|
|
8042
|
+
|
|
8043
|
+
disconnectedCallback() {
|
|
8044
|
+
this.removeEventListener('keydown', this.handleKeyDown);
|
|
8045
|
+
this.removeEventListener('mousedown', this.handleMouseSelect);
|
|
8046
|
+
this.removeEventListener('auroMenuOption-mouseover', this.handleOptionHover);
|
|
8047
|
+
this.removeEventListener('slotchange', this.handleSlotChange);
|
|
8048
|
+
|
|
8049
|
+
super.disconnectedCallback();
|
|
8050
|
+
}
|
|
8051
|
+
|
|
8052
|
+
firstUpdated() {
|
|
8053
|
+
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-menu');
|
|
8054
|
+
|
|
8055
|
+
this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
|
|
8056
|
+
this.initializeMenu();
|
|
8057
|
+
}
|
|
8058
|
+
|
|
8059
|
+
updated(changedProperties) {
|
|
8060
|
+
if (changedProperties.has('value')) {
|
|
8061
|
+
// Handle null/undefined case
|
|
8062
|
+
if (this.value === undefined || this.value === null) {
|
|
8063
|
+
this.optionSelected = undefined;
|
|
8064
|
+
// Reset index tracking
|
|
8065
|
+
this.index = -1;
|
|
8066
|
+
} else {
|
|
8067
|
+
// Convert single values to arrays
|
|
8068
|
+
const valueArray = Array.isArray(this.value) ? this.value : [this.value];
|
|
8069
|
+
|
|
8070
|
+
// Find all matching options
|
|
8071
|
+
const matchingOptions = this.items.filter((item) => valueArray.includes(item.value));
|
|
8072
|
+
|
|
8073
|
+
if (matchingOptions.length > 0) {
|
|
8074
|
+
if (this.multiSelect) {
|
|
8075
|
+
// For multiselect, keep all matching options
|
|
8076
|
+
this.optionSelected = matchingOptions;
|
|
8077
|
+
} else {
|
|
8078
|
+
// For single select, only use the first match
|
|
8079
|
+
this.optionSelected = [matchingOptions[0]];
|
|
8080
|
+
this.index = this.items.indexOf(matchingOptions[0]);
|
|
8081
|
+
}
|
|
8082
|
+
} else {
|
|
8083
|
+
// No matches found - trigger failure event
|
|
8084
|
+
dispatchMenuEvent(this, 'auroMenu-selectValueFailure');
|
|
8085
|
+
this.optionSelected = undefined;
|
|
8086
|
+
this.index = -1;
|
|
8087
|
+
}
|
|
8088
|
+
}
|
|
8089
|
+
|
|
8090
|
+
// Update UI state
|
|
8091
|
+
this.updateItemsState(new Map([
|
|
8092
|
+
[
|
|
8093
|
+
'optionSelected',
|
|
8094
|
+
true
|
|
8095
|
+
]
|
|
8096
|
+
]));
|
|
8097
|
+
|
|
8098
|
+
// Notify of changes
|
|
8099
|
+
if (this.optionSelected !== undefined) {
|
|
8100
|
+
this.notifySelectionChange();
|
|
8101
|
+
}
|
|
8102
|
+
}
|
|
8103
|
+
|
|
8104
|
+
// Process all other UI updates
|
|
8105
|
+
this.updateItemsState(changedProperties);
|
|
8106
|
+
}
|
|
8107
|
+
|
|
8108
|
+
/**
|
|
8109
|
+
* Updates the UI state and appearance of menu items based on changed properties.
|
|
8110
|
+
* @private
|
|
8111
|
+
* @param {Map<string, boolean>} changedProperties - LitElement's changed properties map.
|
|
8112
|
+
*/
|
|
8113
|
+
updateItemsState(changedProperties) {
|
|
8114
|
+
if (!this.items) {
|
|
8115
|
+
return;
|
|
8116
|
+
}
|
|
8117
|
+
|
|
8118
|
+
// Handle noCheckmark propagation to all menus and options
|
|
8119
|
+
if (changedProperties.has('noCheckmark') && this.noCheckmark) {
|
|
8120
|
+
// Update both menus and options
|
|
8121
|
+
this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]').forEach((element) => element.setAttribute('noCheckmark', ''));
|
|
8122
|
+
}
|
|
8123
|
+
|
|
8124
|
+
// Regex for matchWord if needed
|
|
8125
|
+
let regexWord = null;
|
|
8126
|
+
|
|
8127
|
+
if (changedProperties.has('matchWord') && this.matchWord && this.matchWord.length) {
|
|
8128
|
+
const escapedWord = this.matchWord.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
|
|
8129
|
+
regexWord = new RegExp(escapedWord, 'giu');
|
|
8130
|
+
}
|
|
8131
|
+
|
|
8132
|
+
// Handle direct item updates
|
|
8133
|
+
this.items.forEach((option) => {
|
|
8134
|
+
// Update selection if option or value changed
|
|
8135
|
+
if (changedProperties.has('optionSelected') || changedProperties.has('value')) {
|
|
8136
|
+
const isSelected = this.isOptionSelected(option);
|
|
8137
|
+
option.classList.toggle('active', isSelected);
|
|
8138
|
+
option.setAttribute('aria-selected', isSelected ? 'true' : 'false');
|
|
8139
|
+
|
|
8140
|
+
// Add/remove selected attribute based on state
|
|
8141
|
+
if (isSelected) {
|
|
8142
|
+
option.setAttribute('selected', '');
|
|
8143
|
+
} else {
|
|
8144
|
+
option.removeAttribute('selected');
|
|
8145
|
+
}
|
|
8146
|
+
}
|
|
8147
|
+
|
|
8148
|
+
// Update text highlighting if matchWord changed
|
|
8149
|
+
if (changedProperties.has('matchWord') && regexWord &&
|
|
8150
|
+
isOptionInteractive(option) && !option.hasAttribute('persistent')) {
|
|
8151
|
+
const nested = option.querySelectorAll('.nestingSpacer');
|
|
8152
|
+
// Create nested spacers
|
|
8153
|
+
const nestingSpacerBundle = [...nested].map(() => this.nestingSpacer).join('');
|
|
8154
|
+
|
|
8155
|
+
// Update with spacers and matchWord
|
|
8156
|
+
option.innerHTML = nestingSpacerBundle +
|
|
8157
|
+
option.textContent.replace(
|
|
8158
|
+
regexWord,
|
|
8159
|
+
(match) => `<strong>${match}</strong>`
|
|
8160
|
+
);
|
|
8161
|
+
}
|
|
8162
|
+
|
|
8163
|
+
// Update disabled state
|
|
8164
|
+
if (changedProperties.has('disabled')) {
|
|
8165
|
+
option.disabled = this.disabled;
|
|
8166
|
+
}
|
|
8167
|
+
});
|
|
8168
|
+
|
|
8169
|
+
// Handle loading state changes
|
|
8170
|
+
if (changedProperties.has('loading')) {
|
|
8171
|
+
this.setAttribute("aria-busy", this.loading);
|
|
8172
|
+
dispatchMenuEvent(this, "auroMenu-loadingChange", {
|
|
8173
|
+
loading: this.loading,
|
|
8174
|
+
hasLoadingPlaceholder: this.hasLoadingPlaceholder
|
|
8175
|
+
});
|
|
8176
|
+
}
|
|
8177
|
+
}
|
|
8178
|
+
|
|
8179
|
+
// Init Methods
|
|
8180
|
+
|
|
8181
|
+
/**
|
|
8182
|
+
* Initializes the menu's state and structure.
|
|
8183
|
+
* @private
|
|
8184
|
+
*/
|
|
8185
|
+
initializeMenu() {
|
|
8186
|
+
this.initItems();
|
|
8187
|
+
if (this.rootMenu) {
|
|
8188
|
+
this.setAttribute('role', 'listbox');
|
|
8189
|
+
this.setAttribute('root', '');
|
|
8190
|
+
this.handleNestedMenus(this);
|
|
8191
|
+
}
|
|
8192
|
+
}
|
|
8193
|
+
|
|
8194
|
+
/**
|
|
8195
|
+
* Initializes menu items and their attributes.
|
|
8196
|
+
* @private
|
|
8197
|
+
*/
|
|
8198
|
+
initItems() {
|
|
8199
|
+
this.items = Array.from(this.querySelectorAll('auro-menuoption, [auro-menuoption]'));
|
|
8200
|
+
if (this.noCheckmark) {
|
|
8201
|
+
this.updateItemsState(new Map([
|
|
8202
|
+
[
|
|
8203
|
+
'noCheckmark',
|
|
8204
|
+
true
|
|
8205
|
+
]
|
|
8206
|
+
]));
|
|
8207
|
+
}
|
|
8208
|
+
}
|
|
8209
|
+
|
|
8210
|
+
// Logic Methods
|
|
8211
|
+
|
|
8212
|
+
/**
|
|
8213
|
+
* Updates menu state when an option is selected.
|
|
8214
|
+
* @private
|
|
8215
|
+
* @param {HTMLElement} option - The option element to select.
|
|
8216
|
+
*/
|
|
8217
|
+
handleSelectState(option) {
|
|
8218
|
+
if (this.multiSelect) {
|
|
8219
|
+
const currentValue = this.value || [];
|
|
8220
|
+
const currentSelected = this.optionSelected || [];
|
|
8221
|
+
|
|
8222
|
+
if (!currentValue.includes(option.value)) {
|
|
8223
|
+
this.value = [
|
|
8224
|
+
...currentValue,
|
|
8225
|
+
option.value
|
|
8226
|
+
];
|
|
8227
|
+
}
|
|
8228
|
+
if (!currentSelected.includes(option)) {
|
|
8229
|
+
this.optionSelected = [
|
|
8230
|
+
...currentSelected,
|
|
8231
|
+
option
|
|
8232
|
+
];
|
|
8233
|
+
}
|
|
8234
|
+
} else {
|
|
8235
|
+
// Single select - use arrays with single values
|
|
8236
|
+
this.value = [option.value];
|
|
8237
|
+
this.optionSelected = [option];
|
|
8238
|
+
}
|
|
8239
|
+
|
|
8240
|
+
this.index = this.items.indexOf(option);
|
|
8241
|
+
}
|
|
8242
|
+
|
|
8243
|
+
/**
|
|
8244
|
+
* Deselects a menu option and updates related state.
|
|
8245
|
+
* @private
|
|
8246
|
+
* @param {HTMLElement} option - The menuoption to be deselected.
|
|
8247
|
+
*/
|
|
8248
|
+
handleDeselectState(option) {
|
|
8249
|
+
if (this.multiSelect && Array.isArray(this.value)) {
|
|
8250
|
+
// Remove this option from array
|
|
8251
|
+
this.value = this.value.filter((val) => val !== option.value);
|
|
8252
|
+
|
|
8253
|
+
// If array is empty after removal, set back to undefined
|
|
8254
|
+
if (this.value.length === 0) {
|
|
8255
|
+
this.value = undefined;
|
|
8256
|
+
}
|
|
8257
|
+
|
|
8258
|
+
this.optionSelected = this.optionSelected.filter((val) => val !== option);
|
|
8259
|
+
if (this.optionSelected.length === 0) {
|
|
8260
|
+
this.optionSelected = undefined;
|
|
8261
|
+
}
|
|
8262
|
+
} else {
|
|
8263
|
+
// For single-select: Back to undefined when deselected
|
|
8264
|
+
this.value = undefined;
|
|
8265
|
+
this.optionSelected = undefined;
|
|
8266
|
+
}
|
|
8267
|
+
|
|
8268
|
+
// Update the index tracking
|
|
8269
|
+
this.index = this.items.indexOf(option);
|
|
8270
|
+
|
|
8271
|
+
// Update UI to reflect changes
|
|
8272
|
+
this.updateItemsState(new Map([
|
|
8273
|
+
[
|
|
8274
|
+
'optionSelected',
|
|
8275
|
+
true
|
|
8276
|
+
]
|
|
8277
|
+
]));
|
|
8278
|
+
|
|
8279
|
+
// Notify of selection change
|
|
8280
|
+
this.notifySelectionChange();
|
|
8281
|
+
}
|
|
8282
|
+
|
|
8283
|
+
/**
|
|
8284
|
+
* Resets all options to their default state.
|
|
8285
|
+
* @private
|
|
8286
|
+
*/
|
|
8287
|
+
clearSelection() {
|
|
8288
|
+
this.optionSelected = undefined;
|
|
8289
|
+
this.value = undefined;
|
|
8290
|
+
}
|
|
8291
|
+
|
|
8292
|
+
/**
|
|
8293
|
+
* Resets the menu to its initial state.
|
|
8294
|
+
* This is the only way to return value to undefined.
|
|
8295
|
+
* @public
|
|
8296
|
+
*/
|
|
8297
|
+
reset() {
|
|
8298
|
+
// Reset to undefined - initial state
|
|
8299
|
+
this.value = undefined;
|
|
8300
|
+
this.optionSelected = undefined;
|
|
8301
|
+
this.index = -1;
|
|
8302
|
+
|
|
8303
|
+
// Reset UI state
|
|
8304
|
+
this.updateItemsState(new Map([
|
|
8305
|
+
[
|
|
8306
|
+
'optionSelected',
|
|
8307
|
+
true
|
|
8308
|
+
]
|
|
8309
|
+
]));
|
|
8310
|
+
|
|
8311
|
+
// Dispatch reset event
|
|
8312
|
+
dispatchMenuEvent(this, 'auroMenu-selectValueReset');
|
|
8313
|
+
}
|
|
8314
|
+
|
|
8315
|
+
/**
|
|
8316
|
+
* Handles nested menu structure.
|
|
8317
|
+
* @private
|
|
8318
|
+
* @param {HTMLElement} menu - Root menu element.
|
|
8319
|
+
*/
|
|
8320
|
+
handleNestedMenus(menu) {
|
|
8321
|
+
const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu]');
|
|
8322
|
+
|
|
8323
|
+
nestedMenus.forEach((nestedMenu) => {
|
|
8324
|
+
// role="listbox" only allows "role=group" for children.
|
|
8325
|
+
nestedMenu.setAttribute('role', 'group');
|
|
8326
|
+
if (!nestedMenu.hasAttribute('aria-label')) {
|
|
8327
|
+
nestedMenu.setAttribute('aria-label', 'submenu');
|
|
8328
|
+
}
|
|
8329
|
+
|
|
8330
|
+
const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
|
|
8331
|
+
options.forEach((option) => {
|
|
8332
|
+
option.innerHTML = this.nestingSpacer + option.innerHTML;
|
|
8333
|
+
});
|
|
8334
|
+
|
|
8335
|
+
this.handleNestedMenus(nestedMenu);
|
|
8336
|
+
});
|
|
8337
|
+
}
|
|
8338
|
+
|
|
8339
|
+
// Event Handlers
|
|
8340
|
+
|
|
8341
|
+
/**
|
|
8342
|
+
* Handles keyboard navigation.
|
|
8343
|
+
* @private
|
|
8344
|
+
* @param {KeyboardEvent} event - Event object from the browser.
|
|
8345
|
+
*/
|
|
8346
|
+
handleKeyDown(event) {
|
|
8347
|
+
event.preventDefault();
|
|
8348
|
+
switch (event.key) {
|
|
8349
|
+
case "ArrowDown":
|
|
8350
|
+
this.navigateOptions('down');
|
|
8351
|
+
break;
|
|
8352
|
+
case "ArrowUp":
|
|
8353
|
+
this.navigateOptions('up');
|
|
8354
|
+
break;
|
|
8355
|
+
case "Enter":
|
|
8356
|
+
this.makeSelection();
|
|
8357
|
+
break;
|
|
8358
|
+
}
|
|
8359
|
+
}
|
|
8360
|
+
|
|
8361
|
+
/**
|
|
8362
|
+
* Makes a selection based on the current index or clicked option.
|
|
8363
|
+
* @private
|
|
8364
|
+
*/
|
|
8365
|
+
makeSelection() {
|
|
8366
|
+
if (!this.items) {
|
|
8367
|
+
this.initItems();
|
|
8368
|
+
}
|
|
8369
|
+
|
|
8370
|
+
// Get currently selected menu option based on index
|
|
8371
|
+
const option = this.items[this.index];
|
|
8372
|
+
|
|
8373
|
+
// Return early if option is not interactive
|
|
8374
|
+
if (!option || !isOptionInteractive(option)) {
|
|
8375
|
+
return;
|
|
8376
|
+
}
|
|
8377
|
+
|
|
8378
|
+
// Handle custom events first
|
|
8379
|
+
if (option.hasAttribute('event')) {
|
|
8380
|
+
this.handleCustomEvent(option);
|
|
8381
|
+
return;
|
|
8382
|
+
}
|
|
8383
|
+
|
|
8384
|
+
if (this.multiSelect) {
|
|
8385
|
+
// In multiselect, toggle individual selections
|
|
8386
|
+
this.toggleOption(option);
|
|
8387
|
+
// In single select, only handle selection of new options
|
|
8388
|
+
} else if (!this.isOptionSelected(option)) {
|
|
8389
|
+
this.clearSelection();
|
|
8390
|
+
this.handleSelectState(option);
|
|
8391
|
+
}
|
|
8392
|
+
|
|
8393
|
+
this.notifySelectionChange();
|
|
8394
|
+
}
|
|
8395
|
+
|
|
8396
|
+
/**
|
|
8397
|
+
* Toggle the selection state of the menuoption.
|
|
8398
|
+
* @private
|
|
8399
|
+
* @param {HTMLElement} option - The menuoption to toggle.
|
|
8400
|
+
*/
|
|
8401
|
+
toggleOption(option) {
|
|
8402
|
+
const isCurrentlySelected = this.isOptionSelected(option);
|
|
8403
|
+
|
|
8404
|
+
if (isCurrentlySelected) {
|
|
8405
|
+
this.handleDeselectState(option);
|
|
8406
|
+
} else if (option.value === undefined || option.value === '') {
|
|
8407
|
+
dispatchMenuEvent(this, 'auroMenu-selectValueFailure');
|
|
8408
|
+
} else {
|
|
8409
|
+
this.handleSelectState(option);
|
|
8410
|
+
}
|
|
8411
|
+
}
|
|
8412
|
+
|
|
8413
|
+
/**
|
|
8414
|
+
* Handles option selection via mouse.
|
|
8415
|
+
* @private
|
|
8416
|
+
* @param {MouseEvent} event - Event object from the browser.
|
|
8417
|
+
*/
|
|
8418
|
+
handleMouseSelect(event) {
|
|
8419
|
+
if (event.target === this) {
|
|
8420
|
+
return;
|
|
8421
|
+
}
|
|
8422
|
+
|
|
8423
|
+
const option = event.target.closest('auro-menuoption, [auro-menuoption]');
|
|
8424
|
+
if (option) {
|
|
8425
|
+
this.index = this.items.indexOf(option);
|
|
8426
|
+
this.makeSelection();
|
|
8427
|
+
}
|
|
8428
|
+
}
|
|
8429
|
+
|
|
8430
|
+
/**
|
|
8431
|
+
* Handles option hover events.
|
|
8432
|
+
* @private
|
|
8433
|
+
* @param {CustomEvent} event - Event object from the browser.
|
|
8434
|
+
*/
|
|
8435
|
+
handleOptionHover(event) {
|
|
8436
|
+
const option = event.target;
|
|
8437
|
+
this.index = this.items.indexOf(option);
|
|
8438
|
+
this.updateActiveOption(this.index);
|
|
8439
|
+
}
|
|
8440
|
+
|
|
8441
|
+
/**
|
|
8442
|
+
* Handles slot change events.
|
|
8443
|
+
* @private
|
|
8444
|
+
*/
|
|
8445
|
+
handleSlotChange() {
|
|
8446
|
+
if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
|
|
8447
|
+
this.rootMenu = false;
|
|
8448
|
+
}
|
|
8449
|
+
|
|
8450
|
+
if (this.rootMenu) {
|
|
8451
|
+
this.initializeMenu();
|
|
8452
|
+
} else if (this.noCheckmark) {
|
|
8453
|
+
this.updateItemsState(new Map([
|
|
8454
|
+
[
|
|
8455
|
+
'noCheckmark',
|
|
8456
|
+
true
|
|
8457
|
+
]
|
|
8458
|
+
]));
|
|
8459
|
+
}
|
|
8460
|
+
}
|
|
8461
|
+
|
|
8462
|
+
/**
|
|
8463
|
+
* Navigates through options using keyboard.
|
|
8464
|
+
* @private
|
|
8465
|
+
* @param {string} direction - 'up' or 'down'.
|
|
8466
|
+
*/
|
|
8467
|
+
navigateOptions(direction) {
|
|
8468
|
+
// Return early if no items exist
|
|
8469
|
+
if (!this.items || !this.items.length) {
|
|
8470
|
+
return;
|
|
8471
|
+
}
|
|
8472
|
+
|
|
8473
|
+
let newIndex = this.index;
|
|
8474
|
+
const increment = direction === 'down' ? 1 : -1;
|
|
8475
|
+
const maxIterations = this.items.length;
|
|
8476
|
+
let iterations = 0;
|
|
8477
|
+
let foundInteractiveOption = false;
|
|
8478
|
+
|
|
8479
|
+
do {
|
|
8480
|
+
newIndex = (newIndex + increment + this.items.length) % this.items.length;
|
|
8481
|
+
iterations += 1;
|
|
8482
|
+
|
|
8483
|
+
// Check if current option is interactive
|
|
8484
|
+
const currentOption = this.items[newIndex];
|
|
8485
|
+
if (isOptionInteractive(currentOption)) {
|
|
8486
|
+
foundInteractiveOption = true;
|
|
8487
|
+
break;
|
|
8488
|
+
}
|
|
8489
|
+
|
|
8490
|
+
// Break if all options were checked
|
|
8491
|
+
if (iterations >= maxIterations) {
|
|
8492
|
+
break;
|
|
8493
|
+
}
|
|
8494
|
+
} while (iterations < maxIterations);
|
|
8495
|
+
|
|
8496
|
+
// Handle the results of the search
|
|
8497
|
+
if (foundInteractiveOption) {
|
|
8498
|
+
// Update only if an interactive option was found
|
|
8499
|
+
this.index = newIndex;
|
|
8500
|
+
this.updateActiveOption(this.index);
|
|
8501
|
+
} else {
|
|
8502
|
+
// All options are disabled or non-interactive
|
|
8503
|
+
// Keep the current index unchanged
|
|
8504
|
+
dispatchMenuEvent(this, 'auroMenu-navigateFailure', {
|
|
8505
|
+
reason: 'No interactive options available',
|
|
8506
|
+
direction,
|
|
8507
|
+
currentIndex: this.index
|
|
8508
|
+
});
|
|
8509
|
+
}
|
|
8510
|
+
}
|
|
8511
|
+
|
|
8512
|
+
/**
|
|
8513
|
+
* Updates the active option state and dispatches events.
|
|
8514
|
+
* @private
|
|
8515
|
+
* @param {number} index - Index of the option to make active.
|
|
8516
|
+
*/
|
|
8517
|
+
updateActiveOption(index) {
|
|
8518
|
+
if (!this.items || !this.items[index]) {
|
|
8519
|
+
return;
|
|
8520
|
+
}
|
|
8521
|
+
|
|
8522
|
+
this.items.forEach((item) => item.classList.remove('active'));
|
|
8523
|
+
this.items[index].classList.add('active');
|
|
8524
|
+
this.optionActive = this.items[index];
|
|
8525
|
+
|
|
8526
|
+
dispatchMenuEvent(this, 'auroMenu-activatedOption', this.items[index]);
|
|
8527
|
+
}
|
|
8528
|
+
|
|
8529
|
+
/**
|
|
8530
|
+
* Handles custom events defined on options.
|
|
8531
|
+
* @private
|
|
8532
|
+
* @param {HTMLElement} option - Option with custom event.
|
|
8533
|
+
*/
|
|
8534
|
+
handleCustomEvent(option) {
|
|
8535
|
+
const eventName = option.getAttribute('event');
|
|
8536
|
+
dispatchMenuEvent(this, eventName);
|
|
8537
|
+
dispatchMenuEvent(this, 'auroMenu-customEventFired');
|
|
8538
|
+
}
|
|
8539
|
+
|
|
8540
|
+
/**
|
|
8541
|
+
* Notifies selection change to parent components.
|
|
8542
|
+
* @private
|
|
8543
|
+
*/
|
|
8544
|
+
notifySelectionChange() {
|
|
8545
|
+
dispatchMenuEvent(this, 'auroMenu-selectedOption');
|
|
8546
|
+
}
|
|
8547
|
+
|
|
8548
|
+
/**
|
|
8549
|
+
* Checks if an option is currently selected.
|
|
8550
|
+
* @private
|
|
8551
|
+
* @param {HTMLElement} option - The option to check.
|
|
8552
|
+
* @returns {boolean}
|
|
8553
|
+
*/
|
|
8554
|
+
isOptionSelected(option) {
|
|
8555
|
+
if (!this.optionSelected) {
|
|
8556
|
+
return false;
|
|
8557
|
+
}
|
|
8558
|
+
// Always treat as array for both single and multi-select
|
|
8559
|
+
return Array.isArray(this.optionSelected) && this.optionSelected.includes(option);
|
|
8560
|
+
}
|
|
8561
|
+
|
|
8562
|
+
/**
|
|
8563
|
+
* Getter for loading placeholder state.
|
|
8564
|
+
* @returns {boolean} - True if loading slots are present and non-empty.
|
|
8565
|
+
*/
|
|
8566
|
+
get hasLoadingPlaceholder() {
|
|
8567
|
+
return this.loadingSlots && this.loadingSlots.length > 0;
|
|
8568
|
+
}
|
|
8569
|
+
|
|
8570
|
+
/**
|
|
8571
|
+
* Renders the component.
|
|
8572
|
+
* @returns {boolean} - True if loading slots are present and non-empty.
|
|
8573
|
+
*/
|
|
8574
|
+
render() {
|
|
8575
|
+
if (this.loading) {
|
|
8576
|
+
return x`
|
|
8577
|
+
<auro-menuoption disabled loadingplaceholder class="${this.hasLoadingPlaceholder ? '' : 'empty'}">
|
|
8578
|
+
<div>
|
|
8579
|
+
<slot name="loadingIcon"></slot>
|
|
8580
|
+
<slot name="loadingText"></slot>
|
|
8581
|
+
</div>
|
|
8582
|
+
</auro-menuoption>
|
|
8583
|
+
`;
|
|
8584
|
+
}
|
|
8585
|
+
|
|
8586
|
+
return x`<slot @slotchange=${this.handleSlotChange}></slot>`;
|
|
8587
|
+
}
|
|
8588
|
+
}
|
|
8589
|
+
|
|
8590
|
+
/**
|
|
8591
|
+
* @license
|
|
8592
|
+
* Copyright 2020 Google LLC
|
|
8593
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8594
|
+
*/
|
|
8595
|
+
const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(x);
|
|
8596
|
+
|
|
8597
|
+
var styleCss$1 = i$5`:host{display:flex;align-items:center;padding:var(--ds-size-50, 0.25rem) var(--ds-size-200, 1rem) var(--ds-size-50, 0.25rem) 0;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
|
|
8598
|
+
|
|
8599
|
+
var colorCss$1 = i$5`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color) !important}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-menuoption-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}`;
|
|
8600
|
+
|
|
8601
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
8602
|
+
// See LICENSE in the project root for license information.
|
|
8603
|
+
|
|
8604
|
+
|
|
8605
|
+
class AuroDependencyVersioning {
|
|
8606
|
+
|
|
8607
|
+
/**
|
|
8608
|
+
* Generates a unique string to be used for child auro element naming.
|
|
8609
|
+
* @private
|
|
8610
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
8611
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
8612
|
+
* @returns {string} - Unique string to be used for naming.
|
|
8613
|
+
*/
|
|
8614
|
+
generateElementName(baseName, version) {
|
|
8615
|
+
let result = baseName;
|
|
8616
|
+
|
|
8617
|
+
result += '-';
|
|
8618
|
+
result += version.replace(/[.]/g, '_');
|
|
8619
|
+
|
|
8620
|
+
return result;
|
|
8621
|
+
}
|
|
8622
|
+
|
|
8623
|
+
/**
|
|
8624
|
+
* Generates a unique string to be used for child auro element naming.
|
|
8625
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
8626
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
8627
|
+
* @returns {string} - Unique string to be used for naming.
|
|
8628
|
+
*/
|
|
8629
|
+
generateTag(baseName, version, tagClass) {
|
|
8630
|
+
const elementName = this.generateElementName(baseName, version);
|
|
8631
|
+
const tag = i$1`${s(elementName)}`;
|
|
8632
|
+
|
|
8633
|
+
if (!customElements.get(elementName)) {
|
|
8634
|
+
customElements.define(elementName, class extends tagClass {});
|
|
8635
|
+
}
|
|
8636
|
+
|
|
8637
|
+
return tag;
|
|
8638
|
+
}
|
|
8639
|
+
}
|
|
8640
|
+
|
|
8641
|
+
/**
|
|
8642
|
+
* @license
|
|
8643
|
+
* Copyright 2017 Google LLC
|
|
8644
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8645
|
+
*/
|
|
8646
|
+
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
8647
|
+
|
|
8648
|
+
/**
|
|
8649
|
+
* @license
|
|
8650
|
+
* Copyright 2018 Google LLC
|
|
8651
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8652
|
+
*/const e=e$1(class extends i{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(undefined===this.st){this.st=new Set,undefined!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
8653
|
+
|
|
8654
|
+
/**
|
|
8655
|
+
* @license
|
|
8656
|
+
* Copyright 2018 Google LLC
|
|
8657
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8658
|
+
*/const o=o=>o??E;
|
|
8659
|
+
|
|
8660
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
8661
|
+
// See LICENSE in the project root for license information.
|
|
8662
|
+
|
|
8663
|
+
|
|
8664
|
+
/**
|
|
8665
|
+
* @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
|
|
8666
|
+
* @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
|
|
8667
|
+
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
8668
|
+
*/
|
|
8669
|
+
|
|
8670
|
+
class AuroElement extends r {
|
|
8671
|
+
|
|
8672
|
+
// function to define props used within the scope of this component
|
|
8673
|
+
static get properties() {
|
|
8674
|
+
return {
|
|
8675
|
+
hidden: { type: Boolean,
|
|
8676
|
+
reflect: true },
|
|
8677
|
+
hiddenVisually: { type: Boolean,
|
|
8678
|
+
reflect: true },
|
|
8679
|
+
hiddenAudible: { type: Boolean,
|
|
8680
|
+
reflect: true },
|
|
8681
|
+
};
|
|
8682
|
+
}
|
|
8683
|
+
|
|
8684
|
+
/**
|
|
8685
|
+
* @private Function that determines state of aria-hidden
|
|
8686
|
+
*/
|
|
8687
|
+
hideAudible(value) {
|
|
8688
|
+
if (value) {
|
|
8689
|
+
return 'true'
|
|
8690
|
+
}
|
|
8691
|
+
|
|
8692
|
+
return 'false'
|
|
8693
|
+
}
|
|
8694
|
+
}
|
|
8695
|
+
|
|
8696
|
+
var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
8697
|
+
|
|
8698
|
+
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
8699
|
+
|
|
8700
|
+
const _fetchMap = new Map();
|
|
8701
|
+
|
|
8702
|
+
/**
|
|
8703
|
+
* A callback to parse Response body.
|
|
8704
|
+
*
|
|
8705
|
+
* @callback ResponseParser
|
|
8706
|
+
* @param {Fetch.Response} response
|
|
8707
|
+
* @returns {Promise}
|
|
8708
|
+
*/
|
|
8709
|
+
|
|
8710
|
+
/**
|
|
8711
|
+
* A minimal in-memory map to de-duplicate Fetch API media requests.
|
|
8712
|
+
*
|
|
8713
|
+
* @param {String} uri
|
|
8714
|
+
* @param {Object} [options={}]
|
|
8715
|
+
* @param {ResponseParser} [options.responseParser=(response) => response.text()]
|
|
8716
|
+
* @returns {Promise}
|
|
8717
|
+
*/
|
|
8718
|
+
const cacheFetch = (uri, options = {}) => {
|
|
8719
|
+
const responseParser = options.responseParser || ((response) => response.text());
|
|
8720
|
+
if (!_fetchMap.has(uri)) {
|
|
8721
|
+
_fetchMap.set(uri, fetch(uri).then(responseParser));
|
|
8722
|
+
}
|
|
8723
|
+
return _fetchMap.get(uri);
|
|
8724
|
+
};
|
|
8725
|
+
|
|
8726
|
+
var styleCss$3 = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
8727
|
+
|
|
8728
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
8729
|
+
// See LICENSE in the project root for license information.
|
|
8730
|
+
|
|
8731
|
+
|
|
8732
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
8733
|
+
/**
|
|
8734
|
+
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
8735
|
+
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
8736
|
+
*/
|
|
8737
|
+
|
|
8738
|
+
// build the component class
|
|
8739
|
+
class BaseIcon extends AuroElement {
|
|
8740
|
+
constructor() {
|
|
8741
|
+
super();
|
|
8742
|
+
this.onDark = false;
|
|
8743
|
+
}
|
|
8744
|
+
|
|
8745
|
+
// function to define props used within the scope of this component
|
|
8746
|
+
static get properties() {
|
|
8747
|
+
return {
|
|
8748
|
+
...super.properties,
|
|
8749
|
+
onDark: {
|
|
8750
|
+
type: Boolean,
|
|
8751
|
+
reflect: true
|
|
8752
|
+
},
|
|
8753
|
+
|
|
8754
|
+
/**
|
|
8755
|
+
* @private
|
|
8756
|
+
*/
|
|
8757
|
+
svg: {
|
|
8758
|
+
attribute: false,
|
|
8759
|
+
reflect: true
|
|
8760
|
+
}
|
|
8761
|
+
};
|
|
8762
|
+
}
|
|
8763
|
+
|
|
8764
|
+
static get styles() {
|
|
8765
|
+
return i$5`
|
|
8766
|
+
${styleCss$3}
|
|
8767
|
+
`;
|
|
8768
|
+
}
|
|
8769
|
+
|
|
8770
|
+
/**
|
|
8771
|
+
* Async function to fetch requested icon from npm CDN.
|
|
8772
|
+
* @private
|
|
8773
|
+
* @param {string} category - Icon category.
|
|
8774
|
+
* @param {string} name - Icon name.
|
|
8775
|
+
* @returns {SVGElement} DOM - Ready HTML to be appended.
|
|
8776
|
+
*/
|
|
8777
|
+
async fetchIcon(category, name) {
|
|
8778
|
+
let iconHTML = '';
|
|
8779
|
+
|
|
8780
|
+
if (category === 'logos') {
|
|
8781
|
+
iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
|
|
8782
|
+
} else {
|
|
8783
|
+
iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
|
|
8784
|
+
}
|
|
8785
|
+
|
|
8786
|
+
const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
|
|
8787
|
+
|
|
8788
|
+
return dom.body.querySelector('svg');
|
|
8789
|
+
}
|
|
8790
|
+
|
|
8791
|
+
// lifecycle function
|
|
8792
|
+
async firstUpdated() {
|
|
8793
|
+
if (!this.customSvg) {
|
|
8794
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
8795
|
+
|
|
8796
|
+
if (svg) {
|
|
8797
|
+
this.svg = svg;
|
|
8798
|
+
} else if (!svg) {
|
|
8799
|
+
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
8800
|
+
|
|
8801
|
+
this.svg = penDOM.body.firstChild;
|
|
8802
|
+
}
|
|
8803
|
+
}
|
|
8804
|
+
}
|
|
8805
|
+
}
|
|
8806
|
+
|
|
8807
|
+
var tokensCss = i$5`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
|
|
8808
|
+
|
|
8809
|
+
var colorCss = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
8810
|
+
|
|
8811
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
8812
|
+
// See LICENSE in the project root for license information.
|
|
8813
|
+
|
|
8814
|
+
|
|
8815
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
8816
|
+
/**
|
|
8817
|
+
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
8818
|
+
*
|
|
8819
|
+
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
8820
|
+
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
8821
|
+
* @attr {Boolean} customColor - Removes primary selector.
|
|
8822
|
+
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
8823
|
+
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
8824
|
+
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
8825
|
+
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
8826
|
+
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
8827
|
+
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
8828
|
+
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
8829
|
+
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
8830
|
+
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
8831
|
+
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
8832
|
+
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
8833
|
+
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
8834
|
+
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
8835
|
+
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
8836
|
+
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
8837
|
+
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
8838
|
+
* @slot svg - Used for custom SVG content.
|
|
8839
|
+
*/
|
|
8840
|
+
|
|
8841
|
+
// build the component class
|
|
8842
|
+
class AuroIcon extends BaseIcon {
|
|
8843
|
+
constructor() {
|
|
8844
|
+
super();
|
|
8845
|
+
|
|
8846
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
8847
|
+
|
|
8848
|
+
this.privateDefaults();
|
|
8849
|
+
}
|
|
8850
|
+
|
|
8851
|
+
/**
|
|
8852
|
+
* Internal Defaults.
|
|
8853
|
+
* @private
|
|
8854
|
+
* @returns {void}
|
|
8855
|
+
*/
|
|
8856
|
+
privateDefaults() {
|
|
8857
|
+
this.accent = false;
|
|
8858
|
+
this.customColor = false;
|
|
8859
|
+
this.customSvg = false;
|
|
8860
|
+
this.disabled = false;
|
|
8861
|
+
this.emphasis = false;
|
|
8862
|
+
this.error = false;
|
|
8863
|
+
this.info = false;
|
|
8864
|
+
this.label = false;
|
|
8865
|
+
this.primary = false;
|
|
8866
|
+
this.secondary = false;
|
|
8867
|
+
this.subtle = false;
|
|
8868
|
+
this.success = false;
|
|
8869
|
+
this.tertiary = false;
|
|
8870
|
+
this.warning = false;
|
|
8871
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
8872
|
+
}
|
|
8873
|
+
|
|
8874
|
+
// function to define props used within the scope of this component
|
|
8875
|
+
static get properties() {
|
|
8876
|
+
return {
|
|
8877
|
+
...super.properties,
|
|
8878
|
+
accent: {
|
|
8879
|
+
type: Boolean,
|
|
8880
|
+
reflect: true
|
|
8881
|
+
},
|
|
8882
|
+
ariaHidden: {
|
|
8883
|
+
type: String,
|
|
8884
|
+
reflect: true
|
|
8885
|
+
},
|
|
8886
|
+
category: {
|
|
8887
|
+
type: String,
|
|
8888
|
+
reflect: true
|
|
8889
|
+
},
|
|
8890
|
+
customColor: {
|
|
8891
|
+
type: Boolean
|
|
8892
|
+
},
|
|
8893
|
+
customSvg: {
|
|
8894
|
+
type: Boolean
|
|
8895
|
+
},
|
|
8896
|
+
disabled: {
|
|
8897
|
+
type: Boolean,
|
|
8898
|
+
reflect: true
|
|
8899
|
+
},
|
|
8900
|
+
emphasis: {
|
|
8901
|
+
type: Boolean,
|
|
8902
|
+
reflect: true
|
|
8903
|
+
},
|
|
8904
|
+
error: {
|
|
8905
|
+
type: Boolean,
|
|
8906
|
+
reflect: true
|
|
8907
|
+
},
|
|
8908
|
+
info: {
|
|
8909
|
+
type: Boolean,
|
|
8910
|
+
reflect: true
|
|
8911
|
+
},
|
|
8912
|
+
label: {
|
|
8913
|
+
type: Boolean,
|
|
8914
|
+
reflect: true
|
|
8915
|
+
},
|
|
8916
|
+
name: {
|
|
8917
|
+
type: String,
|
|
8918
|
+
reflect: true
|
|
8919
|
+
},
|
|
8920
|
+
primary: {
|
|
8921
|
+
type: Boolean,
|
|
8922
|
+
reflect: true
|
|
8923
|
+
},
|
|
8924
|
+
secondary: {
|
|
8925
|
+
type: Boolean,
|
|
8926
|
+
reflect: true
|
|
8927
|
+
},
|
|
8928
|
+
subtle: {
|
|
8929
|
+
type: Boolean,
|
|
8930
|
+
reflect: true
|
|
8931
|
+
},
|
|
8932
|
+
success: {
|
|
8933
|
+
type: Boolean,
|
|
8934
|
+
reflect: true
|
|
8935
|
+
},
|
|
8936
|
+
tertiary: {
|
|
8937
|
+
type: Boolean,
|
|
8938
|
+
reflect: true
|
|
8939
|
+
},
|
|
8940
|
+
uri: {
|
|
8941
|
+
type: String
|
|
8942
|
+
},
|
|
8943
|
+
warning: {
|
|
8944
|
+
type: Boolean,
|
|
8945
|
+
reflect: true
|
|
8946
|
+
}
|
|
8947
|
+
};
|
|
8948
|
+
}
|
|
8949
|
+
|
|
8950
|
+
static get styles() {
|
|
8951
|
+
return [
|
|
8952
|
+
super.styles,
|
|
8953
|
+
i$5`${tokensCss}`,
|
|
8954
|
+
i$5`${styleCss$3}`,
|
|
8955
|
+
i$5`${colorCss}`
|
|
8956
|
+
];
|
|
8957
|
+
}
|
|
8958
|
+
|
|
8959
|
+
/**
|
|
8960
|
+
* This will register this element with the browser.
|
|
8961
|
+
* @param {string} [name="auro-icon"] - The name of element that you want to register to.
|
|
8962
|
+
*
|
|
8963
|
+
* @example
|
|
8964
|
+
* AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
|
|
8965
|
+
*
|
|
8966
|
+
*/
|
|
8967
|
+
static register(name = "auro-icon") {
|
|
8968
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
8969
|
+
}
|
|
8970
|
+
|
|
8971
|
+
connectedCallback() {
|
|
8972
|
+
super.connectedCallback();
|
|
8973
|
+
|
|
8974
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
8975
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
|
|
8976
|
+
}
|
|
8977
|
+
|
|
8978
|
+
/**
|
|
8979
|
+
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
8980
|
+
*/
|
|
8981
|
+
exposeCssParts() {
|
|
8982
|
+
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
8983
|
+
}
|
|
8984
|
+
|
|
8985
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
8986
|
+
render() {
|
|
8987
|
+
const a11y = {
|
|
8988
|
+
'labelContainer': true,
|
|
8989
|
+
'util_displayHiddenVisually': !this.label
|
|
8990
|
+
};
|
|
8991
|
+
|
|
8992
|
+
const classes = {
|
|
8993
|
+
'label': this.label,
|
|
8994
|
+
'wrapper': true,
|
|
8995
|
+
};
|
|
8996
|
+
|
|
8997
|
+
return x`
|
|
8998
|
+
<div
|
|
8999
|
+
class="${e(classes)}"
|
|
9000
|
+
title="${o(this.title || undefined)}">
|
|
9001
|
+
<span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
9002
|
+
${this.customSvg ? x`
|
|
9003
|
+
<slot name="svg"></slot>
|
|
9004
|
+
` : x`
|
|
9005
|
+
${this.svg}
|
|
9006
|
+
`
|
|
9007
|
+
}
|
|
9008
|
+
</span>
|
|
9009
|
+
|
|
9010
|
+
<div class="${e(a11y)}">
|
|
9011
|
+
<slot></slot>
|
|
9012
|
+
</div>
|
|
9013
|
+
</div>
|
|
9014
|
+
`;
|
|
9015
|
+
}
|
|
9016
|
+
}
|
|
9017
|
+
|
|
9018
|
+
var iconVersion = '6.1.2';
|
|
9019
|
+
|
|
9020
|
+
var checkmarkIcon = {"role":"img","color":"currentColor","title":"","desc":"a small check mark.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"checkmark-sm","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"checkmark-sm__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"checkmark-sm__desc\">a small check mark.</desc><path d=\"M8.461 11.84a.625.625 0 1 0-.922.844l2.504 2.738c.247.27.674.27.922 0l5.496-6a.625.625 0 1 0-.922-.844l-5.035 5.496z\"/></svg>"};
|
|
9021
|
+
|
|
9022
|
+
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
9023
|
+
// See LICENSE in the project root for license information.
|
|
9024
|
+
|
|
9025
|
+
|
|
9026
|
+
/**
|
|
9027
|
+
* The auro-menu element provides users a way to define a menu option.
|
|
9028
|
+
*
|
|
9029
|
+
* @attr {String} value - Specifies the value to be sent to a server.
|
|
9030
|
+
* @attr {String} noCheckmark - When true, selected option will not show the checkmark.
|
|
9031
|
+
* @attr {Boolean} disabled - When true specifies that the menuoption is disabled.
|
|
9032
|
+
* @attr {Boolean} selected - Specifies that an option is selected.
|
|
9033
|
+
* @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
|
|
9034
|
+
* @slot - Specifies text for an option, but is not the value.
|
|
9035
|
+
*/
|
|
9036
|
+
class AuroMenuOption extends r {
|
|
9037
|
+
constructor() {
|
|
9038
|
+
super();
|
|
9039
|
+
|
|
9040
|
+
/**
|
|
9041
|
+
* Generate unique names for dependency components.
|
|
9042
|
+
*/
|
|
9043
|
+
const versioning = new AuroDependencyVersioning();
|
|
9044
|
+
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
9045
|
+
|
|
9046
|
+
this.selected = false;
|
|
9047
|
+
this.nocheckmark = false;
|
|
9048
|
+
this.disabled = false;
|
|
9049
|
+
|
|
9050
|
+
/**
|
|
9051
|
+
* @private
|
|
9052
|
+
*/
|
|
9053
|
+
this.tabIndex = -1;
|
|
9054
|
+
|
|
9055
|
+
/**
|
|
9056
|
+
* @private
|
|
9057
|
+
*/
|
|
9058
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
9059
|
+
}
|
|
9060
|
+
|
|
9061
|
+
static get properties() {
|
|
9062
|
+
return {
|
|
9063
|
+
nocheckmark: {
|
|
9064
|
+
type: Boolean,
|
|
9065
|
+
reflect: true
|
|
9066
|
+
},
|
|
9067
|
+
selected: {
|
|
9068
|
+
type: Boolean,
|
|
9069
|
+
reflect: true
|
|
9070
|
+
},
|
|
9071
|
+
disabled: {
|
|
9072
|
+
type: Boolean,
|
|
9073
|
+
reflect: true
|
|
9074
|
+
},
|
|
9075
|
+
value: {
|
|
9076
|
+
type: String
|
|
9077
|
+
},
|
|
9078
|
+
tabIndex: {
|
|
9079
|
+
type: Number,
|
|
9080
|
+
reflect: true
|
|
9081
|
+
}
|
|
9082
|
+
};
|
|
9083
|
+
}
|
|
9084
|
+
|
|
9085
|
+
static get styles() {
|
|
9086
|
+
return [
|
|
9087
|
+
styleCss$1,
|
|
9088
|
+
colorCss$1,
|
|
9089
|
+
tokensCss$1
|
|
9090
|
+
];
|
|
9091
|
+
}
|
|
9092
|
+
|
|
9093
|
+
/**
|
|
9094
|
+
* This will register this element with the browser.
|
|
9095
|
+
* @param {string} [name="auro-menuoption"] - The name of element that you want to register to.
|
|
9096
|
+
*
|
|
9097
|
+
* @example
|
|
9098
|
+
* AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
|
|
9099
|
+
*
|
|
9100
|
+
*/
|
|
9101
|
+
static register(name = "auro-menuoption") {
|
|
9102
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroMenuOption);
|
|
9103
|
+
}
|
|
9104
|
+
|
|
9105
|
+
firstUpdated() {
|
|
9106
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
9107
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
|
|
9108
|
+
|
|
9109
|
+
this.setAttribute('role', 'option');
|
|
9110
|
+
this.setAttribute('aria-selected', 'false');
|
|
9111
|
+
|
|
9112
|
+
this.addEventListener('mouseover', () => {
|
|
9113
|
+
this.dispatchEvent(new CustomEvent('auroMenuOption-mouseover', {
|
|
9114
|
+
bubbles: true,
|
|
9115
|
+
cancelable: false,
|
|
9116
|
+
composed: true,
|
|
9117
|
+
detail: this
|
|
9118
|
+
}));
|
|
9119
|
+
});
|
|
9120
|
+
}
|
|
9121
|
+
|
|
9122
|
+
// observer for selected property changes
|
|
9123
|
+
updated(changedProperties) {
|
|
9124
|
+
if (changedProperties.has('selected')) {
|
|
9125
|
+
this.setAttribute('aria-selected', this.selected.toString());
|
|
9126
|
+
}
|
|
9127
|
+
}
|
|
9128
|
+
|
|
9129
|
+
/**
|
|
9130
|
+
* Generates an HTML element containing an SVG icon based on the provided `svgContent`.
|
|
9131
|
+
*
|
|
9132
|
+
* @private
|
|
9133
|
+
* @param {string} svgContent - The SVG content to be embedded.
|
|
9134
|
+
* @returns {Element} The HTML element containing the SVG icon.
|
|
9135
|
+
*/
|
|
9136
|
+
generateIconHtml(svgContent) {
|
|
9137
|
+
const dom = new DOMParser().parseFromString(svgContent, 'text/html');
|
|
9138
|
+
const svg = dom.body.firstChild;
|
|
9139
|
+
|
|
9140
|
+
svg.setAttribute('slot', 'svg');
|
|
9141
|
+
|
|
9142
|
+
return u`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
|
|
9143
|
+
}
|
|
9144
|
+
|
|
9145
|
+
render() {
|
|
9146
|
+
return u`
|
|
9147
|
+
${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
|
|
9148
|
+
<slot></slot>
|
|
9149
|
+
`;
|
|
9150
|
+
}
|
|
9151
|
+
}
|
|
9152
|
+
|
|
9153
|
+
AuroMenu.register();
|
|
9154
|
+
AuroMenuOption.register();
|
|
9155
|
+
|
|
9156
|
+
var styleCss = i$c`.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}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important;box-shadow:unset !important;outline:unset !important;--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}:host combobox-dropdown::part(trigger){padding-right:var(--ds-size-150, 0.75rem)}`;
|
|
9157
|
+
|
|
9158
|
+
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
9159
|
+
// See LICENSE in the project root for license information.
|
|
9160
|
+
|
|
9161
|
+
|
|
9162
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
9163
|
+
/**
|
|
9164
|
+
* @prop {Object} optionSelected - Specifies the current selected option.
|
|
9165
|
+
* @prop {String} value - Value selected for the dropdown menu.
|
|
9166
|
+
* @prop {Boolean} checkmark - When attribute is present auro-menu will apply checkmarks to selected options.
|
|
9167
|
+
* @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
9168
|
+
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
9169
|
+
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
9170
|
+
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
9171
|
+
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
9172
|
+
* @attr {Boolean} disabled - If set, disables the combobox.
|
|
9173
|
+
* @attr {Boolean} noFilter - If set, combobox will not filter menuoptions based in input.
|
|
9174
|
+
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
9175
|
+
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
9176
|
+
* @attr {Boolean} triggerIcon - If set, the `icon` attribute will be applied to the trigger `auro-input` element.
|
|
9177
|
+
* @attr {String} type - Applies the defined value as the type attribute on auro-input.
|
|
9178
|
+
* @slot - Default slot for the menu content.
|
|
9179
|
+
* @slot label - Defines the content of the label.
|
|
9180
|
+
* @slot helpText - Defines the content of the helpText.
|
|
9181
|
+
* @event auroCombobox-valueSet - Notifies that the component has a new value set.
|
|
9182
|
+
* @event auroFormElement-validated - Notifies that the component value(s) have been validated.
|
|
9183
|
+
*/
|
|
9184
|
+
|
|
9185
|
+
// build the component class
|
|
9186
|
+
class AuroCombobox extends r$7 {
|
|
9187
|
+
constructor() {
|
|
9188
|
+
super();
|
|
9189
|
+
|
|
9190
|
+
this.noFilter = false;
|
|
9191
|
+
this.validity = undefined;
|
|
9192
|
+
this.value = undefined;
|
|
9193
|
+
this.optionSelected = undefined;
|
|
9194
|
+
|
|
9195
|
+
this.privateDefaults();
|
|
9196
|
+
|
|
9197
|
+
/**
|
|
9198
|
+
* @private
|
|
9199
|
+
*/
|
|
9200
|
+
this.validation = new AuroFormValidation$1();
|
|
9201
|
+
|
|
9202
|
+
/**
|
|
9203
|
+
* @private
|
|
9204
|
+
*/
|
|
9205
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
9206
|
+
|
|
9207
|
+
/**
|
|
9208
|
+
* @private
|
|
9209
|
+
*/
|
|
9210
|
+
this.isHiddenWhileLoading = false;
|
|
9211
|
+
|
|
9212
|
+
/**
|
|
9213
|
+
* Generate unique names for dependency components.
|
|
9214
|
+
*/
|
|
9215
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
9216
|
+
this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
|
|
9217
|
+
this.inputTag = versioning.generateTag('auro-input', inputVersion, AuroInput);
|
|
9218
|
+
}
|
|
9219
|
+
|
|
9220
|
+
/**
|
|
9221
|
+
* @private
|
|
9222
|
+
* @returns {void} Internal defaults.
|
|
9223
|
+
*/
|
|
9224
|
+
privateDefaults() {
|
|
9225
|
+
this.availableOptions = [];
|
|
9226
|
+
this.optionActive = null;
|
|
9227
|
+
this.msgSelectionMissing = 'Please select an option.';
|
|
9228
|
+
}
|
|
9229
|
+
|
|
9230
|
+
// This function is to define props used within the scope of this component
|
|
9231
|
+
// Be sure to review https://lit-element.polymer-project.org/guide/properties#reflected-attributes
|
|
9232
|
+
// to understand how to use reflected attributes with your property settings.
|
|
9233
|
+
static get properties() {
|
|
9234
|
+
return {
|
|
9235
|
+
// ...super.properties,
|
|
9236
|
+
error: {
|
|
9237
|
+
type: String,
|
|
9238
|
+
reflect: true
|
|
9239
|
+
},
|
|
9240
|
+
setCustomValidity: {
|
|
9241
|
+
type: String
|
|
9242
|
+
},
|
|
9243
|
+
setCustomValidityCustomError: {
|
|
9244
|
+
type: String
|
|
9245
|
+
},
|
|
9246
|
+
setCustomValidityValueMissing: {
|
|
9247
|
+
type: String
|
|
9248
|
+
},
|
|
9249
|
+
validity: {
|
|
9250
|
+
type: String,
|
|
9251
|
+
reflect: true
|
|
9252
|
+
},
|
|
9253
|
+
disabled: {
|
|
9254
|
+
type: Boolean,
|
|
9255
|
+
reflect: true
|
|
9256
|
+
},
|
|
9257
|
+
noFilter: {
|
|
9258
|
+
type: Boolean,
|
|
9259
|
+
reflect: true
|
|
9260
|
+
},
|
|
9261
|
+
optionSelected: {
|
|
9262
|
+
type: Object,
|
|
9263
|
+
converter: arrayConverter,
|
|
9264
|
+
hasChanged: arrayOrUndefinedHasChanged
|
|
9265
|
+
},
|
|
9266
|
+
noValidate: { type: Boolean },
|
|
9267
|
+
required: {
|
|
9268
|
+
type: Boolean,
|
|
9269
|
+
reflect: true
|
|
9270
|
+
},
|
|
9271
|
+
triggerIcon: {
|
|
9272
|
+
type: Boolean,
|
|
9273
|
+
reflect: true
|
|
9274
|
+
},
|
|
9275
|
+
type: {
|
|
9276
|
+
type: String,
|
|
9277
|
+
reflect: true
|
|
9278
|
+
},
|
|
9279
|
+
value: {
|
|
9280
|
+
converter: arrayConverter,
|
|
9281
|
+
hasChanged: arrayOrUndefinedHasChanged
|
|
9282
|
+
},
|
|
9283
|
+
checkmark: {
|
|
9284
|
+
type: Boolean,
|
|
9285
|
+
reflect: true
|
|
9286
|
+
},
|
|
9287
|
+
|
|
9288
|
+
/**
|
|
9289
|
+
* @private
|
|
9290
|
+
*/
|
|
9291
|
+
availableOptions: { type: Array },
|
|
7775
9292
|
|
|
7776
9293
|
/**
|
|
7777
9294
|
* @private
|
|
@@ -7818,7 +9335,7 @@ class AuroCombobox extends r$6 {
|
|
|
7818
9335
|
*
|
|
7819
9336
|
*/
|
|
7820
9337
|
static register(name = "auro-combobox") {
|
|
7821
|
-
AuroLibraryRuntimeUtils$
|
|
9338
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroCombobox);
|
|
7822
9339
|
}
|
|
7823
9340
|
|
|
7824
9341
|
/**
|
|
@@ -7830,6 +9347,33 @@ class AuroCombobox extends r$6 {
|
|
|
7830
9347
|
this.generateOptionsArray();
|
|
7831
9348
|
this.availableOptions = [];
|
|
7832
9349
|
|
|
9350
|
+
if (this.menu.optionSelected) {
|
|
9351
|
+
// Get first option since combobox is single-select
|
|
9352
|
+
const [selected] = this.menu.optionSelected;
|
|
9353
|
+
|
|
9354
|
+
if (!this.optionSelected || this.optionSelected[0] !== selected) {
|
|
9355
|
+
// Store as array
|
|
9356
|
+
this.optionSelected = [selected];
|
|
9357
|
+
}
|
|
9358
|
+
|
|
9359
|
+
if (!this.value || this.value[0] !== selected.value) {
|
|
9360
|
+
// Store as array
|
|
9361
|
+
this.value = [selected.value];
|
|
9362
|
+
// Menu already expects array
|
|
9363
|
+
this.menu.value = this.value;
|
|
9364
|
+
}
|
|
9365
|
+
|
|
9366
|
+
if (this.input.value !== selected.textContent) {
|
|
9367
|
+
this.input.value = selected.textContent;
|
|
9368
|
+
}
|
|
9369
|
+
|
|
9370
|
+
if (this.menu.matchWord !== this.input.value) {
|
|
9371
|
+
this.menu.matchWord = this.input.value;
|
|
9372
|
+
}
|
|
9373
|
+
|
|
9374
|
+
this.classList.add('combobox-filled');
|
|
9375
|
+
}
|
|
9376
|
+
|
|
7833
9377
|
if (this.noFilter) {
|
|
7834
9378
|
this.availableOptions = [...this.options];
|
|
7835
9379
|
} else {
|
|
@@ -7971,12 +9515,15 @@ class AuroCombobox extends r$6 {
|
|
|
7971
9515
|
// handle the menu event for an option selection
|
|
7972
9516
|
this.menu.addEventListener('auroMenu-selectedOption', () => {
|
|
7973
9517
|
if (this.menu.optionSelected) {
|
|
7974
|
-
|
|
7975
|
-
|
|
9518
|
+
const [selected] = this.menu.optionSelected;
|
|
9519
|
+
|
|
9520
|
+
if (!this.optionSelected || this.optionSelected[0] !== selected) {
|
|
9521
|
+
this.optionSelected = [selected];
|
|
7976
9522
|
}
|
|
7977
9523
|
|
|
7978
|
-
if (this.value !== this.optionSelected.value) {
|
|
7979
|
-
this.value = this.optionSelected.value;
|
|
9524
|
+
if (!this.value || this.value[0] !== this.optionSelected[0].value) {
|
|
9525
|
+
this.value = [this.optionSelected[0].value];
|
|
9526
|
+
this.menu.value = this.value;
|
|
7980
9527
|
}
|
|
7981
9528
|
|
|
7982
9529
|
if (this.input.value !== this.optionSelected.textContent) {
|
|
@@ -8012,7 +9559,7 @@ class AuroCombobox extends r$6 {
|
|
|
8012
9559
|
});
|
|
8013
9560
|
|
|
8014
9561
|
this.menu.addEventListener('auroMenu-selectValueFailure', () => {
|
|
8015
|
-
this.
|
|
9562
|
+
this.menu.clearSelection();
|
|
8016
9563
|
});
|
|
8017
9564
|
|
|
8018
9565
|
this.menu.addEventListener('auroMenu-selectValueReset', () => {
|
|
@@ -8040,8 +9587,9 @@ class AuroCombobox extends r$6 {
|
|
|
8040
9587
|
this.validation.validate(this);
|
|
8041
9588
|
}
|
|
8042
9589
|
|
|
8043
|
-
|
|
8044
|
-
|
|
9590
|
+
// Set to undefined if empty
|
|
9591
|
+
if (this.value && this.value.length === 0) {
|
|
9592
|
+
this.value = undefined;
|
|
8045
9593
|
}
|
|
8046
9594
|
});
|
|
8047
9595
|
|
|
@@ -8084,10 +9632,10 @@ class AuroCombobox extends r$6 {
|
|
|
8084
9632
|
|
|
8085
9633
|
let hasChange = false;
|
|
8086
9634
|
|
|
8087
|
-
|
|
8088
|
-
|
|
9635
|
+
// Store value as array or undefined
|
|
9636
|
+
if (!this.value || this.value[0] !== this.input.value) {
|
|
9637
|
+
this.value = this.input.value ? [this.input.value] : undefined;
|
|
8089
9638
|
hasChange = true;
|
|
8090
|
-
|
|
8091
9639
|
this.dispatchEvent(new CustomEvent('auroCombobox-valueSet', {
|
|
8092
9640
|
bubbles: true,
|
|
8093
9641
|
cancelable: false,
|
|
@@ -8109,23 +9657,23 @@ class AuroCombobox extends r$6 {
|
|
|
8109
9657
|
return;
|
|
8110
9658
|
}
|
|
8111
9659
|
|
|
8112
|
-
this.menu.
|
|
9660
|
+
this.menu.clearSelection();
|
|
8113
9661
|
this.handleMenuOptions();
|
|
8114
9662
|
|
|
8115
|
-
//
|
|
9663
|
+
// Validate only if the value was set programmatically
|
|
8116
9664
|
if (document.activeElement !== this) {
|
|
8117
9665
|
this.validation.validate(this);
|
|
8118
9666
|
}
|
|
8119
9667
|
|
|
8120
|
-
//
|
|
9668
|
+
// Hide menu if value is empty, otherwise show if there are available suggestions
|
|
8121
9669
|
if (this.input.value && this.input.value.length === 0) {
|
|
8122
9670
|
this.hideBib();
|
|
8123
9671
|
this.classList.remove('combobox-filled');
|
|
8124
9672
|
} else if (!this.dropdown.isPopoverVisible && this.availableOptions) {
|
|
8125
9673
|
const hasFocus = this.contains(document.activeElement);
|
|
8126
9674
|
|
|
8127
|
-
//
|
|
8128
|
-
//
|
|
9675
|
+
// If focus is within the combobox, show bib
|
|
9676
|
+
// Prevent bib from being shown while loading & presetting the value
|
|
8129
9677
|
if (hasFocus) {
|
|
8130
9678
|
this.showBib();
|
|
8131
9679
|
}
|
|
@@ -8133,7 +9681,7 @@ class AuroCombobox extends r$6 {
|
|
|
8133
9681
|
this.classList.add('combobox-filled');
|
|
8134
9682
|
}
|
|
8135
9683
|
|
|
8136
|
-
//
|
|
9684
|
+
// Force dropdown bib to hide if input value has no matching suggestions
|
|
8137
9685
|
if (!this.availableOptions || this.availableOptions.length === 0) {
|
|
8138
9686
|
this.hideBib();
|
|
8139
9687
|
}
|
|
@@ -8173,11 +9721,11 @@ class AuroCombobox extends r$6 {
|
|
|
8173
9721
|
|
|
8174
9722
|
if (this.dropdown.isPopoverVisible) {
|
|
8175
9723
|
if (evt.key === 'ArrowUp') {
|
|
8176
|
-
this.menu.
|
|
9724
|
+
this.menu.navigateOptions('up');
|
|
8177
9725
|
}
|
|
8178
9726
|
|
|
8179
9727
|
if (evt.key === 'ArrowDown') {
|
|
8180
|
-
this.menu.
|
|
9728
|
+
this.menu.navigateOptions('down');
|
|
8181
9729
|
}
|
|
8182
9730
|
}
|
|
8183
9731
|
});
|
|
@@ -8236,20 +9784,23 @@ class AuroCombobox extends r$6 {
|
|
|
8236
9784
|
reset() {
|
|
8237
9785
|
this.input.reset();
|
|
8238
9786
|
this.validation.reset(this);
|
|
9787
|
+
this.menu.value = undefined;
|
|
8239
9788
|
}
|
|
8240
9789
|
|
|
8241
9790
|
updated(changedProperties) {
|
|
8242
9791
|
// After the component is ready, send direct value changes to auro-menu.
|
|
8243
9792
|
if (changedProperties.has('value')) {
|
|
8244
9793
|
if (this.value) {
|
|
8245
|
-
if (this.optionSelected && this.optionSelected.value === this.value) {
|
|
9794
|
+
if (this.optionSelected && this.optionSelected[0] && this.optionSelected[0].value === this.value[0]) {
|
|
8246
9795
|
// If value updates and the previously selected option already matches the new value
|
|
8247
9796
|
// just update the input value to use the textContent of the optionSelected
|
|
8248
|
-
this.input.value = this.optionSelected.textContent;
|
|
9797
|
+
this.input.value = this.optionSelected[0].textContent;
|
|
8249
9798
|
} else {
|
|
8250
9799
|
// Otherwise just enter the value into the input
|
|
8251
9800
|
this.optionSelected = undefined;
|
|
8252
|
-
|
|
9801
|
+
// Use first value since combobox is single-select
|
|
9802
|
+
const [inputValue] = this.value;
|
|
9803
|
+
this.input.value = inputValue;
|
|
8253
9804
|
|
|
8254
9805
|
// If the value got set programmatically make sure we hide the bib
|
|
8255
9806
|
if (!this.contains(document.activeElement)) {
|
|
@@ -8271,7 +9822,7 @@ class AuroCombobox extends r$6 {
|
|
|
8271
9822
|
/**
|
|
8272
9823
|
* Watch for slot changes and recalculate the menuoptions.
|
|
8273
9824
|
* @private
|
|
8274
|
-
* @param {Event} event - slotchange event
|
|
9825
|
+
* @param {Event} event - `slotchange` event.
|
|
8275
9826
|
* @returns {void}
|
|
8276
9827
|
*/
|
|
8277
9828
|
handleSlotChange(event) {
|
|
@@ -8292,11 +9843,11 @@ class AuroCombobox extends r$6 {
|
|
|
8292
9843
|
|
|
8293
9844
|
// function that renders the HTML and CSS into the scope of the component
|
|
8294
9845
|
render() {
|
|
8295
|
-
return u$
|
|
9846
|
+
return u$7`
|
|
8296
9847
|
<div>
|
|
8297
9848
|
<div aria-live="polite" class="util_displayHiddenVisually">
|
|
8298
9849
|
${this.optionActive && this.availableOptions.length > 0
|
|
8299
|
-
? u$
|
|
9850
|
+
? u$7`
|
|
8300
9851
|
${`${this.optionActive.textContent}, selected, ${this.availableOptions.indexOf(this.optionActive) + 1} of ${this.availableOptions.length}`}
|
|
8301
9852
|
`
|
|
8302
9853
|
: undefined
|
|
@@ -8331,9 +9882,9 @@ class AuroCombobox extends r$6 {
|
|
|
8331
9882
|
<span slot="helpText">
|
|
8332
9883
|
<!-- Help text and error message template -->
|
|
8333
9884
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
8334
|
-
? u$
|
|
9885
|
+
? u$7`
|
|
8335
9886
|
<slot name="helpText"></slot>
|
|
8336
|
-
` : u$
|
|
9887
|
+
` : u$7`
|
|
8337
9888
|
<p role="alert" aria-live="assertive" part="helpText">
|
|
8338
9889
|
${this.errorMessage}
|
|
8339
9890
|
</p>`
|