@aurodesignsystem/auro-formkit 2.0.2 → 2.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +281 -135
- package/components/bibtemplate/dist/registered.js +281 -135
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +30 -56
- package/components/checkbox/demo/index.min.js +30 -56
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/index.js +28 -101
- package/components/checkbox/dist/registered.js +28 -101
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.min.js +1289 -734
- package/components/combobox/demo/index.min.js +1289 -734
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/index.js +1024 -632
- package/components/combobox/dist/registered.js +1024 -632
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +971 -435
- package/components/counter/demo/index.js +1 -0
- package/components/counter/demo/index.min.js +972 -435
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +972 -483
- package/components/counter/dist/registered.js +972 -483
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +30 -0
- package/components/datepicker/demo/api.min.js +1818 -735
- package/components/datepicker/demo/index.min.js +1818 -735
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-calendar.d.ts +5 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +7 -0
- package/components/datepicker/dist/buttonVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +1830 -817
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +1830 -817
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.min.js +231 -117
- package/components/dropdown/demo/index.min.js +231 -117
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/index.js +232 -165
- package/components/dropdown/dist/registered.js +232 -165
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/dist/index.js +4 -28
- package/components/form/dist/registered.js +4 -28
- package/components/helptext/dist/index.js +6 -30
- package/components/helptext/dist/registered.js +6 -30
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +471 -164
- package/components/input/demo/index.min.js +471 -164
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/index.js +468 -220
- package/components/input/dist/registered.js +468 -220
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.min.js +183 -60
- package/components/menu/demo/index.min.js +183 -60
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +205 -129
- package/components/menu/dist/registered.js +205 -129
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.min.js +30 -56
- package/components/radio/demo/index.min.js +30 -56
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/index.js +28 -101
- package/components/radio/dist/registered.js +28 -101
- package/components/select/README.md +1 -1
- package/components/select/demo/api.min.js +736 -436
- package/components/select/demo/index.min.js +736 -436
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/index.js +538 -402
- package/components/select/dist/registered.js +538 -402
- package/package.json +4 -2
|
@@ -1,35 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright 2017 Google LLC
|
|
11
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/const{is:i$g,defineProperty:e$d,getOwnPropertyDescriptor:r$e,getOwnPropertyNames:h$7,getOwnPropertySymbols:o$d,getPrototypeOf:n$c}=Object,a$9=globalThis,c$a=a$9.trustedTypes,l$9=c$a?c$a.emptyScript:"",p$8=a$9.reactiveElementPolyfillSupport,d$7=(t,s)=>t,u$b={toAttribute(t,s){switch(s){case Boolean:t=t?l$9: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$7=(t,s)=>!i$g(t,s),y$7={attribute:true,type:String,converter:u$b,reflect:false,hasChanged:f$7};Symbol.metadata??=Symbol("metadata"),a$9.litPropertyMetadata??=new WeakMap;let b$4 = class b 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=y$7){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$d(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$e(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$7}static _$Ei(){if(this.hasOwnProperty(d$7("elementProperties")))return;const t=n$c(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$7("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$7("properties"))){const t=this.properties,s=[...h$7(t),...o$d(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$b(s));}else void 0!==s&&i.push(c$b(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$7(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);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$b).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),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),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$b;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$7)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){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) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}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._$EU();}catch(s){throw t=false,this._$EU(),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);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$4.elementStyles=[],b$4.shadowRootOptions={mode:"open"},b$4[d$7("elementProperties")]=new Map,b$4[d$7("finalized")]=new Map,p$8?.({ReactiveElement:b$4}),(a$9.reactiveElementVersions??=[]).push("2.0.4");
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright 2017 Google LLC
|
|
17
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
-
*/
|
|
19
|
-
const t$9=globalThis,i$f=t$9.trustedTypes,s$9=i$f?i$f.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$c="$lit$",h$6=`lit$${Math.random().toFixed(9).slice(2)}$`,o$c="?"+h$6,n$b=`<${o$c}>`,r$d=document,l$8=()=>r$d.createComment(""),c$9=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$8=Array.isArray,u$a=t=>a$8(t)||"function"==typeof t?.[Symbol.iterator],d$6="[ \t\n\f\r]",f$6=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$5=/-->/g,_$4=/>/g,m$5=RegExp(`>|${d$6}(?:([^\\s"'>=/]+)(${d$6}*=${d$6}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$7=/'/g,g$4=/"/g,$$4=/^(?:script|style|textarea|title)$/i,y$6=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$4=y$6(1),T$4=Symbol.for("lit-noChange"),E$4=Symbol.for("lit-nothing"),A$4=new WeakMap,C$4=r$d.createTreeWalker(r$d,129);function P$4(t,i){if(!a$8(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$9?s$9.createHTML(i):i}const V$4=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$6;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$6?"!--"===u[1]?c=v$5:void 0!==u[1]?c=_$4:void 0!==u[2]?($$4.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$5):void 0!==u[3]&&(c=m$5):c===m$5?">"===u[0]?(c=r??f$6,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$5:'"'===u[3]?g$4:p$7):c===g$4||c===p$7?c=m$5:c===v$5||c===_$4?c=f$6:(c=m$5,r=void 0);const x=c===m$5&&t[i+1].startsWith("/>")?" ":"";l+=c===f$6?s+n$b:d>=0?(o.push(a),s.slice(0,d)+e$c+s.slice(d)+h$6+x):s+h$6+(-2===d?i:x);}return [P$4(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$4 = 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$4(t,s);if(this.el=N.createElement(f,n),C$4.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$4.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$c)){const i=v[a++],s=r.getAttribute(t).split(h$6),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$4:"?"===e[1]?I$4:"@"===e[1]?L$4:k$4}),r.removeAttribute(t);}else t.startsWith(h$6)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$4.test(r.tagName)){const t=r.textContent.split(h$6),s=t.length-1;if(s>0){r.textContent=i$f?i$f.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$8()),C$4.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$8());}}}else if(8===r.nodeType)if(r.data===o$c)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$6,t+1));)d.push({type:7,index:c}),t+=h$6.length-1;}c++;}}static createElement(t,i){const s=r$d.createElement("template");return s.innerHTML=t,s}};function S$6(t,i,s=t,e){if(i===T$4)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$9(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$6(t,h._$AS(t,i.values),h,e)),i}let M$5 = 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$d).importNode(i,true);C$4.currentNode=e;let h=C$4.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$4(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$4(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$4.nextNode(),o++);}return C$4.currentNode=r$d,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++;}};let R$4 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$4,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$6(this,t,i),c$9(t)?t===E$4||null==t||""===t?(this._$AH!==E$4&&this._$AR(),this._$AH=E$4):t!==this._$AH&&t!==T$4&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$a(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$4&&c$9(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$d.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$4.createElement(P$4(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$5(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$4.get(t.strings);return void 0===i&&A$4.set(t.strings,i=new N$4(t)),i}k(t){a$8(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$8()),this.O(l$8()),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));}};let k$4 = 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$4,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$4;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$6(this,t,i,0),o=!c$9(t)||t!==this._$AH&&t!==T$4,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$6(this,e[s+n],i,n),r===T$4&&(r=this._$AH[n]),o||=!c$9(r)||r!==this._$AH[n],r===E$4?t=E$4:t!==E$4&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$4?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$4 = class H extends k$4{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$4?void 0:t;}};let I$4 = class I extends k$4{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$4);}};let L$4 = class L extends k$4{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$6(this,t,i,0)??E$4)===T$4)return;const s=this._$AH,e=t===E$4&&s!==E$4||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$4&&(s===E$4||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);}};let z$4 = 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$6(this,t);}};const j$4=t$9.litHtmlPolyfillSupport;j$4?.(N$4,R$4),(t$9.litHtmlVersions??=[]).push("3.2.1");const B$4=(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$4(i.insertBefore(l$8(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright 2017 Google LLC
|
|
24
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/let r$c = class r extends b$4{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 s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$4(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$4}};r$c._$litElement$=true,r$c["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$c});const i$e=globalThis.litElementPolyfillSupport;i$e?.({LitElement:r$c});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @license
|
|
29
|
-
* Copyright 2020 Google LLC
|
|
30
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/
|
|
32
|
-
const a$7=Symbol.for(""),o$b=t=>{if(t?.r===a$7)return t?._$litStatic$},s$8=t=>({_$litStatic$:t,r:a$7}),i$d=(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$7}),l$7=new Map,n$a=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$b(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$7.get(t))&&(n.raw=n,l$7.set(t,r=n)),e=u;}return t(r,...e)},u$9=n$a(x$4);
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
3
|
+
import { property } from 'lit/decorators.js';
|
|
4
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
5
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
|
+
import { repeat } from 'lit/directives/repeat.js';
|
|
33
7
|
|
|
34
8
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
35
9
|
// See LICENSE in the project root for license information.
|
|
@@ -38,7 +12,7 @@ const a$7=Symbol.for(""),o$b=t=>{if(t?.r===a$7)return t?._$litStatic$},s$8=t=>({
|
|
|
38
12
|
|
|
39
13
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
40
14
|
|
|
41
|
-
let AuroLibraryRuntimeUtils$
|
|
15
|
+
let AuroLibraryRuntimeUtils$9 = class AuroLibraryRuntimeUtils {
|
|
42
16
|
|
|
43
17
|
/* eslint-disable jsdoc/require-param */
|
|
44
18
|
|
|
@@ -107,7 +81,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
107
81
|
|
|
108
82
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
109
83
|
constructor() {
|
|
110
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
84
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
111
85
|
}
|
|
112
86
|
|
|
113
87
|
/**
|
|
@@ -416,7 +390,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
416
390
|
// See LICENSE in the project root for license information.
|
|
417
391
|
|
|
418
392
|
|
|
419
|
-
let AuroDependencyVersioning$
|
|
393
|
+
let AuroDependencyVersioning$5 = class AuroDependencyVersioning {
|
|
420
394
|
|
|
421
395
|
/**
|
|
422
396
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -442,7 +416,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
|
442
416
|
*/
|
|
443
417
|
generateTag(baseName, version, tagClass) {
|
|
444
418
|
const elementName = this.generateElementName(baseName, version);
|
|
445
|
-
const tag =
|
|
419
|
+
const tag = literal`${unsafeStatic(elementName)}`;
|
|
446
420
|
|
|
447
421
|
if (!customElements.get(elementName)) {
|
|
448
422
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -774,8 +748,8 @@ class UtilitiesCalendarRender {
|
|
|
774
748
|
* @returns {Object} Returns the auro-calendar-month HTML.
|
|
775
749
|
*/
|
|
776
750
|
renderCalendar(elem, month, year) {
|
|
777
|
-
return
|
|
778
|
-
<auro-calendar-month
|
|
751
|
+
return html`
|
|
752
|
+
<auro-formkit-calendar-month
|
|
779
753
|
id="${`month-${month}-${year}`}"
|
|
780
754
|
.disabledDays="${elem.disabledDays}"
|
|
781
755
|
.min="${elem.min}"
|
|
@@ -793,24 +767,24 @@ class UtilitiesCalendarRender {
|
|
|
793
767
|
@date-from-changed="${elem.dateFromChanged}"
|
|
794
768
|
@date-to-changed="${elem.dateToChanged}"
|
|
795
769
|
>
|
|
796
|
-
</auro-calendar-month>
|
|
770
|
+
</auro-formkit-calendar-month>
|
|
797
771
|
`;
|
|
798
772
|
}
|
|
799
773
|
}
|
|
800
774
|
|
|
801
|
-
var styleCss$
|
|
775
|
+
var styleCss$d = css`.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(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important}[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%)}.outerWrapper{position:relative;container:outerwrapper/inline-size}.dpTriggerContent{display:flex;flex-direction:column}.dpTriggerContent [auro-input]{flex:1}:host(:not([stacked])) .dpTriggerContent{flex-direction:row}:host(:not([stacked])) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem)}:host(:not([stacked])) [auro-input]:nth-child(2){margin-left:var(--ds-size-150, 0.75rem)}:host(:not([stacked])) [auro-input]:nth-child(2)::part(accentIcon){display:none}:host(:not([stacked])) [auro-input]:nth-child(2)::part(label){left:0;width:100%}:host(:not([stacked])) [auro-input]:nth-child(2)::part(input){padding-left:0}:host(: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(:not([stacked])) [auro-input]:not(:first-child)::part(wrapper):after{content:none}:host(:not([stacked])[range]) [auro-input]{max-width:50%}@media screen and (max-width: 576px){::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}.calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
|
|
802
776
|
|
|
803
|
-
var colorCss$
|
|
777
|
+
var colorCss$d = css`.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)}.placeholderDate{color:var(--ds-auro-datepicker-placeholder-color)}`;
|
|
804
778
|
|
|
805
|
-
var tokensCss$
|
|
779
|
+
var tokensCss$a = css`:host{--ds-auro-datepicker-placeholder-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-datepicker-range-input-divider-color: var(--ds-color-border-primary-default, #585e67);--ds-auro-calendar-mobile-header-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-calendar-mobile-header-divider-color: var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12));--ds-auro-calendar-mobile-header-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-calendar-nav-btn-border-color: transparent;--ds-auro-calendar-nav-btn-chevron-color: var(--ds-color-icon-ui-primary-default-default, #2c67b5);--ds-auro-calendar-nav-btn-container-color: transparent;--ds-auro-calendar-month-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-calendar-month-divider-color: var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12));--ds-auro-calendar-month-header-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-calendar-cell-border-color: transparent;--ds-auro-calendar-cell-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-in-range-color: var(--ds-color-container-secondary-default, #f7f7f7);--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
806
780
|
|
|
807
|
-
var styleCss$
|
|
781
|
+
var styleCss$c = css`: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-text-body-size-xs, 0.75rem)}.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:""}`;
|
|
808
782
|
|
|
809
|
-
var colorCss$
|
|
783
|
+
var colorCss$c = css`.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,.calendarNavBtn:focus{--ds-auro-calendar-nav-btn-border-color: var(--ds-color-border-ui-default-default, #2c67b5)}.calendarNavBtn:active{--ds-auro-calendar-nav-btn-border-color: var(--ds-color-border-ui-default-default, #2c67b5);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)}@media screen and (max-width: 576px){.calendarNavBtn{--ds-auro-calendar-nav-btn-border-color: var(--ds-color-border-ui-default-default, #2c67b5)}}`;
|
|
810
784
|
|
|
811
|
-
var styleCss$
|
|
785
|
+
var styleCss$b = css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}: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-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)}.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%}`;
|
|
812
786
|
|
|
813
|
-
var colorCss$
|
|
787
|
+
var colorCss$b = css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}: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)}`;
|
|
814
788
|
|
|
815
789
|
/******************************************************************************
|
|
816
790
|
Copyright (c) Microsoft Corporation.
|
|
@@ -841,12 +815,6 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
841
815
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
842
816
|
};
|
|
843
817
|
|
|
844
|
-
/**
|
|
845
|
-
* @license
|
|
846
|
-
* Copyright 2017 Google LLC
|
|
847
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
848
|
-
*/const o$a={attribute:true,type:String,converter:u$b,reflect:false,hasChanged:f$7},r$b=(t=o$a,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),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.P(o,void 0,t),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$9(t){return (e,o)=>"object"==typeof o?r$b(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:true}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}
|
|
849
|
-
|
|
850
818
|
/**
|
|
851
819
|
* @module constants
|
|
852
820
|
* @summary Useful constants
|
|
@@ -6601,7 +6569,7 @@ function subYears(date, amount, options) {
|
|
|
6601
6569
|
return addYears(date, -1, options);
|
|
6602
6570
|
}
|
|
6603
6571
|
|
|
6604
|
-
class RangeDatepickerCell extends
|
|
6572
|
+
class RangeDatepickerCell extends LitElement {
|
|
6605
6573
|
constructor() {
|
|
6606
6574
|
super(...arguments);
|
|
6607
6575
|
this.day = null;
|
|
@@ -6632,7 +6600,7 @@ class RangeDatepickerCell extends r$c {
|
|
|
6632
6600
|
|
|
6633
6601
|
render() {
|
|
6634
6602
|
let _a, _b;
|
|
6635
|
-
return
|
|
6603
|
+
return html`
|
|
6636
6604
|
<button
|
|
6637
6605
|
@click="${this.handleTap}"
|
|
6638
6606
|
@mouseover="${this.handleHover}"
|
|
@@ -6722,7 +6690,7 @@ class RangeDatepickerCell extends r$c {
|
|
|
6722
6690
|
});
|
|
6723
6691
|
}
|
|
6724
6692
|
}
|
|
6725
|
-
RangeDatepickerCell.styles =
|
|
6693
|
+
RangeDatepickerCell.styles = css`
|
|
6726
6694
|
:host {
|
|
6727
6695
|
display: block;
|
|
6728
6696
|
}
|
|
@@ -6789,20 +6757,20 @@ RangeDatepickerCell.styles = i$h`
|
|
|
6789
6757
|
opacity: 0.4;
|
|
6790
6758
|
}
|
|
6791
6759
|
`;
|
|
6792
|
-
__decorate([
|
|
6793
|
-
__decorate([
|
|
6794
|
-
__decorate([
|
|
6795
|
-
__decorate([
|
|
6796
|
-
__decorate([
|
|
6797
|
-
__decorate([
|
|
6798
|
-
__decorate([
|
|
6799
|
-
__decorate([
|
|
6800
|
-
__decorate([
|
|
6801
|
-
__decorate([
|
|
6802
|
-
__decorate([
|
|
6803
|
-
__decorate([
|
|
6804
|
-
__decorate([
|
|
6805
|
-
AuroLibraryRuntimeUtils$
|
|
6760
|
+
__decorate([property({ type: Object })], RangeDatepickerCell.prototype, "day", void 0);
|
|
6761
|
+
__decorate([property({ type: Boolean })], RangeDatepickerCell.prototype, "selected", void 0);
|
|
6762
|
+
__decorate([property({ type: Boolean })], RangeDatepickerCell.prototype, "hovered", void 0);
|
|
6763
|
+
__decorate([property({ type: String })], RangeDatepickerCell.prototype, "dateTo", void 0);
|
|
6764
|
+
__decorate([property({ type: String })], RangeDatepickerCell.prototype, "dateFrom", void 0);
|
|
6765
|
+
__decorate([property({ type: String })], RangeDatepickerCell.prototype, "month", void 0);
|
|
6766
|
+
__decorate([property({ type: Number })], RangeDatepickerCell.prototype, "min", void 0);
|
|
6767
|
+
__decorate([property({ type: Number })], RangeDatepickerCell.prototype, "max", void 0);
|
|
6768
|
+
__decorate([property({ type: Boolean })], RangeDatepickerCell.prototype, "disabled", void 0);
|
|
6769
|
+
__decorate([property({ type: Array })], RangeDatepickerCell.prototype, "disabledDays", void 0);
|
|
6770
|
+
__decorate([property({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", void 0);
|
|
6771
|
+
__decorate([property({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", void 0);
|
|
6772
|
+
__decorate([property({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
6773
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
6806
6774
|
|
|
6807
6775
|
class Day {
|
|
6808
6776
|
constructor(date) {
|
|
@@ -6811,7 +6779,7 @@ class Day {
|
|
|
6811
6779
|
}
|
|
6812
6780
|
}
|
|
6813
6781
|
|
|
6814
|
-
class RangeDatepickerCalendar extends
|
|
6782
|
+
class RangeDatepickerCalendar extends LitElement {
|
|
6815
6783
|
constructor() {
|
|
6816
6784
|
super();
|
|
6817
6785
|
|
|
@@ -6865,7 +6833,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
6865
6833
|
|
|
6866
6834
|
render() {
|
|
6867
6835
|
let _a, _b;
|
|
6868
|
-
return
|
|
6836
|
+
return html`
|
|
6869
6837
|
<div>
|
|
6870
6838
|
<div class="header">
|
|
6871
6839
|
${this.renderPrevButton()}
|
|
@@ -6892,7 +6860,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
6892
6860
|
|
|
6893
6861
|
renderPrevButton() {
|
|
6894
6862
|
if (this.prev || this.narrow || this.enableYearChange) {
|
|
6895
|
-
return
|
|
6863
|
+
return html`
|
|
6896
6864
|
<button
|
|
6897
6865
|
icon="chevron_left"
|
|
6898
6866
|
@click="${this.handlePrevMonth}">
|
|
@@ -6904,7 +6872,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
6904
6872
|
|
|
6905
6873
|
renderNextButton() {
|
|
6906
6874
|
if (this.next || this.narrow || this.enableYearChange) {
|
|
6907
|
-
return
|
|
6875
|
+
return html`
|
|
6908
6876
|
<button
|
|
6909
6877
|
icon="chevron_right"
|
|
6910
6878
|
@click="${this.handleNextMonth}">
|
|
@@ -6915,23 +6883,23 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
6915
6883
|
}
|
|
6916
6884
|
|
|
6917
6885
|
renderYear() {
|
|
6918
|
-
return
|
|
6886
|
+
return html`${this.year}`;
|
|
6919
6887
|
}
|
|
6920
6888
|
|
|
6921
6889
|
renderDayOfWeek(dayOfWeek) {
|
|
6922
|
-
return
|
|
6890
|
+
return html`<div class="th">${dayOfWeek}</div>`;
|
|
6923
6891
|
}
|
|
6924
6892
|
|
|
6925
6893
|
renderWeek(week) {
|
|
6926
|
-
return
|
|
6894
|
+
return html`
|
|
6927
6895
|
<div class="tr">${week.map((day) => this.renderDay(day))}</div>
|
|
6928
6896
|
`;
|
|
6929
6897
|
}
|
|
6930
6898
|
|
|
6931
6899
|
renderDay(day) {
|
|
6932
|
-
return
|
|
6900
|
+
return html`
|
|
6933
6901
|
<div class="td ${this.tdIsEnabled(day)}">
|
|
6934
|
-
${day ?
|
|
6902
|
+
${day ? html`
|
|
6935
6903
|
<wc-range-datepicker-cell
|
|
6936
6904
|
.disabledDays="${this.disabledDays}"
|
|
6937
6905
|
.min="${this.min}"
|
|
@@ -7197,7 +7165,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
7197
7165
|
}
|
|
7198
7166
|
}
|
|
7199
7167
|
|
|
7200
|
-
RangeDatepickerCalendar.styles =
|
|
7168
|
+
RangeDatepickerCalendar.styles = css`
|
|
7201
7169
|
:host {
|
|
7202
7170
|
display: block;
|
|
7203
7171
|
width: 266px;
|
|
@@ -7302,48 +7270,35 @@ RangeDatepickerCalendar.styles = i$h`
|
|
|
7302
7270
|
max-height: 200px;
|
|
7303
7271
|
}
|
|
7304
7272
|
`;
|
|
7305
|
-
__decorate([
|
|
7306
|
-
__decorate([
|
|
7307
|
-
__decorate([
|
|
7308
|
-
__decorate([
|
|
7309
|
-
__decorate([
|
|
7310
|
-
__decorate([
|
|
7311
|
-
__decorate([
|
|
7312
|
-
__decorate([
|
|
7313
|
-
__decorate([
|
|
7314
|
-
__decorate([
|
|
7315
|
-
__decorate([
|
|
7316
|
-
__decorate([
|
|
7317
|
-
__decorate([
|
|
7318
|
-
__decorate([
|
|
7319
|
-
__decorate([
|
|
7320
|
-
__decorate([
|
|
7321
|
-
__decorate([
|
|
7322
|
-
__decorate([
|
|
7323
|
-
AuroLibraryRuntimeUtils$
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
*/
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
* Copyright 2018 Google LLC
|
|
7335
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
7336
|
-
*/const e$a=e$b(class extends i$c{constructor(t){if(super(t),t.type!==t$8.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$4}});
|
|
7337
|
-
|
|
7338
|
-
var styleCss$8 = i$h`@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-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);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-text-body-size-xxs, 0.625rem)}::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-size:var(--ds-text-body-size-lg, 1.125rem)}.day:hover{cursor:pointer}.dateSlot{font-size:var(--ds-text-body-size-xs, 0.75rem)}}`;
|
|
7339
|
-
|
|
7340
|
-
var colorCss$8 = i$h`: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-color-text-success-default, #0b6f4d)}.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)}.day.selected{--ds-auro-calendar-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-calendar-cell-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-inverse, #ffffff);box-shadow:var(--ds-auro-calendar-boxshadow-color)}.day.selected:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-calendar-cell-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:unset}.day.selected:not(:hover){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-primary-inverse, #ffffff)}.day:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-brand-neutral-200, #e4e8ec);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-default, #2a2a2a)}.day.disabled{--ds-auro-calendar-cell-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-calendar-cell-container-color: var(--ds-color-container-primary-default, #ffffff)}.day.inRange:before,.day.rangeDepartDate:before,.day.rangeReturnDate:before,.day.lastHoveredDate:before{background-color:var(--ds-auro-calendar-cell-in-range-color)}.day.sameDateTrip:before{--ds-auro-calendar-cell-in-range-color: transparent}:host([disabled]){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
7341
|
-
|
|
7342
|
-
var styleCss$7 = i$h`:root{--ds-asset-font-circular-family-name: "AS Circular";--ds-asset-font-circular-filename: "ASCircularWeb";--ds-asset-font-circular-weight-light: "-Light";--ds-asset-font-circular-weight-medium: "-Medium";--ds-asset-font-circular-weight-book: "-Book";--ds-border-radius: 0.375rem;--ds-size-25: 0.125rem;--ds-size-50: 0.25rem;--ds-size-75: 0.375rem;--ds-size-100: 0.5rem;--ds-size-150: 0.75rem;--ds-size-200: 1rem;--ds-size-300: 1.5rem;--ds-size-400: 2rem;--ds-size-500: 2.5rem;--ds-size-600: 3rem;--ds-size-700: 3.5rem;--ds-size-800: 4rem;--ds-size-900: 4.5rem;--ds-size-1000: 5rem;--ds-unitless-scale-20: 0.25;--ds-unitless-scale-50: 0.5;--ds-unitless-scale-100: 1;--ds-unitless-scale-140: 1.4;--ds-unitless-scale-150: 1.5;--ds-unitless-scale-200: 2;--ds-unitless-scale-300: 3;--ds-unitless-scale-350: 3.5;--ds-animation-default-property: all;--ds-animation-default-duration: 0.3s;--ds-animation-default-timing: ease-out;--ds-depth-overlay: 200;--ds-depth-modal: 400;--ds-depth-tooltip: 300;--ds-elevation-100: 0px 0px 5px rgba(0, 0, 0, 0.15);--ds-elevation-200: 0px 0px 10px rgba(0, 0, 0, 0.15);--ds-elevation-300: 0px 0px 15px rgba(0, 0, 0, 0.2);--ds-grid-breakpoint-xs: 320px;--ds-grid-breakpoint-sm: 576px;--ds-grid-breakpoint-md: 768px;--ds-grid-breakpoint-lg: 1024px;--ds-grid-breakpoint-xl: 1232px;--ds-grid-column-xs: 6;--ds-grid-column-sm: 12;--ds-grid-column-md: 12;--ds-grid-column-lg: 12;--ds-grid-column-xl: 12;--ds-grid-gutter-xs: 0.5rem;--ds-grid-gutter-sm: 1rem;--ds-grid-gutter-md: 1.5rem;--ds-grid-gutter-lg: 1.5rem;--ds-grid-gutter-xl: 2rem;--ds-grid-margin-xs: 1rem;--ds-grid-margin-sm: 1rem;--ds-grid-margin-md: 1.5rem;--ds-grid-margin-lg: 2rem;--ds-grid-margin-xl: 2rem;--ds-font-family-default: "AS Circular", Helvetica Neue, Arial, sans-serif;--ds-font-family-mono: Menlo, Monaco, Consolas, "Courier New", monospace;--ds-text-heading-300-weight: 300;--ds-text-heading-300-px: 18px;--ds-text-heading-300-size: 1.125rem;--ds-text-heading-300-height: 1.625rem;--ds-text-heading-300-height-px: 26px;--ds-text-heading-400-weight: 300;--ds-text-heading-400-px: 20px;--ds-text-heading-400-size: 1.25rem;--ds-text-heading-400-height: 1.625rem;--ds-text-heading-400-height-px: 26px;--ds-text-heading-500-weight: 300;--ds-text-heading-500-px-breakpoint-sm: 22px;--ds-text-heading-500-px-breakpoint-md: 24px;--ds-text-heading-500-px-breakpoint-lg: 24px;--ds-text-heading-500-size-breakpoint-sm: 1.375rem;--ds-text-heading-500-size-breakpoint-md: 1.5rem;--ds-text-heading-500-size-breakpoint-lg: 1.5rem;--ds-text-heading-500-height-breakpoint-sm: 1.625rem;--ds-text-heading-500-height-breakpoint-px-sm: 26px;--ds-text-heading-500-height-breakpoint-md: 1.875rem;--ds-text-heading-500-height-breakpoint-px-md: 30px;--ds-text-heading-500-height-breakpoint-lg: 2rem;--ds-text-heading-500-height-breakpoint-px-lg: 32px;--ds-text-heading-600-weight: 300;--ds-text-heading-600-px-breakpoint-sm: 26px;--ds-text-heading-600-px-breakpoint-md: 28px;--ds-text-heading-600-px-breakpoint-lg: 28px;--ds-text-heading-600-size-breakpoint-sm: 1.625rem;--ds-text-heading-600-size-breakpoint-md: 1.75rem;--ds-text-heading-600-size-breakpoint-lg: 1.75rem;--ds-text-heading-600-height-breakpoint-sm: 1.875rem;--ds-text-heading-600-height-breakpoint-px-sm: 30px;--ds-text-heading-600-height-breakpoint-md: 2.125rem;--ds-text-heading-600-height-breakpoint-px-md: 34px;--ds-text-heading-600-height-breakpoint-lg: 2.25rem;--ds-text-heading-600-height-breakpoint-px-lg: 36px;--ds-text-heading-700-weight: 500;--ds-text-heading-700-px-breakpoint-sm: 28px;--ds-text-heading-700-px-breakpoint-md: 32px;--ds-text-heading-700-px-breakpoint-lg: 36px;--ds-text-heading-700-size-breakpoint-sm: 1.75rem;--ds-text-heading-700-size-breakpoint-md: 2rem;--ds-text-heading-700-size-breakpoint-lg: 2.25rem;--ds-text-heading-700-height-breakpoint-sm: 2.125rem;--ds-text-heading-700-height-breakpoint-px-sm: 34px;--ds-text-heading-700-height-breakpoint-md: 2.375rem;--ds-text-heading-700-height-breakpoint-px-md: 38px;--ds-text-heading-700-height-breakpoint-lg: 2.75rem;--ds-text-heading-700-height-breakpoint-px-lg: 44px;--ds-text-heading-800-weight: 500;--ds-text-heading-800-px-breakpoint-sm: 32px;--ds-text-heading-800-px-breakpoint-md: 36px;--ds-text-heading-800-px-breakpoint-lg: 40px;--ds-text-heading-800-size-breakpoint-sm: 2rem;--ds-text-heading-800-size-breakpoint-md: 2.25rem;--ds-text-heading-800-size-breakpoint-lg: 2.5rem;--ds-text-heading-800-height-breakpoint-sm: 2.375rem;--ds-text-heading-800-height-breakpoint-px-sm: 38px;--ds-text-heading-800-height-breakpoint-md: 2.625rem;--ds-text-heading-800-height-breakpoint-px-md: 42px;--ds-text-heading-800-height-breakpoint-lg: 3rem;--ds-text-heading-800-height-breakpoint-px-lg: 48px;--ds-text-heading-default-weight: 500;--ds-text-heading-default-margin: 0;--ds-text-heading-default-spacing: -0.2px;--ds-text-heading-medium-weight: 300;--ds-text-heading-display-weight: 100;--ds-text-heading-display-px-breakpoint-sm: 44px;--ds-text-heading-display-px-breakpoint-md: 48px;--ds-text-heading-display-px-breakpoint-lg: 56px;--ds-text-heading-display-size-breakpoint-sm: 2.75rem;--ds-text-heading-display-size-breakpoint-md: 3rem;--ds-text-heading-display-size-breakpoint-lg: 3.5rem;--ds-text-heading-display-height-breakpoint-sm: 3.375rem;--ds-text-heading-display-height-breakpoint-px-sm: 54px;--ds-text-heading-display-height-breakpoint-md: 3.75rem;--ds-text-heading-display-height-breakpoint-px-md: 60px;--ds-text-heading-display-height-breakpoint-lg: 4.25rem;--ds-text-heading-display-height-breakpoint-px-lg: 68px;--ds-text-body-default-weight: 500;--ds-text-body-size-xxs: 0.625rem;--ds-text-body-size-xs: 0.75rem;--ds-text-body-size-sm: 0.875rem;--ds-text-body-size-default: 1rem;--ds-text-body-size-lg: 1.125rem;--ds-text-body-height-xs: 1rem;--ds-text-body-height-sm: 1.25rem;--ds-text-body-height-default: 1.5rem;--ds-text-body-height-lg: 1.625rem;--ds-color-alert-notification-default: #0074c8;--ds-color-alert-warning-default: #de750c;--ds-color-alert-error-default: #df0b37;--ds-color-alert-success-default: #00805d;--ds-color-alert-advisory-default: #fff0cd;--ds-color-alert-bkg-success-default: #ddf6e8;--ds-color-alert-bkg-error-default: #ffedf1;--ds-color-background-primary-100-default: #ffffff;--ds-color-background-primary-100-inverse: #0e2b4f;--ds-color-background-primary-200-default: #f7f7f7;--ds-color-background-primary-200-inverse: #194069;--ds-color-background-primary-300-default: #e4e8ec;--ds-color-background-primary-300-inverse: #265688;--ds-color-background-primary-400-default: #dddddd;--ds-color-background-primary-400-inverse: #326aa5;--ds-color-background-success-default: #eef8f5;--ds-color-background-success-inverse: #173c30;--ds-color-background-error-default: #fff4f4;--ds-color-background-error-inverse: #74110e;--ds-color-background-warning-default: #fef8e9;--ds-color-background-warning-inverse: #5d4514;--ds-color-background-info-default: #f0f7fd;--ds-color-background-info-inverse: #193d73;--ds-color-background-subtle-default: #f7f8fa;--ds-color-background-subtle-inverse: #2a2a2a;--ds-color-background-accent-default: #ebfafd;--ds-color-background-accent-inverse: #275b72;--ds-color-background-emphasis-default: #c9e0f7;--ds-color-background-emphasis-inverse: #225296;--ds-color-background-scrimmed-default: rgba(0, 0, 0, 0.5);--ds-color-background-lightest: #ffffff;--ds-color-background-lighter: #f7f7f7;--ds-color-background-darker: #01426a;--ds-color-background-darkest: #00274a;--ds-color-background-gradient-default: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));--ds-color-base-white: #ffffff;--ds-color-base-white-100: rgba(255, 255, 255, 0.03);--ds-color-base-white-200: rgba(255, 255, 255, 0.06);--ds-color-base-white-300: rgba(255, 255, 255, 0.12);--ds-color-base-white-400: rgba(255, 255, 255, 0.25);--ds-color-base-white-500: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-50: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-40: rgba(255, 255, 255, 0.4);--ds-color-base-white-opacity-0: rgba(255, 255, 255, 0);--ds-color-base-black: #000000;--ds-color-base-black-100: rgba(0, 0, 0, 0.03);--ds-color-base-black-200: rgba(0, 0, 0, 0.06);--ds-color-base-black-300: rgba(0, 0, 0, 0.12);--ds-color-base-black-400: rgba(0, 0, 0, 0.25);--ds-color-base-black-500: rgba(0, 0, 0, 0.5);--ds-color-base-black-opacity-15: rgba(0, 0, 0, 0.15);--ds-color-base-blue-100: #f0f7fd;--ds-color-base-blue-200: #c9e0f7;--ds-color-base-blue-300: #a0c9f1;--ds-color-base-blue-400: #79b2ec;--ds-color-base-blue-500: #5398e6;--ds-color-base-blue-600: #3b7fd2;--ds-color-base-blue-700: #2c67b5;--ds-color-base-blue-800: #225296;--ds-color-base-blue-900: #193d73;--ds-color-base-blue-1000: #102a51;--ds-color-base-cyan-100: #ebfafd;--ds-color-base-cyan-200: #a8e9f7;--ds-color-base-cyan-300: #6ad5ef;--ds-color-base-cyan-400: #56bbde;--ds-color-base-cyan-500: #4aa2c7;--ds-color-base-cyan-600: #3e89aa;--ds-color-base-cyan-700: #32718e;--ds-color-base-cyan-800: #275b72;--ds-color-base-cyan-900: #1d4658;--ds-color-base-cyan-1000: #12303d;--ds-color-base-error-100: #fff4f4;--ds-color-base-error-200: #f9aca6;--ds-color-base-error-300: #f16359;--ds-color-base-error-400: #cc1816;--ds-color-base-error-500: #74110e;--ds-color-base-gray-100: #f7f7f7;--ds-color-base-gray-200: #dddddd;--ds-color-base-gray-300: #c5c5c5;--ds-color-base-gray-400: #adadad;--ds-color-base-gray-500: #959595;--ds-color-base-gray-600: #7e7e7e;--ds-color-base-gray-700: #676767;--ds-color-base-gray-800: #525252;--ds-color-base-gray-900: #3d3d3d;--ds-color-base-gray-1000: #2a2a2a;--ds-color-base-green-100: #f3faf7;--ds-color-base-green-200: #000000;--ds-color-base-green-300: #addbca;--ds-color-base-green-400: #7ec6ac;--ds-color-base-green-500: #51ae8c;--ds-color-base-green-600: #459578;--ds-color-base-green-700: #3a7d64;--ds-color-base-green-800: #306854;--ds-color-base-green-900: #285545;--ds-color-base-green-1000: #1f4436;--ds-color-base-lime-100: #f5fbeb;--ds-color-base-lime-200: #d8efb4;--ds-color-base-lime-300: #badd81;--ds-color-base-lime-400: #a2c270;--ds-color-base-lime-500: #8ca761;--ds-color-base-lime-600: #778f53;--ds-color-base-lime-700: #647845;--ds-color-base-lime-800: #53643a;--ds-color-base-lime-900: #44522f;--ds-color-base-lime-1000: #364126;--ds-color-base-navy-100: #f2f7fb;--ds-color-base-navy-200: #cfe0ef;--ds-color-base-navy-300: #acc9e2;--ds-color-base-navy-400: #89b2d4;--ds-color-base-navy-500: #6899c6;--ds-color-base-navy-600: #4a82b7;--ds-color-base-navy-700: #326aa5;--ds-color-base-navy-800: #265688;--ds-color-base-navy-900: #194069;--ds-color-base-navy-1000: #0e2b4f;--ds-color-base-neutral-100: #f7f8fa;--ds-color-base-neutral-200: #e4e8ec;--ds-color-base-neutral-300: #ccd2db;--ds-color-base-neutral-400: #afb9c6;--ds-color-base-neutral-500: #939fad;--ds-color-base-neutral-600: #7e8894;--ds-color-base-neutral-700: #6a717c;--ds-color-base-neutral-800: #585e67;--ds-color-base-neutral-900: #484d55;--ds-color-base-neutral-1000: #393d43;--ds-color-base-pink-100: #fff7f8;--ds-color-base-pink-200: #fde0e6;--ds-color-base-pink-300: #fcc2ce;--ds-color-base-pink-400: #fa9db0;--ds-color-base-pink-500: #f7738e;--ds-color-base-pink-600: #e45472;--ds-color-base-pink-700: #bf475f;--ds-color-base-pink-800: #a03b50;--ds-color-base-pink-900: #833142;--ds-color-base-pink-1000: #692734;--ds-color-base-purple-100: #fbf8fe;--ds-color-base-purple-200: #ede3fd;--ds-color-base-purple-300: #ddc9fb;--ds-color-base-purple-400: #c9a9f8;--ds-color-base-purple-500: #b588f5;--ds-color-base-purple-600: #a268f3;--ds-color-base-purple-700: #8d47f0;--ds-color-base-purple-800: #7633d7;--ds-color-base-purple-900: #622ab2;--ds-color-base-purple-1000: #4e228d;--ds-color-base-red-100: #fef7f5;--ds-color-base-red-200: #fae2da;--ds-color-base-red-300: #f5c7b8;--ds-color-base-red-400: #f0a68d;--ds-color-base-red-500: #e9815e;--ds-color-base-red-600: #e35c2f;--ds-color-base-red-700: #d03a08;--ds-color-base-red-800: #ae3007;--ds-color-base-red-900: #902806;--ds-color-base-red-1000: #732005;--ds-color-base-success-100: #eef8f5;--ds-color-base-success-200: #8eceb9;--ds-color-base-success-300: #40a080;--ds-color-base-success-400: #0b6f4d;--ds-color-base-success-500: #173c30;--ds-color-base-turquoise-100: #f7fafa;--ds-color-base-turquoise-200: #dfe9ea;--ds-color-base-turquoise-300: #c2d5d6;--ds-color-base-turquoise-400: #9fbdbe;--ds-color-base-turquoise-500: #7ba5a6;--ds-color-base-turquoise-600: #5c8f91;--ds-color-base-turquoise-700: #3d7a7d;--ds-color-base-turquoise-800: #21686a;--ds-color-base-turquoise-900: #085659;--ds-color-base-turquoise-1000: #004447;--ds-color-base-yellow-100: #fff9df;--ds-color-base-yellow-200: #ffe87e;--ds-color-base-yellow-300: #f9ce06;--ds-color-base-yellow-400: #d6b622;--ds-color-base-yellow-500: #b49d35;--ds-color-base-yellow-600: #96873e;--ds-color-base-yellow-700: #7c7140;--ds-color-base-yellow-800: #665e3d;--ds-color-base-yellow-900: #524e38;--ds-color-base-yellow-1000: #403d30;--ds-color-base-warning-100: #fef8e9;--ds-color-base-warning-200: #f2c153;--ds-color-base-warning-300: #c49432;--ds-color-base-warning-400: #8e6b22;--ds-color-base-warning-500: #5d4514;--ds-color-state-error-100: #ff999b;--ds-color-state-error-500: #df0b37;--ds-color-state-success-100: #69cf96;--ds-color-state-success-500: #00805d;--ds-color-state-warning-500: #de750c;--ds-color-border-primary-default: #585e67;--ds-color-border-primary-inverse: #afb9c6;--ds-color-border-secondary-default: #939fad;--ds-color-border-secondary-inverse: #7e8894;--ds-color-border-tertiary-default: #dddddd;--ds-color-border-tertiary-inverse: #676767;--ds-color-border-error-default: #cc1816;--ds-color-border-error-inverse: #f9aca6;--ds-color-border-divider-default: rgba(0, 0, 0, 0.12);--ds-color-border-divider-inverse: rgba(255, 255, 255, 0.25);--ds-color-border-subtle-default: #f0f7fd;--ds-color-border-subtle-inverse: #326aa5;--ds-color-border-emphasis-default: #194069;--ds-color-border-emphasis-inverse: #f2f7fb;--ds-color-border-accent-default: #badd81;--ds-color-border-accent-inverse: #a2c270;--ds-color-border-success-default: #0b6f4d;--ds-color-border-success-inverse: #8eceb9;--ds-color-border-warning-default: #c49432;--ds-color-border-warning-inverse: #f2c153;--ds-color-border-info-default: #326aa5;--ds-color-border-info-inverse: #89b2d4;--ds-color-border-ui-default-default: #2c67b5;--ds-color-border-ui-default-inverse: #56bbde;--ds-color-border-ui-hover-default: #193d73;--ds-color-border-ui-hover-inverse: #a8e9f7;--ds-color-border-ui-active-default: #225296;--ds-color-border-ui-active-inverse: #6ad5ef;--ds-color-border-ui-focus-default: #2c67b5;--ds-color-border-ui-focus-inverse: #56bbde;--ds-color-border-ui-disabled-default: #adadad;--ds-color-border-ui-disabled-inverse: #7e7e7e;--ds-color-border-active-default: #0074c8;--ds-color-border-active-inverse: #00cff0;--ds-color-border-disabled-default: #dddddd;--ds-color-border-focus-default: #959595;--ds-color-brand-neutral-100: #f7f8fa;--ds-color-brand-neutral-200: #e4e8ec;--ds-color-brand-neutral-300: #ccd2db;--ds-color-brand-neutral-400: #afb9c6;--ds-color-brand-neutral-500: #939fad;--ds-color-brand-neutral-600: #7e8894;--ds-color-brand-neutral-700: #6a717c;--ds-color-brand-neutral-800: #585e67;--ds-color-brand-neutral-900: #484d55;--ds-color-brand-neutral-1000: #393d43;--ds-color-brand-gray-100: #f7f7f7;--ds-color-brand-gray-200: #dddddd;--ds-color-brand-gray-300: #c5c5c5;--ds-color-brand-gray-400: #adadad;--ds-color-brand-gray-500: #959595;--ds-color-brand-gray-600: #7e7e7e;--ds-color-brand-gray-700: #676767;--ds-color-brand-gray-800: #525252;--ds-color-brand-gray-900: #3d3d3d;--ds-color-brand-gray-1000: #2a2a2a;--ds-color-brand-red-100: #fef7f5;--ds-color-brand-red-200: #fae2da;--ds-color-brand-red-300: #f5c7b8;--ds-color-brand-red-400: #f0a68d;--ds-color-brand-red-500: #e9815e;--ds-color-brand-red-600: #e35c2f;--ds-color-brand-red-700: #d03a08;--ds-color-brand-red-800: #ae3007;--ds-color-brand-red-900: #902806;--ds-color-brand-red-1000: #732005;--ds-color-brand-yellow-100: #fff9df;--ds-color-brand-yellow-200: #ffe87e;--ds-color-brand-yellow-300: #f9ce06;--ds-color-brand-yellow-400: #d6b622;--ds-color-brand-yellow-500: #b49d35;--ds-color-brand-yellow-600: #96873e;--ds-color-brand-yellow-700: #7c7140;--ds-color-brand-yellow-800: #665e3d;--ds-color-brand-yellow-900: #524e38;--ds-color-brand-yellow-1000: #403d30;--ds-color-brand-lime-100: #f5fbeb;--ds-color-brand-lime-200: #d8efb4;--ds-color-brand-lime-300: #badd81;--ds-color-brand-lime-400: #a2c270;--ds-color-brand-lime-500: #8ca761;--ds-color-brand-lime-600: #778f53;--ds-color-brand-lime-700: #647845;--ds-color-brand-lime-800: #53643a;--ds-color-brand-lime-900: #44522f;--ds-color-brand-lime-1000: #364126;--ds-color-brand-green-100: #f3faf7;--ds-color-brand-green-200: #d4ece4;--ds-color-brand-green-300: #addbca;--ds-color-brand-green-400: #7ec6ac;--ds-color-brand-green-500: #51ae8c;--ds-color-brand-green-600: #459578;--ds-color-brand-green-700: #3a7d64;--ds-color-brand-green-800: #306854;--ds-color-brand-green-900: #285545;--ds-color-brand-green-1000: #1f4436;--ds-color-brand-turquoise-100: #f7fafa;--ds-color-brand-turquoise-200: #dfe9ea;--ds-color-brand-turquoise-300: #c2d5d6;--ds-color-brand-turquoise-400: #9fbdbe;--ds-color-brand-turquoise-500: #7ba5a6;--ds-color-brand-turquoise-600: #5c8f91;--ds-color-brand-turquoise-700: #3d7a7d;--ds-color-brand-turquoise-800: #21686a;--ds-color-brand-turquoise-900: #085659;--ds-color-brand-turquoise-1000: #004447;--ds-color-brand-cyan-100: #ebfafd;--ds-color-brand-cyan-200: #a8e9f7;--ds-color-brand-cyan-300: #6ad5ef;--ds-color-brand-cyan-400: #56bbde;--ds-color-brand-cyan-500: #4aa2c7;--ds-color-brand-cyan-600: #3e89aa;--ds-color-brand-cyan-700: #32718e;--ds-color-brand-cyan-800: #275b72;--ds-color-brand-cyan-900: #1d4658;--ds-color-brand-cyan-1000: #12303d;--ds-color-brand-blue-100: #f0f7fd;--ds-color-brand-blue-200: #c9e0f7;--ds-color-brand-blue-300: #a0c9f1;--ds-color-brand-blue-400: #79b2ec;--ds-color-brand-blue-500: #5398e6;--ds-color-brand-blue-600: #3b7fd2;--ds-color-brand-blue-700: #2c67b5;--ds-color-brand-blue-800: #225296;--ds-color-brand-blue-900: #193d73;--ds-color-brand-blue-1000: #102a51;--ds-color-brand-navy-100: #f2f7fb;--ds-color-brand-navy-200: #cfe0ef;--ds-color-brand-navy-300: #acc9e2;--ds-color-brand-navy-400: #89b2d4;--ds-color-brand-navy-500: #6899c6;--ds-color-brand-navy-600: #4a82b7;--ds-color-brand-navy-700: #326aa5;--ds-color-brand-navy-800: #265688;--ds-color-brand-navy-900: #194069;--ds-color-brand-navy-1000: #0e2b4f;--ds-color-brand-purple-100: #fbf8fe;--ds-color-brand-purple-200: #ede3fd;--ds-color-brand-purple-300: #ddc9fb;--ds-color-brand-purple-400: #c9a9f8;--ds-color-brand-purple-500: #b588f5;--ds-color-brand-purple-600: #a268f3;--ds-color-brand-purple-700: #8d47f0;--ds-color-brand-purple-800: #7633d7;--ds-color-brand-purple-900: #622ab2;--ds-color-brand-purple-1000: #4e228d;--ds-color-brand-pink-100: #fff7f8;--ds-color-brand-pink-200: #fde0e6;--ds-color-brand-pink-300: #fcc2ce;--ds-color-brand-pink-400: #fa9db0;--ds-color-brand-pink-500: #f7738e;--ds-color-brand-pink-600: #e45472;--ds-color-brand-pink-700: #bf475f;--ds-color-brand-pink-800: #a03b50;--ds-color-brand-pink-900: #833142;--ds-color-brand-pink-1000: #692734;--ds-color-brand-midnight-100: #c1daf0;--ds-color-brand-midnight-200: #569ed7;--ds-color-brand-midnight-300: #156fad;--ds-color-brand-midnight-400: #01426a;--ds-color-brand-midnight-500: #00274a;--ds-color-brand-atlas-100: #cde6ff;--ds-color-brand-atlas-200: #6bb7fb;--ds-color-brand-atlas-300: #2492eb;--ds-color-brand-atlas-400: #0074c8;--ds-color-brand-atlas-500: #054687;--ds-color-brand-atlas-400-opacity-20: rgba(0, 116, 200, 0.2);--ds-color-brand-breeze-100: #c0f7ff;--ds-color-brand-breeze-200: #5de3f7;--ds-color-brand-breeze-300: #00cff0;--ds-color-brand-breeze-400: #099dc5;--ds-color-brand-breeze-500: #0b5575;--ds-color-brand-breeze-300-opacity-30: rgba(0, 207, 240, 0.3);--ds-color-brand-tropical-100: #e2ffcd;--ds-color-brand-tropical-200: #d0fba6;--ds-color-brand-tropical-300: #c0e585;--ds-color-brand-tropical-400: #91be62;--ds-color-brand-tropical-500: #5e8741;--ds-color-brand-alpine-100: #bcaae6;--ds-color-brand-alpine-200: #9e73ea;--ds-color-brand-alpine-300: #8439ef;--ds-color-brand-alpine-400: #631db8;--ds-color-brand-alpine-500: #39115c;--ds-color-brand-flamingo-100: #ffebee;--ds-color-brand-flamingo-200: #ffc0ca;--ds-color-brand-flamingo-300: #ff94a7;--ds-color-brand-flamingo-400: #f65b7b;--ds-color-brand-flamingo-500: #b82b47;--ds-color-brand-canyon-100: #ffcab6;--ds-color-brand-canyon-200: #f99574;--ds-color-brand-canyon-300: #f26135;--ds-color-brand-canyon-400: #de3e09;--ds-color-brand-canyon-500: #b83302;--ds-color-brand-goldcoast-100: #fff0cd;--ds-color-brand-goldcoast-200: #ffdb67;--ds-color-brand-goldcoast-300: #ffd200;--ds-color-brand-goldcoast-400: #e5ad07;--ds-color-brand-goldcoast-500: #b88624;--ds-color-brand-goldgray-100: #c5c1bf;--ds-color-brand-goldgray-200: #726e6c;--ds-color-brand-gold-100: #ccbc94;--ds-color-brand-gold-200: #7f682e;--ds-color-brand-emerald: #139142;--ds-color-brand-sapphire: #015daa;--ds-color-brand-ruby: #a41d4a;--ds-color-brand-lounge: #01426a;--ds-color-brand-loungeplus: #53b390;--ds-color-container-accent-default: #f5fbeb;--ds-color-container-accent-inverse: #badd81;--ds-color-container-emphasis-default: #ebfafd;--ds-color-container-emphasis-inverse: #6ad5ef;--ds-color-container-error-default: #fff4f4;--ds-color-container-error-inverse: #74110e;--ds-color-container-info-default: #f0f7fd;--ds-color-container-info-inverse: #193d73;--ds-color-container-primary-default: #ffffff;--ds-color-container-primary-inverse: #0e2b4f;--ds-color-container-secondary-default: #f7f7f7;--ds-color-container-secondary-inverse: #194069;--ds-color-container-subtle-default: #f7f8fa;--ds-color-container-subtle-inverse: #393d43;--ds-color-container-success-default: #eef8f5;--ds-color-container-success-inverse: #173c30;--ds-color-container-tertiary-default: rgba(0, 0, 0, 0.03);--ds-color-container-tertiary-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-warning-default: #fef8e9;--ds-color-container-warning-inverse: #5d4514;--ds-color-container-ui-primary-active-default: #225296;--ds-color-container-ui-primary-active-inverse: #6ad5ef;--ds-color-container-ui-primary-default-default: #2c67b5;--ds-color-container-ui-primary-default-inverse: #56bbde;--ds-color-container-ui-primary-disabled-default: #a0c9f1;--ds-color-container-ui-primary-disabled-inverse: #275b72;--ds-color-container-ui-primary-focus-default: #2c67b5;--ds-color-container-ui-primary-focus-inverse: #56bbde;--ds-color-container-ui-primary-hover-default: #193d73;--ds-color-container-ui-primary-hover-inverse: #a8e9f7;--ds-color-container-ui-secondary-active-default: #f0f7fd;--ds-color-container-ui-secondary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-secondary-default-default: #ffffff;--ds-color-container-ui-secondary-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-disabled-default: #f7f7f7;--ds-color-container-ui-secondary-disabled-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-secondary-focus-default: #ffffff;--ds-color-container-ui-secondary-focus-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-hover-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-secondary-hover-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-active-default: rgba(0, 0, 0, 0.06);--ds-color-container-ui-tertiary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-tertiary-default-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-default-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-disabled-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-disabled-inverse: rgba(255, 255, 255, 0.25);--ds-color-container-ui-tertiary-focus-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-focus-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-hover-default: rgba(0, 0, 0, 0.12);--ds-color-container-ui-tertiary-hover-inverse: rgba(255, 255, 255, 0.25);--ds-color-icon-primary-default: #676767;--ds-color-icon-primary-inverse: #f7f7f7;--ds-color-icon-secondary-default: #7e8894;--ds-color-icon-secondary-inverse: #ccd2db;--ds-color-icon-tertiary-default: #afb9c6;--ds-color-icon-tertiary-inverse: #939fad;--ds-color-icon-emphasis-default: #2a2a2a;--ds-color-icon-emphasis-inverse: #ffffff;--ds-color-icon-accent-default: #a2c270;--ds-color-icon-accent-inverse: #badd81;--ds-color-icon-info-default: #326aa5;--ds-color-icon-info-inverse: #89b2d4;--ds-color-icon-error-default: #cc1816;--ds-color-icon-error-inverse: #f9aca6;--ds-color-icon-warning-default: #c49432;--ds-color-icon-warning-inverse: #f2c153;--ds-color-icon-success-default: #40a080;--ds-color-icon-success-inverse: #8eceb9;--ds-color-icon-subtle-default: #a0c9f1;--ds-color-icon-subtle-inverse: #326aa5;--ds-color-icon-ui-primary-default-default: #2c67b5;--ds-color-icon-ui-primary-default-inverse: #56bbde;--ds-color-icon-ui-primary-hover-default: #193d73;--ds-color-icon-ui-primary-hover-inverse: #a8e9f7;--ds-color-icon-ui-primary-active-default: #225296;--ds-color-icon-ui-primary-active-inverse: #6ad5ef;--ds-color-icon-ui-primary-disabled-default: #adadad;--ds-color-icon-ui-primary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-primary-focus-default: #2c67b5;--ds-color-icon-ui-primary-focus-inverse: #56bbde;--ds-color-icon-ui-secondary-active-default: #676767;--ds-color-icon-ui-secondary-active-inverse: #c5c5c5;--ds-color-icon-ui-secondary-default-default: #7e7e7e;--ds-color-icon-ui-secondary-default-inverse: #adadad;--ds-color-icon-ui-secondary-disabled-default: #adadad;--ds-color-icon-ui-secondary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-secondary-focus-default: #7e7e7e;--ds-color-icon-ui-secondary-focus-inverse: #adadad;--ds-color-icon-ui-secondary-hover-default: #525252;--ds-color-icon-ui-secondary-hover-inverse: #dddddd;--ds-color-icon-brand-red-default: #d03a08;--ds-color-icon-brand-red-inverse: #e9815e;--ds-color-icon-brand-yellow-default: #7c7140;--ds-color-icon-brand-yellow-inverse: #f9ce06;--ds-color-icon-brand-pink-default: #bf475f;--ds-color-icon-brand-pink-inverse: #f7738e;--ds-color-icon-brand-purple-default: #8d47f0;--ds-color-icon-brand-purple-inverse: #b588f5;--ds-color-icon-brand-lime-default: #647845;--ds-color-icon-brand-lime-inverse: #badd81;--ds-color-icon-brand-green-default: #3a7d64;--ds-color-icon-brand-green-inverse: #51ae8c;--ds-color-icon-brand-turquoise-default: #3d7a7d;--ds-color-icon-brand-turquoise-inverse: #7ba5a6;--ds-color-icon-brand-navy-default: #265688;--ds-color-icon-brand-navy-inverse: #6899c6;--ds-color-icon-brand-blue-default: #2c67b5;--ds-color-icon-brand-blue-inverse: #5398e6;--ds-color-icon-brand-cyan-default: #32718e;--ds-color-icon-brand-cyan-inverse: #6ad5ef;--ds-color-icon-brand-gray-default: #676767;--ds-color-icon-brand-gray-inverse: #c5c5c5;--ds-color-icon-brand-neutral-default: #6a717c;--ds-color-icon-brand-neutral-inverse: #afb9c6;--ds-color-icon-disabled-default: rgba(0, 0, 0, 0.15);--ds-color-text-primary-default: #2a2a2a;--ds-color-text-primary-inverse: #ffffff;--ds-color-text-secondary-default: #525252;--ds-color-text-secondary-inverse: #dddddd;--ds-color-text-tertiary-default: #6a717c;--ds-color-text-tertiary-inverse: #adadad;--ds-color-text-error-default: #cc1816;--ds-color-text-error-inverse: #f9aca6;--ds-color-text-emphasis-default: #265688;--ds-color-text-emphasis-inverse: #cfe0ef;--ds-color-text-accent-default: #647845;--ds-color-text-accent-inverse: #badd81;--ds-color-text-info-default: #326aa5;--ds-color-text-info-inverse: #acc9e2;--ds-color-text-subtle-default: #32718e;--ds-color-text-subtle-inverse: #56bbde;--ds-color-text-success-default: #0b6f4d;--ds-color-text-success-inverse: #8eceb9;--ds-color-text-ui-active-default: #225296;--ds-color-text-ui-active-inverse: #6ad5ef;--ds-color-text-ui-default-default: #2c67b5;--ds-color-text-ui-default-inverse: #56bbde;--ds-color-text-ui-disabled-default: #adadad;--ds-color-text-ui-disabled-inverse: #7e7e7e;--ds-color-text-ui-focus-default: #2c67b5;--ds-color-text-ui-focus-inverse: #56bbde;--ds-color-text-ui-hover-default: #193d73;--ds-color-text-ui-hover-inverse: #a8e9f7;--ds-color-text-link-default: #0074c8;--ds-color-text-link-inverse: #00cff0;--ds-color-tier-alaska-mvp-default: #726e6c;--ds-color-tier-alaska-mvp-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold-default: #7f682e;--ds-color-tier-alaska-mvpgold-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold75k-default: #7f682e;--ds-color-tier-alaska-mvpgold75k-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold100k-default: #7f682e;--ds-color-tier-alaska-mvpgold100k-inverse: #c5c1bf;--ds-color-tier-alaska-lounge: #01426a;--ds-color-tier-alaska-loungeplus: #53b390;--ds-color-tier-fare-business-default: #005154;--ds-color-tier-fare-business-inverse: #9fbdbe;--ds-color-tier-fare-economy-default: #2c67b5;--ds-color-tier-fare-economy-inverse: #a0c9f1;--ds-color-tier-fare-first-class-default: #002c4e;--ds-color-tier-fare-first-class-inverse: #89b2d4;--ds-color-tier-fare-saver-default: #4aa2c7;--ds-color-tier-fare-saver-inverse: #a8e9f7;--ds-color-tier-oneworld-emerald: #139142;--ds-color-tier-oneworld-sapphire: #015daa;--ds-color-tier-oneworld-ruby: #a41d4a;--ds-color-ui-default-default: #0074c8;--ds-color-ui-default-inverse: #00cff0;--ds-color-ui-hover-default: #054687;--ds-color-ui-hover-inverse: #5de3f7;--ds-color-ui-active-default: #054687;--ds-color-ui-active-inverse: #5de3f7;--ds-color-ui-disabled-default: rgba(0, 116, 200, 0.2);--ds-color-ui-bkg-default-default: rgba(0, 0, 0, 0.03);--ds-color-ui-bkg-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-ui-bkg-hover-default: rgba(0, 0, 0, 0.06);--ds-color-ui-bkg-hover-inverse: rgba(255, 255, 255, 0.06);--ds-color-utility-blue-default: #79b2ec;--ds-color-utility-blue-inverse: #c9e0f7;--ds-color-utility-cyan-default: #6ad5ef;--ds-color-utility-cyan-inverse: #a8e9f7;--ds-color-utility-green-default: #7ec6ac;--ds-color-utility-green-inverse: #addbca;--ds-color-utility-gray-default: #adadad;--ds-color-utility-gray-inverse: #dddddd;--ds-color-utility-lime-default: #badd81;--ds-color-utility-lime-inverse: #d8efb4;--ds-color-utility-navy-default: #265688;--ds-color-utility-navy-inverse: #acc9e2;--ds-color-utility-neutral-default: #7e8894;--ds-color-utility-neutral-inverse: #ccd2db;--ds-color-utility-pink-default: #f7738e;--ds-color-utility-pink-inverse: #fcc2ce;--ds-color-utility-purple-default: #8d47f0;--ds-color-utility-purple-inverse: #ddc9fb;--ds-color-utility-red-default: #e35c2f;--ds-color-utility-red-inverse: #f0a68d;--ds-color-utility-turquoise-default: #5c8f91;--ds-color-utility-turquoise-inverse: #9fbdbe;--ds-color-utility-yellow-default: #f9ce06;--ds-color-utility-yellow-inverse: #ffe87e;--ds-color-utility-error-default: #cc1816;--ds-color-utility-error-inverse: #f9aca6;--ds-color-utility-warning-default: #f2c153;--ds-color-utility-warning-inverse: #f2c153;--ds-color-utility-success-default: #0b6f4d;--ds-color-utility-success-inverse: #8eceb9}*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}: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, 300)}: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:""}`;
|
|
7343
|
-
|
|
7344
|
-
var colorCss$7 = i$h`::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)}`;
|
|
7345
|
-
|
|
7346
|
-
var tokensCss$7 = i$h`: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-color-container-primary-default, #ffffff);--ds-auro-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
7273
|
+
__decorate([property({ type: String })], RangeDatepickerCalendar.prototype, "dateFrom", void 0);
|
|
7274
|
+
__decorate([property({ type: String })], RangeDatepickerCalendar.prototype, "dateTo", void 0);
|
|
7275
|
+
__decorate([property({ type: String })], RangeDatepickerCalendar.prototype, "hoveredDate", void 0);
|
|
7276
|
+
__decorate([property({ type: Boolean })], RangeDatepickerCalendar.prototype, "enableYearChange", void 0);
|
|
7277
|
+
__decorate([property({ type: String })], RangeDatepickerCalendar.prototype, "month", void 0);
|
|
7278
|
+
__decorate([property({ type: Boolean })], RangeDatepickerCalendar.prototype, "narrow", void 0);
|
|
7279
|
+
__decorate([property({ type: Boolean })], RangeDatepickerCalendar.prototype, "noRange", void 0);
|
|
7280
|
+
__decorate([property({ type: Boolean })], RangeDatepickerCalendar.prototype, "next", void 0);
|
|
7281
|
+
__decorate([property({ type: Boolean })], RangeDatepickerCalendar.prototype, "prev", void 0);
|
|
7282
|
+
__decorate([property({ type: String })], RangeDatepickerCalendar.prototype, "year", void 0);
|
|
7283
|
+
__decorate([property({ type: Array })], RangeDatepickerCalendar.prototype, "disabledDays", void 0);
|
|
7284
|
+
__decorate([property({ type: Object })], RangeDatepickerCalendar.prototype, "locale", null);
|
|
7285
|
+
__decorate([property({ type: String })], RangeDatepickerCalendar.prototype, "max", void 0);
|
|
7286
|
+
__decorate([property({ type: String })], RangeDatepickerCalendar.prototype, "min", void 0);
|
|
7287
|
+
__decorate([property({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList", void 0);
|
|
7288
|
+
__decorate([property({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", void 0);
|
|
7289
|
+
__decorate([property({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", void 0);
|
|
7290
|
+
__decorate([property({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", void 0);
|
|
7291
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7292
|
+
|
|
7293
|
+
var styleCss$a = css`@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-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);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-text-body-size-xxs, 0.625rem)}::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-size:var(--ds-text-body-size-lg, 1.125rem)}.day:hover{cursor:pointer}.dateSlot{font-size:var(--ds-text-body-size-xs, 0.75rem)}}`;
|
|
7294
|
+
|
|
7295
|
+
var colorCss$a = css`: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-color-text-success-default, #0b6f4d)}.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)}.day.selected{--ds-auro-calendar-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-calendar-cell-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-inverse, #ffffff);box-shadow:var(--ds-auro-calendar-boxshadow-color)}.day.selected:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-calendar-cell-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:unset}.day.selected:not(:hover){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-primary-inverse, #ffffff)}.day:hover{--ds-auro-calendar-cell-container-color: var(--ds-color-brand-neutral-200, #e4e8ec);--ds-auro-calendar-cell-text-color: var(--ds-color-text-primary-default, #2a2a2a)}.day.disabled{--ds-auro-calendar-cell-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-calendar-cell-container-color: var(--ds-color-container-primary-default, #ffffff)}.day.inRange:before,.day.rangeDepartDate:before,.day.rangeReturnDate:before,.day.lastHoveredDate:before{background-color:var(--ds-auro-calendar-cell-in-range-color)}.day.sameDateTrip:before{--ds-auro-calendar-cell-in-range-color: transparent}:host([disabled]){--ds-auro-calendar-cell-price-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
7296
|
+
|
|
7297
|
+
var styleCss$9 = css`:root{--ds-asset-font-circular-family-name: "AS Circular";--ds-asset-font-circular-filename: "ASCircularWeb";--ds-asset-font-circular-weight-light: "-Light";--ds-asset-font-circular-weight-medium: "-Medium";--ds-asset-font-circular-weight-book: "-Book";--ds-border-radius: 0.375rem;--ds-size-25: 0.125rem;--ds-size-50: 0.25rem;--ds-size-75: 0.375rem;--ds-size-100: 0.5rem;--ds-size-150: 0.75rem;--ds-size-200: 1rem;--ds-size-250: 1.25rem;--ds-size-300: 1.5rem;--ds-size-400: 2rem;--ds-size-500: 2.5rem;--ds-size-600: 3rem;--ds-size-700: 3.5rem;--ds-size-800: 4rem;--ds-size-900: 4.5rem;--ds-size-1000: 5rem;--ds-unitless-scale-20: 0.25;--ds-unitless-scale-50: 0.5;--ds-unitless-scale-100: 1;--ds-unitless-scale-140: 1.4;--ds-unitless-scale-150: 1.5;--ds-unitless-scale-200: 2;--ds-unitless-scale-300: 3;--ds-unitless-scale-350: 3.5;--ds-animation-default-property: all;--ds-animation-default-duration: 0.3s;--ds-animation-default-timing: ease-out;--ds-depth-overlay: 200;--ds-depth-modal: 300;--ds-depth-tooltip: 400;--ds-elevation-100: 0px 0px 5px rgba(0, 0, 0, 0.15);--ds-elevation-200: 0px 0px 10px rgba(0, 0, 0, 0.15);--ds-elevation-300: 0px 0px 15px rgba(0, 0, 0, 0.2);--ds-grid-breakpoint-xs: 320px;--ds-grid-breakpoint-sm: 576px;--ds-grid-breakpoint-md: 768px;--ds-grid-breakpoint-lg: 1024px;--ds-grid-breakpoint-xl: 1232px;--ds-grid-column-xs: 6;--ds-grid-column-sm: 12;--ds-grid-column-md: 12;--ds-grid-column-lg: 12;--ds-grid-column-xl: 12;--ds-grid-gutter-xs: 0.5rem;--ds-grid-gutter-sm: 1rem;--ds-grid-gutter-md: 1.5rem;--ds-grid-gutter-lg: 1.5rem;--ds-grid-gutter-xl: 2rem;--ds-grid-margin-xs: 1rem;--ds-grid-margin-sm: 1rem;--ds-grid-margin-md: 1.5rem;--ds-grid-margin-lg: 2rem;--ds-grid-margin-xl: 2rem;--ds-font-family-default: "AS Circular", Helvetica Neue, Arial, sans-serif;--ds-font-family-mono: Menlo, Monaco, Consolas, "Courier New", monospace;--ds-text-heading-300-weight: 300;--ds-text-heading-300-px: 18px;--ds-text-heading-300-size: 1.125rem;--ds-text-heading-300-height: 1.625rem;--ds-text-heading-300-height-px: 26px;--ds-text-heading-400-weight: 300;--ds-text-heading-400-px: 20px;--ds-text-heading-400-size: 1.25rem;--ds-text-heading-400-height: 1.625rem;--ds-text-heading-400-height-px: 26px;--ds-text-heading-500-weight: 300;--ds-text-heading-500-px-breakpoint-sm: 22px;--ds-text-heading-500-px-breakpoint-md: 24px;--ds-text-heading-500-px-breakpoint-lg: 24px;--ds-text-heading-500-size-breakpoint-sm: 1.375rem;--ds-text-heading-500-size-breakpoint-md: 1.5rem;--ds-text-heading-500-size-breakpoint-lg: 1.5rem;--ds-text-heading-500-height-breakpoint-sm: 1.625rem;--ds-text-heading-500-height-breakpoint-px-sm: 26px;--ds-text-heading-500-height-breakpoint-md: 1.875rem;--ds-text-heading-500-height-breakpoint-px-md: 30px;--ds-text-heading-500-height-breakpoint-lg: 2rem;--ds-text-heading-500-height-breakpoint-px-lg: 32px;--ds-text-heading-600-weight: 300;--ds-text-heading-600-px-breakpoint-sm: 26px;--ds-text-heading-600-px-breakpoint-md: 28px;--ds-text-heading-600-px-breakpoint-lg: 28px;--ds-text-heading-600-size-breakpoint-sm: 1.625rem;--ds-text-heading-600-size-breakpoint-md: 1.75rem;--ds-text-heading-600-size-breakpoint-lg: 1.75rem;--ds-text-heading-600-height-breakpoint-sm: 1.875rem;--ds-text-heading-600-height-breakpoint-px-sm: 30px;--ds-text-heading-600-height-breakpoint-md: 2.125rem;--ds-text-heading-600-height-breakpoint-px-md: 34px;--ds-text-heading-600-height-breakpoint-lg: 2.25rem;--ds-text-heading-600-height-breakpoint-px-lg: 36px;--ds-text-heading-700-weight: 500;--ds-text-heading-700-px-breakpoint-sm: 28px;--ds-text-heading-700-px-breakpoint-md: 32px;--ds-text-heading-700-px-breakpoint-lg: 36px;--ds-text-heading-700-size-breakpoint-sm: 1.75rem;--ds-text-heading-700-size-breakpoint-md: 2rem;--ds-text-heading-700-size-breakpoint-lg: 2.25rem;--ds-text-heading-700-height-breakpoint-sm: 2.125rem;--ds-text-heading-700-height-breakpoint-px-sm: 34px;--ds-text-heading-700-height-breakpoint-md: 2.375rem;--ds-text-heading-700-height-breakpoint-px-md: 38px;--ds-text-heading-700-height-breakpoint-lg: 2.75rem;--ds-text-heading-700-height-breakpoint-px-lg: 44px;--ds-text-heading-800-weight: 500;--ds-text-heading-800-px-breakpoint-sm: 32px;--ds-text-heading-800-px-breakpoint-md: 36px;--ds-text-heading-800-px-breakpoint-lg: 40px;--ds-text-heading-800-size-breakpoint-sm: 2rem;--ds-text-heading-800-size-breakpoint-md: 2.25rem;--ds-text-heading-800-size-breakpoint-lg: 2.5rem;--ds-text-heading-800-height-breakpoint-sm: 2.375rem;--ds-text-heading-800-height-breakpoint-px-sm: 38px;--ds-text-heading-800-height-breakpoint-md: 2.625rem;--ds-text-heading-800-height-breakpoint-px-md: 42px;--ds-text-heading-800-height-breakpoint-lg: 3rem;--ds-text-heading-800-height-breakpoint-px-lg: 48px;--ds-text-heading-default-weight: 500;--ds-text-heading-default-margin: 0;--ds-text-heading-default-spacing: -0.2px;--ds-text-heading-medium-weight: 300;--ds-text-heading-display-weight: 100;--ds-text-heading-display-px-breakpoint-sm: 44px;--ds-text-heading-display-px-breakpoint-md: 48px;--ds-text-heading-display-px-breakpoint-lg: 56px;--ds-text-heading-display-size-breakpoint-sm: 2.75rem;--ds-text-heading-display-size-breakpoint-md: 3rem;--ds-text-heading-display-size-breakpoint-lg: 3.5rem;--ds-text-heading-display-height-breakpoint-sm: 3.375rem;--ds-text-heading-display-height-breakpoint-px-sm: 54px;--ds-text-heading-display-height-breakpoint-md: 3.75rem;--ds-text-heading-display-height-breakpoint-px-md: 60px;--ds-text-heading-display-height-breakpoint-lg: 4.25rem;--ds-text-heading-display-height-breakpoint-px-lg: 68px;--ds-text-body-default-weight: 500;--ds-text-body-size-xxs: 0.625rem;--ds-text-body-size-xs: 0.75rem;--ds-text-body-size-sm: 0.875rem;--ds-text-body-size-default: 1rem;--ds-text-body-size-lg: 1.125rem;--ds-text-body-height-xs: 1rem;--ds-text-body-height-sm: 1.25rem;--ds-text-body-height-default: 1.5rem;--ds-text-body-height-lg: 1.625rem;--ds-color-alert-notification-default: #0074c8;--ds-color-alert-warning-default: #de750c;--ds-color-alert-error-default: #df0b37;--ds-color-alert-success-default: #00805d;--ds-color-alert-advisory-default: #fff0cd;--ds-color-alert-bkg-success-default: #ddf6e8;--ds-color-alert-bkg-error-default: #ffedf1;--ds-color-background-primary-100-default: #ffffff;--ds-color-background-primary-100-inverse: #0e2b4f;--ds-color-background-primary-200-default: #f7f7f7;--ds-color-background-primary-200-inverse: #194069;--ds-color-background-primary-300-default: #e4e8ec;--ds-color-background-primary-300-inverse: #265688;--ds-color-background-primary-400-default: #dddddd;--ds-color-background-primary-400-inverse: #326aa5;--ds-color-background-success-default: #eef8f5;--ds-color-background-success-inverse: #173c30;--ds-color-background-error-default: #fff4f4;--ds-color-background-error-inverse: #74110e;--ds-color-background-warning-default: #fef8e9;--ds-color-background-warning-inverse: #5d4514;--ds-color-background-info-default: #f0f7fd;--ds-color-background-info-inverse: #193d73;--ds-color-background-subtle-default: #f7f8fa;--ds-color-background-subtle-inverse: #2a2a2a;--ds-color-background-accent-default: #ebfafd;--ds-color-background-accent-inverse: #275b72;--ds-color-background-emphasis-default: #c9e0f7;--ds-color-background-emphasis-inverse: #225296;--ds-color-background-scrimmed-default: rgba(0, 0, 0, 0.5);--ds-color-background-lightest: #ffffff;--ds-color-background-lighter: #f7f7f7;--ds-color-background-darker: #01426a;--ds-color-background-darkest: #00274a;--ds-color-background-gradient-default: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));--ds-color-base-white: #ffffff;--ds-color-base-white-100: rgba(255, 255, 255, 0.03);--ds-color-base-white-200: rgba(255, 255, 255, 0.06);--ds-color-base-white-300: rgba(255, 255, 255, 0.12);--ds-color-base-white-400: rgba(255, 255, 255, 0.25);--ds-color-base-white-500: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-50: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-40: rgba(255, 255, 255, 0.4);--ds-color-base-white-opacity-0: rgba(255, 255, 255, 0);--ds-color-base-black: #000000;--ds-color-base-black-100: rgba(0, 0, 0, 0.03);--ds-color-base-black-200: rgba(0, 0, 0, 0.06);--ds-color-base-black-300: rgba(0, 0, 0, 0.12);--ds-color-base-black-400: rgba(0, 0, 0, 0.25);--ds-color-base-black-500: rgba(0, 0, 0, 0.5);--ds-color-base-black-opacity-15: rgba(0, 0, 0, 0.15);--ds-color-base-blue-100: #f0f7fd;--ds-color-base-blue-200: #c9e0f7;--ds-color-base-blue-300: #a0c9f1;--ds-color-base-blue-400: #79b2ec;--ds-color-base-blue-500: #5398e6;--ds-color-base-blue-600: #3b7fd2;--ds-color-base-blue-700: #2c67b5;--ds-color-base-blue-800: #225296;--ds-color-base-blue-900: #193d73;--ds-color-base-blue-1000: #102a51;--ds-color-base-cyan-100: #ebfafd;--ds-color-base-cyan-200: #a8e9f7;--ds-color-base-cyan-300: #6ad5ef;--ds-color-base-cyan-400: #56bbde;--ds-color-base-cyan-500: #4aa2c7;--ds-color-base-cyan-600: #3e89aa;--ds-color-base-cyan-700: #32718e;--ds-color-base-cyan-800: #275b72;--ds-color-base-cyan-900: #1d4658;--ds-color-base-cyan-1000: #12303d;--ds-color-base-error-100: #fff4f4;--ds-color-base-error-200: #f9aca6;--ds-color-base-error-300: #f16359;--ds-color-base-error-400: #cc1816;--ds-color-base-error-500: #74110e;--ds-color-base-gray-100: #f7f7f7;--ds-color-base-gray-200: #d4d4d4;--ds-color-base-gray-300: #c5c5c5;--ds-color-base-gray-400: #adadad;--ds-color-base-gray-500: #959595;--ds-color-base-gray-600: #7e7e7e;--ds-color-base-gray-700: #676767;--ds-color-base-gray-800: #525252;--ds-color-base-gray-900: #3d3d3d;--ds-color-base-gray-1000: #2a2a2a;--ds-color-base-green-100: #f3faf7;--ds-color-base-green-200: #000000;--ds-color-base-green-300: #addbca;--ds-color-base-green-400: #7ec6ac;--ds-color-base-green-500: #51ae8c;--ds-color-base-green-600: #459578;--ds-color-base-green-700: #3a7d64;--ds-color-base-green-800: #306854;--ds-color-base-green-900: #285545;--ds-color-base-green-1000: #1f4436;--ds-color-base-lime-100: #f5fbeb;--ds-color-base-lime-200: #d8efb4;--ds-color-base-lime-300: #badd81;--ds-color-base-lime-400: #a2c270;--ds-color-base-lime-500: #8ca761;--ds-color-base-lime-600: #778f53;--ds-color-base-lime-700: #647845;--ds-color-base-lime-800: #53643a;--ds-color-base-lime-900: #44522f;--ds-color-base-lime-1000: #364126;--ds-color-base-navy-100: #f2f7fb;--ds-color-base-navy-200: #cfe0ef;--ds-color-base-navy-300: #acc9e2;--ds-color-base-navy-400: #89b2d4;--ds-color-base-navy-500: #6899c6;--ds-color-base-navy-600: #4a82b7;--ds-color-base-navy-700: #326aa5;--ds-color-base-navy-800: #265688;--ds-color-base-navy-900: #194069;--ds-color-base-navy-1000: #0e2b4f;--ds-color-base-neutral-100: #f7f8fa;--ds-color-base-neutral-200: #e4e8ec;--ds-color-base-neutral-300: #ccd2db;--ds-color-base-neutral-400: #afb9c6;--ds-color-base-neutral-500: #939fad;--ds-color-base-neutral-600: #7e8894;--ds-color-base-neutral-700: #6a717c;--ds-color-base-neutral-800: #585e67;--ds-color-base-neutral-900: #484d55;--ds-color-base-neutral-1000: #393d43;--ds-color-base-pink-100: #fff7f8;--ds-color-base-pink-200: #fde0e6;--ds-color-base-pink-300: #fcc2ce;--ds-color-base-pink-400: #fa9db0;--ds-color-base-pink-500: #f7738e;--ds-color-base-pink-600: #e45472;--ds-color-base-pink-700: #bf475f;--ds-color-base-pink-800: #a03b50;--ds-color-base-pink-900: #833142;--ds-color-base-pink-1000: #692734;--ds-color-base-purple-100: #fbf8fe;--ds-color-base-purple-200: #ede3fd;--ds-color-base-purple-300: #ddc9fb;--ds-color-base-purple-400: #c9a9f8;--ds-color-base-purple-500: #b588f5;--ds-color-base-purple-600: #a268f3;--ds-color-base-purple-700: #8d47f0;--ds-color-base-purple-800: #7633d7;--ds-color-base-purple-900: #622ab2;--ds-color-base-purple-1000: #4e228d;--ds-color-base-red-100: #fef7f5;--ds-color-base-red-200: #fae2da;--ds-color-base-red-300: #f5c7b8;--ds-color-base-red-400: #f0a68d;--ds-color-base-red-500: #e9815e;--ds-color-base-red-600: #e35c2f;--ds-color-base-red-700: #d03a08;--ds-color-base-red-800: #ae3007;--ds-color-base-red-900: #902806;--ds-color-base-red-1000: #732005;--ds-color-base-success-100: #eef8f5;--ds-color-base-success-200: #8eceb9;--ds-color-base-success-300: #40a080;--ds-color-base-success-400: #0b6f4d;--ds-color-base-success-500: #173c30;--ds-color-base-turquoise-100: #f7fafa;--ds-color-base-turquoise-200: #dfe9ea;--ds-color-base-turquoise-300: #c2d5d6;--ds-color-base-turquoise-400: #9fbdbe;--ds-color-base-turquoise-500: #7ba5a6;--ds-color-base-turquoise-600: #5c8f91;--ds-color-base-turquoise-700: #3d7a7d;--ds-color-base-turquoise-800: #21686a;--ds-color-base-turquoise-900: #085659;--ds-color-base-turquoise-1000: #004447;--ds-color-base-yellow-100: #fff9df;--ds-color-base-yellow-200: #ffe87e;--ds-color-base-yellow-300: #f9ce06;--ds-color-base-yellow-400: #d6b622;--ds-color-base-yellow-500: #b49d35;--ds-color-base-yellow-600: #96873e;--ds-color-base-yellow-700: #7c7140;--ds-color-base-yellow-800: #665e3d;--ds-color-base-yellow-900: #524e38;--ds-color-base-yellow-1000: #403d30;--ds-color-base-warning-100: #fef8e9;--ds-color-base-warning-200: #f2c153;--ds-color-base-warning-300: #c49432;--ds-color-base-warning-400: #8e6b22;--ds-color-base-warning-500: #5d4514;--ds-color-state-error-100: #ff999b;--ds-color-state-error-500: #df0b37;--ds-color-state-success-100: #69cf96;--ds-color-state-success-500: #00805d;--ds-color-state-warning-500: #de750c;--ds-color-border-primary-default: #585e67;--ds-color-border-primary-inverse: #afb9c6;--ds-color-border-secondary-default: #939fad;--ds-color-border-secondary-inverse: #7e8894;--ds-color-border-tertiary-default: #dddddd;--ds-color-border-tertiary-inverse: #676767;--ds-color-border-error-default: #cc1816;--ds-color-border-error-inverse: #f9aca6;--ds-color-border-divider-default: rgba(0, 0, 0, 0.12);--ds-color-border-divider-inverse: rgba(255, 255, 255, 0.25);--ds-color-border-subtle-default: #f0f7fd;--ds-color-border-subtle-inverse: #326aa5;--ds-color-border-emphasis-default: #194069;--ds-color-border-emphasis-inverse: #f2f7fb;--ds-color-border-accent-default: #badd81;--ds-color-border-accent-inverse: #a2c270;--ds-color-border-success-default: #0b6f4d;--ds-color-border-success-inverse: #8eceb9;--ds-color-border-warning-default: #c49432;--ds-color-border-warning-inverse: #f2c153;--ds-color-border-info-default: #326aa5;--ds-color-border-info-inverse: #89b2d4;--ds-color-border-ui-default-default: #2c67b5;--ds-color-border-ui-default-inverse: #56bbde;--ds-color-border-ui-hover-default: #193d73;--ds-color-border-ui-hover-inverse: #a8e9f7;--ds-color-border-ui-active-default: #225296;--ds-color-border-ui-active-inverse: #6ad5ef;--ds-color-border-ui-focus-default: #2c67b5;--ds-color-border-ui-focus-inverse: #56bbde;--ds-color-border-ui-disabled-default: #adadad;--ds-color-border-ui-disabled-inverse: #7e7e7e;--ds-color-border-active-default: #0074c8;--ds-color-border-active-inverse: #00cff0;--ds-color-border-disabled-default: #d4d4d4;--ds-color-border-focus-default: #959595;--ds-color-brand-neutral-100: #f7f8fa;--ds-color-brand-neutral-200: #e4e8ec;--ds-color-brand-neutral-300: #ccd2db;--ds-color-brand-neutral-400: #afb9c6;--ds-color-brand-neutral-500: #939fad;--ds-color-brand-neutral-600: #7e8894;--ds-color-brand-neutral-700: #6a717c;--ds-color-brand-neutral-800: #585e67;--ds-color-brand-neutral-900: #484d55;--ds-color-brand-neutral-1000: #393d43;--ds-color-brand-gray-100: #f7f7f7;--ds-color-brand-gray-200: #dddddd;--ds-color-brand-gray-300: #c5c5c5;--ds-color-brand-gray-400: #adadad;--ds-color-brand-gray-500: #959595;--ds-color-brand-gray-600: #7e7e7e;--ds-color-brand-gray-700: #676767;--ds-color-brand-gray-800: #525252;--ds-color-brand-gray-900: #3d3d3d;--ds-color-brand-gray-1000: #2a2a2a;--ds-color-brand-red-100: #fef7f5;--ds-color-brand-red-200: #fae2da;--ds-color-brand-red-300: #f5c7b8;--ds-color-brand-red-400: #f0a68d;--ds-color-brand-red-500: #e9815e;--ds-color-brand-red-600: #e35c2f;--ds-color-brand-red-700: #d03a08;--ds-color-brand-red-800: #ae3007;--ds-color-brand-red-900: #902806;--ds-color-brand-red-1000: #732005;--ds-color-brand-yellow-100: #fff9df;--ds-color-brand-yellow-200: #ffe87e;--ds-color-brand-yellow-300: #f9ce06;--ds-color-brand-yellow-400: #d6b622;--ds-color-brand-yellow-500: #b49d35;--ds-color-brand-yellow-600: #96873e;--ds-color-brand-yellow-700: #7c7140;--ds-color-brand-yellow-800: #665e3d;--ds-color-brand-yellow-900: #524e38;--ds-color-brand-yellow-1000: #403d30;--ds-color-brand-lime-100: #f5fbeb;--ds-color-brand-lime-200: #d8efb4;--ds-color-brand-lime-300: #badd81;--ds-color-brand-lime-400: #a2c270;--ds-color-brand-lime-500: #8ca761;--ds-color-brand-lime-600: #778f53;--ds-color-brand-lime-700: #647845;--ds-color-brand-lime-800: #53643a;--ds-color-brand-lime-900: #44522f;--ds-color-brand-lime-1000: #364126;--ds-color-brand-green-100: #f3faf7;--ds-color-brand-green-200: #d4ece4;--ds-color-brand-green-300: #addbca;--ds-color-brand-green-400: #7ec6ac;--ds-color-brand-green-500: #51ae8c;--ds-color-brand-green-600: #459578;--ds-color-brand-green-700: #3a7d64;--ds-color-brand-green-800: #306854;--ds-color-brand-green-900: #285545;--ds-color-brand-green-1000: #1f4436;--ds-color-brand-turquoise-100: #f7fafa;--ds-color-brand-turquoise-200: #dfe9ea;--ds-color-brand-turquoise-300: #c2d5d6;--ds-color-brand-turquoise-400: #9fbdbe;--ds-color-brand-turquoise-500: #7ba5a6;--ds-color-brand-turquoise-600: #5c8f91;--ds-color-brand-turquoise-700: #3d7a7d;--ds-color-brand-turquoise-800: #21686a;--ds-color-brand-turquoise-900: #085659;--ds-color-brand-turquoise-1000: #004447;--ds-color-brand-cyan-100: #ebfafd;--ds-color-brand-cyan-200: #a8e9f7;--ds-color-brand-cyan-300: #6ad5ef;--ds-color-brand-cyan-400: #56bbde;--ds-color-brand-cyan-500: #4aa2c7;--ds-color-brand-cyan-600: #3e89aa;--ds-color-brand-cyan-700: #32718e;--ds-color-brand-cyan-800: #275b72;--ds-color-brand-cyan-900: #1d4658;--ds-color-brand-cyan-1000: #12303d;--ds-color-brand-blue-100: #f0f7fd;--ds-color-brand-blue-200: #c9e0f7;--ds-color-brand-blue-300: #a0c9f1;--ds-color-brand-blue-400: #79b2ec;--ds-color-brand-blue-500: #5398e6;--ds-color-brand-blue-600: #3b7fd2;--ds-color-brand-blue-700: #2c67b5;--ds-color-brand-blue-800: #225296;--ds-color-brand-blue-900: #193d73;--ds-color-brand-blue-1000: #102a51;--ds-color-brand-navy-100: #f2f7fb;--ds-color-brand-navy-200: #cfe0ef;--ds-color-brand-navy-300: #acc9e2;--ds-color-brand-navy-400: #89b2d4;--ds-color-brand-navy-500: #6899c6;--ds-color-brand-navy-600: #4a82b7;--ds-color-brand-navy-700: #326aa5;--ds-color-brand-navy-800: #265688;--ds-color-brand-navy-900: #194069;--ds-color-brand-navy-1000: #0e2b4f;--ds-color-brand-purple-100: #fbf8fe;--ds-color-brand-purple-200: #ede3fd;--ds-color-brand-purple-300: #ddc9fb;--ds-color-brand-purple-400: #c9a9f8;--ds-color-brand-purple-500: #b588f5;--ds-color-brand-purple-600: #a268f3;--ds-color-brand-purple-700: #8d47f0;--ds-color-brand-purple-800: #7633d7;--ds-color-brand-purple-900: #622ab2;--ds-color-brand-purple-1000: #4e228d;--ds-color-brand-pink-100: #fff7f8;--ds-color-brand-pink-200: #fde0e6;--ds-color-brand-pink-300: #fcc2ce;--ds-color-brand-pink-400: #fa9db0;--ds-color-brand-pink-500: #f7738e;--ds-color-brand-pink-600: #e45472;--ds-color-brand-pink-700: #bf475f;--ds-color-brand-pink-800: #a03b50;--ds-color-brand-pink-900: #833142;--ds-color-brand-pink-1000: #692734;--ds-color-brand-midnight-100: #c1daf0;--ds-color-brand-midnight-200: #569ed7;--ds-color-brand-midnight-300: #156fad;--ds-color-brand-midnight-400: #01426a;--ds-color-brand-midnight-500: #00274a;--ds-color-brand-atlas-100: #cde6ff;--ds-color-brand-atlas-200: #6bb7fb;--ds-color-brand-atlas-300: #2492eb;--ds-color-brand-atlas-400: #0074c8;--ds-color-brand-atlas-500: #054687;--ds-color-brand-atlas-400-opacity-20: rgba(0, 116, 200, 0.2);--ds-color-brand-breeze-100: #c0f7ff;--ds-color-brand-breeze-200: #5de3f7;--ds-color-brand-breeze-300: #00cff0;--ds-color-brand-breeze-400: #099dc5;--ds-color-brand-breeze-500: #0b5575;--ds-color-brand-breeze-300-opacity-30: rgba(0, 207, 240, 0.3);--ds-color-brand-tropical-100: #e2ffcd;--ds-color-brand-tropical-200: #d0fba6;--ds-color-brand-tropical-300: #c0e585;--ds-color-brand-tropical-400: #91be62;--ds-color-brand-tropical-500: #5e8741;--ds-color-brand-alpine-100: #bcaae6;--ds-color-brand-alpine-200: #9e73ea;--ds-color-brand-alpine-300: #8439ef;--ds-color-brand-alpine-400: #631db8;--ds-color-brand-alpine-500: #39115c;--ds-color-brand-flamingo-100: #ffebee;--ds-color-brand-flamingo-200: #ffc0ca;--ds-color-brand-flamingo-300: #ff94a7;--ds-color-brand-flamingo-400: #f65b7b;--ds-color-brand-flamingo-500: #b82b47;--ds-color-brand-canyon-100: #ffcab6;--ds-color-brand-canyon-200: #f99574;--ds-color-brand-canyon-300: #f26135;--ds-color-brand-canyon-400: #de3e09;--ds-color-brand-canyon-500: #b83302;--ds-color-brand-goldcoast-100: #fff0cd;--ds-color-brand-goldcoast-200: #ffdb67;--ds-color-brand-goldcoast-300: #ffd200;--ds-color-brand-goldcoast-400: #e5ad07;--ds-color-brand-goldcoast-500: #b88624;--ds-color-brand-goldgray-100: #c5c1bf;--ds-color-brand-goldgray-200: #726e6c;--ds-color-brand-gold-100: #ccbc94;--ds-color-brand-gold-200: #7f682e;--ds-color-brand-emerald: #139142;--ds-color-brand-sapphire: #015daa;--ds-color-brand-ruby: #a41d4a;--ds-color-brand-lounge: #01426a;--ds-color-brand-loungeplus: #53b390;--ds-color-container-accent-default: #f5fbeb;--ds-color-container-accent-inverse: #badd81;--ds-color-container-emphasis-default: #ebfafd;--ds-color-container-emphasis-inverse: #6ad5ef;--ds-color-container-error-default: #fff4f4;--ds-color-container-error-inverse: #74110e;--ds-color-container-info-default: #f0f7fd;--ds-color-container-info-inverse: #193d73;--ds-color-container-primary-default: #ffffff;--ds-color-container-primary-inverse: #0e2b4f;--ds-color-container-secondary-default: #f7f7f7;--ds-color-container-secondary-inverse: #194069;--ds-color-container-subtle-default: #f7f8fa;--ds-color-container-subtle-inverse: #393d43;--ds-color-container-success-default: #eef8f5;--ds-color-container-success-inverse: #173c30;--ds-color-container-tertiary-default: rgba(0, 0, 0, 0.03);--ds-color-container-tertiary-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-warning-default: #fef8e9;--ds-color-container-warning-inverse: #5d4514;--ds-color-container-ui-primary-active-default: #225296;--ds-color-container-ui-primary-active-inverse: #6ad5ef;--ds-color-container-ui-primary-default-default: #2c67b5;--ds-color-container-ui-primary-default-inverse: #56bbde;--ds-color-container-ui-primary-disabled-default: #a0c9f1;--ds-color-container-ui-primary-disabled-inverse: #275b72;--ds-color-container-ui-primary-focus-default: #2c67b5;--ds-color-container-ui-primary-focus-inverse: #56bbde;--ds-color-container-ui-primary-hover-default: #193d73;--ds-color-container-ui-primary-hover-inverse: #a8e9f7;--ds-color-container-ui-secondary-active-default: #f0f7fd;--ds-color-container-ui-secondary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-secondary-default-default: #ffffff;--ds-color-container-ui-secondary-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-disabled-default: #f7f7f7;--ds-color-container-ui-secondary-disabled-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-secondary-focus-default: #ffffff;--ds-color-container-ui-secondary-focus-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-hover-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-secondary-hover-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-active-default: rgba(0, 0, 0, 0.06);--ds-color-container-ui-tertiary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-tertiary-default-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-default-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-disabled-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-disabled-inverse: rgba(255, 255, 255, 0.25);--ds-color-container-ui-tertiary-focus-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-focus-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-hover-default: rgba(0, 0, 0, 0.12);--ds-color-container-ui-tertiary-hover-inverse: rgba(255, 255, 255, 0.25);--ds-color-icon-primary-default: #676767;--ds-color-icon-primary-inverse: #f7f7f7;--ds-color-icon-secondary-default: #7e8894;--ds-color-icon-secondary-inverse: #ccd2db;--ds-color-icon-tertiary-default: #afb9c6;--ds-color-icon-tertiary-inverse: #939fad;--ds-color-icon-emphasis-default: #2a2a2a;--ds-color-icon-emphasis-inverse: #ffffff;--ds-color-icon-accent-default: #a2c270;--ds-color-icon-accent-inverse: #badd81;--ds-color-icon-info-default: #326aa5;--ds-color-icon-info-inverse: #89b2d4;--ds-color-icon-error-default: #cc1816;--ds-color-icon-error-inverse: #f9aca6;--ds-color-icon-warning-default: #c49432;--ds-color-icon-warning-inverse: #f2c153;--ds-color-icon-success-default: #40a080;--ds-color-icon-success-inverse: #8eceb9;--ds-color-icon-subtle-default: #a0c9f1;--ds-color-icon-subtle-inverse: #326aa5;--ds-color-icon-ui-primary-default-default: #2c67b5;--ds-color-icon-ui-primary-default-inverse: #56bbde;--ds-color-icon-ui-primary-hover-default: #193d73;--ds-color-icon-ui-primary-hover-inverse: #a8e9f7;--ds-color-icon-ui-primary-active-default: #225296;--ds-color-icon-ui-primary-active-inverse: #6ad5ef;--ds-color-icon-ui-primary-disabled-default: #adadad;--ds-color-icon-ui-primary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-primary-focus-default: #2c67b5;--ds-color-icon-ui-primary-focus-inverse: #56bbde;--ds-color-icon-ui-secondary-active-default: #676767;--ds-color-icon-ui-secondary-active-inverse: #c5c5c5;--ds-color-icon-ui-secondary-default-default: #7e7e7e;--ds-color-icon-ui-secondary-default-inverse: #adadad;--ds-color-icon-ui-secondary-disabled-default: #adadad;--ds-color-icon-ui-secondary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-secondary-focus-default: #7e7e7e;--ds-color-icon-ui-secondary-focus-inverse: #adadad;--ds-color-icon-ui-secondary-hover-default: #525252;--ds-color-icon-ui-secondary-hover-inverse: #dddddd;--ds-color-icon-brand-red-default: #d03a08;--ds-color-icon-brand-red-inverse: #e9815e;--ds-color-icon-brand-yellow-default: #7c7140;--ds-color-icon-brand-yellow-inverse: #f9ce06;--ds-color-icon-brand-pink-default: #bf475f;--ds-color-icon-brand-pink-inverse: #f7738e;--ds-color-icon-brand-purple-default: #8d47f0;--ds-color-icon-brand-purple-inverse: #b588f5;--ds-color-icon-brand-lime-default: #647845;--ds-color-icon-brand-lime-inverse: #badd81;--ds-color-icon-brand-green-default: #3a7d64;--ds-color-icon-brand-green-inverse: #51ae8c;--ds-color-icon-brand-turquoise-default: #3d7a7d;--ds-color-icon-brand-turquoise-inverse: #7ba5a6;--ds-color-icon-brand-navy-default: #265688;--ds-color-icon-brand-navy-inverse: #6899c6;--ds-color-icon-brand-blue-default: #2c67b5;--ds-color-icon-brand-blue-inverse: #5398e6;--ds-color-icon-brand-cyan-default: #32718e;--ds-color-icon-brand-cyan-inverse: #6ad5ef;--ds-color-icon-brand-gray-default: #676767;--ds-color-icon-brand-gray-inverse: #c5c5c5;--ds-color-icon-brand-neutral-default: #6a717c;--ds-color-icon-brand-neutral-inverse: #afb9c6;--ds-color-icon-disabled-default: rgba(0, 0, 0, 0.15);--ds-color-text-primary-default: #2a2a2a;--ds-color-text-primary-inverse: #ffffff;--ds-color-text-secondary-default: #525252;--ds-color-text-secondary-inverse: #dddddd;--ds-color-text-tertiary-default: #6a717c;--ds-color-text-tertiary-inverse: #adadad;--ds-color-text-error-default: #cc1816;--ds-color-text-error-inverse: #f9aca6;--ds-color-text-emphasis-default: #265688;--ds-color-text-emphasis-inverse: #cfe0ef;--ds-color-text-accent-default: #647845;--ds-color-text-accent-inverse: #badd81;--ds-color-text-info-default: #326aa5;--ds-color-text-info-inverse: #acc9e2;--ds-color-text-subtle-default: #32718e;--ds-color-text-subtle-inverse: #56bbde;--ds-color-text-success-default: #0b6f4d;--ds-color-text-success-inverse: #8eceb9;--ds-color-text-ui-active-default: #225296;--ds-color-text-ui-active-inverse: #6ad5ef;--ds-color-text-ui-default-default: #2c67b5;--ds-color-text-ui-default-inverse: #56bbde;--ds-color-text-ui-disabled-default: #adadad;--ds-color-text-ui-disabled-inverse: #7e7e7e;--ds-color-text-ui-focus-default: #2c67b5;--ds-color-text-ui-focus-inverse: #56bbde;--ds-color-text-ui-hover-default: #193d73;--ds-color-text-ui-hover-inverse: #a8e9f7;--ds-color-text-link-default: #0074c8;--ds-color-text-link-inverse: #00cff0;--ds-color-tier-alaska-mvp-default: #726e6c;--ds-color-tier-alaska-mvp-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold-default: #7f682e;--ds-color-tier-alaska-mvpgold-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold75k-default: #7f682e;--ds-color-tier-alaska-mvpgold75k-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold100k-default: #7f682e;--ds-color-tier-alaska-mvpgold100k-inverse: #c5c1bf;--ds-color-tier-alaska-lounge: #01426a;--ds-color-tier-alaska-loungeplus: #53b390;--ds-color-tier-fare-business-default: #005154;--ds-color-tier-fare-business-inverse: #9fbdbe;--ds-color-tier-fare-economy-default: #2c67b5;--ds-color-tier-fare-economy-inverse: #a0c9f1;--ds-color-tier-fare-first-class-default: #002c4e;--ds-color-tier-fare-first-class-inverse: #89b2d4;--ds-color-tier-fare-saver-default: #4aa2c7;--ds-color-tier-fare-saver-inverse: #a8e9f7;--ds-color-tier-oneworld-emerald: #139142;--ds-color-tier-oneworld-sapphire: #015daa;--ds-color-tier-oneworld-ruby: #a41d4a;--ds-color-ui-default-default: #0074c8;--ds-color-ui-default-inverse: #00cff0;--ds-color-ui-hover-default: #054687;--ds-color-ui-hover-inverse: #5de3f7;--ds-color-ui-active-default: #054687;--ds-color-ui-active-inverse: #5de3f7;--ds-color-ui-disabled-default: rgba(0, 116, 200, 0.2);--ds-color-ui-bkg-default-default: rgba(0, 0, 0, 0.03);--ds-color-ui-bkg-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-ui-bkg-hover-default: rgba(0, 0, 0, 0.06);--ds-color-ui-bkg-hover-inverse: rgba(255, 255, 255, 0.06);--ds-color-utility-blue-default: #79b2ec;--ds-color-utility-blue-inverse: #c9e0f7;--ds-color-utility-cyan-default: #6ad5ef;--ds-color-utility-cyan-inverse: #a8e9f7;--ds-color-utility-green-default: #7ec6ac;--ds-color-utility-green-inverse: #addbca;--ds-color-utility-gray-default: #adadad;--ds-color-utility-gray-inverse: #dddddd;--ds-color-utility-lime-default: #badd81;--ds-color-utility-lime-inverse: #d8efb4;--ds-color-utility-navy-default: #265688;--ds-color-utility-navy-inverse: #acc9e2;--ds-color-utility-neutral-default: #7e8894;--ds-color-utility-neutral-inverse: #ccd2db;--ds-color-utility-pink-default: #f7738e;--ds-color-utility-pink-inverse: #fcc2ce;--ds-color-utility-purple-default: #8d47f0;--ds-color-utility-purple-inverse: #ddc9fb;--ds-color-utility-red-default: #e35c2f;--ds-color-utility-red-inverse: #f0a68d;--ds-color-utility-turquoise-default: #5c8f91;--ds-color-utility-turquoise-inverse: #9fbdbe;--ds-color-utility-yellow-default: #f9ce06;--ds-color-utility-yellow-inverse: #ffe87e;--ds-color-utility-error-default: #cc1816;--ds-color-utility-error-inverse: #f9aca6;--ds-color-utility-warning-default: #f2c153;--ds-color-utility-warning-inverse: #f2c153;--ds-color-utility-success-default: #0b6f4d;--ds-color-utility-success-inverse: #8eceb9}: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:""}`;
|
|
7298
|
+
|
|
7299
|
+
var colorCss$9 = css`::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)}`;
|
|
7300
|
+
|
|
7301
|
+
var tokensCss$9 = css`: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-color-container-primary-default, #ffffff);--ds-auro-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
7347
7302
|
|
|
7348
7303
|
var top = 'top';
|
|
7349
7304
|
var bottom = 'bottom';
|
|
@@ -9219,7 +9174,7 @@ class Popover {
|
|
|
9219
9174
|
* @slot - Default unnamed slot for the use of popover content
|
|
9220
9175
|
* @slot trigger - The element in this slot triggers hiding and showing the popover.
|
|
9221
9176
|
*/
|
|
9222
|
-
class AuroPopover extends
|
|
9177
|
+
class AuroPopover extends LitElement {
|
|
9223
9178
|
constructor() {
|
|
9224
9179
|
super();
|
|
9225
9180
|
|
|
@@ -9234,7 +9189,7 @@ class AuroPopover extends r$c {
|
|
|
9234
9189
|
privateDefaults() {
|
|
9235
9190
|
this.isPopoverVisible = false;
|
|
9236
9191
|
this.id = `popover-${(Math.random() + 1).toString(36).substring(7)}`;
|
|
9237
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9192
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
9238
9193
|
}
|
|
9239
9194
|
|
|
9240
9195
|
// function to define props used within the scope of this component
|
|
@@ -9249,9 +9204,9 @@ class AuroPopover extends r$c {
|
|
|
9249
9204
|
|
|
9250
9205
|
static get styles() {
|
|
9251
9206
|
return [
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9207
|
+
css`${styleCss$9}`,
|
|
9208
|
+
css`${colorCss$9}`,
|
|
9209
|
+
css`${tokensCss$9}`
|
|
9255
9210
|
];
|
|
9256
9211
|
}
|
|
9257
9212
|
|
|
@@ -9264,7 +9219,7 @@ class AuroPopover extends r$c {
|
|
|
9264
9219
|
*
|
|
9265
9220
|
*/
|
|
9266
9221
|
static register(name = "auro-popover") {
|
|
9267
|
-
AuroLibraryRuntimeUtils$
|
|
9222
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent(name, AuroPopover);
|
|
9268
9223
|
}
|
|
9269
9224
|
|
|
9270
9225
|
connectedCallback() {
|
|
@@ -9395,7 +9350,7 @@ class AuroPopover extends r$c {
|
|
|
9395
9350
|
|
|
9396
9351
|
// function that renders the HTML and CSS into the scope of the component
|
|
9397
9352
|
render() {
|
|
9398
|
-
return
|
|
9353
|
+
return html`
|
|
9399
9354
|
<div id="popover" class="popover util_insetLg" aria-live="polite" part="popover">
|
|
9400
9355
|
<div id="arrow" class="arrow" data-popper-arrow></div>
|
|
9401
9356
|
<span role="tooltip" aria-labelledby="${this.id}"><slot></slot></span>
|
|
@@ -9408,11 +9363,11 @@ class AuroPopover extends r$c {
|
|
|
9408
9363
|
}
|
|
9409
9364
|
}
|
|
9410
9365
|
|
|
9411
|
-
var popoverVersion = '4.1.
|
|
9366
|
+
var popoverVersion = '4.1.3';
|
|
9412
9367
|
|
|
9413
9368
|
/* 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 */
|
|
9414
9369
|
|
|
9415
|
-
class AuroCalendarCell extends
|
|
9370
|
+
class AuroCalendarCell extends LitElement {
|
|
9416
9371
|
constructor() {
|
|
9417
9372
|
super();
|
|
9418
9373
|
|
|
@@ -9432,13 +9387,13 @@ class AuroCalendarCell extends r$c {
|
|
|
9432
9387
|
this.dateStr = null;
|
|
9433
9388
|
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.
|
|
9434
9389
|
|
|
9435
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9390
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
9436
9391
|
|
|
9437
9392
|
/**
|
|
9438
9393
|
* Generate unique names for dependency components.
|
|
9439
9394
|
*/
|
|
9440
|
-
const versioning = new AuroDependencyVersioning$
|
|
9441
|
-
this.popoverTag = versioning.generateTag('auro-popover', popoverVersion, AuroPopover);
|
|
9395
|
+
const versioning = new AuroDependencyVersioning$5();
|
|
9396
|
+
this.popoverTag = versioning.generateTag('auro-formkit-datepicker-popover', popoverVersion, AuroPopover);
|
|
9442
9397
|
}
|
|
9443
9398
|
|
|
9444
9399
|
// This function is to define props used within the scope of this component
|
|
@@ -9478,9 +9433,9 @@ class AuroCalendarCell extends r$c {
|
|
|
9478
9433
|
static get styles() {
|
|
9479
9434
|
return [
|
|
9480
9435
|
// ...super.styles,
|
|
9481
|
-
styleCss$
|
|
9482
|
-
colorCss$
|
|
9483
|
-
tokensCss$
|
|
9436
|
+
styleCss$a,
|
|
9437
|
+
colorCss$a,
|
|
9438
|
+
tokensCss$a
|
|
9484
9439
|
];
|
|
9485
9440
|
}
|
|
9486
9441
|
|
|
@@ -9707,8 +9662,8 @@ class AuroCalendarCell extends r$c {
|
|
|
9707
9662
|
}
|
|
9708
9663
|
|
|
9709
9664
|
firstUpdated() {
|
|
9710
|
-
const calendarMonth = this.runtimeUtils.closestElement('auro-calendar-month', this);
|
|
9711
|
-
const calendar = this.runtimeUtils.closestElement('auro-calendar', calendarMonth);
|
|
9665
|
+
const calendarMonth = this.runtimeUtils.closestElement('auro-formkit-calendar-month', this);
|
|
9666
|
+
const calendar = this.runtimeUtils.closestElement('auro-formkit-calendar', calendarMonth);
|
|
9712
9667
|
|
|
9713
9668
|
if (!calendar) {
|
|
9714
9669
|
setTimeout(() => this.firstUpdated(), 0);
|
|
@@ -9747,7 +9702,7 @@ class AuroCalendarCell extends r$c {
|
|
|
9747
9702
|
};
|
|
9748
9703
|
|
|
9749
9704
|
let _a, _b;
|
|
9750
|
-
return
|
|
9705
|
+
return html$1`
|
|
9751
9706
|
<${this.popoverTag}>
|
|
9752
9707
|
<slot name="popover_${this.dateStr}"></slot>
|
|
9753
9708
|
<button
|
|
@@ -9755,7 +9710,7 @@ class AuroCalendarCell extends r$c {
|
|
|
9755
9710
|
@click="${this.handleTap}"
|
|
9756
9711
|
@mouseover="${this.handleHover}"
|
|
9757
9712
|
@focus="${this.handleHover}"
|
|
9758
|
-
class="${
|
|
9713
|
+
class="${classMap(buttonClasses)}"
|
|
9759
9714
|
?disabled="${this.disabled}"
|
|
9760
9715
|
title="${this.getTitle((_a = this.day) === null || _a === void 0 ? void 0 : _a.date)}"
|
|
9761
9716
|
tabindex="-1">
|
|
@@ -9771,8 +9726,8 @@ class AuroCalendarCell extends r$c {
|
|
|
9771
9726
|
}
|
|
9772
9727
|
}
|
|
9773
9728
|
|
|
9774
|
-
if (!customElements.get('auro-calendar-cell')) {
|
|
9775
|
-
customElements.define('auro-calendar-cell', AuroCalendarCell);
|
|
9729
|
+
if (!customElements.get('auro-formkit-calendar-cell')) {
|
|
9730
|
+
customElements.define('auro-formkit-calendar-cell', AuroCalendarCell);
|
|
9776
9731
|
}
|
|
9777
9732
|
|
|
9778
9733
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
@@ -9783,9 +9738,9 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9783
9738
|
static get styles() {
|
|
9784
9739
|
return [
|
|
9785
9740
|
// ...super.styles,
|
|
9786
|
-
styleCss$
|
|
9787
|
-
colorCss$
|
|
9788
|
-
tokensCss$
|
|
9741
|
+
styleCss$b,
|
|
9742
|
+
colorCss$b,
|
|
9743
|
+
tokensCss$a
|
|
9789
9744
|
];
|
|
9790
9745
|
}
|
|
9791
9746
|
|
|
@@ -9856,11 +9811,11 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9856
9811
|
}
|
|
9857
9812
|
|
|
9858
9813
|
renderDay(day) {
|
|
9859
|
-
return
|
|
9814
|
+
return html`
|
|
9860
9815
|
<div class="td ${this.tdIsEnabled(day)}">
|
|
9861
9816
|
${day
|
|
9862
|
-
?
|
|
9863
|
-
<auro-calendar-cell
|
|
9817
|
+
? html`
|
|
9818
|
+
<auro-formkit-calendar-cell
|
|
9864
9819
|
.disabledDays="${this.disabledDays}"
|
|
9865
9820
|
.min="${this.min}"
|
|
9866
9821
|
.max="${this.max}"
|
|
@@ -9874,7 +9829,7 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9874
9829
|
@date-is-selected="${this.handleDateSelected}"
|
|
9875
9830
|
@date-is-hovered="${this.handleDateHovered}"
|
|
9876
9831
|
>
|
|
9877
|
-
</auro-calendar-cell>
|
|
9832
|
+
</auro-formkit-calendar-cell>
|
|
9878
9833
|
`
|
|
9879
9834
|
: null}
|
|
9880
9835
|
</div>
|
|
@@ -9886,15 +9841,15 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9886
9841
|
render() {
|
|
9887
9842
|
var _a, _b;
|
|
9888
9843
|
|
|
9889
|
-
return
|
|
9844
|
+
return html `
|
|
9890
9845
|
<div>
|
|
9891
9846
|
<div class="header">
|
|
9892
9847
|
${this.renderPrevButton()}
|
|
9893
9848
|
<div class="headerTitle">
|
|
9894
|
-
${this.monthFirst ?
|
|
9849
|
+
${this.monthFirst ? html`
|
|
9895
9850
|
<div>${this.computeCurrentMonthName(this.month)}</div>
|
|
9896
9851
|
<div>${this.renderYear()}</div>
|
|
9897
|
-
` :
|
|
9852
|
+
` : html`
|
|
9898
9853
|
<div>${this.renderYear()}</div>
|
|
9899
9854
|
<div>${this.computeCurrentMonthName(this.month)}</div>
|
|
9900
9855
|
`}
|
|
@@ -9918,13 +9873,13 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9918
9873
|
/* eslint-enable */
|
|
9919
9874
|
}
|
|
9920
9875
|
|
|
9921
|
-
if (!customElements.get('auro-calendar-month')) {
|
|
9922
|
-
customElements.define('auro-calendar-month', AuroCalendarMonth);
|
|
9876
|
+
if (!customElements.get('auro-formkit-calendar-month')) {
|
|
9877
|
+
customElements.define('auro-formkit-calendar-month', AuroCalendarMonth);
|
|
9923
9878
|
}
|
|
9924
9879
|
|
|
9925
9880
|
/* eslint-disable no-underscore-dangle, no-magic-numbers, no-underscore-dangle, no-void, init-declarations, no-extra-parens, no-unused-expressions */
|
|
9926
9881
|
|
|
9927
|
-
class RangeDatepicker extends
|
|
9882
|
+
class RangeDatepicker extends LitElement {
|
|
9928
9883
|
constructor() {
|
|
9929
9884
|
super();
|
|
9930
9885
|
|
|
@@ -9981,7 +9936,7 @@ class RangeDatepicker extends r$c {
|
|
|
9981
9936
|
}
|
|
9982
9937
|
|
|
9983
9938
|
renderNormal() {
|
|
9984
|
-
return
|
|
9939
|
+
return html`
|
|
9985
9940
|
<div id="container">
|
|
9986
9941
|
<wc-range-datepicker-calendar
|
|
9987
9942
|
id="firstDatePicker"
|
|
@@ -10027,7 +9982,7 @@ class RangeDatepicker extends r$c {
|
|
|
10027
9982
|
}
|
|
10028
9983
|
|
|
10029
9984
|
renderNarrow() {
|
|
10030
|
-
return
|
|
9985
|
+
return html`
|
|
10031
9986
|
<wc-range-datepicker-calendar
|
|
10032
9987
|
.disabledDays="${this.disabledDays}"
|
|
10033
9988
|
min="${this.min}"
|
|
@@ -10140,7 +10095,7 @@ class RangeDatepicker extends r$c {
|
|
|
10140
10095
|
}));
|
|
10141
10096
|
}
|
|
10142
10097
|
}
|
|
10143
|
-
RangeDatepicker.styles =
|
|
10098
|
+
RangeDatepicker.styles = css`
|
|
10144
10099
|
:host {
|
|
10145
10100
|
display: block;
|
|
10146
10101
|
position: relative;
|
|
@@ -10155,21 +10110,21 @@ RangeDatepicker.styles = i$h`
|
|
|
10155
10110
|
margin-right: 16px;
|
|
10156
10111
|
}
|
|
10157
10112
|
`;
|
|
10158
|
-
__decorate([
|
|
10159
|
-
__decorate([
|
|
10160
|
-
__decorate([
|
|
10161
|
-
__decorate([
|
|
10162
|
-
__decorate([
|
|
10163
|
-
__decorate([
|
|
10164
|
-
__decorate([
|
|
10165
|
-
__decorate([
|
|
10166
|
-
__decorate([
|
|
10167
|
-
__decorate([
|
|
10168
|
-
__decorate([
|
|
10169
|
-
__decorate([
|
|
10170
|
-
__decorate([
|
|
10171
|
-
__decorate([
|
|
10172
|
-
__decorate([
|
|
10113
|
+
__decorate([property({ type: Array })], RangeDatepicker.prototype, "disabledDays", void 0);
|
|
10114
|
+
__decorate([property({ type: Boolean })], RangeDatepicker.prototype, "enableYearChange", void 0);
|
|
10115
|
+
__decorate([property({ type: Boolean })], RangeDatepicker.prototype, "forceNarrow", void 0);
|
|
10116
|
+
__decorate([property({ type: Object })], RangeDatepicker.prototype, "locale", void 0);
|
|
10117
|
+
__decorate([property({ type: String })], RangeDatepicker.prototype, "max", void 0);
|
|
10118
|
+
__decorate([property({ type: String })], RangeDatepicker.prototype, "min", void 0);
|
|
10119
|
+
__decorate([property({ type: Number })], RangeDatepicker.prototype, "month", void 0);
|
|
10120
|
+
__decorate([property({ type: Boolean })], RangeDatepicker.prototype, "noRange", void 0);
|
|
10121
|
+
__decorate([property({ type: Number })], RangeDatepicker.prototype, "year", void 0);
|
|
10122
|
+
__decorate([property({ type: String })], RangeDatepicker.prototype, "dateFrom", void 0);
|
|
10123
|
+
__decorate([property({ type: String })], RangeDatepicker.prototype, "dateTo", void 0);
|
|
10124
|
+
__decorate([property({ type: String })], RangeDatepicker.prototype, "hoveredDate", void 0);
|
|
10125
|
+
__decorate([property({ type: Number })], RangeDatepicker.prototype, "monthPlus", void 0);
|
|
10126
|
+
__decorate([property({ type: Number })], RangeDatepicker.prototype, "yearPlus", void 0);
|
|
10127
|
+
__decorate([property({ type: Boolean })], RangeDatepicker.prototype, "narrow", void 0);
|
|
10173
10128
|
|
|
10174
10129
|
var chevronLeft = {"role":"img","color":"currentColor","title":"","desc":"Directional indicator; left.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"chevron-left","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"chevron-left__desc\" class=\"ico_squareLarge\" 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=\"chevron-left__desc\">Directional indicator; left.</desc><path d=\"m14.395 6.345.084.073a.75.75 0 0 1 .072.977l-.072.084-4.47 4.47 4.47 4.47a.75.75 0 0 1 .072.976l-.072.084a.75.75 0 0 1-.977.072l-.084-.072-4.823-4.823a1 1 0 0 1 0-1.415l4.823-4.823a.75.75 0 0 1 .977-.073\"/></svg>"};
|
|
10175
10130
|
|
|
@@ -10313,44 +10268,11 @@ class CalendarUtilities {
|
|
|
10313
10268
|
}
|
|
10314
10269
|
}
|
|
10315
10270
|
|
|
10316
|
-
|
|
10317
|
-
* @license
|
|
10318
|
-
* Copyright 2019 Google LLC
|
|
10319
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10320
|
-
*/
|
|
10321
|
-
const t$2$2=globalThis,e$4$2=t$2$2.ShadowRoot&&(void 0===t$2$2.ShadyCSS||t$2$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2$2=Symbol(),o$4$2=new WeakMap;let n$3$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2$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$4$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$4$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4$2.set(s,t));}return t}toString(){return this.cssText}};const r$3$2=t=>new n$3$2("string"==typeof t?t:t+"",void 0,s$2$2),i$5$2=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3$2(o,t,s$2$2)},S$1$2=(s,o)=>{if(e$4$2)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$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2$2=e$4$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3$2(e)})(t):t;
|
|
10322
|
-
|
|
10323
|
-
/**
|
|
10324
|
-
* @license
|
|
10325
|
-
* Copyright 2017 Google LLC
|
|
10326
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10327
|
-
*/const{is:i$4$2,defineProperty:e$3$2,getOwnPropertyDescriptor:r$2$2,getOwnPropertyNames:h$1$2,getOwnPropertySymbols:o$3$2,getPrototypeOf:n$2$2}=Object,a$2$2=globalThis,c$1$2=a$2$2.trustedTypes,l$2$2=c$1$2?c$1$2.emptyScript:"",p$1$2=a$2$2.reactiveElementPolyfillSupport,d$1$2=(t,s)=>t,u$2$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2$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$2=(t,s)=>!i$4$2(t,s),y$1$2={attribute:true,type:String,converter:u$2$2,reflect:false,hasChanged:f$1$2};Symbol.metadata??=Symbol("metadata"),a$2$2.litPropertyMetadata??=new WeakMap;let b$3 = class b 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=y$1$2){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$3$2(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1$2}static _$Ei(){if(this.hasOwnProperty(d$1$2("elementProperties")))return;const t=n$2$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1$2("properties"))){const t=this.properties,s=[...h$1$2(t),...o$3$2(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$2(s));}else void 0!==s&&i.push(c$2$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$1$2(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);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),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),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1$2)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){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) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}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._$EU();}catch(s){throw t=false,this._$EU(),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);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$3.elementStyles=[],b$3.shadowRootOptions={mode:"open"},b$3[d$1$2("elementProperties")]=new Map,b$3[d$1$2("finalized")]=new Map,p$1$2?.({ReactiveElement:b$3}),(a$2$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
10328
|
-
|
|
10329
|
-
/**
|
|
10330
|
-
* @license
|
|
10331
|
-
* Copyright 2017 Google LLC
|
|
10332
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10333
|
-
*/
|
|
10334
|
-
const t$1$2=globalThis,i$3$2=t$1$2.trustedTypes,s$1$2=i$3$2?i$3$2.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$2$2="$lit$",h$5=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2$2="?"+h$5,n$1$2=`<${o$2$2}>`,r$1$2=document,l$1$2=()=>r$1$2.createComment(""),c$8=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1$2=Array.isArray,u$1$2=t=>a$1$2(t)||"function"==typeof t?.[Symbol.iterator],d$5="[ \t\n\f\r]",f$5=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$4=/-->/g,_$3=/>/g,m$4=RegExp(`>|${d$5}(?:([^\\s"'>=/]+)(${d$5}*=${d$5}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$6=/'/g,g$3=/"/g,$$3=/^(?:script|style|textarea|title)$/i,y$5=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$3=y$5(1),T$3=Symbol.for("lit-noChange"),E$3=Symbol.for("lit-nothing"),A$3=new WeakMap,C$3=r$1$2.createTreeWalker(r$1$2,129);function P$3(t,i){if(!a$1$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$1$2?s$1$2.createHTML(i):i}const V$3=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$5;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$5?"!--"===u[1]?c=v$4:void 0!==u[1]?c=_$3:void 0!==u[2]?($$3.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$4):void 0!==u[3]&&(c=m$4):c===m$4?">"===u[0]?(c=r??f$5,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$4:'"'===u[3]?g$3:p$6):c===g$3||c===p$6?c=m$4:c===v$4||c===_$3?c=f$5:(c=m$4,r=void 0);const x=c===m$4&&t[i+1].startsWith("/>")?" ":"";l+=c===f$5?s+n$1$2:d>=0?(o.push(a),s.slice(0,d)+e$2$2+s.slice(d)+h$5+x):s+h$5+(-2===d?i:x);}return [P$3(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$3 = 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$3(t,s);if(this.el=N.createElement(f,n),C$3.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$3.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$2$2)){const i=v[a++],s=r.getAttribute(t).split(h$5),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$3:"?"===e[1]?I$3:"@"===e[1]?L$3:k$3}),r.removeAttribute(t);}else t.startsWith(h$5)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$3.test(r.tagName)){const t=r.textContent.split(h$5),s=t.length-1;if(s>0){r.textContent=i$3$2?i$3$2.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1$2()),C$3.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1$2());}}}else if(8===r.nodeType)if(r.data===o$2$2)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$5,t+1));)d.push({type:7,index:c}),t+=h$5.length-1;}c++;}}static createElement(t,i){const s=r$1$2.createElement("template");return s.innerHTML=t,s}};function S$5(t,i,s=t,e){if(i===T$3)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$8(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$5(t,h._$AS(t,i.values),h,e)),i}let M$4 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1$2).importNode(i,true);C$3.currentNode=e;let h=C$3.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$3(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$3(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$3.nextNode(),o++);}return C$3.currentNode=r$1$2,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++;}};let R$3 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$3,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$5(this,t,i),c$8(t)?t===E$3||null==t||""===t?(this._$AH!==E$3&&this._$AR(),this._$AH=E$3):t!==this._$AH&&t!==T$3&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$1$2(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$3&&c$8(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1$2.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$3.createElement(P$3(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$4(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$3.get(t.strings);return void 0===i&&A$3.set(t.strings,i=new N$3(t)),i}k(t){a$1$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$1$2()),this.O(l$1$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));}};let k$3 = 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$3,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$3;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$5(this,t,i,0),o=!c$8(t)||t!==this._$AH&&t!==T$3,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$5(this,e[s+n],i,n),r===T$3&&(r=this._$AH[n]),o||=!c$8(r)||r!==this._$AH[n],r===E$3?t=E$3:t!==E$3&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$3?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$3 = class H extends k$3{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$3?void 0:t;}};let I$3 = class I extends k$3{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$3);}};let L$3 = class L extends k$3{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$5(this,t,i,0)??E$3)===T$3)return;const s=this._$AH,e=t===E$3&&s!==E$3||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$3&&(s===E$3||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);}};let z$3 = 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$5(this,t);}};const j$3=t$1$2.litHtmlPolyfillSupport;j$3?.(N$3,R$3),(t$1$2.litHtmlVersions??=[]).push("3.2.1");const B$3=(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$3(i.insertBefore(l$1$2(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
10335
|
-
|
|
10336
|
-
/**
|
|
10337
|
-
* @license
|
|
10338
|
-
* Copyright 2017 Google LLC
|
|
10339
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10340
|
-
*/let r$a = class r extends b$3{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 s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$3(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$3}};r$a._$litElement$=true,r$a["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$a});const i$2$2=globalThis.litElementPolyfillSupport;i$2$2?.({LitElement:r$a});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
10341
|
-
|
|
10342
|
-
/**
|
|
10343
|
-
* @license
|
|
10344
|
-
* Copyright 2020 Google LLC
|
|
10345
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10346
|
-
*/
|
|
10347
|
-
const a$6=Symbol.for(""),o$1$2=t=>{if(t?.r===a$6)return t?._$litStatic$},s$7=t=>({_$litStatic$:t,r:a$6}),i$1$2=(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$6}),l$6=new Map,n$8=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$1$2(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$6.get(t))&&(n.raw=n,l$6.set(t,r=n)),e=u;}return t(r,...e)},u$8=n$8(x$3);
|
|
10271
|
+
var colorCss$1$2 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
10348
10272
|
|
|
10349
|
-
var
|
|
10273
|
+
var styleCss$2$2 = css`#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, $ds-size-500)}#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)}`;
|
|
10350
10274
|
|
|
10351
|
-
var
|
|
10352
|
-
|
|
10353
|
-
var tokenCss = i$5$2`: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-color-container-primary-default, #ffffff)}`;
|
|
10275
|
+
var tokenCss = css`: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-color-container-primary-default, #ffffff)}`;
|
|
10354
10276
|
|
|
10355
10277
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10356
10278
|
// See LICENSE in the project root for license information.
|
|
@@ -10359,7 +10281,7 @@ var tokenCss = i$5$2`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--d
|
|
|
10359
10281
|
|
|
10360
10282
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10361
10283
|
|
|
10362
|
-
let AuroLibraryRuntimeUtils$
|
|
10284
|
+
let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
|
|
10363
10285
|
|
|
10364
10286
|
/* eslint-disable jsdoc/require-param */
|
|
10365
10287
|
|
|
@@ -10426,7 +10348,7 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
|
10426
10348
|
// See LICENSE in the project root for license information.
|
|
10427
10349
|
|
|
10428
10350
|
|
|
10429
|
-
let AuroDependencyVersioning$
|
|
10351
|
+
let AuroDependencyVersioning$4 = class AuroDependencyVersioning {
|
|
10430
10352
|
|
|
10431
10353
|
/**
|
|
10432
10354
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -10452,7 +10374,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
10452
10374
|
*/
|
|
10453
10375
|
generateTag(baseName, version, tagClass) {
|
|
10454
10376
|
const elementName = this.generateElementName(baseName, version);
|
|
10455
|
-
const tag =
|
|
10377
|
+
const tag = literal`${unsafeStatic(elementName)}`;
|
|
10456
10378
|
|
|
10457
10379
|
if (!customElements.get(elementName)) {
|
|
10458
10380
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -10462,25 +10384,6 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
10462
10384
|
}
|
|
10463
10385
|
};
|
|
10464
10386
|
|
|
10465
|
-
/**
|
|
10466
|
-
* @license
|
|
10467
|
-
* Copyright 2017 Google LLC
|
|
10468
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10469
|
-
*/
|
|
10470
|
-
const t$7={ATTRIBUTE:1},e$1$2=t=>(...e)=>({_$litDirective$:t,values:e});let i$b = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
10471
|
-
|
|
10472
|
-
/**
|
|
10473
|
-
* @license
|
|
10474
|
-
* Copyright 2018 Google LLC
|
|
10475
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10476
|
-
*/const e$9=e$1$2(class extends i$b{constructor(t$1){if(super(t$1),t$1.type!==t$7.ATTRIBUTE||"class"!==t$1.name||t$1.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$3}});
|
|
10477
|
-
|
|
10478
|
-
/**
|
|
10479
|
-
* @license
|
|
10480
|
-
* Copyright 2018 Google LLC
|
|
10481
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10482
|
-
*/const o$9=o=>o??E$3;
|
|
10483
|
-
|
|
10484
10387
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10485
10388
|
// See LICENSE in the project root for license information.
|
|
10486
10389
|
|
|
@@ -10491,7 +10394,7 @@ const t$7={ATTRIBUTE:1},e$1$2=t=>(...e)=>({_$litDirective$:t,values:e});let i$b
|
|
|
10491
10394
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
10492
10395
|
*/
|
|
10493
10396
|
|
|
10494
|
-
let AuroElement$2 = class AuroElement extends
|
|
10397
|
+
let AuroElement$2 = class AuroElement extends LitElement {
|
|
10495
10398
|
|
|
10496
10399
|
// function to define props used within the scope of this component
|
|
10497
10400
|
static get properties() {
|
|
@@ -10547,7 +10450,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
10547
10450
|
return _fetchMap$2.get(uri);
|
|
10548
10451
|
};
|
|
10549
10452
|
|
|
10550
|
-
var styleCss$1$2 =
|
|
10453
|
+
var styleCss$1$2 = css`: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}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}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}`;
|
|
10551
10454
|
|
|
10552
10455
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10553
10456
|
// See LICENSE in the project root for license information.
|
|
@@ -10586,7 +10489,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10586
10489
|
}
|
|
10587
10490
|
|
|
10588
10491
|
static get styles() {
|
|
10589
|
-
return
|
|
10492
|
+
return css`
|
|
10590
10493
|
${styleCss$1$2}
|
|
10591
10494
|
`;
|
|
10592
10495
|
}
|
|
@@ -10628,47 +10531,88 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10628
10531
|
}
|
|
10629
10532
|
};
|
|
10630
10533
|
|
|
10631
|
-
var tokensCss$
|
|
10534
|
+
var tokensCss$8 = css`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
10632
10535
|
|
|
10633
|
-
var colorCss$
|
|
10536
|
+
var colorCss$8 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
10634
10537
|
|
|
10635
|
-
// Copyright (c)
|
|
10538
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10636
10539
|
// See LICENSE in the project root for license information.
|
|
10637
10540
|
|
|
10541
|
+
// ---------------------------------------------------------------------
|
|
10542
|
+
|
|
10543
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10544
|
+
|
|
10545
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
10546
|
+
|
|
10547
|
+
/* eslint-disable jsdoc/require-param */
|
|
10548
|
+
|
|
10549
|
+
/**
|
|
10550
|
+
* This will register a new custom element with the browser.
|
|
10551
|
+
* @param {String} name - The name of the custom element.
|
|
10552
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
10553
|
+
* @returns {void}
|
|
10554
|
+
*/
|
|
10555
|
+
registerComponent(name, componentClass) {
|
|
10556
|
+
if (!customElements.get(name)) {
|
|
10557
|
+
customElements.define(name, class extends componentClass {});
|
|
10558
|
+
}
|
|
10559
|
+
}
|
|
10560
|
+
|
|
10561
|
+
/**
|
|
10562
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
10563
|
+
* @returns {void}
|
|
10564
|
+
*/
|
|
10565
|
+
closestElement(
|
|
10566
|
+
selector, // selector like in .closest()
|
|
10567
|
+
base = this, // extra functionality to skip a parent
|
|
10568
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
10569
|
+
!el || el === document || el === window
|
|
10570
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
10571
|
+
: found
|
|
10572
|
+
? found // found a selector INside this element
|
|
10573
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
10574
|
+
) {
|
|
10575
|
+
return __Closest(base);
|
|
10576
|
+
}
|
|
10577
|
+
/* eslint-enable jsdoc/require-param */
|
|
10578
|
+
|
|
10579
|
+
/**
|
|
10580
|
+
* 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.
|
|
10581
|
+
* @param {Object} elem - The element to check.
|
|
10582
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
10583
|
+
* @returns {void}
|
|
10584
|
+
*/
|
|
10585
|
+
handleComponentTagRename(elem, tagName) {
|
|
10586
|
+
const tag = tagName.toLowerCase();
|
|
10587
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10588
|
+
|
|
10589
|
+
if (elemTag !== tag) {
|
|
10590
|
+
elem.setAttribute(tag, true);
|
|
10591
|
+
}
|
|
10592
|
+
}
|
|
10593
|
+
|
|
10594
|
+
/**
|
|
10595
|
+
* Validates if an element is a specific Auro component.
|
|
10596
|
+
* @param {Object} elem - The element to validate.
|
|
10597
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
10598
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
10599
|
+
*/
|
|
10600
|
+
elementMatch(elem, tagName) {
|
|
10601
|
+
const tag = tagName.toLowerCase();
|
|
10602
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10603
|
+
|
|
10604
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
10605
|
+
}
|
|
10606
|
+
};
|
|
10607
|
+
|
|
10608
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10609
|
+
// See LICENSE in the project root for license information.
|
|
10638
10610
|
|
|
10639
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
10640
|
-
/**
|
|
10641
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
10642
|
-
*
|
|
10643
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
10644
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
10645
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
10646
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
10647
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
10648
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
10649
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
10650
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
10651
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
10652
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
10653
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
10654
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
10655
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
10656
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
10657
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
10658
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
10659
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
10660
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
10661
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
10662
|
-
* @slot svg - Used for custom SVG content.
|
|
10663
|
-
*/
|
|
10664
10611
|
|
|
10665
|
-
// build the component class
|
|
10666
10612
|
let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
10667
10613
|
constructor() {
|
|
10668
10614
|
super();
|
|
10669
10615
|
|
|
10670
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
10671
|
-
|
|
10672
10616
|
this.privateDefaults();
|
|
10673
10617
|
}
|
|
10674
10618
|
|
|
@@ -10692,78 +10636,144 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10692
10636
|
this.success = false;
|
|
10693
10637
|
this.tertiary = false;
|
|
10694
10638
|
this.warning = false;
|
|
10695
|
-
this.
|
|
10639
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
10640
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
10696
10641
|
}
|
|
10697
10642
|
|
|
10698
10643
|
// function to define props used within the scope of this component
|
|
10699
10644
|
static get properties() {
|
|
10700
10645
|
return {
|
|
10701
10646
|
...super.properties,
|
|
10647
|
+
|
|
10648
|
+
/**
|
|
10649
|
+
* Sets the icon to use the accent style.
|
|
10650
|
+
*/
|
|
10702
10651
|
accent: {
|
|
10703
10652
|
type: Boolean,
|
|
10704
10653
|
reflect: true
|
|
10705
10654
|
},
|
|
10655
|
+
|
|
10656
|
+
/**
|
|
10657
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
10658
|
+
*/
|
|
10706
10659
|
ariaHidden: {
|
|
10707
10660
|
type: String,
|
|
10708
10661
|
reflect: true
|
|
10709
10662
|
},
|
|
10663
|
+
|
|
10664
|
+
/**
|
|
10665
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
10666
|
+
*/
|
|
10710
10667
|
category: {
|
|
10711
10668
|
type: String,
|
|
10712
10669
|
reflect: true
|
|
10713
10670
|
},
|
|
10671
|
+
|
|
10672
|
+
/**
|
|
10673
|
+
* Allows custom color to be set.
|
|
10674
|
+
*/
|
|
10714
10675
|
customColor: {
|
|
10715
10676
|
type: Boolean
|
|
10716
10677
|
},
|
|
10678
|
+
|
|
10679
|
+
/**
|
|
10680
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
10681
|
+
*/
|
|
10717
10682
|
customSvg: {
|
|
10718
10683
|
type: Boolean
|
|
10719
10684
|
},
|
|
10685
|
+
|
|
10686
|
+
/**
|
|
10687
|
+
* Sets the icon to use the disabled style.
|
|
10688
|
+
*/
|
|
10720
10689
|
disabled: {
|
|
10721
10690
|
type: Boolean,
|
|
10722
10691
|
reflect: true
|
|
10723
10692
|
},
|
|
10693
|
+
|
|
10694
|
+
/**
|
|
10695
|
+
* Sets the icon to use the emphasis style.
|
|
10696
|
+
*/
|
|
10724
10697
|
emphasis: {
|
|
10725
10698
|
type: Boolean,
|
|
10726
10699
|
reflect: true
|
|
10727
10700
|
},
|
|
10701
|
+
|
|
10702
|
+
/**
|
|
10703
|
+
* Sets the icon to use the error style.
|
|
10704
|
+
*/
|
|
10728
10705
|
error: {
|
|
10729
10706
|
type: Boolean,
|
|
10730
10707
|
reflect: true
|
|
10731
10708
|
},
|
|
10709
|
+
|
|
10710
|
+
/**
|
|
10711
|
+
* Sets the icon to use the info style.
|
|
10712
|
+
*/
|
|
10732
10713
|
info: {
|
|
10733
10714
|
type: Boolean,
|
|
10734
10715
|
reflect: true
|
|
10735
10716
|
},
|
|
10717
|
+
|
|
10718
|
+
/**
|
|
10719
|
+
* Exposes content in slot as icon label.
|
|
10720
|
+
*/
|
|
10736
10721
|
label: {
|
|
10737
10722
|
type: Boolean,
|
|
10738
10723
|
reflect: true
|
|
10739
10724
|
},
|
|
10725
|
+
|
|
10726
|
+
/**
|
|
10727
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
10728
|
+
*/
|
|
10740
10729
|
name: {
|
|
10741
10730
|
type: String,
|
|
10742
10731
|
reflect: true
|
|
10743
10732
|
},
|
|
10733
|
+
|
|
10734
|
+
/**
|
|
10735
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
10736
|
+
*/
|
|
10744
10737
|
primary: {
|
|
10745
10738
|
type: Boolean,
|
|
10746
10739
|
reflect: true
|
|
10747
10740
|
},
|
|
10741
|
+
|
|
10742
|
+
/**
|
|
10743
|
+
* Sets the icon to use the secondary style.
|
|
10744
|
+
*/
|
|
10748
10745
|
secondary: {
|
|
10749
10746
|
type: Boolean,
|
|
10750
10747
|
reflect: true
|
|
10751
10748
|
},
|
|
10749
|
+
|
|
10750
|
+
/**
|
|
10751
|
+
* Sets the icon to use the subtle style.
|
|
10752
|
+
*/
|
|
10752
10753
|
subtle: {
|
|
10753
10754
|
type: Boolean,
|
|
10754
10755
|
reflect: true
|
|
10755
10756
|
},
|
|
10757
|
+
|
|
10758
|
+
/**
|
|
10759
|
+
* Sets the icon to use the success style.
|
|
10760
|
+
*/
|
|
10756
10761
|
success: {
|
|
10757
10762
|
type: Boolean,
|
|
10758
10763
|
reflect: true
|
|
10759
10764
|
},
|
|
10765
|
+
|
|
10766
|
+
/**
|
|
10767
|
+
* Sets the icon to use the tertiary style.
|
|
10768
|
+
*/
|
|
10760
10769
|
tertiary: {
|
|
10761
10770
|
type: Boolean,
|
|
10762
10771
|
reflect: true
|
|
10763
10772
|
},
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10773
|
+
|
|
10774
|
+
/**
|
|
10775
|
+
* Sets the icon to use the warning style.
|
|
10776
|
+
*/
|
|
10767
10777
|
warning: {
|
|
10768
10778
|
type: Boolean,
|
|
10769
10779
|
reflect: true
|
|
@@ -10774,9 +10784,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10774
10784
|
static get styles() {
|
|
10775
10785
|
return [
|
|
10776
10786
|
super.styles,
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10787
|
+
css`${tokensCss$8}`,
|
|
10788
|
+
css`${styleCss$1$2}`,
|
|
10789
|
+
css`${colorCss$8}`
|
|
10780
10790
|
];
|
|
10781
10791
|
}
|
|
10782
10792
|
|
|
@@ -10789,7 +10799,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10789
10799
|
*
|
|
10790
10800
|
*/
|
|
10791
10801
|
static register(name = "auro-icon") {
|
|
10792
|
-
AuroLibraryRuntimeUtils$
|
|
10802
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
|
|
10793
10803
|
}
|
|
10794
10804
|
|
|
10795
10805
|
connectedCallback() {
|
|
@@ -10800,38 +10810,54 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10800
10810
|
}
|
|
10801
10811
|
|
|
10802
10812
|
/**
|
|
10813
|
+
* @private
|
|
10803
10814
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
10804
10815
|
*/
|
|
10805
10816
|
exposeCssParts() {
|
|
10806
10817
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
10807
10818
|
}
|
|
10808
10819
|
|
|
10820
|
+
async firstUpdated() {
|
|
10821
|
+
await super.firstUpdated();
|
|
10822
|
+
|
|
10823
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
10824
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
10825
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
10826
|
+
|
|
10827
|
+
if (svgDesc) {
|
|
10828
|
+
svgDesc.remove();
|
|
10829
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
10830
|
+
}
|
|
10831
|
+
}
|
|
10832
|
+
}
|
|
10833
|
+
|
|
10809
10834
|
// function that renders the HTML and CSS into the scope of the component
|
|
10810
10835
|
render() {
|
|
10811
|
-
const
|
|
10812
|
-
'
|
|
10836
|
+
const labelClasses = {
|
|
10837
|
+
'labelWrapper': true,
|
|
10813
10838
|
'util_displayHiddenVisually': !this.label
|
|
10814
10839
|
};
|
|
10815
10840
|
|
|
10816
|
-
const
|
|
10817
|
-
'
|
|
10818
|
-
'wrapper': true,
|
|
10841
|
+
const svgClasses = {
|
|
10842
|
+
'svgWrapper': true,
|
|
10819
10843
|
};
|
|
10820
10844
|
|
|
10821
|
-
return
|
|
10822
|
-
<div
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
${this.
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10845
|
+
return html`
|
|
10846
|
+
<div class="componentWrapper">
|
|
10847
|
+
<div
|
|
10848
|
+
class="${classMap(svgClasses)}"
|
|
10849
|
+
title="${ifDefined(this.title || undefined)}">
|
|
10850
|
+
<span aria-hidden="${ifDefined(this.ariaHidden || true)}" part="svg">
|
|
10851
|
+
${this.customSvg ? html`
|
|
10852
|
+
<slot name="svg"></slot>
|
|
10853
|
+
` : html`
|
|
10854
|
+
${this.svg}
|
|
10855
|
+
`
|
|
10856
|
+
}
|
|
10857
|
+
</span>
|
|
10858
|
+
</div>
|
|
10833
10859
|
|
|
10834
|
-
<div class="${
|
|
10860
|
+
<div class="${classMap(labelClasses)}">
|
|
10835
10861
|
<slot></slot>
|
|
10836
10862
|
</div>
|
|
10837
10863
|
</div>
|
|
@@ -10839,38 +10865,108 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10839
10865
|
}
|
|
10840
10866
|
};
|
|
10841
10867
|
|
|
10842
|
-
var iconVersion$2 = '
|
|
10868
|
+
var iconVersion$2 = '7.0.1';
|
|
10843
10869
|
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10870
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10847
10871
|
// See LICENSE in the project root for license information.
|
|
10848
10872
|
|
|
10873
|
+
// ---------------------------------------------------------------------
|
|
10849
10874
|
|
|
10850
|
-
|
|
10851
|
-
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
10852
|
-
*
|
|
10853
|
-
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
10854
|
-
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
10855
|
-
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
10856
|
-
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
10857
|
-
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
10858
|
-
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
10859
|
-
*/
|
|
10875
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10860
10876
|
|
|
10861
|
-
|
|
10877
|
+
let AuroLibraryRuntimeUtils$8 = class AuroLibraryRuntimeUtils {
|
|
10862
10878
|
|
|
10863
|
-
|
|
10864
|
-
class AuroHeader extends r$a {
|
|
10865
|
-
constructor() {
|
|
10866
|
-
super();
|
|
10879
|
+
/* eslint-disable jsdoc/require-param */
|
|
10867
10880
|
|
|
10868
|
-
|
|
10881
|
+
/**
|
|
10882
|
+
* This will register a new custom element with the browser.
|
|
10883
|
+
* @param {String} name - The name of the custom element.
|
|
10884
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
10885
|
+
* @returns {void}
|
|
10886
|
+
*/
|
|
10887
|
+
registerComponent(name, componentClass) {
|
|
10888
|
+
if (!customElements.get(name)) {
|
|
10889
|
+
customElements.define(name, class extends componentClass {});
|
|
10890
|
+
}
|
|
10891
|
+
}
|
|
10869
10892
|
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10893
|
+
/**
|
|
10894
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
10895
|
+
* @returns {void}
|
|
10896
|
+
*/
|
|
10897
|
+
closestElement(
|
|
10898
|
+
selector, // selector like in .closest()
|
|
10899
|
+
base = this, // extra functionality to skip a parent
|
|
10900
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
10901
|
+
!el || el === document || el === window
|
|
10902
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
10903
|
+
: found
|
|
10904
|
+
? found // found a selector INside this element
|
|
10905
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
10906
|
+
) {
|
|
10907
|
+
return __Closest(base);
|
|
10908
|
+
}
|
|
10909
|
+
/* eslint-enable jsdoc/require-param */
|
|
10910
|
+
|
|
10911
|
+
/**
|
|
10912
|
+
* 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.
|
|
10913
|
+
* @param {Object} elem - The element to check.
|
|
10914
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
10915
|
+
* @returns {void}
|
|
10916
|
+
*/
|
|
10917
|
+
handleComponentTagRename(elem, tagName) {
|
|
10918
|
+
const tag = tagName.toLowerCase();
|
|
10919
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10920
|
+
|
|
10921
|
+
if (elemTag !== tag) {
|
|
10922
|
+
elem.setAttribute(tag, true);
|
|
10923
|
+
}
|
|
10924
|
+
}
|
|
10925
|
+
|
|
10926
|
+
/**
|
|
10927
|
+
* Validates if an element is a specific Auro component.
|
|
10928
|
+
* @param {Object} elem - The element to validate.
|
|
10929
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
10930
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
10931
|
+
*/
|
|
10932
|
+
elementMatch(elem, tagName) {
|
|
10933
|
+
const tag = tagName.toLowerCase();
|
|
10934
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10935
|
+
|
|
10936
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
10937
|
+
}
|
|
10938
|
+
};
|
|
10939
|
+
|
|
10940
|
+
var styleCss$8 = css`.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)}`;
|
|
10941
|
+
|
|
10942
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10943
|
+
// See LICENSE in the project root for license information.
|
|
10944
|
+
|
|
10945
|
+
|
|
10946
|
+
/**
|
|
10947
|
+
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
10948
|
+
*
|
|
10949
|
+
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
10950
|
+
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
10951
|
+
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
10952
|
+
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
10953
|
+
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
10954
|
+
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
10955
|
+
*/
|
|
10956
|
+
|
|
10957
|
+
/* eslint complexity: ["error", 21] */
|
|
10958
|
+
|
|
10959
|
+
// build the component class
|
|
10960
|
+
class AuroHeader extends LitElement {
|
|
10961
|
+
constructor() {
|
|
10962
|
+
super();
|
|
10963
|
+
|
|
10964
|
+
this.display = 'display';
|
|
10965
|
+
|
|
10966
|
+
/**
|
|
10967
|
+
* @private
|
|
10968
|
+
*/
|
|
10969
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$8();
|
|
10874
10970
|
}
|
|
10875
10971
|
|
|
10876
10972
|
// function to define props used within the scope of this component
|
|
@@ -10888,7 +10984,7 @@ class AuroHeader extends r$a {
|
|
|
10888
10984
|
}
|
|
10889
10985
|
|
|
10890
10986
|
static get styles() {
|
|
10891
|
-
return [styleCss$
|
|
10987
|
+
return [styleCss$8];
|
|
10892
10988
|
}
|
|
10893
10989
|
|
|
10894
10990
|
/**
|
|
@@ -10900,7 +10996,7 @@ class AuroHeader extends r$a {
|
|
|
10900
10996
|
*
|
|
10901
10997
|
*/
|
|
10902
10998
|
static register(name = "auro-header") {
|
|
10903
|
-
AuroLibraryRuntimeUtils$
|
|
10999
|
+
AuroLibraryRuntimeUtils$8.prototype.registerComponent(name, AuroHeader);
|
|
10904
11000
|
}
|
|
10905
11001
|
|
|
10906
11002
|
firstUpdated() {
|
|
@@ -10968,12 +11064,12 @@ class AuroHeader extends r$a {
|
|
|
10968
11064
|
}
|
|
10969
11065
|
|
|
10970
11066
|
switch (level) {
|
|
10971
|
-
case '2': return
|
|
10972
|
-
case '3': return
|
|
10973
|
-
case '4': return
|
|
10974
|
-
case '5': return
|
|
10975
|
-
case '6': return
|
|
10976
|
-
default: return
|
|
11067
|
+
case '2': return html`<h2 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${ifDefined(this.color ? this.color : undefined)}"><slot></slot></h2>`;
|
|
11068
|
+
case '3': return html`<h3 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${ifDefined(this.color ? this.color : undefined)}"><slot></slot></h3>`;
|
|
11069
|
+
case '4': return html`<h4 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${ifDefined(this.color ? this.color : undefined)}"><slot></slot></h4>`;
|
|
11070
|
+
case '5': return html`<h5 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${ifDefined(this.color ? this.color : undefined)}"><slot></slot></h5>`;
|
|
11071
|
+
case '6': return html`<h6 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${ifDefined(this.color ? this.color : undefined)}"><slot></slot></h6>`;
|
|
11072
|
+
default: return html`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${ifDefined(this.color ? this.color : undefined)}"><slot></slot></h1>`;
|
|
10977
11073
|
}
|
|
10978
11074
|
}
|
|
10979
11075
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -10989,16 +11085,16 @@ var headerVersion = '4.0.0';
|
|
|
10989
11085
|
// See LICENSE in the project root for license information.
|
|
10990
11086
|
|
|
10991
11087
|
|
|
10992
|
-
class AuroBibtemplate extends
|
|
11088
|
+
class AuroBibtemplate extends LitElement {
|
|
10993
11089
|
|
|
10994
11090
|
constructor() {
|
|
10995
11091
|
super();
|
|
10996
11092
|
|
|
10997
|
-
AuroLibraryRuntimeUtils$
|
|
11093
|
+
AuroLibraryRuntimeUtils$2$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
10998
11094
|
|
|
10999
|
-
const versioning = new AuroDependencyVersioning$
|
|
11000
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$2, AuroIcon$2);
|
|
11001
|
-
this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
|
|
11095
|
+
const versioning = new AuroDependencyVersioning$4();
|
|
11096
|
+
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$2, AuroIcon$2);
|
|
11097
|
+
this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
|
|
11002
11098
|
}
|
|
11003
11099
|
|
|
11004
11100
|
static get styles() {
|
|
@@ -11014,96 +11110,698 @@ class AuroBibtemplate extends r$a {
|
|
|
11014
11110
|
return {
|
|
11015
11111
|
isFullscreen: {
|
|
11016
11112
|
type: Boolean,
|
|
11017
|
-
reflect: true,
|
|
11113
|
+
reflect: true,
|
|
11114
|
+
},
|
|
11115
|
+
large: {
|
|
11116
|
+
type: Boolean,
|
|
11117
|
+
reflect: true,
|
|
11118
|
+
}
|
|
11119
|
+
};
|
|
11120
|
+
}
|
|
11121
|
+
|
|
11122
|
+
// function to define props used within the scope of this component
|
|
11123
|
+
/**
|
|
11124
|
+
* This will register this element with the browser.
|
|
11125
|
+
* @param {string} [name="auro-bibtemplate"] - The name of element that you want to register to.
|
|
11126
|
+
*
|
|
11127
|
+
* @example
|
|
11128
|
+
* AuroCheckbox.register("custom-bibtemplate") // this will register this element to <custom-bibtemplate/>
|
|
11129
|
+
*
|
|
11130
|
+
*/
|
|
11131
|
+
static register(name = "auro-bibtemplate") {
|
|
11132
|
+
AuroLibraryRuntimeUtils$2$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
11133
|
+
}
|
|
11134
|
+
|
|
11135
|
+
/**
|
|
11136
|
+
* Prevents scrolling of the body when touching empty areas of the component.
|
|
11137
|
+
* @param {Event} event - The touchmove event.
|
|
11138
|
+
* @returns {void}
|
|
11139
|
+
*/
|
|
11140
|
+
preventBodyScroll(event) {
|
|
11141
|
+
if (event.target === this) {
|
|
11142
|
+
event.preventDefault();
|
|
11143
|
+
}
|
|
11144
|
+
}
|
|
11145
|
+
|
|
11146
|
+
connectedCallback() {
|
|
11147
|
+
super.connectedCallback();
|
|
11148
|
+
|
|
11149
|
+
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
11150
|
+
this.addEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
11151
|
+
}
|
|
11152
|
+
|
|
11153
|
+
disconnectedCallback() {
|
|
11154
|
+
super.disconnectedCallback();
|
|
11155
|
+
|
|
11156
|
+
this.removeEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
11157
|
+
}
|
|
11158
|
+
|
|
11159
|
+
onCloseButtonClick() {
|
|
11160
|
+
this.dispatchEvent(new Event("close-click", { bubbles: true,
|
|
11161
|
+
composed: true }));
|
|
11162
|
+
}
|
|
11163
|
+
|
|
11164
|
+
/**
|
|
11165
|
+
* Exposes CSS parts for styling from parent components.
|
|
11166
|
+
* @returns {void}
|
|
11167
|
+
*/
|
|
11168
|
+
exposeCssParts() {
|
|
11169
|
+
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
11170
|
+
}
|
|
11171
|
+
|
|
11172
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
11173
|
+
render() {
|
|
11174
|
+
return html$1`
|
|
11175
|
+
<div id="bibTemplate" part="bibtemplate">
|
|
11176
|
+
${this.isFullscreen ? html$1`
|
|
11177
|
+
<div id="headerContainer">
|
|
11178
|
+
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
11179
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
11180
|
+
</button>
|
|
11181
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
11182
|
+
<slot name="header"></slot>
|
|
11183
|
+
</${this.headerTag}>
|
|
11184
|
+
<span id="subheader">
|
|
11185
|
+
<slot name="subheader"></slot>
|
|
11186
|
+
</span>
|
|
11187
|
+
</div>` : null}
|
|
11188
|
+
|
|
11189
|
+
<div id="bodyContainer">
|
|
11190
|
+
<slot></slot>
|
|
11191
|
+
</div>
|
|
11192
|
+
|
|
11193
|
+
${this.isFullscreen ? html$1`
|
|
11194
|
+
<div id="footerContainer">
|
|
11195
|
+
<slot name="footer"></slot>
|
|
11196
|
+
</div>` : null}
|
|
11197
|
+
</div>
|
|
11198
|
+
`;
|
|
11199
|
+
}
|
|
11200
|
+
}
|
|
11201
|
+
|
|
11202
|
+
var bibTemplateVersion = '1.0.0';
|
|
11203
|
+
|
|
11204
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11205
|
+
// See LICENSE in the project root for license information.
|
|
11206
|
+
|
|
11207
|
+
|
|
11208
|
+
let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
11209
|
+
|
|
11210
|
+
/**
|
|
11211
|
+
* Generates a unique string to be used for child auro element naming.
|
|
11212
|
+
* @private
|
|
11213
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
11214
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
11215
|
+
* @returns {string} - Unique string to be used for naming.
|
|
11216
|
+
*/
|
|
11217
|
+
generateElementName(baseName, version) {
|
|
11218
|
+
let result = baseName;
|
|
11219
|
+
|
|
11220
|
+
result += '-';
|
|
11221
|
+
result += version.replace(/[.]/g, '_');
|
|
11222
|
+
|
|
11223
|
+
return result;
|
|
11224
|
+
}
|
|
11225
|
+
|
|
11226
|
+
/**
|
|
11227
|
+
* Generates a unique string to be used for child auro element naming.
|
|
11228
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
11229
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
11230
|
+
* @returns {string} - Unique string to be used for naming.
|
|
11231
|
+
*/
|
|
11232
|
+
generateTag(baseName, version, tagClass) {
|
|
11233
|
+
const elementName = this.generateElementName(baseName, version);
|
|
11234
|
+
const tag = literal`${unsafeStatic(elementName)}`;
|
|
11235
|
+
|
|
11236
|
+
if (!customElements.get(elementName)) {
|
|
11237
|
+
customElements.define(elementName, class extends tagClass {});
|
|
11238
|
+
}
|
|
11239
|
+
|
|
11240
|
+
return tag;
|
|
11241
|
+
}
|
|
11242
|
+
};
|
|
11243
|
+
|
|
11244
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11245
|
+
// See LICENSE in the project root for license information.
|
|
11246
|
+
|
|
11247
|
+
// ---------------------------------------------------------------------
|
|
11248
|
+
|
|
11249
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11250
|
+
|
|
11251
|
+
let AuroLibraryRuntimeUtils$7 = class AuroLibraryRuntimeUtils {
|
|
11252
|
+
|
|
11253
|
+
/* eslint-disable jsdoc/require-param */
|
|
11254
|
+
|
|
11255
|
+
/**
|
|
11256
|
+
* This will register a new custom element with the browser.
|
|
11257
|
+
* @param {String} name - The name of the custom element.
|
|
11258
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11259
|
+
* @returns {void}
|
|
11260
|
+
*/
|
|
11261
|
+
registerComponent(name, componentClass) {
|
|
11262
|
+
if (!customElements.get(name)) {
|
|
11263
|
+
customElements.define(name, class extends componentClass {});
|
|
11264
|
+
}
|
|
11265
|
+
}
|
|
11266
|
+
|
|
11267
|
+
/**
|
|
11268
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11269
|
+
* @returns {void}
|
|
11270
|
+
*/
|
|
11271
|
+
closestElement(
|
|
11272
|
+
selector, // selector like in .closest()
|
|
11273
|
+
base = this, // extra functionality to skip a parent
|
|
11274
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11275
|
+
!el || el === document || el === window
|
|
11276
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11277
|
+
: found
|
|
11278
|
+
? found // found a selector INside this element
|
|
11279
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11280
|
+
) {
|
|
11281
|
+
return __Closest(base);
|
|
11282
|
+
}
|
|
11283
|
+
/* eslint-enable jsdoc/require-param */
|
|
11284
|
+
|
|
11285
|
+
/**
|
|
11286
|
+
* 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.
|
|
11287
|
+
* @param {Object} elem - The element to check.
|
|
11288
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11289
|
+
* @returns {void}
|
|
11290
|
+
*/
|
|
11291
|
+
handleComponentTagRename(elem, tagName) {
|
|
11292
|
+
const tag = tagName.toLowerCase();
|
|
11293
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11294
|
+
|
|
11295
|
+
if (elemTag !== tag) {
|
|
11296
|
+
elem.setAttribute(tag, true);
|
|
11297
|
+
}
|
|
11298
|
+
}
|
|
11299
|
+
|
|
11300
|
+
/**
|
|
11301
|
+
* Validates if an element is a specific Auro component.
|
|
11302
|
+
* @param {Object} elem - The element to validate.
|
|
11303
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11304
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11305
|
+
*/
|
|
11306
|
+
elementMatch(elem, tagName) {
|
|
11307
|
+
const tag = tagName.toLowerCase();
|
|
11308
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11309
|
+
|
|
11310
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11311
|
+
}
|
|
11312
|
+
};
|
|
11313
|
+
|
|
11314
|
+
var styleCss$7 = css`: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-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);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:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.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-size:var(--ds-text-body-size-sm, 0.875rem);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, $ds-size-300)}.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, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.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}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, $ds-size-300)}: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}`;
|
|
11315
|
+
|
|
11316
|
+
var colorCss$7 = css`[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:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.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-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color:var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.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-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
11317
|
+
|
|
11318
|
+
var tokensCss$7 = css`:host{--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color:var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
11319
|
+
|
|
11320
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11321
|
+
// See LICENSE in the project root for license information.
|
|
11322
|
+
|
|
11323
|
+
// ---------------------------------------------------------------------
|
|
11324
|
+
|
|
11325
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11326
|
+
|
|
11327
|
+
let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
11328
|
+
|
|
11329
|
+
/* eslint-disable jsdoc/require-param */
|
|
11330
|
+
|
|
11331
|
+
/**
|
|
11332
|
+
* This will register a new custom element with the browser.
|
|
11333
|
+
* @param {String} name - The name of the custom element.
|
|
11334
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11335
|
+
* @returns {void}
|
|
11336
|
+
*/
|
|
11337
|
+
registerComponent(name, componentClass) {
|
|
11338
|
+
if (!customElements.get(name)) {
|
|
11339
|
+
customElements.define(name, class extends componentClass {});
|
|
11340
|
+
}
|
|
11341
|
+
}
|
|
11342
|
+
|
|
11343
|
+
/**
|
|
11344
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11345
|
+
* @returns {void}
|
|
11346
|
+
*/
|
|
11347
|
+
closestElement(
|
|
11348
|
+
selector, // selector like in .closest()
|
|
11349
|
+
base = this, // extra functionality to skip a parent
|
|
11350
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11351
|
+
!el || el === document || el === window
|
|
11352
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11353
|
+
: found
|
|
11354
|
+
? found // found a selector INside this element
|
|
11355
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11356
|
+
) {
|
|
11357
|
+
return __Closest(base);
|
|
11358
|
+
}
|
|
11359
|
+
/* eslint-enable jsdoc/require-param */
|
|
11360
|
+
|
|
11361
|
+
/**
|
|
11362
|
+
* 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.
|
|
11363
|
+
* @param {Object} elem - The element to check.
|
|
11364
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11365
|
+
* @returns {void}
|
|
11366
|
+
*/
|
|
11367
|
+
handleComponentTagRename(elem, tagName) {
|
|
11368
|
+
const tag = tagName.toLowerCase();
|
|
11369
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11370
|
+
|
|
11371
|
+
if (elemTag !== tag) {
|
|
11372
|
+
elem.setAttribute(tag, true);
|
|
11373
|
+
}
|
|
11374
|
+
}
|
|
11375
|
+
|
|
11376
|
+
/**
|
|
11377
|
+
* Validates if an element is a specific Auro component.
|
|
11378
|
+
* @param {Object} elem - The element to validate.
|
|
11379
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11380
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11381
|
+
*/
|
|
11382
|
+
elementMatch(elem, tagName) {
|
|
11383
|
+
const tag = tagName.toLowerCase();
|
|
11384
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11385
|
+
|
|
11386
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11387
|
+
}
|
|
11388
|
+
};
|
|
11389
|
+
|
|
11390
|
+
var styleCss$6 = css`: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}}`;
|
|
11391
|
+
|
|
11392
|
+
var colorCss$6 = css`: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-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color:var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color:var(--ds-color-utility-neutral-inverse, #ccd2db)}: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}`;
|
|
11393
|
+
|
|
11394
|
+
var tokensCss$6 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11395
|
+
|
|
11396
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11397
|
+
// See LICENSE in the project root for license information.
|
|
11398
|
+
|
|
11399
|
+
|
|
11400
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
11401
|
+
/**
|
|
11402
|
+
* The auro-loader element is an easy to use animated loader component.
|
|
11403
|
+
*
|
|
11404
|
+
* @attr {Boolean} pulse - sets loader type
|
|
11405
|
+
* @attr {Boolean} ringworm - sets loader type
|
|
11406
|
+
* @attr {Boolean} laser - sets loader type
|
|
11407
|
+
* @attr {Boolean} orbit - sets loader type
|
|
11408
|
+
* @attr {Boolean} white - sets color of loader to white
|
|
11409
|
+
* @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
|
|
11410
|
+
* @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
|
|
11411
|
+
* @attr {Boolean} xs - sets size to extra small
|
|
11412
|
+
* @attr {Boolean} sm - sets size to small
|
|
11413
|
+
* @attr {Boolean} md - sets size to medium
|
|
11414
|
+
* @attr {Boolean} lg - sets size to large
|
|
11415
|
+
* @csspart element - apply style to adjust speed of animation
|
|
11416
|
+
*/
|
|
11417
|
+
|
|
11418
|
+
// build the component class
|
|
11419
|
+
let AuroLoader$1 = class AuroLoader extends LitElement {
|
|
11420
|
+
constructor() {
|
|
11421
|
+
super();
|
|
11422
|
+
|
|
11423
|
+
/**
|
|
11424
|
+
* @private
|
|
11425
|
+
*/
|
|
11426
|
+
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
11427
|
+
|
|
11428
|
+
/**
|
|
11429
|
+
* @private
|
|
11430
|
+
*/
|
|
11431
|
+
this.mdCount = 3;
|
|
11432
|
+
|
|
11433
|
+
/**
|
|
11434
|
+
* @private
|
|
11435
|
+
*/
|
|
11436
|
+
this.smCount = 2;
|
|
11437
|
+
|
|
11438
|
+
/**
|
|
11439
|
+
* @private
|
|
11440
|
+
*/
|
|
11441
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
11442
|
+
|
|
11443
|
+
this.orbit = false;
|
|
11444
|
+
this.ringworm = false;
|
|
11445
|
+
this.laser = false;
|
|
11446
|
+
this.pulse = false;
|
|
11447
|
+
}
|
|
11448
|
+
|
|
11449
|
+
// function to define props used within the scope of this component
|
|
11450
|
+
static get properties() {
|
|
11451
|
+
return {
|
|
11452
|
+
pulse: {
|
|
11453
|
+
type: Boolean,
|
|
11454
|
+
reflect: true
|
|
11455
|
+
},
|
|
11456
|
+
orbit: {
|
|
11457
|
+
type: Boolean,
|
|
11458
|
+
reflect: true
|
|
11459
|
+
},
|
|
11460
|
+
ringworm: {
|
|
11461
|
+
type: Boolean,
|
|
11462
|
+
reflect: true
|
|
11463
|
+
},
|
|
11464
|
+
laser: {
|
|
11465
|
+
type: Boolean,
|
|
11466
|
+
reflect: true
|
|
11467
|
+
}
|
|
11468
|
+
};
|
|
11469
|
+
}
|
|
11470
|
+
|
|
11471
|
+
static get styles() {
|
|
11472
|
+
return [
|
|
11473
|
+
css`${styleCss$6}`,
|
|
11474
|
+
css`${colorCss$6}`,
|
|
11475
|
+
css`${tokensCss$6}`
|
|
11476
|
+
];
|
|
11477
|
+
}
|
|
11478
|
+
|
|
11479
|
+
/**
|
|
11480
|
+
* This will register this element with the browser.
|
|
11481
|
+
* @param {string} [name="auro-loader"] - The name of element that you want to register to.
|
|
11482
|
+
*
|
|
11483
|
+
* @example
|
|
11484
|
+
* AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
|
|
11485
|
+
*
|
|
11486
|
+
*/
|
|
11487
|
+
static register(name = "auro-loader") {
|
|
11488
|
+
AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroLoader);
|
|
11489
|
+
}
|
|
11490
|
+
|
|
11491
|
+
firstUpdated() {
|
|
11492
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
11493
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
|
|
11494
|
+
}
|
|
11495
|
+
|
|
11496
|
+
connectedCallback() {
|
|
11497
|
+
super.connectedCallback();
|
|
11498
|
+
}
|
|
11499
|
+
|
|
11500
|
+
/**
|
|
11501
|
+
* @private
|
|
11502
|
+
* @returns {Array} Numbered array for template map.
|
|
11503
|
+
*/
|
|
11504
|
+
defineTemplate() {
|
|
11505
|
+
let nodes = Array.from(Array(this.mdCount).keys());
|
|
11506
|
+
|
|
11507
|
+
if (this.orbit || this.laser) {
|
|
11508
|
+
nodes = Array.from(Array(this.smCount).keys());
|
|
11509
|
+
} else if (this.ringworm) {
|
|
11510
|
+
nodes = Array.from(Array(0).keys());
|
|
11511
|
+
}
|
|
11512
|
+
|
|
11513
|
+
return nodes;
|
|
11514
|
+
}
|
|
11515
|
+
|
|
11516
|
+
// When using auroElement, use the following attribute and function when hiding content from screen readers.
|
|
11517
|
+
// aria-hidden="${this.hideAudible(this.hiddenAudible)}"
|
|
11518
|
+
|
|
11519
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
11520
|
+
render() {
|
|
11521
|
+
return html`
|
|
11522
|
+
${this.defineTemplate().map((idx) => html`
|
|
11523
|
+
<span part="element" class="loader node-${idx}"></span>
|
|
11524
|
+
`)}
|
|
11525
|
+
|
|
11526
|
+
<div class="no-animation">Loading...</div>
|
|
11527
|
+
|
|
11528
|
+
${this.ringworm ? html`
|
|
11529
|
+
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
11530
|
+
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
11531
|
+
</svg>`
|
|
11532
|
+
: ``
|
|
11533
|
+
}
|
|
11534
|
+
`;
|
|
11535
|
+
}
|
|
11536
|
+
};
|
|
11537
|
+
|
|
11538
|
+
var loaderVersion$1 = '4.0.0';
|
|
11539
|
+
|
|
11540
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11541
|
+
// See LICENSE in the project root for license information.
|
|
11542
|
+
|
|
11543
|
+
|
|
11544
|
+
/**
|
|
11545
|
+
* @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
|
|
11546
|
+
* @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
|
|
11547
|
+
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
11548
|
+
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
11549
|
+
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
11550
|
+
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
11551
|
+
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
11552
|
+
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
11553
|
+
* @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
11554
|
+
* @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
|
|
11555
|
+
* @attr {String} id - Set the unique ID of an element.
|
|
11556
|
+
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
11557
|
+
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
11558
|
+
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
11559
|
+
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
11560
|
+
* @attr {Boolean} secondary - DEPRECATED
|
|
11561
|
+
* @attr {Boolean} tertiary - DEPRECATED
|
|
11562
|
+
* @prop {Boolean} ready - When false the component API should not be called.
|
|
11563
|
+
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
11564
|
+
* @slot - Default slot for the text of the button.
|
|
11565
|
+
* @slot icon - Slot to provide auro-icon for the button.
|
|
11566
|
+
* @csspart button - Apply CSS to HTML5 button.
|
|
11567
|
+
* @csspart loader - Apply CSS to auro-loader.
|
|
11568
|
+
* @csspart text - Apply CSS to text slot.
|
|
11569
|
+
* @csspart icon - Apply CSS to icon slot.
|
|
11570
|
+
*/
|
|
11571
|
+
|
|
11572
|
+
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
11573
|
+
|
|
11574
|
+
let AuroButton$1 = class AuroButton extends LitElement {
|
|
11575
|
+
|
|
11576
|
+
/**
|
|
11577
|
+
* Enables form association for this element.
|
|
11578
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
|
|
11579
|
+
* @returns {boolean} - Returns true to enable form association.
|
|
11580
|
+
*/
|
|
11581
|
+
static get formAssociated() {
|
|
11582
|
+
return true;
|
|
11583
|
+
}
|
|
11584
|
+
|
|
11585
|
+
constructor() {
|
|
11586
|
+
super();
|
|
11587
|
+
|
|
11588
|
+
this.autofocus = false;
|
|
11589
|
+
this.disabled = false;
|
|
11590
|
+
this.iconOnly = false;
|
|
11591
|
+
this.loading = false;
|
|
11592
|
+
this.onDark = false;
|
|
11593
|
+
this.ready = false;
|
|
11594
|
+
this.secondary = false;
|
|
11595
|
+
this.tertiary = false;
|
|
11596
|
+
this.rounded = false;
|
|
11597
|
+
this.slim = false;
|
|
11598
|
+
this.fluid = false;
|
|
11599
|
+
|
|
11600
|
+
// Support for HTML5 forms
|
|
11601
|
+
if (typeof this.attachInternals === 'function') {
|
|
11602
|
+
this.internals = this.attachInternals();
|
|
11603
|
+
} else {
|
|
11604
|
+
this.internals = null;
|
|
11605
|
+
|
|
11606
|
+
// eslint-disable-next-line no-console
|
|
11607
|
+
console.warn('This browser does not support form association features. Some form-related functionality may not work as expected. Consider using a polyfill or handling click events manually.');
|
|
11608
|
+
}
|
|
11609
|
+
|
|
11610
|
+
/**
|
|
11611
|
+
* Generate unique names for dependency components.
|
|
11612
|
+
*/
|
|
11613
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
11614
|
+
|
|
11615
|
+
/**
|
|
11616
|
+
* @private
|
|
11617
|
+
*/
|
|
11618
|
+
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
11619
|
+
}
|
|
11620
|
+
|
|
11621
|
+
static get styles() {
|
|
11622
|
+
return [
|
|
11623
|
+
tokensCss$7,
|
|
11624
|
+
styleCss$7,
|
|
11625
|
+
colorCss$7
|
|
11626
|
+
];
|
|
11627
|
+
}
|
|
11628
|
+
|
|
11629
|
+
static get properties() {
|
|
11630
|
+
return {
|
|
11631
|
+
autofocus: {
|
|
11632
|
+
type: Boolean,
|
|
11633
|
+
reflect: true
|
|
11634
|
+
},
|
|
11635
|
+
disabled: {
|
|
11636
|
+
type: Boolean,
|
|
11637
|
+
reflect: true
|
|
11638
|
+
},
|
|
11639
|
+
secondary: {
|
|
11640
|
+
type: Boolean,
|
|
11641
|
+
reflect: true
|
|
11018
11642
|
},
|
|
11019
|
-
|
|
11643
|
+
tertiary: {
|
|
11020
11644
|
type: Boolean,
|
|
11021
|
-
reflect: true
|
|
11022
|
-
}
|
|
11645
|
+
reflect: true
|
|
11646
|
+
},
|
|
11647
|
+
fluid: {
|
|
11648
|
+
type: Boolean,
|
|
11649
|
+
reflect: true
|
|
11650
|
+
},
|
|
11651
|
+
iconOnly: {
|
|
11652
|
+
type: Boolean,
|
|
11653
|
+
reflect: true
|
|
11654
|
+
},
|
|
11655
|
+
loading: {
|
|
11656
|
+
type: Boolean,
|
|
11657
|
+
reflect: true
|
|
11658
|
+
},
|
|
11659
|
+
onDark: {
|
|
11660
|
+
type: Boolean,
|
|
11661
|
+
reflect: true
|
|
11662
|
+
},
|
|
11663
|
+
rounded: {
|
|
11664
|
+
type: Boolean,
|
|
11665
|
+
reflect: true
|
|
11666
|
+
},
|
|
11667
|
+
slim: {
|
|
11668
|
+
type: Boolean,
|
|
11669
|
+
reflect: true
|
|
11670
|
+
},
|
|
11671
|
+
arialabel: {
|
|
11672
|
+
type: String,
|
|
11673
|
+
reflect: true
|
|
11674
|
+
},
|
|
11675
|
+
arialabelledby: {
|
|
11676
|
+
type: String,
|
|
11677
|
+
reflect: true
|
|
11678
|
+
},
|
|
11679
|
+
title: {
|
|
11680
|
+
type: String,
|
|
11681
|
+
reflect: true
|
|
11682
|
+
},
|
|
11683
|
+
type: {
|
|
11684
|
+
type: String,
|
|
11685
|
+
reflect: true
|
|
11686
|
+
},
|
|
11687
|
+
value: {
|
|
11688
|
+
type: String,
|
|
11689
|
+
reflect: true
|
|
11690
|
+
},
|
|
11691
|
+
variant: {
|
|
11692
|
+
type: String,
|
|
11693
|
+
reflect: true
|
|
11694
|
+
},
|
|
11695
|
+
ready: { type: Boolean },
|
|
11023
11696
|
};
|
|
11024
11697
|
}
|
|
11025
11698
|
|
|
11026
|
-
// function to define props used within the scope of this component
|
|
11027
11699
|
/**
|
|
11028
11700
|
* This will register this element with the browser.
|
|
11029
|
-
* @param {string} [name="auro-
|
|
11701
|
+
* @param {string} [name="auro-button"] - The name of element that you want to register to.
|
|
11030
11702
|
*
|
|
11031
11703
|
* @example
|
|
11032
|
-
*
|
|
11704
|
+
* AuroButton.register("custom-button") // this will register this element to <custom-button/>
|
|
11033
11705
|
*
|
|
11034
11706
|
*/
|
|
11035
|
-
static register(name = "auro-
|
|
11036
|
-
AuroLibraryRuntimeUtils$
|
|
11707
|
+
static register(name = "auro-button") {
|
|
11708
|
+
AuroLibraryRuntimeUtils$7.prototype.registerComponent(name, AuroButton);
|
|
11037
11709
|
}
|
|
11038
11710
|
|
|
11039
11711
|
/**
|
|
11040
|
-
*
|
|
11041
|
-
* @
|
|
11712
|
+
* Internal method to apply focus to the HTML5 button.
|
|
11713
|
+
* @private
|
|
11042
11714
|
* @returns {void}
|
|
11043
11715
|
*/
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
event.preventDefault();
|
|
11047
|
-
}
|
|
11716
|
+
focus() {
|
|
11717
|
+
this.renderRoot.querySelector('button').focus();
|
|
11048
11718
|
}
|
|
11049
11719
|
|
|
11050
|
-
|
|
11051
|
-
|
|
11720
|
+
/**
|
|
11721
|
+
* Marks the component as ready and sends event.
|
|
11722
|
+
* @private
|
|
11723
|
+
* @returns {void}
|
|
11724
|
+
*/
|
|
11725
|
+
notifyReady() {
|
|
11726
|
+
this.ready = true;
|
|
11052
11727
|
|
|
11053
|
-
this.
|
|
11054
|
-
|
|
11728
|
+
this.dispatchEvent(new CustomEvent('auroButton-ready', {
|
|
11729
|
+
bubbles: true,
|
|
11730
|
+
cancelable: false,
|
|
11731
|
+
composed: true,
|
|
11732
|
+
}));
|
|
11055
11733
|
}
|
|
11056
11734
|
|
|
11057
|
-
|
|
11058
|
-
|
|
11735
|
+
updated() {
|
|
11736
|
+
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
11737
|
+
if (this.secondary) {
|
|
11738
|
+
this.setAttribute('variant', 'secondary');
|
|
11739
|
+
}
|
|
11059
11740
|
|
|
11060
|
-
|
|
11741
|
+
if (this.tertiary) {
|
|
11742
|
+
this.setAttribute('variant', 'tertiary');
|
|
11743
|
+
}
|
|
11061
11744
|
}
|
|
11062
11745
|
|
|
11063
|
-
|
|
11064
|
-
this.
|
|
11065
|
-
composed: true }));
|
|
11746
|
+
firstUpdated() {
|
|
11747
|
+
this.notifyReady();
|
|
11066
11748
|
}
|
|
11067
11749
|
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
-
|
|
11073
|
-
|
|
11750
|
+
surfaceSubmitEvent() {
|
|
11751
|
+
if (this.form) {
|
|
11752
|
+
this.form.requestSubmit();
|
|
11753
|
+
}
|
|
11754
|
+
}
|
|
11755
|
+
|
|
11756
|
+
get form() {
|
|
11757
|
+
return this.internals ? this.internals.form : null;
|
|
11074
11758
|
}
|
|
11075
11759
|
|
|
11076
|
-
// function that renders the HTML and CSS into the scope of the component
|
|
11077
11760
|
render() {
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
<span id="subheader">
|
|
11089
|
-
<slot name="subheader"></slot>
|
|
11090
|
-
</span>
|
|
11091
|
-
</div>` : null}
|
|
11761
|
+
const classes = {
|
|
11762
|
+
'util_insetLg--squish': true,
|
|
11763
|
+
'auro-button': true,
|
|
11764
|
+
'auroButton': true,
|
|
11765
|
+
'auro-button--rounded': this.rounded,
|
|
11766
|
+
'auro-button--slim': this.slim,
|
|
11767
|
+
'auro-button--iconOnly': this.iconOnly,
|
|
11768
|
+
'auro-button--iconOnlySlim': this.iconOnly && this.slim,
|
|
11769
|
+
'loading': this.loading
|
|
11770
|
+
};
|
|
11092
11771
|
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11772
|
+
return html$1`
|
|
11773
|
+
<button
|
|
11774
|
+
part="button"
|
|
11775
|
+
aria-label="${ifDefined(this.arialabel ? this.arialabel : undefined)}"
|
|
11776
|
+
aria-labelledby="${ifDefined(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
11777
|
+
?autofocus="${this.autofocus}"
|
|
11778
|
+
class="${classMap(classes)}"
|
|
11779
|
+
?disabled="${this.disabled || this.loading}"
|
|
11780
|
+
?onDark="${this.onDark}"
|
|
11781
|
+
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
11782
|
+
name="${ifDefined(this.name ? this.name : undefined)}"
|
|
11783
|
+
type="${ifDefined(this.type ? this.type : undefined)}"
|
|
11784
|
+
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
11785
|
+
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
11786
|
+
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
11787
|
+
>
|
|
11788
|
+
${ifDefined(this.loading ? html$1`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
11096
11789
|
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11790
|
+
<span class="contentWrapper">
|
|
11791
|
+
<span class="textSlot" part="text">
|
|
11792
|
+
${this.iconOnly ? undefined : html$1`<slot></slot>`}
|
|
11793
|
+
</span>
|
|
11794
|
+
|
|
11795
|
+
<span part="icon">
|
|
11796
|
+
<slot name="icon"></slot>
|
|
11797
|
+
</span>
|
|
11798
|
+
</span>
|
|
11799
|
+
</button>
|
|
11800
|
+
`;
|
|
11103
11801
|
}
|
|
11104
|
-
}
|
|
11802
|
+
};
|
|
11105
11803
|
|
|
11106
|
-
var
|
|
11804
|
+
var buttonVersion$1 = '9.0.0';
|
|
11107
11805
|
|
|
11108
11806
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
11109
11807
|
/**
|
|
@@ -11167,33 +11865,33 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11167
11865
|
*/
|
|
11168
11866
|
this.numCalendars = undefined;
|
|
11169
11867
|
|
|
11170
|
-
|
|
11171
11868
|
this.visible = false;
|
|
11172
11869
|
|
|
11173
|
-
|
|
11174
11870
|
/**
|
|
11175
11871
|
* @private
|
|
11176
11872
|
*/
|
|
11177
11873
|
this.slots = {};
|
|
11178
11874
|
|
|
11179
|
-
const versioning = new AuroDependencyVersioning$
|
|
11875
|
+
const versioning = new AuroDependencyVersioning$5();
|
|
11180
11876
|
|
|
11181
11877
|
/**
|
|
11182
11878
|
* @private
|
|
11183
11879
|
*/
|
|
11184
|
-
this.bibtemplateTag = versioning.generateTag('auro-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
11880
|
+
this.bibtemplateTag = versioning.generateTag('auro-formkit-datepicker-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
11185
11881
|
|
|
11186
11882
|
/**
|
|
11187
11883
|
* @private
|
|
11188
11884
|
*/
|
|
11885
|
+
this.buttonTag = versioning.generateTag('auro-formkit-datepicker-button', buttonVersion$1, AuroButton$1);
|
|
11886
|
+
|
|
11189
11887
|
this.dropdown = undefined;
|
|
11190
11888
|
}
|
|
11191
11889
|
|
|
11192
11890
|
static get styles() {
|
|
11193
11891
|
return [
|
|
11194
|
-
styleCss$
|
|
11195
|
-
colorCss$
|
|
11196
|
-
tokensCss$
|
|
11892
|
+
styleCss$c,
|
|
11893
|
+
colorCss$c,
|
|
11894
|
+
tokensCss$a
|
|
11197
11895
|
];
|
|
11198
11896
|
}
|
|
11199
11897
|
|
|
@@ -11240,6 +11938,9 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11240
11938
|
type: Boolean,
|
|
11241
11939
|
reflect: true
|
|
11242
11940
|
},
|
|
11941
|
+
dropdown: {
|
|
11942
|
+
type: Object
|
|
11943
|
+
},
|
|
11243
11944
|
|
|
11244
11945
|
/**
|
|
11245
11946
|
* @private
|
|
@@ -11275,16 +11976,14 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11275
11976
|
*/
|
|
11276
11977
|
renderAllCalendars() {
|
|
11277
11978
|
let renderedHtml = undefined;
|
|
11979
|
+
|
|
11278
11980
|
if (this.visible) {
|
|
11279
11981
|
this.utilCalRender.setFirstRenderableMonthDate(this);
|
|
11280
11982
|
this.utilCal.assessNavigationButtonVisibility(this);
|
|
11281
11983
|
|
|
11282
|
-
|
|
11283
|
-
const dropdownbib = dropdown ? dropdown.bibContent : AuroLibraryRuntimeUtils$4.prototype.closestElement('auro-dropdownbib, [auro-dropdownbib]', this);
|
|
11284
|
-
this.isFullscreen = dropdownbib.hasAttribute('isFullscreen');
|
|
11984
|
+
this.isFullscreen = this.dropdown.bibContent.hasAttribute('isFullscreen');
|
|
11285
11985
|
this.utilCalRender.determineNumCalendarsToRender(this, this.isFullscreen);
|
|
11286
11986
|
|
|
11287
|
-
|
|
11288
11987
|
// Determine which month to render first
|
|
11289
11988
|
let dateMatches = undefined;
|
|
11290
11989
|
|
|
@@ -11320,7 +12019,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11320
12019
|
const firstMonth = this.firstRenderedMonth.getMonth() + 1;
|
|
11321
12020
|
const firstYear = this.firstRenderedMonth.getFullYear();
|
|
11322
12021
|
|
|
11323
|
-
renderedHtml =
|
|
12022
|
+
renderedHtml = html$1`${renderedHtml}${this.utilCalRender.renderCalendar(this, firstMonth, firstYear)}`;
|
|
11324
12023
|
|
|
11325
12024
|
// Loop through the number of remaining calendars to render and add the HTML
|
|
11326
12025
|
let newMonthDate = undefined;
|
|
@@ -11346,9 +12045,10 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11346
12045
|
const newMonthDateStr = `${newMonth}/1/${newYear}`;
|
|
11347
12046
|
newMonthDate = new Date(newMonthDateStr);
|
|
11348
12047
|
|
|
11349
|
-
renderedHtml =
|
|
12048
|
+
renderedHtml = html$1`${renderedHtml}${this.utilCalRender.renderCalendar(this, newMonth, newYear)}`;
|
|
11350
12049
|
}
|
|
11351
12050
|
}
|
|
12051
|
+
|
|
11352
12052
|
return renderedHtml;
|
|
11353
12053
|
}
|
|
11354
12054
|
|
|
@@ -11409,7 +12109,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11409
12109
|
}
|
|
11410
12110
|
|
|
11411
12111
|
render() {
|
|
11412
|
-
return
|
|
12112
|
+
return html$1`
|
|
11413
12113
|
<${this.bibtemplateTag}
|
|
11414
12114
|
?large="${this.largeFullscreenHeadline}"
|
|
11415
12115
|
?isFullscreen="${this.isFullscreen}"
|
|
@@ -11431,12 +12131,12 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11431
12131
|
${this.renderAllCalendars()}
|
|
11432
12132
|
</div>
|
|
11433
12133
|
<div class="calendarNavButtons">
|
|
11434
|
-
${this.showPrevMonthBtn ?
|
|
12134
|
+
${this.showPrevMonthBtn ? html$1`
|
|
11435
12135
|
<button class="calendarNavBtn prevMonth" @click="${this.handlePrevMonth}">
|
|
11436
12136
|
${this.util.generateIconHtml(chevronLeft)}
|
|
11437
12137
|
</button>
|
|
11438
12138
|
` : undefined}
|
|
11439
|
-
${this.showNextMonthBtn ?
|
|
12139
|
+
${this.showNextMonthBtn ? html$1`
|
|
11440
12140
|
<button class="calendarNavBtn nextMonth" @click="${this.handleNextMonth}">
|
|
11441
12141
|
${this.util.generateIconHtml(chevronRight)}
|
|
11442
12142
|
</button>
|
|
@@ -11444,49 +12144,16 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11444
12144
|
</div>
|
|
11445
12145
|
</div>
|
|
11446
12146
|
|
|
11447
|
-
|
|
12147
|
+
<${this.buttonTag} slot="footer" fluid @click="${this.utilCal.requestDismiss}">Done</${this.buttonTag}>
|
|
11448
12148
|
</${this.bibtemplateTag}>
|
|
11449
12149
|
`;
|
|
11450
12150
|
}
|
|
11451
12151
|
}
|
|
11452
12152
|
|
|
11453
|
-
if (!customElements.get('auro-calendar')) {
|
|
11454
|
-
customElements.define('auro-calendar', AuroCalendar);
|
|
12153
|
+
if (!customElements.get('auro-formkit-calendar')) {
|
|
12154
|
+
customElements.define('auro-formkit-calendar', AuroCalendar);
|
|
11455
12155
|
}
|
|
11456
12156
|
|
|
11457
|
-
/**
|
|
11458
|
-
* @license
|
|
11459
|
-
* Copyright 2017 Google LLC
|
|
11460
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11461
|
-
*/
|
|
11462
|
-
const t$4$1=globalThis,i$9$1=t$4$1.trustedTypes,s$4$1=i$9$1?i$9$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$7$1="$lit$",h$3$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7$1="?"+h$3$1,n$6$1=`<${o$7$1}>`,r$7$1=document,l$4$1=()=>r$7$1.createComment(""),c$5$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4$1=Array.isArray,u$4$1=t=>a$4$1(t)||"function"==typeof t?.[Symbol.iterator],d$3$1="[ \t\n\f\r]",f$3$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1$1=/-->/g,_$1$1=/>/g,m$1$1=RegExp(`>|${d$3$1}(?:([^\\s"'>=/]+)(${d$3$1}*=${d$3$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$3$1=/'/g,g$1$1=/"/g,$$1$1=/^(?:script|style|textarea|title)$/i,y$3$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1$1=y$3$1(1),T$1$1=Symbol.for("lit-noChange"),E$1$1=Symbol.for("lit-nothing"),A$1$1=new WeakMap,C$1$1=r$7$1.createTreeWalker(r$7$1,129);function P$1$1(t,i){if(!a$4$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$4$1?s$4$1.createHTML(i):i}const V$1$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$3$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$3$1?"!--"===u[1]?c=v$1$1:void 0!==u[1]?c=_$1$1:void 0!==u[2]?($$1$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1$1):void 0!==u[3]&&(c=m$1$1):c===m$1$1?">"===u[0]?(c=r??f$3$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$1:'"'===u[3]?g$1$1:p$3$1):c===g$1$1||c===p$3$1?c=m$1$1:c===v$1$1||c===_$1$1?c=f$3$1:(c=m$1$1,r=void 0);const x=c===m$1$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$3$1?s+n$6$1:d>=0?(o.push(a),s.slice(0,d)+e$7$1+s.slice(d)+h$3$1+x):s+h$3$1+(-2===d?i:x);}return [P$1$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1$1 = 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$1$1(t,s);if(this.el=N.createElement(f,n),C$1$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$7$1)){const i=v[a++],s=r.getAttribute(t).split(h$3$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1$1:"?"===e[1]?I$1$1:"@"===e[1]?L$1$1:k$1$1}),r.removeAttribute(t);}else t.startsWith(h$3$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1$1.test(r.tagName)){const t=r.textContent.split(h$3$1),s=t.length-1;if(s>0){r.textContent=i$9$1?i$9$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$4$1()),C$1$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$4$1());}}}else if(8===r.nodeType)if(r.data===o$7$1)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$3$1,t+1));)d.push({type:7,index:c}),t+=h$3$1.length-1;}c++;}}static createElement(t,i){const s=r$7$1.createElement("template");return s.innerHTML=t,s}};function S$3$1(t,i,s=t,e){if(i===T$1$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$5$1(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$3$1(t,h._$AS(t,i.values),h,e)),i}let M$1$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$7$1).importNode(i,true);C$1$1.currentNode=e;let h=C$1$1.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1$1(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$1$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1$1.nextNode(),o++);}return C$1$1.currentNode=r$7$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1$1,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$3$1(this,t,i),c$5$1(t)?t===E$1$1||null==t||""===t?(this._$AH!==E$1$1&&this._$AR(),this._$AH=E$1$1):t!==this._$AH&&t!==T$1$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$4$1(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$1$1&&c$5$1(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$7$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$1$1.createElement(P$1$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1$1.get(t.strings);return void 0===i&&A$1$1.set(t.strings,i=new N$1$1(t)),i}k(t){a$4$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$4$1()),this.O(l$4$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1$1 = 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$1$1,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$1$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$3$1(this,t,i,0),o=!c$5$1(t)||t!==this._$AH&&t!==T$1$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$3$1(this,e[s+n],i,n),r===T$1$1&&(r=this._$AH[n]),o||=!c$5$1(r)||r!==this._$AH[n],r===E$1$1?t=E$1$1:t!==E$1$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1$1 = class H extends k$1$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1$1?void 0:t;}};let I$1$1 = class I extends k$1$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1$1);}};let L$1$1 = class L extends k$1$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$3$1(this,t,i,0)??E$1$1)===T$1$1)return;const s=this._$AH,e=t===E$1$1&&s!==E$1$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1$1&&(s===E$1$1||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);}};let z$1$1 = 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$3$1(this,t);}};const j$1$1=t$4$1.litHtmlPolyfillSupport;j$1$1?.(N$1$1,R$1$1),(t$4$1.litHtmlVersions??=[]).push("3.2.1");const B$1$1=(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$1$1(i.insertBefore(l$4$1(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
11463
|
-
|
|
11464
|
-
/**
|
|
11465
|
-
* @license
|
|
11466
|
-
* Copyright 2020 Google LLC
|
|
11467
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11468
|
-
*/
|
|
11469
|
-
const a$3$1=Symbol.for(""),o$6$1=t=>{if(t?.r===a$3$1)return t?._$litStatic$},s$3$1=t=>({_$litStatic$:t,r:a$3$1}),i$8$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$3$1}),l$3$1=new Map,n$5$1=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$6$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l$3$1.get(t))&&(n.raw=n,l$3$1.set(t,r=n)),e=u;}return t(r,...e)},u$3$1=n$5$1(x$1$1);
|
|
11470
|
-
|
|
11471
|
-
/**
|
|
11472
|
-
* @license
|
|
11473
|
-
* Copyright 2019 Google LLC
|
|
11474
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11475
|
-
*/
|
|
11476
|
-
const t$3$1=globalThis,e$6$1=t$3$1.ShadowRoot&&(void 0===t$3$1.ShadyCSS||t$3$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2$1=Symbol(),o$5$1=new WeakMap;let n$4$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$6$1&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$5$1.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$5$1.set(s,t));}return t}toString(){return this.cssText}};const r$6$1=t=>new n$4$1("string"==typeof t?t:t+"",void 0,s$2$1),i$7$1=(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$1(o,t,s$2$1)},S$2$1=(s,o)=>{if(e$6$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$3$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$4$1=e$6$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6$1(e)})(t):t;
|
|
11477
|
-
|
|
11478
|
-
/**
|
|
11479
|
-
* @license
|
|
11480
|
-
* Copyright 2017 Google LLC
|
|
11481
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11482
|
-
*/const{is:i$6$1,defineProperty:e$5$1,getOwnPropertyDescriptor:r$5$1,getOwnPropertyNames:h$2$1,getOwnPropertySymbols:o$4$1,getPrototypeOf:n$3$1}=Object,a$2$1=globalThis,c$3$1=a$2$1.trustedTypes,l$2$1=c$3$1?c$3$1.emptyScript:"",p$2$1=a$2$1.reactiveElementPolyfillSupport,d$2$1=(t,s)=>t,u$2$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$2$1: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$2$1=(t,s)=>!i$6$1(t,s),y$2$1={attribute:true,type:String,converter:u$2$1,reflect:false,hasChanged:f$2$1};Symbol.metadata??=Symbol("metadata"),a$2$1.litPropertyMetadata??=new WeakMap;let b$1$1 = class b 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=y$2$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$5$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$5$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$2$1}static _$Ei(){if(this.hasOwnProperty(d$2$1("elementProperties")))return;const t=n$3$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2$1("properties"))){const t=this.properties,s=[...h$2$1(t),...o$4$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$4$1(s));}else void 0!==s&&i.push(c$4$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$2$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);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),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),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){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) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}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._$EU();}catch(s){throw t=false,this._$EU(),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);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1$1.elementStyles=[],b$1$1.shadowRootOptions={mode:"open"},b$1$1[d$2$1("elementProperties")]=new Map,b$1$1[d$2$1("finalized")]=new Map,p$2$1?.({ReactiveElement:b$1$1}),(a$2$1.reactiveElementVersions??=[]).push("2.0.4");
|
|
11483
|
-
|
|
11484
|
-
/**
|
|
11485
|
-
* @license
|
|
11486
|
-
* Copyright 2017 Google LLC
|
|
11487
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11488
|
-
*/let r$4$1 = class r extends b$1$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 s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1$1}};r$4$1._$litElement$=true,r$4$1["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4$1});const i$5$1=globalThis.litElementPolyfillSupport;i$5$1?.({LitElement:r$4$1});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
11489
|
-
|
|
11490
12157
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11491
12158
|
// See LICENSE in the project root for license information.
|
|
11492
12159
|
|
|
@@ -11494,7 +12161,7 @@ const t$3$1=globalThis,e$6$1=t$3$1.ShadowRoot&&(void 0===t$3$1.ShadyCSS||t$3$1.S
|
|
|
11494
12161
|
|
|
11495
12162
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11496
12163
|
|
|
11497
|
-
let AuroLibraryRuntimeUtils$
|
|
12164
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
11498
12165
|
|
|
11499
12166
|
/* eslint-disable jsdoc/require-param */
|
|
11500
12167
|
|
|
@@ -12286,7 +12953,8 @@ function isContainingBlock(elementOrCss) {
|
|
|
12286
12953
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
12287
12954
|
|
|
12288
12955
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
12289
|
-
|
|
12956
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
12957
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
12290
12958
|
}
|
|
12291
12959
|
function getContainingBlock(element) {
|
|
12292
12960
|
let currentNode = getParentNode(element);
|
|
@@ -12844,6 +13512,10 @@ const platform = {
|
|
|
12844
13512
|
isRTL
|
|
12845
13513
|
};
|
|
12846
13514
|
|
|
13515
|
+
function rectsAreEqual(a, b) {
|
|
13516
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
13517
|
+
}
|
|
13518
|
+
|
|
12847
13519
|
// https://samthor.au/2021/observing-dom/
|
|
12848
13520
|
function observeMove(element, onMove) {
|
|
12849
13521
|
let io = null;
|
|
@@ -12863,12 +13535,13 @@ function observeMove(element, onMove) {
|
|
|
12863
13535
|
threshold = 1;
|
|
12864
13536
|
}
|
|
12865
13537
|
cleanup();
|
|
13538
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
12866
13539
|
const {
|
|
12867
13540
|
left,
|
|
12868
13541
|
top,
|
|
12869
13542
|
width,
|
|
12870
13543
|
height
|
|
12871
|
-
} =
|
|
13544
|
+
} = elementRectForRootMargin;
|
|
12872
13545
|
if (!skip) {
|
|
12873
13546
|
onMove();
|
|
12874
13547
|
}
|
|
@@ -12901,6 +13574,16 @@ function observeMove(element, onMove) {
|
|
|
12901
13574
|
refresh(false, ratio);
|
|
12902
13575
|
}
|
|
12903
13576
|
}
|
|
13577
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
13578
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
13579
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
13580
|
+
// area anymore. This can happen under performance constraints. This may
|
|
13581
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
13582
|
+
// work around this, we compare the element's bounding rect now with
|
|
13583
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
13584
|
+
// are not equal then the element moved, so we refresh.
|
|
13585
|
+
refresh();
|
|
13586
|
+
}
|
|
12904
13587
|
isFirstUpdate = false;
|
|
12905
13588
|
}
|
|
12906
13589
|
|
|
@@ -12978,7 +13661,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
12978
13661
|
}
|
|
12979
13662
|
function frameLoop() {
|
|
12980
13663
|
const nextRefRect = getBoundingClientRect(reference);
|
|
12981
|
-
if (prevRefRect && (
|
|
13664
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
12982
13665
|
update();
|
|
12983
13666
|
}
|
|
12984
13667
|
prevRefRect = nextRefRect;
|
|
@@ -13291,11 +13974,11 @@ class AuroFloatingUI {
|
|
|
13291
13974
|
|
|
13292
13975
|
updateCurrentExpandedDropdown() {
|
|
13293
13976
|
// Close any other dropdown that is already open
|
|
13294
|
-
if (document.
|
|
13295
|
-
|
|
13977
|
+
if (document.expandedAuroFormkitDropdown) {
|
|
13978
|
+
document.expandedAuroFormkitDropdown.hide;
|
|
13296
13979
|
}
|
|
13297
13980
|
|
|
13298
|
-
document.
|
|
13981
|
+
document.expandedAuroFormkitDropdown = this;
|
|
13299
13982
|
}
|
|
13300
13983
|
|
|
13301
13984
|
showBib() {
|
|
@@ -13483,7 +14166,7 @@ class AuroFloatingUI {
|
|
|
13483
14166
|
// See LICENSE in the project root for license information.
|
|
13484
14167
|
|
|
13485
14168
|
|
|
13486
|
-
let AuroDependencyVersioning$
|
|
14169
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
13487
14170
|
|
|
13488
14171
|
/**
|
|
13489
14172
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -13509,7 +14192,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
13509
14192
|
*/
|
|
13510
14193
|
generateTag(baseName, version, tagClass) {
|
|
13511
14194
|
const elementName = this.generateElementName(baseName, version);
|
|
13512
|
-
const tag =
|
|
14195
|
+
const tag = literal`${unsafeStatic(elementName)}`;
|
|
13513
14196
|
|
|
13514
14197
|
if (!customElements.get(elementName)) {
|
|
13515
14198
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -13519,25 +14202,6 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
13519
14202
|
}
|
|
13520
14203
|
};
|
|
13521
14204
|
|
|
13522
|
-
/**
|
|
13523
|
-
* @license
|
|
13524
|
-
* Copyright 2017 Google LLC
|
|
13525
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13526
|
-
*/
|
|
13527
|
-
const t$2$1={ATTRIBUTE:1},e$4$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$4$1 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
13528
|
-
|
|
13529
|
-
/**
|
|
13530
|
-
* @license
|
|
13531
|
-
* Copyright 2018 Google LLC
|
|
13532
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13533
|
-
*/const e$3$1=e$4$1(class extends i$4$1{constructor(t){if(super(t),t.type!==t$2$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$1$1}});
|
|
13534
|
-
|
|
13535
|
-
/**
|
|
13536
|
-
* @license
|
|
13537
|
-
* Copyright 2018 Google LLC
|
|
13538
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13539
|
-
*/const o$3$1=o=>o??E$1$1;
|
|
13540
|
-
|
|
13541
14205
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13542
14206
|
// See LICENSE in the project root for license information.
|
|
13543
14207
|
|
|
@@ -13548,7 +14212,7 @@ const t$2$1={ATTRIBUTE:1},e$4$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$
|
|
|
13548
14212
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
13549
14213
|
*/
|
|
13550
14214
|
|
|
13551
|
-
let AuroElement$1 = class AuroElement extends
|
|
14215
|
+
let AuroElement$1 = class AuroElement extends LitElement {
|
|
13552
14216
|
|
|
13553
14217
|
// function to define props used within the scope of this component
|
|
13554
14218
|
static get properties() {
|
|
@@ -13604,7 +14268,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
13604
14268
|
return _fetchMap$1.get(uri);
|
|
13605
14269
|
};
|
|
13606
14270
|
|
|
13607
|
-
var styleCss$3$1 =
|
|
14271
|
+
var styleCss$3$1 = css`: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}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}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}`;
|
|
13608
14272
|
|
|
13609
14273
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13610
14274
|
// See LICENSE in the project root for license information.
|
|
@@ -13643,7 +14307,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
13643
14307
|
}
|
|
13644
14308
|
|
|
13645
14309
|
static get styles() {
|
|
13646
|
-
return
|
|
14310
|
+
return css`
|
|
13647
14311
|
${styleCss$3$1}
|
|
13648
14312
|
`;
|
|
13649
14313
|
}
|
|
@@ -13679,53 +14343,94 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
13679
14343
|
} else if (!svg) {
|
|
13680
14344
|
const penDOM = new DOMParser().parseFromString(error$1.svg, 'text/html');
|
|
13681
14345
|
|
|
13682
|
-
this.svg = penDOM.body.firstChild;
|
|
13683
|
-
}
|
|
14346
|
+
this.svg = penDOM.body.firstChild;
|
|
14347
|
+
}
|
|
14348
|
+
}
|
|
14349
|
+
}
|
|
14350
|
+
};
|
|
14351
|
+
|
|
14352
|
+
var tokensCss$2$1 = css`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
14353
|
+
|
|
14354
|
+
var colorCss$3$1 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
14355
|
+
|
|
14356
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14357
|
+
// See LICENSE in the project root for license information.
|
|
14358
|
+
|
|
14359
|
+
// ---------------------------------------------------------------------
|
|
14360
|
+
|
|
14361
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
14362
|
+
|
|
14363
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
14364
|
+
|
|
14365
|
+
/* eslint-disable jsdoc/require-param */
|
|
14366
|
+
|
|
14367
|
+
/**
|
|
14368
|
+
* This will register a new custom element with the browser.
|
|
14369
|
+
* @param {String} name - The name of the custom element.
|
|
14370
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
14371
|
+
* @returns {void}
|
|
14372
|
+
*/
|
|
14373
|
+
registerComponent(name, componentClass) {
|
|
14374
|
+
if (!customElements.get(name)) {
|
|
14375
|
+
customElements.define(name, class extends componentClass {});
|
|
14376
|
+
}
|
|
14377
|
+
}
|
|
14378
|
+
|
|
14379
|
+
/**
|
|
14380
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
14381
|
+
* @returns {void}
|
|
14382
|
+
*/
|
|
14383
|
+
closestElement(
|
|
14384
|
+
selector, // selector like in .closest()
|
|
14385
|
+
base = this, // extra functionality to skip a parent
|
|
14386
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
14387
|
+
!el || el === document || el === window
|
|
14388
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
14389
|
+
: found
|
|
14390
|
+
? found // found a selector INside this element
|
|
14391
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
14392
|
+
) {
|
|
14393
|
+
return __Closest(base);
|
|
14394
|
+
}
|
|
14395
|
+
/* eslint-enable jsdoc/require-param */
|
|
14396
|
+
|
|
14397
|
+
/**
|
|
14398
|
+
* 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.
|
|
14399
|
+
* @param {Object} elem - The element to check.
|
|
14400
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
14401
|
+
* @returns {void}
|
|
14402
|
+
*/
|
|
14403
|
+
handleComponentTagRename(elem, tagName) {
|
|
14404
|
+
const tag = tagName.toLowerCase();
|
|
14405
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
14406
|
+
|
|
14407
|
+
if (elemTag !== tag) {
|
|
14408
|
+
elem.setAttribute(tag, true);
|
|
13684
14409
|
}
|
|
13685
14410
|
}
|
|
13686
|
-
};
|
|
13687
14411
|
|
|
13688
|
-
|
|
14412
|
+
/**
|
|
14413
|
+
* Validates if an element is a specific Auro component.
|
|
14414
|
+
* @param {Object} elem - The element to validate.
|
|
14415
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
14416
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
14417
|
+
*/
|
|
14418
|
+
elementMatch(elem, tagName) {
|
|
14419
|
+
const tag = tagName.toLowerCase();
|
|
14420
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
13689
14421
|
|
|
13690
|
-
|
|
14422
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
14423
|
+
}
|
|
14424
|
+
};
|
|
13691
14425
|
|
|
13692
14426
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13693
14427
|
// See LICENSE in the project root for license information.
|
|
13694
14428
|
|
|
13695
14429
|
|
|
13696
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
13697
|
-
/**
|
|
13698
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
13699
|
-
*
|
|
13700
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
13701
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
13702
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
13703
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
13704
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
13705
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
13706
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
13707
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
13708
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
13709
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
13710
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
13711
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
13712
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
13713
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
13714
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
13715
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
13716
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
13717
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
13718
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
13719
|
-
* @slot svg - Used for custom SVG content.
|
|
13720
|
-
*/
|
|
13721
|
-
|
|
13722
|
-
// build the component class
|
|
13723
14430
|
let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
13724
14431
|
constructor() {
|
|
13725
14432
|
super();
|
|
13726
14433
|
|
|
13727
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
13728
|
-
|
|
13729
14434
|
this.privateDefaults();
|
|
13730
14435
|
}
|
|
13731
14436
|
|
|
@@ -13749,6 +14454,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13749
14454
|
this.success = false;
|
|
13750
14455
|
this.tertiary = false;
|
|
13751
14456
|
this.warning = false;
|
|
14457
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
13752
14458
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
13753
14459
|
}
|
|
13754
14460
|
|
|
@@ -13756,71 +14462,136 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13756
14462
|
static get properties() {
|
|
13757
14463
|
return {
|
|
13758
14464
|
...super.properties,
|
|
14465
|
+
|
|
14466
|
+
/**
|
|
14467
|
+
* Sets the icon to use the accent style.
|
|
14468
|
+
*/
|
|
13759
14469
|
accent: {
|
|
13760
14470
|
type: Boolean,
|
|
13761
14471
|
reflect: true
|
|
13762
14472
|
},
|
|
14473
|
+
|
|
14474
|
+
/**
|
|
14475
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
14476
|
+
*/
|
|
13763
14477
|
ariaHidden: {
|
|
13764
14478
|
type: String,
|
|
13765
14479
|
reflect: true
|
|
13766
14480
|
},
|
|
14481
|
+
|
|
14482
|
+
/**
|
|
14483
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
14484
|
+
*/
|
|
13767
14485
|
category: {
|
|
13768
14486
|
type: String,
|
|
13769
14487
|
reflect: true
|
|
13770
14488
|
},
|
|
14489
|
+
|
|
14490
|
+
/**
|
|
14491
|
+
* Allows custom color to be set.
|
|
14492
|
+
*/
|
|
13771
14493
|
customColor: {
|
|
13772
14494
|
type: Boolean
|
|
13773
14495
|
},
|
|
14496
|
+
|
|
14497
|
+
/**
|
|
14498
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
14499
|
+
*/
|
|
13774
14500
|
customSvg: {
|
|
13775
14501
|
type: Boolean
|
|
13776
14502
|
},
|
|
14503
|
+
|
|
14504
|
+
/**
|
|
14505
|
+
* Sets the icon to use the disabled style.
|
|
14506
|
+
*/
|
|
13777
14507
|
disabled: {
|
|
13778
14508
|
type: Boolean,
|
|
13779
14509
|
reflect: true
|
|
13780
14510
|
},
|
|
14511
|
+
|
|
14512
|
+
/**
|
|
14513
|
+
* Sets the icon to use the emphasis style.
|
|
14514
|
+
*/
|
|
13781
14515
|
emphasis: {
|
|
13782
14516
|
type: Boolean,
|
|
13783
14517
|
reflect: true
|
|
13784
14518
|
},
|
|
14519
|
+
|
|
14520
|
+
/**
|
|
14521
|
+
* Sets the icon to use the error style.
|
|
14522
|
+
*/
|
|
13785
14523
|
error: {
|
|
13786
14524
|
type: Boolean,
|
|
13787
14525
|
reflect: true
|
|
13788
14526
|
},
|
|
14527
|
+
|
|
14528
|
+
/**
|
|
14529
|
+
* Sets the icon to use the info style.
|
|
14530
|
+
*/
|
|
13789
14531
|
info: {
|
|
13790
14532
|
type: Boolean,
|
|
13791
14533
|
reflect: true
|
|
13792
14534
|
},
|
|
14535
|
+
|
|
14536
|
+
/**
|
|
14537
|
+
* Exposes content in slot as icon label.
|
|
14538
|
+
*/
|
|
13793
14539
|
label: {
|
|
13794
14540
|
type: Boolean,
|
|
13795
14541
|
reflect: true
|
|
13796
14542
|
},
|
|
14543
|
+
|
|
14544
|
+
/**
|
|
14545
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
14546
|
+
*/
|
|
13797
14547
|
name: {
|
|
13798
14548
|
type: String,
|
|
13799
14549
|
reflect: true
|
|
13800
14550
|
},
|
|
14551
|
+
|
|
14552
|
+
/**
|
|
14553
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
14554
|
+
*/
|
|
13801
14555
|
primary: {
|
|
13802
14556
|
type: Boolean,
|
|
13803
14557
|
reflect: true
|
|
13804
14558
|
},
|
|
14559
|
+
|
|
14560
|
+
/**
|
|
14561
|
+
* Sets the icon to use the secondary style.
|
|
14562
|
+
*/
|
|
13805
14563
|
secondary: {
|
|
13806
14564
|
type: Boolean,
|
|
13807
14565
|
reflect: true
|
|
13808
14566
|
},
|
|
14567
|
+
|
|
14568
|
+
/**
|
|
14569
|
+
* Sets the icon to use the subtle style.
|
|
14570
|
+
*/
|
|
13809
14571
|
subtle: {
|
|
13810
14572
|
type: Boolean,
|
|
13811
14573
|
reflect: true
|
|
13812
14574
|
},
|
|
14575
|
+
|
|
14576
|
+
/**
|
|
14577
|
+
* Sets the icon to use the success style.
|
|
14578
|
+
*/
|
|
13813
14579
|
success: {
|
|
13814
14580
|
type: Boolean,
|
|
13815
14581
|
reflect: true
|
|
13816
14582
|
},
|
|
14583
|
+
|
|
14584
|
+
/**
|
|
14585
|
+
* Sets the icon to use the tertiary style.
|
|
14586
|
+
*/
|
|
13817
14587
|
tertiary: {
|
|
13818
14588
|
type: Boolean,
|
|
13819
14589
|
reflect: true
|
|
13820
14590
|
},
|
|
13821
|
-
|
|
13822
|
-
|
|
13823
|
-
|
|
14591
|
+
|
|
14592
|
+
/**
|
|
14593
|
+
* Sets the icon to use the warning style.
|
|
14594
|
+
*/
|
|
13824
14595
|
warning: {
|
|
13825
14596
|
type: Boolean,
|
|
13826
14597
|
reflect: true
|
|
@@ -13831,9 +14602,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13831
14602
|
static get styles() {
|
|
13832
14603
|
return [
|
|
13833
14604
|
super.styles,
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
|
|
14605
|
+
css`${tokensCss$2$1}`,
|
|
14606
|
+
css`${styleCss$3$1}`,
|
|
14607
|
+
css`${colorCss$3$1}`
|
|
13837
14608
|
];
|
|
13838
14609
|
}
|
|
13839
14610
|
|
|
@@ -13857,38 +14628,54 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13857
14628
|
}
|
|
13858
14629
|
|
|
13859
14630
|
/**
|
|
14631
|
+
* @private
|
|
13860
14632
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
13861
14633
|
*/
|
|
13862
14634
|
exposeCssParts() {
|
|
13863
14635
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
13864
14636
|
}
|
|
13865
14637
|
|
|
14638
|
+
async firstUpdated() {
|
|
14639
|
+
await super.firstUpdated();
|
|
14640
|
+
|
|
14641
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
14642
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
14643
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
14644
|
+
|
|
14645
|
+
if (svgDesc) {
|
|
14646
|
+
svgDesc.remove();
|
|
14647
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
14648
|
+
}
|
|
14649
|
+
}
|
|
14650
|
+
}
|
|
14651
|
+
|
|
13866
14652
|
// function that renders the HTML and CSS into the scope of the component
|
|
13867
14653
|
render() {
|
|
13868
|
-
const
|
|
13869
|
-
'
|
|
14654
|
+
const labelClasses = {
|
|
14655
|
+
'labelWrapper': true,
|
|
13870
14656
|
'util_displayHiddenVisually': !this.label
|
|
13871
14657
|
};
|
|
13872
14658
|
|
|
13873
|
-
const
|
|
13874
|
-
'
|
|
13875
|
-
'wrapper': true,
|
|
14659
|
+
const svgClasses = {
|
|
14660
|
+
'svgWrapper': true,
|
|
13876
14661
|
};
|
|
13877
14662
|
|
|
13878
|
-
return
|
|
13879
|
-
<div
|
|
13880
|
-
|
|
13881
|
-
|
|
13882
|
-
|
|
13883
|
-
${this.
|
|
13884
|
-
|
|
13885
|
-
|
|
13886
|
-
|
|
13887
|
-
|
|
13888
|
-
|
|
13889
|
-
|
|
14663
|
+
return html`
|
|
14664
|
+
<div class="componentWrapper">
|
|
14665
|
+
<div
|
|
14666
|
+
class="${classMap(svgClasses)}"
|
|
14667
|
+
title="${ifDefined(this.title || undefined)}">
|
|
14668
|
+
<span aria-hidden="${ifDefined(this.ariaHidden || true)}" part="svg">
|
|
14669
|
+
${this.customSvg ? html`
|
|
14670
|
+
<slot name="svg"></slot>
|
|
14671
|
+
` : html`
|
|
14672
|
+
${this.svg}
|
|
14673
|
+
`
|
|
14674
|
+
}
|
|
14675
|
+
</span>
|
|
14676
|
+
</div>
|
|
13890
14677
|
|
|
13891
|
-
<div class="${
|
|
14678
|
+
<div class="${classMap(labelClasses)}">
|
|
13892
14679
|
<slot></slot>
|
|
13893
14680
|
</div>
|
|
13894
14681
|
</div>
|
|
@@ -13898,11 +14685,11 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13898
14685
|
|
|
13899
14686
|
var iconVersion$1 = '6.1.2';
|
|
13900
14687
|
|
|
13901
|
-
var styleCss$2$1 =
|
|
14688
|
+
var styleCss$2$1 = css`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.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}`;
|
|
13902
14689
|
|
|
13903
|
-
var colorCss$2$1 =
|
|
14690
|
+
var colorCss$2$1 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
13904
14691
|
|
|
13905
|
-
var tokensCss$1$1 =
|
|
14692
|
+
var tokensCss$1$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
13906
14693
|
|
|
13907
14694
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13908
14695
|
// See LICENSE in the project root for license information.
|
|
@@ -13922,7 +14709,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
13922
14709
|
* @csspart bibContainer - Apply css to the bib container.
|
|
13923
14710
|
*/
|
|
13924
14711
|
|
|
13925
|
-
class AuroDropdownBib extends
|
|
14712
|
+
class AuroDropdownBib extends LitElement {
|
|
13926
14713
|
|
|
13927
14714
|
constructor() {
|
|
13928
14715
|
super();
|
|
@@ -13932,7 +14719,7 @@ class AuroDropdownBib extends r$4$1 {
|
|
|
13932
14719
|
*/
|
|
13933
14720
|
this._mobileBreakpointValue = undefined;
|
|
13934
14721
|
|
|
13935
|
-
AuroLibraryRuntimeUtils$
|
|
14722
|
+
AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
13936
14723
|
}
|
|
13937
14724
|
|
|
13938
14725
|
static get styles() {
|
|
@@ -14013,7 +14800,7 @@ class AuroDropdownBib extends r$4$1 {
|
|
|
14013
14800
|
|
|
14014
14801
|
// function that renders the HTML and CSS into the scope of the component
|
|
14015
14802
|
render() {
|
|
14016
|
-
return
|
|
14803
|
+
return html$1`
|
|
14017
14804
|
<div class="container" part="bibContainer">
|
|
14018
14805
|
<slot></slot>
|
|
14019
14806
|
</div>
|
|
@@ -14023,41 +14810,15 @@ class AuroDropdownBib extends r$4$1 {
|
|
|
14023
14810
|
|
|
14024
14811
|
var dropdownVersion$1 = '3.0.0';
|
|
14025
14812
|
|
|
14026
|
-
var styleCss$1$1 =
|
|
14027
|
-
|
|
14028
|
-
var colorCss$1$1 = i$7$1`.label{color:var(--ds-auro-dropdown-label-text-color)}.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)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
14029
|
-
|
|
14030
|
-
/**
|
|
14031
|
-
* @license
|
|
14032
|
-
* Copyright 2019 Google LLC
|
|
14033
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14034
|
-
*/
|
|
14035
|
-
const t$1$1=globalThis,e$2$1=t$1$1.ShadowRoot&&(void 0===t$1$1.ShadyCSS||t$1$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1$1=Symbol(),o$2$1=new WeakMap;let n$2$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2$1&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2$1.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2$1.set(s,t));}return t}toString(){return this.cssText}};const r$3$1=t=>new n$2$1("string"==typeof t?t:t+"",void 0,s$1$1),i$3$1=(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$1(o,t,s$1$1)},S$1$1=(s,o)=>{if(e$2$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2$1=e$2$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3$1(e)})(t):t;
|
|
14036
|
-
|
|
14037
|
-
/**
|
|
14038
|
-
* @license
|
|
14039
|
-
* Copyright 2017 Google LLC
|
|
14040
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14041
|
-
*/const{is:i$2$1,defineProperty:e$1$1,getOwnPropertyDescriptor:r$2$1,getOwnPropertyNames:h$1$1,getOwnPropertySymbols:o$1$1,getPrototypeOf:n$1$1}=Object,a$1$1=globalThis,c$1$1=a$1$1.trustedTypes,l$1$1=c$1$1?c$1$1.emptyScript:"",p$1$1=a$1$1.reactiveElementPolyfillSupport,d$1$1=(t,s)=>t,u$1$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$1$1: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$1=(t,s)=>!i$2$1(t,s),y$1$1={attribute:true,type:String,converter:u$1$1,reflect:false,hasChanged:f$1$1};Symbol.metadata??=Symbol("metadata"),a$1$1.litPropertyMetadata??=new WeakMap;let b$2 = class b 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=y$1$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$1$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1$1}static _$Ei(){if(this.hasOwnProperty(d$1$1("elementProperties")))return;const t=n$1$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1$1("properties"))){const t=this.properties,s=[...h$1$1(t),...o$1$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2$1(s));}else void 0!==s&&i.push(c$2$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1$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);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$1$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),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),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$1$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){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) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}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._$EU();}catch(s){throw t=false,this._$EU(),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);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$2.elementStyles=[],b$2.shadowRootOptions={mode:"open"},b$2[d$1$1("elementProperties")]=new Map,b$2[d$1$1("finalized")]=new Map,p$1$1?.({ReactiveElement:b$2}),(a$1$1.reactiveElementVersions??=[]).push("2.0.4");
|
|
14042
|
-
|
|
14043
|
-
/**
|
|
14044
|
-
* @license
|
|
14045
|
-
* Copyright 2017 Google LLC
|
|
14046
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14047
|
-
*/
|
|
14048
|
-
const t$6=globalThis,i$1$1=t$6.trustedTypes,s$6=i$1$1?i$1$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$8="$lit$",h$4=`lit$${Math.random().toFixed(9).slice(2)}$`,o$8="?"+h$4,n$7=`<${o$8}>`,r$1$1=document,l$5=()=>r$1$1.createComment(""),c$7=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$5=Array.isArray,u$7=t=>a$5(t)||"function"==typeof t?.[Symbol.iterator],d$4="[ \t\n\f\r]",f$4=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,_$2=/>/g,m$3=RegExp(`>|${d$4}(?:([^\\s"'>=/]+)(${d$4}*=${d$4}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$5=/'/g,g$2=/"/g,$$2=/^(?:script|style|textarea|title)$/i,y$4=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$2=y$4(1),T$2=Symbol.for("lit-noChange"),E$2=Symbol.for("lit-nothing"),A$2=new WeakMap,C$2=r$1$1.createTreeWalker(r$1$1,129);function P$2(t,i){if(!a$5(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$6?s$6.createHTML(i):i}const V$2=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$4;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$4?"!--"===u[1]?c=v$3:void 0!==u[1]?c=_$2:void 0!==u[2]?($$2.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$3):void 0!==u[3]&&(c=m$3):c===m$3?">"===u[0]?(c=r??f$4,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$3:'"'===u[3]?g$2:p$5):c===g$2||c===p$5?c=m$3:c===v$3||c===_$2?c=f$4:(c=m$3,r=void 0);const x=c===m$3&&t[i+1].startsWith("/>")?" ":"";l+=c===f$4?s+n$7:d>=0?(o.push(a),s.slice(0,d)+e$8+s.slice(d)+h$4+x):s+h$4+(-2===d?i:x);}return [P$2(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$2 = 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$2(t,s);if(this.el=N.createElement(f,n),C$2.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$2.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$8)){const i=v[a++],s=r.getAttribute(t).split(h$4),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$2:"?"===e[1]?I$2:"@"===e[1]?L$2:k$2}),r.removeAttribute(t);}else t.startsWith(h$4)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$2.test(r.tagName)){const t=r.textContent.split(h$4),s=t.length-1;if(s>0){r.textContent=i$1$1?i$1$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$5()),C$2.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$5());}}}else if(8===r.nodeType)if(r.data===o$8)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$4,t+1));)d.push({type:7,index:c}),t+=h$4.length-1;}c++;}}static createElement(t,i){const s=r$1$1.createElement("template");return s.innerHTML=t,s}};function S$4(t,i,s=t,e){if(i===T$2)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$7(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$4(t,h._$AS(t,i.values),h,e)),i}let M$3 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1$1).importNode(i,true);C$2.currentNode=e;let h=C$2.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$2(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$2(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$2.nextNode(),o++);}return C$2.currentNode=r$1$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$2 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$2,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$4(this,t,i),c$7(t)?t===E$2||null==t||""===t?(this._$AH!==E$2&&this._$AR(),this._$AH=E$2):t!==this._$AH&&t!==T$2&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$7(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$2&&c$7(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$2.createElement(P$2(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$3(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$2.get(t.strings);return void 0===i&&A$2.set(t.strings,i=new N$2(t)),i}k(t){a$5(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$5()),this.O(l$5()),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));}};let k$2 = 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$2,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$2;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$4(this,t,i,0),o=!c$7(t)||t!==this._$AH&&t!==T$2,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$4(this,e[s+n],i,n),r===T$2&&(r=this._$AH[n]),o||=!c$7(r)||r!==this._$AH[n],r===E$2?t=E$2:t!==E$2&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$2?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$2 = class H extends k$2{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$2?void 0:t;}};let I$2 = class I extends k$2{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$2);}};let L$2 = class L extends k$2{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$4(this,t,i,0)??E$2)===T$2)return;const s=this._$AH,e=t===E$2&&s!==E$2||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$2&&(s===E$2||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);}};let z$2 = 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$4(this,t);}};const j$2=t$6.litHtmlPolyfillSupport;j$2?.(N$2,R$2),(t$6.litHtmlVersions??=[]).push("3.2.1");const B$2=(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$2(i.insertBefore(l$5(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
14813
|
+
var styleCss$1$1 = css`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.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}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
14049
14814
|
|
|
14050
|
-
|
|
14051
|
-
* @license
|
|
14052
|
-
* Copyright 2017 Google LLC
|
|
14053
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14054
|
-
*/let r$9 = class r extends b$2{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 s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$2(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$2}};r$9._$litElement$=true,r$9["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$9});const i$a=globalThis.litElementPolyfillSupport;i$a?.({LitElement:r$9});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
14815
|
+
var colorCss$1$1 = css`.label{color:var(--ds-auro-dropdown-label-text-color)}.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)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
14055
14816
|
|
|
14056
|
-
var colorCss$5 =
|
|
14817
|
+
var colorCss$5 = css`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
14057
14818
|
|
|
14058
|
-
var styleCss$5 =
|
|
14819
|
+
var styleCss$5 = css`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}:host([large]) .helptext-wrapper{font-size:var(--ds-text-body-size-default, 1rem)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
14059
14820
|
|
|
14060
|
-
var tokensCss$5 =
|
|
14821
|
+
var tokensCss$5 = css`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
14061
14822
|
|
|
14062
14823
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14063
14824
|
// See LICENSE in the project root for license information.
|
|
@@ -14066,7 +14827,7 @@ var tokensCss$5 = i$3$1`:host{--ds-auro-helptext-color: var(--ds-color-text-tert
|
|
|
14066
14827
|
|
|
14067
14828
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
14068
14829
|
|
|
14069
|
-
let AuroLibraryRuntimeUtils$
|
|
14830
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
14070
14831
|
|
|
14071
14832
|
/* eslint-disable jsdoc/require-param */
|
|
14072
14833
|
|
|
@@ -14138,7 +14899,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
14138
14899
|
*
|
|
14139
14900
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
14140
14901
|
*/
|
|
14141
|
-
let AuroHelpText$1 = class AuroHelpText extends
|
|
14902
|
+
let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
14142
14903
|
|
|
14143
14904
|
constructor() {
|
|
14144
14905
|
super();
|
|
@@ -14146,7 +14907,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$9 {
|
|
|
14146
14907
|
this.error = false;
|
|
14147
14908
|
this.hasTextContent = false;
|
|
14148
14909
|
|
|
14149
|
-
AuroLibraryRuntimeUtils$
|
|
14910
|
+
AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
14150
14911
|
}
|
|
14151
14912
|
|
|
14152
14913
|
static get styles() {
|
|
@@ -14194,7 +14955,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$9 {
|
|
|
14194
14955
|
*
|
|
14195
14956
|
*/
|
|
14196
14957
|
static register(name = "auro-helptext") {
|
|
14197
|
-
AuroLibraryRuntimeUtils$
|
|
14958
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroHelpText);
|
|
14198
14959
|
}
|
|
14199
14960
|
|
|
14200
14961
|
updated() {
|
|
@@ -14242,7 +15003,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$9 {
|
|
|
14242
15003
|
|
|
14243
15004
|
// function that renders the HTML and CSS into the scope of the component
|
|
14244
15005
|
render() {
|
|
14245
|
-
return
|
|
15006
|
+
return html`
|
|
14246
15007
|
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
14247
15008
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
14248
15009
|
</div>
|
|
@@ -14268,7 +15029,7 @@ var helpTextVersion$1 = '1.0.0';
|
|
|
14268
15029
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
14269
15030
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
14270
15031
|
*/
|
|
14271
|
-
class AuroDropdown extends
|
|
15032
|
+
class AuroDropdown extends LitElement {
|
|
14272
15033
|
constructor() {
|
|
14273
15034
|
super();
|
|
14274
15035
|
|
|
@@ -14284,7 +15045,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14284
15045
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
14285
15046
|
*/
|
|
14286
15047
|
this.constructor.shadowRootOptions = {
|
|
14287
|
-
...
|
|
15048
|
+
...LitElement.shadowRootOptions,
|
|
14288
15049
|
delegatesFocus: true,
|
|
14289
15050
|
};
|
|
14290
15051
|
|
|
@@ -14327,7 +15088,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14327
15088
|
/**
|
|
14328
15089
|
* @private
|
|
14329
15090
|
*/
|
|
14330
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
15091
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
14331
15092
|
|
|
14332
15093
|
/**
|
|
14333
15094
|
* @private
|
|
@@ -14347,22 +15108,22 @@ class AuroDropdown extends r$4$1 {
|
|
|
14347
15108
|
/**
|
|
14348
15109
|
* Generate unique names for dependency components.
|
|
14349
15110
|
*/
|
|
14350
|
-
const versioning = new AuroDependencyVersioning$
|
|
15111
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
14351
15112
|
|
|
14352
15113
|
/**
|
|
14353
15114
|
* @private
|
|
14354
15115
|
*/
|
|
14355
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$1, AuroIcon$1);
|
|
15116
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion$1, AuroIcon$1);
|
|
14356
15117
|
|
|
14357
15118
|
/**
|
|
14358
15119
|
* @private
|
|
14359
15120
|
*/
|
|
14360
|
-
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
15121
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
14361
15122
|
|
|
14362
15123
|
/**
|
|
14363
15124
|
* @private
|
|
14364
15125
|
*/
|
|
14365
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
15126
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
14366
15127
|
}
|
|
14367
15128
|
|
|
14368
15129
|
/**
|
|
@@ -14565,7 +15326,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14565
15326
|
*
|
|
14566
15327
|
*/
|
|
14567
15328
|
static register(name = "auro-dropdown") {
|
|
14568
|
-
AuroLibraryRuntimeUtils$
|
|
15329
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
|
|
14569
15330
|
}
|
|
14570
15331
|
|
|
14571
15332
|
connectedCallback() {
|
|
@@ -14588,6 +15349,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14588
15349
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
14589
15350
|
this.handleTriggerContentSlotChange();
|
|
14590
15351
|
}
|
|
15352
|
+
|
|
14591
15353
|
}
|
|
14592
15354
|
|
|
14593
15355
|
firstUpdated() {
|
|
@@ -14764,7 +15526,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14764
15526
|
|
|
14765
15527
|
// function that renders the HTML and CSS into the scope of the component
|
|
14766
15528
|
render() {
|
|
14767
|
-
return
|
|
15529
|
+
return html$1`
|
|
14768
15530
|
<div>
|
|
14769
15531
|
<div
|
|
14770
15532
|
id="trigger"
|
|
@@ -14784,7 +15546,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14784
15546
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
14785
15547
|
</div>
|
|
14786
15548
|
</div>
|
|
14787
|
-
${this.chevron || this.common ?
|
|
15549
|
+
${this.chevron || this.common ? html$1`
|
|
14788
15550
|
<div
|
|
14789
15551
|
id="showStateIcon"
|
|
14790
15552
|
part="chevron">
|
|
@@ -14820,52 +15582,6 @@ class AuroDropdown extends r$4$1 {
|
|
|
14820
15582
|
|
|
14821
15583
|
var dropdownVersion = '3.0.0';
|
|
14822
15584
|
|
|
14823
|
-
/**
|
|
14824
|
-
* @license
|
|
14825
|
-
* Copyright 2017 Google LLC
|
|
14826
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14827
|
-
*/
|
|
14828
|
-
const t$5=globalThis,i$9=t$5.trustedTypes,s$5=i$9?i$9.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$7="$lit$",h$3=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$3,n$6=`<${o$7}>`,r$8=document,l$4=()=>r$8.createComment(""),c$6=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$6=t=>a$4(t)||"function"==typeof t?.[Symbol.iterator],d$3="[ \t\n\f\r]",f$3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$2=/-->/g,_$1=/>/g,m$2=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$4=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$3=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$3(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$8.createTreeWalker(r$8,129);function P$1(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$5?s$5.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$3;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$3?"!--"===u[1]?c=v$2:void 0!==u[1]?c=_$1:void 0!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):void 0!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$3,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$2:'"'===u[3]?g$1:p$4):c===g$1||c===p$4?c=m$2:c===v$2||c===_$1?c=f$3:(c=m$2,r=void 0);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$3?s+n$6:d>=0?(o.push(a),s.slice(0,d)+e$7+s.slice(d)+h$3+x):s+h$3+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = 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$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$7)){const i=v[a++],s=r.getAttribute(t).split(h$3),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$3)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$3),s=t.length-1;if(s>0){r.textContent=i$9?i$9.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$4()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$4());}}}else if(8===r.nodeType)if(r.data===o$7)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$3,t+1));)d.push({type:7,index:c}),t+=h$3.length-1;}c++;}}static createElement(t,i){const s=r$8.createElement("template");return s.innerHTML=t,s}};function S$3(t,i,s=t,e){if(i===T$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$6(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$3(t,h._$AS(t,i.values),h,e)),i}let M$2 = 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$8).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1(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$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$8,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++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,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$3(this,t,i),c$6(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$6(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$1&&c$6(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$8.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$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$2(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return void 0===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$4(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$4()),this.O(l$4()),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));}};let k$1 = 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$1,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$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$3(this,t,i,0),o=!c$6(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$3(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$6(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1 = class H extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?void 0:t;}};let I$1 = class I extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}};let L$1 = class L extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$3(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||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);}};let z$1 = 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$3(this,t);}};const Z={I:R$1},j$1=t$5.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$5.litHtmlVersions??=[]).push("3.2.1");const B$1=(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$1(i.insertBefore(l$4(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
14829
|
-
|
|
14830
|
-
/**
|
|
14831
|
-
* @license
|
|
14832
|
-
* Copyright 2020 Google LLC
|
|
14833
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14834
|
-
*/
|
|
14835
|
-
const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$4=t=>({_$litStatic$:t,r:a$3}),i$8=(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$3}),l$3=new Map,n$5=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$6(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$3.get(t))&&(n.raw=n,l$3.set(t,r=n)),e=u;}return t(r,...e)},u$5=n$5(x$1);
|
|
14836
|
-
|
|
14837
|
-
/**
|
|
14838
|
-
* @license
|
|
14839
|
-
* Copyright 2017 Google LLC
|
|
14840
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14841
|
-
*/
|
|
14842
|
-
const t$4={ATTRIBUTE:1,CHILD:2},e$6=t=>(...e)=>({_$litDirective$:t,values:e});let i$7 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
14843
|
-
|
|
14844
|
-
/**
|
|
14845
|
-
* @license
|
|
14846
|
-
* Copyright 2020 Google LLC
|
|
14847
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14848
|
-
*/const {I:t$3}=Z,s$3=()=>document.createComment(""),r$7=(o,i,n)=>{const e=o._$AA.parentNode,l=void 0===i?o._$AB:i._$AA;if(void 0===n){const i=e.insertBefore(s$3(),l),c=e.insertBefore(s$3(),l);n=new t$3(i,c,o,o.options);}else {const t=n._$AB.nextSibling,i=n._$AM,c=i!==o;if(c){let t;n._$AQ?.(o),n._$AM=o,void 0!==n._$AP&&(t=o._$AU)!==i._$AU&&n._$AP(t);}if(t!==l||c){let o=n._$AA;for(;o!==t;){const t=o.nextSibling;e.insertBefore(o,l),o=t;}}}return n},v$1=(o,t,i=o)=>(o._$AI(t,i),o),u$4={},m$1=(o,t=u$4)=>o._$AH=t,p$3=o=>o._$AH,M$1=o=>{o._$AP?.(false,true);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o;}};
|
|
14849
|
-
|
|
14850
|
-
/**
|
|
14851
|
-
* @license
|
|
14852
|
-
* Copyright 2017 Google LLC
|
|
14853
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14854
|
-
*/
|
|
14855
|
-
const u$3=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c$5=e$6(class extends i$7{constructor(e){if(super(e),e.type!==t$4.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,c]){const d=p$3(s),{values:p,keys:a}=this.dt(t,r,c);if(!Array.isArray(d))return this.ut=a,p;const h=this.ut??=[],v=[];let m,y,x=0,j=d.length-1,k=0,w=p.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[k]=v$1(d[x],p[k]),x++,k++;else if(h[j]===a[w])v[w]=v$1(d[j],p[w]),j--,w--;else if(h[x]===a[w])v[w]=v$1(d[x],p[w]),r$7(s,v[w+1],d[x]),x++,w--;else if(h[j]===a[k])v[k]=v$1(d[j],p[k]),r$7(s,d[x],d[j]),j--,k++;else if(void 0===m&&(m=u$3(a,k,w),y=u$3(h,x,j)),m.has(h[x]))if(m.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r$7(s,d[x]);v$1(e,p[k]),v[k]=e;}else v[k]=v$1(t,p[k]),r$7(s,d[x],t),d[e]=null;k++;}else M$1(d[j]),j--;else M$1(d[x]),x++;for(;k<=w;){const e=r$7(s,v[w+1]);v$1(e,p[k]),v[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M$1(e);}return this.ut=a,m$1(s,v),T$1}});
|
|
14856
|
-
|
|
14857
|
-
/**
|
|
14858
|
-
* @license
|
|
14859
|
-
* Copyright 2018 Google LLC
|
|
14860
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14861
|
-
*/const e$5=e$6(class extends i$7{constructor(t){if(super(t),t.type!==t$4.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$1}});
|
|
14862
|
-
|
|
14863
|
-
/**
|
|
14864
|
-
* @license
|
|
14865
|
-
* Copyright 2018 Google LLC
|
|
14866
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14867
|
-
*/const o$5=o=>o??E$1;
|
|
14868
|
-
|
|
14869
15585
|
const watchedItems = new Set();
|
|
14870
15586
|
|
|
14871
15587
|
|
|
@@ -14987,30 +15703,11 @@ function stopNotifyingOnLangChange(element) {
|
|
|
14987
15703
|
watchedItems.delete(element);
|
|
14988
15704
|
}
|
|
14989
15705
|
|
|
14990
|
-
|
|
14991
|
-
* @license
|
|
14992
|
-
* Copyright 2019 Google LLC
|
|
14993
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14994
|
-
*/
|
|
14995
|
-
const t$2=globalThis,e$4=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$4 = 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$4&&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$6=t=>new n$4("string"==typeof t?t:t+"",void 0,s$2),i$6=(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$2)},S$2=(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$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$4=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6(e)})(t):t;
|
|
14996
|
-
|
|
14997
|
-
/**
|
|
14998
|
-
* @license
|
|
14999
|
-
* Copyright 2017 Google LLC
|
|
15000
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15001
|
-
*/const{is:i$5,defineProperty:e$3,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$3,getPrototypeOf:n$3}=Object,a$2=globalThis,c$3=a$2.trustedTypes,l$2=c$3?c$3.emptyScript:"",p$2=a$2.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$2={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$2=(t,s)=>!i$5(t,s),y$2={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let b$1 = class b 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=y$2){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$3(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$5(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$2}static _$Ei(){if(this.hasOwnProperty(d$2("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$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2("properties"))){const t=this.properties,s=[...h$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$4(s));}else void 0!==s&&i.push(c$4(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$2(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);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),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),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){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) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}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._$EU();}catch(s){throw t=false,this._$EU(),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);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$2("elementProperties")]=new Map,b$1[d$2("finalized")]=new Map,p$2?.({ReactiveElement:b$1}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
15002
|
-
|
|
15003
|
-
/**
|
|
15004
|
-
* @license
|
|
15005
|
-
* Copyright 2017 Google LLC
|
|
15006
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15007
|
-
*/let r$4 = class r extends b$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 s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$4._$litElement$=true,r$4["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4});const i$4=globalThis.litElementPolyfillSupport;i$4?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
15008
|
-
|
|
15009
|
-
var styleCss$4 = i$6`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
15706
|
+
var styleCss$4 = css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
15010
15707
|
|
|
15011
|
-
var colorCss$4 =
|
|
15708
|
+
var colorCss$4 = css`.wrapper{border-color:transparent}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-input-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}label{color:var(--ds-auro-input-label-text-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host(:not([borderless])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host(:not([borderless])) .wrapper:focus-within:before{border-bottom-color:transparent}:host([validity]:not([validity=valid])){--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-input-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
15012
15709
|
|
|
15013
|
-
var tokensCss$4 =
|
|
15710
|
+
var tokensCss$4 = css`:host{--ds-auro-input-border-color: var(--ds-color-border-secondary-default, #939fad);--ds-auro-input-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-input-caret-color: var(--ds-color-text-ui-focus-default, #2c67b5);--ds-auro-input-label-text-color: var(--ds-color-text-tertiary-default, #6a717c);--ds-auro-input-placeholder-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
15014
15711
|
|
|
15015
15712
|
/** Checks if value is string */
|
|
15016
15713
|
function isString(str) {
|
|
@@ -18861,7 +19558,7 @@ class AuroInputUtilities {
|
|
|
18861
19558
|
|
|
18862
19559
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
18863
19560
|
|
|
18864
|
-
let AuroLibraryRuntimeUtils$
|
|
19561
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
18865
19562
|
|
|
18866
19563
|
/* eslint-disable jsdoc/require-param */
|
|
18867
19564
|
|
|
@@ -18930,7 +19627,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
18930
19627
|
|
|
18931
19628
|
class AuroFormValidation {
|
|
18932
19629
|
constructor() {
|
|
18933
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
19630
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
18934
19631
|
}
|
|
18935
19632
|
|
|
18936
19633
|
/**
|
|
@@ -19257,7 +19954,7 @@ class AuroFormValidation {
|
|
|
19257
19954
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
19258
19955
|
*/
|
|
19259
19956
|
|
|
19260
|
-
class BaseInput extends
|
|
19957
|
+
class BaseInput extends LitElement {
|
|
19261
19958
|
|
|
19262
19959
|
constructor() {
|
|
19263
19960
|
super();
|
|
@@ -19608,9 +20305,9 @@ class BaseInput extends r$4 {
|
|
|
19608
20305
|
|
|
19609
20306
|
static get styles() {
|
|
19610
20307
|
return [
|
|
19611
|
-
|
|
19612
|
-
|
|
19613
|
-
|
|
20308
|
+
css`${colorCss$4}`,
|
|
20309
|
+
css`${styleCss$4}`,
|
|
20310
|
+
css`${tokensCss$4}`
|
|
19614
20311
|
];
|
|
19615
20312
|
}
|
|
19616
20313
|
|
|
@@ -20194,7 +20891,7 @@ class BaseInput extends r$4 {
|
|
|
20194
20891
|
// See LICENSE in the project root for license information.
|
|
20195
20892
|
|
|
20196
20893
|
|
|
20197
|
-
class AuroDependencyVersioning {
|
|
20894
|
+
let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
20198
20895
|
|
|
20199
20896
|
/**
|
|
20200
20897
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -20220,7 +20917,7 @@ class AuroDependencyVersioning {
|
|
|
20220
20917
|
*/
|
|
20221
20918
|
generateTag(baseName, version, tagClass) {
|
|
20222
20919
|
const elementName = this.generateElementName(baseName, version);
|
|
20223
|
-
const tag =
|
|
20920
|
+
const tag = literal`${unsafeStatic(elementName)}`;
|
|
20224
20921
|
|
|
20225
20922
|
if (!customElements.get(elementName)) {
|
|
20226
20923
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -20228,7 +20925,7 @@ class AuroDependencyVersioning {
|
|
|
20228
20925
|
|
|
20229
20926
|
return tag;
|
|
20230
20927
|
}
|
|
20231
|
-
}
|
|
20928
|
+
};
|
|
20232
20929
|
|
|
20233
20930
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20234
20931
|
// See LICENSE in the project root for license information.
|
|
@@ -20240,7 +20937,7 @@ class AuroDependencyVersioning {
|
|
|
20240
20937
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
20241
20938
|
*/
|
|
20242
20939
|
|
|
20243
|
-
class AuroElement extends
|
|
20940
|
+
class AuroElement extends LitElement {
|
|
20244
20941
|
|
|
20245
20942
|
// function to define props used within the scope of this component
|
|
20246
20943
|
static get properties() {
|
|
@@ -20296,7 +20993,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
20296
20993
|
return _fetchMap.get(uri);
|
|
20297
20994
|
};
|
|
20298
20995
|
|
|
20299
|
-
var styleCss$3 =
|
|
20996
|
+
var styleCss$3 = css`: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}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}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}`;
|
|
20300
20997
|
|
|
20301
20998
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20302
20999
|
// See LICENSE in the project root for license information.
|
|
@@ -20335,7 +21032,7 @@ class BaseIcon extends AuroElement {
|
|
|
20335
21032
|
}
|
|
20336
21033
|
|
|
20337
21034
|
static get styles() {
|
|
20338
|
-
return
|
|
21035
|
+
return css`
|
|
20339
21036
|
${styleCss$3}
|
|
20340
21037
|
`;
|
|
20341
21038
|
}
|
|
@@ -20377,47 +21074,88 @@ class BaseIcon extends AuroElement {
|
|
|
20377
21074
|
}
|
|
20378
21075
|
}
|
|
20379
21076
|
|
|
20380
|
-
var tokensCss$3 =
|
|
21077
|
+
var tokensCss$3 = css`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
20381
21078
|
|
|
20382
|
-
var colorCss$3 =
|
|
21079
|
+
var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
20383
21080
|
|
|
20384
|
-
// Copyright (c)
|
|
21081
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
20385
21082
|
// See LICENSE in the project root for license information.
|
|
20386
21083
|
|
|
21084
|
+
// ---------------------------------------------------------------------
|
|
21085
|
+
|
|
21086
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21087
|
+
|
|
21088
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
21089
|
+
|
|
21090
|
+
/* eslint-disable jsdoc/require-param */
|
|
21091
|
+
|
|
21092
|
+
/**
|
|
21093
|
+
* This will register a new custom element with the browser.
|
|
21094
|
+
* @param {String} name - The name of the custom element.
|
|
21095
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
21096
|
+
* @returns {void}
|
|
21097
|
+
*/
|
|
21098
|
+
registerComponent(name, componentClass) {
|
|
21099
|
+
if (!customElements.get(name)) {
|
|
21100
|
+
customElements.define(name, class extends componentClass {});
|
|
21101
|
+
}
|
|
21102
|
+
}
|
|
21103
|
+
|
|
21104
|
+
/**
|
|
21105
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
21106
|
+
* @returns {void}
|
|
21107
|
+
*/
|
|
21108
|
+
closestElement(
|
|
21109
|
+
selector, // selector like in .closest()
|
|
21110
|
+
base = this, // extra functionality to skip a parent
|
|
21111
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21112
|
+
!el || el === document || el === window
|
|
21113
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
21114
|
+
: found
|
|
21115
|
+
? found // found a selector INside this element
|
|
21116
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21117
|
+
) {
|
|
21118
|
+
return __Closest(base);
|
|
21119
|
+
}
|
|
21120
|
+
/* eslint-enable jsdoc/require-param */
|
|
21121
|
+
|
|
21122
|
+
/**
|
|
21123
|
+
* 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.
|
|
21124
|
+
* @param {Object} elem - The element to check.
|
|
21125
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21126
|
+
* @returns {void}
|
|
21127
|
+
*/
|
|
21128
|
+
handleComponentTagRename(elem, tagName) {
|
|
21129
|
+
const tag = tagName.toLowerCase();
|
|
21130
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21131
|
+
|
|
21132
|
+
if (elemTag !== tag) {
|
|
21133
|
+
elem.setAttribute(tag, true);
|
|
21134
|
+
}
|
|
21135
|
+
}
|
|
21136
|
+
|
|
21137
|
+
/**
|
|
21138
|
+
* Validates if an element is a specific Auro component.
|
|
21139
|
+
* @param {Object} elem - The element to validate.
|
|
21140
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
21141
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21142
|
+
*/
|
|
21143
|
+
elementMatch(elem, tagName) {
|
|
21144
|
+
const tag = tagName.toLowerCase();
|
|
21145
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21146
|
+
|
|
21147
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
21148
|
+
}
|
|
21149
|
+
};
|
|
21150
|
+
|
|
21151
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21152
|
+
// See LICENSE in the project root for license information.
|
|
20387
21153
|
|
|
20388
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
20389
|
-
/**
|
|
20390
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
20391
|
-
*
|
|
20392
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
20393
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
20394
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
20395
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
20396
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
20397
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
20398
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
20399
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
20400
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
20401
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
20402
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
20403
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
20404
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
20405
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
20406
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
20407
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
20408
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
20409
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
20410
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
20411
|
-
* @slot svg - Used for custom SVG content.
|
|
20412
|
-
*/
|
|
20413
21154
|
|
|
20414
|
-
// build the component class
|
|
20415
21155
|
class AuroIcon extends BaseIcon {
|
|
20416
21156
|
constructor() {
|
|
20417
21157
|
super();
|
|
20418
21158
|
|
|
20419
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
20420
|
-
|
|
20421
21159
|
this.privateDefaults();
|
|
20422
21160
|
}
|
|
20423
21161
|
|
|
@@ -20441,78 +21179,144 @@ class AuroIcon extends BaseIcon {
|
|
|
20441
21179
|
this.success = false;
|
|
20442
21180
|
this.tertiary = false;
|
|
20443
21181
|
this.warning = false;
|
|
20444
|
-
this.
|
|
21182
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
21183
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
20445
21184
|
}
|
|
20446
21185
|
|
|
20447
21186
|
// function to define props used within the scope of this component
|
|
20448
21187
|
static get properties() {
|
|
20449
21188
|
return {
|
|
20450
21189
|
...super.properties,
|
|
21190
|
+
|
|
21191
|
+
/**
|
|
21192
|
+
* Sets the icon to use the accent style.
|
|
21193
|
+
*/
|
|
20451
21194
|
accent: {
|
|
20452
21195
|
type: Boolean,
|
|
20453
21196
|
reflect: true
|
|
20454
21197
|
},
|
|
21198
|
+
|
|
21199
|
+
/**
|
|
21200
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
21201
|
+
*/
|
|
20455
21202
|
ariaHidden: {
|
|
20456
21203
|
type: String,
|
|
20457
21204
|
reflect: true
|
|
20458
21205
|
},
|
|
21206
|
+
|
|
21207
|
+
/**
|
|
21208
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
21209
|
+
*/
|
|
20459
21210
|
category: {
|
|
20460
21211
|
type: String,
|
|
20461
21212
|
reflect: true
|
|
20462
21213
|
},
|
|
21214
|
+
|
|
21215
|
+
/**
|
|
21216
|
+
* Allows custom color to be set.
|
|
21217
|
+
*/
|
|
20463
21218
|
customColor: {
|
|
20464
21219
|
type: Boolean
|
|
20465
21220
|
},
|
|
21221
|
+
|
|
21222
|
+
/**
|
|
21223
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
21224
|
+
*/
|
|
20466
21225
|
customSvg: {
|
|
20467
21226
|
type: Boolean
|
|
20468
21227
|
},
|
|
21228
|
+
|
|
21229
|
+
/**
|
|
21230
|
+
* Sets the icon to use the disabled style.
|
|
21231
|
+
*/
|
|
20469
21232
|
disabled: {
|
|
20470
21233
|
type: Boolean,
|
|
20471
21234
|
reflect: true
|
|
20472
21235
|
},
|
|
21236
|
+
|
|
21237
|
+
/**
|
|
21238
|
+
* Sets the icon to use the emphasis style.
|
|
21239
|
+
*/
|
|
20473
21240
|
emphasis: {
|
|
20474
21241
|
type: Boolean,
|
|
20475
21242
|
reflect: true
|
|
20476
21243
|
},
|
|
21244
|
+
|
|
21245
|
+
/**
|
|
21246
|
+
* Sets the icon to use the error style.
|
|
21247
|
+
*/
|
|
20477
21248
|
error: {
|
|
20478
21249
|
type: Boolean,
|
|
20479
21250
|
reflect: true
|
|
20480
21251
|
},
|
|
21252
|
+
|
|
21253
|
+
/**
|
|
21254
|
+
* Sets the icon to use the info style.
|
|
21255
|
+
*/
|
|
20481
21256
|
info: {
|
|
20482
21257
|
type: Boolean,
|
|
20483
21258
|
reflect: true
|
|
20484
21259
|
},
|
|
21260
|
+
|
|
21261
|
+
/**
|
|
21262
|
+
* Exposes content in slot as icon label.
|
|
21263
|
+
*/
|
|
20485
21264
|
label: {
|
|
20486
21265
|
type: Boolean,
|
|
20487
21266
|
reflect: true
|
|
20488
21267
|
},
|
|
21268
|
+
|
|
21269
|
+
/**
|
|
21270
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
21271
|
+
*/
|
|
20489
21272
|
name: {
|
|
20490
21273
|
type: String,
|
|
20491
21274
|
reflect: true
|
|
20492
21275
|
},
|
|
21276
|
+
|
|
21277
|
+
/**
|
|
21278
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
21279
|
+
*/
|
|
20493
21280
|
primary: {
|
|
20494
21281
|
type: Boolean,
|
|
20495
21282
|
reflect: true
|
|
20496
21283
|
},
|
|
21284
|
+
|
|
21285
|
+
/**
|
|
21286
|
+
* Sets the icon to use the secondary style.
|
|
21287
|
+
*/
|
|
20497
21288
|
secondary: {
|
|
20498
21289
|
type: Boolean,
|
|
20499
21290
|
reflect: true
|
|
20500
21291
|
},
|
|
21292
|
+
|
|
21293
|
+
/**
|
|
21294
|
+
* Sets the icon to use the subtle style.
|
|
21295
|
+
*/
|
|
20501
21296
|
subtle: {
|
|
20502
21297
|
type: Boolean,
|
|
20503
21298
|
reflect: true
|
|
20504
21299
|
},
|
|
21300
|
+
|
|
21301
|
+
/**
|
|
21302
|
+
* Sets the icon to use the success style.
|
|
21303
|
+
*/
|
|
20505
21304
|
success: {
|
|
20506
21305
|
type: Boolean,
|
|
20507
21306
|
reflect: true
|
|
20508
21307
|
},
|
|
21308
|
+
|
|
21309
|
+
/**
|
|
21310
|
+
* Sets the icon to use the tertiary style.
|
|
21311
|
+
*/
|
|
20509
21312
|
tertiary: {
|
|
20510
21313
|
type: Boolean,
|
|
20511
21314
|
reflect: true
|
|
20512
21315
|
},
|
|
20513
|
-
|
|
20514
|
-
|
|
20515
|
-
|
|
21316
|
+
|
|
21317
|
+
/**
|
|
21318
|
+
* Sets the icon to use the warning style.
|
|
21319
|
+
*/
|
|
20516
21320
|
warning: {
|
|
20517
21321
|
type: Boolean,
|
|
20518
21322
|
reflect: true
|
|
@@ -20523,9 +21327,9 @@ class AuroIcon extends BaseIcon {
|
|
|
20523
21327
|
static get styles() {
|
|
20524
21328
|
return [
|
|
20525
21329
|
super.styles,
|
|
20526
|
-
|
|
20527
|
-
|
|
20528
|
-
|
|
21330
|
+
css`${tokensCss$3}`,
|
|
21331
|
+
css`${styleCss$3}`,
|
|
21332
|
+
css`${colorCss$3}`
|
|
20529
21333
|
];
|
|
20530
21334
|
}
|
|
20531
21335
|
|
|
@@ -20538,7 +21342,7 @@ class AuroIcon extends BaseIcon {
|
|
|
20538
21342
|
*
|
|
20539
21343
|
*/
|
|
20540
21344
|
static register(name = "auro-icon") {
|
|
20541
|
-
AuroLibraryRuntimeUtils$
|
|
21345
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
|
|
20542
21346
|
}
|
|
20543
21347
|
|
|
20544
21348
|
connectedCallback() {
|
|
@@ -20549,38 +21353,54 @@ class AuroIcon extends BaseIcon {
|
|
|
20549
21353
|
}
|
|
20550
21354
|
|
|
20551
21355
|
/**
|
|
21356
|
+
* @private
|
|
20552
21357
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
20553
21358
|
*/
|
|
20554
21359
|
exposeCssParts() {
|
|
20555
21360
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
20556
21361
|
}
|
|
20557
21362
|
|
|
21363
|
+
async firstUpdated() {
|
|
21364
|
+
await super.firstUpdated();
|
|
21365
|
+
|
|
21366
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
21367
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
21368
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
21369
|
+
|
|
21370
|
+
if (svgDesc) {
|
|
21371
|
+
svgDesc.remove();
|
|
21372
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
21373
|
+
}
|
|
21374
|
+
}
|
|
21375
|
+
}
|
|
21376
|
+
|
|
20558
21377
|
// function that renders the HTML and CSS into the scope of the component
|
|
20559
21378
|
render() {
|
|
20560
|
-
const
|
|
20561
|
-
'
|
|
21379
|
+
const labelClasses = {
|
|
21380
|
+
'labelWrapper': true,
|
|
20562
21381
|
'util_displayHiddenVisually': !this.label
|
|
20563
21382
|
};
|
|
20564
21383
|
|
|
20565
|
-
const
|
|
20566
|
-
'
|
|
20567
|
-
'wrapper': true,
|
|
21384
|
+
const svgClasses = {
|
|
21385
|
+
'svgWrapper': true,
|
|
20568
21386
|
};
|
|
20569
21387
|
|
|
20570
|
-
return
|
|
20571
|
-
<div
|
|
20572
|
-
|
|
20573
|
-
|
|
20574
|
-
|
|
20575
|
-
${this.
|
|
20576
|
-
|
|
20577
|
-
|
|
20578
|
-
|
|
20579
|
-
|
|
20580
|
-
|
|
20581
|
-
|
|
21388
|
+
return html`
|
|
21389
|
+
<div class="componentWrapper">
|
|
21390
|
+
<div
|
|
21391
|
+
class="${classMap(svgClasses)}"
|
|
21392
|
+
title="${ifDefined(this.title || undefined)}">
|
|
21393
|
+
<span aria-hidden="${ifDefined(this.ariaHidden || true)}" part="svg">
|
|
21394
|
+
${this.customSvg ? html`
|
|
21395
|
+
<slot name="svg"></slot>
|
|
21396
|
+
` : html`
|
|
21397
|
+
${this.svg}
|
|
21398
|
+
`
|
|
21399
|
+
}
|
|
21400
|
+
</span>
|
|
21401
|
+
</div>
|
|
20582
21402
|
|
|
20583
|
-
<div class="${
|
|
21403
|
+
<div class="${classMap(labelClasses)}">
|
|
20584
21404
|
<slot></slot>
|
|
20585
21405
|
</div>
|
|
20586
21406
|
</div>
|
|
@@ -20590,17 +21410,197 @@ class AuroIcon extends BaseIcon {
|
|
|
20590
21410
|
|
|
20591
21411
|
var iconVersion = '6.1.2';
|
|
20592
21412
|
|
|
20593
|
-
|
|
21413
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21414
|
+
// See LICENSE in the project root for license information.
|
|
21415
|
+
|
|
21416
|
+
|
|
21417
|
+
class AuroDependencyVersioning {
|
|
21418
|
+
|
|
21419
|
+
/**
|
|
21420
|
+
* Generates a unique string to be used for child auro element naming.
|
|
21421
|
+
* @private
|
|
21422
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
21423
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
21424
|
+
* @returns {string} - Unique string to be used for naming.
|
|
21425
|
+
*/
|
|
21426
|
+
generateElementName(baseName, version) {
|
|
21427
|
+
let result = baseName;
|
|
21428
|
+
|
|
21429
|
+
result += '-';
|
|
21430
|
+
result += version.replace(/[.]/g, '_');
|
|
21431
|
+
|
|
21432
|
+
return result;
|
|
21433
|
+
}
|
|
21434
|
+
|
|
21435
|
+
/**
|
|
21436
|
+
* Generates a unique string to be used for child auro element naming.
|
|
21437
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
21438
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
21439
|
+
* @returns {string} - Unique string to be used for naming.
|
|
21440
|
+
*/
|
|
21441
|
+
generateTag(baseName, version, tagClass) {
|
|
21442
|
+
const elementName = this.generateElementName(baseName, version);
|
|
21443
|
+
const tag = literal`${unsafeStatic(elementName)}`;
|
|
21444
|
+
|
|
21445
|
+
if (!customElements.get(elementName)) {
|
|
21446
|
+
customElements.define(elementName, class extends tagClass {});
|
|
21447
|
+
}
|
|
21448
|
+
|
|
21449
|
+
return tag;
|
|
21450
|
+
}
|
|
21451
|
+
}
|
|
21452
|
+
|
|
21453
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21454
|
+
// See LICENSE in the project root for license information.
|
|
21455
|
+
|
|
21456
|
+
// ---------------------------------------------------------------------
|
|
21457
|
+
|
|
21458
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21459
|
+
|
|
21460
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
21461
|
+
|
|
21462
|
+
/* eslint-disable jsdoc/require-param */
|
|
21463
|
+
|
|
21464
|
+
/**
|
|
21465
|
+
* This will register a new custom element with the browser.
|
|
21466
|
+
* @param {String} name - The name of the custom element.
|
|
21467
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
21468
|
+
* @returns {void}
|
|
21469
|
+
*/
|
|
21470
|
+
registerComponent(name, componentClass) {
|
|
21471
|
+
if (!customElements.get(name)) {
|
|
21472
|
+
customElements.define(name, class extends componentClass {});
|
|
21473
|
+
}
|
|
21474
|
+
}
|
|
21475
|
+
|
|
21476
|
+
/**
|
|
21477
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
21478
|
+
* @returns {void}
|
|
21479
|
+
*/
|
|
21480
|
+
closestElement(
|
|
21481
|
+
selector, // selector like in .closest()
|
|
21482
|
+
base = this, // extra functionality to skip a parent
|
|
21483
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21484
|
+
!el || el === document || el === window
|
|
21485
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
21486
|
+
: found
|
|
21487
|
+
? found // found a selector INside this element
|
|
21488
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21489
|
+
) {
|
|
21490
|
+
return __Closest(base);
|
|
21491
|
+
}
|
|
21492
|
+
/* eslint-enable jsdoc/require-param */
|
|
21493
|
+
|
|
21494
|
+
/**
|
|
21495
|
+
* 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.
|
|
21496
|
+
* @param {Object} elem - The element to check.
|
|
21497
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21498
|
+
* @returns {void}
|
|
21499
|
+
*/
|
|
21500
|
+
handleComponentTagRename(elem, tagName) {
|
|
21501
|
+
const tag = tagName.toLowerCase();
|
|
21502
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21503
|
+
|
|
21504
|
+
if (elemTag !== tag) {
|
|
21505
|
+
elem.setAttribute(tag, true);
|
|
21506
|
+
}
|
|
21507
|
+
}
|
|
21508
|
+
|
|
21509
|
+
/**
|
|
21510
|
+
* Validates if an element is a specific Auro component.
|
|
21511
|
+
* @param {Object} elem - The element to validate.
|
|
21512
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
21513
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21514
|
+
*/
|
|
21515
|
+
elementMatch(elem, tagName) {
|
|
21516
|
+
const tag = tagName.toLowerCase();
|
|
21517
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21518
|
+
|
|
21519
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
21520
|
+
}
|
|
21521
|
+
};
|
|
21522
|
+
|
|
21523
|
+
var styleCss$2 = css`: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-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);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:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.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-size:var(--ds-text-body-size-sm, 0.875rem);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, $ds-size-300)}.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, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.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}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, $ds-size-300)}: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}`;
|
|
21524
|
+
|
|
21525
|
+
var colorCss$2 = css`[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:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.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-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color:var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.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-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
21526
|
+
|
|
21527
|
+
var tokensCss$2 = css`:host{--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color:var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
21528
|
+
|
|
21529
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21530
|
+
// See LICENSE in the project root for license information.
|
|
21531
|
+
|
|
21532
|
+
// ---------------------------------------------------------------------
|
|
21533
|
+
|
|
21534
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21535
|
+
|
|
21536
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
21537
|
+
|
|
21538
|
+
/* eslint-disable jsdoc/require-param */
|
|
21539
|
+
|
|
21540
|
+
/**
|
|
21541
|
+
* This will register a new custom element with the browser.
|
|
21542
|
+
* @param {String} name - The name of the custom element.
|
|
21543
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
21544
|
+
* @returns {void}
|
|
21545
|
+
*/
|
|
21546
|
+
registerComponent(name, componentClass) {
|
|
21547
|
+
if (!customElements.get(name)) {
|
|
21548
|
+
customElements.define(name, class extends componentClass {});
|
|
21549
|
+
}
|
|
21550
|
+
}
|
|
21551
|
+
|
|
21552
|
+
/**
|
|
21553
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
21554
|
+
* @returns {void}
|
|
21555
|
+
*/
|
|
21556
|
+
closestElement(
|
|
21557
|
+
selector, // selector like in .closest()
|
|
21558
|
+
base = this, // extra functionality to skip a parent
|
|
21559
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21560
|
+
!el || el === document || el === window
|
|
21561
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
21562
|
+
: found
|
|
21563
|
+
? found // found a selector INside this element
|
|
21564
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21565
|
+
) {
|
|
21566
|
+
return __Closest(base);
|
|
21567
|
+
}
|
|
21568
|
+
/* eslint-enable jsdoc/require-param */
|
|
21569
|
+
|
|
21570
|
+
/**
|
|
21571
|
+
* 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.
|
|
21572
|
+
* @param {Object} elem - The element to check.
|
|
21573
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21574
|
+
* @returns {void}
|
|
21575
|
+
*/
|
|
21576
|
+
handleComponentTagRename(elem, tagName) {
|
|
21577
|
+
const tag = tagName.toLowerCase();
|
|
21578
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21579
|
+
|
|
21580
|
+
if (elemTag !== tag) {
|
|
21581
|
+
elem.setAttribute(tag, true);
|
|
21582
|
+
}
|
|
21583
|
+
}
|
|
20594
21584
|
|
|
20595
|
-
var colorCss$2 = i$6`[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:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.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-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.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-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
21585
|
+
/**
|
|
21586
|
+
* Validates if an element is a specific Auro component.
|
|
21587
|
+
* @param {Object} elem - The element to validate.
|
|
21588
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
21589
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21590
|
+
*/
|
|
21591
|
+
elementMatch(elem, tagName) {
|
|
21592
|
+
const tag = tagName.toLowerCase();
|
|
21593
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
20596
21594
|
|
|
20597
|
-
|
|
21595
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
21596
|
+
}
|
|
21597
|
+
};
|
|
20598
21598
|
|
|
20599
|
-
var styleCss$1 =
|
|
21599
|
+
var styleCss$1 = css`: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}}`;
|
|
20600
21600
|
|
|
20601
|
-
var colorCss$1 =
|
|
21601
|
+
var colorCss$1 = css`: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-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color:var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color:var(--ds-color-utility-neutral-inverse, #ccd2db)}: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}`;
|
|
20602
21602
|
|
|
20603
|
-
var tokensCss$1 =
|
|
21603
|
+
var tokensCss$1 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
20604
21604
|
|
|
20605
21605
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20606
21606
|
// See LICENSE in the project root for license information.
|
|
@@ -20625,7 +21625,7 @@ var tokensCss$1 = i$6`:host{--ds-auro-loader-background-color: currentcolor;--ds
|
|
|
20625
21625
|
*/
|
|
20626
21626
|
|
|
20627
21627
|
// build the component class
|
|
20628
|
-
class AuroLoader extends
|
|
21628
|
+
class AuroLoader extends LitElement {
|
|
20629
21629
|
constructor() {
|
|
20630
21630
|
super();
|
|
20631
21631
|
|
|
@@ -20679,9 +21679,9 @@ class AuroLoader extends r$4 {
|
|
|
20679
21679
|
|
|
20680
21680
|
static get styles() {
|
|
20681
21681
|
return [
|
|
20682
|
-
|
|
20683
|
-
|
|
20684
|
-
|
|
21682
|
+
css`${styleCss$1}`,
|
|
21683
|
+
css`${colorCss$1}`,
|
|
21684
|
+
css`${tokensCss$1}`
|
|
20685
21685
|
];
|
|
20686
21686
|
}
|
|
20687
21687
|
|
|
@@ -20727,14 +21727,14 @@ class AuroLoader extends r$4 {
|
|
|
20727
21727
|
|
|
20728
21728
|
// function that renders the HTML and CSS into the scope of the component
|
|
20729
21729
|
render() {
|
|
20730
|
-
return
|
|
20731
|
-
${this.defineTemplate().map((idx) =>
|
|
21730
|
+
return html`
|
|
21731
|
+
${this.defineTemplate().map((idx) => html`
|
|
20732
21732
|
<span part="element" class="loader node-${idx}"></span>
|
|
20733
21733
|
`)}
|
|
20734
21734
|
|
|
20735
21735
|
<div class="no-animation">Loading...</div>
|
|
20736
21736
|
|
|
20737
|
-
${this.ringworm ?
|
|
21737
|
+
${this.ringworm ? html`
|
|
20738
21738
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
20739
21739
|
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
20740
21740
|
</svg>`
|
|
@@ -20744,7 +21744,7 @@ class AuroLoader extends r$4 {
|
|
|
20744
21744
|
}
|
|
20745
21745
|
}
|
|
20746
21746
|
|
|
20747
|
-
var loaderVersion = '
|
|
21747
|
+
var loaderVersion = '4.0.0';
|
|
20748
21748
|
|
|
20749
21749
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
20750
21750
|
// See LICENSE in the project root for license information.
|
|
@@ -20780,10 +21780,20 @@ var loaderVersion = '3.1.1';
|
|
|
20780
21780
|
|
|
20781
21781
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
20782
21782
|
|
|
20783
|
-
class AuroButton extends
|
|
21783
|
+
class AuroButton extends LitElement {
|
|
21784
|
+
|
|
21785
|
+
/**
|
|
21786
|
+
* Enables form association for this element.
|
|
21787
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
|
|
21788
|
+
* @returns {boolean} - Returns true to enable form association.
|
|
21789
|
+
*/
|
|
21790
|
+
static get formAssociated() {
|
|
21791
|
+
return true;
|
|
21792
|
+
}
|
|
20784
21793
|
|
|
20785
21794
|
constructor() {
|
|
20786
21795
|
super();
|
|
21796
|
+
|
|
20787
21797
|
this.autofocus = false;
|
|
20788
21798
|
this.disabled = false;
|
|
20789
21799
|
this.iconOnly = false;
|
|
@@ -20796,6 +21806,16 @@ class AuroButton extends r$4 {
|
|
|
20796
21806
|
this.slim = false;
|
|
20797
21807
|
this.fluid = false;
|
|
20798
21808
|
|
|
21809
|
+
// Support for HTML5 forms
|
|
21810
|
+
if (typeof this.attachInternals === 'function') {
|
|
21811
|
+
this.internals = this.attachInternals();
|
|
21812
|
+
} else {
|
|
21813
|
+
this.internals = null;
|
|
21814
|
+
|
|
21815
|
+
// eslint-disable-next-line no-console
|
|
21816
|
+
console.warn('This browser does not support form association features. Some form-related functionality may not work as expected. Consider using a polyfill or handling click events manually.');
|
|
21817
|
+
}
|
|
21818
|
+
|
|
20799
21819
|
/**
|
|
20800
21820
|
* Generate unique names for dependency components.
|
|
20801
21821
|
*/
|
|
@@ -20894,7 +21914,7 @@ class AuroButton extends r$4 {
|
|
|
20894
21914
|
*
|
|
20895
21915
|
*/
|
|
20896
21916
|
static register(name = "auro-button") {
|
|
20897
|
-
AuroLibraryRuntimeUtils$
|
|
21917
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
20898
21918
|
}
|
|
20899
21919
|
|
|
20900
21920
|
/**
|
|
@@ -20936,6 +21956,16 @@ class AuroButton extends r$4 {
|
|
|
20936
21956
|
this.notifyReady();
|
|
20937
21957
|
}
|
|
20938
21958
|
|
|
21959
|
+
surfaceSubmitEvent() {
|
|
21960
|
+
if (this.form) {
|
|
21961
|
+
this.form.requestSubmit();
|
|
21962
|
+
}
|
|
21963
|
+
}
|
|
21964
|
+
|
|
21965
|
+
get form() {
|
|
21966
|
+
return this.internals ? this.internals.form : null;
|
|
21967
|
+
}
|
|
21968
|
+
|
|
20939
21969
|
render() {
|
|
20940
21970
|
const classes = {
|
|
20941
21971
|
'util_insetLg--squish': true,
|
|
@@ -20948,27 +21978,27 @@ class AuroButton extends r$4 {
|
|
|
20948
21978
|
'loading': this.loading
|
|
20949
21979
|
};
|
|
20950
21980
|
|
|
20951
|
-
return
|
|
21981
|
+
return html$1`
|
|
20952
21982
|
<button
|
|
20953
21983
|
part="button"
|
|
20954
|
-
aria-label="${
|
|
20955
|
-
aria-labelledby="${
|
|
21984
|
+
aria-label="${ifDefined(this.arialabel ? this.arialabel : undefined)}"
|
|
21985
|
+
aria-labelledby="${ifDefined(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
20956
21986
|
?autofocus="${this.autofocus}"
|
|
20957
|
-
class="${
|
|
21987
|
+
class="${classMap(classes)}"
|
|
20958
21988
|
?disabled="${this.disabled || this.loading}"
|
|
20959
21989
|
?onDark="${this.onDark}"
|
|
20960
|
-
title="${
|
|
20961
|
-
name="${
|
|
20962
|
-
type="${
|
|
20963
|
-
variant="${
|
|
20964
|
-
.value="${
|
|
20965
|
-
@click="${
|
|
21990
|
+
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
21991
|
+
name="${ifDefined(this.name ? this.name : undefined)}"
|
|
21992
|
+
type="${ifDefined(this.type ? this.type : undefined)}"
|
|
21993
|
+
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
21994
|
+
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
21995
|
+
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
20966
21996
|
>
|
|
20967
|
-
${
|
|
21997
|
+
${ifDefined(this.loading ? html$1`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
20968
21998
|
|
|
20969
21999
|
<span class="contentWrapper">
|
|
20970
22000
|
<span class="textSlot" part="text">
|
|
20971
|
-
${this.iconOnly ? undefined :
|
|
22001
|
+
${this.iconOnly ? undefined : html$1`<slot></slot>`}
|
|
20972
22002
|
</span>
|
|
20973
22003
|
|
|
20974
22004
|
<span part="icon">
|
|
@@ -20982,37 +22012,11 @@ class AuroButton extends r$4 {
|
|
|
20982
22012
|
|
|
20983
22013
|
var buttonVersion = '8.2.2';
|
|
20984
22014
|
|
|
20985
|
-
|
|
20986
|
-
* @license
|
|
20987
|
-
* Copyright 2019 Google LLC
|
|
20988
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
20989
|
-
*/
|
|
20990
|
-
const t$1=globalThis,e$2=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1=Symbol(),o$2=new WeakMap;let n$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$2("string"==typeof t?t:t+"",void 0,s$1),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$1)},S$1=(s,o)=>{if(e$2)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
|
|
20991
|
-
|
|
20992
|
-
/**
|
|
20993
|
-
* @license
|
|
20994
|
-
* Copyright 2017 Google LLC
|
|
20995
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
20996
|
-
*/const{is:i$2,defineProperty:e$1,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$1,getPrototypeOf:n$1}=Object,a$1=globalThis,c$1=a$1.trustedTypes,l$1=c$1?c$1.emptyScript:"",p$1=a$1.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$1: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$2(t,s),y$1={attribute:true,type:String,converter:u$1,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$1.litPropertyMetadata??=new WeakMap;class b 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=y$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}static _$Ei(){if(this.hasOwnProperty(d$1("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$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$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$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);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),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),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){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) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}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._$EU();}catch(s){throw t=false,this._$EU(),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);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$1.reactiveElementVersions??=[]).push("2.0.4");
|
|
20997
|
-
|
|
20998
|
-
/**
|
|
20999
|
-
* @license
|
|
21000
|
-
* Copyright 2017 Google LLC
|
|
21001
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21002
|
-
*/
|
|
21003
|
-
const t=globalThis,i$1=t.trustedTypes,s=i$1?i$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o="?"+h,n=`<${o}>`,r$1=document,l=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=Array.isArray,u=t=>a(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$1?i$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(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(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(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(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(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()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j=t.litHtmlPolyfillSupport;j?.(N,R),(t.litHtmlVersions??=[]).push("3.2.1");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(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
21004
|
-
|
|
21005
|
-
/**
|
|
21006
|
-
* @license
|
|
21007
|
-
* Copyright 2017 Google LLC
|
|
21008
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21009
|
-
*/class r extends b{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 s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
21010
|
-
|
|
21011
|
-
var colorCss = i$3`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
22015
|
+
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
21012
22016
|
|
|
21013
|
-
var styleCss =
|
|
22017
|
+
var styleCss = css`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}:host([large]) .helptext-wrapper{font-size:var(--ds-text-body-size-default, 1rem)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
21014
22018
|
|
|
21015
|
-
var tokensCss =
|
|
22019
|
+
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
21016
22020
|
|
|
21017
22021
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21018
22022
|
// See LICENSE in the project root for license information.
|
|
@@ -21093,7 +22097,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
21093
22097
|
*
|
|
21094
22098
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
21095
22099
|
*/
|
|
21096
|
-
class AuroHelpText extends
|
|
22100
|
+
class AuroHelpText extends LitElement {
|
|
21097
22101
|
|
|
21098
22102
|
constructor() {
|
|
21099
22103
|
super();
|
|
@@ -21197,7 +22201,7 @@ class AuroHelpText extends r {
|
|
|
21197
22201
|
|
|
21198
22202
|
// function that renders the HTML and CSS into the scope of the component
|
|
21199
22203
|
render() {
|
|
21200
|
-
return
|
|
22204
|
+
return html`
|
|
21201
22205
|
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
21202
22206
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
21203
22207
|
</div>
|
|
@@ -21219,22 +22223,22 @@ class AuroInput extends BaseInput {
|
|
|
21219
22223
|
/**
|
|
21220
22224
|
* Generate unique names for dependency components.
|
|
21221
22225
|
*/
|
|
21222
|
-
const versioning = new AuroDependencyVersioning();
|
|
22226
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
21223
22227
|
|
|
21224
22228
|
/**
|
|
21225
22229
|
* @private
|
|
21226
22230
|
*/
|
|
21227
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
22231
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
21228
22232
|
|
|
21229
22233
|
/**
|
|
21230
22234
|
* @private
|
|
21231
22235
|
*/
|
|
21232
|
-
this.buttonTag = versioning.generateTag('auro-button', buttonVersion, AuroButton);
|
|
22236
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
21233
22237
|
|
|
21234
22238
|
/**
|
|
21235
22239
|
* @private
|
|
21236
22240
|
*/
|
|
21237
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
22241
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
21238
22242
|
}
|
|
21239
22243
|
|
|
21240
22244
|
/**
|
|
@@ -21246,7 +22250,7 @@ class AuroInput extends BaseInput {
|
|
|
21246
22250
|
*
|
|
21247
22251
|
*/
|
|
21248
22252
|
static register(name = "auro-input") {
|
|
21249
|
-
AuroLibraryRuntimeUtils$
|
|
22253
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroInput);
|
|
21250
22254
|
}
|
|
21251
22255
|
|
|
21252
22256
|
/**
|
|
@@ -21271,7 +22275,7 @@ class AuroInput extends BaseInput {
|
|
|
21271
22275
|
'withValue': this.value && this.value.length > 0
|
|
21272
22276
|
};
|
|
21273
22277
|
|
|
21274
|
-
return
|
|
22278
|
+
return html$1`
|
|
21275
22279
|
<div class="wrapper" part="wrapper">
|
|
21276
22280
|
<div class="main">
|
|
21277
22281
|
<div class="typeIcon">
|
|
@@ -21280,7 +22284,7 @@ class AuroInput extends BaseInput {
|
|
|
21280
22284
|
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
21281
22285
|
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
21282
22286
|
${this.inputIconName
|
|
21283
|
-
?
|
|
22287
|
+
? repeat([this.inputIconName], (val) => val, (name) => html$1`
|
|
21284
22288
|
<${this.iconTag}
|
|
21285
22289
|
class="accentIcon"
|
|
21286
22290
|
category="payment"
|
|
@@ -21292,7 +22296,7 @@ class AuroInput extends BaseInput {
|
|
|
21292
22296
|
}
|
|
21293
22297
|
|
|
21294
22298
|
${this.type === 'date'
|
|
21295
|
-
?
|
|
22299
|
+
? html$1`
|
|
21296
22300
|
<${this.iconTag}
|
|
21297
22301
|
class="accentIcon"
|
|
21298
22302
|
category="interface"
|
|
@@ -21303,7 +22307,7 @@ class AuroInput extends BaseInput {
|
|
|
21303
22307
|
: undefined
|
|
21304
22308
|
}
|
|
21305
22309
|
</div>
|
|
21306
|
-
<label for=${this.id} class="${
|
|
22310
|
+
<label for=${this.id} class="${classMap(labelClasses)}" part="label">
|
|
21307
22311
|
<slot name="label">
|
|
21308
22312
|
${this.label}
|
|
21309
22313
|
</slot>
|
|
@@ -21314,23 +22318,23 @@ class AuroInput extends BaseInput {
|
|
|
21314
22318
|
@focusin="${this.handleFocusin}"
|
|
21315
22319
|
@blur="${this.handleBlur}"
|
|
21316
22320
|
id="${this.id}"
|
|
21317
|
-
name="${
|
|
22321
|
+
name="${ifDefined(this.name)}"
|
|
21318
22322
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
21319
|
-
pattern="${
|
|
21320
|
-
maxlength="${
|
|
21321
|
-
minlength="${
|
|
21322
|
-
inputMode="${
|
|
22323
|
+
pattern="${ifDefined(this.definePattern())}"
|
|
22324
|
+
maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
|
|
22325
|
+
minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
|
|
22326
|
+
inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
|
|
21323
22327
|
?required="${this.required}"
|
|
21324
22328
|
?disabled="${this.disabled}"
|
|
21325
22329
|
aria-describedby="${this.uniqueId}"
|
|
21326
22330
|
aria-invalid="${this.validity !== 'valid'}"
|
|
21327
22331
|
placeholder=${this.getPlaceholder()}
|
|
21328
|
-
lang="${
|
|
22332
|
+
lang="${ifDefined(this.lang)}"
|
|
21329
22333
|
?activeLabel="${this.activeLabel}"
|
|
21330
|
-
spellcheck="${
|
|
21331
|
-
autocorrect="${
|
|
21332
|
-
autocapitalize="${
|
|
21333
|
-
autocomplete="${
|
|
22334
|
+
spellcheck="${ifDefined(this.spellcheck ? this.spellcheck : undefined)}"
|
|
22335
|
+
autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
|
|
22336
|
+
autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
22337
|
+
autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
|
|
21334
22338
|
part="input"
|
|
21335
22339
|
/>
|
|
21336
22340
|
</div>
|
|
@@ -21338,7 +22342,7 @@ class AuroInput extends BaseInput {
|
|
|
21338
22342
|
class="notificationIcons"
|
|
21339
22343
|
part="notificationIcons"
|
|
21340
22344
|
?hasValue="${this.hasValue}">
|
|
21341
|
-
${this.validity && this.validity !== 'valid' ?
|
|
22345
|
+
${this.validity && this.validity !== 'valid' ? html$1`
|
|
21342
22346
|
<div class="notification alertNotification">
|
|
21343
22347
|
<${this.iconTag}
|
|
21344
22348
|
category="alert"
|
|
@@ -21347,8 +22351,8 @@ class AuroInput extends BaseInput {
|
|
|
21347
22351
|
</${this.iconTag}>
|
|
21348
22352
|
</div>
|
|
21349
22353
|
` : undefined}
|
|
21350
|
-
${this.hasValue ?
|
|
21351
|
-
${this.type === 'password' ?
|
|
22354
|
+
${this.hasValue ? html$1`
|
|
22355
|
+
${this.type === 'password' ? html$1`
|
|
21352
22356
|
<div class="notification">
|
|
21353
22357
|
<${this.buttonTag}
|
|
21354
22358
|
variant="flat"
|
|
@@ -21371,7 +22375,7 @@ class AuroInput extends BaseInput {
|
|
|
21371
22375
|
</${this.buttonTag}>
|
|
21372
22376
|
</div>
|
|
21373
22377
|
` : undefined}
|
|
21374
|
-
${!this.disabled && !this.readonly ?
|
|
22378
|
+
${!this.disabled && !this.readonly ? html$1`
|
|
21375
22379
|
<div class="notification">
|
|
21376
22380
|
<${this.buttonTag}
|
|
21377
22381
|
variant="flat"
|
|
@@ -21392,14 +22396,14 @@ class AuroInput extends BaseInput {
|
|
|
21392
22396
|
</div>
|
|
21393
22397
|
<!-- Help text and error message template -->
|
|
21394
22398
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
21395
|
-
?
|
|
22399
|
+
? html$1`
|
|
21396
22400
|
<${this.helpTextTag}>
|
|
21397
22401
|
<p id="${this.uniqueId}" part="helpText">
|
|
21398
22402
|
<slot name="helptext">${this.getHelpText()}</slot>
|
|
21399
22403
|
</p>
|
|
21400
22404
|
</${this.helpTextTag}>
|
|
21401
22405
|
`
|
|
21402
|
-
:
|
|
22406
|
+
: html$1`
|
|
21403
22407
|
<${this.helpTextTag} error>
|
|
21404
22408
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
21405
22409
|
${this.errorMessage}
|
|
@@ -21441,7 +22445,7 @@ var inputVersion = '4.2.0';
|
|
|
21441
22445
|
*/
|
|
21442
22446
|
|
|
21443
22447
|
// build the component class
|
|
21444
|
-
class AuroDatePicker extends
|
|
22448
|
+
class AuroDatePicker extends LitElement {
|
|
21445
22449
|
constructor() {
|
|
21446
22450
|
super();
|
|
21447
22451
|
|
|
@@ -21504,7 +22508,7 @@ class AuroDatePicker extends r$c {
|
|
|
21504
22508
|
/**
|
|
21505
22509
|
* @private
|
|
21506
22510
|
*/
|
|
21507
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
22511
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
21508
22512
|
|
|
21509
22513
|
/**
|
|
21510
22514
|
* @private
|
|
@@ -21514,17 +22518,17 @@ class AuroDatePicker extends r$c {
|
|
|
21514
22518
|
/**
|
|
21515
22519
|
* Generate unique names for dependency components.
|
|
21516
22520
|
*/
|
|
21517
|
-
const versioning = new AuroDependencyVersioning$
|
|
22521
|
+
const versioning = new AuroDependencyVersioning$5();
|
|
21518
22522
|
|
|
21519
22523
|
/**
|
|
21520
22524
|
* @private
|
|
21521
22525
|
*/
|
|
21522
|
-
this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
|
|
22526
|
+
this.dropdownTag = versioning.generateTag('auro-formkit-datepicker-dropdown', dropdownVersion, AuroDropdown);
|
|
21523
22527
|
|
|
21524
22528
|
/**
|
|
21525
22529
|
* @private
|
|
21526
22530
|
*/
|
|
21527
|
-
this.inputTag = versioning.generateTag('auro-input', inputVersion, AuroInput);
|
|
22531
|
+
this.inputTag = versioning.generateTag('auro-formkit-datepicker-input', inputVersion, AuroInput);
|
|
21528
22532
|
|
|
21529
22533
|
/**
|
|
21530
22534
|
* @private
|
|
@@ -21690,6 +22694,14 @@ class AuroDatePicker extends r$c {
|
|
|
21690
22694
|
type: String
|
|
21691
22695
|
},
|
|
21692
22696
|
|
|
22697
|
+
/**
|
|
22698
|
+
* Set true to make datepicker stacked style.
|
|
22699
|
+
*/
|
|
22700
|
+
stacked: {
|
|
22701
|
+
type: Boolean,
|
|
22702
|
+
reflect: true,
|
|
22703
|
+
},
|
|
22704
|
+
|
|
21693
22705
|
/**
|
|
21694
22706
|
* Specifies the `validityState` this element is in.
|
|
21695
22707
|
*/
|
|
@@ -21716,9 +22728,9 @@ class AuroDatePicker extends r$c {
|
|
|
21716
22728
|
|
|
21717
22729
|
static get styles() {
|
|
21718
22730
|
return [
|
|
21719
|
-
styleCss$
|
|
21720
|
-
colorCss$
|
|
21721
|
-
tokensCss$
|
|
22731
|
+
styleCss$d,
|
|
22732
|
+
colorCss$d,
|
|
22733
|
+
tokensCss$a
|
|
21722
22734
|
];
|
|
21723
22735
|
}
|
|
21724
22736
|
|
|
@@ -21731,7 +22743,7 @@ class AuroDatePicker extends r$c {
|
|
|
21731
22743
|
*
|
|
21732
22744
|
*/
|
|
21733
22745
|
static register(name = "auro-datepicker") {
|
|
21734
|
-
AuroLibraryRuntimeUtils$
|
|
22746
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent(name, AuroDatePicker);
|
|
21735
22747
|
}
|
|
21736
22748
|
|
|
21737
22749
|
/**
|
|
@@ -21948,9 +22960,10 @@ class AuroDatePicker extends r$c {
|
|
|
21948
22960
|
* @returns {void}
|
|
21949
22961
|
*/
|
|
21950
22962
|
configureCalendar() {
|
|
21951
|
-
this.calendar = this.shadowRoot.querySelector('auro-calendar');
|
|
22963
|
+
this.calendar = this.shadowRoot.querySelector('auro-formkit-calendar');
|
|
21952
22964
|
this.calendar.datepicker = this;
|
|
21953
22965
|
this.calendar.format = this.format;
|
|
22966
|
+
this.calendar.dropdown = this.dropdown;
|
|
21954
22967
|
|
|
21955
22968
|
this.calendar.addEventListener('auroCalendar-dateSelected', () => {
|
|
21956
22969
|
if (this.inputList[0].value !== this.calendar.dateFrom && this.calendar.dateFrom !== undefined) {
|
|
@@ -22374,7 +23387,7 @@ class AuroDatePicker extends r$c {
|
|
|
22374
23387
|
|
|
22375
23388
|
// function that renders the HTML and CSS into the scope of the component
|
|
22376
23389
|
render() {
|
|
22377
|
-
return
|
|
23390
|
+
return html$1`
|
|
22378
23391
|
<div class="outerWrapper">
|
|
22379
23392
|
<${this.dropdownTag}
|
|
22380
23393
|
for="dropdownMenu"
|
|
@@ -22407,7 +23420,7 @@ class AuroDatePicker extends r$c {
|
|
|
22407
23420
|
part="input">
|
|
22408
23421
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
22409
23422
|
</${this.inputTag}>
|
|
22410
|
-
${this.range ?
|
|
23423
|
+
${this.range ? html$1`
|
|
22411
23424
|
<${this.inputTag}
|
|
22412
23425
|
id="${this.generateRandomString(12)}"
|
|
22413
23426
|
bordered
|
|
@@ -22430,7 +23443,7 @@ class AuroDatePicker extends r$c {
|
|
|
22430
23443
|
` : undefined}
|
|
22431
23444
|
</div>
|
|
22432
23445
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
22433
|
-
<auro-calendar
|
|
23446
|
+
<auro-formkit-calendar
|
|
22434
23447
|
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
22435
23448
|
?noRange="${!this.range}"
|
|
22436
23449
|
.format="${this.format}"
|
|
@@ -22444,16 +23457,16 @@ class AuroDatePicker extends r$c {
|
|
|
22444
23457
|
>
|
|
22445
23458
|
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
22446
23459
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
22447
|
-
<span slot="bib.fullscreen.fromStr">${this.value ||
|
|
22448
|
-
${this.range ?
|
|
22449
|
-
</auro-calendar>
|
|
23460
|
+
<span slot="bib.fullscreen.fromStr">${this.value || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
23461
|
+
${this.range ? html$1`<span slot="mobileDateToStr">${this.valueEnd || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
23462
|
+
</auro-formkit-calendar>
|
|
22450
23463
|
</div>
|
|
22451
23464
|
<p slot="helpText" part="helpTextSpan">
|
|
22452
23465
|
<!-- Help text and error message template -->
|
|
22453
23466
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
22454
|
-
?
|
|
23467
|
+
? html$1`
|
|
22455
23468
|
<slot name="helpText"></slot>
|
|
22456
|
-
` :
|
|
23469
|
+
` : html$1`
|
|
22457
23470
|
<span role="alert" aria-live="assertive" part="helpText">
|
|
22458
23471
|
${this.errorMessage}
|
|
22459
23472
|
</span>`
|