@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
|
@@ -262,33 +262,33 @@ function resetStateExample() {
|
|
|
262
262
|
* Copyright 2019 Google LLC
|
|
263
263
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
264
264
|
*/
|
|
265
|
-
const t$
|
|
265
|
+
const t$3=globalThis,e$4=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),o$5=new WeakMap;let n$4 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$3)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$5.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$5.set(s,t));}return t}toString(){return this.cssText}};const r$6=t=>new n$4("string"==typeof t?t:t+"",void 0,s$3),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$3)},S$1=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$3.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$3=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6(e)})(t):t;
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
268
|
* @license
|
|
269
269
|
* Copyright 2017 Google LLC
|
|
270
270
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
|
-
*/const{is:i$
|
|
271
|
+
*/const{is:i$5,defineProperty:e$3,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$3}=Object,a$2=globalThis,c$2=a$2.trustedTypes,l$2=c$2?c$2.emptyScript:"",p$2=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$4={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$5(t,s),y$1={attribute:true,type:String,converter:u$4,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.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$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$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$3(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$3(s));}else void 0!==s&&i.push(c$3(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$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$4).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$4;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$2?.({ReactiveElement:b}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
274
|
* @license
|
|
275
275
|
* Copyright 2017 Google LLC
|
|
276
276
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
277
277
|
*/
|
|
278
|
-
const t$
|
|
278
|
+
const t$2=globalThis,i$4=t$2.trustedTypes,s$2=i$4?i$4.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$3="?"+h,n$2=`<${o$3}>`,r$4=document,l$1=()=>r$4.createComment(""),c$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u$3=t=>a$1(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_=/>/g,m$1=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/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$4.createTreeWalker(r$4,129);function P(t,i){if(!a$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$2?s$2.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$1:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):void 0!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1:'"'===u[3]?g:p$1):c===g||c===p$1?c=m$1:c===v$1||c===_?c=f:(c=m$1,r=void 0);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n$2:d>=0?(o.push(a),s.slice(0,d)+e$2+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$2)){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$4?i$4.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1());}}}else if(8===r.nodeType)if(r.data===o$3)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$4.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$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(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$4).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$4,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c$1(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$3(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$1(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$4.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a$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$1()),this.O(l$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));}}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$1(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$1(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 Z={I:R},j=t$2.litHtmlPolyfillSupport;j?.(N,R),(t$2.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$1(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
|
-
*/let r$
|
|
284
|
+
*/let r$3 = 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$3._$litElement$=true,r$3["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$3});const i$3=globalThis.litElementPolyfillSupport;i$3?.({LitElement:r$3});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
285
285
|
|
|
286
286
|
/**
|
|
287
287
|
* @license
|
|
288
288
|
* Copyright 2020 Google LLC
|
|
289
289
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
290
290
|
*/
|
|
291
|
-
const a
|
|
291
|
+
const a=Symbol.for(""),o$2=t=>{if(t?.r===a)return t?._$litStatic$},s$1=t=>({_$litStatic$:t,r:a}),i$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}),l=new Map,n$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$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.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u$2=n$1(x);
|
|
292
292
|
|
|
293
293
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
294
294
|
// See LICENSE in the project root for license information.
|
|
@@ -297,7 +297,7 @@ const a$7=Symbol.for(""),o$b=t=>{if(t?.r===a$7)return t?._$litStatic$},s$8=t=>({
|
|
|
297
297
|
|
|
298
298
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
299
299
|
|
|
300
|
-
let AuroLibraryRuntimeUtils$
|
|
300
|
+
let AuroLibraryRuntimeUtils$9 = class AuroLibraryRuntimeUtils {
|
|
301
301
|
|
|
302
302
|
/* eslint-disable jsdoc/require-param */
|
|
303
303
|
|
|
@@ -366,7 +366,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
366
366
|
|
|
367
367
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
368
368
|
constructor() {
|
|
369
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
369
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
/**
|
|
@@ -675,7 +675,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
675
675
|
// See LICENSE in the project root for license information.
|
|
676
676
|
|
|
677
677
|
|
|
678
|
-
let AuroDependencyVersioning$
|
|
678
|
+
let AuroDependencyVersioning$5 = class AuroDependencyVersioning {
|
|
679
679
|
|
|
680
680
|
/**
|
|
681
681
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -701,7 +701,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
|
701
701
|
*/
|
|
702
702
|
generateTag(baseName, version, tagClass) {
|
|
703
703
|
const elementName = this.generateElementName(baseName, version);
|
|
704
|
-
const tag = i$
|
|
704
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
705
705
|
|
|
706
706
|
if (!customElements.get(elementName)) {
|
|
707
707
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -1033,8 +1033,8 @@ class UtilitiesCalendarRender {
|
|
|
1033
1033
|
* @returns {Object} Returns the auro-calendar-month HTML.
|
|
1034
1034
|
*/
|
|
1035
1035
|
renderCalendar(elem, month, year) {
|
|
1036
|
-
return x
|
|
1037
|
-
<auro-calendar-month
|
|
1036
|
+
return x`
|
|
1037
|
+
<auro-formkit-calendar-month
|
|
1038
1038
|
id="${`month-${month}-${year}`}"
|
|
1039
1039
|
.disabledDays="${elem.disabledDays}"
|
|
1040
1040
|
.min="${elem.min}"
|
|
@@ -1052,24 +1052,24 @@ class UtilitiesCalendarRender {
|
|
|
1052
1052
|
@date-from-changed="${elem.dateFromChanged}"
|
|
1053
1053
|
@date-to-changed="${elem.dateToChanged}"
|
|
1054
1054
|
>
|
|
1055
|
-
</auro-calendar-month>
|
|
1055
|
+
</auro-formkit-calendar-month>
|
|
1056
1056
|
`;
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
|
-
var styleCss$
|
|
1060
|
+
var styleCss$d = i$6`.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}}`;
|
|
1061
1061
|
|
|
1062
|
-
var colorCss$
|
|
1062
|
+
var colorCss$d = i$6`.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)}`;
|
|
1063
1063
|
|
|
1064
|
-
var tokensCss$
|
|
1064
|
+
var tokensCss$a = i$6`: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)}`;
|
|
1065
1065
|
|
|
1066
|
-
var styleCss$
|
|
1066
|
+
var styleCss$c = i$6`: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:""}`;
|
|
1067
1067
|
|
|
1068
|
-
var colorCss$
|
|
1068
|
+
var colorCss$c = i$6`.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)}}`;
|
|
1069
1069
|
|
|
1070
|
-
var styleCss$
|
|
1070
|
+
var styleCss$b = 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}: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%}`;
|
|
1071
1071
|
|
|
1072
|
-
var colorCss$
|
|
1072
|
+
var colorCss$b = 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}: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)}`;
|
|
1073
1073
|
|
|
1074
1074
|
/******************************************************************************
|
|
1075
1075
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1104,7 +1104,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
1104
1104
|
* @license
|
|
1105
1105
|
* Copyright 2017 Google LLC
|
|
1106
1106
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1107
|
-
*/const o$
|
|
1107
|
+
*/const o$1={attribute:true,type:String,converter:u$4,reflect:false,hasChanged:f$1},r$2=(t=o$1,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),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(t){return (e,o)=>"object"==typeof o?r$2(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)}
|
|
1108
1108
|
|
|
1109
1109
|
/**
|
|
1110
1110
|
* @module constants
|
|
@@ -6860,7 +6860,7 @@ function subYears(date, amount, options) {
|
|
|
6860
6860
|
return addYears(date, -1, options);
|
|
6861
6861
|
}
|
|
6862
6862
|
|
|
6863
|
-
class RangeDatepickerCell extends r$
|
|
6863
|
+
class RangeDatepickerCell extends r$3 {
|
|
6864
6864
|
constructor() {
|
|
6865
6865
|
super(...arguments);
|
|
6866
6866
|
this.day = null;
|
|
@@ -6891,7 +6891,7 @@ class RangeDatepickerCell extends r$c {
|
|
|
6891
6891
|
|
|
6892
6892
|
render() {
|
|
6893
6893
|
let _a, _b;
|
|
6894
|
-
return x
|
|
6894
|
+
return x`
|
|
6895
6895
|
<button
|
|
6896
6896
|
@click="${this.handleTap}"
|
|
6897
6897
|
@mouseover="${this.handleHover}"
|
|
@@ -6981,7 +6981,7 @@ class RangeDatepickerCell extends r$c {
|
|
|
6981
6981
|
});
|
|
6982
6982
|
}
|
|
6983
6983
|
}
|
|
6984
|
-
RangeDatepickerCell.styles = i$
|
|
6984
|
+
RangeDatepickerCell.styles = i$6`
|
|
6985
6985
|
:host {
|
|
6986
6986
|
display: block;
|
|
6987
6987
|
}
|
|
@@ -7048,20 +7048,20 @@ RangeDatepickerCell.styles = i$h`
|
|
|
7048
7048
|
opacity: 0.4;
|
|
7049
7049
|
}
|
|
7050
7050
|
`;
|
|
7051
|
-
__decorate([n
|
|
7052
|
-
__decorate([n
|
|
7053
|
-
__decorate([n
|
|
7054
|
-
__decorate([n
|
|
7055
|
-
__decorate([n
|
|
7056
|
-
__decorate([n
|
|
7057
|
-
__decorate([n
|
|
7058
|
-
__decorate([n
|
|
7059
|
-
__decorate([n
|
|
7060
|
-
__decorate([n
|
|
7061
|
-
__decorate([n
|
|
7062
|
-
__decorate([n
|
|
7063
|
-
__decorate([n
|
|
7064
|
-
AuroLibraryRuntimeUtils$
|
|
7051
|
+
__decorate([n({ type: Object })], RangeDatepickerCell.prototype, "day", void 0);
|
|
7052
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "selected", void 0);
|
|
7053
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "hovered", void 0);
|
|
7054
|
+
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "dateTo", void 0);
|
|
7055
|
+
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "dateFrom", void 0);
|
|
7056
|
+
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "month", void 0);
|
|
7057
|
+
__decorate([n({ type: Number })], RangeDatepickerCell.prototype, "min", void 0);
|
|
7058
|
+
__decorate([n({ type: Number })], RangeDatepickerCell.prototype, "max", void 0);
|
|
7059
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "disabled", void 0);
|
|
7060
|
+
__decorate([n({ type: Array })], RangeDatepickerCell.prototype, "disabledDays", void 0);
|
|
7061
|
+
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", void 0);
|
|
7062
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", void 0);
|
|
7063
|
+
__decorate([n({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
7064
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
7065
7065
|
|
|
7066
7066
|
class Day {
|
|
7067
7067
|
constructor(date) {
|
|
@@ -7070,7 +7070,7 @@ class Day {
|
|
|
7070
7070
|
}
|
|
7071
7071
|
}
|
|
7072
7072
|
|
|
7073
|
-
class RangeDatepickerCalendar extends r$
|
|
7073
|
+
class RangeDatepickerCalendar extends r$3 {
|
|
7074
7074
|
constructor() {
|
|
7075
7075
|
super();
|
|
7076
7076
|
|
|
@@ -7124,7 +7124,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
7124
7124
|
|
|
7125
7125
|
render() {
|
|
7126
7126
|
let _a, _b;
|
|
7127
|
-
return x
|
|
7127
|
+
return x`
|
|
7128
7128
|
<div>
|
|
7129
7129
|
<div class="header">
|
|
7130
7130
|
${this.renderPrevButton()}
|
|
@@ -7151,7 +7151,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
7151
7151
|
|
|
7152
7152
|
renderPrevButton() {
|
|
7153
7153
|
if (this.prev || this.narrow || this.enableYearChange) {
|
|
7154
|
-
return x
|
|
7154
|
+
return x`
|
|
7155
7155
|
<button
|
|
7156
7156
|
icon="chevron_left"
|
|
7157
7157
|
@click="${this.handlePrevMonth}">
|
|
@@ -7163,7 +7163,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
7163
7163
|
|
|
7164
7164
|
renderNextButton() {
|
|
7165
7165
|
if (this.next || this.narrow || this.enableYearChange) {
|
|
7166
|
-
return x
|
|
7166
|
+
return x`
|
|
7167
7167
|
<button
|
|
7168
7168
|
icon="chevron_right"
|
|
7169
7169
|
@click="${this.handleNextMonth}">
|
|
@@ -7174,23 +7174,23 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
7174
7174
|
}
|
|
7175
7175
|
|
|
7176
7176
|
renderYear() {
|
|
7177
|
-
return x
|
|
7177
|
+
return x`${this.year}`;
|
|
7178
7178
|
}
|
|
7179
7179
|
|
|
7180
7180
|
renderDayOfWeek(dayOfWeek) {
|
|
7181
|
-
return x
|
|
7181
|
+
return x`<div class="th">${dayOfWeek}</div>`;
|
|
7182
7182
|
}
|
|
7183
7183
|
|
|
7184
7184
|
renderWeek(week) {
|
|
7185
|
-
return x
|
|
7185
|
+
return x`
|
|
7186
7186
|
<div class="tr">${week.map((day) => this.renderDay(day))}</div>
|
|
7187
7187
|
`;
|
|
7188
7188
|
}
|
|
7189
7189
|
|
|
7190
7190
|
renderDay(day) {
|
|
7191
|
-
return x
|
|
7191
|
+
return x`
|
|
7192
7192
|
<div class="td ${this.tdIsEnabled(day)}">
|
|
7193
|
-
${day ? x
|
|
7193
|
+
${day ? x`
|
|
7194
7194
|
<wc-range-datepicker-cell
|
|
7195
7195
|
.disabledDays="${this.disabledDays}"
|
|
7196
7196
|
.min="${this.min}"
|
|
@@ -7456,7 +7456,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
7456
7456
|
}
|
|
7457
7457
|
}
|
|
7458
7458
|
|
|
7459
|
-
RangeDatepickerCalendar.styles = i$
|
|
7459
|
+
RangeDatepickerCalendar.styles = i$6`
|
|
7460
7460
|
:host {
|
|
7461
7461
|
display: block;
|
|
7462
7462
|
width: 266px;
|
|
@@ -7561,48 +7561,54 @@ RangeDatepickerCalendar.styles = i$h`
|
|
|
7561
7561
|
max-height: 200px;
|
|
7562
7562
|
}
|
|
7563
7563
|
`;
|
|
7564
|
-
__decorate([n
|
|
7565
|
-
__decorate([n
|
|
7566
|
-
__decorate([n
|
|
7567
|
-
__decorate([n
|
|
7568
|
-
__decorate([n
|
|
7569
|
-
__decorate([n
|
|
7570
|
-
__decorate([n
|
|
7571
|
-
__decorate([n
|
|
7572
|
-
__decorate([n
|
|
7573
|
-
__decorate([n
|
|
7574
|
-
__decorate([n
|
|
7575
|
-
__decorate([n
|
|
7576
|
-
__decorate([n
|
|
7577
|
-
__decorate([n
|
|
7578
|
-
__decorate([n
|
|
7579
|
-
__decorate([n
|
|
7580
|
-
__decorate([n
|
|
7581
|
-
__decorate([n
|
|
7582
|
-
AuroLibraryRuntimeUtils$
|
|
7564
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "dateFrom", void 0);
|
|
7565
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "dateTo", void 0);
|
|
7566
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "hoveredDate", void 0);
|
|
7567
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCalendar.prototype, "enableYearChange", void 0);
|
|
7568
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "month", void 0);
|
|
7569
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCalendar.prototype, "narrow", void 0);
|
|
7570
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCalendar.prototype, "noRange", void 0);
|
|
7571
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCalendar.prototype, "next", void 0);
|
|
7572
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCalendar.prototype, "prev", void 0);
|
|
7573
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "year", void 0);
|
|
7574
|
+
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "disabledDays", void 0);
|
|
7575
|
+
__decorate([n({ type: Object })], RangeDatepickerCalendar.prototype, "locale", null);
|
|
7576
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "max", void 0);
|
|
7577
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "min", void 0);
|
|
7578
|
+
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList", void 0);
|
|
7579
|
+
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", void 0);
|
|
7580
|
+
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", void 0);
|
|
7581
|
+
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", void 0);
|
|
7582
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7583
7583
|
|
|
7584
7584
|
/**
|
|
7585
7585
|
* @license
|
|
7586
7586
|
* Copyright 2017 Google LLC
|
|
7587
7587
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7588
7588
|
*/
|
|
7589
|
-
const t$
|
|
7589
|
+
const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$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)}};
|
|
7590
7590
|
|
|
7591
7591
|
/**
|
|
7592
7592
|
* @license
|
|
7593
7593
|
* Copyright 2018 Google LLC
|
|
7594
7594
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7595
|
-
*/const e
|
|
7595
|
+
*/const e=e$1(class extends i$1{constructor(t){if(super(t),t.type!==t$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
7596
7596
|
|
|
7597
|
-
var styleCss$
|
|
7597
|
+
var styleCss$a = i$6`@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)}}`;
|
|
7598
7598
|
|
|
7599
|
-
var colorCss$
|
|
7599
|
+
var colorCss$a = i$6`: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)}`;
|
|
7600
7600
|
|
|
7601
|
-
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:""}`;
|
|
7601
|
+
/**
|
|
7602
|
+
* @license
|
|
7603
|
+
* Copyright 2017 Google LLC
|
|
7604
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7605
|
+
*/let r$1 = 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$1._$litElement$=true,r$1["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$1});const i=globalThis.litElementPolyfillSupport;i?.({LitElement:r$1});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
7602
7606
|
|
|
7603
|
-
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)}`;
|
|
7607
|
+
var styleCss$9 = i$6`: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:""}`;
|
|
7604
7608
|
|
|
7605
|
-
var
|
|
7609
|
+
var colorCss$9 = i$6`::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)}`;
|
|
7610
|
+
|
|
7611
|
+
var tokensCss$9 = i$6`: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)}`;
|
|
7606
7612
|
|
|
7607
7613
|
var top = 'top';
|
|
7608
7614
|
var bottom = 'bottom';
|
|
@@ -9478,7 +9484,7 @@ class Popover {
|
|
|
9478
9484
|
* @slot - Default unnamed slot for the use of popover content
|
|
9479
9485
|
* @slot trigger - The element in this slot triggers hiding and showing the popover.
|
|
9480
9486
|
*/
|
|
9481
|
-
class AuroPopover extends r$
|
|
9487
|
+
class AuroPopover extends r$1 {
|
|
9482
9488
|
constructor() {
|
|
9483
9489
|
super();
|
|
9484
9490
|
|
|
@@ -9493,7 +9499,7 @@ class AuroPopover extends r$c {
|
|
|
9493
9499
|
privateDefaults() {
|
|
9494
9500
|
this.isPopoverVisible = false;
|
|
9495
9501
|
this.id = `popover-${(Math.random() + 1).toString(36).substring(7)}`;
|
|
9496
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9502
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
9497
9503
|
}
|
|
9498
9504
|
|
|
9499
9505
|
// function to define props used within the scope of this component
|
|
@@ -9508,9 +9514,9 @@ class AuroPopover extends r$c {
|
|
|
9508
9514
|
|
|
9509
9515
|
static get styles() {
|
|
9510
9516
|
return [
|
|
9511
|
-
i$
|
|
9512
|
-
i$
|
|
9513
|
-
i$
|
|
9517
|
+
i$6`${styleCss$9}`,
|
|
9518
|
+
i$6`${colorCss$9}`,
|
|
9519
|
+
i$6`${tokensCss$9}`
|
|
9514
9520
|
];
|
|
9515
9521
|
}
|
|
9516
9522
|
|
|
@@ -9523,7 +9529,7 @@ class AuroPopover extends r$c {
|
|
|
9523
9529
|
*
|
|
9524
9530
|
*/
|
|
9525
9531
|
static register(name = "auro-popover") {
|
|
9526
|
-
AuroLibraryRuntimeUtils$
|
|
9532
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent(name, AuroPopover);
|
|
9527
9533
|
}
|
|
9528
9534
|
|
|
9529
9535
|
connectedCallback() {
|
|
@@ -9654,7 +9660,7 @@ class AuroPopover extends r$c {
|
|
|
9654
9660
|
|
|
9655
9661
|
// function that renders the HTML and CSS into the scope of the component
|
|
9656
9662
|
render() {
|
|
9657
|
-
return x
|
|
9663
|
+
return x`
|
|
9658
9664
|
<div id="popover" class="popover util_insetLg" aria-live="polite" part="popover">
|
|
9659
9665
|
<div id="arrow" class="arrow" data-popper-arrow></div>
|
|
9660
9666
|
<span role="tooltip" aria-labelledby="${this.id}"><slot></slot></span>
|
|
@@ -9667,11 +9673,11 @@ class AuroPopover extends r$c {
|
|
|
9667
9673
|
}
|
|
9668
9674
|
}
|
|
9669
9675
|
|
|
9670
|
-
var popoverVersion = '4.1.
|
|
9676
|
+
var popoverVersion = '4.1.3';
|
|
9671
9677
|
|
|
9672
9678
|
/* 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 */
|
|
9673
9679
|
|
|
9674
|
-
class AuroCalendarCell extends r$
|
|
9680
|
+
class AuroCalendarCell extends r$3 {
|
|
9675
9681
|
constructor() {
|
|
9676
9682
|
super();
|
|
9677
9683
|
|
|
@@ -9691,13 +9697,13 @@ class AuroCalendarCell extends r$c {
|
|
|
9691
9697
|
this.dateStr = null;
|
|
9692
9698
|
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.
|
|
9693
9699
|
|
|
9694
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9700
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
9695
9701
|
|
|
9696
9702
|
/**
|
|
9697
9703
|
* Generate unique names for dependency components.
|
|
9698
9704
|
*/
|
|
9699
|
-
const versioning = new AuroDependencyVersioning$
|
|
9700
|
-
this.popoverTag = versioning.generateTag('auro-popover', popoverVersion, AuroPopover);
|
|
9705
|
+
const versioning = new AuroDependencyVersioning$5();
|
|
9706
|
+
this.popoverTag = versioning.generateTag('auro-formkit-datepicker-popover', popoverVersion, AuroPopover);
|
|
9701
9707
|
}
|
|
9702
9708
|
|
|
9703
9709
|
// This function is to define props used within the scope of this component
|
|
@@ -9737,9 +9743,9 @@ class AuroCalendarCell extends r$c {
|
|
|
9737
9743
|
static get styles() {
|
|
9738
9744
|
return [
|
|
9739
9745
|
// ...super.styles,
|
|
9740
|
-
styleCss$
|
|
9741
|
-
colorCss$
|
|
9742
|
-
tokensCss$
|
|
9746
|
+
styleCss$a,
|
|
9747
|
+
colorCss$a,
|
|
9748
|
+
tokensCss$a
|
|
9743
9749
|
];
|
|
9744
9750
|
}
|
|
9745
9751
|
|
|
@@ -9966,8 +9972,8 @@ class AuroCalendarCell extends r$c {
|
|
|
9966
9972
|
}
|
|
9967
9973
|
|
|
9968
9974
|
firstUpdated() {
|
|
9969
|
-
const calendarMonth = this.runtimeUtils.closestElement('auro-calendar-month', this);
|
|
9970
|
-
const calendar = this.runtimeUtils.closestElement('auro-calendar', calendarMonth);
|
|
9975
|
+
const calendarMonth = this.runtimeUtils.closestElement('auro-formkit-calendar-month', this);
|
|
9976
|
+
const calendar = this.runtimeUtils.closestElement('auro-formkit-calendar', calendarMonth);
|
|
9971
9977
|
|
|
9972
9978
|
if (!calendar) {
|
|
9973
9979
|
setTimeout(() => this.firstUpdated(), 0);
|
|
@@ -10006,7 +10012,7 @@ class AuroCalendarCell extends r$c {
|
|
|
10006
10012
|
};
|
|
10007
10013
|
|
|
10008
10014
|
let _a, _b;
|
|
10009
|
-
return u$
|
|
10015
|
+
return u$2`
|
|
10010
10016
|
<${this.popoverTag}>
|
|
10011
10017
|
<slot name="popover_${this.dateStr}"></slot>
|
|
10012
10018
|
<button
|
|
@@ -10014,7 +10020,7 @@ class AuroCalendarCell extends r$c {
|
|
|
10014
10020
|
@click="${this.handleTap}"
|
|
10015
10021
|
@mouseover="${this.handleHover}"
|
|
10016
10022
|
@focus="${this.handleHover}"
|
|
10017
|
-
class="${e
|
|
10023
|
+
class="${e(buttonClasses)}"
|
|
10018
10024
|
?disabled="${this.disabled}"
|
|
10019
10025
|
title="${this.getTitle((_a = this.day) === null || _a === void 0 ? void 0 : _a.date)}"
|
|
10020
10026
|
tabindex="-1">
|
|
@@ -10030,8 +10036,8 @@ class AuroCalendarCell extends r$c {
|
|
|
10030
10036
|
}
|
|
10031
10037
|
}
|
|
10032
10038
|
|
|
10033
|
-
if (!customElements.get('auro-calendar-cell')) {
|
|
10034
|
-
customElements.define('auro-calendar-cell', AuroCalendarCell);
|
|
10039
|
+
if (!customElements.get('auro-formkit-calendar-cell')) {
|
|
10040
|
+
customElements.define('auro-formkit-calendar-cell', AuroCalendarCell);
|
|
10035
10041
|
}
|
|
10036
10042
|
|
|
10037
10043
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
@@ -10042,9 +10048,9 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
10042
10048
|
static get styles() {
|
|
10043
10049
|
return [
|
|
10044
10050
|
// ...super.styles,
|
|
10045
|
-
styleCss$
|
|
10046
|
-
colorCss$
|
|
10047
|
-
tokensCss$
|
|
10051
|
+
styleCss$b,
|
|
10052
|
+
colorCss$b,
|
|
10053
|
+
tokensCss$a
|
|
10048
10054
|
];
|
|
10049
10055
|
}
|
|
10050
10056
|
|
|
@@ -10115,11 +10121,11 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
10115
10121
|
}
|
|
10116
10122
|
|
|
10117
10123
|
renderDay(day) {
|
|
10118
|
-
return x
|
|
10124
|
+
return x`
|
|
10119
10125
|
<div class="td ${this.tdIsEnabled(day)}">
|
|
10120
10126
|
${day
|
|
10121
|
-
? x
|
|
10122
|
-
<auro-calendar-cell
|
|
10127
|
+
? x`
|
|
10128
|
+
<auro-formkit-calendar-cell
|
|
10123
10129
|
.disabledDays="${this.disabledDays}"
|
|
10124
10130
|
.min="${this.min}"
|
|
10125
10131
|
.max="${this.max}"
|
|
@@ -10133,7 +10139,7 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
10133
10139
|
@date-is-selected="${this.handleDateSelected}"
|
|
10134
10140
|
@date-is-hovered="${this.handleDateHovered}"
|
|
10135
10141
|
>
|
|
10136
|
-
</auro-calendar-cell>
|
|
10142
|
+
</auro-formkit-calendar-cell>
|
|
10137
10143
|
`
|
|
10138
10144
|
: null}
|
|
10139
10145
|
</div>
|
|
@@ -10145,15 +10151,15 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
10145
10151
|
render() {
|
|
10146
10152
|
var _a, _b;
|
|
10147
10153
|
|
|
10148
|
-
return x
|
|
10154
|
+
return x `
|
|
10149
10155
|
<div>
|
|
10150
10156
|
<div class="header">
|
|
10151
10157
|
${this.renderPrevButton()}
|
|
10152
10158
|
<div class="headerTitle">
|
|
10153
|
-
${this.monthFirst ? x
|
|
10159
|
+
${this.monthFirst ? x`
|
|
10154
10160
|
<div>${this.computeCurrentMonthName(this.month)}</div>
|
|
10155
10161
|
<div>${this.renderYear()}</div>
|
|
10156
|
-
` : x
|
|
10162
|
+
` : x`
|
|
10157
10163
|
<div>${this.renderYear()}</div>
|
|
10158
10164
|
<div>${this.computeCurrentMonthName(this.month)}</div>
|
|
10159
10165
|
`}
|
|
@@ -10177,13 +10183,13 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
10177
10183
|
/* eslint-enable */
|
|
10178
10184
|
}
|
|
10179
10185
|
|
|
10180
|
-
if (!customElements.get('auro-calendar-month')) {
|
|
10181
|
-
customElements.define('auro-calendar-month', AuroCalendarMonth);
|
|
10186
|
+
if (!customElements.get('auro-formkit-calendar-month')) {
|
|
10187
|
+
customElements.define('auro-formkit-calendar-month', AuroCalendarMonth);
|
|
10182
10188
|
}
|
|
10183
10189
|
|
|
10184
10190
|
/* eslint-disable no-underscore-dangle, no-magic-numbers, no-underscore-dangle, no-void, init-declarations, no-extra-parens, no-unused-expressions */
|
|
10185
10191
|
|
|
10186
|
-
class RangeDatepicker extends r$
|
|
10192
|
+
class RangeDatepicker extends r$3 {
|
|
10187
10193
|
constructor() {
|
|
10188
10194
|
super();
|
|
10189
10195
|
|
|
@@ -10240,7 +10246,7 @@ class RangeDatepicker extends r$c {
|
|
|
10240
10246
|
}
|
|
10241
10247
|
|
|
10242
10248
|
renderNormal() {
|
|
10243
|
-
return x
|
|
10249
|
+
return x`
|
|
10244
10250
|
<div id="container">
|
|
10245
10251
|
<wc-range-datepicker-calendar
|
|
10246
10252
|
id="firstDatePicker"
|
|
@@ -10286,7 +10292,7 @@ class RangeDatepicker extends r$c {
|
|
|
10286
10292
|
}
|
|
10287
10293
|
|
|
10288
10294
|
renderNarrow() {
|
|
10289
|
-
return x
|
|
10295
|
+
return x`
|
|
10290
10296
|
<wc-range-datepicker-calendar
|
|
10291
10297
|
.disabledDays="${this.disabledDays}"
|
|
10292
10298
|
min="${this.min}"
|
|
@@ -10399,7 +10405,7 @@ class RangeDatepicker extends r$c {
|
|
|
10399
10405
|
}));
|
|
10400
10406
|
}
|
|
10401
10407
|
}
|
|
10402
|
-
RangeDatepicker.styles = i$
|
|
10408
|
+
RangeDatepicker.styles = i$6`
|
|
10403
10409
|
:host {
|
|
10404
10410
|
display: block;
|
|
10405
10411
|
position: relative;
|
|
@@ -10414,21 +10420,21 @@ RangeDatepicker.styles = i$h`
|
|
|
10414
10420
|
margin-right: 16px;
|
|
10415
10421
|
}
|
|
10416
10422
|
`;
|
|
10417
|
-
__decorate([n
|
|
10418
|
-
__decorate([n
|
|
10419
|
-
__decorate([n
|
|
10420
|
-
__decorate([n
|
|
10421
|
-
__decorate([n
|
|
10422
|
-
__decorate([n
|
|
10423
|
-
__decorate([n
|
|
10424
|
-
__decorate([n
|
|
10425
|
-
__decorate([n
|
|
10426
|
-
__decorate([n
|
|
10427
|
-
__decorate([n
|
|
10428
|
-
__decorate([n
|
|
10429
|
-
__decorate([n
|
|
10430
|
-
__decorate([n
|
|
10431
|
-
__decorate([n
|
|
10423
|
+
__decorate([n({ type: Array })], RangeDatepicker.prototype, "disabledDays", void 0);
|
|
10424
|
+
__decorate([n({ type: Boolean })], RangeDatepicker.prototype, "enableYearChange", void 0);
|
|
10425
|
+
__decorate([n({ type: Boolean })], RangeDatepicker.prototype, "forceNarrow", void 0);
|
|
10426
|
+
__decorate([n({ type: Object })], RangeDatepicker.prototype, "locale", void 0);
|
|
10427
|
+
__decorate([n({ type: String })], RangeDatepicker.prototype, "max", void 0);
|
|
10428
|
+
__decorate([n({ type: String })], RangeDatepicker.prototype, "min", void 0);
|
|
10429
|
+
__decorate([n({ type: Number })], RangeDatepicker.prototype, "month", void 0);
|
|
10430
|
+
__decorate([n({ type: Boolean })], RangeDatepicker.prototype, "noRange", void 0);
|
|
10431
|
+
__decorate([n({ type: Number })], RangeDatepicker.prototype, "year", void 0);
|
|
10432
|
+
__decorate([n({ type: String })], RangeDatepicker.prototype, "dateFrom", void 0);
|
|
10433
|
+
__decorate([n({ type: String })], RangeDatepicker.prototype, "dateTo", void 0);
|
|
10434
|
+
__decorate([n({ type: String })], RangeDatepicker.prototype, "hoveredDate", void 0);
|
|
10435
|
+
__decorate([n({ type: Number })], RangeDatepicker.prototype, "monthPlus", void 0);
|
|
10436
|
+
__decorate([n({ type: Number })], RangeDatepicker.prototype, "yearPlus", void 0);
|
|
10437
|
+
__decorate([n({ type: Boolean })], RangeDatepicker.prototype, "narrow", void 0);
|
|
10432
10438
|
|
|
10433
10439
|
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>"};
|
|
10434
10440
|
|
|
@@ -10574,42 +10580,15 @@ class CalendarUtilities {
|
|
|
10574
10580
|
|
|
10575
10581
|
/**
|
|
10576
10582
|
* @license
|
|
10577
|
-
* Copyright
|
|
10578
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10579
|
-
*/
|
|
10580
|
-
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;
|
|
10581
|
-
|
|
10582
|
-
/**
|
|
10583
|
-
* @license
|
|
10584
|
-
* Copyright 2017 Google LLC
|
|
10585
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10586
|
-
*/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");
|
|
10587
|
-
|
|
10588
|
-
/**
|
|
10589
|
-
* @license
|
|
10590
|
-
* Copyright 2017 Google LLC
|
|
10591
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10592
|
-
*/
|
|
10593
|
-
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};
|
|
10594
|
-
|
|
10595
|
-
/**
|
|
10596
|
-
* @license
|
|
10597
|
-
* Copyright 2017 Google LLC
|
|
10598
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10599
|
-
*/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");
|
|
10600
|
-
|
|
10601
|
-
/**
|
|
10602
|
-
* @license
|
|
10603
|
-
* Copyright 2020 Google LLC
|
|
10583
|
+
* Copyright 2018 Google LLC
|
|
10604
10584
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10605
|
-
*/
|
|
10606
|
-
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);
|
|
10585
|
+
*/const o=o=>o??E;
|
|
10607
10586
|
|
|
10608
|
-
var colorCss$1$2 = i$
|
|
10587
|
+
var colorCss$1$2 = i$6`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
10609
10588
|
|
|
10610
|
-
var styleCss$2$2 = i$
|
|
10589
|
+
var styleCss$2$2 = i$6`#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)}`;
|
|
10611
10590
|
|
|
10612
|
-
var tokenCss = i$
|
|
10591
|
+
var tokenCss = i$6`: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)}`;
|
|
10613
10592
|
|
|
10614
10593
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10615
10594
|
// See LICENSE in the project root for license information.
|
|
@@ -10618,7 +10597,7 @@ var tokenCss = i$5$2`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--d
|
|
|
10618
10597
|
|
|
10619
10598
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10620
10599
|
|
|
10621
|
-
let AuroLibraryRuntimeUtils$
|
|
10600
|
+
let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
|
|
10622
10601
|
|
|
10623
10602
|
/* eslint-disable jsdoc/require-param */
|
|
10624
10603
|
|
|
@@ -10685,7 +10664,7 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
|
10685
10664
|
// See LICENSE in the project root for license information.
|
|
10686
10665
|
|
|
10687
10666
|
|
|
10688
|
-
let AuroDependencyVersioning$
|
|
10667
|
+
let AuroDependencyVersioning$4 = class AuroDependencyVersioning {
|
|
10689
10668
|
|
|
10690
10669
|
/**
|
|
10691
10670
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -10711,7 +10690,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
10711
10690
|
*/
|
|
10712
10691
|
generateTag(baseName, version, tagClass) {
|
|
10713
10692
|
const elementName = this.generateElementName(baseName, version);
|
|
10714
|
-
const tag = i$
|
|
10693
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
10715
10694
|
|
|
10716
10695
|
if (!customElements.get(elementName)) {
|
|
10717
10696
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -10721,25 +10700,6 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
10721
10700
|
}
|
|
10722
10701
|
};
|
|
10723
10702
|
|
|
10724
|
-
/**
|
|
10725
|
-
* @license
|
|
10726
|
-
* Copyright 2017 Google LLC
|
|
10727
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10728
|
-
*/
|
|
10729
|
-
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)}};
|
|
10730
|
-
|
|
10731
|
-
/**
|
|
10732
|
-
* @license
|
|
10733
|
-
* Copyright 2018 Google LLC
|
|
10734
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10735
|
-
*/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}});
|
|
10736
|
-
|
|
10737
|
-
/**
|
|
10738
|
-
* @license
|
|
10739
|
-
* Copyright 2018 Google LLC
|
|
10740
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10741
|
-
*/const o$9=o=>o??E$3;
|
|
10742
|
-
|
|
10743
10703
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10744
10704
|
// See LICENSE in the project root for license information.
|
|
10745
10705
|
|
|
@@ -10750,7 +10710,7 @@ const t$7={ATTRIBUTE:1},e$1$2=t=>(...e)=>({_$litDirective$:t,values:e});let i$b
|
|
|
10750
10710
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
10751
10711
|
*/
|
|
10752
10712
|
|
|
10753
|
-
let AuroElement$2 = class AuroElement extends r$
|
|
10713
|
+
let AuroElement$2 = class AuroElement extends r$3 {
|
|
10754
10714
|
|
|
10755
10715
|
// function to define props used within the scope of this component
|
|
10756
10716
|
static get properties() {
|
|
@@ -10806,7 +10766,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
10806
10766
|
return _fetchMap$2.get(uri);
|
|
10807
10767
|
};
|
|
10808
10768
|
|
|
10809
|
-
var styleCss$1$2 = i$
|
|
10769
|
+
var styleCss$1$2 = i$6`: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}`;
|
|
10810
10770
|
|
|
10811
10771
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10812
10772
|
// See LICENSE in the project root for license information.
|
|
@@ -10845,7 +10805,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10845
10805
|
}
|
|
10846
10806
|
|
|
10847
10807
|
static get styles() {
|
|
10848
|
-
return i$
|
|
10808
|
+
return i$6`
|
|
10849
10809
|
${styleCss$1$2}
|
|
10850
10810
|
`;
|
|
10851
10811
|
}
|
|
@@ -10887,47 +10847,88 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10887
10847
|
}
|
|
10888
10848
|
};
|
|
10889
10849
|
|
|
10890
|
-
var tokensCss$
|
|
10850
|
+
var tokensCss$8 = i$6`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
10891
10851
|
|
|
10892
|
-
var colorCss$
|
|
10852
|
+
var colorCss$8 = i$6`: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)}`;
|
|
10893
10853
|
|
|
10894
|
-
// Copyright (c)
|
|
10854
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10895
10855
|
// See LICENSE in the project root for license information.
|
|
10896
10856
|
|
|
10857
|
+
// ---------------------------------------------------------------------
|
|
10858
|
+
|
|
10859
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10860
|
+
|
|
10861
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
10862
|
+
|
|
10863
|
+
/* eslint-disable jsdoc/require-param */
|
|
10864
|
+
|
|
10865
|
+
/**
|
|
10866
|
+
* This will register a new custom element with the browser.
|
|
10867
|
+
* @param {String} name - The name of the custom element.
|
|
10868
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
10869
|
+
* @returns {void}
|
|
10870
|
+
*/
|
|
10871
|
+
registerComponent(name, componentClass) {
|
|
10872
|
+
if (!customElements.get(name)) {
|
|
10873
|
+
customElements.define(name, class extends componentClass {});
|
|
10874
|
+
}
|
|
10875
|
+
}
|
|
10876
|
+
|
|
10877
|
+
/**
|
|
10878
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
10879
|
+
* @returns {void}
|
|
10880
|
+
*/
|
|
10881
|
+
closestElement(
|
|
10882
|
+
selector, // selector like in .closest()
|
|
10883
|
+
base = this, // extra functionality to skip a parent
|
|
10884
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
10885
|
+
!el || el === document || el === window
|
|
10886
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
10887
|
+
: found
|
|
10888
|
+
? found // found a selector INside this element
|
|
10889
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
10890
|
+
) {
|
|
10891
|
+
return __Closest(base);
|
|
10892
|
+
}
|
|
10893
|
+
/* eslint-enable jsdoc/require-param */
|
|
10894
|
+
|
|
10895
|
+
/**
|
|
10896
|
+
* 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.
|
|
10897
|
+
* @param {Object} elem - The element to check.
|
|
10898
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
10899
|
+
* @returns {void}
|
|
10900
|
+
*/
|
|
10901
|
+
handleComponentTagRename(elem, tagName) {
|
|
10902
|
+
const tag = tagName.toLowerCase();
|
|
10903
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10904
|
+
|
|
10905
|
+
if (elemTag !== tag) {
|
|
10906
|
+
elem.setAttribute(tag, true);
|
|
10907
|
+
}
|
|
10908
|
+
}
|
|
10909
|
+
|
|
10910
|
+
/**
|
|
10911
|
+
* Validates if an element is a specific Auro component.
|
|
10912
|
+
* @param {Object} elem - The element to validate.
|
|
10913
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
10914
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
10915
|
+
*/
|
|
10916
|
+
elementMatch(elem, tagName) {
|
|
10917
|
+
const tag = tagName.toLowerCase();
|
|
10918
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10919
|
+
|
|
10920
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
10921
|
+
}
|
|
10922
|
+
};
|
|
10923
|
+
|
|
10924
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10925
|
+
// See LICENSE in the project root for license information.
|
|
10897
10926
|
|
|
10898
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
10899
|
-
/**
|
|
10900
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
10901
|
-
*
|
|
10902
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
10903
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
10904
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
10905
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
10906
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
10907
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
10908
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
10909
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
10910
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
10911
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
10912
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
10913
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
10914
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
10915
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
10916
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
10917
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
10918
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
10919
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
10920
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
10921
|
-
* @slot svg - Used for custom SVG content.
|
|
10922
|
-
*/
|
|
10923
10927
|
|
|
10924
|
-
// build the component class
|
|
10925
10928
|
let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
10926
10929
|
constructor() {
|
|
10927
10930
|
super();
|
|
10928
10931
|
|
|
10929
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
10930
|
-
|
|
10931
10932
|
this.privateDefaults();
|
|
10932
10933
|
}
|
|
10933
10934
|
|
|
@@ -10951,78 +10952,144 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10951
10952
|
this.success = false;
|
|
10952
10953
|
this.tertiary = false;
|
|
10953
10954
|
this.warning = false;
|
|
10954
|
-
this.
|
|
10955
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
10956
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
10955
10957
|
}
|
|
10956
10958
|
|
|
10957
10959
|
// function to define props used within the scope of this component
|
|
10958
10960
|
static get properties() {
|
|
10959
10961
|
return {
|
|
10960
10962
|
...super.properties,
|
|
10963
|
+
|
|
10964
|
+
/**
|
|
10965
|
+
* Sets the icon to use the accent style.
|
|
10966
|
+
*/
|
|
10961
10967
|
accent: {
|
|
10962
10968
|
type: Boolean,
|
|
10963
10969
|
reflect: true
|
|
10964
10970
|
},
|
|
10971
|
+
|
|
10972
|
+
/**
|
|
10973
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
10974
|
+
*/
|
|
10965
10975
|
ariaHidden: {
|
|
10966
10976
|
type: String,
|
|
10967
10977
|
reflect: true
|
|
10968
10978
|
},
|
|
10979
|
+
|
|
10980
|
+
/**
|
|
10981
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
10982
|
+
*/
|
|
10969
10983
|
category: {
|
|
10970
10984
|
type: String,
|
|
10971
10985
|
reflect: true
|
|
10972
10986
|
},
|
|
10987
|
+
|
|
10988
|
+
/**
|
|
10989
|
+
* Allows custom color to be set.
|
|
10990
|
+
*/
|
|
10973
10991
|
customColor: {
|
|
10974
10992
|
type: Boolean
|
|
10975
10993
|
},
|
|
10994
|
+
|
|
10995
|
+
/**
|
|
10996
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
10997
|
+
*/
|
|
10976
10998
|
customSvg: {
|
|
10977
10999
|
type: Boolean
|
|
10978
11000
|
},
|
|
11001
|
+
|
|
11002
|
+
/**
|
|
11003
|
+
* Sets the icon to use the disabled style.
|
|
11004
|
+
*/
|
|
10979
11005
|
disabled: {
|
|
10980
11006
|
type: Boolean,
|
|
10981
11007
|
reflect: true
|
|
10982
11008
|
},
|
|
11009
|
+
|
|
11010
|
+
/**
|
|
11011
|
+
* Sets the icon to use the emphasis style.
|
|
11012
|
+
*/
|
|
10983
11013
|
emphasis: {
|
|
10984
11014
|
type: Boolean,
|
|
10985
11015
|
reflect: true
|
|
10986
11016
|
},
|
|
11017
|
+
|
|
11018
|
+
/**
|
|
11019
|
+
* Sets the icon to use the error style.
|
|
11020
|
+
*/
|
|
10987
11021
|
error: {
|
|
10988
11022
|
type: Boolean,
|
|
10989
11023
|
reflect: true
|
|
10990
11024
|
},
|
|
11025
|
+
|
|
11026
|
+
/**
|
|
11027
|
+
* Sets the icon to use the info style.
|
|
11028
|
+
*/
|
|
10991
11029
|
info: {
|
|
10992
11030
|
type: Boolean,
|
|
10993
11031
|
reflect: true
|
|
10994
11032
|
},
|
|
11033
|
+
|
|
11034
|
+
/**
|
|
11035
|
+
* Exposes content in slot as icon label.
|
|
11036
|
+
*/
|
|
10995
11037
|
label: {
|
|
10996
11038
|
type: Boolean,
|
|
10997
11039
|
reflect: true
|
|
10998
11040
|
},
|
|
11041
|
+
|
|
11042
|
+
/**
|
|
11043
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
11044
|
+
*/
|
|
10999
11045
|
name: {
|
|
11000
11046
|
type: String,
|
|
11001
11047
|
reflect: true
|
|
11002
11048
|
},
|
|
11049
|
+
|
|
11050
|
+
/**
|
|
11051
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
11052
|
+
*/
|
|
11003
11053
|
primary: {
|
|
11004
11054
|
type: Boolean,
|
|
11005
11055
|
reflect: true
|
|
11006
11056
|
},
|
|
11057
|
+
|
|
11058
|
+
/**
|
|
11059
|
+
* Sets the icon to use the secondary style.
|
|
11060
|
+
*/
|
|
11007
11061
|
secondary: {
|
|
11008
11062
|
type: Boolean,
|
|
11009
11063
|
reflect: true
|
|
11010
11064
|
},
|
|
11065
|
+
|
|
11066
|
+
/**
|
|
11067
|
+
* Sets the icon to use the subtle style.
|
|
11068
|
+
*/
|
|
11011
11069
|
subtle: {
|
|
11012
11070
|
type: Boolean,
|
|
11013
11071
|
reflect: true
|
|
11014
11072
|
},
|
|
11073
|
+
|
|
11074
|
+
/**
|
|
11075
|
+
* Sets the icon to use the success style.
|
|
11076
|
+
*/
|
|
11015
11077
|
success: {
|
|
11016
11078
|
type: Boolean,
|
|
11017
11079
|
reflect: true
|
|
11018
11080
|
},
|
|
11081
|
+
|
|
11082
|
+
/**
|
|
11083
|
+
* Sets the icon to use the tertiary style.
|
|
11084
|
+
*/
|
|
11019
11085
|
tertiary: {
|
|
11020
11086
|
type: Boolean,
|
|
11021
11087
|
reflect: true
|
|
11022
11088
|
},
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11089
|
+
|
|
11090
|
+
/**
|
|
11091
|
+
* Sets the icon to use the warning style.
|
|
11092
|
+
*/
|
|
11026
11093
|
warning: {
|
|
11027
11094
|
type: Boolean,
|
|
11028
11095
|
reflect: true
|
|
@@ -11033,9 +11100,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11033
11100
|
static get styles() {
|
|
11034
11101
|
return [
|
|
11035
11102
|
super.styles,
|
|
11036
|
-
i$
|
|
11037
|
-
i$
|
|
11038
|
-
i$
|
|
11103
|
+
i$6`${tokensCss$8}`,
|
|
11104
|
+
i$6`${styleCss$1$2}`,
|
|
11105
|
+
i$6`${colorCss$8}`
|
|
11039
11106
|
];
|
|
11040
11107
|
}
|
|
11041
11108
|
|
|
@@ -11048,7 +11115,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11048
11115
|
*
|
|
11049
11116
|
*/
|
|
11050
11117
|
static register(name = "auro-icon") {
|
|
11051
|
-
AuroLibraryRuntimeUtils$
|
|
11118
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
|
|
11052
11119
|
}
|
|
11053
11120
|
|
|
11054
11121
|
connectedCallback() {
|
|
@@ -11059,38 +11126,54 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11059
11126
|
}
|
|
11060
11127
|
|
|
11061
11128
|
/**
|
|
11129
|
+
* @private
|
|
11062
11130
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
11063
11131
|
*/
|
|
11064
11132
|
exposeCssParts() {
|
|
11065
11133
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
11066
11134
|
}
|
|
11067
11135
|
|
|
11136
|
+
async firstUpdated() {
|
|
11137
|
+
await super.firstUpdated();
|
|
11138
|
+
|
|
11139
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
11140
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
11141
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
11142
|
+
|
|
11143
|
+
if (svgDesc) {
|
|
11144
|
+
svgDesc.remove();
|
|
11145
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
11146
|
+
}
|
|
11147
|
+
}
|
|
11148
|
+
}
|
|
11149
|
+
|
|
11068
11150
|
// function that renders the HTML and CSS into the scope of the component
|
|
11069
11151
|
render() {
|
|
11070
|
-
const
|
|
11071
|
-
'
|
|
11152
|
+
const labelClasses = {
|
|
11153
|
+
'labelWrapper': true,
|
|
11072
11154
|
'util_displayHiddenVisually': !this.label
|
|
11073
11155
|
};
|
|
11074
11156
|
|
|
11075
|
-
const
|
|
11076
|
-
'
|
|
11077
|
-
'wrapper': true,
|
|
11157
|
+
const svgClasses = {
|
|
11158
|
+
'svgWrapper': true,
|
|
11078
11159
|
};
|
|
11079
11160
|
|
|
11080
|
-
return x
|
|
11081
|
-
<div
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
${this.
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
|
|
11161
|
+
return x`
|
|
11162
|
+
<div class="componentWrapper">
|
|
11163
|
+
<div
|
|
11164
|
+
class="${e(svgClasses)}"
|
|
11165
|
+
title="${o(this.title || undefined)}">
|
|
11166
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
11167
|
+
${this.customSvg ? x`
|
|
11168
|
+
<slot name="svg"></slot>
|
|
11169
|
+
` : x`
|
|
11170
|
+
${this.svg}
|
|
11171
|
+
`
|
|
11172
|
+
}
|
|
11173
|
+
</span>
|
|
11174
|
+
</div>
|
|
11092
11175
|
|
|
11093
|
-
<div class="${e
|
|
11176
|
+
<div class="${e(labelClasses)}">
|
|
11094
11177
|
<slot></slot>
|
|
11095
11178
|
</div>
|
|
11096
11179
|
</div>
|
|
@@ -11098,43 +11181,113 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11098
11181
|
}
|
|
11099
11182
|
};
|
|
11100
11183
|
|
|
11101
|
-
var iconVersion$2 = '
|
|
11102
|
-
|
|
11103
|
-
var styleCss$6 = i$5$2`.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)}`;
|
|
11184
|
+
var iconVersion$2 = '7.0.1';
|
|
11104
11185
|
|
|
11105
|
-
// Copyright (c)
|
|
11186
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11106
11187
|
// See LICENSE in the project root for license information.
|
|
11107
11188
|
|
|
11189
|
+
// ---------------------------------------------------------------------
|
|
11108
11190
|
|
|
11109
|
-
|
|
11110
|
-
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
11111
|
-
*
|
|
11112
|
-
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
11113
|
-
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
11114
|
-
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
11115
|
-
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
11116
|
-
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
11117
|
-
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
11118
|
-
*/
|
|
11119
|
-
|
|
11120
|
-
/* eslint complexity: ["error", 21] */
|
|
11191
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11121
11192
|
|
|
11122
|
-
|
|
11123
|
-
class AuroHeader extends r$a {
|
|
11124
|
-
constructor() {
|
|
11125
|
-
super();
|
|
11193
|
+
let AuroLibraryRuntimeUtils$8 = class AuroLibraryRuntimeUtils {
|
|
11126
11194
|
|
|
11127
|
-
|
|
11195
|
+
/* eslint-disable jsdoc/require-param */
|
|
11128
11196
|
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11197
|
+
/**
|
|
11198
|
+
* This will register a new custom element with the browser.
|
|
11199
|
+
* @param {String} name - The name of the custom element.
|
|
11200
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11201
|
+
* @returns {void}
|
|
11202
|
+
*/
|
|
11203
|
+
registerComponent(name, componentClass) {
|
|
11204
|
+
if (!customElements.get(name)) {
|
|
11205
|
+
customElements.define(name, class extends componentClass {});
|
|
11206
|
+
}
|
|
11133
11207
|
}
|
|
11134
11208
|
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11209
|
+
/**
|
|
11210
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11211
|
+
* @returns {void}
|
|
11212
|
+
*/
|
|
11213
|
+
closestElement(
|
|
11214
|
+
selector, // selector like in .closest()
|
|
11215
|
+
base = this, // extra functionality to skip a parent
|
|
11216
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11217
|
+
!el || el === document || el === window
|
|
11218
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11219
|
+
: found
|
|
11220
|
+
? found // found a selector INside this element
|
|
11221
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11222
|
+
) {
|
|
11223
|
+
return __Closest(base);
|
|
11224
|
+
}
|
|
11225
|
+
/* eslint-enable jsdoc/require-param */
|
|
11226
|
+
|
|
11227
|
+
/**
|
|
11228
|
+
* 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.
|
|
11229
|
+
* @param {Object} elem - The element to check.
|
|
11230
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11231
|
+
* @returns {void}
|
|
11232
|
+
*/
|
|
11233
|
+
handleComponentTagRename(elem, tagName) {
|
|
11234
|
+
const tag = tagName.toLowerCase();
|
|
11235
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11236
|
+
|
|
11237
|
+
if (elemTag !== tag) {
|
|
11238
|
+
elem.setAttribute(tag, true);
|
|
11239
|
+
}
|
|
11240
|
+
}
|
|
11241
|
+
|
|
11242
|
+
/**
|
|
11243
|
+
* Validates if an element is a specific Auro component.
|
|
11244
|
+
* @param {Object} elem - The element to validate.
|
|
11245
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11246
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11247
|
+
*/
|
|
11248
|
+
elementMatch(elem, tagName) {
|
|
11249
|
+
const tag = tagName.toLowerCase();
|
|
11250
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11251
|
+
|
|
11252
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11253
|
+
}
|
|
11254
|
+
};
|
|
11255
|
+
|
|
11256
|
+
var styleCss$8 = i$6`.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)}`;
|
|
11257
|
+
|
|
11258
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11259
|
+
// See LICENSE in the project root for license information.
|
|
11260
|
+
|
|
11261
|
+
|
|
11262
|
+
/**
|
|
11263
|
+
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
11264
|
+
*
|
|
11265
|
+
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
11266
|
+
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
11267
|
+
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
11268
|
+
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
11269
|
+
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
11270
|
+
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
11271
|
+
*/
|
|
11272
|
+
|
|
11273
|
+
/* eslint complexity: ["error", 21] */
|
|
11274
|
+
|
|
11275
|
+
// build the component class
|
|
11276
|
+
class AuroHeader extends r$3 {
|
|
11277
|
+
constructor() {
|
|
11278
|
+
super();
|
|
11279
|
+
|
|
11280
|
+
this.display = 'display';
|
|
11281
|
+
|
|
11282
|
+
/**
|
|
11283
|
+
* @private
|
|
11284
|
+
*/
|
|
11285
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$8();
|
|
11286
|
+
}
|
|
11287
|
+
|
|
11288
|
+
// function to define props used within the scope of this component
|
|
11289
|
+
static get properties() {
|
|
11290
|
+
return {
|
|
11138
11291
|
level: { type: String },
|
|
11139
11292
|
display: {
|
|
11140
11293
|
type: String,
|
|
@@ -11147,7 +11300,7 @@ class AuroHeader extends r$a {
|
|
|
11147
11300
|
}
|
|
11148
11301
|
|
|
11149
11302
|
static get styles() {
|
|
11150
|
-
return [styleCss$
|
|
11303
|
+
return [styleCss$8];
|
|
11151
11304
|
}
|
|
11152
11305
|
|
|
11153
11306
|
/**
|
|
@@ -11159,7 +11312,7 @@ class AuroHeader extends r$a {
|
|
|
11159
11312
|
*
|
|
11160
11313
|
*/
|
|
11161
11314
|
static register(name = "auro-header") {
|
|
11162
|
-
AuroLibraryRuntimeUtils$
|
|
11315
|
+
AuroLibraryRuntimeUtils$8.prototype.registerComponent(name, AuroHeader);
|
|
11163
11316
|
}
|
|
11164
11317
|
|
|
11165
11318
|
firstUpdated() {
|
|
@@ -11227,12 +11380,12 @@ class AuroHeader extends r$a {
|
|
|
11227
11380
|
}
|
|
11228
11381
|
|
|
11229
11382
|
switch (level) {
|
|
11230
|
-
case '2': return x
|
|
11231
|
-
case '3': return x
|
|
11232
|
-
case '4': return x
|
|
11233
|
-
case '5': return x
|
|
11234
|
-
case '6': return x
|
|
11235
|
-
default: return x
|
|
11383
|
+
case '2': return x`<h2 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h2>`;
|
|
11384
|
+
case '3': return x`<h3 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h3>`;
|
|
11385
|
+
case '4': return x`<h4 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h4>`;
|
|
11386
|
+
case '5': return x`<h5 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h5>`;
|
|
11387
|
+
case '6': return x`<h6 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h6>`;
|
|
11388
|
+
default: return x`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h1>`;
|
|
11236
11389
|
}
|
|
11237
11390
|
}
|
|
11238
11391
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -11248,16 +11401,16 @@ var headerVersion = '4.0.0';
|
|
|
11248
11401
|
// See LICENSE in the project root for license information.
|
|
11249
11402
|
|
|
11250
11403
|
|
|
11251
|
-
class AuroBibtemplate extends r$
|
|
11404
|
+
class AuroBibtemplate extends r$3 {
|
|
11252
11405
|
|
|
11253
11406
|
constructor() {
|
|
11254
11407
|
super();
|
|
11255
11408
|
|
|
11256
|
-
AuroLibraryRuntimeUtils$
|
|
11409
|
+
AuroLibraryRuntimeUtils$2$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
11257
11410
|
|
|
11258
|
-
const versioning = new AuroDependencyVersioning$
|
|
11259
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$2, AuroIcon$2);
|
|
11260
|
-
this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
|
|
11411
|
+
const versioning = new AuroDependencyVersioning$4();
|
|
11412
|
+
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$2, AuroIcon$2);
|
|
11413
|
+
this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
|
|
11261
11414
|
}
|
|
11262
11415
|
|
|
11263
11416
|
static get styles() {
|
|
@@ -11291,78 +11444,680 @@ class AuroBibtemplate extends r$a {
|
|
|
11291
11444
|
* AuroCheckbox.register("custom-bibtemplate") // this will register this element to <custom-bibtemplate/>
|
|
11292
11445
|
*
|
|
11293
11446
|
*/
|
|
11294
|
-
static register(name = "auro-bibtemplate") {
|
|
11295
|
-
AuroLibraryRuntimeUtils$
|
|
11447
|
+
static register(name = "auro-bibtemplate") {
|
|
11448
|
+
AuroLibraryRuntimeUtils$2$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
11449
|
+
}
|
|
11450
|
+
|
|
11451
|
+
/**
|
|
11452
|
+
* Prevents scrolling of the body when touching empty areas of the component.
|
|
11453
|
+
* @param {Event} event - The touchmove event.
|
|
11454
|
+
* @returns {void}
|
|
11455
|
+
*/
|
|
11456
|
+
preventBodyScroll(event) {
|
|
11457
|
+
if (event.target === this) {
|
|
11458
|
+
event.preventDefault();
|
|
11459
|
+
}
|
|
11460
|
+
}
|
|
11461
|
+
|
|
11462
|
+
connectedCallback() {
|
|
11463
|
+
super.connectedCallback();
|
|
11464
|
+
|
|
11465
|
+
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
11466
|
+
this.addEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
11467
|
+
}
|
|
11468
|
+
|
|
11469
|
+
disconnectedCallback() {
|
|
11470
|
+
super.disconnectedCallback();
|
|
11471
|
+
|
|
11472
|
+
this.removeEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
11473
|
+
}
|
|
11474
|
+
|
|
11475
|
+
onCloseButtonClick() {
|
|
11476
|
+
this.dispatchEvent(new Event("close-click", { bubbles: true,
|
|
11477
|
+
composed: true }));
|
|
11478
|
+
}
|
|
11479
|
+
|
|
11480
|
+
/**
|
|
11481
|
+
* Exposes CSS parts for styling from parent components.
|
|
11482
|
+
* @returns {void}
|
|
11483
|
+
*/
|
|
11484
|
+
exposeCssParts() {
|
|
11485
|
+
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
11486
|
+
}
|
|
11487
|
+
|
|
11488
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
11489
|
+
render() {
|
|
11490
|
+
return u$2`
|
|
11491
|
+
<div id="bibTemplate" part="bibtemplate">
|
|
11492
|
+
${this.isFullscreen ? u$2`
|
|
11493
|
+
<div id="headerContainer">
|
|
11494
|
+
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
11495
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
11496
|
+
</button>
|
|
11497
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
11498
|
+
<slot name="header"></slot>
|
|
11499
|
+
</${this.headerTag}>
|
|
11500
|
+
<span id="subheader">
|
|
11501
|
+
<slot name="subheader"></slot>
|
|
11502
|
+
</span>
|
|
11503
|
+
</div>` : null}
|
|
11504
|
+
|
|
11505
|
+
<div id="bodyContainer">
|
|
11506
|
+
<slot></slot>
|
|
11507
|
+
</div>
|
|
11508
|
+
|
|
11509
|
+
${this.isFullscreen ? u$2`
|
|
11510
|
+
<div id="footerContainer">
|
|
11511
|
+
<slot name="footer"></slot>
|
|
11512
|
+
</div>` : null}
|
|
11513
|
+
</div>
|
|
11514
|
+
`;
|
|
11515
|
+
}
|
|
11516
|
+
}
|
|
11517
|
+
|
|
11518
|
+
var bibTemplateVersion = '1.0.0';
|
|
11519
|
+
|
|
11520
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11521
|
+
// See LICENSE in the project root for license information.
|
|
11522
|
+
|
|
11523
|
+
|
|
11524
|
+
let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
11525
|
+
|
|
11526
|
+
/**
|
|
11527
|
+
* Generates a unique string to be used for child auro element naming.
|
|
11528
|
+
* @private
|
|
11529
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
11530
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
11531
|
+
* @returns {string} - Unique string to be used for naming.
|
|
11532
|
+
*/
|
|
11533
|
+
generateElementName(baseName, version) {
|
|
11534
|
+
let result = baseName;
|
|
11535
|
+
|
|
11536
|
+
result += '-';
|
|
11537
|
+
result += version.replace(/[.]/g, '_');
|
|
11538
|
+
|
|
11539
|
+
return result;
|
|
11540
|
+
}
|
|
11541
|
+
|
|
11542
|
+
/**
|
|
11543
|
+
* Generates a unique string to be used for child auro element naming.
|
|
11544
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
11545
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
11546
|
+
* @returns {string} - Unique string to be used for naming.
|
|
11547
|
+
*/
|
|
11548
|
+
generateTag(baseName, version, tagClass) {
|
|
11549
|
+
const elementName = this.generateElementName(baseName, version);
|
|
11550
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
11551
|
+
|
|
11552
|
+
if (!customElements.get(elementName)) {
|
|
11553
|
+
customElements.define(elementName, class extends tagClass {});
|
|
11554
|
+
}
|
|
11555
|
+
|
|
11556
|
+
return tag;
|
|
11557
|
+
}
|
|
11558
|
+
};
|
|
11559
|
+
|
|
11560
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11561
|
+
// See LICENSE in the project root for license information.
|
|
11562
|
+
|
|
11563
|
+
// ---------------------------------------------------------------------
|
|
11564
|
+
|
|
11565
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11566
|
+
|
|
11567
|
+
let AuroLibraryRuntimeUtils$7 = class AuroLibraryRuntimeUtils {
|
|
11568
|
+
|
|
11569
|
+
/* eslint-disable jsdoc/require-param */
|
|
11570
|
+
|
|
11571
|
+
/**
|
|
11572
|
+
* This will register a new custom element with the browser.
|
|
11573
|
+
* @param {String} name - The name of the custom element.
|
|
11574
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11575
|
+
* @returns {void}
|
|
11576
|
+
*/
|
|
11577
|
+
registerComponent(name, componentClass) {
|
|
11578
|
+
if (!customElements.get(name)) {
|
|
11579
|
+
customElements.define(name, class extends componentClass {});
|
|
11580
|
+
}
|
|
11581
|
+
}
|
|
11582
|
+
|
|
11583
|
+
/**
|
|
11584
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11585
|
+
* @returns {void}
|
|
11586
|
+
*/
|
|
11587
|
+
closestElement(
|
|
11588
|
+
selector, // selector like in .closest()
|
|
11589
|
+
base = this, // extra functionality to skip a parent
|
|
11590
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11591
|
+
!el || el === document || el === window
|
|
11592
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11593
|
+
: found
|
|
11594
|
+
? found // found a selector INside this element
|
|
11595
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11596
|
+
) {
|
|
11597
|
+
return __Closest(base);
|
|
11598
|
+
}
|
|
11599
|
+
/* eslint-enable jsdoc/require-param */
|
|
11600
|
+
|
|
11601
|
+
/**
|
|
11602
|
+
* 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.
|
|
11603
|
+
* @param {Object} elem - The element to check.
|
|
11604
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11605
|
+
* @returns {void}
|
|
11606
|
+
*/
|
|
11607
|
+
handleComponentTagRename(elem, tagName) {
|
|
11608
|
+
const tag = tagName.toLowerCase();
|
|
11609
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11610
|
+
|
|
11611
|
+
if (elemTag !== tag) {
|
|
11612
|
+
elem.setAttribute(tag, true);
|
|
11613
|
+
}
|
|
11614
|
+
}
|
|
11615
|
+
|
|
11616
|
+
/**
|
|
11617
|
+
* Validates if an element is a specific Auro component.
|
|
11618
|
+
* @param {Object} elem - The element to validate.
|
|
11619
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11620
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11621
|
+
*/
|
|
11622
|
+
elementMatch(elem, tagName) {
|
|
11623
|
+
const tag = tagName.toLowerCase();
|
|
11624
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11625
|
+
|
|
11626
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11627
|
+
}
|
|
11628
|
+
};
|
|
11629
|
+
|
|
11630
|
+
var styleCss$7 = i$6`: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}`;
|
|
11631
|
+
|
|
11632
|
+
var colorCss$7 = 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}`;
|
|
11633
|
+
|
|
11634
|
+
var tokensCss$7 = i$6`: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}`;
|
|
11635
|
+
|
|
11636
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11637
|
+
// See LICENSE in the project root for license information.
|
|
11638
|
+
|
|
11639
|
+
// ---------------------------------------------------------------------
|
|
11640
|
+
|
|
11641
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11642
|
+
|
|
11643
|
+
let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
11644
|
+
|
|
11645
|
+
/* eslint-disable jsdoc/require-param */
|
|
11646
|
+
|
|
11647
|
+
/**
|
|
11648
|
+
* This will register a new custom element with the browser.
|
|
11649
|
+
* @param {String} name - The name of the custom element.
|
|
11650
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11651
|
+
* @returns {void}
|
|
11652
|
+
*/
|
|
11653
|
+
registerComponent(name, componentClass) {
|
|
11654
|
+
if (!customElements.get(name)) {
|
|
11655
|
+
customElements.define(name, class extends componentClass {});
|
|
11656
|
+
}
|
|
11657
|
+
}
|
|
11658
|
+
|
|
11659
|
+
/**
|
|
11660
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11661
|
+
* @returns {void}
|
|
11662
|
+
*/
|
|
11663
|
+
closestElement(
|
|
11664
|
+
selector, // selector like in .closest()
|
|
11665
|
+
base = this, // extra functionality to skip a parent
|
|
11666
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11667
|
+
!el || el === document || el === window
|
|
11668
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11669
|
+
: found
|
|
11670
|
+
? found // found a selector INside this element
|
|
11671
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11672
|
+
) {
|
|
11673
|
+
return __Closest(base);
|
|
11674
|
+
}
|
|
11675
|
+
/* eslint-enable jsdoc/require-param */
|
|
11676
|
+
|
|
11677
|
+
/**
|
|
11678
|
+
* 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.
|
|
11679
|
+
* @param {Object} elem - The element to check.
|
|
11680
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11681
|
+
* @returns {void}
|
|
11682
|
+
*/
|
|
11683
|
+
handleComponentTagRename(elem, tagName) {
|
|
11684
|
+
const tag = tagName.toLowerCase();
|
|
11685
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11686
|
+
|
|
11687
|
+
if (elemTag !== tag) {
|
|
11688
|
+
elem.setAttribute(tag, true);
|
|
11689
|
+
}
|
|
11690
|
+
}
|
|
11691
|
+
|
|
11692
|
+
/**
|
|
11693
|
+
* Validates if an element is a specific Auro component.
|
|
11694
|
+
* @param {Object} elem - The element to validate.
|
|
11695
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11696
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11697
|
+
*/
|
|
11698
|
+
elementMatch(elem, tagName) {
|
|
11699
|
+
const tag = tagName.toLowerCase();
|
|
11700
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11701
|
+
|
|
11702
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11703
|
+
}
|
|
11704
|
+
};
|
|
11705
|
+
|
|
11706
|
+
var styleCss$6 = i$6`: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}}`;
|
|
11707
|
+
|
|
11708
|
+
var colorCss$6 = i$6`: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}`;
|
|
11709
|
+
|
|
11710
|
+
var tokensCss$6 = i$6`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11711
|
+
|
|
11712
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11713
|
+
// See LICENSE in the project root for license information.
|
|
11714
|
+
|
|
11715
|
+
|
|
11716
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
11717
|
+
/**
|
|
11718
|
+
* The auro-loader element is an easy to use animated loader component.
|
|
11719
|
+
*
|
|
11720
|
+
* @attr {Boolean} pulse - sets loader type
|
|
11721
|
+
* @attr {Boolean} ringworm - sets loader type
|
|
11722
|
+
* @attr {Boolean} laser - sets loader type
|
|
11723
|
+
* @attr {Boolean} orbit - sets loader type
|
|
11724
|
+
* @attr {Boolean} white - sets color of loader to white
|
|
11725
|
+
* @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
|
|
11726
|
+
* @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
|
|
11727
|
+
* @attr {Boolean} xs - sets size to extra small
|
|
11728
|
+
* @attr {Boolean} sm - sets size to small
|
|
11729
|
+
* @attr {Boolean} md - sets size to medium
|
|
11730
|
+
* @attr {Boolean} lg - sets size to large
|
|
11731
|
+
* @csspart element - apply style to adjust speed of animation
|
|
11732
|
+
*/
|
|
11733
|
+
|
|
11734
|
+
// build the component class
|
|
11735
|
+
let AuroLoader$1 = class AuroLoader extends r$3 {
|
|
11736
|
+
constructor() {
|
|
11737
|
+
super();
|
|
11738
|
+
|
|
11739
|
+
/**
|
|
11740
|
+
* @private
|
|
11741
|
+
*/
|
|
11742
|
+
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
11743
|
+
|
|
11744
|
+
/**
|
|
11745
|
+
* @private
|
|
11746
|
+
*/
|
|
11747
|
+
this.mdCount = 3;
|
|
11748
|
+
|
|
11749
|
+
/**
|
|
11750
|
+
* @private
|
|
11751
|
+
*/
|
|
11752
|
+
this.smCount = 2;
|
|
11753
|
+
|
|
11754
|
+
/**
|
|
11755
|
+
* @private
|
|
11756
|
+
*/
|
|
11757
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
11758
|
+
|
|
11759
|
+
this.orbit = false;
|
|
11760
|
+
this.ringworm = false;
|
|
11761
|
+
this.laser = false;
|
|
11762
|
+
this.pulse = false;
|
|
11763
|
+
}
|
|
11764
|
+
|
|
11765
|
+
// function to define props used within the scope of this component
|
|
11766
|
+
static get properties() {
|
|
11767
|
+
return {
|
|
11768
|
+
pulse: {
|
|
11769
|
+
type: Boolean,
|
|
11770
|
+
reflect: true
|
|
11771
|
+
},
|
|
11772
|
+
orbit: {
|
|
11773
|
+
type: Boolean,
|
|
11774
|
+
reflect: true
|
|
11775
|
+
},
|
|
11776
|
+
ringworm: {
|
|
11777
|
+
type: Boolean,
|
|
11778
|
+
reflect: true
|
|
11779
|
+
},
|
|
11780
|
+
laser: {
|
|
11781
|
+
type: Boolean,
|
|
11782
|
+
reflect: true
|
|
11783
|
+
}
|
|
11784
|
+
};
|
|
11785
|
+
}
|
|
11786
|
+
|
|
11787
|
+
static get styles() {
|
|
11788
|
+
return [
|
|
11789
|
+
i$6`${styleCss$6}`,
|
|
11790
|
+
i$6`${colorCss$6}`,
|
|
11791
|
+
i$6`${tokensCss$6}`
|
|
11792
|
+
];
|
|
11793
|
+
}
|
|
11794
|
+
|
|
11795
|
+
/**
|
|
11796
|
+
* This will register this element with the browser.
|
|
11797
|
+
* @param {string} [name="auro-loader"] - The name of element that you want to register to.
|
|
11798
|
+
*
|
|
11799
|
+
* @example
|
|
11800
|
+
* AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
|
|
11801
|
+
*
|
|
11802
|
+
*/
|
|
11803
|
+
static register(name = "auro-loader") {
|
|
11804
|
+
AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroLoader);
|
|
11805
|
+
}
|
|
11806
|
+
|
|
11807
|
+
firstUpdated() {
|
|
11808
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
11809
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
|
|
11810
|
+
}
|
|
11811
|
+
|
|
11812
|
+
connectedCallback() {
|
|
11813
|
+
super.connectedCallback();
|
|
11814
|
+
}
|
|
11815
|
+
|
|
11816
|
+
/**
|
|
11817
|
+
* @private
|
|
11818
|
+
* @returns {Array} Numbered array for template map.
|
|
11819
|
+
*/
|
|
11820
|
+
defineTemplate() {
|
|
11821
|
+
let nodes = Array.from(Array(this.mdCount).keys());
|
|
11822
|
+
|
|
11823
|
+
if (this.orbit || this.laser) {
|
|
11824
|
+
nodes = Array.from(Array(this.smCount).keys());
|
|
11825
|
+
} else if (this.ringworm) {
|
|
11826
|
+
nodes = Array.from(Array(0).keys());
|
|
11827
|
+
}
|
|
11828
|
+
|
|
11829
|
+
return nodes;
|
|
11830
|
+
}
|
|
11831
|
+
|
|
11832
|
+
// When using auroElement, use the following attribute and function when hiding content from screen readers.
|
|
11833
|
+
// aria-hidden="${this.hideAudible(this.hiddenAudible)}"
|
|
11834
|
+
|
|
11835
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
11836
|
+
render() {
|
|
11837
|
+
return x`
|
|
11838
|
+
${this.defineTemplate().map((idx) => x`
|
|
11839
|
+
<span part="element" class="loader node-${idx}"></span>
|
|
11840
|
+
`)}
|
|
11841
|
+
|
|
11842
|
+
<div class="no-animation">Loading...</div>
|
|
11843
|
+
|
|
11844
|
+
${this.ringworm ? x`
|
|
11845
|
+
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
11846
|
+
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
11847
|
+
</svg>`
|
|
11848
|
+
: ``
|
|
11849
|
+
}
|
|
11850
|
+
`;
|
|
11851
|
+
}
|
|
11852
|
+
};
|
|
11853
|
+
|
|
11854
|
+
var loaderVersion$1 = '4.0.0';
|
|
11855
|
+
|
|
11856
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11857
|
+
// See LICENSE in the project root for license information.
|
|
11858
|
+
|
|
11859
|
+
|
|
11860
|
+
/**
|
|
11861
|
+
* @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
|
|
11862
|
+
* @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
|
|
11863
|
+
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
11864
|
+
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
11865
|
+
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
11866
|
+
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
11867
|
+
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
11868
|
+
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
11869
|
+
* @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.
|
|
11870
|
+
* @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.
|
|
11871
|
+
* @attr {String} id - Set the unique ID of an element.
|
|
11872
|
+
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
11873
|
+
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
11874
|
+
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
11875
|
+
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
11876
|
+
* @attr {Boolean} secondary - DEPRECATED
|
|
11877
|
+
* @attr {Boolean} tertiary - DEPRECATED
|
|
11878
|
+
* @prop {Boolean} ready - When false the component API should not be called.
|
|
11879
|
+
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
11880
|
+
* @slot - Default slot for the text of the button.
|
|
11881
|
+
* @slot icon - Slot to provide auro-icon for the button.
|
|
11882
|
+
* @csspart button - Apply CSS to HTML5 button.
|
|
11883
|
+
* @csspart loader - Apply CSS to auro-loader.
|
|
11884
|
+
* @csspart text - Apply CSS to text slot.
|
|
11885
|
+
* @csspart icon - Apply CSS to icon slot.
|
|
11886
|
+
*/
|
|
11887
|
+
|
|
11888
|
+
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
11889
|
+
|
|
11890
|
+
let AuroButton$1 = class AuroButton extends r$3 {
|
|
11891
|
+
|
|
11892
|
+
/**
|
|
11893
|
+
* Enables form association for this element.
|
|
11894
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
|
|
11895
|
+
* @returns {boolean} - Returns true to enable form association.
|
|
11896
|
+
*/
|
|
11897
|
+
static get formAssociated() {
|
|
11898
|
+
return true;
|
|
11899
|
+
}
|
|
11900
|
+
|
|
11901
|
+
constructor() {
|
|
11902
|
+
super();
|
|
11903
|
+
|
|
11904
|
+
this.autofocus = false;
|
|
11905
|
+
this.disabled = false;
|
|
11906
|
+
this.iconOnly = false;
|
|
11907
|
+
this.loading = false;
|
|
11908
|
+
this.onDark = false;
|
|
11909
|
+
this.ready = false;
|
|
11910
|
+
this.secondary = false;
|
|
11911
|
+
this.tertiary = false;
|
|
11912
|
+
this.rounded = false;
|
|
11913
|
+
this.slim = false;
|
|
11914
|
+
this.fluid = false;
|
|
11915
|
+
|
|
11916
|
+
// Support for HTML5 forms
|
|
11917
|
+
if (typeof this.attachInternals === 'function') {
|
|
11918
|
+
this.internals = this.attachInternals();
|
|
11919
|
+
} else {
|
|
11920
|
+
this.internals = null;
|
|
11921
|
+
|
|
11922
|
+
// eslint-disable-next-line no-console
|
|
11923
|
+
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.');
|
|
11924
|
+
}
|
|
11925
|
+
|
|
11926
|
+
/**
|
|
11927
|
+
* Generate unique names for dependency components.
|
|
11928
|
+
*/
|
|
11929
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
11930
|
+
|
|
11931
|
+
/**
|
|
11932
|
+
* @private
|
|
11933
|
+
*/
|
|
11934
|
+
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
11935
|
+
}
|
|
11936
|
+
|
|
11937
|
+
static get styles() {
|
|
11938
|
+
return [
|
|
11939
|
+
tokensCss$7,
|
|
11940
|
+
styleCss$7,
|
|
11941
|
+
colorCss$7
|
|
11942
|
+
];
|
|
11943
|
+
}
|
|
11944
|
+
|
|
11945
|
+
static get properties() {
|
|
11946
|
+
return {
|
|
11947
|
+
autofocus: {
|
|
11948
|
+
type: Boolean,
|
|
11949
|
+
reflect: true
|
|
11950
|
+
},
|
|
11951
|
+
disabled: {
|
|
11952
|
+
type: Boolean,
|
|
11953
|
+
reflect: true
|
|
11954
|
+
},
|
|
11955
|
+
secondary: {
|
|
11956
|
+
type: Boolean,
|
|
11957
|
+
reflect: true
|
|
11958
|
+
},
|
|
11959
|
+
tertiary: {
|
|
11960
|
+
type: Boolean,
|
|
11961
|
+
reflect: true
|
|
11962
|
+
},
|
|
11963
|
+
fluid: {
|
|
11964
|
+
type: Boolean,
|
|
11965
|
+
reflect: true
|
|
11966
|
+
},
|
|
11967
|
+
iconOnly: {
|
|
11968
|
+
type: Boolean,
|
|
11969
|
+
reflect: true
|
|
11970
|
+
},
|
|
11971
|
+
loading: {
|
|
11972
|
+
type: Boolean,
|
|
11973
|
+
reflect: true
|
|
11974
|
+
},
|
|
11975
|
+
onDark: {
|
|
11976
|
+
type: Boolean,
|
|
11977
|
+
reflect: true
|
|
11978
|
+
},
|
|
11979
|
+
rounded: {
|
|
11980
|
+
type: Boolean,
|
|
11981
|
+
reflect: true
|
|
11982
|
+
},
|
|
11983
|
+
slim: {
|
|
11984
|
+
type: Boolean,
|
|
11985
|
+
reflect: true
|
|
11986
|
+
},
|
|
11987
|
+
arialabel: {
|
|
11988
|
+
type: String,
|
|
11989
|
+
reflect: true
|
|
11990
|
+
},
|
|
11991
|
+
arialabelledby: {
|
|
11992
|
+
type: String,
|
|
11993
|
+
reflect: true
|
|
11994
|
+
},
|
|
11995
|
+
title: {
|
|
11996
|
+
type: String,
|
|
11997
|
+
reflect: true
|
|
11998
|
+
},
|
|
11999
|
+
type: {
|
|
12000
|
+
type: String,
|
|
12001
|
+
reflect: true
|
|
12002
|
+
},
|
|
12003
|
+
value: {
|
|
12004
|
+
type: String,
|
|
12005
|
+
reflect: true
|
|
12006
|
+
},
|
|
12007
|
+
variant: {
|
|
12008
|
+
type: String,
|
|
12009
|
+
reflect: true
|
|
12010
|
+
},
|
|
12011
|
+
ready: { type: Boolean },
|
|
12012
|
+
};
|
|
12013
|
+
}
|
|
12014
|
+
|
|
12015
|
+
/**
|
|
12016
|
+
* This will register this element with the browser.
|
|
12017
|
+
* @param {string} [name="auro-button"] - The name of element that you want to register to.
|
|
12018
|
+
*
|
|
12019
|
+
* @example
|
|
12020
|
+
* AuroButton.register("custom-button") // this will register this element to <custom-button/>
|
|
12021
|
+
*
|
|
12022
|
+
*/
|
|
12023
|
+
static register(name = "auro-button") {
|
|
12024
|
+
AuroLibraryRuntimeUtils$7.prototype.registerComponent(name, AuroButton);
|
|
12025
|
+
}
|
|
12026
|
+
|
|
12027
|
+
/**
|
|
12028
|
+
* Internal method to apply focus to the HTML5 button.
|
|
12029
|
+
* @private
|
|
12030
|
+
* @returns {void}
|
|
12031
|
+
*/
|
|
12032
|
+
focus() {
|
|
12033
|
+
this.renderRoot.querySelector('button').focus();
|
|
11296
12034
|
}
|
|
11297
12035
|
|
|
11298
12036
|
/**
|
|
11299
|
-
*
|
|
11300
|
-
* @
|
|
12037
|
+
* Marks the component as ready and sends event.
|
|
12038
|
+
* @private
|
|
11301
12039
|
* @returns {void}
|
|
11302
12040
|
*/
|
|
11303
|
-
|
|
11304
|
-
|
|
11305
|
-
|
|
11306
|
-
|
|
12041
|
+
notifyReady() {
|
|
12042
|
+
this.ready = true;
|
|
12043
|
+
|
|
12044
|
+
this.dispatchEvent(new CustomEvent('auroButton-ready', {
|
|
12045
|
+
bubbles: true,
|
|
12046
|
+
cancelable: false,
|
|
12047
|
+
composed: true,
|
|
12048
|
+
}));
|
|
11307
12049
|
}
|
|
11308
12050
|
|
|
11309
|
-
|
|
11310
|
-
|
|
12051
|
+
updated() {
|
|
12052
|
+
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
12053
|
+
if (this.secondary) {
|
|
12054
|
+
this.setAttribute('variant', 'secondary');
|
|
12055
|
+
}
|
|
11311
12056
|
|
|
11312
|
-
|
|
11313
|
-
|
|
12057
|
+
if (this.tertiary) {
|
|
12058
|
+
this.setAttribute('variant', 'tertiary');
|
|
12059
|
+
}
|
|
11314
12060
|
}
|
|
11315
12061
|
|
|
11316
|
-
|
|
11317
|
-
|
|
11318
|
-
|
|
11319
|
-
this.removeEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
12062
|
+
firstUpdated() {
|
|
12063
|
+
this.notifyReady();
|
|
11320
12064
|
}
|
|
11321
12065
|
|
|
11322
|
-
|
|
11323
|
-
this.
|
|
11324
|
-
|
|
12066
|
+
surfaceSubmitEvent() {
|
|
12067
|
+
if (this.form) {
|
|
12068
|
+
this.form.requestSubmit();
|
|
12069
|
+
}
|
|
11325
12070
|
}
|
|
11326
12071
|
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
* @returns {void}
|
|
11330
|
-
*/
|
|
11331
|
-
exposeCssParts() {
|
|
11332
|
-
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
12072
|
+
get form() {
|
|
12073
|
+
return this.internals ? this.internals.form : null;
|
|
11333
12074
|
}
|
|
11334
12075
|
|
|
11335
|
-
// function that renders the HTML and CSS into the scope of the component
|
|
11336
12076
|
render() {
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
<span id="subheader">
|
|
11348
|
-
<slot name="subheader"></slot>
|
|
11349
|
-
</span>
|
|
11350
|
-
</div>` : null}
|
|
12077
|
+
const classes = {
|
|
12078
|
+
'util_insetLg--squish': true,
|
|
12079
|
+
'auro-button': true,
|
|
12080
|
+
'auroButton': true,
|
|
12081
|
+
'auro-button--rounded': this.rounded,
|
|
12082
|
+
'auro-button--slim': this.slim,
|
|
12083
|
+
'auro-button--iconOnly': this.iconOnly,
|
|
12084
|
+
'auro-button--iconOnlySlim': this.iconOnly && this.slim,
|
|
12085
|
+
'loading': this.loading
|
|
12086
|
+
};
|
|
11351
12087
|
|
|
11352
|
-
|
|
11353
|
-
|
|
11354
|
-
|
|
12088
|
+
return u$2`
|
|
12089
|
+
<button
|
|
12090
|
+
part="button"
|
|
12091
|
+
aria-label="${o(this.arialabel ? this.arialabel : undefined)}"
|
|
12092
|
+
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
12093
|
+
?autofocus="${this.autofocus}"
|
|
12094
|
+
class="${e(classes)}"
|
|
12095
|
+
?disabled="${this.disabled || this.loading}"
|
|
12096
|
+
?onDark="${this.onDark}"
|
|
12097
|
+
title="${o(this.title ? this.title : undefined)}"
|
|
12098
|
+
name="${o(this.name ? this.name : undefined)}"
|
|
12099
|
+
type="${o(this.type ? this.type : undefined)}"
|
|
12100
|
+
variant="${o(this.variant ? this.variant : undefined)}"
|
|
12101
|
+
.value="${o(this.value ? this.value : undefined)}"
|
|
12102
|
+
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
12103
|
+
>
|
|
12104
|
+
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
11355
12105
|
|
|
11356
|
-
|
|
11357
|
-
|
|
11358
|
-
|
|
11359
|
-
|
|
11360
|
-
|
|
11361
|
-
|
|
12106
|
+
<span class="contentWrapper">
|
|
12107
|
+
<span class="textSlot" part="text">
|
|
12108
|
+
${this.iconOnly ? undefined : u$2`<slot></slot>`}
|
|
12109
|
+
</span>
|
|
12110
|
+
|
|
12111
|
+
<span part="icon">
|
|
12112
|
+
<slot name="icon"></slot>
|
|
12113
|
+
</span>
|
|
12114
|
+
</span>
|
|
12115
|
+
</button>
|
|
12116
|
+
`;
|
|
11362
12117
|
}
|
|
11363
|
-
}
|
|
12118
|
+
};
|
|
11364
12119
|
|
|
11365
|
-
var
|
|
12120
|
+
var buttonVersion$1 = '9.0.0';
|
|
11366
12121
|
|
|
11367
12122
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
11368
12123
|
/**
|
|
@@ -11426,33 +12181,33 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11426
12181
|
*/
|
|
11427
12182
|
this.numCalendars = undefined;
|
|
11428
12183
|
|
|
11429
|
-
|
|
11430
12184
|
this.visible = false;
|
|
11431
12185
|
|
|
11432
|
-
|
|
11433
12186
|
/**
|
|
11434
12187
|
* @private
|
|
11435
12188
|
*/
|
|
11436
12189
|
this.slots = {};
|
|
11437
12190
|
|
|
11438
|
-
const versioning = new AuroDependencyVersioning$
|
|
12191
|
+
const versioning = new AuroDependencyVersioning$5();
|
|
11439
12192
|
|
|
11440
12193
|
/**
|
|
11441
12194
|
* @private
|
|
11442
12195
|
*/
|
|
11443
|
-
this.bibtemplateTag = versioning.generateTag('auro-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
12196
|
+
this.bibtemplateTag = versioning.generateTag('auro-formkit-datepicker-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
11444
12197
|
|
|
11445
12198
|
/**
|
|
11446
12199
|
* @private
|
|
11447
12200
|
*/
|
|
12201
|
+
this.buttonTag = versioning.generateTag('auro-formkit-datepicker-button', buttonVersion$1, AuroButton$1);
|
|
12202
|
+
|
|
11448
12203
|
this.dropdown = undefined;
|
|
11449
12204
|
}
|
|
11450
12205
|
|
|
11451
12206
|
static get styles() {
|
|
11452
12207
|
return [
|
|
11453
|
-
styleCss$
|
|
11454
|
-
colorCss$
|
|
11455
|
-
tokensCss$
|
|
12208
|
+
styleCss$c,
|
|
12209
|
+
colorCss$c,
|
|
12210
|
+
tokensCss$a
|
|
11456
12211
|
];
|
|
11457
12212
|
}
|
|
11458
12213
|
|
|
@@ -11499,6 +12254,9 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11499
12254
|
type: Boolean,
|
|
11500
12255
|
reflect: true
|
|
11501
12256
|
},
|
|
12257
|
+
dropdown: {
|
|
12258
|
+
type: Object
|
|
12259
|
+
},
|
|
11502
12260
|
|
|
11503
12261
|
/**
|
|
11504
12262
|
* @private
|
|
@@ -11534,16 +12292,14 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11534
12292
|
*/
|
|
11535
12293
|
renderAllCalendars() {
|
|
11536
12294
|
let renderedHtml = undefined;
|
|
12295
|
+
|
|
11537
12296
|
if (this.visible) {
|
|
11538
12297
|
this.utilCalRender.setFirstRenderableMonthDate(this);
|
|
11539
12298
|
this.utilCal.assessNavigationButtonVisibility(this);
|
|
11540
12299
|
|
|
11541
|
-
|
|
11542
|
-
const dropdownbib = dropdown ? dropdown.bibContent : AuroLibraryRuntimeUtils$4.prototype.closestElement('auro-dropdownbib, [auro-dropdownbib]', this);
|
|
11543
|
-
this.isFullscreen = dropdownbib.hasAttribute('isFullscreen');
|
|
12300
|
+
this.isFullscreen = this.dropdown.bibContent.hasAttribute('isFullscreen');
|
|
11544
12301
|
this.utilCalRender.determineNumCalendarsToRender(this, this.isFullscreen);
|
|
11545
12302
|
|
|
11546
|
-
|
|
11547
12303
|
// Determine which month to render first
|
|
11548
12304
|
let dateMatches = undefined;
|
|
11549
12305
|
|
|
@@ -11579,7 +12335,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11579
12335
|
const firstMonth = this.firstRenderedMonth.getMonth() + 1;
|
|
11580
12336
|
const firstYear = this.firstRenderedMonth.getFullYear();
|
|
11581
12337
|
|
|
11582
|
-
renderedHtml = u$
|
|
12338
|
+
renderedHtml = u$2`${renderedHtml}${this.utilCalRender.renderCalendar(this, firstMonth, firstYear)}`;
|
|
11583
12339
|
|
|
11584
12340
|
// Loop through the number of remaining calendars to render and add the HTML
|
|
11585
12341
|
let newMonthDate = undefined;
|
|
@@ -11605,9 +12361,10 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11605
12361
|
const newMonthDateStr = `${newMonth}/1/${newYear}`;
|
|
11606
12362
|
newMonthDate = new Date(newMonthDateStr);
|
|
11607
12363
|
|
|
11608
|
-
renderedHtml = u$
|
|
12364
|
+
renderedHtml = u$2`${renderedHtml}${this.utilCalRender.renderCalendar(this, newMonth, newYear)}`;
|
|
11609
12365
|
}
|
|
11610
12366
|
}
|
|
12367
|
+
|
|
11611
12368
|
return renderedHtml;
|
|
11612
12369
|
}
|
|
11613
12370
|
|
|
@@ -11668,7 +12425,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11668
12425
|
}
|
|
11669
12426
|
|
|
11670
12427
|
render() {
|
|
11671
|
-
return u$
|
|
12428
|
+
return u$2`
|
|
11672
12429
|
<${this.bibtemplateTag}
|
|
11673
12430
|
?large="${this.largeFullscreenHeadline}"
|
|
11674
12431
|
?isFullscreen="${this.isFullscreen}"
|
|
@@ -11690,12 +12447,12 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11690
12447
|
${this.renderAllCalendars()}
|
|
11691
12448
|
</div>
|
|
11692
12449
|
<div class="calendarNavButtons">
|
|
11693
|
-
${this.showPrevMonthBtn ? u$
|
|
12450
|
+
${this.showPrevMonthBtn ? u$2`
|
|
11694
12451
|
<button class="calendarNavBtn prevMonth" @click="${this.handlePrevMonth}">
|
|
11695
12452
|
${this.util.generateIconHtml(chevronLeft)}
|
|
11696
12453
|
</button>
|
|
11697
12454
|
` : undefined}
|
|
11698
|
-
${this.showNextMonthBtn ? u$
|
|
12455
|
+
${this.showNextMonthBtn ? u$2`
|
|
11699
12456
|
<button class="calendarNavBtn nextMonth" @click="${this.handleNextMonth}">
|
|
11700
12457
|
${this.util.generateIconHtml(chevronRight)}
|
|
11701
12458
|
</button>
|
|
@@ -11703,49 +12460,16 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11703
12460
|
</div>
|
|
11704
12461
|
</div>
|
|
11705
12462
|
|
|
11706
|
-
|
|
12463
|
+
<${this.buttonTag} slot="footer" fluid @click="${this.utilCal.requestDismiss}">Done</${this.buttonTag}>
|
|
11707
12464
|
</${this.bibtemplateTag}>
|
|
11708
12465
|
`;
|
|
11709
12466
|
}
|
|
11710
12467
|
}
|
|
11711
12468
|
|
|
11712
|
-
if (!customElements.get('auro-calendar')) {
|
|
11713
|
-
customElements.define('auro-calendar', AuroCalendar);
|
|
12469
|
+
if (!customElements.get('auro-formkit-calendar')) {
|
|
12470
|
+
customElements.define('auro-formkit-calendar', AuroCalendar);
|
|
11714
12471
|
}
|
|
11715
12472
|
|
|
11716
|
-
/**
|
|
11717
|
-
* @license
|
|
11718
|
-
* Copyright 2017 Google LLC
|
|
11719
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11720
|
-
*/
|
|
11721
|
-
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};
|
|
11722
|
-
|
|
11723
|
-
/**
|
|
11724
|
-
* @license
|
|
11725
|
-
* Copyright 2020 Google LLC
|
|
11726
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11727
|
-
*/
|
|
11728
|
-
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);
|
|
11729
|
-
|
|
11730
|
-
/**
|
|
11731
|
-
* @license
|
|
11732
|
-
* Copyright 2019 Google LLC
|
|
11733
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11734
|
-
*/
|
|
11735
|
-
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;
|
|
11736
|
-
|
|
11737
|
-
/**
|
|
11738
|
-
* @license
|
|
11739
|
-
* Copyright 2017 Google LLC
|
|
11740
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11741
|
-
*/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");
|
|
11742
|
-
|
|
11743
|
-
/**
|
|
11744
|
-
* @license
|
|
11745
|
-
* Copyright 2017 Google LLC
|
|
11746
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11747
|
-
*/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");
|
|
11748
|
-
|
|
11749
12473
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11750
12474
|
// See LICENSE in the project root for license information.
|
|
11751
12475
|
|
|
@@ -11753,7 +12477,7 @@ const t$3$1=globalThis,e$6$1=t$3$1.ShadowRoot&&(void 0===t$3$1.ShadyCSS||t$3$1.S
|
|
|
11753
12477
|
|
|
11754
12478
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11755
12479
|
|
|
11756
|
-
let AuroLibraryRuntimeUtils$
|
|
12480
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
11757
12481
|
|
|
11758
12482
|
/* eslint-disable jsdoc/require-param */
|
|
11759
12483
|
|
|
@@ -12545,7 +13269,8 @@ function isContainingBlock(elementOrCss) {
|
|
|
12545
13269
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
12546
13270
|
|
|
12547
13271
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
12548
|
-
|
|
13272
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
13273
|
+
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));
|
|
12549
13274
|
}
|
|
12550
13275
|
function getContainingBlock(element) {
|
|
12551
13276
|
let currentNode = getParentNode(element);
|
|
@@ -13103,6 +13828,10 @@ const platform = {
|
|
|
13103
13828
|
isRTL
|
|
13104
13829
|
};
|
|
13105
13830
|
|
|
13831
|
+
function rectsAreEqual(a, b) {
|
|
13832
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
13833
|
+
}
|
|
13834
|
+
|
|
13106
13835
|
// https://samthor.au/2021/observing-dom/
|
|
13107
13836
|
function observeMove(element, onMove) {
|
|
13108
13837
|
let io = null;
|
|
@@ -13122,12 +13851,13 @@ function observeMove(element, onMove) {
|
|
|
13122
13851
|
threshold = 1;
|
|
13123
13852
|
}
|
|
13124
13853
|
cleanup();
|
|
13854
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
13125
13855
|
const {
|
|
13126
13856
|
left,
|
|
13127
13857
|
top,
|
|
13128
13858
|
width,
|
|
13129
13859
|
height
|
|
13130
|
-
} =
|
|
13860
|
+
} = elementRectForRootMargin;
|
|
13131
13861
|
if (!skip) {
|
|
13132
13862
|
onMove();
|
|
13133
13863
|
}
|
|
@@ -13160,6 +13890,16 @@ function observeMove(element, onMove) {
|
|
|
13160
13890
|
refresh(false, ratio);
|
|
13161
13891
|
}
|
|
13162
13892
|
}
|
|
13893
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
13894
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
13895
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
13896
|
+
// area anymore. This can happen under performance constraints. This may
|
|
13897
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
13898
|
+
// work around this, we compare the element's bounding rect now with
|
|
13899
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
13900
|
+
// are not equal then the element moved, so we refresh.
|
|
13901
|
+
refresh();
|
|
13902
|
+
}
|
|
13163
13903
|
isFirstUpdate = false;
|
|
13164
13904
|
}
|
|
13165
13905
|
|
|
@@ -13237,7 +13977,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
13237
13977
|
}
|
|
13238
13978
|
function frameLoop() {
|
|
13239
13979
|
const nextRefRect = getBoundingClientRect(reference);
|
|
13240
|
-
if (prevRefRect && (
|
|
13980
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
13241
13981
|
update();
|
|
13242
13982
|
}
|
|
13243
13983
|
prevRefRect = nextRefRect;
|
|
@@ -13550,11 +14290,11 @@ class AuroFloatingUI {
|
|
|
13550
14290
|
|
|
13551
14291
|
updateCurrentExpandedDropdown() {
|
|
13552
14292
|
// Close any other dropdown that is already open
|
|
13553
|
-
if (document.
|
|
13554
|
-
|
|
14293
|
+
if (document.expandedAuroFormkitDropdown) {
|
|
14294
|
+
document.expandedAuroFormkitDropdown.hide;
|
|
13555
14295
|
}
|
|
13556
14296
|
|
|
13557
|
-
document.
|
|
14297
|
+
document.expandedAuroFormkitDropdown = this;
|
|
13558
14298
|
}
|
|
13559
14299
|
|
|
13560
14300
|
showBib() {
|
|
@@ -13742,7 +14482,7 @@ class AuroFloatingUI {
|
|
|
13742
14482
|
// See LICENSE in the project root for license information.
|
|
13743
14483
|
|
|
13744
14484
|
|
|
13745
|
-
let AuroDependencyVersioning$
|
|
14485
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
13746
14486
|
|
|
13747
14487
|
/**
|
|
13748
14488
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -13768,7 +14508,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
13768
14508
|
*/
|
|
13769
14509
|
generateTag(baseName, version, tagClass) {
|
|
13770
14510
|
const elementName = this.generateElementName(baseName, version);
|
|
13771
|
-
const tag = i$
|
|
14511
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
13772
14512
|
|
|
13773
14513
|
if (!customElements.get(elementName)) {
|
|
13774
14514
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -13778,25 +14518,6 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
13778
14518
|
}
|
|
13779
14519
|
};
|
|
13780
14520
|
|
|
13781
|
-
/**
|
|
13782
|
-
* @license
|
|
13783
|
-
* Copyright 2017 Google LLC
|
|
13784
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13785
|
-
*/
|
|
13786
|
-
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)}};
|
|
13787
|
-
|
|
13788
|
-
/**
|
|
13789
|
-
* @license
|
|
13790
|
-
* Copyright 2018 Google LLC
|
|
13791
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13792
|
-
*/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}});
|
|
13793
|
-
|
|
13794
|
-
/**
|
|
13795
|
-
* @license
|
|
13796
|
-
* Copyright 2018 Google LLC
|
|
13797
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13798
|
-
*/const o$3$1=o=>o??E$1$1;
|
|
13799
|
-
|
|
13800
14521
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13801
14522
|
// See LICENSE in the project root for license information.
|
|
13802
14523
|
|
|
@@ -13807,7 +14528,7 @@ const t$2$1={ATTRIBUTE:1},e$4$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$
|
|
|
13807
14528
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
13808
14529
|
*/
|
|
13809
14530
|
|
|
13810
|
-
let AuroElement$1 = class AuroElement extends r$
|
|
14531
|
+
let AuroElement$1 = class AuroElement extends r$3 {
|
|
13811
14532
|
|
|
13812
14533
|
// function to define props used within the scope of this component
|
|
13813
14534
|
static get properties() {
|
|
@@ -13863,7 +14584,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
13863
14584
|
return _fetchMap$1.get(uri);
|
|
13864
14585
|
};
|
|
13865
14586
|
|
|
13866
|
-
var styleCss$3$1 = i$
|
|
14587
|
+
var styleCss$3$1 = i$6`: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}`;
|
|
13867
14588
|
|
|
13868
14589
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13869
14590
|
// See LICENSE in the project root for license information.
|
|
@@ -13902,7 +14623,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
13902
14623
|
}
|
|
13903
14624
|
|
|
13904
14625
|
static get styles() {
|
|
13905
|
-
return i$
|
|
14626
|
+
return i$6`
|
|
13906
14627
|
${styleCss$3$1}
|
|
13907
14628
|
`;
|
|
13908
14629
|
}
|
|
@@ -13944,47 +14665,88 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
13944
14665
|
}
|
|
13945
14666
|
};
|
|
13946
14667
|
|
|
13947
|
-
var tokensCss$2$1 = i$
|
|
14668
|
+
var tokensCss$2$1 = i$6`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
13948
14669
|
|
|
13949
|
-
var colorCss$3$1 = i$
|
|
14670
|
+
var colorCss$3$1 = i$6`: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)}`;
|
|
13950
14671
|
|
|
13951
|
-
// Copyright (c)
|
|
14672
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13952
14673
|
// See LICENSE in the project root for license information.
|
|
13953
14674
|
|
|
14675
|
+
// ---------------------------------------------------------------------
|
|
14676
|
+
|
|
14677
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
14678
|
+
|
|
14679
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
14680
|
+
|
|
14681
|
+
/* eslint-disable jsdoc/require-param */
|
|
14682
|
+
|
|
14683
|
+
/**
|
|
14684
|
+
* This will register a new custom element with the browser.
|
|
14685
|
+
* @param {String} name - The name of the custom element.
|
|
14686
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
14687
|
+
* @returns {void}
|
|
14688
|
+
*/
|
|
14689
|
+
registerComponent(name, componentClass) {
|
|
14690
|
+
if (!customElements.get(name)) {
|
|
14691
|
+
customElements.define(name, class extends componentClass {});
|
|
14692
|
+
}
|
|
14693
|
+
}
|
|
14694
|
+
|
|
14695
|
+
/**
|
|
14696
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
14697
|
+
* @returns {void}
|
|
14698
|
+
*/
|
|
14699
|
+
closestElement(
|
|
14700
|
+
selector, // selector like in .closest()
|
|
14701
|
+
base = this, // extra functionality to skip a parent
|
|
14702
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
14703
|
+
!el || el === document || el === window
|
|
14704
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
14705
|
+
: found
|
|
14706
|
+
? found // found a selector INside this element
|
|
14707
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
14708
|
+
) {
|
|
14709
|
+
return __Closest(base);
|
|
14710
|
+
}
|
|
14711
|
+
/* eslint-enable jsdoc/require-param */
|
|
14712
|
+
|
|
14713
|
+
/**
|
|
14714
|
+
* 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.
|
|
14715
|
+
* @param {Object} elem - The element to check.
|
|
14716
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
14717
|
+
* @returns {void}
|
|
14718
|
+
*/
|
|
14719
|
+
handleComponentTagRename(elem, tagName) {
|
|
14720
|
+
const tag = tagName.toLowerCase();
|
|
14721
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
14722
|
+
|
|
14723
|
+
if (elemTag !== tag) {
|
|
14724
|
+
elem.setAttribute(tag, true);
|
|
14725
|
+
}
|
|
14726
|
+
}
|
|
14727
|
+
|
|
14728
|
+
/**
|
|
14729
|
+
* Validates if an element is a specific Auro component.
|
|
14730
|
+
* @param {Object} elem - The element to validate.
|
|
14731
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
14732
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
14733
|
+
*/
|
|
14734
|
+
elementMatch(elem, tagName) {
|
|
14735
|
+
const tag = tagName.toLowerCase();
|
|
14736
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
14737
|
+
|
|
14738
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
14739
|
+
}
|
|
14740
|
+
};
|
|
14741
|
+
|
|
14742
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14743
|
+
// See LICENSE in the project root for license information.
|
|
13954
14744
|
|
|
13955
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
13956
|
-
/**
|
|
13957
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
13958
|
-
*
|
|
13959
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
13960
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
13961
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
13962
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
13963
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
13964
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
13965
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
13966
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
13967
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
13968
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
13969
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
13970
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
13971
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
13972
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
13973
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
13974
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
13975
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
13976
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
13977
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
13978
|
-
* @slot svg - Used for custom SVG content.
|
|
13979
|
-
*/
|
|
13980
14745
|
|
|
13981
|
-
// build the component class
|
|
13982
14746
|
let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
13983
14747
|
constructor() {
|
|
13984
14748
|
super();
|
|
13985
14749
|
|
|
13986
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
13987
|
-
|
|
13988
14750
|
this.privateDefaults();
|
|
13989
14751
|
}
|
|
13990
14752
|
|
|
@@ -14008,6 +14770,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14008
14770
|
this.success = false;
|
|
14009
14771
|
this.tertiary = false;
|
|
14010
14772
|
this.warning = false;
|
|
14773
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
14011
14774
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
14012
14775
|
}
|
|
14013
14776
|
|
|
@@ -14015,71 +14778,136 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14015
14778
|
static get properties() {
|
|
14016
14779
|
return {
|
|
14017
14780
|
...super.properties,
|
|
14781
|
+
|
|
14782
|
+
/**
|
|
14783
|
+
* Sets the icon to use the accent style.
|
|
14784
|
+
*/
|
|
14018
14785
|
accent: {
|
|
14019
14786
|
type: Boolean,
|
|
14020
14787
|
reflect: true
|
|
14021
14788
|
},
|
|
14789
|
+
|
|
14790
|
+
/**
|
|
14791
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
14792
|
+
*/
|
|
14022
14793
|
ariaHidden: {
|
|
14023
14794
|
type: String,
|
|
14024
14795
|
reflect: true
|
|
14025
14796
|
},
|
|
14797
|
+
|
|
14798
|
+
/**
|
|
14799
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
14800
|
+
*/
|
|
14026
14801
|
category: {
|
|
14027
14802
|
type: String,
|
|
14028
14803
|
reflect: true
|
|
14029
14804
|
},
|
|
14805
|
+
|
|
14806
|
+
/**
|
|
14807
|
+
* Allows custom color to be set.
|
|
14808
|
+
*/
|
|
14030
14809
|
customColor: {
|
|
14031
14810
|
type: Boolean
|
|
14032
14811
|
},
|
|
14812
|
+
|
|
14813
|
+
/**
|
|
14814
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
14815
|
+
*/
|
|
14033
14816
|
customSvg: {
|
|
14034
14817
|
type: Boolean
|
|
14035
14818
|
},
|
|
14819
|
+
|
|
14820
|
+
/**
|
|
14821
|
+
* Sets the icon to use the disabled style.
|
|
14822
|
+
*/
|
|
14036
14823
|
disabled: {
|
|
14037
14824
|
type: Boolean,
|
|
14038
14825
|
reflect: true
|
|
14039
14826
|
},
|
|
14827
|
+
|
|
14828
|
+
/**
|
|
14829
|
+
* Sets the icon to use the emphasis style.
|
|
14830
|
+
*/
|
|
14040
14831
|
emphasis: {
|
|
14041
14832
|
type: Boolean,
|
|
14042
14833
|
reflect: true
|
|
14043
14834
|
},
|
|
14835
|
+
|
|
14836
|
+
/**
|
|
14837
|
+
* Sets the icon to use the error style.
|
|
14838
|
+
*/
|
|
14044
14839
|
error: {
|
|
14045
14840
|
type: Boolean,
|
|
14046
14841
|
reflect: true
|
|
14047
14842
|
},
|
|
14843
|
+
|
|
14844
|
+
/**
|
|
14845
|
+
* Sets the icon to use the info style.
|
|
14846
|
+
*/
|
|
14048
14847
|
info: {
|
|
14049
14848
|
type: Boolean,
|
|
14050
14849
|
reflect: true
|
|
14051
14850
|
},
|
|
14851
|
+
|
|
14852
|
+
/**
|
|
14853
|
+
* Exposes content in slot as icon label.
|
|
14854
|
+
*/
|
|
14052
14855
|
label: {
|
|
14053
14856
|
type: Boolean,
|
|
14054
14857
|
reflect: true
|
|
14055
14858
|
},
|
|
14859
|
+
|
|
14860
|
+
/**
|
|
14861
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
14862
|
+
*/
|
|
14056
14863
|
name: {
|
|
14057
14864
|
type: String,
|
|
14058
14865
|
reflect: true
|
|
14059
14866
|
},
|
|
14867
|
+
|
|
14868
|
+
/**
|
|
14869
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
14870
|
+
*/
|
|
14060
14871
|
primary: {
|
|
14061
14872
|
type: Boolean,
|
|
14062
14873
|
reflect: true
|
|
14063
14874
|
},
|
|
14875
|
+
|
|
14876
|
+
/**
|
|
14877
|
+
* Sets the icon to use the secondary style.
|
|
14878
|
+
*/
|
|
14064
14879
|
secondary: {
|
|
14065
14880
|
type: Boolean,
|
|
14066
14881
|
reflect: true
|
|
14067
14882
|
},
|
|
14883
|
+
|
|
14884
|
+
/**
|
|
14885
|
+
* Sets the icon to use the subtle style.
|
|
14886
|
+
*/
|
|
14068
14887
|
subtle: {
|
|
14069
14888
|
type: Boolean,
|
|
14070
14889
|
reflect: true
|
|
14071
14890
|
},
|
|
14891
|
+
|
|
14892
|
+
/**
|
|
14893
|
+
* Sets the icon to use the success style.
|
|
14894
|
+
*/
|
|
14072
14895
|
success: {
|
|
14073
14896
|
type: Boolean,
|
|
14074
14897
|
reflect: true
|
|
14075
14898
|
},
|
|
14899
|
+
|
|
14900
|
+
/**
|
|
14901
|
+
* Sets the icon to use the tertiary style.
|
|
14902
|
+
*/
|
|
14076
14903
|
tertiary: {
|
|
14077
14904
|
type: Boolean,
|
|
14078
14905
|
reflect: true
|
|
14079
14906
|
},
|
|
14080
|
-
|
|
14081
|
-
|
|
14082
|
-
|
|
14907
|
+
|
|
14908
|
+
/**
|
|
14909
|
+
* Sets the icon to use the warning style.
|
|
14910
|
+
*/
|
|
14083
14911
|
warning: {
|
|
14084
14912
|
type: Boolean,
|
|
14085
14913
|
reflect: true
|
|
@@ -14090,9 +14918,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14090
14918
|
static get styles() {
|
|
14091
14919
|
return [
|
|
14092
14920
|
super.styles,
|
|
14093
|
-
i$
|
|
14094
|
-
i$
|
|
14095
|
-
i$
|
|
14921
|
+
i$6`${tokensCss$2$1}`,
|
|
14922
|
+
i$6`${styleCss$3$1}`,
|
|
14923
|
+
i$6`${colorCss$3$1}`
|
|
14096
14924
|
];
|
|
14097
14925
|
}
|
|
14098
14926
|
|
|
@@ -14116,38 +14944,54 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14116
14944
|
}
|
|
14117
14945
|
|
|
14118
14946
|
/**
|
|
14947
|
+
* @private
|
|
14119
14948
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
14120
14949
|
*/
|
|
14121
14950
|
exposeCssParts() {
|
|
14122
14951
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
14123
14952
|
}
|
|
14124
14953
|
|
|
14954
|
+
async firstUpdated() {
|
|
14955
|
+
await super.firstUpdated();
|
|
14956
|
+
|
|
14957
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
14958
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
14959
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
14960
|
+
|
|
14961
|
+
if (svgDesc) {
|
|
14962
|
+
svgDesc.remove();
|
|
14963
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
14964
|
+
}
|
|
14965
|
+
}
|
|
14966
|
+
}
|
|
14967
|
+
|
|
14125
14968
|
// function that renders the HTML and CSS into the scope of the component
|
|
14126
14969
|
render() {
|
|
14127
|
-
const
|
|
14128
|
-
'
|
|
14970
|
+
const labelClasses = {
|
|
14971
|
+
'labelWrapper': true,
|
|
14129
14972
|
'util_displayHiddenVisually': !this.label
|
|
14130
14973
|
};
|
|
14131
14974
|
|
|
14132
|
-
const
|
|
14133
|
-
'
|
|
14134
|
-
'wrapper': true,
|
|
14975
|
+
const svgClasses = {
|
|
14976
|
+
'svgWrapper': true,
|
|
14135
14977
|
};
|
|
14136
14978
|
|
|
14137
|
-
return x
|
|
14138
|
-
<div
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
${this.
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14979
|
+
return x`
|
|
14980
|
+
<div class="componentWrapper">
|
|
14981
|
+
<div
|
|
14982
|
+
class="${e(svgClasses)}"
|
|
14983
|
+
title="${o(this.title || undefined)}">
|
|
14984
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
14985
|
+
${this.customSvg ? x`
|
|
14986
|
+
<slot name="svg"></slot>
|
|
14987
|
+
` : x`
|
|
14988
|
+
${this.svg}
|
|
14989
|
+
`
|
|
14990
|
+
}
|
|
14991
|
+
</span>
|
|
14992
|
+
</div>
|
|
14149
14993
|
|
|
14150
|
-
<div class="${e
|
|
14994
|
+
<div class="${e(labelClasses)}">
|
|
14151
14995
|
<slot></slot>
|
|
14152
14996
|
</div>
|
|
14153
14997
|
</div>
|
|
@@ -14157,11 +15001,11 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14157
15001
|
|
|
14158
15002
|
var iconVersion$1 = '6.1.2';
|
|
14159
15003
|
|
|
14160
|
-
var styleCss$2$1 = i$
|
|
15004
|
+
var styleCss$2$1 = i$6`: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}`;
|
|
14161
15005
|
|
|
14162
|
-
var colorCss$2$1 = i$
|
|
15006
|
+
var colorCss$2$1 = i$6`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
14163
15007
|
|
|
14164
|
-
var tokensCss$1$1 = i$
|
|
15008
|
+
var tokensCss$1$1 = i$6`: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)}`;
|
|
14165
15009
|
|
|
14166
15010
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14167
15011
|
// See LICENSE in the project root for license information.
|
|
@@ -14181,7 +15025,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
14181
15025
|
* @csspart bibContainer - Apply css to the bib container.
|
|
14182
15026
|
*/
|
|
14183
15027
|
|
|
14184
|
-
class AuroDropdownBib extends r$
|
|
15028
|
+
class AuroDropdownBib extends r$3 {
|
|
14185
15029
|
|
|
14186
15030
|
constructor() {
|
|
14187
15031
|
super();
|
|
@@ -14191,7 +15035,7 @@ class AuroDropdownBib extends r$4$1 {
|
|
|
14191
15035
|
*/
|
|
14192
15036
|
this._mobileBreakpointValue = undefined;
|
|
14193
15037
|
|
|
14194
|
-
AuroLibraryRuntimeUtils$
|
|
15038
|
+
AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
14195
15039
|
}
|
|
14196
15040
|
|
|
14197
15041
|
static get styles() {
|
|
@@ -14272,7 +15116,7 @@ class AuroDropdownBib extends r$4$1 {
|
|
|
14272
15116
|
|
|
14273
15117
|
// function that renders the HTML and CSS into the scope of the component
|
|
14274
15118
|
render() {
|
|
14275
|
-
return u$
|
|
15119
|
+
return u$2`
|
|
14276
15120
|
<div class="container" part="bibContainer">
|
|
14277
15121
|
<slot></slot>
|
|
14278
15122
|
</div>
|
|
@@ -14282,41 +15126,15 @@ class AuroDropdownBib extends r$4$1 {
|
|
|
14282
15126
|
|
|
14283
15127
|
var dropdownVersion$1 = '3.0.0';
|
|
14284
15128
|
|
|
14285
|
-
var styleCss$1$1 = i$
|
|
14286
|
-
|
|
14287
|
-
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)}`;
|
|
14288
|
-
|
|
14289
|
-
/**
|
|
14290
|
-
* @license
|
|
14291
|
-
* Copyright 2019 Google LLC
|
|
14292
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14293
|
-
*/
|
|
14294
|
-
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;
|
|
14295
|
-
|
|
14296
|
-
/**
|
|
14297
|
-
* @license
|
|
14298
|
-
* Copyright 2017 Google LLC
|
|
14299
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14300
|
-
*/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");
|
|
14301
|
-
|
|
14302
|
-
/**
|
|
14303
|
-
* @license
|
|
14304
|
-
* Copyright 2017 Google LLC
|
|
14305
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14306
|
-
*/
|
|
14307
|
-
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};
|
|
15129
|
+
var styleCss$1$1 = i$6`: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)}`;
|
|
14308
15130
|
|
|
14309
|
-
|
|
14310
|
-
* @license
|
|
14311
|
-
* Copyright 2017 Google LLC
|
|
14312
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14313
|
-
*/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");
|
|
15131
|
+
var colorCss$1$1 = i$6`.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)}`;
|
|
14314
15132
|
|
|
14315
|
-
var colorCss$5 = i$
|
|
15133
|
+
var colorCss$5 = i$6`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
14316
15134
|
|
|
14317
|
-
var styleCss$5 = i$
|
|
15135
|
+
var styleCss$5 = i$6`.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}`;
|
|
14318
15136
|
|
|
14319
|
-
var tokensCss$5 = i$
|
|
15137
|
+
var tokensCss$5 = i$6`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
14320
15138
|
|
|
14321
15139
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14322
15140
|
// See LICENSE in the project root for license information.
|
|
@@ -14325,7 +15143,7 @@ var tokensCss$5 = i$3$1`:host{--ds-auro-helptext-color: var(--ds-color-text-tert
|
|
|
14325
15143
|
|
|
14326
15144
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
14327
15145
|
|
|
14328
|
-
let AuroLibraryRuntimeUtils$
|
|
15146
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
14329
15147
|
|
|
14330
15148
|
/* eslint-disable jsdoc/require-param */
|
|
14331
15149
|
|
|
@@ -14397,7 +15215,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
14397
15215
|
*
|
|
14398
15216
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
14399
15217
|
*/
|
|
14400
|
-
let AuroHelpText$1 = class AuroHelpText extends r$
|
|
15218
|
+
let AuroHelpText$1 = class AuroHelpText extends r$3 {
|
|
14401
15219
|
|
|
14402
15220
|
constructor() {
|
|
14403
15221
|
super();
|
|
@@ -14405,7 +15223,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$9 {
|
|
|
14405
15223
|
this.error = false;
|
|
14406
15224
|
this.hasTextContent = false;
|
|
14407
15225
|
|
|
14408
|
-
AuroLibraryRuntimeUtils$
|
|
15226
|
+
AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
14409
15227
|
}
|
|
14410
15228
|
|
|
14411
15229
|
static get styles() {
|
|
@@ -14453,7 +15271,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$9 {
|
|
|
14453
15271
|
*
|
|
14454
15272
|
*/
|
|
14455
15273
|
static register(name = "auro-helptext") {
|
|
14456
|
-
AuroLibraryRuntimeUtils$
|
|
15274
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroHelpText);
|
|
14457
15275
|
}
|
|
14458
15276
|
|
|
14459
15277
|
updated() {
|
|
@@ -14501,7 +15319,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$9 {
|
|
|
14501
15319
|
|
|
14502
15320
|
// function that renders the HTML and CSS into the scope of the component
|
|
14503
15321
|
render() {
|
|
14504
|
-
return x
|
|
15322
|
+
return x`
|
|
14505
15323
|
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
14506
15324
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
14507
15325
|
</div>
|
|
@@ -14527,7 +15345,7 @@ var helpTextVersion$1 = '1.0.0';
|
|
|
14527
15345
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
14528
15346
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
14529
15347
|
*/
|
|
14530
|
-
class AuroDropdown extends r$
|
|
15348
|
+
class AuroDropdown extends r$3 {
|
|
14531
15349
|
constructor() {
|
|
14532
15350
|
super();
|
|
14533
15351
|
|
|
@@ -14543,7 +15361,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14543
15361
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
14544
15362
|
*/
|
|
14545
15363
|
this.constructor.shadowRootOptions = {
|
|
14546
|
-
...r$
|
|
15364
|
+
...r$3.shadowRootOptions,
|
|
14547
15365
|
delegatesFocus: true,
|
|
14548
15366
|
};
|
|
14549
15367
|
|
|
@@ -14586,7 +15404,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14586
15404
|
/**
|
|
14587
15405
|
* @private
|
|
14588
15406
|
*/
|
|
14589
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
15407
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
14590
15408
|
|
|
14591
15409
|
/**
|
|
14592
15410
|
* @private
|
|
@@ -14606,22 +15424,22 @@ class AuroDropdown extends r$4$1 {
|
|
|
14606
15424
|
/**
|
|
14607
15425
|
* Generate unique names for dependency components.
|
|
14608
15426
|
*/
|
|
14609
|
-
const versioning = new AuroDependencyVersioning$
|
|
15427
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
14610
15428
|
|
|
14611
15429
|
/**
|
|
14612
15430
|
* @private
|
|
14613
15431
|
*/
|
|
14614
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$1, AuroIcon$1);
|
|
15432
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion$1, AuroIcon$1);
|
|
14615
15433
|
|
|
14616
15434
|
/**
|
|
14617
15435
|
* @private
|
|
14618
15436
|
*/
|
|
14619
|
-
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
15437
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
14620
15438
|
|
|
14621
15439
|
/**
|
|
14622
15440
|
* @private
|
|
14623
15441
|
*/
|
|
14624
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
15442
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
14625
15443
|
}
|
|
14626
15444
|
|
|
14627
15445
|
/**
|
|
@@ -14824,7 +15642,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14824
15642
|
*
|
|
14825
15643
|
*/
|
|
14826
15644
|
static register(name = "auro-dropdown") {
|
|
14827
|
-
AuroLibraryRuntimeUtils$
|
|
15645
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
|
|
14828
15646
|
}
|
|
14829
15647
|
|
|
14830
15648
|
connectedCallback() {
|
|
@@ -14847,6 +15665,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14847
15665
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
14848
15666
|
this.handleTriggerContentSlotChange();
|
|
14849
15667
|
}
|
|
15668
|
+
|
|
14850
15669
|
}
|
|
14851
15670
|
|
|
14852
15671
|
firstUpdated() {
|
|
@@ -15023,7 +15842,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
15023
15842
|
|
|
15024
15843
|
// function that renders the HTML and CSS into the scope of the component
|
|
15025
15844
|
render() {
|
|
15026
|
-
return u$
|
|
15845
|
+
return u$2`
|
|
15027
15846
|
<div>
|
|
15028
15847
|
<div
|
|
15029
15848
|
id="trigger"
|
|
@@ -15043,7 +15862,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
15043
15862
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
15044
15863
|
</div>
|
|
15045
15864
|
</div>
|
|
15046
|
-
${this.chevron || this.common ? u$
|
|
15865
|
+
${this.chevron || this.common ? u$2`
|
|
15047
15866
|
<div
|
|
15048
15867
|
id="showStateIcon"
|
|
15049
15868
|
part="chevron">
|
|
@@ -15079,51 +15898,18 @@ class AuroDropdown extends r$4$1 {
|
|
|
15079
15898
|
|
|
15080
15899
|
var dropdownVersion = '3.0.0';
|
|
15081
15900
|
|
|
15082
|
-
/**
|
|
15083
|
-
* @license
|
|
15084
|
-
* Copyright 2017 Google LLC
|
|
15085
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15086
|
-
*/
|
|
15087
|
-
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};
|
|
15088
|
-
|
|
15089
|
-
/**
|
|
15090
|
-
* @license
|
|
15091
|
-
* Copyright 2020 Google LLC
|
|
15092
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15093
|
-
*/
|
|
15094
|
-
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);
|
|
15095
|
-
|
|
15096
|
-
/**
|
|
15097
|
-
* @license
|
|
15098
|
-
* Copyright 2017 Google LLC
|
|
15099
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15100
|
-
*/
|
|
15101
|
-
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)}};
|
|
15102
|
-
|
|
15103
15901
|
/**
|
|
15104
15902
|
* @license
|
|
15105
15903
|
* Copyright 2020 Google LLC
|
|
15106
15904
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15107
|
-
*/const {I:t
|
|
15905
|
+
*/const {I:t}=Z,s=()=>document.createComment(""),r=(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(),l),c=e.insertBefore(s(),l);n=new t(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=(o,t,i=o)=>(o._$AI(t,i),o),u$1={},m=(o,t=u$1)=>o._$AH=t,p=o=>o._$AH,M=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;}};
|
|
15108
15906
|
|
|
15109
15907
|
/**
|
|
15110
15908
|
* @license
|
|
15111
15909
|
* Copyright 2017 Google LLC
|
|
15112
15910
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15113
15911
|
*/
|
|
15114
|
-
const u
|
|
15115
|
-
|
|
15116
|
-
/**
|
|
15117
|
-
* @license
|
|
15118
|
-
* Copyright 2018 Google LLC
|
|
15119
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15120
|
-
*/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}});
|
|
15121
|
-
|
|
15122
|
-
/**
|
|
15123
|
-
* @license
|
|
15124
|
-
* Copyright 2018 Google LLC
|
|
15125
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15126
|
-
*/const o$5=o=>o??E$1;
|
|
15912
|
+
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=e$1(class extends i$1{constructor(e){if(super(e),e.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r$1,c]){const d=p(s),{values:p$1,keys:a}=this.dt(t,r$1,c);if(!Array.isArray(d))return this.ut=a,p$1;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p$1.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p$1[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p$1[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p$1[w]),r(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p$1[k]),r(s,d[x],d[j]),j--,k++;else if(void 0===m$1&&(m$1=u(a,k,w),y=u(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r(s,d[x]);v(e,p$1[k]),v$1[k]=e;}else v$1[k]=v(t,p$1[k]),r(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r(s,v$1[w+1]);v(e,p$1[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
|
|
15127
15913
|
|
|
15128
15914
|
const watchedItems = new Set();
|
|
15129
15915
|
|
|
@@ -15246,25 +16032,6 @@ function stopNotifyingOnLangChange(element) {
|
|
|
15246
16032
|
watchedItems.delete(element);
|
|
15247
16033
|
}
|
|
15248
16034
|
|
|
15249
|
-
/**
|
|
15250
|
-
* @license
|
|
15251
|
-
* Copyright 2019 Google LLC
|
|
15252
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15253
|
-
*/
|
|
15254
|
-
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;
|
|
15255
|
-
|
|
15256
|
-
/**
|
|
15257
|
-
* @license
|
|
15258
|
-
* Copyright 2017 Google LLC
|
|
15259
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15260
|
-
*/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");
|
|
15261
|
-
|
|
15262
|
-
/**
|
|
15263
|
-
* @license
|
|
15264
|
-
* Copyright 2017 Google LLC
|
|
15265
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15266
|
-
*/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");
|
|
15267
|
-
|
|
15268
16035
|
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)}`;
|
|
15269
16036
|
|
|
15270
16037
|
var colorCss$4 = i$6`.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)}`;
|
|
@@ -19120,7 +19887,7 @@ class AuroInputUtilities {
|
|
|
19120
19887
|
|
|
19121
19888
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
19122
19889
|
|
|
19123
|
-
let AuroLibraryRuntimeUtils$
|
|
19890
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
19124
19891
|
|
|
19125
19892
|
/* eslint-disable jsdoc/require-param */
|
|
19126
19893
|
|
|
@@ -19189,7 +19956,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
19189
19956
|
|
|
19190
19957
|
class AuroFormValidation {
|
|
19191
19958
|
constructor() {
|
|
19192
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
19959
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
19193
19960
|
}
|
|
19194
19961
|
|
|
19195
19962
|
/**
|
|
@@ -19516,7 +20283,7 @@ class AuroFormValidation {
|
|
|
19516
20283
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
19517
20284
|
*/
|
|
19518
20285
|
|
|
19519
|
-
class BaseInput extends r$
|
|
20286
|
+
class BaseInput extends r$3 {
|
|
19520
20287
|
|
|
19521
20288
|
constructor() {
|
|
19522
20289
|
super();
|
|
@@ -20453,7 +21220,7 @@ class BaseInput extends r$4 {
|
|
|
20453
21220
|
// See LICENSE in the project root for license information.
|
|
20454
21221
|
|
|
20455
21222
|
|
|
20456
|
-
class AuroDependencyVersioning {
|
|
21223
|
+
let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
20457
21224
|
|
|
20458
21225
|
/**
|
|
20459
21226
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -20479,7 +21246,7 @@ class AuroDependencyVersioning {
|
|
|
20479
21246
|
*/
|
|
20480
21247
|
generateTag(baseName, version, tagClass) {
|
|
20481
21248
|
const elementName = this.generateElementName(baseName, version);
|
|
20482
|
-
const tag = i$
|
|
21249
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
20483
21250
|
|
|
20484
21251
|
if (!customElements.get(elementName)) {
|
|
20485
21252
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -20487,7 +21254,7 @@ class AuroDependencyVersioning {
|
|
|
20487
21254
|
|
|
20488
21255
|
return tag;
|
|
20489
21256
|
}
|
|
20490
|
-
}
|
|
21257
|
+
};
|
|
20491
21258
|
|
|
20492
21259
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20493
21260
|
// See LICENSE in the project root for license information.
|
|
@@ -20499,7 +21266,7 @@ class AuroDependencyVersioning {
|
|
|
20499
21266
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
20500
21267
|
*/
|
|
20501
21268
|
|
|
20502
|
-
class AuroElement extends r$
|
|
21269
|
+
class AuroElement extends r$3 {
|
|
20503
21270
|
|
|
20504
21271
|
// function to define props used within the scope of this component
|
|
20505
21272
|
static get properties() {
|
|
@@ -20555,7 +21322,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
20555
21322
|
return _fetchMap.get(uri);
|
|
20556
21323
|
};
|
|
20557
21324
|
|
|
20558
|
-
var styleCss$3 = i$6
|
|
21325
|
+
var styleCss$3 = i$6`: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}`;
|
|
20559
21326
|
|
|
20560
21327
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20561
21328
|
// See LICENSE in the project root for license information.
|
|
@@ -20636,47 +21403,88 @@ class BaseIcon extends AuroElement {
|
|
|
20636
21403
|
}
|
|
20637
21404
|
}
|
|
20638
21405
|
|
|
20639
|
-
var tokensCss$3 = i$6`:host{--ds-auro-icon-color:
|
|
21406
|
+
var tokensCss$3 = i$6`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
20640
21407
|
|
|
20641
|
-
var colorCss$3 = i$6`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:
|
|
21408
|
+
var colorCss$3 = i$6`: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)}`;
|
|
20642
21409
|
|
|
20643
|
-
// Copyright (c)
|
|
21410
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
20644
21411
|
// See LICENSE in the project root for license information.
|
|
20645
21412
|
|
|
21413
|
+
// ---------------------------------------------------------------------
|
|
21414
|
+
|
|
21415
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21416
|
+
|
|
21417
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
21418
|
+
|
|
21419
|
+
/* eslint-disable jsdoc/require-param */
|
|
21420
|
+
|
|
21421
|
+
/**
|
|
21422
|
+
* This will register a new custom element with the browser.
|
|
21423
|
+
* @param {String} name - The name of the custom element.
|
|
21424
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
21425
|
+
* @returns {void}
|
|
21426
|
+
*/
|
|
21427
|
+
registerComponent(name, componentClass) {
|
|
21428
|
+
if (!customElements.get(name)) {
|
|
21429
|
+
customElements.define(name, class extends componentClass {});
|
|
21430
|
+
}
|
|
21431
|
+
}
|
|
21432
|
+
|
|
21433
|
+
/**
|
|
21434
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
21435
|
+
* @returns {void}
|
|
21436
|
+
*/
|
|
21437
|
+
closestElement(
|
|
21438
|
+
selector, // selector like in .closest()
|
|
21439
|
+
base = this, // extra functionality to skip a parent
|
|
21440
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21441
|
+
!el || el === document || el === window
|
|
21442
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
21443
|
+
: found
|
|
21444
|
+
? found // found a selector INside this element
|
|
21445
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21446
|
+
) {
|
|
21447
|
+
return __Closest(base);
|
|
21448
|
+
}
|
|
21449
|
+
/* eslint-enable jsdoc/require-param */
|
|
21450
|
+
|
|
21451
|
+
/**
|
|
21452
|
+
* 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.
|
|
21453
|
+
* @param {Object} elem - The element to check.
|
|
21454
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21455
|
+
* @returns {void}
|
|
21456
|
+
*/
|
|
21457
|
+
handleComponentTagRename(elem, tagName) {
|
|
21458
|
+
const tag = tagName.toLowerCase();
|
|
21459
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21460
|
+
|
|
21461
|
+
if (elemTag !== tag) {
|
|
21462
|
+
elem.setAttribute(tag, true);
|
|
21463
|
+
}
|
|
21464
|
+
}
|
|
21465
|
+
|
|
21466
|
+
/**
|
|
21467
|
+
* Validates if an element is a specific Auro component.
|
|
21468
|
+
* @param {Object} elem - The element to validate.
|
|
21469
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
21470
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21471
|
+
*/
|
|
21472
|
+
elementMatch(elem, tagName) {
|
|
21473
|
+
const tag = tagName.toLowerCase();
|
|
21474
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21475
|
+
|
|
21476
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
21477
|
+
}
|
|
21478
|
+
};
|
|
21479
|
+
|
|
21480
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21481
|
+
// See LICENSE in the project root for license information.
|
|
20646
21482
|
|
|
20647
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
20648
|
-
/**
|
|
20649
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
20650
|
-
*
|
|
20651
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
20652
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
20653
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
20654
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
20655
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
20656
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
20657
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
20658
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
20659
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
20660
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
20661
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
20662
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
20663
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
20664
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
20665
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
20666
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
20667
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
20668
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
20669
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
20670
|
-
* @slot svg - Used for custom SVG content.
|
|
20671
|
-
*/
|
|
20672
21483
|
|
|
20673
|
-
// build the component class
|
|
20674
21484
|
class AuroIcon extends BaseIcon {
|
|
20675
21485
|
constructor() {
|
|
20676
21486
|
super();
|
|
20677
21487
|
|
|
20678
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
20679
|
-
|
|
20680
21488
|
this.privateDefaults();
|
|
20681
21489
|
}
|
|
20682
21490
|
|
|
@@ -20700,78 +21508,144 @@ class AuroIcon extends BaseIcon {
|
|
|
20700
21508
|
this.success = false;
|
|
20701
21509
|
this.tertiary = false;
|
|
20702
21510
|
this.warning = false;
|
|
20703
|
-
this.
|
|
21511
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
21512
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
20704
21513
|
}
|
|
20705
21514
|
|
|
20706
21515
|
// function to define props used within the scope of this component
|
|
20707
21516
|
static get properties() {
|
|
20708
21517
|
return {
|
|
20709
21518
|
...super.properties,
|
|
21519
|
+
|
|
21520
|
+
/**
|
|
21521
|
+
* Sets the icon to use the accent style.
|
|
21522
|
+
*/
|
|
20710
21523
|
accent: {
|
|
20711
21524
|
type: Boolean,
|
|
20712
21525
|
reflect: true
|
|
20713
21526
|
},
|
|
21527
|
+
|
|
21528
|
+
/**
|
|
21529
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
21530
|
+
*/
|
|
20714
21531
|
ariaHidden: {
|
|
20715
21532
|
type: String,
|
|
20716
21533
|
reflect: true
|
|
20717
21534
|
},
|
|
21535
|
+
|
|
21536
|
+
/**
|
|
21537
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
21538
|
+
*/
|
|
20718
21539
|
category: {
|
|
20719
21540
|
type: String,
|
|
20720
21541
|
reflect: true
|
|
20721
21542
|
},
|
|
21543
|
+
|
|
21544
|
+
/**
|
|
21545
|
+
* Allows custom color to be set.
|
|
21546
|
+
*/
|
|
20722
21547
|
customColor: {
|
|
20723
21548
|
type: Boolean
|
|
20724
21549
|
},
|
|
21550
|
+
|
|
21551
|
+
/**
|
|
21552
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
21553
|
+
*/
|
|
20725
21554
|
customSvg: {
|
|
20726
21555
|
type: Boolean
|
|
20727
21556
|
},
|
|
21557
|
+
|
|
21558
|
+
/**
|
|
21559
|
+
* Sets the icon to use the disabled style.
|
|
21560
|
+
*/
|
|
20728
21561
|
disabled: {
|
|
20729
21562
|
type: Boolean,
|
|
20730
21563
|
reflect: true
|
|
20731
21564
|
},
|
|
21565
|
+
|
|
21566
|
+
/**
|
|
21567
|
+
* Sets the icon to use the emphasis style.
|
|
21568
|
+
*/
|
|
20732
21569
|
emphasis: {
|
|
20733
21570
|
type: Boolean,
|
|
20734
21571
|
reflect: true
|
|
20735
21572
|
},
|
|
21573
|
+
|
|
21574
|
+
/**
|
|
21575
|
+
* Sets the icon to use the error style.
|
|
21576
|
+
*/
|
|
20736
21577
|
error: {
|
|
20737
21578
|
type: Boolean,
|
|
20738
21579
|
reflect: true
|
|
20739
21580
|
},
|
|
21581
|
+
|
|
21582
|
+
/**
|
|
21583
|
+
* Sets the icon to use the info style.
|
|
21584
|
+
*/
|
|
20740
21585
|
info: {
|
|
20741
21586
|
type: Boolean,
|
|
20742
21587
|
reflect: true
|
|
20743
21588
|
},
|
|
21589
|
+
|
|
21590
|
+
/**
|
|
21591
|
+
* Exposes content in slot as icon label.
|
|
21592
|
+
*/
|
|
20744
21593
|
label: {
|
|
20745
21594
|
type: Boolean,
|
|
20746
21595
|
reflect: true
|
|
20747
21596
|
},
|
|
21597
|
+
|
|
21598
|
+
/**
|
|
21599
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
21600
|
+
*/
|
|
20748
21601
|
name: {
|
|
20749
21602
|
type: String,
|
|
20750
21603
|
reflect: true
|
|
20751
21604
|
},
|
|
21605
|
+
|
|
21606
|
+
/**
|
|
21607
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
21608
|
+
*/
|
|
20752
21609
|
primary: {
|
|
20753
21610
|
type: Boolean,
|
|
20754
21611
|
reflect: true
|
|
20755
21612
|
},
|
|
21613
|
+
|
|
21614
|
+
/**
|
|
21615
|
+
* Sets the icon to use the secondary style.
|
|
21616
|
+
*/
|
|
20756
21617
|
secondary: {
|
|
20757
21618
|
type: Boolean,
|
|
20758
21619
|
reflect: true
|
|
20759
21620
|
},
|
|
21621
|
+
|
|
21622
|
+
/**
|
|
21623
|
+
* Sets the icon to use the subtle style.
|
|
21624
|
+
*/
|
|
20760
21625
|
subtle: {
|
|
20761
21626
|
type: Boolean,
|
|
20762
21627
|
reflect: true
|
|
20763
21628
|
},
|
|
21629
|
+
|
|
21630
|
+
/**
|
|
21631
|
+
* Sets the icon to use the success style.
|
|
21632
|
+
*/
|
|
20764
21633
|
success: {
|
|
20765
21634
|
type: Boolean,
|
|
20766
21635
|
reflect: true
|
|
20767
21636
|
},
|
|
21637
|
+
|
|
21638
|
+
/**
|
|
21639
|
+
* Sets the icon to use the tertiary style.
|
|
21640
|
+
*/
|
|
20768
21641
|
tertiary: {
|
|
20769
21642
|
type: Boolean,
|
|
20770
21643
|
reflect: true
|
|
20771
21644
|
},
|
|
20772
|
-
|
|
20773
|
-
|
|
20774
|
-
|
|
21645
|
+
|
|
21646
|
+
/**
|
|
21647
|
+
* Sets the icon to use the warning style.
|
|
21648
|
+
*/
|
|
20775
21649
|
warning: {
|
|
20776
21650
|
type: Boolean,
|
|
20777
21651
|
reflect: true
|
|
@@ -20797,7 +21671,7 @@ class AuroIcon extends BaseIcon {
|
|
|
20797
21671
|
*
|
|
20798
21672
|
*/
|
|
20799
21673
|
static register(name = "auro-icon") {
|
|
20800
|
-
AuroLibraryRuntimeUtils$
|
|
21674
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
|
|
20801
21675
|
}
|
|
20802
21676
|
|
|
20803
21677
|
connectedCallback() {
|
|
@@ -20808,38 +21682,54 @@ class AuroIcon extends BaseIcon {
|
|
|
20808
21682
|
}
|
|
20809
21683
|
|
|
20810
21684
|
/**
|
|
21685
|
+
* @private
|
|
20811
21686
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
20812
21687
|
*/
|
|
20813
21688
|
exposeCssParts() {
|
|
20814
21689
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
20815
21690
|
}
|
|
20816
21691
|
|
|
21692
|
+
async firstUpdated() {
|
|
21693
|
+
await super.firstUpdated();
|
|
21694
|
+
|
|
21695
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
21696
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
21697
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
21698
|
+
|
|
21699
|
+
if (svgDesc) {
|
|
21700
|
+
svgDesc.remove();
|
|
21701
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
21702
|
+
}
|
|
21703
|
+
}
|
|
21704
|
+
}
|
|
21705
|
+
|
|
20817
21706
|
// function that renders the HTML and CSS into the scope of the component
|
|
20818
21707
|
render() {
|
|
20819
|
-
const
|
|
20820
|
-
'
|
|
21708
|
+
const labelClasses = {
|
|
21709
|
+
'labelWrapper': true,
|
|
20821
21710
|
'util_displayHiddenVisually': !this.label
|
|
20822
21711
|
};
|
|
20823
21712
|
|
|
20824
|
-
const
|
|
20825
|
-
'
|
|
20826
|
-
'wrapper': true,
|
|
21713
|
+
const svgClasses = {
|
|
21714
|
+
'svgWrapper': true,
|
|
20827
21715
|
};
|
|
20828
21716
|
|
|
20829
|
-
return x
|
|
20830
|
-
<div
|
|
20831
|
-
|
|
20832
|
-
|
|
20833
|
-
|
|
20834
|
-
${this.
|
|
20835
|
-
|
|
20836
|
-
|
|
20837
|
-
|
|
20838
|
-
|
|
20839
|
-
|
|
20840
|
-
|
|
21717
|
+
return x`
|
|
21718
|
+
<div class="componentWrapper">
|
|
21719
|
+
<div
|
|
21720
|
+
class="${e(svgClasses)}"
|
|
21721
|
+
title="${o(this.title || undefined)}">
|
|
21722
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
21723
|
+
${this.customSvg ? x`
|
|
21724
|
+
<slot name="svg"></slot>
|
|
21725
|
+
` : x`
|
|
21726
|
+
${this.svg}
|
|
21727
|
+
`
|
|
21728
|
+
}
|
|
21729
|
+
</span>
|
|
21730
|
+
</div>
|
|
20841
21731
|
|
|
20842
|
-
<div class="${e
|
|
21732
|
+
<div class="${e(labelClasses)}">
|
|
20843
21733
|
<slot></slot>
|
|
20844
21734
|
</div>
|
|
20845
21735
|
</div>
|
|
@@ -20849,17 +21739,197 @@ class AuroIcon extends BaseIcon {
|
|
|
20849
21739
|
|
|
20850
21740
|
var iconVersion = '6.1.2';
|
|
20851
21741
|
|
|
20852
|
-
|
|
21742
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21743
|
+
// See LICENSE in the project root for license information.
|
|
21744
|
+
|
|
21745
|
+
|
|
21746
|
+
class AuroDependencyVersioning {
|
|
21747
|
+
|
|
21748
|
+
/**
|
|
21749
|
+
* Generates a unique string to be used for child auro element naming.
|
|
21750
|
+
* @private
|
|
21751
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
21752
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
21753
|
+
* @returns {string} - Unique string to be used for naming.
|
|
21754
|
+
*/
|
|
21755
|
+
generateElementName(baseName, version) {
|
|
21756
|
+
let result = baseName;
|
|
21757
|
+
|
|
21758
|
+
result += '-';
|
|
21759
|
+
result += version.replace(/[.]/g, '_');
|
|
21760
|
+
|
|
21761
|
+
return result;
|
|
21762
|
+
}
|
|
21763
|
+
|
|
21764
|
+
/**
|
|
21765
|
+
* Generates a unique string to be used for child auro element naming.
|
|
21766
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
21767
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
21768
|
+
* @returns {string} - Unique string to be used for naming.
|
|
21769
|
+
*/
|
|
21770
|
+
generateTag(baseName, version, tagClass) {
|
|
21771
|
+
const elementName = this.generateElementName(baseName, version);
|
|
21772
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
21773
|
+
|
|
21774
|
+
if (!customElements.get(elementName)) {
|
|
21775
|
+
customElements.define(elementName, class extends tagClass {});
|
|
21776
|
+
}
|
|
21777
|
+
|
|
21778
|
+
return tag;
|
|
21779
|
+
}
|
|
21780
|
+
}
|
|
21781
|
+
|
|
21782
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21783
|
+
// See LICENSE in the project root for license information.
|
|
21784
|
+
|
|
21785
|
+
// ---------------------------------------------------------------------
|
|
21786
|
+
|
|
21787
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21788
|
+
|
|
21789
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
21790
|
+
|
|
21791
|
+
/* eslint-disable jsdoc/require-param */
|
|
21792
|
+
|
|
21793
|
+
/**
|
|
21794
|
+
* This will register a new custom element with the browser.
|
|
21795
|
+
* @param {String} name - The name of the custom element.
|
|
21796
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
21797
|
+
* @returns {void}
|
|
21798
|
+
*/
|
|
21799
|
+
registerComponent(name, componentClass) {
|
|
21800
|
+
if (!customElements.get(name)) {
|
|
21801
|
+
customElements.define(name, class extends componentClass {});
|
|
21802
|
+
}
|
|
21803
|
+
}
|
|
21804
|
+
|
|
21805
|
+
/**
|
|
21806
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
21807
|
+
* @returns {void}
|
|
21808
|
+
*/
|
|
21809
|
+
closestElement(
|
|
21810
|
+
selector, // selector like in .closest()
|
|
21811
|
+
base = this, // extra functionality to skip a parent
|
|
21812
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21813
|
+
!el || el === document || el === window
|
|
21814
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
21815
|
+
: found
|
|
21816
|
+
? found // found a selector INside this element
|
|
21817
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21818
|
+
) {
|
|
21819
|
+
return __Closest(base);
|
|
21820
|
+
}
|
|
21821
|
+
/* eslint-enable jsdoc/require-param */
|
|
21822
|
+
|
|
21823
|
+
/**
|
|
21824
|
+
* 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.
|
|
21825
|
+
* @param {Object} elem - The element to check.
|
|
21826
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21827
|
+
* @returns {void}
|
|
21828
|
+
*/
|
|
21829
|
+
handleComponentTagRename(elem, tagName) {
|
|
21830
|
+
const tag = tagName.toLowerCase();
|
|
21831
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21832
|
+
|
|
21833
|
+
if (elemTag !== tag) {
|
|
21834
|
+
elem.setAttribute(tag, true);
|
|
21835
|
+
}
|
|
21836
|
+
}
|
|
21837
|
+
|
|
21838
|
+
/**
|
|
21839
|
+
* Validates if an element is a specific Auro component.
|
|
21840
|
+
* @param {Object} elem - The element to validate.
|
|
21841
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
21842
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21843
|
+
*/
|
|
21844
|
+
elementMatch(elem, tagName) {
|
|
21845
|
+
const tag = tagName.toLowerCase();
|
|
21846
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21847
|
+
|
|
21848
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
21849
|
+
}
|
|
21850
|
+
};
|
|
21851
|
+
|
|
21852
|
+
var styleCss$2 = i$6`: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}`;
|
|
21853
|
+
|
|
21854
|
+
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}`;
|
|
21855
|
+
|
|
21856
|
+
var tokensCss$2 = i$6`: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}`;
|
|
21857
|
+
|
|
21858
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21859
|
+
// See LICENSE in the project root for license information.
|
|
21860
|
+
|
|
21861
|
+
// ---------------------------------------------------------------------
|
|
21862
|
+
|
|
21863
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21864
|
+
|
|
21865
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
21866
|
+
|
|
21867
|
+
/* eslint-disable jsdoc/require-param */
|
|
21868
|
+
|
|
21869
|
+
/**
|
|
21870
|
+
* This will register a new custom element with the browser.
|
|
21871
|
+
* @param {String} name - The name of the custom element.
|
|
21872
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
21873
|
+
* @returns {void}
|
|
21874
|
+
*/
|
|
21875
|
+
registerComponent(name, componentClass) {
|
|
21876
|
+
if (!customElements.get(name)) {
|
|
21877
|
+
customElements.define(name, class extends componentClass {});
|
|
21878
|
+
}
|
|
21879
|
+
}
|
|
21880
|
+
|
|
21881
|
+
/**
|
|
21882
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
21883
|
+
* @returns {void}
|
|
21884
|
+
*/
|
|
21885
|
+
closestElement(
|
|
21886
|
+
selector, // selector like in .closest()
|
|
21887
|
+
base = this, // extra functionality to skip a parent
|
|
21888
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21889
|
+
!el || el === document || el === window
|
|
21890
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
21891
|
+
: found
|
|
21892
|
+
? found // found a selector INside this element
|
|
21893
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21894
|
+
) {
|
|
21895
|
+
return __Closest(base);
|
|
21896
|
+
}
|
|
21897
|
+
/* eslint-enable jsdoc/require-param */
|
|
21898
|
+
|
|
21899
|
+
/**
|
|
21900
|
+
* 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.
|
|
21901
|
+
* @param {Object} elem - The element to check.
|
|
21902
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21903
|
+
* @returns {void}
|
|
21904
|
+
*/
|
|
21905
|
+
handleComponentTagRename(elem, tagName) {
|
|
21906
|
+
const tag = tagName.toLowerCase();
|
|
21907
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21908
|
+
|
|
21909
|
+
if (elemTag !== tag) {
|
|
21910
|
+
elem.setAttribute(tag, true);
|
|
21911
|
+
}
|
|
21912
|
+
}
|
|
20853
21913
|
|
|
20854
|
-
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}`;
|
|
21914
|
+
/**
|
|
21915
|
+
* Validates if an element is a specific Auro component.
|
|
21916
|
+
* @param {Object} elem - The element to validate.
|
|
21917
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
21918
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21919
|
+
*/
|
|
21920
|
+
elementMatch(elem, tagName) {
|
|
21921
|
+
const tag = tagName.toLowerCase();
|
|
21922
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
20855
21923
|
|
|
20856
|
-
|
|
21924
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
21925
|
+
}
|
|
21926
|
+
};
|
|
20857
21927
|
|
|
20858
|
-
var styleCss$1 = i$6
|
|
21928
|
+
var styleCss$1 = i$6`: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}}`;
|
|
20859
21929
|
|
|
20860
|
-
var colorCss$1 = i$6`: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:
|
|
21930
|
+
var colorCss$1 = i$6`: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}`;
|
|
20861
21931
|
|
|
20862
|
-
var tokensCss$1 = i$6`:host{--ds-auro-loader-background-color:
|
|
21932
|
+
var tokensCss$1 = i$6`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
20863
21933
|
|
|
20864
21934
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20865
21935
|
// See LICENSE in the project root for license information.
|
|
@@ -20884,7 +21954,7 @@ var tokensCss$1 = i$6`:host{--ds-auro-loader-background-color: currentcolor;--ds
|
|
|
20884
21954
|
*/
|
|
20885
21955
|
|
|
20886
21956
|
// build the component class
|
|
20887
|
-
class AuroLoader extends r$
|
|
21957
|
+
class AuroLoader extends r$3 {
|
|
20888
21958
|
constructor() {
|
|
20889
21959
|
super();
|
|
20890
21960
|
|
|
@@ -20986,14 +22056,14 @@ class AuroLoader extends r$4 {
|
|
|
20986
22056
|
|
|
20987
22057
|
// function that renders the HTML and CSS into the scope of the component
|
|
20988
22058
|
render() {
|
|
20989
|
-
return x
|
|
20990
|
-
${this.defineTemplate().map((idx) => x
|
|
22059
|
+
return x`
|
|
22060
|
+
${this.defineTemplate().map((idx) => x`
|
|
20991
22061
|
<span part="element" class="loader node-${idx}"></span>
|
|
20992
22062
|
`)}
|
|
20993
22063
|
|
|
20994
22064
|
<div class="no-animation">Loading...</div>
|
|
20995
22065
|
|
|
20996
|
-
${this.ringworm ? x
|
|
22066
|
+
${this.ringworm ? x`
|
|
20997
22067
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
20998
22068
|
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
20999
22069
|
</svg>`
|
|
@@ -21003,7 +22073,7 @@ class AuroLoader extends r$4 {
|
|
|
21003
22073
|
}
|
|
21004
22074
|
}
|
|
21005
22075
|
|
|
21006
|
-
var loaderVersion = '
|
|
22076
|
+
var loaderVersion = '4.0.0';
|
|
21007
22077
|
|
|
21008
22078
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21009
22079
|
// See LICENSE in the project root for license information.
|
|
@@ -21039,10 +22109,20 @@ var loaderVersion = '3.1.1';
|
|
|
21039
22109
|
|
|
21040
22110
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
21041
22111
|
|
|
21042
|
-
class AuroButton extends r$
|
|
22112
|
+
class AuroButton extends r$3 {
|
|
22113
|
+
|
|
22114
|
+
/**
|
|
22115
|
+
* Enables form association for this element.
|
|
22116
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
|
|
22117
|
+
* @returns {boolean} - Returns true to enable form association.
|
|
22118
|
+
*/
|
|
22119
|
+
static get formAssociated() {
|
|
22120
|
+
return true;
|
|
22121
|
+
}
|
|
21043
22122
|
|
|
21044
22123
|
constructor() {
|
|
21045
22124
|
super();
|
|
22125
|
+
|
|
21046
22126
|
this.autofocus = false;
|
|
21047
22127
|
this.disabled = false;
|
|
21048
22128
|
this.iconOnly = false;
|
|
@@ -21055,6 +22135,16 @@ class AuroButton extends r$4 {
|
|
|
21055
22135
|
this.slim = false;
|
|
21056
22136
|
this.fluid = false;
|
|
21057
22137
|
|
|
22138
|
+
// Support for HTML5 forms
|
|
22139
|
+
if (typeof this.attachInternals === 'function') {
|
|
22140
|
+
this.internals = this.attachInternals();
|
|
22141
|
+
} else {
|
|
22142
|
+
this.internals = null;
|
|
22143
|
+
|
|
22144
|
+
// eslint-disable-next-line no-console
|
|
22145
|
+
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.');
|
|
22146
|
+
}
|
|
22147
|
+
|
|
21058
22148
|
/**
|
|
21059
22149
|
* Generate unique names for dependency components.
|
|
21060
22150
|
*/
|
|
@@ -21153,7 +22243,7 @@ class AuroButton extends r$4 {
|
|
|
21153
22243
|
*
|
|
21154
22244
|
*/
|
|
21155
22245
|
static register(name = "auro-button") {
|
|
21156
|
-
AuroLibraryRuntimeUtils$
|
|
22246
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
21157
22247
|
}
|
|
21158
22248
|
|
|
21159
22249
|
/**
|
|
@@ -21195,6 +22285,16 @@ class AuroButton extends r$4 {
|
|
|
21195
22285
|
this.notifyReady();
|
|
21196
22286
|
}
|
|
21197
22287
|
|
|
22288
|
+
surfaceSubmitEvent() {
|
|
22289
|
+
if (this.form) {
|
|
22290
|
+
this.form.requestSubmit();
|
|
22291
|
+
}
|
|
22292
|
+
}
|
|
22293
|
+
|
|
22294
|
+
get form() {
|
|
22295
|
+
return this.internals ? this.internals.form : null;
|
|
22296
|
+
}
|
|
22297
|
+
|
|
21198
22298
|
render() {
|
|
21199
22299
|
const classes = {
|
|
21200
22300
|
'util_insetLg--squish': true,
|
|
@@ -21207,27 +22307,27 @@ class AuroButton extends r$4 {
|
|
|
21207
22307
|
'loading': this.loading
|
|
21208
22308
|
};
|
|
21209
22309
|
|
|
21210
|
-
return u$
|
|
22310
|
+
return u$2`
|
|
21211
22311
|
<button
|
|
21212
22312
|
part="button"
|
|
21213
|
-
aria-label="${o
|
|
21214
|
-
aria-labelledby="${o
|
|
22313
|
+
aria-label="${o(this.arialabel ? this.arialabel : undefined)}"
|
|
22314
|
+
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
21215
22315
|
?autofocus="${this.autofocus}"
|
|
21216
|
-
class="${e
|
|
22316
|
+
class="${e(classes)}"
|
|
21217
22317
|
?disabled="${this.disabled || this.loading}"
|
|
21218
22318
|
?onDark="${this.onDark}"
|
|
21219
|
-
title="${o
|
|
21220
|
-
name="${o
|
|
21221
|
-
type="${o
|
|
21222
|
-
variant="${o
|
|
21223
|
-
.value="${o
|
|
21224
|
-
@click="${
|
|
22319
|
+
title="${o(this.title ? this.title : undefined)}"
|
|
22320
|
+
name="${o(this.name ? this.name : undefined)}"
|
|
22321
|
+
type="${o(this.type ? this.type : undefined)}"
|
|
22322
|
+
variant="${o(this.variant ? this.variant : undefined)}"
|
|
22323
|
+
.value="${o(this.value ? this.value : undefined)}"
|
|
22324
|
+
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
21225
22325
|
>
|
|
21226
|
-
${o
|
|
22326
|
+
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
21227
22327
|
|
|
21228
22328
|
<span class="contentWrapper">
|
|
21229
22329
|
<span class="textSlot" part="text">
|
|
21230
|
-
${this.iconOnly ? undefined : u$
|
|
22330
|
+
${this.iconOnly ? undefined : u$2`<slot></slot>`}
|
|
21231
22331
|
</span>
|
|
21232
22332
|
|
|
21233
22333
|
<span part="icon">
|
|
@@ -21241,37 +22341,11 @@ class AuroButton extends r$4 {
|
|
|
21241
22341
|
|
|
21242
22342
|
var buttonVersion = '8.2.2';
|
|
21243
22343
|
|
|
21244
|
-
|
|
21245
|
-
* @license
|
|
21246
|
-
* Copyright 2019 Google LLC
|
|
21247
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21248
|
-
*/
|
|
21249
|
-
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;
|
|
21250
|
-
|
|
21251
|
-
/**
|
|
21252
|
-
* @license
|
|
21253
|
-
* Copyright 2017 Google LLC
|
|
21254
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21255
|
-
*/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");
|
|
21256
|
-
|
|
21257
|
-
/**
|
|
21258
|
-
* @license
|
|
21259
|
-
* Copyright 2017 Google LLC
|
|
21260
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21261
|
-
*/
|
|
21262
|
-
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};
|
|
21263
|
-
|
|
21264
|
-
/**
|
|
21265
|
-
* @license
|
|
21266
|
-
* Copyright 2017 Google LLC
|
|
21267
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21268
|
-
*/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");
|
|
21269
|
-
|
|
21270
|
-
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)}`;
|
|
22344
|
+
var colorCss = i$6`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
21271
22345
|
|
|
21272
|
-
var styleCss = i$
|
|
22346
|
+
var styleCss = i$6`.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}`;
|
|
21273
22347
|
|
|
21274
|
-
var tokensCss = i$
|
|
22348
|
+
var tokensCss = i$6`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
21275
22349
|
|
|
21276
22350
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21277
22351
|
// See LICENSE in the project root for license information.
|
|
@@ -21352,7 +22426,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
21352
22426
|
*
|
|
21353
22427
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
21354
22428
|
*/
|
|
21355
|
-
class AuroHelpText extends r {
|
|
22429
|
+
class AuroHelpText extends r$3 {
|
|
21356
22430
|
|
|
21357
22431
|
constructor() {
|
|
21358
22432
|
super();
|
|
@@ -21478,22 +22552,22 @@ class AuroInput extends BaseInput {
|
|
|
21478
22552
|
/**
|
|
21479
22553
|
* Generate unique names for dependency components.
|
|
21480
22554
|
*/
|
|
21481
|
-
const versioning = new AuroDependencyVersioning();
|
|
22555
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
21482
22556
|
|
|
21483
22557
|
/**
|
|
21484
22558
|
* @private
|
|
21485
22559
|
*/
|
|
21486
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
22560
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
21487
22561
|
|
|
21488
22562
|
/**
|
|
21489
22563
|
* @private
|
|
21490
22564
|
*/
|
|
21491
|
-
this.buttonTag = versioning.generateTag('auro-button', buttonVersion, AuroButton);
|
|
22565
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
21492
22566
|
|
|
21493
22567
|
/**
|
|
21494
22568
|
* @private
|
|
21495
22569
|
*/
|
|
21496
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
22570
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
21497
22571
|
}
|
|
21498
22572
|
|
|
21499
22573
|
/**
|
|
@@ -21505,7 +22579,7 @@ class AuroInput extends BaseInput {
|
|
|
21505
22579
|
*
|
|
21506
22580
|
*/
|
|
21507
22581
|
static register(name = "auro-input") {
|
|
21508
|
-
AuroLibraryRuntimeUtils$
|
|
22582
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroInput);
|
|
21509
22583
|
}
|
|
21510
22584
|
|
|
21511
22585
|
/**
|
|
@@ -21530,7 +22604,7 @@ class AuroInput extends BaseInput {
|
|
|
21530
22604
|
'withValue': this.value && this.value.length > 0
|
|
21531
22605
|
};
|
|
21532
22606
|
|
|
21533
|
-
return u$
|
|
22607
|
+
return u$2`
|
|
21534
22608
|
<div class="wrapper" part="wrapper">
|
|
21535
22609
|
<div class="main">
|
|
21536
22610
|
<div class="typeIcon">
|
|
@@ -21539,7 +22613,7 @@ class AuroInput extends BaseInput {
|
|
|
21539
22613
|
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
21540
22614
|
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
21541
22615
|
${this.inputIconName
|
|
21542
|
-
? c
|
|
22616
|
+
? c([this.inputIconName], (val) => val, (name) => u$2`
|
|
21543
22617
|
<${this.iconTag}
|
|
21544
22618
|
class="accentIcon"
|
|
21545
22619
|
category="payment"
|
|
@@ -21551,7 +22625,7 @@ class AuroInput extends BaseInput {
|
|
|
21551
22625
|
}
|
|
21552
22626
|
|
|
21553
22627
|
${this.type === 'date'
|
|
21554
|
-
? u$
|
|
22628
|
+
? u$2`
|
|
21555
22629
|
<${this.iconTag}
|
|
21556
22630
|
class="accentIcon"
|
|
21557
22631
|
category="interface"
|
|
@@ -21562,7 +22636,7 @@ class AuroInput extends BaseInput {
|
|
|
21562
22636
|
: undefined
|
|
21563
22637
|
}
|
|
21564
22638
|
</div>
|
|
21565
|
-
<label for=${this.id} class="${e
|
|
22639
|
+
<label for=${this.id} class="${e(labelClasses)}" part="label">
|
|
21566
22640
|
<slot name="label">
|
|
21567
22641
|
${this.label}
|
|
21568
22642
|
</slot>
|
|
@@ -21573,23 +22647,23 @@ class AuroInput extends BaseInput {
|
|
|
21573
22647
|
@focusin="${this.handleFocusin}"
|
|
21574
22648
|
@blur="${this.handleBlur}"
|
|
21575
22649
|
id="${this.id}"
|
|
21576
|
-
name="${o
|
|
22650
|
+
name="${o(this.name)}"
|
|
21577
22651
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
21578
|
-
pattern="${o
|
|
21579
|
-
maxlength="${o
|
|
21580
|
-
minlength="${o
|
|
21581
|
-
inputMode="${o
|
|
22652
|
+
pattern="${o(this.definePattern())}"
|
|
22653
|
+
maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
|
|
22654
|
+
minlength="${o(this.minLength ? this.minLength : undefined)}"
|
|
22655
|
+
inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
|
|
21582
22656
|
?required="${this.required}"
|
|
21583
22657
|
?disabled="${this.disabled}"
|
|
21584
22658
|
aria-describedby="${this.uniqueId}"
|
|
21585
22659
|
aria-invalid="${this.validity !== 'valid'}"
|
|
21586
22660
|
placeholder=${this.getPlaceholder()}
|
|
21587
|
-
lang="${o
|
|
22661
|
+
lang="${o(this.lang)}"
|
|
21588
22662
|
?activeLabel="${this.activeLabel}"
|
|
21589
|
-
spellcheck="${o
|
|
21590
|
-
autocorrect="${o
|
|
21591
|
-
autocapitalize="${o
|
|
21592
|
-
autocomplete="${o
|
|
22663
|
+
spellcheck="${o(this.spellcheck ? this.spellcheck : undefined)}"
|
|
22664
|
+
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
22665
|
+
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
22666
|
+
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
21593
22667
|
part="input"
|
|
21594
22668
|
/>
|
|
21595
22669
|
</div>
|
|
@@ -21597,7 +22671,7 @@ class AuroInput extends BaseInput {
|
|
|
21597
22671
|
class="notificationIcons"
|
|
21598
22672
|
part="notificationIcons"
|
|
21599
22673
|
?hasValue="${this.hasValue}">
|
|
21600
|
-
${this.validity && this.validity !== 'valid' ? u$
|
|
22674
|
+
${this.validity && this.validity !== 'valid' ? u$2`
|
|
21601
22675
|
<div class="notification alertNotification">
|
|
21602
22676
|
<${this.iconTag}
|
|
21603
22677
|
category="alert"
|
|
@@ -21606,8 +22680,8 @@ class AuroInput extends BaseInput {
|
|
|
21606
22680
|
</${this.iconTag}>
|
|
21607
22681
|
</div>
|
|
21608
22682
|
` : undefined}
|
|
21609
|
-
${this.hasValue ? u$
|
|
21610
|
-
${this.type === 'password' ? u$
|
|
22683
|
+
${this.hasValue ? u$2`
|
|
22684
|
+
${this.type === 'password' ? u$2`
|
|
21611
22685
|
<div class="notification">
|
|
21612
22686
|
<${this.buttonTag}
|
|
21613
22687
|
variant="flat"
|
|
@@ -21630,7 +22704,7 @@ class AuroInput extends BaseInput {
|
|
|
21630
22704
|
</${this.buttonTag}>
|
|
21631
22705
|
</div>
|
|
21632
22706
|
` : undefined}
|
|
21633
|
-
${!this.disabled && !this.readonly ? u$
|
|
22707
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
21634
22708
|
<div class="notification">
|
|
21635
22709
|
<${this.buttonTag}
|
|
21636
22710
|
variant="flat"
|
|
@@ -21651,14 +22725,14 @@ class AuroInput extends BaseInput {
|
|
|
21651
22725
|
</div>
|
|
21652
22726
|
<!-- Help text and error message template -->
|
|
21653
22727
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
21654
|
-
? u$
|
|
22728
|
+
? u$2`
|
|
21655
22729
|
<${this.helpTextTag}>
|
|
21656
22730
|
<p id="${this.uniqueId}" part="helpText">
|
|
21657
22731
|
<slot name="helptext">${this.getHelpText()}</slot>
|
|
21658
22732
|
</p>
|
|
21659
22733
|
</${this.helpTextTag}>
|
|
21660
22734
|
`
|
|
21661
|
-
: u$
|
|
22735
|
+
: u$2`
|
|
21662
22736
|
<${this.helpTextTag} error>
|
|
21663
22737
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
21664
22738
|
${this.errorMessage}
|
|
@@ -21700,7 +22774,7 @@ var inputVersion = '4.2.0';
|
|
|
21700
22774
|
*/
|
|
21701
22775
|
|
|
21702
22776
|
// build the component class
|
|
21703
|
-
class AuroDatePicker extends r$
|
|
22777
|
+
class AuroDatePicker extends r$3 {
|
|
21704
22778
|
constructor() {
|
|
21705
22779
|
super();
|
|
21706
22780
|
|
|
@@ -21763,7 +22837,7 @@ class AuroDatePicker extends r$c {
|
|
|
21763
22837
|
/**
|
|
21764
22838
|
* @private
|
|
21765
22839
|
*/
|
|
21766
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
22840
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
21767
22841
|
|
|
21768
22842
|
/**
|
|
21769
22843
|
* @private
|
|
@@ -21773,17 +22847,17 @@ class AuroDatePicker extends r$c {
|
|
|
21773
22847
|
/**
|
|
21774
22848
|
* Generate unique names for dependency components.
|
|
21775
22849
|
*/
|
|
21776
|
-
const versioning = new AuroDependencyVersioning$
|
|
22850
|
+
const versioning = new AuroDependencyVersioning$5();
|
|
21777
22851
|
|
|
21778
22852
|
/**
|
|
21779
22853
|
* @private
|
|
21780
22854
|
*/
|
|
21781
|
-
this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
|
|
22855
|
+
this.dropdownTag = versioning.generateTag('auro-formkit-datepicker-dropdown', dropdownVersion, AuroDropdown);
|
|
21782
22856
|
|
|
21783
22857
|
/**
|
|
21784
22858
|
* @private
|
|
21785
22859
|
*/
|
|
21786
|
-
this.inputTag = versioning.generateTag('auro-input', inputVersion, AuroInput);
|
|
22860
|
+
this.inputTag = versioning.generateTag('auro-formkit-datepicker-input', inputVersion, AuroInput);
|
|
21787
22861
|
|
|
21788
22862
|
/**
|
|
21789
22863
|
* @private
|
|
@@ -21949,6 +23023,14 @@ class AuroDatePicker extends r$c {
|
|
|
21949
23023
|
type: String
|
|
21950
23024
|
},
|
|
21951
23025
|
|
|
23026
|
+
/**
|
|
23027
|
+
* Set true to make datepicker stacked style.
|
|
23028
|
+
*/
|
|
23029
|
+
stacked: {
|
|
23030
|
+
type: Boolean,
|
|
23031
|
+
reflect: true,
|
|
23032
|
+
},
|
|
23033
|
+
|
|
21952
23034
|
/**
|
|
21953
23035
|
* Specifies the `validityState` this element is in.
|
|
21954
23036
|
*/
|
|
@@ -21975,9 +23057,9 @@ class AuroDatePicker extends r$c {
|
|
|
21975
23057
|
|
|
21976
23058
|
static get styles() {
|
|
21977
23059
|
return [
|
|
21978
|
-
styleCss$
|
|
21979
|
-
colorCss$
|
|
21980
|
-
tokensCss$
|
|
23060
|
+
styleCss$d,
|
|
23061
|
+
colorCss$d,
|
|
23062
|
+
tokensCss$a
|
|
21981
23063
|
];
|
|
21982
23064
|
}
|
|
21983
23065
|
|
|
@@ -21990,7 +23072,7 @@ class AuroDatePicker extends r$c {
|
|
|
21990
23072
|
*
|
|
21991
23073
|
*/
|
|
21992
23074
|
static register(name = "auro-datepicker") {
|
|
21993
|
-
AuroLibraryRuntimeUtils$
|
|
23075
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent(name, AuroDatePicker);
|
|
21994
23076
|
}
|
|
21995
23077
|
|
|
21996
23078
|
/**
|
|
@@ -22207,9 +23289,10 @@ class AuroDatePicker extends r$c {
|
|
|
22207
23289
|
* @returns {void}
|
|
22208
23290
|
*/
|
|
22209
23291
|
configureCalendar() {
|
|
22210
|
-
this.calendar = this.shadowRoot.querySelector('auro-calendar');
|
|
23292
|
+
this.calendar = this.shadowRoot.querySelector('auro-formkit-calendar');
|
|
22211
23293
|
this.calendar.datepicker = this;
|
|
22212
23294
|
this.calendar.format = this.format;
|
|
23295
|
+
this.calendar.dropdown = this.dropdown;
|
|
22213
23296
|
|
|
22214
23297
|
this.calendar.addEventListener('auroCalendar-dateSelected', () => {
|
|
22215
23298
|
if (this.inputList[0].value !== this.calendar.dateFrom && this.calendar.dateFrom !== undefined) {
|
|
@@ -22633,7 +23716,7 @@ class AuroDatePicker extends r$c {
|
|
|
22633
23716
|
|
|
22634
23717
|
// function that renders the HTML and CSS into the scope of the component
|
|
22635
23718
|
render() {
|
|
22636
|
-
return u$
|
|
23719
|
+
return u$2`
|
|
22637
23720
|
<div class="outerWrapper">
|
|
22638
23721
|
<${this.dropdownTag}
|
|
22639
23722
|
for="dropdownMenu"
|
|
@@ -22666,7 +23749,7 @@ class AuroDatePicker extends r$c {
|
|
|
22666
23749
|
part="input">
|
|
22667
23750
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
22668
23751
|
</${this.inputTag}>
|
|
22669
|
-
${this.range ? u$
|
|
23752
|
+
${this.range ? u$2`
|
|
22670
23753
|
<${this.inputTag}
|
|
22671
23754
|
id="${this.generateRandomString(12)}"
|
|
22672
23755
|
bordered
|
|
@@ -22689,7 +23772,7 @@ class AuroDatePicker extends r$c {
|
|
|
22689
23772
|
` : undefined}
|
|
22690
23773
|
</div>
|
|
22691
23774
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
22692
|
-
<auro-calendar
|
|
23775
|
+
<auro-formkit-calendar
|
|
22693
23776
|
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
22694
23777
|
?noRange="${!this.range}"
|
|
22695
23778
|
.format="${this.format}"
|
|
@@ -22703,16 +23786,16 @@ class AuroDatePicker extends r$c {
|
|
|
22703
23786
|
>
|
|
22704
23787
|
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
22705
23788
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
22706
|
-
<span slot="bib.fullscreen.fromStr">${this.value || u$
|
|
22707
|
-
${this.range ? u$
|
|
22708
|
-
</auro-calendar>
|
|
23789
|
+
<span slot="bib.fullscreen.fromStr">${this.value || u$2`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
23790
|
+
${this.range ? u$2`<span slot="mobileDateToStr">${this.valueEnd || u$2`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
23791
|
+
</auro-formkit-calendar>
|
|
22709
23792
|
</div>
|
|
22710
23793
|
<p slot="helpText" part="helpTextSpan">
|
|
22711
23794
|
<!-- Help text and error message template -->
|
|
22712
23795
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
22713
|
-
? u$
|
|
23796
|
+
? u$2`
|
|
22714
23797
|
<slot name="helpText"></slot>
|
|
22715
|
-
` : u$
|
|
23798
|
+
` : u$2`
|
|
22716
23799
|
<span role="alert" aria-live="assertive" part="helpText">
|
|
22717
23800
|
${this.errorMessage}
|
|
22718
23801
|
</span>`
|