@aurodesignsystem-dev/auro-formkit 0.0.0-pr622.1 → 0.0.0-pr624.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/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +14 -3
- package/components/checkbox/demo/index.min.js +14 -3
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +5 -1
- package/components/checkbox/dist/index.js +14 -3
- package/components/checkbox/dist/registered.js +14 -3
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +3 -0
- package/components/combobox/demo/api.min.js +1479 -395
- package/components/combobox/demo/index.html +2 -0
- package/components/combobox/demo/index.md +75 -0
- package/components/combobox/demo/index.min.js +1479 -395
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +19 -9
- package/components/combobox/dist/index.js +1471 -387
- package/components/combobox/dist/registered.js +1471 -387
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +433 -104
- package/components/counter/demo/index.min.js +433 -104
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +433 -104
- package/components/counter/dist/registered.js +433 -104
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.min.js +1157 -376
- package/components/datepicker/demo/index.min.js +1157 -376
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/index.js +1156 -375
- package/components/datepicker/dist/registered.js +1156 -375
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +59 -35
- package/components/dropdown/demo/api.min.js +361 -88
- package/components/dropdown/demo/index.md +52 -0
- package/components/dropdown/demo/index.min.js +361 -88
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +70 -21
- package/components/dropdown/dist/index.js +331 -58
- package/components/dropdown/dist/registered.js +331 -58
- package/components/dropdown/dist/styles/default/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/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +2 -2
- package/components/input/demo/api.md +76 -64
- package/components/input/demo/api.min.js +747 -295
- package/components/input/demo/index.html +1 -1
- package/components/input/demo/index.md +49 -4
- package/components/input/demo/index.min.js +747 -295
- package/components/input/demo/readme.md +2 -2
- package/components/input/dist/auro-input.d.ts +97 -3
- package/components/input/dist/base-input.d.ts +36 -18
- package/components/input/dist/index.js +681 -229
- package/components/input/dist/registered.js +681 -229
- 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/input-css.d.ts +2 -0
- package/components/input/dist/styles/default/label-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 +1 -0
- package/components/layoutElement/dist/index.js +1 -0
- package/components/layoutElement/dist/registered.js +1 -0
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.min.js +2 -2
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.md +8 -0
- package/components/radio/demo/api.min.js +13 -5
- package/components/radio/demo/index.min.js +13 -5
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio.d.ts +4 -0
- package/components/radio/dist/index.js +13 -5
- package/components/radio/dist/registered.js +13 -5
- package/components/select/README.md +1 -1
- package/components/select/demo/api.html +15 -0
- package/components/select/demo/api.md +178 -0
- package/components/select/demo/api.min.js +403 -62
- package/components/select/demo/index.html +15 -0
- package/components/select/demo/index.md +177 -0
- package/components/select/demo/index.min.js +403 -62
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +27 -0
- package/components/select/dist/index.js +400 -58
- package/components/select/dist/registered.js +400 -58
- package/package.json +2 -2
- /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 → dropdown/dist/styles/default/bibColors-css.d.ts} +0 -0
- /package/components/{input/dist/styles/label-css.d.ts → dropdown/dist/styles/default/bibStyles-css.d.ts} +0 -0
- /package/components/{input/dist/styles/notificationIcons-css.d.ts → dropdown/dist/styles/default/color-css.d.ts} +0 -0
|
@@ -15,51 +15,90 @@ const changeLang = () => {
|
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2019 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/
|
|
23
|
+
const t$3=globalThis,e$4=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$4=Symbol(),o$5=new WeakMap;let n$3 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$5.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$5.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$3("string"==typeof t?t:t+"",void 0,s$4),i$5=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3(o,t,s$4)},S$1=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$3.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$3=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @license
|
|
27
|
+
* Copyright 2017 Google LLC
|
|
28
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
+
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$2,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a$2=globalThis,c$2=a$2.trustedTypes,l$2=c$2?c$2.emptyScript:"",p$2=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$4={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),b={attribute:true,type:String,converter:u$4,reflect:false,useDefault:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$2(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$3(s));}else void 0!==s&&i.push(c$3(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$4).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$4;this._$Em=e,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$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.0");
|
|
30
|
+
|
|
18
31
|
/**
|
|
19
32
|
* @license
|
|
20
33
|
* Copyright 2017 Google LLC
|
|
21
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
35
|
*/
|
|
23
|
-
const t$
|
|
36
|
+
const t$2=globalThis,i$3=t$2.trustedTypes,s$3=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$3="?"+h,n$1=`<${o$3}>`,r$1=document,l$1=()=>r$1.createComment(""),c$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u$3=t=>a$1(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_=/>/g,m$1=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$3?s$3.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v$1:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):void 0!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1:'"'===u[3]?g:p$1):c===g||c===p$1?c=m$1:c===v$1||c===_?c=f:(c=m$1,r=void 0);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n$1:d>=0?(o.push(a),s.slice(0,d)+e$2+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$2)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$3?i$3.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1());}}}else if(8===r.nodeType)if(r.data===o$3)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$1(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c$1(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$3(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c$1(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$1()),this.O(l$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S(this,t,i,0),o=!c$1(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$1(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const Z={I:R},j=t$2.litHtmlPolyfillSupport;j?.(N,R),(t$2.litHtmlVersions??=[]).push("3.3.0");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$1(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @license
|
|
40
|
+
* Copyright 2017 Google LLC
|
|
41
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
+
*/const s$2=globalThis;let i$2 = class i extends y$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}};i$2._$litElement$=true,i$2["finalized"]=true,s$2.litElementHydrateSupport?.({LitElement:i$2});const o$2=s$2.litElementPolyfillSupport;o$2?.({LitElement:i$2});(s$2.litElementVersions??=[]).push("4.2.0");
|
|
43
|
+
|
|
44
|
+
var shapeSizeCss = i$5`.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}.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-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}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.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}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;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}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;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}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;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}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;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}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;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}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;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}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
|
|
45
|
+
|
|
46
|
+
var styleCss$4 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}`;
|
|
47
|
+
|
|
48
|
+
var styleDefaultCss = i$5`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}.layoutDefault label,:host(:not([layout])) 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}.layoutDefault :host(:not([bordered])) label,:host(:not([layout])) :host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}.layoutDefault :host(:not([bordered])) label.withIcon,:host(:not([layout])) :host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([class=layoutDefault][bordered]) label,:host(:not([layout])[bordered]) label{top:50%;transform:translateY(-50%)}:host([class=layoutDefault][bordered]) label.withIcon,:host(:not([layout])[bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([class=layoutDefault][bordered]) label:not(label.withIcon),:host(:not([layout])[bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}.layoutDefault .wrapper:focus-within label,:host(:not([layout])) .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}.layoutDefault label.withValue,:host(:not([layout])) 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([class=layoutDefault][activeLabel]) .wrapper label,:host(:not([layout])[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}.layoutDefault input,:host(:not([layout])) 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}.layoutDefault input::-ms-reveal,.layoutDefault input::-ms-clear,:host(:not([layout])) input::-ms-reveal,:host(:not([layout])) input::-ms-clear{display:none}.layoutDefault input::-webkit-outer-spin-button,.layoutDefault input::-webkit-inner-spin-button,:host(:not([layout])) input::-webkit-outer-spin-button,:host(:not([layout])) input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.layoutDefault input[type=number],:host(:not([layout])) input[type=number]{-moz-appearance:textfield;appearance:textfield}.layoutDefault input:disabled,:host(:not([layout])) input:disabled{background:none;pointer-events:none}:host([class=layoutDefault][bordered]) input,:host(:not([layout])[bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
49
|
+
|
|
50
|
+
var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{color:var(--ds-auro-input-text-color);caret-color:var(--ds-auro-input-caret-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-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)}`;
|
|
51
|
+
|
|
52
|
+
var tokensCss$4 = i$5`:host(:not(ondark)){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--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)}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--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, #ffffff);--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)}`;
|
|
53
|
+
|
|
54
|
+
var classicStyleCss = i$5`.layout-classic{display:flex;flex-direction:row}.layout-classic .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;flex:1;cursor:text}.layout-classic .mainContent label{cursor:text;padding-top:4px;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);padding-bottom:8px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);height:auto}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start;padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;line-height:0;padding-bottom:0}.layout-classic .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-classic .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-classic .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color);justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}.layout-classic .accents.left{padding-left:8px}.layout-classic .accents.right{padding-right:8px}`;
|
|
55
|
+
|
|
56
|
+
var classicColorCss = i$5`.layout-default label{color:var(--ds-auro-input-label-text-color)}`;
|
|
57
|
+
|
|
58
|
+
var emphasizedStyleCss = i$5`:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{background:unset;width:100%;padding:0;border:0;outline:none;overflow:hidden;text-overflow:ellipsis}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.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{text-transform:uppercase;font-size:32px;line-height:38px}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{text-align:center;font-size:14px;line-height:20px}.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}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.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 .displayValueWrapper,.layout-emphasized-left .displayValueWrapper,.layout-emphasized-right .displayValueWrapper{transform:translateY(-50%)}.layout-emphasized .accents,.layout-emphasized-left .accents,.layout-emphasized-right .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.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;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-transform:uppercase;font-size:32px;line-height:38px;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;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-transform:uppercase;font-size:32px;line-height:38px;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:24px}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:24px}.layout-emphasized-left .alertNotification{margin-right:8px}.layout-emphasized-left .clear{margin-left:8px}.layout-emphasized-right .alertNotification{margin-left:8px}.layout-emphasized-right .clear{margin-right:8px}`;
|
|
59
|
+
|
|
60
|
+
var emphasizedColorCss = i$5`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
|
|
61
|
+
|
|
62
|
+
var snowflakeStyleCss = i$5`:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{font-size:var(--ds-text-body-size-xs);line-height:20px}.layout-snowflake input{text-align:center;font-size:18px;line-height:26px}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-snowflake .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{transform:translateY(-50%)}.layout-snowflake .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.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:24px}.layout-snowflake .accents.left{padding-left:24px}.layout-snowflake .accents.right{padding-right:24px}.helpTextWrapper{text-align:center}`;
|
|
24
63
|
|
|
25
64
|
/**
|
|
26
65
|
* @license
|
|
27
66
|
* Copyright 2020 Google LLC
|
|
28
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
68
|
*/
|
|
30
|
-
const a
|
|
69
|
+
const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s$1=t=>({_$litStatic$:t,r:a}),i$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u$2=n(x);
|
|
31
70
|
|
|
32
71
|
/**
|
|
33
72
|
* @license
|
|
34
73
|
* Copyright 2017 Google LLC
|
|
35
74
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
75
|
*/
|
|
37
|
-
const t$
|
|
76
|
+
const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
38
77
|
|
|
39
78
|
/**
|
|
40
79
|
* @license
|
|
41
80
|
* Copyright 2020 Google LLC
|
|
42
81
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/const {I:t
|
|
82
|
+
*/const {I:t}=Z,s=()=>document.createComment(""),r=(o,i,n)=>{const e=o._$AA.parentNode,l=void 0===i?o._$AB:i._$AA;if(void 0===n){const i=e.insertBefore(s(),l),c=e.insertBefore(s(),l);n=new t(i,c,o,o.options);}else {const t=n._$AB.nextSibling,i=n._$AM,c=i!==o;if(c){let t;n._$AQ?.(o),n._$AM=o,void 0!==n._$AP&&(t=o._$AU)!==i._$AU&&n._$AP(t);}if(t!==l||c){let o=n._$AA;for(;o!==t;){const t=o.nextSibling;e.insertBefore(o,l),o=t;}}}return n},v=(o,t,i=o)=>(o._$AI(t,i),o),u$1={},m=(o,t=u$1)=>o._$AH=t,p=o=>o._$AH,M=o=>{o._$AP?.(false,true);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o;}};
|
|
44
83
|
|
|
45
84
|
/**
|
|
46
85
|
* @license
|
|
47
86
|
* Copyright 2017 Google LLC
|
|
48
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
88
|
*/
|
|
50
|
-
const u
|
|
89
|
+
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=e$1(class extends i{constructor(e){if(super(e),e.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r$1,c]){const d=p(s),{values:p$1,keys:a}=this.dt(t,r$1,c);if(!Array.isArray(d))return this.ut=a,p$1;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p$1.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p$1[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p$1[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p$1[w]),r(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p$1[k]),r(s,d[x],d[j]),j--,k++;else if(void 0===m$1&&(m$1=u(a,k,w),y=u(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r(s,d[x]);v(e,p$1[k]),v$1[k]=e;}else v$1[k]=v(t,p$1[k]),r(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r(s,v$1[w+1]);v(e,p$1[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
|
|
51
90
|
|
|
52
91
|
/**
|
|
53
92
|
* @license
|
|
54
93
|
* Copyright 2018 Google LLC
|
|
55
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/const e
|
|
95
|
+
*/const e=e$1(class extends i{constructor(t){if(super(t),t.type!==t$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
57
96
|
|
|
58
97
|
/**
|
|
59
98
|
* @license
|
|
60
99
|
* Copyright 2018 Google LLC
|
|
61
100
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
|
-
*/const o
|
|
101
|
+
*/const o=o=>o??E;
|
|
63
102
|
|
|
64
103
|
const watchedItems = new Set();
|
|
65
104
|
|
|
@@ -182,31 +221,6 @@ function stopNotifyingOnLangChange(element) {
|
|
|
182
221
|
watchedItems.delete(element);
|
|
183
222
|
}
|
|
184
223
|
|
|
185
|
-
/**
|
|
186
|
-
* @license
|
|
187
|
-
* Copyright 2019 Google LLC
|
|
188
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
189
|
-
*/
|
|
190
|
-
const t=globalThis,e$1=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1=Symbol(),o$2=new WeakMap;let n$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$1&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$1=t=>new n$1("string"==typeof t?t:t+"",void 0,s$1),i$2=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$1(o,t,s$1)},S=(s,o)=>{if(e$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1=e$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$1(e)})(t):t;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* @license
|
|
194
|
-
* Copyright 2017 Google LLC
|
|
195
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
196
|
-
*/const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o$1,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f=(t,s)=>!i$1(t,s),b={attribute:true,type:String,converter:u,reflect:false,useDefault:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...r(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$1(s));}else void 0!==s&&i.push(c$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=h.fromAttribute(s,t.type)??this._$Ej?.get(e)??null,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[d("elementProperties")]=new Map,y[d("finalized")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push("2.1.0");
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* @license
|
|
200
|
-
* Copyright 2017 Google LLC
|
|
201
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
202
|
-
*/const s=globalThis;class i extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}i._$litElement$=true,i["finalized"]=true,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});(s.litElementVersions??=[]).push("4.2.0");
|
|
203
|
-
|
|
204
|
-
var styleCss$4 = i$2`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:var(--ds-size-200, 1rem);max-height:var(--ds-size-200, 1rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
205
|
-
|
|
206
|
-
var colorCss$4 = i$2`.wrapper{border-color:transparent}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}label{color:var(--ds-auro-input-label-text-color)}.alertNotification{color:var(--ds-auro-input-error-icon-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused, #01426a);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark][bordered]){--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([onDark][bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
|
|
207
|
-
|
|
208
|
-
var tokensCss$4 = i$2`:host{--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}`;
|
|
209
|
-
|
|
210
224
|
/** Checks if value is string */
|
|
211
225
|
function isString(str) {
|
|
212
226
|
return typeof str === 'string' || str instanceof String;
|
|
@@ -4893,6 +4907,98 @@ class AuroFormValidation {
|
|
|
4893
4907
|
}
|
|
4894
4908
|
}
|
|
4895
4909
|
|
|
4910
|
+
let AuroElement$1 = class AuroElement extends i$2 {
|
|
4911
|
+
static get properties() {
|
|
4912
|
+
return {
|
|
4913
|
+
|
|
4914
|
+
/**
|
|
4915
|
+
* Defines the language of an element.
|
|
4916
|
+
* @default {'default'}
|
|
4917
|
+
*/
|
|
4918
|
+
layout: {
|
|
4919
|
+
type: String,
|
|
4920
|
+
attribute: "layout",
|
|
4921
|
+
reflect: true
|
|
4922
|
+
},
|
|
4923
|
+
|
|
4924
|
+
shape: {
|
|
4925
|
+
type: String,
|
|
4926
|
+
attribute: "shape",
|
|
4927
|
+
reflect: true
|
|
4928
|
+
},
|
|
4929
|
+
|
|
4930
|
+
size: {
|
|
4931
|
+
type: String,
|
|
4932
|
+
attribute: "size",
|
|
4933
|
+
reflect: true
|
|
4934
|
+
},
|
|
4935
|
+
|
|
4936
|
+
onDark: {
|
|
4937
|
+
type: Boolean,
|
|
4938
|
+
attribute: "ondark",
|
|
4939
|
+
reflect: true
|
|
4940
|
+
}
|
|
4941
|
+
};
|
|
4942
|
+
}
|
|
4943
|
+
|
|
4944
|
+
resetShapeClasses() {
|
|
4945
|
+
if (this.shape && this.size) {
|
|
4946
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4947
|
+
|
|
4948
|
+
if (wrapper) {
|
|
4949
|
+
wrapper.classList.forEach((className) => {
|
|
4950
|
+
if (className.startsWith('shape-')) {
|
|
4951
|
+
wrapper.classList.remove(className);
|
|
4952
|
+
}
|
|
4953
|
+
});
|
|
4954
|
+
|
|
4955
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
4956
|
+
}
|
|
4957
|
+
}
|
|
4958
|
+
}
|
|
4959
|
+
|
|
4960
|
+
resetLayoutClasses() {
|
|
4961
|
+
if (this.layout) {
|
|
4962
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4963
|
+
|
|
4964
|
+
if (wrapper) {
|
|
4965
|
+
wrapper.classList.forEach((className) => {
|
|
4966
|
+
if (className.startsWith('layout-')) {
|
|
4967
|
+
wrapper.classList.remove(className);
|
|
4968
|
+
}
|
|
4969
|
+
});
|
|
4970
|
+
|
|
4971
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
4972
|
+
}
|
|
4973
|
+
}
|
|
4974
|
+
}
|
|
4975
|
+
|
|
4976
|
+
updateComponentArchitecture() {
|
|
4977
|
+
this.resetLayoutClasses();
|
|
4978
|
+
this.resetShapeClasses();
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4981
|
+
updated(changedProperties) {
|
|
4982
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
4983
|
+
this.updateComponentArchitecture();
|
|
4984
|
+
}
|
|
4985
|
+
}
|
|
4986
|
+
|
|
4987
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
4988
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
4989
|
+
render() {
|
|
4990
|
+
try {
|
|
4991
|
+
return this.renderLayout();
|
|
4992
|
+
} catch (error) {
|
|
4993
|
+
// failed to get the defined layout
|
|
4994
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
4995
|
+
|
|
4996
|
+
// fallback to the default layout
|
|
4997
|
+
return this.getLayout('default');
|
|
4998
|
+
}
|
|
4999
|
+
}
|
|
5000
|
+
};
|
|
5001
|
+
|
|
4896
5002
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4897
5003
|
// See LICENSE in the project root for license information.
|
|
4898
5004
|
|
|
@@ -4900,9 +5006,6 @@ class AuroFormValidation {
|
|
|
4900
5006
|
/**
|
|
4901
5007
|
* Auro-input provides users a way to enter data into a text field.
|
|
4902
5008
|
*
|
|
4903
|
-
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
4904
|
-
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
4905
|
-
*
|
|
4906
5009
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
4907
5010
|
* @attr id
|
|
4908
5011
|
*
|
|
@@ -4918,22 +5021,26 @@ class AuroFormValidation {
|
|
|
4918
5021
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
4919
5022
|
*/
|
|
4920
5023
|
|
|
4921
|
-
class BaseInput extends
|
|
5024
|
+
class BaseInput extends AuroElement$1 {
|
|
4922
5025
|
|
|
4923
5026
|
constructor() {
|
|
4924
5027
|
super();
|
|
4925
5028
|
|
|
5029
|
+
this.activeLabel = false;
|
|
4926
5030
|
this.icon = false;
|
|
4927
5031
|
this.disabled = false;
|
|
4928
|
-
this.required = false;
|
|
4929
|
-
this.noValidate = false;
|
|
4930
5032
|
this.max = undefined;
|
|
4931
|
-
this.min = undefined;
|
|
4932
5033
|
this.maxLength = undefined;
|
|
5034
|
+
this.min = undefined;
|
|
4933
5035
|
this.minLength = undefined;
|
|
5036
|
+
this.noValidate = false;
|
|
4934
5037
|
this.onDark = false;
|
|
4935
|
-
this.
|
|
5038
|
+
this.required = false;
|
|
4936
5039
|
this.setCustomValidityForType = undefined;
|
|
5040
|
+
|
|
5041
|
+
this.layout = 'classic';
|
|
5042
|
+
this.shape = 'rounded';
|
|
5043
|
+
this.size = 'lg';
|
|
4937
5044
|
}
|
|
4938
5045
|
|
|
4939
5046
|
/**
|
|
@@ -4950,6 +5057,7 @@ class BaseInput extends i {
|
|
|
4950
5057
|
this.validationCCLength = undefined;
|
|
4951
5058
|
this.hasValue = false;
|
|
4952
5059
|
this.label = 'Input label is undefined';
|
|
5060
|
+
this.placeholderStr = '';
|
|
4953
5061
|
|
|
4954
5062
|
this.allowedInputTypes = [
|
|
4955
5063
|
"text",
|
|
@@ -4996,9 +5104,10 @@ class BaseInput extends i {
|
|
|
4996
5104
|
.substring(idSubstrStart, idSubstrEnd);
|
|
4997
5105
|
}
|
|
4998
5106
|
|
|
4999
|
-
// function to define props used within the scope of this
|
|
5107
|
+
// function to define props used within the scope of this component
|
|
5000
5108
|
static get properties() {
|
|
5001
5109
|
return {
|
|
5110
|
+
...super.properties,
|
|
5002
5111
|
|
|
5003
5112
|
/**
|
|
5004
5113
|
* The value for the role attribute.
|
|
@@ -5330,15 +5439,6 @@ class BaseInput extends i {
|
|
|
5330
5439
|
};
|
|
5331
5440
|
}
|
|
5332
5441
|
|
|
5333
|
-
|
|
5334
|
-
static get styles() {
|
|
5335
|
-
return [
|
|
5336
|
-
i$2`${colorCss$4}`,
|
|
5337
|
-
i$2`${styleCss$4}`,
|
|
5338
|
-
i$2`${tokensCss$4}`
|
|
5339
|
-
];
|
|
5340
|
-
}
|
|
5341
|
-
|
|
5342
5442
|
connectedCallback() {
|
|
5343
5443
|
super.connectedCallback();
|
|
5344
5444
|
|
|
@@ -5353,15 +5453,21 @@ class BaseInput extends i {
|
|
|
5353
5453
|
}
|
|
5354
5454
|
|
|
5355
5455
|
firstUpdated() {
|
|
5456
|
+
// clicking anywhere in the main wrapper will focus the input. Clicking the helptext or label will not focus the input.
|
|
5457
|
+
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
5458
|
+
this.inputElement = this.renderRoot.querySelector('input');
|
|
5459
|
+
this.labelElement = this.shadowRoot.querySelector('label');
|
|
5460
|
+
|
|
5461
|
+
if (this.wrapperElement) {
|
|
5462
|
+
this.wrapperElement.addEventListener('click', this.handleClick);
|
|
5463
|
+
}
|
|
5464
|
+
|
|
5356
5465
|
// add attribute for query selectors when auro-input is registered under a custom name
|
|
5357
5466
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
5358
5467
|
this.setAttribute('auro-input', true);
|
|
5359
5468
|
}
|
|
5360
5469
|
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
5361
5470
|
|
|
5362
|
-
this.inputElement = this.renderRoot.querySelector('input');
|
|
5363
|
-
this.labelElement = this.shadowRoot.querySelector('label');
|
|
5364
|
-
|
|
5365
5471
|
if (this.format) {
|
|
5366
5472
|
this.format = this.format.toLowerCase();
|
|
5367
5473
|
}
|
|
@@ -5371,6 +5477,7 @@ class BaseInput extends i {
|
|
|
5371
5477
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
5372
5478
|
}
|
|
5373
5479
|
|
|
5480
|
+
this.getPlaceholder();
|
|
5374
5481
|
this.setCustomHelpTextMessage();
|
|
5375
5482
|
this.configureAutoFormatting();
|
|
5376
5483
|
}
|
|
@@ -5407,6 +5514,8 @@ class BaseInput extends i {
|
|
|
5407
5514
|
* @returns {void}
|
|
5408
5515
|
*/
|
|
5409
5516
|
updated(changedProperties) {
|
|
5517
|
+
super.updated(changedProperties);
|
|
5518
|
+
|
|
5410
5519
|
if (changedProperties.has('format')) {
|
|
5411
5520
|
this.configureAutoFormatting();
|
|
5412
5521
|
}
|
|
@@ -5527,15 +5636,6 @@ class BaseInput extends i {
|
|
|
5527
5636
|
return this.pattern;
|
|
5528
5637
|
}
|
|
5529
5638
|
|
|
5530
|
-
/**
|
|
5531
|
-
* Function to set element focus.
|
|
5532
|
-
* @private
|
|
5533
|
-
* @return {void}
|
|
5534
|
-
*/
|
|
5535
|
-
focus() {
|
|
5536
|
-
this.inputElement.focus();
|
|
5537
|
-
}
|
|
5538
|
-
|
|
5539
5639
|
/**
|
|
5540
5640
|
* Required to convert SVG icons from data to HTML string.
|
|
5541
5641
|
* @private
|
|
@@ -5565,6 +5665,25 @@ class BaseInput extends i {
|
|
|
5565
5665
|
this.dispatchEvent(inputEvent);
|
|
5566
5666
|
}
|
|
5567
5667
|
|
|
5668
|
+
|
|
5669
|
+
/**
|
|
5670
|
+
* Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
|
|
5671
|
+
* @private
|
|
5672
|
+
* @return {void}
|
|
5673
|
+
*/
|
|
5674
|
+
handleClick() {
|
|
5675
|
+
this.focus();
|
|
5676
|
+
}
|
|
5677
|
+
|
|
5678
|
+
/**
|
|
5679
|
+
* Function to set element focus.
|
|
5680
|
+
* @private
|
|
5681
|
+
* @return {void}
|
|
5682
|
+
*/
|
|
5683
|
+
focus() {
|
|
5684
|
+
this.inputElement.focus();
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5568
5687
|
/**
|
|
5569
5688
|
* Handles event of clearing input content by clicking the X icon.
|
|
5570
5689
|
* @private
|
|
@@ -5612,10 +5731,23 @@ class BaseInput extends i {
|
|
|
5612
5731
|
* @return {void}
|
|
5613
5732
|
*/
|
|
5614
5733
|
handleFocusin() {
|
|
5734
|
+
this.hasFocus = true;
|
|
5735
|
+
|
|
5736
|
+
this.getPlaceholder();
|
|
5615
5737
|
|
|
5616
5738
|
this.touched = true;
|
|
5617
5739
|
}
|
|
5618
5740
|
|
|
5741
|
+
/**
|
|
5742
|
+
* Function to support @focusout event.
|
|
5743
|
+
* @private
|
|
5744
|
+
* @return {void}
|
|
5745
|
+
*/
|
|
5746
|
+
handleFocusout() {
|
|
5747
|
+
this.hasFocus = false;
|
|
5748
|
+
this.getPlaceholder();
|
|
5749
|
+
}
|
|
5750
|
+
|
|
5619
5751
|
/**
|
|
5620
5752
|
* Function to support @blur event.
|
|
5621
5753
|
* @private
|
|
@@ -5740,16 +5872,31 @@ class BaseInput extends i {
|
|
|
5740
5872
|
/**
|
|
5741
5873
|
* Support placeholder text.
|
|
5742
5874
|
* @private
|
|
5743
|
-
* @returns {
|
|
5875
|
+
* @returns {void}
|
|
5744
5876
|
*/
|
|
5745
5877
|
getPlaceholder() {
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5878
|
+
const isFocused = this.inputElement === this.getActiveElement();
|
|
5879
|
+
|
|
5880
|
+
// console.warn('isFocused', isFocused);
|
|
5881
|
+
// console.warn(this.inputElement);
|
|
5882
|
+
// console.warn(this.getActiveElement());
|
|
5883
|
+
|
|
5884
|
+
if (!isFocused) {
|
|
5885
|
+
if (this.placeholder) {
|
|
5886
|
+
this.placeholderStr = this.placeholder;
|
|
5887
|
+
// return this.placeholder;
|
|
5888
|
+
} else if (this.type === 'date') {
|
|
5889
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5890
|
+
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5891
|
+
}
|
|
5892
|
+
} else {
|
|
5893
|
+
this.placeholderStr = '';
|
|
5750
5894
|
}
|
|
5751
5895
|
|
|
5752
|
-
|
|
5896
|
+
this.requestUpdate();
|
|
5897
|
+
|
|
5898
|
+
// console.warn('this.placeholderStr', this.placeholderStr);
|
|
5899
|
+
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5753
5900
|
}
|
|
5754
5901
|
|
|
5755
5902
|
/**
|
|
@@ -5942,7 +6089,7 @@ class AuroDependencyVersioning {
|
|
|
5942
6089
|
*/
|
|
5943
6090
|
generateTag(baseName, version, tagClass) {
|
|
5944
6091
|
const elementName = this.generateElementName(baseName, version);
|
|
5945
|
-
const tag = i$
|
|
6092
|
+
const tag = i$1`${s$1(elementName)}`;
|
|
5946
6093
|
|
|
5947
6094
|
if (!customElements.get(elementName)) {
|
|
5948
6095
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -5962,7 +6109,7 @@ class AuroDependencyVersioning {
|
|
|
5962
6109
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
5963
6110
|
*/
|
|
5964
6111
|
|
|
5965
|
-
class AuroElement extends i {
|
|
6112
|
+
class AuroElement extends i$2 {
|
|
5966
6113
|
|
|
5967
6114
|
// function to define props used within the scope of this component
|
|
5968
6115
|
static get properties() {
|
|
@@ -6018,7 +6165,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
6018
6165
|
return _fetchMap.get(uri);
|
|
6019
6166
|
};
|
|
6020
6167
|
|
|
6021
|
-
var styleCss$3 = i$
|
|
6168
|
+
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}`;
|
|
6022
6169
|
|
|
6023
6170
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6024
6171
|
// See LICENSE in the project root for license information.
|
|
@@ -6060,7 +6207,7 @@ class BaseIcon extends AuroElement {
|
|
|
6060
6207
|
}
|
|
6061
6208
|
|
|
6062
6209
|
static get styles() {
|
|
6063
|
-
return i$
|
|
6210
|
+
return i$5`
|
|
6064
6211
|
${styleCss$3}
|
|
6065
6212
|
`;
|
|
6066
6213
|
}
|
|
@@ -6102,9 +6249,9 @@ class BaseIcon extends AuroElement {
|
|
|
6102
6249
|
}
|
|
6103
6250
|
}
|
|
6104
6251
|
|
|
6105
|
-
var tokensCss$3 = i$
|
|
6252
|
+
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)}`;
|
|
6106
6253
|
|
|
6107
|
-
var colorCss$3 = i$
|
|
6254
|
+
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)}`;
|
|
6108
6255
|
|
|
6109
6256
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6110
6257
|
// See LICENSE in the project root for license information.
|
|
@@ -6192,9 +6339,9 @@ class AuroIcon extends BaseIcon {
|
|
|
6192
6339
|
static get styles() {
|
|
6193
6340
|
return [
|
|
6194
6341
|
super.styles,
|
|
6195
|
-
i$
|
|
6196
|
-
i$
|
|
6197
|
-
i$
|
|
6342
|
+
i$5`${tokensCss$3}`,
|
|
6343
|
+
i$5`${styleCss$3}`,
|
|
6344
|
+
i$5`${colorCss$3}`
|
|
6198
6345
|
];
|
|
6199
6346
|
}
|
|
6200
6347
|
|
|
@@ -6253,9 +6400,9 @@ class AuroIcon extends BaseIcon {
|
|
|
6253
6400
|
return x`
|
|
6254
6401
|
<div class="componentWrapper">
|
|
6255
6402
|
<div
|
|
6256
|
-
class="${e
|
|
6257
|
-
title="${o
|
|
6258
|
-
<span aria-hidden="${o
|
|
6403
|
+
class="${e(svgClasses)}"
|
|
6404
|
+
title="${o(this.title || undefined)}">
|
|
6405
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
6259
6406
|
${this.customSvg ? x`
|
|
6260
6407
|
<slot name="svg"></slot>
|
|
6261
6408
|
` : x`
|
|
@@ -6265,7 +6412,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6265
6412
|
</span>
|
|
6266
6413
|
</div>
|
|
6267
6414
|
|
|
6268
|
-
<div class="${e
|
|
6415
|
+
<div class="${e(labelClasses)}">
|
|
6269
6416
|
<slot></slot>
|
|
6270
6417
|
</div>
|
|
6271
6418
|
</div>
|
|
@@ -6275,23 +6422,23 @@ class AuroIcon extends BaseIcon {
|
|
|
6275
6422
|
|
|
6276
6423
|
var iconVersion = '8.0.1';
|
|
6277
6424
|
|
|
6278
|
-
var styleCss$2 = i$
|
|
6425
|
+
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}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-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);line-height:var(--ds-basic-text-body-default-line-height, 24px);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible{outline:none}.auro-button:focus-visible:not([variant=flat]){outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=flat]):not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-family:var(--ds-basic-text-body-sm-font-family, "AS Circular");font-size:var(--ds-basic-text-body-sm-font-size, 14px);font-weight:var(--ds-basic-text-body-sm-font-weight, 450);line-height:var(--ds-basic-text-body-sm-line-height, 20px);letter-spacing:var(--ds-basic-text-body-sm-letter-spacing, 0);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after{border-radius:100px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
6279
6426
|
|
|
6280
|
-
var colorCss$2 = i$
|
|
6427
|
+
var colorCss$2 = i$5`[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}`;
|
|
6281
6428
|
|
|
6282
|
-
var tokensCss$2 = i$
|
|
6429
|
+
var tokensCss$2 = i$5`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
6283
6430
|
|
|
6284
|
-
var styleCss$1 = i$
|
|
6431
|
+
var styleCss$1 = i$5`: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}}`;
|
|
6285
6432
|
|
|
6286
|
-
var colorCss$1 = i$
|
|
6433
|
+
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}`;
|
|
6287
6434
|
|
|
6288
|
-
var tokensCss$1 = i$
|
|
6435
|
+
var tokensCss$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
6289
6436
|
|
|
6290
6437
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6291
6438
|
// See LICENSE in the project root for license information.
|
|
6292
6439
|
|
|
6293
6440
|
|
|
6294
|
-
class AuroLoader extends i {
|
|
6441
|
+
class AuroLoader extends i$2 {
|
|
6295
6442
|
constructor() {
|
|
6296
6443
|
super();
|
|
6297
6444
|
|
|
@@ -6361,9 +6508,9 @@ class AuroLoader extends i {
|
|
|
6361
6508
|
|
|
6362
6509
|
static get styles() {
|
|
6363
6510
|
return [
|
|
6364
|
-
i$
|
|
6365
|
-
i$
|
|
6366
|
-
i$
|
|
6511
|
+
i$5`${styleCss$1}`,
|
|
6512
|
+
i$5`${colorCss$1}`,
|
|
6513
|
+
i$5`${tokensCss$1}`
|
|
6367
6514
|
];
|
|
6368
6515
|
}
|
|
6369
6516
|
|
|
@@ -6434,27 +6581,6 @@ var loaderVersion = '5.0.0';
|
|
|
6434
6581
|
|
|
6435
6582
|
|
|
6436
6583
|
/**
|
|
6437
|
-
* @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
|
|
6438
|
-
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
6439
|
-
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
6440
|
-
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
6441
|
-
* @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.
|
|
6442
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
6443
|
-
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
6444
|
-
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
6445
|
-
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
6446
|
-
* @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.
|
|
6447
|
-
* @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.
|
|
6448
|
-
* @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.
|
|
6449
|
-
* @attr {String} id - Set the unique ID of an element.
|
|
6450
|
-
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
6451
|
-
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
6452
|
-
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
6453
|
-
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
6454
|
-
* @attr {Boolean} secondary - DEPRECATED
|
|
6455
|
-
* @attr {Boolean} tertiary - DEPRECATED
|
|
6456
|
-
* @prop {Boolean} ready - When false the component API should not be called.
|
|
6457
|
-
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
6458
6584
|
* @slot - Default slot for the text of the button.
|
|
6459
6585
|
* @slot icon - Slot to provide auro-icon for the button.
|
|
6460
6586
|
* @csspart button - Apply CSS to HTML5 button.
|
|
@@ -6465,7 +6591,7 @@ var loaderVersion = '5.0.0';
|
|
|
6465
6591
|
|
|
6466
6592
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
6467
6593
|
|
|
6468
|
-
class AuroButton extends i {
|
|
6594
|
+
class AuroButton extends i$2 {
|
|
6469
6595
|
|
|
6470
6596
|
/**
|
|
6471
6597
|
* Enables form association for this element.
|
|
@@ -6478,13 +6604,11 @@ class AuroButton extends i {
|
|
|
6478
6604
|
|
|
6479
6605
|
constructor() {
|
|
6480
6606
|
super();
|
|
6481
|
-
|
|
6482
6607
|
this.autofocus = false;
|
|
6483
6608
|
this.disabled = false;
|
|
6484
6609
|
this.iconOnly = false;
|
|
6485
6610
|
this.loading = false;
|
|
6486
6611
|
this.onDark = false;
|
|
6487
|
-
this.ready = false;
|
|
6488
6612
|
this.secondary = false;
|
|
6489
6613
|
this.tertiary = false;
|
|
6490
6614
|
this.rounded = false;
|
|
@@ -6523,73 +6647,169 @@ class AuroButton extends i {
|
|
|
6523
6647
|
|
|
6524
6648
|
static get properties() {
|
|
6525
6649
|
return {
|
|
6650
|
+
|
|
6651
|
+
/**
|
|
6652
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
6653
|
+
*/
|
|
6526
6654
|
autofocus: {
|
|
6527
6655
|
type: Boolean,
|
|
6528
6656
|
reflect: true
|
|
6529
6657
|
},
|
|
6658
|
+
|
|
6659
|
+
/**
|
|
6660
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
6661
|
+
*/
|
|
6530
6662
|
disabled: {
|
|
6531
6663
|
type: Boolean,
|
|
6532
6664
|
reflect: true
|
|
6533
6665
|
},
|
|
6666
|
+
|
|
6667
|
+
/**
|
|
6668
|
+
* DEPRECATED.
|
|
6669
|
+
* @deprecated
|
|
6670
|
+
*/
|
|
6534
6671
|
secondary: {
|
|
6535
6672
|
type: Boolean,
|
|
6536
6673
|
reflect: true
|
|
6537
6674
|
},
|
|
6675
|
+
|
|
6676
|
+
/**
|
|
6677
|
+
* DEPRECATED.
|
|
6678
|
+
* @deprecated
|
|
6679
|
+
*/
|
|
6538
6680
|
tertiary: {
|
|
6539
6681
|
type: Boolean,
|
|
6540
6682
|
reflect: true
|
|
6541
6683
|
},
|
|
6684
|
+
|
|
6685
|
+
/**
|
|
6686
|
+
* Alters the shape of the button to be full width of its parent container.
|
|
6687
|
+
*/
|
|
6542
6688
|
fluid: {
|
|
6543
6689
|
type: Boolean,
|
|
6544
6690
|
reflect: true
|
|
6545
6691
|
},
|
|
6692
|
+
|
|
6693
|
+
/**
|
|
6694
|
+
* If set to true, the button will contain an icon with no additional content.
|
|
6695
|
+
*/
|
|
6546
6696
|
iconOnly: {
|
|
6547
6697
|
type: Boolean,
|
|
6548
6698
|
reflect: true
|
|
6549
6699
|
},
|
|
6700
|
+
|
|
6701
|
+
/**
|
|
6702
|
+
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
6703
|
+
*/
|
|
6550
6704
|
loading: {
|
|
6551
6705
|
type: Boolean,
|
|
6552
6706
|
reflect: true
|
|
6553
6707
|
},
|
|
6708
|
+
|
|
6709
|
+
/**
|
|
6710
|
+
* 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.
|
|
6711
|
+
*/
|
|
6554
6712
|
loadingText: {
|
|
6555
6713
|
type: String
|
|
6556
6714
|
},
|
|
6715
|
+
|
|
6716
|
+
/**
|
|
6717
|
+
* Set value for on-dark version of auro-button.
|
|
6718
|
+
*/
|
|
6557
6719
|
onDark: {
|
|
6558
6720
|
type: Boolean,
|
|
6559
6721
|
reflect: true
|
|
6560
6722
|
},
|
|
6723
|
+
|
|
6724
|
+
/**
|
|
6725
|
+
* If set to true, the button will have a rounded shape.
|
|
6726
|
+
*/
|
|
6561
6727
|
rounded: {
|
|
6562
6728
|
type: Boolean,
|
|
6563
6729
|
reflect: true
|
|
6564
6730
|
},
|
|
6731
|
+
|
|
6732
|
+
/**
|
|
6733
|
+
* Set value for slim version of auro-button.
|
|
6734
|
+
*/
|
|
6565
6735
|
slim: {
|
|
6566
6736
|
type: Boolean,
|
|
6567
6737
|
reflect: true
|
|
6568
6738
|
},
|
|
6739
|
+
|
|
6740
|
+
/**
|
|
6741
|
+
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
6742
|
+
*/
|
|
6743
|
+
tIndex: {
|
|
6744
|
+
type: String,
|
|
6745
|
+
reflect: true
|
|
6746
|
+
},
|
|
6747
|
+
|
|
6748
|
+
/**
|
|
6749
|
+
* Populates the `aria-hidden` attribute to hide the button from a11y API.
|
|
6750
|
+
*/
|
|
6751
|
+
ariahidden: {
|
|
6752
|
+
type: String,
|
|
6753
|
+
reflect: true,
|
|
6754
|
+
},
|
|
6755
|
+
|
|
6756
|
+
/**
|
|
6757
|
+
* Populates the `aria-label` attribute that is used to define a string that labels the current element.
|
|
6758
|
+
* Use it in cases where a text label is not visible on the screen.
|
|
6759
|
+
* If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
6760
|
+
*/
|
|
6569
6761
|
arialabel: {
|
|
6570
6762
|
type: String,
|
|
6571
6763
|
reflect: true
|
|
6572
6764
|
},
|
|
6765
|
+
|
|
6766
|
+
/**
|
|
6767
|
+
* Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s),
|
|
6768
|
+
* and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
|
|
6769
|
+
* List multiple element IDs in a space delimited fashion.
|
|
6770
|
+
*/
|
|
6573
6771
|
arialabelledby: {
|
|
6574
6772
|
type: String,
|
|
6575
6773
|
reflect: true
|
|
6576
6774
|
},
|
|
6775
|
+
|
|
6776
|
+
/**
|
|
6777
|
+
* Populates the `aria-expanded` attribute that indicates whether the element,
|
|
6778
|
+
* or another grouping element it controls, is currently expanded or collapsed.
|
|
6779
|
+
* This is an optional attribute for buttons.
|
|
6780
|
+
*/
|
|
6577
6781
|
ariaexpanded: {
|
|
6578
6782
|
type: Boolean,
|
|
6579
6783
|
reflect: true
|
|
6580
6784
|
},
|
|
6785
|
+
|
|
6786
|
+
/**
|
|
6787
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
6788
|
+
*/
|
|
6581
6789
|
title: {
|
|
6582
6790
|
type: String,
|
|
6583
6791
|
reflect: true
|
|
6584
6792
|
},
|
|
6793
|
+
|
|
6794
|
+
/**
|
|
6795
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
6796
|
+
*/
|
|
6585
6797
|
type: {
|
|
6586
6798
|
type: String,
|
|
6587
6799
|
reflect: true
|
|
6588
6800
|
},
|
|
6801
|
+
|
|
6802
|
+
/**
|
|
6803
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
6804
|
+
*/
|
|
6589
6805
|
value: {
|
|
6590
6806
|
type: String,
|
|
6591
6807
|
reflect: true
|
|
6592
6808
|
},
|
|
6809
|
+
|
|
6810
|
+
/**
|
|
6811
|
+
* Sets button variant option. Possible values are: `secondary`, `tertiary`.
|
|
6812
|
+
*/
|
|
6593
6813
|
variant: {
|
|
6594
6814
|
type: String,
|
|
6595
6815
|
reflect: true
|
|
@@ -6619,21 +6839,6 @@ class AuroButton extends i {
|
|
|
6619
6839
|
this.renderRoot.querySelector('button').focus();
|
|
6620
6840
|
}
|
|
6621
6841
|
|
|
6622
|
-
/**
|
|
6623
|
-
* Marks the component as ready and sends event.
|
|
6624
|
-
* @private
|
|
6625
|
-
* @returns {void}
|
|
6626
|
-
*/
|
|
6627
|
-
notifyReady() {
|
|
6628
|
-
this.ready = true;
|
|
6629
|
-
|
|
6630
|
-
this.dispatchEvent(new CustomEvent('auroButton-ready', {
|
|
6631
|
-
bubbles: true,
|
|
6632
|
-
cancelable: false,
|
|
6633
|
-
composed: true,
|
|
6634
|
-
}));
|
|
6635
|
-
}
|
|
6636
|
-
|
|
6637
6842
|
updated() {
|
|
6638
6843
|
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
6639
6844
|
if (this.secondary) {
|
|
@@ -6645,10 +6850,6 @@ class AuroButton extends i {
|
|
|
6645
6850
|
}
|
|
6646
6851
|
}
|
|
6647
6852
|
|
|
6648
|
-
firstUpdated() {
|
|
6649
|
-
this.notifyReady();
|
|
6650
|
-
}
|
|
6651
|
-
|
|
6652
6853
|
/**
|
|
6653
6854
|
* Submits the form that this button is associated with.
|
|
6654
6855
|
* @private
|
|
@@ -6663,7 +6864,7 @@ class AuroButton extends i {
|
|
|
6663
6864
|
/**
|
|
6664
6865
|
* Returns the form element that this button is associated with.
|
|
6665
6866
|
* @private
|
|
6666
|
-
* @returns {HTMLFormElement|null}
|
|
6867
|
+
* @returns {HTMLFormElement | null}
|
|
6667
6868
|
*/
|
|
6668
6869
|
get form() {
|
|
6669
6870
|
return this.internals ? this.internals.form : null;
|
|
@@ -6681,28 +6882,30 @@ class AuroButton extends i {
|
|
|
6681
6882
|
'loading': this.loading
|
|
6682
6883
|
};
|
|
6683
6884
|
|
|
6684
|
-
return u$
|
|
6885
|
+
return u$2`
|
|
6685
6886
|
<button
|
|
6686
6887
|
part="button"
|
|
6687
|
-
aria-
|
|
6688
|
-
aria-
|
|
6689
|
-
aria-
|
|
6888
|
+
aria-hidden="${o(this.ariahidden || undefined)}"
|
|
6889
|
+
aria-label="${o(this.loading ? this.loadingText : this.arialabel || undefined)}"
|
|
6890
|
+
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
6891
|
+
aria-expanded="${o(this.ariaexpanded)}"
|
|
6892
|
+
tabIndex="${o(this.tIndex)}"
|
|
6690
6893
|
?autofocus="${this.autofocus}"
|
|
6691
|
-
class="${e
|
|
6894
|
+
class="${e(classes)}"
|
|
6692
6895
|
?disabled="${this.disabled || this.loading}"
|
|
6693
6896
|
?onDark="${this.onDark}"
|
|
6694
|
-
title="${o
|
|
6695
|
-
name="${o
|
|
6696
|
-
type="${o
|
|
6697
|
-
variant="${o
|
|
6698
|
-
.value="${o
|
|
6897
|
+
title="${o(this.title ? this.title : undefined)}"
|
|
6898
|
+
name="${o(this.name ? this.name : undefined)}"
|
|
6899
|
+
type="${o(this.type ? this.type : undefined)}"
|
|
6900
|
+
variant="${o(this.variant ? this.variant : undefined)}"
|
|
6901
|
+
.value="${o(this.value ? this.value : undefined)}"
|
|
6699
6902
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
6700
6903
|
>
|
|
6701
|
-
${o
|
|
6904
|
+
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
6702
6905
|
|
|
6703
6906
|
<span class="contentWrapper">
|
|
6704
6907
|
<span class="textSlot" part="text">
|
|
6705
|
-
${this.iconOnly ? undefined : u$
|
|
6908
|
+
${this.iconOnly ? undefined : u$2`<slot></slot>`}
|
|
6706
6909
|
</span>
|
|
6707
6910
|
|
|
6708
6911
|
<span part="icon">
|
|
@@ -6716,11 +6919,11 @@ class AuroButton extends i {
|
|
|
6716
6919
|
|
|
6717
6920
|
var buttonVersion = '9.3.0';
|
|
6718
6921
|
|
|
6719
|
-
var colorCss = i$
|
|
6922
|
+
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)}`;
|
|
6720
6923
|
|
|
6721
|
-
var styleCss = i$
|
|
6924
|
+
var styleCss = i$5`.helptext-wrapper{display:none;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)}:host([large]) .helptext-wrapper{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)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
6722
6925
|
|
|
6723
|
-
var tokensCss = i$
|
|
6926
|
+
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
6724
6927
|
|
|
6725
6928
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6726
6929
|
// See LICENSE in the project root for license information.
|
|
@@ -6801,7 +7004,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
6801
7004
|
*
|
|
6802
7005
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
6803
7006
|
*/
|
|
6804
|
-
class AuroHelpText extends i {
|
|
7007
|
+
class AuroHelpText extends i$2 {
|
|
6805
7008
|
|
|
6806
7009
|
constructor() {
|
|
6807
7010
|
super();
|
|
@@ -6942,19 +7145,78 @@ class AuroInput extends BaseInput {
|
|
|
6942
7145
|
/**
|
|
6943
7146
|
* @private
|
|
6944
7147
|
*/
|
|
6945
|
-
this.
|
|
7148
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
6946
7149
|
|
|
6947
7150
|
/**
|
|
6948
7151
|
* @private
|
|
6949
7152
|
*/
|
|
6950
|
-
this.
|
|
7153
|
+
this.hasDisplayValueContent = false;
|
|
6951
7154
|
|
|
6952
7155
|
/**
|
|
6953
7156
|
* @private
|
|
6954
7157
|
*/
|
|
6955
7158
|
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
7159
|
+
|
|
7160
|
+
/**
|
|
7161
|
+
* @private
|
|
7162
|
+
*/
|
|
7163
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
7164
|
+
}
|
|
7165
|
+
|
|
7166
|
+
static get styles() {
|
|
7167
|
+
return [
|
|
7168
|
+
i$5`${shapeSizeCss}`,
|
|
7169
|
+
i$5`${colorBaseCss}`,
|
|
7170
|
+
i$5`${styleCss$4}`,
|
|
7171
|
+
i$5`${styleDefaultCss}`,
|
|
7172
|
+
i$5`${tokensCss$4}`,
|
|
7173
|
+
i$5`${classicStyleCss}`,
|
|
7174
|
+
i$5`${classicColorCss}`,
|
|
7175
|
+
i$5`${emphasizedStyleCss}`,
|
|
7176
|
+
i$5`${emphasizedColorCss}`,
|
|
7177
|
+
i$5`${snowflakeStyleCss}`
|
|
7178
|
+
];
|
|
7179
|
+
}
|
|
7180
|
+
|
|
7181
|
+
/**
|
|
7182
|
+
* Returns classmap configuration for html5 input labels in all layouts.
|
|
7183
|
+
* @private
|
|
7184
|
+
* @returns {void}
|
|
7185
|
+
*/
|
|
7186
|
+
get commonLabelClasses() {
|
|
7187
|
+
return {
|
|
7188
|
+
'withValue': this.value && this.value.length > 0,
|
|
7189
|
+
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
7190
|
+
};
|
|
6956
7191
|
}
|
|
6957
7192
|
|
|
7193
|
+
/**
|
|
7194
|
+
* Returns classmap configuration for html5 inputs in all layouts.
|
|
7195
|
+
* @private
|
|
7196
|
+
* @returns {void}
|
|
7197
|
+
*/
|
|
7198
|
+
get commonInputClasses() {
|
|
7199
|
+
return {
|
|
7200
|
+
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
7201
|
+
};
|
|
7202
|
+
}
|
|
7203
|
+
|
|
7204
|
+
get commonWrapperClasses() {
|
|
7205
|
+
return {
|
|
7206
|
+
'wrapper': true,
|
|
7207
|
+
'withValue': this.value && this.value.length > 0,
|
|
7208
|
+
'hasFocus': this.hasFocus
|
|
7209
|
+
};
|
|
7210
|
+
}
|
|
7211
|
+
|
|
7212
|
+
get helpTextClasses() {
|
|
7213
|
+
return {
|
|
7214
|
+
'helpTextWrapper': true,
|
|
7215
|
+
'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
|
|
7216
|
+
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
7217
|
+
};
|
|
7218
|
+
};
|
|
7219
|
+
|
|
6958
7220
|
/**
|
|
6959
7221
|
* This will register this element with the browser.
|
|
6960
7222
|
* @param {string} [name="auro-input"] - The name of element that you want to register to.
|
|
@@ -6980,160 +7242,350 @@ class AuroInput extends BaseInput {
|
|
|
6980
7242
|
return false;
|
|
6981
7243
|
}
|
|
6982
7244
|
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
7245
|
+
/**
|
|
7246
|
+
* Function to determine if there is any displayValue content to render.
|
|
7247
|
+
* @private
|
|
7248
|
+
* @returns {void}
|
|
7249
|
+
*/
|
|
7250
|
+
checkDisplayValueSlotChange() {
|
|
7251
|
+
const nodes = this.shadowRoot.querySelector('slot[name="displayValue"]').assignedNodes();
|
|
7252
|
+
|
|
7253
|
+
let hasContent = false;
|
|
7254
|
+
|
|
7255
|
+
if (nodes.length > 0) {
|
|
7256
|
+
hasContent = true;
|
|
7257
|
+
}
|
|
7258
|
+
|
|
7259
|
+
this.hasDisplayValueContent = hasContent;
|
|
7260
|
+
}
|
|
7261
|
+
|
|
7262
|
+
/**
|
|
7263
|
+
* Returns HTML for the validation error icon.
|
|
7264
|
+
* @private
|
|
7265
|
+
* @returns {html} - Returns HTML for the validation error icon.
|
|
7266
|
+
*/
|
|
7267
|
+
renderValidationErrorIconHtml() {
|
|
7268
|
+
return u$2`
|
|
7269
|
+
${this.validity && this.validity !== 'valid' ? u$2`
|
|
7270
|
+
<div class="notification alertNotification">
|
|
7271
|
+
<${this.iconTag}
|
|
7272
|
+
category="alert"
|
|
7273
|
+
name="error-stroke"
|
|
7274
|
+
variant="statusError"
|
|
7275
|
+
?ondark="${this.onDark}">
|
|
7276
|
+
</${this.iconTag}>
|
|
7277
|
+
</div>
|
|
7278
|
+
` : undefined}
|
|
7279
|
+
`;
|
|
7280
|
+
}
|
|
7281
|
+
|
|
7282
|
+
/**
|
|
7283
|
+
* Returns HTML for the HTML5 input element.
|
|
7284
|
+
* @private
|
|
7285
|
+
* @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
|
|
7286
|
+
* @returns {html} - Returns HTML for the HTML5 input element.
|
|
7287
|
+
*/
|
|
7288
|
+
renderHtmlInput(hideInputWhenBlurred = false) {
|
|
7289
|
+
const displayValueClasses = {
|
|
7290
|
+
'displayValue': true,
|
|
7291
|
+
'hasContent': this.hasDisplayValueContent,
|
|
7292
|
+
'hasFocus': this.hasFocus,
|
|
7293
|
+
'withValue': this.value && this.value.length > 0,
|
|
6990
7294
|
};
|
|
6991
7295
|
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
<div class="typeIcon">
|
|
6996
|
-
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
6997
|
-
|
|
6998
|
-
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
6999
|
-
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
7000
|
-
${this.inputIconName
|
|
7001
|
-
? c$2([this.inputIconName], (val) => val, (name) => u$3`
|
|
7002
|
-
<${this.iconTag}
|
|
7003
|
-
class="accentIcon"
|
|
7004
|
-
category="payment"
|
|
7005
|
-
name="${name}"
|
|
7006
|
-
part="accentIcon"
|
|
7007
|
-
?onDark="${this.onDark}"
|
|
7008
|
-
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
7009
|
-
</${this.iconTag}>
|
|
7010
|
-
`) : undefined
|
|
7011
|
-
}
|
|
7296
|
+
const inputClasses = {
|
|
7297
|
+
'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
|
|
7298
|
+
};
|
|
7012
7299
|
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
placeholder=${this.getPlaceholder()}
|
|
7048
|
-
lang="${o$3(this.lang)}"
|
|
7049
|
-
?activeLabel="${this.activeLabel}"
|
|
7050
|
-
spellcheck="${o$3(this.spellcheck ? this.spellcheck : undefined)}"
|
|
7051
|
-
autocorrect="${o$3(this.autocorrect ? this.autocorrect : undefined)}"
|
|
7052
|
-
autocapitalize="${o$3(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7053
|
-
autocomplete="${o$3(this.autocomplete ? this.autocomplete : undefined)}"
|
|
7054
|
-
part="input"
|
|
7055
|
-
role="${o$3(this.a11yRole)}"
|
|
7056
|
-
aria-expanded="${o$3(this.a11yExpanded)}"
|
|
7057
|
-
aria-controls="${o$3(this.a11yControls)}"
|
|
7058
|
-
/>
|
|
7300
|
+
return u$2`
|
|
7301
|
+
<label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
|
|
7302
|
+
<slot name="label">
|
|
7303
|
+
${this.label}
|
|
7304
|
+
</slot>
|
|
7305
|
+
</label>
|
|
7306
|
+
<input
|
|
7307
|
+
@blur="${this.handleBlur}"
|
|
7308
|
+
@focusin="${this.handleFocusin}"
|
|
7309
|
+
@focusout="${this.handleFocusout}"
|
|
7310
|
+
@input="${this.handleInput}"
|
|
7311
|
+
?activeLabel="${this.activeLabel}"
|
|
7312
|
+
?disabled="${this.disabled}"
|
|
7313
|
+
?required="${this.required}"
|
|
7314
|
+
.placeholder=${this.placeholderStr}
|
|
7315
|
+
aria-describedby="${this.uniqueId}"
|
|
7316
|
+
aria-invalid="${this.validity !== 'valid'}"
|
|
7317
|
+
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7318
|
+
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
7319
|
+
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
7320
|
+
class="${e(inputClasses)}"
|
|
7321
|
+
id="${this.inputId}"
|
|
7322
|
+
inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
|
|
7323
|
+
lang="${o(this.lang)}"
|
|
7324
|
+
maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
|
|
7325
|
+
minlength="${o(this.minLength ? this.minLength : undefined)}"
|
|
7326
|
+
name="${o(this.name)}"
|
|
7327
|
+
part="input"
|
|
7328
|
+
pattern="${o(this.definePattern())}"
|
|
7329
|
+
spellcheck="${o(this.spellcheck ? this.spellcheck : undefined)}"
|
|
7330
|
+
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}" />
|
|
7331
|
+
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
7332
|
+
<div class="displayValueWrapper">
|
|
7333
|
+
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
7059
7334
|
</div>
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7335
|
+
</div>
|
|
7336
|
+
`;
|
|
7337
|
+
}
|
|
7338
|
+
|
|
7339
|
+
/**
|
|
7340
|
+
* Returns HTML for the clear action button.
|
|
7341
|
+
* @private
|
|
7342
|
+
* @returns {html} - Returns HTML for the clear action button.
|
|
7343
|
+
*/
|
|
7344
|
+
renderHtmlActionClear() {
|
|
7345
|
+
return u$2`
|
|
7346
|
+
<div class="notification clear">
|
|
7347
|
+
<${this.buttonTag}
|
|
7348
|
+
@click="${this.handleClickClear}"
|
|
7349
|
+
?onDark="${this.onDark}"
|
|
7350
|
+
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
7351
|
+
class="notificationBtn clearBtn"
|
|
7352
|
+
tabindex="-1"
|
|
7353
|
+
variant="flat">
|
|
7354
|
+
<${this.iconTag}
|
|
7355
|
+
category="interface"
|
|
7356
|
+
customColor
|
|
7357
|
+
name="x-lg"
|
|
7358
|
+
>
|
|
7359
|
+
</${this.iconTag}>
|
|
7360
|
+
</${this.buttonTag}>
|
|
7361
|
+
</div>
|
|
7362
|
+
`;
|
|
7363
|
+
}
|
|
7364
|
+
|
|
7365
|
+
/**
|
|
7366
|
+
* Returns HTML for the show password button.
|
|
7367
|
+
* @private
|
|
7368
|
+
* @returns {html} - Returns HTML for the show password button.
|
|
7369
|
+
*/
|
|
7370
|
+
renderHtmlNotificationPassword() {
|
|
7371
|
+
return u$2`
|
|
7372
|
+
<div class="notification">
|
|
7373
|
+
<${this.buttonTag}
|
|
7374
|
+
@click="${this.handleClickShowPassword}
|
|
7375
|
+
?onDark="${this.onDark}"
|
|
7376
|
+
aria-hidden="true"
|
|
7377
|
+
class="notificationBtn passwordBtn"
|
|
7378
|
+
tabindex="-1"
|
|
7379
|
+
variant="flat">
|
|
7380
|
+
<${this.iconTag}
|
|
7381
|
+
?hidden=${!this.showPassword}
|
|
7382
|
+
category="interface"
|
|
7383
|
+
customColor
|
|
7384
|
+
name="hide-password-stroke">
|
|
7385
|
+
</${this.iconTag}>
|
|
7386
|
+
<${this.iconTag}
|
|
7387
|
+
?hidden=${this.showPassword}
|
|
7388
|
+
category="interface"
|
|
7389
|
+
customColor
|
|
7390
|
+
name="view-password-stroke">
|
|
7391
|
+
</${this.iconTag}>
|
|
7392
|
+
</${this.buttonTag}>
|
|
7393
|
+
</div>
|
|
7394
|
+
`;
|
|
7395
|
+
}
|
|
7396
|
+
|
|
7397
|
+
/**
|
|
7398
|
+
* Returns HTML for the input type icon.
|
|
7399
|
+
* @private
|
|
7400
|
+
* @returns {html} - Returns HTML for the input type icon.
|
|
7401
|
+
*/
|
|
7402
|
+
renderHtmlTypeIcon() {
|
|
7403
|
+
return u$2`
|
|
7404
|
+
<div class="typeIcon">
|
|
7405
|
+
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
7406
|
+
|
|
7407
|
+
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
7408
|
+
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
7409
|
+
${this.inputIconName
|
|
7410
|
+
? c([this.inputIconName], (val) => val, (name) => u$2`
|
|
7411
|
+
<${this.iconTag}
|
|
7412
|
+
?onDark="${this.onDark}"
|
|
7413
|
+
category="payment"
|
|
7414
|
+
class="accentIcon"
|
|
7415
|
+
name="${name}"
|
|
7416
|
+
part="accentIcon"
|
|
7417
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
7418
|
+
</${this.iconTag}>
|
|
7419
|
+
`) : undefined
|
|
7420
|
+
}
|
|
7421
|
+
${this.type === 'date'
|
|
7422
|
+
? u$2`
|
|
7423
|
+
<${this.iconTag}
|
|
7424
|
+
?onDark="${this.onDark}"
|
|
7425
|
+
category="interface"
|
|
7426
|
+
class="accentIcon"
|
|
7427
|
+
name="calendar"
|
|
7428
|
+
part="accentIcon"
|
|
7429
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
7430
|
+
</${this.iconTag}>`
|
|
7431
|
+
: undefined
|
|
7432
|
+
}
|
|
7433
|
+
</div>
|
|
7434
|
+
`;
|
|
7435
|
+
}
|
|
7436
|
+
|
|
7437
|
+
/**
|
|
7438
|
+
* Returns HTML for the help text and error message.
|
|
7439
|
+
* @private
|
|
7440
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
7441
|
+
*/
|
|
7442
|
+
renderHtmlHelpText() {
|
|
7443
|
+
return u$2`
|
|
7444
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
7445
|
+
? u$2`
|
|
7446
|
+
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
7447
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
7448
|
+
<slot name="helptext">${this.getHelpText()}</slot>
|
|
7449
|
+
</p>
|
|
7450
|
+
</${this.helpTextTag}>
|
|
7451
|
+
`
|
|
7452
|
+
: u$2`
|
|
7453
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
7454
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
7455
|
+
${this.errorMessage}
|
|
7456
|
+
</p>
|
|
7457
|
+
</${this.helpTextTag}>
|
|
7458
|
+
`
|
|
7459
|
+
}
|
|
7460
|
+
`;
|
|
7461
|
+
}
|
|
7462
|
+
|
|
7463
|
+
/**
|
|
7464
|
+
* Returns HTML for the default layout.
|
|
7465
|
+
* @private
|
|
7466
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
|
|
7467
|
+
*/
|
|
7468
|
+
renderLayoutClassic() {
|
|
7469
|
+
return u$2`
|
|
7470
|
+
<div
|
|
7471
|
+
@click="${this.handleClick}"
|
|
7472
|
+
class="${e(this.commonWrapperClasses)} thin"
|
|
7473
|
+
part="wrapper">
|
|
7474
|
+
<div class="accents left">
|
|
7475
|
+
${this.renderHtmlTypeIcon()}
|
|
7476
|
+
</div>
|
|
7477
|
+
<div class="mainContent">
|
|
7478
|
+
${this.renderHtmlInput(true)}
|
|
7479
|
+
</div>
|
|
7480
|
+
<div class="accents right">
|
|
7481
|
+
${this.renderValidationErrorIconHtml()}
|
|
7482
|
+
${this.hasValue ? u$2`
|
|
7483
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
7484
|
+
${this.renderHtmlActionClear()}
|
|
7485
|
+
` : undefined}
|
|
7486
|
+
` : undefined}
|
|
7487
|
+
</div>
|
|
7488
|
+
</div>
|
|
7489
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
7490
|
+
${this.renderHtmlHelpText()}
|
|
7491
|
+
</div>
|
|
7492
|
+
`;
|
|
7493
|
+
}
|
|
7494
|
+
|
|
7495
|
+
/**
|
|
7496
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
7497
|
+
* @private
|
|
7498
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
7499
|
+
*/
|
|
7500
|
+
renderLayoutEmphasized() {
|
|
7501
|
+
return u$2`
|
|
7502
|
+
<div
|
|
7503
|
+
@click="${this.handleClick}"
|
|
7504
|
+
class="${e(this.commonWrapperClasses)}"
|
|
7505
|
+
part="wrapper">
|
|
7506
|
+
<div class="accents left">
|
|
7507
|
+
${this.layout.includes('left') ? u$2`
|
|
7508
|
+
${this.renderValidationErrorIconHtml()}
|
|
7509
|
+
` : undefined}
|
|
7510
|
+
</div>
|
|
7511
|
+
<div class="mainContent">
|
|
7512
|
+
${this.renderHtmlInput()}
|
|
7513
|
+
</div>
|
|
7514
|
+
<div class="accents right">
|
|
7515
|
+
${this.layout.includes('right') || this.layout === "emphasized" ? u$2`
|
|
7516
|
+
${this.renderValidationErrorIconHtml()}
|
|
7072
7517
|
` : undefined}
|
|
7073
|
-
${this.hasValue ? u$
|
|
7074
|
-
${this.
|
|
7075
|
-
|
|
7076
|
-
<${this.buttonTag}
|
|
7077
|
-
variant="flat"
|
|
7078
|
-
?onDark="${this.onDark}"
|
|
7079
|
-
aria-hidden="true"
|
|
7080
|
-
tabindex="-1"
|
|
7081
|
-
@click="${this.handleClickShowPassword}"
|
|
7082
|
-
class="notificationBtn passwordBtn">
|
|
7083
|
-
<${this.iconTag}
|
|
7084
|
-
category="interface"
|
|
7085
|
-
name="hide-password-stroke"
|
|
7086
|
-
customColor
|
|
7087
|
-
?hidden=${!this.showPassword}>
|
|
7088
|
-
</${this.iconTag}>
|
|
7089
|
-
<${this.iconTag}
|
|
7090
|
-
category="interface"
|
|
7091
|
-
name="view-password-stroke"
|
|
7092
|
-
customColor
|
|
7093
|
-
?hidden=${this.showPassword}>
|
|
7094
|
-
</${this.iconTag}>
|
|
7095
|
-
</${this.buttonTag}>
|
|
7096
|
-
</div>
|
|
7518
|
+
${this.hasValue ? u$2`
|
|
7519
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
7520
|
+
${this.renderHtmlActionClear()}
|
|
7097
7521
|
` : undefined}
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7522
|
+
` : undefined}
|
|
7523
|
+
</div>
|
|
7524
|
+
</div>
|
|
7525
|
+
<div class="${e(this.helpTextClasses)}" part="inputHelpText">
|
|
7526
|
+
${this.renderHtmlHelpText()}
|
|
7527
|
+
</div>
|
|
7528
|
+
`;
|
|
7529
|
+
}
|
|
7530
|
+
|
|
7531
|
+
/**
|
|
7532
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
7533
|
+
* @private
|
|
7534
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
7535
|
+
*/
|
|
7536
|
+
renderLayoutSnowflake() {
|
|
7537
|
+
return u$2`
|
|
7538
|
+
<div
|
|
7539
|
+
@click="${this.handleClick}"
|
|
7540
|
+
class="${e(this.commonWrapperClasses)}"
|
|
7541
|
+
part="wrapper">
|
|
7542
|
+
<div class="accents left">
|
|
7543
|
+
${this.renderHtmlTypeIcon()}
|
|
7544
|
+
</div>
|
|
7545
|
+
<div class="mainContent">
|
|
7546
|
+
${this.renderHtmlInput()}
|
|
7547
|
+
</div>
|
|
7548
|
+
<div class="accents right">
|
|
7549
|
+
${this.renderValidationErrorIconHtml()}
|
|
7550
|
+
${this.hasValue ? u$2`
|
|
7551
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
7552
|
+
${this.renderHtmlActionClear()}
|
|
7114
7553
|
` : undefined}
|
|
7115
7554
|
` : undefined}
|
|
7116
7555
|
</div>
|
|
7117
7556
|
</div>
|
|
7118
|
-
|
|
7119
|
-
${
|
|
7120
|
-
|
|
7121
|
-
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
7122
|
-
<p id="${this.uniqueId}" part="helpText">
|
|
7123
|
-
<slot name="helptext">${this.getHelpText()}</slot>
|
|
7124
|
-
</p>
|
|
7125
|
-
</${this.helpTextTag}>
|
|
7126
|
-
`
|
|
7127
|
-
: u$3`
|
|
7128
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
7129
|
-
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
7130
|
-
${this.errorMessage}
|
|
7131
|
-
</p>
|
|
7132
|
-
</${this.helpTextTag}>
|
|
7133
|
-
`
|
|
7134
|
-
}
|
|
7557
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
7558
|
+
${this.renderHtmlHelpText()}
|
|
7559
|
+
</div>
|
|
7135
7560
|
`;
|
|
7136
7561
|
}
|
|
7562
|
+
|
|
7563
|
+
/**
|
|
7564
|
+
* Logic to determine the layout of the component.
|
|
7565
|
+
* @private
|
|
7566
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
7567
|
+
* @returns {void}
|
|
7568
|
+
*/
|
|
7569
|
+
renderLayout(ForcedLayout) {
|
|
7570
|
+
const layout = ForcedLayout || this.layout;
|
|
7571
|
+
|
|
7572
|
+
switch (layout) {
|
|
7573
|
+
case 'emphasized':
|
|
7574
|
+
return this.renderLayoutEmphasized();
|
|
7575
|
+
case 'emphasized-left':
|
|
7576
|
+
return this.renderLayoutEmphasized();
|
|
7577
|
+
case 'emphasized-right':
|
|
7578
|
+
return this.renderLayoutEmphasized();
|
|
7579
|
+
case 'snowflake':
|
|
7580
|
+
return this.renderLayoutSnowflake();
|
|
7581
|
+
case 'snowflake-left':
|
|
7582
|
+
return this.renderLayoutSnowflake();
|
|
7583
|
+
case 'snowflake-right':
|
|
7584
|
+
return this.renderLayoutSnowflake();
|
|
7585
|
+
default:
|
|
7586
|
+
return this.renderLayoutClassic();
|
|
7587
|
+
}
|
|
7588
|
+
}
|
|
7137
7589
|
}
|
|
7138
7590
|
|
|
7139
7591
|
AuroInput.register();
|