@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.0 → 0.0.0-pr624.10
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/auro-bibtemplate.d.ts +1 -0
- package/components/bibtemplate/dist/index.js +88 -6
- package/components/bibtemplate/dist/registered.js +88 -6
- package/components/checkbox/demo/api.min.js +4 -3
- package/components/checkbox/demo/index.min.js +4 -3
- package/components/checkbox/dist/index.js +4 -3
- package/components/checkbox/dist/registered.js +4 -3
- package/components/combobox/demo/api.md +30 -29
- package/components/combobox/demo/api.min.js +609 -532
- package/components/combobox/demo/index.html +0 -1
- package/components/combobox/demo/index.md +43 -0
- package/components/combobox/demo/index.min.js +607 -530
- package/components/combobox/dist/auro-combobox.d.ts +13 -18
- package/components/combobox/dist/index.js +479 -387
- package/components/combobox/dist/registered.js +479 -387
- package/components/counter/demo/api.min.js +377 -62
- package/components/counter/demo/index.min.js +377 -62
- package/components/counter/dist/index.js +377 -62
- package/components/counter/dist/registered.js +377 -62
- package/components/datepicker/demo/api.md +13 -5
- package/components/datepicker/demo/api.min.js +868 -438
- package/components/datepicker/demo/index.md +13 -0
- package/components/datepicker/demo/index.min.js +868 -438
- package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
- package/components/datepicker/dist/index.js +710 -280
- package/components/datepicker/dist/registered.js +710 -280
- package/components/dropdown/demo/api.md +2 -2
- package/components/dropdown/demo/api.min.js +199 -37
- package/components/dropdown/demo/index.md +45 -0
- package/components/dropdown/demo/index.min.js +199 -37
- package/components/dropdown/dist/auro-dropdown.d.ts +10 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
- package/components/dropdown/dist/index.js +199 -37
- package/components/dropdown/dist/registered.js +199 -37
- package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/README.md +1 -1
- package/components/input/demo/api.md +57 -53
- package/components/input/demo/api.min.js +142 -141
- package/components/input/demo/index.md +4 -4
- package/components/input/demo/index.min.js +142 -141
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/auro-input.d.ts +22 -13
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +142 -141
- package/components/input/dist/registered.js +142 -141
- 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/layoutElement/dist/index.d.ts +1 -0
- package/components/layoutElement/dist/index.js +95 -1
- package/components/menu/demo/api.md +11 -11
- package/components/menu/demo/api.min.js +115 -130
- package/components/menu/demo/index.min.js +115 -130
- package/components/menu/dist/auro-menu-utils.d.ts +0 -8
- package/components/menu/dist/auro-menu.d.ts +3 -8
- package/components/menu/dist/index.d.ts +1 -1
- package/components/menu/dist/index.js +116 -90
- package/components/menu/dist/registered.js +115 -130
- package/components/radio/demo/api.min.js +4 -3
- package/components/radio/demo/index.min.js +4 -3
- package/components/radio/dist/index.js +4 -3
- package/components/radio/dist/registered.js +4 -3
- package/components/select/demo/api.js +2 -0
- package/components/select/demo/api.md +108 -42
- package/components/select/demo/api.min.js +1264 -352
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +298 -777
- package/components/select/demo/index.min.js +1251 -351
- package/components/select/dist/auro-select.d.ts +110 -18
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +1105 -190
- package/components/select/dist/registered.js +1105 -190
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +3 -3
- /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/emphasized}/style-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
- /package/components/dropdown/dist/styles/{style-css.d.ts → classic/bibStyles-css.d.ts} +0 -0
|
@@ -257,38 +257,19 @@ function resetStateExample() {
|
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
/**
|
|
261
|
-
* @license
|
|
262
|
-
* Copyright 2019 Google LLC
|
|
263
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
264
|
-
*/
|
|
265
|
-
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$6=new WeakMap;let n$4 = 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$6.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$6.set(s,t));}return t}toString(){return this.cssText}};const r$4=t=>new n$4("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$4(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$4(e)})(t):t;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* @license
|
|
269
|
-
* Copyright 2017 Google LLC
|
|
270
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
|
-
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$3,getOwnPropertySymbols:o$5,getPrototypeOf:n$3}=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$3(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$3(t),...o$5(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(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");
|
|
272
|
-
|
|
273
260
|
/**
|
|
274
261
|
* @license
|
|
275
262
|
* Copyright 2017 Google LLC
|
|
276
263
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
277
264
|
*/
|
|
278
|
-
const t$
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* @license
|
|
282
|
-
* Copyright 2017 Google LLC
|
|
283
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
|
-
*/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$3=s$2.litElementPolyfillSupport;o$3?.({LitElement:i$2});(s$2.litElementVersions??=[]).push("4.2.0");
|
|
265
|
+
const t$3=globalThis,i$5=t$3.trustedTypes,s$4=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$4="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$6="?"+h$1,n$4=`<${o$6}>`,r$4=document,l$2=()=>r$4.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$4=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_=/>/g,m$1=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y$1(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$4.createTreeWalker(r$4,129);function P(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$4?s$4.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$1;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$1?"!--"===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$1,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$2):c===g||c===p$2?c=m$1:c===v$1||c===_?c=f$1:(c=m$1,r=void 0);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1?s+n$4:d>=0?(o.push(a),s.slice(0,d)+e$4+s.slice(d)+h$1+x):s+h$1+(-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$4)){const i=v[a++],s=r.getAttribute(t).split(h$1),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$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h$1),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$6)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1,t+1));)d.push({type:7,index:c}),t+=h$1.length-1;}c++;}}static createElement(t,i){const s=r$4.createElement("template");return s.innerHTML=t,s}}function S$1(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$3(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$1(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$4).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$4,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$1(this,t,i),c$3(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$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$4.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(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$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2()),this.O(l$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ 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$1(this,t,i,0),o=!c$3(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$1(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$3(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$1(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$1(this,t);}}const Z={I:R},j=t$3.litHtmlPolyfillSupport;j?.(N,R),(t$3.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$2(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
285
266
|
|
|
286
267
|
/**
|
|
287
268
|
* @license
|
|
288
269
|
* Copyright 2020 Google LLC
|
|
289
270
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
290
271
|
*/
|
|
291
|
-
const a=Symbol.for(""),o$
|
|
272
|
+
const a$1=Symbol.for(""),o$5=t=>{if(t?.r===a$1)return t?._$litStatic$},s$3=t=>({_$litStatic$:t,r:a$1}),i$4=(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$1}),l$1=new Map,n$3=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$5(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$1.get(t))&&(n.raw=n,l$1.set(t,r=n)),e=u;}return t(r,...e)},u$3=n$3(x);
|
|
292
273
|
|
|
293
274
|
let DateFormatter$1 = class DateFormatter {
|
|
294
275
|
|
|
@@ -346,9 +327,10 @@ let DateFormatter$1 = class DateFormatter {
|
|
|
346
327
|
/**
|
|
347
328
|
* Convert a date object to string format.
|
|
348
329
|
* @param {Object} date - Date to convert to string.
|
|
349
|
-
* @
|
|
330
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
331
|
+
* @returns {String} Returns the date as a string.
|
|
350
332
|
*/
|
|
351
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
333
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
352
334
|
year: "numeric",
|
|
353
335
|
month: "2-digit",
|
|
354
336
|
day: "2-digit",
|
|
@@ -540,7 +522,7 @@ let AuroDateUtilities$1 = class AuroDateUtilities extends AuroDateUtilitiesBase$
|
|
|
540
522
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
541
523
|
|
|
542
524
|
// Get the date string of the date object we created from the string date
|
|
543
|
-
const actualDateStr = dateFormatter$1.getDateAsString(dateObj);
|
|
525
|
+
const actualDateStr = dateFormatter$1.getDateAsString(dateObj, "en-US");
|
|
544
526
|
|
|
545
527
|
// Guard Clause: Generated date matches date string input
|
|
546
528
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -705,7 +687,7 @@ const {
|
|
|
705
687
|
|
|
706
688
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
707
689
|
|
|
708
|
-
let AuroLibraryRuntimeUtils$
|
|
690
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
709
691
|
|
|
710
692
|
/* eslint-disable jsdoc/require-param */
|
|
711
693
|
|
|
@@ -775,7 +757,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
775
757
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
776
758
|
|
|
777
759
|
constructor() {
|
|
778
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
760
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
779
761
|
}
|
|
780
762
|
|
|
781
763
|
/**
|
|
@@ -1164,7 +1146,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
|
1164
1146
|
*/
|
|
1165
1147
|
generateTag(baseName, version, tagClass) {
|
|
1166
1148
|
const elementName = this.generateElementName(baseName, version);
|
|
1167
|
-
const tag = i$
|
|
1149
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
1168
1150
|
|
|
1169
1151
|
if (!customElements.get(elementName)) {
|
|
1170
1152
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -1373,6 +1355,25 @@ class AuroDatepickerUtilities {
|
|
|
1373
1355
|
}
|
|
1374
1356
|
}
|
|
1375
1357
|
|
|
1358
|
+
/**
|
|
1359
|
+
* @license
|
|
1360
|
+
* Copyright 2019 Google LLC
|
|
1361
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1362
|
+
*/
|
|
1363
|
+
const t$2=globalThis,e$3=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$3&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$4.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$2("string"==typeof t?t:t+"",void 0,s$2),i$3=(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$2(o,t,s$2)},S=(s,o)=>{if(e$3)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$3?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* @license
|
|
1367
|
+
* Copyright 2017 Google LLC
|
|
1368
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1369
|
+
*/const{is:i$2,defineProperty:e$2,getOwnPropertyDescriptor:h,getOwnPropertyNames:r$2,getOwnPropertySymbols:o$3,getPrototypeOf:n$1}=Object,a=globalThis,c$1=a.trustedTypes,l=c$1?c$1.emptyScript:"",p$1=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u$2={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$2(t,s),b={attribute:true,type:String,converter:u$2,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$2(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$1(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$2(t),...o$3(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(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$2(s));}else void 0!==s&&i.push(c$2(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$2).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$2;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$1?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push("2.1.0");
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* @license
|
|
1373
|
+
* Copyright 2017 Google LLC
|
|
1374
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1375
|
+
*/const s$1=globalThis;let i$1 = 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$1._$litElement$=true,i$1["finalized"]=true,s$1.litElementHydrateSupport?.({LitElement:i$1});const o$2=s$1.litElementPolyfillSupport;o$2?.({LitElement:i$1});(s$1.litElementVersions??=[]).push("4.2.0");
|
|
1376
|
+
|
|
1376
1377
|
class UtilitiesCalendarRender {
|
|
1377
1378
|
constructor() {
|
|
1378
1379
|
this.util = new AuroDatepickerUtilities();
|
|
@@ -1529,19 +1530,21 @@ class UtilitiesCalendarRender {
|
|
|
1529
1530
|
}
|
|
1530
1531
|
}
|
|
1531
1532
|
|
|
1532
|
-
var styleCss$d = i$
|
|
1533
|
+
var styleCss$d = i$3`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([layout=classic]) [auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}:host([layout=classic]) [auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout=classic]) [auro-input]::part(helpText){display:none}:host([layout=classic]) [auro-input]::part(wrapper):focus-within:before{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem);--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:not(:first-child)::part(wrapper)::after{position:absolute;left:50%;width:95%;height:1px;background-color:var(--ds-auro-datepicker-range-input-divider-color);content:"";transform:translateX(-50%)}:host([layout=classic]) [auro-input]::part(wrapper) .outerWrapper{position:relative;container:outerwrapper/inline-size}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2){margin-left:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(accentIcon){display:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(label){left:0;width:100%}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(input){padding-left:0}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2):before{position:absolute;top:13px;left:calc(var(--ds-size-150, 0.75rem)*-1);display:block;width:1px;height:2rem;content:""}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:not(:first-child)::part(wrapper):after{content:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked])[range] [auro-input]{max-width:50%}@media screen and (max-width: 576px){:host([layout=classic]) [auro-input]::part(wrapper) ::part(popover){position:fixed !important;top:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin-bottom:var(--ds-size-200, 1rem);transform:unset !important}:host([layout=classic]) [auro-input]::part(wrapper) .calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
|
|
1533
1534
|
|
|
1534
|
-
var colorCss$c = i$
|
|
1535
|
+
var colorCss$c = i$3`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host([onDark]){--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
1535
1536
|
|
|
1536
|
-
var tokensCss$a = i$
|
|
1537
|
+
var tokensCss$a = i$3`:host{--ds-auro-datepicker-placeholder-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-calendar-nav-btn-border-color: transparent;--ds-auro-calendar-nav-btn-chevron-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-calendar-nav-btn-container-color: transparent;--ds-auro-calendar-month-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-month-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-month-header-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-border-color: transparent;--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-in-range-color: var(--ds-advanced-color-shared-background-muted, #f7f7f7);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
1537
1538
|
|
|
1538
|
-
var
|
|
1539
|
+
var classicLayoutColor = i$3`:host [auro-dropdown]::part(wrapper){border:1px solid aqua;outline:2px solid crimson}`;
|
|
1539
1540
|
|
|
1540
|
-
var
|
|
1541
|
+
var styleCss$c = i$3`:host{--calendar-width: 336px;--mobile-footer-height: 150px;--mobile-header-height: 68px;height:100vh;height:100dvh}.calendars{display:flex;flex-direction:row}.calendarNavButtons{position:absolute;top:var(--ds-size-200, 1rem);right:var(--ds-size-50, 0.25rem);left:var(--ds-size-50, 0.25rem)}.calendarNavBtn{display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.prevMonth,.nextMonth{position:absolute;top:0}.prevMonth{left:0}.nextMonth{right:0}.headerActions{padding:0 var(--ds-size-200, 1rem)}.mobileHeader{width:100%;height:var(--mobile-header-height);z-index:1;align-items:center;flex-direction:row}.headerDateFrom{display:flex;height:var(--mobile-header-height);flex:1;flex-direction:column;justify-content:center;padding:0 var(--ds-size-150, 0.75rem) 0 var(--ds-size-200, 1rem)}.mobileDateLabel{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)}.headerDateTo{height:calc(var(--mobile-header-height) - var(--ds-size-300, 1.5rem));padding:var(--ds-size-300, 1.5rem) var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host(:not([noRange])) .headerDateTo{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center}:host(:not([noRange])) .headerDateTo:after{position:absolute;top:calc(50% + 10px);left:0;display:block;width:1px;height:var(--ds-size-300, 1.5rem);content:"";transform:translateY(-50%)}.mobileFooter{display:none;width:100%;align-items:flex-end;flex-direction:column;justify-content:flex-end}.mobileFooterActions{position:relative;bottom:0;left:50%;display:none;width:calc(100% - var(--ds-size-200, 1rem)*2);align-items:flex-end;flex-direction:column;justify-content:flex-end;padding:var(--ds-size-150) calc(var(--ds-size-200, 1rem));transform:translateX(-50%)}.mobileFooterActions auro-button{width:100%}:host([isfullscreen]){width:100%;max-height:100dvh;overflow:hidden}:host([isfullscreen]) .prevMonth,:host([isfullscreen]) .nextMonth{display:none}:host([isfullscreen]) .mobileHeader,:host([isfullscreen]) .mobileFooter,:host([isfullscreen]) .mobileFooterActions{display:flex}:host([isfullscreen]) .calendarWrapper{display:flex;flex-direction:column}:host([isfullscreen]) .calendars{display:flex;flex-direction:column;flex:1;align-items:center;width:100%;overscroll-behavior:contain}:host([isfullscreen]) .calendars:after{display:block;width:100%;height:var(--mobile-footer-height);content:""}`;
|
|
1541
1542
|
|
|
1542
|
-
var
|
|
1543
|
+
var colorCss$b = i$3`.calendarNavBtn{border-color:var(--ds-auro-calendar-nav-btn-border-color);background-color:var(--ds-auro-calendar-nav-btn-container-color);color:var(--ds-auro-calendar-nav-btn-chevron-color)}.calendarNavBtn:hover{--ds-auro-calendar-nav-btn-container-color: var(--ds-advanced-color-state-background-hover, #f2f2f2);--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a)}.calendarNavBtn:focus{--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a)}.calendarNavBtn:active{--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a);box-shadow:inset 0 0 0 1px var(--ds-auro-calendar-nav-btn-border-color)}.mobileHeader{background-color:var(--ds-auro-calendar-mobile-header-container-color)}.mobileDateLabel{color:var(--ds-auro-calendar-mobile-header-text-color)}:host(:not([noRange])) .headerDateTo:after{background-color:var(--ds-auro-calendar-mobile-header-divider-color)}::slotted([slot="bib.fullscreen.fromStr"]),::slotted([slot=mobileDateToStr]){color:var(--ds-auro-datepicker-placeholder-color)}@media screen and (max-width: 576px){.calendarNavBtn{--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a)}}`;
|
|
1543
1544
|
|
|
1544
|
-
var
|
|
1545
|
+
var styleCss$b = i$3`:focus:not(:focus-visible){outline:3px solid transparent}:host{position:relative;display:block;width:calc(100% - var(--ds-size-200, 1rem) - var(--ds-size-200, 1rem));margin:0 var(--ds-size-200, 1rem)}@media screen and (min-width: 576px){:host{width:336px;padding:var(--ds-size-200, 1rem)}}@media screen and (min-width: 576px){:host(:not(:last-of-type)):after{position:absolute;top:var(--ds-size-200, 1rem);right:calc(-1*var(--ds-size-200, 1rem));height:calc(100% - var(--ds-size-200, 1rem) - var(--ds-size-200, 1rem));display:block;width:1px;content:""}}.header{display:flex;height:var(--ds-size-500, 2.5rem);margin-bottom:var(--ds-size-150, 0.75rem);align-items:center;flex-direction:row;text-align:center}.headerTitle{display:flex;align-items:center;flex:1;flex-direction:row;justify-content:center;font-size:var(--ds-basic-text-heading-xs-breakpoint-md-font-size, 20px);font-weight:var(--ds-basic-text-heading-xs-breakpoint-md-font-weight, 450);letter-spacing:var(--ds-basic-text-heading-xs-breakpoint-md-letter-spacing, 0);line-height:var(--ds-basic-text-heading-xs-breakpoint-md-line-height, 130%)}.headerTitle div:first-child{margin-right:var(--ds-size-100, 0.5rem)}.calendarNavBtn{position:relative;display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.table{width:100%;border-collapse:collapse}.thead{margin-bottom:var(--ds-size-100, 0.5rem)}.th{display:flex;flex:1;align-items:center;justify-content:center;font-weight:700}.tbody{width:100%;transition:all 0ms;transform:translateX(0)}@media screen and (min-width: 576px){.tbody{height:384px}}.td{flex:1;margin:0;padding:0}.tr{display:flex;flex-direction:row;width:100%}`;
|
|
1546
|
+
|
|
1547
|
+
var colorCss$a = i$3`:focus:not(:focus-visible){outline:3px solid transparent}:host{background-color:var(--ds-auro-calendar-month-container-color)}@media screen and (min-width: 576px){:host(:not(:last-of-type)):after{background-color:var(--ds-auro-calendar-month-divider-color)}}.header{color:var(--ds-auro-calendar-month-header-color)}`;
|
|
1545
1548
|
|
|
1546
1549
|
/******************************************************************************
|
|
1547
1550
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1576,7 +1579,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
1576
1579
|
* @license
|
|
1577
1580
|
* Copyright 2017 Google LLC
|
|
1578
1581
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1579
|
-
*/const o$1={attribute:true,type:String,converter:u$
|
|
1582
|
+
*/const o$1={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f},r$1=(t=o$1,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),"setter"===n&&((t=Object.create(t)).wrapped=true),s.set(r.name,t),"accessor"===n){const{name:o}=r;return {set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t);},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t);}}throw Error("Unsupported decorator location: "+n)};function n(t){return (e,o)=>"object"==typeof o?r$1(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}
|
|
1580
1583
|
|
|
1581
1584
|
/**
|
|
1582
1585
|
* @module constants
|
|
@@ -7332,7 +7335,7 @@ function subYears(date, amount, options) {
|
|
|
7332
7335
|
return addYears(date, -1, options);
|
|
7333
7336
|
}
|
|
7334
7337
|
|
|
7335
|
-
class RangeDatepickerCell extends i$
|
|
7338
|
+
class RangeDatepickerCell extends i$1 {
|
|
7336
7339
|
constructor() {
|
|
7337
7340
|
super(...arguments);
|
|
7338
7341
|
this.day = null;
|
|
@@ -7453,7 +7456,7 @@ class RangeDatepickerCell extends i$2 {
|
|
|
7453
7456
|
});
|
|
7454
7457
|
}
|
|
7455
7458
|
}
|
|
7456
|
-
RangeDatepickerCell.styles = i$
|
|
7459
|
+
RangeDatepickerCell.styles = i$3`
|
|
7457
7460
|
:host {
|
|
7458
7461
|
display: block;
|
|
7459
7462
|
}
|
|
@@ -7533,7 +7536,7 @@ __decorate([n({ type: Array })], RangeDatepickerCell.prototype, "disabledDays",
|
|
|
7533
7536
|
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", void 0);
|
|
7534
7537
|
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", void 0);
|
|
7535
7538
|
__decorate([n({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
7536
|
-
AuroLibraryRuntimeUtils$
|
|
7539
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
7537
7540
|
|
|
7538
7541
|
class Day {
|
|
7539
7542
|
constructor(date) {
|
|
@@ -7542,7 +7545,7 @@ class Day {
|
|
|
7542
7545
|
}
|
|
7543
7546
|
}
|
|
7544
7547
|
|
|
7545
|
-
class RangeDatepickerCalendar extends i$
|
|
7548
|
+
class RangeDatepickerCalendar extends i$1 {
|
|
7546
7549
|
constructor() {
|
|
7547
7550
|
super();
|
|
7548
7551
|
|
|
@@ -7928,7 +7931,7 @@ class RangeDatepickerCalendar extends i$2 {
|
|
|
7928
7931
|
}
|
|
7929
7932
|
}
|
|
7930
7933
|
|
|
7931
|
-
RangeDatepickerCalendar.styles = i$
|
|
7934
|
+
RangeDatepickerCalendar.styles = i$3`
|
|
7932
7935
|
:host {
|
|
7933
7936
|
display: block;
|
|
7934
7937
|
width: 266px;
|
|
@@ -8051,7 +8054,7 @@ __decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList",
|
|
|
8051
8054
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", void 0);
|
|
8052
8055
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", void 0);
|
|
8053
8056
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", void 0);
|
|
8054
|
-
AuroLibraryRuntimeUtils$
|
|
8057
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
8055
8058
|
|
|
8056
8059
|
/**
|
|
8057
8060
|
* @license
|
|
@@ -8066,15 +8069,15 @@ const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});cl
|
|
|
8066
8069
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8067
8070
|
*/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}});
|
|
8068
8071
|
|
|
8069
|
-
var styleCss$a = i$
|
|
8072
|
+
var styleCss$a = i$3`@media screen and (max-width: 576px){:host{display:flex;justify-content:center}}.day{position:relative;width:var(--ds-size-500, 2.5rem);height:calc(var(--ds-size-700, 3.5rem) - 2px);padding:0;border-width:1px;border-style:solid;border-radius:var(--ds-size-300, 1.5rem);cursor:pointer;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);user-select:none}.day.disabled{cursor:default !important}.day.inRange::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%)}@media screen and (min-width: 576px){.day.inRange::before{width:var(--ds-size-600, 3rem)}}.day.rangeDepartDate::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%);width:7.1428571429vw;transform:translate(0%, -50%)}@media screen and (min-width: 576px){.day.rangeDepartDate::before{width:calc(var(--ds-size-600, 3rem)/2)}}.day.rangeReturnDate::before,.day.lastHoveredDate::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%);width:7.1428571429vw;transform:translate(-100%, -50%)}@media screen and (min-width: 576px){.day.rangeReturnDate::before,.day.lastHoveredDate::before{width:calc(var(--ds-size-600, 3rem)/2)}}.dateSlot{display:flex;flex-direction:column;font-size:var(--ds-basic-text-body-xxs-font-size, 10px);font-weight:var(--ds-basic-text-body-xxs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xxs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xxs-line-height, 14px)}::slotted([slot^=date_]){position:absolute;top:80%;left:50%;width:80%;overflow:hidden;white-space:nowrap;transform:translate(-50%, -50%)}::slotted(auro-icon){max-height:24px;max-width:24px}:host([renderForDateSlot]) .buttonWrapper{position:relative;width:100%;top:5px}:host([renderForDateSlot]) .currentDayMarker{position:relative;padding-bottom:5px;top:-8px}@media screen and (min-width: 576px){.day{width:var(--ds-size-600, 3rem);height:var(--ds-size-800, 4rem);font-family:var(--ds-basic-text-body-lg-font-family, "AS Circular");font-size:var(--ds-basic-text-body-lg-font-size, 18px);font-weight:var(--ds-basic-text-body-lg-font-weight, 450);letter-spacing:var(--ds-basic-text-body-lg-letter-spacing, 0);line-height:var(--ds-basic-text-body-lg-line-height, 26px)}.day:hover{cursor:pointer}.dateSlot{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)}}`;
|
|
8070
8073
|
|
|
8071
|
-
var colorCss$9 = i$
|
|
8074
|
+
var colorCss$9 = i$3`:host ::slotted([slot^=date_]){color:var(--ds-auro-calendar-cell-price-text-color)}:host ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-status-success, #447a1f)}:host .day{border-color:var(--ds-auro-calendar-cell-border-color);background-color:var(--ds-auro-calendar-cell-container-color);color:var(--ds-auro-calendar-cell-text-color)}:host .day.selected{--ds-auro-calendar-cell-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host .day.selected ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host .day.selected:hover{--ds-auro-calendar-cell-container-color: var(--ds-advanced-color-state-selected-hover, #00274a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host .day:hover{--ds-auro-calendar-cell-container-color: var(--ds-advanced-color-state-background-hover, #f2f2f2);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host .day.disabled{--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host .day.inRange:before,:host .day.rangeDepartDate:before,:host .day.rangeReturnDate:before,:host .day.lastHoveredDate:before{background-color:var(--ds-auro-calendar-cell-in-range-color)}:host .day.sameDateTrip:before{--ds-auro-calendar-cell-in-range-color: transparent}`;
|
|
8072
8075
|
|
|
8073
|
-
var styleCss$9 = i$
|
|
8076
|
+
var styleCss$9 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([addSpace]) :host(:not([data-show])) .popover,:host(:not([data-show])) .popover,:host([disabled]) .popover{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.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}::slotted(*){white-space:normal}::slotted(*:hover){cursor:pointer}[data-trigger-placement]::slotted(*:hover){position:relative}[data-trigger-placement]::slotted(*:hover):before{position:absolute;left:0;display:block;width:100%;height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));content:""}[data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}[data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}:host([data-show]) .popover{z-index:var(--ds-depth-tooltip, 400)}:host([removeSpace]) .popover{margin:calc(-1*(var(--ds-size-50, 0.25rem) + 1px)) 0 !important}:host([addSpace]) .popover{margin:var(--ds-size-200, 1rem) 0 !important}:host([addSpace]) [data-trigger-placement]::slotted(*:hover):before{height:var(--ds-size-500, 2.5rem)}:host([addSpace]) [data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*var(--ds-size-500, 2.5rem))}:host([addSpace]) [data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*var(--ds-size-500, 2.5rem))}.popover{display:inline-block;max-width:calc(100% - var(--ds-size-400, 2rem));border-radius:var(--ds-border-radius, 0.375rem)}@media screen and (min-width: 576px){.popover{max-width:50%}}@media screen and (min-width: 768px){.popover{max-width:40%}}@media screen and (min-width: 1024px){.popover{max-width:27rem}}[data-popper-placement^=top]>.arrow{bottom:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=top]>.arrow:before{top:calc(-1*var(--ds-size-200, 1rem));left:calc(-1*var(--ds-size-75, 0.375rem));transform:rotate(45deg)}[data-popper-placement^=bottom]>.arrow{top:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=bottom]>.arrow:before{top:var(--ds-size-50, 0.25rem);right:calc(-1*var(--ds-size-200, 1rem));transform:rotate(-135deg)}.arrow{position:relative;margin-top:-var(--ds-size-100, 0.5rem)}.arrow:before{position:absolute;width:var(--ds-size-150, 0.75rem);height:var(--ds-size-150, 0.75rem);content:""}`;
|
|
8074
8077
|
|
|
8075
|
-
var colorCss$8 = i$
|
|
8078
|
+
var colorCss$8 = i$3`::slotted(*){color:var(--ds-auro-popover-text-color)}.popover{background-color:var(--ds-auro-popover-container-color);box-shadow:var(--ds-auro-popover-boxshadow-color)}.arrow:before{background-color:var(--ds-auro-popover-container-color);box-shadow:2px 2px 1px 0 var(--ds-auro-popover-boxshadow-color)}`;
|
|
8076
8079
|
|
|
8077
|
-
var tokensCss$9 = i$
|
|
8080
|
+
var tokensCss$9 = i$3`:host{--ds-auro-popover-boxshadow-color:var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-popover-container-color:var(--ds-basic-color-surface-default, #ffffff);--ds-auro-popover-text-color:var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
8078
8081
|
|
|
8079
8082
|
var top = 'top';
|
|
8080
8083
|
var bottom = 'bottom';
|
|
@@ -9950,7 +9953,7 @@ class Popover {
|
|
|
9950
9953
|
* @slot - Default unnamed slot for the use of popover content
|
|
9951
9954
|
* @slot trigger - The element in this slot triggers hiding and showing the popover.
|
|
9952
9955
|
*/
|
|
9953
|
-
class AuroPopover extends i$
|
|
9956
|
+
class AuroPopover extends i$1 {
|
|
9954
9957
|
constructor() {
|
|
9955
9958
|
super();
|
|
9956
9959
|
|
|
@@ -9965,7 +9968,7 @@ class AuroPopover extends i$2 {
|
|
|
9965
9968
|
privateDefaults() {
|
|
9966
9969
|
this.isPopoverVisible = false;
|
|
9967
9970
|
this.id = `popover-${(Math.random() + 1).toString(36).substring(7)}`;
|
|
9968
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9971
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
9969
9972
|
}
|
|
9970
9973
|
|
|
9971
9974
|
// function to define props used within the scope of this component
|
|
@@ -9980,9 +9983,9 @@ class AuroPopover extends i$2 {
|
|
|
9980
9983
|
|
|
9981
9984
|
static get styles() {
|
|
9982
9985
|
return [
|
|
9983
|
-
i$
|
|
9984
|
-
i$
|
|
9985
|
-
i$
|
|
9986
|
+
i$3`${styleCss$9}`,
|
|
9987
|
+
i$3`${colorCss$8}`,
|
|
9988
|
+
i$3`${tokensCss$9}`
|
|
9986
9989
|
];
|
|
9987
9990
|
}
|
|
9988
9991
|
|
|
@@ -9995,7 +9998,7 @@ class AuroPopover extends i$2 {
|
|
|
9995
9998
|
*
|
|
9996
9999
|
*/
|
|
9997
10000
|
static register(name = "auro-popover") {
|
|
9998
|
-
AuroLibraryRuntimeUtils$
|
|
10001
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroPopover);
|
|
9999
10002
|
}
|
|
10000
10003
|
|
|
10001
10004
|
connectedCallback() {
|
|
@@ -10143,7 +10146,7 @@ var popoverVersion = '4.1.3';
|
|
|
10143
10146
|
|
|
10144
10147
|
/* eslint-disable max-lines, no-underscore-dangle, no-magic-numbers, no-underscore-dangle, max-params, no-void, init-declarations, no-extra-parens, arrow-parens, max-lines, line-comment-position, no-inline-comments, lit/binding-positions, lit/no-invalid-html */
|
|
10145
10148
|
|
|
10146
|
-
class AuroCalendarCell extends i$
|
|
10149
|
+
class AuroCalendarCell extends i$1 {
|
|
10147
10150
|
constructor() {
|
|
10148
10151
|
super();
|
|
10149
10152
|
|
|
@@ -10163,7 +10166,7 @@ class AuroCalendarCell extends i$2 {
|
|
|
10163
10166
|
this.dateStr = null;
|
|
10164
10167
|
this.renderForDateSlot = false; // When false, the numerical date will render vertically centered. When true, the date will render off-center to the top and leave room below for the slot content.
|
|
10165
10168
|
|
|
10166
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
10169
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
10167
10170
|
|
|
10168
10171
|
/**
|
|
10169
10172
|
* Generate unique names for dependency components.
|
|
@@ -10481,7 +10484,7 @@ class AuroCalendarCell extends i$2 {
|
|
|
10481
10484
|
};
|
|
10482
10485
|
|
|
10483
10486
|
let _a, _b;
|
|
10484
|
-
return u$
|
|
10487
|
+
return u$3`
|
|
10485
10488
|
<${this.popoverTag}>
|
|
10486
10489
|
<slot name="popover_${this.dateStr}"></slot>
|
|
10487
10490
|
<button
|
|
@@ -10659,7 +10662,7 @@ if (!customElements.get('auro-formkit-calendar-month')) {
|
|
|
10659
10662
|
|
|
10660
10663
|
/* eslint-disable no-underscore-dangle, no-magic-numbers, no-underscore-dangle, no-void, init-declarations, no-extra-parens, no-unused-expressions */
|
|
10661
10664
|
|
|
10662
|
-
class RangeDatepicker extends i$
|
|
10665
|
+
class RangeDatepicker extends i$1 {
|
|
10663
10666
|
constructor() {
|
|
10664
10667
|
super();
|
|
10665
10668
|
|
|
@@ -10875,7 +10878,7 @@ class RangeDatepicker extends i$2 {
|
|
|
10875
10878
|
}));
|
|
10876
10879
|
}
|
|
10877
10880
|
}
|
|
10878
|
-
RangeDatepicker.styles = i$
|
|
10881
|
+
RangeDatepicker.styles = i$3`
|
|
10879
10882
|
:host {
|
|
10880
10883
|
display: block;
|
|
10881
10884
|
position: relative;
|
|
@@ -11067,11 +11070,11 @@ class CalendarUtilities {
|
|
|
11067
11070
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11068
11071
|
*/const o=o=>o??E;
|
|
11069
11072
|
|
|
11070
|
-
var colorCss$1$2 = i$
|
|
11073
|
+
var colorCss$1$2 = i$3`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
11071
11074
|
|
|
11072
|
-
var styleCss$2$2 = i$
|
|
11075
|
+
var styleCss$2$2 = i$3`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
11073
11076
|
|
|
11074
|
-
var tokenCss = i$
|
|
11077
|
+
var tokenCss = i$3`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
11075
11078
|
|
|
11076
11079
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11077
11080
|
// See LICENSE in the project root for license information.
|
|
@@ -11080,7 +11083,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
11080
11083
|
|
|
11081
11084
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11082
11085
|
|
|
11083
|
-
let AuroLibraryRuntimeUtils$
|
|
11086
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
11084
11087
|
|
|
11085
11088
|
/* eslint-disable jsdoc/require-param */
|
|
11086
11089
|
|
|
@@ -11173,7 +11176,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
11173
11176
|
*/
|
|
11174
11177
|
generateTag(baseName, version, tagClass) {
|
|
11175
11178
|
const elementName = this.generateElementName(baseName, version);
|
|
11176
|
-
const tag = i$
|
|
11179
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
11177
11180
|
|
|
11178
11181
|
if (!customElements.get(elementName)) {
|
|
11179
11182
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -11193,7 +11196,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
11193
11196
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
11194
11197
|
*/
|
|
11195
11198
|
|
|
11196
|
-
let AuroElement$
|
|
11199
|
+
let AuroElement$4 = class AuroElement extends i$1 {
|
|
11197
11200
|
|
|
11198
11201
|
// function to define props used within the scope of this component
|
|
11199
11202
|
static get properties() {
|
|
@@ -11249,7 +11252,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
11249
11252
|
return _fetchMap$2.get(uri);
|
|
11250
11253
|
};
|
|
11251
11254
|
|
|
11252
|
-
var styleCss$1$2 = i$
|
|
11255
|
+
var styleCss$1$2 = i$3`: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}`;
|
|
11253
11256
|
|
|
11254
11257
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11255
11258
|
// See LICENSE in the project root for license information.
|
|
@@ -11261,7 +11264,7 @@ var styleCss$1$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
11261
11264
|
*/
|
|
11262
11265
|
|
|
11263
11266
|
// build the component class
|
|
11264
|
-
let BaseIcon$2 = class BaseIcon extends AuroElement$
|
|
11267
|
+
let BaseIcon$2 = class BaseIcon extends AuroElement$4 {
|
|
11265
11268
|
constructor() {
|
|
11266
11269
|
super();
|
|
11267
11270
|
this.onDark = false;
|
|
@@ -11291,7 +11294,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$3 {
|
|
|
11291
11294
|
}
|
|
11292
11295
|
|
|
11293
11296
|
static get styles() {
|
|
11294
|
-
return i$
|
|
11297
|
+
return i$3`
|
|
11295
11298
|
${styleCss$1$2}
|
|
11296
11299
|
`;
|
|
11297
11300
|
}
|
|
@@ -11333,9 +11336,79 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$3 {
|
|
|
11333
11336
|
}
|
|
11334
11337
|
};
|
|
11335
11338
|
|
|
11336
|
-
var tokensCss$8 = i$
|
|
11339
|
+
var tokensCss$8 = i$3`: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)}`;
|
|
11340
|
+
|
|
11341
|
+
var colorCss$7 = i$3`: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)}`;
|
|
11342
|
+
|
|
11343
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11344
|
+
// See LICENSE in the project root for license information.
|
|
11345
|
+
|
|
11346
|
+
// ---------------------------------------------------------------------
|
|
11347
|
+
|
|
11348
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11349
|
+
|
|
11350
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
11351
|
+
|
|
11352
|
+
/* eslint-disable jsdoc/require-param */
|
|
11353
|
+
|
|
11354
|
+
/**
|
|
11355
|
+
* This will register a new custom element with the browser.
|
|
11356
|
+
* @param {String} name - The name of the custom element.
|
|
11357
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11358
|
+
* @returns {void}
|
|
11359
|
+
*/
|
|
11360
|
+
registerComponent(name, componentClass) {
|
|
11361
|
+
if (!customElements.get(name)) {
|
|
11362
|
+
customElements.define(name, class extends componentClass {});
|
|
11363
|
+
}
|
|
11364
|
+
}
|
|
11365
|
+
|
|
11366
|
+
/**
|
|
11367
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11368
|
+
* @returns {void}
|
|
11369
|
+
*/
|
|
11370
|
+
closestElement(
|
|
11371
|
+
selector, // selector like in .closest()
|
|
11372
|
+
base = this, // extra functionality to skip a parent
|
|
11373
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11374
|
+
!el || el === document || el === window
|
|
11375
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11376
|
+
: found
|
|
11377
|
+
? found // found a selector INside this element
|
|
11378
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11379
|
+
) {
|
|
11380
|
+
return __Closest(base);
|
|
11381
|
+
}
|
|
11382
|
+
/* eslint-enable jsdoc/require-param */
|
|
11383
|
+
|
|
11384
|
+
/**
|
|
11385
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
11386
|
+
* @param {Object} elem - The element to check.
|
|
11387
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11388
|
+
* @returns {void}
|
|
11389
|
+
*/
|
|
11390
|
+
handleComponentTagRename(elem, tagName) {
|
|
11391
|
+
const tag = tagName.toLowerCase();
|
|
11392
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11393
|
+
|
|
11394
|
+
if (elemTag !== tag) {
|
|
11395
|
+
elem.setAttribute(tag, true);
|
|
11396
|
+
}
|
|
11397
|
+
}
|
|
11398
|
+
|
|
11399
|
+
/**
|
|
11400
|
+
* Validates if an element is a specific Auro component.
|
|
11401
|
+
* @param {Object} elem - The element to validate.
|
|
11402
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11403
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11404
|
+
*/
|
|
11405
|
+
elementMatch(elem, tagName) {
|
|
11406
|
+
const tag = tagName.toLowerCase();
|
|
11407
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11337
11408
|
|
|
11338
|
-
|
|
11409
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11410
|
+
}
|
|
11411
|
+
};
|
|
11339
11412
|
|
|
11340
11413
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11341
11414
|
// See LICENSE in the project root for license information.
|
|
@@ -11356,7 +11429,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11356
11429
|
*/
|
|
11357
11430
|
privateDefaults() {
|
|
11358
11431
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
11359
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11432
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
11360
11433
|
}
|
|
11361
11434
|
|
|
11362
11435
|
// function to define props used within the scope of this component
|
|
@@ -11423,9 +11496,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11423
11496
|
static get styles() {
|
|
11424
11497
|
return [
|
|
11425
11498
|
super.styles,
|
|
11426
|
-
i$
|
|
11427
|
-
i$
|
|
11428
|
-
i$
|
|
11499
|
+
i$3`${tokensCss$8}`,
|
|
11500
|
+
i$3`${styleCss$1$2}`,
|
|
11501
|
+
i$3`${colorCss$7}`
|
|
11429
11502
|
];
|
|
11430
11503
|
}
|
|
11431
11504
|
|
|
@@ -11438,7 +11511,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11438
11511
|
*
|
|
11439
11512
|
*/
|
|
11440
11513
|
static register(name = "auro-icon") {
|
|
11441
|
-
AuroLibraryRuntimeUtils$
|
|
11514
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroIcon);
|
|
11442
11515
|
}
|
|
11443
11516
|
|
|
11444
11517
|
connectedCallback() {
|
|
@@ -11506,7 +11579,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11506
11579
|
|
|
11507
11580
|
var iconVersion$2 = '8.0.3';
|
|
11508
11581
|
|
|
11509
|
-
var styleCss$8 = i$
|
|
11582
|
+
var styleCss$8 = i$3`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
11510
11583
|
|
|
11511
11584
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11512
11585
|
// See LICENSE in the project root for license information.
|
|
@@ -11526,7 +11599,7 @@ var styleCss$8 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-head
|
|
|
11526
11599
|
/* eslint complexity: ["error", 21] */
|
|
11527
11600
|
|
|
11528
11601
|
// build the component class
|
|
11529
|
-
class AuroHeader extends i$
|
|
11602
|
+
class AuroHeader extends i$1 {
|
|
11530
11603
|
constructor() {
|
|
11531
11604
|
super();
|
|
11532
11605
|
|
|
@@ -11535,7 +11608,7 @@ class AuroHeader extends i$2 {
|
|
|
11535
11608
|
/**
|
|
11536
11609
|
* @private
|
|
11537
11610
|
*/
|
|
11538
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11611
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
11539
11612
|
}
|
|
11540
11613
|
|
|
11541
11614
|
// function to define props used within the scope of this component
|
|
@@ -11565,7 +11638,7 @@ class AuroHeader extends i$2 {
|
|
|
11565
11638
|
*
|
|
11566
11639
|
*/
|
|
11567
11640
|
static register(name = "auro-header") {
|
|
11568
|
-
AuroLibraryRuntimeUtils$
|
|
11641
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroHeader);
|
|
11569
11642
|
}
|
|
11570
11643
|
|
|
11571
11644
|
firstUpdated() {
|
|
@@ -11654,14 +11727,14 @@ var headerVersion = '4.0.1';
|
|
|
11654
11727
|
// See LICENSE in the project root for license information.
|
|
11655
11728
|
|
|
11656
11729
|
|
|
11657
|
-
class AuroBibtemplate extends i$
|
|
11730
|
+
class AuroBibtemplate extends i$1 {
|
|
11658
11731
|
|
|
11659
11732
|
constructor() {
|
|
11660
11733
|
super();
|
|
11661
11734
|
|
|
11662
11735
|
this.large = false;
|
|
11663
11736
|
|
|
11664
|
-
AuroLibraryRuntimeUtils$
|
|
11737
|
+
AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
11665
11738
|
|
|
11666
11739
|
const versioning = new AuroDependencyVersioning$2();
|
|
11667
11740
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$2, AuroIcon$2);
|
|
@@ -11700,7 +11773,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
11700
11773
|
*
|
|
11701
11774
|
*/
|
|
11702
11775
|
static register(name = "auro-bibtemplate") {
|
|
11703
|
-
AuroLibraryRuntimeUtils$
|
|
11776
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
11704
11777
|
}
|
|
11705
11778
|
|
|
11706
11779
|
/**
|
|
@@ -11740,11 +11813,23 @@ class AuroBibtemplate extends i$2 {
|
|
|
11740
11813
|
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
11741
11814
|
}
|
|
11742
11815
|
|
|
11816
|
+
firstUpdated(changedProperties) {
|
|
11817
|
+
super.firstUpdated(changedProperties);
|
|
11818
|
+
|
|
11819
|
+
this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
|
|
11820
|
+
bubbles: true,
|
|
11821
|
+
composed: true,
|
|
11822
|
+
detail: {
|
|
11823
|
+
element: this
|
|
11824
|
+
}
|
|
11825
|
+
}));
|
|
11826
|
+
}
|
|
11827
|
+
|
|
11743
11828
|
// function that renders the HTML and CSS into the scope of the component
|
|
11744
11829
|
render() {
|
|
11745
|
-
return u$
|
|
11830
|
+
return u$3`
|
|
11746
11831
|
<div id="bibTemplate" part="bibtemplate">
|
|
11747
|
-
${this.isFullscreen ? u$
|
|
11832
|
+
${this.isFullscreen ? u$3`
|
|
11748
11833
|
<div id="headerContainer">
|
|
11749
11834
|
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
11750
11835
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
@@ -11761,7 +11846,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
11761
11846
|
<slot></slot>
|
|
11762
11847
|
</div>
|
|
11763
11848
|
|
|
11764
|
-
${this.isFullscreen ? u$
|
|
11849
|
+
${this.isFullscreen ? u$3`
|
|
11765
11850
|
<div id="footerContainer">
|
|
11766
11851
|
<slot name="footer"></slot>
|
|
11767
11852
|
</div>` : null}
|
|
@@ -11772,23 +11857,23 @@ class AuroBibtemplate extends i$2 {
|
|
|
11772
11857
|
|
|
11773
11858
|
var bibTemplateVersion = '1.0.0';
|
|
11774
11859
|
|
|
11775
|
-
var styleCss$7 = i$
|
|
11860
|
+
var styleCss$7 = i$3`: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}`;
|
|
11776
11861
|
|
|
11777
|
-
var colorCss$6 = i$
|
|
11862
|
+
var colorCss$6 = i$3`[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}`;
|
|
11778
11863
|
|
|
11779
|
-
var tokensCss$7 = i$
|
|
11864
|
+
var tokensCss$7 = i$3`: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}`;
|
|
11780
11865
|
|
|
11781
|
-
var styleCss$6 = i$
|
|
11866
|
+
var styleCss$6 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
11782
11867
|
|
|
11783
|
-
var colorCss$5 = i$
|
|
11868
|
+
var colorCss$5 = i$3`: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}`;
|
|
11784
11869
|
|
|
11785
|
-
var tokensCss$6 = i$
|
|
11870
|
+
var tokensCss$6 = i$3`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11786
11871
|
|
|
11787
11872
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11788
11873
|
// See LICENSE in the project root for license information.
|
|
11789
11874
|
|
|
11790
11875
|
|
|
11791
|
-
let AuroLoader$1 = class AuroLoader extends i$
|
|
11876
|
+
let AuroLoader$1 = class AuroLoader extends i$1 {
|
|
11792
11877
|
constructor() {
|
|
11793
11878
|
super();
|
|
11794
11879
|
|
|
@@ -11810,7 +11895,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
11810
11895
|
/**
|
|
11811
11896
|
* @private
|
|
11812
11897
|
*/
|
|
11813
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11898
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
11814
11899
|
|
|
11815
11900
|
this.orbit = false;
|
|
11816
11901
|
this.ringworm = false;
|
|
@@ -11858,9 +11943,9 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
11858
11943
|
|
|
11859
11944
|
static get styles() {
|
|
11860
11945
|
return [
|
|
11861
|
-
i$
|
|
11862
|
-
i$
|
|
11863
|
-
i$
|
|
11946
|
+
i$3`${styleCss$6}`,
|
|
11947
|
+
i$3`${colorCss$5}`,
|
|
11948
|
+
i$3`${tokensCss$6}`
|
|
11864
11949
|
];
|
|
11865
11950
|
}
|
|
11866
11951
|
|
|
@@ -11873,7 +11958,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
11873
11958
|
*
|
|
11874
11959
|
*/
|
|
11875
11960
|
static register(name = "auro-loader") {
|
|
11876
|
-
AuroLibraryRuntimeUtils$
|
|
11961
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroLoader);
|
|
11877
11962
|
}
|
|
11878
11963
|
|
|
11879
11964
|
firstUpdated() {
|
|
@@ -11941,7 +12026,7 @@ var loaderVersion$1 = '5.0.0';
|
|
|
11941
12026
|
|
|
11942
12027
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
11943
12028
|
|
|
11944
|
-
let AuroButton$1 = class AuroButton extends i$
|
|
12029
|
+
let AuroButton$1 = class AuroButton extends i$1 {
|
|
11945
12030
|
|
|
11946
12031
|
/**
|
|
11947
12032
|
* Enables form association for this element.
|
|
@@ -12177,7 +12262,7 @@ let AuroButton$1 = class AuroButton extends i$2 {
|
|
|
12177
12262
|
*
|
|
12178
12263
|
*/
|
|
12179
12264
|
static register(name = "auro-button") {
|
|
12180
|
-
AuroLibraryRuntimeUtils$
|
|
12265
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroButton);
|
|
12181
12266
|
}
|
|
12182
12267
|
|
|
12183
12268
|
/**
|
|
@@ -12232,7 +12317,7 @@ let AuroButton$1 = class AuroButton extends i$2 {
|
|
|
12232
12317
|
'loading': this.loading
|
|
12233
12318
|
};
|
|
12234
12319
|
|
|
12235
|
-
return u$
|
|
12320
|
+
return u$3`
|
|
12236
12321
|
<button
|
|
12237
12322
|
part="button"
|
|
12238
12323
|
aria-hidden="${o(this.ariahidden || undefined)}"
|
|
@@ -12251,11 +12336,11 @@ let AuroButton$1 = class AuroButton extends i$2 {
|
|
|
12251
12336
|
.value="${o(this.value ? this.value : undefined)}"
|
|
12252
12337
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
12253
12338
|
>
|
|
12254
|
-
${o(this.loading ? u$
|
|
12339
|
+
${o(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
12255
12340
|
|
|
12256
12341
|
<span class="contentWrapper">
|
|
12257
12342
|
<span class="textSlot" part="text">
|
|
12258
|
-
${this.iconOnly ? undefined : u$
|
|
12343
|
+
${this.iconOnly ? undefined : u$3`<slot></slot>`}
|
|
12259
12344
|
</span>
|
|
12260
12345
|
|
|
12261
12346
|
<span part="icon">
|
|
@@ -12490,7 +12575,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12490
12575
|
const firstMonth = this.firstRenderedMonth.getMonth() + 1;
|
|
12491
12576
|
const firstYear = this.firstRenderedMonth.getFullYear();
|
|
12492
12577
|
|
|
12493
|
-
renderedHtml = u$
|
|
12578
|
+
renderedHtml = u$3`${renderedHtml}${this.utilCalRender.renderCalendar(this, firstMonth, firstYear)}`;
|
|
12494
12579
|
|
|
12495
12580
|
// Loop through the number of remaining calendars to render and add the HTML
|
|
12496
12581
|
let newMonthDate = undefined;
|
|
@@ -12516,7 +12601,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12516
12601
|
const newMonthDateStr = `${newMonth}/1/${newYear}`;
|
|
12517
12602
|
newMonthDate = new Date(newMonthDateStr);
|
|
12518
12603
|
|
|
12519
|
-
renderedHtml = u$
|
|
12604
|
+
renderedHtml = u$3`${renderedHtml}${this.utilCalRender.renderCalendar(this, newMonth, newYear)}`;
|
|
12520
12605
|
}
|
|
12521
12606
|
}
|
|
12522
12607
|
|
|
@@ -12580,7 +12665,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12580
12665
|
}
|
|
12581
12666
|
|
|
12582
12667
|
render() {
|
|
12583
|
-
return u$
|
|
12668
|
+
return u$3`
|
|
12584
12669
|
<${this.bibtemplateTag}
|
|
12585
12670
|
?large="${this.largeFullscreenHeadline}"
|
|
12586
12671
|
?isFullscreen="${this.isFullscreen}"
|
|
@@ -12602,12 +12687,12 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12602
12687
|
${this.renderAllCalendars()}
|
|
12603
12688
|
</div>
|
|
12604
12689
|
<div class="calendarNavButtons">
|
|
12605
|
-
${this.showPrevMonthBtn ? u$
|
|
12690
|
+
${this.showPrevMonthBtn ? u$3`
|
|
12606
12691
|
<button class="calendarNavBtn prevMonth" @click="${this.handlePrevMonth}">
|
|
12607
12692
|
${this.util.generateIconHtml(chevronLeft)}
|
|
12608
12693
|
</button>
|
|
12609
12694
|
` : undefined}
|
|
12610
|
-
${this.showNextMonthBtn ? u$
|
|
12695
|
+
${this.showNextMonthBtn ? u$3`
|
|
12611
12696
|
<button class="calendarNavBtn nextMonth" @click="${this.handleNextMonth}">
|
|
12612
12697
|
${this.util.generateIconHtml(chevronRight)}
|
|
12613
12698
|
</button>
|
|
@@ -12632,7 +12717,7 @@ if (!customElements.get('auro-formkit-calendar')) {
|
|
|
12632
12717
|
|
|
12633
12718
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12634
12719
|
|
|
12635
|
-
let AuroLibraryRuntimeUtils$
|
|
12720
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
12636
12721
|
|
|
12637
12722
|
/* eslint-disable jsdoc/require-param */
|
|
12638
12723
|
|
|
@@ -13215,10 +13300,11 @@ const flip$1 = function (options) {
|
|
|
13215
13300
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
13216
13301
|
const nextPlacement = placements[nextIndex];
|
|
13217
13302
|
if (nextPlacement) {
|
|
13218
|
-
var _overflowsData$;
|
|
13219
13303
|
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
13220
|
-
|
|
13221
|
-
if
|
|
13304
|
+
if (!ignoreCrossAxisOverflow ||
|
|
13305
|
+
// We leave the current main axis only if every placement on that axis
|
|
13306
|
+
// overflows the main axis.
|
|
13307
|
+
overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
|
|
13222
13308
|
// Try next placement and re-run the lifecycle.
|
|
13223
13309
|
return {
|
|
13224
13310
|
data: {
|
|
@@ -14239,8 +14325,28 @@ class AuroFloatingUI {
|
|
|
14239
14325
|
if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
|
|
14240
14326
|
AuroFloatingUI.isMousePressHandlerInitialized = true;
|
|
14241
14327
|
|
|
14328
|
+
// Track timeout for isMousePressed reset to avoid race conditions
|
|
14329
|
+
if (!AuroFloatingUI._mousePressedTimeout) {
|
|
14330
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14331
|
+
}
|
|
14242
14332
|
const mouseEventGlobalHandler = (event) => {
|
|
14243
|
-
|
|
14333
|
+
const isPressed = event.type === 'mousedown';
|
|
14334
|
+
if (isPressed) {
|
|
14335
|
+
// Clear any pending timeout to prevent race condition
|
|
14336
|
+
if (AuroFloatingUI._mousePressedTimeout !== null) {
|
|
14337
|
+
clearTimeout(AuroFloatingUI._mousePressedTimeout);
|
|
14338
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14339
|
+
}
|
|
14340
|
+
if (!AuroFloatingUI.isMousePressed) {
|
|
14341
|
+
AuroFloatingUI.isMousePressed = true;
|
|
14342
|
+
}
|
|
14343
|
+
} else if (AuroFloatingUI.isMousePressed && !isPressed) {
|
|
14344
|
+
// Schedule reset and track timeout ID
|
|
14345
|
+
AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
|
|
14346
|
+
AuroFloatingUI.isMousePressed = false;
|
|
14347
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14348
|
+
}, 0);
|
|
14349
|
+
}
|
|
14244
14350
|
};
|
|
14245
14351
|
|
|
14246
14352
|
window.addEventListener('mousedown', mouseEventGlobalHandler);
|
|
@@ -14367,6 +14473,7 @@ class AuroFloatingUI {
|
|
|
14367
14473
|
|
|
14368
14474
|
// Compute the position of the bib
|
|
14369
14475
|
computePosition(this.element.trigger, this.element.bib, {
|
|
14476
|
+
strategy: this.element.floaterConfig?.strategy || 'fixed',
|
|
14370
14477
|
placement: this.element.floaterConfig?.placement,
|
|
14371
14478
|
middleware: middleware || []
|
|
14372
14479
|
}).then(({ x, y }) => { // eslint-disable-line id-length
|
|
@@ -14501,8 +14608,9 @@ class AuroFloatingUI {
|
|
|
14501
14608
|
if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
|
|
14502
14609
|
return;
|
|
14503
14610
|
}
|
|
14504
|
-
|
|
14505
|
-
if
|
|
14611
|
+
|
|
14612
|
+
// if fullscreen bib is in fullscreen mode, do not close
|
|
14613
|
+
if (this.element.bib.hasAttribute('isfullscreen')) {
|
|
14506
14614
|
return;
|
|
14507
14615
|
}
|
|
14508
14616
|
|
|
@@ -14803,8 +14911,6 @@ class AuroFloatingUI {
|
|
|
14803
14911
|
this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
|
|
14804
14912
|
}
|
|
14805
14913
|
|
|
14806
|
-
document.body.append(this.element.bib);
|
|
14807
|
-
|
|
14808
14914
|
this.regenerateBibId();
|
|
14809
14915
|
this.handleTriggerTabIndex();
|
|
14810
14916
|
|
|
@@ -14871,7 +14977,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
14871
14977
|
*/
|
|
14872
14978
|
generateTag(baseName, version, tagClass) {
|
|
14873
14979
|
const elementName = this.generateElementName(baseName, version);
|
|
14874
|
-
const tag = i$
|
|
14980
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
14875
14981
|
|
|
14876
14982
|
if (!customElements.get(elementName)) {
|
|
14877
14983
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -14891,7 +14997,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
14891
14997
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
14892
14998
|
*/
|
|
14893
14999
|
|
|
14894
|
-
let AuroElement$1$1 = class AuroElement extends i$
|
|
15000
|
+
let AuroElement$1$1 = class AuroElement extends i$1 {
|
|
14895
15001
|
|
|
14896
15002
|
// function to define props used within the scope of this component
|
|
14897
15003
|
static get properties() {
|
|
@@ -14947,7 +15053,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
14947
15053
|
return _fetchMap$1.get(uri);
|
|
14948
15054
|
};
|
|
14949
15055
|
|
|
14950
|
-
var styleCss$
|
|
15056
|
+
var styleCss$2$1 = i$3`: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}`;
|
|
14951
15057
|
|
|
14952
15058
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14953
15059
|
// See LICENSE in the project root for license information.
|
|
@@ -14989,8 +15095,8 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
14989
15095
|
}
|
|
14990
15096
|
|
|
14991
15097
|
static get styles() {
|
|
14992
|
-
return i$
|
|
14993
|
-
${styleCss$
|
|
15098
|
+
return i$3`
|
|
15099
|
+
${styleCss$2$1}
|
|
14994
15100
|
`;
|
|
14995
15101
|
}
|
|
14996
15102
|
|
|
@@ -15031,9 +15137,79 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
15031
15137
|
}
|
|
15032
15138
|
};
|
|
15033
15139
|
|
|
15034
|
-
var tokensCss$2$1 = i$
|
|
15140
|
+
var tokensCss$2$1 = i$3`: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)}`;
|
|
15141
|
+
|
|
15142
|
+
var colorCss$3$1 = i$3`: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)}`;
|
|
15143
|
+
|
|
15144
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
15145
|
+
// See LICENSE in the project root for license information.
|
|
15146
|
+
|
|
15147
|
+
// ---------------------------------------------------------------------
|
|
15148
|
+
|
|
15149
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
15150
|
+
|
|
15151
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
15152
|
+
|
|
15153
|
+
/* eslint-disable jsdoc/require-param */
|
|
15154
|
+
|
|
15155
|
+
/**
|
|
15156
|
+
* This will register a new custom element with the browser.
|
|
15157
|
+
* @param {String} name - The name of the custom element.
|
|
15158
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
15159
|
+
* @returns {void}
|
|
15160
|
+
*/
|
|
15161
|
+
registerComponent(name, componentClass) {
|
|
15162
|
+
if (!customElements.get(name)) {
|
|
15163
|
+
customElements.define(name, class extends componentClass {});
|
|
15164
|
+
}
|
|
15165
|
+
}
|
|
15166
|
+
|
|
15167
|
+
/**
|
|
15168
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
15169
|
+
* @returns {void}
|
|
15170
|
+
*/
|
|
15171
|
+
closestElement(
|
|
15172
|
+
selector, // selector like in .closest()
|
|
15173
|
+
base = this, // extra functionality to skip a parent
|
|
15174
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
15175
|
+
!el || el === document || el === window
|
|
15176
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
15177
|
+
: found
|
|
15178
|
+
? found // found a selector INside this element
|
|
15179
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
15180
|
+
) {
|
|
15181
|
+
return __Closest(base);
|
|
15182
|
+
}
|
|
15183
|
+
/* eslint-enable jsdoc/require-param */
|
|
15184
|
+
|
|
15185
|
+
/**
|
|
15186
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
15187
|
+
* @param {Object} elem - The element to check.
|
|
15188
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
15189
|
+
* @returns {void}
|
|
15190
|
+
*/
|
|
15191
|
+
handleComponentTagRename(elem, tagName) {
|
|
15192
|
+
const tag = tagName.toLowerCase();
|
|
15193
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
15194
|
+
|
|
15195
|
+
if (elemTag !== tag) {
|
|
15196
|
+
elem.setAttribute(tag, true);
|
|
15197
|
+
}
|
|
15198
|
+
}
|
|
15199
|
+
|
|
15200
|
+
/**
|
|
15201
|
+
* Validates if an element is a specific Auro component.
|
|
15202
|
+
* @param {Object} elem - The element to validate.
|
|
15203
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
15204
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
15205
|
+
*/
|
|
15206
|
+
elementMatch(elem, tagName) {
|
|
15207
|
+
const tag = tagName.toLowerCase();
|
|
15208
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
15035
15209
|
|
|
15036
|
-
|
|
15210
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
15211
|
+
}
|
|
15212
|
+
};
|
|
15037
15213
|
|
|
15038
15214
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
15039
15215
|
// See LICENSE in the project root for license information.
|
|
@@ -15121,9 +15297,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
15121
15297
|
static get styles() {
|
|
15122
15298
|
return [
|
|
15123
15299
|
super.styles,
|
|
15124
|
-
i$
|
|
15125
|
-
i$
|
|
15126
|
-
i$
|
|
15300
|
+
i$3`${tokensCss$2$1}`,
|
|
15301
|
+
i$3`${styleCss$2$1}`,
|
|
15302
|
+
i$3`${colorCss$3$1}`
|
|
15127
15303
|
];
|
|
15128
15304
|
}
|
|
15129
15305
|
|
|
@@ -15204,17 +15380,16 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
15204
15380
|
|
|
15205
15381
|
var iconVersion$1 = '6.1.2';
|
|
15206
15382
|
|
|
15207
|
-
var styleCss$
|
|
15383
|
+
var styleCss$1$1 = i$3`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
15208
15384
|
|
|
15209
|
-
var colorCss$2$1 = i$
|
|
15385
|
+
var colorCss$2$1 = i$3`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
15210
15386
|
|
|
15211
|
-
var tokensCss$1$1 = i$
|
|
15387
|
+
var tokensCss$1$1 = i$3`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
|
|
15212
15388
|
|
|
15213
15389
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
15214
15390
|
// See LICENSE in the project root for license information.
|
|
15215
15391
|
|
|
15216
15392
|
|
|
15217
|
-
|
|
15218
15393
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
15219
15394
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
15220
15395
|
'xl',
|
|
@@ -15229,7 +15404,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
15229
15404
|
* @csspart bibContainer - Apply css to the bib container.
|
|
15230
15405
|
*/
|
|
15231
15406
|
|
|
15232
|
-
class AuroDropdownBib extends i$
|
|
15407
|
+
class AuroDropdownBib extends i$1 {
|
|
15233
15408
|
|
|
15234
15409
|
constructor() {
|
|
15235
15410
|
super();
|
|
@@ -15239,12 +15414,12 @@ class AuroDropdownBib extends i$2 {
|
|
|
15239
15414
|
*/
|
|
15240
15415
|
this._mobileBreakpointValue = undefined;
|
|
15241
15416
|
|
|
15242
|
-
AuroLibraryRuntimeUtils$
|
|
15417
|
+
AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
15243
15418
|
}
|
|
15244
15419
|
|
|
15245
15420
|
static get styles() {
|
|
15246
15421
|
return [
|
|
15247
|
-
styleCss$
|
|
15422
|
+
styleCss$1$1,
|
|
15248
15423
|
colorCss$2$1,
|
|
15249
15424
|
tokensCss$1$1
|
|
15250
15425
|
];
|
|
@@ -15284,6 +15459,13 @@ class AuroDropdownBib extends i$2 {
|
|
|
15284
15459
|
type: Boolean,
|
|
15285
15460
|
reflect: true
|
|
15286
15461
|
},
|
|
15462
|
+
|
|
15463
|
+
/**
|
|
15464
|
+
* A reference to the associated bib template element.
|
|
15465
|
+
*/
|
|
15466
|
+
bibTemplate: {
|
|
15467
|
+
type: Object
|
|
15468
|
+
}
|
|
15287
15469
|
};
|
|
15288
15470
|
}
|
|
15289
15471
|
|
|
@@ -15316,12 +15498,53 @@ class AuroDropdownBib extends i$2 {
|
|
|
15316
15498
|
}
|
|
15317
15499
|
}
|
|
15318
15500
|
});
|
|
15501
|
+
|
|
15502
|
+
if (this.bibTemplate) {
|
|
15503
|
+
// If the bib template is found, set the fullscreen attribute
|
|
15504
|
+
if (this.isFullscreen) {
|
|
15505
|
+
this.bibTemplate.setAttribute('isFullscreen', 'true');
|
|
15506
|
+
} else {
|
|
15507
|
+
this.bibTemplate.removeAttribute('isFullscreen');
|
|
15508
|
+
}
|
|
15509
|
+
}
|
|
15319
15510
|
}
|
|
15320
15511
|
}
|
|
15321
15512
|
|
|
15513
|
+
connectedCallback() {
|
|
15514
|
+
super.connectedCallback();
|
|
15515
|
+
|
|
15516
|
+
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
15517
|
+
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
15518
|
+
const bibTemplate = event.detail.element;
|
|
15519
|
+
this.bibTemplate = bibTemplate;
|
|
15520
|
+
|
|
15521
|
+
if (bibTemplate) {
|
|
15522
|
+
// If the bib template is found, set the fullscreen attribute
|
|
15523
|
+
if (this.isFullscreen) {
|
|
15524
|
+
bibTemplate.setAttribute('isFullscreen', 'true');
|
|
15525
|
+
} else {
|
|
15526
|
+
bibTemplate.removeAttribute('isFullscreen');
|
|
15527
|
+
}
|
|
15528
|
+
}
|
|
15529
|
+
});
|
|
15530
|
+
}
|
|
15531
|
+
|
|
15532
|
+
firstUpdated(changedProperties) {
|
|
15533
|
+
super.firstUpdated(changedProperties);
|
|
15534
|
+
|
|
15535
|
+
// Dispatch a custom event when the component is connected
|
|
15536
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
15537
|
+
bubbles: true,
|
|
15538
|
+
composed: true,
|
|
15539
|
+
detail: {
|
|
15540
|
+
element: this
|
|
15541
|
+
}
|
|
15542
|
+
}));
|
|
15543
|
+
}
|
|
15544
|
+
|
|
15322
15545
|
// function that renders the HTML and CSS into the scope of the component
|
|
15323
15546
|
render() {
|
|
15324
|
-
return u$
|
|
15547
|
+
return u$3`
|
|
15325
15548
|
<div class="container" part="bibContainer">
|
|
15326
15549
|
<slot></slot>
|
|
15327
15550
|
</div>
|
|
@@ -15331,21 +15554,23 @@ class AuroDropdownBib extends i$2 {
|
|
|
15331
15554
|
|
|
15332
15555
|
var dropdownVersion$1 = '3.0.0';
|
|
15333
15556
|
|
|
15334
|
-
var shapeSizeCss$1 = i$
|
|
15557
|
+
var shapeSizeCss$1 = i$3`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.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-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-md.parentBorder{border:0;min-height:44px;max-height:44px}.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-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.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}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
|
|
15335
15558
|
|
|
15336
|
-
var
|
|
15559
|
+
var colorCss$1$1 = i$3`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
|
|
15337
15560
|
|
|
15338
|
-
var
|
|
15561
|
+
var classicColorCss$1 = i$3`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}:host([layout*=classic]) .trigger:focus-within,:host([layout*=classic]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([layout*=classic])[common],:host([layout*=classic])[bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([layout*=classic])[common] .trigger:active,:host([layout*=classic])[common] .trigger:focus-within,:host([layout*=classic])[bordered] .trigger:active,:host([layout*=classic])[bordered] .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[error]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic])[error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[error] .trigger:focus-within,:host([layout*=classic])[error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled][common],:host([layout*=classic])[disabled][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic])[onDark]{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([layout*=classic])[onDark]:focus-within,:host([layout*=classic])[onDark]:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([layout*=classic])[onDark][common],:host([layout*=classic])[onDark][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic])[onDark][common] .trigger:focus-within,:host([layout*=classic])[onDark][common] .trigger:active,:host([layout*=classic])[onDark][bordered] .trigger:focus-within,:host([layout*=classic])[onDark][bordered] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][error]{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic])[onDark][error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[onDark][error] .trigger:focus-within,:host([layout*=classic])[onDark][error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled][common],:host([layout*=classic])[onDark][disabled][bordered]{--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
|
|
15339
15562
|
|
|
15340
|
-
var
|
|
15563
|
+
var classicLayoutCss = i$3`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
15341
15564
|
|
|
15342
|
-
var
|
|
15565
|
+
var styleEmphasizedCss = i$3`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
15343
15566
|
|
|
15344
|
-
var
|
|
15567
|
+
var styleSnowflakeCss = i$3`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
15345
15568
|
|
|
15346
|
-
var
|
|
15569
|
+
var colorCss$4 = i$3`: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)}`;
|
|
15347
15570
|
|
|
15348
|
-
var
|
|
15571
|
+
var styleCss$5 = i$3`.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}`;
|
|
15572
|
+
|
|
15573
|
+
var tokensCss$5 = i$3`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
15349
15574
|
|
|
15350
15575
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
15351
15576
|
// See LICENSE in the project root for license information.
|
|
@@ -15354,7 +15579,7 @@ var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
15354
15579
|
|
|
15355
15580
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
15356
15581
|
|
|
15357
|
-
let AuroLibraryRuntimeUtils$
|
|
15582
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
15358
15583
|
|
|
15359
15584
|
/* eslint-disable jsdoc/require-param */
|
|
15360
15585
|
|
|
@@ -15426,7 +15651,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
15426
15651
|
*
|
|
15427
15652
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
15428
15653
|
*/
|
|
15429
|
-
let AuroHelpText$1 = class AuroHelpText extends i$
|
|
15654
|
+
let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
15430
15655
|
|
|
15431
15656
|
constructor() {
|
|
15432
15657
|
super();
|
|
@@ -15435,7 +15660,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15435
15660
|
this.onDark = false;
|
|
15436
15661
|
this.hasTextContent = false;
|
|
15437
15662
|
|
|
15438
|
-
AuroLibraryRuntimeUtils$
|
|
15663
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
15439
15664
|
}
|
|
15440
15665
|
|
|
15441
15666
|
static get styles() {
|
|
@@ -15491,7 +15716,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15491
15716
|
*
|
|
15492
15717
|
*/
|
|
15493
15718
|
static register(name = "auro-helptext") {
|
|
15494
|
-
AuroLibraryRuntimeUtils$
|
|
15719
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
15495
15720
|
}
|
|
15496
15721
|
|
|
15497
15722
|
updated() {
|
|
@@ -15549,7 +15774,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15549
15774
|
|
|
15550
15775
|
var helpTextVersion$1 = '1.0.0';
|
|
15551
15776
|
|
|
15552
|
-
let AuroElement$
|
|
15777
|
+
let AuroElement$3 = class AuroElement extends i$1 {
|
|
15553
15778
|
static get properties() {
|
|
15554
15779
|
return {
|
|
15555
15780
|
|
|
@@ -15658,7 +15883,7 @@ let AuroElement$2 = class AuroElement extends i$2 {
|
|
|
15658
15883
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
15659
15884
|
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
15660
15885
|
*/
|
|
15661
|
-
class AuroDropdown extends AuroElement$
|
|
15886
|
+
class AuroDropdown extends AuroElement$3 {
|
|
15662
15887
|
constructor() {
|
|
15663
15888
|
super();
|
|
15664
15889
|
|
|
@@ -15667,12 +15892,13 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15667
15892
|
this.matchWidth = false;
|
|
15668
15893
|
this.noHideOnThisFocusLoss = false;
|
|
15669
15894
|
|
|
15670
|
-
this.errorMessage = ''; // TODO
|
|
15895
|
+
this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
|
|
15671
15896
|
|
|
15672
15897
|
// Layout Config
|
|
15673
|
-
this.layout = '
|
|
15898
|
+
this.layout = 'classic';
|
|
15674
15899
|
this.shape = 'rounded';
|
|
15675
15900
|
this.size = 'xl';
|
|
15901
|
+
this.parentBorder = false;
|
|
15676
15902
|
|
|
15677
15903
|
this.privateDefaults();
|
|
15678
15904
|
}
|
|
@@ -15688,7 +15914,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15688
15914
|
'trigger': true,
|
|
15689
15915
|
'wrapper': true,
|
|
15690
15916
|
'hasFocus': this.hasFocus,
|
|
15691
|
-
'simple': this.simple
|
|
15917
|
+
'simple': this.simple,
|
|
15918
|
+
'parentBorder': this.parentBorder
|
|
15692
15919
|
};
|
|
15693
15920
|
}
|
|
15694
15921
|
|
|
@@ -15723,7 +15950,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15723
15950
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
15724
15951
|
*/
|
|
15725
15952
|
this.constructor.shadowRootOptions = {
|
|
15726
|
-
...i$
|
|
15953
|
+
...i$1.shadowRootOptions,
|
|
15727
15954
|
delegatesFocus: true,
|
|
15728
15955
|
};
|
|
15729
15956
|
|
|
@@ -15740,7 +15967,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15740
15967
|
/**
|
|
15741
15968
|
* @private
|
|
15742
15969
|
*/
|
|
15743
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
15970
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
15744
15971
|
|
|
15745
15972
|
/**
|
|
15746
15973
|
* @private
|
|
@@ -15955,6 +16182,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15955
16182
|
reflect: true
|
|
15956
16183
|
},
|
|
15957
16184
|
|
|
16185
|
+
/**
|
|
16186
|
+
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
16187
|
+
* @private
|
|
16188
|
+
*/
|
|
16189
|
+
parentBorder: {
|
|
16190
|
+
type: Boolean,
|
|
16191
|
+
reflect: true
|
|
16192
|
+
},
|
|
16193
|
+
|
|
15958
16194
|
/**
|
|
15959
16195
|
* If declared, the popover and trigger will be set to the same width.
|
|
15960
16196
|
*/
|
|
@@ -16057,10 +16293,18 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16057
16293
|
static get styles() {
|
|
16058
16294
|
return [
|
|
16059
16295
|
colorCss$1$1,
|
|
16060
|
-
styleCss$1$1,
|
|
16061
16296
|
tokensCss$1$1,
|
|
16297
|
+
|
|
16298
|
+
// default layout
|
|
16299
|
+
classicColorCss$1,
|
|
16300
|
+
classicLayoutCss,
|
|
16301
|
+
|
|
16302
|
+
// emphasized layout
|
|
16062
16303
|
styleEmphasizedCss,
|
|
16304
|
+
|
|
16305
|
+
// snowflake layout
|
|
16063
16306
|
styleSnowflakeCss,
|
|
16307
|
+
|
|
16064
16308
|
shapeSizeCss$1
|
|
16065
16309
|
];
|
|
16066
16310
|
}
|
|
@@ -16074,7 +16318,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16074
16318
|
*
|
|
16075
16319
|
*/
|
|
16076
16320
|
static register(name = "auro-dropdown") {
|
|
16077
|
-
AuroLibraryRuntimeUtils$
|
|
16321
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
|
|
16078
16322
|
}
|
|
16079
16323
|
|
|
16080
16324
|
/**
|
|
@@ -16407,11 +16651,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16407
16651
|
*
|
|
16408
16652
|
* @private
|
|
16409
16653
|
* @method handleDefaultSlot
|
|
16410
|
-
* @param {Event} event - The event object representing the slot change.
|
|
16411
16654
|
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
16412
16655
|
*/
|
|
16413
|
-
handleDefaultSlot(
|
|
16414
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
16656
|
+
handleDefaultSlot() {
|
|
16415
16657
|
|
|
16416
16658
|
if (this.onSlotChange) {
|
|
16417
16659
|
this.onSlotChange();
|
|
@@ -16448,13 +16690,12 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16448
16690
|
* @returns {html} - Returns HTML.
|
|
16449
16691
|
*/
|
|
16450
16692
|
renderBasicHtml(helpTextClasses) {
|
|
16451
|
-
return u$
|
|
16693
|
+
return u$3`
|
|
16452
16694
|
<div>
|
|
16453
16695
|
<div
|
|
16454
16696
|
id="trigger"
|
|
16455
16697
|
class="${e(this.commonWrapperClasses)}" part="wrapper"
|
|
16456
16698
|
tabindex="${this.tabIndex}"
|
|
16457
|
-
?showBorder="${this.showTriggerBorders}"
|
|
16458
16699
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
16459
16700
|
aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
16460
16701
|
aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -16471,9 +16712,10 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16471
16712
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16472
16713
|
</div>
|
|
16473
16714
|
</div>
|
|
16474
|
-
${this.chevron || this.common ? u$
|
|
16715
|
+
${this.chevron || this.common ? u$3`
|
|
16475
16716
|
<div
|
|
16476
16717
|
id="showStateIcon"
|
|
16718
|
+
class="chevron"
|
|
16477
16719
|
part="chevron">
|
|
16478
16720
|
<${this.iconTag}
|
|
16479
16721
|
category="interface"
|
|
@@ -16488,9 +16730,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16488
16730
|
<div class="${e(helpTextClasses)}">
|
|
16489
16731
|
<slot name="helpText"></slot>
|
|
16490
16732
|
</div>
|
|
16491
|
-
<div class="slotContent">
|
|
16492
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16493
|
-
</div>
|
|
16494
16733
|
<div id="bibSizer" part="size"></div>
|
|
16495
16734
|
<${this.dropdownBibTag}
|
|
16496
16735
|
id="bib"
|
|
@@ -16499,6 +16738,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16499
16738
|
?common="${this.common}"
|
|
16500
16739
|
?rounded="${this.common || this.rounded}"
|
|
16501
16740
|
?inset="${this.common || this.inset}">
|
|
16741
|
+
<div class="slotContent">
|
|
16742
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16743
|
+
</div>
|
|
16502
16744
|
</${this.dropdownBibTag}>
|
|
16503
16745
|
</div>
|
|
16504
16746
|
`;
|
|
@@ -16510,7 +16752,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16510
16752
|
* @returns {html} - Returns HTML for the classic layout.
|
|
16511
16753
|
*/
|
|
16512
16754
|
renderLayoutClassic() {
|
|
16513
|
-
|
|
16755
|
+
|
|
16756
|
+
return u$3`
|
|
16514
16757
|
<div>
|
|
16515
16758
|
<div
|
|
16516
16759
|
id="trigger"
|
|
@@ -16533,7 +16776,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16533
16776
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16534
16777
|
</div>
|
|
16535
16778
|
</div>
|
|
16536
|
-
${this.chevron || this.common ? u$
|
|
16779
|
+
${this.chevron || this.common ? u$3`
|
|
16537
16780
|
<div
|
|
16538
16781
|
id="showStateIcon"
|
|
16539
16782
|
part="chevron">
|
|
@@ -16547,9 +16790,10 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16547
16790
|
</div>
|
|
16548
16791
|
` : undefined }
|
|
16549
16792
|
</div>
|
|
16550
|
-
|
|
16551
|
-
<slot
|
|
16552
|
-
|
|
16793
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
16794
|
+
<slot name="helpText"></slot>
|
|
16795
|
+
</${this.helpTextTag}>
|
|
16796
|
+
|
|
16553
16797
|
<div id="bibSizer" part="size"></div>
|
|
16554
16798
|
<${this.dropdownBibTag}
|
|
16555
16799
|
id="bib"
|
|
@@ -16559,6 +16803,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16559
16803
|
?rounded="${this.common || this.rounded}"
|
|
16560
16804
|
?inset="${this.common || this.inset}"
|
|
16561
16805
|
>
|
|
16806
|
+
<div class="slotContent">
|
|
16807
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16808
|
+
</div>
|
|
16562
16809
|
</${this.dropdownBibTag}>
|
|
16563
16810
|
</div>
|
|
16564
16811
|
`;
|
|
@@ -16576,7 +16823,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16576
16823
|
'rightIndent': true
|
|
16577
16824
|
};
|
|
16578
16825
|
|
|
16579
|
-
return u$
|
|
16826
|
+
return u$3`
|
|
16580
16827
|
${this.renderBasicHtml(helpTextClasses)}
|
|
16581
16828
|
`;
|
|
16582
16829
|
}
|
|
@@ -16593,7 +16840,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16593
16840
|
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
16594
16841
|
};
|
|
16595
16842
|
|
|
16596
|
-
return u$
|
|
16843
|
+
return u$3`
|
|
16597
16844
|
${this.renderBasicHtml(helpTextClasses)}
|
|
16598
16845
|
`;
|
|
16599
16846
|
}
|
|
@@ -16641,21 +16888,25 @@ var dropdownVersion = '3.0.0';
|
|
|
16641
16888
|
*/
|
|
16642
16889
|
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}});
|
|
16643
16890
|
|
|
16644
|
-
var shapeSizeCss = i$
|
|
16891
|
+
var shapeSizeCss = i$3`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.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-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-md.parentBorder{border:0;min-height:44px;max-height:44px}.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-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.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}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
|
|
16892
|
+
|
|
16893
|
+
var styleCss$4 = i$3`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}`;
|
|
16645
16894
|
|
|
16646
|
-
var
|
|
16895
|
+
var styleDefaultCss = i$3`.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}`;
|
|
16647
16896
|
|
|
16648
|
-
var
|
|
16897
|
+
var colorBaseCss = i$3`.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{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.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)}`;
|
|
16649
16898
|
|
|
16650
|
-
var
|
|
16899
|
+
var tokensCss$4 = i$3`: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);--ds-auro-input-outline-color: transparent}: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);--ds-auro-input-outline-color: transparent}`;
|
|
16651
16900
|
|
|
16652
|
-
var
|
|
16901
|
+
var classicStyleCss = i$3`.layout-classic{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}.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{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}`;
|
|
16653
16902
|
|
|
16654
|
-
var
|
|
16903
|
+
var classicColorCss = i$3`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.layout-classic:focus-within{--ds-auro-input-outline-color: var(--ds-auro-input-border-color)}:host(:not([ondark])) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
16655
16904
|
|
|
16656
|
-
var
|
|
16905
|
+
var emphasizedStyleCss = i$3`: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}`;
|
|
16657
16906
|
|
|
16658
|
-
var
|
|
16907
|
+
var emphasizedColorCss = i$3`.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)}`;
|
|
16908
|
+
|
|
16909
|
+
var snowflakeStyleCss = i$3`: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}`;
|
|
16659
16910
|
|
|
16660
16911
|
const watchedItems = new Set();
|
|
16661
16912
|
|
|
@@ -20676,9 +20927,10 @@ class DateFormatter {
|
|
|
20676
20927
|
/**
|
|
20677
20928
|
* Convert a date object to string format.
|
|
20678
20929
|
* @param {Object} date - Date to convert to string.
|
|
20679
|
-
* @
|
|
20930
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
20931
|
+
* @returns {String} Returns the date as a string.
|
|
20680
20932
|
*/
|
|
20681
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
20933
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
20682
20934
|
year: "numeric",
|
|
20683
20935
|
month: "2-digit",
|
|
20684
20936
|
day: "2-digit",
|
|
@@ -20870,7 +21122,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
|
|
|
20870
21122
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
20871
21123
|
|
|
20872
21124
|
// Get the date string of the date object we created from the string date
|
|
20873
|
-
const actualDateStr = dateFormatter.getDateAsString(dateObj);
|
|
21125
|
+
const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
|
|
20874
21126
|
|
|
20875
21127
|
// Guard Clause: Generated date matches date string input
|
|
20876
21128
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -21035,7 +21287,7 @@ const {
|
|
|
21035
21287
|
|
|
21036
21288
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21037
21289
|
|
|
21038
|
-
let AuroLibraryRuntimeUtils$
|
|
21290
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
21039
21291
|
|
|
21040
21292
|
/* eslint-disable jsdoc/require-param */
|
|
21041
21293
|
|
|
@@ -21105,7 +21357,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
21105
21357
|
class AuroFormValidation {
|
|
21106
21358
|
|
|
21107
21359
|
constructor() {
|
|
21108
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
21360
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
21109
21361
|
}
|
|
21110
21362
|
|
|
21111
21363
|
/**
|
|
@@ -21464,7 +21716,7 @@ class AuroFormValidation {
|
|
|
21464
21716
|
}
|
|
21465
21717
|
}
|
|
21466
21718
|
|
|
21467
|
-
let AuroElement$1 = class AuroElement extends i$
|
|
21719
|
+
let AuroElement$1 = class AuroElement extends i$1 {
|
|
21468
21720
|
static get properties() {
|
|
21469
21721
|
return {
|
|
21470
21722
|
|
|
@@ -21595,9 +21847,9 @@ class BaseInput extends AuroElement$1 {
|
|
|
21595
21847
|
this.required = false;
|
|
21596
21848
|
this.setCustomValidityForType = undefined;
|
|
21597
21849
|
|
|
21598
|
-
this.layout = '
|
|
21599
|
-
this.shape = '
|
|
21600
|
-
this.size = '
|
|
21850
|
+
this.layout = 'classic';
|
|
21851
|
+
this.shape = 'classic';
|
|
21852
|
+
this.size = 'lg';
|
|
21601
21853
|
}
|
|
21602
21854
|
|
|
21603
21855
|
/**
|
|
@@ -21985,8 +22237,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
21985
22237
|
},
|
|
21986
22238
|
|
|
21987
22239
|
/**
|
|
22240
|
+
* The id for input node.
|
|
21988
22241
|
* @private
|
|
21989
|
-
* id for input node
|
|
21990
22242
|
*/
|
|
21991
22243
|
inputId: {
|
|
21992
22244
|
type: String,
|
|
@@ -22646,7 +22898,7 @@ class AuroDependencyVersioning {
|
|
|
22646
22898
|
*/
|
|
22647
22899
|
generateTag(baseName, version, tagClass) {
|
|
22648
22900
|
const elementName = this.generateElementName(baseName, version);
|
|
22649
|
-
const tag = i$
|
|
22901
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
22650
22902
|
|
|
22651
22903
|
if (!customElements.get(elementName)) {
|
|
22652
22904
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -22666,7 +22918,7 @@ class AuroDependencyVersioning {
|
|
|
22666
22918
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
22667
22919
|
*/
|
|
22668
22920
|
|
|
22669
|
-
class AuroElement extends i$
|
|
22921
|
+
let AuroElement$2 = class AuroElement extends i$1 {
|
|
22670
22922
|
|
|
22671
22923
|
// function to define props used within the scope of this component
|
|
22672
22924
|
static get properties() {
|
|
@@ -22690,7 +22942,7 @@ class AuroElement extends i$2 {
|
|
|
22690
22942
|
|
|
22691
22943
|
return 'false'
|
|
22692
22944
|
}
|
|
22693
|
-
}
|
|
22945
|
+
};
|
|
22694
22946
|
|
|
22695
22947
|
var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
22696
22948
|
|
|
@@ -22722,7 +22974,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
22722
22974
|
return _fetchMap.get(uri);
|
|
22723
22975
|
};
|
|
22724
22976
|
|
|
22725
|
-
var styleCss$3 = i$
|
|
22977
|
+
var styleCss$3 = i$3`: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}`;
|
|
22726
22978
|
|
|
22727
22979
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22728
22980
|
// See LICENSE in the project root for license information.
|
|
@@ -22734,7 +22986,7 @@ var styleCss$3 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
22734
22986
|
*/
|
|
22735
22987
|
|
|
22736
22988
|
// build the component class
|
|
22737
|
-
class BaseIcon extends AuroElement {
|
|
22989
|
+
class BaseIcon extends AuroElement$2 {
|
|
22738
22990
|
constructor() {
|
|
22739
22991
|
super();
|
|
22740
22992
|
this.onDark = false;
|
|
@@ -22764,7 +23016,7 @@ class BaseIcon extends AuroElement {
|
|
|
22764
23016
|
}
|
|
22765
23017
|
|
|
22766
23018
|
static get styles() {
|
|
22767
|
-
return i$
|
|
23019
|
+
return i$3`
|
|
22768
23020
|
${styleCss$3}
|
|
22769
23021
|
`;
|
|
22770
23022
|
}
|
|
@@ -22806,9 +23058,79 @@ class BaseIcon extends AuroElement {
|
|
|
22806
23058
|
}
|
|
22807
23059
|
}
|
|
22808
23060
|
|
|
22809
|
-
var tokensCss$3 = i$
|
|
23061
|
+
var tokensCss$3 = i$3`: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)}`;
|
|
23062
|
+
|
|
23063
|
+
var colorCss$3 = i$3`: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)}`;
|
|
23064
|
+
|
|
23065
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
23066
|
+
// See LICENSE in the project root for license information.
|
|
23067
|
+
|
|
23068
|
+
// ---------------------------------------------------------------------
|
|
23069
|
+
|
|
23070
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
23071
|
+
|
|
23072
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
23073
|
+
|
|
23074
|
+
/* eslint-disable jsdoc/require-param */
|
|
23075
|
+
|
|
23076
|
+
/**
|
|
23077
|
+
* This will register a new custom element with the browser.
|
|
23078
|
+
* @param {String} name - The name of the custom element.
|
|
23079
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
23080
|
+
* @returns {void}
|
|
23081
|
+
*/
|
|
23082
|
+
registerComponent(name, componentClass) {
|
|
23083
|
+
if (!customElements.get(name)) {
|
|
23084
|
+
customElements.define(name, class extends componentClass {});
|
|
23085
|
+
}
|
|
23086
|
+
}
|
|
23087
|
+
|
|
23088
|
+
/**
|
|
23089
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
23090
|
+
* @returns {void}
|
|
23091
|
+
*/
|
|
23092
|
+
closestElement(
|
|
23093
|
+
selector, // selector like in .closest()
|
|
23094
|
+
base = this, // extra functionality to skip a parent
|
|
23095
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
23096
|
+
!el || el === document || el === window
|
|
23097
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
23098
|
+
: found
|
|
23099
|
+
? found // found a selector INside this element
|
|
23100
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
23101
|
+
) {
|
|
23102
|
+
return __Closest(base);
|
|
23103
|
+
}
|
|
23104
|
+
/* eslint-enable jsdoc/require-param */
|
|
23105
|
+
|
|
23106
|
+
/**
|
|
23107
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
23108
|
+
* @param {Object} elem - The element to check.
|
|
23109
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
23110
|
+
* @returns {void}
|
|
23111
|
+
*/
|
|
23112
|
+
handleComponentTagRename(elem, tagName) {
|
|
23113
|
+
const tag = tagName.toLowerCase();
|
|
23114
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
22810
23115
|
|
|
22811
|
-
|
|
23116
|
+
if (elemTag !== tag) {
|
|
23117
|
+
elem.setAttribute(tag, true);
|
|
23118
|
+
}
|
|
23119
|
+
}
|
|
23120
|
+
|
|
23121
|
+
/**
|
|
23122
|
+
* Validates if an element is a specific Auro component.
|
|
23123
|
+
* @param {Object} elem - The element to validate.
|
|
23124
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
23125
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
23126
|
+
*/
|
|
23127
|
+
elementMatch(elem, tagName) {
|
|
23128
|
+
const tag = tagName.toLowerCase();
|
|
23129
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
23130
|
+
|
|
23131
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
23132
|
+
}
|
|
23133
|
+
};
|
|
22812
23134
|
|
|
22813
23135
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22814
23136
|
// See LICENSE in the project root for license information.
|
|
@@ -22896,9 +23218,9 @@ class AuroIcon extends BaseIcon {
|
|
|
22896
23218
|
static get styles() {
|
|
22897
23219
|
return [
|
|
22898
23220
|
super.styles,
|
|
22899
|
-
i$
|
|
22900
|
-
i$
|
|
22901
|
-
i$
|
|
23221
|
+
i$3`${tokensCss$3}`,
|
|
23222
|
+
i$3`${styleCss$3}`,
|
|
23223
|
+
i$3`${colorCss$3}`
|
|
22902
23224
|
];
|
|
22903
23225
|
}
|
|
22904
23226
|
|
|
@@ -22979,23 +23301,23 @@ class AuroIcon extends BaseIcon {
|
|
|
22979
23301
|
|
|
22980
23302
|
var iconVersion = '8.0.1';
|
|
22981
23303
|
|
|
22982
|
-
var styleCss$2 = i$
|
|
23304
|
+
var styleCss$2 = i$3`: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}`;
|
|
22983
23305
|
|
|
22984
|
-
var colorCss$2 = i$
|
|
23306
|
+
var colorCss$2 = i$3`[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}`;
|
|
22985
23307
|
|
|
22986
|
-
var tokensCss$2 = i$
|
|
23308
|
+
var tokensCss$2 = i$3`: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}`;
|
|
22987
23309
|
|
|
22988
|
-
var styleCss$1 = i$
|
|
23310
|
+
var styleCss$1 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
22989
23311
|
|
|
22990
|
-
var colorCss$1 = i$
|
|
23312
|
+
var colorCss$1 = i$3`: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}`;
|
|
22991
23313
|
|
|
22992
|
-
var tokensCss$1 = i$
|
|
23314
|
+
var tokensCss$1 = i$3`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
22993
23315
|
|
|
22994
23316
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22995
23317
|
// See LICENSE in the project root for license information.
|
|
22996
23318
|
|
|
22997
23319
|
|
|
22998
|
-
class AuroLoader extends i$
|
|
23320
|
+
class AuroLoader extends i$1 {
|
|
22999
23321
|
constructor() {
|
|
23000
23322
|
super();
|
|
23001
23323
|
|
|
@@ -23017,7 +23339,7 @@ class AuroLoader extends i$2 {
|
|
|
23017
23339
|
/**
|
|
23018
23340
|
* @private
|
|
23019
23341
|
*/
|
|
23020
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
23342
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
23021
23343
|
|
|
23022
23344
|
this.orbit = false;
|
|
23023
23345
|
this.ringworm = false;
|
|
@@ -23065,9 +23387,9 @@ class AuroLoader extends i$2 {
|
|
|
23065
23387
|
|
|
23066
23388
|
static get styles() {
|
|
23067
23389
|
return [
|
|
23068
|
-
i$
|
|
23069
|
-
i$
|
|
23070
|
-
i$
|
|
23390
|
+
i$3`${styleCss$1}`,
|
|
23391
|
+
i$3`${colorCss$1}`,
|
|
23392
|
+
i$3`${tokensCss$1}`
|
|
23071
23393
|
];
|
|
23072
23394
|
}
|
|
23073
23395
|
|
|
@@ -23080,7 +23402,7 @@ class AuroLoader extends i$2 {
|
|
|
23080
23402
|
*
|
|
23081
23403
|
*/
|
|
23082
23404
|
static register(name = "auro-loader") {
|
|
23083
|
-
AuroLibraryRuntimeUtils$
|
|
23405
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
|
|
23084
23406
|
}
|
|
23085
23407
|
|
|
23086
23408
|
firstUpdated() {
|
|
@@ -23148,7 +23470,7 @@ var loaderVersion = '5.0.0';
|
|
|
23148
23470
|
|
|
23149
23471
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
23150
23472
|
|
|
23151
|
-
class AuroButton extends i$
|
|
23473
|
+
class AuroButton extends i$1 {
|
|
23152
23474
|
|
|
23153
23475
|
/**
|
|
23154
23476
|
* Enables form association for this element.
|
|
@@ -23384,7 +23706,7 @@ class AuroButton extends i$2 {
|
|
|
23384
23706
|
*
|
|
23385
23707
|
*/
|
|
23386
23708
|
static register(name = "auro-button") {
|
|
23387
|
-
AuroLibraryRuntimeUtils$
|
|
23709
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
23388
23710
|
}
|
|
23389
23711
|
|
|
23390
23712
|
/**
|
|
@@ -23439,7 +23761,7 @@ class AuroButton extends i$2 {
|
|
|
23439
23761
|
'loading': this.loading
|
|
23440
23762
|
};
|
|
23441
23763
|
|
|
23442
|
-
return u$
|
|
23764
|
+
return u$3`
|
|
23443
23765
|
<button
|
|
23444
23766
|
part="button"
|
|
23445
23767
|
aria-hidden="${o(this.ariahidden || undefined)}"
|
|
@@ -23458,11 +23780,11 @@ class AuroButton extends i$2 {
|
|
|
23458
23780
|
.value="${o(this.value ? this.value : undefined)}"
|
|
23459
23781
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
23460
23782
|
>
|
|
23461
|
-
${o(this.loading ? u$
|
|
23783
|
+
${o(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
23462
23784
|
|
|
23463
23785
|
<span class="contentWrapper">
|
|
23464
23786
|
<span class="textSlot" part="text">
|
|
23465
|
-
${this.iconOnly ? undefined : u$
|
|
23787
|
+
${this.iconOnly ? undefined : u$3`<slot></slot>`}
|
|
23466
23788
|
</span>
|
|
23467
23789
|
|
|
23468
23790
|
<span part="icon">
|
|
@@ -23476,11 +23798,11 @@ class AuroButton extends i$2 {
|
|
|
23476
23798
|
|
|
23477
23799
|
var buttonVersion = '9.3.0';
|
|
23478
23800
|
|
|
23479
|
-
var colorCss = i$
|
|
23801
|
+
var colorCss = i$3`: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)}`;
|
|
23480
23802
|
|
|
23481
|
-
var styleCss = i$
|
|
23803
|
+
var styleCss = i$3`.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}`;
|
|
23482
23804
|
|
|
23483
|
-
var tokensCss = i$
|
|
23805
|
+
var tokensCss = i$3`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
23484
23806
|
|
|
23485
23807
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
23486
23808
|
// See LICENSE in the project root for license information.
|
|
@@ -23561,7 +23883,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
23561
23883
|
*
|
|
23562
23884
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
23563
23885
|
*/
|
|
23564
|
-
class AuroHelpText extends i$
|
|
23886
|
+
class AuroHelpText extends i$1 {
|
|
23565
23887
|
|
|
23566
23888
|
constructor() {
|
|
23567
23889
|
super();
|
|
@@ -23722,14 +24044,16 @@ class AuroInput extends BaseInput {
|
|
|
23722
24044
|
|
|
23723
24045
|
static get styles() {
|
|
23724
24046
|
return [
|
|
23725
|
-
i$
|
|
23726
|
-
i$
|
|
23727
|
-
i$
|
|
23728
|
-
i$
|
|
23729
|
-
i$
|
|
23730
|
-
i$
|
|
23731
|
-
i$
|
|
23732
|
-
i$
|
|
24047
|
+
i$3`${classicStyleCss}`,
|
|
24048
|
+
i$3`${classicColorCss}`,
|
|
24049
|
+
i$3`${shapeSizeCss}`,
|
|
24050
|
+
i$3`${colorBaseCss}`,
|
|
24051
|
+
i$3`${styleCss$4}`,
|
|
24052
|
+
i$3`${styleDefaultCss}`,
|
|
24053
|
+
i$3`${tokensCss$4}`,
|
|
24054
|
+
i$3`${emphasizedStyleCss}`,
|
|
24055
|
+
i$3`${emphasizedColorCss}`,
|
|
24056
|
+
i$3`${snowflakeStyleCss}`
|
|
23733
24057
|
];
|
|
23734
24058
|
}
|
|
23735
24059
|
|
|
@@ -23748,7 +24072,7 @@ class AuroInput extends BaseInput {
|
|
|
23748
24072
|
/**
|
|
23749
24073
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
23750
24074
|
* @private
|
|
23751
|
-
* @returns {
|
|
24075
|
+
* @returns {object} - Returns classmap.
|
|
23752
24076
|
*/
|
|
23753
24077
|
get commonInputClasses() {
|
|
23754
24078
|
return {
|
|
@@ -23756,6 +24080,23 @@ class AuroInput extends BaseInput {
|
|
|
23756
24080
|
};
|
|
23757
24081
|
}
|
|
23758
24082
|
|
|
24083
|
+
/**
|
|
24084
|
+
* Returns classmap configuration for html5 inputs in each layout.
|
|
24085
|
+
* @private
|
|
24086
|
+
* @returns {object} - Returns classmap.
|
|
24087
|
+
*/
|
|
24088
|
+
get legacyInputClasses() {
|
|
24089
|
+
return {
|
|
24090
|
+
...this.commonInputClasses,
|
|
24091
|
+
'util_displayHiddenVisually': !this.hasFocus && !this.value
|
|
24092
|
+
};
|
|
24093
|
+
}
|
|
24094
|
+
|
|
24095
|
+
/**
|
|
24096
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
24097
|
+
* @private
|
|
24098
|
+
* @returns {object} - Returns classmap.
|
|
24099
|
+
*/
|
|
23759
24100
|
get commonWrapperClasses() {
|
|
23760
24101
|
return {
|
|
23761
24102
|
'wrapper': true,
|
|
@@ -23764,6 +24105,11 @@ class AuroInput extends BaseInput {
|
|
|
23764
24105
|
};
|
|
23765
24106
|
}
|
|
23766
24107
|
|
|
24108
|
+
/**
|
|
24109
|
+
* Returns classmap configuration for helpText elements in each layout.
|
|
24110
|
+
* @private
|
|
24111
|
+
* @returns {object} - Returns classmap.
|
|
24112
|
+
*/
|
|
23767
24113
|
get helpTextClasses() {
|
|
23768
24114
|
return {
|
|
23769
24115
|
'helpTextWrapper': true,
|
|
@@ -23781,7 +24127,7 @@ class AuroInput extends BaseInput {
|
|
|
23781
24127
|
*
|
|
23782
24128
|
*/
|
|
23783
24129
|
static register(name = "auro-input") {
|
|
23784
|
-
AuroLibraryRuntimeUtils$
|
|
24130
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroInput);
|
|
23785
24131
|
}
|
|
23786
24132
|
|
|
23787
24133
|
/**
|
|
@@ -23820,8 +24166,8 @@ class AuroInput extends BaseInput {
|
|
|
23820
24166
|
* @returns {html} - Returns HTML for the validation error icon.
|
|
23821
24167
|
*/
|
|
23822
24168
|
renderValidationErrorIconHtml() {
|
|
23823
|
-
return u$
|
|
23824
|
-
${this.validity && this.validity !== 'valid' ? u$
|
|
24169
|
+
return u$3`
|
|
24170
|
+
${this.validity && this.validity !== 'valid' ? u$3`
|
|
23825
24171
|
<div class="notification alertNotification">
|
|
23826
24172
|
<${this.iconTag}
|
|
23827
24173
|
category="alert"
|
|
@@ -23837,17 +24183,23 @@ class AuroInput extends BaseInput {
|
|
|
23837
24183
|
/**
|
|
23838
24184
|
* Returns HTML for the HTML5 input element.
|
|
23839
24185
|
* @private
|
|
24186
|
+
* @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
|
|
23840
24187
|
* @returns {html} - Returns HTML for the HTML5 input element.
|
|
23841
24188
|
*/
|
|
23842
|
-
renderHtmlInput() {
|
|
24189
|
+
renderHtmlInput(useLegacyHiddenState = false) {
|
|
23843
24190
|
const displayValueClasses = {
|
|
23844
24191
|
'displayValue': true,
|
|
23845
24192
|
'hasContent': this.hasDisplayValueContent,
|
|
23846
24193
|
'hasFocus': this.hasFocus,
|
|
23847
|
-
'withValue': this.value && this.value.length > 0
|
|
24194
|
+
'withValue': this.value && this.value.length > 0,
|
|
23848
24195
|
};
|
|
23849
24196
|
|
|
23850
|
-
|
|
24197
|
+
// Remove this when the classic layout is sunset.
|
|
24198
|
+
const inputOverrideClasses = useLegacyHiddenState
|
|
24199
|
+
? this.legacyInputClasses
|
|
24200
|
+
: this.commonInputClasses;
|
|
24201
|
+
|
|
24202
|
+
return u$3`
|
|
23851
24203
|
<label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
|
|
23852
24204
|
<slot name="label">
|
|
23853
24205
|
${this.label}
|
|
@@ -23867,6 +24219,7 @@ class AuroInput extends BaseInput {
|
|
|
23867
24219
|
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
23868
24220
|
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
23869
24221
|
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
24222
|
+
class="${e(inputOverrideClasses)}"
|
|
23870
24223
|
id="${this.inputId}"
|
|
23871
24224
|
inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
|
|
23872
24225
|
lang="${o(this.lang)}"
|
|
@@ -23891,7 +24244,7 @@ class AuroInput extends BaseInput {
|
|
|
23891
24244
|
* @returns {html} - Returns HTML for the clear action button.
|
|
23892
24245
|
*/
|
|
23893
24246
|
renderHtmlActionClear() {
|
|
23894
|
-
return u$
|
|
24247
|
+
return u$3`
|
|
23895
24248
|
<div class="notification clear">
|
|
23896
24249
|
<${this.buttonTag}
|
|
23897
24250
|
@click="${this.handleClickClear}"
|
|
@@ -23917,7 +24270,7 @@ class AuroInput extends BaseInput {
|
|
|
23917
24270
|
* @returns {html} - Returns HTML for the show password button.
|
|
23918
24271
|
*/
|
|
23919
24272
|
renderHtmlNotificationPassword() {
|
|
23920
|
-
return u$
|
|
24273
|
+
return u$3`
|
|
23921
24274
|
<div class="notification">
|
|
23922
24275
|
<${this.buttonTag}
|
|
23923
24276
|
@click="${this.handleClickShowPassword}
|
|
@@ -23949,14 +24302,14 @@ class AuroInput extends BaseInput {
|
|
|
23949
24302
|
* @returns {html} - Returns HTML for the input type icon.
|
|
23950
24303
|
*/
|
|
23951
24304
|
renderHtmlTypeIcon() {
|
|
23952
|
-
return u$
|
|
24305
|
+
return u$3`
|
|
23953
24306
|
<div class="typeIcon">
|
|
23954
24307
|
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
23955
24308
|
|
|
23956
24309
|
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
23957
24310
|
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
23958
24311
|
${this.inputIconName
|
|
23959
|
-
? c([this.inputIconName], (val) => val, (name) => u$
|
|
24312
|
+
? c([this.inputIconName], (val) => val, (name) => u$3`
|
|
23960
24313
|
<${this.iconTag}
|
|
23961
24314
|
?onDark="${this.onDark}"
|
|
23962
24315
|
category="payment"
|
|
@@ -23968,7 +24321,7 @@ class AuroInput extends BaseInput {
|
|
|
23968
24321
|
`) : undefined
|
|
23969
24322
|
}
|
|
23970
24323
|
${this.type === 'date'
|
|
23971
|
-
? u$
|
|
24324
|
+
? u$3`
|
|
23972
24325
|
<${this.iconTag}
|
|
23973
24326
|
?onDark="${this.onDark}"
|
|
23974
24327
|
category="interface"
|
|
@@ -23989,16 +24342,16 @@ class AuroInput extends BaseInput {
|
|
|
23989
24342
|
* @returns {html} - Returns HTML for the help text and error message.
|
|
23990
24343
|
*/
|
|
23991
24344
|
renderHtmlHelpText() {
|
|
23992
|
-
return u$
|
|
24345
|
+
return u$3`
|
|
23993
24346
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
23994
|
-
? u$
|
|
24347
|
+
? u$3`
|
|
23995
24348
|
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
23996
24349
|
<p id="${this.uniqueId}" part="helpText">
|
|
23997
24350
|
<slot name="helptext">${this.getHelpText()}</slot>
|
|
23998
24351
|
</p>
|
|
23999
24352
|
</${this.helpTextTag}>
|
|
24000
24353
|
`
|
|
24001
|
-
: u$
|
|
24354
|
+
: u$3`
|
|
24002
24355
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
24003
24356
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
24004
24357
|
${this.errorMessage}
|
|
@@ -24010,139 +24363,34 @@ class AuroInput extends BaseInput {
|
|
|
24010
24363
|
}
|
|
24011
24364
|
|
|
24012
24365
|
/**
|
|
24013
|
-
* Returns HTML for the
|
|
24366
|
+
* Returns HTML for the classic layout.
|
|
24014
24367
|
* @private
|
|
24015
|
-
* @returns {
|
|
24368
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
24016
24369
|
*/
|
|
24017
24370
|
renderLayoutClassic() {
|
|
24018
|
-
|
|
24019
|
-
|
|
24020
|
-
|
|
24021
|
-
|
|
24022
|
-
|
|
24023
|
-
|
|
24024
|
-
|
|
24025
|
-
'withIcon': this.hasTypeIcon(),
|
|
24026
|
-
'withValue': this.value && this.value.length > 0
|
|
24027
|
-
};
|
|
24028
|
-
|
|
24029
|
-
return u$2`
|
|
24030
|
-
<div class="${e(wrapperClasses)}" part="wrapper">
|
|
24031
|
-
<div class="main">
|
|
24032
|
-
<div class="typeIcon">
|
|
24033
|
-
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
24034
|
-
|
|
24035
|
-
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
24036
|
-
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
24037
|
-
${this.inputIconName
|
|
24038
|
-
? c([this.inputIconName], (val) => val, (name) => u$2`
|
|
24039
|
-
<${this.iconTag}
|
|
24040
|
-
class="accentIcon"
|
|
24041
|
-
category="payment"
|
|
24042
|
-
name="${name}"
|
|
24043
|
-
part="accentIcon"
|
|
24044
|
-
?onDark="${this.onDark}"
|
|
24045
|
-
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
24046
|
-
</${this.iconTag}>
|
|
24047
|
-
`) : undefined
|
|
24048
|
-
}
|
|
24049
|
-
|
|
24050
|
-
${this.type === 'date'
|
|
24051
|
-
? u$2`
|
|
24052
|
-
<${this.iconTag}
|
|
24053
|
-
class="accentIcon"
|
|
24054
|
-
category="interface"
|
|
24055
|
-
name="calendar"
|
|
24056
|
-
part="accentIcon"
|
|
24057
|
-
?onDark="${this.onDark}"
|
|
24058
|
-
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
24059
|
-
</${this.iconTag}>`
|
|
24060
|
-
: undefined
|
|
24061
|
-
}
|
|
24062
|
-
</div>
|
|
24063
|
-
<label for=${this.id} class="${e(labelClasses)}" part="label">
|
|
24064
|
-
<slot name="label">
|
|
24065
|
-
${this.label}
|
|
24066
|
-
</slot>
|
|
24067
|
-
${this.required ? '' : ` (${i18n(this.lang, 'optional')})`}
|
|
24068
|
-
</label>
|
|
24069
|
-
|
|
24070
|
-
${this.renderHtmlInput()}
|
|
24371
|
+
return u$3`
|
|
24372
|
+
<div
|
|
24373
|
+
@click="${this.handleClick}"
|
|
24374
|
+
class="${e(this.commonWrapperClasses)} thin"
|
|
24375
|
+
part="wrapper">
|
|
24376
|
+
<div class="accents left">
|
|
24377
|
+
${this.renderHtmlTypeIcon()}
|
|
24071
24378
|
</div>
|
|
24072
|
-
<div
|
|
24073
|
-
|
|
24074
|
-
|
|
24075
|
-
|
|
24076
|
-
${this.
|
|
24077
|
-
|
|
24078
|
-
|
|
24079
|
-
|
|
24080
|
-
customColor
|
|
24081
|
-
name="error-stroke"
|
|
24082
|
-
</${this.iconTag}>
|
|
24083
|
-
</div>
|
|
24084
|
-
` : undefined}
|
|
24085
|
-
${this.hasValue ? u$2`
|
|
24086
|
-
${this.type === 'password' ? u$2`
|
|
24087
|
-
<div class="notification">
|
|
24088
|
-
<${this.buttonTag}
|
|
24089
|
-
@click="${this.handleClickShowPassword}"
|
|
24090
|
-
?onDark="${this.onDark}"
|
|
24091
|
-
aria-hidden="true"
|
|
24092
|
-
class="notificationBtn passwordBtn"
|
|
24093
|
-
tabindex="-1"
|
|
24094
|
-
variant="flat">
|
|
24095
|
-
<${this.iconTag}
|
|
24096
|
-
?hidden=${!this.showPassword}
|
|
24097
|
-
category="interface"
|
|
24098
|
-
customColor
|
|
24099
|
-
name="hide-password-stroke">
|
|
24100
|
-
</${this.iconTag}>
|
|
24101
|
-
<${this.iconTag}
|
|
24102
|
-
?hidden=${this.showPassword}
|
|
24103
|
-
category="interface"
|
|
24104
|
-
customColor
|
|
24105
|
-
name="view-password-stroke">
|
|
24106
|
-
</${this.iconTag}>
|
|
24107
|
-
</${this.buttonTag}>
|
|
24108
|
-
</div>
|
|
24109
|
-
` : undefined}
|
|
24110
|
-
${!this.disabled && !this.readonly ? u$2`
|
|
24111
|
-
<div class="notification">
|
|
24112
|
-
<${this.buttonTag}
|
|
24113
|
-
@click="${this.handleClickClear}"
|
|
24114
|
-
?onDark="${this.onDark}"
|
|
24115
|
-
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
24116
|
-
class="notificationBtn clearBtn"
|
|
24117
|
-
variant="flat">
|
|
24118
|
-
<${this.iconTag}
|
|
24119
|
-
category="interface"
|
|
24120
|
-
customColor
|
|
24121
|
-
name="x-lg">
|
|
24122
|
-
</${this.iconTag}>
|
|
24123
|
-
</${this.buttonTag}>
|
|
24124
|
-
</div>
|
|
24379
|
+
<div class="mainContent">
|
|
24380
|
+
${this.renderHtmlInput(true)}
|
|
24381
|
+
</div>
|
|
24382
|
+
<div class="accents right">
|
|
24383
|
+
${this.renderValidationErrorIconHtml()}
|
|
24384
|
+
${this.hasValue ? u$3`
|
|
24385
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
24386
|
+
${this.renderHtmlActionClear()}
|
|
24125
24387
|
` : undefined}
|
|
24126
24388
|
` : undefined}
|
|
24127
24389
|
</div>
|
|
24128
24390
|
</div>
|
|
24129
|
-
|
|
24130
|
-
|
|
24131
|
-
|
|
24132
|
-
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
24133
|
-
<p id="${this.uniqueId}" part="helpText">
|
|
24134
|
-
<slot name="helptext">${this.getHelpText()}</slot>
|
|
24135
|
-
</p>
|
|
24136
|
-
</${this.helpTextTag}>
|
|
24137
|
-
`
|
|
24138
|
-
: u$2`
|
|
24139
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
24140
|
-
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
24141
|
-
${this.errorMessage}
|
|
24142
|
-
</p>
|
|
24143
|
-
</${this.helpTextTag}>
|
|
24144
|
-
`
|
|
24145
|
-
}
|
|
24391
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
24392
|
+
${this.renderHtmlHelpText()}
|
|
24393
|
+
</div>
|
|
24146
24394
|
`;
|
|
24147
24395
|
}
|
|
24148
24396
|
|
|
@@ -24152,13 +24400,13 @@ class AuroInput extends BaseInput {
|
|
|
24152
24400
|
* @returns {html} - Returns HTML for the emphasized layout.
|
|
24153
24401
|
*/
|
|
24154
24402
|
renderLayoutEmphasized() {
|
|
24155
|
-
return u$
|
|
24403
|
+
return u$3`
|
|
24156
24404
|
<div
|
|
24157
24405
|
@click="${this.handleClick}"
|
|
24158
24406
|
class="${e(this.commonWrapperClasses)}"
|
|
24159
24407
|
part="wrapper">
|
|
24160
24408
|
<div class="accents left">
|
|
24161
|
-
${this.layout.includes('left') ? u$
|
|
24409
|
+
${this.layout.includes('left') ? u$3`
|
|
24162
24410
|
${this.renderValidationErrorIconHtml()}
|
|
24163
24411
|
` : undefined}
|
|
24164
24412
|
</div>
|
|
@@ -24166,11 +24414,11 @@ class AuroInput extends BaseInput {
|
|
|
24166
24414
|
${this.renderHtmlInput()}
|
|
24167
24415
|
</div>
|
|
24168
24416
|
<div class="accents right">
|
|
24169
|
-
${this.layout.includes('right') || this.layout === "emphasized" ? u$
|
|
24417
|
+
${this.layout.includes('right') || this.layout === "emphasized" ? u$3`
|
|
24170
24418
|
${this.renderValidationErrorIconHtml()}
|
|
24171
24419
|
` : undefined}
|
|
24172
|
-
${this.hasValue ? u$
|
|
24173
|
-
${!this.disabled && !this.readonly ? u$
|
|
24420
|
+
${this.hasValue ? u$3`
|
|
24421
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
24174
24422
|
${this.renderHtmlActionClear()}
|
|
24175
24423
|
` : undefined}
|
|
24176
24424
|
` : undefined}
|
|
@@ -24188,7 +24436,7 @@ class AuroInput extends BaseInput {
|
|
|
24188
24436
|
* @returns {html} - Returns HTML for the emphasized layout.
|
|
24189
24437
|
*/
|
|
24190
24438
|
renderLayoutSnowflake() {
|
|
24191
|
-
return u$
|
|
24439
|
+
return u$3`
|
|
24192
24440
|
<div
|
|
24193
24441
|
@click="${this.handleClick}"
|
|
24194
24442
|
class="${e(this.commonWrapperClasses)}"
|
|
@@ -24201,8 +24449,8 @@ class AuroInput extends BaseInput {
|
|
|
24201
24449
|
</div>
|
|
24202
24450
|
<div class="accents right">
|
|
24203
24451
|
${this.renderValidationErrorIconHtml()}
|
|
24204
|
-
${this.hasValue ? u$
|
|
24205
|
-
${!this.disabled && !this.readonly ? u$
|
|
24452
|
+
${this.hasValue ? u$3`
|
|
24453
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
24206
24454
|
${this.renderHtmlActionClear()}
|
|
24207
24455
|
` : undefined}
|
|
24208
24456
|
` : undefined}
|
|
@@ -24244,6 +24492,98 @@ class AuroInput extends BaseInput {
|
|
|
24244
24492
|
|
|
24245
24493
|
var inputVersion = '4.2.0';
|
|
24246
24494
|
|
|
24495
|
+
class AuroElement extends i$1 {
|
|
24496
|
+
static get properties() {
|
|
24497
|
+
return {
|
|
24498
|
+
|
|
24499
|
+
/**
|
|
24500
|
+
* Defines the language of an element.
|
|
24501
|
+
* @default {'default'}
|
|
24502
|
+
*/
|
|
24503
|
+
layout: {
|
|
24504
|
+
type: String,
|
|
24505
|
+
attribute: "layout",
|
|
24506
|
+
reflect: true
|
|
24507
|
+
},
|
|
24508
|
+
|
|
24509
|
+
shape: {
|
|
24510
|
+
type: String,
|
|
24511
|
+
attribute: "shape",
|
|
24512
|
+
reflect: true
|
|
24513
|
+
},
|
|
24514
|
+
|
|
24515
|
+
size: {
|
|
24516
|
+
type: String,
|
|
24517
|
+
attribute: "size",
|
|
24518
|
+
reflect: true
|
|
24519
|
+
},
|
|
24520
|
+
|
|
24521
|
+
onDark: {
|
|
24522
|
+
type: Boolean,
|
|
24523
|
+
attribute: "ondark",
|
|
24524
|
+
reflect: true
|
|
24525
|
+
}
|
|
24526
|
+
};
|
|
24527
|
+
}
|
|
24528
|
+
|
|
24529
|
+
resetShapeClasses() {
|
|
24530
|
+
if (this.shape && this.size) {
|
|
24531
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
24532
|
+
|
|
24533
|
+
if (wrapper) {
|
|
24534
|
+
wrapper.classList.forEach((className) => {
|
|
24535
|
+
if (className.startsWith('shape-')) {
|
|
24536
|
+
wrapper.classList.remove(className);
|
|
24537
|
+
}
|
|
24538
|
+
});
|
|
24539
|
+
|
|
24540
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
24541
|
+
}
|
|
24542
|
+
}
|
|
24543
|
+
}
|
|
24544
|
+
|
|
24545
|
+
resetLayoutClasses() {
|
|
24546
|
+
if (this.layout) {
|
|
24547
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
24548
|
+
|
|
24549
|
+
if (wrapper) {
|
|
24550
|
+
wrapper.classList.forEach((className) => {
|
|
24551
|
+
if (className.startsWith('layout-')) {
|
|
24552
|
+
wrapper.classList.remove(className);
|
|
24553
|
+
}
|
|
24554
|
+
});
|
|
24555
|
+
|
|
24556
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
24557
|
+
}
|
|
24558
|
+
}
|
|
24559
|
+
}
|
|
24560
|
+
|
|
24561
|
+
updateComponentArchitecture() {
|
|
24562
|
+
this.resetLayoutClasses();
|
|
24563
|
+
this.resetShapeClasses();
|
|
24564
|
+
}
|
|
24565
|
+
|
|
24566
|
+
updated(changedProperties) {
|
|
24567
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
24568
|
+
this.updateComponentArchitecture();
|
|
24569
|
+
}
|
|
24570
|
+
}
|
|
24571
|
+
|
|
24572
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
24573
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
24574
|
+
render() {
|
|
24575
|
+
try {
|
|
24576
|
+
return this.renderLayout();
|
|
24577
|
+
} catch (error) {
|
|
24578
|
+
// failed to get the defined layout
|
|
24579
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
24580
|
+
|
|
24581
|
+
// fallback to the default layout
|
|
24582
|
+
return this.getLayout('default');
|
|
24583
|
+
}
|
|
24584
|
+
}
|
|
24585
|
+
}
|
|
24586
|
+
|
|
24247
24587
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
24248
24588
|
// See LICENSE in the project root for license information.
|
|
24249
24589
|
|
|
@@ -24272,7 +24612,7 @@ var inputVersion = '4.2.0';
|
|
|
24272
24612
|
*/
|
|
24273
24613
|
|
|
24274
24614
|
// build the component class
|
|
24275
|
-
class AuroDatePicker extends
|
|
24615
|
+
class AuroDatePicker extends AuroElement {
|
|
24276
24616
|
constructor() {
|
|
24277
24617
|
super();
|
|
24278
24618
|
|
|
@@ -24347,7 +24687,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24347
24687
|
/**
|
|
24348
24688
|
* @private
|
|
24349
24689
|
*/
|
|
24350
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
24690
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
24351
24691
|
|
|
24352
24692
|
/**
|
|
24353
24693
|
* @private
|
|
@@ -24373,6 +24713,11 @@ class AuroDatePicker extends i$2 {
|
|
|
24373
24713
|
* @private
|
|
24374
24714
|
*/
|
|
24375
24715
|
this.monthFirst = undefined;
|
|
24716
|
+
|
|
24717
|
+
// Layout Config
|
|
24718
|
+
this.layout = 'classic';
|
|
24719
|
+
this.shape = 'classic';
|
|
24720
|
+
this.size = 'lg';
|
|
24376
24721
|
}
|
|
24377
24722
|
|
|
24378
24723
|
// This function is to define props used within the scope of this component
|
|
@@ -24653,7 +24998,10 @@ class AuroDatePicker extends i$2 {
|
|
|
24653
24998
|
return [
|
|
24654
24999
|
styleCss$d,
|
|
24655
25000
|
colorCss$c,
|
|
24656
|
-
tokensCss$a
|
|
25001
|
+
tokensCss$a,
|
|
25002
|
+
|
|
25003
|
+
// layouts
|
|
25004
|
+
classicLayoutColor
|
|
24657
25005
|
];
|
|
24658
25006
|
}
|
|
24659
25007
|
|
|
@@ -24666,7 +25014,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24666
25014
|
*
|
|
24667
25015
|
*/
|
|
24668
25016
|
static register(name = "auro-datepicker") {
|
|
24669
|
-
AuroLibraryRuntimeUtils$
|
|
25017
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroDatePicker);
|
|
24670
25018
|
}
|
|
24671
25019
|
|
|
24672
25020
|
/**
|
|
@@ -24838,7 +25186,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24838
25186
|
* @returns {void}
|
|
24839
25187
|
*/
|
|
24840
25188
|
configureInput() {
|
|
24841
|
-
this.triggerInput = this.dropdown.querySelector('[slot="trigger"');
|
|
25189
|
+
this.triggerInput = this.dropdown.querySelector('[slot="trigger"]');
|
|
24842
25190
|
|
|
24843
25191
|
this.inputList = [...this.dropdown.querySelectorAll(this.inputTag._$litStatic$)];
|
|
24844
25192
|
|
|
@@ -25279,70 +25627,152 @@ class AuroDatePicker extends i$2 {
|
|
|
25279
25627
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
25280
25628
|
}
|
|
25281
25629
|
|
|
25630
|
+
// layout render methods
|
|
25631
|
+
// ------------------------------------
|
|
25632
|
+
|
|
25633
|
+
/**
|
|
25634
|
+
* Base wrapper for the datepicker layout - every layout follows this same structure
|
|
25635
|
+
* with minor variations in DOM structure.
|
|
25636
|
+
* @param {import("lit").TemplateResult} content - The content to be rendered inside the base layout.
|
|
25637
|
+
* @return {import("lit").TemplateResult}
|
|
25638
|
+
* @private
|
|
25639
|
+
*/
|
|
25640
|
+
_renderBaseLayout(content) {
|
|
25641
|
+
return u$3`
|
|
25642
|
+
<div
|
|
25643
|
+
part="wrapper">
|
|
25644
|
+
<div class="accents left">
|
|
25645
|
+
calendar icon
|
|
25646
|
+
</div>
|
|
25647
|
+
<div class="mainContent">
|
|
25648
|
+
${content}
|
|
25649
|
+
</div>
|
|
25650
|
+
<div class="accents right">
|
|
25651
|
+
error and/or close icon here :)
|
|
25652
|
+
</div>
|
|
25653
|
+
</div>
|
|
25654
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
25655
|
+
help text here (see combobox for example)
|
|
25656
|
+
</div>
|
|
25657
|
+
`;
|
|
25658
|
+
}
|
|
25659
|
+
|
|
25660
|
+
/**
|
|
25661
|
+
* Renders the emphasized layout for the datepicker.
|
|
25662
|
+
* @private
|
|
25663
|
+
* @return {import("lit").TemplateResult}
|
|
25664
|
+
*/
|
|
25665
|
+
renderEmphasizedLayout() {
|
|
25666
|
+
return u$3`
|
|
25667
|
+
<div
|
|
25668
|
+
part="wrapper">
|
|
25669
|
+
<div class="accents left">
|
|
25670
|
+
calendar icon
|
|
25671
|
+
</div>
|
|
25672
|
+
<div class="mainContent">
|
|
25673
|
+
${this.renderTempInputs()}
|
|
25674
|
+
</div>
|
|
25675
|
+
<div class="accents right">
|
|
25676
|
+
error and/or close icon here :)
|
|
25677
|
+
</div>
|
|
25678
|
+
</div>
|
|
25679
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
25680
|
+
help text here (see combobox for example)
|
|
25681
|
+
</div>
|
|
25682
|
+
`;
|
|
25683
|
+
}
|
|
25684
|
+
|
|
25685
|
+
renderLayoutFromAttributes() {
|
|
25686
|
+
switch (this.layout) {
|
|
25687
|
+
case 'emphasized':
|
|
25688
|
+
return this.renderEmphasizedLayout();
|
|
25689
|
+
default:
|
|
25690
|
+
// TODO: remove when all base layouts are implemented and instead return classic
|
|
25691
|
+
return u$3`
|
|
25692
|
+
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
25693
|
+
`;
|
|
25694
|
+
}
|
|
25695
|
+
}
|
|
25696
|
+
|
|
25697
|
+
renderTempInputs() {
|
|
25698
|
+
return u$3`
|
|
25699
|
+
<${this.inputTag}
|
|
25700
|
+
id="${this.generateRandomString(12)}"
|
|
25701
|
+
bordered
|
|
25702
|
+
class="dateFrom"
|
|
25703
|
+
?onDark="${this.onDark}"
|
|
25704
|
+
?required="${this.required}"
|
|
25705
|
+
noValidate
|
|
25706
|
+
type="date"
|
|
25707
|
+
.format="${this.format}"
|
|
25708
|
+
.max="${this.maxDate}"
|
|
25709
|
+
.min="${this.minDate}"
|
|
25710
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
25711
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25712
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25713
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25714
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25715
|
+
?disabled="${this.disabled}"
|
|
25716
|
+
inputmode="${o(this.inputmode)}"
|
|
25717
|
+
part="input">
|
|
25718
|
+
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
25719
|
+
</${this.inputTag}>
|
|
25720
|
+
${this.range ? u$3`
|
|
25721
|
+
<${this.inputTag}
|
|
25722
|
+
id="${this.generateRandomString(12)}"
|
|
25723
|
+
bordered
|
|
25724
|
+
class="dateTo"
|
|
25725
|
+
?onDark="${this.onDark}"
|
|
25726
|
+
?required="${this.required}"
|
|
25727
|
+
noValidate
|
|
25728
|
+
type="date"
|
|
25729
|
+
.format="${this.format}"
|
|
25730
|
+
.max="${this.maxDate}"
|
|
25731
|
+
.min="${this.minDate}"
|
|
25732
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
25733
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25734
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25735
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25736
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25737
|
+
?disabled="${this.disabled}"
|
|
25738
|
+
part="input">
|
|
25739
|
+
<span slot="label"><slot name="toLabel"></slot></span>
|
|
25740
|
+
</${this.inputTag}>
|
|
25741
|
+
` : undefined}`;
|
|
25742
|
+
}
|
|
25743
|
+
|
|
25744
|
+
// ------------------------------------
|
|
25745
|
+
// end of layout render methods
|
|
25746
|
+
|
|
25282
25747
|
// function that renders the HTML and CSS into the scope of the component
|
|
25283
25748
|
render() {
|
|
25284
|
-
|
|
25285
|
-
|
|
25749
|
+
// Base HTML render() handles dropdown and calendar bib
|
|
25750
|
+
return u$3`
|
|
25751
|
+
<div>
|
|
25286
25752
|
<${this.dropdownTag}
|
|
25287
|
-
|
|
25288
|
-
fluid
|
|
25289
|
-
bordered
|
|
25290
|
-
rounded
|
|
25753
|
+
?autoPlacement="${this.autoPlacement}"
|
|
25291
25754
|
?onDark="${this.onDark}"
|
|
25292
25755
|
?disabled="${this.disabled}"
|
|
25293
25756
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
25294
|
-
|
|
25757
|
+
?noFlip="${this.noFlip}"
|
|
25295
25758
|
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
25296
|
-
.
|
|
25759
|
+
.layout="${this.layout}"
|
|
25297
25760
|
.offset="${this.offset}"
|
|
25298
|
-
|
|
25299
|
-
|
|
25300
|
-
|
|
25761
|
+
.placement="${this.placement}"
|
|
25762
|
+
.shape="${this.shape}"
|
|
25763
|
+
.size="${this.size}"
|
|
25764
|
+
bordered
|
|
25765
|
+
disableEventShow
|
|
25766
|
+
fluid
|
|
25767
|
+
for="dropdownMenu"
|
|
25768
|
+
part="dropdown"
|
|
25769
|
+
rounded
|
|
25770
|
+
simple
|
|
25771
|
+
>
|
|
25301
25772
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
25302
|
-
|
|
25303
|
-
id="${this.generateRandomString(12)}"
|
|
25304
|
-
bordered
|
|
25305
|
-
class="dateFrom"
|
|
25306
|
-
?onDark="${this.onDark}"
|
|
25307
|
-
?required="${this.required}"
|
|
25308
|
-
noValidate
|
|
25309
|
-
type="date"
|
|
25310
|
-
.format="${this.format}"
|
|
25311
|
-
.max="${this.maxDate}"
|
|
25312
|
-
.min="${this.minDate}"
|
|
25313
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
25314
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25315
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25316
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25317
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25318
|
-
?disabled="${this.disabled}"
|
|
25319
|
-
inputmode="${o(this.inputmode)}"
|
|
25320
|
-
part="input">
|
|
25321
|
-
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
25322
|
-
</${this.inputTag}>
|
|
25323
|
-
${this.range ? u$2`
|
|
25324
|
-
<${this.inputTag}
|
|
25325
|
-
id="${this.generateRandomString(12)}"
|
|
25326
|
-
bordered
|
|
25327
|
-
class="dateTo"
|
|
25328
|
-
?onDark="${this.onDark}"
|
|
25329
|
-
?required="${this.required}"
|
|
25330
|
-
noValidate
|
|
25331
|
-
type="date"
|
|
25332
|
-
.format="${this.format}"
|
|
25333
|
-
.max="${this.maxDate}"
|
|
25334
|
-
.min="${this.minDate}"
|
|
25335
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
25336
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25337
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25338
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25339
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25340
|
-
?disabled="${this.disabled}"
|
|
25341
|
-
part="input">
|
|
25342
|
-
<span slot="label"><slot name="toLabel"></slot></span>
|
|
25343
|
-
</${this.inputTag}>
|
|
25344
|
-
` : undefined}
|
|
25773
|
+
${this.renderLayoutFromAttributes()}
|
|
25345
25774
|
</div>
|
|
25775
|
+
|
|
25346
25776
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
25347
25777
|
<auro-formkit-calendar
|
|
25348
25778
|
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
@@ -25358,16 +25788,16 @@ class AuroDatePicker extends i$2 {
|
|
|
25358
25788
|
>
|
|
25359
25789
|
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
25360
25790
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
25361
|
-
<span slot="bib.fullscreen.fromStr">${this.value || u$
|
|
25362
|
-
${this.range ? u$
|
|
25791
|
+
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
25792
|
+
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
25363
25793
|
</auro-formkit-calendar>
|
|
25364
25794
|
</div>
|
|
25365
25795
|
<p slot="helpText" part="helpTextSpan">
|
|
25366
25796
|
<!-- Help text and error message template -->
|
|
25367
25797
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
25368
|
-
? u$
|
|
25798
|
+
? u$3`
|
|
25369
25799
|
<slot name="helpText"></slot>
|
|
25370
|
-
` : u$
|
|
25800
|
+
` : u$3`
|
|
25371
25801
|
<span role="alert" aria-live="assertive" part="helpText">
|
|
25372
25802
|
${this.errorMessage}
|
|
25373
25803
|
</span>`
|