@aurodesignsystem/auro-formkit 4.0.2 → 5.0.0-rc-1002.1.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 +193 -2
- 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
|
@@ -90,51 +90,90 @@ function resetStateExample() {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* @license
|
|
95
|
+
* Copyright 2019 Google LLC
|
|
96
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
97
|
+
*/
|
|
98
|
+
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;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @license
|
|
102
|
+
* Copyright 2017 Google LLC
|
|
103
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
104
|
+
*/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");
|
|
105
|
+
|
|
93
106
|
/**
|
|
94
107
|
* @license
|
|
95
108
|
* Copyright 2017 Google LLC
|
|
96
109
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
97
110
|
*/
|
|
98
|
-
const t$
|
|
111
|
+
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};
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @license
|
|
115
|
+
* Copyright 2017 Google LLC
|
|
116
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
+
*/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");
|
|
118
|
+
|
|
119
|
+
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}`;
|
|
120
|
+
|
|
121
|
+
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}`;
|
|
122
|
+
|
|
123
|
+
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}`;
|
|
124
|
+
|
|
125
|
+
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)}`;
|
|
126
|
+
|
|
127
|
+
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}`;
|
|
128
|
+
|
|
129
|
+
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}`;
|
|
130
|
+
|
|
131
|
+
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)}`;
|
|
132
|
+
|
|
133
|
+
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)}`;
|
|
134
|
+
|
|
135
|
+
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)}`;
|
|
136
|
+
|
|
137
|
+
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}`;
|
|
99
138
|
|
|
100
139
|
/**
|
|
101
140
|
* @license
|
|
102
141
|
* Copyright 2020 Google LLC
|
|
103
142
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
104
143
|
*/
|
|
105
|
-
const a
|
|
144
|
+
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);
|
|
106
145
|
|
|
107
146
|
/**
|
|
108
147
|
* @license
|
|
109
148
|
* Copyright 2017 Google LLC
|
|
110
149
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
111
150
|
*/
|
|
112
|
-
const t$
|
|
151
|
+
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)}}
|
|
113
152
|
|
|
114
153
|
/**
|
|
115
154
|
* @license
|
|
116
155
|
* Copyright 2020 Google LLC
|
|
117
156
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
|
-
*/const {I:t
|
|
157
|
+
*/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;}};
|
|
119
158
|
|
|
120
159
|
/**
|
|
121
160
|
* @license
|
|
122
161
|
* Copyright 2017 Google LLC
|
|
123
162
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
124
163
|
*/
|
|
125
|
-
const u
|
|
164
|
+
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}});
|
|
126
165
|
|
|
127
166
|
/**
|
|
128
167
|
* @license
|
|
129
168
|
* Copyright 2018 Google LLC
|
|
130
169
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
131
|
-
*/const e
|
|
170
|
+
*/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}});
|
|
132
171
|
|
|
133
172
|
/**
|
|
134
173
|
* @license
|
|
135
174
|
* Copyright 2018 Google LLC
|
|
136
175
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
137
|
-
*/const o
|
|
176
|
+
*/const o=o=>o??E;
|
|
138
177
|
|
|
139
178
|
const watchedItems = new Set();
|
|
140
179
|
|
|
@@ -197,6 +236,8 @@ const stringsES = {
|
|
|
197
236
|
'dateMM': 'Ingrese una fecha completa en el formato MM',
|
|
198
237
|
'dateDD': 'Ingrese una fecha completa en el formato DD',
|
|
199
238
|
'clearInput': 'Borrar campo de entrada',
|
|
239
|
+
'showPassword': 'Mostrar contraseña',
|
|
240
|
+
'hidePassword': 'Ocultar contraseña'
|
|
200
241
|
};
|
|
201
242
|
|
|
202
243
|
const stringsEN = {
|
|
@@ -221,6 +262,8 @@ const stringsEN = {
|
|
|
221
262
|
'dateMM': 'Please enter a complete date in the format MM',
|
|
222
263
|
'dateDD': 'Please enter a complete date in the format DD',
|
|
223
264
|
'clearInput': 'Clear input field',
|
|
265
|
+
'showPassword': 'Show password',
|
|
266
|
+
'hidePassword': 'Hide password'
|
|
224
267
|
};
|
|
225
268
|
|
|
226
269
|
/**
|
|
@@ -257,31 +300,6 @@ function stopNotifyingOnLangChange(element) {
|
|
|
257
300
|
watchedItems.delete(element);
|
|
258
301
|
}
|
|
259
302
|
|
|
260
|
-
/**
|
|
261
|
-
* @license
|
|
262
|
-
* Copyright 2019 Google LLC
|
|
263
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
264
|
-
*/
|
|
265
|
-
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;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* @license
|
|
269
|
-
* Copyright 2017 Google LLC
|
|
270
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
|
-
*/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");
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* @license
|
|
275
|
-
* Copyright 2017 Google LLC
|
|
276
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
277
|
-
*/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");
|
|
278
|
-
|
|
279
|
-
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)}`;
|
|
280
|
-
|
|
281
|
-
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))}`;
|
|
282
|
-
|
|
283
|
-
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)}`;
|
|
284
|
-
|
|
285
303
|
/** Checks if value is string */
|
|
286
304
|
function isString(str) {
|
|
287
305
|
return typeof str === 'string' || str instanceof String;
|
|
@@ -4540,7 +4558,7 @@ const {
|
|
|
4540
4558
|
|
|
4541
4559
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4542
4560
|
|
|
4543
|
-
let AuroLibraryRuntimeUtils$
|
|
4561
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4544
4562
|
|
|
4545
4563
|
/* eslint-disable jsdoc/require-param */
|
|
4546
4564
|
|
|
@@ -4610,7 +4628,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
4610
4628
|
class AuroFormValidation {
|
|
4611
4629
|
|
|
4612
4630
|
constructor() {
|
|
4613
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4631
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
4614
4632
|
}
|
|
4615
4633
|
|
|
4616
4634
|
/**
|
|
@@ -4670,19 +4688,19 @@ class AuroFormValidation {
|
|
|
4670
4688
|
{
|
|
4671
4689
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
4672
4690
|
validity: 'tooShort',
|
|
4673
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
4691
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
4674
4692
|
},
|
|
4675
4693
|
{
|
|
4676
4694
|
check: (e) => e.value?.length > e.maxLength,
|
|
4677
4695
|
validity: 'tooLong',
|
|
4678
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
4696
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
4679
4697
|
}
|
|
4680
4698
|
],
|
|
4681
4699
|
pattern: [
|
|
4682
4700
|
{
|
|
4683
4701
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
4684
4702
|
validity: 'patternMismatch',
|
|
4685
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
4703
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
4686
4704
|
}
|
|
4687
4705
|
]
|
|
4688
4706
|
},
|
|
@@ -4829,13 +4847,24 @@ class AuroFormValidation {
|
|
|
4829
4847
|
this.getInputElements(elem);
|
|
4830
4848
|
this.getAuroInputs(elem);
|
|
4831
4849
|
|
|
4832
|
-
//
|
|
4850
|
+
// Check if validation should run
|
|
4833
4851
|
let validationShouldRun =
|
|
4852
|
+
|
|
4853
|
+
// If the validation was forced
|
|
4834
4854
|
force ||
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4855
|
+
|
|
4856
|
+
// If the validation should run on input
|
|
4857
|
+
elem.validateOnInput ||
|
|
4858
|
+
|
|
4859
|
+
// State-based checks
|
|
4860
|
+
(
|
|
4861
|
+
// Element is not currently focused
|
|
4862
|
+
!elem.contains(document.activeElement) && // native input is not focused directly
|
|
4863
|
+
!document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
|
|
4864
|
+
|
|
4865
|
+
// And element has been touched or is untouched but has a value
|
|
4866
|
+
( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
|
|
4867
|
+
);
|
|
4839
4868
|
|
|
4840
4869
|
if (elem.hasAttribute('error')) {
|
|
4841
4870
|
elem.validity = 'customError';
|
|
@@ -4877,10 +4906,10 @@ class AuroFormValidation {
|
|
|
4877
4906
|
if (!hasValue && elem.required && elem.touched) {
|
|
4878
4907
|
elem.validity = 'valueMissing';
|
|
4879
4908
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
4880
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
4909
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
4881
4910
|
this.validateType(elem);
|
|
4882
4911
|
this.validateElementAttributes(elem);
|
|
4883
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
4912
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
4884
4913
|
this.validateElementAttributes(elem);
|
|
4885
4914
|
}
|
|
4886
4915
|
}
|
|
@@ -4889,7 +4918,9 @@ class AuroFormValidation {
|
|
|
4889
4918
|
elem.validity = this.auroInputElements[0].validity;
|
|
4890
4919
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
4891
4920
|
|
|
4892
|
-
|
|
4921
|
+
// multiple input in one components (datepicker)
|
|
4922
|
+
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
4923
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
|
|
4893
4924
|
elem.validity = this.auroInputElements[1].validity;
|
|
4894
4925
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
4895
4926
|
}
|
|
@@ -4969,6 +5000,101 @@ class AuroFormValidation {
|
|
|
4969
5000
|
}
|
|
4970
5001
|
}
|
|
4971
5002
|
|
|
5003
|
+
let AuroElement$2 = class AuroElement extends i$2 {
|
|
5004
|
+
static get properties() {
|
|
5005
|
+
return {
|
|
5006
|
+
|
|
5007
|
+
/**
|
|
5008
|
+
* Defines the language of an element.
|
|
5009
|
+
* @default {'default'}
|
|
5010
|
+
*/
|
|
5011
|
+
layout: {
|
|
5012
|
+
type: String,
|
|
5013
|
+
attribute: "layout",
|
|
5014
|
+
reflect: true
|
|
5015
|
+
},
|
|
5016
|
+
|
|
5017
|
+
shape: {
|
|
5018
|
+
type: String,
|
|
5019
|
+
attribute: "shape",
|
|
5020
|
+
reflect: true
|
|
5021
|
+
},
|
|
5022
|
+
|
|
5023
|
+
size: {
|
|
5024
|
+
type: String,
|
|
5025
|
+
attribute: "size",
|
|
5026
|
+
reflect: true
|
|
5027
|
+
},
|
|
5028
|
+
|
|
5029
|
+
onDark: {
|
|
5030
|
+
type: Boolean,
|
|
5031
|
+
attribute: "ondark",
|
|
5032
|
+
reflect: true
|
|
5033
|
+
}
|
|
5034
|
+
};
|
|
5035
|
+
}
|
|
5036
|
+
|
|
5037
|
+
resetShapeClasses() {
|
|
5038
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
5039
|
+
|
|
5040
|
+
if (wrapper) {
|
|
5041
|
+
wrapper.classList.forEach((className) => {
|
|
5042
|
+
if (className.startsWith('shape-')) {
|
|
5043
|
+
wrapper.classList.remove(className);
|
|
5044
|
+
}
|
|
5045
|
+
});
|
|
5046
|
+
|
|
5047
|
+
if (this.shape && this.size) {
|
|
5048
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
5049
|
+
} else {
|
|
5050
|
+
wrapper.classList.add('shape-none');
|
|
5051
|
+
}
|
|
5052
|
+
}
|
|
5053
|
+
|
|
5054
|
+
}
|
|
5055
|
+
|
|
5056
|
+
resetLayoutClasses() {
|
|
5057
|
+
if (this.layout) {
|
|
5058
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
5059
|
+
|
|
5060
|
+
if (wrapper) {
|
|
5061
|
+
wrapper.classList.forEach((className) => {
|
|
5062
|
+
if (className.startsWith('layout-')) {
|
|
5063
|
+
wrapper.classList.remove(className);
|
|
5064
|
+
}
|
|
5065
|
+
});
|
|
5066
|
+
|
|
5067
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
5068
|
+
}
|
|
5069
|
+
}
|
|
5070
|
+
}
|
|
5071
|
+
|
|
5072
|
+
updateComponentArchitecture() {
|
|
5073
|
+
this.resetLayoutClasses();
|
|
5074
|
+
this.resetShapeClasses();
|
|
5075
|
+
}
|
|
5076
|
+
|
|
5077
|
+
updated(changedProperties) {
|
|
5078
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
5079
|
+
this.updateComponentArchitecture();
|
|
5080
|
+
}
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
5084
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
5085
|
+
render() {
|
|
5086
|
+
try {
|
|
5087
|
+
return this.renderLayout();
|
|
5088
|
+
} catch (error) {
|
|
5089
|
+
// failed to get the defined layout
|
|
5090
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
5091
|
+
|
|
5092
|
+
// fallback to the default layout
|
|
5093
|
+
return this.getLayout('default');
|
|
5094
|
+
}
|
|
5095
|
+
}
|
|
5096
|
+
};
|
|
5097
|
+
|
|
4972
5098
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4973
5099
|
// See LICENSE in the project root for license information.
|
|
4974
5100
|
|
|
@@ -4976,40 +5102,62 @@ class AuroFormValidation {
|
|
|
4976
5102
|
/**
|
|
4977
5103
|
* Auro-input provides users a way to enter data into a text field.
|
|
4978
5104
|
*
|
|
4979
|
-
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
4980
|
-
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
4981
|
-
*
|
|
4982
5105
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
4983
5106
|
* @attr id
|
|
4984
5107
|
*
|
|
4985
|
-
* @slot
|
|
5108
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
5109
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
5110
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
5111
|
+
* @slot helpText - Sets the help text displayed below the input.
|
|
4986
5112
|
* @slot label - Sets the label text for the input.
|
|
5113
|
+
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
5114
|
+
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
4987
5115
|
*
|
|
4988
5116
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
4989
5117
|
* @csspart label - Use for customizing the style of the label element
|
|
4990
5118
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
5119
|
+
* @csspart input - Use for customizing the style of the input element
|
|
4991
5120
|
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
|
|
4992
5121
|
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
|
|
5122
|
+
* @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
|
|
5123
|
+
* @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
|
|
4993
5124
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
4994
5125
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
4995
5126
|
*/
|
|
4996
5127
|
|
|
4997
|
-
class BaseInput extends
|
|
5128
|
+
class BaseInput extends AuroElement$2 {
|
|
4998
5129
|
|
|
4999
5130
|
constructor() {
|
|
5000
5131
|
super();
|
|
5001
5132
|
|
|
5133
|
+
this.activeLabel = false;
|
|
5002
5134
|
this.icon = false;
|
|
5003
5135
|
this.disabled = false;
|
|
5004
|
-
this.required = false;
|
|
5005
|
-
this.noValidate = false;
|
|
5006
5136
|
this.max = undefined;
|
|
5007
|
-
this.min = undefined;
|
|
5008
5137
|
this.maxLength = undefined;
|
|
5138
|
+
this.min = undefined;
|
|
5009
5139
|
this.minLength = undefined;
|
|
5140
|
+
this.noValidate = false;
|
|
5010
5141
|
this.onDark = false;
|
|
5011
|
-
this.
|
|
5142
|
+
this.required = false;
|
|
5012
5143
|
this.setCustomValidityForType = undefined;
|
|
5144
|
+
|
|
5145
|
+
/**
|
|
5146
|
+
* @private
|
|
5147
|
+
*/
|
|
5148
|
+
this.layout = 'classic';
|
|
5149
|
+
|
|
5150
|
+
/**
|
|
5151
|
+
* @private
|
|
5152
|
+
*/
|
|
5153
|
+
this.shape = 'classic';
|
|
5154
|
+
|
|
5155
|
+
/**
|
|
5156
|
+
* @private
|
|
5157
|
+
*/
|
|
5158
|
+
this.size = 'lg';
|
|
5159
|
+
|
|
5160
|
+
this.privateDefaults();
|
|
5013
5161
|
}
|
|
5014
5162
|
|
|
5015
5163
|
/**
|
|
@@ -5026,6 +5174,7 @@ class BaseInput extends i {
|
|
|
5026
5174
|
this.validationCCLength = undefined;
|
|
5027
5175
|
this.hasValue = false;
|
|
5028
5176
|
this.label = 'Input label is undefined';
|
|
5177
|
+
this.placeholderStr = '';
|
|
5029
5178
|
|
|
5030
5179
|
this.allowedInputTypes = [
|
|
5031
5180
|
"text",
|
|
@@ -5072,16 +5221,16 @@ class BaseInput extends i {
|
|
|
5072
5221
|
.substring(idSubstrStart, idSubstrEnd);
|
|
5073
5222
|
}
|
|
5074
5223
|
|
|
5075
|
-
// function to define props used within the scope of this
|
|
5224
|
+
// function to define props used within the scope of this component
|
|
5076
5225
|
static get properties() {
|
|
5077
5226
|
return {
|
|
5227
|
+
...super.properties,
|
|
5078
5228
|
|
|
5079
5229
|
/**
|
|
5080
5230
|
* The value for the role attribute.
|
|
5081
5231
|
*/
|
|
5082
5232
|
a11yRole: {
|
|
5083
5233
|
type: String,
|
|
5084
|
-
attribute: true,
|
|
5085
5234
|
reflect: true
|
|
5086
5235
|
},
|
|
5087
5236
|
|
|
@@ -5090,7 +5239,6 @@ class BaseInput extends i {
|
|
|
5090
5239
|
*/
|
|
5091
5240
|
a11yExpanded: {
|
|
5092
5241
|
type: Boolean,
|
|
5093
|
-
attribute: true,
|
|
5094
5242
|
reflect: true
|
|
5095
5243
|
},
|
|
5096
5244
|
|
|
@@ -5099,7 +5247,6 @@ class BaseInput extends i {
|
|
|
5099
5247
|
*/
|
|
5100
5248
|
a11yControls: {
|
|
5101
5249
|
type: String,
|
|
5102
|
-
attribute: true,
|
|
5103
5250
|
reflect: true
|
|
5104
5251
|
},
|
|
5105
5252
|
|
|
@@ -5115,7 +5262,8 @@ class BaseInput extends i {
|
|
|
5115
5262
|
* 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].
|
|
5116
5263
|
*/
|
|
5117
5264
|
autocapitalize: {
|
|
5118
|
-
type: String
|
|
5265
|
+
type: String,
|
|
5266
|
+
reflect: true
|
|
5119
5267
|
},
|
|
5120
5268
|
|
|
5121
5269
|
/**
|
|
@@ -5130,7 +5278,8 @@ class BaseInput extends i {
|
|
|
5130
5278
|
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
5131
5279
|
*/
|
|
5132
5280
|
autocorrect: {
|
|
5133
|
-
type: String
|
|
5281
|
+
type: String,
|
|
5282
|
+
reflect: true
|
|
5134
5283
|
},
|
|
5135
5284
|
|
|
5136
5285
|
/**
|
|
@@ -5175,7 +5324,6 @@ class BaseInput extends i {
|
|
|
5175
5324
|
/** Exposes inputmode attribute for input. */
|
|
5176
5325
|
inputmode: {
|
|
5177
5326
|
type: String,
|
|
5178
|
-
attribute: true,
|
|
5179
5327
|
reflect: true
|
|
5180
5328
|
},
|
|
5181
5329
|
|
|
@@ -5183,7 +5331,8 @@ class BaseInput extends i {
|
|
|
5183
5331
|
* Defines the language of an element.
|
|
5184
5332
|
*/
|
|
5185
5333
|
lang: {
|
|
5186
|
-
type: String
|
|
5334
|
+
type: String,
|
|
5335
|
+
reflect: true
|
|
5187
5336
|
},
|
|
5188
5337
|
|
|
5189
5338
|
/**
|
|
@@ -5197,7 +5346,8 @@ class BaseInput extends i {
|
|
|
5197
5346
|
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
5198
5347
|
*/
|
|
5199
5348
|
maxLength: {
|
|
5200
|
-
type: Number
|
|
5349
|
+
type: Number,
|
|
5350
|
+
reflect: true
|
|
5201
5351
|
},
|
|
5202
5352
|
|
|
5203
5353
|
/**
|
|
@@ -5211,14 +5361,25 @@ class BaseInput extends i {
|
|
|
5211
5361
|
* 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`.
|
|
5212
5362
|
*/
|
|
5213
5363
|
minLength: {
|
|
5214
|
-
type: Number
|
|
5364
|
+
type: Number,
|
|
5365
|
+
reflect: true
|
|
5215
5366
|
},
|
|
5216
5367
|
|
|
5217
5368
|
/**
|
|
5218
5369
|
* Populates the `name` attribute on the input.
|
|
5219
5370
|
*/
|
|
5220
5371
|
name: {
|
|
5221
|
-
type: String
|
|
5372
|
+
type: String,
|
|
5373
|
+
reflect: true
|
|
5374
|
+
},
|
|
5375
|
+
|
|
5376
|
+
/**
|
|
5377
|
+
* Sets styles for nested operation - removes borders, hides help + error text, and
|
|
5378
|
+
* hides accents.
|
|
5379
|
+
*/
|
|
5380
|
+
nested: {
|
|
5381
|
+
type: Boolean,
|
|
5382
|
+
reflect: true
|
|
5222
5383
|
},
|
|
5223
5384
|
|
|
5224
5385
|
/**
|
|
@@ -5246,10 +5407,11 @@ class BaseInput extends i {
|
|
|
5246
5407
|
},
|
|
5247
5408
|
|
|
5248
5409
|
/**
|
|
5249
|
-
* Define custom placeholder text
|
|
5410
|
+
* Define custom placeholder text.
|
|
5250
5411
|
*/
|
|
5251
5412
|
placeholder: {
|
|
5252
|
-
type: String
|
|
5413
|
+
type: String,
|
|
5414
|
+
reflect: true
|
|
5253
5415
|
},
|
|
5254
5416
|
|
|
5255
5417
|
/**
|
|
@@ -5338,6 +5500,14 @@ class BaseInput extends i {
|
|
|
5338
5500
|
type: String
|
|
5339
5501
|
},
|
|
5340
5502
|
|
|
5503
|
+
/**
|
|
5504
|
+
* Simple makes the input render without a border.
|
|
5505
|
+
*/
|
|
5506
|
+
simple: {
|
|
5507
|
+
type: Boolean,
|
|
5508
|
+
reflect: true
|
|
5509
|
+
},
|
|
5510
|
+
|
|
5341
5511
|
/**
|
|
5342
5512
|
* Custom help text message for email type validity.
|
|
5343
5513
|
*/
|
|
@@ -5349,7 +5519,8 @@ class BaseInput extends i {
|
|
|
5349
5519
|
* 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`.
|
|
5350
5520
|
*/
|
|
5351
5521
|
spellcheck: {
|
|
5352
|
-
type: String
|
|
5522
|
+
type: String,
|
|
5523
|
+
reflect: true
|
|
5353
5524
|
},
|
|
5354
5525
|
|
|
5355
5526
|
/**
|
|
@@ -5395,8 +5566,8 @@ class BaseInput extends i {
|
|
|
5395
5566
|
},
|
|
5396
5567
|
|
|
5397
5568
|
/**
|
|
5569
|
+
* The id for input node.
|
|
5398
5570
|
* @private
|
|
5399
|
-
* id for input node
|
|
5400
5571
|
*/
|
|
5401
5572
|
inputId: {
|
|
5402
5573
|
type: String,
|
|
@@ -5406,20 +5577,9 @@ class BaseInput extends i {
|
|
|
5406
5577
|
};
|
|
5407
5578
|
}
|
|
5408
5579
|
|
|
5409
|
-
|
|
5410
|
-
static get styles() {
|
|
5411
|
-
return [
|
|
5412
|
-
i$2`${colorCss$4}`,
|
|
5413
|
-
i$2`${styleCss$4}`,
|
|
5414
|
-
i$2`${tokensCss$4}`
|
|
5415
|
-
];
|
|
5416
|
-
}
|
|
5417
|
-
|
|
5418
5580
|
connectedCallback() {
|
|
5419
5581
|
super.connectedCallback();
|
|
5420
5582
|
|
|
5421
|
-
this.privateDefaults();
|
|
5422
|
-
|
|
5423
5583
|
notifyOnLangChange(this);
|
|
5424
5584
|
}
|
|
5425
5585
|
|
|
@@ -5429,15 +5589,21 @@ class BaseInput extends i {
|
|
|
5429
5589
|
}
|
|
5430
5590
|
|
|
5431
5591
|
firstUpdated() {
|
|
5592
|
+
// clicking anywhere in the main wrapper will focus the input. Clicking the helpText or label will not focus the input.
|
|
5593
|
+
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
5594
|
+
this.inputElement = this.renderRoot.querySelector('input');
|
|
5595
|
+
this.labelElement = this.shadowRoot.querySelector('label');
|
|
5596
|
+
|
|
5597
|
+
if (this.wrapperElement) {
|
|
5598
|
+
this.wrapperElement.addEventListener('click', this.handleClick);
|
|
5599
|
+
}
|
|
5600
|
+
|
|
5432
5601
|
// add attribute for query selectors when auro-input is registered under a custom name
|
|
5433
5602
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
5434
5603
|
this.setAttribute('auro-input', true);
|
|
5435
5604
|
}
|
|
5436
5605
|
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
5437
5606
|
|
|
5438
|
-
this.inputElement = this.renderRoot.querySelector('input');
|
|
5439
|
-
this.labelElement = this.shadowRoot.querySelector('label');
|
|
5440
|
-
|
|
5441
5607
|
if (this.format) {
|
|
5442
5608
|
this.format = this.format.toLowerCase();
|
|
5443
5609
|
}
|
|
@@ -5447,6 +5613,7 @@ class BaseInput extends i {
|
|
|
5447
5613
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
5448
5614
|
}
|
|
5449
5615
|
|
|
5616
|
+
this.getPlaceholder();
|
|
5450
5617
|
this.setCustomHelpTextMessage();
|
|
5451
5618
|
this.configureAutoFormatting();
|
|
5452
5619
|
}
|
|
@@ -5483,6 +5650,8 @@ class BaseInput extends i {
|
|
|
5483
5650
|
* @returns {void}
|
|
5484
5651
|
*/
|
|
5485
5652
|
updated(changedProperties) {
|
|
5653
|
+
super.updated(changedProperties);
|
|
5654
|
+
|
|
5486
5655
|
if (changedProperties.has('format')) {
|
|
5487
5656
|
this.configureAutoFormatting();
|
|
5488
5657
|
}
|
|
@@ -5532,9 +5701,9 @@ class BaseInput extends i {
|
|
|
5532
5701
|
if (!this.shadowRoot.contains(this.getActiveElement())) {
|
|
5533
5702
|
this.validation.validate(this);
|
|
5534
5703
|
}
|
|
5535
|
-
|
|
5536
|
-
this.notifyValueChanged();
|
|
5537
5704
|
}
|
|
5705
|
+
|
|
5706
|
+
this.notifyValueChanged();
|
|
5538
5707
|
}
|
|
5539
5708
|
|
|
5540
5709
|
if (changedProperties.has('error')) {
|
|
@@ -5603,15 +5772,6 @@ class BaseInput extends i {
|
|
|
5603
5772
|
return this.pattern;
|
|
5604
5773
|
}
|
|
5605
5774
|
|
|
5606
|
-
/**
|
|
5607
|
-
* Function to set element focus.
|
|
5608
|
-
* @private
|
|
5609
|
-
* @return {void}
|
|
5610
|
-
*/
|
|
5611
|
-
focus() {
|
|
5612
|
-
this.inputElement.focus();
|
|
5613
|
-
}
|
|
5614
|
-
|
|
5615
5775
|
/**
|
|
5616
5776
|
* Required to convert SVG icons from data to HTML string.
|
|
5617
5777
|
* @private
|
|
@@ -5641,6 +5801,24 @@ class BaseInput extends i {
|
|
|
5641
5801
|
this.dispatchEvent(inputEvent);
|
|
5642
5802
|
}
|
|
5643
5803
|
|
|
5804
|
+
|
|
5805
|
+
/**
|
|
5806
|
+
* Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
|
|
5807
|
+
* @private
|
|
5808
|
+
* @return {void}
|
|
5809
|
+
*/
|
|
5810
|
+
handleClick() {
|
|
5811
|
+
this.focus();
|
|
5812
|
+
}
|
|
5813
|
+
|
|
5814
|
+
/**
|
|
5815
|
+
* Function to set element focus.
|
|
5816
|
+
* @return {void}
|
|
5817
|
+
*/
|
|
5818
|
+
focus() {
|
|
5819
|
+
this.inputElement.focus();
|
|
5820
|
+
}
|
|
5821
|
+
|
|
5644
5822
|
/**
|
|
5645
5823
|
* Handles event of clearing input content by clicking the X icon.
|
|
5646
5824
|
* @private
|
|
@@ -5650,9 +5828,9 @@ class BaseInput extends i {
|
|
|
5650
5828
|
this.inputElement.value = "";
|
|
5651
5829
|
this.value = "";
|
|
5652
5830
|
this.labelElement.classList.remove('inputElement-label--sticky');
|
|
5831
|
+
this.notifyValueChanged();
|
|
5653
5832
|
this.focus();
|
|
5654
5833
|
this.validation.validate(this);
|
|
5655
|
-
this.notifyValueChanged();
|
|
5656
5834
|
}
|
|
5657
5835
|
|
|
5658
5836
|
/**
|
|
@@ -5688,10 +5866,23 @@ class BaseInput extends i {
|
|
|
5688
5866
|
* @return {void}
|
|
5689
5867
|
*/
|
|
5690
5868
|
handleFocusin() {
|
|
5869
|
+
this.hasFocus = true;
|
|
5870
|
+
|
|
5871
|
+
this.getPlaceholder();
|
|
5691
5872
|
|
|
5692
5873
|
this.touched = true;
|
|
5693
5874
|
}
|
|
5694
5875
|
|
|
5876
|
+
/**
|
|
5877
|
+
* Function to support @focusout event.
|
|
5878
|
+
* @private
|
|
5879
|
+
* @return {void}
|
|
5880
|
+
*/
|
|
5881
|
+
handleFocusout() {
|
|
5882
|
+
this.hasFocus = false;
|
|
5883
|
+
this.getPlaceholder();
|
|
5884
|
+
}
|
|
5885
|
+
|
|
5695
5886
|
/**
|
|
5696
5887
|
* Function to support @blur event.
|
|
5697
5888
|
* @private
|
|
@@ -5734,13 +5925,21 @@ class BaseInput extends i {
|
|
|
5734
5925
|
}
|
|
5735
5926
|
|
|
5736
5927
|
/**
|
|
5737
|
-
* Resets component to initial state.
|
|
5928
|
+
* Resets component to initial state, including resetting the touched state and validity.
|
|
5738
5929
|
* @returns {void}
|
|
5739
5930
|
*/
|
|
5740
5931
|
reset() {
|
|
5932
|
+
this.value = undefined;
|
|
5741
5933
|
this.validation.reset(this);
|
|
5742
5934
|
}
|
|
5743
5935
|
|
|
5936
|
+
/**
|
|
5937
|
+
* Clears the input value.
|
|
5938
|
+
*/
|
|
5939
|
+
clear() {
|
|
5940
|
+
this.value = undefined;
|
|
5941
|
+
}
|
|
5942
|
+
|
|
5744
5943
|
/**
|
|
5745
5944
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
5746
5945
|
* @private
|
|
@@ -5816,16 +6015,18 @@ class BaseInput extends i {
|
|
|
5816
6015
|
/**
|
|
5817
6016
|
* Support placeholder text.
|
|
5818
6017
|
* @private
|
|
5819
|
-
* @returns {
|
|
6018
|
+
* @returns {void}
|
|
5820
6019
|
*/
|
|
5821
6020
|
getPlaceholder() {
|
|
5822
6021
|
if (this.placeholder) {
|
|
5823
|
-
|
|
6022
|
+
this.placeholderStr = this.placeholder;
|
|
5824
6023
|
} else if (this.type === 'date') {
|
|
5825
|
-
|
|
6024
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5826
6025
|
}
|
|
5827
6026
|
|
|
5828
|
-
|
|
6027
|
+
this.requestUpdate();
|
|
6028
|
+
|
|
6029
|
+
return this.placeholderStr;
|
|
5829
6030
|
}
|
|
5830
6031
|
|
|
5831
6032
|
/**
|
|
@@ -5992,7 +6193,7 @@ class BaseInput extends i {
|
|
|
5992
6193
|
// See LICENSE in the project root for license information.
|
|
5993
6194
|
|
|
5994
6195
|
|
|
5995
|
-
|
|
6196
|
+
class AuroDependencyVersioning {
|
|
5996
6197
|
|
|
5997
6198
|
/**
|
|
5998
6199
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -6018,7 +6219,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
6018
6219
|
*/
|
|
6019
6220
|
generateTag(baseName, version, tagClass) {
|
|
6020
6221
|
const elementName = this.generateElementName(baseName, version);
|
|
6021
|
-
const tag = i$
|
|
6222
|
+
const tag = i$1`${s$1(elementName)}`;
|
|
6022
6223
|
|
|
6023
6224
|
if (!customElements.get(elementName)) {
|
|
6024
6225
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -6026,7 +6227,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
6026
6227
|
|
|
6027
6228
|
return tag;
|
|
6028
6229
|
}
|
|
6029
|
-
}
|
|
6230
|
+
}
|
|
6030
6231
|
|
|
6031
6232
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6032
6233
|
// See LICENSE in the project root for license information.
|
|
@@ -6038,7 +6239,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
6038
6239
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
6039
6240
|
*/
|
|
6040
6241
|
|
|
6041
|
-
class AuroElement extends i {
|
|
6242
|
+
let AuroElement$1 = class AuroElement extends i$2 {
|
|
6042
6243
|
|
|
6043
6244
|
// function to define props used within the scope of this component
|
|
6044
6245
|
static get properties() {
|
|
@@ -6062,7 +6263,7 @@ class AuroElement extends i {
|
|
|
6062
6263
|
|
|
6063
6264
|
return 'false'
|
|
6064
6265
|
}
|
|
6065
|
-
}
|
|
6266
|
+
};
|
|
6066
6267
|
|
|
6067
6268
|
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>"};
|
|
6068
6269
|
|
|
@@ -6094,7 +6295,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
6094
6295
|
return _fetchMap.get(uri);
|
|
6095
6296
|
};
|
|
6096
6297
|
|
|
6097
|
-
var styleCss$3 = i$
|
|
6298
|
+
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}`;
|
|
6098
6299
|
|
|
6099
6300
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6100
6301
|
// See LICENSE in the project root for license information.
|
|
@@ -6106,7 +6307,7 @@ var styleCss$3 = i$2`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
6106
6307
|
*/
|
|
6107
6308
|
|
|
6108
6309
|
// build the component class
|
|
6109
|
-
class BaseIcon extends AuroElement {
|
|
6310
|
+
class BaseIcon extends AuroElement$1 {
|
|
6110
6311
|
constructor() {
|
|
6111
6312
|
super();
|
|
6112
6313
|
this.onDark = false;
|
|
@@ -6136,7 +6337,7 @@ class BaseIcon extends AuroElement {
|
|
|
6136
6337
|
}
|
|
6137
6338
|
|
|
6138
6339
|
static get styles() {
|
|
6139
|
-
return i$
|
|
6340
|
+
return i$5`
|
|
6140
6341
|
${styleCss$3}
|
|
6141
6342
|
`;
|
|
6142
6343
|
}
|
|
@@ -6178,9 +6379,9 @@ class BaseIcon extends AuroElement {
|
|
|
6178
6379
|
}
|
|
6179
6380
|
}
|
|
6180
6381
|
|
|
6181
|
-
var tokensCss$3 = i$
|
|
6382
|
+
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)}`;
|
|
6182
6383
|
|
|
6183
|
-
var colorCss$3 = i$
|
|
6384
|
+
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)}`;
|
|
6184
6385
|
|
|
6185
6386
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6186
6387
|
// See LICENSE in the project root for license information.
|
|
@@ -6189,7 +6390,7 @@ var colorCss$3 = i$2`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
6189
6390
|
|
|
6190
6391
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6191
6392
|
|
|
6192
|
-
let AuroLibraryRuntimeUtils$
|
|
6393
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
6193
6394
|
|
|
6194
6395
|
/* eslint-disable jsdoc/require-param */
|
|
6195
6396
|
|
|
@@ -6271,7 +6472,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6271
6472
|
*/
|
|
6272
6473
|
privateDefaults() {
|
|
6273
6474
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6274
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6475
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
6275
6476
|
}
|
|
6276
6477
|
|
|
6277
6478
|
// function to define props used within the scope of this component
|
|
@@ -6299,7 +6500,8 @@ class AuroIcon extends BaseIcon {
|
|
|
6299
6500
|
* Allows custom color to be set.
|
|
6300
6501
|
*/
|
|
6301
6502
|
customColor: {
|
|
6302
|
-
type: Boolean
|
|
6503
|
+
type: Boolean,
|
|
6504
|
+
reflect: true
|
|
6303
6505
|
},
|
|
6304
6506
|
|
|
6305
6507
|
/**
|
|
@@ -6338,9 +6540,9 @@ class AuroIcon extends BaseIcon {
|
|
|
6338
6540
|
static get styles() {
|
|
6339
6541
|
return [
|
|
6340
6542
|
super.styles,
|
|
6341
|
-
i$
|
|
6342
|
-
i$
|
|
6343
|
-
i$
|
|
6543
|
+
i$5`${tokensCss$3}`,
|
|
6544
|
+
i$5`${styleCss$3}`,
|
|
6545
|
+
i$5`${colorCss$3}`
|
|
6344
6546
|
];
|
|
6345
6547
|
}
|
|
6346
6548
|
|
|
@@ -6353,7 +6555,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6353
6555
|
*
|
|
6354
6556
|
*/
|
|
6355
6557
|
static register(name = "auro-icon") {
|
|
6356
|
-
AuroLibraryRuntimeUtils$
|
|
6558
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
|
|
6357
6559
|
}
|
|
6358
6560
|
|
|
6359
6561
|
connectedCallback() {
|
|
@@ -6374,8 +6576,12 @@ class AuroIcon extends BaseIcon {
|
|
|
6374
6576
|
async firstUpdated() {
|
|
6375
6577
|
await super.firstUpdated();
|
|
6376
6578
|
|
|
6377
|
-
|
|
6378
|
-
|
|
6579
|
+
/**
|
|
6580
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
6581
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
6582
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
6583
|
+
*/
|
|
6584
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
6379
6585
|
const svgDesc = this.svg.querySelector('desc');
|
|
6380
6586
|
|
|
6381
6587
|
if (svgDesc) {
|
|
@@ -6399,9 +6605,9 @@ class AuroIcon extends BaseIcon {
|
|
|
6399
6605
|
return x`
|
|
6400
6606
|
<div class="componentWrapper">
|
|
6401
6607
|
<div
|
|
6402
|
-
class="${e
|
|
6403
|
-
title="${o
|
|
6404
|
-
<span aria-hidden="${o
|
|
6608
|
+
class="${e(svgClasses)}"
|
|
6609
|
+
title="${o(this.title || undefined)}">
|
|
6610
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
6405
6611
|
${this.customSvg ? x`
|
|
6406
6612
|
<slot name="svg"></slot>
|
|
6407
6613
|
` : x`
|
|
@@ -6411,7 +6617,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6411
6617
|
</span>
|
|
6412
6618
|
</div>
|
|
6413
6619
|
|
|
6414
|
-
<div class="${e
|
|
6620
|
+
<div class="${e(labelClasses)}">
|
|
6415
6621
|
<slot></slot>
|
|
6416
6622
|
</div>
|
|
6417
6623
|
</div>
|
|
@@ -6419,123 +6625,480 @@ class AuroIcon extends BaseIcon {
|
|
|
6419
6625
|
}
|
|
6420
6626
|
}
|
|
6421
6627
|
|
|
6422
|
-
var iconVersion = '8.0.
|
|
6628
|
+
var iconVersion = '8.0.4';
|
|
6423
6629
|
|
|
6424
|
-
|
|
6425
|
-
|
|
6630
|
+
/**
|
|
6631
|
+
* Private module-level WeakMap to hold MutationObservers for each host element.
|
|
6632
|
+
*/
|
|
6633
|
+
const _observers = new WeakMap();
|
|
6426
6634
|
|
|
6635
|
+
/**
|
|
6636
|
+
* Private module-level WeakMap to hold attribute matchers and targets for each host element.
|
|
6637
|
+
* Structure: {
|
|
6638
|
+
* host: {
|
|
6639
|
+
* matchers: Set<Function>,
|
|
6640
|
+
* targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
|
|
6641
|
+
* }
|
|
6642
|
+
* }
|
|
6643
|
+
*/
|
|
6644
|
+
const _transportConfig = new WeakMap();
|
|
6427
6645
|
|
|
6428
|
-
|
|
6646
|
+
/**
|
|
6647
|
+
* Transfers all matching attributes from a host element to a target element and observes for future changes.
|
|
6648
|
+
*
|
|
6649
|
+
* @param {Object} params - The parameters for the function.
|
|
6650
|
+
* @param {HTMLElement} params.host - The host element from which attributes will be transported.
|
|
6651
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6652
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
|
|
6653
|
+
* @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
|
|
6654
|
+
* @returns {Function} A function to detach the observer when no longer needed.
|
|
6655
|
+
* @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
|
|
6656
|
+
*/
|
|
6657
|
+
const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
|
|
6658
|
+
// Guard Clause: Ensure host is valid HTMLElement instance
|
|
6659
|
+
if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
|
|
6660
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
|
|
6661
|
+
}
|
|
6429
6662
|
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
6435
|
-
* @returns {string} - Unique string to be used for naming.
|
|
6436
|
-
*/
|
|
6437
|
-
generateElementName(baseName, version) {
|
|
6438
|
-
let result = baseName;
|
|
6663
|
+
// Guard Clause: Ensure target is valid HTMLElement instance
|
|
6664
|
+
if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
|
|
6665
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
|
|
6666
|
+
}
|
|
6439
6667
|
|
|
6440
|
-
|
|
6441
|
-
|
|
6668
|
+
// Guard Clause: Ensure match is a function
|
|
6669
|
+
if (typeof match !== 'function') {
|
|
6670
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
|
|
6671
|
+
}
|
|
6442
6672
|
|
|
6443
|
-
|
|
6673
|
+
// Guard Clause: Ensure removeOriginal is a boolean
|
|
6674
|
+
if (typeof removeOriginal !== 'boolean') {
|
|
6675
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
|
|
6444
6676
|
}
|
|
6677
|
+
|
|
6678
|
+
// Register this transport and get cleanup function
|
|
6679
|
+
return _registerTransport({
|
|
6680
|
+
host,
|
|
6681
|
+
target,
|
|
6682
|
+
matcher: match,
|
|
6683
|
+
removeOriginal
|
|
6684
|
+
});
|
|
6685
|
+
};
|
|
6445
6686
|
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6687
|
+
/**
|
|
6688
|
+
* Registers a matcher and target for a host element and attaches an observer if needed.
|
|
6689
|
+
*
|
|
6690
|
+
* @param {Object} params - The parameters object.
|
|
6691
|
+
* @param {HTMLElement} params.host - The host element to observe.
|
|
6692
|
+
* @param {HTMLElement} params.target - The target element to receive attributes.
|
|
6693
|
+
* @param {Function} params.matcher - Function that determines which attributes to transport.
|
|
6694
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
|
|
6695
|
+
* @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
|
|
6696
|
+
* @returns {Function} Function to detach the specific matcher and target pairing.
|
|
6697
|
+
* @private
|
|
6698
|
+
*/
|
|
6699
|
+
const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6700
|
+
// Initialize config for this host if it doesn't exist
|
|
6701
|
+
if (!_transportConfig.has(host)) {
|
|
6702
|
+
_transportConfig.set(host, {
|
|
6703
|
+
matchers: new Set(),
|
|
6704
|
+
targets: new Map()
|
|
6705
|
+
});
|
|
6706
|
+
}
|
|
6455
6707
|
|
|
6456
|
-
|
|
6457
|
-
|
|
6708
|
+
const config = _transportConfig.get(host);
|
|
6709
|
+
|
|
6710
|
+
// Add the matcher to the set of matchers for this host
|
|
6711
|
+
config.matchers.add(matcher);
|
|
6712
|
+
|
|
6713
|
+
// Initialize target entry if it doesn't exist
|
|
6714
|
+
if (!config.targets.has(target)) {
|
|
6715
|
+
config.targets.set(target, new Map());
|
|
6716
|
+
}
|
|
6717
|
+
|
|
6718
|
+
// Store the matcher with its removeOriginal setting for this target
|
|
6719
|
+
config.targets.get(target).set(matcher, {
|
|
6720
|
+
removeOriginal,
|
|
6721
|
+
currentAttributes: new Map()
|
|
6722
|
+
});
|
|
6723
|
+
|
|
6724
|
+
// Perform initial attribute transport
|
|
6725
|
+
_transportAttributes({ host, target, matcher, removeOriginal });
|
|
6726
|
+
|
|
6727
|
+
// Attach observer
|
|
6728
|
+
_attachObserver(host);
|
|
6729
|
+
|
|
6730
|
+
// Return cleanup function and utility functions
|
|
6731
|
+
return {
|
|
6732
|
+
cleanup: () => _cleanupTransport(host, target, matcher),
|
|
6733
|
+
getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
|
|
6734
|
+
getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
|
|
6735
|
+
}
|
|
6736
|
+
};
|
|
6737
|
+
|
|
6738
|
+
/**
|
|
6739
|
+
* Cleans up resources associated with a specific matcher and target for a host element.
|
|
6740
|
+
*
|
|
6741
|
+
* @param {HTMLElement} host - The host element
|
|
6742
|
+
* @param {HTMLElement} target - The target element
|
|
6743
|
+
* @param {Function} matcher - The matcher function
|
|
6744
|
+
* @private
|
|
6745
|
+
*/
|
|
6746
|
+
const _cleanupTransport = (host, target, matcher) => {
|
|
6747
|
+
const config = _transportConfig.get(host);
|
|
6748
|
+
if (!config) return;
|
|
6749
|
+
|
|
6750
|
+
// Remove this matcher from this target
|
|
6751
|
+
const targetMatchers = config.targets.get(target);
|
|
6752
|
+
if (targetMatchers) {
|
|
6753
|
+
targetMatchers.delete(matcher);
|
|
6754
|
+
|
|
6755
|
+
// If this target has no more matchers, remove it
|
|
6756
|
+
if (targetMatchers.size === 0) {
|
|
6757
|
+
config.targets.delete(target);
|
|
6758
|
+
}
|
|
6759
|
+
}
|
|
6760
|
+
|
|
6761
|
+
// Check if this matcher is still used by any target
|
|
6762
|
+
let matcherStillUsed = false;
|
|
6763
|
+
for (const matcherMap of config.targets.values()) {
|
|
6764
|
+
if (matcherMap.has(matcher)) {
|
|
6765
|
+
matcherStillUsed = true;
|
|
6766
|
+
break;
|
|
6767
|
+
}
|
|
6768
|
+
}
|
|
6769
|
+
|
|
6770
|
+
// If not used anymore, remove from matchers set
|
|
6771
|
+
if (!matcherStillUsed) {
|
|
6772
|
+
config.matchers.delete(matcher);
|
|
6773
|
+
}
|
|
6774
|
+
|
|
6775
|
+
// If no more targets or matchers, detach observer
|
|
6776
|
+
if (config.targets.size === 0 || config.matchers.size === 0) {
|
|
6777
|
+
_detachObserver(host);
|
|
6778
|
+
}
|
|
6779
|
+
};
|
|
6780
|
+
|
|
6781
|
+
/**
|
|
6782
|
+
* Generic function to transport attributes from a host element to a target element.
|
|
6783
|
+
*
|
|
6784
|
+
* @param {Object} params - The parameters object.
|
|
6785
|
+
* @param {HTMLElement} params.host - The host element from which to transport attributes.
|
|
6786
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6787
|
+
* @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
|
|
6788
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
|
|
6789
|
+
* @returns {void}
|
|
6790
|
+
* @private
|
|
6791
|
+
*/
|
|
6792
|
+
const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6793
|
+
// Get a list of all matching attributes on the host element and their values
|
|
6794
|
+
const matchingAttributes = host.getAttributeNames()
|
|
6795
|
+
.filter(attr => matcher(attr))
|
|
6796
|
+
.reduce((acc, attr) => {
|
|
6797
|
+
acc[attr] = host.getAttribute(attr);
|
|
6798
|
+
return acc;
|
|
6799
|
+
}, {});
|
|
6800
|
+
|
|
6801
|
+
// Move matching attributes to the target element, removing them from the host if removeOriginal is true
|
|
6802
|
+
Object.entries(matchingAttributes).forEach(([key, value]) => {
|
|
6803
|
+
_setObservedAttribute(host, target, matcher, key, value);
|
|
6804
|
+
target.setAttribute(key, value);
|
|
6805
|
+
if (removeOriginal) {
|
|
6806
|
+
host.removeAttribute(key);
|
|
6458
6807
|
}
|
|
6808
|
+
});
|
|
6809
|
+
};
|
|
6459
6810
|
|
|
6460
|
-
|
|
6811
|
+
/**
|
|
6812
|
+
* Attaches a MutationObserver to the host element to monitor attribute changes.
|
|
6813
|
+
*
|
|
6814
|
+
* @param {HTMLElement} host - The element to observe for attribute changes.
|
|
6815
|
+
* @returns {MutationObserver} The observer instance.
|
|
6816
|
+
* @private
|
|
6817
|
+
*/
|
|
6818
|
+
const _attachObserver = (host) => {
|
|
6819
|
+
// If an observer for this host already exists, return it
|
|
6820
|
+
if (_observers.has(host)) {
|
|
6821
|
+
return _observers.get(host);
|
|
6822
|
+
}
|
|
6823
|
+
|
|
6824
|
+
// Create a new MutationObserver
|
|
6825
|
+
const observer = new MutationObserver((mutations) => {
|
|
6826
|
+
const config = _transportConfig.get(host);
|
|
6827
|
+
if (!config) return;
|
|
6828
|
+
|
|
6829
|
+
// For each mutation affecting attributes
|
|
6830
|
+
mutations
|
|
6831
|
+
.filter(mutation => mutation.type === 'attributes')
|
|
6832
|
+
.forEach(mutation => {
|
|
6833
|
+
const attributeName = mutation.attributeName;
|
|
6834
|
+
|
|
6835
|
+
// Find matchers that care about this attribute
|
|
6836
|
+
for (const matcher of config.matchers) {
|
|
6837
|
+
if (matcher(attributeName)) {
|
|
6838
|
+
// For each target that uses this matcher
|
|
6839
|
+
for (const [target, matcherConfigs] of config.targets.entries()) {
|
|
6840
|
+
if (matcherConfigs.has(matcher)) {
|
|
6841
|
+
const { removeOriginal } = matcherConfigs.get(matcher);
|
|
6842
|
+
_transportAttributes({
|
|
6843
|
+
host,
|
|
6844
|
+
target,
|
|
6845
|
+
matcher,
|
|
6846
|
+
removeOriginal
|
|
6847
|
+
});
|
|
6848
|
+
}
|
|
6849
|
+
}
|
|
6850
|
+
}
|
|
6851
|
+
}
|
|
6852
|
+
});
|
|
6853
|
+
});
|
|
6854
|
+
|
|
6855
|
+
// Start observing attribute changes
|
|
6856
|
+
observer.observe(host, { attributes: true });
|
|
6857
|
+
|
|
6858
|
+
// Store the observer
|
|
6859
|
+
_observers.set(host, observer);
|
|
6860
|
+
|
|
6861
|
+
return observer;
|
|
6862
|
+
};
|
|
6863
|
+
|
|
6864
|
+
/**
|
|
6865
|
+
* Detaches and cleans up the MutationObserver for a given host element.
|
|
6866
|
+
*
|
|
6867
|
+
* @param {HTMLElement} host - The element whose observer should be detached.
|
|
6868
|
+
* @private
|
|
6869
|
+
*/
|
|
6870
|
+
const _detachObserver = (host) => {
|
|
6871
|
+
if (_observers.has(host)) {
|
|
6872
|
+
const observer = _observers.get(host);
|
|
6873
|
+
observer.disconnect();
|
|
6874
|
+
_observers.delete(host);
|
|
6461
6875
|
}
|
|
6462
|
-
|
|
6876
|
+
|
|
6877
|
+
// Clean up the transport config as well
|
|
6878
|
+
if (_transportConfig.has(host)) {
|
|
6879
|
+
_transportConfig.delete(host);
|
|
6880
|
+
}
|
|
6881
|
+
};
|
|
6463
6882
|
|
|
6464
|
-
|
|
6465
|
-
|
|
6883
|
+
/**
|
|
6884
|
+
* Gets the matcher configuration for a specific host, target, and matcher
|
|
6885
|
+
* @param {HTMLElement} host - The host element
|
|
6886
|
+
* @param {HTMLElement} target - The target element
|
|
6887
|
+
* @param {Function} matcher - The matcher function
|
|
6888
|
+
* @returns {Object|undefined} The matcher configuration if found
|
|
6889
|
+
* @private
|
|
6890
|
+
*/
|
|
6891
|
+
const _getMatcherConfig = (host, target, matcher) => {
|
|
6892
|
+
const config = _transportConfig.get(host);
|
|
6893
|
+
if (!config) return undefined;
|
|
6894
|
+
|
|
6895
|
+
const targetMatchers = config.targets.get(target);
|
|
6896
|
+
if (!targetMatchers) return undefined;
|
|
6897
|
+
|
|
6898
|
+
return targetMatchers.get(matcher);
|
|
6899
|
+
};
|
|
6466
6900
|
|
|
6467
|
-
|
|
6901
|
+
/**
|
|
6902
|
+
* Sets an observed attribute value
|
|
6903
|
+
* @param {HTMLElement} host - The host element
|
|
6904
|
+
* @param {HTMLElement} target - The target element
|
|
6905
|
+
* @param {Function} matcher - The matcher function
|
|
6906
|
+
* @param {string} key - The attribute name
|
|
6907
|
+
* @param {string} value - The attribute value
|
|
6908
|
+
* @private
|
|
6909
|
+
*/
|
|
6910
|
+
const _setObservedAttribute = (host, target, matcher, key, value) => {
|
|
6911
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6912
|
+
if (matcherConfig) {
|
|
6913
|
+
matcherConfig.currentAttributes.set(key, value);
|
|
6914
|
+
}
|
|
6915
|
+
};
|
|
6468
6916
|
|
|
6469
|
-
|
|
6917
|
+
const _getObservedAttribute = (host, target, matcher, attr) => {
|
|
6918
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6919
|
+
if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
|
|
6920
|
+
return undefined;
|
|
6921
|
+
};
|
|
6470
6922
|
|
|
6471
|
-
|
|
6923
|
+
const _getObservedAttributes = (host, target, matcher) => {
|
|
6924
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6925
|
+
if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
|
|
6926
|
+
return [];
|
|
6927
|
+
};
|
|
6472
6928
|
|
|
6473
|
-
|
|
6929
|
+
const _matchers = {
|
|
6930
|
+
'aria-': attr => attr.startsWith('aria-'),
|
|
6931
|
+
'role': attr => attr.match(/^role$/)
|
|
6932
|
+
};
|
|
6933
|
+
|
|
6934
|
+
const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
|
|
6935
|
+
return transportAttributes({
|
|
6936
|
+
host,
|
|
6937
|
+
target,
|
|
6938
|
+
match: attr => {
|
|
6939
|
+
for (const key in _matchers) {
|
|
6940
|
+
if (_matchers[key](attr)) return true;
|
|
6941
|
+
}
|
|
6942
|
+
return false;
|
|
6943
|
+
},
|
|
6944
|
+
removeOriginal
|
|
6945
|
+
});
|
|
6946
|
+
};
|
|
6947
|
+
|
|
6948
|
+
class AuroElement extends i$2 {
|
|
6474
6949
|
|
|
6475
6950
|
/**
|
|
6476
|
-
*
|
|
6477
|
-
* @
|
|
6478
|
-
* @
|
|
6479
|
-
* @
|
|
6951
|
+
* @type {Object} return object from transportAttributes via a11yUtilities
|
|
6952
|
+
* @property {Function} cleanup - Function to clean up the attribute watcher.
|
|
6953
|
+
* @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
|
|
6954
|
+
* @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
|
|
6955
|
+
* @private
|
|
6480
6956
|
*/
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6957
|
+
attributeWatcher;
|
|
6958
|
+
|
|
6959
|
+
static get properties() {
|
|
6960
|
+
return {
|
|
6961
|
+
|
|
6962
|
+
/**
|
|
6963
|
+
* Defines the layout of an element.
|
|
6964
|
+
* @default {'default'}
|
|
6965
|
+
*/
|
|
6966
|
+
layout: {
|
|
6967
|
+
type: String,
|
|
6968
|
+
attribute: "layout",
|
|
6969
|
+
reflect: true
|
|
6970
|
+
},
|
|
6971
|
+
|
|
6972
|
+
/**
|
|
6973
|
+
* Defines the shape of an element.
|
|
6974
|
+
* @property {'default', 'rounded', 'pill', 'circle'}
|
|
6975
|
+
* @default {'default'}
|
|
6976
|
+
*/
|
|
6977
|
+
shape: {
|
|
6978
|
+
type: String,
|
|
6979
|
+
attribute: "shape",
|
|
6980
|
+
reflect: true
|
|
6981
|
+
},
|
|
6982
|
+
|
|
6983
|
+
/**
|
|
6984
|
+
* Defines the size of an element.
|
|
6985
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'}
|
|
6986
|
+
* @default {'md'}
|
|
6987
|
+
*/
|
|
6988
|
+
size: {
|
|
6989
|
+
type: String,
|
|
6990
|
+
attribute: "size",
|
|
6991
|
+
reflect: true
|
|
6992
|
+
},
|
|
6993
|
+
|
|
6994
|
+
/**
|
|
6995
|
+
* This Boolean attribute lets you specify that the element should be rendered in dark mode.
|
|
6996
|
+
* @default {false}
|
|
6997
|
+
*/
|
|
6998
|
+
onDark: {
|
|
6999
|
+
type: Boolean,
|
|
7000
|
+
attribute: "ondark",
|
|
7001
|
+
reflect: true
|
|
7002
|
+
},
|
|
7003
|
+
|
|
7004
|
+
/**
|
|
7005
|
+
* A reference to the wrapper element in the shadow DOM.
|
|
7006
|
+
* This is used to apply layout and shape classes dynamically.
|
|
7007
|
+
* @type {HTMLElement|null}
|
|
7008
|
+
* @default {null}
|
|
7009
|
+
* @private
|
|
7010
|
+
*/
|
|
7011
|
+
wrapper: {
|
|
7012
|
+
attribute: false,
|
|
7013
|
+
reflect: false
|
|
7014
|
+
}
|
|
7015
|
+
};
|
|
7016
|
+
}
|
|
7017
|
+
|
|
7018
|
+
|
|
7019
|
+
|
|
7020
|
+
resetShapeClasses() {
|
|
7021
|
+
if (this.shape && this.size) {
|
|
7022
|
+
|
|
7023
|
+
if (this.wrapper) {
|
|
7024
|
+
this.wrapper.classList.forEach((className) => {
|
|
7025
|
+
if (className.startsWith('shape-')) {
|
|
7026
|
+
this.wrapper.classList.remove(className);
|
|
7027
|
+
}
|
|
7028
|
+
});
|
|
7029
|
+
|
|
7030
|
+
this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
7031
|
+
}
|
|
6484
7032
|
}
|
|
6485
7033
|
}
|
|
6486
7034
|
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6500
|
-
) {
|
|
6501
|
-
return __Closest(base);
|
|
7035
|
+
resetLayoutClasses() {
|
|
7036
|
+
if (this.layout) {
|
|
7037
|
+
if (this.wrapper) {
|
|
7038
|
+
this.wrapper.classList.forEach((className) => {
|
|
7039
|
+
if (className.startsWith('layout-')) {
|
|
7040
|
+
this.wrapper.classList.remove(className);
|
|
7041
|
+
}
|
|
7042
|
+
});
|
|
7043
|
+
|
|
7044
|
+
this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
7045
|
+
}
|
|
7046
|
+
}
|
|
6502
7047
|
}
|
|
6503
|
-
/* eslint-enable jsdoc/require-param */
|
|
6504
7048
|
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
* @returns {void}
|
|
6510
|
-
*/
|
|
6511
|
-
handleComponentTagRename(elem, tagName) {
|
|
6512
|
-
const tag = tagName.toLowerCase();
|
|
6513
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
7049
|
+
updateComponentArchitecture() {
|
|
7050
|
+
this.resetLayoutClasses();
|
|
7051
|
+
this.resetShapeClasses();
|
|
7052
|
+
}
|
|
6514
7053
|
|
|
6515
|
-
|
|
6516
|
-
|
|
7054
|
+
updated(changedProperties) {
|
|
7055
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
7056
|
+
this.updateComponentArchitecture();
|
|
6517
7057
|
}
|
|
6518
7058
|
}
|
|
6519
7059
|
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
* @param {Object} elem - The element to validate.
|
|
6523
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
6524
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6525
|
-
*/
|
|
6526
|
-
elementMatch(elem, tagName) {
|
|
6527
|
-
const tag = tagName.toLowerCase();
|
|
6528
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
7060
|
+
firstUpdated() {
|
|
7061
|
+
super.firstUpdated();
|
|
6529
7062
|
|
|
6530
|
-
|
|
7063
|
+
// Set a reference to the wrapper element in the shadow DOM
|
|
7064
|
+
this.wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
7065
|
+
|
|
7066
|
+
// Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
|
|
7067
|
+
this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
|
|
6531
7068
|
}
|
|
6532
|
-
};
|
|
6533
7069
|
|
|
6534
|
-
|
|
7070
|
+
disconnectedCallback() {
|
|
7071
|
+
super.disconnectedCallback();
|
|
7072
|
+
|
|
7073
|
+
// Cleanup the ARIA observer if it exists
|
|
7074
|
+
if (this.attributeWatcher) {
|
|
7075
|
+
this.attributeWatcher.cleanup();
|
|
7076
|
+
this.attributeWatcher = null;
|
|
7077
|
+
}
|
|
7078
|
+
}
|
|
7079
|
+
|
|
7080
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
7081
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
7082
|
+
render() {
|
|
7083
|
+
try {
|
|
7084
|
+
return this.renderLayout();
|
|
7085
|
+
} catch (error) {
|
|
7086
|
+
// failed to get the defined layout
|
|
7087
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
7088
|
+
|
|
7089
|
+
// fallback to the default layout
|
|
7090
|
+
return this.getLayout('default');
|
|
7091
|
+
}
|
|
7092
|
+
}
|
|
7093
|
+
}
|
|
7094
|
+
|
|
7095
|
+
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}`;
|
|
6535
7096
|
|
|
6536
|
-
var colorCss$2 = i$2`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{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-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-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=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[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-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-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-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=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}`;
|
|
7097
|
+
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)}`;
|
|
6537
7098
|
|
|
6538
|
-
var tokensCss$2 = i$
|
|
7099
|
+
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}`;
|
|
7100
|
+
|
|
7101
|
+
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}`;
|
|
6539
7102
|
|
|
6540
7103
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6541
7104
|
// See LICENSE in the project root for license information.
|
|
@@ -6607,17 +7170,17 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
6607
7170
|
}
|
|
6608
7171
|
};
|
|
6609
7172
|
|
|
6610
|
-
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}}`;
|
|
7173
|
+
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}}`;
|
|
6611
7174
|
|
|
6612
|
-
var colorCss$1 = i$
|
|
7175
|
+
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}`;
|
|
6613
7176
|
|
|
6614
|
-
var tokensCss$1 = i$
|
|
7177
|
+
var tokensCss$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
6615
7178
|
|
|
6616
7179
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6617
7180
|
// See LICENSE in the project root for license information.
|
|
6618
7181
|
|
|
6619
7182
|
|
|
6620
|
-
class AuroLoader extends i {
|
|
7183
|
+
class AuroLoader extends i$2 {
|
|
6621
7184
|
constructor() {
|
|
6622
7185
|
super();
|
|
6623
7186
|
|
|
@@ -6687,9 +7250,9 @@ class AuroLoader extends i {
|
|
|
6687
7250
|
|
|
6688
7251
|
static get styles() {
|
|
6689
7252
|
return [
|
|
6690
|
-
i$
|
|
6691
|
-
i$
|
|
6692
|
-
i$
|
|
7253
|
+
i$5`${styleCss$1}`,
|
|
7254
|
+
i$5`${colorCss$1}`,
|
|
7255
|
+
i$5`${tokensCss$1}`
|
|
6693
7256
|
];
|
|
6694
7257
|
}
|
|
6695
7258
|
|
|
@@ -6740,7 +7303,7 @@ class AuroLoader extends i {
|
|
|
6740
7303
|
<span part="element" class="loader node-${idx}"></span>
|
|
6741
7304
|
`)}
|
|
6742
7305
|
|
|
6743
|
-
<div class="no-animation">Loading...</div>
|
|
7306
|
+
<div class="no-animation body-default">Loading...</div>
|
|
6744
7307
|
|
|
6745
7308
|
${this.ringworm ? x`
|
|
6746
7309
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
@@ -6752,46 +7315,32 @@ class AuroLoader extends i {
|
|
|
6752
7315
|
}
|
|
6753
7316
|
}
|
|
6754
7317
|
|
|
6755
|
-
var loaderVersion = '5.
|
|
7318
|
+
var loaderVersion = '5.1.0';
|
|
6756
7319
|
|
|
6757
|
-
/* eslint-disable max-lines */
|
|
6758
7320
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6759
7321
|
// See LICENSE in the project root for license information.
|
|
6760
7322
|
|
|
6761
7323
|
|
|
6762
7324
|
/**
|
|
6763
|
-
* @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
|
|
6764
|
-
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
6765
|
-
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
6766
|
-
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
6767
|
-
* @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.
|
|
6768
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
6769
|
-
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
6770
|
-
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
6771
|
-
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
6772
|
-
* @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.
|
|
6773
|
-
* @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.
|
|
6774
|
-
* @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.
|
|
6775
|
-
* @attr {String} id - Set the unique ID of an element.
|
|
6776
|
-
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
6777
|
-
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
6778
|
-
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
6779
|
-
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
6780
|
-
* @attr {Boolean} secondary - DEPRECATED
|
|
6781
|
-
* @attr {Boolean} tertiary - DEPRECATED
|
|
6782
|
-
* @prop {Boolean} ready - When false the component API should not be called.
|
|
6783
|
-
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
6784
7325
|
* @slot - Default slot for the text of the button.
|
|
6785
|
-
* @slot icon - Slot to provide auro-icon for the button.
|
|
6786
7326
|
* @csspart button - Apply CSS to HTML5 button.
|
|
6787
7327
|
* @csspart loader - Apply CSS to auro-loader.
|
|
6788
7328
|
* @csspart text - Apply CSS to text slot.
|
|
6789
7329
|
* @csspart icon - Apply CSS to icon slot.
|
|
6790
7330
|
*/
|
|
6791
7331
|
|
|
6792
|
-
|
|
7332
|
+
const ICON_ONLY_SHAPES = ['circle', 'square'];
|
|
6793
7333
|
|
|
6794
|
-
|
|
7334
|
+
/**
|
|
7335
|
+
* AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
|
|
7336
|
+
* It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
|
|
7337
|
+
* @property {'default', 'rounded', 'pill', 'circle', 'square'} shape - Defines the shape of the button.
|
|
7338
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
|
|
7339
|
+
* @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
|
|
7340
|
+
* @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
|
|
7341
|
+
* @property {boolean} onDark - Indicates if the button is rendered in dark mode.
|
|
7342
|
+
*/
|
|
7343
|
+
class AuroButton extends AuroElement {
|
|
6795
7344
|
|
|
6796
7345
|
/**
|
|
6797
7346
|
* Enables form association for this element.
|
|
@@ -6804,19 +7353,15 @@ class AuroButton extends i {
|
|
|
6804
7353
|
|
|
6805
7354
|
constructor() {
|
|
6806
7355
|
super();
|
|
6807
|
-
|
|
6808
7356
|
this.autofocus = false;
|
|
6809
7357
|
this.disabled = false;
|
|
6810
|
-
this.iconOnly = false;
|
|
6811
7358
|
this.loading = false;
|
|
7359
|
+
this.size = "md";
|
|
7360
|
+
this.shape = "rounded";
|
|
6812
7361
|
this.onDark = false;
|
|
6813
|
-
this.ready = false;
|
|
6814
|
-
this.secondary = false;
|
|
6815
|
-
this.tertiary = false;
|
|
6816
|
-
this.rounded = false;
|
|
6817
|
-
this.slim = false;
|
|
6818
7362
|
this.fluid = false;
|
|
6819
7363
|
this.loadingText = this.loadingText || 'Loading...';
|
|
7364
|
+
this.variant = 'primary';
|
|
6820
7365
|
|
|
6821
7366
|
// Support for HTML5 forms
|
|
6822
7367
|
if (typeof this.attachInternals === 'function') {
|
|
@@ -6837,90 +7382,157 @@ class AuroButton extends i {
|
|
|
6837
7382
|
* @private
|
|
6838
7383
|
*/
|
|
6839
7384
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
7385
|
+
|
|
7386
|
+
/**
|
|
7387
|
+
* @private
|
|
7388
|
+
*/
|
|
7389
|
+
this.buttonHref = undefined;
|
|
7390
|
+
|
|
7391
|
+
/**
|
|
7392
|
+
* @private
|
|
7393
|
+
*/
|
|
7394
|
+
this.buttonTarget = undefined;
|
|
7395
|
+
|
|
7396
|
+
/**
|
|
7397
|
+
* @private
|
|
7398
|
+
*/
|
|
7399
|
+
this.buttonRel = undefined;
|
|
6840
7400
|
}
|
|
6841
7401
|
|
|
6842
7402
|
static get styles() {
|
|
6843
7403
|
return [
|
|
6844
7404
|
tokensCss$2,
|
|
6845
7405
|
styleCss$2,
|
|
6846
|
-
colorCss$2
|
|
7406
|
+
colorCss$2,
|
|
7407
|
+
shapeSize
|
|
6847
7408
|
];
|
|
6848
7409
|
}
|
|
6849
7410
|
|
|
6850
7411
|
static get properties() {
|
|
6851
7412
|
return {
|
|
6852
|
-
|
|
7413
|
+
|
|
7414
|
+
...super.properties,
|
|
7415
|
+
|
|
7416
|
+
/**
|
|
7417
|
+
* Override layout since it isn't used in this component.
|
|
7418
|
+
* @private
|
|
7419
|
+
*/
|
|
7420
|
+
layout: {
|
|
6853
7421
|
type: Boolean,
|
|
6854
|
-
|
|
7422
|
+
attribute: false,
|
|
7423
|
+
reflect: false
|
|
6855
7424
|
},
|
|
6856
|
-
|
|
7425
|
+
|
|
7426
|
+
/**
|
|
7427
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
7428
|
+
*/
|
|
7429
|
+
autofocus: {
|
|
6857
7430
|
type: Boolean,
|
|
6858
7431
|
reflect: true
|
|
6859
7432
|
},
|
|
6860
|
-
|
|
7433
|
+
|
|
7434
|
+
/**
|
|
7435
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
7436
|
+
*/
|
|
7437
|
+
disabled: {
|
|
6861
7438
|
type: Boolean,
|
|
6862
7439
|
reflect: true
|
|
6863
7440
|
},
|
|
6864
|
-
|
|
7441
|
+
|
|
7442
|
+
/**
|
|
7443
|
+
* Alters the shape of the button to be full width of its parent container.
|
|
7444
|
+
*/
|
|
7445
|
+
fluid: {
|
|
6865
7446
|
type: Boolean,
|
|
6866
7447
|
reflect: true
|
|
6867
7448
|
},
|
|
6868
|
-
|
|
7449
|
+
|
|
7450
|
+
/**
|
|
7451
|
+
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
7452
|
+
*/
|
|
7453
|
+
loading: {
|
|
6869
7454
|
type: Boolean,
|
|
6870
7455
|
reflect: true
|
|
6871
7456
|
},
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
7457
|
+
|
|
7458
|
+
/**
|
|
7459
|
+
* 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.
|
|
7460
|
+
*/
|
|
7461
|
+
loadingText: {
|
|
7462
|
+
type: String
|
|
6875
7463
|
},
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
type: String
|
|
6882
|
-
},
|
|
6883
|
-
onDark: {
|
|
6884
|
-
type: Boolean,
|
|
6885
|
-
reflect: true
|
|
6886
|
-
},
|
|
6887
|
-
rounded: {
|
|
6888
|
-
type: Boolean,
|
|
7464
|
+
|
|
7465
|
+
/**
|
|
7466
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7467
|
+
*/
|
|
7468
|
+
tIndex: {
|
|
7469
|
+
type: String,
|
|
6889
7470
|
reflect: true
|
|
6890
7471
|
},
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
7472
|
+
|
|
7473
|
+
/**
|
|
7474
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7475
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
7476
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`.
|
|
7477
|
+
*/
|
|
7478
|
+
tabindex: {
|
|
7479
|
+
type: String,
|
|
7480
|
+
reflect: false
|
|
6894
7481
|
},
|
|
6895
|
-
|
|
7482
|
+
|
|
7483
|
+
/**
|
|
7484
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
7485
|
+
*/
|
|
7486
|
+
title: {
|
|
6896
7487
|
type: String,
|
|
6897
7488
|
reflect: true
|
|
6898
7489
|
},
|
|
6899
|
-
|
|
7490
|
+
|
|
7491
|
+
/**
|
|
7492
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
7493
|
+
*/
|
|
7494
|
+
type: {
|
|
6900
7495
|
type: String,
|
|
6901
7496
|
reflect: true
|
|
6902
7497
|
},
|
|
6903
|
-
|
|
6904
|
-
|
|
7498
|
+
|
|
7499
|
+
/**
|
|
7500
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
7501
|
+
*/
|
|
7502
|
+
value: {
|
|
7503
|
+
type: String,
|
|
6905
7504
|
reflect: true
|
|
6906
7505
|
},
|
|
6907
|
-
|
|
7506
|
+
|
|
7507
|
+
/**
|
|
7508
|
+
* Sets button variant option.
|
|
7509
|
+
* @default primary
|
|
7510
|
+
*/
|
|
7511
|
+
variant: {
|
|
6908
7512
|
type: String,
|
|
6909
7513
|
reflect: true
|
|
6910
7514
|
},
|
|
6911
|
-
|
|
7515
|
+
|
|
7516
|
+
/**
|
|
7517
|
+
* @private
|
|
7518
|
+
*/
|
|
7519
|
+
buttonHref: {
|
|
6912
7520
|
type: String,
|
|
6913
|
-
reflect: true
|
|
6914
7521
|
},
|
|
6915
|
-
|
|
7522
|
+
|
|
7523
|
+
/**
|
|
7524
|
+
* @private
|
|
7525
|
+
*/
|
|
7526
|
+
buttonTarget: {
|
|
6916
7527
|
type: String,
|
|
6917
|
-
reflect: true
|
|
6918
7528
|
},
|
|
6919
|
-
|
|
7529
|
+
|
|
7530
|
+
/**
|
|
7531
|
+
* @private
|
|
7532
|
+
*/
|
|
7533
|
+
buttonRel: {
|
|
6920
7534
|
type: String,
|
|
6921
|
-
reflect: true
|
|
6922
7535
|
},
|
|
6923
|
-
ready: { type: Boolean },
|
|
6924
7536
|
};
|
|
6925
7537
|
}
|
|
6926
7538
|
|
|
@@ -6933,7 +7545,7 @@ class AuroButton extends i {
|
|
|
6933
7545
|
*
|
|
6934
7546
|
*/
|
|
6935
7547
|
static register(name = "auro-button") {
|
|
6936
|
-
AuroLibraryRuntimeUtils$
|
|
7548
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
6937
7549
|
}
|
|
6938
7550
|
|
|
6939
7551
|
/**
|
|
@@ -6946,107 +7558,174 @@ class AuroButton extends i {
|
|
|
6946
7558
|
}
|
|
6947
7559
|
|
|
6948
7560
|
/**
|
|
6949
|
-
*
|
|
7561
|
+
* Submits the form that this button is associated with.
|
|
6950
7562
|
* @private
|
|
6951
7563
|
* @returns {void}
|
|
6952
7564
|
*/
|
|
6953
|
-
|
|
6954
|
-
this.
|
|
7565
|
+
surfaceSubmitEvent() {
|
|
7566
|
+
if (this.form) {
|
|
7567
|
+
this.form.requestSubmit();
|
|
7568
|
+
}
|
|
7569
|
+
}
|
|
6955
7570
|
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
7571
|
+
/**
|
|
7572
|
+
* Returns the form element that this button is associated with.
|
|
7573
|
+
* @private
|
|
7574
|
+
* @returns {HTMLFormElement | null}
|
|
7575
|
+
*/
|
|
7576
|
+
get form() {
|
|
7577
|
+
return this.internals ? this.internals.form : null;
|
|
6961
7578
|
}
|
|
6962
7579
|
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
7580
|
+
/**
|
|
7581
|
+
* @private
|
|
7582
|
+
* @returns {Boolean}
|
|
7583
|
+
*/
|
|
7584
|
+
get showText() {
|
|
7585
|
+
return !ICON_ONLY_SHAPES.includes(this.shape);
|
|
7586
|
+
}
|
|
6968
7587
|
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
7588
|
+
/**
|
|
7589
|
+
* Returns the current value of the projected `aria-label` attribute or undefined if not set.
|
|
7590
|
+
* @returns {string | undefined}
|
|
7591
|
+
* @private
|
|
7592
|
+
*/
|
|
7593
|
+
get currentAriaLabel() {
|
|
7594
|
+
if (!this.attributeWatcher) return undefined;
|
|
7595
|
+
|
|
7596
|
+
const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
|
|
7597
|
+
return ariaLabel || undefined;
|
|
6972
7598
|
}
|
|
6973
7599
|
|
|
6974
|
-
|
|
6975
|
-
|
|
7600
|
+
/**
|
|
7601
|
+
* Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
|
|
7602
|
+
* @returns {string | undefined}
|
|
7603
|
+
* @private
|
|
7604
|
+
*/
|
|
7605
|
+
get currentAriaLabelledBy() {
|
|
7606
|
+
if (!this.attributeWatcher) return undefined;
|
|
7607
|
+
|
|
7608
|
+
const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
|
|
7609
|
+
return ariaLabelledBy || undefined;
|
|
6976
7610
|
}
|
|
6977
7611
|
|
|
6978
7612
|
/**
|
|
6979
|
-
*
|
|
7613
|
+
* Whether or not the button is set to an icon-only shape.
|
|
7614
|
+
* @returns {boolean} - True if the button is icon-only, false otherwise.
|
|
6980
7615
|
* @private
|
|
6981
|
-
* @returns {void}
|
|
6982
7616
|
*/
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
this.form.requestSubmit();
|
|
6986
|
-
}
|
|
7617
|
+
get iconOnly() {
|
|
7618
|
+
return ICON_ONLY_SHAPES.includes(this.shape);
|
|
6987
7619
|
}
|
|
6988
7620
|
|
|
6989
7621
|
/**
|
|
6990
|
-
*
|
|
7622
|
+
* Gets a class name for the font size based on the button's size and shape.
|
|
7623
|
+
* @returns {string} - The font size class name.
|
|
6991
7624
|
* @private
|
|
6992
|
-
* @returns {HTMLFormElement|null}
|
|
6993
7625
|
*/
|
|
6994
|
-
|
|
6995
|
-
|
|
7626
|
+
getFontSize() {
|
|
7627
|
+
|
|
7628
|
+
// Size map for standard buttons
|
|
7629
|
+
const standardButtonSizeMap = {
|
|
7630
|
+
xs: 'body-xs',
|
|
7631
|
+
sm: 'body-sm',
|
|
7632
|
+
md: 'body-default',
|
|
7633
|
+
lg: 'body-lg',
|
|
7634
|
+
xl: 'body-lg'
|
|
7635
|
+
};
|
|
7636
|
+
|
|
7637
|
+
// Size map for icon-only buttons
|
|
7638
|
+
const iconOnlyButtonSizeMap = {
|
|
7639
|
+
xs: 'heading-xs',
|
|
7640
|
+
sm: 'heading-sm',
|
|
7641
|
+
md: 'heading-sm',
|
|
7642
|
+
lg: 'heading-md',
|
|
7643
|
+
xl: 'heading-lg'
|
|
7644
|
+
};
|
|
7645
|
+
|
|
7646
|
+
// Determine which map to use based on the shape
|
|
7647
|
+
const sizeMap = this.iconOnly ? iconOnlyButtonSizeMap : standardButtonSizeMap;
|
|
7648
|
+
|
|
7649
|
+
// Return the font size based on the button size and shape
|
|
7650
|
+
return sizeMap[this.size] || 'body-default';
|
|
6996
7651
|
}
|
|
6997
7652
|
|
|
6998
|
-
|
|
7653
|
+
/**
|
|
7654
|
+
* Renders the default layout for the button.
|
|
7655
|
+
* @returns {TemplateResult}
|
|
7656
|
+
* @private
|
|
7657
|
+
*/
|
|
7658
|
+
renderLayoutDefault() {
|
|
7659
|
+
|
|
7660
|
+
const fontSize = this.getFontSize();
|
|
7661
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
7662
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
7663
|
+
|
|
6999
7664
|
const classes = {
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
'
|
|
7665
|
+
"auro-button": true,
|
|
7666
|
+
"inset": this.showText,
|
|
7667
|
+
wrapper: true,
|
|
7668
|
+
loading: this.loading,
|
|
7669
|
+
[`${fontSize}`]: true,
|
|
7670
|
+
|
|
7671
|
+
// These remove the default borders so we can handle focus borders ourselves
|
|
7672
|
+
'simple': !['secondary'].includes(this.variant),
|
|
7673
|
+
'thin': ['secondary'].includes(this.variant),
|
|
7674
|
+
};
|
|
7675
|
+
|
|
7676
|
+
const contentClasses = {
|
|
7677
|
+
"contentWrapper": true,
|
|
7678
|
+
"util_displayHiddenVisually": this.loading
|
|
7008
7679
|
};
|
|
7009
7680
|
|
|
7010
|
-
return u$
|
|
7011
|
-
|
|
7012
|
-
part="
|
|
7013
|
-
aria-label="${o
|
|
7014
|
-
aria-labelledby="${o
|
|
7015
|
-
|
|
7681
|
+
return u$2`
|
|
7682
|
+
<${tag}
|
|
7683
|
+
part="${part}"
|
|
7684
|
+
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7685
|
+
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7686
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
7016
7687
|
?autofocus="${this.autofocus}"
|
|
7017
|
-
class
|
|
7688
|
+
class=${e(classes)}
|
|
7018
7689
|
?disabled="${this.disabled || this.loading}"
|
|
7019
7690
|
?onDark="${this.onDark}"
|
|
7020
|
-
title="${o
|
|
7021
|
-
name="${o
|
|
7022
|
-
type="${o
|
|
7023
|
-
variant="${o
|
|
7024
|
-
.value="${o
|
|
7691
|
+
title="${o(this.title ? this.title : undefined)}"
|
|
7692
|
+
name="${o(this.name ? this.name : undefined)}"
|
|
7693
|
+
type="${o(this.type ? this.type : undefined)}"
|
|
7694
|
+
variant="${o(this.variant ? this.variant : undefined)}"
|
|
7695
|
+
.value="${o(this.value ? this.value : undefined)}"
|
|
7025
7696
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
7697
|
+
href="${o(this.buttonHref || undefined)}"
|
|
7698
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
7699
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
7026
7700
|
>
|
|
7027
|
-
${o
|
|
7701
|
+
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
7028
7702
|
|
|
7029
|
-
<span class="
|
|
7703
|
+
<span class="${e(contentClasses)}">
|
|
7030
7704
|
<span class="textSlot" part="text">
|
|
7031
|
-
|
|
7032
|
-
</span>
|
|
7033
|
-
|
|
7034
|
-
<span part="icon">
|
|
7035
|
-
<slot name="icon"></slot>
|
|
7705
|
+
<slot></slot>
|
|
7036
7706
|
</span>
|
|
7037
7707
|
</span>
|
|
7038
|
-
|
|
7708
|
+
</${tag}>
|
|
7039
7709
|
`;
|
|
7040
7710
|
}
|
|
7711
|
+
|
|
7712
|
+
/**
|
|
7713
|
+
* Renders the layout of the button.
|
|
7714
|
+
* @returns {TemplateResult}
|
|
7715
|
+
* @private
|
|
7716
|
+
*/
|
|
7717
|
+
renderLayout() {
|
|
7718
|
+
return this.renderLayoutDefault();
|
|
7719
|
+
}
|
|
7041
7720
|
}
|
|
7042
7721
|
|
|
7043
|
-
var buttonVersion = '
|
|
7722
|
+
var buttonVersion = '11.0.0';
|
|
7044
7723
|
|
|
7045
|
-
var colorCss = i$
|
|
7724
|
+
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)}`;
|
|
7046
7725
|
|
|
7047
|
-
var styleCss = i$
|
|
7726
|
+
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}`;
|
|
7048
7727
|
|
|
7049
|
-
var tokensCss = i$
|
|
7728
|
+
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
7050
7729
|
|
|
7051
7730
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
7052
7731
|
// See LICENSE in the project root for license information.
|
|
@@ -7124,10 +7803,8 @@ class AuroLibraryRuntimeUtils {
|
|
|
7124
7803
|
|
|
7125
7804
|
/**
|
|
7126
7805
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
7127
|
-
*
|
|
7128
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
7129
7806
|
*/
|
|
7130
|
-
class AuroHelpText extends i {
|
|
7807
|
+
class AuroHelpText extends i$2 {
|
|
7131
7808
|
|
|
7132
7809
|
constructor() {
|
|
7133
7810
|
super();
|
|
@@ -7241,7 +7918,7 @@ class AuroHelpText extends i {
|
|
|
7241
7918
|
// function that renders the HTML and CSS into the scope of the component
|
|
7242
7919
|
render() {
|
|
7243
7920
|
return x`
|
|
7244
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
7921
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
7245
7922
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
7246
7923
|
</div>
|
|
7247
7924
|
`;
|
|
@@ -7263,24 +7940,183 @@ class AuroInput extends BaseInput {
|
|
|
7263
7940
|
/**
|
|
7264
7941
|
* Generate unique names for dependency components.
|
|
7265
7942
|
*/
|
|
7266
|
-
const versioning = new AuroDependencyVersioning
|
|
7943
|
+
const versioning = new AuroDependencyVersioning();
|
|
7267
7944
|
|
|
7268
7945
|
/**
|
|
7269
7946
|
* @private
|
|
7270
7947
|
*/
|
|
7271
|
-
this.
|
|
7948
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
7272
7949
|
|
|
7273
7950
|
/**
|
|
7274
7951
|
* @private
|
|
7275
7952
|
*/
|
|
7276
|
-
this.
|
|
7953
|
+
this.hasDisplayValueContent = false;
|
|
7277
7954
|
|
|
7278
7955
|
/**
|
|
7279
7956
|
* @private
|
|
7280
7957
|
*/
|
|
7281
7958
|
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
7959
|
+
|
|
7960
|
+
/**
|
|
7961
|
+
* @private
|
|
7962
|
+
*/
|
|
7963
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
7964
|
+
}
|
|
7965
|
+
|
|
7966
|
+
static get styles() {
|
|
7967
|
+
return [
|
|
7968
|
+
i$5`${classicStyleCss}`,
|
|
7969
|
+
i$5`${classicColorCss}`,
|
|
7970
|
+
i$5`${shapeSizeCss}`,
|
|
7971
|
+
i$5`${colorBaseCss}`,
|
|
7972
|
+
i$5`${styleCss$4}`,
|
|
7973
|
+
i$5`${styleDefaultCss}`,
|
|
7974
|
+
i$5`${tokensCss$4}`,
|
|
7975
|
+
i$5`${emphasizedStyleCss}`,
|
|
7976
|
+
i$5`${emphasizedColorCss}`,
|
|
7977
|
+
i$5`${snowflakeStyleCss}`
|
|
7978
|
+
];
|
|
7979
|
+
}
|
|
7980
|
+
|
|
7981
|
+
/**
|
|
7982
|
+
* Determines if the HTML input element should be visually hidden.
|
|
7983
|
+
* Returns true when display value content exists without focus and has a value,
|
|
7984
|
+
* or when the input has no value, is not focused, and has no placeholder text.
|
|
7985
|
+
* @returns {boolean} - True if the input should be visually hidden, false otherwise.
|
|
7986
|
+
* @private
|
|
7987
|
+
*/
|
|
7988
|
+
get inputHidden() {
|
|
7989
|
+
return (this.hasDisplayValueContent && !this.hasFocus && this.hasValue) || ((!this.value || this.value.length === 0) && !this.hasFocus && (!this.placeholder || this.placeholder === ''));
|
|
7990
|
+
}
|
|
7991
|
+
|
|
7992
|
+
/**
|
|
7993
|
+
* Determines if the input should display in a state with no focus or value indication.
|
|
7994
|
+
* Returns true when the input has display content without focus and has a value,
|
|
7995
|
+
* or when the input has no value and is not focused.
|
|
7996
|
+
* @returns {boolean} - True if the input should show no focus or value state, false otherwise.
|
|
7997
|
+
* @private
|
|
7998
|
+
*/
|
|
7999
|
+
get noFocusOrValue() {
|
|
8000
|
+
return (this.hasDisplayValueContent && !this.hasFocus && this.hasValue) || ((!this.value || this.value.length === 0) && !this.hasFocus);
|
|
8001
|
+
}
|
|
8002
|
+
|
|
8003
|
+
/**
|
|
8004
|
+
* Whether the label is being hidden currently based on state.
|
|
8005
|
+
* @returns {boolean} - Returns true if the label is hidden.
|
|
8006
|
+
* @private
|
|
8007
|
+
*/
|
|
8008
|
+
get labelHidden() {
|
|
8009
|
+
return this.hasDisplayValueContent && !this.hasFocus && this.hasValue;
|
|
8010
|
+
}
|
|
8011
|
+
|
|
8012
|
+
/**
|
|
8013
|
+
* Returns the label font class based on layout and visibility state.
|
|
8014
|
+
* @private
|
|
8015
|
+
* @returns {string} - The font class for the label.
|
|
8016
|
+
*/
|
|
8017
|
+
get labelFontClass() {
|
|
8018
|
+
const isHidden = this.inputHidden;
|
|
8019
|
+
|
|
8020
|
+
if (this.layout.startsWith('emphasized')) {
|
|
8021
|
+
return this.noFocusOrValue ? 'accent-xl' : 'body-sm';
|
|
8022
|
+
}
|
|
8023
|
+
|
|
8024
|
+
if (this.layout === 'snowflake') {
|
|
8025
|
+
return isHidden ? 'body-lg' : 'body-xs';
|
|
8026
|
+
}
|
|
8027
|
+
|
|
8028
|
+
// classic layout (default)
|
|
8029
|
+
return isHidden ? 'body-default' : 'body-xs';
|
|
8030
|
+
}
|
|
8031
|
+
|
|
8032
|
+
/**
|
|
8033
|
+
* Returns the input font class based on layout and visibility state.
|
|
8034
|
+
* @private
|
|
8035
|
+
* @returns {string} - The font class for the input.
|
|
8036
|
+
*/
|
|
8037
|
+
get inputFontClass() {
|
|
8038
|
+
if (this.layout.startsWith('emphasized')) {
|
|
8039
|
+
return this.noFocusOrValue ? 'body-sm' : 'accent-xl';
|
|
8040
|
+
}
|
|
8041
|
+
|
|
8042
|
+
if (this.layout === 'snowflake') {
|
|
8043
|
+
// same for both hidden and visible
|
|
8044
|
+
return 'body-lg';
|
|
8045
|
+
}
|
|
8046
|
+
|
|
8047
|
+
// edge case for enabling visual overrides in datepicker
|
|
8048
|
+
if (this.layout === 'classic' && this.shape === 'snowflake') {
|
|
8049
|
+
return 'body-lg';
|
|
8050
|
+
}
|
|
8051
|
+
|
|
8052
|
+
// classic layout (default) - same for both hidden and visible
|
|
8053
|
+
return 'body-default';
|
|
8054
|
+
}
|
|
8055
|
+
|
|
8056
|
+
/**
|
|
8057
|
+
* Returns classmap configuration for html5 input labels in all layouts.
|
|
8058
|
+
* @private
|
|
8059
|
+
* @returns {Record<string, boolean>}
|
|
8060
|
+
*/
|
|
8061
|
+
get commonLabelClasses() {
|
|
8062
|
+
return {
|
|
8063
|
+
'is-disabled': this.disabled,
|
|
8064
|
+
'withValue': this.hasValue,
|
|
8065
|
+
'util_displayHiddenVisually': this.labelHidden,
|
|
8066
|
+
[this.labelFontClass]: true,
|
|
8067
|
+
};
|
|
7282
8068
|
}
|
|
7283
8069
|
|
|
8070
|
+
/**
|
|
8071
|
+
* Returns classmap configuration for html5 inputs in all layouts.
|
|
8072
|
+
* @private
|
|
8073
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
8074
|
+
*/
|
|
8075
|
+
get commonInputClasses() {
|
|
8076
|
+
return {
|
|
8077
|
+
'util_displayHiddenVisually': this.inputHidden,
|
|
8078
|
+
[this.inputFontClass]: true,
|
|
8079
|
+
};
|
|
8080
|
+
}
|
|
8081
|
+
|
|
8082
|
+
/**
|
|
8083
|
+
* Returns classmap configuration for html5 inputs in each layout.
|
|
8084
|
+
* @private
|
|
8085
|
+
* @returns {object} - Returns classmap.
|
|
8086
|
+
*/
|
|
8087
|
+
get legacyInputClasses() {
|
|
8088
|
+
return {
|
|
8089
|
+
...this.commonInputClasses
|
|
8090
|
+
};
|
|
8091
|
+
}
|
|
8092
|
+
|
|
8093
|
+
/**
|
|
8094
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
8095
|
+
* @private
|
|
8096
|
+
* @returns {object} - Returns classmap.
|
|
8097
|
+
*/
|
|
8098
|
+
get commonWrapperClasses() {
|
|
8099
|
+
return {
|
|
8100
|
+
'wrapper': true,
|
|
8101
|
+
'simple': this.simple,
|
|
8102
|
+
'withValue': this.hasValue,
|
|
8103
|
+
'hasFocus': this.hasFocus
|
|
8104
|
+
};
|
|
8105
|
+
}
|
|
8106
|
+
|
|
8107
|
+
/**
|
|
8108
|
+
* Returns classmap configuration for helpText elements in each layout.
|
|
8109
|
+
* @private
|
|
8110
|
+
* @returns {object} - Returns classmap.
|
|
8111
|
+
*/
|
|
8112
|
+
get helpTextClasses() {
|
|
8113
|
+
return {
|
|
8114
|
+
'helpTextWrapper': true,
|
|
8115
|
+
'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
|
|
8116
|
+
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
8117
|
+
};
|
|
8118
|
+
};
|
|
8119
|
+
|
|
7284
8120
|
/**
|
|
7285
8121
|
* This will register this element with the browser.
|
|
7286
8122
|
* @param {string} [name="auro-input"] - The name of element that you want to register to.
|
|
@@ -7290,7 +8126,7 @@ class AuroInput extends BaseInput {
|
|
|
7290
8126
|
*
|
|
7291
8127
|
*/
|
|
7292
8128
|
static register(name = "auro-input") {
|
|
7293
|
-
AuroLibraryRuntimeUtils$
|
|
8129
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroInput);
|
|
7294
8130
|
}
|
|
7295
8131
|
|
|
7296
8132
|
/**
|
|
@@ -7306,160 +8142,377 @@ class AuroInput extends BaseInput {
|
|
|
7306
8142
|
return false;
|
|
7307
8143
|
}
|
|
7308
8144
|
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
8145
|
+
/**
|
|
8146
|
+
* Function to determine if there is any displayValue content to render.
|
|
8147
|
+
* @private
|
|
8148
|
+
* @returns {void}
|
|
8149
|
+
*/
|
|
8150
|
+
checkDisplayValueSlotChange() {
|
|
8151
|
+
let nodes = this.shadowRoot.querySelector('slot[name="displayValue"]').assignedNodes();
|
|
8152
|
+
|
|
8153
|
+
// Handle when DisplayValue is multi-level slot content (e.g. combobox passing displayValue to input)
|
|
8154
|
+
if (nodes[0].tagName === 'SLOT') {
|
|
8155
|
+
nodes = nodes[0].assignedNodes();
|
|
8156
|
+
}
|
|
8157
|
+
|
|
8158
|
+
let hasContent = false;
|
|
8159
|
+
|
|
8160
|
+
if (nodes.length > 0) {
|
|
8161
|
+
hasContent = true;
|
|
8162
|
+
}
|
|
8163
|
+
|
|
8164
|
+
this.hasDisplayValueContent = hasContent;
|
|
8165
|
+
}
|
|
8166
|
+
|
|
8167
|
+
/**
|
|
8168
|
+
* Returns HTML for the validation error icon.
|
|
8169
|
+
* @private
|
|
8170
|
+
* @returns {html} - Returns HTML for the validation error icon.
|
|
8171
|
+
*/
|
|
8172
|
+
renderValidationErrorIconHtml() {
|
|
8173
|
+
return u$2`
|
|
8174
|
+
${this.validity && this.validity !== 'valid' ? u$2`
|
|
8175
|
+
<div class="notification alertNotification">
|
|
8176
|
+
<${this.iconTag}
|
|
8177
|
+
category="alert"
|
|
8178
|
+
name="error-stroke"
|
|
8179
|
+
variant="statusError"
|
|
8180
|
+
?ondark="${this.onDark}">
|
|
8181
|
+
</${this.iconTag}>
|
|
8182
|
+
</div>
|
|
8183
|
+
` : undefined}
|
|
8184
|
+
`;
|
|
8185
|
+
}
|
|
8186
|
+
|
|
8187
|
+
/**
|
|
8188
|
+
* Returns HTML for the HTML5 input element.
|
|
8189
|
+
* @private
|
|
8190
|
+
* @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
|
|
8191
|
+
* @returns {html} - Returns HTML for the HTML5 input element.
|
|
8192
|
+
*/
|
|
8193
|
+
renderHtmlInput(useLegacyHiddenState = false) {
|
|
8194
|
+
const displayValueClasses = {
|
|
8195
|
+
'displayValue': true,
|
|
8196
|
+
'hasContent': this.hasDisplayValueContent,
|
|
8197
|
+
'hasFocus': this.hasFocus,
|
|
8198
|
+
'withValue': this.hasValue,
|
|
7316
8199
|
};
|
|
7317
8200
|
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
8201
|
+
// Remove this when the classic layout is sunset.
|
|
8202
|
+
const inputOverrideClasses = useLegacyHiddenState
|
|
8203
|
+
? this.legacyInputClasses
|
|
8204
|
+
: this.commonInputClasses;
|
|
8205
|
+
|
|
8206
|
+
return u$2`
|
|
8207
|
+
<label for=${this.inputId} class="${e(this.commonLabelClasses)}" part="label">
|
|
8208
|
+
<slot name="label">
|
|
8209
|
+
${this.label}
|
|
8210
|
+
</slot>
|
|
8211
|
+
${this.required ? undefined : u$2`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8212
|
+
</label>
|
|
8213
|
+
|
|
8214
|
+
<!-- Attributes are grouped into: basic attributes, event handlers, ARIA attributes, and input-specific attributes -->
|
|
8215
|
+
<input
|
|
8216
|
+
@blur="${this.handleBlur}"
|
|
8217
|
+
@focusin="${this.handleFocusin}"
|
|
8218
|
+
@focusout="${this.handleFocusout}"
|
|
8219
|
+
@input="${this.handleInput}"
|
|
8220
|
+
.placeholder=${this.placeholderStr}
|
|
8221
|
+
.role=${this.a11yRole}
|
|
8222
|
+
?activeLabel="${this.activeLabel}"
|
|
8223
|
+
?disabled="${this.disabled}"
|
|
8224
|
+
?required="${this.required}"
|
|
8225
|
+
aria-controls=${o(this.a11yControls)}
|
|
8226
|
+
aria-describedby="${this.uniqueId}"
|
|
8227
|
+
aria-expanded=${o(this.a11yExpanded)}
|
|
8228
|
+
aria-invalid="${this.validity !== 'valid'}"
|
|
8229
|
+
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
8230
|
+
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
8231
|
+
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
8232
|
+
class="${e(inputOverrideClasses)}"
|
|
8233
|
+
id="${this.inputId}"
|
|
8234
|
+
inputmode="${o(this.inputmode ? this.inputmode : undefined)}"
|
|
8235
|
+
lang="${o(this.lang)}"
|
|
8236
|
+
maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
|
|
8237
|
+
minlength="${o(this.minLength ? this.minLength : undefined)}"
|
|
8238
|
+
name="${o(this.name)}"
|
|
8239
|
+
part="input"
|
|
8240
|
+
pattern="${o(this.definePattern())}"
|
|
8241
|
+
spellcheck="${o(this.spellcheck ? this.spellcheck : undefined)}"
|
|
8242
|
+
type="${this.type === "password" && this.showPassword ? "text" : this.getInputType(this.type)}"
|
|
8243
|
+
/>
|
|
8244
|
+
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8245
|
+
<div class="displayValueWrapper">
|
|
8246
|
+
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
8247
|
+
</div>
|
|
8248
|
+
</div>
|
|
8249
|
+
`;
|
|
8250
|
+
}
|
|
7338
8251
|
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
8252
|
+
/**
|
|
8253
|
+
* Returns HTML for the clear action button.
|
|
8254
|
+
* @private
|
|
8255
|
+
* @returns {html} - Returns HTML for the clear action button.
|
|
8256
|
+
*/
|
|
8257
|
+
renderHtmlActionClear() {
|
|
8258
|
+
return u$2`
|
|
8259
|
+
<div class="notification clear">
|
|
8260
|
+
<${this.buttonTag}
|
|
8261
|
+
@click="${this.handleClickClear}"
|
|
8262
|
+
?onDark="${this.onDark}"
|
|
8263
|
+
class="notificationBtn clearBtn"
|
|
8264
|
+
shape="circle"
|
|
8265
|
+
size="sm"
|
|
8266
|
+
variant="ghost">
|
|
8267
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
8268
|
+
<${this.iconTag}
|
|
8269
|
+
aria-hidden="true"
|
|
8270
|
+
?customColor="${this.onDark}"
|
|
8271
|
+
category="interface"
|
|
8272
|
+
name="x-lg"
|
|
8273
|
+
>
|
|
8274
|
+
</${this.iconTag}>
|
|
8275
|
+
</${this.buttonTag}>
|
|
8276
|
+
</div>
|
|
8277
|
+
`;
|
|
8278
|
+
}
|
|
8279
|
+
|
|
8280
|
+
/**
|
|
8281
|
+
* Returns HTML for the show password button.
|
|
8282
|
+
* @private
|
|
8283
|
+
* @returns {html} - Returns HTML for the show password button.
|
|
8284
|
+
*/
|
|
8285
|
+
renderHtmlNotificationPassword() {
|
|
8286
|
+
return u$2`
|
|
8287
|
+
<div class="notification">
|
|
8288
|
+
<${this.buttonTag}
|
|
8289
|
+
@click="${this.handleClickShowPassword}"
|
|
8290
|
+
?onDark="${this.onDark}"
|
|
8291
|
+
class="notificationBtn passwordBtn"
|
|
8292
|
+
shape="circle"
|
|
8293
|
+
size="sm"
|
|
8294
|
+
variant="ghost">
|
|
8295
|
+
<span>
|
|
8296
|
+
${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
8297
|
+
: u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
8298
|
+
</span>
|
|
8299
|
+
<${this.iconTag}
|
|
8300
|
+
?customColor="${this.onDark}"
|
|
8301
|
+
aria-hidden="true"
|
|
8302
|
+
?hidden=${!this.showPassword}
|
|
8303
|
+
category="interface"
|
|
8304
|
+
name="hide-password-stroke">
|
|
8305
|
+
</${this.iconTag}>
|
|
8306
|
+
<${this.iconTag}
|
|
8307
|
+
?customColor="${this.onDark}"
|
|
8308
|
+
aria-hidden="true"
|
|
8309
|
+
?hidden=${this.showPassword}
|
|
8310
|
+
category="interface"
|
|
8311
|
+
name="view-password-stroke">
|
|
8312
|
+
</${this.iconTag}>
|
|
8313
|
+
</${this.buttonTag}>
|
|
8314
|
+
</div>
|
|
8315
|
+
`;
|
|
8316
|
+
}
|
|
8317
|
+
|
|
8318
|
+
/**
|
|
8319
|
+
* Returns HTML for the input type icon.
|
|
8320
|
+
* @private
|
|
8321
|
+
* @returns {html} - Returns HTML for the input type icon.
|
|
8322
|
+
*/
|
|
8323
|
+
renderHtmlTypeIcon() {
|
|
8324
|
+
return u$2`
|
|
8325
|
+
<div class="typeIcon">
|
|
8326
|
+
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
8327
|
+
|
|
8328
|
+
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
8329
|
+
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
8330
|
+
${this.inputIconName
|
|
8331
|
+
? c([this.inputIconName], (val) => val, (name) => u$2`
|
|
8332
|
+
<${this.iconTag}
|
|
8333
|
+
?onDark="${this.onDark}"
|
|
8334
|
+
category="payment"
|
|
8335
|
+
class="accentIcon"
|
|
8336
|
+
name="${name}"
|
|
8337
|
+
part="accentIcon"
|
|
8338
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
8339
|
+
</${this.iconTag}>
|
|
8340
|
+
`) : undefined
|
|
8341
|
+
}
|
|
8342
|
+
${this.type === 'date'
|
|
8343
|
+
? u$2`
|
|
8344
|
+
<${this.iconTag}
|
|
8345
|
+
?onDark="${this.onDark}"
|
|
8346
|
+
category="interface"
|
|
8347
|
+
class="accentIcon"
|
|
8348
|
+
name="calendar"
|
|
8349
|
+
part="accentIcon"
|
|
8350
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
8351
|
+
</${this.iconTag}>`
|
|
8352
|
+
: undefined
|
|
8353
|
+
}
|
|
8354
|
+
</div>
|
|
8355
|
+
`;
|
|
8356
|
+
}
|
|
8357
|
+
|
|
8358
|
+
/**
|
|
8359
|
+
* Returns HTML for the help text and error message.
|
|
8360
|
+
* @private
|
|
8361
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
8362
|
+
*/
|
|
8363
|
+
renderHtmlHelpText() {
|
|
8364
|
+
return u$2`
|
|
8365
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
8366
|
+
? u$2`
|
|
8367
|
+
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
8368
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
8369
|
+
<slot name="helpText">${this.getHelpText()}</slot>
|
|
8370
|
+
</p>
|
|
8371
|
+
</${this.helpTextTag}>
|
|
8372
|
+
`
|
|
8373
|
+
: u$2`
|
|
8374
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
8375
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
8376
|
+
${this.errorMessage}
|
|
8377
|
+
</p>
|
|
8378
|
+
</${this.helpTextTag}>
|
|
8379
|
+
`
|
|
8380
|
+
}
|
|
8381
|
+
`;
|
|
8382
|
+
}
|
|
8383
|
+
|
|
8384
|
+
/**
|
|
8385
|
+
* Returns HTML for the classic layout.
|
|
8386
|
+
* @private
|
|
8387
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
8388
|
+
*/
|
|
8389
|
+
renderLayoutClassic() {
|
|
8390
|
+
const classicClassMap = {
|
|
8391
|
+
...this.commonWrapperClasses,
|
|
8392
|
+
'thin': !this.simple
|
|
8393
|
+
};
|
|
8394
|
+
|
|
8395
|
+
return u$2`
|
|
8396
|
+
<div
|
|
8397
|
+
@click="${this.handleClick}"
|
|
8398
|
+
class="${e(classicClassMap)}"
|
|
8399
|
+
part="wrapper">
|
|
8400
|
+
<div part="accent-left" class="accents left">
|
|
8401
|
+
${this.renderHtmlTypeIcon()}
|
|
7385
8402
|
</div>
|
|
7386
|
-
<div
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
${this.
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
</${this.iconTag}>
|
|
7397
|
-
</div>
|
|
8403
|
+
<div class="mainContent">
|
|
8404
|
+
${this.renderHtmlInput(true)}
|
|
8405
|
+
</div>
|
|
8406
|
+
<div part="accent-right" class="accents right">
|
|
8407
|
+
${this.renderValidationErrorIconHtml()}
|
|
8408
|
+
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
8409
|
+
${this.hasValue ? u$2`
|
|
8410
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
8411
|
+
${this.renderHtmlActionClear()}
|
|
8412
|
+
` : undefined}
|
|
7398
8413
|
` : undefined}
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
8414
|
+
</div>
|
|
8415
|
+
</div>
|
|
8416
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
8417
|
+
${this.renderHtmlHelpText()}
|
|
8418
|
+
</div>
|
|
8419
|
+
`;
|
|
8420
|
+
}
|
|
8421
|
+
|
|
8422
|
+
/**
|
|
8423
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
8424
|
+
* @private
|
|
8425
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
8426
|
+
*/
|
|
8427
|
+
renderLayoutEmphasized() {
|
|
8428
|
+
return u$2`
|
|
8429
|
+
<div
|
|
8430
|
+
@click="${this.handleClick}"
|
|
8431
|
+
class="${e(this.commonWrapperClasses)}"
|
|
8432
|
+
part="wrapper">
|
|
8433
|
+
<div class="accents left">
|
|
8434
|
+
${this.layout.includes('left') ? u$2`
|
|
8435
|
+
${this.renderValidationErrorIconHtml()}
|
|
8436
|
+
` : undefined}
|
|
8437
|
+
</div>
|
|
8438
|
+
<div class="mainContent">
|
|
8439
|
+
${this.renderHtmlInput()}
|
|
8440
|
+
</div>
|
|
8441
|
+
<div class="accents right">
|
|
8442
|
+
${this.layout.includes('right') || this.layout === "emphasized" ? u$2`
|
|
8443
|
+
${this.renderValidationErrorIconHtml()}
|
|
8444
|
+
` : undefined}
|
|
8445
|
+
${this.hasValue ? u$2`
|
|
8446
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
8447
|
+
${this.renderHtmlActionClear()}
|
|
7423
8448
|
` : undefined}
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
8449
|
+
` : undefined}
|
|
8450
|
+
</div>
|
|
8451
|
+
</div>
|
|
8452
|
+
<div class="${e(this.helpTextClasses)}" part="inputHelpText">
|
|
8453
|
+
${this.renderHtmlHelpText()}
|
|
8454
|
+
</div>
|
|
8455
|
+
`;
|
|
8456
|
+
}
|
|
8457
|
+
|
|
8458
|
+
/**
|
|
8459
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
8460
|
+
* @private
|
|
8461
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
8462
|
+
*/
|
|
8463
|
+
renderLayoutSnowflake() {
|
|
8464
|
+
return u$2`
|
|
8465
|
+
<div
|
|
8466
|
+
@click="${this.handleClick}"
|
|
8467
|
+
class="${e(this.commonWrapperClasses)}"
|
|
8468
|
+
part="wrapper">
|
|
8469
|
+
<div class="accents left">
|
|
8470
|
+
${this.renderHtmlTypeIcon()}
|
|
8471
|
+
</div>
|
|
8472
|
+
<div class="mainContent">
|
|
8473
|
+
${this.renderHtmlInput()}
|
|
8474
|
+
</div>
|
|
8475
|
+
<div class="accents right">
|
|
8476
|
+
${this.renderValidationErrorIconHtml()}
|
|
8477
|
+
${this.hasValue ? u$2`
|
|
8478
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
8479
|
+
${this.renderHtmlActionClear()}
|
|
7440
8480
|
` : undefined}
|
|
7441
8481
|
` : undefined}
|
|
7442
8482
|
</div>
|
|
7443
8483
|
</div>
|
|
7444
|
-
|
|
7445
|
-
${
|
|
7446
|
-
|
|
7447
|
-
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
7448
|
-
<p id="${this.uniqueId}" part="helpText">
|
|
7449
|
-
<slot name="helptext">${this.getHelpText()}</slot>
|
|
7450
|
-
</p>
|
|
7451
|
-
</${this.helpTextTag}>
|
|
7452
|
-
`
|
|
7453
|
-
: u$3`
|
|
7454
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
7455
|
-
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
7456
|
-
${this.errorMessage}
|
|
7457
|
-
</p>
|
|
7458
|
-
</${this.helpTextTag}>
|
|
7459
|
-
`
|
|
7460
|
-
}
|
|
8484
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
8485
|
+
${this.renderHtmlHelpText()}
|
|
8486
|
+
</div>
|
|
7461
8487
|
`;
|
|
7462
8488
|
}
|
|
8489
|
+
|
|
8490
|
+
/**
|
|
8491
|
+
* Logic to determine the layout of the component.
|
|
8492
|
+
* @private
|
|
8493
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
8494
|
+
* @returns {void}
|
|
8495
|
+
*/
|
|
8496
|
+
renderLayout(ForcedLayout) {
|
|
8497
|
+
const layout = ForcedLayout || this.layout;
|
|
8498
|
+
|
|
8499
|
+
switch (layout) {
|
|
8500
|
+
case 'emphasized':
|
|
8501
|
+
return this.renderLayoutEmphasized();
|
|
8502
|
+
case 'emphasized-left':
|
|
8503
|
+
return this.renderLayoutEmphasized();
|
|
8504
|
+
case 'emphasized-right':
|
|
8505
|
+
return this.renderLayoutEmphasized();
|
|
8506
|
+
case 'snowflake':
|
|
8507
|
+
return this.renderLayoutSnowflake();
|
|
8508
|
+
case 'snowflake-left':
|
|
8509
|
+
return this.renderLayoutSnowflake();
|
|
8510
|
+
case 'snowflake-right':
|
|
8511
|
+
return this.renderLayoutSnowflake();
|
|
8512
|
+
default:
|
|
8513
|
+
return this.renderLayoutClassic();
|
|
8514
|
+
}
|
|
8515
|
+
}
|
|
7463
8516
|
}
|
|
7464
8517
|
|
|
7465
8518
|
AuroInput.register();
|