@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
|
@@ -257,38 +257,19 @@ function resetStateExample() {
|
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
/**
|
|
261
|
-
* @license
|
|
262
|
-
* Copyright 2019 Google LLC
|
|
263
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
264
|
-
*/
|
|
265
|
-
const t$3=globalThis,e$4=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$4=Symbol(),o$6=new WeakMap;let n$4 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$6.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$6.set(s,t));}return t}toString(){return this.cssText}};const r$4=t=>new n$4("string"==typeof t?t:t+"",void 0,s$4),i$5=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$4(o,t,s$4)},S$1=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$3.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$3=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$4(e)})(t):t;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* @license
|
|
269
|
-
* Copyright 2017 Google LLC
|
|
270
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
|
-
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$3,getOwnPropertySymbols:o$5,getPrototypeOf:n$3}=Object,a$2=globalThis,c$2=a$2.trustedTypes,l$2=c$2?c$2.emptyScript:"",p$2=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$4={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),b={attribute:true,type:String,converter:u$4,reflect:false,useDefault:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$3(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$3(t),...o$5(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$3(s));}else void 0!==s&&i.push(c$3(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$4).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$4;this._$Em=e,this[e]=h.fromAttribute(s,t.type)??this._$Ej?.get(e)??null,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f$1)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}};y$1.elementStyles=[],y$1.shadowRootOptions={mode:"open"},y$1[d$1("elementProperties")]=new Map,y$1[d$1("finalized")]=new Map,p$2?.({ReactiveElement:y$1}),(a$2.reactiveElementVersions??=[]).push("2.1.0");
|
|
272
|
-
|
|
273
260
|
/**
|
|
274
261
|
* @license
|
|
275
262
|
* Copyright 2017 Google LLC
|
|
276
263
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
277
264
|
*/
|
|
278
|
-
const t$
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* @license
|
|
282
|
-
* Copyright 2017 Google LLC
|
|
283
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
|
-
*/const s$2=globalThis;let i$2 = class i extends y$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}};i$2._$litElement$=true,i$2["finalized"]=true,s$2.litElementHydrateSupport?.({LitElement:i$2});const o$3=s$2.litElementPolyfillSupport;o$3?.({LitElement:i$2});(s$2.litElementVersions??=[]).push("4.2.0");
|
|
265
|
+
const t$3=globalThis,i$5=t$3.trustedTypes,s$4=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$4="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$6="?"+h$1,n$4=`<${o$6}>`,r$4=document,l$2=()=>r$4.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$4=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_=/>/g,m$1=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y$1(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$4.createTreeWalker(r$4,129);function P(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$4?s$4.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$1;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$1?"!--"===u[1]?c=v$1:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):void 0!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f$1,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1:'"'===u[3]?g:p$2):c===g||c===p$2?c=m$1:c===v$1||c===_?c=f$1:(c=m$1,r=void 0);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1?s+n$4:d>=0?(o.push(a),s.slice(0,d)+e$4+s.slice(d)+h$1+x):s+h$1+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$4)){const i=v[a++],s=r.getAttribute(t).split(h$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h$1),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$6)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1,t+1));)d.push({type:7,index:c}),t+=h$1.length-1;}c++;}}static createElement(t,i){const s=r$4.createElement("template");return s.innerHTML=t,s}}function S$1(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$1(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$4).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$4,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1(this,t,i),c$3(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$4.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2()),this.O(l$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$1(this,t,i,0),o=!c$3(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$1(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$3(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$1(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1(this,t);}}const Z={I:R},j=t$3.litHtmlPolyfillSupport;j?.(N,R),(t$3.litHtmlVersions??=[]).push("3.3.0");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$2(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
285
266
|
|
|
286
267
|
/**
|
|
287
268
|
* @license
|
|
288
269
|
* Copyright 2020 Google LLC
|
|
289
270
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
290
271
|
*/
|
|
291
|
-
const a=Symbol.for(""),o$
|
|
272
|
+
const a$1=Symbol.for(""),o$5=t=>{if(t?.r===a$1)return t?._$litStatic$},s$3=t=>({_$litStatic$:t,r:a$1}),i$4=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$1}),l$1=new Map,n$3=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$5(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l$1.get(t))&&(n.raw=n,l$1.set(t,r=n)),e=u;}return t(r,...e)},u$3=n$3(x);
|
|
292
273
|
|
|
293
274
|
let DateFormatter$1 = class DateFormatter {
|
|
294
275
|
|
|
@@ -346,9 +327,10 @@ let DateFormatter$1 = class DateFormatter {
|
|
|
346
327
|
/**
|
|
347
328
|
* Convert a date object to string format.
|
|
348
329
|
* @param {Object} date - Date to convert to string.
|
|
349
|
-
* @
|
|
330
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
331
|
+
* @returns {String} Returns the date as a string.
|
|
350
332
|
*/
|
|
351
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
333
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
352
334
|
year: "numeric",
|
|
353
335
|
month: "2-digit",
|
|
354
336
|
day: "2-digit",
|
|
@@ -540,7 +522,7 @@ let AuroDateUtilities$1 = class AuroDateUtilities extends AuroDateUtilitiesBase$
|
|
|
540
522
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
541
523
|
|
|
542
524
|
// Get the date string of the date object we created from the string date
|
|
543
|
-
const actualDateStr = dateFormatter$1.getDateAsString(dateObj);
|
|
525
|
+
const actualDateStr = dateFormatter$1.getDateAsString(dateObj, "en-US");
|
|
544
526
|
|
|
545
527
|
// Guard Clause: Generated date matches date string input
|
|
546
528
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -705,7 +687,7 @@ const {
|
|
|
705
687
|
|
|
706
688
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
707
689
|
|
|
708
|
-
let AuroLibraryRuntimeUtils$
|
|
690
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
709
691
|
|
|
710
692
|
/* eslint-disable jsdoc/require-param */
|
|
711
693
|
|
|
@@ -775,7 +757,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
775
757
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
776
758
|
|
|
777
759
|
constructor() {
|
|
778
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
760
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
779
761
|
}
|
|
780
762
|
|
|
781
763
|
/**
|
|
@@ -1164,7 +1146,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
|
1164
1146
|
*/
|
|
1165
1147
|
generateTag(baseName, version, tagClass) {
|
|
1166
1148
|
const elementName = this.generateElementName(baseName, version);
|
|
1167
|
-
const tag = i$
|
|
1149
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
1168
1150
|
|
|
1169
1151
|
if (!customElements.get(elementName)) {
|
|
1170
1152
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -1373,6 +1355,25 @@ class AuroDatepickerUtilities {
|
|
|
1373
1355
|
}
|
|
1374
1356
|
}
|
|
1375
1357
|
|
|
1358
|
+
/**
|
|
1359
|
+
* @license
|
|
1360
|
+
* Copyright 2019 Google LLC
|
|
1361
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1362
|
+
*/
|
|
1363
|
+
const t$2=globalThis,e$3=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$3&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$4.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$2("string"==typeof t?t:t+"",void 0,s$2),i$3=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$2(o,t,s$2)},S=(s,o)=>{if(e$3)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$3?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* @license
|
|
1367
|
+
* Copyright 2017 Google LLC
|
|
1368
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1369
|
+
*/const{is:i$2,defineProperty:e$2,getOwnPropertyDescriptor:h,getOwnPropertyNames:r$2,getOwnPropertySymbols:o$3,getPrototypeOf:n$1}=Object,a=globalThis,c$1=a.trustedTypes,l=c$1?c$1.emptyScript:"",p$1=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f=(t,s)=>!i$2(t,s),b={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$2(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...r$2(t),...o$3(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=h.fromAttribute(s,t.type)??this._$Ej?.get(e)??null,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[d("elementProperties")]=new Map,y[d("finalized")]=new Map,p$1?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push("2.1.0");
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* @license
|
|
1373
|
+
* Copyright 2017 Google LLC
|
|
1374
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1375
|
+
*/const s$1=globalThis;let i$1 = class i extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}};i$1._$litElement$=true,i$1["finalized"]=true,s$1.litElementHydrateSupport?.({LitElement:i$1});const o$2=s$1.litElementPolyfillSupport;o$2?.({LitElement:i$1});(s$1.litElementVersions??=[]).push("4.2.0");
|
|
1376
|
+
|
|
1376
1377
|
class UtilitiesCalendarRender {
|
|
1377
1378
|
constructor() {
|
|
1378
1379
|
this.util = new AuroDatepickerUtilities();
|
|
@@ -1529,19 +1530,21 @@ class UtilitiesCalendarRender {
|
|
|
1529
1530
|
}
|
|
1530
1531
|
}
|
|
1531
1532
|
|
|
1532
|
-
var styleCss$d = i$
|
|
1533
|
+
var styleCss$d = i$3`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([layout=classic]) [auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}:host([layout=classic]) [auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout=classic]) [auro-input]::part(helpText){display:none}:host([layout=classic]) [auro-input]::part(wrapper):focus-within:before{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem);--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:not(:first-child)::part(wrapper)::after{position:absolute;left:50%;width:95%;height:1px;background-color:var(--ds-auro-datepicker-range-input-divider-color);content:"";transform:translateX(-50%)}:host([layout=classic]) [auro-input]::part(wrapper) .outerWrapper{position:relative;container:outerwrapper/inline-size}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2){margin-left:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(accentIcon){display:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(label){left:0;width:100%}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(input){padding-left:0}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2):before{position:absolute;top:13px;left:calc(var(--ds-size-150, 0.75rem)*-1);display:block;width:1px;height:2rem;content:""}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:not(:first-child)::part(wrapper):after{content:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked])[range] [auro-input]{max-width:50%}@media screen and (max-width: 576px){:host([layout=classic]) [auro-input]::part(wrapper) ::part(popover){position:fixed !important;top:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin-bottom:var(--ds-size-200, 1rem);transform:unset !important}:host([layout=classic]) [auro-input]::part(wrapper) .calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
|
|
1533
1534
|
|
|
1534
|
-
var colorCss$c = i$
|
|
1535
|
+
var colorCss$c = i$3`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host([onDark]){--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
1535
1536
|
|
|
1536
|
-
var tokensCss$a = i$
|
|
1537
|
+
var tokensCss$a = i$3`:host{--ds-auro-datepicker-placeholder-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-calendar-nav-btn-border-color: transparent;--ds-auro-calendar-nav-btn-chevron-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-calendar-nav-btn-container-color: transparent;--ds-auro-calendar-month-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-month-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-month-header-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-border-color: transparent;--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-in-range-color: var(--ds-advanced-color-shared-background-muted, #f7f7f7);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
1537
1538
|
|
|
1538
|
-
var
|
|
1539
|
+
var classicLayoutColor = i$3`:host [auro-dropdown]::part(wrapper){border:1px solid aqua;outline:2px solid crimson}`;
|
|
1539
1540
|
|
|
1540
|
-
var
|
|
1541
|
+
var styleCss$c = i$3`:host{--calendar-width: 336px;--mobile-footer-height: 150px;--mobile-header-height: 68px;height:100vh;height:100dvh}.calendars{display:flex;flex-direction:row}.calendarNavButtons{position:absolute;top:var(--ds-size-200, 1rem);right:var(--ds-size-50, 0.25rem);left:var(--ds-size-50, 0.25rem)}.calendarNavBtn{display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.prevMonth,.nextMonth{position:absolute;top:0}.prevMonth{left:0}.nextMonth{right:0}.headerActions{padding:0 var(--ds-size-200, 1rem)}.mobileHeader{width:100%;height:var(--mobile-header-height);z-index:1;align-items:center;flex-direction:row}.headerDateFrom{display:flex;height:var(--mobile-header-height);flex:1;flex-direction:column;justify-content:center;padding:0 var(--ds-size-150, 0.75rem) 0 var(--ds-size-200, 1rem)}.mobileDateLabel{font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}.headerDateTo{height:calc(var(--mobile-header-height) - var(--ds-size-300, 1.5rem));padding:var(--ds-size-300, 1.5rem) var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host(:not([noRange])) .headerDateTo{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center}:host(:not([noRange])) .headerDateTo:after{position:absolute;top:calc(50% + 10px);left:0;display:block;width:1px;height:var(--ds-size-300, 1.5rem);content:"";transform:translateY(-50%)}.mobileFooter{display:none;width:100%;align-items:flex-end;flex-direction:column;justify-content:flex-end}.mobileFooterActions{position:relative;bottom:0;left:50%;display:none;width:calc(100% - var(--ds-size-200, 1rem)*2);align-items:flex-end;flex-direction:column;justify-content:flex-end;padding:var(--ds-size-150) calc(var(--ds-size-200, 1rem));transform:translateX(-50%)}.mobileFooterActions auro-button{width:100%}:host([isfullscreen]){width:100%;max-height:100dvh;overflow:hidden}:host([isfullscreen]) .prevMonth,:host([isfullscreen]) .nextMonth{display:none}:host([isfullscreen]) .mobileHeader,:host([isfullscreen]) .mobileFooter,:host([isfullscreen]) .mobileFooterActions{display:flex}:host([isfullscreen]) .calendarWrapper{display:flex;flex-direction:column}:host([isfullscreen]) .calendars{display:flex;flex-direction:column;flex:1;align-items:center;width:100%;overscroll-behavior:contain}:host([isfullscreen]) .calendars:after{display:block;width:100%;height:var(--mobile-footer-height);content:""}`;
|
|
1541
1542
|
|
|
1542
|
-
var
|
|
1543
|
+
var colorCss$b = i$3`.calendarNavBtn{border-color:var(--ds-auro-calendar-nav-btn-border-color);background-color:var(--ds-auro-calendar-nav-btn-container-color);color:var(--ds-auro-calendar-nav-btn-chevron-color)}.calendarNavBtn:hover{--ds-auro-calendar-nav-btn-container-color: var(--ds-advanced-color-state-background-hover, #f2f2f2);--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a)}.calendarNavBtn:focus{--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a)}.calendarNavBtn:active{--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a);box-shadow:inset 0 0 0 1px var(--ds-auro-calendar-nav-btn-border-color)}.mobileHeader{background-color:var(--ds-auro-calendar-mobile-header-container-color)}.mobileDateLabel{color:var(--ds-auro-calendar-mobile-header-text-color)}:host(:not([noRange])) .headerDateTo:after{background-color:var(--ds-auro-calendar-mobile-header-divider-color)}::slotted([slot="bib.fullscreen.fromStr"]),::slotted([slot=mobileDateToStr]){color:var(--ds-auro-datepicker-placeholder-color)}@media screen and (max-width: 576px){.calendarNavBtn{--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a)}}`;
|
|
1543
1544
|
|
|
1544
|
-
var
|
|
1545
|
+
var styleCss$b = i$3`:focus:not(:focus-visible){outline:3px solid transparent}:host{position:relative;display:block;width:calc(100% - var(--ds-size-200, 1rem) - var(--ds-size-200, 1rem));margin:0 var(--ds-size-200, 1rem)}@media screen and (min-width: 576px){:host{width:336px;padding:var(--ds-size-200, 1rem)}}@media screen and (min-width: 576px){:host(:not(:last-of-type)):after{position:absolute;top:var(--ds-size-200, 1rem);right:calc(-1*var(--ds-size-200, 1rem));height:calc(100% - var(--ds-size-200, 1rem) - var(--ds-size-200, 1rem));display:block;width:1px;content:""}}.header{display:flex;height:var(--ds-size-500, 2.5rem);margin-bottom:var(--ds-size-150, 0.75rem);align-items:center;flex-direction:row;text-align:center}.headerTitle{display:flex;align-items:center;flex:1;flex-direction:row;justify-content:center;font-size:var(--ds-basic-text-heading-xs-breakpoint-md-font-size, 20px);font-weight:var(--ds-basic-text-heading-xs-breakpoint-md-font-weight, 450);letter-spacing:var(--ds-basic-text-heading-xs-breakpoint-md-letter-spacing, 0);line-height:var(--ds-basic-text-heading-xs-breakpoint-md-line-height, 130%)}.headerTitle div:first-child{margin-right:var(--ds-size-100, 0.5rem)}.calendarNavBtn{position:relative;display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.table{width:100%;border-collapse:collapse}.thead{margin-bottom:var(--ds-size-100, 0.5rem)}.th{display:flex;flex:1;align-items:center;justify-content:center;font-weight:700}.tbody{width:100%;transition:all 0ms;transform:translateX(0)}@media screen and (min-width: 576px){.tbody{height:384px}}.td{flex:1;margin:0;padding:0}.tr{display:flex;flex-direction:row;width:100%}`;
|
|
1546
|
+
|
|
1547
|
+
var colorCss$a = i$3`:focus:not(:focus-visible){outline:3px solid transparent}:host{background-color:var(--ds-auro-calendar-month-container-color)}@media screen and (min-width: 576px){:host(:not(:last-of-type)):after{background-color:var(--ds-auro-calendar-month-divider-color)}}.header{color:var(--ds-auro-calendar-month-header-color)}`;
|
|
1545
1548
|
|
|
1546
1549
|
/******************************************************************************
|
|
1547
1550
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1576,7 +1579,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
1576
1579
|
* @license
|
|
1577
1580
|
* Copyright 2017 Google LLC
|
|
1578
1581
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1579
|
-
*/const o$1={attribute:true,type:String,converter:u$
|
|
1582
|
+
*/const o$1={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f},r$1=(t=o$1,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),"setter"===n&&((t=Object.create(t)).wrapped=true),s.set(r.name,t),"accessor"===n){const{name:o}=r;return {set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t);},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t);}}throw Error("Unsupported decorator location: "+n)};function n(t){return (e,o)=>"object"==typeof o?r$1(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}
|
|
1580
1583
|
|
|
1581
1584
|
/**
|
|
1582
1585
|
* @module constants
|
|
@@ -7332,7 +7335,7 @@ function subYears(date, amount, options) {
|
|
|
7332
7335
|
return addYears(date, -1, options);
|
|
7333
7336
|
}
|
|
7334
7337
|
|
|
7335
|
-
class RangeDatepickerCell extends i$
|
|
7338
|
+
class RangeDatepickerCell extends i$1 {
|
|
7336
7339
|
constructor() {
|
|
7337
7340
|
super(...arguments);
|
|
7338
7341
|
this.day = null;
|
|
@@ -7453,7 +7456,7 @@ class RangeDatepickerCell extends i$2 {
|
|
|
7453
7456
|
});
|
|
7454
7457
|
}
|
|
7455
7458
|
}
|
|
7456
|
-
RangeDatepickerCell.styles = i$
|
|
7459
|
+
RangeDatepickerCell.styles = i$3`
|
|
7457
7460
|
:host {
|
|
7458
7461
|
display: block;
|
|
7459
7462
|
}
|
|
@@ -7533,7 +7536,7 @@ __decorate([n({ type: Array })], RangeDatepickerCell.prototype, "disabledDays",
|
|
|
7533
7536
|
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", void 0);
|
|
7534
7537
|
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", void 0);
|
|
7535
7538
|
__decorate([n({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
7536
|
-
AuroLibraryRuntimeUtils$
|
|
7539
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
7537
7540
|
|
|
7538
7541
|
class Day {
|
|
7539
7542
|
constructor(date) {
|
|
@@ -7542,7 +7545,7 @@ class Day {
|
|
|
7542
7545
|
}
|
|
7543
7546
|
}
|
|
7544
7547
|
|
|
7545
|
-
class RangeDatepickerCalendar extends i$
|
|
7548
|
+
class RangeDatepickerCalendar extends i$1 {
|
|
7546
7549
|
constructor() {
|
|
7547
7550
|
super();
|
|
7548
7551
|
|
|
@@ -7928,7 +7931,7 @@ class RangeDatepickerCalendar extends i$2 {
|
|
|
7928
7931
|
}
|
|
7929
7932
|
}
|
|
7930
7933
|
|
|
7931
|
-
RangeDatepickerCalendar.styles = i$
|
|
7934
|
+
RangeDatepickerCalendar.styles = i$3`
|
|
7932
7935
|
:host {
|
|
7933
7936
|
display: block;
|
|
7934
7937
|
width: 266px;
|
|
@@ -8051,7 +8054,7 @@ __decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList",
|
|
|
8051
8054
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", void 0);
|
|
8052
8055
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", void 0);
|
|
8053
8056
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", void 0);
|
|
8054
|
-
AuroLibraryRuntimeUtils$
|
|
8057
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
8055
8058
|
|
|
8056
8059
|
/**
|
|
8057
8060
|
* @license
|
|
@@ -8066,15 +8069,15 @@ const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});cl
|
|
|
8066
8069
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8067
8070
|
*/const e=e$1(class extends i{constructor(t){if(super(t),t.type!==t$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
8068
8071
|
|
|
8069
|
-
var styleCss$a = i$
|
|
8072
|
+
var styleCss$a = i$3`@media screen and (max-width: 576px){:host{display:flex;justify-content:center}}.day{position:relative;width:var(--ds-size-500, 2.5rem);height:calc(var(--ds-size-700, 3.5rem) - 2px);padding:0;border-width:1px;border-style:solid;border-radius:var(--ds-size-300, 1.5rem);cursor:pointer;font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px);user-select:none}.day.disabled{cursor:default !important}.day.inRange::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%)}@media screen and (min-width: 576px){.day.inRange::before{width:var(--ds-size-600, 3rem)}}.day.rangeDepartDate::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%);width:7.1428571429vw;transform:translate(0%, -50%)}@media screen and (min-width: 576px){.day.rangeDepartDate::before{width:calc(var(--ds-size-600, 3rem)/2)}}.day.rangeReturnDate::before,.day.lastHoveredDate::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%);width:7.1428571429vw;transform:translate(-100%, -50%)}@media screen and (min-width: 576px){.day.rangeReturnDate::before,.day.lastHoveredDate::before{width:calc(var(--ds-size-600, 3rem)/2)}}.dateSlot{display:flex;flex-direction:column;font-size:var(--ds-basic-text-body-xxs-font-size, 10px);font-weight:var(--ds-basic-text-body-xxs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xxs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xxs-line-height, 14px)}::slotted([slot^=date_]){position:absolute;top:80%;left:50%;width:80%;overflow:hidden;white-space:nowrap;transform:translate(-50%, -50%)}::slotted(auro-icon){max-height:24px;max-width:24px}:host([renderForDateSlot]) .buttonWrapper{position:relative;width:100%;top:5px}:host([renderForDateSlot]) .currentDayMarker{position:relative;padding-bottom:5px;top:-8px}@media screen and (min-width: 576px){.day{width:var(--ds-size-600, 3rem);height:var(--ds-size-800, 4rem);font-family:var(--ds-basic-text-body-lg-font-family, "AS Circular");font-size:var(--ds-basic-text-body-lg-font-size, 18px);font-weight:var(--ds-basic-text-body-lg-font-weight, 450);letter-spacing:var(--ds-basic-text-body-lg-letter-spacing, 0);line-height:var(--ds-basic-text-body-lg-line-height, 26px)}.day:hover{cursor:pointer}.dateSlot{font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}}`;
|
|
8070
8073
|
|
|
8071
|
-
var colorCss$9 = i$
|
|
8074
|
+
var colorCss$9 = i$3`:host ::slotted([slot^=date_]){color:var(--ds-auro-calendar-cell-price-text-color)}:host ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-status-success, #447a1f)}:host .day{border-color:var(--ds-auro-calendar-cell-border-color);background-color:var(--ds-auro-calendar-cell-container-color);color:var(--ds-auro-calendar-cell-text-color)}:host .day.selected{--ds-auro-calendar-cell-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host .day.selected ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host .day.selected:hover{--ds-auro-calendar-cell-container-color: var(--ds-advanced-color-state-selected-hover, #00274a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host .day:hover{--ds-auro-calendar-cell-container-color: var(--ds-advanced-color-state-background-hover, #f2f2f2);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host .day.disabled{--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host .day.inRange:before,:host .day.rangeDepartDate:before,:host .day.rangeReturnDate:before,:host .day.lastHoveredDate:before{background-color:var(--ds-auro-calendar-cell-in-range-color)}:host .day.sameDateTrip:before{--ds-auro-calendar-cell-in-range-color: transparent}`;
|
|
8072
8075
|
|
|
8073
|
-
var styleCss$9 = i$
|
|
8076
|
+
var styleCss$9 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([addSpace]) :host(:not([data-show])) .popover,:host(:not([data-show])) .popover,:host([disabled]) .popover{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(*){white-space:normal}::slotted(*:hover){cursor:pointer}[data-trigger-placement]::slotted(*:hover){position:relative}[data-trigger-placement]::slotted(*:hover):before{position:absolute;left:0;display:block;width:100%;height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));content:""}[data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}[data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}:host([data-show]) .popover{z-index:var(--ds-depth-tooltip, 400)}:host([removeSpace]) .popover{margin:calc(-1*(var(--ds-size-50, 0.25rem) + 1px)) 0 !important}:host([addSpace]) .popover{margin:var(--ds-size-200, 1rem) 0 !important}:host([addSpace]) [data-trigger-placement]::slotted(*:hover):before{height:var(--ds-size-500, 2.5rem)}:host([addSpace]) [data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*var(--ds-size-500, 2.5rem))}:host([addSpace]) [data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*var(--ds-size-500, 2.5rem))}.popover{display:inline-block;max-width:calc(100% - var(--ds-size-400, 2rem));border-radius:var(--ds-border-radius, 0.375rem)}@media screen and (min-width: 576px){.popover{max-width:50%}}@media screen and (min-width: 768px){.popover{max-width:40%}}@media screen and (min-width: 1024px){.popover{max-width:27rem}}[data-popper-placement^=top]>.arrow{bottom:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=top]>.arrow:before{top:calc(-1*var(--ds-size-200, 1rem));left:calc(-1*var(--ds-size-75, 0.375rem));transform:rotate(45deg)}[data-popper-placement^=bottom]>.arrow{top:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=bottom]>.arrow:before{top:var(--ds-size-50, 0.25rem);right:calc(-1*var(--ds-size-200, 1rem));transform:rotate(-135deg)}.arrow{position:relative;margin-top:-var(--ds-size-100, 0.5rem)}.arrow:before{position:absolute;width:var(--ds-size-150, 0.75rem);height:var(--ds-size-150, 0.75rem);content:""}`;
|
|
8074
8077
|
|
|
8075
|
-
var colorCss$8 = i$
|
|
8078
|
+
var colorCss$8 = i$3`::slotted(*){color:var(--ds-auro-popover-text-color)}.popover{background-color:var(--ds-auro-popover-container-color);box-shadow:var(--ds-auro-popover-boxshadow-color)}.arrow:before{background-color:var(--ds-auro-popover-container-color);box-shadow:2px 2px 1px 0 var(--ds-auro-popover-boxshadow-color)}`;
|
|
8076
8079
|
|
|
8077
|
-
var tokensCss$9 = i$
|
|
8080
|
+
var tokensCss$9 = i$3`:host{--ds-auro-popover-boxshadow-color:var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-popover-container-color:var(--ds-basic-color-surface-default, #ffffff);--ds-auro-popover-text-color:var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
8078
8081
|
|
|
8079
8082
|
var top = 'top';
|
|
8080
8083
|
var bottom = 'bottom';
|
|
@@ -9950,7 +9953,7 @@ class Popover {
|
|
|
9950
9953
|
* @slot - Default unnamed slot for the use of popover content
|
|
9951
9954
|
* @slot trigger - The element in this slot triggers hiding and showing the popover.
|
|
9952
9955
|
*/
|
|
9953
|
-
class AuroPopover extends i$
|
|
9956
|
+
class AuroPopover extends i$1 {
|
|
9954
9957
|
constructor() {
|
|
9955
9958
|
super();
|
|
9956
9959
|
|
|
@@ -9965,7 +9968,7 @@ class AuroPopover extends i$2 {
|
|
|
9965
9968
|
privateDefaults() {
|
|
9966
9969
|
this.isPopoverVisible = false;
|
|
9967
9970
|
this.id = `popover-${(Math.random() + 1).toString(36).substring(7)}`;
|
|
9968
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9971
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
9969
9972
|
}
|
|
9970
9973
|
|
|
9971
9974
|
// function to define props used within the scope of this component
|
|
@@ -9980,9 +9983,9 @@ class AuroPopover extends i$2 {
|
|
|
9980
9983
|
|
|
9981
9984
|
static get styles() {
|
|
9982
9985
|
return [
|
|
9983
|
-
i$
|
|
9984
|
-
i$
|
|
9985
|
-
i$
|
|
9986
|
+
i$3`${styleCss$9}`,
|
|
9987
|
+
i$3`${colorCss$8}`,
|
|
9988
|
+
i$3`${tokensCss$9}`
|
|
9986
9989
|
];
|
|
9987
9990
|
}
|
|
9988
9991
|
|
|
@@ -9995,7 +9998,7 @@ class AuroPopover extends i$2 {
|
|
|
9995
9998
|
*
|
|
9996
9999
|
*/
|
|
9997
10000
|
static register(name = "auro-popover") {
|
|
9998
|
-
AuroLibraryRuntimeUtils$
|
|
10001
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroPopover);
|
|
9999
10002
|
}
|
|
10000
10003
|
|
|
10001
10004
|
connectedCallback() {
|
|
@@ -10143,7 +10146,7 @@ var popoverVersion = '4.1.3';
|
|
|
10143
10146
|
|
|
10144
10147
|
/* eslint-disable max-lines, no-underscore-dangle, no-magic-numbers, no-underscore-dangle, max-params, no-void, init-declarations, no-extra-parens, arrow-parens, max-lines, line-comment-position, no-inline-comments, lit/binding-positions, lit/no-invalid-html */
|
|
10145
10148
|
|
|
10146
|
-
class AuroCalendarCell extends i$
|
|
10149
|
+
class AuroCalendarCell extends i$1 {
|
|
10147
10150
|
constructor() {
|
|
10148
10151
|
super();
|
|
10149
10152
|
|
|
@@ -10163,7 +10166,7 @@ class AuroCalendarCell extends i$2 {
|
|
|
10163
10166
|
this.dateStr = null;
|
|
10164
10167
|
this.renderForDateSlot = false; // When false, the numerical date will render vertically centered. When true, the date will render off-center to the top and leave room below for the slot content.
|
|
10165
10168
|
|
|
10166
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
10169
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
10167
10170
|
|
|
10168
10171
|
/**
|
|
10169
10172
|
* Generate unique names for dependency components.
|
|
@@ -10481,7 +10484,7 @@ class AuroCalendarCell extends i$2 {
|
|
|
10481
10484
|
};
|
|
10482
10485
|
|
|
10483
10486
|
let _a, _b;
|
|
10484
|
-
return u$
|
|
10487
|
+
return u$3`
|
|
10485
10488
|
<${this.popoverTag}>
|
|
10486
10489
|
<slot name="popover_${this.dateStr}"></slot>
|
|
10487
10490
|
<button
|
|
@@ -10659,7 +10662,7 @@ if (!customElements.get('auro-formkit-calendar-month')) {
|
|
|
10659
10662
|
|
|
10660
10663
|
/* eslint-disable no-underscore-dangle, no-magic-numbers, no-underscore-dangle, no-void, init-declarations, no-extra-parens, no-unused-expressions */
|
|
10661
10664
|
|
|
10662
|
-
class RangeDatepicker extends i$
|
|
10665
|
+
class RangeDatepicker extends i$1 {
|
|
10663
10666
|
constructor() {
|
|
10664
10667
|
super();
|
|
10665
10668
|
|
|
@@ -10875,7 +10878,7 @@ class RangeDatepicker extends i$2 {
|
|
|
10875
10878
|
}));
|
|
10876
10879
|
}
|
|
10877
10880
|
}
|
|
10878
|
-
RangeDatepicker.styles = i$
|
|
10881
|
+
RangeDatepicker.styles = i$3`
|
|
10879
10882
|
:host {
|
|
10880
10883
|
display: block;
|
|
10881
10884
|
position: relative;
|
|
@@ -11067,11 +11070,11 @@ class CalendarUtilities {
|
|
|
11067
11070
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11068
11071
|
*/const o=o=>o??E;
|
|
11069
11072
|
|
|
11070
|
-
var colorCss$1$2 = i$
|
|
11073
|
+
var colorCss$1$2 = i$3`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
11071
11074
|
|
|
11072
|
-
var styleCss$2$2 = i$
|
|
11075
|
+
var styleCss$2$2 = i$3`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
11073
11076
|
|
|
11074
|
-
var tokenCss = i$
|
|
11077
|
+
var tokenCss = i$3`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
11075
11078
|
|
|
11076
11079
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11077
11080
|
// See LICENSE in the project root for license information.
|
|
@@ -11080,7 +11083,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
11080
11083
|
|
|
11081
11084
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11082
11085
|
|
|
11083
|
-
let AuroLibraryRuntimeUtils$
|
|
11086
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
11084
11087
|
|
|
11085
11088
|
/* eslint-disable jsdoc/require-param */
|
|
11086
11089
|
|
|
@@ -11173,7 +11176,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
11173
11176
|
*/
|
|
11174
11177
|
generateTag(baseName, version, tagClass) {
|
|
11175
11178
|
const elementName = this.generateElementName(baseName, version);
|
|
11176
|
-
const tag = i$
|
|
11179
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
11177
11180
|
|
|
11178
11181
|
if (!customElements.get(elementName)) {
|
|
11179
11182
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -11193,7 +11196,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
11193
11196
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
11194
11197
|
*/
|
|
11195
11198
|
|
|
11196
|
-
let AuroElement$
|
|
11199
|
+
let AuroElement$4 = class AuroElement extends i$1 {
|
|
11197
11200
|
|
|
11198
11201
|
// function to define props used within the scope of this component
|
|
11199
11202
|
static get properties() {
|
|
@@ -11249,7 +11252,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
11249
11252
|
return _fetchMap$2.get(uri);
|
|
11250
11253
|
};
|
|
11251
11254
|
|
|
11252
|
-
var styleCss$1$2 = i$
|
|
11255
|
+
var styleCss$1$2 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
11253
11256
|
|
|
11254
11257
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11255
11258
|
// See LICENSE in the project root for license information.
|
|
@@ -11261,7 +11264,7 @@ var styleCss$1$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
11261
11264
|
*/
|
|
11262
11265
|
|
|
11263
11266
|
// build the component class
|
|
11264
|
-
let BaseIcon$2 = class BaseIcon extends AuroElement$
|
|
11267
|
+
let BaseIcon$2 = class BaseIcon extends AuroElement$4 {
|
|
11265
11268
|
constructor() {
|
|
11266
11269
|
super();
|
|
11267
11270
|
this.onDark = false;
|
|
@@ -11291,7 +11294,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$3 {
|
|
|
11291
11294
|
}
|
|
11292
11295
|
|
|
11293
11296
|
static get styles() {
|
|
11294
|
-
return i$
|
|
11297
|
+
return i$3`
|
|
11295
11298
|
${styleCss$1$2}
|
|
11296
11299
|
`;
|
|
11297
11300
|
}
|
|
@@ -11333,9 +11336,79 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$3 {
|
|
|
11333
11336
|
}
|
|
11334
11337
|
};
|
|
11335
11338
|
|
|
11336
|
-
var tokensCss$8 = i$
|
|
11339
|
+
var tokensCss$8 = i$3`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
11340
|
+
|
|
11341
|
+
var colorCss$7 = i$3`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
11342
|
+
|
|
11343
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11344
|
+
// See LICENSE in the project root for license information.
|
|
11345
|
+
|
|
11346
|
+
// ---------------------------------------------------------------------
|
|
11347
|
+
|
|
11348
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11349
|
+
|
|
11350
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
11351
|
+
|
|
11352
|
+
/* eslint-disable jsdoc/require-param */
|
|
11353
|
+
|
|
11354
|
+
/**
|
|
11355
|
+
* This will register a new custom element with the browser.
|
|
11356
|
+
* @param {String} name - The name of the custom element.
|
|
11357
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11358
|
+
* @returns {void}
|
|
11359
|
+
*/
|
|
11360
|
+
registerComponent(name, componentClass) {
|
|
11361
|
+
if (!customElements.get(name)) {
|
|
11362
|
+
customElements.define(name, class extends componentClass {});
|
|
11363
|
+
}
|
|
11364
|
+
}
|
|
11365
|
+
|
|
11366
|
+
/**
|
|
11367
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11368
|
+
* @returns {void}
|
|
11369
|
+
*/
|
|
11370
|
+
closestElement(
|
|
11371
|
+
selector, // selector like in .closest()
|
|
11372
|
+
base = this, // extra functionality to skip a parent
|
|
11373
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11374
|
+
!el || el === document || el === window
|
|
11375
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11376
|
+
: found
|
|
11377
|
+
? found // found a selector INside this element
|
|
11378
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11379
|
+
) {
|
|
11380
|
+
return __Closest(base);
|
|
11381
|
+
}
|
|
11382
|
+
/* eslint-enable jsdoc/require-param */
|
|
11383
|
+
|
|
11384
|
+
/**
|
|
11385
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
11386
|
+
* @param {Object} elem - The element to check.
|
|
11387
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11388
|
+
* @returns {void}
|
|
11389
|
+
*/
|
|
11390
|
+
handleComponentTagRename(elem, tagName) {
|
|
11391
|
+
const tag = tagName.toLowerCase();
|
|
11392
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11393
|
+
|
|
11394
|
+
if (elemTag !== tag) {
|
|
11395
|
+
elem.setAttribute(tag, true);
|
|
11396
|
+
}
|
|
11397
|
+
}
|
|
11398
|
+
|
|
11399
|
+
/**
|
|
11400
|
+
* Validates if an element is a specific Auro component.
|
|
11401
|
+
* @param {Object} elem - The element to validate.
|
|
11402
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11403
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11404
|
+
*/
|
|
11405
|
+
elementMatch(elem, tagName) {
|
|
11406
|
+
const tag = tagName.toLowerCase();
|
|
11407
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11337
11408
|
|
|
11338
|
-
|
|
11409
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11410
|
+
}
|
|
11411
|
+
};
|
|
11339
11412
|
|
|
11340
11413
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11341
11414
|
// See LICENSE in the project root for license information.
|
|
@@ -11356,7 +11429,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11356
11429
|
*/
|
|
11357
11430
|
privateDefaults() {
|
|
11358
11431
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
11359
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11432
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
11360
11433
|
}
|
|
11361
11434
|
|
|
11362
11435
|
// function to define props used within the scope of this component
|
|
@@ -11423,9 +11496,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11423
11496
|
static get styles() {
|
|
11424
11497
|
return [
|
|
11425
11498
|
super.styles,
|
|
11426
|
-
i$
|
|
11427
|
-
i$
|
|
11428
|
-
i$
|
|
11499
|
+
i$3`${tokensCss$8}`,
|
|
11500
|
+
i$3`${styleCss$1$2}`,
|
|
11501
|
+
i$3`${colorCss$7}`
|
|
11429
11502
|
];
|
|
11430
11503
|
}
|
|
11431
11504
|
|
|
@@ -11438,7 +11511,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11438
11511
|
*
|
|
11439
11512
|
*/
|
|
11440
11513
|
static register(name = "auro-icon") {
|
|
11441
|
-
AuroLibraryRuntimeUtils$
|
|
11514
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroIcon);
|
|
11442
11515
|
}
|
|
11443
11516
|
|
|
11444
11517
|
connectedCallback() {
|
|
@@ -11506,7 +11579,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11506
11579
|
|
|
11507
11580
|
var iconVersion$2 = '8.0.3';
|
|
11508
11581
|
|
|
11509
|
-
var styleCss$8 = i$
|
|
11582
|
+
var styleCss$8 = i$3`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
11510
11583
|
|
|
11511
11584
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11512
11585
|
// See LICENSE in the project root for license information.
|
|
@@ -11526,7 +11599,7 @@ var styleCss$8 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-head
|
|
|
11526
11599
|
/* eslint complexity: ["error", 21] */
|
|
11527
11600
|
|
|
11528
11601
|
// build the component class
|
|
11529
|
-
class AuroHeader extends i$
|
|
11602
|
+
class AuroHeader extends i$1 {
|
|
11530
11603
|
constructor() {
|
|
11531
11604
|
super();
|
|
11532
11605
|
|
|
@@ -11535,7 +11608,7 @@ class AuroHeader extends i$2 {
|
|
|
11535
11608
|
/**
|
|
11536
11609
|
* @private
|
|
11537
11610
|
*/
|
|
11538
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11611
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
11539
11612
|
}
|
|
11540
11613
|
|
|
11541
11614
|
// function to define props used within the scope of this component
|
|
@@ -11565,7 +11638,7 @@ class AuroHeader extends i$2 {
|
|
|
11565
11638
|
*
|
|
11566
11639
|
*/
|
|
11567
11640
|
static register(name = "auro-header") {
|
|
11568
|
-
AuroLibraryRuntimeUtils$
|
|
11641
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroHeader);
|
|
11569
11642
|
}
|
|
11570
11643
|
|
|
11571
11644
|
firstUpdated() {
|
|
@@ -11654,14 +11727,14 @@ var headerVersion = '4.0.1';
|
|
|
11654
11727
|
// See LICENSE in the project root for license information.
|
|
11655
11728
|
|
|
11656
11729
|
|
|
11657
|
-
class AuroBibtemplate extends i$
|
|
11730
|
+
class AuroBibtemplate extends i$1 {
|
|
11658
11731
|
|
|
11659
11732
|
constructor() {
|
|
11660
11733
|
super();
|
|
11661
11734
|
|
|
11662
11735
|
this.large = false;
|
|
11663
11736
|
|
|
11664
|
-
AuroLibraryRuntimeUtils$
|
|
11737
|
+
AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
11665
11738
|
|
|
11666
11739
|
const versioning = new AuroDependencyVersioning$2();
|
|
11667
11740
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$2, AuroIcon$2);
|
|
@@ -11700,7 +11773,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
11700
11773
|
*
|
|
11701
11774
|
*/
|
|
11702
11775
|
static register(name = "auro-bibtemplate") {
|
|
11703
|
-
AuroLibraryRuntimeUtils$
|
|
11776
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
11704
11777
|
}
|
|
11705
11778
|
|
|
11706
11779
|
/**
|
|
@@ -11740,11 +11813,23 @@ class AuroBibtemplate extends i$2 {
|
|
|
11740
11813
|
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
11741
11814
|
}
|
|
11742
11815
|
|
|
11816
|
+
firstUpdated(changedProperties) {
|
|
11817
|
+
super.firstUpdated(changedProperties);
|
|
11818
|
+
|
|
11819
|
+
this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
|
|
11820
|
+
bubbles: true,
|
|
11821
|
+
composed: true,
|
|
11822
|
+
detail: {
|
|
11823
|
+
element: this
|
|
11824
|
+
}
|
|
11825
|
+
}));
|
|
11826
|
+
}
|
|
11827
|
+
|
|
11743
11828
|
// function that renders the HTML and CSS into the scope of the component
|
|
11744
11829
|
render() {
|
|
11745
|
-
return u$
|
|
11830
|
+
return u$3`
|
|
11746
11831
|
<div id="bibTemplate" part="bibtemplate">
|
|
11747
|
-
${this.isFullscreen ? u$
|
|
11832
|
+
${this.isFullscreen ? u$3`
|
|
11748
11833
|
<div id="headerContainer">
|
|
11749
11834
|
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
11750
11835
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
@@ -11761,7 +11846,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
11761
11846
|
<slot></slot>
|
|
11762
11847
|
</div>
|
|
11763
11848
|
|
|
11764
|
-
${this.isFullscreen ? u$
|
|
11849
|
+
${this.isFullscreen ? u$3`
|
|
11765
11850
|
<div id="footerContainer">
|
|
11766
11851
|
<slot name="footer"></slot>
|
|
11767
11852
|
</div>` : null}
|
|
@@ -11772,23 +11857,23 @@ class AuroBibtemplate extends i$2 {
|
|
|
11772
11857
|
|
|
11773
11858
|
var bibTemplateVersion = '1.0.0';
|
|
11774
11859
|
|
|
11775
|
-
var styleCss$7 = i$
|
|
11860
|
+
var styleCss$7 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);line-height:var(--ds-basic-text-body-default-line-height, 24px);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible{outline:none}.auro-button:focus-visible:not([variant=flat]){outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=flat]):not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-family:var(--ds-basic-text-body-sm-font-family, "AS Circular");font-size:var(--ds-basic-text-body-sm-font-size, 14px);font-weight:var(--ds-basic-text-body-sm-font-weight, 450);line-height:var(--ds-basic-text-body-sm-line-height, 20px);letter-spacing:var(--ds-basic-text-body-sm-letter-spacing, 0);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after{border-radius:100px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
11776
11861
|
|
|
11777
|
-
var colorCss$6 = i$
|
|
11862
|
+
var colorCss$6 = i$3`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
11778
11863
|
|
|
11779
|
-
var tokensCss$7 = i$
|
|
11864
|
+
var tokensCss$7 = i$3`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
11780
11865
|
|
|
11781
|
-
var styleCss$6 = i$
|
|
11866
|
+
var styleCss$6 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
11782
11867
|
|
|
11783
|
-
var colorCss$5 = i$
|
|
11868
|
+
var colorCss$5 = i$3`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
|
|
11784
11869
|
|
|
11785
|
-
var tokensCss$6 = i$
|
|
11870
|
+
var tokensCss$6 = i$3`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11786
11871
|
|
|
11787
11872
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11788
11873
|
// See LICENSE in the project root for license information.
|
|
11789
11874
|
|
|
11790
11875
|
|
|
11791
|
-
let AuroLoader$1 = class AuroLoader extends i$
|
|
11876
|
+
let AuroLoader$1 = class AuroLoader extends i$1 {
|
|
11792
11877
|
constructor() {
|
|
11793
11878
|
super();
|
|
11794
11879
|
|
|
@@ -11810,7 +11895,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
11810
11895
|
/**
|
|
11811
11896
|
* @private
|
|
11812
11897
|
*/
|
|
11813
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11898
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
11814
11899
|
|
|
11815
11900
|
this.orbit = false;
|
|
11816
11901
|
this.ringworm = false;
|
|
@@ -11858,9 +11943,9 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
11858
11943
|
|
|
11859
11944
|
static get styles() {
|
|
11860
11945
|
return [
|
|
11861
|
-
i$
|
|
11862
|
-
i$
|
|
11863
|
-
i$
|
|
11946
|
+
i$3`${styleCss$6}`,
|
|
11947
|
+
i$3`${colorCss$5}`,
|
|
11948
|
+
i$3`${tokensCss$6}`
|
|
11864
11949
|
];
|
|
11865
11950
|
}
|
|
11866
11951
|
|
|
@@ -11873,7 +11958,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
11873
11958
|
*
|
|
11874
11959
|
*/
|
|
11875
11960
|
static register(name = "auro-loader") {
|
|
11876
|
-
AuroLibraryRuntimeUtils$
|
|
11961
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroLoader);
|
|
11877
11962
|
}
|
|
11878
11963
|
|
|
11879
11964
|
firstUpdated() {
|
|
@@ -11941,7 +12026,7 @@ var loaderVersion$1 = '5.0.0';
|
|
|
11941
12026
|
|
|
11942
12027
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
11943
12028
|
|
|
11944
|
-
let AuroButton$1 = class AuroButton extends i$
|
|
12029
|
+
let AuroButton$1 = class AuroButton extends i$1 {
|
|
11945
12030
|
|
|
11946
12031
|
/**
|
|
11947
12032
|
* Enables form association for this element.
|
|
@@ -12177,7 +12262,7 @@ let AuroButton$1 = class AuroButton extends i$2 {
|
|
|
12177
12262
|
*
|
|
12178
12263
|
*/
|
|
12179
12264
|
static register(name = "auro-button") {
|
|
12180
|
-
AuroLibraryRuntimeUtils$
|
|
12265
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroButton);
|
|
12181
12266
|
}
|
|
12182
12267
|
|
|
12183
12268
|
/**
|
|
@@ -12232,7 +12317,7 @@ let AuroButton$1 = class AuroButton extends i$2 {
|
|
|
12232
12317
|
'loading': this.loading
|
|
12233
12318
|
};
|
|
12234
12319
|
|
|
12235
|
-
return u$
|
|
12320
|
+
return u$3`
|
|
12236
12321
|
<button
|
|
12237
12322
|
part="button"
|
|
12238
12323
|
aria-hidden="${o(this.ariahidden || undefined)}"
|
|
@@ -12251,11 +12336,11 @@ let AuroButton$1 = class AuroButton extends i$2 {
|
|
|
12251
12336
|
.value="${o(this.value ? this.value : undefined)}"
|
|
12252
12337
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
12253
12338
|
>
|
|
12254
|
-
${o(this.loading ? u$
|
|
12339
|
+
${o(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
12255
12340
|
|
|
12256
12341
|
<span class="contentWrapper">
|
|
12257
12342
|
<span class="textSlot" part="text">
|
|
12258
|
-
${this.iconOnly ? undefined : u$
|
|
12343
|
+
${this.iconOnly ? undefined : u$3`<slot></slot>`}
|
|
12259
12344
|
</span>
|
|
12260
12345
|
|
|
12261
12346
|
<span part="icon">
|
|
@@ -12490,7 +12575,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12490
12575
|
const firstMonth = this.firstRenderedMonth.getMonth() + 1;
|
|
12491
12576
|
const firstYear = this.firstRenderedMonth.getFullYear();
|
|
12492
12577
|
|
|
12493
|
-
renderedHtml = u$
|
|
12578
|
+
renderedHtml = u$3`${renderedHtml}${this.utilCalRender.renderCalendar(this, firstMonth, firstYear)}`;
|
|
12494
12579
|
|
|
12495
12580
|
// Loop through the number of remaining calendars to render and add the HTML
|
|
12496
12581
|
let newMonthDate = undefined;
|
|
@@ -12516,7 +12601,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12516
12601
|
const newMonthDateStr = `${newMonth}/1/${newYear}`;
|
|
12517
12602
|
newMonthDate = new Date(newMonthDateStr);
|
|
12518
12603
|
|
|
12519
|
-
renderedHtml = u$
|
|
12604
|
+
renderedHtml = u$3`${renderedHtml}${this.utilCalRender.renderCalendar(this, newMonth, newYear)}`;
|
|
12520
12605
|
}
|
|
12521
12606
|
}
|
|
12522
12607
|
|
|
@@ -12580,7 +12665,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12580
12665
|
}
|
|
12581
12666
|
|
|
12582
12667
|
render() {
|
|
12583
|
-
return u$
|
|
12668
|
+
return u$3`
|
|
12584
12669
|
<${this.bibtemplateTag}
|
|
12585
12670
|
?large="${this.largeFullscreenHeadline}"
|
|
12586
12671
|
?isFullscreen="${this.isFullscreen}"
|
|
@@ -12602,12 +12687,12 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12602
12687
|
${this.renderAllCalendars()}
|
|
12603
12688
|
</div>
|
|
12604
12689
|
<div class="calendarNavButtons">
|
|
12605
|
-
${this.showPrevMonthBtn ? u$
|
|
12690
|
+
${this.showPrevMonthBtn ? u$3`
|
|
12606
12691
|
<button class="calendarNavBtn prevMonth" @click="${this.handlePrevMonth}">
|
|
12607
12692
|
${this.util.generateIconHtml(chevronLeft)}
|
|
12608
12693
|
</button>
|
|
12609
12694
|
` : undefined}
|
|
12610
|
-
${this.showNextMonthBtn ? u$
|
|
12695
|
+
${this.showNextMonthBtn ? u$3`
|
|
12611
12696
|
<button class="calendarNavBtn nextMonth" @click="${this.handleNextMonth}">
|
|
12612
12697
|
${this.util.generateIconHtml(chevronRight)}
|
|
12613
12698
|
</button>
|
|
@@ -12632,7 +12717,7 @@ if (!customElements.get('auro-formkit-calendar')) {
|
|
|
12632
12717
|
|
|
12633
12718
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12634
12719
|
|
|
12635
|
-
let AuroLibraryRuntimeUtils$
|
|
12720
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
12636
12721
|
|
|
12637
12722
|
/* eslint-disable jsdoc/require-param */
|
|
12638
12723
|
|
|
@@ -13215,10 +13300,11 @@ const flip$1 = function (options) {
|
|
|
13215
13300
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
13216
13301
|
const nextPlacement = placements[nextIndex];
|
|
13217
13302
|
if (nextPlacement) {
|
|
13218
|
-
var _overflowsData$;
|
|
13219
13303
|
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
13220
|
-
|
|
13221
|
-
if
|
|
13304
|
+
if (!ignoreCrossAxisOverflow ||
|
|
13305
|
+
// We leave the current main axis only if every placement on that axis
|
|
13306
|
+
// overflows the main axis.
|
|
13307
|
+
overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
|
|
13222
13308
|
// Try next placement and re-run the lifecycle.
|
|
13223
13309
|
return {
|
|
13224
13310
|
data: {
|
|
@@ -14239,8 +14325,28 @@ class AuroFloatingUI {
|
|
|
14239
14325
|
if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
|
|
14240
14326
|
AuroFloatingUI.isMousePressHandlerInitialized = true;
|
|
14241
14327
|
|
|
14328
|
+
// Track timeout for isMousePressed reset to avoid race conditions
|
|
14329
|
+
if (!AuroFloatingUI._mousePressedTimeout) {
|
|
14330
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14331
|
+
}
|
|
14242
14332
|
const mouseEventGlobalHandler = (event) => {
|
|
14243
|
-
|
|
14333
|
+
const isPressed = event.type === 'mousedown';
|
|
14334
|
+
if (isPressed) {
|
|
14335
|
+
// Clear any pending timeout to prevent race condition
|
|
14336
|
+
if (AuroFloatingUI._mousePressedTimeout !== null) {
|
|
14337
|
+
clearTimeout(AuroFloatingUI._mousePressedTimeout);
|
|
14338
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14339
|
+
}
|
|
14340
|
+
if (!AuroFloatingUI.isMousePressed) {
|
|
14341
|
+
AuroFloatingUI.isMousePressed = true;
|
|
14342
|
+
}
|
|
14343
|
+
} else if (AuroFloatingUI.isMousePressed && !isPressed) {
|
|
14344
|
+
// Schedule reset and track timeout ID
|
|
14345
|
+
AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
|
|
14346
|
+
AuroFloatingUI.isMousePressed = false;
|
|
14347
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14348
|
+
}, 0);
|
|
14349
|
+
}
|
|
14244
14350
|
};
|
|
14245
14351
|
|
|
14246
14352
|
window.addEventListener('mousedown', mouseEventGlobalHandler);
|
|
@@ -14367,6 +14473,7 @@ class AuroFloatingUI {
|
|
|
14367
14473
|
|
|
14368
14474
|
// Compute the position of the bib
|
|
14369
14475
|
computePosition(this.element.trigger, this.element.bib, {
|
|
14476
|
+
strategy: this.element.floaterConfig?.strategy || 'fixed',
|
|
14370
14477
|
placement: this.element.floaterConfig?.placement,
|
|
14371
14478
|
middleware: middleware || []
|
|
14372
14479
|
}).then(({ x, y }) => { // eslint-disable-line id-length
|
|
@@ -14501,8 +14608,9 @@ class AuroFloatingUI {
|
|
|
14501
14608
|
if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
|
|
14502
14609
|
return;
|
|
14503
14610
|
}
|
|
14504
|
-
|
|
14505
|
-
if
|
|
14611
|
+
|
|
14612
|
+
// if fullscreen bib is in fullscreen mode, do not close
|
|
14613
|
+
if (this.element.bib.hasAttribute('isfullscreen')) {
|
|
14506
14614
|
return;
|
|
14507
14615
|
}
|
|
14508
14616
|
|
|
@@ -14803,8 +14911,6 @@ class AuroFloatingUI {
|
|
|
14803
14911
|
this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
|
|
14804
14912
|
}
|
|
14805
14913
|
|
|
14806
|
-
document.body.append(this.element.bib);
|
|
14807
|
-
|
|
14808
14914
|
this.regenerateBibId();
|
|
14809
14915
|
this.handleTriggerTabIndex();
|
|
14810
14916
|
|
|
@@ -14871,7 +14977,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
14871
14977
|
*/
|
|
14872
14978
|
generateTag(baseName, version, tagClass) {
|
|
14873
14979
|
const elementName = this.generateElementName(baseName, version);
|
|
14874
|
-
const tag = i$
|
|
14980
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
14875
14981
|
|
|
14876
14982
|
if (!customElements.get(elementName)) {
|
|
14877
14983
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -14891,7 +14997,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
14891
14997
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
14892
14998
|
*/
|
|
14893
14999
|
|
|
14894
|
-
let AuroElement$1$1 = class AuroElement extends i$
|
|
15000
|
+
let AuroElement$1$1 = class AuroElement extends i$1 {
|
|
14895
15001
|
|
|
14896
15002
|
// function to define props used within the scope of this component
|
|
14897
15003
|
static get properties() {
|
|
@@ -14947,7 +15053,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
14947
15053
|
return _fetchMap$1.get(uri);
|
|
14948
15054
|
};
|
|
14949
15055
|
|
|
14950
|
-
var styleCss$2$1 = i$
|
|
15056
|
+
var styleCss$2$1 = i$3`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
14951
15057
|
|
|
14952
15058
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14953
15059
|
// See LICENSE in the project root for license information.
|
|
@@ -14989,7 +15095,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
14989
15095
|
}
|
|
14990
15096
|
|
|
14991
15097
|
static get styles() {
|
|
14992
|
-
return i$
|
|
15098
|
+
return i$3`
|
|
14993
15099
|
${styleCss$2$1}
|
|
14994
15100
|
`;
|
|
14995
15101
|
}
|
|
@@ -15031,9 +15137,79 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
15031
15137
|
}
|
|
15032
15138
|
};
|
|
15033
15139
|
|
|
15034
|
-
var tokensCss$2$1 = i$
|
|
15140
|
+
var tokensCss$2$1 = i$3`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
15141
|
+
|
|
15142
|
+
var colorCss$3$1 = i$3`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
15143
|
+
|
|
15144
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
15145
|
+
// See LICENSE in the project root for license information.
|
|
15146
|
+
|
|
15147
|
+
// ---------------------------------------------------------------------
|
|
15148
|
+
|
|
15149
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
15150
|
+
|
|
15151
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
15152
|
+
|
|
15153
|
+
/* eslint-disable jsdoc/require-param */
|
|
15154
|
+
|
|
15155
|
+
/**
|
|
15156
|
+
* This will register a new custom element with the browser.
|
|
15157
|
+
* @param {String} name - The name of the custom element.
|
|
15158
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
15159
|
+
* @returns {void}
|
|
15160
|
+
*/
|
|
15161
|
+
registerComponent(name, componentClass) {
|
|
15162
|
+
if (!customElements.get(name)) {
|
|
15163
|
+
customElements.define(name, class extends componentClass {});
|
|
15164
|
+
}
|
|
15165
|
+
}
|
|
15166
|
+
|
|
15167
|
+
/**
|
|
15168
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
15169
|
+
* @returns {void}
|
|
15170
|
+
*/
|
|
15171
|
+
closestElement(
|
|
15172
|
+
selector, // selector like in .closest()
|
|
15173
|
+
base = this, // extra functionality to skip a parent
|
|
15174
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
15175
|
+
!el || el === document || el === window
|
|
15176
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
15177
|
+
: found
|
|
15178
|
+
? found // found a selector INside this element
|
|
15179
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
15180
|
+
) {
|
|
15181
|
+
return __Closest(base);
|
|
15182
|
+
}
|
|
15183
|
+
/* eslint-enable jsdoc/require-param */
|
|
15184
|
+
|
|
15185
|
+
/**
|
|
15186
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
15187
|
+
* @param {Object} elem - The element to check.
|
|
15188
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
15189
|
+
* @returns {void}
|
|
15190
|
+
*/
|
|
15191
|
+
handleComponentTagRename(elem, tagName) {
|
|
15192
|
+
const tag = tagName.toLowerCase();
|
|
15193
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
15194
|
+
|
|
15195
|
+
if (elemTag !== tag) {
|
|
15196
|
+
elem.setAttribute(tag, true);
|
|
15197
|
+
}
|
|
15198
|
+
}
|
|
15199
|
+
|
|
15200
|
+
/**
|
|
15201
|
+
* Validates if an element is a specific Auro component.
|
|
15202
|
+
* @param {Object} elem - The element to validate.
|
|
15203
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
15204
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
15205
|
+
*/
|
|
15206
|
+
elementMatch(elem, tagName) {
|
|
15207
|
+
const tag = tagName.toLowerCase();
|
|
15208
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
15035
15209
|
|
|
15036
|
-
|
|
15210
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
15211
|
+
}
|
|
15212
|
+
};
|
|
15037
15213
|
|
|
15038
15214
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
15039
15215
|
// See LICENSE in the project root for license information.
|
|
@@ -15121,9 +15297,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
15121
15297
|
static get styles() {
|
|
15122
15298
|
return [
|
|
15123
15299
|
super.styles,
|
|
15124
|
-
i$
|
|
15125
|
-
i$
|
|
15126
|
-
i$
|
|
15300
|
+
i$3`${tokensCss$2$1}`,
|
|
15301
|
+
i$3`${styleCss$2$1}`,
|
|
15302
|
+
i$3`${colorCss$3$1}`
|
|
15127
15303
|
];
|
|
15128
15304
|
}
|
|
15129
15305
|
|
|
@@ -15204,17 +15380,16 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
15204
15380
|
|
|
15205
15381
|
var iconVersion$1 = '6.1.2';
|
|
15206
15382
|
|
|
15207
|
-
var styleCss$1$1 = i$
|
|
15383
|
+
var styleCss$1$1 = i$3`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
15208
15384
|
|
|
15209
|
-
var colorCss$2$1 = i$
|
|
15385
|
+
var colorCss$2$1 = i$3`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
15210
15386
|
|
|
15211
|
-
var tokensCss$1$1 = i$
|
|
15387
|
+
var tokensCss$1$1 = i$3`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
|
|
15212
15388
|
|
|
15213
15389
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
15214
15390
|
// See LICENSE in the project root for license information.
|
|
15215
15391
|
|
|
15216
15392
|
|
|
15217
|
-
|
|
15218
15393
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
15219
15394
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
15220
15395
|
'xl',
|
|
@@ -15229,7 +15404,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
15229
15404
|
* @csspart bibContainer - Apply css to the bib container.
|
|
15230
15405
|
*/
|
|
15231
15406
|
|
|
15232
|
-
class AuroDropdownBib extends i$
|
|
15407
|
+
class AuroDropdownBib extends i$1 {
|
|
15233
15408
|
|
|
15234
15409
|
constructor() {
|
|
15235
15410
|
super();
|
|
@@ -15239,7 +15414,7 @@ class AuroDropdownBib extends i$2 {
|
|
|
15239
15414
|
*/
|
|
15240
15415
|
this._mobileBreakpointValue = undefined;
|
|
15241
15416
|
|
|
15242
|
-
AuroLibraryRuntimeUtils$
|
|
15417
|
+
AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
15243
15418
|
}
|
|
15244
15419
|
|
|
15245
15420
|
static get styles() {
|
|
@@ -15284,6 +15459,13 @@ class AuroDropdownBib extends i$2 {
|
|
|
15284
15459
|
type: Boolean,
|
|
15285
15460
|
reflect: true
|
|
15286
15461
|
},
|
|
15462
|
+
|
|
15463
|
+
/**
|
|
15464
|
+
* A reference to the associated bib template element.
|
|
15465
|
+
*/
|
|
15466
|
+
bibTemplate: {
|
|
15467
|
+
type: Object
|
|
15468
|
+
}
|
|
15287
15469
|
};
|
|
15288
15470
|
}
|
|
15289
15471
|
|
|
@@ -15316,12 +15498,53 @@ class AuroDropdownBib extends i$2 {
|
|
|
15316
15498
|
}
|
|
15317
15499
|
}
|
|
15318
15500
|
});
|
|
15501
|
+
|
|
15502
|
+
if (this.bibTemplate) {
|
|
15503
|
+
// If the bib template is found, set the fullscreen attribute
|
|
15504
|
+
if (this.isFullscreen) {
|
|
15505
|
+
this.bibTemplate.setAttribute('isFullscreen', 'true');
|
|
15506
|
+
} else {
|
|
15507
|
+
this.bibTemplate.removeAttribute('isFullscreen');
|
|
15508
|
+
}
|
|
15509
|
+
}
|
|
15319
15510
|
}
|
|
15320
15511
|
}
|
|
15321
15512
|
|
|
15513
|
+
connectedCallback() {
|
|
15514
|
+
super.connectedCallback();
|
|
15515
|
+
|
|
15516
|
+
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
15517
|
+
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
15518
|
+
const bibTemplate = event.detail.element;
|
|
15519
|
+
this.bibTemplate = bibTemplate;
|
|
15520
|
+
|
|
15521
|
+
if (bibTemplate) {
|
|
15522
|
+
// If the bib template is found, set the fullscreen attribute
|
|
15523
|
+
if (this.isFullscreen) {
|
|
15524
|
+
bibTemplate.setAttribute('isFullscreen', 'true');
|
|
15525
|
+
} else {
|
|
15526
|
+
bibTemplate.removeAttribute('isFullscreen');
|
|
15527
|
+
}
|
|
15528
|
+
}
|
|
15529
|
+
});
|
|
15530
|
+
}
|
|
15531
|
+
|
|
15532
|
+
firstUpdated(changedProperties) {
|
|
15533
|
+
super.firstUpdated(changedProperties);
|
|
15534
|
+
|
|
15535
|
+
// Dispatch a custom event when the component is connected
|
|
15536
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
15537
|
+
bubbles: true,
|
|
15538
|
+
composed: true,
|
|
15539
|
+
detail: {
|
|
15540
|
+
element: this
|
|
15541
|
+
}
|
|
15542
|
+
}));
|
|
15543
|
+
}
|
|
15544
|
+
|
|
15322
15545
|
// function that renders the HTML and CSS into the scope of the component
|
|
15323
15546
|
render() {
|
|
15324
|
-
return u$
|
|
15547
|
+
return u$3`
|
|
15325
15548
|
<div class="container" part="bibContainer">
|
|
15326
15549
|
<slot></slot>
|
|
15327
15550
|
</div>
|
|
@@ -15331,23 +15554,23 @@ class AuroDropdownBib extends i$2 {
|
|
|
15331
15554
|
|
|
15332
15555
|
var dropdownVersion$1 = '3.0.0';
|
|
15333
15556
|
|
|
15334
|
-
var shapeSizeCss$1 = i$
|
|
15557
|
+
var shapeSizeCss$1 = i$3`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
|
|
15335
15558
|
|
|
15336
|
-
var colorCss$1$1 = i$
|
|
15559
|
+
var colorCss$1$1 = i$3`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
|
|
15337
15560
|
|
|
15338
|
-
var classicColorCss$1 = i$
|
|
15561
|
+
var classicColorCss$1 = i$3`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}:host([layout*=classic]) .trigger:focus-within,:host([layout*=classic]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([layout*=classic])[common],:host([layout*=classic])[bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([layout*=classic])[common] .trigger:active,:host([layout*=classic])[common] .trigger:focus-within,:host([layout*=classic])[bordered] .trigger:active,:host([layout*=classic])[bordered] .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[error]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic])[error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[error] .trigger:focus-within,:host([layout*=classic])[error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled][common],:host([layout*=classic])[disabled][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic])[onDark]{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([layout*=classic])[onDark]:focus-within,:host([layout*=classic])[onDark]:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([layout*=classic])[onDark][common],:host([layout*=classic])[onDark][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic])[onDark][common] .trigger:focus-within,:host([layout*=classic])[onDark][common] .trigger:active,:host([layout*=classic])[onDark][bordered] .trigger:focus-within,:host([layout*=classic])[onDark][bordered] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][error]{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic])[onDark][error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[onDark][error] .trigger:focus-within,:host([layout*=classic])[onDark][error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled][common],:host([layout*=classic])[onDark][disabled][bordered]{--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
|
|
15339
15562
|
|
|
15340
|
-
var classicLayoutCss = i$
|
|
15563
|
+
var classicLayoutCss = i$3`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
15341
15564
|
|
|
15342
|
-
var styleEmphasizedCss = i$
|
|
15565
|
+
var styleEmphasizedCss = i$3`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{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))}`;
|
|
15343
15566
|
|
|
15344
|
-
var styleSnowflakeCss = i$
|
|
15567
|
+
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)}`;
|
|
15345
15568
|
|
|
15346
|
-
var colorCss$4 = i$
|
|
15569
|
+
var colorCss$4 = i$3`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
15347
15570
|
|
|
15348
|
-
var styleCss$5 = i$
|
|
15571
|
+
var styleCss$5 = i$3`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
15349
15572
|
|
|
15350
|
-
var tokensCss$5 = i$
|
|
15573
|
+
var tokensCss$5 = i$3`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
15351
15574
|
|
|
15352
15575
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
15353
15576
|
// See LICENSE in the project root for license information.
|
|
@@ -15356,7 +15579,7 @@ var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
15356
15579
|
|
|
15357
15580
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
15358
15581
|
|
|
15359
|
-
let AuroLibraryRuntimeUtils$
|
|
15582
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
15360
15583
|
|
|
15361
15584
|
/* eslint-disable jsdoc/require-param */
|
|
15362
15585
|
|
|
@@ -15428,7 +15651,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
15428
15651
|
*
|
|
15429
15652
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
15430
15653
|
*/
|
|
15431
|
-
let AuroHelpText$1 = class AuroHelpText extends i$
|
|
15654
|
+
let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
15432
15655
|
|
|
15433
15656
|
constructor() {
|
|
15434
15657
|
super();
|
|
@@ -15437,7 +15660,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15437
15660
|
this.onDark = false;
|
|
15438
15661
|
this.hasTextContent = false;
|
|
15439
15662
|
|
|
15440
|
-
AuroLibraryRuntimeUtils$
|
|
15663
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
15441
15664
|
}
|
|
15442
15665
|
|
|
15443
15666
|
static get styles() {
|
|
@@ -15493,7 +15716,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15493
15716
|
*
|
|
15494
15717
|
*/
|
|
15495
15718
|
static register(name = "auro-helptext") {
|
|
15496
|
-
AuroLibraryRuntimeUtils$
|
|
15719
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
15497
15720
|
}
|
|
15498
15721
|
|
|
15499
15722
|
updated() {
|
|
@@ -15551,7 +15774,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
15551
15774
|
|
|
15552
15775
|
var helpTextVersion$1 = '1.0.0';
|
|
15553
15776
|
|
|
15554
|
-
let AuroElement$
|
|
15777
|
+
let AuroElement$3 = class AuroElement extends i$1 {
|
|
15555
15778
|
static get properties() {
|
|
15556
15779
|
return {
|
|
15557
15780
|
|
|
@@ -15660,7 +15883,7 @@ let AuroElement$2 = class AuroElement extends i$2 {
|
|
|
15660
15883
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
15661
15884
|
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
15662
15885
|
*/
|
|
15663
|
-
class AuroDropdown extends AuroElement$
|
|
15886
|
+
class AuroDropdown extends AuroElement$3 {
|
|
15664
15887
|
constructor() {
|
|
15665
15888
|
super();
|
|
15666
15889
|
|
|
@@ -15675,6 +15898,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15675
15898
|
this.layout = 'classic';
|
|
15676
15899
|
this.shape = 'rounded';
|
|
15677
15900
|
this.size = 'xl';
|
|
15901
|
+
this.parentBorder = false;
|
|
15678
15902
|
|
|
15679
15903
|
this.privateDefaults();
|
|
15680
15904
|
}
|
|
@@ -15690,7 +15914,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15690
15914
|
'trigger': true,
|
|
15691
15915
|
'wrapper': true,
|
|
15692
15916
|
'hasFocus': this.hasFocus,
|
|
15693
|
-
'simple': this.simple
|
|
15917
|
+
'simple': this.simple,
|
|
15918
|
+
'parentBorder': this.parentBorder
|
|
15694
15919
|
};
|
|
15695
15920
|
}
|
|
15696
15921
|
|
|
@@ -15725,7 +15950,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15725
15950
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
15726
15951
|
*/
|
|
15727
15952
|
this.constructor.shadowRootOptions = {
|
|
15728
|
-
...i$
|
|
15953
|
+
...i$1.shadowRootOptions,
|
|
15729
15954
|
delegatesFocus: true,
|
|
15730
15955
|
};
|
|
15731
15956
|
|
|
@@ -15742,7 +15967,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15742
15967
|
/**
|
|
15743
15968
|
* @private
|
|
15744
15969
|
*/
|
|
15745
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
15970
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
15746
15971
|
|
|
15747
15972
|
/**
|
|
15748
15973
|
* @private
|
|
@@ -15957,6 +16182,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15957
16182
|
reflect: true
|
|
15958
16183
|
},
|
|
15959
16184
|
|
|
16185
|
+
/**
|
|
16186
|
+
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
16187
|
+
* @private
|
|
16188
|
+
*/
|
|
16189
|
+
parentBorder: {
|
|
16190
|
+
type: Boolean,
|
|
16191
|
+
reflect: true
|
|
16192
|
+
},
|
|
16193
|
+
|
|
15960
16194
|
/**
|
|
15961
16195
|
* If declared, the popover and trigger will be set to the same width.
|
|
15962
16196
|
*/
|
|
@@ -16084,7 +16318,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16084
16318
|
*
|
|
16085
16319
|
*/
|
|
16086
16320
|
static register(name = "auro-dropdown") {
|
|
16087
|
-
AuroLibraryRuntimeUtils$
|
|
16321
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
|
|
16088
16322
|
}
|
|
16089
16323
|
|
|
16090
16324
|
/**
|
|
@@ -16420,8 +16654,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16420
16654
|
* @param {Event} event - The event object representing the slot change.
|
|
16421
16655
|
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
16422
16656
|
*/
|
|
16423
|
-
handleDefaultSlot(
|
|
16424
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
16657
|
+
handleDefaultSlot() {
|
|
16425
16658
|
|
|
16426
16659
|
if (this.onSlotChange) {
|
|
16427
16660
|
this.onSlotChange();
|
|
@@ -16458,7 +16691,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16458
16691
|
* @returns {html} - Returns HTML.
|
|
16459
16692
|
*/
|
|
16460
16693
|
renderBasicHtml(helpTextClasses) {
|
|
16461
|
-
return u$
|
|
16694
|
+
return u$3`
|
|
16462
16695
|
<div>
|
|
16463
16696
|
<div
|
|
16464
16697
|
id="trigger"
|
|
@@ -16480,9 +16713,10 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16480
16713
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16481
16714
|
</div>
|
|
16482
16715
|
</div>
|
|
16483
|
-
${this.chevron || this.common ? u$
|
|
16716
|
+
${this.chevron || this.common ? u$3`
|
|
16484
16717
|
<div
|
|
16485
16718
|
id="showStateIcon"
|
|
16719
|
+
class="chevron"
|
|
16486
16720
|
part="chevron">
|
|
16487
16721
|
<${this.iconTag}
|
|
16488
16722
|
category="interface"
|
|
@@ -16497,9 +16731,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16497
16731
|
<div class="${e(helpTextClasses)}">
|
|
16498
16732
|
<slot name="helpText"></slot>
|
|
16499
16733
|
</div>
|
|
16500
|
-
<div class="slotContent">
|
|
16501
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16502
|
-
</div>
|
|
16503
16734
|
<div id="bibSizer" part="size"></div>
|
|
16504
16735
|
<${this.dropdownBibTag}
|
|
16505
16736
|
id="bib"
|
|
@@ -16508,6 +16739,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16508
16739
|
?common="${this.common}"
|
|
16509
16740
|
?rounded="${this.common || this.rounded}"
|
|
16510
16741
|
?inset="${this.common || this.inset}">
|
|
16742
|
+
<div class="slotContent">
|
|
16743
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16744
|
+
</div>
|
|
16511
16745
|
</${this.dropdownBibTag}>
|
|
16512
16746
|
</div>
|
|
16513
16747
|
`;
|
|
@@ -16519,84 +16753,80 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16519
16753
|
* @returns {html} - Returns HTML for the classic layout.
|
|
16520
16754
|
*/
|
|
16521
16755
|
renderLayoutClassic() {
|
|
16522
|
-
const helpTextClasses = {
|
|
16523
|
-
'helpText': true,
|
|
16524
|
-
'leftIndent': false,
|
|
16525
|
-
'rightIndent': false
|
|
16526
|
-
};
|
|
16527
|
-
|
|
16528
|
-
return u$2`
|
|
16529
|
-
${this.renderBasicHtml(helpTextClasses)}
|
|
16530
|
-
`;
|
|
16531
|
-
// return html`
|
|
16532
|
-
// <div>
|
|
16533
|
-
// <div
|
|
16534
|
-
// id="trigger"
|
|
16535
|
-
// class="trigger"
|
|
16536
|
-
// part="trigger"
|
|
16537
|
-
// tabindex="${this.tabIndex}"
|
|
16538
|
-
// ?showBorder="${this.showTriggerBorders}"
|
|
16539
|
-
// role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
16540
|
-
// aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
16541
|
-
// aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
16542
|
-
// aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
16543
|
-
// >
|
|
16544
|
-
// <div class="triggerContentWrapper">
|
|
16545
|
-
// <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
16546
|
-
// <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
16547
|
-
// </label>
|
|
16548
|
-
// <div class="triggerContent">
|
|
16549
|
-
// <slot
|
|
16550
|
-
// name="trigger"
|
|
16551
|
-
// @slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16552
|
-
// </div>
|
|
16553
|
-
// </div>
|
|
16554
|
-
// ${this.chevron || this.common ? html`
|
|
16555
|
-
// <div
|
|
16556
|
-
// id="showStateIcon"
|
|
16557
|
-
// part="chevron">
|
|
16558
|
-
// <${this.iconTag}
|
|
16559
|
-
// category="interface"
|
|
16560
|
-
// name="chevron-down"
|
|
16561
|
-
// ?onDark="${this.onDark}"
|
|
16562
|
-
// variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
16563
|
-
// >
|
|
16564
|
-
// </${this.iconTag}>
|
|
16565
|
-
// </div>
|
|
16566
|
-
// ` : undefined }
|
|
16567
|
-
// </div>
|
|
16568
|
-
// <div class="slotContent">
|
|
16569
|
-
// <slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16570
|
-
// </div>
|
|
16571
|
-
// <div id="bibSizer" part="size"></div>
|
|
16572
|
-
// <${this.dropdownBibTag}
|
|
16573
|
-
// id="bib"
|
|
16574
|
-
// ?data-show="${this.isPopoverVisible}"
|
|
16575
|
-
// ?isfullscreen="${this.isBibFullscreen}"
|
|
16576
|
-
// ?common="${this.common}"
|
|
16577
|
-
// ?rounded="${this.common || this.rounded}"
|
|
16578
|
-
// ?inset="${this.common || this.inset}"
|
|
16579
|
-
// >
|
|
16580
|
-
// </${this.dropdownBibTag}>
|
|
16581
|
-
// </div>
|
|
16582
|
-
// `;
|
|
16583
|
-
}
|
|
16584
|
-
|
|
16585
|
-
/**
|
|
16586
|
-
* Returns HTML for the snowflake layout. Does not support type="*".
|
|
16587
|
-
* @private
|
|
16588
|
-
* @returns {html} - Returns HTML for the snowflake layout.
|
|
16589
|
-
*/
|
|
16590
|
-
renderLayoutSnowflake() {
|
|
16591
|
-
const helpTextClasses = {
|
|
16592
|
-
'helpText': true,
|
|
16593
|
-
'leftIndent': true,
|
|
16594
|
-
'rightIndent': true
|
|
16595
|
-
};
|
|
16596
16756
|
|
|
16597
|
-
return u$
|
|
16598
|
-
|
|
16599
|
-
|
|
16757
|
+
return u$3`
|
|
16758
|
+
<div>
|
|
16759
|
+
<div
|
|
16760
|
+
id="trigger"
|
|
16761
|
+
class="trigger"
|
|
16762
|
+
part="trigger"
|
|
16763
|
+
tabindex="${this.tabIndex}"
|
|
16764
|
+
?showBorder="${this.showTriggerBorders}"
|
|
16765
|
+
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
16766
|
+
aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
16767
|
+
aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
16768
|
+
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
16769
|
+
>
|
|
16770
|
+
<div class="triggerContentWrapper">
|
|
16771
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
16772
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
16773
|
+
</label>
|
|
16774
|
+
<div class="triggerContent">
|
|
16775
|
+
<slot
|
|
16776
|
+
name="trigger"
|
|
16777
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16778
|
+
</div>
|
|
16779
|
+
</div>
|
|
16780
|
+
${this.chevron || this.common ? u$3`
|
|
16781
|
+
<div
|
|
16782
|
+
id="showStateIcon"
|
|
16783
|
+
part="chevron">
|
|
16784
|
+
<${this.iconTag}
|
|
16785
|
+
category="interface"
|
|
16786
|
+
name="chevron-down"
|
|
16787
|
+
?onDark="${this.onDark}"
|
|
16788
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
16789
|
+
>
|
|
16790
|
+
</${this.iconTag}>
|
|
16791
|
+
</div>
|
|
16792
|
+
` : undefined }
|
|
16793
|
+
</div>
|
|
16794
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
16795
|
+
<slot name="helpText"></slot>
|
|
16796
|
+
</${this.helpTextTag}>
|
|
16797
|
+
|
|
16798
|
+
<div id="bibSizer" part="size"></div>
|
|
16799
|
+
<${this.dropdownBibTag}
|
|
16800
|
+
id="bib"
|
|
16801
|
+
?data-show="${this.isPopoverVisible}"
|
|
16802
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
16803
|
+
?common="${this.common}"
|
|
16804
|
+
?rounded="${this.common || this.rounded}"
|
|
16805
|
+
?inset="${this.common || this.inset}"
|
|
16806
|
+
>
|
|
16807
|
+
<div class="slotContent">
|
|
16808
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16809
|
+
</div>
|
|
16810
|
+
</${this.dropdownBibTag}>
|
|
16811
|
+
</div>
|
|
16812
|
+
`;
|
|
16813
|
+
}
|
|
16814
|
+
|
|
16815
|
+
/**
|
|
16816
|
+
* Returns HTML for the snowflake layout. Does not support type="*".
|
|
16817
|
+
* @private
|
|
16818
|
+
* @returns {html} - Returns HTML for the snowflake layout.
|
|
16819
|
+
*/
|
|
16820
|
+
renderLayoutSnowflake() {
|
|
16821
|
+
const helpTextClasses = {
|
|
16822
|
+
'helpText': true,
|
|
16823
|
+
'leftIndent': true,
|
|
16824
|
+
'rightIndent': true
|
|
16825
|
+
};
|
|
16826
|
+
|
|
16827
|
+
return u$3`
|
|
16828
|
+
${this.renderBasicHtml(helpTextClasses)}
|
|
16829
|
+
`;
|
|
16600
16830
|
}
|
|
16601
16831
|
|
|
16602
16832
|
/**
|
|
@@ -16611,7 +16841,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16611
16841
|
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
16612
16842
|
};
|
|
16613
16843
|
|
|
16614
|
-
return u$
|
|
16844
|
+
return u$3`
|
|
16615
16845
|
${this.renderBasicHtml(helpTextClasses)}
|
|
16616
16846
|
`;
|
|
16617
16847
|
}
|
|
@@ -16659,25 +16889,25 @@ var dropdownVersion = '3.0.0';
|
|
|
16659
16889
|
*/
|
|
16660
16890
|
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}});
|
|
16661
16891
|
|
|
16662
|
-
var shapeSizeCss = i$
|
|
16892
|
+
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}`;
|
|
16663
16893
|
|
|
16664
|
-
var styleCss$4 = i$
|
|
16894
|
+
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}`;
|
|
16665
16895
|
|
|
16666
|
-
var styleDefaultCss = i$
|
|
16896
|
+
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}`;
|
|
16667
16897
|
|
|
16668
|
-
var colorBaseCss = i$
|
|
16898
|
+
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)}`;
|
|
16669
16899
|
|
|
16670
|
-
var tokensCss$4 = i$
|
|
16900
|
+
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}`;
|
|
16671
16901
|
|
|
16672
|
-
var classicStyleCss = i$
|
|
16902
|
+
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}`;
|
|
16673
16903
|
|
|
16674
|
-
var classicColorCss = i$
|
|
16904
|
+
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)}`;
|
|
16675
16905
|
|
|
16676
|
-
var emphasizedStyleCss = i$
|
|
16906
|
+
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}`;
|
|
16677
16907
|
|
|
16678
|
-
var emphasizedColorCss = i$
|
|
16908
|
+
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)}`;
|
|
16679
16909
|
|
|
16680
|
-
var snowflakeStyleCss = i$
|
|
16910
|
+
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}`;
|
|
16681
16911
|
|
|
16682
16912
|
const watchedItems = new Set();
|
|
16683
16913
|
|
|
@@ -20698,9 +20928,10 @@ class DateFormatter {
|
|
|
20698
20928
|
/**
|
|
20699
20929
|
* Convert a date object to string format.
|
|
20700
20930
|
* @param {Object} date - Date to convert to string.
|
|
20701
|
-
* @
|
|
20931
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
20932
|
+
* @returns {String} Returns the date as a string.
|
|
20702
20933
|
*/
|
|
20703
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
20934
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
20704
20935
|
year: "numeric",
|
|
20705
20936
|
month: "2-digit",
|
|
20706
20937
|
day: "2-digit",
|
|
@@ -20892,7 +21123,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
|
|
|
20892
21123
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
20893
21124
|
|
|
20894
21125
|
// Get the date string of the date object we created from the string date
|
|
20895
|
-
const actualDateStr = dateFormatter.getDateAsString(dateObj);
|
|
21126
|
+
const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
|
|
20896
21127
|
|
|
20897
21128
|
// Guard Clause: Generated date matches date string input
|
|
20898
21129
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -21057,7 +21288,7 @@ const {
|
|
|
21057
21288
|
|
|
21058
21289
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21059
21290
|
|
|
21060
|
-
let AuroLibraryRuntimeUtils$
|
|
21291
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
21061
21292
|
|
|
21062
21293
|
/* eslint-disable jsdoc/require-param */
|
|
21063
21294
|
|
|
@@ -21127,7 +21358,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
21127
21358
|
class AuroFormValidation {
|
|
21128
21359
|
|
|
21129
21360
|
constructor() {
|
|
21130
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
21361
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
21131
21362
|
}
|
|
21132
21363
|
|
|
21133
21364
|
/**
|
|
@@ -21486,7 +21717,7 @@ class AuroFormValidation {
|
|
|
21486
21717
|
}
|
|
21487
21718
|
}
|
|
21488
21719
|
|
|
21489
|
-
let AuroElement$1 = class AuroElement extends i$
|
|
21720
|
+
let AuroElement$1 = class AuroElement extends i$1 {
|
|
21490
21721
|
static get properties() {
|
|
21491
21722
|
return {
|
|
21492
21723
|
|
|
@@ -22668,7 +22899,7 @@ class AuroDependencyVersioning {
|
|
|
22668
22899
|
*/
|
|
22669
22900
|
generateTag(baseName, version, tagClass) {
|
|
22670
22901
|
const elementName = this.generateElementName(baseName, version);
|
|
22671
|
-
const tag = i$
|
|
22902
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
22672
22903
|
|
|
22673
22904
|
if (!customElements.get(elementName)) {
|
|
22674
22905
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -22688,7 +22919,7 @@ class AuroDependencyVersioning {
|
|
|
22688
22919
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
22689
22920
|
*/
|
|
22690
22921
|
|
|
22691
|
-
class AuroElement extends i$
|
|
22922
|
+
let AuroElement$2 = class AuroElement extends i$1 {
|
|
22692
22923
|
|
|
22693
22924
|
// function to define props used within the scope of this component
|
|
22694
22925
|
static get properties() {
|
|
@@ -22712,7 +22943,7 @@ class AuroElement extends i$2 {
|
|
|
22712
22943
|
|
|
22713
22944
|
return 'false'
|
|
22714
22945
|
}
|
|
22715
|
-
}
|
|
22946
|
+
};
|
|
22716
22947
|
|
|
22717
22948
|
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>"};
|
|
22718
22949
|
|
|
@@ -22744,7 +22975,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
22744
22975
|
return _fetchMap.get(uri);
|
|
22745
22976
|
};
|
|
22746
22977
|
|
|
22747
|
-
var styleCss$3 = i$
|
|
22978
|
+
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}`;
|
|
22748
22979
|
|
|
22749
22980
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22750
22981
|
// See LICENSE in the project root for license information.
|
|
@@ -22756,7 +22987,7 @@ var styleCss$3 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
22756
22987
|
*/
|
|
22757
22988
|
|
|
22758
22989
|
// build the component class
|
|
22759
|
-
class BaseIcon extends AuroElement {
|
|
22990
|
+
class BaseIcon extends AuroElement$2 {
|
|
22760
22991
|
constructor() {
|
|
22761
22992
|
super();
|
|
22762
22993
|
this.onDark = false;
|
|
@@ -22786,7 +23017,7 @@ class BaseIcon extends AuroElement {
|
|
|
22786
23017
|
}
|
|
22787
23018
|
|
|
22788
23019
|
static get styles() {
|
|
22789
|
-
return i$
|
|
23020
|
+
return i$3`
|
|
22790
23021
|
${styleCss$3}
|
|
22791
23022
|
`;
|
|
22792
23023
|
}
|
|
@@ -22828,9 +23059,79 @@ class BaseIcon extends AuroElement {
|
|
|
22828
23059
|
}
|
|
22829
23060
|
}
|
|
22830
23061
|
|
|
22831
|
-
var tokensCss$3 = i$
|
|
23062
|
+
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)}`;
|
|
23063
|
+
|
|
23064
|
+
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)}`;
|
|
23065
|
+
|
|
23066
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
23067
|
+
// See LICENSE in the project root for license information.
|
|
23068
|
+
|
|
23069
|
+
// ---------------------------------------------------------------------
|
|
23070
|
+
|
|
23071
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
23072
|
+
|
|
23073
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
23074
|
+
|
|
23075
|
+
/* eslint-disable jsdoc/require-param */
|
|
23076
|
+
|
|
23077
|
+
/**
|
|
23078
|
+
* This will register a new custom element with the browser.
|
|
23079
|
+
* @param {String} name - The name of the custom element.
|
|
23080
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
23081
|
+
* @returns {void}
|
|
23082
|
+
*/
|
|
23083
|
+
registerComponent(name, componentClass) {
|
|
23084
|
+
if (!customElements.get(name)) {
|
|
23085
|
+
customElements.define(name, class extends componentClass {});
|
|
23086
|
+
}
|
|
23087
|
+
}
|
|
23088
|
+
|
|
23089
|
+
/**
|
|
23090
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
23091
|
+
* @returns {void}
|
|
23092
|
+
*/
|
|
23093
|
+
closestElement(
|
|
23094
|
+
selector, // selector like in .closest()
|
|
23095
|
+
base = this, // extra functionality to skip a parent
|
|
23096
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
23097
|
+
!el || el === document || el === window
|
|
23098
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
23099
|
+
: found
|
|
23100
|
+
? found // found a selector INside this element
|
|
23101
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
23102
|
+
) {
|
|
23103
|
+
return __Closest(base);
|
|
23104
|
+
}
|
|
23105
|
+
/* eslint-enable jsdoc/require-param */
|
|
23106
|
+
|
|
23107
|
+
/**
|
|
23108
|
+
* 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.
|
|
23109
|
+
* @param {Object} elem - The element to check.
|
|
23110
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
23111
|
+
* @returns {void}
|
|
23112
|
+
*/
|
|
23113
|
+
handleComponentTagRename(elem, tagName) {
|
|
23114
|
+
const tag = tagName.toLowerCase();
|
|
23115
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
22832
23116
|
|
|
22833
|
-
|
|
23117
|
+
if (elemTag !== tag) {
|
|
23118
|
+
elem.setAttribute(tag, true);
|
|
23119
|
+
}
|
|
23120
|
+
}
|
|
23121
|
+
|
|
23122
|
+
/**
|
|
23123
|
+
* Validates if an element is a specific Auro component.
|
|
23124
|
+
* @param {Object} elem - The element to validate.
|
|
23125
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
23126
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
23127
|
+
*/
|
|
23128
|
+
elementMatch(elem, tagName) {
|
|
23129
|
+
const tag = tagName.toLowerCase();
|
|
23130
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
23131
|
+
|
|
23132
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
23133
|
+
}
|
|
23134
|
+
};
|
|
22834
23135
|
|
|
22835
23136
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22836
23137
|
// See LICENSE in the project root for license information.
|
|
@@ -22918,9 +23219,9 @@ class AuroIcon extends BaseIcon {
|
|
|
22918
23219
|
static get styles() {
|
|
22919
23220
|
return [
|
|
22920
23221
|
super.styles,
|
|
22921
|
-
i$
|
|
22922
|
-
i$
|
|
22923
|
-
i$
|
|
23222
|
+
i$3`${tokensCss$3}`,
|
|
23223
|
+
i$3`${styleCss$3}`,
|
|
23224
|
+
i$3`${colorCss$3}`
|
|
22924
23225
|
];
|
|
22925
23226
|
}
|
|
22926
23227
|
|
|
@@ -23001,23 +23302,23 @@ class AuroIcon extends BaseIcon {
|
|
|
23001
23302
|
|
|
23002
23303
|
var iconVersion = '8.0.1';
|
|
23003
23304
|
|
|
23004
|
-
var styleCss$2 = i$
|
|
23305
|
+
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}`;
|
|
23005
23306
|
|
|
23006
|
-
var colorCss$2 = i$
|
|
23307
|
+
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}`;
|
|
23007
23308
|
|
|
23008
|
-
var tokensCss$2 = i$
|
|
23309
|
+
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}`;
|
|
23009
23310
|
|
|
23010
|
-
var styleCss$1 = i$
|
|
23311
|
+
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}}`;
|
|
23011
23312
|
|
|
23012
|
-
var colorCss$1 = i$
|
|
23313
|
+
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}`;
|
|
23013
23314
|
|
|
23014
|
-
var tokensCss$1 = i$
|
|
23315
|
+
var tokensCss$1 = i$3`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
23015
23316
|
|
|
23016
23317
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
23017
23318
|
// See LICENSE in the project root for license information.
|
|
23018
23319
|
|
|
23019
23320
|
|
|
23020
|
-
class AuroLoader extends i$
|
|
23321
|
+
class AuroLoader extends i$1 {
|
|
23021
23322
|
constructor() {
|
|
23022
23323
|
super();
|
|
23023
23324
|
|
|
@@ -23039,7 +23340,7 @@ class AuroLoader extends i$2 {
|
|
|
23039
23340
|
/**
|
|
23040
23341
|
* @private
|
|
23041
23342
|
*/
|
|
23042
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
23343
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
23043
23344
|
|
|
23044
23345
|
this.orbit = false;
|
|
23045
23346
|
this.ringworm = false;
|
|
@@ -23087,9 +23388,9 @@ class AuroLoader extends i$2 {
|
|
|
23087
23388
|
|
|
23088
23389
|
static get styles() {
|
|
23089
23390
|
return [
|
|
23090
|
-
i$
|
|
23091
|
-
i$
|
|
23092
|
-
i$
|
|
23391
|
+
i$3`${styleCss$1}`,
|
|
23392
|
+
i$3`${colorCss$1}`,
|
|
23393
|
+
i$3`${tokensCss$1}`
|
|
23093
23394
|
];
|
|
23094
23395
|
}
|
|
23095
23396
|
|
|
@@ -23102,7 +23403,7 @@ class AuroLoader extends i$2 {
|
|
|
23102
23403
|
*
|
|
23103
23404
|
*/
|
|
23104
23405
|
static register(name = "auro-loader") {
|
|
23105
|
-
AuroLibraryRuntimeUtils$
|
|
23406
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
|
|
23106
23407
|
}
|
|
23107
23408
|
|
|
23108
23409
|
firstUpdated() {
|
|
@@ -23170,7 +23471,7 @@ var loaderVersion = '5.0.0';
|
|
|
23170
23471
|
|
|
23171
23472
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
23172
23473
|
|
|
23173
|
-
class AuroButton extends i$
|
|
23474
|
+
class AuroButton extends i$1 {
|
|
23174
23475
|
|
|
23175
23476
|
/**
|
|
23176
23477
|
* Enables form association for this element.
|
|
@@ -23406,7 +23707,7 @@ class AuroButton extends i$2 {
|
|
|
23406
23707
|
*
|
|
23407
23708
|
*/
|
|
23408
23709
|
static register(name = "auro-button") {
|
|
23409
|
-
AuroLibraryRuntimeUtils$
|
|
23710
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
23410
23711
|
}
|
|
23411
23712
|
|
|
23412
23713
|
/**
|
|
@@ -23461,7 +23762,7 @@ class AuroButton extends i$2 {
|
|
|
23461
23762
|
'loading': this.loading
|
|
23462
23763
|
};
|
|
23463
23764
|
|
|
23464
|
-
return u$
|
|
23765
|
+
return u$3`
|
|
23465
23766
|
<button
|
|
23466
23767
|
part="button"
|
|
23467
23768
|
aria-hidden="${o(this.ariahidden || undefined)}"
|
|
@@ -23480,11 +23781,11 @@ class AuroButton extends i$2 {
|
|
|
23480
23781
|
.value="${o(this.value ? this.value : undefined)}"
|
|
23481
23782
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
23482
23783
|
>
|
|
23483
|
-
${o(this.loading ? u$
|
|
23784
|
+
${o(this.loading ? u$3`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
23484
23785
|
|
|
23485
23786
|
<span class="contentWrapper">
|
|
23486
23787
|
<span class="textSlot" part="text">
|
|
23487
|
-
${this.iconOnly ? undefined : u$
|
|
23788
|
+
${this.iconOnly ? undefined : u$3`<slot></slot>`}
|
|
23488
23789
|
</span>
|
|
23489
23790
|
|
|
23490
23791
|
<span part="icon">
|
|
@@ -23498,11 +23799,11 @@ class AuroButton extends i$2 {
|
|
|
23498
23799
|
|
|
23499
23800
|
var buttonVersion = '9.3.0';
|
|
23500
23801
|
|
|
23501
|
-
var colorCss = i$
|
|
23802
|
+
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)}`;
|
|
23502
23803
|
|
|
23503
|
-
var styleCss = i$
|
|
23804
|
+
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}`;
|
|
23504
23805
|
|
|
23505
|
-
var tokensCss = i$
|
|
23806
|
+
var tokensCss = i$3`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
23506
23807
|
|
|
23507
23808
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
23508
23809
|
// See LICENSE in the project root for license information.
|
|
@@ -23583,7 +23884,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
23583
23884
|
*
|
|
23584
23885
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
23585
23886
|
*/
|
|
23586
|
-
class AuroHelpText extends i$
|
|
23887
|
+
class AuroHelpText extends i$1 {
|
|
23587
23888
|
|
|
23588
23889
|
constructor() {
|
|
23589
23890
|
super();
|
|
@@ -23744,16 +24045,16 @@ class AuroInput extends BaseInput {
|
|
|
23744
24045
|
|
|
23745
24046
|
static get styles() {
|
|
23746
24047
|
return [
|
|
23747
|
-
i$
|
|
23748
|
-
i$
|
|
23749
|
-
i$
|
|
23750
|
-
i$
|
|
23751
|
-
i$
|
|
23752
|
-
i$
|
|
23753
|
-
i$
|
|
23754
|
-
i$
|
|
23755
|
-
i$
|
|
23756
|
-
i$
|
|
24048
|
+
i$3`${classicStyleCss}`,
|
|
24049
|
+
i$3`${classicColorCss}`,
|
|
24050
|
+
i$3`${shapeSizeCss}`,
|
|
24051
|
+
i$3`${colorBaseCss}`,
|
|
24052
|
+
i$3`${styleCss$4}`,
|
|
24053
|
+
i$3`${styleDefaultCss}`,
|
|
24054
|
+
i$3`${tokensCss$4}`,
|
|
24055
|
+
i$3`${emphasizedStyleCss}`,
|
|
24056
|
+
i$3`${emphasizedColorCss}`,
|
|
24057
|
+
i$3`${snowflakeStyleCss}`
|
|
23757
24058
|
];
|
|
23758
24059
|
}
|
|
23759
24060
|
|
|
@@ -23772,7 +24073,7 @@ class AuroInput extends BaseInput {
|
|
|
23772
24073
|
/**
|
|
23773
24074
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
23774
24075
|
* @private
|
|
23775
|
-
* @returns {object} - Returns classmap
|
|
24076
|
+
* @returns {object} - Returns classmap.
|
|
23776
24077
|
*/
|
|
23777
24078
|
get commonInputClasses() {
|
|
23778
24079
|
return {
|
|
@@ -23781,9 +24082,9 @@ class AuroInput extends BaseInput {
|
|
|
23781
24082
|
}
|
|
23782
24083
|
|
|
23783
24084
|
/**
|
|
23784
|
-
* Returns classmap configuration for html5 inputs in
|
|
24085
|
+
* Returns classmap configuration for html5 inputs in each layout.
|
|
23785
24086
|
* @private
|
|
23786
|
-
* @return {object} - Returns classmap
|
|
24087
|
+
* @return {object} - Returns classmap.
|
|
23787
24088
|
*/
|
|
23788
24089
|
get legacyInputClasses() {
|
|
23789
24090
|
return {
|
|
@@ -23792,6 +24093,11 @@ class AuroInput extends BaseInput {
|
|
|
23792
24093
|
};
|
|
23793
24094
|
}
|
|
23794
24095
|
|
|
24096
|
+
/**
|
|
24097
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
24098
|
+
* @private
|
|
24099
|
+
* @return {object} - Returns classmap.
|
|
24100
|
+
*/
|
|
23795
24101
|
get commonWrapperClasses() {
|
|
23796
24102
|
return {
|
|
23797
24103
|
'wrapper': true,
|
|
@@ -23800,6 +24106,11 @@ class AuroInput extends BaseInput {
|
|
|
23800
24106
|
};
|
|
23801
24107
|
}
|
|
23802
24108
|
|
|
24109
|
+
/**
|
|
24110
|
+
* Returns classmap configuration for helpText elements in each layout.
|
|
24111
|
+
* @private
|
|
24112
|
+
* @return {object} - Returns classmap.
|
|
24113
|
+
*/
|
|
23803
24114
|
get helpTextClasses() {
|
|
23804
24115
|
return {
|
|
23805
24116
|
'helpTextWrapper': true,
|
|
@@ -23817,7 +24128,7 @@ class AuroInput extends BaseInput {
|
|
|
23817
24128
|
*
|
|
23818
24129
|
*/
|
|
23819
24130
|
static register(name = "auro-input") {
|
|
23820
|
-
AuroLibraryRuntimeUtils$
|
|
24131
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroInput);
|
|
23821
24132
|
}
|
|
23822
24133
|
|
|
23823
24134
|
/**
|
|
@@ -23856,8 +24167,8 @@ class AuroInput extends BaseInput {
|
|
|
23856
24167
|
* @returns {html} - Returns HTML for the validation error icon.
|
|
23857
24168
|
*/
|
|
23858
24169
|
renderValidationErrorIconHtml() {
|
|
23859
|
-
return u$
|
|
23860
|
-
${this.validity && this.validity !== 'valid' ? u$
|
|
24170
|
+
return u$3`
|
|
24171
|
+
${this.validity && this.validity !== 'valid' ? u$3`
|
|
23861
24172
|
<div class="notification alertNotification">
|
|
23862
24173
|
<${this.iconTag}
|
|
23863
24174
|
category="alert"
|
|
@@ -23889,7 +24200,7 @@ class AuroInput extends BaseInput {
|
|
|
23889
24200
|
? this.legacyInputClasses
|
|
23890
24201
|
: this.commonInputClasses;
|
|
23891
24202
|
|
|
23892
|
-
return u$
|
|
24203
|
+
return u$3`
|
|
23893
24204
|
<label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
|
|
23894
24205
|
<slot name="label">
|
|
23895
24206
|
${this.label}
|
|
@@ -23934,7 +24245,7 @@ class AuroInput extends BaseInput {
|
|
|
23934
24245
|
* @returns {html} - Returns HTML for the clear action button.
|
|
23935
24246
|
*/
|
|
23936
24247
|
renderHtmlActionClear() {
|
|
23937
|
-
return u$
|
|
24248
|
+
return u$3`
|
|
23938
24249
|
<div class="notification clear">
|
|
23939
24250
|
<${this.buttonTag}
|
|
23940
24251
|
@click="${this.handleClickClear}"
|
|
@@ -23960,7 +24271,7 @@ class AuroInput extends BaseInput {
|
|
|
23960
24271
|
* @returns {html} - Returns HTML for the show password button.
|
|
23961
24272
|
*/
|
|
23962
24273
|
renderHtmlNotificationPassword() {
|
|
23963
|
-
return u$
|
|
24274
|
+
return u$3`
|
|
23964
24275
|
<div class="notification">
|
|
23965
24276
|
<${this.buttonTag}
|
|
23966
24277
|
@click="${this.handleClickShowPassword}
|
|
@@ -23992,14 +24303,14 @@ class AuroInput extends BaseInput {
|
|
|
23992
24303
|
* @returns {html} - Returns HTML for the input type icon.
|
|
23993
24304
|
*/
|
|
23994
24305
|
renderHtmlTypeIcon() {
|
|
23995
|
-
return u$
|
|
24306
|
+
return u$3`
|
|
23996
24307
|
<div class="typeIcon">
|
|
23997
24308
|
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
23998
24309
|
|
|
23999
24310
|
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
24000
24311
|
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
24001
24312
|
${this.inputIconName
|
|
24002
|
-
? c([this.inputIconName], (val) => val, (name) => u$
|
|
24313
|
+
? c([this.inputIconName], (val) => val, (name) => u$3`
|
|
24003
24314
|
<${this.iconTag}
|
|
24004
24315
|
?onDark="${this.onDark}"
|
|
24005
24316
|
category="payment"
|
|
@@ -24011,7 +24322,7 @@ class AuroInput extends BaseInput {
|
|
|
24011
24322
|
`) : undefined
|
|
24012
24323
|
}
|
|
24013
24324
|
${this.type === 'date'
|
|
24014
|
-
? u$
|
|
24325
|
+
? u$3`
|
|
24015
24326
|
<${this.iconTag}
|
|
24016
24327
|
?onDark="${this.onDark}"
|
|
24017
24328
|
category="interface"
|
|
@@ -24032,16 +24343,16 @@ class AuroInput extends BaseInput {
|
|
|
24032
24343
|
* @returns {html} - Returns HTML for the help text and error message.
|
|
24033
24344
|
*/
|
|
24034
24345
|
renderHtmlHelpText() {
|
|
24035
|
-
return u$
|
|
24346
|
+
return u$3`
|
|
24036
24347
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
24037
|
-
? u$
|
|
24348
|
+
? u$3`
|
|
24038
24349
|
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
24039
24350
|
<p id="${this.uniqueId}" part="helpText">
|
|
24040
24351
|
<slot name="helptext">${this.getHelpText()}</slot>
|
|
24041
24352
|
</p>
|
|
24042
24353
|
</${this.helpTextTag}>
|
|
24043
24354
|
`
|
|
24044
|
-
: u$
|
|
24355
|
+
: u$3`
|
|
24045
24356
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
24046
24357
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
24047
24358
|
${this.errorMessage}
|
|
@@ -24053,12 +24364,12 @@ class AuroInput extends BaseInput {
|
|
|
24053
24364
|
}
|
|
24054
24365
|
|
|
24055
24366
|
/**
|
|
24056
|
-
* Returns HTML for the
|
|
24367
|
+
* Returns HTML for the classic layout.
|
|
24057
24368
|
* @private
|
|
24058
|
-
* @returns {import("lit").TemplateResult} - Returns HTML for the
|
|
24369
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
24059
24370
|
*/
|
|
24060
24371
|
renderLayoutClassic() {
|
|
24061
|
-
return u$
|
|
24372
|
+
return u$3`
|
|
24062
24373
|
<div
|
|
24063
24374
|
@click="${this.handleClick}"
|
|
24064
24375
|
class="${e(this.commonWrapperClasses)} thin"
|
|
@@ -24071,8 +24382,8 @@ class AuroInput extends BaseInput {
|
|
|
24071
24382
|
</div>
|
|
24072
24383
|
<div class="accents right">
|
|
24073
24384
|
${this.renderValidationErrorIconHtml()}
|
|
24074
|
-
${this.hasValue ? u$
|
|
24075
|
-
${!this.disabled && !this.readonly ? u$
|
|
24385
|
+
${this.hasValue ? u$3`
|
|
24386
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
24076
24387
|
${this.renderHtmlActionClear()}
|
|
24077
24388
|
` : undefined}
|
|
24078
24389
|
` : undefined}
|
|
@@ -24090,13 +24401,13 @@ class AuroInput extends BaseInput {
|
|
|
24090
24401
|
* @returns {html} - Returns HTML for the emphasized layout.
|
|
24091
24402
|
*/
|
|
24092
24403
|
renderLayoutEmphasized() {
|
|
24093
|
-
return u$
|
|
24404
|
+
return u$3`
|
|
24094
24405
|
<div
|
|
24095
24406
|
@click="${this.handleClick}"
|
|
24096
24407
|
class="${e(this.commonWrapperClasses)}"
|
|
24097
24408
|
part="wrapper">
|
|
24098
24409
|
<div class="accents left">
|
|
24099
|
-
${this.layout.includes('left') ? u$
|
|
24410
|
+
${this.layout.includes('left') ? u$3`
|
|
24100
24411
|
${this.renderValidationErrorIconHtml()}
|
|
24101
24412
|
` : undefined}
|
|
24102
24413
|
</div>
|
|
@@ -24104,11 +24415,11 @@ class AuroInput extends BaseInput {
|
|
|
24104
24415
|
${this.renderHtmlInput()}
|
|
24105
24416
|
</div>
|
|
24106
24417
|
<div class="accents right">
|
|
24107
|
-
${this.layout.includes('right') || this.layout === "emphasized" ? u$
|
|
24418
|
+
${this.layout.includes('right') || this.layout === "emphasized" ? u$3`
|
|
24108
24419
|
${this.renderValidationErrorIconHtml()}
|
|
24109
24420
|
` : undefined}
|
|
24110
|
-
${this.hasValue ? u$
|
|
24111
|
-
${!this.disabled && !this.readonly ? u$
|
|
24421
|
+
${this.hasValue ? u$3`
|
|
24422
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
24112
24423
|
${this.renderHtmlActionClear()}
|
|
24113
24424
|
` : undefined}
|
|
24114
24425
|
` : undefined}
|
|
@@ -24126,7 +24437,7 @@ class AuroInput extends BaseInput {
|
|
|
24126
24437
|
* @returns {html} - Returns HTML for the emphasized layout.
|
|
24127
24438
|
*/
|
|
24128
24439
|
renderLayoutSnowflake() {
|
|
24129
|
-
return u$
|
|
24440
|
+
return u$3`
|
|
24130
24441
|
<div
|
|
24131
24442
|
@click="${this.handleClick}"
|
|
24132
24443
|
class="${e(this.commonWrapperClasses)}"
|
|
@@ -24139,8 +24450,8 @@ class AuroInput extends BaseInput {
|
|
|
24139
24450
|
</div>
|
|
24140
24451
|
<div class="accents right">
|
|
24141
24452
|
${this.renderValidationErrorIconHtml()}
|
|
24142
|
-
${this.hasValue ? u$
|
|
24143
|
-
${!this.disabled && !this.readonly ? u$
|
|
24453
|
+
${this.hasValue ? u$3`
|
|
24454
|
+
${!this.disabled && !this.readonly ? u$3`
|
|
24144
24455
|
${this.renderHtmlActionClear()}
|
|
24145
24456
|
` : undefined}
|
|
24146
24457
|
` : undefined}
|
|
@@ -24182,6 +24493,98 @@ class AuroInput extends BaseInput {
|
|
|
24182
24493
|
|
|
24183
24494
|
var inputVersion = '4.2.0';
|
|
24184
24495
|
|
|
24496
|
+
class AuroElement extends i$1 {
|
|
24497
|
+
static get properties() {
|
|
24498
|
+
return {
|
|
24499
|
+
|
|
24500
|
+
/**
|
|
24501
|
+
* Defines the language of an element.
|
|
24502
|
+
* @default {'default'}
|
|
24503
|
+
*/
|
|
24504
|
+
layout: {
|
|
24505
|
+
type: String,
|
|
24506
|
+
attribute: "layout",
|
|
24507
|
+
reflect: true
|
|
24508
|
+
},
|
|
24509
|
+
|
|
24510
|
+
shape: {
|
|
24511
|
+
type: String,
|
|
24512
|
+
attribute: "shape",
|
|
24513
|
+
reflect: true
|
|
24514
|
+
},
|
|
24515
|
+
|
|
24516
|
+
size: {
|
|
24517
|
+
type: String,
|
|
24518
|
+
attribute: "size",
|
|
24519
|
+
reflect: true
|
|
24520
|
+
},
|
|
24521
|
+
|
|
24522
|
+
onDark: {
|
|
24523
|
+
type: Boolean,
|
|
24524
|
+
attribute: "ondark",
|
|
24525
|
+
reflect: true
|
|
24526
|
+
}
|
|
24527
|
+
};
|
|
24528
|
+
}
|
|
24529
|
+
|
|
24530
|
+
resetShapeClasses() {
|
|
24531
|
+
if (this.shape && this.size) {
|
|
24532
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
24533
|
+
|
|
24534
|
+
if (wrapper) {
|
|
24535
|
+
wrapper.classList.forEach((className) => {
|
|
24536
|
+
if (className.startsWith('shape-')) {
|
|
24537
|
+
wrapper.classList.remove(className);
|
|
24538
|
+
}
|
|
24539
|
+
});
|
|
24540
|
+
|
|
24541
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
24542
|
+
}
|
|
24543
|
+
}
|
|
24544
|
+
}
|
|
24545
|
+
|
|
24546
|
+
resetLayoutClasses() {
|
|
24547
|
+
if (this.layout) {
|
|
24548
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
24549
|
+
|
|
24550
|
+
if (wrapper) {
|
|
24551
|
+
wrapper.classList.forEach((className) => {
|
|
24552
|
+
if (className.startsWith('layout-')) {
|
|
24553
|
+
wrapper.classList.remove(className);
|
|
24554
|
+
}
|
|
24555
|
+
});
|
|
24556
|
+
|
|
24557
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
24558
|
+
}
|
|
24559
|
+
}
|
|
24560
|
+
}
|
|
24561
|
+
|
|
24562
|
+
updateComponentArchitecture() {
|
|
24563
|
+
this.resetLayoutClasses();
|
|
24564
|
+
this.resetShapeClasses();
|
|
24565
|
+
}
|
|
24566
|
+
|
|
24567
|
+
updated(changedProperties) {
|
|
24568
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
24569
|
+
this.updateComponentArchitecture();
|
|
24570
|
+
}
|
|
24571
|
+
}
|
|
24572
|
+
|
|
24573
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
24574
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
24575
|
+
render() {
|
|
24576
|
+
try {
|
|
24577
|
+
return this.renderLayout();
|
|
24578
|
+
} catch (error) {
|
|
24579
|
+
// failed to get the defined layout
|
|
24580
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
24581
|
+
|
|
24582
|
+
// fallback to the default layout
|
|
24583
|
+
return this.getLayout('default');
|
|
24584
|
+
}
|
|
24585
|
+
}
|
|
24586
|
+
}
|
|
24587
|
+
|
|
24185
24588
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
24186
24589
|
// See LICENSE in the project root for license information.
|
|
24187
24590
|
|
|
@@ -24210,7 +24613,7 @@ var inputVersion = '4.2.0';
|
|
|
24210
24613
|
*/
|
|
24211
24614
|
|
|
24212
24615
|
// build the component class
|
|
24213
|
-
class AuroDatePicker extends
|
|
24616
|
+
class AuroDatePicker extends AuroElement {
|
|
24214
24617
|
constructor() {
|
|
24215
24618
|
super();
|
|
24216
24619
|
|
|
@@ -24285,7 +24688,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24285
24688
|
/**
|
|
24286
24689
|
* @private
|
|
24287
24690
|
*/
|
|
24288
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
24691
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
24289
24692
|
|
|
24290
24693
|
/**
|
|
24291
24694
|
* @private
|
|
@@ -24311,6 +24714,11 @@ class AuroDatePicker extends i$2 {
|
|
|
24311
24714
|
* @private
|
|
24312
24715
|
*/
|
|
24313
24716
|
this.monthFirst = undefined;
|
|
24717
|
+
|
|
24718
|
+
// Layout Config
|
|
24719
|
+
this.layout = 'classic';
|
|
24720
|
+
this.shape = 'classic';
|
|
24721
|
+
this.size = 'lg';
|
|
24314
24722
|
}
|
|
24315
24723
|
|
|
24316
24724
|
// This function is to define props used within the scope of this component
|
|
@@ -24591,7 +24999,10 @@ class AuroDatePicker extends i$2 {
|
|
|
24591
24999
|
return [
|
|
24592
25000
|
styleCss$d,
|
|
24593
25001
|
colorCss$c,
|
|
24594
|
-
tokensCss$a
|
|
25002
|
+
tokensCss$a,
|
|
25003
|
+
|
|
25004
|
+
// layouts
|
|
25005
|
+
classicLayoutColor
|
|
24595
25006
|
];
|
|
24596
25007
|
}
|
|
24597
25008
|
|
|
@@ -24604,7 +25015,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24604
25015
|
*
|
|
24605
25016
|
*/
|
|
24606
25017
|
static register(name = "auro-datepicker") {
|
|
24607
|
-
AuroLibraryRuntimeUtils$
|
|
25018
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroDatePicker);
|
|
24608
25019
|
}
|
|
24609
25020
|
|
|
24610
25021
|
/**
|
|
@@ -24776,7 +25187,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24776
25187
|
* @returns {void}
|
|
24777
25188
|
*/
|
|
24778
25189
|
configureInput() {
|
|
24779
|
-
this.triggerInput = this.dropdown.querySelector('[slot="trigger"');
|
|
25190
|
+
this.triggerInput = this.dropdown.querySelector('[slot="trigger"]');
|
|
24780
25191
|
|
|
24781
25192
|
this.inputList = [...this.dropdown.querySelectorAll(this.inputTag._$litStatic$)];
|
|
24782
25193
|
|
|
@@ -25217,70 +25628,152 @@ class AuroDatePicker extends i$2 {
|
|
|
25217
25628
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
25218
25629
|
}
|
|
25219
25630
|
|
|
25631
|
+
// layout render methods
|
|
25632
|
+
// ------------------------------------
|
|
25633
|
+
|
|
25634
|
+
/**
|
|
25635
|
+
* Base wrapper for the datepicker layout - every layout follows this same structure
|
|
25636
|
+
* with minor variations in DOM structure.
|
|
25637
|
+
* @param {import("lit").TemplateResult} content - The content to be rendered inside the base layout.
|
|
25638
|
+
* @return {import("lit").TemplateResult}
|
|
25639
|
+
* @private
|
|
25640
|
+
*/
|
|
25641
|
+
_renderBaseLayout(content) {
|
|
25642
|
+
return u$3`
|
|
25643
|
+
<div
|
|
25644
|
+
part="wrapper">
|
|
25645
|
+
<div class="accents left">
|
|
25646
|
+
calendar icon
|
|
25647
|
+
</div>
|
|
25648
|
+
<div class="mainContent">
|
|
25649
|
+
${content}
|
|
25650
|
+
</div>
|
|
25651
|
+
<div class="accents right">
|
|
25652
|
+
error and/or close icon here :)
|
|
25653
|
+
</div>
|
|
25654
|
+
</div>
|
|
25655
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
25656
|
+
help text here (see combobox for example)
|
|
25657
|
+
</div>
|
|
25658
|
+
`;
|
|
25659
|
+
}
|
|
25660
|
+
|
|
25661
|
+
/**
|
|
25662
|
+
* Renders the emphasized layout for the datepicker.
|
|
25663
|
+
* @private
|
|
25664
|
+
* @return {import("lit").TemplateResult}
|
|
25665
|
+
*/
|
|
25666
|
+
renderEmphasizedLayout() {
|
|
25667
|
+
return u$3`
|
|
25668
|
+
<div
|
|
25669
|
+
part="wrapper">
|
|
25670
|
+
<div class="accents left">
|
|
25671
|
+
calendar icon
|
|
25672
|
+
</div>
|
|
25673
|
+
<div class="mainContent">
|
|
25674
|
+
${this.renderTempInputs()}
|
|
25675
|
+
</div>
|
|
25676
|
+
<div class="accents right">
|
|
25677
|
+
error and/or close icon here :)
|
|
25678
|
+
</div>
|
|
25679
|
+
</div>
|
|
25680
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
25681
|
+
help text here (see combobox for example)
|
|
25682
|
+
</div>
|
|
25683
|
+
`;
|
|
25684
|
+
}
|
|
25685
|
+
|
|
25686
|
+
renderLayoutFromAttributes() {
|
|
25687
|
+
switch (this.layout) {
|
|
25688
|
+
case 'emphasized':
|
|
25689
|
+
return this.renderEmphasizedLayout();
|
|
25690
|
+
default:
|
|
25691
|
+
// TODO: remove when all base layouts are implemented and instead return classic
|
|
25692
|
+
return u$3`
|
|
25693
|
+
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
25694
|
+
`;
|
|
25695
|
+
}
|
|
25696
|
+
}
|
|
25697
|
+
|
|
25698
|
+
renderTempInputs() {
|
|
25699
|
+
return u$3`
|
|
25700
|
+
<${this.inputTag}
|
|
25701
|
+
id="${this.generateRandomString(12)}"
|
|
25702
|
+
bordered
|
|
25703
|
+
class="dateFrom"
|
|
25704
|
+
?onDark="${this.onDark}"
|
|
25705
|
+
?required="${this.required}"
|
|
25706
|
+
noValidate
|
|
25707
|
+
type="date"
|
|
25708
|
+
.format="${this.format}"
|
|
25709
|
+
.max="${this.maxDate}"
|
|
25710
|
+
.min="${this.minDate}"
|
|
25711
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
25712
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25713
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25714
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25715
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25716
|
+
?disabled="${this.disabled}"
|
|
25717
|
+
inputmode="${o(this.inputmode)}"
|
|
25718
|
+
part="input">
|
|
25719
|
+
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
25720
|
+
</${this.inputTag}>
|
|
25721
|
+
${this.range ? u$3`
|
|
25722
|
+
<${this.inputTag}
|
|
25723
|
+
id="${this.generateRandomString(12)}"
|
|
25724
|
+
bordered
|
|
25725
|
+
class="dateTo"
|
|
25726
|
+
?onDark="${this.onDark}"
|
|
25727
|
+
?required="${this.required}"
|
|
25728
|
+
noValidate
|
|
25729
|
+
type="date"
|
|
25730
|
+
.format="${this.format}"
|
|
25731
|
+
.max="${this.maxDate}"
|
|
25732
|
+
.min="${this.minDate}"
|
|
25733
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
25734
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25735
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25736
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25737
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25738
|
+
?disabled="${this.disabled}"
|
|
25739
|
+
part="input">
|
|
25740
|
+
<span slot="label"><slot name="toLabel"></slot></span>
|
|
25741
|
+
</${this.inputTag}>
|
|
25742
|
+
` : undefined}`;
|
|
25743
|
+
}
|
|
25744
|
+
|
|
25745
|
+
// ------------------------------------
|
|
25746
|
+
// end of layout render methods
|
|
25747
|
+
|
|
25220
25748
|
// function that renders the HTML and CSS into the scope of the component
|
|
25221
25749
|
render() {
|
|
25222
|
-
|
|
25223
|
-
|
|
25750
|
+
// Base HTML render() handles dropdown and calendar bib
|
|
25751
|
+
return u$3`
|
|
25752
|
+
<div>
|
|
25224
25753
|
<${this.dropdownTag}
|
|
25225
|
-
|
|
25226
|
-
fluid
|
|
25227
|
-
bordered
|
|
25228
|
-
rounded
|
|
25754
|
+
?autoPlacement="${this.autoPlacement}"
|
|
25229
25755
|
?onDark="${this.onDark}"
|
|
25230
25756
|
?disabled="${this.disabled}"
|
|
25231
25757
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
25232
|
-
|
|
25758
|
+
?noFlip="${this.noFlip}"
|
|
25233
25759
|
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
25234
|
-
.
|
|
25760
|
+
.layout="${this.layout}"
|
|
25235
25761
|
.offset="${this.offset}"
|
|
25236
|
-
|
|
25237
|
-
|
|
25238
|
-
|
|
25762
|
+
.placement="${this.placement}"
|
|
25763
|
+
.shape="${this.shape}"
|
|
25764
|
+
.size="${this.size}"
|
|
25765
|
+
bordered
|
|
25766
|
+
disableEventShow
|
|
25767
|
+
fluid
|
|
25768
|
+
for="dropdownMenu"
|
|
25769
|
+
part="dropdown"
|
|
25770
|
+
rounded
|
|
25771
|
+
simple
|
|
25772
|
+
>
|
|
25239
25773
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
25240
|
-
|
|
25241
|
-
id="${this.generateRandomString(12)}"
|
|
25242
|
-
bordered
|
|
25243
|
-
class="dateFrom"
|
|
25244
|
-
?onDark="${this.onDark}"
|
|
25245
|
-
?required="${this.required}"
|
|
25246
|
-
noValidate
|
|
25247
|
-
type="date"
|
|
25248
|
-
.format="${this.format}"
|
|
25249
|
-
.max="${this.maxDate}"
|
|
25250
|
-
.min="${this.minDate}"
|
|
25251
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
25252
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25253
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25254
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25255
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25256
|
-
?disabled="${this.disabled}"
|
|
25257
|
-
inputmode="${o(this.inputmode)}"
|
|
25258
|
-
part="input">
|
|
25259
|
-
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
25260
|
-
</${this.inputTag}>
|
|
25261
|
-
${this.range ? u$2`
|
|
25262
|
-
<${this.inputTag}
|
|
25263
|
-
id="${this.generateRandomString(12)}"
|
|
25264
|
-
bordered
|
|
25265
|
-
class="dateTo"
|
|
25266
|
-
?onDark="${this.onDark}"
|
|
25267
|
-
?required="${this.required}"
|
|
25268
|
-
noValidate
|
|
25269
|
-
type="date"
|
|
25270
|
-
.format="${this.format}"
|
|
25271
|
-
.max="${this.maxDate}"
|
|
25272
|
-
.min="${this.minDate}"
|
|
25273
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
25274
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25275
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25276
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25277
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25278
|
-
?disabled="${this.disabled}"
|
|
25279
|
-
part="input">
|
|
25280
|
-
<span slot="label"><slot name="toLabel"></slot></span>
|
|
25281
|
-
</${this.inputTag}>
|
|
25282
|
-
` : undefined}
|
|
25774
|
+
${this.renderLayoutFromAttributes()}
|
|
25283
25775
|
</div>
|
|
25776
|
+
|
|
25284
25777
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
25285
25778
|
<auro-formkit-calendar
|
|
25286
25779
|
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
@@ -25296,16 +25789,16 @@ class AuroDatePicker extends i$2 {
|
|
|
25296
25789
|
>
|
|
25297
25790
|
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
25298
25791
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
25299
|
-
<span slot="bib.fullscreen.fromStr">${this.value || u$
|
|
25300
|
-
${this.range ? u$
|
|
25792
|
+
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
25793
|
+
${this.range ? u$3`<span slot="mobileDateToStr">${this.valueEnd || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
25301
25794
|
</auro-formkit-calendar>
|
|
25302
25795
|
</div>
|
|
25303
25796
|
<p slot="helpText" part="helpTextSpan">
|
|
25304
25797
|
<!-- Help text and error message template -->
|
|
25305
25798
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
25306
|
-
? u$
|
|
25799
|
+
? u$3`
|
|
25307
25800
|
<slot name="helpText"></slot>
|
|
25308
|
-
` : u$
|
|
25801
|
+
` : u$3`
|
|
25309
25802
|
<span role="alert" aria-live="assertive" part="helpText">
|
|
25310
25803
|
${this.errorMessage}
|
|
25311
25804
|
</span>`
|