@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
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const t$
|
|
6
|
+
const t$3=globalThis,e$4=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$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;
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/const{is:i$
|
|
12
|
+
*/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");
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
18
|
*/
|
|
19
|
-
const t$
|
|
19
|
+
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};
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/let r$
|
|
25
|
+
*/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");
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2020 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
31
|
*/
|
|
32
|
-
const a
|
|
32
|
+
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);
|
|
33
33
|
|
|
34
34
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
35
35
|
// See LICENSE in the project root for license information.
|
|
@@ -38,7 +38,7 @@ const a$7=Symbol.for(""),o$b=t=>{if(t?.r===a$7)return t?._$litStatic$},s$8=t=>({
|
|
|
38
38
|
|
|
39
39
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
40
40
|
|
|
41
|
-
let AuroLibraryRuntimeUtils$
|
|
41
|
+
let AuroLibraryRuntimeUtils$9 = class AuroLibraryRuntimeUtils {
|
|
42
42
|
|
|
43
43
|
/* eslint-disable jsdoc/require-param */
|
|
44
44
|
|
|
@@ -107,7 +107,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
107
107
|
|
|
108
108
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
109
109
|
constructor() {
|
|
110
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
110
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
@@ -416,7 +416,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
416
416
|
// See LICENSE in the project root for license information.
|
|
417
417
|
|
|
418
418
|
|
|
419
|
-
let AuroDependencyVersioning$
|
|
419
|
+
let AuroDependencyVersioning$5 = class AuroDependencyVersioning {
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
422
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -442,7 +442,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
|
442
442
|
*/
|
|
443
443
|
generateTag(baseName, version, tagClass) {
|
|
444
444
|
const elementName = this.generateElementName(baseName, version);
|
|
445
|
-
const tag = i$
|
|
445
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
446
446
|
|
|
447
447
|
if (!customElements.get(elementName)) {
|
|
448
448
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -774,8 +774,8 @@ class UtilitiesCalendarRender {
|
|
|
774
774
|
* @returns {Object} Returns the auro-calendar-month HTML.
|
|
775
775
|
*/
|
|
776
776
|
renderCalendar(elem, month, year) {
|
|
777
|
-
return x
|
|
778
|
-
<auro-calendar-month
|
|
777
|
+
return x`
|
|
778
|
+
<auro-formkit-calendar-month
|
|
779
779
|
id="${`month-${month}-${year}`}"
|
|
780
780
|
.disabledDays="${elem.disabledDays}"
|
|
781
781
|
.min="${elem.min}"
|
|
@@ -793,24 +793,24 @@ class UtilitiesCalendarRender {
|
|
|
793
793
|
@date-from-changed="${elem.dateFromChanged}"
|
|
794
794
|
@date-to-changed="${elem.dateToChanged}"
|
|
795
795
|
>
|
|
796
|
-
</auro-calendar-month>
|
|
796
|
+
</auro-formkit-calendar-month>
|
|
797
797
|
`;
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
|
|
801
|
-
var styleCss$
|
|
801
|
+
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}}`;
|
|
802
802
|
|
|
803
|
-
var colorCss$
|
|
803
|
+
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)}`;
|
|
804
804
|
|
|
805
|
-
var tokensCss$
|
|
805
|
+
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)}`;
|
|
806
806
|
|
|
807
|
-
var styleCss$
|
|
807
|
+
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:""}`;
|
|
808
808
|
|
|
809
|
-
var colorCss$
|
|
809
|
+
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)}}`;
|
|
810
810
|
|
|
811
|
-
var styleCss$
|
|
811
|
+
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%}`;
|
|
812
812
|
|
|
813
|
-
var colorCss$
|
|
813
|
+
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)}`;
|
|
814
814
|
|
|
815
815
|
/******************************************************************************
|
|
816
816
|
Copyright (c) Microsoft Corporation.
|
|
@@ -845,7 +845,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
845
845
|
* @license
|
|
846
846
|
* Copyright 2017 Google LLC
|
|
847
847
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
848
|
-
*/const o$
|
|
848
|
+
*/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)}
|
|
849
849
|
|
|
850
850
|
/**
|
|
851
851
|
* @module constants
|
|
@@ -6601,7 +6601,7 @@ function subYears(date, amount, options) {
|
|
|
6601
6601
|
return addYears(date, -1, options);
|
|
6602
6602
|
}
|
|
6603
6603
|
|
|
6604
|
-
class RangeDatepickerCell extends r$
|
|
6604
|
+
class RangeDatepickerCell extends r$3 {
|
|
6605
6605
|
constructor() {
|
|
6606
6606
|
super(...arguments);
|
|
6607
6607
|
this.day = null;
|
|
@@ -6632,7 +6632,7 @@ class RangeDatepickerCell extends r$c {
|
|
|
6632
6632
|
|
|
6633
6633
|
render() {
|
|
6634
6634
|
let _a, _b;
|
|
6635
|
-
return x
|
|
6635
|
+
return x`
|
|
6636
6636
|
<button
|
|
6637
6637
|
@click="${this.handleTap}"
|
|
6638
6638
|
@mouseover="${this.handleHover}"
|
|
@@ -6722,7 +6722,7 @@ class RangeDatepickerCell extends r$c {
|
|
|
6722
6722
|
});
|
|
6723
6723
|
}
|
|
6724
6724
|
}
|
|
6725
|
-
RangeDatepickerCell.styles = i$
|
|
6725
|
+
RangeDatepickerCell.styles = i$6`
|
|
6726
6726
|
:host {
|
|
6727
6727
|
display: block;
|
|
6728
6728
|
}
|
|
@@ -6789,20 +6789,20 @@ RangeDatepickerCell.styles = i$h`
|
|
|
6789
6789
|
opacity: 0.4;
|
|
6790
6790
|
}
|
|
6791
6791
|
`;
|
|
6792
|
-
__decorate([n
|
|
6793
|
-
__decorate([n
|
|
6794
|
-
__decorate([n
|
|
6795
|
-
__decorate([n
|
|
6796
|
-
__decorate([n
|
|
6797
|
-
__decorate([n
|
|
6798
|
-
__decorate([n
|
|
6799
|
-
__decorate([n
|
|
6800
|
-
__decorate([n
|
|
6801
|
-
__decorate([n
|
|
6802
|
-
__decorate([n
|
|
6803
|
-
__decorate([n
|
|
6804
|
-
__decorate([n
|
|
6805
|
-
AuroLibraryRuntimeUtils$
|
|
6792
|
+
__decorate([n({ type: Object })], RangeDatepickerCell.prototype, "day", void 0);
|
|
6793
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "selected", void 0);
|
|
6794
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "hovered", void 0);
|
|
6795
|
+
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "dateTo", void 0);
|
|
6796
|
+
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "dateFrom", void 0);
|
|
6797
|
+
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "month", void 0);
|
|
6798
|
+
__decorate([n({ type: Number })], RangeDatepickerCell.prototype, "min", void 0);
|
|
6799
|
+
__decorate([n({ type: Number })], RangeDatepickerCell.prototype, "max", void 0);
|
|
6800
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "disabled", void 0);
|
|
6801
|
+
__decorate([n({ type: Array })], RangeDatepickerCell.prototype, "disabledDays", void 0);
|
|
6802
|
+
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", void 0);
|
|
6803
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", void 0);
|
|
6804
|
+
__decorate([n({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
6805
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
6806
6806
|
|
|
6807
6807
|
class Day {
|
|
6808
6808
|
constructor(date) {
|
|
@@ -6811,7 +6811,7 @@ class Day {
|
|
|
6811
6811
|
}
|
|
6812
6812
|
}
|
|
6813
6813
|
|
|
6814
|
-
class RangeDatepickerCalendar extends r$
|
|
6814
|
+
class RangeDatepickerCalendar extends r$3 {
|
|
6815
6815
|
constructor() {
|
|
6816
6816
|
super();
|
|
6817
6817
|
|
|
@@ -6865,7 +6865,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
6865
6865
|
|
|
6866
6866
|
render() {
|
|
6867
6867
|
let _a, _b;
|
|
6868
|
-
return x
|
|
6868
|
+
return x`
|
|
6869
6869
|
<div>
|
|
6870
6870
|
<div class="header">
|
|
6871
6871
|
${this.renderPrevButton()}
|
|
@@ -6892,7 +6892,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
6892
6892
|
|
|
6893
6893
|
renderPrevButton() {
|
|
6894
6894
|
if (this.prev || this.narrow || this.enableYearChange) {
|
|
6895
|
-
return x
|
|
6895
|
+
return x`
|
|
6896
6896
|
<button
|
|
6897
6897
|
icon="chevron_left"
|
|
6898
6898
|
@click="${this.handlePrevMonth}">
|
|
@@ -6904,7 +6904,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
6904
6904
|
|
|
6905
6905
|
renderNextButton() {
|
|
6906
6906
|
if (this.next || this.narrow || this.enableYearChange) {
|
|
6907
|
-
return x
|
|
6907
|
+
return x`
|
|
6908
6908
|
<button
|
|
6909
6909
|
icon="chevron_right"
|
|
6910
6910
|
@click="${this.handleNextMonth}">
|
|
@@ -6915,23 +6915,23 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
6915
6915
|
}
|
|
6916
6916
|
|
|
6917
6917
|
renderYear() {
|
|
6918
|
-
return x
|
|
6918
|
+
return x`${this.year}`;
|
|
6919
6919
|
}
|
|
6920
6920
|
|
|
6921
6921
|
renderDayOfWeek(dayOfWeek) {
|
|
6922
|
-
return x
|
|
6922
|
+
return x`<div class="th">${dayOfWeek}</div>`;
|
|
6923
6923
|
}
|
|
6924
6924
|
|
|
6925
6925
|
renderWeek(week) {
|
|
6926
|
-
return x
|
|
6926
|
+
return x`
|
|
6927
6927
|
<div class="tr">${week.map((day) => this.renderDay(day))}</div>
|
|
6928
6928
|
`;
|
|
6929
6929
|
}
|
|
6930
6930
|
|
|
6931
6931
|
renderDay(day) {
|
|
6932
|
-
return x
|
|
6932
|
+
return x`
|
|
6933
6933
|
<div class="td ${this.tdIsEnabled(day)}">
|
|
6934
|
-
${day ? x
|
|
6934
|
+
${day ? x`
|
|
6935
6935
|
<wc-range-datepicker-cell
|
|
6936
6936
|
.disabledDays="${this.disabledDays}"
|
|
6937
6937
|
.min="${this.min}"
|
|
@@ -7197,7 +7197,7 @@ class RangeDatepickerCalendar extends r$c {
|
|
|
7197
7197
|
}
|
|
7198
7198
|
}
|
|
7199
7199
|
|
|
7200
|
-
RangeDatepickerCalendar.styles = i$
|
|
7200
|
+
RangeDatepickerCalendar.styles = i$6`
|
|
7201
7201
|
:host {
|
|
7202
7202
|
display: block;
|
|
7203
7203
|
width: 266px;
|
|
@@ -7302,48 +7302,54 @@ RangeDatepickerCalendar.styles = i$h`
|
|
|
7302
7302
|
max-height: 200px;
|
|
7303
7303
|
}
|
|
7304
7304
|
`;
|
|
7305
|
-
__decorate([n
|
|
7306
|
-
__decorate([n
|
|
7307
|
-
__decorate([n
|
|
7308
|
-
__decorate([n
|
|
7309
|
-
__decorate([n
|
|
7310
|
-
__decorate([n
|
|
7311
|
-
__decorate([n
|
|
7312
|
-
__decorate([n
|
|
7313
|
-
__decorate([n
|
|
7314
|
-
__decorate([n
|
|
7315
|
-
__decorate([n
|
|
7316
|
-
__decorate([n
|
|
7317
|
-
__decorate([n
|
|
7318
|
-
__decorate([n
|
|
7319
|
-
__decorate([n
|
|
7320
|
-
__decorate([n
|
|
7321
|
-
__decorate([n
|
|
7322
|
-
__decorate([n
|
|
7323
|
-
AuroLibraryRuntimeUtils$
|
|
7305
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "dateFrom", void 0);
|
|
7306
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "dateTo", void 0);
|
|
7307
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "hoveredDate", void 0);
|
|
7308
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCalendar.prototype, "enableYearChange", void 0);
|
|
7309
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "month", void 0);
|
|
7310
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCalendar.prototype, "narrow", void 0);
|
|
7311
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCalendar.prototype, "noRange", void 0);
|
|
7312
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCalendar.prototype, "next", void 0);
|
|
7313
|
+
__decorate([n({ type: Boolean })], RangeDatepickerCalendar.prototype, "prev", void 0);
|
|
7314
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "year", void 0);
|
|
7315
|
+
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "disabledDays", void 0);
|
|
7316
|
+
__decorate([n({ type: Object })], RangeDatepickerCalendar.prototype, "locale", null);
|
|
7317
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "max", void 0);
|
|
7318
|
+
__decorate([n({ type: String })], RangeDatepickerCalendar.prototype, "min", void 0);
|
|
7319
|
+
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList", void 0);
|
|
7320
|
+
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", void 0);
|
|
7321
|
+
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", void 0);
|
|
7322
|
+
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", void 0);
|
|
7323
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7324
7324
|
|
|
7325
7325
|
/**
|
|
7326
7326
|
* @license
|
|
7327
7327
|
* Copyright 2017 Google LLC
|
|
7328
7328
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7329
7329
|
*/
|
|
7330
|
-
const t$
|
|
7330
|
+
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)}};
|
|
7331
7331
|
|
|
7332
7332
|
/**
|
|
7333
7333
|
* @license
|
|
7334
7334
|
* Copyright 2018 Google LLC
|
|
7335
7335
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7336
|
-
*/const e
|
|
7336
|
+
*/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}});
|
|
7337
7337
|
|
|
7338
|
-
var styleCss$
|
|
7338
|
+
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)}}`;
|
|
7339
7339
|
|
|
7340
|
-
var colorCss$
|
|
7340
|
+
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)}`;
|
|
7341
7341
|
|
|
7342
|
-
var styleCss$7 = i$h`:root{--ds-asset-font-circular-family-name: "AS Circular";--ds-asset-font-circular-filename: "ASCircularWeb";--ds-asset-font-circular-weight-light: "-Light";--ds-asset-font-circular-weight-medium: "-Medium";--ds-asset-font-circular-weight-book: "-Book";--ds-border-radius: 0.375rem;--ds-size-25: 0.125rem;--ds-size-50: 0.25rem;--ds-size-75: 0.375rem;--ds-size-100: 0.5rem;--ds-size-150: 0.75rem;--ds-size-200: 1rem;--ds-size-300: 1.5rem;--ds-size-400: 2rem;--ds-size-500: 2.5rem;--ds-size-600: 3rem;--ds-size-700: 3.5rem;--ds-size-800: 4rem;--ds-size-900: 4.5rem;--ds-size-1000: 5rem;--ds-unitless-scale-20: 0.25;--ds-unitless-scale-50: 0.5;--ds-unitless-scale-100: 1;--ds-unitless-scale-140: 1.4;--ds-unitless-scale-150: 1.5;--ds-unitless-scale-200: 2;--ds-unitless-scale-300: 3;--ds-unitless-scale-350: 3.5;--ds-animation-default-property: all;--ds-animation-default-duration: 0.3s;--ds-animation-default-timing: ease-out;--ds-depth-overlay: 200;--ds-depth-modal: 400;--ds-depth-tooltip: 300;--ds-elevation-100: 0px 0px 5px rgba(0, 0, 0, 0.15);--ds-elevation-200: 0px 0px 10px rgba(0, 0, 0, 0.15);--ds-elevation-300: 0px 0px 15px rgba(0, 0, 0, 0.2);--ds-grid-breakpoint-xs: 320px;--ds-grid-breakpoint-sm: 576px;--ds-grid-breakpoint-md: 768px;--ds-grid-breakpoint-lg: 1024px;--ds-grid-breakpoint-xl: 1232px;--ds-grid-column-xs: 6;--ds-grid-column-sm: 12;--ds-grid-column-md: 12;--ds-grid-column-lg: 12;--ds-grid-column-xl: 12;--ds-grid-gutter-xs: 0.5rem;--ds-grid-gutter-sm: 1rem;--ds-grid-gutter-md: 1.5rem;--ds-grid-gutter-lg: 1.5rem;--ds-grid-gutter-xl: 2rem;--ds-grid-margin-xs: 1rem;--ds-grid-margin-sm: 1rem;--ds-grid-margin-md: 1.5rem;--ds-grid-margin-lg: 2rem;--ds-grid-margin-xl: 2rem;--ds-font-family-default: "AS Circular", Helvetica Neue, Arial, sans-serif;--ds-font-family-mono: Menlo, Monaco, Consolas, "Courier New", monospace;--ds-text-heading-300-weight: 300;--ds-text-heading-300-px: 18px;--ds-text-heading-300-size: 1.125rem;--ds-text-heading-300-height: 1.625rem;--ds-text-heading-300-height-px: 26px;--ds-text-heading-400-weight: 300;--ds-text-heading-400-px: 20px;--ds-text-heading-400-size: 1.25rem;--ds-text-heading-400-height: 1.625rem;--ds-text-heading-400-height-px: 26px;--ds-text-heading-500-weight: 300;--ds-text-heading-500-px-breakpoint-sm: 22px;--ds-text-heading-500-px-breakpoint-md: 24px;--ds-text-heading-500-px-breakpoint-lg: 24px;--ds-text-heading-500-size-breakpoint-sm: 1.375rem;--ds-text-heading-500-size-breakpoint-md: 1.5rem;--ds-text-heading-500-size-breakpoint-lg: 1.5rem;--ds-text-heading-500-height-breakpoint-sm: 1.625rem;--ds-text-heading-500-height-breakpoint-px-sm: 26px;--ds-text-heading-500-height-breakpoint-md: 1.875rem;--ds-text-heading-500-height-breakpoint-px-md: 30px;--ds-text-heading-500-height-breakpoint-lg: 2rem;--ds-text-heading-500-height-breakpoint-px-lg: 32px;--ds-text-heading-600-weight: 300;--ds-text-heading-600-px-breakpoint-sm: 26px;--ds-text-heading-600-px-breakpoint-md: 28px;--ds-text-heading-600-px-breakpoint-lg: 28px;--ds-text-heading-600-size-breakpoint-sm: 1.625rem;--ds-text-heading-600-size-breakpoint-md: 1.75rem;--ds-text-heading-600-size-breakpoint-lg: 1.75rem;--ds-text-heading-600-height-breakpoint-sm: 1.875rem;--ds-text-heading-600-height-breakpoint-px-sm: 30px;--ds-text-heading-600-height-breakpoint-md: 2.125rem;--ds-text-heading-600-height-breakpoint-px-md: 34px;--ds-text-heading-600-height-breakpoint-lg: 2.25rem;--ds-text-heading-600-height-breakpoint-px-lg: 36px;--ds-text-heading-700-weight: 500;--ds-text-heading-700-px-breakpoint-sm: 28px;--ds-text-heading-700-px-breakpoint-md: 32px;--ds-text-heading-700-px-breakpoint-lg: 36px;--ds-text-heading-700-size-breakpoint-sm: 1.75rem;--ds-text-heading-700-size-breakpoint-md: 2rem;--ds-text-heading-700-size-breakpoint-lg: 2.25rem;--ds-text-heading-700-height-breakpoint-sm: 2.125rem;--ds-text-heading-700-height-breakpoint-px-sm: 34px;--ds-text-heading-700-height-breakpoint-md: 2.375rem;--ds-text-heading-700-height-breakpoint-px-md: 38px;--ds-text-heading-700-height-breakpoint-lg: 2.75rem;--ds-text-heading-700-height-breakpoint-px-lg: 44px;--ds-text-heading-800-weight: 500;--ds-text-heading-800-px-breakpoint-sm: 32px;--ds-text-heading-800-px-breakpoint-md: 36px;--ds-text-heading-800-px-breakpoint-lg: 40px;--ds-text-heading-800-size-breakpoint-sm: 2rem;--ds-text-heading-800-size-breakpoint-md: 2.25rem;--ds-text-heading-800-size-breakpoint-lg: 2.5rem;--ds-text-heading-800-height-breakpoint-sm: 2.375rem;--ds-text-heading-800-height-breakpoint-px-sm: 38px;--ds-text-heading-800-height-breakpoint-md: 2.625rem;--ds-text-heading-800-height-breakpoint-px-md: 42px;--ds-text-heading-800-height-breakpoint-lg: 3rem;--ds-text-heading-800-height-breakpoint-px-lg: 48px;--ds-text-heading-default-weight: 500;--ds-text-heading-default-margin: 0;--ds-text-heading-default-spacing: -0.2px;--ds-text-heading-medium-weight: 300;--ds-text-heading-display-weight: 100;--ds-text-heading-display-px-breakpoint-sm: 44px;--ds-text-heading-display-px-breakpoint-md: 48px;--ds-text-heading-display-px-breakpoint-lg: 56px;--ds-text-heading-display-size-breakpoint-sm: 2.75rem;--ds-text-heading-display-size-breakpoint-md: 3rem;--ds-text-heading-display-size-breakpoint-lg: 3.5rem;--ds-text-heading-display-height-breakpoint-sm: 3.375rem;--ds-text-heading-display-height-breakpoint-px-sm: 54px;--ds-text-heading-display-height-breakpoint-md: 3.75rem;--ds-text-heading-display-height-breakpoint-px-md: 60px;--ds-text-heading-display-height-breakpoint-lg: 4.25rem;--ds-text-heading-display-height-breakpoint-px-lg: 68px;--ds-text-body-default-weight: 500;--ds-text-body-size-xxs: 0.625rem;--ds-text-body-size-xs: 0.75rem;--ds-text-body-size-sm: 0.875rem;--ds-text-body-size-default: 1rem;--ds-text-body-size-lg: 1.125rem;--ds-text-body-height-xs: 1rem;--ds-text-body-height-sm: 1.25rem;--ds-text-body-height-default: 1.5rem;--ds-text-body-height-lg: 1.625rem;--ds-color-alert-notification-default: #0074c8;--ds-color-alert-warning-default: #de750c;--ds-color-alert-error-default: #df0b37;--ds-color-alert-success-default: #00805d;--ds-color-alert-advisory-default: #fff0cd;--ds-color-alert-bkg-success-default: #ddf6e8;--ds-color-alert-bkg-error-default: #ffedf1;--ds-color-background-primary-100-default: #ffffff;--ds-color-background-primary-100-inverse: #0e2b4f;--ds-color-background-primary-200-default: #f7f7f7;--ds-color-background-primary-200-inverse: #194069;--ds-color-background-primary-300-default: #e4e8ec;--ds-color-background-primary-300-inverse: #265688;--ds-color-background-primary-400-default: #dddddd;--ds-color-background-primary-400-inverse: #326aa5;--ds-color-background-success-default: #eef8f5;--ds-color-background-success-inverse: #173c30;--ds-color-background-error-default: #fff4f4;--ds-color-background-error-inverse: #74110e;--ds-color-background-warning-default: #fef8e9;--ds-color-background-warning-inverse: #5d4514;--ds-color-background-info-default: #f0f7fd;--ds-color-background-info-inverse: #193d73;--ds-color-background-subtle-default: #f7f8fa;--ds-color-background-subtle-inverse: #2a2a2a;--ds-color-background-accent-default: #ebfafd;--ds-color-background-accent-inverse: #275b72;--ds-color-background-emphasis-default: #c9e0f7;--ds-color-background-emphasis-inverse: #225296;--ds-color-background-scrimmed-default: rgba(0, 0, 0, 0.5);--ds-color-background-lightest: #ffffff;--ds-color-background-lighter: #f7f7f7;--ds-color-background-darker: #01426a;--ds-color-background-darkest: #00274a;--ds-color-background-gradient-default: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));--ds-color-base-white: #ffffff;--ds-color-base-white-100: rgba(255, 255, 255, 0.03);--ds-color-base-white-200: rgba(255, 255, 255, 0.06);--ds-color-base-white-300: rgba(255, 255, 255, 0.12);--ds-color-base-white-400: rgba(255, 255, 255, 0.25);--ds-color-base-white-500: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-50: rgba(255, 255, 255, 0.5);--ds-color-base-white-opacity-40: rgba(255, 255, 255, 0.4);--ds-color-base-white-opacity-0: rgba(255, 255, 255, 0);--ds-color-base-black: #000000;--ds-color-base-black-100: rgba(0, 0, 0, 0.03);--ds-color-base-black-200: rgba(0, 0, 0, 0.06);--ds-color-base-black-300: rgba(0, 0, 0, 0.12);--ds-color-base-black-400: rgba(0, 0, 0, 0.25);--ds-color-base-black-500: rgba(0, 0, 0, 0.5);--ds-color-base-black-opacity-15: rgba(0, 0, 0, 0.15);--ds-color-base-blue-100: #f0f7fd;--ds-color-base-blue-200: #c9e0f7;--ds-color-base-blue-300: #a0c9f1;--ds-color-base-blue-400: #79b2ec;--ds-color-base-blue-500: #5398e6;--ds-color-base-blue-600: #3b7fd2;--ds-color-base-blue-700: #2c67b5;--ds-color-base-blue-800: #225296;--ds-color-base-blue-900: #193d73;--ds-color-base-blue-1000: #102a51;--ds-color-base-cyan-100: #ebfafd;--ds-color-base-cyan-200: #a8e9f7;--ds-color-base-cyan-300: #6ad5ef;--ds-color-base-cyan-400: #56bbde;--ds-color-base-cyan-500: #4aa2c7;--ds-color-base-cyan-600: #3e89aa;--ds-color-base-cyan-700: #32718e;--ds-color-base-cyan-800: #275b72;--ds-color-base-cyan-900: #1d4658;--ds-color-base-cyan-1000: #12303d;--ds-color-base-error-100: #fff4f4;--ds-color-base-error-200: #f9aca6;--ds-color-base-error-300: #f16359;--ds-color-base-error-400: #cc1816;--ds-color-base-error-500: #74110e;--ds-color-base-gray-100: #f7f7f7;--ds-color-base-gray-200: #dddddd;--ds-color-base-gray-300: #c5c5c5;--ds-color-base-gray-400: #adadad;--ds-color-base-gray-500: #959595;--ds-color-base-gray-600: #7e7e7e;--ds-color-base-gray-700: #676767;--ds-color-base-gray-800: #525252;--ds-color-base-gray-900: #3d3d3d;--ds-color-base-gray-1000: #2a2a2a;--ds-color-base-green-100: #f3faf7;--ds-color-base-green-200: #000000;--ds-color-base-green-300: #addbca;--ds-color-base-green-400: #7ec6ac;--ds-color-base-green-500: #51ae8c;--ds-color-base-green-600: #459578;--ds-color-base-green-700: #3a7d64;--ds-color-base-green-800: #306854;--ds-color-base-green-900: #285545;--ds-color-base-green-1000: #1f4436;--ds-color-base-lime-100: #f5fbeb;--ds-color-base-lime-200: #d8efb4;--ds-color-base-lime-300: #badd81;--ds-color-base-lime-400: #a2c270;--ds-color-base-lime-500: #8ca761;--ds-color-base-lime-600: #778f53;--ds-color-base-lime-700: #647845;--ds-color-base-lime-800: #53643a;--ds-color-base-lime-900: #44522f;--ds-color-base-lime-1000: #364126;--ds-color-base-navy-100: #f2f7fb;--ds-color-base-navy-200: #cfe0ef;--ds-color-base-navy-300: #acc9e2;--ds-color-base-navy-400: #89b2d4;--ds-color-base-navy-500: #6899c6;--ds-color-base-navy-600: #4a82b7;--ds-color-base-navy-700: #326aa5;--ds-color-base-navy-800: #265688;--ds-color-base-navy-900: #194069;--ds-color-base-navy-1000: #0e2b4f;--ds-color-base-neutral-100: #f7f8fa;--ds-color-base-neutral-200: #e4e8ec;--ds-color-base-neutral-300: #ccd2db;--ds-color-base-neutral-400: #afb9c6;--ds-color-base-neutral-500: #939fad;--ds-color-base-neutral-600: #7e8894;--ds-color-base-neutral-700: #6a717c;--ds-color-base-neutral-800: #585e67;--ds-color-base-neutral-900: #484d55;--ds-color-base-neutral-1000: #393d43;--ds-color-base-pink-100: #fff7f8;--ds-color-base-pink-200: #fde0e6;--ds-color-base-pink-300: #fcc2ce;--ds-color-base-pink-400: #fa9db0;--ds-color-base-pink-500: #f7738e;--ds-color-base-pink-600: #e45472;--ds-color-base-pink-700: #bf475f;--ds-color-base-pink-800: #a03b50;--ds-color-base-pink-900: #833142;--ds-color-base-pink-1000: #692734;--ds-color-base-purple-100: #fbf8fe;--ds-color-base-purple-200: #ede3fd;--ds-color-base-purple-300: #ddc9fb;--ds-color-base-purple-400: #c9a9f8;--ds-color-base-purple-500: #b588f5;--ds-color-base-purple-600: #a268f3;--ds-color-base-purple-700: #8d47f0;--ds-color-base-purple-800: #7633d7;--ds-color-base-purple-900: #622ab2;--ds-color-base-purple-1000: #4e228d;--ds-color-base-red-100: #fef7f5;--ds-color-base-red-200: #fae2da;--ds-color-base-red-300: #f5c7b8;--ds-color-base-red-400: #f0a68d;--ds-color-base-red-500: #e9815e;--ds-color-base-red-600: #e35c2f;--ds-color-base-red-700: #d03a08;--ds-color-base-red-800: #ae3007;--ds-color-base-red-900: #902806;--ds-color-base-red-1000: #732005;--ds-color-base-success-100: #eef8f5;--ds-color-base-success-200: #8eceb9;--ds-color-base-success-300: #40a080;--ds-color-base-success-400: #0b6f4d;--ds-color-base-success-500: #173c30;--ds-color-base-turquoise-100: #f7fafa;--ds-color-base-turquoise-200: #dfe9ea;--ds-color-base-turquoise-300: #c2d5d6;--ds-color-base-turquoise-400: #9fbdbe;--ds-color-base-turquoise-500: #7ba5a6;--ds-color-base-turquoise-600: #5c8f91;--ds-color-base-turquoise-700: #3d7a7d;--ds-color-base-turquoise-800: #21686a;--ds-color-base-turquoise-900: #085659;--ds-color-base-turquoise-1000: #004447;--ds-color-base-yellow-100: #fff9df;--ds-color-base-yellow-200: #ffe87e;--ds-color-base-yellow-300: #f9ce06;--ds-color-base-yellow-400: #d6b622;--ds-color-base-yellow-500: #b49d35;--ds-color-base-yellow-600: #96873e;--ds-color-base-yellow-700: #7c7140;--ds-color-base-yellow-800: #665e3d;--ds-color-base-yellow-900: #524e38;--ds-color-base-yellow-1000: #403d30;--ds-color-base-warning-100: #fef8e9;--ds-color-base-warning-200: #f2c153;--ds-color-base-warning-300: #c49432;--ds-color-base-warning-400: #8e6b22;--ds-color-base-warning-500: #5d4514;--ds-color-state-error-100: #ff999b;--ds-color-state-error-500: #df0b37;--ds-color-state-success-100: #69cf96;--ds-color-state-success-500: #00805d;--ds-color-state-warning-500: #de750c;--ds-color-border-primary-default: #585e67;--ds-color-border-primary-inverse: #afb9c6;--ds-color-border-secondary-default: #939fad;--ds-color-border-secondary-inverse: #7e8894;--ds-color-border-tertiary-default: #dddddd;--ds-color-border-tertiary-inverse: #676767;--ds-color-border-error-default: #cc1816;--ds-color-border-error-inverse: #f9aca6;--ds-color-border-divider-default: rgba(0, 0, 0, 0.12);--ds-color-border-divider-inverse: rgba(255, 255, 255, 0.25);--ds-color-border-subtle-default: #f0f7fd;--ds-color-border-subtle-inverse: #326aa5;--ds-color-border-emphasis-default: #194069;--ds-color-border-emphasis-inverse: #f2f7fb;--ds-color-border-accent-default: #badd81;--ds-color-border-accent-inverse: #a2c270;--ds-color-border-success-default: #0b6f4d;--ds-color-border-success-inverse: #8eceb9;--ds-color-border-warning-default: #c49432;--ds-color-border-warning-inverse: #f2c153;--ds-color-border-info-default: #326aa5;--ds-color-border-info-inverse: #89b2d4;--ds-color-border-ui-default-default: #2c67b5;--ds-color-border-ui-default-inverse: #56bbde;--ds-color-border-ui-hover-default: #193d73;--ds-color-border-ui-hover-inverse: #a8e9f7;--ds-color-border-ui-active-default: #225296;--ds-color-border-ui-active-inverse: #6ad5ef;--ds-color-border-ui-focus-default: #2c67b5;--ds-color-border-ui-focus-inverse: #56bbde;--ds-color-border-ui-disabled-default: #adadad;--ds-color-border-ui-disabled-inverse: #7e7e7e;--ds-color-border-active-default: #0074c8;--ds-color-border-active-inverse: #00cff0;--ds-color-border-disabled-default: #dddddd;--ds-color-border-focus-default: #959595;--ds-color-brand-neutral-100: #f7f8fa;--ds-color-brand-neutral-200: #e4e8ec;--ds-color-brand-neutral-300: #ccd2db;--ds-color-brand-neutral-400: #afb9c6;--ds-color-brand-neutral-500: #939fad;--ds-color-brand-neutral-600: #7e8894;--ds-color-brand-neutral-700: #6a717c;--ds-color-brand-neutral-800: #585e67;--ds-color-brand-neutral-900: #484d55;--ds-color-brand-neutral-1000: #393d43;--ds-color-brand-gray-100: #f7f7f7;--ds-color-brand-gray-200: #dddddd;--ds-color-brand-gray-300: #c5c5c5;--ds-color-brand-gray-400: #adadad;--ds-color-brand-gray-500: #959595;--ds-color-brand-gray-600: #7e7e7e;--ds-color-brand-gray-700: #676767;--ds-color-brand-gray-800: #525252;--ds-color-brand-gray-900: #3d3d3d;--ds-color-brand-gray-1000: #2a2a2a;--ds-color-brand-red-100: #fef7f5;--ds-color-brand-red-200: #fae2da;--ds-color-brand-red-300: #f5c7b8;--ds-color-brand-red-400: #f0a68d;--ds-color-brand-red-500: #e9815e;--ds-color-brand-red-600: #e35c2f;--ds-color-brand-red-700: #d03a08;--ds-color-brand-red-800: #ae3007;--ds-color-brand-red-900: #902806;--ds-color-brand-red-1000: #732005;--ds-color-brand-yellow-100: #fff9df;--ds-color-brand-yellow-200: #ffe87e;--ds-color-brand-yellow-300: #f9ce06;--ds-color-brand-yellow-400: #d6b622;--ds-color-brand-yellow-500: #b49d35;--ds-color-brand-yellow-600: #96873e;--ds-color-brand-yellow-700: #7c7140;--ds-color-brand-yellow-800: #665e3d;--ds-color-brand-yellow-900: #524e38;--ds-color-brand-yellow-1000: #403d30;--ds-color-brand-lime-100: #f5fbeb;--ds-color-brand-lime-200: #d8efb4;--ds-color-brand-lime-300: #badd81;--ds-color-brand-lime-400: #a2c270;--ds-color-brand-lime-500: #8ca761;--ds-color-brand-lime-600: #778f53;--ds-color-brand-lime-700: #647845;--ds-color-brand-lime-800: #53643a;--ds-color-brand-lime-900: #44522f;--ds-color-brand-lime-1000: #364126;--ds-color-brand-green-100: #f3faf7;--ds-color-brand-green-200: #d4ece4;--ds-color-brand-green-300: #addbca;--ds-color-brand-green-400: #7ec6ac;--ds-color-brand-green-500: #51ae8c;--ds-color-brand-green-600: #459578;--ds-color-brand-green-700: #3a7d64;--ds-color-brand-green-800: #306854;--ds-color-brand-green-900: #285545;--ds-color-brand-green-1000: #1f4436;--ds-color-brand-turquoise-100: #f7fafa;--ds-color-brand-turquoise-200: #dfe9ea;--ds-color-brand-turquoise-300: #c2d5d6;--ds-color-brand-turquoise-400: #9fbdbe;--ds-color-brand-turquoise-500: #7ba5a6;--ds-color-brand-turquoise-600: #5c8f91;--ds-color-brand-turquoise-700: #3d7a7d;--ds-color-brand-turquoise-800: #21686a;--ds-color-brand-turquoise-900: #085659;--ds-color-brand-turquoise-1000: #004447;--ds-color-brand-cyan-100: #ebfafd;--ds-color-brand-cyan-200: #a8e9f7;--ds-color-brand-cyan-300: #6ad5ef;--ds-color-brand-cyan-400: #56bbde;--ds-color-brand-cyan-500: #4aa2c7;--ds-color-brand-cyan-600: #3e89aa;--ds-color-brand-cyan-700: #32718e;--ds-color-brand-cyan-800: #275b72;--ds-color-brand-cyan-900: #1d4658;--ds-color-brand-cyan-1000: #12303d;--ds-color-brand-blue-100: #f0f7fd;--ds-color-brand-blue-200: #c9e0f7;--ds-color-brand-blue-300: #a0c9f1;--ds-color-brand-blue-400: #79b2ec;--ds-color-brand-blue-500: #5398e6;--ds-color-brand-blue-600: #3b7fd2;--ds-color-brand-blue-700: #2c67b5;--ds-color-brand-blue-800: #225296;--ds-color-brand-blue-900: #193d73;--ds-color-brand-blue-1000: #102a51;--ds-color-brand-navy-100: #f2f7fb;--ds-color-brand-navy-200: #cfe0ef;--ds-color-brand-navy-300: #acc9e2;--ds-color-brand-navy-400: #89b2d4;--ds-color-brand-navy-500: #6899c6;--ds-color-brand-navy-600: #4a82b7;--ds-color-brand-navy-700: #326aa5;--ds-color-brand-navy-800: #265688;--ds-color-brand-navy-900: #194069;--ds-color-brand-navy-1000: #0e2b4f;--ds-color-brand-purple-100: #fbf8fe;--ds-color-brand-purple-200: #ede3fd;--ds-color-brand-purple-300: #ddc9fb;--ds-color-brand-purple-400: #c9a9f8;--ds-color-brand-purple-500: #b588f5;--ds-color-brand-purple-600: #a268f3;--ds-color-brand-purple-700: #8d47f0;--ds-color-brand-purple-800: #7633d7;--ds-color-brand-purple-900: #622ab2;--ds-color-brand-purple-1000: #4e228d;--ds-color-brand-pink-100: #fff7f8;--ds-color-brand-pink-200: #fde0e6;--ds-color-brand-pink-300: #fcc2ce;--ds-color-brand-pink-400: #fa9db0;--ds-color-brand-pink-500: #f7738e;--ds-color-brand-pink-600: #e45472;--ds-color-brand-pink-700: #bf475f;--ds-color-brand-pink-800: #a03b50;--ds-color-brand-pink-900: #833142;--ds-color-brand-pink-1000: #692734;--ds-color-brand-midnight-100: #c1daf0;--ds-color-brand-midnight-200: #569ed7;--ds-color-brand-midnight-300: #156fad;--ds-color-brand-midnight-400: #01426a;--ds-color-brand-midnight-500: #00274a;--ds-color-brand-atlas-100: #cde6ff;--ds-color-brand-atlas-200: #6bb7fb;--ds-color-brand-atlas-300: #2492eb;--ds-color-brand-atlas-400: #0074c8;--ds-color-brand-atlas-500: #054687;--ds-color-brand-atlas-400-opacity-20: rgba(0, 116, 200, 0.2);--ds-color-brand-breeze-100: #c0f7ff;--ds-color-brand-breeze-200: #5de3f7;--ds-color-brand-breeze-300: #00cff0;--ds-color-brand-breeze-400: #099dc5;--ds-color-brand-breeze-500: #0b5575;--ds-color-brand-breeze-300-opacity-30: rgba(0, 207, 240, 0.3);--ds-color-brand-tropical-100: #e2ffcd;--ds-color-brand-tropical-200: #d0fba6;--ds-color-brand-tropical-300: #c0e585;--ds-color-brand-tropical-400: #91be62;--ds-color-brand-tropical-500: #5e8741;--ds-color-brand-alpine-100: #bcaae6;--ds-color-brand-alpine-200: #9e73ea;--ds-color-brand-alpine-300: #8439ef;--ds-color-brand-alpine-400: #631db8;--ds-color-brand-alpine-500: #39115c;--ds-color-brand-flamingo-100: #ffebee;--ds-color-brand-flamingo-200: #ffc0ca;--ds-color-brand-flamingo-300: #ff94a7;--ds-color-brand-flamingo-400: #f65b7b;--ds-color-brand-flamingo-500: #b82b47;--ds-color-brand-canyon-100: #ffcab6;--ds-color-brand-canyon-200: #f99574;--ds-color-brand-canyon-300: #f26135;--ds-color-brand-canyon-400: #de3e09;--ds-color-brand-canyon-500: #b83302;--ds-color-brand-goldcoast-100: #fff0cd;--ds-color-brand-goldcoast-200: #ffdb67;--ds-color-brand-goldcoast-300: #ffd200;--ds-color-brand-goldcoast-400: #e5ad07;--ds-color-brand-goldcoast-500: #b88624;--ds-color-brand-goldgray-100: #c5c1bf;--ds-color-brand-goldgray-200: #726e6c;--ds-color-brand-gold-100: #ccbc94;--ds-color-brand-gold-200: #7f682e;--ds-color-brand-emerald: #139142;--ds-color-brand-sapphire: #015daa;--ds-color-brand-ruby: #a41d4a;--ds-color-brand-lounge: #01426a;--ds-color-brand-loungeplus: #53b390;--ds-color-container-accent-default: #f5fbeb;--ds-color-container-accent-inverse: #badd81;--ds-color-container-emphasis-default: #ebfafd;--ds-color-container-emphasis-inverse: #6ad5ef;--ds-color-container-error-default: #fff4f4;--ds-color-container-error-inverse: #74110e;--ds-color-container-info-default: #f0f7fd;--ds-color-container-info-inverse: #193d73;--ds-color-container-primary-default: #ffffff;--ds-color-container-primary-inverse: #0e2b4f;--ds-color-container-secondary-default: #f7f7f7;--ds-color-container-secondary-inverse: #194069;--ds-color-container-subtle-default: #f7f8fa;--ds-color-container-subtle-inverse: #393d43;--ds-color-container-success-default: #eef8f5;--ds-color-container-success-inverse: #173c30;--ds-color-container-tertiary-default: rgba(0, 0, 0, 0.03);--ds-color-container-tertiary-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-warning-default: #fef8e9;--ds-color-container-warning-inverse: #5d4514;--ds-color-container-ui-primary-active-default: #225296;--ds-color-container-ui-primary-active-inverse: #6ad5ef;--ds-color-container-ui-primary-default-default: #2c67b5;--ds-color-container-ui-primary-default-inverse: #56bbde;--ds-color-container-ui-primary-disabled-default: #a0c9f1;--ds-color-container-ui-primary-disabled-inverse: #275b72;--ds-color-container-ui-primary-focus-default: #2c67b5;--ds-color-container-ui-primary-focus-inverse: #56bbde;--ds-color-container-ui-primary-hover-default: #193d73;--ds-color-container-ui-primary-hover-inverse: #a8e9f7;--ds-color-container-ui-secondary-active-default: #f0f7fd;--ds-color-container-ui-secondary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-secondary-default-default: #ffffff;--ds-color-container-ui-secondary-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-disabled-default: #f7f7f7;--ds-color-container-ui-secondary-disabled-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-secondary-focus-default: #ffffff;--ds-color-container-ui-secondary-focus-inverse: rgba(255, 255, 255, 0.03);--ds-color-container-ui-secondary-hover-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-secondary-hover-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-active-default: rgba(0, 0, 0, 0.06);--ds-color-container-ui-tertiary-active-inverse: rgba(255, 255, 255, 0.06);--ds-color-container-ui-tertiary-default-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-default-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-disabled-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-disabled-inverse: rgba(255, 255, 255, 0.25);--ds-color-container-ui-tertiary-focus-default: rgba(0, 0, 0, 0.03);--ds-color-container-ui-tertiary-focus-inverse: rgba(255, 255, 255, 0.12);--ds-color-container-ui-tertiary-hover-default: rgba(0, 0, 0, 0.12);--ds-color-container-ui-tertiary-hover-inverse: rgba(255, 255, 255, 0.25);--ds-color-icon-primary-default: #676767;--ds-color-icon-primary-inverse: #f7f7f7;--ds-color-icon-secondary-default: #7e8894;--ds-color-icon-secondary-inverse: #ccd2db;--ds-color-icon-tertiary-default: #afb9c6;--ds-color-icon-tertiary-inverse: #939fad;--ds-color-icon-emphasis-default: #2a2a2a;--ds-color-icon-emphasis-inverse: #ffffff;--ds-color-icon-accent-default: #a2c270;--ds-color-icon-accent-inverse: #badd81;--ds-color-icon-info-default: #326aa5;--ds-color-icon-info-inverse: #89b2d4;--ds-color-icon-error-default: #cc1816;--ds-color-icon-error-inverse: #f9aca6;--ds-color-icon-warning-default: #c49432;--ds-color-icon-warning-inverse: #f2c153;--ds-color-icon-success-default: #40a080;--ds-color-icon-success-inverse: #8eceb9;--ds-color-icon-subtle-default: #a0c9f1;--ds-color-icon-subtle-inverse: #326aa5;--ds-color-icon-ui-primary-default-default: #2c67b5;--ds-color-icon-ui-primary-default-inverse: #56bbde;--ds-color-icon-ui-primary-hover-default: #193d73;--ds-color-icon-ui-primary-hover-inverse: #a8e9f7;--ds-color-icon-ui-primary-active-default: #225296;--ds-color-icon-ui-primary-active-inverse: #6ad5ef;--ds-color-icon-ui-primary-disabled-default: #adadad;--ds-color-icon-ui-primary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-primary-focus-default: #2c67b5;--ds-color-icon-ui-primary-focus-inverse: #56bbde;--ds-color-icon-ui-secondary-active-default: #676767;--ds-color-icon-ui-secondary-active-inverse: #c5c5c5;--ds-color-icon-ui-secondary-default-default: #7e7e7e;--ds-color-icon-ui-secondary-default-inverse: #adadad;--ds-color-icon-ui-secondary-disabled-default: #adadad;--ds-color-icon-ui-secondary-disabled-inverse: #7e7e7e;--ds-color-icon-ui-secondary-focus-default: #7e7e7e;--ds-color-icon-ui-secondary-focus-inverse: #adadad;--ds-color-icon-ui-secondary-hover-default: #525252;--ds-color-icon-ui-secondary-hover-inverse: #dddddd;--ds-color-icon-brand-red-default: #d03a08;--ds-color-icon-brand-red-inverse: #e9815e;--ds-color-icon-brand-yellow-default: #7c7140;--ds-color-icon-brand-yellow-inverse: #f9ce06;--ds-color-icon-brand-pink-default: #bf475f;--ds-color-icon-brand-pink-inverse: #f7738e;--ds-color-icon-brand-purple-default: #8d47f0;--ds-color-icon-brand-purple-inverse: #b588f5;--ds-color-icon-brand-lime-default: #647845;--ds-color-icon-brand-lime-inverse: #badd81;--ds-color-icon-brand-green-default: #3a7d64;--ds-color-icon-brand-green-inverse: #51ae8c;--ds-color-icon-brand-turquoise-default: #3d7a7d;--ds-color-icon-brand-turquoise-inverse: #7ba5a6;--ds-color-icon-brand-navy-default: #265688;--ds-color-icon-brand-navy-inverse: #6899c6;--ds-color-icon-brand-blue-default: #2c67b5;--ds-color-icon-brand-blue-inverse: #5398e6;--ds-color-icon-brand-cyan-default: #32718e;--ds-color-icon-brand-cyan-inverse: #6ad5ef;--ds-color-icon-brand-gray-default: #676767;--ds-color-icon-brand-gray-inverse: #c5c5c5;--ds-color-icon-brand-neutral-default: #6a717c;--ds-color-icon-brand-neutral-inverse: #afb9c6;--ds-color-icon-disabled-default: rgba(0, 0, 0, 0.15);--ds-color-text-primary-default: #2a2a2a;--ds-color-text-primary-inverse: #ffffff;--ds-color-text-secondary-default: #525252;--ds-color-text-secondary-inverse: #dddddd;--ds-color-text-tertiary-default: #6a717c;--ds-color-text-tertiary-inverse: #adadad;--ds-color-text-error-default: #cc1816;--ds-color-text-error-inverse: #f9aca6;--ds-color-text-emphasis-default: #265688;--ds-color-text-emphasis-inverse: #cfe0ef;--ds-color-text-accent-default: #647845;--ds-color-text-accent-inverse: #badd81;--ds-color-text-info-default: #326aa5;--ds-color-text-info-inverse: #acc9e2;--ds-color-text-subtle-default: #32718e;--ds-color-text-subtle-inverse: #56bbde;--ds-color-text-success-default: #0b6f4d;--ds-color-text-success-inverse: #8eceb9;--ds-color-text-ui-active-default: #225296;--ds-color-text-ui-active-inverse: #6ad5ef;--ds-color-text-ui-default-default: #2c67b5;--ds-color-text-ui-default-inverse: #56bbde;--ds-color-text-ui-disabled-default: #adadad;--ds-color-text-ui-disabled-inverse: #7e7e7e;--ds-color-text-ui-focus-default: #2c67b5;--ds-color-text-ui-focus-inverse: #56bbde;--ds-color-text-ui-hover-default: #193d73;--ds-color-text-ui-hover-inverse: #a8e9f7;--ds-color-text-link-default: #0074c8;--ds-color-text-link-inverse: #00cff0;--ds-color-tier-alaska-mvp-default: #726e6c;--ds-color-tier-alaska-mvp-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold-default: #7f682e;--ds-color-tier-alaska-mvpgold-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold75k-default: #7f682e;--ds-color-tier-alaska-mvpgold75k-inverse: #c5c1bf;--ds-color-tier-alaska-mvpgold100k-default: #7f682e;--ds-color-tier-alaska-mvpgold100k-inverse: #c5c1bf;--ds-color-tier-alaska-lounge: #01426a;--ds-color-tier-alaska-loungeplus: #53b390;--ds-color-tier-fare-business-default: #005154;--ds-color-tier-fare-business-inverse: #9fbdbe;--ds-color-tier-fare-economy-default: #2c67b5;--ds-color-tier-fare-economy-inverse: #a0c9f1;--ds-color-tier-fare-first-class-default: #002c4e;--ds-color-tier-fare-first-class-inverse: #89b2d4;--ds-color-tier-fare-saver-default: #4aa2c7;--ds-color-tier-fare-saver-inverse: #a8e9f7;--ds-color-tier-oneworld-emerald: #139142;--ds-color-tier-oneworld-sapphire: #015daa;--ds-color-tier-oneworld-ruby: #a41d4a;--ds-color-ui-default-default: #0074c8;--ds-color-ui-default-inverse: #00cff0;--ds-color-ui-hover-default: #054687;--ds-color-ui-hover-inverse: #5de3f7;--ds-color-ui-active-default: #054687;--ds-color-ui-active-inverse: #5de3f7;--ds-color-ui-disabled-default: rgba(0, 116, 200, 0.2);--ds-color-ui-bkg-default-default: rgba(0, 0, 0, 0.03);--ds-color-ui-bkg-default-inverse: rgba(255, 255, 255, 0.03);--ds-color-ui-bkg-hover-default: rgba(0, 0, 0, 0.06);--ds-color-ui-bkg-hover-inverse: rgba(255, 255, 255, 0.06);--ds-color-utility-blue-default: #79b2ec;--ds-color-utility-blue-inverse: #c9e0f7;--ds-color-utility-cyan-default: #6ad5ef;--ds-color-utility-cyan-inverse: #a8e9f7;--ds-color-utility-green-default: #7ec6ac;--ds-color-utility-green-inverse: #addbca;--ds-color-utility-gray-default: #adadad;--ds-color-utility-gray-inverse: #dddddd;--ds-color-utility-lime-default: #badd81;--ds-color-utility-lime-inverse: #d8efb4;--ds-color-utility-navy-default: #265688;--ds-color-utility-navy-inverse: #acc9e2;--ds-color-utility-neutral-default: #7e8894;--ds-color-utility-neutral-inverse: #ccd2db;--ds-color-utility-pink-default: #f7738e;--ds-color-utility-pink-inverse: #fcc2ce;--ds-color-utility-purple-default: #8d47f0;--ds-color-utility-purple-inverse: #ddc9fb;--ds-color-utility-red-default: #e35c2f;--ds-color-utility-red-inverse: #f0a68d;--ds-color-utility-turquoise-default: #5c8f91;--ds-color-utility-turquoise-inverse: #9fbdbe;--ds-color-utility-yellow-default: #f9ce06;--ds-color-utility-yellow-inverse: #ffe87e;--ds-color-utility-error-default: #cc1816;--ds-color-utility-error-inverse: #f9aca6;--ds-color-utility-warning-default: #f2c153;--ds-color-utility-warning-inverse: #f2c153;--ds-color-utility-success-default: #0b6f4d;--ds-color-utility-success-inverse: #8eceb9}*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([addSpace]) :host(:not([data-show])) .popover,:host(:not([data-show])) .popover,:host([disabled]) .popover{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(*){white-space:normal}::slotted(*:hover){cursor:pointer}[data-trigger-placement]::slotted(*:hover){position:relative}[data-trigger-placement]::slotted(*:hover):before{position:absolute;left:0;display:block;width:100%;height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));content:""}[data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}[data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}:host([data-show]) .popover{z-index:var(--ds-depth-tooltip, 300)}:host([removeSpace]) .popover{margin:calc(-1*(var(--ds-size-50, 0.25rem) + 1px)) 0 !important}:host([addSpace]) .popover{margin:var(--ds-size-200, 1rem) 0 !important}:host([addSpace]) [data-trigger-placement]::slotted(*:hover):before{height:var(--ds-size-500, 2.5rem)}:host([addSpace]) [data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*var(--ds-size-500, 2.5rem))}:host([addSpace]) [data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*var(--ds-size-500, 2.5rem))}.popover{display:inline-block;max-width:calc(100% - var(--ds-size-400, 2rem));border-radius:var(--ds-border-radius, 0.375rem)}@media screen and (min-width: 576px){.popover{max-width:50%}}@media screen and (min-width: 768px){.popover{max-width:40%}}@media screen and (min-width: 1024px){.popover{max-width:27rem}}[data-popper-placement^=top]>.arrow{bottom:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=top]>.arrow:before{top:calc(-1*var(--ds-size-200, 1rem));left:calc(-1*var(--ds-size-75, 0.375rem));transform:rotate(45deg)}[data-popper-placement^=bottom]>.arrow{top:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=bottom]>.arrow:before{top:var(--ds-size-50, 0.25rem);right:calc(-1*var(--ds-size-200, 1rem));transform:rotate(-135deg)}.arrow{position:relative;margin-top:-var(--ds-size-100, 0.5rem)}.arrow:before{position:absolute;width:var(--ds-size-150, 0.75rem);height:var(--ds-size-150, 0.75rem);content:""}`;
|
|
7342
|
+
/**
|
|
7343
|
+
* @license
|
|
7344
|
+
* Copyright 2017 Google LLC
|
|
7345
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7346
|
+
*/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");
|
|
7343
7347
|
|
|
7344
|
-
var colorCss$7 = i$h`::slotted(*){color:var(--ds-auro-popover-text-color)}.popover{background-color:var(--ds-auro-popover-container-color);box-shadow:var(--ds-auro-popover-boxshadow-color)}.arrow:before{background-color:var(--ds-auro-popover-container-color);box-shadow:2px 2px 1px 0 var(--ds-auro-popover-boxshadow-color)}`;
|
|
7348
|
+
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:""}`;
|
|
7345
7349
|
|
|
7346
|
-
var
|
|
7350
|
+
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)}`;
|
|
7351
|
+
|
|
7352
|
+
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)}`;
|
|
7347
7353
|
|
|
7348
7354
|
var top = 'top';
|
|
7349
7355
|
var bottom = 'bottom';
|
|
@@ -9219,7 +9225,7 @@ class Popover {
|
|
|
9219
9225
|
* @slot - Default unnamed slot for the use of popover content
|
|
9220
9226
|
* @slot trigger - The element in this slot triggers hiding and showing the popover.
|
|
9221
9227
|
*/
|
|
9222
|
-
class AuroPopover extends r$
|
|
9228
|
+
class AuroPopover extends r$1 {
|
|
9223
9229
|
constructor() {
|
|
9224
9230
|
super();
|
|
9225
9231
|
|
|
@@ -9234,7 +9240,7 @@ class AuroPopover extends r$c {
|
|
|
9234
9240
|
privateDefaults() {
|
|
9235
9241
|
this.isPopoverVisible = false;
|
|
9236
9242
|
this.id = `popover-${(Math.random() + 1).toString(36).substring(7)}`;
|
|
9237
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9243
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
9238
9244
|
}
|
|
9239
9245
|
|
|
9240
9246
|
// function to define props used within the scope of this component
|
|
@@ -9249,9 +9255,9 @@ class AuroPopover extends r$c {
|
|
|
9249
9255
|
|
|
9250
9256
|
static get styles() {
|
|
9251
9257
|
return [
|
|
9252
|
-
i$
|
|
9253
|
-
i$
|
|
9254
|
-
i$
|
|
9258
|
+
i$6`${styleCss$9}`,
|
|
9259
|
+
i$6`${colorCss$9}`,
|
|
9260
|
+
i$6`${tokensCss$9}`
|
|
9255
9261
|
];
|
|
9256
9262
|
}
|
|
9257
9263
|
|
|
@@ -9264,7 +9270,7 @@ class AuroPopover extends r$c {
|
|
|
9264
9270
|
*
|
|
9265
9271
|
*/
|
|
9266
9272
|
static register(name = "auro-popover") {
|
|
9267
|
-
AuroLibraryRuntimeUtils$
|
|
9273
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent(name, AuroPopover);
|
|
9268
9274
|
}
|
|
9269
9275
|
|
|
9270
9276
|
connectedCallback() {
|
|
@@ -9395,7 +9401,7 @@ class AuroPopover extends r$c {
|
|
|
9395
9401
|
|
|
9396
9402
|
// function that renders the HTML and CSS into the scope of the component
|
|
9397
9403
|
render() {
|
|
9398
|
-
return x
|
|
9404
|
+
return x`
|
|
9399
9405
|
<div id="popover" class="popover util_insetLg" aria-live="polite" part="popover">
|
|
9400
9406
|
<div id="arrow" class="arrow" data-popper-arrow></div>
|
|
9401
9407
|
<span role="tooltip" aria-labelledby="${this.id}"><slot></slot></span>
|
|
@@ -9408,11 +9414,11 @@ class AuroPopover extends r$c {
|
|
|
9408
9414
|
}
|
|
9409
9415
|
}
|
|
9410
9416
|
|
|
9411
|
-
var popoverVersion = '4.1.
|
|
9417
|
+
var popoverVersion = '4.1.3';
|
|
9412
9418
|
|
|
9413
9419
|
/* eslint-disable max-lines, no-underscore-dangle, no-magic-numbers, no-underscore-dangle, max-params, no-void, init-declarations, no-extra-parens, arrow-parens, max-lines, line-comment-position, no-inline-comments, lit/binding-positions, lit/no-invalid-html */
|
|
9414
9420
|
|
|
9415
|
-
class AuroCalendarCell extends r$
|
|
9421
|
+
class AuroCalendarCell extends r$3 {
|
|
9416
9422
|
constructor() {
|
|
9417
9423
|
super();
|
|
9418
9424
|
|
|
@@ -9432,13 +9438,13 @@ class AuroCalendarCell extends r$c {
|
|
|
9432
9438
|
this.dateStr = null;
|
|
9433
9439
|
this.renderForDateSlot = false; // When false, the numerical date will render vertically centered. When true, the date will render off-center to the top and leave room below for the slot content.
|
|
9434
9440
|
|
|
9435
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9441
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
9436
9442
|
|
|
9437
9443
|
/**
|
|
9438
9444
|
* Generate unique names for dependency components.
|
|
9439
9445
|
*/
|
|
9440
|
-
const versioning = new AuroDependencyVersioning$
|
|
9441
|
-
this.popoverTag = versioning.generateTag('auro-popover', popoverVersion, AuroPopover);
|
|
9446
|
+
const versioning = new AuroDependencyVersioning$5();
|
|
9447
|
+
this.popoverTag = versioning.generateTag('auro-formkit-datepicker-popover', popoverVersion, AuroPopover);
|
|
9442
9448
|
}
|
|
9443
9449
|
|
|
9444
9450
|
// This function is to define props used within the scope of this component
|
|
@@ -9478,9 +9484,9 @@ class AuroCalendarCell extends r$c {
|
|
|
9478
9484
|
static get styles() {
|
|
9479
9485
|
return [
|
|
9480
9486
|
// ...super.styles,
|
|
9481
|
-
styleCss$
|
|
9482
|
-
colorCss$
|
|
9483
|
-
tokensCss$
|
|
9487
|
+
styleCss$a,
|
|
9488
|
+
colorCss$a,
|
|
9489
|
+
tokensCss$a
|
|
9484
9490
|
];
|
|
9485
9491
|
}
|
|
9486
9492
|
|
|
@@ -9707,8 +9713,8 @@ class AuroCalendarCell extends r$c {
|
|
|
9707
9713
|
}
|
|
9708
9714
|
|
|
9709
9715
|
firstUpdated() {
|
|
9710
|
-
const calendarMonth = this.runtimeUtils.closestElement('auro-calendar-month', this);
|
|
9711
|
-
const calendar = this.runtimeUtils.closestElement('auro-calendar', calendarMonth);
|
|
9716
|
+
const calendarMonth = this.runtimeUtils.closestElement('auro-formkit-calendar-month', this);
|
|
9717
|
+
const calendar = this.runtimeUtils.closestElement('auro-formkit-calendar', calendarMonth);
|
|
9712
9718
|
|
|
9713
9719
|
if (!calendar) {
|
|
9714
9720
|
setTimeout(() => this.firstUpdated(), 0);
|
|
@@ -9747,7 +9753,7 @@ class AuroCalendarCell extends r$c {
|
|
|
9747
9753
|
};
|
|
9748
9754
|
|
|
9749
9755
|
let _a, _b;
|
|
9750
|
-
return u$
|
|
9756
|
+
return u$2`
|
|
9751
9757
|
<${this.popoverTag}>
|
|
9752
9758
|
<slot name="popover_${this.dateStr}"></slot>
|
|
9753
9759
|
<button
|
|
@@ -9755,7 +9761,7 @@ class AuroCalendarCell extends r$c {
|
|
|
9755
9761
|
@click="${this.handleTap}"
|
|
9756
9762
|
@mouseover="${this.handleHover}"
|
|
9757
9763
|
@focus="${this.handleHover}"
|
|
9758
|
-
class="${e
|
|
9764
|
+
class="${e(buttonClasses)}"
|
|
9759
9765
|
?disabled="${this.disabled}"
|
|
9760
9766
|
title="${this.getTitle((_a = this.day) === null || _a === void 0 ? void 0 : _a.date)}"
|
|
9761
9767
|
tabindex="-1">
|
|
@@ -9771,8 +9777,8 @@ class AuroCalendarCell extends r$c {
|
|
|
9771
9777
|
}
|
|
9772
9778
|
}
|
|
9773
9779
|
|
|
9774
|
-
if (!customElements.get('auro-calendar-cell')) {
|
|
9775
|
-
customElements.define('auro-calendar-cell', AuroCalendarCell);
|
|
9780
|
+
if (!customElements.get('auro-formkit-calendar-cell')) {
|
|
9781
|
+
customElements.define('auro-formkit-calendar-cell', AuroCalendarCell);
|
|
9776
9782
|
}
|
|
9777
9783
|
|
|
9778
9784
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
@@ -9783,9 +9789,9 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9783
9789
|
static get styles() {
|
|
9784
9790
|
return [
|
|
9785
9791
|
// ...super.styles,
|
|
9786
|
-
styleCss$
|
|
9787
|
-
colorCss$
|
|
9788
|
-
tokensCss$
|
|
9792
|
+
styleCss$b,
|
|
9793
|
+
colorCss$b,
|
|
9794
|
+
tokensCss$a
|
|
9789
9795
|
];
|
|
9790
9796
|
}
|
|
9791
9797
|
|
|
@@ -9856,11 +9862,11 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9856
9862
|
}
|
|
9857
9863
|
|
|
9858
9864
|
renderDay(day) {
|
|
9859
|
-
return x
|
|
9865
|
+
return x`
|
|
9860
9866
|
<div class="td ${this.tdIsEnabled(day)}">
|
|
9861
9867
|
${day
|
|
9862
|
-
? x
|
|
9863
|
-
<auro-calendar-cell
|
|
9868
|
+
? x`
|
|
9869
|
+
<auro-formkit-calendar-cell
|
|
9864
9870
|
.disabledDays="${this.disabledDays}"
|
|
9865
9871
|
.min="${this.min}"
|
|
9866
9872
|
.max="${this.max}"
|
|
@@ -9874,7 +9880,7 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9874
9880
|
@date-is-selected="${this.handleDateSelected}"
|
|
9875
9881
|
@date-is-hovered="${this.handleDateHovered}"
|
|
9876
9882
|
>
|
|
9877
|
-
</auro-calendar-cell>
|
|
9883
|
+
</auro-formkit-calendar-cell>
|
|
9878
9884
|
`
|
|
9879
9885
|
: null}
|
|
9880
9886
|
</div>
|
|
@@ -9886,15 +9892,15 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9886
9892
|
render() {
|
|
9887
9893
|
var _a, _b;
|
|
9888
9894
|
|
|
9889
|
-
return x
|
|
9895
|
+
return x `
|
|
9890
9896
|
<div>
|
|
9891
9897
|
<div class="header">
|
|
9892
9898
|
${this.renderPrevButton()}
|
|
9893
9899
|
<div class="headerTitle">
|
|
9894
|
-
${this.monthFirst ? x
|
|
9900
|
+
${this.monthFirst ? x`
|
|
9895
9901
|
<div>${this.computeCurrentMonthName(this.month)}</div>
|
|
9896
9902
|
<div>${this.renderYear()}</div>
|
|
9897
|
-
` : x
|
|
9903
|
+
` : x`
|
|
9898
9904
|
<div>${this.renderYear()}</div>
|
|
9899
9905
|
<div>${this.computeCurrentMonthName(this.month)}</div>
|
|
9900
9906
|
`}
|
|
@@ -9918,13 +9924,13 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
9918
9924
|
/* eslint-enable */
|
|
9919
9925
|
}
|
|
9920
9926
|
|
|
9921
|
-
if (!customElements.get('auro-calendar-month')) {
|
|
9922
|
-
customElements.define('auro-calendar-month', AuroCalendarMonth);
|
|
9927
|
+
if (!customElements.get('auro-formkit-calendar-month')) {
|
|
9928
|
+
customElements.define('auro-formkit-calendar-month', AuroCalendarMonth);
|
|
9923
9929
|
}
|
|
9924
9930
|
|
|
9925
9931
|
/* eslint-disable no-underscore-dangle, no-magic-numbers, no-underscore-dangle, no-void, init-declarations, no-extra-parens, no-unused-expressions */
|
|
9926
9932
|
|
|
9927
|
-
class RangeDatepicker extends r$
|
|
9933
|
+
class RangeDatepicker extends r$3 {
|
|
9928
9934
|
constructor() {
|
|
9929
9935
|
super();
|
|
9930
9936
|
|
|
@@ -9981,7 +9987,7 @@ class RangeDatepicker extends r$c {
|
|
|
9981
9987
|
}
|
|
9982
9988
|
|
|
9983
9989
|
renderNormal() {
|
|
9984
|
-
return x
|
|
9990
|
+
return x`
|
|
9985
9991
|
<div id="container">
|
|
9986
9992
|
<wc-range-datepicker-calendar
|
|
9987
9993
|
id="firstDatePicker"
|
|
@@ -10027,7 +10033,7 @@ class RangeDatepicker extends r$c {
|
|
|
10027
10033
|
}
|
|
10028
10034
|
|
|
10029
10035
|
renderNarrow() {
|
|
10030
|
-
return x
|
|
10036
|
+
return x`
|
|
10031
10037
|
<wc-range-datepicker-calendar
|
|
10032
10038
|
.disabledDays="${this.disabledDays}"
|
|
10033
10039
|
min="${this.min}"
|
|
@@ -10140,7 +10146,7 @@ class RangeDatepicker extends r$c {
|
|
|
10140
10146
|
}));
|
|
10141
10147
|
}
|
|
10142
10148
|
}
|
|
10143
|
-
RangeDatepicker.styles = i$
|
|
10149
|
+
RangeDatepicker.styles = i$6`
|
|
10144
10150
|
:host {
|
|
10145
10151
|
display: block;
|
|
10146
10152
|
position: relative;
|
|
@@ -10155,21 +10161,21 @@ RangeDatepicker.styles = i$h`
|
|
|
10155
10161
|
margin-right: 16px;
|
|
10156
10162
|
}
|
|
10157
10163
|
`;
|
|
10158
|
-
__decorate([n
|
|
10159
|
-
__decorate([n
|
|
10160
|
-
__decorate([n
|
|
10161
|
-
__decorate([n
|
|
10162
|
-
__decorate([n
|
|
10163
|
-
__decorate([n
|
|
10164
|
-
__decorate([n
|
|
10165
|
-
__decorate([n
|
|
10166
|
-
__decorate([n
|
|
10167
|
-
__decorate([n
|
|
10168
|
-
__decorate([n
|
|
10169
|
-
__decorate([n
|
|
10170
|
-
__decorate([n
|
|
10171
|
-
__decorate([n
|
|
10172
|
-
__decorate([n
|
|
10164
|
+
__decorate([n({ type: Array })], RangeDatepicker.prototype, "disabledDays", void 0);
|
|
10165
|
+
__decorate([n({ type: Boolean })], RangeDatepicker.prototype, "enableYearChange", void 0);
|
|
10166
|
+
__decorate([n({ type: Boolean })], RangeDatepicker.prototype, "forceNarrow", void 0);
|
|
10167
|
+
__decorate([n({ type: Object })], RangeDatepicker.prototype, "locale", void 0);
|
|
10168
|
+
__decorate([n({ type: String })], RangeDatepicker.prototype, "max", void 0);
|
|
10169
|
+
__decorate([n({ type: String })], RangeDatepicker.prototype, "min", void 0);
|
|
10170
|
+
__decorate([n({ type: Number })], RangeDatepicker.prototype, "month", void 0);
|
|
10171
|
+
__decorate([n({ type: Boolean })], RangeDatepicker.prototype, "noRange", void 0);
|
|
10172
|
+
__decorate([n({ type: Number })], RangeDatepicker.prototype, "year", void 0);
|
|
10173
|
+
__decorate([n({ type: String })], RangeDatepicker.prototype, "dateFrom", void 0);
|
|
10174
|
+
__decorate([n({ type: String })], RangeDatepicker.prototype, "dateTo", void 0);
|
|
10175
|
+
__decorate([n({ type: String })], RangeDatepicker.prototype, "hoveredDate", void 0);
|
|
10176
|
+
__decorate([n({ type: Number })], RangeDatepicker.prototype, "monthPlus", void 0);
|
|
10177
|
+
__decorate([n({ type: Number })], RangeDatepicker.prototype, "yearPlus", void 0);
|
|
10178
|
+
__decorate([n({ type: Boolean })], RangeDatepicker.prototype, "narrow", void 0);
|
|
10173
10179
|
|
|
10174
10180
|
var chevronLeft = {"role":"img","color":"currentColor","title":"","desc":"Directional indicator; left.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"chevron-left","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"chevron-left__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"chevron-left__desc\">Directional indicator; left.</desc><path d=\"m14.395 6.345.084.073a.75.75 0 0 1 .072.977l-.072.084-4.47 4.47 4.47 4.47a.75.75 0 0 1 .072.976l-.072.084a.75.75 0 0 1-.977.072l-.084-.072-4.823-4.823a1 1 0 0 1 0-1.415l4.823-4.823a.75.75 0 0 1 .977-.073\"/></svg>"};
|
|
10175
10181
|
|
|
@@ -10315,42 +10321,15 @@ class CalendarUtilities {
|
|
|
10315
10321
|
|
|
10316
10322
|
/**
|
|
10317
10323
|
* @license
|
|
10318
|
-
* Copyright
|
|
10319
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10320
|
-
*/
|
|
10321
|
-
const t$2$2=globalThis,e$4$2=t$2$2.ShadowRoot&&(void 0===t$2$2.ShadyCSS||t$2$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2$2=Symbol(),o$4$2=new WeakMap;let n$3$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$4$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4$2.set(s,t));}return t}toString(){return this.cssText}};const r$3$2=t=>new n$3$2("string"==typeof t?t:t+"",void 0,s$2$2),i$5$2=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3$2(o,t,s$2$2)},S$1$2=(s,o)=>{if(e$4$2)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2$2=e$4$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3$2(e)})(t):t;
|
|
10322
|
-
|
|
10323
|
-
/**
|
|
10324
|
-
* @license
|
|
10325
|
-
* Copyright 2017 Google LLC
|
|
10326
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10327
|
-
*/const{is:i$4$2,defineProperty:e$3$2,getOwnPropertyDescriptor:r$2$2,getOwnPropertyNames:h$1$2,getOwnPropertySymbols:o$3$2,getPrototypeOf:n$2$2}=Object,a$2$2=globalThis,c$1$2=a$2$2.trustedTypes,l$2$2=c$1$2?c$1$2.emptyScript:"",p$1$2=a$2$2.reactiveElementPolyfillSupport,d$1$2=(t,s)=>t,u$2$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1$2=(t,s)=>!i$4$2(t,s),y$1$2={attribute:true,type:String,converter:u$2$2,reflect:false,hasChanged:f$1$2};Symbol.metadata??=Symbol("metadata"),a$2$2.litPropertyMetadata??=new WeakMap;let b$3 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1$2){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$3$2(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1$2}static _$Ei(){if(this.hasOwnProperty(d$1$2("elementProperties")))return;const t=n$2$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1$2("properties"))){const t=this.properties,s=[...h$1$2(t),...o$3$2(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2$2(s));}else void 0!==s&&i.push(c$2$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1$2(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1$2)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$3.elementStyles=[],b$3.shadowRootOptions={mode:"open"},b$3[d$1$2("elementProperties")]=new Map,b$3[d$1$2("finalized")]=new Map,p$1$2?.({ReactiveElement:b$3}),(a$2$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
10328
|
-
|
|
10329
|
-
/**
|
|
10330
|
-
* @license
|
|
10331
|
-
* Copyright 2017 Google LLC
|
|
10332
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10333
|
-
*/
|
|
10334
|
-
const t$1$2=globalThis,i$3$2=t$1$2.trustedTypes,s$1$2=i$3$2?i$3$2.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$2$2="$lit$",h$5=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2$2="?"+h$5,n$1$2=`<${o$2$2}>`,r$1$2=document,l$1$2=()=>r$1$2.createComment(""),c$8=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1$2=Array.isArray,u$1$2=t=>a$1$2(t)||"function"==typeof t?.[Symbol.iterator],d$5="[ \t\n\f\r]",f$5=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$4=/-->/g,_$3=/>/g,m$4=RegExp(`>|${d$5}(?:([^\\s"'>=/]+)(${d$5}*=${d$5}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$6=/'/g,g$3=/"/g,$$3=/^(?:script|style|textarea|title)$/i,y$5=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$3=y$5(1),T$3=Symbol.for("lit-noChange"),E$3=Symbol.for("lit-nothing"),A$3=new WeakMap,C$3=r$1$2.createTreeWalker(r$1$2,129);function P$3(t,i){if(!a$1$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$1$2?s$1$2.createHTML(i):i}const V$3=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$5;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$5?"!--"===u[1]?c=v$4:void 0!==u[1]?c=_$3:void 0!==u[2]?($$3.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$4):void 0!==u[3]&&(c=m$4):c===m$4?">"===u[0]?(c=r??f$5,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$4:'"'===u[3]?g$3:p$6):c===g$3||c===p$6?c=m$4:c===v$4||c===_$3?c=f$5:(c=m$4,r=void 0);const x=c===m$4&&t[i+1].startsWith("/>")?" ":"";l+=c===f$5?s+n$1$2:d>=0?(o.push(a),s.slice(0,d)+e$2$2+s.slice(d)+h$5+x):s+h$5+(-2===d?i:x);}return [P$3(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$3 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$3(t,s);if(this.el=N.createElement(f,n),C$3.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$3.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$2$2)){const i=v[a++],s=r.getAttribute(t).split(h$5),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$3:"?"===e[1]?I$3:"@"===e[1]?L$3:k$3}),r.removeAttribute(t);}else t.startsWith(h$5)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$3.test(r.tagName)){const t=r.textContent.split(h$5),s=t.length-1;if(s>0){r.textContent=i$3$2?i$3$2.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1$2()),C$3.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1$2());}}}else if(8===r.nodeType)if(r.data===o$2$2)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$5,t+1));)d.push({type:7,index:c}),t+=h$5.length-1;}c++;}}static createElement(t,i){const s=r$1$2.createElement("template");return s.innerHTML=t,s}};function S$5(t,i,s=t,e){if(i===T$3)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$8(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$5(t,h._$AS(t,i.values),h,e)),i}let M$4 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1$2).importNode(i,true);C$3.currentNode=e;let h=C$3.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$3(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$3(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$3.nextNode(),o++);}return C$3.currentNode=r$1$2,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$3 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$3,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$5(this,t,i),c$8(t)?t===E$3||null==t||""===t?(this._$AH!==E$3&&this._$AR(),this._$AH=E$3):t!==this._$AH&&t!==T$3&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$1$2(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$3&&c$8(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1$2.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$3.createElement(P$3(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$4(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$3.get(t.strings);return void 0===i&&A$3.set(t.strings,i=new N$3(t)),i}k(t){a$1$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$1$2()),this.O(l$1$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$3 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$3,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$3;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$5(this,t,i,0),o=!c$8(t)||t!==this._$AH&&t!==T$3,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$5(this,e[s+n],i,n),r===T$3&&(r=this._$AH[n]),o||=!c$8(r)||r!==this._$AH[n],r===E$3?t=E$3:t!==E$3&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$3?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$3 = class H extends k$3{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$3?void 0:t;}};let I$3 = class I extends k$3{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$3);}};let L$3 = class L extends k$3{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$5(this,t,i,0)??E$3)===T$3)return;const s=this._$AH,e=t===E$3&&s!==E$3||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$3&&(s===E$3||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$3 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$5(this,t);}};const j$3=t$1$2.litHtmlPolyfillSupport;j$3?.(N$3,R$3),(t$1$2.litHtmlVersions??=[]).push("3.2.1");const B$3=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$3(i.insertBefore(l$1$2(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
10335
|
-
|
|
10336
|
-
/**
|
|
10337
|
-
* @license
|
|
10338
|
-
* Copyright 2017 Google LLC
|
|
10339
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10340
|
-
*/let r$a = class r extends b$3{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$3(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$3}};r$a._$litElement$=true,r$a["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$a});const i$2$2=globalThis.litElementPolyfillSupport;i$2$2?.({LitElement:r$a});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
10341
|
-
|
|
10342
|
-
/**
|
|
10343
|
-
* @license
|
|
10344
|
-
* Copyright 2020 Google LLC
|
|
10324
|
+
* Copyright 2018 Google LLC
|
|
10345
10325
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10346
|
-
*/
|
|
10347
|
-
const a$6=Symbol.for(""),o$1$2=t=>{if(t?.r===a$6)return t?._$litStatic$},s$7=t=>({_$litStatic$:t,r:a$6}),i$1$2=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$6}),l$6=new Map,n$8=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$1$2(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l$6.get(t))&&(n.raw=n,l$6.set(t,r=n)),e=u;}return t(r,...e)},u$8=n$8(x$3);
|
|
10326
|
+
*/const o=o=>o??E;
|
|
10348
10327
|
|
|
10349
|
-
var colorCss$1$2 = i$
|
|
10328
|
+
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)}`;
|
|
10350
10329
|
|
|
10351
|
-
var styleCss$2$2 = i$
|
|
10330
|
+
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)}`;
|
|
10352
10331
|
|
|
10353
|
-
var tokenCss = i$
|
|
10332
|
+
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)}`;
|
|
10354
10333
|
|
|
10355
10334
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10356
10335
|
// See LICENSE in the project root for license information.
|
|
@@ -10359,7 +10338,7 @@ var tokenCss = i$5$2`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--d
|
|
|
10359
10338
|
|
|
10360
10339
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10361
10340
|
|
|
10362
|
-
let AuroLibraryRuntimeUtils$
|
|
10341
|
+
let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
|
|
10363
10342
|
|
|
10364
10343
|
/* eslint-disable jsdoc/require-param */
|
|
10365
10344
|
|
|
@@ -10426,7 +10405,7 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
|
10426
10405
|
// See LICENSE in the project root for license information.
|
|
10427
10406
|
|
|
10428
10407
|
|
|
10429
|
-
let AuroDependencyVersioning$
|
|
10408
|
+
let AuroDependencyVersioning$4 = class AuroDependencyVersioning {
|
|
10430
10409
|
|
|
10431
10410
|
/**
|
|
10432
10411
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -10452,7 +10431,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
10452
10431
|
*/
|
|
10453
10432
|
generateTag(baseName, version, tagClass) {
|
|
10454
10433
|
const elementName = this.generateElementName(baseName, version);
|
|
10455
|
-
const tag = i$
|
|
10434
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
10456
10435
|
|
|
10457
10436
|
if (!customElements.get(elementName)) {
|
|
10458
10437
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -10462,25 +10441,6 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
10462
10441
|
}
|
|
10463
10442
|
};
|
|
10464
10443
|
|
|
10465
|
-
/**
|
|
10466
|
-
* @license
|
|
10467
|
-
* Copyright 2017 Google LLC
|
|
10468
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10469
|
-
*/
|
|
10470
|
-
const t$7={ATTRIBUTE:1},e$1$2=t=>(...e)=>({_$litDirective$:t,values:e});let i$b = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
10471
|
-
|
|
10472
|
-
/**
|
|
10473
|
-
* @license
|
|
10474
|
-
* Copyright 2018 Google LLC
|
|
10475
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10476
|
-
*/const e$9=e$1$2(class extends i$b{constructor(t$1){if(super(t$1),t$1.type!==t$7.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$3}});
|
|
10477
|
-
|
|
10478
|
-
/**
|
|
10479
|
-
* @license
|
|
10480
|
-
* Copyright 2018 Google LLC
|
|
10481
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
10482
|
-
*/const o$9=o=>o??E$3;
|
|
10483
|
-
|
|
10484
10444
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10485
10445
|
// See LICENSE in the project root for license information.
|
|
10486
10446
|
|
|
@@ -10491,7 +10451,7 @@ const t$7={ATTRIBUTE:1},e$1$2=t=>(...e)=>({_$litDirective$:t,values:e});let i$b
|
|
|
10491
10451
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
10492
10452
|
*/
|
|
10493
10453
|
|
|
10494
|
-
let AuroElement$2 = class AuroElement extends r$
|
|
10454
|
+
let AuroElement$2 = class AuroElement extends r$3 {
|
|
10495
10455
|
|
|
10496
10456
|
// function to define props used within the scope of this component
|
|
10497
10457
|
static get properties() {
|
|
@@ -10547,7 +10507,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
10547
10507
|
return _fetchMap$2.get(uri);
|
|
10548
10508
|
};
|
|
10549
10509
|
|
|
10550
|
-
var styleCss$1$2 = i$
|
|
10510
|
+
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}`;
|
|
10551
10511
|
|
|
10552
10512
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10553
10513
|
// See LICENSE in the project root for license information.
|
|
@@ -10586,7 +10546,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10586
10546
|
}
|
|
10587
10547
|
|
|
10588
10548
|
static get styles() {
|
|
10589
|
-
return i$
|
|
10549
|
+
return i$6`
|
|
10590
10550
|
${styleCss$1$2}
|
|
10591
10551
|
`;
|
|
10592
10552
|
}
|
|
@@ -10628,47 +10588,88 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10628
10588
|
}
|
|
10629
10589
|
};
|
|
10630
10590
|
|
|
10631
|
-
var tokensCss$
|
|
10591
|
+
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)}`;
|
|
10632
10592
|
|
|
10633
|
-
var colorCss$
|
|
10593
|
+
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)}`;
|
|
10634
10594
|
|
|
10635
|
-
// Copyright (c)
|
|
10595
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10636
10596
|
// See LICENSE in the project root for license information.
|
|
10637
10597
|
|
|
10598
|
+
// ---------------------------------------------------------------------
|
|
10599
|
+
|
|
10600
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10601
|
+
|
|
10602
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
10603
|
+
|
|
10604
|
+
/* eslint-disable jsdoc/require-param */
|
|
10605
|
+
|
|
10606
|
+
/**
|
|
10607
|
+
* This will register a new custom element with the browser.
|
|
10608
|
+
* @param {String} name - The name of the custom element.
|
|
10609
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
10610
|
+
* @returns {void}
|
|
10611
|
+
*/
|
|
10612
|
+
registerComponent(name, componentClass) {
|
|
10613
|
+
if (!customElements.get(name)) {
|
|
10614
|
+
customElements.define(name, class extends componentClass {});
|
|
10615
|
+
}
|
|
10616
|
+
}
|
|
10617
|
+
|
|
10618
|
+
/**
|
|
10619
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
10620
|
+
* @returns {void}
|
|
10621
|
+
*/
|
|
10622
|
+
closestElement(
|
|
10623
|
+
selector, // selector like in .closest()
|
|
10624
|
+
base = this, // extra functionality to skip a parent
|
|
10625
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
10626
|
+
!el || el === document || el === window
|
|
10627
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
10628
|
+
: found
|
|
10629
|
+
? found // found a selector INside this element
|
|
10630
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
10631
|
+
) {
|
|
10632
|
+
return __Closest(base);
|
|
10633
|
+
}
|
|
10634
|
+
/* eslint-enable jsdoc/require-param */
|
|
10635
|
+
|
|
10636
|
+
/**
|
|
10637
|
+
* 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.
|
|
10638
|
+
* @param {Object} elem - The element to check.
|
|
10639
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
10640
|
+
* @returns {void}
|
|
10641
|
+
*/
|
|
10642
|
+
handleComponentTagRename(elem, tagName) {
|
|
10643
|
+
const tag = tagName.toLowerCase();
|
|
10644
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10645
|
+
|
|
10646
|
+
if (elemTag !== tag) {
|
|
10647
|
+
elem.setAttribute(tag, true);
|
|
10648
|
+
}
|
|
10649
|
+
}
|
|
10650
|
+
|
|
10651
|
+
/**
|
|
10652
|
+
* Validates if an element is a specific Auro component.
|
|
10653
|
+
* @param {Object} elem - The element to validate.
|
|
10654
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
10655
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
10656
|
+
*/
|
|
10657
|
+
elementMatch(elem, tagName) {
|
|
10658
|
+
const tag = tagName.toLowerCase();
|
|
10659
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10660
|
+
|
|
10661
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
10662
|
+
}
|
|
10663
|
+
};
|
|
10664
|
+
|
|
10665
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10666
|
+
// See LICENSE in the project root for license information.
|
|
10638
10667
|
|
|
10639
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
10640
|
-
/**
|
|
10641
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
10642
|
-
*
|
|
10643
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
10644
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
10645
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
10646
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
10647
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
10648
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
10649
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
10650
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
10651
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
10652
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
10653
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
10654
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
10655
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
10656
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
10657
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
10658
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
10659
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
10660
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
10661
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
10662
|
-
* @slot svg - Used for custom SVG content.
|
|
10663
|
-
*/
|
|
10664
10668
|
|
|
10665
|
-
// build the component class
|
|
10666
10669
|
let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
10667
10670
|
constructor() {
|
|
10668
10671
|
super();
|
|
10669
10672
|
|
|
10670
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
10671
|
-
|
|
10672
10673
|
this.privateDefaults();
|
|
10673
10674
|
}
|
|
10674
10675
|
|
|
@@ -10692,78 +10693,144 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10692
10693
|
this.success = false;
|
|
10693
10694
|
this.tertiary = false;
|
|
10694
10695
|
this.warning = false;
|
|
10695
|
-
this.
|
|
10696
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
10697
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
10696
10698
|
}
|
|
10697
10699
|
|
|
10698
10700
|
// function to define props used within the scope of this component
|
|
10699
10701
|
static get properties() {
|
|
10700
10702
|
return {
|
|
10701
10703
|
...super.properties,
|
|
10704
|
+
|
|
10705
|
+
/**
|
|
10706
|
+
* Sets the icon to use the accent style.
|
|
10707
|
+
*/
|
|
10702
10708
|
accent: {
|
|
10703
10709
|
type: Boolean,
|
|
10704
10710
|
reflect: true
|
|
10705
10711
|
},
|
|
10712
|
+
|
|
10713
|
+
/**
|
|
10714
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
10715
|
+
*/
|
|
10706
10716
|
ariaHidden: {
|
|
10707
10717
|
type: String,
|
|
10708
10718
|
reflect: true
|
|
10709
10719
|
},
|
|
10720
|
+
|
|
10721
|
+
/**
|
|
10722
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
10723
|
+
*/
|
|
10710
10724
|
category: {
|
|
10711
10725
|
type: String,
|
|
10712
10726
|
reflect: true
|
|
10713
10727
|
},
|
|
10728
|
+
|
|
10729
|
+
/**
|
|
10730
|
+
* Allows custom color to be set.
|
|
10731
|
+
*/
|
|
10714
10732
|
customColor: {
|
|
10715
10733
|
type: Boolean
|
|
10716
10734
|
},
|
|
10735
|
+
|
|
10736
|
+
/**
|
|
10737
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
10738
|
+
*/
|
|
10717
10739
|
customSvg: {
|
|
10718
10740
|
type: Boolean
|
|
10719
10741
|
},
|
|
10742
|
+
|
|
10743
|
+
/**
|
|
10744
|
+
* Sets the icon to use the disabled style.
|
|
10745
|
+
*/
|
|
10720
10746
|
disabled: {
|
|
10721
10747
|
type: Boolean,
|
|
10722
10748
|
reflect: true
|
|
10723
10749
|
},
|
|
10750
|
+
|
|
10751
|
+
/**
|
|
10752
|
+
* Sets the icon to use the emphasis style.
|
|
10753
|
+
*/
|
|
10724
10754
|
emphasis: {
|
|
10725
10755
|
type: Boolean,
|
|
10726
10756
|
reflect: true
|
|
10727
10757
|
},
|
|
10758
|
+
|
|
10759
|
+
/**
|
|
10760
|
+
* Sets the icon to use the error style.
|
|
10761
|
+
*/
|
|
10728
10762
|
error: {
|
|
10729
10763
|
type: Boolean,
|
|
10730
10764
|
reflect: true
|
|
10731
10765
|
},
|
|
10766
|
+
|
|
10767
|
+
/**
|
|
10768
|
+
* Sets the icon to use the info style.
|
|
10769
|
+
*/
|
|
10732
10770
|
info: {
|
|
10733
10771
|
type: Boolean,
|
|
10734
10772
|
reflect: true
|
|
10735
10773
|
},
|
|
10774
|
+
|
|
10775
|
+
/**
|
|
10776
|
+
* Exposes content in slot as icon label.
|
|
10777
|
+
*/
|
|
10736
10778
|
label: {
|
|
10737
10779
|
type: Boolean,
|
|
10738
10780
|
reflect: true
|
|
10739
10781
|
},
|
|
10782
|
+
|
|
10783
|
+
/**
|
|
10784
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
10785
|
+
*/
|
|
10740
10786
|
name: {
|
|
10741
10787
|
type: String,
|
|
10742
10788
|
reflect: true
|
|
10743
10789
|
},
|
|
10790
|
+
|
|
10791
|
+
/**
|
|
10792
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
10793
|
+
*/
|
|
10744
10794
|
primary: {
|
|
10745
10795
|
type: Boolean,
|
|
10746
10796
|
reflect: true
|
|
10747
10797
|
},
|
|
10798
|
+
|
|
10799
|
+
/**
|
|
10800
|
+
* Sets the icon to use the secondary style.
|
|
10801
|
+
*/
|
|
10748
10802
|
secondary: {
|
|
10749
10803
|
type: Boolean,
|
|
10750
10804
|
reflect: true
|
|
10751
10805
|
},
|
|
10806
|
+
|
|
10807
|
+
/**
|
|
10808
|
+
* Sets the icon to use the subtle style.
|
|
10809
|
+
*/
|
|
10752
10810
|
subtle: {
|
|
10753
10811
|
type: Boolean,
|
|
10754
10812
|
reflect: true
|
|
10755
10813
|
},
|
|
10814
|
+
|
|
10815
|
+
/**
|
|
10816
|
+
* Sets the icon to use the success style.
|
|
10817
|
+
*/
|
|
10756
10818
|
success: {
|
|
10757
10819
|
type: Boolean,
|
|
10758
10820
|
reflect: true
|
|
10759
10821
|
},
|
|
10822
|
+
|
|
10823
|
+
/**
|
|
10824
|
+
* Sets the icon to use the tertiary style.
|
|
10825
|
+
*/
|
|
10760
10826
|
tertiary: {
|
|
10761
10827
|
type: Boolean,
|
|
10762
10828
|
reflect: true
|
|
10763
10829
|
},
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10830
|
+
|
|
10831
|
+
/**
|
|
10832
|
+
* Sets the icon to use the warning style.
|
|
10833
|
+
*/
|
|
10767
10834
|
warning: {
|
|
10768
10835
|
type: Boolean,
|
|
10769
10836
|
reflect: true
|
|
@@ -10774,9 +10841,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10774
10841
|
static get styles() {
|
|
10775
10842
|
return [
|
|
10776
10843
|
super.styles,
|
|
10777
|
-
i$
|
|
10778
|
-
i$
|
|
10779
|
-
i$
|
|
10844
|
+
i$6`${tokensCss$8}`,
|
|
10845
|
+
i$6`${styleCss$1$2}`,
|
|
10846
|
+
i$6`${colorCss$8}`
|
|
10780
10847
|
];
|
|
10781
10848
|
}
|
|
10782
10849
|
|
|
@@ -10789,7 +10856,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10789
10856
|
*
|
|
10790
10857
|
*/
|
|
10791
10858
|
static register(name = "auro-icon") {
|
|
10792
|
-
AuroLibraryRuntimeUtils$
|
|
10859
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
|
|
10793
10860
|
}
|
|
10794
10861
|
|
|
10795
10862
|
connectedCallback() {
|
|
@@ -10800,38 +10867,54 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10800
10867
|
}
|
|
10801
10868
|
|
|
10802
10869
|
/**
|
|
10870
|
+
* @private
|
|
10803
10871
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
10804
10872
|
*/
|
|
10805
10873
|
exposeCssParts() {
|
|
10806
10874
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
10807
10875
|
}
|
|
10808
10876
|
|
|
10877
|
+
async firstUpdated() {
|
|
10878
|
+
await super.firstUpdated();
|
|
10879
|
+
|
|
10880
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
10881
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
10882
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
10883
|
+
|
|
10884
|
+
if (svgDesc) {
|
|
10885
|
+
svgDesc.remove();
|
|
10886
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
10887
|
+
}
|
|
10888
|
+
}
|
|
10889
|
+
}
|
|
10890
|
+
|
|
10809
10891
|
// function that renders the HTML and CSS into the scope of the component
|
|
10810
10892
|
render() {
|
|
10811
|
-
const
|
|
10812
|
-
'
|
|
10893
|
+
const labelClasses = {
|
|
10894
|
+
'labelWrapper': true,
|
|
10813
10895
|
'util_displayHiddenVisually': !this.label
|
|
10814
10896
|
};
|
|
10815
10897
|
|
|
10816
|
-
const
|
|
10817
|
-
'
|
|
10818
|
-
'wrapper': true,
|
|
10898
|
+
const svgClasses = {
|
|
10899
|
+
'svgWrapper': true,
|
|
10819
10900
|
};
|
|
10820
10901
|
|
|
10821
|
-
return x
|
|
10822
|
-
<div
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
${this.
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10902
|
+
return x`
|
|
10903
|
+
<div class="componentWrapper">
|
|
10904
|
+
<div
|
|
10905
|
+
class="${e(svgClasses)}"
|
|
10906
|
+
title="${o(this.title || undefined)}">
|
|
10907
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
10908
|
+
${this.customSvg ? x`
|
|
10909
|
+
<slot name="svg"></slot>
|
|
10910
|
+
` : x`
|
|
10911
|
+
${this.svg}
|
|
10912
|
+
`
|
|
10913
|
+
}
|
|
10914
|
+
</span>
|
|
10915
|
+
</div>
|
|
10833
10916
|
|
|
10834
|
-
<div class="${e
|
|
10917
|
+
<div class="${e(labelClasses)}">
|
|
10835
10918
|
<slot></slot>
|
|
10836
10919
|
</div>
|
|
10837
10920
|
</div>
|
|
@@ -10839,43 +10922,113 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10839
10922
|
}
|
|
10840
10923
|
};
|
|
10841
10924
|
|
|
10842
|
-
var iconVersion$2 = '
|
|
10843
|
-
|
|
10844
|
-
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)}`;
|
|
10925
|
+
var iconVersion$2 = '7.0.1';
|
|
10845
10926
|
|
|
10846
|
-
// Copyright (c)
|
|
10927
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10847
10928
|
// See LICENSE in the project root for license information.
|
|
10848
10929
|
|
|
10930
|
+
// ---------------------------------------------------------------------
|
|
10849
10931
|
|
|
10850
|
-
|
|
10851
|
-
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
10852
|
-
*
|
|
10853
|
-
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
10854
|
-
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
10855
|
-
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
10856
|
-
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
10857
|
-
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
10858
|
-
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
10859
|
-
*/
|
|
10860
|
-
|
|
10861
|
-
/* eslint complexity: ["error", 21] */
|
|
10932
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10862
10933
|
|
|
10863
|
-
|
|
10864
|
-
class AuroHeader extends r$a {
|
|
10865
|
-
constructor() {
|
|
10866
|
-
super();
|
|
10934
|
+
let AuroLibraryRuntimeUtils$8 = class AuroLibraryRuntimeUtils {
|
|
10867
10935
|
|
|
10868
|
-
|
|
10936
|
+
/* eslint-disable jsdoc/require-param */
|
|
10869
10937
|
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10938
|
+
/**
|
|
10939
|
+
* This will register a new custom element with the browser.
|
|
10940
|
+
* @param {String} name - The name of the custom element.
|
|
10941
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
10942
|
+
* @returns {void}
|
|
10943
|
+
*/
|
|
10944
|
+
registerComponent(name, componentClass) {
|
|
10945
|
+
if (!customElements.get(name)) {
|
|
10946
|
+
customElements.define(name, class extends componentClass {});
|
|
10947
|
+
}
|
|
10874
10948
|
}
|
|
10875
10949
|
|
|
10876
|
-
|
|
10877
|
-
|
|
10878
|
-
|
|
10950
|
+
/**
|
|
10951
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
10952
|
+
* @returns {void}
|
|
10953
|
+
*/
|
|
10954
|
+
closestElement(
|
|
10955
|
+
selector, // selector like in .closest()
|
|
10956
|
+
base = this, // extra functionality to skip a parent
|
|
10957
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
10958
|
+
!el || el === document || el === window
|
|
10959
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
10960
|
+
: found
|
|
10961
|
+
? found // found a selector INside this element
|
|
10962
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
10963
|
+
) {
|
|
10964
|
+
return __Closest(base);
|
|
10965
|
+
}
|
|
10966
|
+
/* eslint-enable jsdoc/require-param */
|
|
10967
|
+
|
|
10968
|
+
/**
|
|
10969
|
+
* 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.
|
|
10970
|
+
* @param {Object} elem - The element to check.
|
|
10971
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
10972
|
+
* @returns {void}
|
|
10973
|
+
*/
|
|
10974
|
+
handleComponentTagRename(elem, tagName) {
|
|
10975
|
+
const tag = tagName.toLowerCase();
|
|
10976
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10977
|
+
|
|
10978
|
+
if (elemTag !== tag) {
|
|
10979
|
+
elem.setAttribute(tag, true);
|
|
10980
|
+
}
|
|
10981
|
+
}
|
|
10982
|
+
|
|
10983
|
+
/**
|
|
10984
|
+
* Validates if an element is a specific Auro component.
|
|
10985
|
+
* @param {Object} elem - The element to validate.
|
|
10986
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
10987
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
10988
|
+
*/
|
|
10989
|
+
elementMatch(elem, tagName) {
|
|
10990
|
+
const tag = tagName.toLowerCase();
|
|
10991
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10992
|
+
|
|
10993
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
10994
|
+
}
|
|
10995
|
+
};
|
|
10996
|
+
|
|
10997
|
+
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)}`;
|
|
10998
|
+
|
|
10999
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11000
|
+
// See LICENSE in the project root for license information.
|
|
11001
|
+
|
|
11002
|
+
|
|
11003
|
+
/**
|
|
11004
|
+
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
11005
|
+
*
|
|
11006
|
+
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
11007
|
+
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
11008
|
+
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
11009
|
+
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
11010
|
+
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
11011
|
+
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
11012
|
+
*/
|
|
11013
|
+
|
|
11014
|
+
/* eslint complexity: ["error", 21] */
|
|
11015
|
+
|
|
11016
|
+
// build the component class
|
|
11017
|
+
class AuroHeader extends r$3 {
|
|
11018
|
+
constructor() {
|
|
11019
|
+
super();
|
|
11020
|
+
|
|
11021
|
+
this.display = 'display';
|
|
11022
|
+
|
|
11023
|
+
/**
|
|
11024
|
+
* @private
|
|
11025
|
+
*/
|
|
11026
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$8();
|
|
11027
|
+
}
|
|
11028
|
+
|
|
11029
|
+
// function to define props used within the scope of this component
|
|
11030
|
+
static get properties() {
|
|
11031
|
+
return {
|
|
10879
11032
|
level: { type: String },
|
|
10880
11033
|
display: {
|
|
10881
11034
|
type: String,
|
|
@@ -10888,7 +11041,7 @@ class AuroHeader extends r$a {
|
|
|
10888
11041
|
}
|
|
10889
11042
|
|
|
10890
11043
|
static get styles() {
|
|
10891
|
-
return [styleCss$
|
|
11044
|
+
return [styleCss$8];
|
|
10892
11045
|
}
|
|
10893
11046
|
|
|
10894
11047
|
/**
|
|
@@ -10900,7 +11053,7 @@ class AuroHeader extends r$a {
|
|
|
10900
11053
|
*
|
|
10901
11054
|
*/
|
|
10902
11055
|
static register(name = "auro-header") {
|
|
10903
|
-
AuroLibraryRuntimeUtils$
|
|
11056
|
+
AuroLibraryRuntimeUtils$8.prototype.registerComponent(name, AuroHeader);
|
|
10904
11057
|
}
|
|
10905
11058
|
|
|
10906
11059
|
firstUpdated() {
|
|
@@ -10968,12 +11121,12 @@ class AuroHeader extends r$a {
|
|
|
10968
11121
|
}
|
|
10969
11122
|
|
|
10970
11123
|
switch (level) {
|
|
10971
|
-
case '2': return x
|
|
10972
|
-
case '3': return x
|
|
10973
|
-
case '4': return x
|
|
10974
|
-
case '5': return x
|
|
10975
|
-
case '6': return x
|
|
10976
|
-
default: return x
|
|
11124
|
+
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>`;
|
|
11125
|
+
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>`;
|
|
11126
|
+
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>`;
|
|
11127
|
+
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>`;
|
|
11128
|
+
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>`;
|
|
11129
|
+
default: return x`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h1>`;
|
|
10977
11130
|
}
|
|
10978
11131
|
}
|
|
10979
11132
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -10989,16 +11142,16 @@ var headerVersion = '4.0.0';
|
|
|
10989
11142
|
// See LICENSE in the project root for license information.
|
|
10990
11143
|
|
|
10991
11144
|
|
|
10992
|
-
class AuroBibtemplate extends r$
|
|
11145
|
+
class AuroBibtemplate extends r$3 {
|
|
10993
11146
|
|
|
10994
11147
|
constructor() {
|
|
10995
11148
|
super();
|
|
10996
11149
|
|
|
10997
|
-
AuroLibraryRuntimeUtils$
|
|
11150
|
+
AuroLibraryRuntimeUtils$2$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
10998
11151
|
|
|
10999
|
-
const versioning = new AuroDependencyVersioning$
|
|
11000
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$2, AuroIcon$2);
|
|
11001
|
-
this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
|
|
11152
|
+
const versioning = new AuroDependencyVersioning$4();
|
|
11153
|
+
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$2, AuroIcon$2);
|
|
11154
|
+
this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
|
|
11002
11155
|
}
|
|
11003
11156
|
|
|
11004
11157
|
static get styles() {
|
|
@@ -11032,78 +11185,680 @@ class AuroBibtemplate extends r$a {
|
|
|
11032
11185
|
* AuroCheckbox.register("custom-bibtemplate") // this will register this element to <custom-bibtemplate/>
|
|
11033
11186
|
*
|
|
11034
11187
|
*/
|
|
11035
|
-
static register(name = "auro-bibtemplate") {
|
|
11036
|
-
AuroLibraryRuntimeUtils$
|
|
11188
|
+
static register(name = "auro-bibtemplate") {
|
|
11189
|
+
AuroLibraryRuntimeUtils$2$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
11190
|
+
}
|
|
11191
|
+
|
|
11192
|
+
/**
|
|
11193
|
+
* Prevents scrolling of the body when touching empty areas of the component.
|
|
11194
|
+
* @param {Event} event - The touchmove event.
|
|
11195
|
+
* @returns {void}
|
|
11196
|
+
*/
|
|
11197
|
+
preventBodyScroll(event) {
|
|
11198
|
+
if (event.target === this) {
|
|
11199
|
+
event.preventDefault();
|
|
11200
|
+
}
|
|
11201
|
+
}
|
|
11202
|
+
|
|
11203
|
+
connectedCallback() {
|
|
11204
|
+
super.connectedCallback();
|
|
11205
|
+
|
|
11206
|
+
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
11207
|
+
this.addEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
11208
|
+
}
|
|
11209
|
+
|
|
11210
|
+
disconnectedCallback() {
|
|
11211
|
+
super.disconnectedCallback();
|
|
11212
|
+
|
|
11213
|
+
this.removeEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
11214
|
+
}
|
|
11215
|
+
|
|
11216
|
+
onCloseButtonClick() {
|
|
11217
|
+
this.dispatchEvent(new Event("close-click", { bubbles: true,
|
|
11218
|
+
composed: true }));
|
|
11219
|
+
}
|
|
11220
|
+
|
|
11221
|
+
/**
|
|
11222
|
+
* Exposes CSS parts for styling from parent components.
|
|
11223
|
+
* @returns {void}
|
|
11224
|
+
*/
|
|
11225
|
+
exposeCssParts() {
|
|
11226
|
+
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
11227
|
+
}
|
|
11228
|
+
|
|
11229
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
11230
|
+
render() {
|
|
11231
|
+
return u$2`
|
|
11232
|
+
<div id="bibTemplate" part="bibtemplate">
|
|
11233
|
+
${this.isFullscreen ? u$2`
|
|
11234
|
+
<div id="headerContainer">
|
|
11235
|
+
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
11236
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
11237
|
+
</button>
|
|
11238
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
11239
|
+
<slot name="header"></slot>
|
|
11240
|
+
</${this.headerTag}>
|
|
11241
|
+
<span id="subheader">
|
|
11242
|
+
<slot name="subheader"></slot>
|
|
11243
|
+
</span>
|
|
11244
|
+
</div>` : null}
|
|
11245
|
+
|
|
11246
|
+
<div id="bodyContainer">
|
|
11247
|
+
<slot></slot>
|
|
11248
|
+
</div>
|
|
11249
|
+
|
|
11250
|
+
${this.isFullscreen ? u$2`
|
|
11251
|
+
<div id="footerContainer">
|
|
11252
|
+
<slot name="footer"></slot>
|
|
11253
|
+
</div>` : null}
|
|
11254
|
+
</div>
|
|
11255
|
+
`;
|
|
11256
|
+
}
|
|
11257
|
+
}
|
|
11258
|
+
|
|
11259
|
+
var bibTemplateVersion = '1.0.0';
|
|
11260
|
+
|
|
11261
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11262
|
+
// See LICENSE in the project root for license information.
|
|
11263
|
+
|
|
11264
|
+
|
|
11265
|
+
let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
11266
|
+
|
|
11267
|
+
/**
|
|
11268
|
+
* Generates a unique string to be used for child auro element naming.
|
|
11269
|
+
* @private
|
|
11270
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
11271
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
11272
|
+
* @returns {string} - Unique string to be used for naming.
|
|
11273
|
+
*/
|
|
11274
|
+
generateElementName(baseName, version) {
|
|
11275
|
+
let result = baseName;
|
|
11276
|
+
|
|
11277
|
+
result += '-';
|
|
11278
|
+
result += version.replace(/[.]/g, '_');
|
|
11279
|
+
|
|
11280
|
+
return result;
|
|
11281
|
+
}
|
|
11282
|
+
|
|
11283
|
+
/**
|
|
11284
|
+
* Generates a unique string to be used for child auro element naming.
|
|
11285
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
11286
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
11287
|
+
* @returns {string} - Unique string to be used for naming.
|
|
11288
|
+
*/
|
|
11289
|
+
generateTag(baseName, version, tagClass) {
|
|
11290
|
+
const elementName = this.generateElementName(baseName, version);
|
|
11291
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
11292
|
+
|
|
11293
|
+
if (!customElements.get(elementName)) {
|
|
11294
|
+
customElements.define(elementName, class extends tagClass {});
|
|
11295
|
+
}
|
|
11296
|
+
|
|
11297
|
+
return tag;
|
|
11298
|
+
}
|
|
11299
|
+
};
|
|
11300
|
+
|
|
11301
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11302
|
+
// See LICENSE in the project root for license information.
|
|
11303
|
+
|
|
11304
|
+
// ---------------------------------------------------------------------
|
|
11305
|
+
|
|
11306
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11307
|
+
|
|
11308
|
+
let AuroLibraryRuntimeUtils$7 = class AuroLibraryRuntimeUtils {
|
|
11309
|
+
|
|
11310
|
+
/* eslint-disable jsdoc/require-param */
|
|
11311
|
+
|
|
11312
|
+
/**
|
|
11313
|
+
* This will register a new custom element with the browser.
|
|
11314
|
+
* @param {String} name - The name of the custom element.
|
|
11315
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11316
|
+
* @returns {void}
|
|
11317
|
+
*/
|
|
11318
|
+
registerComponent(name, componentClass) {
|
|
11319
|
+
if (!customElements.get(name)) {
|
|
11320
|
+
customElements.define(name, class extends componentClass {});
|
|
11321
|
+
}
|
|
11322
|
+
}
|
|
11323
|
+
|
|
11324
|
+
/**
|
|
11325
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11326
|
+
* @returns {void}
|
|
11327
|
+
*/
|
|
11328
|
+
closestElement(
|
|
11329
|
+
selector, // selector like in .closest()
|
|
11330
|
+
base = this, // extra functionality to skip a parent
|
|
11331
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11332
|
+
!el || el === document || el === window
|
|
11333
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11334
|
+
: found
|
|
11335
|
+
? found // found a selector INside this element
|
|
11336
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11337
|
+
) {
|
|
11338
|
+
return __Closest(base);
|
|
11339
|
+
}
|
|
11340
|
+
/* eslint-enable jsdoc/require-param */
|
|
11341
|
+
|
|
11342
|
+
/**
|
|
11343
|
+
* 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.
|
|
11344
|
+
* @param {Object} elem - The element to check.
|
|
11345
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11346
|
+
* @returns {void}
|
|
11347
|
+
*/
|
|
11348
|
+
handleComponentTagRename(elem, tagName) {
|
|
11349
|
+
const tag = tagName.toLowerCase();
|
|
11350
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11351
|
+
|
|
11352
|
+
if (elemTag !== tag) {
|
|
11353
|
+
elem.setAttribute(tag, true);
|
|
11354
|
+
}
|
|
11355
|
+
}
|
|
11356
|
+
|
|
11357
|
+
/**
|
|
11358
|
+
* Validates if an element is a specific Auro component.
|
|
11359
|
+
* @param {Object} elem - The element to validate.
|
|
11360
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11361
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11362
|
+
*/
|
|
11363
|
+
elementMatch(elem, tagName) {
|
|
11364
|
+
const tag = tagName.toLowerCase();
|
|
11365
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11366
|
+
|
|
11367
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11368
|
+
}
|
|
11369
|
+
};
|
|
11370
|
+
|
|
11371
|
+
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}`;
|
|
11372
|
+
|
|
11373
|
+
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}`;
|
|
11374
|
+
|
|
11375
|
+
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}`;
|
|
11376
|
+
|
|
11377
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11378
|
+
// See LICENSE in the project root for license information.
|
|
11379
|
+
|
|
11380
|
+
// ---------------------------------------------------------------------
|
|
11381
|
+
|
|
11382
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11383
|
+
|
|
11384
|
+
let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
11385
|
+
|
|
11386
|
+
/* eslint-disable jsdoc/require-param */
|
|
11387
|
+
|
|
11388
|
+
/**
|
|
11389
|
+
* This will register a new custom element with the browser.
|
|
11390
|
+
* @param {String} name - The name of the custom element.
|
|
11391
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11392
|
+
* @returns {void}
|
|
11393
|
+
*/
|
|
11394
|
+
registerComponent(name, componentClass) {
|
|
11395
|
+
if (!customElements.get(name)) {
|
|
11396
|
+
customElements.define(name, class extends componentClass {});
|
|
11397
|
+
}
|
|
11398
|
+
}
|
|
11399
|
+
|
|
11400
|
+
/**
|
|
11401
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11402
|
+
* @returns {void}
|
|
11403
|
+
*/
|
|
11404
|
+
closestElement(
|
|
11405
|
+
selector, // selector like in .closest()
|
|
11406
|
+
base = this, // extra functionality to skip a parent
|
|
11407
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11408
|
+
!el || el === document || el === window
|
|
11409
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11410
|
+
: found
|
|
11411
|
+
? found // found a selector INside this element
|
|
11412
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11413
|
+
) {
|
|
11414
|
+
return __Closest(base);
|
|
11415
|
+
}
|
|
11416
|
+
/* eslint-enable jsdoc/require-param */
|
|
11417
|
+
|
|
11418
|
+
/**
|
|
11419
|
+
* 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.
|
|
11420
|
+
* @param {Object} elem - The element to check.
|
|
11421
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11422
|
+
* @returns {void}
|
|
11423
|
+
*/
|
|
11424
|
+
handleComponentTagRename(elem, tagName) {
|
|
11425
|
+
const tag = tagName.toLowerCase();
|
|
11426
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11427
|
+
|
|
11428
|
+
if (elemTag !== tag) {
|
|
11429
|
+
elem.setAttribute(tag, true);
|
|
11430
|
+
}
|
|
11431
|
+
}
|
|
11432
|
+
|
|
11433
|
+
/**
|
|
11434
|
+
* Validates if an element is a specific Auro component.
|
|
11435
|
+
* @param {Object} elem - The element to validate.
|
|
11436
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11437
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11438
|
+
*/
|
|
11439
|
+
elementMatch(elem, tagName) {
|
|
11440
|
+
const tag = tagName.toLowerCase();
|
|
11441
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11442
|
+
|
|
11443
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11444
|
+
}
|
|
11445
|
+
};
|
|
11446
|
+
|
|
11447
|
+
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}}`;
|
|
11448
|
+
|
|
11449
|
+
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}`;
|
|
11450
|
+
|
|
11451
|
+
var tokensCss$6 = i$6`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11452
|
+
|
|
11453
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11454
|
+
// See LICENSE in the project root for license information.
|
|
11455
|
+
|
|
11456
|
+
|
|
11457
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
11458
|
+
/**
|
|
11459
|
+
* The auro-loader element is an easy to use animated loader component.
|
|
11460
|
+
*
|
|
11461
|
+
* @attr {Boolean} pulse - sets loader type
|
|
11462
|
+
* @attr {Boolean} ringworm - sets loader type
|
|
11463
|
+
* @attr {Boolean} laser - sets loader type
|
|
11464
|
+
* @attr {Boolean} orbit - sets loader type
|
|
11465
|
+
* @attr {Boolean} white - sets color of loader to white
|
|
11466
|
+
* @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
|
|
11467
|
+
* @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
|
|
11468
|
+
* @attr {Boolean} xs - sets size to extra small
|
|
11469
|
+
* @attr {Boolean} sm - sets size to small
|
|
11470
|
+
* @attr {Boolean} md - sets size to medium
|
|
11471
|
+
* @attr {Boolean} lg - sets size to large
|
|
11472
|
+
* @csspart element - apply style to adjust speed of animation
|
|
11473
|
+
*/
|
|
11474
|
+
|
|
11475
|
+
// build the component class
|
|
11476
|
+
let AuroLoader$1 = class AuroLoader extends r$3 {
|
|
11477
|
+
constructor() {
|
|
11478
|
+
super();
|
|
11479
|
+
|
|
11480
|
+
/**
|
|
11481
|
+
* @private
|
|
11482
|
+
*/
|
|
11483
|
+
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
11484
|
+
|
|
11485
|
+
/**
|
|
11486
|
+
* @private
|
|
11487
|
+
*/
|
|
11488
|
+
this.mdCount = 3;
|
|
11489
|
+
|
|
11490
|
+
/**
|
|
11491
|
+
* @private
|
|
11492
|
+
*/
|
|
11493
|
+
this.smCount = 2;
|
|
11494
|
+
|
|
11495
|
+
/**
|
|
11496
|
+
* @private
|
|
11497
|
+
*/
|
|
11498
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
11499
|
+
|
|
11500
|
+
this.orbit = false;
|
|
11501
|
+
this.ringworm = false;
|
|
11502
|
+
this.laser = false;
|
|
11503
|
+
this.pulse = false;
|
|
11504
|
+
}
|
|
11505
|
+
|
|
11506
|
+
// function to define props used within the scope of this component
|
|
11507
|
+
static get properties() {
|
|
11508
|
+
return {
|
|
11509
|
+
pulse: {
|
|
11510
|
+
type: Boolean,
|
|
11511
|
+
reflect: true
|
|
11512
|
+
},
|
|
11513
|
+
orbit: {
|
|
11514
|
+
type: Boolean,
|
|
11515
|
+
reflect: true
|
|
11516
|
+
},
|
|
11517
|
+
ringworm: {
|
|
11518
|
+
type: Boolean,
|
|
11519
|
+
reflect: true
|
|
11520
|
+
},
|
|
11521
|
+
laser: {
|
|
11522
|
+
type: Boolean,
|
|
11523
|
+
reflect: true
|
|
11524
|
+
}
|
|
11525
|
+
};
|
|
11526
|
+
}
|
|
11527
|
+
|
|
11528
|
+
static get styles() {
|
|
11529
|
+
return [
|
|
11530
|
+
i$6`${styleCss$6}`,
|
|
11531
|
+
i$6`${colorCss$6}`,
|
|
11532
|
+
i$6`${tokensCss$6}`
|
|
11533
|
+
];
|
|
11534
|
+
}
|
|
11535
|
+
|
|
11536
|
+
/**
|
|
11537
|
+
* This will register this element with the browser.
|
|
11538
|
+
* @param {string} [name="auro-loader"] - The name of element that you want to register to.
|
|
11539
|
+
*
|
|
11540
|
+
* @example
|
|
11541
|
+
* AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
|
|
11542
|
+
*
|
|
11543
|
+
*/
|
|
11544
|
+
static register(name = "auro-loader") {
|
|
11545
|
+
AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroLoader);
|
|
11546
|
+
}
|
|
11547
|
+
|
|
11548
|
+
firstUpdated() {
|
|
11549
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
11550
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
|
|
11551
|
+
}
|
|
11552
|
+
|
|
11553
|
+
connectedCallback() {
|
|
11554
|
+
super.connectedCallback();
|
|
11555
|
+
}
|
|
11556
|
+
|
|
11557
|
+
/**
|
|
11558
|
+
* @private
|
|
11559
|
+
* @returns {Array} Numbered array for template map.
|
|
11560
|
+
*/
|
|
11561
|
+
defineTemplate() {
|
|
11562
|
+
let nodes = Array.from(Array(this.mdCount).keys());
|
|
11563
|
+
|
|
11564
|
+
if (this.orbit || this.laser) {
|
|
11565
|
+
nodes = Array.from(Array(this.smCount).keys());
|
|
11566
|
+
} else if (this.ringworm) {
|
|
11567
|
+
nodes = Array.from(Array(0).keys());
|
|
11568
|
+
}
|
|
11569
|
+
|
|
11570
|
+
return nodes;
|
|
11571
|
+
}
|
|
11572
|
+
|
|
11573
|
+
// When using auroElement, use the following attribute and function when hiding content from screen readers.
|
|
11574
|
+
// aria-hidden="${this.hideAudible(this.hiddenAudible)}"
|
|
11575
|
+
|
|
11576
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
11577
|
+
render() {
|
|
11578
|
+
return x`
|
|
11579
|
+
${this.defineTemplate().map((idx) => x`
|
|
11580
|
+
<span part="element" class="loader node-${idx}"></span>
|
|
11581
|
+
`)}
|
|
11582
|
+
|
|
11583
|
+
<div class="no-animation">Loading...</div>
|
|
11584
|
+
|
|
11585
|
+
${this.ringworm ? x`
|
|
11586
|
+
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
11587
|
+
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
11588
|
+
</svg>`
|
|
11589
|
+
: ``
|
|
11590
|
+
}
|
|
11591
|
+
`;
|
|
11592
|
+
}
|
|
11593
|
+
};
|
|
11594
|
+
|
|
11595
|
+
var loaderVersion$1 = '4.0.0';
|
|
11596
|
+
|
|
11597
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11598
|
+
// See LICENSE in the project root for license information.
|
|
11599
|
+
|
|
11600
|
+
|
|
11601
|
+
/**
|
|
11602
|
+
* @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
|
|
11603
|
+
* @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
|
|
11604
|
+
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
11605
|
+
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
11606
|
+
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
11607
|
+
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
11608
|
+
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
11609
|
+
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
11610
|
+
* @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.
|
|
11611
|
+
* @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.
|
|
11612
|
+
* @attr {String} id - Set the unique ID of an element.
|
|
11613
|
+
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
11614
|
+
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
11615
|
+
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
11616
|
+
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
11617
|
+
* @attr {Boolean} secondary - DEPRECATED
|
|
11618
|
+
* @attr {Boolean} tertiary - DEPRECATED
|
|
11619
|
+
* @prop {Boolean} ready - When false the component API should not be called.
|
|
11620
|
+
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
11621
|
+
* @slot - Default slot for the text of the button.
|
|
11622
|
+
* @slot icon - Slot to provide auro-icon for the button.
|
|
11623
|
+
* @csspart button - Apply CSS to HTML5 button.
|
|
11624
|
+
* @csspart loader - Apply CSS to auro-loader.
|
|
11625
|
+
* @csspart text - Apply CSS to text slot.
|
|
11626
|
+
* @csspart icon - Apply CSS to icon slot.
|
|
11627
|
+
*/
|
|
11628
|
+
|
|
11629
|
+
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
11630
|
+
|
|
11631
|
+
let AuroButton$1 = class AuroButton extends r$3 {
|
|
11632
|
+
|
|
11633
|
+
/**
|
|
11634
|
+
* Enables form association for this element.
|
|
11635
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
|
|
11636
|
+
* @returns {boolean} - Returns true to enable form association.
|
|
11637
|
+
*/
|
|
11638
|
+
static get formAssociated() {
|
|
11639
|
+
return true;
|
|
11640
|
+
}
|
|
11641
|
+
|
|
11642
|
+
constructor() {
|
|
11643
|
+
super();
|
|
11644
|
+
|
|
11645
|
+
this.autofocus = false;
|
|
11646
|
+
this.disabled = false;
|
|
11647
|
+
this.iconOnly = false;
|
|
11648
|
+
this.loading = false;
|
|
11649
|
+
this.onDark = false;
|
|
11650
|
+
this.ready = false;
|
|
11651
|
+
this.secondary = false;
|
|
11652
|
+
this.tertiary = false;
|
|
11653
|
+
this.rounded = false;
|
|
11654
|
+
this.slim = false;
|
|
11655
|
+
this.fluid = false;
|
|
11656
|
+
|
|
11657
|
+
// Support for HTML5 forms
|
|
11658
|
+
if (typeof this.attachInternals === 'function') {
|
|
11659
|
+
this.internals = this.attachInternals();
|
|
11660
|
+
} else {
|
|
11661
|
+
this.internals = null;
|
|
11662
|
+
|
|
11663
|
+
// eslint-disable-next-line no-console
|
|
11664
|
+
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.');
|
|
11665
|
+
}
|
|
11666
|
+
|
|
11667
|
+
/**
|
|
11668
|
+
* Generate unique names for dependency components.
|
|
11669
|
+
*/
|
|
11670
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
11671
|
+
|
|
11672
|
+
/**
|
|
11673
|
+
* @private
|
|
11674
|
+
*/
|
|
11675
|
+
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
11676
|
+
}
|
|
11677
|
+
|
|
11678
|
+
static get styles() {
|
|
11679
|
+
return [
|
|
11680
|
+
tokensCss$7,
|
|
11681
|
+
styleCss$7,
|
|
11682
|
+
colorCss$7
|
|
11683
|
+
];
|
|
11684
|
+
}
|
|
11685
|
+
|
|
11686
|
+
static get properties() {
|
|
11687
|
+
return {
|
|
11688
|
+
autofocus: {
|
|
11689
|
+
type: Boolean,
|
|
11690
|
+
reflect: true
|
|
11691
|
+
},
|
|
11692
|
+
disabled: {
|
|
11693
|
+
type: Boolean,
|
|
11694
|
+
reflect: true
|
|
11695
|
+
},
|
|
11696
|
+
secondary: {
|
|
11697
|
+
type: Boolean,
|
|
11698
|
+
reflect: true
|
|
11699
|
+
},
|
|
11700
|
+
tertiary: {
|
|
11701
|
+
type: Boolean,
|
|
11702
|
+
reflect: true
|
|
11703
|
+
},
|
|
11704
|
+
fluid: {
|
|
11705
|
+
type: Boolean,
|
|
11706
|
+
reflect: true
|
|
11707
|
+
},
|
|
11708
|
+
iconOnly: {
|
|
11709
|
+
type: Boolean,
|
|
11710
|
+
reflect: true
|
|
11711
|
+
},
|
|
11712
|
+
loading: {
|
|
11713
|
+
type: Boolean,
|
|
11714
|
+
reflect: true
|
|
11715
|
+
},
|
|
11716
|
+
onDark: {
|
|
11717
|
+
type: Boolean,
|
|
11718
|
+
reflect: true
|
|
11719
|
+
},
|
|
11720
|
+
rounded: {
|
|
11721
|
+
type: Boolean,
|
|
11722
|
+
reflect: true
|
|
11723
|
+
},
|
|
11724
|
+
slim: {
|
|
11725
|
+
type: Boolean,
|
|
11726
|
+
reflect: true
|
|
11727
|
+
},
|
|
11728
|
+
arialabel: {
|
|
11729
|
+
type: String,
|
|
11730
|
+
reflect: true
|
|
11731
|
+
},
|
|
11732
|
+
arialabelledby: {
|
|
11733
|
+
type: String,
|
|
11734
|
+
reflect: true
|
|
11735
|
+
},
|
|
11736
|
+
title: {
|
|
11737
|
+
type: String,
|
|
11738
|
+
reflect: true
|
|
11739
|
+
},
|
|
11740
|
+
type: {
|
|
11741
|
+
type: String,
|
|
11742
|
+
reflect: true
|
|
11743
|
+
},
|
|
11744
|
+
value: {
|
|
11745
|
+
type: String,
|
|
11746
|
+
reflect: true
|
|
11747
|
+
},
|
|
11748
|
+
variant: {
|
|
11749
|
+
type: String,
|
|
11750
|
+
reflect: true
|
|
11751
|
+
},
|
|
11752
|
+
ready: { type: Boolean },
|
|
11753
|
+
};
|
|
11754
|
+
}
|
|
11755
|
+
|
|
11756
|
+
/**
|
|
11757
|
+
* This will register this element with the browser.
|
|
11758
|
+
* @param {string} [name="auro-button"] - The name of element that you want to register to.
|
|
11759
|
+
*
|
|
11760
|
+
* @example
|
|
11761
|
+
* AuroButton.register("custom-button") // this will register this element to <custom-button/>
|
|
11762
|
+
*
|
|
11763
|
+
*/
|
|
11764
|
+
static register(name = "auro-button") {
|
|
11765
|
+
AuroLibraryRuntimeUtils$7.prototype.registerComponent(name, AuroButton);
|
|
11766
|
+
}
|
|
11767
|
+
|
|
11768
|
+
/**
|
|
11769
|
+
* Internal method to apply focus to the HTML5 button.
|
|
11770
|
+
* @private
|
|
11771
|
+
* @returns {void}
|
|
11772
|
+
*/
|
|
11773
|
+
focus() {
|
|
11774
|
+
this.renderRoot.querySelector('button').focus();
|
|
11037
11775
|
}
|
|
11038
11776
|
|
|
11039
11777
|
/**
|
|
11040
|
-
*
|
|
11041
|
-
* @
|
|
11778
|
+
* Marks the component as ready and sends event.
|
|
11779
|
+
* @private
|
|
11042
11780
|
* @returns {void}
|
|
11043
11781
|
*/
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11782
|
+
notifyReady() {
|
|
11783
|
+
this.ready = true;
|
|
11784
|
+
|
|
11785
|
+
this.dispatchEvent(new CustomEvent('auroButton-ready', {
|
|
11786
|
+
bubbles: true,
|
|
11787
|
+
cancelable: false,
|
|
11788
|
+
composed: true,
|
|
11789
|
+
}));
|
|
11048
11790
|
}
|
|
11049
11791
|
|
|
11050
|
-
|
|
11051
|
-
|
|
11792
|
+
updated() {
|
|
11793
|
+
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
11794
|
+
if (this.secondary) {
|
|
11795
|
+
this.setAttribute('variant', 'secondary');
|
|
11796
|
+
}
|
|
11052
11797
|
|
|
11053
|
-
|
|
11054
|
-
|
|
11798
|
+
if (this.tertiary) {
|
|
11799
|
+
this.setAttribute('variant', 'tertiary');
|
|
11800
|
+
}
|
|
11055
11801
|
}
|
|
11056
11802
|
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
this.removeEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
11803
|
+
firstUpdated() {
|
|
11804
|
+
this.notifyReady();
|
|
11061
11805
|
}
|
|
11062
11806
|
|
|
11063
|
-
|
|
11064
|
-
this.
|
|
11065
|
-
|
|
11807
|
+
surfaceSubmitEvent() {
|
|
11808
|
+
if (this.form) {
|
|
11809
|
+
this.form.requestSubmit();
|
|
11810
|
+
}
|
|
11066
11811
|
}
|
|
11067
11812
|
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
* @returns {void}
|
|
11071
|
-
*/
|
|
11072
|
-
exposeCssParts() {
|
|
11073
|
-
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
11813
|
+
get form() {
|
|
11814
|
+
return this.internals ? this.internals.form : null;
|
|
11074
11815
|
}
|
|
11075
11816
|
|
|
11076
|
-
// function that renders the HTML and CSS into the scope of the component
|
|
11077
11817
|
render() {
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
<span id="subheader">
|
|
11089
|
-
<slot name="subheader"></slot>
|
|
11090
|
-
</span>
|
|
11091
|
-
</div>` : null}
|
|
11818
|
+
const classes = {
|
|
11819
|
+
'util_insetLg--squish': true,
|
|
11820
|
+
'auro-button': true,
|
|
11821
|
+
'auroButton': true,
|
|
11822
|
+
'auro-button--rounded': this.rounded,
|
|
11823
|
+
'auro-button--slim': this.slim,
|
|
11824
|
+
'auro-button--iconOnly': this.iconOnly,
|
|
11825
|
+
'auro-button--iconOnlySlim': this.iconOnly && this.slim,
|
|
11826
|
+
'loading': this.loading
|
|
11827
|
+
};
|
|
11092
11828
|
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11829
|
+
return u$2`
|
|
11830
|
+
<button
|
|
11831
|
+
part="button"
|
|
11832
|
+
aria-label="${o(this.arialabel ? this.arialabel : undefined)}"
|
|
11833
|
+
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
11834
|
+
?autofocus="${this.autofocus}"
|
|
11835
|
+
class="${e(classes)}"
|
|
11836
|
+
?disabled="${this.disabled || this.loading}"
|
|
11837
|
+
?onDark="${this.onDark}"
|
|
11838
|
+
title="${o(this.title ? this.title : undefined)}"
|
|
11839
|
+
name="${o(this.name ? this.name : undefined)}"
|
|
11840
|
+
type="${o(this.type ? this.type : undefined)}"
|
|
11841
|
+
variant="${o(this.variant ? this.variant : undefined)}"
|
|
11842
|
+
.value="${o(this.value ? this.value : undefined)}"
|
|
11843
|
+
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
11844
|
+
>
|
|
11845
|
+
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
11096
11846
|
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11847
|
+
<span class="contentWrapper">
|
|
11848
|
+
<span class="textSlot" part="text">
|
|
11849
|
+
${this.iconOnly ? undefined : u$2`<slot></slot>`}
|
|
11850
|
+
</span>
|
|
11851
|
+
|
|
11852
|
+
<span part="icon">
|
|
11853
|
+
<slot name="icon"></slot>
|
|
11854
|
+
</span>
|
|
11855
|
+
</span>
|
|
11856
|
+
</button>
|
|
11857
|
+
`;
|
|
11103
11858
|
}
|
|
11104
|
-
}
|
|
11859
|
+
};
|
|
11105
11860
|
|
|
11106
|
-
var
|
|
11861
|
+
var buttonVersion$1 = '9.0.0';
|
|
11107
11862
|
|
|
11108
11863
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
11109
11864
|
/**
|
|
@@ -11167,33 +11922,33 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11167
11922
|
*/
|
|
11168
11923
|
this.numCalendars = undefined;
|
|
11169
11924
|
|
|
11170
|
-
|
|
11171
11925
|
this.visible = false;
|
|
11172
11926
|
|
|
11173
|
-
|
|
11174
11927
|
/**
|
|
11175
11928
|
* @private
|
|
11176
11929
|
*/
|
|
11177
11930
|
this.slots = {};
|
|
11178
11931
|
|
|
11179
|
-
const versioning = new AuroDependencyVersioning$
|
|
11932
|
+
const versioning = new AuroDependencyVersioning$5();
|
|
11180
11933
|
|
|
11181
11934
|
/**
|
|
11182
11935
|
* @private
|
|
11183
11936
|
*/
|
|
11184
|
-
this.bibtemplateTag = versioning.generateTag('auro-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
11937
|
+
this.bibtemplateTag = versioning.generateTag('auro-formkit-datepicker-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
11185
11938
|
|
|
11186
11939
|
/**
|
|
11187
11940
|
* @private
|
|
11188
11941
|
*/
|
|
11942
|
+
this.buttonTag = versioning.generateTag('auro-formkit-datepicker-button', buttonVersion$1, AuroButton$1);
|
|
11943
|
+
|
|
11189
11944
|
this.dropdown = undefined;
|
|
11190
11945
|
}
|
|
11191
11946
|
|
|
11192
11947
|
static get styles() {
|
|
11193
11948
|
return [
|
|
11194
|
-
styleCss$
|
|
11195
|
-
colorCss$
|
|
11196
|
-
tokensCss$
|
|
11949
|
+
styleCss$c,
|
|
11950
|
+
colorCss$c,
|
|
11951
|
+
tokensCss$a
|
|
11197
11952
|
];
|
|
11198
11953
|
}
|
|
11199
11954
|
|
|
@@ -11240,6 +11995,9 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11240
11995
|
type: Boolean,
|
|
11241
11996
|
reflect: true
|
|
11242
11997
|
},
|
|
11998
|
+
dropdown: {
|
|
11999
|
+
type: Object
|
|
12000
|
+
},
|
|
11243
12001
|
|
|
11244
12002
|
/**
|
|
11245
12003
|
* @private
|
|
@@ -11275,16 +12033,14 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11275
12033
|
*/
|
|
11276
12034
|
renderAllCalendars() {
|
|
11277
12035
|
let renderedHtml = undefined;
|
|
12036
|
+
|
|
11278
12037
|
if (this.visible) {
|
|
11279
12038
|
this.utilCalRender.setFirstRenderableMonthDate(this);
|
|
11280
12039
|
this.utilCal.assessNavigationButtonVisibility(this);
|
|
11281
12040
|
|
|
11282
|
-
|
|
11283
|
-
const dropdownbib = dropdown ? dropdown.bibContent : AuroLibraryRuntimeUtils$4.prototype.closestElement('auro-dropdownbib, [auro-dropdownbib]', this);
|
|
11284
|
-
this.isFullscreen = dropdownbib.hasAttribute('isFullscreen');
|
|
12041
|
+
this.isFullscreen = this.dropdown.bibContent.hasAttribute('isFullscreen');
|
|
11285
12042
|
this.utilCalRender.determineNumCalendarsToRender(this, this.isFullscreen);
|
|
11286
12043
|
|
|
11287
|
-
|
|
11288
12044
|
// Determine which month to render first
|
|
11289
12045
|
let dateMatches = undefined;
|
|
11290
12046
|
|
|
@@ -11320,7 +12076,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11320
12076
|
const firstMonth = this.firstRenderedMonth.getMonth() + 1;
|
|
11321
12077
|
const firstYear = this.firstRenderedMonth.getFullYear();
|
|
11322
12078
|
|
|
11323
|
-
renderedHtml = u$
|
|
12079
|
+
renderedHtml = u$2`${renderedHtml}${this.utilCalRender.renderCalendar(this, firstMonth, firstYear)}`;
|
|
11324
12080
|
|
|
11325
12081
|
// Loop through the number of remaining calendars to render and add the HTML
|
|
11326
12082
|
let newMonthDate = undefined;
|
|
@@ -11346,9 +12102,10 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11346
12102
|
const newMonthDateStr = `${newMonth}/1/${newYear}`;
|
|
11347
12103
|
newMonthDate = new Date(newMonthDateStr);
|
|
11348
12104
|
|
|
11349
|
-
renderedHtml = u$
|
|
12105
|
+
renderedHtml = u$2`${renderedHtml}${this.utilCalRender.renderCalendar(this, newMonth, newYear)}`;
|
|
11350
12106
|
}
|
|
11351
12107
|
}
|
|
12108
|
+
|
|
11352
12109
|
return renderedHtml;
|
|
11353
12110
|
}
|
|
11354
12111
|
|
|
@@ -11409,7 +12166,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11409
12166
|
}
|
|
11410
12167
|
|
|
11411
12168
|
render() {
|
|
11412
|
-
return u$
|
|
12169
|
+
return u$2`
|
|
11413
12170
|
<${this.bibtemplateTag}
|
|
11414
12171
|
?large="${this.largeFullscreenHeadline}"
|
|
11415
12172
|
?isFullscreen="${this.isFullscreen}"
|
|
@@ -11431,12 +12188,12 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11431
12188
|
${this.renderAllCalendars()}
|
|
11432
12189
|
</div>
|
|
11433
12190
|
<div class="calendarNavButtons">
|
|
11434
|
-
${this.showPrevMonthBtn ? u$
|
|
12191
|
+
${this.showPrevMonthBtn ? u$2`
|
|
11435
12192
|
<button class="calendarNavBtn prevMonth" @click="${this.handlePrevMonth}">
|
|
11436
12193
|
${this.util.generateIconHtml(chevronLeft)}
|
|
11437
12194
|
</button>
|
|
11438
12195
|
` : undefined}
|
|
11439
|
-
${this.showNextMonthBtn ? u$
|
|
12196
|
+
${this.showNextMonthBtn ? u$2`
|
|
11440
12197
|
<button class="calendarNavBtn nextMonth" @click="${this.handleNextMonth}">
|
|
11441
12198
|
${this.util.generateIconHtml(chevronRight)}
|
|
11442
12199
|
</button>
|
|
@@ -11444,49 +12201,16 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11444
12201
|
</div>
|
|
11445
12202
|
</div>
|
|
11446
12203
|
|
|
11447
|
-
|
|
12204
|
+
<${this.buttonTag} slot="footer" fluid @click="${this.utilCal.requestDismiss}">Done</${this.buttonTag}>
|
|
11448
12205
|
</${this.bibtemplateTag}>
|
|
11449
12206
|
`;
|
|
11450
12207
|
}
|
|
11451
12208
|
}
|
|
11452
12209
|
|
|
11453
|
-
if (!customElements.get('auro-calendar')) {
|
|
11454
|
-
customElements.define('auro-calendar', AuroCalendar);
|
|
12210
|
+
if (!customElements.get('auro-formkit-calendar')) {
|
|
12211
|
+
customElements.define('auro-formkit-calendar', AuroCalendar);
|
|
11455
12212
|
}
|
|
11456
12213
|
|
|
11457
|
-
/**
|
|
11458
|
-
* @license
|
|
11459
|
-
* Copyright 2017 Google LLC
|
|
11460
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11461
|
-
*/
|
|
11462
|
-
const t$4$1=globalThis,i$9$1=t$4$1.trustedTypes,s$4$1=i$9$1?i$9$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$7$1="$lit$",h$3$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7$1="?"+h$3$1,n$6$1=`<${o$7$1}>`,r$7$1=document,l$4$1=()=>r$7$1.createComment(""),c$5$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4$1=Array.isArray,u$4$1=t=>a$4$1(t)||"function"==typeof t?.[Symbol.iterator],d$3$1="[ \t\n\f\r]",f$3$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1$1=/-->/g,_$1$1=/>/g,m$1$1=RegExp(`>|${d$3$1}(?:([^\\s"'>=/]+)(${d$3$1}*=${d$3$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$3$1=/'/g,g$1$1=/"/g,$$1$1=/^(?:script|style|textarea|title)$/i,y$3$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1$1=y$3$1(1),T$1$1=Symbol.for("lit-noChange"),E$1$1=Symbol.for("lit-nothing"),A$1$1=new WeakMap,C$1$1=r$7$1.createTreeWalker(r$7$1,129);function P$1$1(t,i){if(!a$4$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$4$1?s$4$1.createHTML(i):i}const V$1$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$3$1;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$3$1?"!--"===u[1]?c=v$1$1:void 0!==u[1]?c=_$1$1:void 0!==u[2]?($$1$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1$1):void 0!==u[3]&&(c=m$1$1):c===m$1$1?">"===u[0]?(c=r??f$3$1,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$1$1:'"'===u[3]?g$1$1:p$3$1):c===g$1$1||c===p$3$1?c=m$1$1:c===v$1$1||c===_$1$1?c=f$3$1:(c=m$1$1,r=void 0);const x=c===m$1$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$3$1?s+n$6$1:d>=0?(o.push(a),s.slice(0,d)+e$7$1+s.slice(d)+h$3$1+x):s+h$3$1+(-2===d?i:x);}return [P$1$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1$1(t,s);if(this.el=N.createElement(f,n),C$1$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$7$1)){const i=v[a++],s=r.getAttribute(t).split(h$3$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1$1:"?"===e[1]?I$1$1:"@"===e[1]?L$1$1:k$1$1}),r.removeAttribute(t);}else t.startsWith(h$3$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1$1.test(r.tagName)){const t=r.textContent.split(h$3$1),s=t.length-1;if(s>0){r.textContent=i$9$1?i$9$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$4$1()),C$1$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$4$1());}}}else if(8===r.nodeType)if(r.data===o$7$1)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$3$1,t+1));)d.push({type:7,index:c}),t+=h$3$1.length-1;}c++;}}static createElement(t,i){const s=r$7$1.createElement("template");return s.innerHTML=t,s}};function S$3$1(t,i,s=t,e){if(i===T$1$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$5$1(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$3$1(t,h._$AS(t,i.values),h,e)),i}let M$1$1 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$7$1).importNode(i,true);C$1$1.currentNode=e;let h=C$1$1.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1$1.nextNode(),o++);}return C$1$1.currentNode=r$7$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1$1,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$3$1(this,t,i),c$5$1(t)?t===E$1$1||null==t||""===t?(this._$AH!==E$1$1&&this._$AR(),this._$AH=E$1$1):t!==this._$AH&&t!==T$1$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$4$1(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1$1&&c$5$1(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$7$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$1$1.createElement(P$1$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1$1.get(t.strings);return void 0===i&&A$1$1.set(t.strings,i=new N$1$1(t)),i}k(t){a$4$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$4$1()),this.O(l$4$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1$1 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1$1,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$3$1(this,t,i,0),o=!c$5$1(t)||t!==this._$AH&&t!==T$1$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$3$1(this,e[s+n],i,n),r===T$1$1&&(r=this._$AH[n]),o||=!c$5$1(r)||r!==this._$AH[n],r===E$1$1?t=E$1$1:t!==E$1$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1$1 = class H extends k$1$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1$1?void 0:t;}};let I$1$1 = class I extends k$1$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1$1);}};let L$1$1 = class L extends k$1$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$3$1(this,t,i,0)??E$1$1)===T$1$1)return;const s=this._$AH,e=t===E$1$1&&s!==E$1$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1$1&&(s===E$1$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$1$1 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$3$1(this,t);}};const j$1$1=t$4$1.litHtmlPolyfillSupport;j$1$1?.(N$1$1,R$1$1),(t$4$1.litHtmlVersions??=[]).push("3.2.1");const B$1$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1$1(i.insertBefore(l$4$1(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
11463
|
-
|
|
11464
|
-
/**
|
|
11465
|
-
* @license
|
|
11466
|
-
* Copyright 2020 Google LLC
|
|
11467
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11468
|
-
*/
|
|
11469
|
-
const a$3$1=Symbol.for(""),o$6$1=t=>{if(t?.r===a$3$1)return t?._$litStatic$},s$3$1=t=>({_$litStatic$:t,r:a$3$1}),i$8$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$3$1}),l$3$1=new Map,n$5$1=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$6$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l$3$1.get(t))&&(n.raw=n,l$3$1.set(t,r=n)),e=u;}return t(r,...e)},u$3$1=n$5$1(x$1$1);
|
|
11470
|
-
|
|
11471
|
-
/**
|
|
11472
|
-
* @license
|
|
11473
|
-
* Copyright 2019 Google LLC
|
|
11474
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11475
|
-
*/
|
|
11476
|
-
const t$3$1=globalThis,e$6$1=t$3$1.ShadowRoot&&(void 0===t$3$1.ShadyCSS||t$3$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2$1=Symbol(),o$5$1=new WeakMap;let n$4$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$6$1&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$5$1.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$5$1.set(s,t));}return t}toString(){return this.cssText}};const r$6$1=t=>new n$4$1("string"==typeof t?t:t+"",void 0,s$2$1),i$7$1=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$4$1(o,t,s$2$1)},S$2$1=(s,o)=>{if(e$6$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$3$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$4$1=e$6$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6$1(e)})(t):t;
|
|
11477
|
-
|
|
11478
|
-
/**
|
|
11479
|
-
* @license
|
|
11480
|
-
* Copyright 2017 Google LLC
|
|
11481
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11482
|
-
*/const{is:i$6$1,defineProperty:e$5$1,getOwnPropertyDescriptor:r$5$1,getOwnPropertyNames:h$2$1,getOwnPropertySymbols:o$4$1,getPrototypeOf:n$3$1}=Object,a$2$1=globalThis,c$3$1=a$2$1.trustedTypes,l$2$1=c$3$1?c$3$1.emptyScript:"",p$2$1=a$2$1.reactiveElementPolyfillSupport,d$2$1=(t,s)=>t,u$2$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$2$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2$1=(t,s)=>!i$6$1(t,s),y$2$1={attribute:true,type:String,converter:u$2$1,reflect:false,hasChanged:f$2$1};Symbol.metadata??=Symbol("metadata"),a$2$1.litPropertyMetadata??=new WeakMap;let b$1$1 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$2$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$5$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$5$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$2$1}static _$Ei(){if(this.hasOwnProperty(d$2$1("elementProperties")))return;const t=n$3$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2$1("properties"))){const t=this.properties,s=[...h$2$1(t),...o$4$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$4$1(s));}else void 0!==s&&i.push(c$4$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$2$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1$1.elementStyles=[],b$1$1.shadowRootOptions={mode:"open"},b$1$1[d$2$1("elementProperties")]=new Map,b$1$1[d$2$1("finalized")]=new Map,p$2$1?.({ReactiveElement:b$1$1}),(a$2$1.reactiveElementVersions??=[]).push("2.0.4");
|
|
11483
|
-
|
|
11484
|
-
/**
|
|
11485
|
-
* @license
|
|
11486
|
-
* Copyright 2017 Google LLC
|
|
11487
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11488
|
-
*/let r$4$1 = class r extends b$1$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1$1}};r$4$1._$litElement$=true,r$4$1["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4$1});const i$5$1=globalThis.litElementPolyfillSupport;i$5$1?.({LitElement:r$4$1});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
11489
|
-
|
|
11490
12214
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11491
12215
|
// See LICENSE in the project root for license information.
|
|
11492
12216
|
|
|
@@ -11494,7 +12218,7 @@ const t$3$1=globalThis,e$6$1=t$3$1.ShadowRoot&&(void 0===t$3$1.ShadyCSS||t$3$1.S
|
|
|
11494
12218
|
|
|
11495
12219
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11496
12220
|
|
|
11497
|
-
let AuroLibraryRuntimeUtils$
|
|
12221
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
11498
12222
|
|
|
11499
12223
|
/* eslint-disable jsdoc/require-param */
|
|
11500
12224
|
|
|
@@ -12286,7 +13010,8 @@ function isContainingBlock(elementOrCss) {
|
|
|
12286
13010
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
12287
13011
|
|
|
12288
13012
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
12289
|
-
|
|
13013
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
13014
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
12290
13015
|
}
|
|
12291
13016
|
function getContainingBlock(element) {
|
|
12292
13017
|
let currentNode = getParentNode(element);
|
|
@@ -12844,6 +13569,10 @@ const platform = {
|
|
|
12844
13569
|
isRTL
|
|
12845
13570
|
};
|
|
12846
13571
|
|
|
13572
|
+
function rectsAreEqual(a, b) {
|
|
13573
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
13574
|
+
}
|
|
13575
|
+
|
|
12847
13576
|
// https://samthor.au/2021/observing-dom/
|
|
12848
13577
|
function observeMove(element, onMove) {
|
|
12849
13578
|
let io = null;
|
|
@@ -12863,12 +13592,13 @@ function observeMove(element, onMove) {
|
|
|
12863
13592
|
threshold = 1;
|
|
12864
13593
|
}
|
|
12865
13594
|
cleanup();
|
|
13595
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
12866
13596
|
const {
|
|
12867
13597
|
left,
|
|
12868
13598
|
top,
|
|
12869
13599
|
width,
|
|
12870
13600
|
height
|
|
12871
|
-
} =
|
|
13601
|
+
} = elementRectForRootMargin;
|
|
12872
13602
|
if (!skip) {
|
|
12873
13603
|
onMove();
|
|
12874
13604
|
}
|
|
@@ -12901,6 +13631,16 @@ function observeMove(element, onMove) {
|
|
|
12901
13631
|
refresh(false, ratio);
|
|
12902
13632
|
}
|
|
12903
13633
|
}
|
|
13634
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
13635
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
13636
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
13637
|
+
// area anymore. This can happen under performance constraints. This may
|
|
13638
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
13639
|
+
// work around this, we compare the element's bounding rect now with
|
|
13640
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
13641
|
+
// are not equal then the element moved, so we refresh.
|
|
13642
|
+
refresh();
|
|
13643
|
+
}
|
|
12904
13644
|
isFirstUpdate = false;
|
|
12905
13645
|
}
|
|
12906
13646
|
|
|
@@ -12978,7 +13718,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
12978
13718
|
}
|
|
12979
13719
|
function frameLoop() {
|
|
12980
13720
|
const nextRefRect = getBoundingClientRect(reference);
|
|
12981
|
-
if (prevRefRect && (
|
|
13721
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
12982
13722
|
update();
|
|
12983
13723
|
}
|
|
12984
13724
|
prevRefRect = nextRefRect;
|
|
@@ -13291,11 +14031,11 @@ class AuroFloatingUI {
|
|
|
13291
14031
|
|
|
13292
14032
|
updateCurrentExpandedDropdown() {
|
|
13293
14033
|
// Close any other dropdown that is already open
|
|
13294
|
-
if (document.
|
|
13295
|
-
|
|
14034
|
+
if (document.expandedAuroFormkitDropdown) {
|
|
14035
|
+
document.expandedAuroFormkitDropdown.hide;
|
|
13296
14036
|
}
|
|
13297
14037
|
|
|
13298
|
-
document.
|
|
14038
|
+
document.expandedAuroFormkitDropdown = this;
|
|
13299
14039
|
}
|
|
13300
14040
|
|
|
13301
14041
|
showBib() {
|
|
@@ -13483,7 +14223,7 @@ class AuroFloatingUI {
|
|
|
13483
14223
|
// See LICENSE in the project root for license information.
|
|
13484
14224
|
|
|
13485
14225
|
|
|
13486
|
-
let AuroDependencyVersioning$
|
|
14226
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
13487
14227
|
|
|
13488
14228
|
/**
|
|
13489
14229
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -13509,7 +14249,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
13509
14249
|
*/
|
|
13510
14250
|
generateTag(baseName, version, tagClass) {
|
|
13511
14251
|
const elementName = this.generateElementName(baseName, version);
|
|
13512
|
-
const tag = i$
|
|
14252
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
13513
14253
|
|
|
13514
14254
|
if (!customElements.get(elementName)) {
|
|
13515
14255
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -13519,25 +14259,6 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
13519
14259
|
}
|
|
13520
14260
|
};
|
|
13521
14261
|
|
|
13522
|
-
/**
|
|
13523
|
-
* @license
|
|
13524
|
-
* Copyright 2017 Google LLC
|
|
13525
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13526
|
-
*/
|
|
13527
|
-
const t$2$1={ATTRIBUTE:1},e$4$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$4$1 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
13528
|
-
|
|
13529
|
-
/**
|
|
13530
|
-
* @license
|
|
13531
|
-
* Copyright 2018 Google LLC
|
|
13532
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13533
|
-
*/const e$3$1=e$4$1(class extends i$4$1{constructor(t){if(super(t),t.type!==t$2$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1$1}});
|
|
13534
|
-
|
|
13535
|
-
/**
|
|
13536
|
-
* @license
|
|
13537
|
-
* Copyright 2018 Google LLC
|
|
13538
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13539
|
-
*/const o$3$1=o=>o??E$1$1;
|
|
13540
|
-
|
|
13541
14262
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13542
14263
|
// See LICENSE in the project root for license information.
|
|
13543
14264
|
|
|
@@ -13548,7 +14269,7 @@ const t$2$1={ATTRIBUTE:1},e$4$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$
|
|
|
13548
14269
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
13549
14270
|
*/
|
|
13550
14271
|
|
|
13551
|
-
let AuroElement$1 = class AuroElement extends r$
|
|
14272
|
+
let AuroElement$1 = class AuroElement extends r$3 {
|
|
13552
14273
|
|
|
13553
14274
|
// function to define props used within the scope of this component
|
|
13554
14275
|
static get properties() {
|
|
@@ -13604,7 +14325,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
13604
14325
|
return _fetchMap$1.get(uri);
|
|
13605
14326
|
};
|
|
13606
14327
|
|
|
13607
|
-
var styleCss$3$1 = i$
|
|
14328
|
+
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}`;
|
|
13608
14329
|
|
|
13609
14330
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13610
14331
|
// See LICENSE in the project root for license information.
|
|
@@ -13643,7 +14364,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
13643
14364
|
}
|
|
13644
14365
|
|
|
13645
14366
|
static get styles() {
|
|
13646
|
-
return i$
|
|
14367
|
+
return i$6`
|
|
13647
14368
|
${styleCss$3$1}
|
|
13648
14369
|
`;
|
|
13649
14370
|
}
|
|
@@ -13685,47 +14406,88 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
13685
14406
|
}
|
|
13686
14407
|
};
|
|
13687
14408
|
|
|
13688
|
-
var tokensCss$2$1 = i$
|
|
14409
|
+
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)}`;
|
|
13689
14410
|
|
|
13690
|
-
var colorCss$3$1 = i$
|
|
14411
|
+
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)}`;
|
|
13691
14412
|
|
|
13692
|
-
// Copyright (c)
|
|
14413
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13693
14414
|
// See LICENSE in the project root for license information.
|
|
13694
14415
|
|
|
14416
|
+
// ---------------------------------------------------------------------
|
|
14417
|
+
|
|
14418
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
14419
|
+
|
|
14420
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
14421
|
+
|
|
14422
|
+
/* eslint-disable jsdoc/require-param */
|
|
14423
|
+
|
|
14424
|
+
/**
|
|
14425
|
+
* This will register a new custom element with the browser.
|
|
14426
|
+
* @param {String} name - The name of the custom element.
|
|
14427
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
14428
|
+
* @returns {void}
|
|
14429
|
+
*/
|
|
14430
|
+
registerComponent(name, componentClass) {
|
|
14431
|
+
if (!customElements.get(name)) {
|
|
14432
|
+
customElements.define(name, class extends componentClass {});
|
|
14433
|
+
}
|
|
14434
|
+
}
|
|
14435
|
+
|
|
14436
|
+
/**
|
|
14437
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
14438
|
+
* @returns {void}
|
|
14439
|
+
*/
|
|
14440
|
+
closestElement(
|
|
14441
|
+
selector, // selector like in .closest()
|
|
14442
|
+
base = this, // extra functionality to skip a parent
|
|
14443
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
14444
|
+
!el || el === document || el === window
|
|
14445
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
14446
|
+
: found
|
|
14447
|
+
? found // found a selector INside this element
|
|
14448
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
14449
|
+
) {
|
|
14450
|
+
return __Closest(base);
|
|
14451
|
+
}
|
|
14452
|
+
/* eslint-enable jsdoc/require-param */
|
|
14453
|
+
|
|
14454
|
+
/**
|
|
14455
|
+
* 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.
|
|
14456
|
+
* @param {Object} elem - The element to check.
|
|
14457
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
14458
|
+
* @returns {void}
|
|
14459
|
+
*/
|
|
14460
|
+
handleComponentTagRename(elem, tagName) {
|
|
14461
|
+
const tag = tagName.toLowerCase();
|
|
14462
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
14463
|
+
|
|
14464
|
+
if (elemTag !== tag) {
|
|
14465
|
+
elem.setAttribute(tag, true);
|
|
14466
|
+
}
|
|
14467
|
+
}
|
|
14468
|
+
|
|
14469
|
+
/**
|
|
14470
|
+
* Validates if an element is a specific Auro component.
|
|
14471
|
+
* @param {Object} elem - The element to validate.
|
|
14472
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
14473
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
14474
|
+
*/
|
|
14475
|
+
elementMatch(elem, tagName) {
|
|
14476
|
+
const tag = tagName.toLowerCase();
|
|
14477
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
14478
|
+
|
|
14479
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
14480
|
+
}
|
|
14481
|
+
};
|
|
14482
|
+
|
|
14483
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14484
|
+
// See LICENSE in the project root for license information.
|
|
13695
14485
|
|
|
13696
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
13697
|
-
/**
|
|
13698
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
13699
|
-
*
|
|
13700
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
13701
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
13702
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
13703
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
13704
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
13705
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
13706
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
13707
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
13708
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
13709
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
13710
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
13711
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
13712
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
13713
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
13714
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
13715
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
13716
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
13717
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
13718
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
13719
|
-
* @slot svg - Used for custom SVG content.
|
|
13720
|
-
*/
|
|
13721
14486
|
|
|
13722
|
-
// build the component class
|
|
13723
14487
|
let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
13724
14488
|
constructor() {
|
|
13725
14489
|
super();
|
|
13726
14490
|
|
|
13727
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
13728
|
-
|
|
13729
14491
|
this.privateDefaults();
|
|
13730
14492
|
}
|
|
13731
14493
|
|
|
@@ -13749,6 +14511,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13749
14511
|
this.success = false;
|
|
13750
14512
|
this.tertiary = false;
|
|
13751
14513
|
this.warning = false;
|
|
14514
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
13752
14515
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
13753
14516
|
}
|
|
13754
14517
|
|
|
@@ -13756,71 +14519,136 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13756
14519
|
static get properties() {
|
|
13757
14520
|
return {
|
|
13758
14521
|
...super.properties,
|
|
14522
|
+
|
|
14523
|
+
/**
|
|
14524
|
+
* Sets the icon to use the accent style.
|
|
14525
|
+
*/
|
|
13759
14526
|
accent: {
|
|
13760
14527
|
type: Boolean,
|
|
13761
14528
|
reflect: true
|
|
13762
14529
|
},
|
|
14530
|
+
|
|
14531
|
+
/**
|
|
14532
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
14533
|
+
*/
|
|
13763
14534
|
ariaHidden: {
|
|
13764
14535
|
type: String,
|
|
13765
14536
|
reflect: true
|
|
13766
14537
|
},
|
|
14538
|
+
|
|
14539
|
+
/**
|
|
14540
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
14541
|
+
*/
|
|
13767
14542
|
category: {
|
|
13768
14543
|
type: String,
|
|
13769
14544
|
reflect: true
|
|
13770
14545
|
},
|
|
14546
|
+
|
|
14547
|
+
/**
|
|
14548
|
+
* Allows custom color to be set.
|
|
14549
|
+
*/
|
|
13771
14550
|
customColor: {
|
|
13772
14551
|
type: Boolean
|
|
13773
14552
|
},
|
|
14553
|
+
|
|
14554
|
+
/**
|
|
14555
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
14556
|
+
*/
|
|
13774
14557
|
customSvg: {
|
|
13775
14558
|
type: Boolean
|
|
13776
14559
|
},
|
|
14560
|
+
|
|
14561
|
+
/**
|
|
14562
|
+
* Sets the icon to use the disabled style.
|
|
14563
|
+
*/
|
|
13777
14564
|
disabled: {
|
|
13778
14565
|
type: Boolean,
|
|
13779
14566
|
reflect: true
|
|
13780
14567
|
},
|
|
14568
|
+
|
|
14569
|
+
/**
|
|
14570
|
+
* Sets the icon to use the emphasis style.
|
|
14571
|
+
*/
|
|
13781
14572
|
emphasis: {
|
|
13782
14573
|
type: Boolean,
|
|
13783
14574
|
reflect: true
|
|
13784
14575
|
},
|
|
14576
|
+
|
|
14577
|
+
/**
|
|
14578
|
+
* Sets the icon to use the error style.
|
|
14579
|
+
*/
|
|
13785
14580
|
error: {
|
|
13786
14581
|
type: Boolean,
|
|
13787
14582
|
reflect: true
|
|
13788
14583
|
},
|
|
14584
|
+
|
|
14585
|
+
/**
|
|
14586
|
+
* Sets the icon to use the info style.
|
|
14587
|
+
*/
|
|
13789
14588
|
info: {
|
|
13790
14589
|
type: Boolean,
|
|
13791
14590
|
reflect: true
|
|
13792
14591
|
},
|
|
14592
|
+
|
|
14593
|
+
/**
|
|
14594
|
+
* Exposes content in slot as icon label.
|
|
14595
|
+
*/
|
|
13793
14596
|
label: {
|
|
13794
14597
|
type: Boolean,
|
|
13795
14598
|
reflect: true
|
|
13796
14599
|
},
|
|
14600
|
+
|
|
14601
|
+
/**
|
|
14602
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
14603
|
+
*/
|
|
13797
14604
|
name: {
|
|
13798
14605
|
type: String,
|
|
13799
14606
|
reflect: true
|
|
13800
14607
|
},
|
|
14608
|
+
|
|
14609
|
+
/**
|
|
14610
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
14611
|
+
*/
|
|
13801
14612
|
primary: {
|
|
13802
14613
|
type: Boolean,
|
|
13803
14614
|
reflect: true
|
|
13804
14615
|
},
|
|
14616
|
+
|
|
14617
|
+
/**
|
|
14618
|
+
* Sets the icon to use the secondary style.
|
|
14619
|
+
*/
|
|
13805
14620
|
secondary: {
|
|
13806
14621
|
type: Boolean,
|
|
13807
14622
|
reflect: true
|
|
13808
14623
|
},
|
|
14624
|
+
|
|
14625
|
+
/**
|
|
14626
|
+
* Sets the icon to use the subtle style.
|
|
14627
|
+
*/
|
|
13809
14628
|
subtle: {
|
|
13810
14629
|
type: Boolean,
|
|
13811
14630
|
reflect: true
|
|
13812
14631
|
},
|
|
14632
|
+
|
|
14633
|
+
/**
|
|
14634
|
+
* Sets the icon to use the success style.
|
|
14635
|
+
*/
|
|
13813
14636
|
success: {
|
|
13814
14637
|
type: Boolean,
|
|
13815
14638
|
reflect: true
|
|
13816
14639
|
},
|
|
14640
|
+
|
|
14641
|
+
/**
|
|
14642
|
+
* Sets the icon to use the tertiary style.
|
|
14643
|
+
*/
|
|
13817
14644
|
tertiary: {
|
|
13818
14645
|
type: Boolean,
|
|
13819
14646
|
reflect: true
|
|
13820
14647
|
},
|
|
13821
|
-
|
|
13822
|
-
|
|
13823
|
-
|
|
14648
|
+
|
|
14649
|
+
/**
|
|
14650
|
+
* Sets the icon to use the warning style.
|
|
14651
|
+
*/
|
|
13824
14652
|
warning: {
|
|
13825
14653
|
type: Boolean,
|
|
13826
14654
|
reflect: true
|
|
@@ -13831,9 +14659,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13831
14659
|
static get styles() {
|
|
13832
14660
|
return [
|
|
13833
14661
|
super.styles,
|
|
13834
|
-
i$
|
|
13835
|
-
i$
|
|
13836
|
-
i$
|
|
14662
|
+
i$6`${tokensCss$2$1}`,
|
|
14663
|
+
i$6`${styleCss$3$1}`,
|
|
14664
|
+
i$6`${colorCss$3$1}`
|
|
13837
14665
|
];
|
|
13838
14666
|
}
|
|
13839
14667
|
|
|
@@ -13857,38 +14685,54 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13857
14685
|
}
|
|
13858
14686
|
|
|
13859
14687
|
/**
|
|
14688
|
+
* @private
|
|
13860
14689
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
13861
14690
|
*/
|
|
13862
14691
|
exposeCssParts() {
|
|
13863
14692
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
13864
14693
|
}
|
|
13865
14694
|
|
|
14695
|
+
async firstUpdated() {
|
|
14696
|
+
await super.firstUpdated();
|
|
14697
|
+
|
|
14698
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
14699
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
14700
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
14701
|
+
|
|
14702
|
+
if (svgDesc) {
|
|
14703
|
+
svgDesc.remove();
|
|
14704
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
14705
|
+
}
|
|
14706
|
+
}
|
|
14707
|
+
}
|
|
14708
|
+
|
|
13866
14709
|
// function that renders the HTML and CSS into the scope of the component
|
|
13867
14710
|
render() {
|
|
13868
|
-
const
|
|
13869
|
-
'
|
|
14711
|
+
const labelClasses = {
|
|
14712
|
+
'labelWrapper': true,
|
|
13870
14713
|
'util_displayHiddenVisually': !this.label
|
|
13871
14714
|
};
|
|
13872
14715
|
|
|
13873
|
-
const
|
|
13874
|
-
'
|
|
13875
|
-
'wrapper': true,
|
|
14716
|
+
const svgClasses = {
|
|
14717
|
+
'svgWrapper': true,
|
|
13876
14718
|
};
|
|
13877
14719
|
|
|
13878
|
-
return x
|
|
13879
|
-
<div
|
|
13880
|
-
|
|
13881
|
-
|
|
13882
|
-
|
|
13883
|
-
${this.
|
|
13884
|
-
|
|
13885
|
-
|
|
13886
|
-
|
|
13887
|
-
|
|
13888
|
-
|
|
13889
|
-
|
|
14720
|
+
return x`
|
|
14721
|
+
<div class="componentWrapper">
|
|
14722
|
+
<div
|
|
14723
|
+
class="${e(svgClasses)}"
|
|
14724
|
+
title="${o(this.title || undefined)}">
|
|
14725
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
14726
|
+
${this.customSvg ? x`
|
|
14727
|
+
<slot name="svg"></slot>
|
|
14728
|
+
` : x`
|
|
14729
|
+
${this.svg}
|
|
14730
|
+
`
|
|
14731
|
+
}
|
|
14732
|
+
</span>
|
|
14733
|
+
</div>
|
|
13890
14734
|
|
|
13891
|
-
<div class="${e
|
|
14735
|
+
<div class="${e(labelClasses)}">
|
|
13892
14736
|
<slot></slot>
|
|
13893
14737
|
</div>
|
|
13894
14738
|
</div>
|
|
@@ -13898,11 +14742,11 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
13898
14742
|
|
|
13899
14743
|
var iconVersion$1 = '6.1.2';
|
|
13900
14744
|
|
|
13901
|
-
var styleCss$2$1 = i$
|
|
14745
|
+
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}`;
|
|
13902
14746
|
|
|
13903
|
-
var colorCss$2$1 = i$
|
|
14747
|
+
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)}`;
|
|
13904
14748
|
|
|
13905
|
-
var tokensCss$1$1 = i$
|
|
14749
|
+
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)}`;
|
|
13906
14750
|
|
|
13907
14751
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13908
14752
|
// See LICENSE in the project root for license information.
|
|
@@ -13922,7 +14766,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
13922
14766
|
* @csspart bibContainer - Apply css to the bib container.
|
|
13923
14767
|
*/
|
|
13924
14768
|
|
|
13925
|
-
class AuroDropdownBib extends r$
|
|
14769
|
+
class AuroDropdownBib extends r$3 {
|
|
13926
14770
|
|
|
13927
14771
|
constructor() {
|
|
13928
14772
|
super();
|
|
@@ -13932,7 +14776,7 @@ class AuroDropdownBib extends r$4$1 {
|
|
|
13932
14776
|
*/
|
|
13933
14777
|
this._mobileBreakpointValue = undefined;
|
|
13934
14778
|
|
|
13935
|
-
AuroLibraryRuntimeUtils$
|
|
14779
|
+
AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
13936
14780
|
}
|
|
13937
14781
|
|
|
13938
14782
|
static get styles() {
|
|
@@ -14013,7 +14857,7 @@ class AuroDropdownBib extends r$4$1 {
|
|
|
14013
14857
|
|
|
14014
14858
|
// function that renders the HTML and CSS into the scope of the component
|
|
14015
14859
|
render() {
|
|
14016
|
-
return u$
|
|
14860
|
+
return u$2`
|
|
14017
14861
|
<div class="container" part="bibContainer">
|
|
14018
14862
|
<slot></slot>
|
|
14019
14863
|
</div>
|
|
@@ -14023,41 +14867,15 @@ class AuroDropdownBib extends r$4$1 {
|
|
|
14023
14867
|
|
|
14024
14868
|
var dropdownVersion$1 = '3.0.0';
|
|
14025
14869
|
|
|
14026
|
-
var styleCss$1$1 = i$
|
|
14027
|
-
|
|
14028
|
-
var colorCss$1$1 = i$7$1`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
14029
|
-
|
|
14030
|
-
/**
|
|
14031
|
-
* @license
|
|
14032
|
-
* Copyright 2019 Google LLC
|
|
14033
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14034
|
-
*/
|
|
14035
|
-
const t$1$1=globalThis,e$2$1=t$1$1.ShadowRoot&&(void 0===t$1$1.ShadyCSS||t$1$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1$1=Symbol(),o$2$1=new WeakMap;let n$2$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2$1&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2$1.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2$1.set(s,t));}return t}toString(){return this.cssText}};const r$3$1=t=>new n$2$1("string"==typeof t?t:t+"",void 0,s$1$1),i$3$1=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$2$1(o,t,s$1$1)},S$1$1=(s,o)=>{if(e$2$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2$1=e$2$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3$1(e)})(t):t;
|
|
14036
|
-
|
|
14037
|
-
/**
|
|
14038
|
-
* @license
|
|
14039
|
-
* Copyright 2017 Google LLC
|
|
14040
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14041
|
-
*/const{is:i$2$1,defineProperty:e$1$1,getOwnPropertyDescriptor:r$2$1,getOwnPropertyNames:h$1$1,getOwnPropertySymbols:o$1$1,getPrototypeOf:n$1$1}=Object,a$1$1=globalThis,c$1$1=a$1$1.trustedTypes,l$1$1=c$1$1?c$1$1.emptyScript:"",p$1$1=a$1$1.reactiveElementPolyfillSupport,d$1$1=(t,s)=>t,u$1$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$1$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1$1=(t,s)=>!i$2$1(t,s),y$1$1={attribute:true,type:String,converter:u$1$1,reflect:false,hasChanged:f$1$1};Symbol.metadata??=Symbol("metadata"),a$1$1.litPropertyMetadata??=new WeakMap;let b$2 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$1$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1$1}static _$Ei(){if(this.hasOwnProperty(d$1$1("elementProperties")))return;const t=n$1$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1$1("properties"))){const t=this.properties,s=[...h$1$1(t),...o$1$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2$1(s));}else void 0!==s&&i.push(c$2$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$1$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$1$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$2.elementStyles=[],b$2.shadowRootOptions={mode:"open"},b$2[d$1$1("elementProperties")]=new Map,b$2[d$1$1("finalized")]=new Map,p$1$1?.({ReactiveElement:b$2}),(a$1$1.reactiveElementVersions??=[]).push("2.0.4");
|
|
14042
|
-
|
|
14043
|
-
/**
|
|
14044
|
-
* @license
|
|
14045
|
-
* Copyright 2017 Google LLC
|
|
14046
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14047
|
-
*/
|
|
14048
|
-
const t$6=globalThis,i$1$1=t$6.trustedTypes,s$6=i$1$1?i$1$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$8="$lit$",h$4=`lit$${Math.random().toFixed(9).slice(2)}$`,o$8="?"+h$4,n$7=`<${o$8}>`,r$1$1=document,l$5=()=>r$1$1.createComment(""),c$7=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$5=Array.isArray,u$7=t=>a$5(t)||"function"==typeof t?.[Symbol.iterator],d$4="[ \t\n\f\r]",f$4=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,_$2=/>/g,m$3=RegExp(`>|${d$4}(?:([^\\s"'>=/]+)(${d$4}*=${d$4}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$5=/'/g,g$2=/"/g,$$2=/^(?:script|style|textarea|title)$/i,y$4=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$2=y$4(1),T$2=Symbol.for("lit-noChange"),E$2=Symbol.for("lit-nothing"),A$2=new WeakMap,C$2=r$1$1.createTreeWalker(r$1$1,129);function P$2(t,i){if(!a$5(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$6?s$6.createHTML(i):i}const V$2=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$4;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$4?"!--"===u[1]?c=v$3:void 0!==u[1]?c=_$2:void 0!==u[2]?($$2.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$3):void 0!==u[3]&&(c=m$3):c===m$3?">"===u[0]?(c=r??f$4,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$3:'"'===u[3]?g$2:p$5):c===g$2||c===p$5?c=m$3:c===v$3||c===_$2?c=f$4:(c=m$3,r=void 0);const x=c===m$3&&t[i+1].startsWith("/>")?" ":"";l+=c===f$4?s+n$7:d>=0?(o.push(a),s.slice(0,d)+e$8+s.slice(d)+h$4+x):s+h$4+(-2===d?i:x);}return [P$2(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$2 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$2(t,s);if(this.el=N.createElement(f,n),C$2.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$2.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$8)){const i=v[a++],s=r.getAttribute(t).split(h$4),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$2:"?"===e[1]?I$2:"@"===e[1]?L$2:k$2}),r.removeAttribute(t);}else t.startsWith(h$4)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$2.test(r.tagName)){const t=r.textContent.split(h$4),s=t.length-1;if(s>0){r.textContent=i$1$1?i$1$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$5()),C$2.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$5());}}}else if(8===r.nodeType)if(r.data===o$8)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$4,t+1));)d.push({type:7,index:c}),t+=h$4.length-1;}c++;}}static createElement(t,i){const s=r$1$1.createElement("template");return s.innerHTML=t,s}};function S$4(t,i,s=t,e){if(i===T$2)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$7(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$4(t,h._$AS(t,i.values),h,e)),i}let M$3 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1$1).importNode(i,true);C$2.currentNode=e;let h=C$2.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$2(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$2(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$2.nextNode(),o++);}return C$2.currentNode=r$1$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$2 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$2,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$4(this,t,i),c$7(t)?t===E$2||null==t||""===t?(this._$AH!==E$2&&this._$AR(),this._$AH=E$2):t!==this._$AH&&t!==T$2&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$7(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$2&&c$7(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$2.createElement(P$2(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$3(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$2.get(t.strings);return void 0===i&&A$2.set(t.strings,i=new N$2(t)),i}k(t){a$5(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$5()),this.O(l$5()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$2 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$2,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$2;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$4(this,t,i,0),o=!c$7(t)||t!==this._$AH&&t!==T$2,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$4(this,e[s+n],i,n),r===T$2&&(r=this._$AH[n]),o||=!c$7(r)||r!==this._$AH[n],r===E$2?t=E$2:t!==E$2&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$2?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$2 = class H extends k$2{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$2?void 0:t;}};let I$2 = class I extends k$2{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$2);}};let L$2 = class L extends k$2{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$4(this,t,i,0)??E$2)===T$2)return;const s=this._$AH,e=t===E$2&&s!==E$2||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$2&&(s===E$2||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$2 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$4(this,t);}};const j$2=t$6.litHtmlPolyfillSupport;j$2?.(N$2,R$2),(t$6.litHtmlVersions??=[]).push("3.2.1");const B$2=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$2(i.insertBefore(l$5(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
14870
|
+
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)}`;
|
|
14049
14871
|
|
|
14050
|
-
|
|
14051
|
-
* @license
|
|
14052
|
-
* Copyright 2017 Google LLC
|
|
14053
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14054
|
-
*/let r$9 = class r extends b$2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$2(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$2}};r$9._$litElement$=true,r$9["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$9});const i$a=globalThis.litElementPolyfillSupport;i$a?.({LitElement:r$9});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
14872
|
+
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)}`;
|
|
14055
14873
|
|
|
14056
|
-
var colorCss$5 = i$
|
|
14874
|
+
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)}`;
|
|
14057
14875
|
|
|
14058
|
-
var styleCss$5 = i$
|
|
14876
|
+
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}`;
|
|
14059
14877
|
|
|
14060
|
-
var tokensCss$5 = i$
|
|
14878
|
+
var tokensCss$5 = i$6`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
14061
14879
|
|
|
14062
14880
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14063
14881
|
// See LICENSE in the project root for license information.
|
|
@@ -14066,7 +14884,7 @@ var tokensCss$5 = i$3$1`:host{--ds-auro-helptext-color: var(--ds-color-text-tert
|
|
|
14066
14884
|
|
|
14067
14885
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
14068
14886
|
|
|
14069
|
-
let AuroLibraryRuntimeUtils$
|
|
14887
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
14070
14888
|
|
|
14071
14889
|
/* eslint-disable jsdoc/require-param */
|
|
14072
14890
|
|
|
@@ -14138,7 +14956,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
14138
14956
|
*
|
|
14139
14957
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
14140
14958
|
*/
|
|
14141
|
-
let AuroHelpText$1 = class AuroHelpText extends r$
|
|
14959
|
+
let AuroHelpText$1 = class AuroHelpText extends r$3 {
|
|
14142
14960
|
|
|
14143
14961
|
constructor() {
|
|
14144
14962
|
super();
|
|
@@ -14146,7 +14964,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$9 {
|
|
|
14146
14964
|
this.error = false;
|
|
14147
14965
|
this.hasTextContent = false;
|
|
14148
14966
|
|
|
14149
|
-
AuroLibraryRuntimeUtils$
|
|
14967
|
+
AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
14150
14968
|
}
|
|
14151
14969
|
|
|
14152
14970
|
static get styles() {
|
|
@@ -14194,7 +15012,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$9 {
|
|
|
14194
15012
|
*
|
|
14195
15013
|
*/
|
|
14196
15014
|
static register(name = "auro-helptext") {
|
|
14197
|
-
AuroLibraryRuntimeUtils$
|
|
15015
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroHelpText);
|
|
14198
15016
|
}
|
|
14199
15017
|
|
|
14200
15018
|
updated() {
|
|
@@ -14242,7 +15060,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$9 {
|
|
|
14242
15060
|
|
|
14243
15061
|
// function that renders the HTML and CSS into the scope of the component
|
|
14244
15062
|
render() {
|
|
14245
|
-
return x
|
|
15063
|
+
return x`
|
|
14246
15064
|
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
14247
15065
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
14248
15066
|
</div>
|
|
@@ -14268,7 +15086,7 @@ var helpTextVersion$1 = '1.0.0';
|
|
|
14268
15086
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
14269
15087
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
14270
15088
|
*/
|
|
14271
|
-
class AuroDropdown extends r$
|
|
15089
|
+
class AuroDropdown extends r$3 {
|
|
14272
15090
|
constructor() {
|
|
14273
15091
|
super();
|
|
14274
15092
|
|
|
@@ -14284,7 +15102,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14284
15102
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
14285
15103
|
*/
|
|
14286
15104
|
this.constructor.shadowRootOptions = {
|
|
14287
|
-
...r$
|
|
15105
|
+
...r$3.shadowRootOptions,
|
|
14288
15106
|
delegatesFocus: true,
|
|
14289
15107
|
};
|
|
14290
15108
|
|
|
@@ -14327,7 +15145,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14327
15145
|
/**
|
|
14328
15146
|
* @private
|
|
14329
15147
|
*/
|
|
14330
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
15148
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
14331
15149
|
|
|
14332
15150
|
/**
|
|
14333
15151
|
* @private
|
|
@@ -14347,22 +15165,22 @@ class AuroDropdown extends r$4$1 {
|
|
|
14347
15165
|
/**
|
|
14348
15166
|
* Generate unique names for dependency components.
|
|
14349
15167
|
*/
|
|
14350
|
-
const versioning = new AuroDependencyVersioning$
|
|
15168
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
14351
15169
|
|
|
14352
15170
|
/**
|
|
14353
15171
|
* @private
|
|
14354
15172
|
*/
|
|
14355
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$1, AuroIcon$1);
|
|
15173
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion$1, AuroIcon$1);
|
|
14356
15174
|
|
|
14357
15175
|
/**
|
|
14358
15176
|
* @private
|
|
14359
15177
|
*/
|
|
14360
|
-
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
15178
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
14361
15179
|
|
|
14362
15180
|
/**
|
|
14363
15181
|
* @private
|
|
14364
15182
|
*/
|
|
14365
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
15183
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
14366
15184
|
}
|
|
14367
15185
|
|
|
14368
15186
|
/**
|
|
@@ -14565,7 +15383,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14565
15383
|
*
|
|
14566
15384
|
*/
|
|
14567
15385
|
static register(name = "auro-dropdown") {
|
|
14568
|
-
AuroLibraryRuntimeUtils$
|
|
15386
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
|
|
14569
15387
|
}
|
|
14570
15388
|
|
|
14571
15389
|
connectedCallback() {
|
|
@@ -14588,6 +15406,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14588
15406
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
14589
15407
|
this.handleTriggerContentSlotChange();
|
|
14590
15408
|
}
|
|
15409
|
+
|
|
14591
15410
|
}
|
|
14592
15411
|
|
|
14593
15412
|
firstUpdated() {
|
|
@@ -14764,7 +15583,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14764
15583
|
|
|
14765
15584
|
// function that renders the HTML and CSS into the scope of the component
|
|
14766
15585
|
render() {
|
|
14767
|
-
return u$
|
|
15586
|
+
return u$2`
|
|
14768
15587
|
<div>
|
|
14769
15588
|
<div
|
|
14770
15589
|
id="trigger"
|
|
@@ -14784,7 +15603,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
14784
15603
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
14785
15604
|
</div>
|
|
14786
15605
|
</div>
|
|
14787
|
-
${this.chevron || this.common ? u$
|
|
15606
|
+
${this.chevron || this.common ? u$2`
|
|
14788
15607
|
<div
|
|
14789
15608
|
id="showStateIcon"
|
|
14790
15609
|
part="chevron">
|
|
@@ -14820,51 +15639,18 @@ class AuroDropdown extends r$4$1 {
|
|
|
14820
15639
|
|
|
14821
15640
|
var dropdownVersion = '3.0.0';
|
|
14822
15641
|
|
|
14823
|
-
/**
|
|
14824
|
-
* @license
|
|
14825
|
-
* Copyright 2017 Google LLC
|
|
14826
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14827
|
-
*/
|
|
14828
|
-
const t$5=globalThis,i$9=t$5.trustedTypes,s$5=i$9?i$9.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$7="$lit$",h$3=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$3,n$6=`<${o$7}>`,r$8=document,l$4=()=>r$8.createComment(""),c$6=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$6=t=>a$4(t)||"function"==typeof t?.[Symbol.iterator],d$3="[ \t\n\f\r]",f$3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$2=/-->/g,_$1=/>/g,m$2=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$4=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$3=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$3(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$8.createTreeWalker(r$8,129);function P$1(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$5?s$5.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$3;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$3?"!--"===u[1]?c=v$2:void 0!==u[1]?c=_$1:void 0!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):void 0!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$3,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$2:'"'===u[3]?g$1:p$4):c===g$1||c===p$4?c=m$2:c===v$2||c===_$1?c=f$3:(c=m$2,r=void 0);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$3?s+n$6:d>=0?(o.push(a),s.slice(0,d)+e$7+s.slice(d)+h$3+x):s+h$3+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$7)){const i=v[a++],s=r.getAttribute(t).split(h$3),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$1}),r.removeAttribute(t);}else t.startsWith(h$3)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$3),s=t.length-1;if(s>0){r.textContent=i$9?i$9.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$4()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$4());}}}else if(8===r.nodeType)if(r.data===o$7)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$3,t+1));)d.push({type:7,index:c}),t+=h$3.length-1;}c++;}}static createElement(t,i){const s=r$8.createElement("template");return s.innerHTML=t,s}};function S$3(t,i,s=t,e){if(i===T$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$6(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$3(t,h._$AS(t,i.values),h,e)),i}let M$2 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$8).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$1(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$8,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$3(this,t,i),c$6(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$6(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$6(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$8.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$2(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return void 0===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$4(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$4()),this.O(l$4()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$1 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$3(this,t,i,0),o=!c$6(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$3(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$6(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1 = class H extends k$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?void 0:t;}};let I$1 = class I extends k$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}};let L$1 = class L extends k$1{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$3(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$1 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$3(this,t);}};const Z={I:R$1},j$1=t$5.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$5.litHtmlVersions??=[]).push("3.2.1");const B$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$4(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
14829
|
-
|
|
14830
|
-
/**
|
|
14831
|
-
* @license
|
|
14832
|
-
* Copyright 2020 Google LLC
|
|
14833
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14834
|
-
*/
|
|
14835
|
-
const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$4=t=>({_$litStatic$:t,r:a$3}),i$8=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$3}),l$3=new Map,n$5=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$6(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l$3.get(t))&&(n.raw=n,l$3.set(t,r=n)),e=u;}return t(r,...e)},u$5=n$5(x$1);
|
|
14836
|
-
|
|
14837
|
-
/**
|
|
14838
|
-
* @license
|
|
14839
|
-
* Copyright 2017 Google LLC
|
|
14840
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14841
|
-
*/
|
|
14842
|
-
const t$4={ATTRIBUTE:1,CHILD:2},e$6=t=>(...e)=>({_$litDirective$:t,values:e});let i$7 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
14843
|
-
|
|
14844
15642
|
/**
|
|
14845
15643
|
* @license
|
|
14846
15644
|
* Copyright 2020 Google LLC
|
|
14847
15645
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
14848
|
-
*/const {I:t
|
|
15646
|
+
*/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;}};
|
|
14849
15647
|
|
|
14850
15648
|
/**
|
|
14851
15649
|
* @license
|
|
14852
15650
|
* Copyright 2017 Google LLC
|
|
14853
15651
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
14854
15652
|
*/
|
|
14855
|
-
const u
|
|
14856
|
-
|
|
14857
|
-
/**
|
|
14858
|
-
* @license
|
|
14859
|
-
* Copyright 2018 Google LLC
|
|
14860
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14861
|
-
*/const e$5=e$6(class extends i$7{constructor(t){if(super(t),t.type!==t$4.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
|
|
14862
|
-
|
|
14863
|
-
/**
|
|
14864
|
-
* @license
|
|
14865
|
-
* Copyright 2018 Google LLC
|
|
14866
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14867
|
-
*/const o$5=o=>o??E$1;
|
|
15653
|
+
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}});
|
|
14868
15654
|
|
|
14869
15655
|
const watchedItems = new Set();
|
|
14870
15656
|
|
|
@@ -14987,25 +15773,6 @@ function stopNotifyingOnLangChange(element) {
|
|
|
14987
15773
|
watchedItems.delete(element);
|
|
14988
15774
|
}
|
|
14989
15775
|
|
|
14990
|
-
/**
|
|
14991
|
-
* @license
|
|
14992
|
-
* Copyright 2019 Google LLC
|
|
14993
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
14994
|
-
*/
|
|
14995
|
-
const t$2=globalThis,e$4=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$4 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$4.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$6=t=>new n$4("string"==typeof t?t:t+"",void 0,s$2),i$6=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$4(o,t,s$2)},S$2=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$4=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6(e)})(t):t;
|
|
14996
|
-
|
|
14997
|
-
/**
|
|
14998
|
-
* @license
|
|
14999
|
-
* Copyright 2017 Google LLC
|
|
15000
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15001
|
-
*/const{is:i$5,defineProperty:e$3,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$3,getPrototypeOf:n$3}=Object,a$2=globalThis,c$3=a$2.trustedTypes,l$2=c$3?c$3.emptyScript:"",p$2=a$2.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2=(t,s)=>!i$5(t,s),y$2={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let b$1 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$2){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$3(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$5(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$2}static _$Ei(){if(this.hasOwnProperty(d$2("elementProperties")))return;const t=n$3(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2("properties"))){const t=this.properties,s=[...h$2(t),...o$3(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$4(s));}else void 0!==s&&i.push(c$4(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$2(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$2("elementProperties")]=new Map,b$1[d$2("finalized")]=new Map,p$2?.({ReactiveElement:b$1}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
15002
|
-
|
|
15003
|
-
/**
|
|
15004
|
-
* @license
|
|
15005
|
-
* Copyright 2017 Google LLC
|
|
15006
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
15007
|
-
*/let r$4 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$4._$litElement$=true,r$4["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4});const i$4=globalThis.litElementPolyfillSupport;i$4?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
15008
|
-
|
|
15009
15776
|
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)}`;
|
|
15010
15777
|
|
|
15011
15778
|
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)}`;
|
|
@@ -18861,7 +19628,7 @@ class AuroInputUtilities {
|
|
|
18861
19628
|
|
|
18862
19629
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
18863
19630
|
|
|
18864
|
-
let AuroLibraryRuntimeUtils$
|
|
19631
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
18865
19632
|
|
|
18866
19633
|
/* eslint-disable jsdoc/require-param */
|
|
18867
19634
|
|
|
@@ -18930,7 +19697,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
18930
19697
|
|
|
18931
19698
|
class AuroFormValidation {
|
|
18932
19699
|
constructor() {
|
|
18933
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
19700
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
18934
19701
|
}
|
|
18935
19702
|
|
|
18936
19703
|
/**
|
|
@@ -19257,7 +20024,7 @@ class AuroFormValidation {
|
|
|
19257
20024
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
19258
20025
|
*/
|
|
19259
20026
|
|
|
19260
|
-
class BaseInput extends r$
|
|
20027
|
+
class BaseInput extends r$3 {
|
|
19261
20028
|
|
|
19262
20029
|
constructor() {
|
|
19263
20030
|
super();
|
|
@@ -20194,7 +20961,7 @@ class BaseInput extends r$4 {
|
|
|
20194
20961
|
// See LICENSE in the project root for license information.
|
|
20195
20962
|
|
|
20196
20963
|
|
|
20197
|
-
class AuroDependencyVersioning {
|
|
20964
|
+
let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
20198
20965
|
|
|
20199
20966
|
/**
|
|
20200
20967
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -20220,7 +20987,7 @@ class AuroDependencyVersioning {
|
|
|
20220
20987
|
*/
|
|
20221
20988
|
generateTag(baseName, version, tagClass) {
|
|
20222
20989
|
const elementName = this.generateElementName(baseName, version);
|
|
20223
|
-
const tag = i$
|
|
20990
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
20224
20991
|
|
|
20225
20992
|
if (!customElements.get(elementName)) {
|
|
20226
20993
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -20228,7 +20995,7 @@ class AuroDependencyVersioning {
|
|
|
20228
20995
|
|
|
20229
20996
|
return tag;
|
|
20230
20997
|
}
|
|
20231
|
-
}
|
|
20998
|
+
};
|
|
20232
20999
|
|
|
20233
21000
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20234
21001
|
// See LICENSE in the project root for license information.
|
|
@@ -20240,7 +21007,7 @@ class AuroDependencyVersioning {
|
|
|
20240
21007
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
20241
21008
|
*/
|
|
20242
21009
|
|
|
20243
|
-
class AuroElement extends r$
|
|
21010
|
+
class AuroElement extends r$3 {
|
|
20244
21011
|
|
|
20245
21012
|
// function to define props used within the scope of this component
|
|
20246
21013
|
static get properties() {
|
|
@@ -20296,7 +21063,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
20296
21063
|
return _fetchMap.get(uri);
|
|
20297
21064
|
};
|
|
20298
21065
|
|
|
20299
|
-
var styleCss$3 = i$6
|
|
21066
|
+
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}`;
|
|
20300
21067
|
|
|
20301
21068
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20302
21069
|
// See LICENSE in the project root for license information.
|
|
@@ -20377,47 +21144,88 @@ class BaseIcon extends AuroElement {
|
|
|
20377
21144
|
}
|
|
20378
21145
|
}
|
|
20379
21146
|
|
|
20380
|
-
var tokensCss$3 = i$6`:host{--ds-auro-icon-color:
|
|
21147
|
+
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)}`;
|
|
20381
21148
|
|
|
20382
|
-
var colorCss$3 = i$6`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:
|
|
21149
|
+
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)}`;
|
|
20383
21150
|
|
|
20384
|
-
// Copyright (c)
|
|
21151
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
20385
21152
|
// See LICENSE in the project root for license information.
|
|
20386
21153
|
|
|
21154
|
+
// ---------------------------------------------------------------------
|
|
21155
|
+
|
|
21156
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21157
|
+
|
|
21158
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
21159
|
+
|
|
21160
|
+
/* eslint-disable jsdoc/require-param */
|
|
21161
|
+
|
|
21162
|
+
/**
|
|
21163
|
+
* This will register a new custom element with the browser.
|
|
21164
|
+
* @param {String} name - The name of the custom element.
|
|
21165
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
21166
|
+
* @returns {void}
|
|
21167
|
+
*/
|
|
21168
|
+
registerComponent(name, componentClass) {
|
|
21169
|
+
if (!customElements.get(name)) {
|
|
21170
|
+
customElements.define(name, class extends componentClass {});
|
|
21171
|
+
}
|
|
21172
|
+
}
|
|
21173
|
+
|
|
21174
|
+
/**
|
|
21175
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
21176
|
+
* @returns {void}
|
|
21177
|
+
*/
|
|
21178
|
+
closestElement(
|
|
21179
|
+
selector, // selector like in .closest()
|
|
21180
|
+
base = this, // extra functionality to skip a parent
|
|
21181
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21182
|
+
!el || el === document || el === window
|
|
21183
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
21184
|
+
: found
|
|
21185
|
+
? found // found a selector INside this element
|
|
21186
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21187
|
+
) {
|
|
21188
|
+
return __Closest(base);
|
|
21189
|
+
}
|
|
21190
|
+
/* eslint-enable jsdoc/require-param */
|
|
21191
|
+
|
|
21192
|
+
/**
|
|
21193
|
+
* 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.
|
|
21194
|
+
* @param {Object} elem - The element to check.
|
|
21195
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21196
|
+
* @returns {void}
|
|
21197
|
+
*/
|
|
21198
|
+
handleComponentTagRename(elem, tagName) {
|
|
21199
|
+
const tag = tagName.toLowerCase();
|
|
21200
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21201
|
+
|
|
21202
|
+
if (elemTag !== tag) {
|
|
21203
|
+
elem.setAttribute(tag, true);
|
|
21204
|
+
}
|
|
21205
|
+
}
|
|
21206
|
+
|
|
21207
|
+
/**
|
|
21208
|
+
* Validates if an element is a specific Auro component.
|
|
21209
|
+
* @param {Object} elem - The element to validate.
|
|
21210
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
21211
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21212
|
+
*/
|
|
21213
|
+
elementMatch(elem, tagName) {
|
|
21214
|
+
const tag = tagName.toLowerCase();
|
|
21215
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21216
|
+
|
|
21217
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
21218
|
+
}
|
|
21219
|
+
};
|
|
21220
|
+
|
|
21221
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21222
|
+
// See LICENSE in the project root for license information.
|
|
20387
21223
|
|
|
20388
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
20389
|
-
/**
|
|
20390
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
20391
|
-
*
|
|
20392
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
20393
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
20394
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
20395
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
20396
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
20397
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
20398
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
20399
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
20400
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
20401
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
20402
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
20403
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
20404
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
20405
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
20406
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
20407
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
20408
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
20409
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
20410
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
20411
|
-
* @slot svg - Used for custom SVG content.
|
|
20412
|
-
*/
|
|
20413
21224
|
|
|
20414
|
-
// build the component class
|
|
20415
21225
|
class AuroIcon extends BaseIcon {
|
|
20416
21226
|
constructor() {
|
|
20417
21227
|
super();
|
|
20418
21228
|
|
|
20419
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
20420
|
-
|
|
20421
21229
|
this.privateDefaults();
|
|
20422
21230
|
}
|
|
20423
21231
|
|
|
@@ -20441,78 +21249,144 @@ class AuroIcon extends BaseIcon {
|
|
|
20441
21249
|
this.success = false;
|
|
20442
21250
|
this.tertiary = false;
|
|
20443
21251
|
this.warning = false;
|
|
20444
|
-
this.
|
|
21252
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
21253
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
20445
21254
|
}
|
|
20446
21255
|
|
|
20447
21256
|
// function to define props used within the scope of this component
|
|
20448
21257
|
static get properties() {
|
|
20449
21258
|
return {
|
|
20450
21259
|
...super.properties,
|
|
21260
|
+
|
|
21261
|
+
/**
|
|
21262
|
+
* Sets the icon to use the accent style.
|
|
21263
|
+
*/
|
|
20451
21264
|
accent: {
|
|
20452
21265
|
type: Boolean,
|
|
20453
21266
|
reflect: true
|
|
20454
21267
|
},
|
|
21268
|
+
|
|
21269
|
+
/**
|
|
21270
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
21271
|
+
*/
|
|
20455
21272
|
ariaHidden: {
|
|
20456
21273
|
type: String,
|
|
20457
21274
|
reflect: true
|
|
20458
21275
|
},
|
|
21276
|
+
|
|
21277
|
+
/**
|
|
21278
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
21279
|
+
*/
|
|
20459
21280
|
category: {
|
|
20460
21281
|
type: String,
|
|
20461
21282
|
reflect: true
|
|
20462
21283
|
},
|
|
21284
|
+
|
|
21285
|
+
/**
|
|
21286
|
+
* Allows custom color to be set.
|
|
21287
|
+
*/
|
|
20463
21288
|
customColor: {
|
|
20464
21289
|
type: Boolean
|
|
20465
21290
|
},
|
|
21291
|
+
|
|
21292
|
+
/**
|
|
21293
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
21294
|
+
*/
|
|
20466
21295
|
customSvg: {
|
|
20467
21296
|
type: Boolean
|
|
20468
21297
|
},
|
|
21298
|
+
|
|
21299
|
+
/**
|
|
21300
|
+
* Sets the icon to use the disabled style.
|
|
21301
|
+
*/
|
|
20469
21302
|
disabled: {
|
|
20470
21303
|
type: Boolean,
|
|
20471
21304
|
reflect: true
|
|
20472
21305
|
},
|
|
21306
|
+
|
|
21307
|
+
/**
|
|
21308
|
+
* Sets the icon to use the emphasis style.
|
|
21309
|
+
*/
|
|
20473
21310
|
emphasis: {
|
|
20474
21311
|
type: Boolean,
|
|
20475
21312
|
reflect: true
|
|
20476
21313
|
},
|
|
21314
|
+
|
|
21315
|
+
/**
|
|
21316
|
+
* Sets the icon to use the error style.
|
|
21317
|
+
*/
|
|
20477
21318
|
error: {
|
|
20478
21319
|
type: Boolean,
|
|
20479
21320
|
reflect: true
|
|
20480
21321
|
},
|
|
21322
|
+
|
|
21323
|
+
/**
|
|
21324
|
+
* Sets the icon to use the info style.
|
|
21325
|
+
*/
|
|
20481
21326
|
info: {
|
|
20482
21327
|
type: Boolean,
|
|
20483
21328
|
reflect: true
|
|
20484
21329
|
},
|
|
21330
|
+
|
|
21331
|
+
/**
|
|
21332
|
+
* Exposes content in slot as icon label.
|
|
21333
|
+
*/
|
|
20485
21334
|
label: {
|
|
20486
21335
|
type: Boolean,
|
|
20487
21336
|
reflect: true
|
|
20488
21337
|
},
|
|
21338
|
+
|
|
21339
|
+
/**
|
|
21340
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
21341
|
+
*/
|
|
20489
21342
|
name: {
|
|
20490
21343
|
type: String,
|
|
20491
21344
|
reflect: true
|
|
20492
21345
|
},
|
|
21346
|
+
|
|
21347
|
+
/**
|
|
21348
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
21349
|
+
*/
|
|
20493
21350
|
primary: {
|
|
20494
21351
|
type: Boolean,
|
|
20495
21352
|
reflect: true
|
|
20496
21353
|
},
|
|
21354
|
+
|
|
21355
|
+
/**
|
|
21356
|
+
* Sets the icon to use the secondary style.
|
|
21357
|
+
*/
|
|
20497
21358
|
secondary: {
|
|
20498
21359
|
type: Boolean,
|
|
20499
21360
|
reflect: true
|
|
20500
21361
|
},
|
|
21362
|
+
|
|
21363
|
+
/**
|
|
21364
|
+
* Sets the icon to use the subtle style.
|
|
21365
|
+
*/
|
|
20501
21366
|
subtle: {
|
|
20502
21367
|
type: Boolean,
|
|
20503
21368
|
reflect: true
|
|
20504
21369
|
},
|
|
21370
|
+
|
|
21371
|
+
/**
|
|
21372
|
+
* Sets the icon to use the success style.
|
|
21373
|
+
*/
|
|
20505
21374
|
success: {
|
|
20506
21375
|
type: Boolean,
|
|
20507
21376
|
reflect: true
|
|
20508
21377
|
},
|
|
21378
|
+
|
|
21379
|
+
/**
|
|
21380
|
+
* Sets the icon to use the tertiary style.
|
|
21381
|
+
*/
|
|
20509
21382
|
tertiary: {
|
|
20510
21383
|
type: Boolean,
|
|
20511
21384
|
reflect: true
|
|
20512
21385
|
},
|
|
20513
|
-
|
|
20514
|
-
|
|
20515
|
-
|
|
21386
|
+
|
|
21387
|
+
/**
|
|
21388
|
+
* Sets the icon to use the warning style.
|
|
21389
|
+
*/
|
|
20516
21390
|
warning: {
|
|
20517
21391
|
type: Boolean,
|
|
20518
21392
|
reflect: true
|
|
@@ -20538,7 +21412,7 @@ class AuroIcon extends BaseIcon {
|
|
|
20538
21412
|
*
|
|
20539
21413
|
*/
|
|
20540
21414
|
static register(name = "auro-icon") {
|
|
20541
|
-
AuroLibraryRuntimeUtils$
|
|
21415
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
|
|
20542
21416
|
}
|
|
20543
21417
|
|
|
20544
21418
|
connectedCallback() {
|
|
@@ -20549,38 +21423,54 @@ class AuroIcon extends BaseIcon {
|
|
|
20549
21423
|
}
|
|
20550
21424
|
|
|
20551
21425
|
/**
|
|
21426
|
+
* @private
|
|
20552
21427
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
20553
21428
|
*/
|
|
20554
21429
|
exposeCssParts() {
|
|
20555
21430
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
20556
21431
|
}
|
|
20557
21432
|
|
|
21433
|
+
async firstUpdated() {
|
|
21434
|
+
await super.firstUpdated();
|
|
21435
|
+
|
|
21436
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
21437
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
21438
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
21439
|
+
|
|
21440
|
+
if (svgDesc) {
|
|
21441
|
+
svgDesc.remove();
|
|
21442
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
21443
|
+
}
|
|
21444
|
+
}
|
|
21445
|
+
}
|
|
21446
|
+
|
|
20558
21447
|
// function that renders the HTML and CSS into the scope of the component
|
|
20559
21448
|
render() {
|
|
20560
|
-
const
|
|
20561
|
-
'
|
|
21449
|
+
const labelClasses = {
|
|
21450
|
+
'labelWrapper': true,
|
|
20562
21451
|
'util_displayHiddenVisually': !this.label
|
|
20563
21452
|
};
|
|
20564
21453
|
|
|
20565
|
-
const
|
|
20566
|
-
'
|
|
20567
|
-
'wrapper': true,
|
|
21454
|
+
const svgClasses = {
|
|
21455
|
+
'svgWrapper': true,
|
|
20568
21456
|
};
|
|
20569
21457
|
|
|
20570
|
-
return x
|
|
20571
|
-
<div
|
|
20572
|
-
|
|
20573
|
-
|
|
20574
|
-
|
|
20575
|
-
${this.
|
|
20576
|
-
|
|
20577
|
-
|
|
20578
|
-
|
|
20579
|
-
|
|
20580
|
-
|
|
20581
|
-
|
|
21458
|
+
return x`
|
|
21459
|
+
<div class="componentWrapper">
|
|
21460
|
+
<div
|
|
21461
|
+
class="${e(svgClasses)}"
|
|
21462
|
+
title="${o(this.title || undefined)}">
|
|
21463
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
21464
|
+
${this.customSvg ? x`
|
|
21465
|
+
<slot name="svg"></slot>
|
|
21466
|
+
` : x`
|
|
21467
|
+
${this.svg}
|
|
21468
|
+
`
|
|
21469
|
+
}
|
|
21470
|
+
</span>
|
|
21471
|
+
</div>
|
|
20582
21472
|
|
|
20583
|
-
<div class="${e
|
|
21473
|
+
<div class="${e(labelClasses)}">
|
|
20584
21474
|
<slot></slot>
|
|
20585
21475
|
</div>
|
|
20586
21476
|
</div>
|
|
@@ -20590,17 +21480,197 @@ class AuroIcon extends BaseIcon {
|
|
|
20590
21480
|
|
|
20591
21481
|
var iconVersion = '6.1.2';
|
|
20592
21482
|
|
|
20593
|
-
|
|
21483
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21484
|
+
// See LICENSE in the project root for license information.
|
|
21485
|
+
|
|
21486
|
+
|
|
21487
|
+
class AuroDependencyVersioning {
|
|
21488
|
+
|
|
21489
|
+
/**
|
|
21490
|
+
* Generates a unique string to be used for child auro element naming.
|
|
21491
|
+
* @private
|
|
21492
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
21493
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
21494
|
+
* @returns {string} - Unique string to be used for naming.
|
|
21495
|
+
*/
|
|
21496
|
+
generateElementName(baseName, version) {
|
|
21497
|
+
let result = baseName;
|
|
21498
|
+
|
|
21499
|
+
result += '-';
|
|
21500
|
+
result += version.replace(/[.]/g, '_');
|
|
21501
|
+
|
|
21502
|
+
return result;
|
|
21503
|
+
}
|
|
21504
|
+
|
|
21505
|
+
/**
|
|
21506
|
+
* Generates a unique string to be used for child auro element naming.
|
|
21507
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
21508
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
21509
|
+
* @returns {string} - Unique string to be used for naming.
|
|
21510
|
+
*/
|
|
21511
|
+
generateTag(baseName, version, tagClass) {
|
|
21512
|
+
const elementName = this.generateElementName(baseName, version);
|
|
21513
|
+
const tag = i$2`${s$1(elementName)}`;
|
|
21514
|
+
|
|
21515
|
+
if (!customElements.get(elementName)) {
|
|
21516
|
+
customElements.define(elementName, class extends tagClass {});
|
|
21517
|
+
}
|
|
21518
|
+
|
|
21519
|
+
return tag;
|
|
21520
|
+
}
|
|
21521
|
+
}
|
|
21522
|
+
|
|
21523
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21524
|
+
// See LICENSE in the project root for license information.
|
|
21525
|
+
|
|
21526
|
+
// ---------------------------------------------------------------------
|
|
21527
|
+
|
|
21528
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21529
|
+
|
|
21530
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
21531
|
+
|
|
21532
|
+
/* eslint-disable jsdoc/require-param */
|
|
21533
|
+
|
|
21534
|
+
/**
|
|
21535
|
+
* This will register a new custom element with the browser.
|
|
21536
|
+
* @param {String} name - The name of the custom element.
|
|
21537
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
21538
|
+
* @returns {void}
|
|
21539
|
+
*/
|
|
21540
|
+
registerComponent(name, componentClass) {
|
|
21541
|
+
if (!customElements.get(name)) {
|
|
21542
|
+
customElements.define(name, class extends componentClass {});
|
|
21543
|
+
}
|
|
21544
|
+
}
|
|
21545
|
+
|
|
21546
|
+
/**
|
|
21547
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
21548
|
+
* @returns {void}
|
|
21549
|
+
*/
|
|
21550
|
+
closestElement(
|
|
21551
|
+
selector, // selector like in .closest()
|
|
21552
|
+
base = this, // extra functionality to skip a parent
|
|
21553
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21554
|
+
!el || el === document || el === window
|
|
21555
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
21556
|
+
: found
|
|
21557
|
+
? found // found a selector INside this element
|
|
21558
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21559
|
+
) {
|
|
21560
|
+
return __Closest(base);
|
|
21561
|
+
}
|
|
21562
|
+
/* eslint-enable jsdoc/require-param */
|
|
21563
|
+
|
|
21564
|
+
/**
|
|
21565
|
+
* 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.
|
|
21566
|
+
* @param {Object} elem - The element to check.
|
|
21567
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21568
|
+
* @returns {void}
|
|
21569
|
+
*/
|
|
21570
|
+
handleComponentTagRename(elem, tagName) {
|
|
21571
|
+
const tag = tagName.toLowerCase();
|
|
21572
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21573
|
+
|
|
21574
|
+
if (elemTag !== tag) {
|
|
21575
|
+
elem.setAttribute(tag, true);
|
|
21576
|
+
}
|
|
21577
|
+
}
|
|
21578
|
+
|
|
21579
|
+
/**
|
|
21580
|
+
* Validates if an element is a specific Auro component.
|
|
21581
|
+
* @param {Object} elem - The element to validate.
|
|
21582
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
21583
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21584
|
+
*/
|
|
21585
|
+
elementMatch(elem, tagName) {
|
|
21586
|
+
const tag = tagName.toLowerCase();
|
|
21587
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21588
|
+
|
|
21589
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
21590
|
+
}
|
|
21591
|
+
};
|
|
21592
|
+
|
|
21593
|
+
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}`;
|
|
21594
|
+
|
|
21595
|
+
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}`;
|
|
21596
|
+
|
|
21597
|
+
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}`;
|
|
21598
|
+
|
|
21599
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21600
|
+
// See LICENSE in the project root for license information.
|
|
21601
|
+
|
|
21602
|
+
// ---------------------------------------------------------------------
|
|
21603
|
+
|
|
21604
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21605
|
+
|
|
21606
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
21607
|
+
|
|
21608
|
+
/* eslint-disable jsdoc/require-param */
|
|
21609
|
+
|
|
21610
|
+
/**
|
|
21611
|
+
* This will register a new custom element with the browser.
|
|
21612
|
+
* @param {String} name - The name of the custom element.
|
|
21613
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
21614
|
+
* @returns {void}
|
|
21615
|
+
*/
|
|
21616
|
+
registerComponent(name, componentClass) {
|
|
21617
|
+
if (!customElements.get(name)) {
|
|
21618
|
+
customElements.define(name, class extends componentClass {});
|
|
21619
|
+
}
|
|
21620
|
+
}
|
|
21621
|
+
|
|
21622
|
+
/**
|
|
21623
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
21624
|
+
* @returns {void}
|
|
21625
|
+
*/
|
|
21626
|
+
closestElement(
|
|
21627
|
+
selector, // selector like in .closest()
|
|
21628
|
+
base = this, // extra functionality to skip a parent
|
|
21629
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21630
|
+
!el || el === document || el === window
|
|
21631
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
21632
|
+
: found
|
|
21633
|
+
? found // found a selector INside this element
|
|
21634
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21635
|
+
) {
|
|
21636
|
+
return __Closest(base);
|
|
21637
|
+
}
|
|
21638
|
+
/* eslint-enable jsdoc/require-param */
|
|
21639
|
+
|
|
21640
|
+
/**
|
|
21641
|
+
* 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.
|
|
21642
|
+
* @param {Object} elem - The element to check.
|
|
21643
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21644
|
+
* @returns {void}
|
|
21645
|
+
*/
|
|
21646
|
+
handleComponentTagRename(elem, tagName) {
|
|
21647
|
+
const tag = tagName.toLowerCase();
|
|
21648
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
21649
|
+
|
|
21650
|
+
if (elemTag !== tag) {
|
|
21651
|
+
elem.setAttribute(tag, true);
|
|
21652
|
+
}
|
|
21653
|
+
}
|
|
20594
21654
|
|
|
20595
|
-
var colorCss$2 = i$6`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
21655
|
+
/**
|
|
21656
|
+
* Validates if an element is a specific Auro component.
|
|
21657
|
+
* @param {Object} elem - The element to validate.
|
|
21658
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
21659
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21660
|
+
*/
|
|
21661
|
+
elementMatch(elem, tagName) {
|
|
21662
|
+
const tag = tagName.toLowerCase();
|
|
21663
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
20596
21664
|
|
|
20597
|
-
|
|
21665
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
21666
|
+
}
|
|
21667
|
+
};
|
|
20598
21668
|
|
|
20599
|
-
var styleCss$1 = i$6
|
|
21669
|
+
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}}`;
|
|
20600
21670
|
|
|
20601
|
-
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:
|
|
21671
|
+
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}`;
|
|
20602
21672
|
|
|
20603
|
-
var tokensCss$1 = i$6`:host{--ds-auro-loader-background-color:
|
|
21673
|
+
var tokensCss$1 = i$6`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
20604
21674
|
|
|
20605
21675
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20606
21676
|
// See LICENSE in the project root for license information.
|
|
@@ -20625,7 +21695,7 @@ var tokensCss$1 = i$6`:host{--ds-auro-loader-background-color: currentcolor;--ds
|
|
|
20625
21695
|
*/
|
|
20626
21696
|
|
|
20627
21697
|
// build the component class
|
|
20628
|
-
class AuroLoader extends r$
|
|
21698
|
+
class AuroLoader extends r$3 {
|
|
20629
21699
|
constructor() {
|
|
20630
21700
|
super();
|
|
20631
21701
|
|
|
@@ -20727,14 +21797,14 @@ class AuroLoader extends r$4 {
|
|
|
20727
21797
|
|
|
20728
21798
|
// function that renders the HTML and CSS into the scope of the component
|
|
20729
21799
|
render() {
|
|
20730
|
-
return x
|
|
20731
|
-
${this.defineTemplate().map((idx) => x
|
|
21800
|
+
return x`
|
|
21801
|
+
${this.defineTemplate().map((idx) => x`
|
|
20732
21802
|
<span part="element" class="loader node-${idx}"></span>
|
|
20733
21803
|
`)}
|
|
20734
21804
|
|
|
20735
21805
|
<div class="no-animation">Loading...</div>
|
|
20736
21806
|
|
|
20737
|
-
${this.ringworm ? x
|
|
21807
|
+
${this.ringworm ? x`
|
|
20738
21808
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
20739
21809
|
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
20740
21810
|
</svg>`
|
|
@@ -20744,7 +21814,7 @@ class AuroLoader extends r$4 {
|
|
|
20744
21814
|
}
|
|
20745
21815
|
}
|
|
20746
21816
|
|
|
20747
|
-
var loaderVersion = '
|
|
21817
|
+
var loaderVersion = '4.0.0';
|
|
20748
21818
|
|
|
20749
21819
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
20750
21820
|
// See LICENSE in the project root for license information.
|
|
@@ -20780,10 +21850,20 @@ var loaderVersion = '3.1.1';
|
|
|
20780
21850
|
|
|
20781
21851
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
20782
21852
|
|
|
20783
|
-
class AuroButton extends r$
|
|
21853
|
+
class AuroButton extends r$3 {
|
|
21854
|
+
|
|
21855
|
+
/**
|
|
21856
|
+
* Enables form association for this element.
|
|
21857
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
|
|
21858
|
+
* @returns {boolean} - Returns true to enable form association.
|
|
21859
|
+
*/
|
|
21860
|
+
static get formAssociated() {
|
|
21861
|
+
return true;
|
|
21862
|
+
}
|
|
20784
21863
|
|
|
20785
21864
|
constructor() {
|
|
20786
21865
|
super();
|
|
21866
|
+
|
|
20787
21867
|
this.autofocus = false;
|
|
20788
21868
|
this.disabled = false;
|
|
20789
21869
|
this.iconOnly = false;
|
|
@@ -20796,6 +21876,16 @@ class AuroButton extends r$4 {
|
|
|
20796
21876
|
this.slim = false;
|
|
20797
21877
|
this.fluid = false;
|
|
20798
21878
|
|
|
21879
|
+
// Support for HTML5 forms
|
|
21880
|
+
if (typeof this.attachInternals === 'function') {
|
|
21881
|
+
this.internals = this.attachInternals();
|
|
21882
|
+
} else {
|
|
21883
|
+
this.internals = null;
|
|
21884
|
+
|
|
21885
|
+
// eslint-disable-next-line no-console
|
|
21886
|
+
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.');
|
|
21887
|
+
}
|
|
21888
|
+
|
|
20799
21889
|
/**
|
|
20800
21890
|
* Generate unique names for dependency components.
|
|
20801
21891
|
*/
|
|
@@ -20894,7 +21984,7 @@ class AuroButton extends r$4 {
|
|
|
20894
21984
|
*
|
|
20895
21985
|
*/
|
|
20896
21986
|
static register(name = "auro-button") {
|
|
20897
|
-
AuroLibraryRuntimeUtils$
|
|
21987
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
20898
21988
|
}
|
|
20899
21989
|
|
|
20900
21990
|
/**
|
|
@@ -20936,6 +22026,16 @@ class AuroButton extends r$4 {
|
|
|
20936
22026
|
this.notifyReady();
|
|
20937
22027
|
}
|
|
20938
22028
|
|
|
22029
|
+
surfaceSubmitEvent() {
|
|
22030
|
+
if (this.form) {
|
|
22031
|
+
this.form.requestSubmit();
|
|
22032
|
+
}
|
|
22033
|
+
}
|
|
22034
|
+
|
|
22035
|
+
get form() {
|
|
22036
|
+
return this.internals ? this.internals.form : null;
|
|
22037
|
+
}
|
|
22038
|
+
|
|
20939
22039
|
render() {
|
|
20940
22040
|
const classes = {
|
|
20941
22041
|
'util_insetLg--squish': true,
|
|
@@ -20948,27 +22048,27 @@ class AuroButton extends r$4 {
|
|
|
20948
22048
|
'loading': this.loading
|
|
20949
22049
|
};
|
|
20950
22050
|
|
|
20951
|
-
return u$
|
|
22051
|
+
return u$2`
|
|
20952
22052
|
<button
|
|
20953
22053
|
part="button"
|
|
20954
|
-
aria-label="${o
|
|
20955
|
-
aria-labelledby="${o
|
|
22054
|
+
aria-label="${o(this.arialabel ? this.arialabel : undefined)}"
|
|
22055
|
+
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
20956
22056
|
?autofocus="${this.autofocus}"
|
|
20957
|
-
class="${e
|
|
22057
|
+
class="${e(classes)}"
|
|
20958
22058
|
?disabled="${this.disabled || this.loading}"
|
|
20959
22059
|
?onDark="${this.onDark}"
|
|
20960
|
-
title="${o
|
|
20961
|
-
name="${o
|
|
20962
|
-
type="${o
|
|
20963
|
-
variant="${o
|
|
20964
|
-
.value="${o
|
|
20965
|
-
@click="${
|
|
22060
|
+
title="${o(this.title ? this.title : undefined)}"
|
|
22061
|
+
name="${o(this.name ? this.name : undefined)}"
|
|
22062
|
+
type="${o(this.type ? this.type : undefined)}"
|
|
22063
|
+
variant="${o(this.variant ? this.variant : undefined)}"
|
|
22064
|
+
.value="${o(this.value ? this.value : undefined)}"
|
|
22065
|
+
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
20966
22066
|
>
|
|
20967
|
-
${o
|
|
22067
|
+
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
20968
22068
|
|
|
20969
22069
|
<span class="contentWrapper">
|
|
20970
22070
|
<span class="textSlot" part="text">
|
|
20971
|
-
${this.iconOnly ? undefined : u$
|
|
22071
|
+
${this.iconOnly ? undefined : u$2`<slot></slot>`}
|
|
20972
22072
|
</span>
|
|
20973
22073
|
|
|
20974
22074
|
<span part="icon">
|
|
@@ -20982,37 +22082,11 @@ class AuroButton extends r$4 {
|
|
|
20982
22082
|
|
|
20983
22083
|
var buttonVersion = '8.2.2';
|
|
20984
22084
|
|
|
20985
|
-
|
|
20986
|
-
* @license
|
|
20987
|
-
* Copyright 2019 Google LLC
|
|
20988
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
20989
|
-
*/
|
|
20990
|
-
const t$1=globalThis,e$2=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1=Symbol(),o$2=new WeakMap;let n$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$2("string"==typeof t?t:t+"",void 0,s$1),i$3=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$2(o,t,s$1)},S$1=(s,o)=>{if(e$2)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
|
|
20991
|
-
|
|
20992
|
-
/**
|
|
20993
|
-
* @license
|
|
20994
|
-
* Copyright 2017 Google LLC
|
|
20995
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
20996
|
-
*/const{is:i$2,defineProperty:e$1,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$1,getPrototypeOf:n$1}=Object,a$1=globalThis,c$1=a$1.trustedTypes,l$1=c$1?c$1.emptyScript:"",p$1=a$1.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$2(t,s),y$1={attribute:true,type:String,converter:u$1,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$1.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$1.reactiveElementVersions??=[]).push("2.0.4");
|
|
20997
|
-
|
|
20998
|
-
/**
|
|
20999
|
-
* @license
|
|
21000
|
-
* Copyright 2017 Google LLC
|
|
21001
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21002
|
-
*/
|
|
21003
|
-
const t=globalThis,i$1=t.trustedTypes,s=i$1?i$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o="?"+h,n=`<${o}>`,r$1=document,l=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=Array.isArray,u=t=>a(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$1?i$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j=t.litHtmlPolyfillSupport;j?.(N,R),(t.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
21004
|
-
|
|
21005
|
-
/**
|
|
21006
|
-
* @license
|
|
21007
|
-
* Copyright 2017 Google LLC
|
|
21008
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
21009
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
21010
|
-
|
|
21011
|
-
var colorCss = i$3`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
22085
|
+
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)}`;
|
|
21012
22086
|
|
|
21013
|
-
var styleCss = i$
|
|
22087
|
+
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}`;
|
|
21014
22088
|
|
|
21015
|
-
var tokensCss = i$
|
|
22089
|
+
var tokensCss = i$6`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
21016
22090
|
|
|
21017
22091
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21018
22092
|
// See LICENSE in the project root for license information.
|
|
@@ -21093,7 +22167,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
21093
22167
|
*
|
|
21094
22168
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
21095
22169
|
*/
|
|
21096
|
-
class AuroHelpText extends r {
|
|
22170
|
+
class AuroHelpText extends r$3 {
|
|
21097
22171
|
|
|
21098
22172
|
constructor() {
|
|
21099
22173
|
super();
|
|
@@ -21219,22 +22293,22 @@ class AuroInput extends BaseInput {
|
|
|
21219
22293
|
/**
|
|
21220
22294
|
* Generate unique names for dependency components.
|
|
21221
22295
|
*/
|
|
21222
|
-
const versioning = new AuroDependencyVersioning();
|
|
22296
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
21223
22297
|
|
|
21224
22298
|
/**
|
|
21225
22299
|
* @private
|
|
21226
22300
|
*/
|
|
21227
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
22301
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
21228
22302
|
|
|
21229
22303
|
/**
|
|
21230
22304
|
* @private
|
|
21231
22305
|
*/
|
|
21232
|
-
this.buttonTag = versioning.generateTag('auro-button', buttonVersion, AuroButton);
|
|
22306
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
21233
22307
|
|
|
21234
22308
|
/**
|
|
21235
22309
|
* @private
|
|
21236
22310
|
*/
|
|
21237
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
22311
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
21238
22312
|
}
|
|
21239
22313
|
|
|
21240
22314
|
/**
|
|
@@ -21246,7 +22320,7 @@ class AuroInput extends BaseInput {
|
|
|
21246
22320
|
*
|
|
21247
22321
|
*/
|
|
21248
22322
|
static register(name = "auro-input") {
|
|
21249
|
-
AuroLibraryRuntimeUtils$
|
|
22323
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroInput);
|
|
21250
22324
|
}
|
|
21251
22325
|
|
|
21252
22326
|
/**
|
|
@@ -21271,7 +22345,7 @@ class AuroInput extends BaseInput {
|
|
|
21271
22345
|
'withValue': this.value && this.value.length > 0
|
|
21272
22346
|
};
|
|
21273
22347
|
|
|
21274
|
-
return u$
|
|
22348
|
+
return u$2`
|
|
21275
22349
|
<div class="wrapper" part="wrapper">
|
|
21276
22350
|
<div class="main">
|
|
21277
22351
|
<div class="typeIcon">
|
|
@@ -21280,7 +22354,7 @@ class AuroInput extends BaseInput {
|
|
|
21280
22354
|
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
21281
22355
|
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
21282
22356
|
${this.inputIconName
|
|
21283
|
-
? c
|
|
22357
|
+
? c([this.inputIconName], (val) => val, (name) => u$2`
|
|
21284
22358
|
<${this.iconTag}
|
|
21285
22359
|
class="accentIcon"
|
|
21286
22360
|
category="payment"
|
|
@@ -21292,7 +22366,7 @@ class AuroInput extends BaseInput {
|
|
|
21292
22366
|
}
|
|
21293
22367
|
|
|
21294
22368
|
${this.type === 'date'
|
|
21295
|
-
? u$
|
|
22369
|
+
? u$2`
|
|
21296
22370
|
<${this.iconTag}
|
|
21297
22371
|
class="accentIcon"
|
|
21298
22372
|
category="interface"
|
|
@@ -21303,7 +22377,7 @@ class AuroInput extends BaseInput {
|
|
|
21303
22377
|
: undefined
|
|
21304
22378
|
}
|
|
21305
22379
|
</div>
|
|
21306
|
-
<label for=${this.id} class="${e
|
|
22380
|
+
<label for=${this.id} class="${e(labelClasses)}" part="label">
|
|
21307
22381
|
<slot name="label">
|
|
21308
22382
|
${this.label}
|
|
21309
22383
|
</slot>
|
|
@@ -21314,23 +22388,23 @@ class AuroInput extends BaseInput {
|
|
|
21314
22388
|
@focusin="${this.handleFocusin}"
|
|
21315
22389
|
@blur="${this.handleBlur}"
|
|
21316
22390
|
id="${this.id}"
|
|
21317
|
-
name="${o
|
|
22391
|
+
name="${o(this.name)}"
|
|
21318
22392
|
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
|
|
21319
|
-
pattern="${o
|
|
21320
|
-
maxlength="${o
|
|
21321
|
-
minlength="${o
|
|
21322
|
-
inputMode="${o
|
|
22393
|
+
pattern="${o(this.definePattern())}"
|
|
22394
|
+
maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
|
|
22395
|
+
minlength="${o(this.minLength ? this.minLength : undefined)}"
|
|
22396
|
+
inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
|
|
21323
22397
|
?required="${this.required}"
|
|
21324
22398
|
?disabled="${this.disabled}"
|
|
21325
22399
|
aria-describedby="${this.uniqueId}"
|
|
21326
22400
|
aria-invalid="${this.validity !== 'valid'}"
|
|
21327
22401
|
placeholder=${this.getPlaceholder()}
|
|
21328
|
-
lang="${o
|
|
22402
|
+
lang="${o(this.lang)}"
|
|
21329
22403
|
?activeLabel="${this.activeLabel}"
|
|
21330
|
-
spellcheck="${o
|
|
21331
|
-
autocorrect="${o
|
|
21332
|
-
autocapitalize="${o
|
|
21333
|
-
autocomplete="${o
|
|
22404
|
+
spellcheck="${o(this.spellcheck ? this.spellcheck : undefined)}"
|
|
22405
|
+
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
22406
|
+
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
22407
|
+
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
21334
22408
|
part="input"
|
|
21335
22409
|
/>
|
|
21336
22410
|
</div>
|
|
@@ -21338,7 +22412,7 @@ class AuroInput extends BaseInput {
|
|
|
21338
22412
|
class="notificationIcons"
|
|
21339
22413
|
part="notificationIcons"
|
|
21340
22414
|
?hasValue="${this.hasValue}">
|
|
21341
|
-
${this.validity && this.validity !== 'valid' ? u$
|
|
22415
|
+
${this.validity && this.validity !== 'valid' ? u$2`
|
|
21342
22416
|
<div class="notification alertNotification">
|
|
21343
22417
|
<${this.iconTag}
|
|
21344
22418
|
category="alert"
|
|
@@ -21347,8 +22421,8 @@ class AuroInput extends BaseInput {
|
|
|
21347
22421
|
</${this.iconTag}>
|
|
21348
22422
|
</div>
|
|
21349
22423
|
` : undefined}
|
|
21350
|
-
${this.hasValue ? u$
|
|
21351
|
-
${this.type === 'password' ? u$
|
|
22424
|
+
${this.hasValue ? u$2`
|
|
22425
|
+
${this.type === 'password' ? u$2`
|
|
21352
22426
|
<div class="notification">
|
|
21353
22427
|
<${this.buttonTag}
|
|
21354
22428
|
variant="flat"
|
|
@@ -21371,7 +22445,7 @@ class AuroInput extends BaseInput {
|
|
|
21371
22445
|
</${this.buttonTag}>
|
|
21372
22446
|
</div>
|
|
21373
22447
|
` : undefined}
|
|
21374
|
-
${!this.disabled && !this.readonly ? u$
|
|
22448
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
21375
22449
|
<div class="notification">
|
|
21376
22450
|
<${this.buttonTag}
|
|
21377
22451
|
variant="flat"
|
|
@@ -21392,14 +22466,14 @@ class AuroInput extends BaseInput {
|
|
|
21392
22466
|
</div>
|
|
21393
22467
|
<!-- Help text and error message template -->
|
|
21394
22468
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
21395
|
-
? u$
|
|
22469
|
+
? u$2`
|
|
21396
22470
|
<${this.helpTextTag}>
|
|
21397
22471
|
<p id="${this.uniqueId}" part="helpText">
|
|
21398
22472
|
<slot name="helptext">${this.getHelpText()}</slot>
|
|
21399
22473
|
</p>
|
|
21400
22474
|
</${this.helpTextTag}>
|
|
21401
22475
|
`
|
|
21402
|
-
: u$
|
|
22476
|
+
: u$2`
|
|
21403
22477
|
<${this.helpTextTag} error>
|
|
21404
22478
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
21405
22479
|
${this.errorMessage}
|
|
@@ -21441,7 +22515,7 @@ var inputVersion = '4.2.0';
|
|
|
21441
22515
|
*/
|
|
21442
22516
|
|
|
21443
22517
|
// build the component class
|
|
21444
|
-
class AuroDatePicker extends r$
|
|
22518
|
+
class AuroDatePicker extends r$3 {
|
|
21445
22519
|
constructor() {
|
|
21446
22520
|
super();
|
|
21447
22521
|
|
|
@@ -21504,7 +22578,7 @@ class AuroDatePicker extends r$c {
|
|
|
21504
22578
|
/**
|
|
21505
22579
|
* @private
|
|
21506
22580
|
*/
|
|
21507
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
22581
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$9();
|
|
21508
22582
|
|
|
21509
22583
|
/**
|
|
21510
22584
|
* @private
|
|
@@ -21514,17 +22588,17 @@ class AuroDatePicker extends r$c {
|
|
|
21514
22588
|
/**
|
|
21515
22589
|
* Generate unique names for dependency components.
|
|
21516
22590
|
*/
|
|
21517
|
-
const versioning = new AuroDependencyVersioning$
|
|
22591
|
+
const versioning = new AuroDependencyVersioning$5();
|
|
21518
22592
|
|
|
21519
22593
|
/**
|
|
21520
22594
|
* @private
|
|
21521
22595
|
*/
|
|
21522
|
-
this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
|
|
22596
|
+
this.dropdownTag = versioning.generateTag('auro-formkit-datepicker-dropdown', dropdownVersion, AuroDropdown);
|
|
21523
22597
|
|
|
21524
22598
|
/**
|
|
21525
22599
|
* @private
|
|
21526
22600
|
*/
|
|
21527
|
-
this.inputTag = versioning.generateTag('auro-input', inputVersion, AuroInput);
|
|
22601
|
+
this.inputTag = versioning.generateTag('auro-formkit-datepicker-input', inputVersion, AuroInput);
|
|
21528
22602
|
|
|
21529
22603
|
/**
|
|
21530
22604
|
* @private
|
|
@@ -21690,6 +22764,14 @@ class AuroDatePicker extends r$c {
|
|
|
21690
22764
|
type: String
|
|
21691
22765
|
},
|
|
21692
22766
|
|
|
22767
|
+
/**
|
|
22768
|
+
* Set true to make datepicker stacked style.
|
|
22769
|
+
*/
|
|
22770
|
+
stacked: {
|
|
22771
|
+
type: Boolean,
|
|
22772
|
+
reflect: true,
|
|
22773
|
+
},
|
|
22774
|
+
|
|
21693
22775
|
/**
|
|
21694
22776
|
* Specifies the `validityState` this element is in.
|
|
21695
22777
|
*/
|
|
@@ -21716,9 +22798,9 @@ class AuroDatePicker extends r$c {
|
|
|
21716
22798
|
|
|
21717
22799
|
static get styles() {
|
|
21718
22800
|
return [
|
|
21719
|
-
styleCss$
|
|
21720
|
-
colorCss$
|
|
21721
|
-
tokensCss$
|
|
22801
|
+
styleCss$d,
|
|
22802
|
+
colorCss$d,
|
|
22803
|
+
tokensCss$a
|
|
21722
22804
|
];
|
|
21723
22805
|
}
|
|
21724
22806
|
|
|
@@ -21731,7 +22813,7 @@ class AuroDatePicker extends r$c {
|
|
|
21731
22813
|
*
|
|
21732
22814
|
*/
|
|
21733
22815
|
static register(name = "auro-datepicker") {
|
|
21734
|
-
AuroLibraryRuntimeUtils$
|
|
22816
|
+
AuroLibraryRuntimeUtils$9.prototype.registerComponent(name, AuroDatePicker);
|
|
21735
22817
|
}
|
|
21736
22818
|
|
|
21737
22819
|
/**
|
|
@@ -21948,9 +23030,10 @@ class AuroDatePicker extends r$c {
|
|
|
21948
23030
|
* @returns {void}
|
|
21949
23031
|
*/
|
|
21950
23032
|
configureCalendar() {
|
|
21951
|
-
this.calendar = this.shadowRoot.querySelector('auro-calendar');
|
|
23033
|
+
this.calendar = this.shadowRoot.querySelector('auro-formkit-calendar');
|
|
21952
23034
|
this.calendar.datepicker = this;
|
|
21953
23035
|
this.calendar.format = this.format;
|
|
23036
|
+
this.calendar.dropdown = this.dropdown;
|
|
21954
23037
|
|
|
21955
23038
|
this.calendar.addEventListener('auroCalendar-dateSelected', () => {
|
|
21956
23039
|
if (this.inputList[0].value !== this.calendar.dateFrom && this.calendar.dateFrom !== undefined) {
|
|
@@ -22374,7 +23457,7 @@ class AuroDatePicker extends r$c {
|
|
|
22374
23457
|
|
|
22375
23458
|
// function that renders the HTML and CSS into the scope of the component
|
|
22376
23459
|
render() {
|
|
22377
|
-
return u$
|
|
23460
|
+
return u$2`
|
|
22378
23461
|
<div class="outerWrapper">
|
|
22379
23462
|
<${this.dropdownTag}
|
|
22380
23463
|
for="dropdownMenu"
|
|
@@ -22407,7 +23490,7 @@ class AuroDatePicker extends r$c {
|
|
|
22407
23490
|
part="input">
|
|
22408
23491
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
22409
23492
|
</${this.inputTag}>
|
|
22410
|
-
${this.range ? u$
|
|
23493
|
+
${this.range ? u$2`
|
|
22411
23494
|
<${this.inputTag}
|
|
22412
23495
|
id="${this.generateRandomString(12)}"
|
|
22413
23496
|
bordered
|
|
@@ -22430,7 +23513,7 @@ class AuroDatePicker extends r$c {
|
|
|
22430
23513
|
` : undefined}
|
|
22431
23514
|
</div>
|
|
22432
23515
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
22433
|
-
<auro-calendar
|
|
23516
|
+
<auro-formkit-calendar
|
|
22434
23517
|
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|
|
22435
23518
|
?noRange="${!this.range}"
|
|
22436
23519
|
.format="${this.format}"
|
|
@@ -22444,16 +23527,16 @@ class AuroDatePicker extends r$c {
|
|
|
22444
23527
|
>
|
|
22445
23528
|
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
22446
23529
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
22447
|
-
<span slot="bib.fullscreen.fromStr">${this.value || u$
|
|
22448
|
-
${this.range ? u$
|
|
22449
|
-
</auro-calendar>
|
|
23530
|
+
<span slot="bib.fullscreen.fromStr">${this.value || u$2`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
23531
|
+
${this.range ? u$2`<span slot="mobileDateToStr">${this.valueEnd || u$2`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
23532
|
+
</auro-formkit-calendar>
|
|
22450
23533
|
</div>
|
|
22451
23534
|
<p slot="helpText" part="helpTextSpan">
|
|
22452
23535
|
<!-- Help text and error message template -->
|
|
22453
23536
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
22454
|
-
? u$
|
|
23537
|
+
? u$2`
|
|
22455
23538
|
<slot name="helpText"></slot>
|
|
22456
|
-
` : u$
|
|
23539
|
+
` : u$2`
|
|
22457
23540
|
<span role="alert" aria-live="assertive" part="helpText">
|
|
22458
23541
|
${this.errorMessage}
|
|
22459
23542
|
</span>`
|