@aurodesignsystem/auro-formkit 4.0.0-rc-676.1 → 4.0.0-rc-1002.1
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/CHANGELOG.md +180 -1
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1184 -105
- package/components/bibtemplate/dist/registered.js +1184 -105
- package/components/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.md +52 -17
- package/components/checkbox/demo/api.min.js +66 -33
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.min.js +66 -33
- package/components/checkbox/demo/readme.html +16 -9
- package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -1
- package/components/checkbox/dist/index.js +65 -32
- package/components/checkbox/dist/registered.js +65 -32
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.md +124 -7
- package/components/combobox/demo/api.min.js +4542 -1330
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.md +108 -4
- package/components/combobox/demo/index.min.js +4542 -1330
- package/components/combobox/demo/readme.html +16 -9
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +81 -18
- package/components/combobox/dist/index.js +4588 -1520
- package/components/combobox/dist/registered.js +4588 -1520
- package/components/counter/demo/api.html +17 -10
- package/components/counter/demo/api.md +167 -21
- package/components/counter/demo/api.min.js +3621 -866
- package/components/counter/demo/index.html +17 -10
- package/components/counter/demo/index.md +191 -34
- package/components/counter/demo/index.min.js +3621 -866
- package/components/counter/demo/readme.html +16 -9
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +162 -11
- package/components/counter/dist/auro-counter.d.ts +16 -0
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +3619 -864
- package/components/counter/dist/registered.js +3619 -864
- package/components/datepicker/README.md +2 -1
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/api.md +80 -30
- package/components/datepicker/demo/api.min.js +14795 -10365
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/index.md +96 -4
- package/components/datepicker/demo/index.min.js +14795 -10365
- package/components/datepicker/demo/readme.html +16 -9
- package/components/datepicker/demo/readme.md +2 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +163 -4
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +14916 -10486
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +14916 -10486
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/api.md +94 -262
- package/components/dropdown/demo/api.min.js +738 -259
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/index.md +93 -266
- package/components/dropdown/demo/index.min.js +738 -259
- package/components/dropdown/demo/readme.html +16 -9
- package/components/dropdown/dist/auro-dropdown.d.ts +92 -73
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +710 -231
- package/components/dropdown/dist/registered.js +710 -231
- package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/form/demo/api.html +16 -9
- package/components/form/demo/api.md +1 -1
- package/components/form/demo/api.min.js +3 -3
- package/components/form/demo/autocomplete.html +19 -3
- package/components/form/demo/index.html +16 -9
- package/components/form/demo/index.min.js +3 -3
- package/components/form/demo/readme.html +16 -9
- package/components/form/demo/working.html +19 -13
- package/components/form/dist/auro-form.d.ts +1 -1
- package/components/form/dist/index.js +2 -2
- package/components/form/dist/registered.js +2 -2
- package/components/helptext/dist/auro-helptext.d.ts +0 -2
- package/components/helptext/dist/index.js +2 -4
- package/components/helptext/dist/registered.js +2 -4
- package/components/input/README.md +6 -2
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/api.md +258 -144
- package/components/input/demo/api.min.js +1550 -497
- package/components/input/demo/index.html +17 -11
- package/components/input/demo/index.md +95 -27
- package/components/input/demo/index.min.js +1549 -496
- package/components/input/demo/readme.html +16 -9
- package/components/input/demo/readme.md +6 -2
- package/components/input/dist/auro-input.d.ts +139 -3
- package/components/input/dist/base-input.d.ts +80 -26
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +1504 -451
- package/components/input/dist/registered.js +1504 -451
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/dist/styles/default/borders-css.d.ts +2 -0
- package/components/input/dist/styles/default/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
- package/components/input/dist/styles/default/style-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/layoutElement/dist/auroElement.d.ts +34 -0
- package/components/layoutElement/dist/index.d.ts +2 -0
- package/components/layoutElement/dist/index.js +98 -0
- package/components/layoutElement/dist/registered.js +98 -0
- package/components/menu/demo/api.html +17 -10
- package/components/menu/demo/api.md +65 -8
- package/components/menu/demo/api.min.js +304 -65
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +304 -65
- package/components/menu/demo/readme.html +16 -9
- package/components/menu/dist/auro-menu.d.ts +53 -7
- package/components/menu/dist/auro-menuoption.d.ts +21 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +289 -50
- package/components/menu/dist/registered.js +289 -50
- package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.html +16 -10
- package/components/radio/demo/api.md +41 -9
- package/components/radio/demo/api.min.js +93 -95
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/index.min.js +93 -95
- package/components/radio/demo/readme.html +16 -9
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +11 -12
- package/components/radio/dist/index.js +92 -94
- package/components/radio/dist/registered.js +92 -94
- package/components/select/README.md +1 -0
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +156 -114
- package/components/select/demo/api.min.js +3126 -657
- package/components/select/demo/index.html +17 -10
- package/components/select/demo/index.md +398 -62
- package/components/select/demo/index.min.js +3129 -648
- package/components/select/demo/readme.html +16 -9
- package/components/select/demo/readme.md +1 -0
- package/components/select/dist/auro-select.d.ts +173 -18
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +3128 -791
- package/components/select/dist/registered.js +3128 -791
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +33 -32
- package/packages/build-tools/src/postinstall.mjs +0 -12
- /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/borders-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{input/dist/styles/input-css.d.ts → datepicker/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{input/dist/styles/label-css.d.ts → datepicker/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/notificationIcons-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menuoption-css.d.ts → datepicker/dist/styles/snowflake/style-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/tokens-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
|
@@ -15,51 +15,90 @@ const changeLang = () => {
|
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2019 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/
|
|
23
|
+
const t$3=globalThis,e$4=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$4=Symbol(),o$5=new WeakMap;let n$3 = 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$4&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$5.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$5.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$3("string"==typeof t?t:t+"",void 0,s$4),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$4)},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$3.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$3=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;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @license
|
|
27
|
+
* Copyright 2017 Google LLC
|
|
28
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
+
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$2,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a$2=globalThis,c$2=a$2.trustedTypes,l$2=c$2?c$2.emptyScript:"",p$2=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$4={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),b={attribute:true,type:String,converter:u$4,reflect:false,useDefault:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1 = class y 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=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==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=[...r$2(t),...o$4(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(void 0!==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);void 0!==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$3(s));}else void 0!==s&&i.push(c$3(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,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),void 0!==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);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$4).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$4;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f$1)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){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=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}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._$EM();}catch(s){throw t=false,this._$EM(),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);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}};y$1.elementStyles=[],y$1.shadowRootOptions={mode:"open"},y$1[d$1("elementProperties")]=new Map,y$1[d$1("finalized")]=new Map,p$2?.({ReactiveElement:y$1}),(a$2.reactiveElementVersions??=[]).push("2.1.1");
|
|
30
|
+
|
|
18
31
|
/**
|
|
19
32
|
* @license
|
|
20
33
|
* Copyright 2017 Google LLC
|
|
21
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
35
|
*/
|
|
23
|
-
const t$
|
|
36
|
+
const t$2=globalThis,i$3=t$2.trustedTypes,s$3=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$3="?"+h,n$1=`<${o$3}>`,r$1=document,l$1=()=>r$1.createComment(""),c$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u$3=t=>a$1(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_=/>/g,m$1=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/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 void 0!==s$3?s$3.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$1:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):void 0!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1:'"'===u[3]?g:p$1):c===g||c===p$1?c=m$1:c===v$1||c===_?c=f:(c=m$1,r=void 0);const x=c===m$1&&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$3)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=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$1(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,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(;void 0!==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) void 0!==s&&(void 0!==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=void 0,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 void 0!==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$1(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$3(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$1(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):(void 0===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$1(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 void 0===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){ void 0===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=void 0,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(void 0===h)t=S(this,t,i,0),o=!c$1(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$1(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?void 0: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=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const Z={I:R},j=t$2.litHtmlPolyfillSupport;j?.(N,R),(t$2.litHtmlVersions??=[]).push("3.3.0");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$1(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @license
|
|
40
|
+
* Copyright 2017 Google LLC
|
|
41
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
+
*/const s$2=globalThis;let i$2 = class i extends y$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}};i$2._$litElement$=true,i$2["finalized"]=true,s$2.litElementHydrateSupport?.({LitElement:i$2});const o$2=s$2.litElementPolyfillSupport;o$2?.({LitElement:i$2});(s$2.litElementVersions??=[]).push("4.2.0");
|
|
43
|
+
|
|
44
|
+
var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:56px;max-height:56px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:58px;max-height:58px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:56px;max-height:56px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:54px;max-height:54px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-box-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-box-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-box-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-box-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-box-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-box-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-box-sm{min-height:32px;max-height:32px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-box-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-box-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-box-xs{min-height:20px;max-height:20px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-box-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-box-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
45
|
+
|
|
46
|
+
var styleCss$4 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{overflow:clip !important;width:100%;padding:0;border:0;background:unset;outline:none;overflow-clip-margin:0 !important;text-overflow:ellipsis}input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.displayValue{display:none}.displayValue.hasContent:is(.withValue):not(.hasFocus){display:flex;align-items:center}.accents:not(.util_displayHidden){display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px}.wrapper:not(:focus-within):not(:hover) .notificationBtn.passwordBtn,.wrapper:not(:focus-within):not(:hover) .notification.clear{display:none}.notification{display:flex;align-items:center;justify-content:center}`;
|
|
47
|
+
|
|
48
|
+
var styleDefaultCss = i$5`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .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)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .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))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .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}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .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([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):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([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom: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}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
49
|
+
|
|
50
|
+
var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
51
|
+
|
|
52
|
+
var tokensCss$4 = i$5`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: transparent}`;
|
|
53
|
+
|
|
54
|
+
var classicStyleCss = i$5`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;background-color:var(--ds-auro-input-container-color);box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
55
|
+
|
|
56
|
+
var classicColorCss = i$5`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host(:not([ondark])) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
57
|
+
|
|
58
|
+
var emphasizedStyleCss = i$5`:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}.layout-emphasized,.layout-emphasized-left,.layout-emphasized-right{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-emphasized label,.layout-emphasized-left label,.layout-emphasized-right label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{transition:all 1ms linear;text-align:center}.layout-emphasized .mainContent,.layout-emphasized-left .mainContent,.layout-emphasized-right .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;overflow:hidden}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{display:none;width:100%}.layout-emphasized .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-left .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-right .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-emphasized.withValue,.layout-emphasized-left.withValue,.layout-emphasized-right.withValue{justify-content:flex-start}.layout-emphasized.withValue label,.layout-emphasized-left.withValue label,.layout-emphasized-right.withValue label{display:block;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-align:left;width:100%}.layout-emphasized:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-left:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-right:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{justify-content:flex-start}.layout-emphasized:focus-within label,.layout-emphasized-left:focus-within label,.layout-emphasized-right:focus-within label{display:block;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-align:left;width:100%}.layout-emphasized:focus-within .alertNotification,.layout-emphasized-left:focus-within .alertNotification,.layout-emphasized-right:focus-within .alertNotification{display:none}.layout-emphasized .accents.left,.layout-emphasized-left .accents.left,.layout-emphasized-right .accents.left{padding-left:var(--ds-size-300, 1.5rem)}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:var(--ds-size-300, 1.5rem)}`;
|
|
59
|
+
|
|
60
|
+
var emphasizedColorCss = i$5`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
|
|
61
|
+
|
|
62
|
+
var snowflakeStyleCss = i$5`:root{--ds-advanced-color-button-flat-text: #676767;--ds-advanced-color-button-flat-text-disabled: #d0d0d0;--ds-advanced-color-button-flat-text-hover: #525252;--ds-advanced-color-button-flat-text-inverse: #ffffff;--ds-advanced-color-button-flat-text-inverse-disabled: #7e8894;--ds-advanced-color-button-flat-text-inverse-hover: #adadad;--ds-advanced-color-button-ghost-background-hover: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-ghost-background-inverse-hover: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-ghost-text: #01426a;--ds-advanced-color-button-ghost-text-disabled: #d0d0d0;--ds-advanced-color-button-ghost-text-inverse: #ffffff;--ds-advanced-color-button-ghost-text-inverse-disabled: #7e8894;--ds-advanced-color-button-primary-background: #01426a;--ds-advanced-color-button-primary-background-disabled: #acc9e2;--ds-advanced-color-button-primary-background-hover: #00274a;--ds-advanced-color-button-primary-background-inactive: #cfe0ef;--ds-advanced-color-button-primary-background-inactive-hover: #89b2d4;--ds-advanced-color-button-primary-background-inverse: #ffffff;--ds-advanced-color-button-primary-background-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-background-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-border: #01426a;--ds-advanced-color-button-primary-border-disabled: #acc9e2;--ds-advanced-color-button-primary-border-hover: #00274a;--ds-advanced-color-button-primary-border-inverse: #ffffff;--ds-advanced-color-button-primary-border-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-border-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-text: #ffffff;--ds-advanced-color-button-primary-text-disabled: #ffffff;--ds-advanced-color-button-primary-text-inverse: #01426a;--ds-advanced-color-button-secondary-background: #ffffff;--ds-advanced-color-button-secondary-background-disabled: #f7f7f7;--ds-advanced-color-button-secondary-background-hover: #f2f2f2;--ds-advanced-color-button-secondary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-secondary-border: #01426a;--ds-advanced-color-button-secondary-border-hover: #00274a;--ds-advanced-color-button-secondary-border-disabled: #cfe0ef;--ds-advanced-color-button-secondary-border-inverse: #ffffff;--ds-advanced-color-button-secondary-border-inverse-disabled: #dddddd;--ds-advanced-color-button-secondary-text: #01426a;--ds-advanced-color-button-secondary-text-hover: #00274a;--ds-advanced-color-button-secondary-text-inverse: #ffffff;--ds-advanced-color-button-tertiary-background: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-tertiary-background-hover: rgba(0, 0, 0, 0.1);--ds-advanced-color-button-tertiary-background-inverse: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-tertiary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-tertiary-text: #01426a;--ds-advanced-color-button-tertiary-text-hover: #00274a;--ds-advanced-color-button-tertiary-text-inverse: #ffffff;--ds-advanced-color-accents-accent1: #b2d583;--ds-advanced-color-accents-accent1-bold: #92c450;--ds-advanced-color-accents-accent1-muted: #deedca;--ds-advanced-color-accents-accent2: #fad362;--ds-advanced-color-accents-accent2-bold: #f2ba14;--ds-advanced-color-accents-accent2-muted: #fde398;--ds-advanced-color-accents-accent3: #63beff;--ds-advanced-color-accents-accent3-bold: #0074ca;--ds-advanced-color-accents-accent3-muted: #aedeff;--ds-advanced-color-accents-accent4: #feb17a;--ds-advanced-color-accents-accent4-bold: #fb7f24;--ds-advanced-color-accents-accent4-muted: #ffe2cf;--ds-advanced-color-accents-transparency: rgba(0, 0, 0, 0.1);--ds-advanced-color-accents-transparency-inverse: rgba(255, 255, 255, 0.2);--ds-advanced-color-avatar-gradient-bottom: #cfe0ef;--ds-advanced-color-avatar-gradient-top: #6899c6;--ds-advanced-color-boolean-disabled-inverse: #7e8894;--ds-advanced-color-boolean-error: #e31f26;--ds-advanced-color-boolean-error-hover: #b1161c;--ds-advanced-color-boolean-error-inverse: #f9a4a8;--ds-advanced-color-boolean-error-inverse-hover: #f15f65;--ds-advanced-color-boolean-indicator: #ffffff;--ds-advanced-color-boolean-indicator-inverse: #00274a;--ds-advanced-color-boolean-isfalse: #ffffff;--ds-advanced-color-boolean-isfalse-border: #585e67;--ds-advanced-color-boolean-isfalse-border-inverse: #ffffff;--ds-advanced-color-boolean-isfalse-hover: #f2f2f2;--ds-advanced-color-boolean-isfalse-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-boolean-isfalse-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-boolean-istrue: #01426a;--ds-advanced-color-boolean-istrue-hover: #00274a;--ds-advanced-color-boolean-istrue-inverse: #ffffff;--ds-advanced-color-boolean-istrue-inverse-hover: rgba(255, 255, 255, 0.7);--ds-advanced-color-flightline-indicator: #00274a;--ds-advanced-color-flightline-line: #00274a;--ds-advanced-color-hyperlink-text: #2875b5;--ds-advanced-color-hyperlink-text-hover: #01426a;--ds-advanced-color-hyperlink-text-inverse: #ffffff;--ds-advanced-color-hyperlink-text-inverse-hover: #ebf3f9;--ds-advanced-color-shared-background: #ffffff;--ds-advanced-color-shared-background-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-shared-background-inverse-disabled: rgba(255, 255, 255, 0.1);--ds-advanced-color-shared-background-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-shared-background-muted: #f7f7f7;--ds-advanced-color-shared-background-strong: #7e7e7e;--ds-advanced-color-shared-emphasized-background: rgba(1, 66, 106, 0.1);--ds-advanced-color-shared-emphasized-background-hover: rgba(1, 66, 106, 0.2);--ds-advanced-color-shared-scrim: rgba(0, 0, 0, 0.5);--ds-advanced-color-shared-text-accent: #2875b5;--ds-advanced-color-skeleton-background: #f7f8fa;--ds-advanced-color-skeleton-wave: #e4e8ec;--ds-advanced-color-state-background-disabled: #dddddd;--ds-advanced-color-state-background-hover: #f2f2f2;--ds-advanced-color-state-background-inverse-disabled: #7e8894;--ds-advanced-color-state-error-inverse: #f9a4a8;--ds-advanced-color-state-focused: #01426a;--ds-advanced-color-state-focused-inverse: #ffffff;--ds-advanced-color-state-selected: #01426a;--ds-advanced-color-state-selected-hover: #00274a;--ds-basic-color-border-bold: #585e67;--ds-basic-color-border-brand: #00274a;--ds-basic-color-border-default: #959595;--ds-basic-color-border-divider: rgba(0, 0, 0, 0.15);--ds-basic-color-border-divider-inverse: rgba(255, 255, 255, 0.4);--ds-basic-color-border-inverse: #ffffff;--ds-basic-color-border-subtle: #dddddd;--ds-basic-color-brand-primary: #01426a;--ds-basic-color-brand-primary-bold: #00274a;--ds-basic-color-brand-primary-muted: #ebf3f9;--ds-basic-color-brand-primary-subtle: #2875b5;--ds-basic-color-brand-secondary: #5de3f7;--ds-basic-color-brand-secondary-bold: #18c3dd;--ds-basic-color-brand-secondary-muted: #ebfafd;--ds-basic-color-brand-secondary-subtle: #b4eff9;--ds-basic-color-brand-tertiary: #a3cd6a;--ds-basic-color-brand-tertiary-bold: #7daf3b;--ds-basic-color-brand-tertiary-muted: #eaf3dd;--ds-basic-color-brand-tertiary-subtle: #c9e1a7;--ds-basic-color-fare-basiceconomy: #97eaf8;--ds-basic-color-fare-business: #01426a;--ds-basic-color-fare-economy: #0074ca;--ds-basic-color-fare-first: #00274a;--ds-basic-color-fare-premiumeconomy: #005154;--ds-basic-color-page-background-default: #ebfafd;--ds-basic-color-page-background-utility: #ffffff;--ds-basic-color-status-default: #afb9c6;--ds-basic-color-status-error: #e31f26;--ds-basic-color-status-error-subtle: #fbc6c6;--ds-basic-color-status-info: #01426a;--ds-basic-color-status-info-subtle: #ebf3f9;--ds-basic-color-status-success: #447a1f;--ds-basic-color-status-success-subtle: #d6eac7;--ds-basic-color-status-warning: #fac200;--ds-basic-color-status-warning-subtle: #fff0b2;--ds-basic-color-surface-accent1: #5de3f7;--ds-basic-color-surface-accent1-muted: #ebfafd;--ds-basic-color-surface-accent1-subtle: #b4eff9;--ds-basic-color-surface-accent2: #a3cd6a;--ds-basic-color-surface-accent2-muted: #eaf3dd;--ds-basic-color-surface-default: #ffffff;--ds-basic-color-surface-inverse: #00274a;--ds-basic-color-surface-inverse-subtle: #2875b5;--ds-basic-color-surface-neutral-medium: #c5c5c5;--ds-basic-color-surface-neutral-subtle: #f7f7f7;--ds-basic-color-texticon-accent1: #265688;--ds-basic-color-texticon-default: #2a2a2a;--ds-basic-color-texticon-disabled: #d0d0d0;--ds-basic-color-texticon-inverse: #ffffff;--ds-basic-color-texticon-inverse-disabled: #7e8894;--ds-basic-color-texticon-inverse-muted: #ccd2db;--ds-basic-color-texticon-muted: #676767;--ds-basic-color-tier-program-loungetier-lounge: #01426a;--ds-basic-color-tier-program-loungetier-loungeplus: #53b390;--ds-basic-color-tier-program-loyaltytier-bronze: #d99f6d;--ds-basic-color-tier-program-loyaltytier-bronze-muted: #eed4be;--ds-basic-color-tier-program-loyaltytier-cobalt: #030772;--ds-basic-color-tier-program-loyaltytier-cobalt-muted: #a9b6d6;--ds-basic-color-tier-program-loyaltytier-copper: #cb7457;--ds-basic-color-tier-program-loyaltytier-copper-muted: #e7bfb1;--ds-basic-color-tier-program-loyaltytier-gold: #fbdc7a;--ds-basic-color-tier-program-loyaltytier-gold-muted: #fdefc4;--ds-basic-color-tier-program-loyaltytier-nickel: #abaab1;--ds-basic-color-tier-program-loyaltytier-nickel-muted: #e5e4e7;--ds-basic-color-tier-program-loyaltytier-platinum: #bcb8a4;--ds-basic-color-tier-program-loyaltytier-platinum-muted: #dad8cd;--ds-basic-color-tier-program-loyaltytier-silver: #e4e9ec;--ds-basic-color-tier-program-loyaltytier-silver-muted: #f9fafb;--ds-basic-color-tier-program-loyaltytier-titanium: #282828;--ds-basic-color-tier-program-loyaltytier-titanium-muted: #545454;--ds-basic-color-tier-program-oneworld-emerald: #139142;--ds-basic-color-tier-program-oneworld-ruby: #a41d4a;--ds-basic-color-tier-program-oneworld-sapphire: #015daa;--ds-basic-type-brand-family-primary: "AS Circular";--ds-basic-type-brand-family-secondary: "Good OT";--ds-basic-type-brand-line-height-primary: 1.3;--ds-basic-type-brand-line-height-secondary: 1;--ds-basic-type-brand-letter-spacing-primary: 0;--ds-basic-type-brand-letter-spacing-secondary: 0.05em;--ds-basic-type-brand-letter-spacing-tertiary: 0.10em;--ds-basic-type-family-accent: "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-body: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-display: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-heading: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-letter-spacing-accent: 0.05em;--ds-basic-type-letter-spacing-accent2: 0.10em;--ds-basic-type-letter-spacing-body: 0;--ds-basic-type-letter-spacing-display: 0;--ds-basic-type-letter-spacing-heading: 0;--ds-basic-type-line-height-accent: 1.3;--ds-basic-type-line-height-accent2: 1;--ds-basic-type-line-height-body: 1.625rem;--ds-basic-type-line-height-body2: 1.5rem;--ds-basic-type-line-height-body3: 1.25rem;--ds-basic-type-line-height-body4: 1rem;--ds-basic-type-line-height-body5: 0.875rem;--ds-basic-type-line-height-display: 1.3;--ds-basic-type-line-height-heading: 1.3;--ds-basic-type-weight-accent: 450;--ds-basic-type-weight-accent2: 500;--ds-basic-type-weight-body: 450;--ds-basic-type-weight-display: 300;--ds-basic-type-weight-heading: 300;--ds-basic-type-weight-heading2: 450}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-block-start:var(--ds-size-50, 0.25rem)}.layout-snowflake input{transition:all 1ms linear;text-align:center}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;overflow:hidden}.layout-snowflake .displayValue{display:none;width:100%}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}.layout-snowflake.withValue{justify-content:flex-start}.layout-snowflake:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-snowflake:focus-within{justify-content:flex-start}.layout-snowflake:focus-within .alertNotification{display:none}.layout-snowflake .accents{width:var(--ds-size-300, 1.5rem)}.layout-snowflake .accents.left{padding-left:var(--ds-size-300, 1.5rem)}.layout-snowflake .accents.right{padding-right:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .helpTextWrapper{text-align:center}`;
|
|
24
63
|
|
|
25
64
|
/**
|
|
26
65
|
* @license
|
|
27
66
|
* Copyright 2020 Google LLC
|
|
28
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
68
|
*/
|
|
30
|
-
const a
|
|
69
|
+
const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s$1=t=>({_$litStatic$:t,r:a}),i$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==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&&void 0!==(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$$");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u$2=n(x);
|
|
31
70
|
|
|
32
71
|
/**
|
|
33
72
|
* @license
|
|
34
73
|
* Copyright 2017 Google LLC
|
|
35
74
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
75
|
*/
|
|
37
|
-
const t$
|
|
76
|
+
const t$1={ATTRIBUTE:1,CHILD:2},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)}}
|
|
38
77
|
|
|
39
78
|
/**
|
|
40
79
|
* @license
|
|
41
80
|
* Copyright 2020 Google LLC
|
|
42
81
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/const {I:t
|
|
82
|
+
*/const {I:t}=Z,s=()=>document.createComment(""),r=(o,i,n)=>{const e=o._$AA.parentNode,l=void 0===i?o._$AB:i._$AA;if(void 0===n){const i=e.insertBefore(s(),l),c=e.insertBefore(s(),l);n=new t(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,void 0!==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$1={},m=(o,t=u$1)=>o._$AH=t,p=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;}};
|
|
44
83
|
|
|
45
84
|
/**
|
|
46
85
|
* @license
|
|
47
86
|
* Copyright 2017 Google LLC
|
|
48
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
88
|
*/
|
|
50
|
-
const u
|
|
89
|
+
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=e$1(class extends i{constructor(e){if(super(e),e.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==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$1,c]){const d=p(s),{values:p$1,keys:a}=this.dt(t,r$1,c);if(!Array.isArray(d))return this.ut=a,p$1;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p$1.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$1[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p$1[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p$1[w]),r(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p$1[k]),r(s,d[x],d[j]),j--,k++;else if(void 0===m$1&&(m$1=u(a,k,w),y=u(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r(s,d[x]);v(e,p$1[k]),v$1[k]=e;}else v$1[k]=v(t,p$1[k]),r(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r(s,v$1[w+1]);v(e,p$1[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}});
|
|
51
90
|
|
|
52
91
|
/**
|
|
53
92
|
* @license
|
|
54
93
|
* Copyright 2018 Google LLC
|
|
55
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/const e
|
|
95
|
+
*/const e=e$1(class extends i{constructor(t){if(super(t),t.type!==t$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(void 0===this.st){this.st=new Set,void 0!==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}});
|
|
57
96
|
|
|
58
97
|
/**
|
|
59
98
|
* @license
|
|
60
99
|
* Copyright 2018 Google LLC
|
|
61
100
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
|
-
*/const o
|
|
101
|
+
*/const o=o=>o??E;
|
|
63
102
|
|
|
64
103
|
const watchedItems = new Set();
|
|
65
104
|
|
|
@@ -122,6 +161,8 @@ const stringsES = {
|
|
|
122
161
|
'dateMM': 'Ingrese una fecha completa en el formato MM',
|
|
123
162
|
'dateDD': 'Ingrese una fecha completa en el formato DD',
|
|
124
163
|
'clearInput': 'Borrar campo de entrada',
|
|
164
|
+
'showPassword': 'Mostrar contraseña',
|
|
165
|
+
'hidePassword': 'Ocultar contraseña'
|
|
125
166
|
};
|
|
126
167
|
|
|
127
168
|
const stringsEN = {
|
|
@@ -146,6 +187,8 @@ const stringsEN = {
|
|
|
146
187
|
'dateMM': 'Please enter a complete date in the format MM',
|
|
147
188
|
'dateDD': 'Please enter a complete date in the format DD',
|
|
148
189
|
'clearInput': 'Clear input field',
|
|
190
|
+
'showPassword': 'Show password',
|
|
191
|
+
'hidePassword': 'Hide password'
|
|
149
192
|
};
|
|
150
193
|
|
|
151
194
|
/**
|
|
@@ -182,31 +225,6 @@ function stopNotifyingOnLangChange(element) {
|
|
|
182
225
|
watchedItems.delete(element);
|
|
183
226
|
}
|
|
184
227
|
|
|
185
|
-
/**
|
|
186
|
-
* @license
|
|
187
|
-
* Copyright 2019 Google LLC
|
|
188
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
189
|
-
*/
|
|
190
|
-
const t=globalThis,e$1=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1=Symbol(),o$2=new WeakMap;let n$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1)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&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$1=t=>new n$1("string"==typeof t?t:t+"",void 0,s$1),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$1)},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;void 0!==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$1(e)})(t):t;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* @license
|
|
194
|
-
* Copyright 2017 Google LLC
|
|
195
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
196
|
-
*/const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o$1,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),b={attribute:true,type:String,converter:u,reflect:false,useDefault:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class y 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=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),void 0!==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=[...r(t),...o$1(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(void 0!==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);void 0!==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 void 0!==s&&i.push(c$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,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),void 0!==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);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=h.fromAttribute(s,t.type)??this._$Ej?.get(e)??null,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){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=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}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._$EM();}catch(s){throw t=false,this._$EM(),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);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[d("elementProperties")]=new Map,y[d("finalized")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push("2.1.0");
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* @license
|
|
200
|
-
* Copyright 2017 Google LLC
|
|
201
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
202
|
-
*/const s=globalThis;class i extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}i._$litElement$=true,i["finalized"]=true,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});(s.litElementVersions??=[]).push("4.2.0");
|
|
203
|
-
|
|
204
|
-
var styleCss$4 = i$2`: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}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-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);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:var(--ds-size-200, 1rem);max-height:var(--ds-size-200, 1rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px);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)}`;
|
|
205
|
-
|
|
206
|
-
var colorCss$4 = i$2`.wrapper{border-color:transparent}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-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}label{color:var(--ds-auro-input-label-text-color)}.alertNotification{color:var(--ds-auro-input-error-icon-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-advanced-color-state-focused, #01426a);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark][bordered]){--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([onDark][bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
|
|
207
|
-
|
|
208
|
-
var tokensCss$4 = i$2`:host{--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}`;
|
|
209
|
-
|
|
210
228
|
/** Checks if value is string */
|
|
211
229
|
function isString(str) {
|
|
212
230
|
return typeof str === 'string' || str instanceof String;
|
|
@@ -4465,7 +4483,7 @@ const {
|
|
|
4465
4483
|
|
|
4466
4484
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4467
4485
|
|
|
4468
|
-
let AuroLibraryRuntimeUtils$
|
|
4486
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4469
4487
|
|
|
4470
4488
|
/* eslint-disable jsdoc/require-param */
|
|
4471
4489
|
|
|
@@ -4535,7 +4553,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
4535
4553
|
class AuroFormValidation {
|
|
4536
4554
|
|
|
4537
4555
|
constructor() {
|
|
4538
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4556
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
4539
4557
|
}
|
|
4540
4558
|
|
|
4541
4559
|
/**
|
|
@@ -4595,19 +4613,19 @@ class AuroFormValidation {
|
|
|
4595
4613
|
{
|
|
4596
4614
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
4597
4615
|
validity: 'tooShort',
|
|
4598
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
4616
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
4599
4617
|
},
|
|
4600
4618
|
{
|
|
4601
4619
|
check: (e) => e.value?.length > e.maxLength,
|
|
4602
4620
|
validity: 'tooLong',
|
|
4603
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
4621
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
4604
4622
|
}
|
|
4605
4623
|
],
|
|
4606
4624
|
pattern: [
|
|
4607
4625
|
{
|
|
4608
4626
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
4609
4627
|
validity: 'patternMismatch',
|
|
4610
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
4628
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
4611
4629
|
}
|
|
4612
4630
|
]
|
|
4613
4631
|
},
|
|
@@ -4754,13 +4772,24 @@ class AuroFormValidation {
|
|
|
4754
4772
|
this.getInputElements(elem);
|
|
4755
4773
|
this.getAuroInputs(elem);
|
|
4756
4774
|
|
|
4757
|
-
//
|
|
4775
|
+
// Check if validation should run
|
|
4758
4776
|
let validationShouldRun =
|
|
4777
|
+
|
|
4778
|
+
// If the validation was forced
|
|
4759
4779
|
force ||
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4780
|
+
|
|
4781
|
+
// If the validation should run on input
|
|
4782
|
+
elem.validateOnInput ||
|
|
4783
|
+
|
|
4784
|
+
// State-based checks
|
|
4785
|
+
(
|
|
4786
|
+
// Element is not currently focused
|
|
4787
|
+
!elem.contains(document.activeElement) && // native input is not focused directly
|
|
4788
|
+
!document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
|
|
4789
|
+
|
|
4790
|
+
// And element has been touched or is untouched but has a value
|
|
4791
|
+
( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
|
|
4792
|
+
);
|
|
4764
4793
|
|
|
4765
4794
|
if (elem.hasAttribute('error')) {
|
|
4766
4795
|
elem.validity = 'customError';
|
|
@@ -4802,10 +4831,10 @@ class AuroFormValidation {
|
|
|
4802
4831
|
if (!hasValue && elem.required && elem.touched) {
|
|
4803
4832
|
elem.validity = 'valueMissing';
|
|
4804
4833
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
4805
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
4834
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
4806
4835
|
this.validateType(elem);
|
|
4807
4836
|
this.validateElementAttributes(elem);
|
|
4808
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
4837
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
4809
4838
|
this.validateElementAttributes(elem);
|
|
4810
4839
|
}
|
|
4811
4840
|
}
|
|
@@ -4814,7 +4843,9 @@ class AuroFormValidation {
|
|
|
4814
4843
|
elem.validity = this.auroInputElements[0].validity;
|
|
4815
4844
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
4816
4845
|
|
|
4817
|
-
|
|
4846
|
+
// multiple input in one components (datepicker)
|
|
4847
|
+
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
4848
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
|
|
4818
4849
|
elem.validity = this.auroInputElements[1].validity;
|
|
4819
4850
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
4820
4851
|
}
|
|
@@ -4894,6 +4925,101 @@ class AuroFormValidation {
|
|
|
4894
4925
|
}
|
|
4895
4926
|
}
|
|
4896
4927
|
|
|
4928
|
+
let AuroElement$2 = class AuroElement extends i$2 {
|
|
4929
|
+
static get properties() {
|
|
4930
|
+
return {
|
|
4931
|
+
|
|
4932
|
+
/**
|
|
4933
|
+
* Defines the language of an element.
|
|
4934
|
+
* @default {'default'}
|
|
4935
|
+
*/
|
|
4936
|
+
layout: {
|
|
4937
|
+
type: String,
|
|
4938
|
+
attribute: "layout",
|
|
4939
|
+
reflect: true
|
|
4940
|
+
},
|
|
4941
|
+
|
|
4942
|
+
shape: {
|
|
4943
|
+
type: String,
|
|
4944
|
+
attribute: "shape",
|
|
4945
|
+
reflect: true
|
|
4946
|
+
},
|
|
4947
|
+
|
|
4948
|
+
size: {
|
|
4949
|
+
type: String,
|
|
4950
|
+
attribute: "size",
|
|
4951
|
+
reflect: true
|
|
4952
|
+
},
|
|
4953
|
+
|
|
4954
|
+
onDark: {
|
|
4955
|
+
type: Boolean,
|
|
4956
|
+
attribute: "ondark",
|
|
4957
|
+
reflect: true
|
|
4958
|
+
}
|
|
4959
|
+
};
|
|
4960
|
+
}
|
|
4961
|
+
|
|
4962
|
+
resetShapeClasses() {
|
|
4963
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4964
|
+
|
|
4965
|
+
if (wrapper) {
|
|
4966
|
+
wrapper.classList.forEach((className) => {
|
|
4967
|
+
if (className.startsWith('shape-')) {
|
|
4968
|
+
wrapper.classList.remove(className);
|
|
4969
|
+
}
|
|
4970
|
+
});
|
|
4971
|
+
|
|
4972
|
+
if (this.shape && this.size) {
|
|
4973
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
4974
|
+
} else {
|
|
4975
|
+
wrapper.classList.add('shape-none');
|
|
4976
|
+
}
|
|
4977
|
+
}
|
|
4978
|
+
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4981
|
+
resetLayoutClasses() {
|
|
4982
|
+
if (this.layout) {
|
|
4983
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4984
|
+
|
|
4985
|
+
if (wrapper) {
|
|
4986
|
+
wrapper.classList.forEach((className) => {
|
|
4987
|
+
if (className.startsWith('layout-')) {
|
|
4988
|
+
wrapper.classList.remove(className);
|
|
4989
|
+
}
|
|
4990
|
+
});
|
|
4991
|
+
|
|
4992
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
4993
|
+
}
|
|
4994
|
+
}
|
|
4995
|
+
}
|
|
4996
|
+
|
|
4997
|
+
updateComponentArchitecture() {
|
|
4998
|
+
this.resetLayoutClasses();
|
|
4999
|
+
this.resetShapeClasses();
|
|
5000
|
+
}
|
|
5001
|
+
|
|
5002
|
+
updated(changedProperties) {
|
|
5003
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
5004
|
+
this.updateComponentArchitecture();
|
|
5005
|
+
}
|
|
5006
|
+
}
|
|
5007
|
+
|
|
5008
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
5009
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
5010
|
+
render() {
|
|
5011
|
+
try {
|
|
5012
|
+
return this.renderLayout();
|
|
5013
|
+
} catch (error) {
|
|
5014
|
+
// failed to get the defined layout
|
|
5015
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
5016
|
+
|
|
5017
|
+
// fallback to the default layout
|
|
5018
|
+
return this.getLayout('default');
|
|
5019
|
+
}
|
|
5020
|
+
}
|
|
5021
|
+
};
|
|
5022
|
+
|
|
4897
5023
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4898
5024
|
// See LICENSE in the project root for license information.
|
|
4899
5025
|
|
|
@@ -4901,40 +5027,62 @@ class AuroFormValidation {
|
|
|
4901
5027
|
/**
|
|
4902
5028
|
* Auro-input provides users a way to enter data into a text field.
|
|
4903
5029
|
*
|
|
4904
|
-
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
4905
|
-
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
4906
|
-
*
|
|
4907
5030
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
4908
5031
|
* @attr id
|
|
4909
5032
|
*
|
|
4910
|
-
* @slot
|
|
5033
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
5034
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
5035
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
5036
|
+
* @slot helpText - Sets the help text displayed below the input.
|
|
4911
5037
|
* @slot label - Sets the label text for the input.
|
|
5038
|
+
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
5039
|
+
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
4912
5040
|
*
|
|
4913
5041
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
4914
5042
|
* @csspart label - Use for customizing the style of the label element
|
|
4915
5043
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
5044
|
+
* @csspart input - Use for customizing the style of the input element
|
|
4916
5045
|
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
|
|
4917
5046
|
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
|
|
5047
|
+
* @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
|
|
5048
|
+
* @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
|
|
4918
5049
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
4919
5050
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
4920
5051
|
*/
|
|
4921
5052
|
|
|
4922
|
-
class BaseInput extends
|
|
5053
|
+
class BaseInput extends AuroElement$2 {
|
|
4923
5054
|
|
|
4924
5055
|
constructor() {
|
|
4925
5056
|
super();
|
|
4926
5057
|
|
|
5058
|
+
this.activeLabel = false;
|
|
4927
5059
|
this.icon = false;
|
|
4928
5060
|
this.disabled = false;
|
|
4929
|
-
this.required = false;
|
|
4930
|
-
this.noValidate = false;
|
|
4931
5061
|
this.max = undefined;
|
|
4932
|
-
this.min = undefined;
|
|
4933
5062
|
this.maxLength = undefined;
|
|
5063
|
+
this.min = undefined;
|
|
4934
5064
|
this.minLength = undefined;
|
|
5065
|
+
this.noValidate = false;
|
|
4935
5066
|
this.onDark = false;
|
|
4936
|
-
this.
|
|
5067
|
+
this.required = false;
|
|
4937
5068
|
this.setCustomValidityForType = undefined;
|
|
5069
|
+
|
|
5070
|
+
/**
|
|
5071
|
+
* @private
|
|
5072
|
+
*/
|
|
5073
|
+
this.layout = 'classic';
|
|
5074
|
+
|
|
5075
|
+
/**
|
|
5076
|
+
* @private
|
|
5077
|
+
*/
|
|
5078
|
+
this.shape = 'classic';
|
|
5079
|
+
|
|
5080
|
+
/**
|
|
5081
|
+
* @private
|
|
5082
|
+
*/
|
|
5083
|
+
this.size = 'lg';
|
|
5084
|
+
|
|
5085
|
+
this.privateDefaults();
|
|
4938
5086
|
}
|
|
4939
5087
|
|
|
4940
5088
|
/**
|
|
@@ -4951,6 +5099,7 @@ class BaseInput extends i {
|
|
|
4951
5099
|
this.validationCCLength = undefined;
|
|
4952
5100
|
this.hasValue = false;
|
|
4953
5101
|
this.label = 'Input label is undefined';
|
|
5102
|
+
this.placeholderStr = '';
|
|
4954
5103
|
|
|
4955
5104
|
this.allowedInputTypes = [
|
|
4956
5105
|
"text",
|
|
@@ -4997,16 +5146,16 @@ class BaseInput extends i {
|
|
|
4997
5146
|
.substring(idSubstrStart, idSubstrEnd);
|
|
4998
5147
|
}
|
|
4999
5148
|
|
|
5000
|
-
// function to define props used within the scope of this
|
|
5149
|
+
// function to define props used within the scope of this component
|
|
5001
5150
|
static get properties() {
|
|
5002
5151
|
return {
|
|
5152
|
+
...super.properties,
|
|
5003
5153
|
|
|
5004
5154
|
/**
|
|
5005
5155
|
* The value for the role attribute.
|
|
5006
5156
|
*/
|
|
5007
5157
|
a11yRole: {
|
|
5008
5158
|
type: String,
|
|
5009
|
-
attribute: true,
|
|
5010
5159
|
reflect: true
|
|
5011
5160
|
},
|
|
5012
5161
|
|
|
@@ -5015,7 +5164,6 @@ class BaseInput extends i {
|
|
|
5015
5164
|
*/
|
|
5016
5165
|
a11yExpanded: {
|
|
5017
5166
|
type: Boolean,
|
|
5018
|
-
attribute: true,
|
|
5019
5167
|
reflect: true
|
|
5020
5168
|
},
|
|
5021
5169
|
|
|
@@ -5024,7 +5172,6 @@ class BaseInput extends i {
|
|
|
5024
5172
|
*/
|
|
5025
5173
|
a11yControls: {
|
|
5026
5174
|
type: String,
|
|
5027
|
-
attribute: true,
|
|
5028
5175
|
reflect: true
|
|
5029
5176
|
},
|
|
5030
5177
|
|
|
@@ -5040,7 +5187,8 @@ class BaseInput extends i {
|
|
|
5040
5187
|
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters].
|
|
5041
5188
|
*/
|
|
5042
5189
|
autocapitalize: {
|
|
5043
|
-
type: String
|
|
5190
|
+
type: String,
|
|
5191
|
+
reflect: true
|
|
5044
5192
|
},
|
|
5045
5193
|
|
|
5046
5194
|
/**
|
|
@@ -5055,7 +5203,8 @@ class BaseInput extends i {
|
|
|
5055
5203
|
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
5056
5204
|
*/
|
|
5057
5205
|
autocorrect: {
|
|
5058
|
-
type: String
|
|
5206
|
+
type: String,
|
|
5207
|
+
reflect: true
|
|
5059
5208
|
},
|
|
5060
5209
|
|
|
5061
5210
|
/**
|
|
@@ -5100,7 +5249,6 @@ class BaseInput extends i {
|
|
|
5100
5249
|
/** Exposes inputmode attribute for input. */
|
|
5101
5250
|
inputmode: {
|
|
5102
5251
|
type: String,
|
|
5103
|
-
attribute: true,
|
|
5104
5252
|
reflect: true
|
|
5105
5253
|
},
|
|
5106
5254
|
|
|
@@ -5108,7 +5256,8 @@ class BaseInput extends i {
|
|
|
5108
5256
|
* Defines the language of an element.
|
|
5109
5257
|
*/
|
|
5110
5258
|
lang: {
|
|
5111
|
-
type: String
|
|
5259
|
+
type: String,
|
|
5260
|
+
reflect: true
|
|
5112
5261
|
},
|
|
5113
5262
|
|
|
5114
5263
|
/**
|
|
@@ -5122,7 +5271,8 @@ class BaseInput extends i {
|
|
|
5122
5271
|
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
5123
5272
|
*/
|
|
5124
5273
|
maxLength: {
|
|
5125
|
-
type: Number
|
|
5274
|
+
type: Number,
|
|
5275
|
+
reflect: true
|
|
5126
5276
|
},
|
|
5127
5277
|
|
|
5128
5278
|
/**
|
|
@@ -5136,14 +5286,25 @@ class BaseInput extends i {
|
|
|
5136
5286
|
* The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
5137
5287
|
*/
|
|
5138
5288
|
minLength: {
|
|
5139
|
-
type: Number
|
|
5289
|
+
type: Number,
|
|
5290
|
+
reflect: true
|
|
5140
5291
|
},
|
|
5141
5292
|
|
|
5142
5293
|
/**
|
|
5143
5294
|
* Populates the `name` attribute on the input.
|
|
5144
5295
|
*/
|
|
5145
5296
|
name: {
|
|
5146
|
-
type: String
|
|
5297
|
+
type: String,
|
|
5298
|
+
reflect: true
|
|
5299
|
+
},
|
|
5300
|
+
|
|
5301
|
+
/**
|
|
5302
|
+
* Sets styles for nested operation - removes borders, hides help + error text, and
|
|
5303
|
+
* hides accents.
|
|
5304
|
+
*/
|
|
5305
|
+
nested: {
|
|
5306
|
+
type: Boolean,
|
|
5307
|
+
reflect: true
|
|
5147
5308
|
},
|
|
5148
5309
|
|
|
5149
5310
|
/**
|
|
@@ -5171,10 +5332,11 @@ class BaseInput extends i {
|
|
|
5171
5332
|
},
|
|
5172
5333
|
|
|
5173
5334
|
/**
|
|
5174
|
-
* Define custom placeholder text
|
|
5335
|
+
* Define custom placeholder text.
|
|
5175
5336
|
*/
|
|
5176
5337
|
placeholder: {
|
|
5177
|
-
type: String
|
|
5338
|
+
type: String,
|
|
5339
|
+
reflect: true
|
|
5178
5340
|
},
|
|
5179
5341
|
|
|
5180
5342
|
/**
|
|
@@ -5263,6 +5425,14 @@ class BaseInput extends i {
|
|
|
5263
5425
|
type: String
|
|
5264
5426
|
},
|
|
5265
5427
|
|
|
5428
|
+
/**
|
|
5429
|
+
* Simple makes the input render without a border.
|
|
5430
|
+
*/
|
|
5431
|
+
simple: {
|
|
5432
|
+
type: Boolean,
|
|
5433
|
+
reflect: true
|
|
5434
|
+
},
|
|
5435
|
+
|
|
5266
5436
|
/**
|
|
5267
5437
|
* Custom help text message for email type validity.
|
|
5268
5438
|
*/
|
|
@@ -5274,7 +5444,8 @@ class BaseInput extends i {
|
|
|
5274
5444
|
* An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
5275
5445
|
*/
|
|
5276
5446
|
spellcheck: {
|
|
5277
|
-
type: String
|
|
5447
|
+
type: String,
|
|
5448
|
+
reflect: true
|
|
5278
5449
|
},
|
|
5279
5450
|
|
|
5280
5451
|
/**
|
|
@@ -5320,8 +5491,8 @@ class BaseInput extends i {
|
|
|
5320
5491
|
},
|
|
5321
5492
|
|
|
5322
5493
|
/**
|
|
5494
|
+
* The id for input node.
|
|
5323
5495
|
* @private
|
|
5324
|
-
* id for input node
|
|
5325
5496
|
*/
|
|
5326
5497
|
inputId: {
|
|
5327
5498
|
type: String,
|
|
@@ -5331,20 +5502,9 @@ class BaseInput extends i {
|
|
|
5331
5502
|
};
|
|
5332
5503
|
}
|
|
5333
5504
|
|
|
5334
|
-
|
|
5335
|
-
static get styles() {
|
|
5336
|
-
return [
|
|
5337
|
-
i$2`${colorCss$4}`,
|
|
5338
|
-
i$2`${styleCss$4}`,
|
|
5339
|
-
i$2`${tokensCss$4}`
|
|
5340
|
-
];
|
|
5341
|
-
}
|
|
5342
|
-
|
|
5343
5505
|
connectedCallback() {
|
|
5344
5506
|
super.connectedCallback();
|
|
5345
5507
|
|
|
5346
|
-
this.privateDefaults();
|
|
5347
|
-
|
|
5348
5508
|
notifyOnLangChange(this);
|
|
5349
5509
|
}
|
|
5350
5510
|
|
|
@@ -5354,15 +5514,21 @@ class BaseInput extends i {
|
|
|
5354
5514
|
}
|
|
5355
5515
|
|
|
5356
5516
|
firstUpdated() {
|
|
5517
|
+
// clicking anywhere in the main wrapper will focus the input. Clicking the helpText or label will not focus the input.
|
|
5518
|
+
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
5519
|
+
this.inputElement = this.renderRoot.querySelector('input');
|
|
5520
|
+
this.labelElement = this.shadowRoot.querySelector('label');
|
|
5521
|
+
|
|
5522
|
+
if (this.wrapperElement) {
|
|
5523
|
+
this.wrapperElement.addEventListener('click', this.handleClick);
|
|
5524
|
+
}
|
|
5525
|
+
|
|
5357
5526
|
// add attribute for query selectors when auro-input is registered under a custom name
|
|
5358
5527
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
5359
5528
|
this.setAttribute('auro-input', true);
|
|
5360
5529
|
}
|
|
5361
5530
|
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
5362
5531
|
|
|
5363
|
-
this.inputElement = this.renderRoot.querySelector('input');
|
|
5364
|
-
this.labelElement = this.shadowRoot.querySelector('label');
|
|
5365
|
-
|
|
5366
5532
|
if (this.format) {
|
|
5367
5533
|
this.format = this.format.toLowerCase();
|
|
5368
5534
|
}
|
|
@@ -5372,6 +5538,7 @@ class BaseInput extends i {
|
|
|
5372
5538
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
5373
5539
|
}
|
|
5374
5540
|
|
|
5541
|
+
this.getPlaceholder();
|
|
5375
5542
|
this.setCustomHelpTextMessage();
|
|
5376
5543
|
this.configureAutoFormatting();
|
|
5377
5544
|
}
|
|
@@ -5408,6 +5575,8 @@ class BaseInput extends i {
|
|
|
5408
5575
|
* @returns {void}
|
|
5409
5576
|
*/
|
|
5410
5577
|
updated(changedProperties) {
|
|
5578
|
+
super.updated(changedProperties);
|
|
5579
|
+
|
|
5411
5580
|
if (changedProperties.has('format')) {
|
|
5412
5581
|
this.configureAutoFormatting();
|
|
5413
5582
|
}
|
|
@@ -5457,9 +5626,9 @@ class BaseInput extends i {
|
|
|
5457
5626
|
if (!this.shadowRoot.contains(this.getActiveElement())) {
|
|
5458
5627
|
this.validation.validate(this);
|
|
5459
5628
|
}
|
|
5460
|
-
|
|
5461
|
-
this.notifyValueChanged();
|
|
5462
5629
|
}
|
|
5630
|
+
|
|
5631
|
+
this.notifyValueChanged();
|
|
5463
5632
|
}
|
|
5464
5633
|
|
|
5465
5634
|
if (changedProperties.has('error')) {
|
|
@@ -5528,15 +5697,6 @@ class BaseInput extends i {
|
|
|
5528
5697
|
return this.pattern;
|
|
5529
5698
|
}
|
|
5530
5699
|
|
|
5531
|
-
/**
|
|
5532
|
-
* Function to set element focus.
|
|
5533
|
-
* @private
|
|
5534
|
-
* @return {void}
|
|
5535
|
-
*/
|
|
5536
|
-
focus() {
|
|
5537
|
-
this.inputElement.focus();
|
|
5538
|
-
}
|
|
5539
|
-
|
|
5540
5700
|
/**
|
|
5541
5701
|
* Required to convert SVG icons from data to HTML string.
|
|
5542
5702
|
* @private
|
|
@@ -5566,6 +5726,24 @@ class BaseInput extends i {
|
|
|
5566
5726
|
this.dispatchEvent(inputEvent);
|
|
5567
5727
|
}
|
|
5568
5728
|
|
|
5729
|
+
|
|
5730
|
+
/**
|
|
5731
|
+
* Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
|
|
5732
|
+
* @private
|
|
5733
|
+
* @return {void}
|
|
5734
|
+
*/
|
|
5735
|
+
handleClick() {
|
|
5736
|
+
this.focus();
|
|
5737
|
+
}
|
|
5738
|
+
|
|
5739
|
+
/**
|
|
5740
|
+
* Function to set element focus.
|
|
5741
|
+
* @return {void}
|
|
5742
|
+
*/
|
|
5743
|
+
focus() {
|
|
5744
|
+
this.inputElement.focus();
|
|
5745
|
+
}
|
|
5746
|
+
|
|
5569
5747
|
/**
|
|
5570
5748
|
* Handles event of clearing input content by clicking the X icon.
|
|
5571
5749
|
* @private
|
|
@@ -5575,9 +5753,9 @@ class BaseInput extends i {
|
|
|
5575
5753
|
this.inputElement.value = "";
|
|
5576
5754
|
this.value = "";
|
|
5577
5755
|
this.labelElement.classList.remove('inputElement-label--sticky');
|
|
5756
|
+
this.notifyValueChanged();
|
|
5578
5757
|
this.focus();
|
|
5579
5758
|
this.validation.validate(this);
|
|
5580
|
-
this.notifyValueChanged();
|
|
5581
5759
|
}
|
|
5582
5760
|
|
|
5583
5761
|
/**
|
|
@@ -5613,10 +5791,23 @@ class BaseInput extends i {
|
|
|
5613
5791
|
* @return {void}
|
|
5614
5792
|
*/
|
|
5615
5793
|
handleFocusin() {
|
|
5794
|
+
this.hasFocus = true;
|
|
5795
|
+
|
|
5796
|
+
this.getPlaceholder();
|
|
5616
5797
|
|
|
5617
5798
|
this.touched = true;
|
|
5618
5799
|
}
|
|
5619
5800
|
|
|
5801
|
+
/**
|
|
5802
|
+
* Function to support @focusout event.
|
|
5803
|
+
* @private
|
|
5804
|
+
* @return {void}
|
|
5805
|
+
*/
|
|
5806
|
+
handleFocusout() {
|
|
5807
|
+
this.hasFocus = false;
|
|
5808
|
+
this.getPlaceholder();
|
|
5809
|
+
}
|
|
5810
|
+
|
|
5620
5811
|
/**
|
|
5621
5812
|
* Function to support @blur event.
|
|
5622
5813
|
* @private
|
|
@@ -5659,13 +5850,21 @@ class BaseInput extends i {
|
|
|
5659
5850
|
}
|
|
5660
5851
|
|
|
5661
5852
|
/**
|
|
5662
|
-
* Resets component to initial state.
|
|
5853
|
+
* Resets component to initial state, including resetting the touched state and validity.
|
|
5663
5854
|
* @returns {void}
|
|
5664
5855
|
*/
|
|
5665
5856
|
reset() {
|
|
5857
|
+
this.value = undefined;
|
|
5666
5858
|
this.validation.reset(this);
|
|
5667
5859
|
}
|
|
5668
5860
|
|
|
5861
|
+
/**
|
|
5862
|
+
* Clears the input value.
|
|
5863
|
+
*/
|
|
5864
|
+
clear() {
|
|
5865
|
+
this.value = undefined;
|
|
5866
|
+
}
|
|
5867
|
+
|
|
5669
5868
|
/**
|
|
5670
5869
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
5671
5870
|
* @private
|
|
@@ -5741,16 +5940,18 @@ class BaseInput extends i {
|
|
|
5741
5940
|
/**
|
|
5742
5941
|
* Support placeholder text.
|
|
5743
5942
|
* @private
|
|
5744
|
-
* @returns {
|
|
5943
|
+
* @returns {void}
|
|
5745
5944
|
*/
|
|
5746
5945
|
getPlaceholder() {
|
|
5747
5946
|
if (this.placeholder) {
|
|
5748
|
-
|
|
5947
|
+
this.placeholderStr = this.placeholder;
|
|
5749
5948
|
} else if (this.type === 'date') {
|
|
5750
|
-
|
|
5949
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5751
5950
|
}
|
|
5752
5951
|
|
|
5753
|
-
|
|
5952
|
+
this.requestUpdate();
|
|
5953
|
+
|
|
5954
|
+
return this.placeholderStr;
|
|
5754
5955
|
}
|
|
5755
5956
|
|
|
5756
5957
|
/**
|
|
@@ -5917,7 +6118,7 @@ class BaseInput extends i {
|
|
|
5917
6118
|
// See LICENSE in the project root for license information.
|
|
5918
6119
|
|
|
5919
6120
|
|
|
5920
|
-
|
|
6121
|
+
class AuroDependencyVersioning {
|
|
5921
6122
|
|
|
5922
6123
|
/**
|
|
5923
6124
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -5943,7 +6144,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
5943
6144
|
*/
|
|
5944
6145
|
generateTag(baseName, version, tagClass) {
|
|
5945
6146
|
const elementName = this.generateElementName(baseName, version);
|
|
5946
|
-
const tag = i$
|
|
6147
|
+
const tag = i$1`${s$1(elementName)}`;
|
|
5947
6148
|
|
|
5948
6149
|
if (!customElements.get(elementName)) {
|
|
5949
6150
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -5951,7 +6152,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
5951
6152
|
|
|
5952
6153
|
return tag;
|
|
5953
6154
|
}
|
|
5954
|
-
}
|
|
6155
|
+
}
|
|
5955
6156
|
|
|
5956
6157
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5957
6158
|
// See LICENSE in the project root for license information.
|
|
@@ -5963,7 +6164,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
5963
6164
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
5964
6165
|
*/
|
|
5965
6166
|
|
|
5966
|
-
class AuroElement extends i {
|
|
6167
|
+
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5967
6168
|
|
|
5968
6169
|
// function to define props used within the scope of this component
|
|
5969
6170
|
static get properties() {
|
|
@@ -5987,7 +6188,7 @@ class AuroElement extends i {
|
|
|
5987
6188
|
|
|
5988
6189
|
return 'false'
|
|
5989
6190
|
}
|
|
5990
|
-
}
|
|
6191
|
+
};
|
|
5991
6192
|
|
|
5992
6193
|
var error = {"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>"};
|
|
5993
6194
|
|
|
@@ -6019,7 +6220,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
6019
6220
|
return _fetchMap.get(uri);
|
|
6020
6221
|
};
|
|
6021
6222
|
|
|
6022
|
-
var styleCss$3 = i$
|
|
6223
|
+
var styleCss$3 = i$5`: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}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}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
6023
6224
|
|
|
6024
6225
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6025
6226
|
// See LICENSE in the project root for license information.
|
|
@@ -6031,7 +6232,7 @@ var styleCss$3 = i$2`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
6031
6232
|
*/
|
|
6032
6233
|
|
|
6033
6234
|
// build the component class
|
|
6034
|
-
class BaseIcon extends AuroElement {
|
|
6235
|
+
class BaseIcon extends AuroElement$1 {
|
|
6035
6236
|
constructor() {
|
|
6036
6237
|
super();
|
|
6037
6238
|
this.onDark = false;
|
|
@@ -6061,7 +6262,7 @@ class BaseIcon extends AuroElement {
|
|
|
6061
6262
|
}
|
|
6062
6263
|
|
|
6063
6264
|
static get styles() {
|
|
6064
|
-
return i$
|
|
6265
|
+
return i$5`
|
|
6065
6266
|
${styleCss$3}
|
|
6066
6267
|
`;
|
|
6067
6268
|
}
|
|
@@ -6103,9 +6304,9 @@ class BaseIcon extends AuroElement {
|
|
|
6103
6304
|
}
|
|
6104
6305
|
}
|
|
6105
6306
|
|
|
6106
|
-
var tokensCss$3 = i$
|
|
6307
|
+
var tokensCss$3 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
6107
6308
|
|
|
6108
|
-
var colorCss$3 = i$
|
|
6309
|
+
var colorCss$3 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
6109
6310
|
|
|
6110
6311
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6111
6312
|
// See LICENSE in the project root for license information.
|
|
@@ -6114,7 +6315,7 @@ var colorCss$3 = i$2`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
6114
6315
|
|
|
6115
6316
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6116
6317
|
|
|
6117
|
-
let AuroLibraryRuntimeUtils$
|
|
6318
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
6118
6319
|
|
|
6119
6320
|
/* eslint-disable jsdoc/require-param */
|
|
6120
6321
|
|
|
@@ -6196,7 +6397,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6196
6397
|
*/
|
|
6197
6398
|
privateDefaults() {
|
|
6198
6399
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6199
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6400
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
6200
6401
|
}
|
|
6201
6402
|
|
|
6202
6403
|
// function to define props used within the scope of this component
|
|
@@ -6224,7 +6425,8 @@ class AuroIcon extends BaseIcon {
|
|
|
6224
6425
|
* Allows custom color to be set.
|
|
6225
6426
|
*/
|
|
6226
6427
|
customColor: {
|
|
6227
|
-
type: Boolean
|
|
6428
|
+
type: Boolean,
|
|
6429
|
+
reflect: true
|
|
6228
6430
|
},
|
|
6229
6431
|
|
|
6230
6432
|
/**
|
|
@@ -6263,9 +6465,9 @@ class AuroIcon extends BaseIcon {
|
|
|
6263
6465
|
static get styles() {
|
|
6264
6466
|
return [
|
|
6265
6467
|
super.styles,
|
|
6266
|
-
i$
|
|
6267
|
-
i$
|
|
6268
|
-
i$
|
|
6468
|
+
i$5`${tokensCss$3}`,
|
|
6469
|
+
i$5`${styleCss$3}`,
|
|
6470
|
+
i$5`${colorCss$3}`
|
|
6269
6471
|
];
|
|
6270
6472
|
}
|
|
6271
6473
|
|
|
@@ -6278,7 +6480,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6278
6480
|
*
|
|
6279
6481
|
*/
|
|
6280
6482
|
static register(name = "auro-icon") {
|
|
6281
|
-
AuroLibraryRuntimeUtils$
|
|
6483
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
|
|
6282
6484
|
}
|
|
6283
6485
|
|
|
6284
6486
|
connectedCallback() {
|
|
@@ -6299,8 +6501,12 @@ class AuroIcon extends BaseIcon {
|
|
|
6299
6501
|
async firstUpdated() {
|
|
6300
6502
|
await super.firstUpdated();
|
|
6301
6503
|
|
|
6302
|
-
|
|
6303
|
-
|
|
6504
|
+
/**
|
|
6505
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
6506
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
6507
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
6508
|
+
*/
|
|
6509
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
6304
6510
|
const svgDesc = this.svg.querySelector('desc');
|
|
6305
6511
|
|
|
6306
6512
|
if (svgDesc) {
|
|
@@ -6324,9 +6530,9 @@ class AuroIcon extends BaseIcon {
|
|
|
6324
6530
|
return x`
|
|
6325
6531
|
<div class="componentWrapper">
|
|
6326
6532
|
<div
|
|
6327
|
-
class="${e
|
|
6328
|
-
title="${o
|
|
6329
|
-
<span aria-hidden="${o
|
|
6533
|
+
class="${e(svgClasses)}"
|
|
6534
|
+
title="${o(this.title || undefined)}">
|
|
6535
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
6330
6536
|
${this.customSvg ? x`
|
|
6331
6537
|
<slot name="svg"></slot>
|
|
6332
6538
|
` : x`
|
|
@@ -6336,7 +6542,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6336
6542
|
</span>
|
|
6337
6543
|
</div>
|
|
6338
6544
|
|
|
6339
|
-
<div class="${e
|
|
6545
|
+
<div class="${e(labelClasses)}">
|
|
6340
6546
|
<slot></slot>
|
|
6341
6547
|
</div>
|
|
6342
6548
|
</div>
|
|
@@ -6344,123 +6550,480 @@ class AuroIcon extends BaseIcon {
|
|
|
6344
6550
|
}
|
|
6345
6551
|
}
|
|
6346
6552
|
|
|
6347
|
-
var iconVersion = '8.0.
|
|
6553
|
+
var iconVersion = '8.0.4';
|
|
6348
6554
|
|
|
6349
|
-
|
|
6350
|
-
|
|
6555
|
+
/**
|
|
6556
|
+
* Private module-level WeakMap to hold MutationObservers for each host element.
|
|
6557
|
+
*/
|
|
6558
|
+
const _observers = new WeakMap();
|
|
6351
6559
|
|
|
6560
|
+
/**
|
|
6561
|
+
* Private module-level WeakMap to hold attribute matchers and targets for each host element.
|
|
6562
|
+
* Structure: {
|
|
6563
|
+
* host: {
|
|
6564
|
+
* matchers: Set<Function>,
|
|
6565
|
+
* targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
|
|
6566
|
+
* }
|
|
6567
|
+
* }
|
|
6568
|
+
*/
|
|
6569
|
+
const _transportConfig = new WeakMap();
|
|
6352
6570
|
|
|
6353
|
-
|
|
6571
|
+
/**
|
|
6572
|
+
* Transfers all matching attributes from a host element to a target element and observes for future changes.
|
|
6573
|
+
*
|
|
6574
|
+
* @param {Object} params - The parameters for the function.
|
|
6575
|
+
* @param {HTMLElement} params.host - The host element from which attributes will be transported.
|
|
6576
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6577
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
|
|
6578
|
+
* @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
|
|
6579
|
+
* @returns {Function} A function to detach the observer when no longer needed.
|
|
6580
|
+
* @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
|
|
6581
|
+
*/
|
|
6582
|
+
const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
|
|
6583
|
+
// Guard Clause: Ensure host is valid HTMLElement instance
|
|
6584
|
+
if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
|
|
6585
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
|
|
6586
|
+
}
|
|
6354
6587
|
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
6360
|
-
* @returns {string} - Unique string to be used for naming.
|
|
6361
|
-
*/
|
|
6362
|
-
generateElementName(baseName, version) {
|
|
6363
|
-
let result = baseName;
|
|
6588
|
+
// Guard Clause: Ensure target is valid HTMLElement instance
|
|
6589
|
+
if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
|
|
6590
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
|
|
6591
|
+
}
|
|
6364
6592
|
|
|
6365
|
-
|
|
6366
|
-
|
|
6593
|
+
// Guard Clause: Ensure match is a function
|
|
6594
|
+
if (typeof match !== 'function') {
|
|
6595
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
|
|
6596
|
+
}
|
|
6367
6597
|
|
|
6368
|
-
|
|
6598
|
+
// Guard Clause: Ensure removeOriginal is a boolean
|
|
6599
|
+
if (typeof removeOriginal !== 'boolean') {
|
|
6600
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
|
|
6369
6601
|
}
|
|
6602
|
+
|
|
6603
|
+
// Register this transport and get cleanup function
|
|
6604
|
+
return _registerTransport({
|
|
6605
|
+
host,
|
|
6606
|
+
target,
|
|
6607
|
+
matcher: match,
|
|
6608
|
+
removeOriginal
|
|
6609
|
+
});
|
|
6610
|
+
};
|
|
6370
6611
|
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6612
|
+
/**
|
|
6613
|
+
* Registers a matcher and target for a host element and attaches an observer if needed.
|
|
6614
|
+
*
|
|
6615
|
+
* @param {Object} params - The parameters object.
|
|
6616
|
+
* @param {HTMLElement} params.host - The host element to observe.
|
|
6617
|
+
* @param {HTMLElement} params.target - The target element to receive attributes.
|
|
6618
|
+
* @param {Function} params.matcher - Function that determines which attributes to transport.
|
|
6619
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
|
|
6620
|
+
* @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
|
|
6621
|
+
* @returns {Function} Function to detach the specific matcher and target pairing.
|
|
6622
|
+
* @private
|
|
6623
|
+
*/
|
|
6624
|
+
const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6625
|
+
// Initialize config for this host if it doesn't exist
|
|
6626
|
+
if (!_transportConfig.has(host)) {
|
|
6627
|
+
_transportConfig.set(host, {
|
|
6628
|
+
matchers: new Set(),
|
|
6629
|
+
targets: new Map()
|
|
6630
|
+
});
|
|
6631
|
+
}
|
|
6380
6632
|
|
|
6381
|
-
|
|
6382
|
-
|
|
6633
|
+
const config = _transportConfig.get(host);
|
|
6634
|
+
|
|
6635
|
+
// Add the matcher to the set of matchers for this host
|
|
6636
|
+
config.matchers.add(matcher);
|
|
6637
|
+
|
|
6638
|
+
// Initialize target entry if it doesn't exist
|
|
6639
|
+
if (!config.targets.has(target)) {
|
|
6640
|
+
config.targets.set(target, new Map());
|
|
6641
|
+
}
|
|
6642
|
+
|
|
6643
|
+
// Store the matcher with its removeOriginal setting for this target
|
|
6644
|
+
config.targets.get(target).set(matcher, {
|
|
6645
|
+
removeOriginal,
|
|
6646
|
+
currentAttributes: new Map()
|
|
6647
|
+
});
|
|
6648
|
+
|
|
6649
|
+
// Perform initial attribute transport
|
|
6650
|
+
_transportAttributes({ host, target, matcher, removeOriginal });
|
|
6651
|
+
|
|
6652
|
+
// Attach observer
|
|
6653
|
+
_attachObserver(host);
|
|
6654
|
+
|
|
6655
|
+
// Return cleanup function and utility functions
|
|
6656
|
+
return {
|
|
6657
|
+
cleanup: () => _cleanupTransport(host, target, matcher),
|
|
6658
|
+
getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
|
|
6659
|
+
getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
|
|
6660
|
+
}
|
|
6661
|
+
};
|
|
6662
|
+
|
|
6663
|
+
/**
|
|
6664
|
+
* Cleans up resources associated with a specific matcher and target for a host element.
|
|
6665
|
+
*
|
|
6666
|
+
* @param {HTMLElement} host - The host element
|
|
6667
|
+
* @param {HTMLElement} target - The target element
|
|
6668
|
+
* @param {Function} matcher - The matcher function
|
|
6669
|
+
* @private
|
|
6670
|
+
*/
|
|
6671
|
+
const _cleanupTransport = (host, target, matcher) => {
|
|
6672
|
+
const config = _transportConfig.get(host);
|
|
6673
|
+
if (!config) return;
|
|
6674
|
+
|
|
6675
|
+
// Remove this matcher from this target
|
|
6676
|
+
const targetMatchers = config.targets.get(target);
|
|
6677
|
+
if (targetMatchers) {
|
|
6678
|
+
targetMatchers.delete(matcher);
|
|
6679
|
+
|
|
6680
|
+
// If this target has no more matchers, remove it
|
|
6681
|
+
if (targetMatchers.size === 0) {
|
|
6682
|
+
config.targets.delete(target);
|
|
6683
|
+
}
|
|
6684
|
+
}
|
|
6685
|
+
|
|
6686
|
+
// Check if this matcher is still used by any target
|
|
6687
|
+
let matcherStillUsed = false;
|
|
6688
|
+
for (const matcherMap of config.targets.values()) {
|
|
6689
|
+
if (matcherMap.has(matcher)) {
|
|
6690
|
+
matcherStillUsed = true;
|
|
6691
|
+
break;
|
|
6692
|
+
}
|
|
6693
|
+
}
|
|
6694
|
+
|
|
6695
|
+
// If not used anymore, remove from matchers set
|
|
6696
|
+
if (!matcherStillUsed) {
|
|
6697
|
+
config.matchers.delete(matcher);
|
|
6698
|
+
}
|
|
6699
|
+
|
|
6700
|
+
// If no more targets or matchers, detach observer
|
|
6701
|
+
if (config.targets.size === 0 || config.matchers.size === 0) {
|
|
6702
|
+
_detachObserver(host);
|
|
6703
|
+
}
|
|
6704
|
+
};
|
|
6705
|
+
|
|
6706
|
+
/**
|
|
6707
|
+
* Generic function to transport attributes from a host element to a target element.
|
|
6708
|
+
*
|
|
6709
|
+
* @param {Object} params - The parameters object.
|
|
6710
|
+
* @param {HTMLElement} params.host - The host element from which to transport attributes.
|
|
6711
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6712
|
+
* @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
|
|
6713
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
|
|
6714
|
+
* @returns {void}
|
|
6715
|
+
* @private
|
|
6716
|
+
*/
|
|
6717
|
+
const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6718
|
+
// Get a list of all matching attributes on the host element and their values
|
|
6719
|
+
const matchingAttributes = host.getAttributeNames()
|
|
6720
|
+
.filter(attr => matcher(attr))
|
|
6721
|
+
.reduce((acc, attr) => {
|
|
6722
|
+
acc[attr] = host.getAttribute(attr);
|
|
6723
|
+
return acc;
|
|
6724
|
+
}, {});
|
|
6725
|
+
|
|
6726
|
+
// Move matching attributes to the target element, removing them from the host if removeOriginal is true
|
|
6727
|
+
Object.entries(matchingAttributes).forEach(([key, value]) => {
|
|
6728
|
+
_setObservedAttribute(host, target, matcher, key, value);
|
|
6729
|
+
target.setAttribute(key, value);
|
|
6730
|
+
if (removeOriginal) {
|
|
6731
|
+
host.removeAttribute(key);
|
|
6383
6732
|
}
|
|
6733
|
+
});
|
|
6734
|
+
};
|
|
6384
6735
|
|
|
6385
|
-
|
|
6736
|
+
/**
|
|
6737
|
+
* Attaches a MutationObserver to the host element to monitor attribute changes.
|
|
6738
|
+
*
|
|
6739
|
+
* @param {HTMLElement} host - The element to observe for attribute changes.
|
|
6740
|
+
* @returns {MutationObserver} The observer instance.
|
|
6741
|
+
* @private
|
|
6742
|
+
*/
|
|
6743
|
+
const _attachObserver = (host) => {
|
|
6744
|
+
// If an observer for this host already exists, return it
|
|
6745
|
+
if (_observers.has(host)) {
|
|
6746
|
+
return _observers.get(host);
|
|
6747
|
+
}
|
|
6748
|
+
|
|
6749
|
+
// Create a new MutationObserver
|
|
6750
|
+
const observer = new MutationObserver((mutations) => {
|
|
6751
|
+
const config = _transportConfig.get(host);
|
|
6752
|
+
if (!config) return;
|
|
6753
|
+
|
|
6754
|
+
// For each mutation affecting attributes
|
|
6755
|
+
mutations
|
|
6756
|
+
.filter(mutation => mutation.type === 'attributes')
|
|
6757
|
+
.forEach(mutation => {
|
|
6758
|
+
const attributeName = mutation.attributeName;
|
|
6759
|
+
|
|
6760
|
+
// Find matchers that care about this attribute
|
|
6761
|
+
for (const matcher of config.matchers) {
|
|
6762
|
+
if (matcher(attributeName)) {
|
|
6763
|
+
// For each target that uses this matcher
|
|
6764
|
+
for (const [target, matcherConfigs] of config.targets.entries()) {
|
|
6765
|
+
if (matcherConfigs.has(matcher)) {
|
|
6766
|
+
const { removeOriginal } = matcherConfigs.get(matcher);
|
|
6767
|
+
_transportAttributes({
|
|
6768
|
+
host,
|
|
6769
|
+
target,
|
|
6770
|
+
matcher,
|
|
6771
|
+
removeOriginal
|
|
6772
|
+
});
|
|
6773
|
+
}
|
|
6774
|
+
}
|
|
6775
|
+
}
|
|
6776
|
+
}
|
|
6777
|
+
});
|
|
6778
|
+
});
|
|
6779
|
+
|
|
6780
|
+
// Start observing attribute changes
|
|
6781
|
+
observer.observe(host, { attributes: true });
|
|
6782
|
+
|
|
6783
|
+
// Store the observer
|
|
6784
|
+
_observers.set(host, observer);
|
|
6785
|
+
|
|
6786
|
+
return observer;
|
|
6787
|
+
};
|
|
6788
|
+
|
|
6789
|
+
/**
|
|
6790
|
+
* Detaches and cleans up the MutationObserver for a given host element.
|
|
6791
|
+
*
|
|
6792
|
+
* @param {HTMLElement} host - The element whose observer should be detached.
|
|
6793
|
+
* @private
|
|
6794
|
+
*/
|
|
6795
|
+
const _detachObserver = (host) => {
|
|
6796
|
+
if (_observers.has(host)) {
|
|
6797
|
+
const observer = _observers.get(host);
|
|
6798
|
+
observer.disconnect();
|
|
6799
|
+
_observers.delete(host);
|
|
6386
6800
|
}
|
|
6387
|
-
|
|
6801
|
+
|
|
6802
|
+
// Clean up the transport config as well
|
|
6803
|
+
if (_transportConfig.has(host)) {
|
|
6804
|
+
_transportConfig.delete(host);
|
|
6805
|
+
}
|
|
6806
|
+
};
|
|
6388
6807
|
|
|
6389
|
-
|
|
6390
|
-
|
|
6808
|
+
/**
|
|
6809
|
+
* Gets the matcher configuration for a specific host, target, and matcher
|
|
6810
|
+
* @param {HTMLElement} host - The host element
|
|
6811
|
+
* @param {HTMLElement} target - The target element
|
|
6812
|
+
* @param {Function} matcher - The matcher function
|
|
6813
|
+
* @returns {Object|undefined} The matcher configuration if found
|
|
6814
|
+
* @private
|
|
6815
|
+
*/
|
|
6816
|
+
const _getMatcherConfig = (host, target, matcher) => {
|
|
6817
|
+
const config = _transportConfig.get(host);
|
|
6818
|
+
if (!config) return undefined;
|
|
6819
|
+
|
|
6820
|
+
const targetMatchers = config.targets.get(target);
|
|
6821
|
+
if (!targetMatchers) return undefined;
|
|
6822
|
+
|
|
6823
|
+
return targetMatchers.get(matcher);
|
|
6824
|
+
};
|
|
6391
6825
|
|
|
6392
|
-
|
|
6826
|
+
/**
|
|
6827
|
+
* Sets an observed attribute value
|
|
6828
|
+
* @param {HTMLElement} host - The host element
|
|
6829
|
+
* @param {HTMLElement} target - The target element
|
|
6830
|
+
* @param {Function} matcher - The matcher function
|
|
6831
|
+
* @param {string} key - The attribute name
|
|
6832
|
+
* @param {string} value - The attribute value
|
|
6833
|
+
* @private
|
|
6834
|
+
*/
|
|
6835
|
+
const _setObservedAttribute = (host, target, matcher, key, value) => {
|
|
6836
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6837
|
+
if (matcherConfig) {
|
|
6838
|
+
matcherConfig.currentAttributes.set(key, value);
|
|
6839
|
+
}
|
|
6840
|
+
};
|
|
6393
6841
|
|
|
6394
|
-
|
|
6842
|
+
const _getObservedAttribute = (host, target, matcher, attr) => {
|
|
6843
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6844
|
+
if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
|
|
6845
|
+
return undefined;
|
|
6846
|
+
};
|
|
6395
6847
|
|
|
6396
|
-
|
|
6848
|
+
const _getObservedAttributes = (host, target, matcher) => {
|
|
6849
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6850
|
+
if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
|
|
6851
|
+
return [];
|
|
6852
|
+
};
|
|
6397
6853
|
|
|
6398
|
-
|
|
6854
|
+
const _matchers = {
|
|
6855
|
+
'aria-': attr => attr.startsWith('aria-'),
|
|
6856
|
+
'role': attr => attr.match(/^role$/)
|
|
6857
|
+
};
|
|
6858
|
+
|
|
6859
|
+
const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
|
|
6860
|
+
return transportAttributes({
|
|
6861
|
+
host,
|
|
6862
|
+
target,
|
|
6863
|
+
match: attr => {
|
|
6864
|
+
for (const key in _matchers) {
|
|
6865
|
+
if (_matchers[key](attr)) return true;
|
|
6866
|
+
}
|
|
6867
|
+
return false;
|
|
6868
|
+
},
|
|
6869
|
+
removeOriginal
|
|
6870
|
+
});
|
|
6871
|
+
};
|
|
6872
|
+
|
|
6873
|
+
class AuroElement extends i$2 {
|
|
6399
6874
|
|
|
6400
6875
|
/**
|
|
6401
|
-
*
|
|
6402
|
-
* @
|
|
6403
|
-
* @
|
|
6404
|
-
* @
|
|
6876
|
+
* @type {Object} return object from transportAttributes via a11yUtilities
|
|
6877
|
+
* @property {Function} cleanup - Function to clean up the attribute watcher.
|
|
6878
|
+
* @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
|
|
6879
|
+
* @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
|
|
6880
|
+
* @private
|
|
6405
6881
|
*/
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6882
|
+
attributeWatcher;
|
|
6883
|
+
|
|
6884
|
+
static get properties() {
|
|
6885
|
+
return {
|
|
6886
|
+
|
|
6887
|
+
/**
|
|
6888
|
+
* Defines the layout of an element.
|
|
6889
|
+
* @default {'default'}
|
|
6890
|
+
*/
|
|
6891
|
+
layout: {
|
|
6892
|
+
type: String,
|
|
6893
|
+
attribute: "layout",
|
|
6894
|
+
reflect: true
|
|
6895
|
+
},
|
|
6896
|
+
|
|
6897
|
+
/**
|
|
6898
|
+
* Defines the shape of an element.
|
|
6899
|
+
* @property {'default', 'rounded', 'pill', 'circle'}
|
|
6900
|
+
* @default {'default'}
|
|
6901
|
+
*/
|
|
6902
|
+
shape: {
|
|
6903
|
+
type: String,
|
|
6904
|
+
attribute: "shape",
|
|
6905
|
+
reflect: true
|
|
6906
|
+
},
|
|
6907
|
+
|
|
6908
|
+
/**
|
|
6909
|
+
* Defines the size of an element.
|
|
6910
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'}
|
|
6911
|
+
* @default {'md'}
|
|
6912
|
+
*/
|
|
6913
|
+
size: {
|
|
6914
|
+
type: String,
|
|
6915
|
+
attribute: "size",
|
|
6916
|
+
reflect: true
|
|
6917
|
+
},
|
|
6918
|
+
|
|
6919
|
+
/**
|
|
6920
|
+
* This Boolean attribute lets you specify that the element should be rendered in dark mode.
|
|
6921
|
+
* @default {false}
|
|
6922
|
+
*/
|
|
6923
|
+
onDark: {
|
|
6924
|
+
type: Boolean,
|
|
6925
|
+
attribute: "ondark",
|
|
6926
|
+
reflect: true
|
|
6927
|
+
},
|
|
6928
|
+
|
|
6929
|
+
/**
|
|
6930
|
+
* A reference to the wrapper element in the shadow DOM.
|
|
6931
|
+
* This is used to apply layout and shape classes dynamically.
|
|
6932
|
+
* @type {HTMLElement|null}
|
|
6933
|
+
* @default {null}
|
|
6934
|
+
* @private
|
|
6935
|
+
*/
|
|
6936
|
+
wrapper: {
|
|
6937
|
+
attribute: false,
|
|
6938
|
+
reflect: false
|
|
6939
|
+
}
|
|
6940
|
+
};
|
|
6941
|
+
}
|
|
6942
|
+
|
|
6943
|
+
|
|
6944
|
+
|
|
6945
|
+
resetShapeClasses() {
|
|
6946
|
+
if (this.shape && this.size) {
|
|
6947
|
+
|
|
6948
|
+
if (this.wrapper) {
|
|
6949
|
+
this.wrapper.classList.forEach((className) => {
|
|
6950
|
+
if (className.startsWith('shape-')) {
|
|
6951
|
+
this.wrapper.classList.remove(className);
|
|
6952
|
+
}
|
|
6953
|
+
});
|
|
6954
|
+
|
|
6955
|
+
this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
6956
|
+
}
|
|
6409
6957
|
}
|
|
6410
6958
|
}
|
|
6411
6959
|
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6425
|
-
) {
|
|
6426
|
-
return __Closest(base);
|
|
6960
|
+
resetLayoutClasses() {
|
|
6961
|
+
if (this.layout) {
|
|
6962
|
+
if (this.wrapper) {
|
|
6963
|
+
this.wrapper.classList.forEach((className) => {
|
|
6964
|
+
if (className.startsWith('layout-')) {
|
|
6965
|
+
this.wrapper.classList.remove(className);
|
|
6966
|
+
}
|
|
6967
|
+
});
|
|
6968
|
+
|
|
6969
|
+
this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
6970
|
+
}
|
|
6971
|
+
}
|
|
6427
6972
|
}
|
|
6428
|
-
/* eslint-enable jsdoc/require-param */
|
|
6429
6973
|
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
* @returns {void}
|
|
6435
|
-
*/
|
|
6436
|
-
handleComponentTagRename(elem, tagName) {
|
|
6437
|
-
const tag = tagName.toLowerCase();
|
|
6438
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
6974
|
+
updateComponentArchitecture() {
|
|
6975
|
+
this.resetLayoutClasses();
|
|
6976
|
+
this.resetShapeClasses();
|
|
6977
|
+
}
|
|
6439
6978
|
|
|
6440
|
-
|
|
6441
|
-
|
|
6979
|
+
updated(changedProperties) {
|
|
6980
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
6981
|
+
this.updateComponentArchitecture();
|
|
6442
6982
|
}
|
|
6443
6983
|
}
|
|
6444
6984
|
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
* @param {Object} elem - The element to validate.
|
|
6448
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
6449
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6450
|
-
*/
|
|
6451
|
-
elementMatch(elem, tagName) {
|
|
6452
|
-
const tag = tagName.toLowerCase();
|
|
6453
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
6985
|
+
firstUpdated() {
|
|
6986
|
+
super.firstUpdated();
|
|
6454
6987
|
|
|
6455
|
-
|
|
6988
|
+
// Set a reference to the wrapper element in the shadow DOM
|
|
6989
|
+
this.wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
6990
|
+
|
|
6991
|
+
// Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
|
|
6992
|
+
this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
|
|
6456
6993
|
}
|
|
6457
|
-
};
|
|
6458
6994
|
|
|
6459
|
-
|
|
6995
|
+
disconnectedCallback() {
|
|
6996
|
+
super.disconnectedCallback();
|
|
6997
|
+
|
|
6998
|
+
// Cleanup the ARIA observer if it exists
|
|
6999
|
+
if (this.attributeWatcher) {
|
|
7000
|
+
this.attributeWatcher.cleanup();
|
|
7001
|
+
this.attributeWatcher = null;
|
|
7002
|
+
}
|
|
7003
|
+
}
|
|
7004
|
+
|
|
7005
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
7006
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
7007
|
+
render() {
|
|
7008
|
+
try {
|
|
7009
|
+
return this.renderLayout();
|
|
7010
|
+
} catch (error) {
|
|
7011
|
+
// failed to get the defined layout
|
|
7012
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
7013
|
+
|
|
7014
|
+
// fallback to the default layout
|
|
7015
|
+
return this.getLayout('default');
|
|
7016
|
+
}
|
|
7017
|
+
}
|
|
7018
|
+
}
|
|
7019
|
+
|
|
7020
|
+
var styleCss$2 = i$5`: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}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3)}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([size=xs][shape=rounded]) ::slotted(auro-icon),:host([size=xs][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=xs][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill]) ::slotted(auro-icon),:host([size=xs][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=pill][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left]) ::slotted(auro-icon),:host([size=xs][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right]) ::slotted(auro-icon),:host([size=xs][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle]) ::slotted(auro-icon),:host([size=xs][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xs][shape=circle][variant=primary]) .auro-button:focus,:host([size=xs][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=circle][variant=secondary]) .auro-button:focus,:host([size=xs][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=flat]) .auro-button:focus,:host([size=xs][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=ghost]) .auro-button:focus,:host([size=xs][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square]) ::slotted(auro-icon),:host([size=xs][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xs][shape=square][variant=primary]) .auro-button:focus,:host([size=xs][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=square][variant=secondary]) .auro-button:focus,:host([size=xs][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=flat]) .auro-button:focus,:host([size=xs][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=ghost]) .auro-button:focus,:host([size=xs][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded]) ::slotted(auro-icon),:host([size=sm][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=sm][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill]) ::slotted(auro-icon),:host([size=sm][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=pill][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left]) ::slotted(auro-icon),:host([size=sm][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right]) ::slotted(auro-icon),:host([size=sm][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle]) ::slotted(auro-icon),:host([size=sm][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=circle][variant=primary]) .auro-button:focus,:host([size=sm][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=circle][variant=secondary]) .auro-button:focus,:host([size=sm][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=flat]) .auro-button:focus,:host([size=sm][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=ghost]) .auro-button:focus,:host([size=sm][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square]) ::slotted(auro-icon),:host([size=sm][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=square][variant=primary]) .auro-button:focus,:host([size=sm][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=square][variant=secondary]) .auro-button:focus,:host([size=sm][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=flat]) .auro-button:focus,:host([size=sm][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=ghost]) .auro-button:focus,:host([size=sm][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded]) ::slotted(auro-icon),:host([size=md][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=rounded][variant=primary]) .auro-button:focus,:host([size=md][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=md][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=md][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=md][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=md][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill]) ::slotted(auro-icon),:host([size=md][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill][variant=primary]) .auro-button:focus,:host([size=md][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=pill][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left]) ::slotted(auro-icon),:host([size=md][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right]) ::slotted(auro-icon),:host([size=md][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle]) ::slotted(auro-icon),:host([size=md][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=circle][variant=primary]) .auro-button:focus,:host([size=md][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=md][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=circle][variant=secondary]) .auro-button:focus,:host([size=md][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=md][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=flat]) .auro-button:focus,:host([size=md][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=ghost]) .auro-button:focus,:host([size=md][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square]) ::slotted(auro-icon),:host([size=md][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=square][variant=primary]) .auro-button:focus,:host([size=md][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=primary]) .auro-button:focus:after,:host([size=md][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=square][variant=secondary]) .auro-button:focus,:host([size=md][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=tertiary]) .auro-button:focus,:host([size=md][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=flat]) .auro-button:focus,:host([size=md][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=ghost]) .auro-button:focus,:host([size=md][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded]) ::slotted(auro-icon),:host([size=lg][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=lg][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill]) ::slotted(auro-icon),:host([size=lg][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=pill][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left]) ::slotted(auro-icon),:host([size=lg][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right]) ::slotted(auro-icon),:host([size=lg][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle]) ::slotted(auro-icon),:host([size=lg][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}:host([size=lg][shape=circle][variant=primary]) .auro-button:focus,:host([size=lg][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4.33px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=circle][variant=secondary]) .auro-button:focus,:host([size=lg][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=flat]) .auro-button:focus,:host([size=lg][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=ghost]) .auro-button:focus,:host([size=lg][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square]) ::slotted(auro-icon),:host([size=lg][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}:host([size=lg][shape=square][variant=primary]) .auro-button:focus,:host([size=lg][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4.33px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=square][variant=secondary]) .auro-button:focus,:host([size=lg][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=flat]) .auro-button:focus,:host([size=lg][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=ghost]) .auro-button:focus,:host([size=lg][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded]) ::slotted(auro-icon),:host([size=xl][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=xl][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill]) ::slotted(auro-icon),:host([size=xl][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=pill][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left]) ::slotted(auro-icon),:host([size=xl][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right]) ::slotted(auro-icon),:host([size=xl][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle]) ::slotted(auro-icon),:host([size=xl][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem))}:host([size=xl][shape=circle][variant=primary]) .auro-button:focus,:host([size=xl][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=circle][variant=secondary]) .auro-button:focus,:host([size=xl][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=flat]) .auro-button:focus,:host([size=xl][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=ghost]) .auro-button:focus,:host([size=xl][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square]) ::slotted(auro-icon),:host([size=xl][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem))}:host([size=xl][shape=square][variant=primary]) .auro-button:focus,:host([size=xl][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=square][variant=secondary]) .auro-button:focus,:host([size=xl][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=flat]) .auro-button:focus,:host([size=xl][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=ghost]) .auro-button:focus,:host([size=xl][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs]) .inset{padding-inline:var(--ds-size-150, 0.75rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-150, 0.75rem)*2)}:host([size=sm]) .inset{padding-inline:var(--ds-size-200, 1rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-200, 1rem)*2)}:host([size=md]) .inset{padding-inline:var(--ds-size-300, 1.5rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-300, 1.5rem)*2)}:host([size=lg]) .inset{padding-inline:var(--ds-size-400, 2rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-400, 2rem)*2)}:host([size=xl]) .inset{padding-inline:var(--ds-size-500, 2.5rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-500, 2.5rem)*2)}:host([shape=circle]) ::slotted(:not(auro-icon):not([auro-icon])){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([shape=square]) ::slotted(:not(auro-icon):not([auro-icon])){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([variant=flat]){display:inline-block}::slotted(svg){vertical-align:middle}slot{pointer-events:none}:host{display:inline-block;overflow:hidden}.auro-button{position:relative;cursor:pointer;padding:0 var(--ds-size-300, 1.5rem);padding-inline:unset;padding-block:unset;box-sizing:content-box;overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;outline:none;display: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;transition:padding 300ms ease-out}.auro-button:focus,.auro-button:focus-visible{outline:none}.auro-button:active{transform:scale(0.95)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}`;
|
|
7021
|
+
|
|
7022
|
+
var colorCss$2 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color, #ffffff)}.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{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color: var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-secondary-text, #01426a)}.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-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color: var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus,.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-tertiary-text, #01426a)}.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-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color: transparent}.auro-button:not([ondark])[variant=tertiary]:focus,.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=ghost]{--ds-auro-button-container-color: transparent;--ds-auro-button-container-image: transparent;--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-ghost-text, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-ghost-text, #01426a)}.auro-button:not([ondark])[variant=ghost]:active:not(:disabled),.auro-button:not([ondark])[variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image: var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color: transparent}.auro-button:not([ondark])[variant=ghost]:focus,.auro-button:not([ondark])[variant=ghost]:focus-visible{border-color:transparent;--ds-auro-button-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=ghost]:disabled{--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:focus,.auro-button:not([ondark])[variant=flat]:focus-visible{--ds-auro-button-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]{--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color: var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus,.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: transparent;--ds-auro-button-container-image: transparent;--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color: var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus,.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus,.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=ghost]{--ds-auro-button-container-color: transparent;--ds-auro-button-container-image: transparent;--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-ghost-text-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-ghost-text-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:active:not(:disabled),.auro-button[ondark][variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image: var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color: transparent}.auro-button[ondark][variant=ghost]:focus,.auro-button[ondark][variant=ghost]:focus-visible{border-color:transparent;--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:disabled{--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:focus,.auro-button[ondark][variant=flat]:focus-visible{--ds-auro-button-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
|
|
6460
7023
|
|
|
6461
|
-
var
|
|
7024
|
+
var tokensCss$2 = i$5`:host(:not([onDark])){--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color: var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color: transparent}:host([onDark]){--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-text-color: var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-tap-color: transparent}`;
|
|
6462
7025
|
|
|
6463
|
-
var tokensCss$2 = i$2`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
7026
|
+
var shapeSize = i$5`.shape-rounded-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-rounded-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-circle-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:50%;min-width:72px;max-width:72px;padding:0}.shape-circle-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-circle-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-circle-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-square-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:6px;min-width:72px;max-width:72px;padding:0}.shape-square-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-square-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-square-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:28px}.shape-pill-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-pill-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-left-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:28px 0 0 28px}.shape-pill-left-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-pill-left-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-left-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-right-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:0 28px 28px 0}.shape-pill-right-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-pill-right-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-right-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-circle-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:50%;min-width:56px;max-width:56px;padding:0}.shape-circle-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-circle-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-circle-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-square-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:6px;min-width:56px;max-width:56px;padding:0}.shape-square-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-square-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-square-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-rounded-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-rounded-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-rounded-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:24px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:24px 0 0 24px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:0 24px 24px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-circle-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:50%;min-width:48px;max-width:48px;padding:0}.shape-circle-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-circle-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-circle-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-square-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:6px;min-width:48px;max-width:48px;padding:0}.shape-square-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-square-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-square-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-rounded-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-rounded-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-rounded-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:18px}.shape-pill-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-pill-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-pill-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-left-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:18px 0 0 18px}.shape-pill-left-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-pill-left-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-pill-left-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-right-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:0 18px 18px 0}.shape-pill-right-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-pill-right-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-pill-right-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-circle-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:50%;min-width:36px;max-width:36px;padding:0}.shape-circle-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-circle-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-circle-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-square-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:6px;min-width:36px;max-width:36px;padding:0}.shape-square-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-square-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-square-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-rounded-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:4px}.shape-rounded-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-rounded-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-rounded-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:12px}.shape-pill-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-pill-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-pill-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-left-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:12px 0 0 12px}.shape-pill-left-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-pill-left-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-pill-left-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-right-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:0 12px 12px 0}.shape-pill-right-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-pill-right-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-pill-right-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-circle-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:50%;min-width:24px;max-width:24px;padding:0}.shape-circle-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-circle-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-circle-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-square-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:6px;min-width:24px;max-width:24px;padding:0}.shape-square-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-square-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-square-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}`;
|
|
6464
7027
|
|
|
6465
7028
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6466
7029
|
// See LICENSE in the project root for license information.
|
|
@@ -6532,17 +7095,17 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
6532
7095
|
}
|
|
6533
7096
|
};
|
|
6534
7097
|
|
|
6535
|
-
var styleCss$1 = i$2`: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}}`;
|
|
7098
|
+
var styleCss$1 = i$5`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3)}: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}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}`;
|
|
6536
7099
|
|
|
6537
|
-
var colorCss$1 = i$
|
|
7100
|
+
var colorCss$1 = i$5`: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-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
|
|
6538
7101
|
|
|
6539
|
-
var tokensCss$1 = i$
|
|
7102
|
+
var tokensCss$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
6540
7103
|
|
|
6541
7104
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6542
7105
|
// See LICENSE in the project root for license information.
|
|
6543
7106
|
|
|
6544
7107
|
|
|
6545
|
-
class AuroLoader extends i {
|
|
7108
|
+
class AuroLoader extends i$2 {
|
|
6546
7109
|
constructor() {
|
|
6547
7110
|
super();
|
|
6548
7111
|
|
|
@@ -6612,9 +7175,9 @@ class AuroLoader extends i {
|
|
|
6612
7175
|
|
|
6613
7176
|
static get styles() {
|
|
6614
7177
|
return [
|
|
6615
|
-
i$
|
|
6616
|
-
i$
|
|
6617
|
-
i$
|
|
7178
|
+
i$5`${styleCss$1}`,
|
|
7179
|
+
i$5`${colorCss$1}`,
|
|
7180
|
+
i$5`${tokensCss$1}`
|
|
6618
7181
|
];
|
|
6619
7182
|
}
|
|
6620
7183
|
|
|
@@ -6665,7 +7228,7 @@ class AuroLoader extends i {
|
|
|
6665
7228
|
<span part="element" class="loader node-${idx}"></span>
|
|
6666
7229
|
`)}
|
|
6667
7230
|
|
|
6668
|
-
<div class="no-animation">Loading...</div>
|
|
7231
|
+
<div class="no-animation body-default">Loading...</div>
|
|
6669
7232
|
|
|
6670
7233
|
${this.ringworm ? x`
|
|
6671
7234
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
@@ -6677,46 +7240,32 @@ class AuroLoader extends i {
|
|
|
6677
7240
|
}
|
|
6678
7241
|
}
|
|
6679
7242
|
|
|
6680
|
-
var loaderVersion = '5.
|
|
7243
|
+
var loaderVersion = '5.1.0';
|
|
6681
7244
|
|
|
6682
|
-
/* eslint-disable max-lines */
|
|
6683
7245
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6684
7246
|
// See LICENSE in the project root for license information.
|
|
6685
7247
|
|
|
6686
7248
|
|
|
6687
7249
|
/**
|
|
6688
|
-
* @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
|
|
6689
|
-
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
6690
|
-
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
6691
|
-
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
6692
|
-
* @attr {String} loadingText - Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
|
|
6693
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
6694
|
-
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
6695
|
-
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
6696
|
-
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
6697
|
-
* @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
6698
|
-
* @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
|
|
6699
|
-
* @attr {Boolean} ariaexpanded - Populates the `aria-expanded` attribute that indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. This is an optional attribute for buttons.
|
|
6700
|
-
* @attr {String} id - Set the unique ID of an element.
|
|
6701
|
-
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
6702
|
-
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
6703
|
-
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
6704
|
-
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
6705
|
-
* @attr {Boolean} secondary - DEPRECATED
|
|
6706
|
-
* @attr {Boolean} tertiary - DEPRECATED
|
|
6707
|
-
* @prop {Boolean} ready - When false the component API should not be called.
|
|
6708
|
-
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
6709
7250
|
* @slot - Default slot for the text of the button.
|
|
6710
|
-
* @slot icon - Slot to provide auro-icon for the button.
|
|
6711
7251
|
* @csspart button - Apply CSS to HTML5 button.
|
|
6712
7252
|
* @csspart loader - Apply CSS to auro-loader.
|
|
6713
7253
|
* @csspart text - Apply CSS to text slot.
|
|
6714
7254
|
* @csspart icon - Apply CSS to icon slot.
|
|
6715
7255
|
*/
|
|
6716
7256
|
|
|
6717
|
-
|
|
7257
|
+
const ICON_ONLY_SHAPES = ['circle', 'square'];
|
|
6718
7258
|
|
|
6719
|
-
|
|
7259
|
+
/**
|
|
7260
|
+
* AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
|
|
7261
|
+
* It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
|
|
7262
|
+
* @property {'default', 'rounded', 'pill', 'circle', 'square'} shape - Defines the shape of the button.
|
|
7263
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
|
|
7264
|
+
* @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
|
|
7265
|
+
* @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
|
|
7266
|
+
* @property {boolean} onDark - Indicates if the button is rendered in dark mode.
|
|
7267
|
+
*/
|
|
7268
|
+
class AuroButton extends AuroElement {
|
|
6720
7269
|
|
|
6721
7270
|
/**
|
|
6722
7271
|
* Enables form association for this element.
|
|
@@ -6729,19 +7278,15 @@ class AuroButton extends i {
|
|
|
6729
7278
|
|
|
6730
7279
|
constructor() {
|
|
6731
7280
|
super();
|
|
6732
|
-
|
|
6733
7281
|
this.autofocus = false;
|
|
6734
7282
|
this.disabled = false;
|
|
6735
|
-
this.iconOnly = false;
|
|
6736
7283
|
this.loading = false;
|
|
7284
|
+
this.size = "md";
|
|
7285
|
+
this.shape = "rounded";
|
|
6737
7286
|
this.onDark = false;
|
|
6738
|
-
this.ready = false;
|
|
6739
|
-
this.secondary = false;
|
|
6740
|
-
this.tertiary = false;
|
|
6741
|
-
this.rounded = false;
|
|
6742
|
-
this.slim = false;
|
|
6743
7287
|
this.fluid = false;
|
|
6744
7288
|
this.loadingText = this.loadingText || 'Loading...';
|
|
7289
|
+
this.variant = 'primary';
|
|
6745
7290
|
|
|
6746
7291
|
// Support for HTML5 forms
|
|
6747
7292
|
if (typeof this.attachInternals === 'function') {
|
|
@@ -6762,90 +7307,157 @@ class AuroButton extends i {
|
|
|
6762
7307
|
* @private
|
|
6763
7308
|
*/
|
|
6764
7309
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
7310
|
+
|
|
7311
|
+
/**
|
|
7312
|
+
* @private
|
|
7313
|
+
*/
|
|
7314
|
+
this.buttonHref = undefined;
|
|
7315
|
+
|
|
7316
|
+
/**
|
|
7317
|
+
* @private
|
|
7318
|
+
*/
|
|
7319
|
+
this.buttonTarget = undefined;
|
|
7320
|
+
|
|
7321
|
+
/**
|
|
7322
|
+
* @private
|
|
7323
|
+
*/
|
|
7324
|
+
this.buttonRel = undefined;
|
|
6765
7325
|
}
|
|
6766
7326
|
|
|
6767
7327
|
static get styles() {
|
|
6768
7328
|
return [
|
|
6769
7329
|
tokensCss$2,
|
|
6770
7330
|
styleCss$2,
|
|
6771
|
-
colorCss$2
|
|
7331
|
+
colorCss$2,
|
|
7332
|
+
shapeSize
|
|
6772
7333
|
];
|
|
6773
7334
|
}
|
|
6774
7335
|
|
|
6775
7336
|
static get properties() {
|
|
6776
7337
|
return {
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
secondary: {
|
|
7338
|
+
|
|
7339
|
+
...super.properties,
|
|
7340
|
+
|
|
7341
|
+
/**
|
|
7342
|
+
* Override layout since it isn't used in this component.
|
|
7343
|
+
* @private
|
|
7344
|
+
*/
|
|
7345
|
+
layout: {
|
|
6786
7346
|
type: Boolean,
|
|
6787
|
-
|
|
7347
|
+
attribute: false,
|
|
7348
|
+
reflect: false
|
|
6788
7349
|
},
|
|
6789
|
-
|
|
7350
|
+
|
|
7351
|
+
/**
|
|
7352
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
7353
|
+
*/
|
|
7354
|
+
autofocus: {
|
|
6790
7355
|
type: Boolean,
|
|
6791
7356
|
reflect: true
|
|
6792
7357
|
},
|
|
6793
|
-
|
|
7358
|
+
|
|
7359
|
+
/**
|
|
7360
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
7361
|
+
*/
|
|
7362
|
+
disabled: {
|
|
6794
7363
|
type: Boolean,
|
|
6795
7364
|
reflect: true
|
|
6796
7365
|
},
|
|
6797
|
-
|
|
7366
|
+
|
|
7367
|
+
/**
|
|
7368
|
+
* Alters the shape of the button to be full width of its parent container.
|
|
7369
|
+
*/
|
|
7370
|
+
fluid: {
|
|
6798
7371
|
type: Boolean,
|
|
6799
7372
|
reflect: true
|
|
6800
7373
|
},
|
|
6801
|
-
|
|
7374
|
+
|
|
7375
|
+
/**
|
|
7376
|
+
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
7377
|
+
*/
|
|
7378
|
+
loading: {
|
|
6802
7379
|
type: Boolean,
|
|
6803
7380
|
reflect: true
|
|
6804
7381
|
},
|
|
6805
|
-
|
|
7382
|
+
|
|
7383
|
+
/**
|
|
7384
|
+
* Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
|
|
7385
|
+
*/
|
|
7386
|
+
loadingText: {
|
|
6806
7387
|
type: String
|
|
6807
7388
|
},
|
|
6808
|
-
|
|
6809
|
-
|
|
7389
|
+
|
|
7390
|
+
/**
|
|
7391
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7392
|
+
*/
|
|
7393
|
+
tIndex: {
|
|
7394
|
+
type: String,
|
|
6810
7395
|
reflect: true
|
|
6811
7396
|
},
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
7397
|
+
|
|
7398
|
+
/**
|
|
7399
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7400
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
7401
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`.
|
|
7402
|
+
*/
|
|
7403
|
+
tabindex: {
|
|
7404
|
+
type: String,
|
|
7405
|
+
reflect: false
|
|
6815
7406
|
},
|
|
6816
|
-
|
|
6817
|
-
|
|
7407
|
+
|
|
7408
|
+
/**
|
|
7409
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
7410
|
+
*/
|
|
7411
|
+
title: {
|
|
7412
|
+
type: String,
|
|
6818
7413
|
reflect: true
|
|
6819
7414
|
},
|
|
6820
|
-
|
|
7415
|
+
|
|
7416
|
+
/**
|
|
7417
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
7418
|
+
*/
|
|
7419
|
+
type: {
|
|
6821
7420
|
type: String,
|
|
6822
7421
|
reflect: true
|
|
6823
7422
|
},
|
|
6824
|
-
|
|
7423
|
+
|
|
7424
|
+
/**
|
|
7425
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
7426
|
+
*/
|
|
7427
|
+
value: {
|
|
6825
7428
|
type: String,
|
|
6826
7429
|
reflect: true
|
|
6827
7430
|
},
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
7431
|
+
|
|
7432
|
+
/**
|
|
7433
|
+
* Sets button variant option.
|
|
7434
|
+
* @default primary
|
|
7435
|
+
*/
|
|
7436
|
+
variant: {
|
|
6833
7437
|
type: String,
|
|
6834
7438
|
reflect: true
|
|
6835
7439
|
},
|
|
6836
|
-
|
|
7440
|
+
|
|
7441
|
+
/**
|
|
7442
|
+
* @private
|
|
7443
|
+
*/
|
|
7444
|
+
buttonHref: {
|
|
6837
7445
|
type: String,
|
|
6838
|
-
reflect: true
|
|
6839
7446
|
},
|
|
6840
|
-
|
|
7447
|
+
|
|
7448
|
+
/**
|
|
7449
|
+
* @private
|
|
7450
|
+
*/
|
|
7451
|
+
buttonTarget: {
|
|
6841
7452
|
type: String,
|
|
6842
|
-
reflect: true
|
|
6843
7453
|
},
|
|
6844
|
-
|
|
7454
|
+
|
|
7455
|
+
/**
|
|
7456
|
+
* @private
|
|
7457
|
+
*/
|
|
7458
|
+
buttonRel: {
|
|
6845
7459
|
type: String,
|
|
6846
|
-
reflect: true
|
|
6847
7460
|
},
|
|
6848
|
-
ready: { type: Boolean },
|
|
6849
7461
|
};
|
|
6850
7462
|
}
|
|
6851
7463
|
|
|
@@ -6858,7 +7470,7 @@ class AuroButton extends i {
|
|
|
6858
7470
|
*
|
|
6859
7471
|
*/
|
|
6860
7472
|
static register(name = "auro-button") {
|
|
6861
|
-
AuroLibraryRuntimeUtils$
|
|
7473
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
6862
7474
|
}
|
|
6863
7475
|
|
|
6864
7476
|
/**
|
|
@@ -6871,107 +7483,174 @@ class AuroButton extends i {
|
|
|
6871
7483
|
}
|
|
6872
7484
|
|
|
6873
7485
|
/**
|
|
6874
|
-
*
|
|
7486
|
+
* Submits the form that this button is associated with.
|
|
6875
7487
|
* @private
|
|
6876
7488
|
* @returns {void}
|
|
6877
7489
|
*/
|
|
6878
|
-
|
|
6879
|
-
this.
|
|
7490
|
+
surfaceSubmitEvent() {
|
|
7491
|
+
if (this.form) {
|
|
7492
|
+
this.form.requestSubmit();
|
|
7493
|
+
}
|
|
7494
|
+
}
|
|
6880
7495
|
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
7496
|
+
/**
|
|
7497
|
+
* Returns the form element that this button is associated with.
|
|
7498
|
+
* @private
|
|
7499
|
+
* @returns {HTMLFormElement | null}
|
|
7500
|
+
*/
|
|
7501
|
+
get form() {
|
|
7502
|
+
return this.internals ? this.internals.form : null;
|
|
6886
7503
|
}
|
|
6887
7504
|
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
7505
|
+
/**
|
|
7506
|
+
* @private
|
|
7507
|
+
* @returns {Boolean}
|
|
7508
|
+
*/
|
|
7509
|
+
get showText() {
|
|
7510
|
+
return !ICON_ONLY_SHAPES.includes(this.shape);
|
|
7511
|
+
}
|
|
6893
7512
|
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
7513
|
+
/**
|
|
7514
|
+
* Returns the current value of the projected `aria-label` attribute or undefined if not set.
|
|
7515
|
+
* @returns {string | undefined}
|
|
7516
|
+
* @private
|
|
7517
|
+
*/
|
|
7518
|
+
get currentAriaLabel() {
|
|
7519
|
+
if (!this.attributeWatcher) return undefined;
|
|
7520
|
+
|
|
7521
|
+
const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
|
|
7522
|
+
return ariaLabel || undefined;
|
|
6897
7523
|
}
|
|
6898
7524
|
|
|
6899
|
-
|
|
6900
|
-
|
|
7525
|
+
/**
|
|
7526
|
+
* Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
|
|
7527
|
+
* @returns {string | undefined}
|
|
7528
|
+
* @private
|
|
7529
|
+
*/
|
|
7530
|
+
get currentAriaLabelledBy() {
|
|
7531
|
+
if (!this.attributeWatcher) return undefined;
|
|
7532
|
+
|
|
7533
|
+
const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
|
|
7534
|
+
return ariaLabelledBy || undefined;
|
|
6901
7535
|
}
|
|
6902
7536
|
|
|
6903
7537
|
/**
|
|
6904
|
-
*
|
|
7538
|
+
* Whether or not the button is set to an icon-only shape.
|
|
7539
|
+
* @returns {boolean} - True if the button is icon-only, false otherwise.
|
|
6905
7540
|
* @private
|
|
6906
|
-
* @returns {void}
|
|
6907
7541
|
*/
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
this.form.requestSubmit();
|
|
6911
|
-
}
|
|
7542
|
+
get iconOnly() {
|
|
7543
|
+
return ICON_ONLY_SHAPES.includes(this.shape);
|
|
6912
7544
|
}
|
|
6913
7545
|
|
|
6914
7546
|
/**
|
|
6915
|
-
*
|
|
7547
|
+
* Gets a class name for the font size based on the button's size and shape.
|
|
7548
|
+
* @returns {string} - The font size class name.
|
|
6916
7549
|
* @private
|
|
6917
|
-
* @returns {HTMLFormElement|null}
|
|
6918
7550
|
*/
|
|
6919
|
-
|
|
6920
|
-
|
|
7551
|
+
getFontSize() {
|
|
7552
|
+
|
|
7553
|
+
// Size map for standard buttons
|
|
7554
|
+
const standardButtonSizeMap = {
|
|
7555
|
+
xs: 'body-xs',
|
|
7556
|
+
sm: 'body-sm',
|
|
7557
|
+
md: 'body-default',
|
|
7558
|
+
lg: 'body-lg',
|
|
7559
|
+
xl: 'body-lg'
|
|
7560
|
+
};
|
|
7561
|
+
|
|
7562
|
+
// Size map for icon-only buttons
|
|
7563
|
+
const iconOnlyButtonSizeMap = {
|
|
7564
|
+
xs: 'heading-xs',
|
|
7565
|
+
sm: 'heading-sm',
|
|
7566
|
+
md: 'heading-sm',
|
|
7567
|
+
lg: 'heading-md',
|
|
7568
|
+
xl: 'heading-lg'
|
|
7569
|
+
};
|
|
7570
|
+
|
|
7571
|
+
// Determine which map to use based on the shape
|
|
7572
|
+
const sizeMap = this.iconOnly ? iconOnlyButtonSizeMap : standardButtonSizeMap;
|
|
7573
|
+
|
|
7574
|
+
// Return the font size based on the button size and shape
|
|
7575
|
+
return sizeMap[this.size] || 'body-default';
|
|
6921
7576
|
}
|
|
6922
7577
|
|
|
6923
|
-
|
|
7578
|
+
/**
|
|
7579
|
+
* Renders the default layout for the button.
|
|
7580
|
+
* @returns {TemplateResult}
|
|
7581
|
+
* @private
|
|
7582
|
+
*/
|
|
7583
|
+
renderLayoutDefault() {
|
|
7584
|
+
|
|
7585
|
+
const fontSize = this.getFontSize();
|
|
7586
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
7587
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
7588
|
+
|
|
6924
7589
|
const classes = {
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
'
|
|
7590
|
+
"auro-button": true,
|
|
7591
|
+
"inset": this.showText,
|
|
7592
|
+
wrapper: true,
|
|
7593
|
+
loading: this.loading,
|
|
7594
|
+
[`${fontSize}`]: true,
|
|
7595
|
+
|
|
7596
|
+
// These remove the default borders so we can handle focus borders ourselves
|
|
7597
|
+
'simple': !['secondary'].includes(this.variant),
|
|
7598
|
+
'thin': ['secondary'].includes(this.variant),
|
|
7599
|
+
};
|
|
7600
|
+
|
|
7601
|
+
const contentClasses = {
|
|
7602
|
+
"contentWrapper": true,
|
|
7603
|
+
"util_displayHiddenVisually": this.loading
|
|
6933
7604
|
};
|
|
6934
7605
|
|
|
6935
|
-
return u$
|
|
6936
|
-
|
|
6937
|
-
part="
|
|
6938
|
-
aria-label="${o
|
|
6939
|
-
aria-labelledby="${o
|
|
6940
|
-
|
|
7606
|
+
return u$2`
|
|
7607
|
+
<${tag}
|
|
7608
|
+
part="${part}"
|
|
7609
|
+
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7610
|
+
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7611
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
6941
7612
|
?autofocus="${this.autofocus}"
|
|
6942
|
-
class
|
|
7613
|
+
class=${e(classes)}
|
|
6943
7614
|
?disabled="${this.disabled || this.loading}"
|
|
6944
7615
|
?onDark="${this.onDark}"
|
|
6945
|
-
title="${o
|
|
6946
|
-
name="${o
|
|
6947
|
-
type="${o
|
|
6948
|
-
variant="${o
|
|
6949
|
-
.value="${o
|
|
7616
|
+
title="${o(this.title ? this.title : undefined)}"
|
|
7617
|
+
name="${o(this.name ? this.name : undefined)}"
|
|
7618
|
+
type="${o(this.type ? this.type : undefined)}"
|
|
7619
|
+
variant="${o(this.variant ? this.variant : undefined)}"
|
|
7620
|
+
.value="${o(this.value ? this.value : undefined)}"
|
|
6950
7621
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
7622
|
+
href="${o(this.buttonHref || undefined)}"
|
|
7623
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
7624
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
6951
7625
|
>
|
|
6952
|
-
${o
|
|
7626
|
+
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
6953
7627
|
|
|
6954
|
-
<span class="
|
|
7628
|
+
<span class="${e(contentClasses)}">
|
|
6955
7629
|
<span class="textSlot" part="text">
|
|
6956
|
-
|
|
6957
|
-
</span>
|
|
6958
|
-
|
|
6959
|
-
<span part="icon">
|
|
6960
|
-
<slot name="icon"></slot>
|
|
7630
|
+
<slot></slot>
|
|
6961
7631
|
</span>
|
|
6962
7632
|
</span>
|
|
6963
|
-
|
|
7633
|
+
</${tag}>
|
|
6964
7634
|
`;
|
|
6965
7635
|
}
|
|
7636
|
+
|
|
7637
|
+
/**
|
|
7638
|
+
* Renders the layout of the button.
|
|
7639
|
+
* @returns {TemplateResult}
|
|
7640
|
+
* @private
|
|
7641
|
+
*/
|
|
7642
|
+
renderLayout() {
|
|
7643
|
+
return this.renderLayoutDefault();
|
|
7644
|
+
}
|
|
6966
7645
|
}
|
|
6967
7646
|
|
|
6968
|
-
var buttonVersion = '
|
|
7647
|
+
var buttonVersion = '11.0.0';
|
|
6969
7648
|
|
|
6970
|
-
var colorCss = i$
|
|
7649
|
+
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
6971
7650
|
|
|
6972
|
-
var styleCss = i$
|
|
7651
|
+
var styleCss = i$5`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{position:relative;display:block}.helptext-wrapper{display:none}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
6973
7652
|
|
|
6974
|
-
var tokensCss = i$
|
|
7653
|
+
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
6975
7654
|
|
|
6976
7655
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6977
7656
|
// See LICENSE in the project root for license information.
|
|
@@ -7049,10 +7728,8 @@ class AuroLibraryRuntimeUtils {
|
|
|
7049
7728
|
|
|
7050
7729
|
/**
|
|
7051
7730
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
7052
|
-
*
|
|
7053
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
7054
7731
|
*/
|
|
7055
|
-
class AuroHelpText extends i {
|
|
7732
|
+
class AuroHelpText extends i$2 {
|
|
7056
7733
|
|
|
7057
7734
|
constructor() {
|
|
7058
7735
|
super();
|
|
@@ -7166,7 +7843,7 @@ class AuroHelpText extends i {
|
|
|
7166
7843
|
// function that renders the HTML and CSS into the scope of the component
|
|
7167
7844
|
render() {
|
|
7168
7845
|
return x`
|
|
7169
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
7846
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
7170
7847
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
7171
7848
|
</div>
|
|
7172
7849
|
`;
|
|
@@ -7188,24 +7865,183 @@ class AuroInput extends BaseInput {
|
|
|
7188
7865
|
/**
|
|
7189
7866
|
* Generate unique names for dependency components.
|
|
7190
7867
|
*/
|
|
7191
|
-
const versioning = new AuroDependencyVersioning
|
|
7868
|
+
const versioning = new AuroDependencyVersioning();
|
|
7192
7869
|
|
|
7193
7870
|
/**
|
|
7194
7871
|
* @private
|
|
7195
7872
|
*/
|
|
7196
|
-
this.
|
|
7873
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
7197
7874
|
|
|
7198
7875
|
/**
|
|
7199
7876
|
* @private
|
|
7200
7877
|
*/
|
|
7201
|
-
this.
|
|
7878
|
+
this.hasDisplayValueContent = false;
|
|
7202
7879
|
|
|
7203
7880
|
/**
|
|
7204
7881
|
* @private
|
|
7205
7882
|
*/
|
|
7206
7883
|
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
7884
|
+
|
|
7885
|
+
/**
|
|
7886
|
+
* @private
|
|
7887
|
+
*/
|
|
7888
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
7889
|
+
}
|
|
7890
|
+
|
|
7891
|
+
static get styles() {
|
|
7892
|
+
return [
|
|
7893
|
+
i$5`${classicStyleCss}`,
|
|
7894
|
+
i$5`${classicColorCss}`,
|
|
7895
|
+
i$5`${shapeSizeCss}`,
|
|
7896
|
+
i$5`${colorBaseCss}`,
|
|
7897
|
+
i$5`${styleCss$4}`,
|
|
7898
|
+
i$5`${styleDefaultCss}`,
|
|
7899
|
+
i$5`${tokensCss$4}`,
|
|
7900
|
+
i$5`${emphasizedStyleCss}`,
|
|
7901
|
+
i$5`${emphasizedColorCss}`,
|
|
7902
|
+
i$5`${snowflakeStyleCss}`
|
|
7903
|
+
];
|
|
7904
|
+
}
|
|
7905
|
+
|
|
7906
|
+
/**
|
|
7907
|
+
* Determines if the HTML input element should be visually hidden.
|
|
7908
|
+
* Returns true when display value content exists without focus and has a value,
|
|
7909
|
+
* or when the input has no value, is not focused, and has no placeholder text.
|
|
7910
|
+
* @returns {boolean} - True if the input should be visually hidden, false otherwise.
|
|
7911
|
+
* @private
|
|
7912
|
+
*/
|
|
7913
|
+
get inputHidden() {
|
|
7914
|
+
return (this.hasDisplayValueContent && !this.hasFocus && this.hasValue) || ((!this.value || this.value.length === 0) && !this.hasFocus && (!this.placeholder || this.placeholder === ''));
|
|
7207
7915
|
}
|
|
7208
7916
|
|
|
7917
|
+
/**
|
|
7918
|
+
* Determines if the input should display in a state with no focus or value indication.
|
|
7919
|
+
* Returns true when the input has display content without focus and has a value,
|
|
7920
|
+
* or when the input has no value and is not focused.
|
|
7921
|
+
* @returns {boolean} - True if the input should show no focus or value state, false otherwise.
|
|
7922
|
+
* @private
|
|
7923
|
+
*/
|
|
7924
|
+
get noFocusOrValue() {
|
|
7925
|
+
return (this.hasDisplayValueContent && !this.hasFocus && this.hasValue) || ((!this.value || this.value.length === 0) && !this.hasFocus);
|
|
7926
|
+
}
|
|
7927
|
+
|
|
7928
|
+
/**
|
|
7929
|
+
* Whether the label is being hidden currently based on state.
|
|
7930
|
+
* @returns {boolean} - Returns true if the label is hidden.
|
|
7931
|
+
* @private
|
|
7932
|
+
*/
|
|
7933
|
+
get labelHidden() {
|
|
7934
|
+
return this.hasDisplayValueContent && !this.hasFocus && this.hasValue;
|
|
7935
|
+
}
|
|
7936
|
+
|
|
7937
|
+
/**
|
|
7938
|
+
* Returns the label font class based on layout and visibility state.
|
|
7939
|
+
* @private
|
|
7940
|
+
* @returns {string} - The font class for the label.
|
|
7941
|
+
*/
|
|
7942
|
+
get labelFontClass() {
|
|
7943
|
+
const isHidden = this.inputHidden;
|
|
7944
|
+
|
|
7945
|
+
if (this.layout.startsWith('emphasized')) {
|
|
7946
|
+
return this.noFocusOrValue ? 'accent-xl' : 'body-sm';
|
|
7947
|
+
}
|
|
7948
|
+
|
|
7949
|
+
if (this.layout === 'snowflake') {
|
|
7950
|
+
return isHidden ? 'body-lg' : 'body-xs';
|
|
7951
|
+
}
|
|
7952
|
+
|
|
7953
|
+
// classic layout (default)
|
|
7954
|
+
return isHidden ? 'body-default' : 'body-xs';
|
|
7955
|
+
}
|
|
7956
|
+
|
|
7957
|
+
/**
|
|
7958
|
+
* Returns the input font class based on layout and visibility state.
|
|
7959
|
+
* @private
|
|
7960
|
+
* @returns {string} - The font class for the input.
|
|
7961
|
+
*/
|
|
7962
|
+
get inputFontClass() {
|
|
7963
|
+
if (this.layout.startsWith('emphasized')) {
|
|
7964
|
+
return this.noFocusOrValue ? 'body-sm' : 'accent-xl';
|
|
7965
|
+
}
|
|
7966
|
+
|
|
7967
|
+
if (this.layout === 'snowflake') {
|
|
7968
|
+
// same for both hidden and visible
|
|
7969
|
+
return 'body-lg';
|
|
7970
|
+
}
|
|
7971
|
+
|
|
7972
|
+
// edge case for enabling visual overrides in datepicker
|
|
7973
|
+
if (this.layout === 'classic' && this.shape === 'snowflake') {
|
|
7974
|
+
return 'body-lg';
|
|
7975
|
+
}
|
|
7976
|
+
|
|
7977
|
+
// classic layout (default) - same for both hidden and visible
|
|
7978
|
+
return 'body-default';
|
|
7979
|
+
}
|
|
7980
|
+
|
|
7981
|
+
/**
|
|
7982
|
+
* Returns classmap configuration for html5 input labels in all layouts.
|
|
7983
|
+
* @private
|
|
7984
|
+
* @returns {Record<string, boolean>}
|
|
7985
|
+
*/
|
|
7986
|
+
get commonLabelClasses() {
|
|
7987
|
+
return {
|
|
7988
|
+
'is-disabled': this.disabled,
|
|
7989
|
+
'withValue': this.hasValue,
|
|
7990
|
+
'util_displayHiddenVisually': this.labelHidden,
|
|
7991
|
+
[this.labelFontClass]: true,
|
|
7992
|
+
};
|
|
7993
|
+
}
|
|
7994
|
+
|
|
7995
|
+
/**
|
|
7996
|
+
* Returns classmap configuration for html5 inputs in all layouts.
|
|
7997
|
+
* @private
|
|
7998
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
7999
|
+
*/
|
|
8000
|
+
get commonInputClasses() {
|
|
8001
|
+
return {
|
|
8002
|
+
'util_displayHiddenVisually': this.inputHidden,
|
|
8003
|
+
[this.inputFontClass]: true,
|
|
8004
|
+
};
|
|
8005
|
+
}
|
|
8006
|
+
|
|
8007
|
+
/**
|
|
8008
|
+
* Returns classmap configuration for html5 inputs in each layout.
|
|
8009
|
+
* @private
|
|
8010
|
+
* @returns {object} - Returns classmap.
|
|
8011
|
+
*/
|
|
8012
|
+
get legacyInputClasses() {
|
|
8013
|
+
return {
|
|
8014
|
+
...this.commonInputClasses
|
|
8015
|
+
};
|
|
8016
|
+
}
|
|
8017
|
+
|
|
8018
|
+
/**
|
|
8019
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
8020
|
+
* @private
|
|
8021
|
+
* @returns {object} - Returns classmap.
|
|
8022
|
+
*/
|
|
8023
|
+
get commonWrapperClasses() {
|
|
8024
|
+
return {
|
|
8025
|
+
'wrapper': true,
|
|
8026
|
+
'simple': this.simple,
|
|
8027
|
+
'withValue': this.hasValue,
|
|
8028
|
+
'hasFocus': this.hasFocus
|
|
8029
|
+
};
|
|
8030
|
+
}
|
|
8031
|
+
|
|
8032
|
+
/**
|
|
8033
|
+
* Returns classmap configuration for helpText elements in each layout.
|
|
8034
|
+
* @private
|
|
8035
|
+
* @returns {object} - Returns classmap.
|
|
8036
|
+
*/
|
|
8037
|
+
get helpTextClasses() {
|
|
8038
|
+
return {
|
|
8039
|
+
'helpTextWrapper': true,
|
|
8040
|
+
'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
|
|
8041
|
+
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
8042
|
+
};
|
|
8043
|
+
};
|
|
8044
|
+
|
|
7209
8045
|
/**
|
|
7210
8046
|
* This will register this element with the browser.
|
|
7211
8047
|
* @param {string} [name="auro-input"] - The name of element that you want to register to.
|
|
@@ -7215,7 +8051,7 @@ class AuroInput extends BaseInput {
|
|
|
7215
8051
|
*
|
|
7216
8052
|
*/
|
|
7217
8053
|
static register(name = "auro-input") {
|
|
7218
|
-
AuroLibraryRuntimeUtils$
|
|
8054
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroInput);
|
|
7219
8055
|
}
|
|
7220
8056
|
|
|
7221
8057
|
/**
|
|
@@ -7231,160 +8067,377 @@ class AuroInput extends BaseInput {
|
|
|
7231
8067
|
return false;
|
|
7232
8068
|
}
|
|
7233
8069
|
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
8070
|
+
/**
|
|
8071
|
+
* Function to determine if there is any displayValue content to render.
|
|
8072
|
+
* @private
|
|
8073
|
+
* @returns {void}
|
|
8074
|
+
*/
|
|
8075
|
+
checkDisplayValueSlotChange() {
|
|
8076
|
+
let nodes = this.shadowRoot.querySelector('slot[name="displayValue"]').assignedNodes();
|
|
8077
|
+
|
|
8078
|
+
// Handle when DisplayValue is multi-level slot content (e.g. combobox passing displayValue to input)
|
|
8079
|
+
if (nodes[0].tagName === 'SLOT') {
|
|
8080
|
+
nodes = nodes[0].assignedNodes();
|
|
8081
|
+
}
|
|
8082
|
+
|
|
8083
|
+
let hasContent = false;
|
|
8084
|
+
|
|
8085
|
+
if (nodes.length > 0) {
|
|
8086
|
+
hasContent = true;
|
|
8087
|
+
}
|
|
8088
|
+
|
|
8089
|
+
this.hasDisplayValueContent = hasContent;
|
|
8090
|
+
}
|
|
8091
|
+
|
|
8092
|
+
/**
|
|
8093
|
+
* Returns HTML for the validation error icon.
|
|
8094
|
+
* @private
|
|
8095
|
+
* @returns {html} - Returns HTML for the validation error icon.
|
|
8096
|
+
*/
|
|
8097
|
+
renderValidationErrorIconHtml() {
|
|
8098
|
+
return u$2`
|
|
8099
|
+
${this.validity && this.validity !== 'valid' ? u$2`
|
|
8100
|
+
<div class="notification alertNotification">
|
|
8101
|
+
<${this.iconTag}
|
|
8102
|
+
category="alert"
|
|
8103
|
+
name="error-stroke"
|
|
8104
|
+
variant="statusError"
|
|
8105
|
+
?ondark="${this.onDark}">
|
|
8106
|
+
</${this.iconTag}>
|
|
8107
|
+
</div>
|
|
8108
|
+
` : undefined}
|
|
8109
|
+
`;
|
|
8110
|
+
}
|
|
8111
|
+
|
|
8112
|
+
/**
|
|
8113
|
+
* Returns HTML for the HTML5 input element.
|
|
8114
|
+
* @private
|
|
8115
|
+
* @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
|
|
8116
|
+
* @returns {html} - Returns HTML for the HTML5 input element.
|
|
8117
|
+
*/
|
|
8118
|
+
renderHtmlInput(useLegacyHiddenState = false) {
|
|
8119
|
+
const displayValueClasses = {
|
|
8120
|
+
'displayValue': true,
|
|
8121
|
+
'hasContent': this.hasDisplayValueContent,
|
|
8122
|
+
'hasFocus': this.hasFocus,
|
|
8123
|
+
'withValue': this.hasValue,
|
|
7241
8124
|
};
|
|
7242
8125
|
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
8126
|
+
// Remove this when the classic layout is sunset.
|
|
8127
|
+
const inputOverrideClasses = useLegacyHiddenState
|
|
8128
|
+
? this.legacyInputClasses
|
|
8129
|
+
: this.commonInputClasses;
|
|
8130
|
+
|
|
8131
|
+
return u$2`
|
|
8132
|
+
<label for=${this.inputId} class="${e(this.commonLabelClasses)}" part="label">
|
|
8133
|
+
<slot name="label">
|
|
8134
|
+
${this.label}
|
|
8135
|
+
</slot>
|
|
8136
|
+
${this.required ? undefined : u$2`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8137
|
+
</label>
|
|
8138
|
+
|
|
8139
|
+
<!-- Attributes are grouped into: basic attributes, event handlers, ARIA attributes, and input-specific attributes -->
|
|
8140
|
+
<input
|
|
8141
|
+
@blur="${this.handleBlur}"
|
|
8142
|
+
@focusin="${this.handleFocusin}"
|
|
8143
|
+
@focusout="${this.handleFocusout}"
|
|
8144
|
+
@input="${this.handleInput}"
|
|
8145
|
+
.placeholder=${this.placeholderStr}
|
|
8146
|
+
.role=${this.a11yRole}
|
|
8147
|
+
?activeLabel="${this.activeLabel}"
|
|
8148
|
+
?disabled="${this.disabled}"
|
|
8149
|
+
?required="${this.required}"
|
|
8150
|
+
aria-controls=${o(this.a11yControls)}
|
|
8151
|
+
aria-describedby="${this.uniqueId}"
|
|
8152
|
+
aria-expanded=${o(this.a11yExpanded)}
|
|
8153
|
+
aria-invalid="${this.validity !== 'valid'}"
|
|
8154
|
+
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
8155
|
+
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
8156
|
+
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
8157
|
+
class="${e(inputOverrideClasses)}"
|
|
8158
|
+
id="${this.inputId}"
|
|
8159
|
+
inputmode="${o(this.inputmode ? this.inputmode : undefined)}"
|
|
8160
|
+
lang="${o(this.lang)}"
|
|
8161
|
+
maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
|
|
8162
|
+
minlength="${o(this.minLength ? this.minLength : undefined)}"
|
|
8163
|
+
name="${o(this.name)}"
|
|
8164
|
+
part="input"
|
|
8165
|
+
pattern="${o(this.definePattern())}"
|
|
8166
|
+
spellcheck="${o(this.spellcheck ? this.spellcheck : undefined)}"
|
|
8167
|
+
type="${this.type === "password" && this.showPassword ? "text" : this.getInputType(this.type)}"
|
|
8168
|
+
/>
|
|
8169
|
+
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8170
|
+
<div class="displayValueWrapper">
|
|
8171
|
+
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
8172
|
+
</div>
|
|
8173
|
+
</div>
|
|
8174
|
+
`;
|
|
8175
|
+
}
|
|
7263
8176
|
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
8177
|
+
/**
|
|
8178
|
+
* Returns HTML for the clear action button.
|
|
8179
|
+
* @private
|
|
8180
|
+
* @returns {html} - Returns HTML for the clear action button.
|
|
8181
|
+
*/
|
|
8182
|
+
renderHtmlActionClear() {
|
|
8183
|
+
return u$2`
|
|
8184
|
+
<div class="notification clear">
|
|
8185
|
+
<${this.buttonTag}
|
|
8186
|
+
@click="${this.handleClickClear}"
|
|
8187
|
+
?onDark="${this.onDark}"
|
|
8188
|
+
class="notificationBtn clearBtn"
|
|
8189
|
+
shape="circle"
|
|
8190
|
+
size="sm"
|
|
8191
|
+
variant="ghost">
|
|
8192
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
8193
|
+
<${this.iconTag}
|
|
8194
|
+
aria-hidden="true"
|
|
8195
|
+
?customColor="${this.onDark}"
|
|
8196
|
+
category="interface"
|
|
8197
|
+
name="x-lg"
|
|
8198
|
+
>
|
|
8199
|
+
</${this.iconTag}>
|
|
8200
|
+
</${this.buttonTag}>
|
|
8201
|
+
</div>
|
|
8202
|
+
`;
|
|
8203
|
+
}
|
|
8204
|
+
|
|
8205
|
+
/**
|
|
8206
|
+
* Returns HTML for the show password button.
|
|
8207
|
+
* @private
|
|
8208
|
+
* @returns {html} - Returns HTML for the show password button.
|
|
8209
|
+
*/
|
|
8210
|
+
renderHtmlNotificationPassword() {
|
|
8211
|
+
return u$2`
|
|
8212
|
+
<div class="notification">
|
|
8213
|
+
<${this.buttonTag}
|
|
8214
|
+
@click="${this.handleClickShowPassword}"
|
|
8215
|
+
?onDark="${this.onDark}"
|
|
8216
|
+
class="notificationBtn passwordBtn"
|
|
8217
|
+
shape="circle"
|
|
8218
|
+
size="sm"
|
|
8219
|
+
variant="ghost">
|
|
8220
|
+
<span>
|
|
8221
|
+
${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
8222
|
+
: u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
8223
|
+
</span>
|
|
8224
|
+
<${this.iconTag}
|
|
8225
|
+
?customColor="${this.onDark}"
|
|
8226
|
+
aria-hidden="true"
|
|
8227
|
+
?hidden=${!this.showPassword}
|
|
8228
|
+
category="interface"
|
|
8229
|
+
name="hide-password-stroke">
|
|
8230
|
+
</${this.iconTag}>
|
|
8231
|
+
<${this.iconTag}
|
|
8232
|
+
?customColor="${this.onDark}"
|
|
8233
|
+
aria-hidden="true"
|
|
8234
|
+
?hidden=${this.showPassword}
|
|
8235
|
+
category="interface"
|
|
8236
|
+
name="view-password-stroke">
|
|
8237
|
+
</${this.iconTag}>
|
|
8238
|
+
</${this.buttonTag}>
|
|
8239
|
+
</div>
|
|
8240
|
+
`;
|
|
8241
|
+
}
|
|
8242
|
+
|
|
8243
|
+
/**
|
|
8244
|
+
* Returns HTML for the input type icon.
|
|
8245
|
+
* @private
|
|
8246
|
+
* @returns {html} - Returns HTML for the input type icon.
|
|
8247
|
+
*/
|
|
8248
|
+
renderHtmlTypeIcon() {
|
|
8249
|
+
return u$2`
|
|
8250
|
+
<div class="typeIcon">
|
|
8251
|
+
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
8252
|
+
|
|
8253
|
+
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
8254
|
+
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
8255
|
+
${this.inputIconName
|
|
8256
|
+
? c([this.inputIconName], (val) => val, (name) => u$2`
|
|
8257
|
+
<${this.iconTag}
|
|
8258
|
+
?onDark="${this.onDark}"
|
|
8259
|
+
category="payment"
|
|
8260
|
+
class="accentIcon"
|
|
8261
|
+
name="${name}"
|
|
8262
|
+
part="accentIcon"
|
|
8263
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
8264
|
+
</${this.iconTag}>
|
|
8265
|
+
`) : undefined
|
|
8266
|
+
}
|
|
8267
|
+
${this.type === 'date'
|
|
8268
|
+
? u$2`
|
|
8269
|
+
<${this.iconTag}
|
|
8270
|
+
?onDark="${this.onDark}"
|
|
8271
|
+
category="interface"
|
|
8272
|
+
class="accentIcon"
|
|
8273
|
+
name="calendar"
|
|
8274
|
+
part="accentIcon"
|
|
8275
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
8276
|
+
</${this.iconTag}>`
|
|
8277
|
+
: undefined
|
|
8278
|
+
}
|
|
8279
|
+
</div>
|
|
8280
|
+
`;
|
|
8281
|
+
}
|
|
8282
|
+
|
|
8283
|
+
/**
|
|
8284
|
+
* Returns HTML for the help text and error message.
|
|
8285
|
+
* @private
|
|
8286
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
8287
|
+
*/
|
|
8288
|
+
renderHtmlHelpText() {
|
|
8289
|
+
return u$2`
|
|
8290
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
8291
|
+
? u$2`
|
|
8292
|
+
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
8293
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
8294
|
+
<slot name="helpText">${this.getHelpText()}</slot>
|
|
8295
|
+
</p>
|
|
8296
|
+
</${this.helpTextTag}>
|
|
8297
|
+
`
|
|
8298
|
+
: u$2`
|
|
8299
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
8300
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
8301
|
+
${this.errorMessage}
|
|
8302
|
+
</p>
|
|
8303
|
+
</${this.helpTextTag}>
|
|
8304
|
+
`
|
|
8305
|
+
}
|
|
8306
|
+
`;
|
|
8307
|
+
}
|
|
8308
|
+
|
|
8309
|
+
/**
|
|
8310
|
+
* Returns HTML for the classic layout.
|
|
8311
|
+
* @private
|
|
8312
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
8313
|
+
*/
|
|
8314
|
+
renderLayoutClassic() {
|
|
8315
|
+
const classicClassMap = {
|
|
8316
|
+
...this.commonWrapperClasses,
|
|
8317
|
+
'thin': !this.simple
|
|
8318
|
+
};
|
|
8319
|
+
|
|
8320
|
+
return u$2`
|
|
8321
|
+
<div
|
|
8322
|
+
@click="${this.handleClick}"
|
|
8323
|
+
class="${e(classicClassMap)}"
|
|
8324
|
+
part="wrapper">
|
|
8325
|
+
<div part="accent-left" class="accents left">
|
|
8326
|
+
${this.renderHtmlTypeIcon()}
|
|
7310
8327
|
</div>
|
|
7311
|
-
<div
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
${this.
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
8328
|
+
<div class="mainContent">
|
|
8329
|
+
${this.renderHtmlInput(true)}
|
|
8330
|
+
</div>
|
|
8331
|
+
<div part="accent-right" class="accents right">
|
|
8332
|
+
${this.renderValidationErrorIconHtml()}
|
|
8333
|
+
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
8334
|
+
${this.hasValue ? u$2`
|
|
8335
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
8336
|
+
${this.renderHtmlActionClear()}
|
|
8337
|
+
` : undefined}
|
|
8338
|
+
` : undefined}
|
|
8339
|
+
</div>
|
|
8340
|
+
</div>
|
|
8341
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
8342
|
+
${this.renderHtmlHelpText()}
|
|
8343
|
+
</div>
|
|
8344
|
+
`;
|
|
8345
|
+
}
|
|
8346
|
+
|
|
8347
|
+
/**
|
|
8348
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
8349
|
+
* @private
|
|
8350
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
8351
|
+
*/
|
|
8352
|
+
renderLayoutEmphasized() {
|
|
8353
|
+
return u$2`
|
|
8354
|
+
<div
|
|
8355
|
+
@click="${this.handleClick}"
|
|
8356
|
+
class="${e(this.commonWrapperClasses)}"
|
|
8357
|
+
part="wrapper">
|
|
8358
|
+
<div class="accents left">
|
|
8359
|
+
${this.layout.includes('left') ? u$2`
|
|
8360
|
+
${this.renderValidationErrorIconHtml()}
|
|
8361
|
+
` : undefined}
|
|
8362
|
+
</div>
|
|
8363
|
+
<div class="mainContent">
|
|
8364
|
+
${this.renderHtmlInput()}
|
|
8365
|
+
</div>
|
|
8366
|
+
<div class="accents right">
|
|
8367
|
+
${this.layout.includes('right') || this.layout === "emphasized" ? u$2`
|
|
8368
|
+
${this.renderValidationErrorIconHtml()}
|
|
7323
8369
|
` : undefined}
|
|
7324
|
-
${this.hasValue ? u$
|
|
7325
|
-
${this.
|
|
7326
|
-
|
|
7327
|
-
<${this.buttonTag}
|
|
7328
|
-
variant="flat"
|
|
7329
|
-
?onDark="${this.onDark}"
|
|
7330
|
-
aria-hidden="true"
|
|
7331
|
-
tabindex="-1"
|
|
7332
|
-
@click="${this.handleClickShowPassword}"
|
|
7333
|
-
class="notificationBtn passwordBtn">
|
|
7334
|
-
<${this.iconTag}
|
|
7335
|
-
category="interface"
|
|
7336
|
-
name="hide-password-stroke"
|
|
7337
|
-
customColor
|
|
7338
|
-
?hidden=${!this.showPassword}>
|
|
7339
|
-
</${this.iconTag}>
|
|
7340
|
-
<${this.iconTag}
|
|
7341
|
-
category="interface"
|
|
7342
|
-
name="view-password-stroke"
|
|
7343
|
-
customColor
|
|
7344
|
-
?hidden=${this.showPassword}>
|
|
7345
|
-
</${this.iconTag}>
|
|
7346
|
-
</${this.buttonTag}>
|
|
7347
|
-
</div>
|
|
8370
|
+
${this.hasValue ? u$2`
|
|
8371
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
8372
|
+
${this.renderHtmlActionClear()}
|
|
7348
8373
|
` : undefined}
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
8374
|
+
` : undefined}
|
|
8375
|
+
</div>
|
|
8376
|
+
</div>
|
|
8377
|
+
<div class="${e(this.helpTextClasses)}" part="inputHelpText">
|
|
8378
|
+
${this.renderHtmlHelpText()}
|
|
8379
|
+
</div>
|
|
8380
|
+
`;
|
|
8381
|
+
}
|
|
8382
|
+
|
|
8383
|
+
/**
|
|
8384
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
8385
|
+
* @private
|
|
8386
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
8387
|
+
*/
|
|
8388
|
+
renderLayoutSnowflake() {
|
|
8389
|
+
return u$2`
|
|
8390
|
+
<div
|
|
8391
|
+
@click="${this.handleClick}"
|
|
8392
|
+
class="${e(this.commonWrapperClasses)}"
|
|
8393
|
+
part="wrapper">
|
|
8394
|
+
<div class="accents left">
|
|
8395
|
+
${this.renderHtmlTypeIcon()}
|
|
8396
|
+
</div>
|
|
8397
|
+
<div class="mainContent">
|
|
8398
|
+
${this.renderHtmlInput()}
|
|
8399
|
+
</div>
|
|
8400
|
+
<div class="accents right">
|
|
8401
|
+
${this.renderValidationErrorIconHtml()}
|
|
8402
|
+
${this.hasValue ? u$2`
|
|
8403
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
8404
|
+
${this.renderHtmlActionClear()}
|
|
7365
8405
|
` : undefined}
|
|
7366
8406
|
` : undefined}
|
|
7367
8407
|
</div>
|
|
7368
8408
|
</div>
|
|
7369
|
-
|
|
7370
|
-
${
|
|
7371
|
-
|
|
7372
|
-
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
7373
|
-
<p id="${this.uniqueId}" part="helpText">
|
|
7374
|
-
<slot name="helptext">${this.getHelpText()}</slot>
|
|
7375
|
-
</p>
|
|
7376
|
-
</${this.helpTextTag}>
|
|
7377
|
-
`
|
|
7378
|
-
: u$3`
|
|
7379
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
7380
|
-
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
7381
|
-
${this.errorMessage}
|
|
7382
|
-
</p>
|
|
7383
|
-
</${this.helpTextTag}>
|
|
7384
|
-
`
|
|
7385
|
-
}
|
|
8409
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
8410
|
+
${this.renderHtmlHelpText()}
|
|
8411
|
+
</div>
|
|
7386
8412
|
`;
|
|
7387
8413
|
}
|
|
8414
|
+
|
|
8415
|
+
/**
|
|
8416
|
+
* Logic to determine the layout of the component.
|
|
8417
|
+
* @private
|
|
8418
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
8419
|
+
* @returns {void}
|
|
8420
|
+
*/
|
|
8421
|
+
renderLayout(ForcedLayout) {
|
|
8422
|
+
const layout = ForcedLayout || this.layout;
|
|
8423
|
+
|
|
8424
|
+
switch (layout) {
|
|
8425
|
+
case 'emphasized':
|
|
8426
|
+
return this.renderLayoutEmphasized();
|
|
8427
|
+
case 'emphasized-left':
|
|
8428
|
+
return this.renderLayoutEmphasized();
|
|
8429
|
+
case 'emphasized-right':
|
|
8430
|
+
return this.renderLayoutEmphasized();
|
|
8431
|
+
case 'snowflake':
|
|
8432
|
+
return this.renderLayoutSnowflake();
|
|
8433
|
+
case 'snowflake-left':
|
|
8434
|
+
return this.renderLayoutSnowflake();
|
|
8435
|
+
case 'snowflake-right':
|
|
8436
|
+
return this.renderLayoutSnowflake();
|
|
8437
|
+
default:
|
|
8438
|
+
return this.renderLayoutClassic();
|
|
8439
|
+
}
|
|
8440
|
+
}
|
|
7388
8441
|
}
|
|
7389
8442
|
|
|
7390
8443
|
AuroInput.register();
|