@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.1 → 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 +598 -428
- package/components/combobox/demo/index.html +0 -1
- package/components/combobox/demo/index.md +43 -0
- package/components/combobox/demo/index.min.js +596 -426
- package/components/combobox/dist/auro-combobox.d.ts +13 -18
- package/components/combobox/dist/index.js +458 -273
- package/components/combobox/dist/registered.js +458 -273
- 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 +847 -324
- package/components/datepicker/demo/index.md +13 -0
- package/components/datepicker/demo/index.min.js +847 -324
- package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
- package/components/datepicker/dist/index.js +677 -154
- package/components/datepicker/dist/registered.js +677 -154
- 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/demo/api.md +53 -49
- package/components/input/demo/api.min.js +121 -27
- package/components/input/demo/index.min.js +121 -27
- package/components/input/dist/auro-input.d.ts +22 -14
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +121 -27
- package/components/input/dist/registered.js +121 -27
- 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
|
@@ -1,35 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
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;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright 2017 Google LLC
|
|
11
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/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");
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* @license
|
|
16
3
|
* Copyright 2017 Google LLC
|
|
17
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
5
|
*/
|
|
19
|
-
const t$
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright 2017 Google LLC
|
|
24
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/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");
|
|
6
|
+
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};
|
|
26
7
|
|
|
27
8
|
/**
|
|
28
9
|
* @license
|
|
29
10
|
* Copyright 2020 Google LLC
|
|
30
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
12
|
*/
|
|
32
|
-
const a=Symbol.for(""),o$
|
|
13
|
+
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);
|
|
33
14
|
|
|
34
15
|
let DateFormatter$1 = class DateFormatter {
|
|
35
16
|
|
|
@@ -87,9 +68,10 @@ let DateFormatter$1 = class DateFormatter {
|
|
|
87
68
|
/**
|
|
88
69
|
* Convert a date object to string format.
|
|
89
70
|
* @param {Object} date - Date to convert to string.
|
|
90
|
-
* @
|
|
71
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
72
|
+
* @returns {String} Returns the date as a string.
|
|
91
73
|
*/
|
|
92
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
74
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
93
75
|
year: "numeric",
|
|
94
76
|
month: "2-digit",
|
|
95
77
|
day: "2-digit",
|
|
@@ -281,7 +263,7 @@ let AuroDateUtilities$1 = class AuroDateUtilities extends AuroDateUtilitiesBase$
|
|
|
281
263
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
282
264
|
|
|
283
265
|
// Get the date string of the date object we created from the string date
|
|
284
|
-
const actualDateStr = dateFormatter$1.getDateAsString(dateObj);
|
|
266
|
+
const actualDateStr = dateFormatter$1.getDateAsString(dateObj, "en-US");
|
|
285
267
|
|
|
286
268
|
// Guard Clause: Generated date matches date string input
|
|
287
269
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -446,7 +428,7 @@ const {
|
|
|
446
428
|
|
|
447
429
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
448
430
|
|
|
449
|
-
let AuroLibraryRuntimeUtils$
|
|
431
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
450
432
|
|
|
451
433
|
/* eslint-disable jsdoc/require-param */
|
|
452
434
|
|
|
@@ -516,7 +498,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
516
498
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
517
499
|
|
|
518
500
|
constructor() {
|
|
519
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
501
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
520
502
|
}
|
|
521
503
|
|
|
522
504
|
/**
|
|
@@ -905,7 +887,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
|
905
887
|
*/
|
|
906
888
|
generateTag(baseName, version, tagClass) {
|
|
907
889
|
const elementName = this.generateElementName(baseName, version);
|
|
908
|
-
const tag = i$
|
|
890
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
909
891
|
|
|
910
892
|
if (!customElements.get(elementName)) {
|
|
911
893
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -1114,6 +1096,25 @@ class AuroDatepickerUtilities {
|
|
|
1114
1096
|
}
|
|
1115
1097
|
}
|
|
1116
1098
|
|
|
1099
|
+
/**
|
|
1100
|
+
* @license
|
|
1101
|
+
* Copyright 2019 Google LLC
|
|
1102
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1103
|
+
*/
|
|
1104
|
+
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;
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* @license
|
|
1108
|
+
* Copyright 2017 Google LLC
|
|
1109
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1110
|
+
*/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");
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* @license
|
|
1114
|
+
* Copyright 2017 Google LLC
|
|
1115
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1116
|
+
*/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");
|
|
1117
|
+
|
|
1117
1118
|
class UtilitiesCalendarRender {
|
|
1118
1119
|
constructor() {
|
|
1119
1120
|
this.util = new AuroDatepickerUtilities();
|
|
@@ -1270,19 +1271,21 @@ class UtilitiesCalendarRender {
|
|
|
1270
1271
|
}
|
|
1271
1272
|
}
|
|
1272
1273
|
|
|
1273
|
-
var styleCss$d = i$
|
|
1274
|
+
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}}`;
|
|
1274
1275
|
|
|
1275
|
-
var colorCss$c = i$
|
|
1276
|
+
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)}`;
|
|
1276
1277
|
|
|
1277
|
-
var tokensCss$a = i$
|
|
1278
|
+
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)}`;
|
|
1278
1279
|
|
|
1279
|
-
var
|
|
1280
|
+
var classicLayoutColor = i$3`:host [auro-dropdown]::part(wrapper){border:1px solid aqua;outline:2px solid crimson}`;
|
|
1280
1281
|
|
|
1281
|
-
var
|
|
1282
|
+
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:""}`;
|
|
1282
1283
|
|
|
1283
|
-
var
|
|
1284
|
+
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)}}`;
|
|
1284
1285
|
|
|
1285
|
-
var
|
|
1286
|
+
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%}`;
|
|
1287
|
+
|
|
1288
|
+
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)}`;
|
|
1286
1289
|
|
|
1287
1290
|
/******************************************************************************
|
|
1288
1291
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1317,7 +1320,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
1317
1320
|
* @license
|
|
1318
1321
|
* Copyright 2017 Google LLC
|
|
1319
1322
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1320
|
-
*/const o$1={attribute:true,type:String,converter:u$
|
|
1323
|
+
*/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)}
|
|
1321
1324
|
|
|
1322
1325
|
/**
|
|
1323
1326
|
* @module constants
|
|
@@ -7073,7 +7076,7 @@ function subYears(date, amount, options) {
|
|
|
7073
7076
|
return addYears(date, -1, options);
|
|
7074
7077
|
}
|
|
7075
7078
|
|
|
7076
|
-
class RangeDatepickerCell extends i$
|
|
7079
|
+
class RangeDatepickerCell extends i$1 {
|
|
7077
7080
|
constructor() {
|
|
7078
7081
|
super(...arguments);
|
|
7079
7082
|
this.day = null;
|
|
@@ -7194,7 +7197,7 @@ class RangeDatepickerCell extends i$2 {
|
|
|
7194
7197
|
});
|
|
7195
7198
|
}
|
|
7196
7199
|
}
|
|
7197
|
-
RangeDatepickerCell.styles = i$
|
|
7200
|
+
RangeDatepickerCell.styles = i$3`
|
|
7198
7201
|
:host {
|
|
7199
7202
|
display: block;
|
|
7200
7203
|
}
|
|
@@ -7274,7 +7277,7 @@ __decorate([n({ type: Array })], RangeDatepickerCell.prototype, "disabledDays",
|
|
|
7274
7277
|
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", void 0);
|
|
7275
7278
|
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", void 0);
|
|
7276
7279
|
__decorate([n({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
7277
|
-
AuroLibraryRuntimeUtils$
|
|
7280
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
7278
7281
|
|
|
7279
7282
|
class Day {
|
|
7280
7283
|
constructor(date) {
|
|
@@ -7283,7 +7286,7 @@ class Day {
|
|
|
7283
7286
|
}
|
|
7284
7287
|
}
|
|
7285
7288
|
|
|
7286
|
-
class RangeDatepickerCalendar extends i$
|
|
7289
|
+
class RangeDatepickerCalendar extends i$1 {
|
|
7287
7290
|
constructor() {
|
|
7288
7291
|
super();
|
|
7289
7292
|
|
|
@@ -7669,7 +7672,7 @@ class RangeDatepickerCalendar extends i$2 {
|
|
|
7669
7672
|
}
|
|
7670
7673
|
}
|
|
7671
7674
|
|
|
7672
|
-
RangeDatepickerCalendar.styles = i$
|
|
7675
|
+
RangeDatepickerCalendar.styles = i$3`
|
|
7673
7676
|
:host {
|
|
7674
7677
|
display: block;
|
|
7675
7678
|
width: 266px;
|
|
@@ -7792,7 +7795,7 @@ __decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList",
|
|
|
7792
7795
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", void 0);
|
|
7793
7796
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", void 0);
|
|
7794
7797
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", void 0);
|
|
7795
|
-
AuroLibraryRuntimeUtils$
|
|
7798
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7796
7799
|
|
|
7797
7800
|
/**
|
|
7798
7801
|
* @license
|
|
@@ -7807,15 +7810,15 @@ const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});cl
|
|
|
7807
7810
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7808
7811
|
*/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}});
|
|
7809
7812
|
|
|
7810
|
-
var styleCss$a = i$
|
|
7813
|
+
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)}}`;
|
|
7811
7814
|
|
|
7812
|
-
var colorCss$9 = i$
|
|
7815
|
+
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}`;
|
|
7813
7816
|
|
|
7814
|
-
var styleCss$9 = i$
|
|
7817
|
+
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:""}`;
|
|
7815
7818
|
|
|
7816
|
-
var colorCss$8 = i$
|
|
7819
|
+
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)}`;
|
|
7817
7820
|
|
|
7818
|
-
var tokensCss$9 = i$
|
|
7821
|
+
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)}`;
|
|
7819
7822
|
|
|
7820
7823
|
var top = 'top';
|
|
7821
7824
|
var bottom = 'bottom';
|
|
@@ -9691,7 +9694,7 @@ class Popover {
|
|
|
9691
9694
|
* @slot - Default unnamed slot for the use of popover content
|
|
9692
9695
|
* @slot trigger - The element in this slot triggers hiding and showing the popover.
|
|
9693
9696
|
*/
|
|
9694
|
-
class AuroPopover extends i$
|
|
9697
|
+
class AuroPopover extends i$1 {
|
|
9695
9698
|
constructor() {
|
|
9696
9699
|
super();
|
|
9697
9700
|
|
|
@@ -9706,7 +9709,7 @@ class AuroPopover extends i$2 {
|
|
|
9706
9709
|
privateDefaults() {
|
|
9707
9710
|
this.isPopoverVisible = false;
|
|
9708
9711
|
this.id = `popover-${(Math.random() + 1).toString(36).substring(7)}`;
|
|
9709
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9712
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
9710
9713
|
}
|
|
9711
9714
|
|
|
9712
9715
|
// function to define props used within the scope of this component
|
|
@@ -9721,9 +9724,9 @@ class AuroPopover extends i$2 {
|
|
|
9721
9724
|
|
|
9722
9725
|
static get styles() {
|
|
9723
9726
|
return [
|
|
9724
|
-
i$
|
|
9725
|
-
i$
|
|
9726
|
-
i$
|
|
9727
|
+
i$3`${styleCss$9}`,
|
|
9728
|
+
i$3`${colorCss$8}`,
|
|
9729
|
+
i$3`${tokensCss$9}`
|
|
9727
9730
|
];
|
|
9728
9731
|
}
|
|
9729
9732
|
|
|
@@ -9736,7 +9739,7 @@ class AuroPopover extends i$2 {
|
|
|
9736
9739
|
*
|
|
9737
9740
|
*/
|
|
9738
9741
|
static register(name = "auro-popover") {
|
|
9739
|
-
AuroLibraryRuntimeUtils$
|
|
9742
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroPopover);
|
|
9740
9743
|
}
|
|
9741
9744
|
|
|
9742
9745
|
connectedCallback() {
|
|
@@ -9884,7 +9887,7 @@ var popoverVersion = '4.1.3';
|
|
|
9884
9887
|
|
|
9885
9888
|
/* 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 */
|
|
9886
9889
|
|
|
9887
|
-
class AuroCalendarCell extends i$
|
|
9890
|
+
class AuroCalendarCell extends i$1 {
|
|
9888
9891
|
constructor() {
|
|
9889
9892
|
super();
|
|
9890
9893
|
|
|
@@ -9904,7 +9907,7 @@ class AuroCalendarCell extends i$2 {
|
|
|
9904
9907
|
this.dateStr = null;
|
|
9905
9908
|
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.
|
|
9906
9909
|
|
|
9907
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9910
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
9908
9911
|
|
|
9909
9912
|
/**
|
|
9910
9913
|
* Generate unique names for dependency components.
|
|
@@ -10222,7 +10225,7 @@ class AuroCalendarCell extends i$2 {
|
|
|
10222
10225
|
};
|
|
10223
10226
|
|
|
10224
10227
|
let _a, _b;
|
|
10225
|
-
return u$
|
|
10228
|
+
return u$3`
|
|
10226
10229
|
<${this.popoverTag}>
|
|
10227
10230
|
<slot name="popover_${this.dateStr}"></slot>
|
|
10228
10231
|
<button
|
|
@@ -10400,7 +10403,7 @@ if (!customElements.get('auro-formkit-calendar-month')) {
|
|
|
10400
10403
|
|
|
10401
10404
|
/* eslint-disable no-underscore-dangle, no-magic-numbers, no-underscore-dangle, no-void, init-declarations, no-extra-parens, no-unused-expressions */
|
|
10402
10405
|
|
|
10403
|
-
class RangeDatepicker extends i$
|
|
10406
|
+
class RangeDatepicker extends i$1 {
|
|
10404
10407
|
constructor() {
|
|
10405
10408
|
super();
|
|
10406
10409
|
|
|
@@ -10616,7 +10619,7 @@ class RangeDatepicker extends i$2 {
|
|
|
10616
10619
|
}));
|
|
10617
10620
|
}
|
|
10618
10621
|
}
|
|
10619
|
-
RangeDatepicker.styles = i$
|
|
10622
|
+
RangeDatepicker.styles = i$3`
|
|
10620
10623
|
:host {
|
|
10621
10624
|
display: block;
|
|
10622
10625
|
position: relative;
|
|
@@ -10808,11 +10811,11 @@ class CalendarUtilities {
|
|
|
10808
10811
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10809
10812
|
*/const o=o=>o??E;
|
|
10810
10813
|
|
|
10811
|
-
var colorCss$1$2 = i$
|
|
10814
|
+
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)}`;
|
|
10812
10815
|
|
|
10813
|
-
var styleCss$2$2 = i$
|
|
10816
|
+
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)}`;
|
|
10814
10817
|
|
|
10815
|
-
var tokenCss = i$
|
|
10818
|
+
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)}`;
|
|
10816
10819
|
|
|
10817
10820
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10818
10821
|
// See LICENSE in the project root for license information.
|
|
@@ -10821,7 +10824,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
10821
10824
|
|
|
10822
10825
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10823
10826
|
|
|
10824
|
-
let AuroLibraryRuntimeUtils$
|
|
10827
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
10825
10828
|
|
|
10826
10829
|
/* eslint-disable jsdoc/require-param */
|
|
10827
10830
|
|
|
@@ -10914,7 +10917,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
10914
10917
|
*/
|
|
10915
10918
|
generateTag(baseName, version, tagClass) {
|
|
10916
10919
|
const elementName = this.generateElementName(baseName, version);
|
|
10917
|
-
const tag = i$
|
|
10920
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
10918
10921
|
|
|
10919
10922
|
if (!customElements.get(elementName)) {
|
|
10920
10923
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -10934,7 +10937,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
10934
10937
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
10935
10938
|
*/
|
|
10936
10939
|
|
|
10937
|
-
let AuroElement$
|
|
10940
|
+
let AuroElement$4 = class AuroElement extends i$1 {
|
|
10938
10941
|
|
|
10939
10942
|
// function to define props used within the scope of this component
|
|
10940
10943
|
static get properties() {
|
|
@@ -10990,7 +10993,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
10990
10993
|
return _fetchMap$2.get(uri);
|
|
10991
10994
|
};
|
|
10992
10995
|
|
|
10993
|
-
var styleCss$1$2 = i$
|
|
10996
|
+
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}`;
|
|
10994
10997
|
|
|
10995
10998
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10996
10999
|
// See LICENSE in the project root for license information.
|
|
@@ -11002,7 +11005,7 @@ var styleCss$1$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
11002
11005
|
*/
|
|
11003
11006
|
|
|
11004
11007
|
// build the component class
|
|
11005
|
-
let BaseIcon$2 = class BaseIcon extends AuroElement$
|
|
11008
|
+
let BaseIcon$2 = class BaseIcon extends AuroElement$4 {
|
|
11006
11009
|
constructor() {
|
|
11007
11010
|
super();
|
|
11008
11011
|
this.onDark = false;
|
|
@@ -11032,7 +11035,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$3 {
|
|
|
11032
11035
|
}
|
|
11033
11036
|
|
|
11034
11037
|
static get styles() {
|
|
11035
|
-
return i$
|
|
11038
|
+
return i$3`
|
|
11036
11039
|
${styleCss$1$2}
|
|
11037
11040
|
`;
|
|
11038
11041
|
}
|
|
@@ -11074,9 +11077,79 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$3 {
|
|
|
11074
11077
|
}
|
|
11075
11078
|
};
|
|
11076
11079
|
|
|
11077
|
-
var tokensCss$8 = i$
|
|
11080
|
+
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)}`;
|
|
11081
|
+
|
|
11082
|
+
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)}`;
|
|
11083
|
+
|
|
11084
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11085
|
+
// See LICENSE in the project root for license information.
|
|
11086
|
+
|
|
11087
|
+
// ---------------------------------------------------------------------
|
|
11088
|
+
|
|
11089
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11090
|
+
|
|
11091
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
11092
|
+
|
|
11093
|
+
/* eslint-disable jsdoc/require-param */
|
|
11094
|
+
|
|
11095
|
+
/**
|
|
11096
|
+
* This will register a new custom element with the browser.
|
|
11097
|
+
* @param {String} name - The name of the custom element.
|
|
11098
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11099
|
+
* @returns {void}
|
|
11100
|
+
*/
|
|
11101
|
+
registerComponent(name, componentClass) {
|
|
11102
|
+
if (!customElements.get(name)) {
|
|
11103
|
+
customElements.define(name, class extends componentClass {});
|
|
11104
|
+
}
|
|
11105
|
+
}
|
|
11106
|
+
|
|
11107
|
+
/**
|
|
11108
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11109
|
+
* @returns {void}
|
|
11110
|
+
*/
|
|
11111
|
+
closestElement(
|
|
11112
|
+
selector, // selector like in .closest()
|
|
11113
|
+
base = this, // extra functionality to skip a parent
|
|
11114
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11115
|
+
!el || el === document || el === window
|
|
11116
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11117
|
+
: found
|
|
11118
|
+
? found // found a selector INside this element
|
|
11119
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11120
|
+
) {
|
|
11121
|
+
return __Closest(base);
|
|
11122
|
+
}
|
|
11123
|
+
/* eslint-enable jsdoc/require-param */
|
|
11124
|
+
|
|
11125
|
+
/**
|
|
11126
|
+
* 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.
|
|
11127
|
+
* @param {Object} elem - The element to check.
|
|
11128
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11129
|
+
* @returns {void}
|
|
11130
|
+
*/
|
|
11131
|
+
handleComponentTagRename(elem, tagName) {
|
|
11132
|
+
const tag = tagName.toLowerCase();
|
|
11133
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11134
|
+
|
|
11135
|
+
if (elemTag !== tag) {
|
|
11136
|
+
elem.setAttribute(tag, true);
|
|
11137
|
+
}
|
|
11138
|
+
}
|
|
11139
|
+
|
|
11140
|
+
/**
|
|
11141
|
+
* Validates if an element is a specific Auro component.
|
|
11142
|
+
* @param {Object} elem - The element to validate.
|
|
11143
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11144
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11145
|
+
*/
|
|
11146
|
+
elementMatch(elem, tagName) {
|
|
11147
|
+
const tag = tagName.toLowerCase();
|
|
11148
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11078
11149
|
|
|
11079
|
-
|
|
11150
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11151
|
+
}
|
|
11152
|
+
};
|
|
11080
11153
|
|
|
11081
11154
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11082
11155
|
// See LICENSE in the project root for license information.
|
|
@@ -11097,7 +11170,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11097
11170
|
*/
|
|
11098
11171
|
privateDefaults() {
|
|
11099
11172
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
11100
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11173
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
11101
11174
|
}
|
|
11102
11175
|
|
|
11103
11176
|
// function to define props used within the scope of this component
|
|
@@ -11164,9 +11237,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11164
11237
|
static get styles() {
|
|
11165
11238
|
return [
|
|
11166
11239
|
super.styles,
|
|
11167
|
-
i$
|
|
11168
|
-
i$
|
|
11169
|
-
i$
|
|
11240
|
+
i$3`${tokensCss$8}`,
|
|
11241
|
+
i$3`${styleCss$1$2}`,
|
|
11242
|
+
i$3`${colorCss$7}`
|
|
11170
11243
|
];
|
|
11171
11244
|
}
|
|
11172
11245
|
|
|
@@ -11179,7 +11252,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11179
11252
|
*
|
|
11180
11253
|
*/
|
|
11181
11254
|
static register(name = "auro-icon") {
|
|
11182
|
-
AuroLibraryRuntimeUtils$
|
|
11255
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroIcon);
|
|
11183
11256
|
}
|
|
11184
11257
|
|
|
11185
11258
|
connectedCallback() {
|
|
@@ -11247,7 +11320,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11247
11320
|
|
|
11248
11321
|
var iconVersion$2 = '8.0.3';
|
|
11249
11322
|
|
|
11250
|
-
var styleCss$8 = i$
|
|
11323
|
+
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)}`;
|
|
11251
11324
|
|
|
11252
11325
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11253
11326
|
// See LICENSE in the project root for license information.
|
|
@@ -11267,7 +11340,7 @@ var styleCss$8 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-head
|
|
|
11267
11340
|
/* eslint complexity: ["error", 21] */
|
|
11268
11341
|
|
|
11269
11342
|
// build the component class
|
|
11270
|
-
class AuroHeader extends i$
|
|
11343
|
+
class AuroHeader extends i$1 {
|
|
11271
11344
|
constructor() {
|
|
11272
11345
|
super();
|
|
11273
11346
|
|
|
@@ -11276,7 +11349,7 @@ class AuroHeader extends i$2 {
|
|
|
11276
11349
|
/**
|
|
11277
11350
|
* @private
|
|
11278
11351
|
*/
|
|
11279
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11352
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
11280
11353
|
}
|
|
11281
11354
|
|
|
11282
11355
|
// function to define props used within the scope of this component
|
|
@@ -11306,7 +11379,7 @@ class AuroHeader extends i$2 {
|
|
|
11306
11379
|
*
|
|
11307
11380
|
*/
|
|
11308
11381
|
static register(name = "auro-header") {
|
|
11309
|
-
AuroLibraryRuntimeUtils$
|
|
11382
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroHeader);
|
|
11310
11383
|
}
|
|
11311
11384
|
|
|
11312
11385
|
firstUpdated() {
|
|
@@ -11395,14 +11468,14 @@ var headerVersion = '4.0.1';
|
|
|
11395
11468
|
// See LICENSE in the project root for license information.
|
|
11396
11469
|
|
|
11397
11470
|
|
|
11398
|
-
class AuroBibtemplate extends i$
|
|
11471
|
+
class AuroBibtemplate extends i$1 {
|
|
11399
11472
|
|
|
11400
11473
|
constructor() {
|
|
11401
11474
|
super();
|
|
11402
11475
|
|
|
11403
11476
|
this.large = false;
|
|
11404
11477
|
|
|
11405
|
-
AuroLibraryRuntimeUtils$
|
|
11478
|
+
AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
11406
11479
|
|
|
11407
11480
|
const versioning = new AuroDependencyVersioning$2();
|
|
11408
11481
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$2, AuroIcon$2);
|
|
@@ -11441,7 +11514,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
11441
11514
|
*
|
|
11442
11515
|
*/
|
|
11443
11516
|
static register(name = "auro-bibtemplate") {
|
|
11444
|
-
AuroLibraryRuntimeUtils$
|
|
11517
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
11445
11518
|
}
|
|
11446
11519
|
|
|
11447
11520
|
/**
|
|
@@ -11481,11 +11554,23 @@ class AuroBibtemplate extends i$2 {
|
|
|
11481
11554
|
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
11482
11555
|
}
|
|
11483
11556
|
|
|
11557
|
+
firstUpdated(changedProperties) {
|
|
11558
|
+
super.firstUpdated(changedProperties);
|
|
11559
|
+
|
|
11560
|
+
this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
|
|
11561
|
+
bubbles: true,
|
|
11562
|
+
composed: true,
|
|
11563
|
+
detail: {
|
|
11564
|
+
element: this
|
|
11565
|
+
}
|
|
11566
|
+
}));
|
|
11567
|
+
}
|
|
11568
|
+
|
|
11484
11569
|
// function that renders the HTML and CSS into the scope of the component
|
|
11485
11570
|
render() {
|
|
11486
|
-
return u$
|
|
11571
|
+
return u$3`
|
|
11487
11572
|
<div id="bibTemplate" part="bibtemplate">
|
|
11488
|
-
${this.isFullscreen ? u$
|
|
11573
|
+
${this.isFullscreen ? u$3`
|
|
11489
11574
|
<div id="headerContainer">
|
|
11490
11575
|
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
11491
11576
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
@@ -11502,7 +11587,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
11502
11587
|
<slot></slot>
|
|
11503
11588
|
</div>
|
|
11504
11589
|
|
|
11505
|
-
${this.isFullscreen ? u$
|
|
11590
|
+
${this.isFullscreen ? u$3`
|
|
11506
11591
|
<div id="footerContainer">
|
|
11507
11592
|
<slot name="footer"></slot>
|
|
11508
11593
|
</div>` : null}
|
|
@@ -11513,23 +11598,23 @@ class AuroBibtemplate extends i$2 {
|
|
|
11513
11598
|
|
|
11514
11599
|
var bibTemplateVersion = '1.0.0';
|
|
11515
11600
|
|
|
11516
|
-
var styleCss$7 = i$
|
|
11601
|
+
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}`;
|
|
11517
11602
|
|
|
11518
|
-
var colorCss$6 = i$
|
|
11603
|
+
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}`;
|
|
11519
11604
|
|
|
11520
|
-
var tokensCss$7 = i$
|
|
11605
|
+
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}`;
|
|
11521
11606
|
|
|
11522
|
-
var styleCss$6 = i$
|
|
11607
|
+
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}}`;
|
|
11523
11608
|
|
|
11524
|
-
var colorCss$5 = i$
|
|
11609
|
+
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}`;
|
|
11525
11610
|
|
|
11526
|
-
var tokensCss$6 = i$
|
|
11611
|
+
var tokensCss$6 = i$3`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11527
11612
|
|
|
11528
11613
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11529
11614
|
// See LICENSE in the project root for license information.
|
|
11530
11615
|
|
|
11531
11616
|
|
|
11532
|
-
let AuroLoader$1 = class AuroLoader extends i$
|
|
11617
|
+
let AuroLoader$1 = class AuroLoader extends i$1 {
|
|
11533
11618
|
constructor() {
|
|
11534
11619
|
super();
|
|
11535
11620
|
|
|
@@ -11551,7 +11636,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
11551
11636
|
/**
|
|
11552
11637
|
* @private
|
|
11553
11638
|
*/
|
|
11554
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11639
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
11555
11640
|
|
|
11556
11641
|
this.orbit = false;
|
|
11557
11642
|
this.ringworm = false;
|
|
@@ -11599,9 +11684,9 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
11599
11684
|
|
|
11600
11685
|
static get styles() {
|
|
11601
11686
|
return [
|
|
11602
|
-
i$
|
|
11603
|
-
i$
|
|
11604
|
-
i$
|
|
11687
|
+
i$3`${styleCss$6}`,
|
|
11688
|
+
i$3`${colorCss$5}`,
|
|
11689
|
+
i$3`${tokensCss$6}`
|
|
11605
11690
|
];
|
|
11606
11691
|
}
|
|
11607
11692
|
|
|
@@ -11614,7 +11699,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
11614
11699
|
*
|
|
11615
11700
|
*/
|
|
11616
11701
|
static register(name = "auro-loader") {
|
|
11617
|
-
AuroLibraryRuntimeUtils$
|
|
11702
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroLoader);
|
|
11618
11703
|
}
|
|
11619
11704
|
|
|
11620
11705
|
firstUpdated() {
|
|
@@ -11682,7 +11767,7 @@ var loaderVersion$1 = '5.0.0';
|
|
|
11682
11767
|
|
|
11683
11768
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
11684
11769
|
|
|
11685
|
-
let AuroButton$1 = class AuroButton extends i$
|
|
11770
|
+
let AuroButton$1 = class AuroButton extends i$1 {
|
|
11686
11771
|
|
|
11687
11772
|
/**
|
|
11688
11773
|
* Enables form association for this element.
|
|
@@ -11918,7 +12003,7 @@ let AuroButton$1 = class AuroButton extends i$2 {
|
|
|
11918
12003
|
*
|
|
11919
12004
|
*/
|
|
11920
12005
|
static register(name = "auro-button") {
|
|
11921
|
-
AuroLibraryRuntimeUtils$
|
|
12006
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroButton);
|
|
11922
12007
|
}
|
|
11923
12008
|
|
|
11924
12009
|
/**
|
|
@@ -11973,7 +12058,7 @@ let AuroButton$1 = class AuroButton extends i$2 {
|
|
|
11973
12058
|
'loading': this.loading
|
|
11974
12059
|
};
|
|
11975
12060
|
|
|
11976
|
-
return u$
|
|
12061
|
+
return u$3`
|
|
11977
12062
|
<button
|
|
11978
12063
|
part="button"
|
|
11979
12064
|
aria-hidden="${o(this.ariahidden || undefined)}"
|
|
@@ -11992,11 +12077,11 @@ let AuroButton$1 = class AuroButton extends i$2 {
|
|
|
11992
12077
|
.value="${o(this.value ? this.value : undefined)}"
|
|
11993
12078
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
11994
12079
|
>
|
|
11995
|
-
${o(this.loading ? u$
|
|
12080
|
+
${o(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
11996
12081
|
|
|
11997
12082
|
<span class="contentWrapper">
|
|
11998
12083
|
<span class="textSlot" part="text">
|
|
11999
|
-
${this.iconOnly ? undefined : u$
|
|
12084
|
+
${this.iconOnly ? undefined : u$3`<slot></slot>`}
|
|
12000
12085
|
</span>
|
|
12001
12086
|
|
|
12002
12087
|
<span part="icon">
|
|
@@ -12231,7 +12316,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12231
12316
|
const firstMonth = this.firstRenderedMonth.getMonth() + 1;
|
|
12232
12317
|
const firstYear = this.firstRenderedMonth.getFullYear();
|
|
12233
12318
|
|
|
12234
|
-
renderedHtml = u$
|
|
12319
|
+
renderedHtml = u$3`${renderedHtml}${this.utilCalRender.renderCalendar(this, firstMonth, firstYear)}`;
|
|
12235
12320
|
|
|
12236
12321
|
// Loop through the number of remaining calendars to render and add the HTML
|
|
12237
12322
|
let newMonthDate = undefined;
|
|
@@ -12257,7 +12342,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12257
12342
|
const newMonthDateStr = `${newMonth}/1/${newYear}`;
|
|
12258
12343
|
newMonthDate = new Date(newMonthDateStr);
|
|
12259
12344
|
|
|
12260
|
-
renderedHtml = u$
|
|
12345
|
+
renderedHtml = u$3`${renderedHtml}${this.utilCalRender.renderCalendar(this, newMonth, newYear)}`;
|
|
12261
12346
|
}
|
|
12262
12347
|
}
|
|
12263
12348
|
|
|
@@ -12321,7 +12406,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12321
12406
|
}
|
|
12322
12407
|
|
|
12323
12408
|
render() {
|
|
12324
|
-
return u$
|
|
12409
|
+
return u$3`
|
|
12325
12410
|
<${this.bibtemplateTag}
|
|
12326
12411
|
?large="${this.largeFullscreenHeadline}"
|
|
12327
12412
|
?isFullscreen="${this.isFullscreen}"
|
|
@@ -12343,12 +12428,12 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12343
12428
|
${this.renderAllCalendars()}
|
|
12344
12429
|
</div>
|
|
12345
12430
|
<div class="calendarNavButtons">
|
|
12346
|
-
${this.showPrevMonthBtn ? u$
|
|
12431
|
+
${this.showPrevMonthBtn ? u$3`
|
|
12347
12432
|
<button class="calendarNavBtn prevMonth" @click="${this.handlePrevMonth}">
|
|
12348
12433
|
${this.util.generateIconHtml(chevronLeft)}
|
|
12349
12434
|
</button>
|
|
12350
12435
|
` : undefined}
|
|
12351
|
-
${this.showNextMonthBtn ? u$
|
|
12436
|
+
${this.showNextMonthBtn ? u$3`
|
|
12352
12437
|
<button class="calendarNavBtn nextMonth" @click="${this.handleNextMonth}">
|
|
12353
12438
|
${this.util.generateIconHtml(chevronRight)}
|
|
12354
12439
|
</button>
|
|
@@ -12373,7 +12458,7 @@ if (!customElements.get('auro-formkit-calendar')) {
|
|
|
12373
12458
|
|
|
12374
12459
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12375
12460
|
|
|
12376
|
-
let AuroLibraryRuntimeUtils$
|
|
12461
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
12377
12462
|
|
|
12378
12463
|
/* eslint-disable jsdoc/require-param */
|
|
12379
12464
|
|
|
@@ -12956,10 +13041,11 @@ const flip$1 = function (options) {
|
|
|
12956
13041
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
12957
13042
|
const nextPlacement = placements[nextIndex];
|
|
12958
13043
|
if (nextPlacement) {
|
|
12959
|
-
var _overflowsData$;
|
|
12960
13044
|
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
12961
|
-
|
|
12962
|
-
if
|
|
13045
|
+
if (!ignoreCrossAxisOverflow ||
|
|
13046
|
+
// We leave the current main axis only if every placement on that axis
|
|
13047
|
+
// overflows the main axis.
|
|
13048
|
+
overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
|
|
12963
13049
|
// Try next placement and re-run the lifecycle.
|
|
12964
13050
|
return {
|
|
12965
13051
|
data: {
|
|
@@ -13980,8 +14066,28 @@ class AuroFloatingUI {
|
|
|
13980
14066
|
if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
|
|
13981
14067
|
AuroFloatingUI.isMousePressHandlerInitialized = true;
|
|
13982
14068
|
|
|
14069
|
+
// Track timeout for isMousePressed reset to avoid race conditions
|
|
14070
|
+
if (!AuroFloatingUI._mousePressedTimeout) {
|
|
14071
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14072
|
+
}
|
|
13983
14073
|
const mouseEventGlobalHandler = (event) => {
|
|
13984
|
-
|
|
14074
|
+
const isPressed = event.type === 'mousedown';
|
|
14075
|
+
if (isPressed) {
|
|
14076
|
+
// Clear any pending timeout to prevent race condition
|
|
14077
|
+
if (AuroFloatingUI._mousePressedTimeout !== null) {
|
|
14078
|
+
clearTimeout(AuroFloatingUI._mousePressedTimeout);
|
|
14079
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14080
|
+
}
|
|
14081
|
+
if (!AuroFloatingUI.isMousePressed) {
|
|
14082
|
+
AuroFloatingUI.isMousePressed = true;
|
|
14083
|
+
}
|
|
14084
|
+
} else if (AuroFloatingUI.isMousePressed && !isPressed) {
|
|
14085
|
+
// Schedule reset and track timeout ID
|
|
14086
|
+
AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
|
|
14087
|
+
AuroFloatingUI.isMousePressed = false;
|
|
14088
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14089
|
+
}, 0);
|
|
14090
|
+
}
|
|
13985
14091
|
};
|
|
13986
14092
|
|
|
13987
14093
|
window.addEventListener('mousedown', mouseEventGlobalHandler);
|
|
@@ -14108,6 +14214,7 @@ class AuroFloatingUI {
|
|
|
14108
14214
|
|
|
14109
14215
|
// Compute the position of the bib
|
|
14110
14216
|
computePosition(this.element.trigger, this.element.bib, {
|
|
14217
|
+
strategy: this.element.floaterConfig?.strategy || 'fixed',
|
|
14111
14218
|
placement: this.element.floaterConfig?.placement,
|
|
14112
14219
|
middleware: middleware || []
|
|
14113
14220
|
}).then(({ x, y }) => { // eslint-disable-line id-length
|
|
@@ -14242,8 +14349,9 @@ class AuroFloatingUI {
|
|
|
14242
14349
|
if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
|
|
14243
14350
|
return;
|
|
14244
14351
|
}
|
|
14245
|
-
|
|
14246
|
-
if
|
|
14352
|
+
|
|
14353
|
+
// if fullscreen bib is in fullscreen mode, do not close
|
|
14354
|
+
if (this.element.bib.hasAttribute('isfullscreen')) {
|
|
14247
14355
|
return;
|
|
14248
14356
|
}
|
|
14249
14357
|
|
|
@@ -14544,8 +14652,6 @@ class AuroFloatingUI {
|
|
|
14544
14652
|
this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
|
|
14545
14653
|
}
|
|
14546
14654
|
|
|
14547
|
-
document.body.append(this.element.bib);
|
|
14548
|
-
|
|
14549
14655
|
this.regenerateBibId();
|
|
14550
14656
|
this.handleTriggerTabIndex();
|
|
14551
14657
|
|
|
@@ -14612,7 +14718,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
14612
14718
|
*/
|
|
14613
14719
|
generateTag(baseName, version, tagClass) {
|
|
14614
14720
|
const elementName = this.generateElementName(baseName, version);
|
|
14615
|
-
const tag = i$
|
|
14721
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
14616
14722
|
|
|
14617
14723
|
if (!customElements.get(elementName)) {
|
|
14618
14724
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -14632,7 +14738,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
14632
14738
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
14633
14739
|
*/
|
|
14634
14740
|
|
|
14635
|
-
let AuroElement$1$1 = class AuroElement extends i$
|
|
14741
|
+
let AuroElement$1$1 = class AuroElement extends i$1 {
|
|
14636
14742
|
|
|
14637
14743
|
// function to define props used within the scope of this component
|
|
14638
14744
|
static get properties() {
|
|
@@ -14688,7 +14794,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
14688
14794
|
return _fetchMap$1.get(uri);
|
|
14689
14795
|
};
|
|
14690
14796
|
|
|
14691
|
-
var styleCss$
|
|
14797
|
+
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}`;
|
|
14692
14798
|
|
|
14693
14799
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14694
14800
|
// See LICENSE in the project root for license information.
|
|
@@ -14730,8 +14836,8 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
14730
14836
|
}
|
|
14731
14837
|
|
|
14732
14838
|
static get styles() {
|
|
14733
|
-
return i$
|
|
14734
|
-
${styleCss$
|
|
14839
|
+
return i$3`
|
|
14840
|
+
${styleCss$2$1}
|
|
14735
14841
|
`;
|
|
14736
14842
|
}
|
|
14737
14843
|
|
|
@@ -14772,9 +14878,79 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
14772
14878
|
}
|
|
14773
14879
|
};
|
|
14774
14880
|
|
|
14775
|
-
var tokensCss$2$1 = i$
|
|
14881
|
+
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)}`;
|
|
14882
|
+
|
|
14883
|
+
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)}`;
|
|
14776
14884
|
|
|
14777
|
-
|
|
14885
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14886
|
+
// See LICENSE in the project root for license information.
|
|
14887
|
+
|
|
14888
|
+
// ---------------------------------------------------------------------
|
|
14889
|
+
|
|
14890
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
14891
|
+
|
|
14892
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
14893
|
+
|
|
14894
|
+
/* eslint-disable jsdoc/require-param */
|
|
14895
|
+
|
|
14896
|
+
/**
|
|
14897
|
+
* This will register a new custom element with the browser.
|
|
14898
|
+
* @param {String} name - The name of the custom element.
|
|
14899
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
14900
|
+
* @returns {void}
|
|
14901
|
+
*/
|
|
14902
|
+
registerComponent(name, componentClass) {
|
|
14903
|
+
if (!customElements.get(name)) {
|
|
14904
|
+
customElements.define(name, class extends componentClass {});
|
|
14905
|
+
}
|
|
14906
|
+
}
|
|
14907
|
+
|
|
14908
|
+
/**
|
|
14909
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
14910
|
+
* @returns {void}
|
|
14911
|
+
*/
|
|
14912
|
+
closestElement(
|
|
14913
|
+
selector, // selector like in .closest()
|
|
14914
|
+
base = this, // extra functionality to skip a parent
|
|
14915
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
14916
|
+
!el || el === document || el === window
|
|
14917
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
14918
|
+
: found
|
|
14919
|
+
? found // found a selector INside this element
|
|
14920
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
14921
|
+
) {
|
|
14922
|
+
return __Closest(base);
|
|
14923
|
+
}
|
|
14924
|
+
/* eslint-enable jsdoc/require-param */
|
|
14925
|
+
|
|
14926
|
+
/**
|
|
14927
|
+
* 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.
|
|
14928
|
+
* @param {Object} elem - The element to check.
|
|
14929
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
14930
|
+
* @returns {void}
|
|
14931
|
+
*/
|
|
14932
|
+
handleComponentTagRename(elem, tagName) {
|
|
14933
|
+
const tag = tagName.toLowerCase();
|
|
14934
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
14935
|
+
|
|
14936
|
+
if (elemTag !== tag) {
|
|
14937
|
+
elem.setAttribute(tag, true);
|
|
14938
|
+
}
|
|
14939
|
+
}
|
|
14940
|
+
|
|
14941
|
+
/**
|
|
14942
|
+
* Validates if an element is a specific Auro component.
|
|
14943
|
+
* @param {Object} elem - The element to validate.
|
|
14944
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
14945
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
14946
|
+
*/
|
|
14947
|
+
elementMatch(elem, tagName) {
|
|
14948
|
+
const tag = tagName.toLowerCase();
|
|
14949
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
14950
|
+
|
|
14951
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
14952
|
+
}
|
|
14953
|
+
};
|
|
14778
14954
|
|
|
14779
14955
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14780
14956
|
// See LICENSE in the project root for license information.
|
|
@@ -14862,9 +15038,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14862
15038
|
static get styles() {
|
|
14863
15039
|
return [
|
|
14864
15040
|
super.styles,
|
|
14865
|
-
i$
|
|
14866
|
-
i$
|
|
14867
|
-
i$
|
|
15041
|
+
i$3`${tokensCss$2$1}`,
|
|
15042
|
+
i$3`${styleCss$2$1}`,
|
|
15043
|
+
i$3`${colorCss$3$1}`
|
|
14868
15044
|
];
|
|
14869
15045
|
}
|
|
14870
15046
|
|
|
@@ -14945,17 +15121,16 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14945
15121
|
|
|
14946
15122
|
var iconVersion$1 = '6.1.2';
|
|
14947
15123
|
|
|
14948
|
-
var styleCss$
|
|
15124
|
+
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}`;
|
|
14949
15125
|
|
|
14950
|
-
var colorCss$2$1 = i$
|
|
15126
|
+
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)}`;
|
|
14951
15127
|
|
|
14952
|
-
var tokensCss$1$1 = i$
|
|
15128
|
+
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)}`;
|
|
14953
15129
|
|
|
14954
15130
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14955
15131
|
// See LICENSE in the project root for license information.
|
|
14956
15132
|
|
|
14957
15133
|
|
|
14958
|
-
|
|
14959
15134
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
14960
15135
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
14961
15136
|
'xl',
|
|
@@ -14970,7 +15145,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
14970
15145
|
* @csspart bibContainer - Apply css to the bib container.
|
|
14971
15146
|
*/
|
|
14972
15147
|
|
|
14973
|
-
class AuroDropdownBib extends i$
|
|
15148
|
+
class AuroDropdownBib extends i$1 {
|
|
14974
15149
|
|
|
14975
15150
|
constructor() {
|
|
14976
15151
|
super();
|
|
@@ -14980,12 +15155,12 @@ class AuroDropdownBib extends i$2 {
|
|
|
14980
15155
|
*/
|
|
14981
15156
|
this._mobileBreakpointValue = undefined;
|
|
14982
15157
|
|
|
14983
|
-
AuroLibraryRuntimeUtils$
|
|
15158
|
+
AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
14984
15159
|
}
|
|
14985
15160
|
|
|
14986
15161
|
static get styles() {
|
|
14987
15162
|
return [
|
|
14988
|
-
styleCss$
|
|
15163
|
+
styleCss$1$1,
|
|
14989
15164
|
colorCss$2$1,
|
|
14990
15165
|
tokensCss$1$1
|
|
14991
15166
|
];
|
|
@@ -15025,6 +15200,13 @@ class AuroDropdownBib extends i$2 {
|
|
|
15025
15200
|
type: Boolean,
|
|
15026
15201
|
reflect: true
|
|
15027
15202
|
},
|
|
15203
|
+
|
|
15204
|
+
/**
|
|
15205
|
+
* A reference to the associated bib template element.
|
|
15206
|
+
*/
|
|
15207
|
+
bibTemplate: {
|
|
15208
|
+
type: Object
|
|
15209
|
+
}
|
|
15028
15210
|
};
|
|
15029
15211
|
}
|
|
15030
15212
|
|
|
@@ -15057,12 +15239,53 @@ class AuroDropdownBib extends i$2 {
|
|
|
15057
15239
|
}
|
|
15058
15240
|
}
|
|
15059
15241
|
});
|
|
15242
|
+
|
|
15243
|
+
if (this.bibTemplate) {
|
|
15244
|
+
// If the bib template is found, set the fullscreen attribute
|
|
15245
|
+
if (this.isFullscreen) {
|
|
15246
|
+
this.bibTemplate.setAttribute('isFullscreen', 'true');
|
|
15247
|
+
} else {
|
|
15248
|
+
this.bibTemplate.removeAttribute('isFullscreen');
|
|
15249
|
+
}
|
|
15250
|
+
}
|
|
15060
15251
|
}
|
|
15061
15252
|
}
|
|
15062
15253
|
|
|
15254
|
+
connectedCallback() {
|
|
15255
|
+
super.connectedCallback();
|
|
15256
|
+
|
|
15257
|
+
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
15258
|
+
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
15259
|
+
const bibTemplate = event.detail.element;
|
|
15260
|
+
this.bibTemplate = bibTemplate;
|
|
15261
|
+
|
|
15262
|
+
if (bibTemplate) {
|
|
15263
|
+
// If the bib template is found, set the fullscreen attribute
|
|
15264
|
+
if (this.isFullscreen) {
|
|
15265
|
+
bibTemplate.setAttribute('isFullscreen', 'true');
|
|
15266
|
+
} else {
|
|
15267
|
+
bibTemplate.removeAttribute('isFullscreen');
|
|
15268
|
+
}
|
|
15269
|
+
}
|
|
15270
|
+
});
|
|
15271
|
+
}
|
|
15272
|
+
|
|
15273
|
+
firstUpdated(changedProperties) {
|
|
15274
|
+
super.firstUpdated(changedProperties);
|
|
15275
|
+
|
|
15276
|
+
// Dispatch a custom event when the component is connected
|
|
15277
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
15278
|
+
bubbles: true,
|
|
15279
|
+
composed: true,
|
|
15280
|
+
detail: {
|
|
15281
|
+
element: this
|
|
15282
|
+
}
|
|
15283
|
+
}));
|
|
15284
|
+
}
|
|
15285
|
+
|
|
15063
15286
|
// function that renders the HTML and CSS into the scope of the component
|
|
15064
15287
|
render() {
|
|
15065
|
-
return u$
|
|
15288
|
+
return u$3`
|
|
15066
15289
|
<div class="container" part="bibContainer">
|
|
15067
15290
|
<slot></slot>
|
|
15068
15291
|
</div>
|
|
@@ -15072,21 +15295,23 @@ class AuroDropdownBib extends i$2 {
|
|
|
15072
15295
|
|
|
15073
15296
|
var dropdownVersion$1 = '3.0.0';
|
|
15074
15297
|
|
|
15075
|
-
var shapeSizeCss$1 = i$
|
|
15298
|
+
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}`;
|
|
15076
15299
|
|
|
15077
|
-
var
|
|
15300
|
+
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)}`;
|
|
15078
15301
|
|
|
15079
|
-
var
|
|
15302
|
+
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))}`;
|
|
15080
15303
|
|
|
15081
|
-
var
|
|
15304
|
+
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)}`;
|
|
15082
15305
|
|
|
15083
|
-
var
|
|
15306
|
+
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)}`;
|
|
15084
15307
|
|
|
15085
|
-
var
|
|
15308
|
+
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)}`;
|
|
15086
15309
|
|
|
15087
|
-
var
|
|
15310
|
+
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)}`;
|
|
15088
15311
|
|
|
15089
|
-
var
|
|
15312
|
+
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}`;
|
|
15313
|
+
|
|
15314
|
+
var tokensCss$5 = i$3`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
15090
15315
|
|
|
15091
15316
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
15092
15317
|
// See LICENSE in the project root for license information.
|
|
@@ -15095,7 +15320,7 @@ var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
15095
15320
|
|
|
15096
15321
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
15097
15322
|
|
|
15098
|
-
let AuroLibraryRuntimeUtils$
|
|
15323
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
15099
15324
|
|
|
15100
15325
|
/* eslint-disable jsdoc/require-param */
|
|
15101
15326
|
|
|
@@ -15167,7 +15392,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
15167
15392
|
*
|
|
15168
15393
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
15169
15394
|
*/
|
|
15170
|
-
let AuroHelpText$1 = class AuroHelpText extends i$
|
|
15395
|
+
let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
15171
15396
|
|
|
15172
15397
|
constructor() {
|
|
15173
15398
|
super();
|
|
@@ -15176,7 +15401,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15176
15401
|
this.onDark = false;
|
|
15177
15402
|
this.hasTextContent = false;
|
|
15178
15403
|
|
|
15179
|
-
AuroLibraryRuntimeUtils$
|
|
15404
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
15180
15405
|
}
|
|
15181
15406
|
|
|
15182
15407
|
static get styles() {
|
|
@@ -15232,7 +15457,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15232
15457
|
*
|
|
15233
15458
|
*/
|
|
15234
15459
|
static register(name = "auro-helptext") {
|
|
15235
|
-
AuroLibraryRuntimeUtils$
|
|
15460
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
15236
15461
|
}
|
|
15237
15462
|
|
|
15238
15463
|
updated() {
|
|
@@ -15290,7 +15515,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15290
15515
|
|
|
15291
15516
|
var helpTextVersion$1 = '1.0.0';
|
|
15292
15517
|
|
|
15293
|
-
let AuroElement$
|
|
15518
|
+
let AuroElement$3 = class AuroElement extends i$1 {
|
|
15294
15519
|
static get properties() {
|
|
15295
15520
|
return {
|
|
15296
15521
|
|
|
@@ -15399,7 +15624,7 @@ let AuroElement$2 = class AuroElement extends i$2 {
|
|
|
15399
15624
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
15400
15625
|
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
15401
15626
|
*/
|
|
15402
|
-
class AuroDropdown extends AuroElement$
|
|
15627
|
+
class AuroDropdown extends AuroElement$3 {
|
|
15403
15628
|
constructor() {
|
|
15404
15629
|
super();
|
|
15405
15630
|
|
|
@@ -15408,12 +15633,13 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15408
15633
|
this.matchWidth = false;
|
|
15409
15634
|
this.noHideOnThisFocusLoss = false;
|
|
15410
15635
|
|
|
15411
|
-
this.errorMessage = ''; // TODO
|
|
15636
|
+
this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
|
|
15412
15637
|
|
|
15413
15638
|
// Layout Config
|
|
15414
|
-
this.layout = '
|
|
15639
|
+
this.layout = 'classic';
|
|
15415
15640
|
this.shape = 'rounded';
|
|
15416
15641
|
this.size = 'xl';
|
|
15642
|
+
this.parentBorder = false;
|
|
15417
15643
|
|
|
15418
15644
|
this.privateDefaults();
|
|
15419
15645
|
}
|
|
@@ -15429,7 +15655,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15429
15655
|
'trigger': true,
|
|
15430
15656
|
'wrapper': true,
|
|
15431
15657
|
'hasFocus': this.hasFocus,
|
|
15432
|
-
'simple': this.simple
|
|
15658
|
+
'simple': this.simple,
|
|
15659
|
+
'parentBorder': this.parentBorder
|
|
15433
15660
|
};
|
|
15434
15661
|
}
|
|
15435
15662
|
|
|
@@ -15464,7 +15691,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15464
15691
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
15465
15692
|
*/
|
|
15466
15693
|
this.constructor.shadowRootOptions = {
|
|
15467
|
-
...i$
|
|
15694
|
+
...i$1.shadowRootOptions,
|
|
15468
15695
|
delegatesFocus: true,
|
|
15469
15696
|
};
|
|
15470
15697
|
|
|
@@ -15481,7 +15708,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15481
15708
|
/**
|
|
15482
15709
|
* @private
|
|
15483
15710
|
*/
|
|
15484
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
15711
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
15485
15712
|
|
|
15486
15713
|
/**
|
|
15487
15714
|
* @private
|
|
@@ -15696,6 +15923,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15696
15923
|
reflect: true
|
|
15697
15924
|
},
|
|
15698
15925
|
|
|
15926
|
+
/**
|
|
15927
|
+
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
15928
|
+
* @private
|
|
15929
|
+
*/
|
|
15930
|
+
parentBorder: {
|
|
15931
|
+
type: Boolean,
|
|
15932
|
+
reflect: true
|
|
15933
|
+
},
|
|
15934
|
+
|
|
15699
15935
|
/**
|
|
15700
15936
|
* If declared, the popover and trigger will be set to the same width.
|
|
15701
15937
|
*/
|
|
@@ -15798,10 +16034,18 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15798
16034
|
static get styles() {
|
|
15799
16035
|
return [
|
|
15800
16036
|
colorCss$1$1,
|
|
15801
|
-
styleCss$1$1,
|
|
15802
16037
|
tokensCss$1$1,
|
|
16038
|
+
|
|
16039
|
+
// default layout
|
|
16040
|
+
classicColorCss$1,
|
|
16041
|
+
classicLayoutCss,
|
|
16042
|
+
|
|
16043
|
+
// emphasized layout
|
|
15803
16044
|
styleEmphasizedCss,
|
|
16045
|
+
|
|
16046
|
+
// snowflake layout
|
|
15804
16047
|
styleSnowflakeCss,
|
|
16048
|
+
|
|
15805
16049
|
shapeSizeCss$1
|
|
15806
16050
|
];
|
|
15807
16051
|
}
|
|
@@ -15815,7 +16059,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15815
16059
|
*
|
|
15816
16060
|
*/
|
|
15817
16061
|
static register(name = "auro-dropdown") {
|
|
15818
|
-
AuroLibraryRuntimeUtils$
|
|
16062
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
|
|
15819
16063
|
}
|
|
15820
16064
|
|
|
15821
16065
|
/**
|
|
@@ -16148,11 +16392,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16148
16392
|
*
|
|
16149
16393
|
* @private
|
|
16150
16394
|
* @method handleDefaultSlot
|
|
16151
|
-
* @param {Event} event - The event object representing the slot change.
|
|
16152
16395
|
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
16153
16396
|
*/
|
|
16154
|
-
handleDefaultSlot(
|
|
16155
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
16397
|
+
handleDefaultSlot() {
|
|
16156
16398
|
|
|
16157
16399
|
if (this.onSlotChange) {
|
|
16158
16400
|
this.onSlotChange();
|
|
@@ -16189,13 +16431,12 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16189
16431
|
* @returns {html} - Returns HTML.
|
|
16190
16432
|
*/
|
|
16191
16433
|
renderBasicHtml(helpTextClasses) {
|
|
16192
|
-
return u$
|
|
16434
|
+
return u$3`
|
|
16193
16435
|
<div>
|
|
16194
16436
|
<div
|
|
16195
16437
|
id="trigger"
|
|
16196
16438
|
class="${e(this.commonWrapperClasses)}" part="wrapper"
|
|
16197
16439
|
tabindex="${this.tabIndex}"
|
|
16198
|
-
?showBorder="${this.showTriggerBorders}"
|
|
16199
16440
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
16200
16441
|
aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
16201
16442
|
aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -16212,9 +16453,10 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16212
16453
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16213
16454
|
</div>
|
|
16214
16455
|
</div>
|
|
16215
|
-
${this.chevron || this.common ? u$
|
|
16456
|
+
${this.chevron || this.common ? u$3`
|
|
16216
16457
|
<div
|
|
16217
16458
|
id="showStateIcon"
|
|
16459
|
+
class="chevron"
|
|
16218
16460
|
part="chevron">
|
|
16219
16461
|
<${this.iconTag}
|
|
16220
16462
|
category="interface"
|
|
@@ -16229,9 +16471,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16229
16471
|
<div class="${e(helpTextClasses)}">
|
|
16230
16472
|
<slot name="helpText"></slot>
|
|
16231
16473
|
</div>
|
|
16232
|
-
<div class="slotContent">
|
|
16233
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16234
|
-
</div>
|
|
16235
16474
|
<div id="bibSizer" part="size"></div>
|
|
16236
16475
|
<${this.dropdownBibTag}
|
|
16237
16476
|
id="bib"
|
|
@@ -16240,6 +16479,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16240
16479
|
?common="${this.common}"
|
|
16241
16480
|
?rounded="${this.common || this.rounded}"
|
|
16242
16481
|
?inset="${this.common || this.inset}">
|
|
16482
|
+
<div class="slotContent">
|
|
16483
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16484
|
+
</div>
|
|
16243
16485
|
</${this.dropdownBibTag}>
|
|
16244
16486
|
</div>
|
|
16245
16487
|
`;
|
|
@@ -16251,7 +16493,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16251
16493
|
* @returns {html} - Returns HTML for the classic layout.
|
|
16252
16494
|
*/
|
|
16253
16495
|
renderLayoutClassic() {
|
|
16254
|
-
|
|
16496
|
+
|
|
16497
|
+
return u$3`
|
|
16255
16498
|
<div>
|
|
16256
16499
|
<div
|
|
16257
16500
|
id="trigger"
|
|
@@ -16274,7 +16517,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16274
16517
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16275
16518
|
</div>
|
|
16276
16519
|
</div>
|
|
16277
|
-
${this.chevron || this.common ? u$
|
|
16520
|
+
${this.chevron || this.common ? u$3`
|
|
16278
16521
|
<div
|
|
16279
16522
|
id="showStateIcon"
|
|
16280
16523
|
part="chevron">
|
|
@@ -16288,9 +16531,10 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16288
16531
|
</div>
|
|
16289
16532
|
` : undefined }
|
|
16290
16533
|
</div>
|
|
16291
|
-
|
|
16292
|
-
<slot
|
|
16293
|
-
|
|
16534
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
16535
|
+
<slot name="helpText"></slot>
|
|
16536
|
+
</${this.helpTextTag}>
|
|
16537
|
+
|
|
16294
16538
|
<div id="bibSizer" part="size"></div>
|
|
16295
16539
|
<${this.dropdownBibTag}
|
|
16296
16540
|
id="bib"
|
|
@@ -16300,6 +16544,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16300
16544
|
?rounded="${this.common || this.rounded}"
|
|
16301
16545
|
?inset="${this.common || this.inset}"
|
|
16302
16546
|
>
|
|
16547
|
+
<div class="slotContent">
|
|
16548
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16549
|
+
</div>
|
|
16303
16550
|
</${this.dropdownBibTag}>
|
|
16304
16551
|
</div>
|
|
16305
16552
|
`;
|
|
@@ -16317,7 +16564,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16317
16564
|
'rightIndent': true
|
|
16318
16565
|
};
|
|
16319
16566
|
|
|
16320
|
-
return u$
|
|
16567
|
+
return u$3`
|
|
16321
16568
|
${this.renderBasicHtml(helpTextClasses)}
|
|
16322
16569
|
`;
|
|
16323
16570
|
}
|
|
@@ -16334,7 +16581,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16334
16581
|
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
16335
16582
|
};
|
|
16336
16583
|
|
|
16337
|
-
return u$
|
|
16584
|
+
return u$3`
|
|
16338
16585
|
${this.renderBasicHtml(helpTextClasses)}
|
|
16339
16586
|
`;
|
|
16340
16587
|
}
|
|
@@ -16382,25 +16629,25 @@ var dropdownVersion = '3.0.0';
|
|
|
16382
16629
|
*/
|
|
16383
16630
|
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}});
|
|
16384
16631
|
|
|
16385
|
-
var shapeSizeCss = i$
|
|
16632
|
+
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}`;
|
|
16386
16633
|
|
|
16387
|
-
var styleCss$4 = i$
|
|
16634
|
+
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}`;
|
|
16388
16635
|
|
|
16389
|
-
var styleDefaultCss = i$
|
|
16636
|
+
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}`;
|
|
16390
16637
|
|
|
16391
|
-
var colorBaseCss = i$
|
|
16638
|
+
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)}`;
|
|
16392
16639
|
|
|
16393
|
-
var tokensCss$4 = i$
|
|
16640
|
+
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}`;
|
|
16394
16641
|
|
|
16395
|
-
var classicStyleCss = i$
|
|
16642
|
+
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}`;
|
|
16396
16643
|
|
|
16397
|
-
var classicColorCss = i$
|
|
16644
|
+
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)}`;
|
|
16398
16645
|
|
|
16399
|
-
var emphasizedStyleCss = i$
|
|
16646
|
+
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}`;
|
|
16400
16647
|
|
|
16401
|
-
var emphasizedColorCss = i$
|
|
16648
|
+
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)}`;
|
|
16402
16649
|
|
|
16403
|
-
var snowflakeStyleCss = i$
|
|
16650
|
+
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}`;
|
|
16404
16651
|
|
|
16405
16652
|
const watchedItems = new Set();
|
|
16406
16653
|
|
|
@@ -20421,9 +20668,10 @@ class DateFormatter {
|
|
|
20421
20668
|
/**
|
|
20422
20669
|
* Convert a date object to string format.
|
|
20423
20670
|
* @param {Object} date - Date to convert to string.
|
|
20424
|
-
* @
|
|
20671
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
20672
|
+
* @returns {String} Returns the date as a string.
|
|
20425
20673
|
*/
|
|
20426
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
20674
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
20427
20675
|
year: "numeric",
|
|
20428
20676
|
month: "2-digit",
|
|
20429
20677
|
day: "2-digit",
|
|
@@ -20615,7 +20863,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
|
|
|
20615
20863
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
20616
20864
|
|
|
20617
20865
|
// Get the date string of the date object we created from the string date
|
|
20618
|
-
const actualDateStr = dateFormatter.getDateAsString(dateObj);
|
|
20866
|
+
const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
|
|
20619
20867
|
|
|
20620
20868
|
// Guard Clause: Generated date matches date string input
|
|
20621
20869
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -20780,7 +21028,7 @@ const {
|
|
|
20780
21028
|
|
|
20781
21029
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
20782
21030
|
|
|
20783
|
-
let AuroLibraryRuntimeUtils$
|
|
21031
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
20784
21032
|
|
|
20785
21033
|
/* eslint-disable jsdoc/require-param */
|
|
20786
21034
|
|
|
@@ -20850,7 +21098,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
20850
21098
|
class AuroFormValidation {
|
|
20851
21099
|
|
|
20852
21100
|
constructor() {
|
|
20853
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
21101
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
20854
21102
|
}
|
|
20855
21103
|
|
|
20856
21104
|
/**
|
|
@@ -21209,7 +21457,7 @@ class AuroFormValidation {
|
|
|
21209
21457
|
}
|
|
21210
21458
|
}
|
|
21211
21459
|
|
|
21212
|
-
let AuroElement$1 = class AuroElement extends i$
|
|
21460
|
+
let AuroElement$1 = class AuroElement extends i$1 {
|
|
21213
21461
|
static get properties() {
|
|
21214
21462
|
return {
|
|
21215
21463
|
|
|
@@ -21341,7 +21589,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
21341
21589
|
this.setCustomValidityForType = undefined;
|
|
21342
21590
|
|
|
21343
21591
|
this.layout = 'classic';
|
|
21344
|
-
this.shape = '
|
|
21592
|
+
this.shape = 'classic';
|
|
21345
21593
|
this.size = 'lg';
|
|
21346
21594
|
}
|
|
21347
21595
|
|
|
@@ -21730,8 +21978,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
21730
21978
|
},
|
|
21731
21979
|
|
|
21732
21980
|
/**
|
|
21981
|
+
* The id for input node.
|
|
21733
21982
|
* @private
|
|
21734
|
-
* id for input node
|
|
21735
21983
|
*/
|
|
21736
21984
|
inputId: {
|
|
21737
21985
|
type: String,
|
|
@@ -22391,7 +22639,7 @@ class AuroDependencyVersioning {
|
|
|
22391
22639
|
*/
|
|
22392
22640
|
generateTag(baseName, version, tagClass) {
|
|
22393
22641
|
const elementName = this.generateElementName(baseName, version);
|
|
22394
|
-
const tag = i$
|
|
22642
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
22395
22643
|
|
|
22396
22644
|
if (!customElements.get(elementName)) {
|
|
22397
22645
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -22411,7 +22659,7 @@ class AuroDependencyVersioning {
|
|
|
22411
22659
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
22412
22660
|
*/
|
|
22413
22661
|
|
|
22414
|
-
class AuroElement extends i$
|
|
22662
|
+
let AuroElement$2 = class AuroElement extends i$1 {
|
|
22415
22663
|
|
|
22416
22664
|
// function to define props used within the scope of this component
|
|
22417
22665
|
static get properties() {
|
|
@@ -22435,7 +22683,7 @@ class AuroElement extends i$2 {
|
|
|
22435
22683
|
|
|
22436
22684
|
return 'false'
|
|
22437
22685
|
}
|
|
22438
|
-
}
|
|
22686
|
+
};
|
|
22439
22687
|
|
|
22440
22688
|
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>"};
|
|
22441
22689
|
|
|
@@ -22467,7 +22715,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
22467
22715
|
return _fetchMap.get(uri);
|
|
22468
22716
|
};
|
|
22469
22717
|
|
|
22470
|
-
var styleCss$3 = i$
|
|
22718
|
+
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}`;
|
|
22471
22719
|
|
|
22472
22720
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22473
22721
|
// See LICENSE in the project root for license information.
|
|
@@ -22479,7 +22727,7 @@ var styleCss$3 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
22479
22727
|
*/
|
|
22480
22728
|
|
|
22481
22729
|
// build the component class
|
|
22482
|
-
class BaseIcon extends AuroElement {
|
|
22730
|
+
class BaseIcon extends AuroElement$2 {
|
|
22483
22731
|
constructor() {
|
|
22484
22732
|
super();
|
|
22485
22733
|
this.onDark = false;
|
|
@@ -22509,7 +22757,7 @@ class BaseIcon extends AuroElement {
|
|
|
22509
22757
|
}
|
|
22510
22758
|
|
|
22511
22759
|
static get styles() {
|
|
22512
|
-
return i$
|
|
22760
|
+
return i$3`
|
|
22513
22761
|
${styleCss$3}
|
|
22514
22762
|
`;
|
|
22515
22763
|
}
|
|
@@ -22551,9 +22799,79 @@ class BaseIcon extends AuroElement {
|
|
|
22551
22799
|
}
|
|
22552
22800
|
}
|
|
22553
22801
|
|
|
22554
|
-
var tokensCss$3 = i$
|
|
22802
|
+
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)}`;
|
|
22555
22803
|
|
|
22556
|
-
var colorCss$3 = i$
|
|
22804
|
+
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)}`;
|
|
22805
|
+
|
|
22806
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
22807
|
+
// See LICENSE in the project root for license information.
|
|
22808
|
+
|
|
22809
|
+
// ---------------------------------------------------------------------
|
|
22810
|
+
|
|
22811
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
22812
|
+
|
|
22813
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
22814
|
+
|
|
22815
|
+
/* eslint-disable jsdoc/require-param */
|
|
22816
|
+
|
|
22817
|
+
/**
|
|
22818
|
+
* This will register a new custom element with the browser.
|
|
22819
|
+
* @param {String} name - The name of the custom element.
|
|
22820
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
22821
|
+
* @returns {void}
|
|
22822
|
+
*/
|
|
22823
|
+
registerComponent(name, componentClass) {
|
|
22824
|
+
if (!customElements.get(name)) {
|
|
22825
|
+
customElements.define(name, class extends componentClass {});
|
|
22826
|
+
}
|
|
22827
|
+
}
|
|
22828
|
+
|
|
22829
|
+
/**
|
|
22830
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
22831
|
+
* @returns {void}
|
|
22832
|
+
*/
|
|
22833
|
+
closestElement(
|
|
22834
|
+
selector, // selector like in .closest()
|
|
22835
|
+
base = this, // extra functionality to skip a parent
|
|
22836
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
22837
|
+
!el || el === document || el === window
|
|
22838
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
22839
|
+
: found
|
|
22840
|
+
? found // found a selector INside this element
|
|
22841
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
22842
|
+
) {
|
|
22843
|
+
return __Closest(base);
|
|
22844
|
+
}
|
|
22845
|
+
/* eslint-enable jsdoc/require-param */
|
|
22846
|
+
|
|
22847
|
+
/**
|
|
22848
|
+
* 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.
|
|
22849
|
+
* @param {Object} elem - The element to check.
|
|
22850
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
22851
|
+
* @returns {void}
|
|
22852
|
+
*/
|
|
22853
|
+
handleComponentTagRename(elem, tagName) {
|
|
22854
|
+
const tag = tagName.toLowerCase();
|
|
22855
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
22856
|
+
|
|
22857
|
+
if (elemTag !== tag) {
|
|
22858
|
+
elem.setAttribute(tag, true);
|
|
22859
|
+
}
|
|
22860
|
+
}
|
|
22861
|
+
|
|
22862
|
+
/**
|
|
22863
|
+
* Validates if an element is a specific Auro component.
|
|
22864
|
+
* @param {Object} elem - The element to validate.
|
|
22865
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
22866
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
22867
|
+
*/
|
|
22868
|
+
elementMatch(elem, tagName) {
|
|
22869
|
+
const tag = tagName.toLowerCase();
|
|
22870
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
22871
|
+
|
|
22872
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
22873
|
+
}
|
|
22874
|
+
};
|
|
22557
22875
|
|
|
22558
22876
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22559
22877
|
// See LICENSE in the project root for license information.
|
|
@@ -22641,9 +22959,9 @@ class AuroIcon extends BaseIcon {
|
|
|
22641
22959
|
static get styles() {
|
|
22642
22960
|
return [
|
|
22643
22961
|
super.styles,
|
|
22644
|
-
i$
|
|
22645
|
-
i$
|
|
22646
|
-
i$
|
|
22962
|
+
i$3`${tokensCss$3}`,
|
|
22963
|
+
i$3`${styleCss$3}`,
|
|
22964
|
+
i$3`${colorCss$3}`
|
|
22647
22965
|
];
|
|
22648
22966
|
}
|
|
22649
22967
|
|
|
@@ -22724,23 +23042,23 @@ class AuroIcon extends BaseIcon {
|
|
|
22724
23042
|
|
|
22725
23043
|
var iconVersion = '8.0.1';
|
|
22726
23044
|
|
|
22727
|
-
var styleCss$2 = i$
|
|
23045
|
+
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}`;
|
|
22728
23046
|
|
|
22729
|
-
var colorCss$2 = i$
|
|
23047
|
+
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}`;
|
|
22730
23048
|
|
|
22731
|
-
var tokensCss$2 = i$
|
|
23049
|
+
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}`;
|
|
22732
23050
|
|
|
22733
|
-
var styleCss$1 = i$
|
|
23051
|
+
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}}`;
|
|
22734
23052
|
|
|
22735
|
-
var colorCss$1 = i$
|
|
23053
|
+
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}`;
|
|
22736
23054
|
|
|
22737
|
-
var tokensCss$1 = i$
|
|
23055
|
+
var tokensCss$1 = i$3`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
22738
23056
|
|
|
22739
23057
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22740
23058
|
// See LICENSE in the project root for license information.
|
|
22741
23059
|
|
|
22742
23060
|
|
|
22743
|
-
class AuroLoader extends i$
|
|
23061
|
+
class AuroLoader extends i$1 {
|
|
22744
23062
|
constructor() {
|
|
22745
23063
|
super();
|
|
22746
23064
|
|
|
@@ -22762,7 +23080,7 @@ class AuroLoader extends i$2 {
|
|
|
22762
23080
|
/**
|
|
22763
23081
|
* @private
|
|
22764
23082
|
*/
|
|
22765
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
23083
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
22766
23084
|
|
|
22767
23085
|
this.orbit = false;
|
|
22768
23086
|
this.ringworm = false;
|
|
@@ -22810,9 +23128,9 @@ class AuroLoader extends i$2 {
|
|
|
22810
23128
|
|
|
22811
23129
|
static get styles() {
|
|
22812
23130
|
return [
|
|
22813
|
-
i$
|
|
22814
|
-
i$
|
|
22815
|
-
i$
|
|
23131
|
+
i$3`${styleCss$1}`,
|
|
23132
|
+
i$3`${colorCss$1}`,
|
|
23133
|
+
i$3`${tokensCss$1}`
|
|
22816
23134
|
];
|
|
22817
23135
|
}
|
|
22818
23136
|
|
|
@@ -22825,7 +23143,7 @@ class AuroLoader extends i$2 {
|
|
|
22825
23143
|
*
|
|
22826
23144
|
*/
|
|
22827
23145
|
static register(name = "auro-loader") {
|
|
22828
|
-
AuroLibraryRuntimeUtils$
|
|
23146
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
|
|
22829
23147
|
}
|
|
22830
23148
|
|
|
22831
23149
|
firstUpdated() {
|
|
@@ -22893,7 +23211,7 @@ var loaderVersion = '5.0.0';
|
|
|
22893
23211
|
|
|
22894
23212
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
22895
23213
|
|
|
22896
|
-
class AuroButton extends i$
|
|
23214
|
+
class AuroButton extends i$1 {
|
|
22897
23215
|
|
|
22898
23216
|
/**
|
|
22899
23217
|
* Enables form association for this element.
|
|
@@ -23129,7 +23447,7 @@ class AuroButton extends i$2 {
|
|
|
23129
23447
|
*
|
|
23130
23448
|
*/
|
|
23131
23449
|
static register(name = "auro-button") {
|
|
23132
|
-
AuroLibraryRuntimeUtils$
|
|
23450
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
23133
23451
|
}
|
|
23134
23452
|
|
|
23135
23453
|
/**
|
|
@@ -23184,7 +23502,7 @@ class AuroButton extends i$2 {
|
|
|
23184
23502
|
'loading': this.loading
|
|
23185
23503
|
};
|
|
23186
23504
|
|
|
23187
|
-
return u$
|
|
23505
|
+
return u$3`
|
|
23188
23506
|
<button
|
|
23189
23507
|
part="button"
|
|
23190
23508
|
aria-hidden="${o(this.ariahidden || undefined)}"
|
|
@@ -23203,11 +23521,11 @@ class AuroButton extends i$2 {
|
|
|
23203
23521
|
.value="${o(this.value ? this.value : undefined)}"
|
|
23204
23522
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
23205
23523
|
>
|
|
23206
|
-
${o(this.loading ? u$
|
|
23524
|
+
${o(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
23207
23525
|
|
|
23208
23526
|
<span class="contentWrapper">
|
|
23209
23527
|
<span class="textSlot" part="text">
|
|
23210
|
-
${this.iconOnly ? undefined : u$
|
|
23528
|
+
${this.iconOnly ? undefined : u$3`<slot></slot>`}
|
|
23211
23529
|
</span>
|
|
23212
23530
|
|
|
23213
23531
|
<span part="icon">
|
|
@@ -23221,11 +23539,11 @@ class AuroButton extends i$2 {
|
|
|
23221
23539
|
|
|
23222
23540
|
var buttonVersion = '9.3.0';
|
|
23223
23541
|
|
|
23224
|
-
var colorCss = i$
|
|
23542
|
+
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)}`;
|
|
23225
23543
|
|
|
23226
|
-
var styleCss = i$
|
|
23544
|
+
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}`;
|
|
23227
23545
|
|
|
23228
|
-
var tokensCss = i$
|
|
23546
|
+
var tokensCss = i$3`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
23229
23547
|
|
|
23230
23548
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
23231
23549
|
// See LICENSE in the project root for license information.
|
|
@@ -23306,7 +23624,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
23306
23624
|
*
|
|
23307
23625
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
23308
23626
|
*/
|
|
23309
|
-
class AuroHelpText extends i$
|
|
23627
|
+
class AuroHelpText extends i$1 {
|
|
23310
23628
|
|
|
23311
23629
|
constructor() {
|
|
23312
23630
|
super();
|
|
@@ -23467,16 +23785,16 @@ class AuroInput extends BaseInput {
|
|
|
23467
23785
|
|
|
23468
23786
|
static get styles() {
|
|
23469
23787
|
return [
|
|
23470
|
-
i$
|
|
23471
|
-
i$
|
|
23472
|
-
i$
|
|
23473
|
-
i$
|
|
23474
|
-
i$
|
|
23475
|
-
i$
|
|
23476
|
-
i$
|
|
23477
|
-
i$
|
|
23478
|
-
i$
|
|
23479
|
-
i$
|
|
23788
|
+
i$3`${classicStyleCss}`,
|
|
23789
|
+
i$3`${classicColorCss}`,
|
|
23790
|
+
i$3`${shapeSizeCss}`,
|
|
23791
|
+
i$3`${colorBaseCss}`,
|
|
23792
|
+
i$3`${styleCss$4}`,
|
|
23793
|
+
i$3`${styleDefaultCss}`,
|
|
23794
|
+
i$3`${tokensCss$4}`,
|
|
23795
|
+
i$3`${emphasizedStyleCss}`,
|
|
23796
|
+
i$3`${emphasizedColorCss}`,
|
|
23797
|
+
i$3`${snowflakeStyleCss}`
|
|
23480
23798
|
];
|
|
23481
23799
|
}
|
|
23482
23800
|
|
|
@@ -23495,7 +23813,7 @@ class AuroInput extends BaseInput {
|
|
|
23495
23813
|
/**
|
|
23496
23814
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
23497
23815
|
* @private
|
|
23498
|
-
* @returns {
|
|
23816
|
+
* @returns {object} - Returns classmap.
|
|
23499
23817
|
*/
|
|
23500
23818
|
get commonInputClasses() {
|
|
23501
23819
|
return {
|
|
@@ -23503,6 +23821,23 @@ class AuroInput extends BaseInput {
|
|
|
23503
23821
|
};
|
|
23504
23822
|
}
|
|
23505
23823
|
|
|
23824
|
+
/**
|
|
23825
|
+
* Returns classmap configuration for html5 inputs in each layout.
|
|
23826
|
+
* @private
|
|
23827
|
+
* @returns {object} - Returns classmap.
|
|
23828
|
+
*/
|
|
23829
|
+
get legacyInputClasses() {
|
|
23830
|
+
return {
|
|
23831
|
+
...this.commonInputClasses,
|
|
23832
|
+
'util_displayHiddenVisually': !this.hasFocus && !this.value
|
|
23833
|
+
};
|
|
23834
|
+
}
|
|
23835
|
+
|
|
23836
|
+
/**
|
|
23837
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
23838
|
+
* @private
|
|
23839
|
+
* @returns {object} - Returns classmap.
|
|
23840
|
+
*/
|
|
23506
23841
|
get commonWrapperClasses() {
|
|
23507
23842
|
return {
|
|
23508
23843
|
'wrapper': true,
|
|
@@ -23511,6 +23846,11 @@ class AuroInput extends BaseInput {
|
|
|
23511
23846
|
};
|
|
23512
23847
|
}
|
|
23513
23848
|
|
|
23849
|
+
/**
|
|
23850
|
+
* Returns classmap configuration for helpText elements in each layout.
|
|
23851
|
+
* @private
|
|
23852
|
+
* @returns {object} - Returns classmap.
|
|
23853
|
+
*/
|
|
23514
23854
|
get helpTextClasses() {
|
|
23515
23855
|
return {
|
|
23516
23856
|
'helpTextWrapper': true,
|
|
@@ -23528,7 +23868,7 @@ class AuroInput extends BaseInput {
|
|
|
23528
23868
|
*
|
|
23529
23869
|
*/
|
|
23530
23870
|
static register(name = "auro-input") {
|
|
23531
|
-
AuroLibraryRuntimeUtils$
|
|
23871
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroInput);
|
|
23532
23872
|
}
|
|
23533
23873
|
|
|
23534
23874
|
/**
|
|
@@ -23567,8 +23907,8 @@ class AuroInput extends BaseInput {
|
|
|
23567
23907
|
* @returns {html} - Returns HTML for the validation error icon.
|
|
23568
23908
|
*/
|
|
23569
23909
|
renderValidationErrorIconHtml() {
|
|
23570
|
-
return u$
|
|
23571
|
-
${this.validity && this.validity !== 'valid' ? u$
|
|
23910
|
+
return u$3`
|
|
23911
|
+
${this.validity && this.validity !== 'valid' ? u$3`
|
|
23572
23912
|
<div class="notification alertNotification">
|
|
23573
23913
|
<${this.iconTag}
|
|
23574
23914
|
category="alert"
|
|
@@ -23584,10 +23924,10 @@ class AuroInput extends BaseInput {
|
|
|
23584
23924
|
/**
|
|
23585
23925
|
* Returns HTML for the HTML5 input element.
|
|
23586
23926
|
* @private
|
|
23587
|
-
* @param {boolean} [
|
|
23927
|
+
* @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
|
|
23588
23928
|
* @returns {html} - Returns HTML for the HTML5 input element.
|
|
23589
23929
|
*/
|
|
23590
|
-
renderHtmlInput(
|
|
23930
|
+
renderHtmlInput(useLegacyHiddenState = false) {
|
|
23591
23931
|
const displayValueClasses = {
|
|
23592
23932
|
'displayValue': true,
|
|
23593
23933
|
'hasContent': this.hasDisplayValueContent,
|
|
@@ -23595,11 +23935,12 @@ class AuroInput extends BaseInput {
|
|
|
23595
23935
|
'withValue': this.value && this.value.length > 0,
|
|
23596
23936
|
};
|
|
23597
23937
|
|
|
23598
|
-
|
|
23599
|
-
|
|
23600
|
-
|
|
23938
|
+
// Remove this when the classic layout is sunset.
|
|
23939
|
+
const inputOverrideClasses = useLegacyHiddenState
|
|
23940
|
+
? this.legacyInputClasses
|
|
23941
|
+
: this.commonInputClasses;
|
|
23601
23942
|
|
|
23602
|
-
return u$
|
|
23943
|
+
return u$3`
|
|
23603
23944
|
<label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
|
|
23604
23945
|
<slot name="label">
|
|
23605
23946
|
${this.label}
|
|
@@ -23619,7 +23960,7 @@ class AuroInput extends BaseInput {
|
|
|
23619
23960
|
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
23620
23961
|
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
23621
23962
|
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
23622
|
-
class="${e(
|
|
23963
|
+
class="${e(inputOverrideClasses)}"
|
|
23623
23964
|
id="${this.inputId}"
|
|
23624
23965
|
inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
|
|
23625
23966
|
lang="${o(this.lang)}"
|
|
@@ -23644,7 +23985,7 @@ class AuroInput extends BaseInput {
|
|
|
23644
23985
|
* @returns {html} - Returns HTML for the clear action button.
|
|
23645
23986
|
*/
|
|
23646
23987
|
renderHtmlActionClear() {
|
|
23647
|
-
return u$
|
|
23988
|
+
return u$3`
|
|
23648
23989
|
<div class="notification clear">
|
|
23649
23990
|
<${this.buttonTag}
|
|
23650
23991
|
@click="${this.handleClickClear}"
|
|
@@ -23670,7 +24011,7 @@ class AuroInput extends BaseInput {
|
|
|
23670
24011
|
* @returns {html} - Returns HTML for the show password button.
|
|
23671
24012
|
*/
|
|
23672
24013
|
renderHtmlNotificationPassword() {
|
|
23673
|
-
return u$
|
|
24014
|
+
return u$3`
|
|
23674
24015
|
<div class="notification">
|
|
23675
24016
|
<${this.buttonTag}
|
|
23676
24017
|
@click="${this.handleClickShowPassword}
|
|
@@ -23702,14 +24043,14 @@ class AuroInput extends BaseInput {
|
|
|
23702
24043
|
* @returns {html} - Returns HTML for the input type icon.
|
|
23703
24044
|
*/
|
|
23704
24045
|
renderHtmlTypeIcon() {
|
|
23705
|
-
return u$
|
|
24046
|
+
return u$3`
|
|
23706
24047
|
<div class="typeIcon">
|
|
23707
24048
|
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
23708
24049
|
|
|
23709
24050
|
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
23710
24051
|
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
23711
24052
|
${this.inputIconName
|
|
23712
|
-
? c([this.inputIconName], (val) => val, (name) => u$
|
|
24053
|
+
? c([this.inputIconName], (val) => val, (name) => u$3`
|
|
23713
24054
|
<${this.iconTag}
|
|
23714
24055
|
?onDark="${this.onDark}"
|
|
23715
24056
|
category="payment"
|
|
@@ -23721,7 +24062,7 @@ class AuroInput extends BaseInput {
|
|
|
23721
24062
|
`) : undefined
|
|
23722
24063
|
}
|
|
23723
24064
|
${this.type === 'date'
|
|
23724
|
-
? u$
|
|
24065
|
+
? u$3`
|
|
23725
24066
|
<${this.iconTag}
|
|
23726
24067
|
?onDark="${this.onDark}"
|
|
23727
24068
|
category="interface"
|
|
@@ -23742,16 +24083,16 @@ class AuroInput extends BaseInput {
|
|
|
23742
24083
|
* @returns {html} - Returns HTML for the help text and error message.
|
|
23743
24084
|
*/
|
|
23744
24085
|
renderHtmlHelpText() {
|
|
23745
|
-
return u$
|
|
24086
|
+
return u$3`
|
|
23746
24087
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
23747
|
-
? u$
|
|
24088
|
+
? u$3`
|
|
23748
24089
|
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
23749
24090
|
<p id="${this.uniqueId}" part="helpText">
|
|
23750
24091
|
<slot name="helptext">${this.getHelpText()}</slot>
|
|
23751
24092
|
</p>
|
|
23752
24093
|
</${this.helpTextTag}>
|
|
23753
24094
|
`
|
|
23754
|
-
: u$
|
|
24095
|
+
: u$3`
|
|
23755
24096
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
23756
24097
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
23757
24098
|
${this.errorMessage}
|
|
@@ -23763,12 +24104,12 @@ class AuroInput extends BaseInput {
|
|
|
23763
24104
|
}
|
|
23764
24105
|
|
|
23765
24106
|
/**
|
|
23766
|
-
* Returns HTML for the
|
|
24107
|
+
* Returns HTML for the classic layout.
|
|
23767
24108
|
* @private
|
|
23768
|
-
* @returns {import("lit").TemplateResult} - Returns HTML for the
|
|
24109
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
23769
24110
|
*/
|
|
23770
24111
|
renderLayoutClassic() {
|
|
23771
|
-
return u$
|
|
24112
|
+
return u$3`
|
|
23772
24113
|
<div
|
|
23773
24114
|
@click="${this.handleClick}"
|
|
23774
24115
|
class="${e(this.commonWrapperClasses)} thin"
|
|
@@ -23781,8 +24122,8 @@ class AuroInput extends BaseInput {
|
|
|
23781
24122
|
</div>
|
|
23782
24123
|
<div class="accents right">
|
|
23783
24124
|
${this.renderValidationErrorIconHtml()}
|
|
23784
|
-
${this.hasValue ? u$
|
|
23785
|
-
${!this.disabled && !this.readonly ? u$
|
|
24125
|
+
${this.hasValue ? u$3`
|
|
24126
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
23786
24127
|
${this.renderHtmlActionClear()}
|
|
23787
24128
|
` : undefined}
|
|
23788
24129
|
` : undefined}
|
|
@@ -23800,13 +24141,13 @@ class AuroInput extends BaseInput {
|
|
|
23800
24141
|
* @returns {html} - Returns HTML for the emphasized layout.
|
|
23801
24142
|
*/
|
|
23802
24143
|
renderLayoutEmphasized() {
|
|
23803
|
-
return u$
|
|
24144
|
+
return u$3`
|
|
23804
24145
|
<div
|
|
23805
24146
|
@click="${this.handleClick}"
|
|
23806
24147
|
class="${e(this.commonWrapperClasses)}"
|
|
23807
24148
|
part="wrapper">
|
|
23808
24149
|
<div class="accents left">
|
|
23809
|
-
${this.layout.includes('left') ? u$
|
|
24150
|
+
${this.layout.includes('left') ? u$3`
|
|
23810
24151
|
${this.renderValidationErrorIconHtml()}
|
|
23811
24152
|
` : undefined}
|
|
23812
24153
|
</div>
|
|
@@ -23814,11 +24155,11 @@ class AuroInput extends BaseInput {
|
|
|
23814
24155
|
${this.renderHtmlInput()}
|
|
23815
24156
|
</div>
|
|
23816
24157
|
<div class="accents right">
|
|
23817
|
-
${this.layout.includes('right') || this.layout === "emphasized" ? u$
|
|
24158
|
+
${this.layout.includes('right') || this.layout === "emphasized" ? u$3`
|
|
23818
24159
|
${this.renderValidationErrorIconHtml()}
|
|
23819
24160
|
` : undefined}
|
|
23820
|
-
${this.hasValue ? u$
|
|
23821
|
-
${!this.disabled && !this.readonly ? u$
|
|
24161
|
+
${this.hasValue ? u$3`
|
|
24162
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
23822
24163
|
${this.renderHtmlActionClear()}
|
|
23823
24164
|
` : undefined}
|
|
23824
24165
|
` : undefined}
|
|
@@ -23836,7 +24177,7 @@ class AuroInput extends BaseInput {
|
|
|
23836
24177
|
* @returns {html} - Returns HTML for the emphasized layout.
|
|
23837
24178
|
*/
|
|
23838
24179
|
renderLayoutSnowflake() {
|
|
23839
|
-
return u$
|
|
24180
|
+
return u$3`
|
|
23840
24181
|
<div
|
|
23841
24182
|
@click="${this.handleClick}"
|
|
23842
24183
|
class="${e(this.commonWrapperClasses)}"
|
|
@@ -23849,8 +24190,8 @@ class AuroInput extends BaseInput {
|
|
|
23849
24190
|
</div>
|
|
23850
24191
|
<div class="accents right">
|
|
23851
24192
|
${this.renderValidationErrorIconHtml()}
|
|
23852
|
-
${this.hasValue ? u$
|
|
23853
|
-
${!this.disabled && !this.readonly ? u$
|
|
24193
|
+
${this.hasValue ? u$3`
|
|
24194
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
23854
24195
|
${this.renderHtmlActionClear()}
|
|
23855
24196
|
` : undefined}
|
|
23856
24197
|
` : undefined}
|
|
@@ -23892,6 +24233,98 @@ class AuroInput extends BaseInput {
|
|
|
23892
24233
|
|
|
23893
24234
|
var inputVersion = '4.2.0';
|
|
23894
24235
|
|
|
24236
|
+
class AuroElement extends i$1 {
|
|
24237
|
+
static get properties() {
|
|
24238
|
+
return {
|
|
24239
|
+
|
|
24240
|
+
/**
|
|
24241
|
+
* Defines the language of an element.
|
|
24242
|
+
* @default {'default'}
|
|
24243
|
+
*/
|
|
24244
|
+
layout: {
|
|
24245
|
+
type: String,
|
|
24246
|
+
attribute: "layout",
|
|
24247
|
+
reflect: true
|
|
24248
|
+
},
|
|
24249
|
+
|
|
24250
|
+
shape: {
|
|
24251
|
+
type: String,
|
|
24252
|
+
attribute: "shape",
|
|
24253
|
+
reflect: true
|
|
24254
|
+
},
|
|
24255
|
+
|
|
24256
|
+
size: {
|
|
24257
|
+
type: String,
|
|
24258
|
+
attribute: "size",
|
|
24259
|
+
reflect: true
|
|
24260
|
+
},
|
|
24261
|
+
|
|
24262
|
+
onDark: {
|
|
24263
|
+
type: Boolean,
|
|
24264
|
+
attribute: "ondark",
|
|
24265
|
+
reflect: true
|
|
24266
|
+
}
|
|
24267
|
+
};
|
|
24268
|
+
}
|
|
24269
|
+
|
|
24270
|
+
resetShapeClasses() {
|
|
24271
|
+
if (this.shape && this.size) {
|
|
24272
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
24273
|
+
|
|
24274
|
+
if (wrapper) {
|
|
24275
|
+
wrapper.classList.forEach((className) => {
|
|
24276
|
+
if (className.startsWith('shape-')) {
|
|
24277
|
+
wrapper.classList.remove(className);
|
|
24278
|
+
}
|
|
24279
|
+
});
|
|
24280
|
+
|
|
24281
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
24282
|
+
}
|
|
24283
|
+
}
|
|
24284
|
+
}
|
|
24285
|
+
|
|
24286
|
+
resetLayoutClasses() {
|
|
24287
|
+
if (this.layout) {
|
|
24288
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
24289
|
+
|
|
24290
|
+
if (wrapper) {
|
|
24291
|
+
wrapper.classList.forEach((className) => {
|
|
24292
|
+
if (className.startsWith('layout-')) {
|
|
24293
|
+
wrapper.classList.remove(className);
|
|
24294
|
+
}
|
|
24295
|
+
});
|
|
24296
|
+
|
|
24297
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
24298
|
+
}
|
|
24299
|
+
}
|
|
24300
|
+
}
|
|
24301
|
+
|
|
24302
|
+
updateComponentArchitecture() {
|
|
24303
|
+
this.resetLayoutClasses();
|
|
24304
|
+
this.resetShapeClasses();
|
|
24305
|
+
}
|
|
24306
|
+
|
|
24307
|
+
updated(changedProperties) {
|
|
24308
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
24309
|
+
this.updateComponentArchitecture();
|
|
24310
|
+
}
|
|
24311
|
+
}
|
|
24312
|
+
|
|
24313
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
24314
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
24315
|
+
render() {
|
|
24316
|
+
try {
|
|
24317
|
+
return this.renderLayout();
|
|
24318
|
+
} catch (error) {
|
|
24319
|
+
// failed to get the defined layout
|
|
24320
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
24321
|
+
|
|
24322
|
+
// fallback to the default layout
|
|
24323
|
+
return this.getLayout('default');
|
|
24324
|
+
}
|
|
24325
|
+
}
|
|
24326
|
+
}
|
|
24327
|
+
|
|
23895
24328
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
23896
24329
|
// See LICENSE in the project root for license information.
|
|
23897
24330
|
|
|
@@ -23920,7 +24353,7 @@ var inputVersion = '4.2.0';
|
|
|
23920
24353
|
*/
|
|
23921
24354
|
|
|
23922
24355
|
// build the component class
|
|
23923
|
-
class AuroDatePicker extends
|
|
24356
|
+
class AuroDatePicker extends AuroElement {
|
|
23924
24357
|
constructor() {
|
|
23925
24358
|
super();
|
|
23926
24359
|
|
|
@@ -23995,7 +24428,7 @@ class AuroDatePicker extends i$2 {
|
|
|
23995
24428
|
/**
|
|
23996
24429
|
* @private
|
|
23997
24430
|
*/
|
|
23998
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
24431
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
23999
24432
|
|
|
24000
24433
|
/**
|
|
24001
24434
|
* @private
|
|
@@ -24021,6 +24454,11 @@ class AuroDatePicker extends i$2 {
|
|
|
24021
24454
|
* @private
|
|
24022
24455
|
*/
|
|
24023
24456
|
this.monthFirst = undefined;
|
|
24457
|
+
|
|
24458
|
+
// Layout Config
|
|
24459
|
+
this.layout = 'classic';
|
|
24460
|
+
this.shape = 'classic';
|
|
24461
|
+
this.size = 'lg';
|
|
24024
24462
|
}
|
|
24025
24463
|
|
|
24026
24464
|
// This function is to define props used within the scope of this component
|
|
@@ -24301,7 +24739,10 @@ class AuroDatePicker extends i$2 {
|
|
|
24301
24739
|
return [
|
|
24302
24740
|
styleCss$d,
|
|
24303
24741
|
colorCss$c,
|
|
24304
|
-
tokensCss$a
|
|
24742
|
+
tokensCss$a,
|
|
24743
|
+
|
|
24744
|
+
// layouts
|
|
24745
|
+
classicLayoutColor
|
|
24305
24746
|
];
|
|
24306
24747
|
}
|
|
24307
24748
|
|
|
@@ -24314,7 +24755,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24314
24755
|
*
|
|
24315
24756
|
*/
|
|
24316
24757
|
static register(name = "auro-datepicker") {
|
|
24317
|
-
AuroLibraryRuntimeUtils$
|
|
24758
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroDatePicker);
|
|
24318
24759
|
}
|
|
24319
24760
|
|
|
24320
24761
|
/**
|
|
@@ -24486,7 +24927,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24486
24927
|
* @returns {void}
|
|
24487
24928
|
*/
|
|
24488
24929
|
configureInput() {
|
|
24489
|
-
this.triggerInput = this.dropdown.querySelector('[slot="trigger"');
|
|
24930
|
+
this.triggerInput = this.dropdown.querySelector('[slot="trigger"]');
|
|
24490
24931
|
|
|
24491
24932
|
this.inputList = [...this.dropdown.querySelectorAll(this.inputTag._$litStatic$)];
|
|
24492
24933
|
|
|
@@ -24927,70 +25368,152 @@ class AuroDatePicker extends i$2 {
|
|
|
24927
25368
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
24928
25369
|
}
|
|
24929
25370
|
|
|
25371
|
+
// layout render methods
|
|
25372
|
+
// ------------------------------------
|
|
25373
|
+
|
|
25374
|
+
/**
|
|
25375
|
+
* Base wrapper for the datepicker layout - every layout follows this same structure
|
|
25376
|
+
* with minor variations in DOM structure.
|
|
25377
|
+
* @param {import("lit").TemplateResult} content - The content to be rendered inside the base layout.
|
|
25378
|
+
* @return {import("lit").TemplateResult}
|
|
25379
|
+
* @private
|
|
25380
|
+
*/
|
|
25381
|
+
_renderBaseLayout(content) {
|
|
25382
|
+
return u$3`
|
|
25383
|
+
<div
|
|
25384
|
+
part="wrapper">
|
|
25385
|
+
<div class="accents left">
|
|
25386
|
+
calendar icon
|
|
25387
|
+
</div>
|
|
25388
|
+
<div class="mainContent">
|
|
25389
|
+
${content}
|
|
25390
|
+
</div>
|
|
25391
|
+
<div class="accents right">
|
|
25392
|
+
error and/or close icon here :)
|
|
25393
|
+
</div>
|
|
25394
|
+
</div>
|
|
25395
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
25396
|
+
help text here (see combobox for example)
|
|
25397
|
+
</div>
|
|
25398
|
+
`;
|
|
25399
|
+
}
|
|
25400
|
+
|
|
25401
|
+
/**
|
|
25402
|
+
* Renders the emphasized layout for the datepicker.
|
|
25403
|
+
* @private
|
|
25404
|
+
* @return {import("lit").TemplateResult}
|
|
25405
|
+
*/
|
|
25406
|
+
renderEmphasizedLayout() {
|
|
25407
|
+
return u$3`
|
|
25408
|
+
<div
|
|
25409
|
+
part="wrapper">
|
|
25410
|
+
<div class="accents left">
|
|
25411
|
+
calendar icon
|
|
25412
|
+
</div>
|
|
25413
|
+
<div class="mainContent">
|
|
25414
|
+
${this.renderTempInputs()}
|
|
25415
|
+
</div>
|
|
25416
|
+
<div class="accents right">
|
|
25417
|
+
error and/or close icon here :)
|
|
25418
|
+
</div>
|
|
25419
|
+
</div>
|
|
25420
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
25421
|
+
help text here (see combobox for example)
|
|
25422
|
+
</div>
|
|
25423
|
+
`;
|
|
25424
|
+
}
|
|
25425
|
+
|
|
25426
|
+
renderLayoutFromAttributes() {
|
|
25427
|
+
switch (this.layout) {
|
|
25428
|
+
case 'emphasized':
|
|
25429
|
+
return this.renderEmphasizedLayout();
|
|
25430
|
+
default:
|
|
25431
|
+
// TODO: remove when all base layouts are implemented and instead return classic
|
|
25432
|
+
return u$3`
|
|
25433
|
+
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
25434
|
+
`;
|
|
25435
|
+
}
|
|
25436
|
+
}
|
|
25437
|
+
|
|
25438
|
+
renderTempInputs() {
|
|
25439
|
+
return u$3`
|
|
25440
|
+
<${this.inputTag}
|
|
25441
|
+
id="${this.generateRandomString(12)}"
|
|
25442
|
+
bordered
|
|
25443
|
+
class="dateFrom"
|
|
25444
|
+
?onDark="${this.onDark}"
|
|
25445
|
+
?required="${this.required}"
|
|
25446
|
+
noValidate
|
|
25447
|
+
type="date"
|
|
25448
|
+
.format="${this.format}"
|
|
25449
|
+
.max="${this.maxDate}"
|
|
25450
|
+
.min="${this.minDate}"
|
|
25451
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
25452
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25453
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25454
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25455
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25456
|
+
?disabled="${this.disabled}"
|
|
25457
|
+
inputmode="${o(this.inputmode)}"
|
|
25458
|
+
part="input">
|
|
25459
|
+
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
25460
|
+
</${this.inputTag}>
|
|
25461
|
+
${this.range ? u$3`
|
|
25462
|
+
<${this.inputTag}
|
|
25463
|
+
id="${this.generateRandomString(12)}"
|
|
25464
|
+
bordered
|
|
25465
|
+
class="dateTo"
|
|
25466
|
+
?onDark="${this.onDark}"
|
|
25467
|
+
?required="${this.required}"
|
|
25468
|
+
noValidate
|
|
25469
|
+
type="date"
|
|
25470
|
+
.format="${this.format}"
|
|
25471
|
+
.max="${this.maxDate}"
|
|
25472
|
+
.min="${this.minDate}"
|
|
25473
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
25474
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25475
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25476
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25477
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25478
|
+
?disabled="${this.disabled}"
|
|
25479
|
+
part="input">
|
|
25480
|
+
<span slot="label"><slot name="toLabel"></slot></span>
|
|
25481
|
+
</${this.inputTag}>
|
|
25482
|
+
` : undefined}`;
|
|
25483
|
+
}
|
|
25484
|
+
|
|
25485
|
+
// ------------------------------------
|
|
25486
|
+
// end of layout render methods
|
|
25487
|
+
|
|
24930
25488
|
// function that renders the HTML and CSS into the scope of the component
|
|
24931
25489
|
render() {
|
|
24932
|
-
|
|
24933
|
-
|
|
25490
|
+
// Base HTML render() handles dropdown and calendar bib
|
|
25491
|
+
return u$3`
|
|
25492
|
+
<div>
|
|
24934
25493
|
<${this.dropdownTag}
|
|
24935
|
-
|
|
24936
|
-
fluid
|
|
24937
|
-
bordered
|
|
24938
|
-
rounded
|
|
25494
|
+
?autoPlacement="${this.autoPlacement}"
|
|
24939
25495
|
?onDark="${this.onDark}"
|
|
24940
25496
|
?disabled="${this.disabled}"
|
|
24941
25497
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
24942
|
-
|
|
25498
|
+
?noFlip="${this.noFlip}"
|
|
24943
25499
|
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
24944
|
-
.
|
|
25500
|
+
.layout="${this.layout}"
|
|
24945
25501
|
.offset="${this.offset}"
|
|
24946
|
-
|
|
24947
|
-
|
|
24948
|
-
|
|
25502
|
+
.placement="${this.placement}"
|
|
25503
|
+
.shape="${this.shape}"
|
|
25504
|
+
.size="${this.size}"
|
|
25505
|
+
bordered
|
|
25506
|
+
disableEventShow
|
|
25507
|
+
fluid
|
|
25508
|
+
for="dropdownMenu"
|
|
25509
|
+
part="dropdown"
|
|
25510
|
+
rounded
|
|
25511
|
+
simple
|
|
25512
|
+
>
|
|
24949
25513
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
24950
|
-
|
|
24951
|
-
id="${this.generateRandomString(12)}"
|
|
24952
|
-
bordered
|
|
24953
|
-
class="dateFrom"
|
|
24954
|
-
?onDark="${this.onDark}"
|
|
24955
|
-
?required="${this.required}"
|
|
24956
|
-
noValidate
|
|
24957
|
-
type="date"
|
|
24958
|
-
.format="${this.format}"
|
|
24959
|
-
.max="${this.maxDate}"
|
|
24960
|
-
.min="${this.minDate}"
|
|
24961
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
24962
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
24963
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
24964
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
24965
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
24966
|
-
?disabled="${this.disabled}"
|
|
24967
|
-
inputmode="${o(this.inputmode)}"
|
|
24968
|
-
part="input">
|
|
24969
|
-
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
24970
|
-
</${this.inputTag}>
|
|
24971
|
-
${this.range ? u$2`
|
|
24972
|
-
<${this.inputTag}
|
|
24973
|
-
id="${this.generateRandomString(12)}"
|
|
24974
|
-
bordered
|
|
24975
|
-
class="dateTo"
|
|
24976
|
-
?onDark="${this.onDark}"
|
|
24977
|
-
?required="${this.required}"
|
|
24978
|
-
noValidate
|
|
24979
|
-
type="date"
|
|
24980
|
-
.format="${this.format}"
|
|
24981
|
-
.max="${this.maxDate}"
|
|
24982
|
-
.min="${this.minDate}"
|
|
24983
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
24984
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
24985
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
24986
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
24987
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
24988
|
-
?disabled="${this.disabled}"
|
|
24989
|
-
part="input">
|
|
24990
|
-
<span slot="label"><slot name="toLabel"></slot></span>
|
|
24991
|
-
</${this.inputTag}>
|
|
24992
|
-
` : undefined}
|
|
25514
|
+
${this.renderLayoutFromAttributes()}
|
|
24993
25515
|
</div>
|
|
25516
|
+
|
|
24994
25517
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
24995
25518
|
<auro-formkit-calendar
|
|
24996
25519
|
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
@@ -25006,16 +25529,16 @@ class AuroDatePicker extends i$2 {
|
|
|
25006
25529
|
>
|
|
25007
25530
|
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
25008
25531
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
25009
|
-
<span slot="bib.fullscreen.fromStr">${this.value || u$
|
|
25010
|
-
${this.range ? u$
|
|
25532
|
+
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
25533
|
+
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
25011
25534
|
</auro-formkit-calendar>
|
|
25012
25535
|
</div>
|
|
25013
25536
|
<p slot="helpText" part="helpTextSpan">
|
|
25014
25537
|
<!-- Help text and error message template -->
|
|
25015
25538
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
25016
|
-
? u$
|
|
25539
|
+
? u$3`
|
|
25017
25540
|
<slot name="helpText"></slot>
|
|
25018
|
-
` : u$
|
|
25541
|
+
` : u$3`
|
|
25019
25542
|
<span role="alert" aria-live="assertive" part="helpText">
|
|
25020
25543
|
${this.errorMessage}
|
|
25021
25544
|
</span>`
|