@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.5 → 0.0.0-pr624.7
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.min.js +514 -172
- package/components/combobox/demo/index.min.js +514 -172
- package/components/combobox/dist/auro-combobox.d.ts +0 -8
- package/components/combobox/dist/index.js +425 -153
- package/components/combobox/dist/registered.js +425 -153
- package/components/counter/demo/api.min.js +404 -106
- package/components/counter/demo/index.min.js +404 -106
- package/components/counter/dist/index.js +404 -106
- package/components/counter/dist/registered.js +404 -106
- package/components/datepicker/demo/api.md +13 -5
- package/components/datepicker/demo/api.min.js +876 -383
- package/components/datepicker/demo/index.md +13 -0
- package/components/datepicker/demo/index.min.js +876 -383
- package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
- package/components/datepicker/dist/index.js +679 -186
- package/components/datepicker/dist/registered.js +679 -186
- package/components/datepicker/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +226 -81
- package/components/dropdown/demo/index.min.js +226 -81
- package/components/dropdown/dist/auro-dropdown.d.ts +10 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
- package/components/dropdown/dist/index.js +226 -81
- package/components/dropdown/dist/registered.js +226 -81
- package/components/input/demo/api.md +46 -48
- package/components/input/demo/api.min.js +96 -15
- package/components/input/demo/index.min.js +96 -15
- package/components/input/dist/auro-input.d.ts +17 -15
- package/components/input/dist/index.js +96 -15
- package/components/input/dist/registered.js +96 -15
- package/components/menu/demo/api.min.js +76 -6
- package/components/menu/demo/index.min.js +76 -6
- package/components/menu/dist/index.js +76 -6
- package/components/menu/dist/registered.js +76 -6
- 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.md +12 -4
- package/components/select/demo/api.min.js +1178 -200
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +298 -777
- package/components/select/demo/index.min.js +1178 -200
- package/components/select/dist/auro-select.d.ts +96 -4
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +1106 -198
- package/components/select/dist/registered.js +1106 -198
- 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/dist/styles/style-css.d.ts → datepicker/dist/styles/default/color-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$2$1 = i$
|
|
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,7 +14836,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
14730
14836
|
}
|
|
14731
14837
|
|
|
14732
14838
|
static get styles() {
|
|
14733
|
-
return i$
|
|
14839
|
+
return i$3`
|
|
14734
14840
|
${styleCss$2$1}
|
|
14735
14841
|
`;
|
|
14736
14842
|
}
|
|
@@ -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)}`;
|
|
14884
|
+
|
|
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();
|
|
14776
14950
|
|
|
14777
|
-
|
|
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$1$1 = i$
|
|
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,7 +15155,7 @@ 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() {
|
|
@@ -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,23 +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 colorCss$1$1 = i$
|
|
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 classicColorCss$1 = i$
|
|
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 classicLayoutCss = i$
|
|
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 styleEmphasizedCss = i$
|
|
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{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}`;
|
|
15084
15307
|
|
|
15085
|
-
var styleSnowflakeCss = i$
|
|
15308
|
+
var styleSnowflakeCss = i$3`:host{display:block}.wrapper{display:flex;flex-direction:wrapper}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
15086
15309
|
|
|
15087
|
-
var colorCss$4 = i$
|
|
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 styleCss$5 = i$
|
|
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}`;
|
|
15090
15313
|
|
|
15091
|
-
var tokensCss$5 = i$
|
|
15314
|
+
var tokensCss$5 = i$3`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
15092
15315
|
|
|
15093
15316
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
15094
15317
|
// See LICENSE in the project root for license information.
|
|
@@ -15097,7 +15320,7 @@ var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
15097
15320
|
|
|
15098
15321
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
15099
15322
|
|
|
15100
|
-
let AuroLibraryRuntimeUtils$
|
|
15323
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
15101
15324
|
|
|
15102
15325
|
/* eslint-disable jsdoc/require-param */
|
|
15103
15326
|
|
|
@@ -15169,7 +15392,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
15169
15392
|
*
|
|
15170
15393
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
15171
15394
|
*/
|
|
15172
|
-
let AuroHelpText$1 = class AuroHelpText extends i$
|
|
15395
|
+
let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
15173
15396
|
|
|
15174
15397
|
constructor() {
|
|
15175
15398
|
super();
|
|
@@ -15178,7 +15401,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15178
15401
|
this.onDark = false;
|
|
15179
15402
|
this.hasTextContent = false;
|
|
15180
15403
|
|
|
15181
|
-
AuroLibraryRuntimeUtils$
|
|
15404
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
15182
15405
|
}
|
|
15183
15406
|
|
|
15184
15407
|
static get styles() {
|
|
@@ -15234,7 +15457,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15234
15457
|
*
|
|
15235
15458
|
*/
|
|
15236
15459
|
static register(name = "auro-helptext") {
|
|
15237
|
-
AuroLibraryRuntimeUtils$
|
|
15460
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
15238
15461
|
}
|
|
15239
15462
|
|
|
15240
15463
|
updated() {
|
|
@@ -15292,7 +15515,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15292
15515
|
|
|
15293
15516
|
var helpTextVersion$1 = '1.0.0';
|
|
15294
15517
|
|
|
15295
|
-
let AuroElement$
|
|
15518
|
+
let AuroElement$3 = class AuroElement extends i$1 {
|
|
15296
15519
|
static get properties() {
|
|
15297
15520
|
return {
|
|
15298
15521
|
|
|
@@ -15401,7 +15624,7 @@ let AuroElement$2 = class AuroElement extends i$2 {
|
|
|
15401
15624
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
15402
15625
|
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
15403
15626
|
*/
|
|
15404
|
-
class AuroDropdown extends AuroElement$
|
|
15627
|
+
class AuroDropdown extends AuroElement$3 {
|
|
15405
15628
|
constructor() {
|
|
15406
15629
|
super();
|
|
15407
15630
|
|
|
@@ -15416,6 +15639,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15416
15639
|
this.layout = 'classic';
|
|
15417
15640
|
this.shape = 'rounded';
|
|
15418
15641
|
this.size = 'xl';
|
|
15642
|
+
this.parentBorder = false;
|
|
15419
15643
|
|
|
15420
15644
|
this.privateDefaults();
|
|
15421
15645
|
}
|
|
@@ -15431,7 +15655,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15431
15655
|
'trigger': true,
|
|
15432
15656
|
'wrapper': true,
|
|
15433
15657
|
'hasFocus': this.hasFocus,
|
|
15434
|
-
'simple': this.simple
|
|
15658
|
+
'simple': this.simple,
|
|
15659
|
+
'parentBorder': this.parentBorder
|
|
15435
15660
|
};
|
|
15436
15661
|
}
|
|
15437
15662
|
|
|
@@ -15466,7 +15691,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15466
15691
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
15467
15692
|
*/
|
|
15468
15693
|
this.constructor.shadowRootOptions = {
|
|
15469
|
-
...i$
|
|
15694
|
+
...i$1.shadowRootOptions,
|
|
15470
15695
|
delegatesFocus: true,
|
|
15471
15696
|
};
|
|
15472
15697
|
|
|
@@ -15483,7 +15708,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15483
15708
|
/**
|
|
15484
15709
|
* @private
|
|
15485
15710
|
*/
|
|
15486
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
15711
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
15487
15712
|
|
|
15488
15713
|
/**
|
|
15489
15714
|
* @private
|
|
@@ -15698,6 +15923,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15698
15923
|
reflect: true
|
|
15699
15924
|
},
|
|
15700
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
|
+
|
|
15701
15935
|
/**
|
|
15702
15936
|
* If declared, the popover and trigger will be set to the same width.
|
|
15703
15937
|
*/
|
|
@@ -15825,7 +16059,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15825
16059
|
*
|
|
15826
16060
|
*/
|
|
15827
16061
|
static register(name = "auro-dropdown") {
|
|
15828
|
-
AuroLibraryRuntimeUtils$
|
|
16062
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
|
|
15829
16063
|
}
|
|
15830
16064
|
|
|
15831
16065
|
/**
|
|
@@ -16161,8 +16395,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16161
16395
|
* @param {Event} event - The event object representing the slot change.
|
|
16162
16396
|
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
16163
16397
|
*/
|
|
16164
|
-
handleDefaultSlot(
|
|
16165
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
16398
|
+
handleDefaultSlot() {
|
|
16166
16399
|
|
|
16167
16400
|
if (this.onSlotChange) {
|
|
16168
16401
|
this.onSlotChange();
|
|
@@ -16199,7 +16432,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16199
16432
|
* @returns {html} - Returns HTML.
|
|
16200
16433
|
*/
|
|
16201
16434
|
renderBasicHtml(helpTextClasses) {
|
|
16202
|
-
return u$
|
|
16435
|
+
return u$3`
|
|
16203
16436
|
<div>
|
|
16204
16437
|
<div
|
|
16205
16438
|
id="trigger"
|
|
@@ -16221,9 +16454,10 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16221
16454
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16222
16455
|
</div>
|
|
16223
16456
|
</div>
|
|
16224
|
-
${this.chevron || this.common ? u$
|
|
16457
|
+
${this.chevron || this.common ? u$3`
|
|
16225
16458
|
<div
|
|
16226
16459
|
id="showStateIcon"
|
|
16460
|
+
class="chevron"
|
|
16227
16461
|
part="chevron">
|
|
16228
16462
|
<${this.iconTag}
|
|
16229
16463
|
category="interface"
|
|
@@ -16238,9 +16472,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16238
16472
|
<div class="${e(helpTextClasses)}">
|
|
16239
16473
|
<slot name="helpText"></slot>
|
|
16240
16474
|
</div>
|
|
16241
|
-
<div class="slotContent">
|
|
16242
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16243
|
-
</div>
|
|
16244
16475
|
<div id="bibSizer" part="size"></div>
|
|
16245
16476
|
<${this.dropdownBibTag}
|
|
16246
16477
|
id="bib"
|
|
@@ -16249,6 +16480,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16249
16480
|
?common="${this.common}"
|
|
16250
16481
|
?rounded="${this.common || this.rounded}"
|
|
16251
16482
|
?inset="${this.common || this.inset}">
|
|
16483
|
+
<div class="slotContent">
|
|
16484
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16485
|
+
</div>
|
|
16252
16486
|
</${this.dropdownBibTag}>
|
|
16253
16487
|
</div>
|
|
16254
16488
|
`;
|
|
@@ -16260,84 +16494,80 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16260
16494
|
* @returns {html} - Returns HTML for the classic layout.
|
|
16261
16495
|
*/
|
|
16262
16496
|
renderLayoutClassic() {
|
|
16263
|
-
const helpTextClasses = {
|
|
16264
|
-
'helpText': true,
|
|
16265
|
-
'leftIndent': false,
|
|
16266
|
-
'rightIndent': false
|
|
16267
|
-
};
|
|
16268
|
-
|
|
16269
|
-
return u$2`
|
|
16270
|
-
${this.renderBasicHtml(helpTextClasses)}
|
|
16271
|
-
`;
|
|
16272
|
-
// return html`
|
|
16273
|
-
// <div>
|
|
16274
|
-
// <div
|
|
16275
|
-
// id="trigger"
|
|
16276
|
-
// class="trigger"
|
|
16277
|
-
// part="trigger"
|
|
16278
|
-
// tabindex="${this.tabIndex}"
|
|
16279
|
-
// ?showBorder="${this.showTriggerBorders}"
|
|
16280
|
-
// role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
16281
|
-
// aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
16282
|
-
// aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
16283
|
-
// aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
16284
|
-
// >
|
|
16285
|
-
// <div class="triggerContentWrapper">
|
|
16286
|
-
// <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
16287
|
-
// <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
16288
|
-
// </label>
|
|
16289
|
-
// <div class="triggerContent">
|
|
16290
|
-
// <slot
|
|
16291
|
-
// name="trigger"
|
|
16292
|
-
// @slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16293
|
-
// </div>
|
|
16294
|
-
// </div>
|
|
16295
|
-
// ${this.chevron || this.common ? html`
|
|
16296
|
-
// <div
|
|
16297
|
-
// id="showStateIcon"
|
|
16298
|
-
// part="chevron">
|
|
16299
|
-
// <${this.iconTag}
|
|
16300
|
-
// category="interface"
|
|
16301
|
-
// name="chevron-down"
|
|
16302
|
-
// ?onDark="${this.onDark}"
|
|
16303
|
-
// variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
16304
|
-
// >
|
|
16305
|
-
// </${this.iconTag}>
|
|
16306
|
-
// </div>
|
|
16307
|
-
// ` : undefined }
|
|
16308
|
-
// </div>
|
|
16309
|
-
// <div class="slotContent">
|
|
16310
|
-
// <slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16311
|
-
// </div>
|
|
16312
|
-
// <div id="bibSizer" part="size"></div>
|
|
16313
|
-
// <${this.dropdownBibTag}
|
|
16314
|
-
// id="bib"
|
|
16315
|
-
// ?data-show="${this.isPopoverVisible}"
|
|
16316
|
-
// ?isfullscreen="${this.isBibFullscreen}"
|
|
16317
|
-
// ?common="${this.common}"
|
|
16318
|
-
// ?rounded="${this.common || this.rounded}"
|
|
16319
|
-
// ?inset="${this.common || this.inset}"
|
|
16320
|
-
// >
|
|
16321
|
-
// </${this.dropdownBibTag}>
|
|
16322
|
-
// </div>
|
|
16323
|
-
// `;
|
|
16324
|
-
}
|
|
16325
|
-
|
|
16326
|
-
/**
|
|
16327
|
-
* Returns HTML for the snowflake layout. Does not support type="*".
|
|
16328
|
-
* @private
|
|
16329
|
-
* @returns {html} - Returns HTML for the snowflake layout.
|
|
16330
|
-
*/
|
|
16331
|
-
renderLayoutSnowflake() {
|
|
16332
|
-
const helpTextClasses = {
|
|
16333
|
-
'helpText': true,
|
|
16334
|
-
'leftIndent': true,
|
|
16335
|
-
'rightIndent': true
|
|
16336
|
-
};
|
|
16337
16497
|
|
|
16338
|
-
return u$
|
|
16339
|
-
|
|
16340
|
-
|
|
16498
|
+
return u$3`
|
|
16499
|
+
<div>
|
|
16500
|
+
<div
|
|
16501
|
+
id="trigger"
|
|
16502
|
+
class="trigger"
|
|
16503
|
+
part="trigger"
|
|
16504
|
+
tabindex="${this.tabIndex}"
|
|
16505
|
+
?showBorder="${this.showTriggerBorders}"
|
|
16506
|
+
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
16507
|
+
aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
16508
|
+
aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
16509
|
+
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
16510
|
+
>
|
|
16511
|
+
<div class="triggerContentWrapper">
|
|
16512
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
16513
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
16514
|
+
</label>
|
|
16515
|
+
<div class="triggerContent">
|
|
16516
|
+
<slot
|
|
16517
|
+
name="trigger"
|
|
16518
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16519
|
+
</div>
|
|
16520
|
+
</div>
|
|
16521
|
+
${this.chevron || this.common ? u$3`
|
|
16522
|
+
<div
|
|
16523
|
+
id="showStateIcon"
|
|
16524
|
+
part="chevron">
|
|
16525
|
+
<${this.iconTag}
|
|
16526
|
+
category="interface"
|
|
16527
|
+
name="chevron-down"
|
|
16528
|
+
?onDark="${this.onDark}"
|
|
16529
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
16530
|
+
>
|
|
16531
|
+
</${this.iconTag}>
|
|
16532
|
+
</div>
|
|
16533
|
+
` : undefined }
|
|
16534
|
+
</div>
|
|
16535
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
16536
|
+
<slot name="helpText"></slot>
|
|
16537
|
+
</${this.helpTextTag}>
|
|
16538
|
+
|
|
16539
|
+
<div id="bibSizer" part="size"></div>
|
|
16540
|
+
<${this.dropdownBibTag}
|
|
16541
|
+
id="bib"
|
|
16542
|
+
?data-show="${this.isPopoverVisible}"
|
|
16543
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
16544
|
+
?common="${this.common}"
|
|
16545
|
+
?rounded="${this.common || this.rounded}"
|
|
16546
|
+
?inset="${this.common || this.inset}"
|
|
16547
|
+
>
|
|
16548
|
+
<div class="slotContent">
|
|
16549
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16550
|
+
</div>
|
|
16551
|
+
</${this.dropdownBibTag}>
|
|
16552
|
+
</div>
|
|
16553
|
+
`;
|
|
16554
|
+
}
|
|
16555
|
+
|
|
16556
|
+
/**
|
|
16557
|
+
* Returns HTML for the snowflake layout. Does not support type="*".
|
|
16558
|
+
* @private
|
|
16559
|
+
* @returns {html} - Returns HTML for the snowflake layout.
|
|
16560
|
+
*/
|
|
16561
|
+
renderLayoutSnowflake() {
|
|
16562
|
+
const helpTextClasses = {
|
|
16563
|
+
'helpText': true,
|
|
16564
|
+
'leftIndent': true,
|
|
16565
|
+
'rightIndent': true
|
|
16566
|
+
};
|
|
16567
|
+
|
|
16568
|
+
return u$3`
|
|
16569
|
+
${this.renderBasicHtml(helpTextClasses)}
|
|
16570
|
+
`;
|
|
16341
16571
|
}
|
|
16342
16572
|
|
|
16343
16573
|
/**
|
|
@@ -16352,7 +16582,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16352
16582
|
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
16353
16583
|
};
|
|
16354
16584
|
|
|
16355
|
-
return u$
|
|
16585
|
+
return u$3`
|
|
16356
16586
|
${this.renderBasicHtml(helpTextClasses)}
|
|
16357
16587
|
`;
|
|
16358
16588
|
}
|
|
@@ -16400,25 +16630,25 @@ var dropdownVersion = '3.0.0';
|
|
|
16400
16630
|
*/
|
|
16401
16631
|
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}});
|
|
16402
16632
|
|
|
16403
|
-
var shapeSizeCss = i$
|
|
16633
|
+
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}`;
|
|
16404
16634
|
|
|
16405
|
-
var styleCss$4 = i$
|
|
16635
|
+
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}`;
|
|
16406
16636
|
|
|
16407
|
-
var styleDefaultCss = i$
|
|
16637
|
+
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}`;
|
|
16408
16638
|
|
|
16409
|
-
var colorBaseCss = i$
|
|
16639
|
+
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{color:var(--ds-auro-input-text-color);caret-color:var(--ds-auro-input-caret-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
16410
16640
|
|
|
16411
|
-
var tokensCss$4 = i$
|
|
16641
|
+
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}`;
|
|
16412
16642
|
|
|
16413
|
-
var classicStyleCss = i$
|
|
16643
|
+
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}`;
|
|
16414
16644
|
|
|
16415
|
-
var classicColorCss = i$
|
|
16645
|
+
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)}`;
|
|
16416
16646
|
|
|
16417
|
-
var emphasizedStyleCss = i$
|
|
16647
|
+
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}`;
|
|
16418
16648
|
|
|
16419
|
-
var emphasizedColorCss = i$
|
|
16649
|
+
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)}`;
|
|
16420
16650
|
|
|
16421
|
-
var snowflakeStyleCss = i$
|
|
16651
|
+
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}`;
|
|
16422
16652
|
|
|
16423
16653
|
const watchedItems = new Set();
|
|
16424
16654
|
|
|
@@ -20439,9 +20669,10 @@ class DateFormatter {
|
|
|
20439
20669
|
/**
|
|
20440
20670
|
* Convert a date object to string format.
|
|
20441
20671
|
* @param {Object} date - Date to convert to string.
|
|
20442
|
-
* @
|
|
20672
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
20673
|
+
* @returns {String} Returns the date as a string.
|
|
20443
20674
|
*/
|
|
20444
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
20675
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
20445
20676
|
year: "numeric",
|
|
20446
20677
|
month: "2-digit",
|
|
20447
20678
|
day: "2-digit",
|
|
@@ -20633,7 +20864,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
|
|
|
20633
20864
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
20634
20865
|
|
|
20635
20866
|
// Get the date string of the date object we created from the string date
|
|
20636
|
-
const actualDateStr = dateFormatter.getDateAsString(dateObj);
|
|
20867
|
+
const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
|
|
20637
20868
|
|
|
20638
20869
|
// Guard Clause: Generated date matches date string input
|
|
20639
20870
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -20798,7 +21029,7 @@ const {
|
|
|
20798
21029
|
|
|
20799
21030
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
20800
21031
|
|
|
20801
|
-
let AuroLibraryRuntimeUtils$
|
|
21032
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
20802
21033
|
|
|
20803
21034
|
/* eslint-disable jsdoc/require-param */
|
|
20804
21035
|
|
|
@@ -20868,7 +21099,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
20868
21099
|
class AuroFormValidation {
|
|
20869
21100
|
|
|
20870
21101
|
constructor() {
|
|
20871
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
21102
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
20872
21103
|
}
|
|
20873
21104
|
|
|
20874
21105
|
/**
|
|
@@ -21227,7 +21458,7 @@ class AuroFormValidation {
|
|
|
21227
21458
|
}
|
|
21228
21459
|
}
|
|
21229
21460
|
|
|
21230
|
-
let AuroElement$1 = class AuroElement extends i$
|
|
21461
|
+
let AuroElement$1 = class AuroElement extends i$1 {
|
|
21231
21462
|
static get properties() {
|
|
21232
21463
|
return {
|
|
21233
21464
|
|
|
@@ -22409,7 +22640,7 @@ class AuroDependencyVersioning {
|
|
|
22409
22640
|
*/
|
|
22410
22641
|
generateTag(baseName, version, tagClass) {
|
|
22411
22642
|
const elementName = this.generateElementName(baseName, version);
|
|
22412
|
-
const tag = i$
|
|
22643
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
22413
22644
|
|
|
22414
22645
|
if (!customElements.get(elementName)) {
|
|
22415
22646
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -22429,7 +22660,7 @@ class AuroDependencyVersioning {
|
|
|
22429
22660
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
22430
22661
|
*/
|
|
22431
22662
|
|
|
22432
|
-
class AuroElement extends i$
|
|
22663
|
+
let AuroElement$2 = class AuroElement extends i$1 {
|
|
22433
22664
|
|
|
22434
22665
|
// function to define props used within the scope of this component
|
|
22435
22666
|
static get properties() {
|
|
@@ -22453,7 +22684,7 @@ class AuroElement extends i$2 {
|
|
|
22453
22684
|
|
|
22454
22685
|
return 'false'
|
|
22455
22686
|
}
|
|
22456
|
-
}
|
|
22687
|
+
};
|
|
22457
22688
|
|
|
22458
22689
|
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>"};
|
|
22459
22690
|
|
|
@@ -22485,7 +22716,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
22485
22716
|
return _fetchMap.get(uri);
|
|
22486
22717
|
};
|
|
22487
22718
|
|
|
22488
|
-
var styleCss$3 = i$
|
|
22719
|
+
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}`;
|
|
22489
22720
|
|
|
22490
22721
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22491
22722
|
// See LICENSE in the project root for license information.
|
|
@@ -22497,7 +22728,7 @@ var styleCss$3 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
22497
22728
|
*/
|
|
22498
22729
|
|
|
22499
22730
|
// build the component class
|
|
22500
|
-
class BaseIcon extends AuroElement {
|
|
22731
|
+
class BaseIcon extends AuroElement$2 {
|
|
22501
22732
|
constructor() {
|
|
22502
22733
|
super();
|
|
22503
22734
|
this.onDark = false;
|
|
@@ -22527,7 +22758,7 @@ class BaseIcon extends AuroElement {
|
|
|
22527
22758
|
}
|
|
22528
22759
|
|
|
22529
22760
|
static get styles() {
|
|
22530
|
-
return i$
|
|
22761
|
+
return i$3`
|
|
22531
22762
|
${styleCss$3}
|
|
22532
22763
|
`;
|
|
22533
22764
|
}
|
|
@@ -22569,9 +22800,79 @@ class BaseIcon extends AuroElement {
|
|
|
22569
22800
|
}
|
|
22570
22801
|
}
|
|
22571
22802
|
|
|
22572
|
-
var tokensCss$3 = i$
|
|
22803
|
+
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)}`;
|
|
22804
|
+
|
|
22805
|
+
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)}`;
|
|
22806
|
+
|
|
22807
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
22808
|
+
// See LICENSE in the project root for license information.
|
|
22809
|
+
|
|
22810
|
+
// ---------------------------------------------------------------------
|
|
22811
|
+
|
|
22812
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
22813
|
+
|
|
22814
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
22815
|
+
|
|
22816
|
+
/* eslint-disable jsdoc/require-param */
|
|
22817
|
+
|
|
22818
|
+
/**
|
|
22819
|
+
* This will register a new custom element with the browser.
|
|
22820
|
+
* @param {String} name - The name of the custom element.
|
|
22821
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
22822
|
+
* @returns {void}
|
|
22823
|
+
*/
|
|
22824
|
+
registerComponent(name, componentClass) {
|
|
22825
|
+
if (!customElements.get(name)) {
|
|
22826
|
+
customElements.define(name, class extends componentClass {});
|
|
22827
|
+
}
|
|
22828
|
+
}
|
|
22829
|
+
|
|
22830
|
+
/**
|
|
22831
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
22832
|
+
* @returns {void}
|
|
22833
|
+
*/
|
|
22834
|
+
closestElement(
|
|
22835
|
+
selector, // selector like in .closest()
|
|
22836
|
+
base = this, // extra functionality to skip a parent
|
|
22837
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
22838
|
+
!el || el === document || el === window
|
|
22839
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
22840
|
+
: found
|
|
22841
|
+
? found // found a selector INside this element
|
|
22842
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
22843
|
+
) {
|
|
22844
|
+
return __Closest(base);
|
|
22845
|
+
}
|
|
22846
|
+
/* eslint-enable jsdoc/require-param */
|
|
22847
|
+
|
|
22848
|
+
/**
|
|
22849
|
+
* 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.
|
|
22850
|
+
* @param {Object} elem - The element to check.
|
|
22851
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
22852
|
+
* @returns {void}
|
|
22853
|
+
*/
|
|
22854
|
+
handleComponentTagRename(elem, tagName) {
|
|
22855
|
+
const tag = tagName.toLowerCase();
|
|
22856
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
22573
22857
|
|
|
22574
|
-
|
|
22858
|
+
if (elemTag !== tag) {
|
|
22859
|
+
elem.setAttribute(tag, true);
|
|
22860
|
+
}
|
|
22861
|
+
}
|
|
22862
|
+
|
|
22863
|
+
/**
|
|
22864
|
+
* Validates if an element is a specific Auro component.
|
|
22865
|
+
* @param {Object} elem - The element to validate.
|
|
22866
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
22867
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
22868
|
+
*/
|
|
22869
|
+
elementMatch(elem, tagName) {
|
|
22870
|
+
const tag = tagName.toLowerCase();
|
|
22871
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
22872
|
+
|
|
22873
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
22874
|
+
}
|
|
22875
|
+
};
|
|
22575
22876
|
|
|
22576
22877
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22577
22878
|
// See LICENSE in the project root for license information.
|
|
@@ -22659,9 +22960,9 @@ class AuroIcon extends BaseIcon {
|
|
|
22659
22960
|
static get styles() {
|
|
22660
22961
|
return [
|
|
22661
22962
|
super.styles,
|
|
22662
|
-
i$
|
|
22663
|
-
i$
|
|
22664
|
-
i$
|
|
22963
|
+
i$3`${tokensCss$3}`,
|
|
22964
|
+
i$3`${styleCss$3}`,
|
|
22965
|
+
i$3`${colorCss$3}`
|
|
22665
22966
|
];
|
|
22666
22967
|
}
|
|
22667
22968
|
|
|
@@ -22742,23 +23043,23 @@ class AuroIcon extends BaseIcon {
|
|
|
22742
23043
|
|
|
22743
23044
|
var iconVersion = '8.0.1';
|
|
22744
23045
|
|
|
22745
|
-
var styleCss$2 = i$
|
|
23046
|
+
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}`;
|
|
22746
23047
|
|
|
22747
|
-
var colorCss$2 = i$
|
|
23048
|
+
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}`;
|
|
22748
23049
|
|
|
22749
|
-
var tokensCss$2 = i$
|
|
23050
|
+
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}`;
|
|
22750
23051
|
|
|
22751
|
-
var styleCss$1 = i$
|
|
23052
|
+
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}}`;
|
|
22752
23053
|
|
|
22753
|
-
var colorCss$1 = i$
|
|
23054
|
+
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}`;
|
|
22754
23055
|
|
|
22755
|
-
var tokensCss$1 = i$
|
|
23056
|
+
var tokensCss$1 = i$3`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
22756
23057
|
|
|
22757
23058
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22758
23059
|
// See LICENSE in the project root for license information.
|
|
22759
23060
|
|
|
22760
23061
|
|
|
22761
|
-
class AuroLoader extends i$
|
|
23062
|
+
class AuroLoader extends i$1 {
|
|
22762
23063
|
constructor() {
|
|
22763
23064
|
super();
|
|
22764
23065
|
|
|
@@ -22780,7 +23081,7 @@ class AuroLoader extends i$2 {
|
|
|
22780
23081
|
/**
|
|
22781
23082
|
* @private
|
|
22782
23083
|
*/
|
|
22783
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
23084
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
22784
23085
|
|
|
22785
23086
|
this.orbit = false;
|
|
22786
23087
|
this.ringworm = false;
|
|
@@ -22828,9 +23129,9 @@ class AuroLoader extends i$2 {
|
|
|
22828
23129
|
|
|
22829
23130
|
static get styles() {
|
|
22830
23131
|
return [
|
|
22831
|
-
i$
|
|
22832
|
-
i$
|
|
22833
|
-
i$
|
|
23132
|
+
i$3`${styleCss$1}`,
|
|
23133
|
+
i$3`${colorCss$1}`,
|
|
23134
|
+
i$3`${tokensCss$1}`
|
|
22834
23135
|
];
|
|
22835
23136
|
}
|
|
22836
23137
|
|
|
@@ -22843,7 +23144,7 @@ class AuroLoader extends i$2 {
|
|
|
22843
23144
|
*
|
|
22844
23145
|
*/
|
|
22845
23146
|
static register(name = "auro-loader") {
|
|
22846
|
-
AuroLibraryRuntimeUtils$
|
|
23147
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
|
|
22847
23148
|
}
|
|
22848
23149
|
|
|
22849
23150
|
firstUpdated() {
|
|
@@ -22911,7 +23212,7 @@ var loaderVersion = '5.0.0';
|
|
|
22911
23212
|
|
|
22912
23213
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
22913
23214
|
|
|
22914
|
-
class AuroButton extends i$
|
|
23215
|
+
class AuroButton extends i$1 {
|
|
22915
23216
|
|
|
22916
23217
|
/**
|
|
22917
23218
|
* Enables form association for this element.
|
|
@@ -23147,7 +23448,7 @@ class AuroButton extends i$2 {
|
|
|
23147
23448
|
*
|
|
23148
23449
|
*/
|
|
23149
23450
|
static register(name = "auro-button") {
|
|
23150
|
-
AuroLibraryRuntimeUtils$
|
|
23451
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
23151
23452
|
}
|
|
23152
23453
|
|
|
23153
23454
|
/**
|
|
@@ -23202,7 +23503,7 @@ class AuroButton extends i$2 {
|
|
|
23202
23503
|
'loading': this.loading
|
|
23203
23504
|
};
|
|
23204
23505
|
|
|
23205
|
-
return u$
|
|
23506
|
+
return u$3`
|
|
23206
23507
|
<button
|
|
23207
23508
|
part="button"
|
|
23208
23509
|
aria-hidden="${o(this.ariahidden || undefined)}"
|
|
@@ -23221,11 +23522,11 @@ class AuroButton extends i$2 {
|
|
|
23221
23522
|
.value="${o(this.value ? this.value : undefined)}"
|
|
23222
23523
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
23223
23524
|
>
|
|
23224
|
-
${o(this.loading ? u$
|
|
23525
|
+
${o(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
23225
23526
|
|
|
23226
23527
|
<span class="contentWrapper">
|
|
23227
23528
|
<span class="textSlot" part="text">
|
|
23228
|
-
${this.iconOnly ? undefined : u$
|
|
23529
|
+
${this.iconOnly ? undefined : u$3`<slot></slot>`}
|
|
23229
23530
|
</span>
|
|
23230
23531
|
|
|
23231
23532
|
<span part="icon">
|
|
@@ -23239,11 +23540,11 @@ class AuroButton extends i$2 {
|
|
|
23239
23540
|
|
|
23240
23541
|
var buttonVersion = '9.3.0';
|
|
23241
23542
|
|
|
23242
|
-
var colorCss = i$
|
|
23543
|
+
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)}`;
|
|
23243
23544
|
|
|
23244
|
-
var styleCss = i$
|
|
23545
|
+
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}`;
|
|
23245
23546
|
|
|
23246
|
-
var tokensCss = i$
|
|
23547
|
+
var tokensCss = i$3`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
23247
23548
|
|
|
23248
23549
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
23249
23550
|
// See LICENSE in the project root for license information.
|
|
@@ -23324,7 +23625,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
23324
23625
|
*
|
|
23325
23626
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
23326
23627
|
*/
|
|
23327
|
-
class AuroHelpText extends i$
|
|
23628
|
+
class AuroHelpText extends i$1 {
|
|
23328
23629
|
|
|
23329
23630
|
constructor() {
|
|
23330
23631
|
super();
|
|
@@ -23485,16 +23786,16 @@ class AuroInput extends BaseInput {
|
|
|
23485
23786
|
|
|
23486
23787
|
static get styles() {
|
|
23487
23788
|
return [
|
|
23488
|
-
i$
|
|
23489
|
-
i$
|
|
23490
|
-
i$
|
|
23491
|
-
i$
|
|
23492
|
-
i$
|
|
23493
|
-
i$
|
|
23494
|
-
i$
|
|
23495
|
-
i$
|
|
23496
|
-
i$
|
|
23497
|
-
i$
|
|
23789
|
+
i$3`${classicStyleCss}`,
|
|
23790
|
+
i$3`${classicColorCss}`,
|
|
23791
|
+
i$3`${shapeSizeCss}`,
|
|
23792
|
+
i$3`${colorBaseCss}`,
|
|
23793
|
+
i$3`${styleCss$4}`,
|
|
23794
|
+
i$3`${styleDefaultCss}`,
|
|
23795
|
+
i$3`${tokensCss$4}`,
|
|
23796
|
+
i$3`${emphasizedStyleCss}`,
|
|
23797
|
+
i$3`${emphasizedColorCss}`,
|
|
23798
|
+
i$3`${snowflakeStyleCss}`
|
|
23498
23799
|
];
|
|
23499
23800
|
}
|
|
23500
23801
|
|
|
@@ -23513,7 +23814,7 @@ class AuroInput extends BaseInput {
|
|
|
23513
23814
|
/**
|
|
23514
23815
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
23515
23816
|
* @private
|
|
23516
|
-
* @returns {object} - Returns classmap
|
|
23817
|
+
* @returns {object} - Returns classmap.
|
|
23517
23818
|
*/
|
|
23518
23819
|
get commonInputClasses() {
|
|
23519
23820
|
return {
|
|
@@ -23522,9 +23823,9 @@ class AuroInput extends BaseInput {
|
|
|
23522
23823
|
}
|
|
23523
23824
|
|
|
23524
23825
|
/**
|
|
23525
|
-
* Returns classmap configuration for html5 inputs in
|
|
23826
|
+
* Returns classmap configuration for html5 inputs in each layout.
|
|
23526
23827
|
* @private
|
|
23527
|
-
* @return {object} - Returns classmap
|
|
23828
|
+
* @return {object} - Returns classmap.
|
|
23528
23829
|
*/
|
|
23529
23830
|
get legacyInputClasses() {
|
|
23530
23831
|
return {
|
|
@@ -23533,6 +23834,11 @@ class AuroInput extends BaseInput {
|
|
|
23533
23834
|
};
|
|
23534
23835
|
}
|
|
23535
23836
|
|
|
23837
|
+
/**
|
|
23838
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
23839
|
+
* @private
|
|
23840
|
+
* @return {object} - Returns classmap.
|
|
23841
|
+
*/
|
|
23536
23842
|
get commonWrapperClasses() {
|
|
23537
23843
|
return {
|
|
23538
23844
|
'wrapper': true,
|
|
@@ -23541,6 +23847,11 @@ class AuroInput extends BaseInput {
|
|
|
23541
23847
|
};
|
|
23542
23848
|
}
|
|
23543
23849
|
|
|
23850
|
+
/**
|
|
23851
|
+
* Returns classmap configuration for helpText elements in each layout.
|
|
23852
|
+
* @private
|
|
23853
|
+
* @return {object} - Returns classmap.
|
|
23854
|
+
*/
|
|
23544
23855
|
get helpTextClasses() {
|
|
23545
23856
|
return {
|
|
23546
23857
|
'helpTextWrapper': true,
|
|
@@ -23558,7 +23869,7 @@ class AuroInput extends BaseInput {
|
|
|
23558
23869
|
*
|
|
23559
23870
|
*/
|
|
23560
23871
|
static register(name = "auro-input") {
|
|
23561
|
-
AuroLibraryRuntimeUtils$
|
|
23872
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroInput);
|
|
23562
23873
|
}
|
|
23563
23874
|
|
|
23564
23875
|
/**
|
|
@@ -23597,8 +23908,8 @@ class AuroInput extends BaseInput {
|
|
|
23597
23908
|
* @returns {html} - Returns HTML for the validation error icon.
|
|
23598
23909
|
*/
|
|
23599
23910
|
renderValidationErrorIconHtml() {
|
|
23600
|
-
return u$
|
|
23601
|
-
${this.validity && this.validity !== 'valid' ? u$
|
|
23911
|
+
return u$3`
|
|
23912
|
+
${this.validity && this.validity !== 'valid' ? u$3`
|
|
23602
23913
|
<div class="notification alertNotification">
|
|
23603
23914
|
<${this.iconTag}
|
|
23604
23915
|
category="alert"
|
|
@@ -23630,7 +23941,7 @@ class AuroInput extends BaseInput {
|
|
|
23630
23941
|
? this.legacyInputClasses
|
|
23631
23942
|
: this.commonInputClasses;
|
|
23632
23943
|
|
|
23633
|
-
return u$
|
|
23944
|
+
return u$3`
|
|
23634
23945
|
<label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
|
|
23635
23946
|
<slot name="label">
|
|
23636
23947
|
${this.label}
|
|
@@ -23675,7 +23986,7 @@ class AuroInput extends BaseInput {
|
|
|
23675
23986
|
* @returns {html} - Returns HTML for the clear action button.
|
|
23676
23987
|
*/
|
|
23677
23988
|
renderHtmlActionClear() {
|
|
23678
|
-
return u$
|
|
23989
|
+
return u$3`
|
|
23679
23990
|
<div class="notification clear">
|
|
23680
23991
|
<${this.buttonTag}
|
|
23681
23992
|
@click="${this.handleClickClear}"
|
|
@@ -23701,7 +24012,7 @@ class AuroInput extends BaseInput {
|
|
|
23701
24012
|
* @returns {html} - Returns HTML for the show password button.
|
|
23702
24013
|
*/
|
|
23703
24014
|
renderHtmlNotificationPassword() {
|
|
23704
|
-
return u$
|
|
24015
|
+
return u$3`
|
|
23705
24016
|
<div class="notification">
|
|
23706
24017
|
<${this.buttonTag}
|
|
23707
24018
|
@click="${this.handleClickShowPassword}
|
|
@@ -23733,14 +24044,14 @@ class AuroInput extends BaseInput {
|
|
|
23733
24044
|
* @returns {html} - Returns HTML for the input type icon.
|
|
23734
24045
|
*/
|
|
23735
24046
|
renderHtmlTypeIcon() {
|
|
23736
|
-
return u$
|
|
24047
|
+
return u$3`
|
|
23737
24048
|
<div class="typeIcon">
|
|
23738
24049
|
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
23739
24050
|
|
|
23740
24051
|
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
23741
24052
|
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
23742
24053
|
${this.inputIconName
|
|
23743
|
-
? c([this.inputIconName], (val) => val, (name) => u$
|
|
24054
|
+
? c([this.inputIconName], (val) => val, (name) => u$3`
|
|
23744
24055
|
<${this.iconTag}
|
|
23745
24056
|
?onDark="${this.onDark}"
|
|
23746
24057
|
category="payment"
|
|
@@ -23752,7 +24063,7 @@ class AuroInput extends BaseInput {
|
|
|
23752
24063
|
`) : undefined
|
|
23753
24064
|
}
|
|
23754
24065
|
${this.type === 'date'
|
|
23755
|
-
? u$
|
|
24066
|
+
? u$3`
|
|
23756
24067
|
<${this.iconTag}
|
|
23757
24068
|
?onDark="${this.onDark}"
|
|
23758
24069
|
category="interface"
|
|
@@ -23773,16 +24084,16 @@ class AuroInput extends BaseInput {
|
|
|
23773
24084
|
* @returns {html} - Returns HTML for the help text and error message.
|
|
23774
24085
|
*/
|
|
23775
24086
|
renderHtmlHelpText() {
|
|
23776
|
-
return u$
|
|
24087
|
+
return u$3`
|
|
23777
24088
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
23778
|
-
? u$
|
|
24089
|
+
? u$3`
|
|
23779
24090
|
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
23780
24091
|
<p id="${this.uniqueId}" part="helpText">
|
|
23781
24092
|
<slot name="helptext">${this.getHelpText()}</slot>
|
|
23782
24093
|
</p>
|
|
23783
24094
|
</${this.helpTextTag}>
|
|
23784
24095
|
`
|
|
23785
|
-
: u$
|
|
24096
|
+
: u$3`
|
|
23786
24097
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
23787
24098
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
23788
24099
|
${this.errorMessage}
|
|
@@ -23794,12 +24105,12 @@ class AuroInput extends BaseInput {
|
|
|
23794
24105
|
}
|
|
23795
24106
|
|
|
23796
24107
|
/**
|
|
23797
|
-
* Returns HTML for the
|
|
24108
|
+
* Returns HTML for the classic layout.
|
|
23798
24109
|
* @private
|
|
23799
|
-
* @returns {import("lit").TemplateResult} - Returns HTML for the
|
|
24110
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
23800
24111
|
*/
|
|
23801
24112
|
renderLayoutClassic() {
|
|
23802
|
-
return u$
|
|
24113
|
+
return u$3`
|
|
23803
24114
|
<div
|
|
23804
24115
|
@click="${this.handleClick}"
|
|
23805
24116
|
class="${e(this.commonWrapperClasses)} thin"
|
|
@@ -23812,8 +24123,8 @@ class AuroInput extends BaseInput {
|
|
|
23812
24123
|
</div>
|
|
23813
24124
|
<div class="accents right">
|
|
23814
24125
|
${this.renderValidationErrorIconHtml()}
|
|
23815
|
-
${this.hasValue ? u$
|
|
23816
|
-
${!this.disabled && !this.readonly ? u$
|
|
24126
|
+
${this.hasValue ? u$3`
|
|
24127
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
23817
24128
|
${this.renderHtmlActionClear()}
|
|
23818
24129
|
` : undefined}
|
|
23819
24130
|
` : undefined}
|
|
@@ -23831,13 +24142,13 @@ class AuroInput extends BaseInput {
|
|
|
23831
24142
|
* @returns {html} - Returns HTML for the emphasized layout.
|
|
23832
24143
|
*/
|
|
23833
24144
|
renderLayoutEmphasized() {
|
|
23834
|
-
return u$
|
|
24145
|
+
return u$3`
|
|
23835
24146
|
<div
|
|
23836
24147
|
@click="${this.handleClick}"
|
|
23837
24148
|
class="${e(this.commonWrapperClasses)}"
|
|
23838
24149
|
part="wrapper">
|
|
23839
24150
|
<div class="accents left">
|
|
23840
|
-
${this.layout.includes('left') ? u$
|
|
24151
|
+
${this.layout.includes('left') ? u$3`
|
|
23841
24152
|
${this.renderValidationErrorIconHtml()}
|
|
23842
24153
|
` : undefined}
|
|
23843
24154
|
</div>
|
|
@@ -23845,11 +24156,11 @@ class AuroInput extends BaseInput {
|
|
|
23845
24156
|
${this.renderHtmlInput()}
|
|
23846
24157
|
</div>
|
|
23847
24158
|
<div class="accents right">
|
|
23848
|
-
${this.layout.includes('right') || this.layout === "emphasized" ? u$
|
|
24159
|
+
${this.layout.includes('right') || this.layout === "emphasized" ? u$3`
|
|
23849
24160
|
${this.renderValidationErrorIconHtml()}
|
|
23850
24161
|
` : undefined}
|
|
23851
|
-
${this.hasValue ? u$
|
|
23852
|
-
${!this.disabled && !this.readonly ? u$
|
|
24162
|
+
${this.hasValue ? u$3`
|
|
24163
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
23853
24164
|
${this.renderHtmlActionClear()}
|
|
23854
24165
|
` : undefined}
|
|
23855
24166
|
` : undefined}
|
|
@@ -23867,7 +24178,7 @@ class AuroInput extends BaseInput {
|
|
|
23867
24178
|
* @returns {html} - Returns HTML for the emphasized layout.
|
|
23868
24179
|
*/
|
|
23869
24180
|
renderLayoutSnowflake() {
|
|
23870
|
-
return u$
|
|
24181
|
+
return u$3`
|
|
23871
24182
|
<div
|
|
23872
24183
|
@click="${this.handleClick}"
|
|
23873
24184
|
class="${e(this.commonWrapperClasses)}"
|
|
@@ -23880,8 +24191,8 @@ class AuroInput extends BaseInput {
|
|
|
23880
24191
|
</div>
|
|
23881
24192
|
<div class="accents right">
|
|
23882
24193
|
${this.renderValidationErrorIconHtml()}
|
|
23883
|
-
${this.hasValue ? u$
|
|
23884
|
-
${!this.disabled && !this.readonly ? u$
|
|
24194
|
+
${this.hasValue ? u$3`
|
|
24195
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
23885
24196
|
${this.renderHtmlActionClear()}
|
|
23886
24197
|
` : undefined}
|
|
23887
24198
|
` : undefined}
|
|
@@ -23923,6 +24234,98 @@ class AuroInput extends BaseInput {
|
|
|
23923
24234
|
|
|
23924
24235
|
var inputVersion = '4.2.0';
|
|
23925
24236
|
|
|
24237
|
+
class AuroElement extends i$1 {
|
|
24238
|
+
static get properties() {
|
|
24239
|
+
return {
|
|
24240
|
+
|
|
24241
|
+
/**
|
|
24242
|
+
* Defines the language of an element.
|
|
24243
|
+
* @default {'default'}
|
|
24244
|
+
*/
|
|
24245
|
+
layout: {
|
|
24246
|
+
type: String,
|
|
24247
|
+
attribute: "layout",
|
|
24248
|
+
reflect: true
|
|
24249
|
+
},
|
|
24250
|
+
|
|
24251
|
+
shape: {
|
|
24252
|
+
type: String,
|
|
24253
|
+
attribute: "shape",
|
|
24254
|
+
reflect: true
|
|
24255
|
+
},
|
|
24256
|
+
|
|
24257
|
+
size: {
|
|
24258
|
+
type: String,
|
|
24259
|
+
attribute: "size",
|
|
24260
|
+
reflect: true
|
|
24261
|
+
},
|
|
24262
|
+
|
|
24263
|
+
onDark: {
|
|
24264
|
+
type: Boolean,
|
|
24265
|
+
attribute: "ondark",
|
|
24266
|
+
reflect: true
|
|
24267
|
+
}
|
|
24268
|
+
};
|
|
24269
|
+
}
|
|
24270
|
+
|
|
24271
|
+
resetShapeClasses() {
|
|
24272
|
+
if (this.shape && this.size) {
|
|
24273
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
24274
|
+
|
|
24275
|
+
if (wrapper) {
|
|
24276
|
+
wrapper.classList.forEach((className) => {
|
|
24277
|
+
if (className.startsWith('shape-')) {
|
|
24278
|
+
wrapper.classList.remove(className);
|
|
24279
|
+
}
|
|
24280
|
+
});
|
|
24281
|
+
|
|
24282
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
24283
|
+
}
|
|
24284
|
+
}
|
|
24285
|
+
}
|
|
24286
|
+
|
|
24287
|
+
resetLayoutClasses() {
|
|
24288
|
+
if (this.layout) {
|
|
24289
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
24290
|
+
|
|
24291
|
+
if (wrapper) {
|
|
24292
|
+
wrapper.classList.forEach((className) => {
|
|
24293
|
+
if (className.startsWith('layout-')) {
|
|
24294
|
+
wrapper.classList.remove(className);
|
|
24295
|
+
}
|
|
24296
|
+
});
|
|
24297
|
+
|
|
24298
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
24299
|
+
}
|
|
24300
|
+
}
|
|
24301
|
+
}
|
|
24302
|
+
|
|
24303
|
+
updateComponentArchitecture() {
|
|
24304
|
+
this.resetLayoutClasses();
|
|
24305
|
+
this.resetShapeClasses();
|
|
24306
|
+
}
|
|
24307
|
+
|
|
24308
|
+
updated(changedProperties) {
|
|
24309
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
24310
|
+
this.updateComponentArchitecture();
|
|
24311
|
+
}
|
|
24312
|
+
}
|
|
24313
|
+
|
|
24314
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
24315
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
24316
|
+
render() {
|
|
24317
|
+
try {
|
|
24318
|
+
return this.renderLayout();
|
|
24319
|
+
} catch (error) {
|
|
24320
|
+
// failed to get the defined layout
|
|
24321
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
24322
|
+
|
|
24323
|
+
// fallback to the default layout
|
|
24324
|
+
return this.getLayout('default');
|
|
24325
|
+
}
|
|
24326
|
+
}
|
|
24327
|
+
}
|
|
24328
|
+
|
|
23926
24329
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
23927
24330
|
// See LICENSE in the project root for license information.
|
|
23928
24331
|
|
|
@@ -23951,7 +24354,7 @@ var inputVersion = '4.2.0';
|
|
|
23951
24354
|
*/
|
|
23952
24355
|
|
|
23953
24356
|
// build the component class
|
|
23954
|
-
class AuroDatePicker extends
|
|
24357
|
+
class AuroDatePicker extends AuroElement {
|
|
23955
24358
|
constructor() {
|
|
23956
24359
|
super();
|
|
23957
24360
|
|
|
@@ -24026,7 +24429,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24026
24429
|
/**
|
|
24027
24430
|
* @private
|
|
24028
24431
|
*/
|
|
24029
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
24432
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
24030
24433
|
|
|
24031
24434
|
/**
|
|
24032
24435
|
* @private
|
|
@@ -24052,6 +24455,11 @@ class AuroDatePicker extends i$2 {
|
|
|
24052
24455
|
* @private
|
|
24053
24456
|
*/
|
|
24054
24457
|
this.monthFirst = undefined;
|
|
24458
|
+
|
|
24459
|
+
// Layout Config
|
|
24460
|
+
this.layout = 'classic';
|
|
24461
|
+
this.shape = 'classic';
|
|
24462
|
+
this.size = 'lg';
|
|
24055
24463
|
}
|
|
24056
24464
|
|
|
24057
24465
|
// This function is to define props used within the scope of this component
|
|
@@ -24332,7 +24740,10 @@ class AuroDatePicker extends i$2 {
|
|
|
24332
24740
|
return [
|
|
24333
24741
|
styleCss$d,
|
|
24334
24742
|
colorCss$c,
|
|
24335
|
-
tokensCss$a
|
|
24743
|
+
tokensCss$a,
|
|
24744
|
+
|
|
24745
|
+
// layouts
|
|
24746
|
+
classicLayoutColor
|
|
24336
24747
|
];
|
|
24337
24748
|
}
|
|
24338
24749
|
|
|
@@ -24345,7 +24756,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24345
24756
|
*
|
|
24346
24757
|
*/
|
|
24347
24758
|
static register(name = "auro-datepicker") {
|
|
24348
|
-
AuroLibraryRuntimeUtils$
|
|
24759
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroDatePicker);
|
|
24349
24760
|
}
|
|
24350
24761
|
|
|
24351
24762
|
/**
|
|
@@ -24517,7 +24928,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24517
24928
|
* @returns {void}
|
|
24518
24929
|
*/
|
|
24519
24930
|
configureInput() {
|
|
24520
|
-
this.triggerInput = this.dropdown.querySelector('[slot="trigger"');
|
|
24931
|
+
this.triggerInput = this.dropdown.querySelector('[slot="trigger"]');
|
|
24521
24932
|
|
|
24522
24933
|
this.inputList = [...this.dropdown.querySelectorAll(this.inputTag._$litStatic$)];
|
|
24523
24934
|
|
|
@@ -24958,70 +25369,152 @@ class AuroDatePicker extends i$2 {
|
|
|
24958
25369
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
24959
25370
|
}
|
|
24960
25371
|
|
|
25372
|
+
// layout render methods
|
|
25373
|
+
// ------------------------------------
|
|
25374
|
+
|
|
25375
|
+
/**
|
|
25376
|
+
* Base wrapper for the datepicker layout - every layout follows this same structure
|
|
25377
|
+
* with minor variations in DOM structure.
|
|
25378
|
+
* @param {import("lit").TemplateResult} content - The content to be rendered inside the base layout.
|
|
25379
|
+
* @return {import("lit").TemplateResult}
|
|
25380
|
+
* @private
|
|
25381
|
+
*/
|
|
25382
|
+
_renderBaseLayout(content) {
|
|
25383
|
+
return u$3`
|
|
25384
|
+
<div
|
|
25385
|
+
part="wrapper">
|
|
25386
|
+
<div class="accents left">
|
|
25387
|
+
calendar icon
|
|
25388
|
+
</div>
|
|
25389
|
+
<div class="mainContent">
|
|
25390
|
+
${content}
|
|
25391
|
+
</div>
|
|
25392
|
+
<div class="accents right">
|
|
25393
|
+
error and/or close icon here :)
|
|
25394
|
+
</div>
|
|
25395
|
+
</div>
|
|
25396
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
25397
|
+
help text here (see combobox for example)
|
|
25398
|
+
</div>
|
|
25399
|
+
`;
|
|
25400
|
+
}
|
|
25401
|
+
|
|
25402
|
+
/**
|
|
25403
|
+
* Renders the emphasized layout for the datepicker.
|
|
25404
|
+
* @private
|
|
25405
|
+
* @return {import("lit").TemplateResult}
|
|
25406
|
+
*/
|
|
25407
|
+
renderEmphasizedLayout() {
|
|
25408
|
+
return u$3`
|
|
25409
|
+
<div
|
|
25410
|
+
part="wrapper">
|
|
25411
|
+
<div class="accents left">
|
|
25412
|
+
calendar icon
|
|
25413
|
+
</div>
|
|
25414
|
+
<div class="mainContent">
|
|
25415
|
+
${this.renderTempInputs()}
|
|
25416
|
+
</div>
|
|
25417
|
+
<div class="accents right">
|
|
25418
|
+
error and/or close icon here :)
|
|
25419
|
+
</div>
|
|
25420
|
+
</div>
|
|
25421
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
25422
|
+
help text here (see combobox for example)
|
|
25423
|
+
</div>
|
|
25424
|
+
`;
|
|
25425
|
+
}
|
|
25426
|
+
|
|
25427
|
+
renderLayoutFromAttributes() {
|
|
25428
|
+
switch (this.layout) {
|
|
25429
|
+
case 'emphasized':
|
|
25430
|
+
return this.renderEmphasizedLayout();
|
|
25431
|
+
default:
|
|
25432
|
+
// TODO: remove when all base layouts are implemented and instead return classic
|
|
25433
|
+
return u$3`
|
|
25434
|
+
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
25435
|
+
`;
|
|
25436
|
+
}
|
|
25437
|
+
}
|
|
25438
|
+
|
|
25439
|
+
renderTempInputs() {
|
|
25440
|
+
return u$3`
|
|
25441
|
+
<${this.inputTag}
|
|
25442
|
+
id="${this.generateRandomString(12)}"
|
|
25443
|
+
bordered
|
|
25444
|
+
class="dateFrom"
|
|
25445
|
+
?onDark="${this.onDark}"
|
|
25446
|
+
?required="${this.required}"
|
|
25447
|
+
noValidate
|
|
25448
|
+
type="date"
|
|
25449
|
+
.format="${this.format}"
|
|
25450
|
+
.max="${this.maxDate}"
|
|
25451
|
+
.min="${this.minDate}"
|
|
25452
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
25453
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25454
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25455
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25456
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25457
|
+
?disabled="${this.disabled}"
|
|
25458
|
+
inputmode="${o(this.inputmode)}"
|
|
25459
|
+
part="input">
|
|
25460
|
+
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
25461
|
+
</${this.inputTag}>
|
|
25462
|
+
${this.range ? u$3`
|
|
25463
|
+
<${this.inputTag}
|
|
25464
|
+
id="${this.generateRandomString(12)}"
|
|
25465
|
+
bordered
|
|
25466
|
+
class="dateTo"
|
|
25467
|
+
?onDark="${this.onDark}"
|
|
25468
|
+
?required="${this.required}"
|
|
25469
|
+
noValidate
|
|
25470
|
+
type="date"
|
|
25471
|
+
.format="${this.format}"
|
|
25472
|
+
.max="${this.maxDate}"
|
|
25473
|
+
.min="${this.minDate}"
|
|
25474
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
25475
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25476
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25477
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25478
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25479
|
+
?disabled="${this.disabled}"
|
|
25480
|
+
part="input">
|
|
25481
|
+
<span slot="label"><slot name="toLabel"></slot></span>
|
|
25482
|
+
</${this.inputTag}>
|
|
25483
|
+
` : undefined}`;
|
|
25484
|
+
}
|
|
25485
|
+
|
|
25486
|
+
// ------------------------------------
|
|
25487
|
+
// end of layout render methods
|
|
25488
|
+
|
|
24961
25489
|
// function that renders the HTML and CSS into the scope of the component
|
|
24962
25490
|
render() {
|
|
24963
|
-
|
|
24964
|
-
|
|
25491
|
+
// Base HTML render() handles dropdown and calendar bib
|
|
25492
|
+
return u$3`
|
|
25493
|
+
<div>
|
|
24965
25494
|
<${this.dropdownTag}
|
|
24966
|
-
|
|
24967
|
-
fluid
|
|
24968
|
-
bordered
|
|
24969
|
-
rounded
|
|
25495
|
+
?autoPlacement="${this.autoPlacement}"
|
|
24970
25496
|
?onDark="${this.onDark}"
|
|
24971
25497
|
?disabled="${this.disabled}"
|
|
24972
25498
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
24973
|
-
|
|
25499
|
+
?noFlip="${this.noFlip}"
|
|
24974
25500
|
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
24975
|
-
.
|
|
25501
|
+
.layout="${this.layout}"
|
|
24976
25502
|
.offset="${this.offset}"
|
|
24977
|
-
|
|
24978
|
-
|
|
24979
|
-
|
|
25503
|
+
.placement="${this.placement}"
|
|
25504
|
+
.shape="${this.shape}"
|
|
25505
|
+
.size="${this.size}"
|
|
25506
|
+
bordered
|
|
25507
|
+
disableEventShow
|
|
25508
|
+
fluid
|
|
25509
|
+
for="dropdownMenu"
|
|
25510
|
+
part="dropdown"
|
|
25511
|
+
rounded
|
|
25512
|
+
simple
|
|
25513
|
+
>
|
|
24980
25514
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
24981
|
-
|
|
24982
|
-
id="${this.generateRandomString(12)}"
|
|
24983
|
-
bordered
|
|
24984
|
-
class="dateFrom"
|
|
24985
|
-
?onDark="${this.onDark}"
|
|
24986
|
-
?required="${this.required}"
|
|
24987
|
-
noValidate
|
|
24988
|
-
type="date"
|
|
24989
|
-
.format="${this.format}"
|
|
24990
|
-
.max="${this.maxDate}"
|
|
24991
|
-
.min="${this.minDate}"
|
|
24992
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
24993
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
24994
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
24995
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
24996
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
24997
|
-
?disabled="${this.disabled}"
|
|
24998
|
-
inputmode="${o(this.inputmode)}"
|
|
24999
|
-
part="input">
|
|
25000
|
-
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
25001
|
-
</${this.inputTag}>
|
|
25002
|
-
${this.range ? u$2`
|
|
25003
|
-
<${this.inputTag}
|
|
25004
|
-
id="${this.generateRandomString(12)}"
|
|
25005
|
-
bordered
|
|
25006
|
-
class="dateTo"
|
|
25007
|
-
?onDark="${this.onDark}"
|
|
25008
|
-
?required="${this.required}"
|
|
25009
|
-
noValidate
|
|
25010
|
-
type="date"
|
|
25011
|
-
.format="${this.format}"
|
|
25012
|
-
.max="${this.maxDate}"
|
|
25013
|
-
.min="${this.minDate}"
|
|
25014
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
25015
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25016
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25017
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25018
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25019
|
-
?disabled="${this.disabled}"
|
|
25020
|
-
part="input">
|
|
25021
|
-
<span slot="label"><slot name="toLabel"></slot></span>
|
|
25022
|
-
</${this.inputTag}>
|
|
25023
|
-
` : undefined}
|
|
25515
|
+
${this.renderLayoutFromAttributes()}
|
|
25024
25516
|
</div>
|
|
25517
|
+
|
|
25025
25518
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
25026
25519
|
<auro-formkit-calendar
|
|
25027
25520
|
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
@@ -25037,16 +25530,16 @@ class AuroDatePicker extends i$2 {
|
|
|
25037
25530
|
>
|
|
25038
25531
|
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
25039
25532
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
25040
|
-
<span slot="bib.fullscreen.fromStr">${this.value || u$
|
|
25041
|
-
${this.range ? u$
|
|
25533
|
+
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
25534
|
+
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
25042
25535
|
</auro-formkit-calendar>
|
|
25043
25536
|
</div>
|
|
25044
25537
|
<p slot="helpText" part="helpTextSpan">
|
|
25045
25538
|
<!-- Help text and error message template -->
|
|
25046
25539
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
25047
|
-
? u$
|
|
25540
|
+
? u$3`
|
|
25048
25541
|
<slot name="helpText"></slot>
|
|
25049
|
-
` : u$
|
|
25542
|
+
` : u$3`
|
|
25050
25543
|
<span role="alert" aria-live="assertive" part="helpText">
|
|
25051
25544
|
${this.errorMessage}
|
|
25052
25545
|
</span>`
|