@aurodesignsystem/auro-formkit 2.0.0-beta.44 → 2.0.0-beta.46
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 +26 -0
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +292 -42
- package/components/checkbox/demo/index.min.js +292 -42
- package/components/checkbox/dist/auro-checkbox-group.d.ts +5 -1
- package/components/checkbox/dist/helptextVersion.d.ts +2 -0
- package/components/checkbox/dist/index.js +292 -42
- package/components/checkbox/dist/registered.js +292 -42
- package/components/combobox/README.md +6 -6
- package/components/combobox/demo/api.md +46 -43
- package/components/combobox/demo/api.min.js +494 -97
- package/components/combobox/demo/index.md +16 -16
- package/components/combobox/demo/index.min.js +494 -97
- package/components/combobox/dist/auro-combobox.d.ts +3 -2
- package/components/combobox/dist/index.js +483 -86
- package/components/combobox/dist/registered.js +483 -86
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.js +2 -1
- package/components/counter/demo/api.md +88 -14
- package/components/counter/demo/api.min.js +1259 -182
- package/components/counter/demo/index.md +6 -0
- package/components/counter/demo/index.min.js +1232 -182
- package/components/counter/dist/auro-counter-group.d.ts +31 -0
- package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
- package/components/counter/dist/index.js +1232 -182
- package/components/counter/dist/registered.js +1232 -182
- package/components/datepicker/README.md +4 -4
- package/components/datepicker/demo/api.min.js +550 -154
- package/components/datepicker/demo/index.min.js +550 -154
- package/components/datepicker/dist/index.js +550 -154
- package/components/datepicker/dist/registered.js +550 -154
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +23 -23
- package/components/dropdown/demo/api.min.js +239 -41
- package/components/dropdown/demo/index.min.js +239 -41
- package/components/dropdown/dist/auro-dropdown.d.ts +5 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +1 -1
- package/components/dropdown/dist/helptextVersion.d.ts +2 -0
- package/components/dropdown/dist/index.js +239 -41
- package/components/dropdown/dist/registered.js +239 -41
- package/components/form/README.md +1 -1
- package/components/helptext/dist/index.js +2 -0
- package/components/helptext/dist/registered.js +2 -0
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +249 -51
- package/components/input/demo/index.min.js +249 -51
- package/components/input/dist/auro-input.d.ts +4 -0
- package/components/input/dist/helptextVersion.d.ts +2 -0
- package/components/input/dist/index.js +249 -51
- package/components/input/dist/registered.js +249 -51
- package/components/menu/README.md +1 -1
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.min.js +291 -41
- package/components/radio/demo/index.min.js +291 -41
- package/components/radio/dist/auro-radio-group.d.ts +5 -1
- package/components/radio/dist/helptextVersion.d.ts +2 -0
- package/components/radio/dist/index.js +291 -41
- package/components/radio/dist/registered.js +291 -41
- package/components/select/README.md +3 -3
- package/components/select/demo/api.min.js +257 -59
- package/components/select/demo/index.min.js +257 -59
- package/components/select/dist/index.js +246 -48
- package/components/select/dist/registered.js +246 -48
- package/package.json +1 -1
|
@@ -3,64 +3,64 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const t$
|
|
6
|
+
const t$8=globalThis,e$d=t$8.ShadowRoot&&(void 0===t$8.ShadyCSS||t$8.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$8=Symbol(),o$d=new WeakMap;let n$b = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$8)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$d&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$d.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$d.set(s,t));}return t}toString(){return this.cssText}};const r$c=t=>new n$b("string"==typeof t?t:t+"",void 0,s$8),i$g=(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$b(o,t,s$8)},S$6=(s,o)=>{if(e$d)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$8.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$9=e$d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$c(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$f,defineProperty:e$c,getOwnPropertyDescriptor:r$b,getOwnPropertyNames:h$6,getOwnPropertySymbols:o$c,getPrototypeOf:n$a}=Object,a$8=globalThis,c$8=a$8.trustedTypes,l$8=c$8?c$8.emptyScript:"",p$6=a$8.reactiveElementPolyfillSupport,d$6=(t,s)=>t,u$8={toAttribute(t,s){switch(s){case Boolean:t=t?l$8: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$6=(t,s)=>!i$f(t,s),y$6={attribute:true,type:String,converter:u$8,reflect:false,hasChanged:f$6};Symbol.metadata??=Symbol("metadata"),a$8.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$6){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$c(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$b(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$6}static _$Ei(){if(this.hasOwnProperty(d$6("elementProperties")))return;const t=n$a(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$6("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$6("properties"))){const t=this.properties,s=[...h$6(t),...o$c(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$9(s));}else void 0!==s&&i.push(c$9(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$6(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$8).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$8;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$6)(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$6("elementProperties")]=new Map,b$3[d$6("finalized")]=new Map,p$6?.({ReactiveElement:b$3}),(a$8.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$7=globalThis,i$e=t$7.trustedTypes,s$7=i$e?i$e.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$b="$lit$",h$5=`lit$${Math.random().toFixed(9).slice(2)}$`,o$b="?"+h$5,n$9=`<${o$b}>`,r$a=document,l$7=()=>r$a.createComment(""),c$7=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$7=Array.isArray,u$7=t=>a$7(t)||"function"==typeof t?.[Symbol.iterator],d$5="[ \t\n\f\r]",f$5=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,_$3=/>/g,m$3=RegExp(`>|${d$5}(?:([^\\s"'>=/]+)(${d$5}*=${d$5}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$5=/'/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$a.createTreeWalker(r$a,129);function P$3(t,i){if(!a$7(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$7?s$7.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$3:void 0!==u[1]?c=_$3:void 0!==u[2]?($$3.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$5,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$3:p$5):c===g$3||c===p$5?c=m$3:c===v$3||c===_$3?c=f$5:(c=m$3,r=void 0);const x=c===m$3&&t[i+1].startsWith("/>")?" ":"";l+=c===f$5?s+n$9:d>=0?(o.push(a),s.slice(0,d)+e$b+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$b)){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$e?i$e.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$7()),C$3.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$7());}}}else if(8===r.nodeType)if(r.data===o$b)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$a.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$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$5(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$a).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$a,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$7(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$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$3&&c$7(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$a.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$3(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$7(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$7()),this.O(l$7()),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$7(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$7(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$7.litHtmlPolyfillSupport;j$3?.(N$3,R$3),(t$7.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$7(),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$9 = 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$9._$litElement$=true,r$9["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$9});const i$d=globalThis.litElementPolyfillSupport;i$d?.({LitElement:r$9});(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$6=Symbol.for(""),o$a=t=>{if(t?.r===a$6)return t?._$litStatic$},s$6=t=>({_$litStatic$:t,r:a$6}),i$c=(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$a(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$6=n$8(x$3);
|
|
33
33
|
|
|
34
|
-
var styleButtonTokenCss = i$
|
|
34
|
+
var styleButtonTokenCss = i$g`:host{--ds-auro-counter-control-ui-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-border-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03))}`;
|
|
35
35
|
|
|
36
|
-
var styleButtonColorCss = i$
|
|
36
|
+
var styleButtonColorCss = i$g`.auroButton{border-color:unset;background-color:var(--ds-auro-counter-control-ui-bkg);color:var(--ds-auro-button-text-color);-webkit-tap-highlight-color:var(--ds-auro-button-tap-color)}@media(hover: hover){.auroButton:active:not(:disabled),.auroButton:hover:not(:disabled){background-color:var(--ds-auro-counter-control-ui-hover)}}`;
|
|
37
37
|
|
|
38
|
-
var styleButtonCss = i$
|
|
38
|
+
var styleButtonCss = i$g`*,*: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_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(svg){vertical-align:middle}slot{pointer-events:none}.contentWrapper{display:flex;align-items:center}.contentWrapper span{display:block;height:var(--ds-size-300, 1.5rem)}.auroButton{position:relative;display:inline-flex;overflow:visible;width:calc(var(--ds-size-50, 0.25rem) + var(--ds-size-400, 2rem));height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));flex-direction:row;align-items:center;justify-content:center;padding:var(--ds-auro-counter-control-padding);border:none;border-radius:var(--ds-auro-counter-control-border-radius);margin:0;cursor:pointer;gap:var(--ds-size-100, 0.5rem);line-height:unset;touch-action:manipulation;-webkit-touch-callout:none;user-select:none;white-space:nowrap}.auroButton:active .contentWrapper{transform:scale(0.95)}.auroButton:disabled{cursor:not-allowed;transform:unset}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline:none;transform:unset}`;
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
44
|
*/
|
|
45
|
-
const t$
|
|
45
|
+
const t$6={ATTRIBUTE:1},e$a=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)}};
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2018 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/const e$
|
|
51
|
+
*/const e$9=e$a(class extends i$b{constructor(t){if(super(t),t.type!==t$6.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$3}});
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2018 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/const o$
|
|
57
|
+
*/const o$9=o=>o??E$3;
|
|
58
58
|
|
|
59
59
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
60
60
|
// See LICENSE in the project root for license information.
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
let AuroDependencyVersioning$
|
|
63
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -86,7 +86,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
86
86
|
*/
|
|
87
87
|
generateTag(baseName, version, tagClass) {
|
|
88
88
|
const elementName = this.generateElementName(baseName, version);
|
|
89
|
-
const tag = i$
|
|
89
|
+
const tag = i$c`${s$6(elementName)}`;
|
|
90
90
|
|
|
91
91
|
if (!customElements.get(elementName)) {
|
|
92
92
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -103,7 +103,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
103
103
|
|
|
104
104
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
105
105
|
|
|
106
|
-
let AuroLibraryRuntimeUtils$
|
|
106
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
107
107
|
|
|
108
108
|
/* eslint-disable jsdoc/require-param */
|
|
109
109
|
|
|
@@ -166,17 +166,17 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
var styleCss$
|
|
169
|
+
var styleCss$9 = i$g`*,*: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_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}`;
|
|
170
170
|
|
|
171
|
-
var colorCss$7 = i$f`[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}`;
|
|
171
|
+
var colorCss$8 = i$g`[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}`;
|
|
172
172
|
|
|
173
|
-
var tokensCss$
|
|
173
|
+
var tokensCss$7 = i$g`: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}`;
|
|
174
174
|
|
|
175
|
-
var styleCss$
|
|
175
|
+
var styleCss$8 = i$g`*,*: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,: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}}`;
|
|
176
176
|
|
|
177
|
-
var colorCss$
|
|
177
|
+
var colorCss$7 = i$g`: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}`;
|
|
178
178
|
|
|
179
|
-
var tokensCss$
|
|
179
|
+
var tokensCss$6 = i$g`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}`;
|
|
180
180
|
|
|
181
181
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
182
182
|
// See LICENSE in the project root for license information.
|
|
@@ -201,7 +201,7 @@ var tokensCss$4 = i$f`:host{--ds-auro-loader-background-color: currentcolor;--ds
|
|
|
201
201
|
*/
|
|
202
202
|
|
|
203
203
|
// build the component class
|
|
204
|
-
class AuroLoader extends r$
|
|
204
|
+
class AuroLoader extends r$9 {
|
|
205
205
|
constructor() {
|
|
206
206
|
super();
|
|
207
207
|
|
|
@@ -223,7 +223,7 @@ class AuroLoader extends r$8 {
|
|
|
223
223
|
/**
|
|
224
224
|
* @private
|
|
225
225
|
*/
|
|
226
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
226
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
227
227
|
|
|
228
228
|
this.orbit = false;
|
|
229
229
|
this.ringworm = false;
|
|
@@ -255,9 +255,9 @@ class AuroLoader extends r$8 {
|
|
|
255
255
|
|
|
256
256
|
static get styles() {
|
|
257
257
|
return [
|
|
258
|
-
i$
|
|
259
|
-
i$
|
|
260
|
-
i$
|
|
258
|
+
i$g`${styleCss$8}`,
|
|
259
|
+
i$g`${colorCss$7}`,
|
|
260
|
+
i$g`${tokensCss$6}`
|
|
261
261
|
];
|
|
262
262
|
}
|
|
263
263
|
|
|
@@ -270,7 +270,7 @@ class AuroLoader extends r$8 {
|
|
|
270
270
|
*
|
|
271
271
|
*/
|
|
272
272
|
static register(name = "auro-loader") {
|
|
273
|
-
AuroLibraryRuntimeUtils$
|
|
273
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroLoader);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
firstUpdated() {
|
|
@@ -303,14 +303,14 @@ class AuroLoader extends r$8 {
|
|
|
303
303
|
|
|
304
304
|
// function that renders the HTML and CSS into the scope of the component
|
|
305
305
|
render() {
|
|
306
|
-
return x$
|
|
307
|
-
${this.defineTemplate().map((idx) => x$
|
|
306
|
+
return x$3`
|
|
307
|
+
${this.defineTemplate().map((idx) => x$3`
|
|
308
308
|
<span part="element" class="loader node-${idx}"></span>
|
|
309
309
|
`)}
|
|
310
310
|
|
|
311
311
|
<div class="no-animation">Loading...</div>
|
|
312
312
|
|
|
313
|
-
${this.ringworm ? x$
|
|
313
|
+
${this.ringworm ? x$3`
|
|
314
314
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
315
315
|
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
316
316
|
</svg>`
|
|
@@ -356,7 +356,7 @@ var loaderVersion = '3.1.1';
|
|
|
356
356
|
|
|
357
357
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
358
358
|
|
|
359
|
-
class AuroButton extends r$
|
|
359
|
+
class AuroButton extends r$9 {
|
|
360
360
|
|
|
361
361
|
constructor() {
|
|
362
362
|
super();
|
|
@@ -375,7 +375,7 @@ class AuroButton extends r$8 {
|
|
|
375
375
|
/**
|
|
376
376
|
* Generate unique names for dependency components.
|
|
377
377
|
*/
|
|
378
|
-
const versioning = new AuroDependencyVersioning$
|
|
378
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
379
379
|
|
|
380
380
|
/**
|
|
381
381
|
* @private
|
|
@@ -385,9 +385,9 @@ class AuroButton extends r$8 {
|
|
|
385
385
|
|
|
386
386
|
static get styles() {
|
|
387
387
|
return [
|
|
388
|
-
tokensCss$
|
|
389
|
-
styleCss$
|
|
390
|
-
colorCss$
|
|
388
|
+
tokensCss$7,
|
|
389
|
+
styleCss$9,
|
|
390
|
+
colorCss$8
|
|
391
391
|
];
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -470,7 +470,7 @@ class AuroButton extends r$8 {
|
|
|
470
470
|
*
|
|
471
471
|
*/
|
|
472
472
|
static register(name = "auro-button") {
|
|
473
|
-
AuroLibraryRuntimeUtils$
|
|
473
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
/**
|
|
@@ -524,27 +524,27 @@ class AuroButton extends r$8 {
|
|
|
524
524
|
'loading': this.loading
|
|
525
525
|
};
|
|
526
526
|
|
|
527
|
-
return u$
|
|
527
|
+
return u$6`
|
|
528
528
|
<button
|
|
529
529
|
part="button"
|
|
530
|
-
aria-label="${o$
|
|
531
|
-
aria-labelledby="${o$
|
|
530
|
+
aria-label="${o$9(this.arialabel ? this.arialabel : undefined)}"
|
|
531
|
+
aria-labelledby="${o$9(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
532
532
|
?autofocus="${this.autofocus}"
|
|
533
|
-
class="${e$
|
|
533
|
+
class="${e$9(classes)}"
|
|
534
534
|
?disabled="${this.disabled || this.loading}"
|
|
535
535
|
?onDark="${this.onDark}"
|
|
536
|
-
title="${o$
|
|
537
|
-
name="${o$
|
|
538
|
-
type="${o$
|
|
539
|
-
variant="${o$
|
|
540
|
-
.value="${o$
|
|
536
|
+
title="${o$9(this.title ? this.title : undefined)}"
|
|
537
|
+
name="${o$9(this.name ? this.name : undefined)}"
|
|
538
|
+
type="${o$9(this.type ? this.type : undefined)}"
|
|
539
|
+
variant="${o$9(this.variant ? this.variant : undefined)}"
|
|
540
|
+
.value="${o$9(this.value ? this.value : undefined)}"
|
|
541
541
|
@click="${() => {}}"
|
|
542
542
|
>
|
|
543
|
-
${o$
|
|
543
|
+
${o$9(this.loading ? u$6`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
544
544
|
|
|
545
545
|
<span class="contentWrapper">
|
|
546
546
|
<span class="textSlot" part="text">
|
|
547
|
-
${this.iconOnly ? undefined : u$
|
|
547
|
+
${this.iconOnly ? undefined : u$6`<slot></slot>`}
|
|
548
548
|
</span>
|
|
549
549
|
|
|
550
550
|
<span part="icon">
|
|
@@ -580,7 +580,7 @@ class AuroCounterButton extends AuroButton {
|
|
|
580
580
|
*
|
|
581
581
|
*/
|
|
582
582
|
static register(name = "auro-counter-button") {
|
|
583
|
-
AuroLibraryRuntimeUtils$
|
|
583
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroCounterButton);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
|
|
@@ -600,7 +600,7 @@ if (!customElements.get("auro-counter-button")) {
|
|
|
600
600
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
601
601
|
*/
|
|
602
602
|
|
|
603
|
-
let AuroElement$
|
|
603
|
+
let AuroElement$2 = class AuroElement extends r$9 {
|
|
604
604
|
|
|
605
605
|
// function to define props used within the scope of this component
|
|
606
606
|
static get properties() {
|
|
@@ -626,11 +626,11 @@ let AuroElement$1 = class AuroElement extends r$8 {
|
|
|
626
626
|
}
|
|
627
627
|
};
|
|
628
628
|
|
|
629
|
-
var error$
|
|
629
|
+
var error$2 = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
630
630
|
|
|
631
631
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
632
632
|
|
|
633
|
-
const _fetchMap$
|
|
633
|
+
const _fetchMap$2 = new Map();
|
|
634
634
|
|
|
635
635
|
/**
|
|
636
636
|
* A callback to parse Response body.
|
|
@@ -648,15 +648,15 @@ const _fetchMap$1 = new Map();
|
|
|
648
648
|
* @param {ResponseParser} [options.responseParser=(response) => response.text()]
|
|
649
649
|
* @returns {Promise}
|
|
650
650
|
*/
|
|
651
|
-
const cacheFetch$
|
|
651
|
+
const cacheFetch$2 = (uri, options = {}) => {
|
|
652
652
|
const responseParser = options.responseParser || ((response) => response.text());
|
|
653
|
-
if (!_fetchMap$
|
|
654
|
-
_fetchMap$
|
|
653
|
+
if (!_fetchMap$2.has(uri)) {
|
|
654
|
+
_fetchMap$2.set(uri, fetch(uri).then(responseParser));
|
|
655
655
|
}
|
|
656
|
-
return _fetchMap$
|
|
656
|
+
return _fetchMap$2.get(uri);
|
|
657
657
|
};
|
|
658
658
|
|
|
659
|
-
var styleCss$
|
|
659
|
+
var styleCss$7 = i$g`*,*: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}.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}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
660
660
|
|
|
661
661
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
662
662
|
// See LICENSE in the project root for license information.
|
|
@@ -669,7 +669,7 @@ var styleCss$6 = i$f`*,*:before,*:after{box-sizing:border-box}@media(prefers-red
|
|
|
669
669
|
*/
|
|
670
670
|
|
|
671
671
|
// build the component class
|
|
672
|
-
let BaseIcon$
|
|
672
|
+
let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
673
673
|
constructor() {
|
|
674
674
|
super();
|
|
675
675
|
this.onDark = false;
|
|
@@ -695,8 +695,8 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
695
695
|
}
|
|
696
696
|
|
|
697
697
|
static get styles() {
|
|
698
|
-
return i$
|
|
699
|
-
${styleCss$
|
|
698
|
+
return i$g`
|
|
699
|
+
${styleCss$7}
|
|
700
700
|
`;
|
|
701
701
|
}
|
|
702
702
|
|
|
@@ -711,9 +711,9 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
711
711
|
let iconHTML = '';
|
|
712
712
|
|
|
713
713
|
if (category === 'logos') {
|
|
714
|
-
iconHTML = await cacheFetch$
|
|
714
|
+
iconHTML = await cacheFetch$2(`${this.uri}/${category}/${name}.svg`);
|
|
715
715
|
} else {
|
|
716
|
-
iconHTML = await cacheFetch$
|
|
716
|
+
iconHTML = await cacheFetch$2(`${this.uri}/icons/${category}/${name}.svg`);
|
|
717
717
|
}
|
|
718
718
|
|
|
719
719
|
const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
|
|
@@ -729,7 +729,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
729
729
|
if (svg) {
|
|
730
730
|
this.svg = svg;
|
|
731
731
|
} else if (!svg) {
|
|
732
|
-
const penDOM = new DOMParser().parseFromString(error$
|
|
732
|
+
const penDOM = new DOMParser().parseFromString(error$2.svg, 'text/html');
|
|
733
733
|
|
|
734
734
|
this.svg = penDOM.body.firstChild;
|
|
735
735
|
}
|
|
@@ -737,9 +737,9 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
737
737
|
}
|
|
738
738
|
};
|
|
739
739
|
|
|
740
|
-
var tokensCss$
|
|
740
|
+
var tokensCss$5 = i$g`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
|
|
741
741
|
|
|
742
|
-
var colorCss$
|
|
742
|
+
var colorCss$6 = i$g`: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)}`;
|
|
743
743
|
|
|
744
744
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
745
745
|
// See LICENSE in the project root for license information.
|
|
@@ -772,7 +772,7 @@ var colorCss$5 = i$f`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
772
772
|
*/
|
|
773
773
|
|
|
774
774
|
// build the component class
|
|
775
|
-
let AuroIcon$
|
|
775
|
+
let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
776
776
|
constructor() {
|
|
777
777
|
super();
|
|
778
778
|
|
|
@@ -801,7 +801,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
801
801
|
this.success = false;
|
|
802
802
|
this.tertiary = false;
|
|
803
803
|
this.warning = false;
|
|
804
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
804
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
// function to define props used within the scope of this component
|
|
@@ -883,9 +883,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
883
883
|
static get styles() {
|
|
884
884
|
return [
|
|
885
885
|
super.styles,
|
|
886
|
-
i$
|
|
887
|
-
i$
|
|
888
|
-
i$
|
|
886
|
+
i$g`${tokensCss$5}`,
|
|
887
|
+
i$g`${styleCss$7}`,
|
|
888
|
+
i$g`${colorCss$6}`
|
|
889
889
|
];
|
|
890
890
|
}
|
|
891
891
|
|
|
@@ -898,7 +898,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
898
898
|
*
|
|
899
899
|
*/
|
|
900
900
|
static register(name = "auro-icon") {
|
|
901
|
-
AuroLibraryRuntimeUtils$
|
|
901
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
|
|
902
902
|
}
|
|
903
903
|
|
|
904
904
|
connectedCallback() {
|
|
@@ -927,20 +927,20 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
927
927
|
'wrapper': true,
|
|
928
928
|
};
|
|
929
929
|
|
|
930
|
-
return x$
|
|
930
|
+
return x$3`
|
|
931
931
|
<div
|
|
932
|
-
class="${e$
|
|
933
|
-
title="${o$
|
|
934
|
-
<span aria-hidden="${o$
|
|
935
|
-
${this.customSvg ? x$
|
|
932
|
+
class="${e$9(classes)}"
|
|
933
|
+
title="${o$9(this.title || undefined)}">
|
|
934
|
+
<span aria-hidden="${o$9(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
935
|
+
${this.customSvg ? x$3`
|
|
936
936
|
<slot name="svg"></slot>
|
|
937
|
-
` : x$
|
|
937
|
+
` : x$3`
|
|
938
938
|
${this.svg}
|
|
939
939
|
`
|
|
940
940
|
}
|
|
941
941
|
</span>
|
|
942
942
|
|
|
943
|
-
<div class="${e$
|
|
943
|
+
<div class="${e$9(a11y)}">
|
|
944
944
|
<slot></slot>
|
|
945
945
|
</div>
|
|
946
946
|
</div>
|
|
@@ -948,7 +948,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
950
|
|
|
951
|
-
var iconVersion$
|
|
951
|
+
var iconVersion$2 = '6.1.2';
|
|
952
952
|
|
|
953
953
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
954
954
|
// See LICENSE in the project root for license information.
|
|
@@ -956,7 +956,7 @@ var iconVersion$1 = '6.1.2';
|
|
|
956
956
|
|
|
957
957
|
class AuroFormValidation {
|
|
958
958
|
constructor() {
|
|
959
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
959
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
960
960
|
}
|
|
961
961
|
|
|
962
962
|
/**
|
|
@@ -1283,7 +1283,7 @@ class IconUtil {
|
|
|
1283
1283
|
|
|
1284
1284
|
svg.setAttribute('slot', 'svg');
|
|
1285
1285
|
|
|
1286
|
-
return u$
|
|
1286
|
+
return u$6`${svg}`;
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
1289
|
|
|
@@ -1291,11 +1291,11 @@ var plusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width"
|
|
|
1291
1291
|
|
|
1292
1292
|
var minusIcon = {"role":"img","color":"currentColor","title":"","desc":"","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":"minus-lg","category":"interface","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-hidden=\"true\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><path d=\"M5.75 12.75h12.5a.75.75 0 1 0 0-1.5H5.75a.75.75 0 1 0 0 1.5\"/></svg>"};
|
|
1293
1293
|
|
|
1294
|
-
var tokensCss$
|
|
1294
|
+
var tokensCss$4 = i$g`:host{--ds-auro-counter-text-default: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-counter-text-secondary: var(--ds-color-text-secondary-default, #525252);--ds-auro-counter-text-disabled: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-ui-hover: var(--ds-color-ui-hover-default, #054687);--ds-auro-counter-control-ui-disabled: var(--ds-color-ui-disabled-default, rgba(0, 116, 200, 0.2));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03));--ds-auro-counter-control-line-height: var(--ds-text-body-size-sm, 0.875rem);--ds-auro-counter-icon-color-default: var(--ds-color-ui-default-default, #0074c8);--ds-auro-counter-control-border-active: var(--ds-color-border-active-default, #0074c8)}`;
|
|
1295
1295
|
|
|
1296
|
-
var colorCss$
|
|
1296
|
+
var colorCss$5 = i$g`.counter{color:var(--ds-auro-counter-text-default)}[name=description]::slotted(*){color:var(--ds-auro-counter-text-secondary)}.controlIcon{color:var(--ds-auro-counter-icon-color-default)}.quantityWrapper{background-color:var(--ds-auro-counter-control-ui-bkg)}:host::part(counterControl):focus-visible{outline-color:var(--ds-auro-counter-control-border-active)}[disabled] .controlIcon,:host([disabled]) .controlIcon{color:var(--ds-auro-counter-control-ui-disabled)}[disabled] label,[disabled] [name=description]::slotted(*),[disabled]::part(counterControl),:host([disabled]) label,:host([disabled]) [name=description]::slotted(*),:host([disabled])::part(counterControl){color:var(--ds-auro-counter-text-disabled)}`;
|
|
1297
1297
|
|
|
1298
|
-
var styleCss$
|
|
1298
|
+
var styleCss$6 = i$g`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;border-radius:var(--ds-size-500, 2.5rem);line-height:0;touch-action:manipulation}:host::part(counterControl):focus-visible{outline-offset:0;outline-style:solid;outline-width:var(--ds-size-25, 0.125rem)}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
|
|
1299
1299
|
|
|
1300
1300
|
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
1301
1301
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -1313,7 +1313,7 @@ var styleCss$5 = i$f`.counter{display:flex;align-items:center;justify-content:sp
|
|
|
1313
1313
|
* @slot Default - Main label content for the counter.
|
|
1314
1314
|
* @slot description - Descriptive content for the counter.
|
|
1315
1315
|
*/
|
|
1316
|
-
class AuroCounter extends r$
|
|
1316
|
+
class AuroCounter extends r$9 {
|
|
1317
1317
|
constructor() {
|
|
1318
1318
|
super();
|
|
1319
1319
|
|
|
@@ -1335,21 +1335,21 @@ class AuroCounter extends r$8 {
|
|
|
1335
1335
|
* Generate unique names for dependency components.
|
|
1336
1336
|
* @private
|
|
1337
1337
|
*/
|
|
1338
|
-
const versioning = new AuroDependencyVersioning$
|
|
1338
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
1339
1339
|
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Dynamically generated icon tag for counter buttons.
|
|
1342
1342
|
* @private
|
|
1343
1343
|
* @type {string}
|
|
1344
1344
|
*/
|
|
1345
|
-
this.iconTag = versioning.generateTag("auro-icon", iconVersion$
|
|
1345
|
+
this.iconTag = versioning.generateTag("auro-icon", iconVersion$2, AuroIcon$2);
|
|
1346
1346
|
|
|
1347
1347
|
/**
|
|
1348
1348
|
* @private
|
|
1349
1349
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
1350
1350
|
*/
|
|
1351
1351
|
this.constructor.shadowRootOptions = {
|
|
1352
|
-
...r$
|
|
1352
|
+
...r$9.shadowRootOptions,
|
|
1353
1353
|
delegatesFocus: true,
|
|
1354
1354
|
};
|
|
1355
1355
|
}
|
|
@@ -1444,14 +1444,14 @@ class AuroCounter extends r$8 {
|
|
|
1444
1444
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1445
1445
|
*/
|
|
1446
1446
|
static register(name = "auro-counter") {
|
|
1447
|
-
AuroLibraryRuntimeUtils$
|
|
1447
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroCounter);
|
|
1448
1448
|
}
|
|
1449
1449
|
|
|
1450
1450
|
static get styles() {
|
|
1451
1451
|
return [
|
|
1452
|
-
tokensCss$
|
|
1453
|
-
colorCss$
|
|
1454
|
-
styleCss$
|
|
1452
|
+
tokensCss$4,
|
|
1453
|
+
colorCss$5,
|
|
1454
|
+
styleCss$6
|
|
1455
1455
|
];
|
|
1456
1456
|
}
|
|
1457
1457
|
|
|
@@ -1581,7 +1581,7 @@ class AuroCounter extends r$8 {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
|
|
1583
1583
|
render() {
|
|
1584
|
-
return u$
|
|
1584
|
+
return u$6`
|
|
1585
1585
|
<div class="counter">
|
|
1586
1586
|
<div class="content" >
|
|
1587
1587
|
<label id="counter-label" class="label"><slot @slotchange="${this.onDefaultSlotChange}" ></slot></label>
|
|
@@ -1619,40 +1619,40 @@ class AuroCounter extends r$8 {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
1621
1621
|
|
|
1622
|
-
var styleCss$
|
|
1622
|
+
var styleCss$5 = i$g`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:hidden;text-overflow:ellipsis}[auro-dropdown]{display:block}[auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}`;
|
|
1623
1623
|
|
|
1624
1624
|
/**
|
|
1625
1625
|
* @license
|
|
1626
1626
|
* Copyright 2017 Google LLC
|
|
1627
1627
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1628
1628
|
*/
|
|
1629
|
-
const t$4=globalThis,i$9=t$4.trustedTypes,s$4=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$7=document,l$4=()=>r$7.createComment(""),c$5=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$4=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$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$3=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$
|
|
1629
|
+
const t$4=globalThis,i$9=t$4.trustedTypes,s$4=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$7=document,l$4=()=>r$7.createComment(""),c$5=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$4=Array.isArray,u$4=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$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$3}(?:([^\\s"'>=/]+)(${d$3}*=${d$3}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$3=/'/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$7.createTreeWalker(r$7,129);function P$1(t,i){if(!a$4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$4?s$4.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$1:void 0!==u[1]?c=_$1:void 0!==u[2]?($$1.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$3,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$1:p$3):c===g$1||c===p$3?c=m$1:c===v$1||c===_$1?c=f$3:(c=m$1,r=void 0);const x=c===m$1&&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$7.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$5(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$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).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$7,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$5(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$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$5(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$7.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$1(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$5(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$5(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 j$1=t$4.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$4.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};
|
|
1630
1630
|
|
|
1631
1631
|
/**
|
|
1632
1632
|
* @license
|
|
1633
1633
|
* Copyright 2020 Google LLC
|
|
1634
1634
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1635
1635
|
*/
|
|
1636
|
-
const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$3=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$3=n$5(x);
|
|
1636
|
+
const a$3=Symbol.for(""),o$6=t=>{if(t?.r===a$3)return t?._$litStatic$},s$3=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$3=n$5(x$1);
|
|
1637
1637
|
|
|
1638
1638
|
/**
|
|
1639
1639
|
* @license
|
|
1640
1640
|
* Copyright 2019 Google LLC
|
|
1641
1641
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1642
1642
|
*/
|
|
1643
|
-
const t$3=globalThis,e$6=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$5=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$6&&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$2),i$7=(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$6)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$4=e$6?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6(e)})(t):t;
|
|
1643
|
+
const t$3=globalThis,e$6=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2$1=Symbol(),o$5=new WeakMap;let n$4 = 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&&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$2$1),i$7=(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$1)},S$2=(s,o)=>{if(e$6)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$4=e$6?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6(e)})(t):t;
|
|
1644
1644
|
|
|
1645
1645
|
/**
|
|
1646
1646
|
* @license
|
|
1647
1647
|
* Copyright 2017 Google LLC
|
|
1648
1648
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1649
|
-
*/const{is:i$6,defineProperty:e$5,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$4,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$6(t,s),y={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){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(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}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$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$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");
|
|
1649
|
+
*/const{is:i$6,defineProperty:e$5,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$4$1,getPrototypeOf:n$3$1}=Object,a$2$1=globalThis,c$3=a$2$1.trustedTypes,l$2$1=c$3?c$3.emptyScript:"",p$2=a$2$1.reactiveElementPolyfillSupport,d$2=(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=(t,s)=>!i$6(t,s),y$2={attribute:true,type:String,converter:u$2$1,reflect:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$2$1.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$5(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$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("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2("properties"))){const t=this.properties,s=[...h$2(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(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$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)(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$1.reactiveElementVersions??=[]).push("2.0.4");
|
|
1650
1650
|
|
|
1651
1651
|
/**
|
|
1652
1652
|
* @license
|
|
1653
1653
|
* Copyright 2017 Google LLC
|
|
1654
1654
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1655
|
-
*/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$5=globalThis.litElementPolyfillSupport;i$5?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
1655
|
+
*/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$5$1=globalThis.litElementPolyfillSupport;i$5$1?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
1656
1656
|
|
|
1657
1657
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1658
1658
|
// See LICENSE in the project root for license information.
|
|
@@ -1661,7 +1661,7 @@ const t$3=globalThis,e$6=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.na
|
|
|
1661
1661
|
|
|
1662
1662
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1663
1663
|
|
|
1664
|
-
class AuroLibraryRuntimeUtils {
|
|
1664
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
1665
1665
|
|
|
1666
1666
|
/* eslint-disable jsdoc/require-param */
|
|
1667
1667
|
|
|
@@ -1722,7 +1722,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
1722
1722
|
|
|
1723
1723
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
1724
1724
|
}
|
|
1725
|
-
}
|
|
1725
|
+
};
|
|
1726
1726
|
|
|
1727
1727
|
/**
|
|
1728
1728
|
* Custom positioning reference element.
|
|
@@ -3650,7 +3650,7 @@ class AuroFloatingUI {
|
|
|
3650
3650
|
// See LICENSE in the project root for license information.
|
|
3651
3651
|
|
|
3652
3652
|
|
|
3653
|
-
class AuroDependencyVersioning {
|
|
3653
|
+
let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
3654
3654
|
|
|
3655
3655
|
/**
|
|
3656
3656
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -3684,26 +3684,26 @@ class AuroDependencyVersioning {
|
|
|
3684
3684
|
|
|
3685
3685
|
return tag;
|
|
3686
3686
|
}
|
|
3687
|
-
}
|
|
3687
|
+
};
|
|
3688
3688
|
|
|
3689
3689
|
/**
|
|
3690
3690
|
* @license
|
|
3691
3691
|
* Copyright 2017 Google LLC
|
|
3692
3692
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3693
3693
|
*/
|
|
3694
|
-
const t$2={ATTRIBUTE:1},e$4=t=>(...e)=>({_$litDirective$:t,values:e});let i$4 = 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)}};
|
|
3694
|
+
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)}};
|
|
3695
3695
|
|
|
3696
3696
|
/**
|
|
3697
3697
|
* @license
|
|
3698
3698
|
* Copyright 2018 Google LLC
|
|
3699
3699
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3700
|
-
*/const e$3=e$4(class extends i$4{constructor(t){if(super(t),t.type!==t$2.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}});
|
|
3700
|
+
*/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}});
|
|
3701
3701
|
|
|
3702
3702
|
/**
|
|
3703
3703
|
* @license
|
|
3704
3704
|
* Copyright 2018 Google LLC
|
|
3705
3705
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3706
|
-
*/const o$3=o=>o??E$1;
|
|
3706
|
+
*/const o$3$1=o=>o??E$1;
|
|
3707
3707
|
|
|
3708
3708
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3709
3709
|
// See LICENSE in the project root for license information.
|
|
@@ -3715,7 +3715,7 @@ const t$2={ATTRIBUTE:1},e$4=t=>(...e)=>({_$litDirective$:t,values:e});let i$4 =
|
|
|
3715
3715
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
3716
3716
|
*/
|
|
3717
3717
|
|
|
3718
|
-
class AuroElement extends r$4 {
|
|
3718
|
+
let AuroElement$1 = class AuroElement extends r$4 {
|
|
3719
3719
|
|
|
3720
3720
|
// function to define props used within the scope of this component
|
|
3721
3721
|
static get properties() {
|
|
@@ -3739,13 +3739,13 @@ class AuroElement extends r$4 {
|
|
|
3739
3739
|
|
|
3740
3740
|
return 'false'
|
|
3741
3741
|
}
|
|
3742
|
-
}
|
|
3742
|
+
};
|
|
3743
3743
|
|
|
3744
|
-
var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
3744
|
+
var error$1 = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
3745
3745
|
|
|
3746
3746
|
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
3747
3747
|
|
|
3748
|
-
const _fetchMap = new Map();
|
|
3748
|
+
const _fetchMap$1 = new Map();
|
|
3749
3749
|
|
|
3750
3750
|
/**
|
|
3751
3751
|
* A callback to parse Response body.
|
|
@@ -3763,15 +3763,15 @@ const _fetchMap = new Map();
|
|
|
3763
3763
|
* @param {ResponseParser} [options.responseParser=(response) => response.text()]
|
|
3764
3764
|
* @returns {Promise}
|
|
3765
3765
|
*/
|
|
3766
|
-
const cacheFetch = (uri, options = {}) => {
|
|
3766
|
+
const cacheFetch$1 = (uri, options = {}) => {
|
|
3767
3767
|
const responseParser = options.responseParser || ((response) => response.text());
|
|
3768
|
-
if (!_fetchMap.has(uri)) {
|
|
3769
|
-
_fetchMap.set(uri, fetch(uri).then(responseParser));
|
|
3768
|
+
if (!_fetchMap$1.has(uri)) {
|
|
3769
|
+
_fetchMap$1.set(uri, fetch(uri).then(responseParser));
|
|
3770
3770
|
}
|
|
3771
|
-
return _fetchMap.get(uri);
|
|
3771
|
+
return _fetchMap$1.get(uri);
|
|
3772
3772
|
};
|
|
3773
3773
|
|
|
3774
|
-
var styleCss$
|
|
3774
|
+
var styleCss$3$1 = i$7`*,*: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}.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}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
3775
3775
|
|
|
3776
3776
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3777
3777
|
// See LICENSE in the project root for license information.
|
|
@@ -3784,7 +3784,7 @@ var styleCss$2 = i$7`*,*:before,*:after{box-sizing:border-box}@media(prefers-red
|
|
|
3784
3784
|
*/
|
|
3785
3785
|
|
|
3786
3786
|
// build the component class
|
|
3787
|
-
class BaseIcon extends AuroElement {
|
|
3787
|
+
let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
3788
3788
|
constructor() {
|
|
3789
3789
|
super();
|
|
3790
3790
|
this.onDark = false;
|
|
@@ -3811,7 +3811,7 @@ class BaseIcon extends AuroElement {
|
|
|
3811
3811
|
|
|
3812
3812
|
static get styles() {
|
|
3813
3813
|
return i$7`
|
|
3814
|
-
${styleCss$
|
|
3814
|
+
${styleCss$3$1}
|
|
3815
3815
|
`;
|
|
3816
3816
|
}
|
|
3817
3817
|
|
|
@@ -3826,9 +3826,9 @@ class BaseIcon extends AuroElement {
|
|
|
3826
3826
|
let iconHTML = '';
|
|
3827
3827
|
|
|
3828
3828
|
if (category === 'logos') {
|
|
3829
|
-
iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
|
|
3829
|
+
iconHTML = await cacheFetch$1(`${this.uri}/${category}/${name}.svg`);
|
|
3830
3830
|
} else {
|
|
3831
|
-
iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
|
|
3831
|
+
iconHTML = await cacheFetch$1(`${this.uri}/icons/${category}/${name}.svg`);
|
|
3832
3832
|
}
|
|
3833
3833
|
|
|
3834
3834
|
const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
|
|
@@ -3844,17 +3844,17 @@ class BaseIcon extends AuroElement {
|
|
|
3844
3844
|
if (svg) {
|
|
3845
3845
|
this.svg = svg;
|
|
3846
3846
|
} else if (!svg) {
|
|
3847
|
-
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
3847
|
+
const penDOM = new DOMParser().parseFromString(error$1.svg, 'text/html');
|
|
3848
3848
|
|
|
3849
3849
|
this.svg = penDOM.body.firstChild;
|
|
3850
3850
|
}
|
|
3851
3851
|
}
|
|
3852
3852
|
}
|
|
3853
|
-
}
|
|
3853
|
+
};
|
|
3854
3854
|
|
|
3855
|
-
var tokensCss$
|
|
3855
|
+
var tokensCss$2 = i$7`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
|
|
3856
3856
|
|
|
3857
|
-
var colorCss$
|
|
3857
|
+
var colorCss$3 = i$7`: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)}`;
|
|
3858
3858
|
|
|
3859
3859
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3860
3860
|
// See LICENSE in the project root for license information.
|
|
@@ -3887,7 +3887,7 @@ var colorCss$2 = i$7`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
3887
3887
|
*/
|
|
3888
3888
|
|
|
3889
3889
|
// build the component class
|
|
3890
|
-
class AuroIcon extends BaseIcon {
|
|
3890
|
+
let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
3891
3891
|
constructor() {
|
|
3892
3892
|
super();
|
|
3893
3893
|
|
|
@@ -3916,7 +3916,7 @@ class AuroIcon extends BaseIcon {
|
|
|
3916
3916
|
this.success = false;
|
|
3917
3917
|
this.tertiary = false;
|
|
3918
3918
|
this.warning = false;
|
|
3919
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
3919
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
3920
3920
|
}
|
|
3921
3921
|
|
|
3922
3922
|
// function to define props used within the scope of this component
|
|
@@ -3998,9 +3998,9 @@ class AuroIcon extends BaseIcon {
|
|
|
3998
3998
|
static get styles() {
|
|
3999
3999
|
return [
|
|
4000
4000
|
super.styles,
|
|
4001
|
-
i$7`${tokensCss$
|
|
4002
|
-
i$7`${styleCss$
|
|
4003
|
-
i$7`${colorCss$
|
|
4001
|
+
i$7`${tokensCss$2}`,
|
|
4002
|
+
i$7`${styleCss$3$1}`,
|
|
4003
|
+
i$7`${colorCss$3}`
|
|
4004
4004
|
];
|
|
4005
4005
|
}
|
|
4006
4006
|
|
|
@@ -4013,7 +4013,7 @@ class AuroIcon extends BaseIcon {
|
|
|
4013
4013
|
*
|
|
4014
4014
|
*/
|
|
4015
4015
|
static register(name = "auro-icon") {
|
|
4016
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
4016
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
4017
4017
|
}
|
|
4018
4018
|
|
|
4019
4019
|
connectedCallback() {
|
|
@@ -4042,34 +4042,34 @@ class AuroIcon extends BaseIcon {
|
|
|
4042
4042
|
'wrapper': true,
|
|
4043
4043
|
};
|
|
4044
4044
|
|
|
4045
|
-
return x`
|
|
4045
|
+
return x$1`
|
|
4046
4046
|
<div
|
|
4047
|
-
class="${e$3(classes)}"
|
|
4048
|
-
title="${o$3(this.title || undefined)}">
|
|
4049
|
-
<span aria-hidden="${o$3(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
4050
|
-
${this.customSvg ? x`
|
|
4047
|
+
class="${e$3$1(classes)}"
|
|
4048
|
+
title="${o$3$1(this.title || undefined)}">
|
|
4049
|
+
<span aria-hidden="${o$3$1(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
4050
|
+
${this.customSvg ? x$1`
|
|
4051
4051
|
<slot name="svg"></slot>
|
|
4052
|
-
` : x`
|
|
4052
|
+
` : x$1`
|
|
4053
4053
|
${this.svg}
|
|
4054
4054
|
`
|
|
4055
4055
|
}
|
|
4056
4056
|
</span>
|
|
4057
4057
|
|
|
4058
|
-
<div class="${e$3(a11y)}">
|
|
4058
|
+
<div class="${e$3$1(a11y)}">
|
|
4059
4059
|
<slot></slot>
|
|
4060
4060
|
</div>
|
|
4061
4061
|
</div>
|
|
4062
4062
|
`;
|
|
4063
4063
|
}
|
|
4064
|
-
}
|
|
4064
|
+
};
|
|
4065
4065
|
|
|
4066
|
-
var iconVersion = '6.1.2';
|
|
4066
|
+
var iconVersion$1 = '6.1.2';
|
|
4067
4067
|
|
|
4068
|
-
var styleCss$1 = i$7`: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}`;
|
|
4068
|
+
var styleCss$2$1 = i$7`: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}`;
|
|
4069
4069
|
|
|
4070
|
-
var colorCss$1 = i$7`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
4070
|
+
var colorCss$2$1 = i$7`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
4071
4071
|
|
|
4072
|
-
var tokensCss = i$7`: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)}`;
|
|
4072
|
+
var tokensCss$1 = i$7`: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)}`;
|
|
4073
4073
|
|
|
4074
4074
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4075
4075
|
// See LICENSE in the project root for license information.
|
|
@@ -4085,7 +4085,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
4085
4085
|
];
|
|
4086
4086
|
|
|
4087
4087
|
/**
|
|
4088
|
-
* @prop { String }
|
|
4088
|
+
* @prop { String } fullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
4089
4089
|
* @csspart bibContainer - Apply css to the bib container.
|
|
4090
4090
|
*/
|
|
4091
4091
|
|
|
@@ -4099,14 +4099,14 @@ class AuroDropdownBib extends r$4 {
|
|
|
4099
4099
|
*/
|
|
4100
4100
|
this._mobileBreakpointValue = undefined;
|
|
4101
4101
|
|
|
4102
|
-
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4102
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4103
4103
|
}
|
|
4104
4104
|
|
|
4105
4105
|
static get styles() {
|
|
4106
4106
|
return [
|
|
4107
|
-
styleCss$1,
|
|
4108
|
-
colorCss$1,
|
|
4109
|
-
tokensCss
|
|
4107
|
+
styleCss$2$1,
|
|
4108
|
+
colorCss$2$1,
|
|
4109
|
+
tokensCss$1
|
|
4110
4110
|
];
|
|
4111
4111
|
}
|
|
4112
4112
|
|
|
@@ -4190,41 +4190,234 @@ class AuroDropdownBib extends r$4 {
|
|
|
4190
4190
|
|
|
4191
4191
|
var dropdownVersion$1 = '3.0.0';
|
|
4192
4192
|
|
|
4193
|
-
var styleCss$
|
|
4193
|
+
var styleCss$1$1 = i$7`: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)}`;
|
|
4194
4194
|
|
|
4195
|
-
var colorCss$
|
|
4195
|
+
var colorCss$1$1 = i$7`.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)}`;
|
|
4196
4196
|
|
|
4197
4197
|
/**
|
|
4198
4198
|
* @license
|
|
4199
4199
|
* Copyright 2019 Google LLC
|
|
4200
4200
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4201
4201
|
*/
|
|
4202
|
-
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;
|
|
4202
|
+
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;
|
|
4203
4203
|
|
|
4204
4204
|
/**
|
|
4205
4205
|
* @license
|
|
4206
4206
|
* Copyright 2017 Google LLC
|
|
4207
4207
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4208
|
-
*/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");
|
|
4208
|
+
*/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");
|
|
4209
4209
|
|
|
4210
4210
|
/**
|
|
4211
4211
|
* @license
|
|
4212
4212
|
* Copyright 2017 Google LLC
|
|
4213
4213
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4214
4214
|
*/
|
|
4215
|
-
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
|
|
4215
|
+
const t$5=globalThis,i$1$1=t$5.trustedTypes,s$5=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$6=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$5=Array.isArray,u$5=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$2=/-->/g,_$2=/>/g,m$2=RegExp(`>|${d$4}(?:([^\\s"'>=/]+)(${d$4}*=${d$4}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$4=/'/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$5?s$5.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$2:void 0!==u[1]?c=_$2:void 0!==u[2]?($$2.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$4,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$2:p$4):c===g$2||c===p$4?c=m$2:c===v$2||c===_$2?c=f$4:(c=m$2,r=void 0);const x=c===m$2&&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$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$4(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$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$6(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$5(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$6(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$2(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$6(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$6(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$5.litHtmlPolyfillSupport;j$2?.(N$2,R$2),(t$5.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};
|
|
4216
4216
|
|
|
4217
4217
|
/**
|
|
4218
4218
|
* @license
|
|
4219
4219
|
* Copyright 2017 Google LLC
|
|
4220
4220
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4221
|
-
*/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");
|
|
4221
|
+
*/let r$8 = 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$8._$litElement$=true,r$8["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$8});const i$a=globalThis.litElementPolyfillSupport;i$a?.({LitElement:r$8});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
4222
|
+
|
|
4223
|
+
var colorCss$4 = i$3$1`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4224
|
+
|
|
4225
|
+
var styleCss$4 = i$3$1`.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}`;
|
|
4226
|
+
|
|
4227
|
+
var tokensCss$3 = i$3$1`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
4228
|
+
|
|
4229
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4230
|
+
// See LICENSE in the project root for license information.
|
|
4231
|
+
|
|
4232
|
+
// ---------------------------------------------------------------------
|
|
4233
|
+
|
|
4234
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4235
|
+
|
|
4236
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
4237
|
+
|
|
4238
|
+
/* eslint-disable jsdoc/require-param */
|
|
4239
|
+
|
|
4240
|
+
/**
|
|
4241
|
+
* This will register a new custom element with the browser.
|
|
4242
|
+
* @param {String} name - The name of the custom element.
|
|
4243
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
4244
|
+
* @returns {void}
|
|
4245
|
+
*/
|
|
4246
|
+
registerComponent(name, componentClass) {
|
|
4247
|
+
if (!customElements.get(name)) {
|
|
4248
|
+
customElements.define(name, class extends componentClass {});
|
|
4249
|
+
}
|
|
4250
|
+
}
|
|
4251
|
+
|
|
4252
|
+
/**
|
|
4253
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
4254
|
+
* @returns {void}
|
|
4255
|
+
*/
|
|
4256
|
+
closestElement(
|
|
4257
|
+
selector, // selector like in .closest()
|
|
4258
|
+
base = this, // extra functionality to skip a parent
|
|
4259
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4260
|
+
!el || el === document || el === window
|
|
4261
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
4262
|
+
: found
|
|
4263
|
+
? found // found a selector INside this element
|
|
4264
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4265
|
+
) {
|
|
4266
|
+
return __Closest(base);
|
|
4267
|
+
}
|
|
4268
|
+
/* eslint-enable jsdoc/require-param */
|
|
4269
|
+
|
|
4270
|
+
/**
|
|
4271
|
+
* 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.
|
|
4272
|
+
* @param {Object} elem - The element to check.
|
|
4273
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4274
|
+
* @returns {void}
|
|
4275
|
+
*/
|
|
4276
|
+
handleComponentTagRename(elem, tagName) {
|
|
4277
|
+
const tag = tagName.toLowerCase();
|
|
4278
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4279
|
+
|
|
4280
|
+
if (elemTag !== tag) {
|
|
4281
|
+
elem.setAttribute(tag, true);
|
|
4282
|
+
}
|
|
4283
|
+
}
|
|
4284
|
+
|
|
4285
|
+
/**
|
|
4286
|
+
* Validates if an element is a specific Auro component.
|
|
4287
|
+
* @param {Object} elem - The element to validate.
|
|
4288
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
4289
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4290
|
+
*/
|
|
4291
|
+
elementMatch(elem, tagName) {
|
|
4292
|
+
const tag = tagName.toLowerCase();
|
|
4293
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4294
|
+
|
|
4295
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
4296
|
+
}
|
|
4297
|
+
};
|
|
4298
|
+
|
|
4299
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4300
|
+
// See LICENSE in the project root for license information.
|
|
4301
|
+
|
|
4302
|
+
|
|
4303
|
+
/**
|
|
4304
|
+
* Displays help text or error messages within form elements - Internal Use Only.
|
|
4305
|
+
*
|
|
4306
|
+
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
4307
|
+
*/
|
|
4308
|
+
class AuroHelpText extends r$8 {
|
|
4309
|
+
|
|
4310
|
+
constructor() {
|
|
4311
|
+
super();
|
|
4312
|
+
|
|
4313
|
+
this.error = false;
|
|
4314
|
+
this.hasTextContent = false;
|
|
4315
|
+
|
|
4316
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
4317
|
+
}
|
|
4318
|
+
|
|
4319
|
+
static get styles() {
|
|
4320
|
+
return [
|
|
4321
|
+
colorCss$4,
|
|
4322
|
+
styleCss$4,
|
|
4323
|
+
tokensCss$3
|
|
4324
|
+
];
|
|
4325
|
+
}
|
|
4326
|
+
|
|
4327
|
+
// function to define props used within the scope of this component
|
|
4328
|
+
static get properties() {
|
|
4329
|
+
return {
|
|
4330
|
+
|
|
4331
|
+
/**
|
|
4332
|
+
* @private
|
|
4333
|
+
*/
|
|
4334
|
+
slotNodes: {
|
|
4335
|
+
type: Boolean,
|
|
4336
|
+
},
|
|
4337
|
+
|
|
4338
|
+
/**
|
|
4339
|
+
* @private
|
|
4340
|
+
*/
|
|
4341
|
+
hasTextContent: {
|
|
4342
|
+
type: Boolean,
|
|
4343
|
+
},
|
|
4344
|
+
|
|
4345
|
+
/**
|
|
4346
|
+
* If declared, make font color red.
|
|
4347
|
+
*/
|
|
4348
|
+
error: {
|
|
4349
|
+
type: Boolean,
|
|
4350
|
+
reflect: true,
|
|
4351
|
+
},
|
|
4352
|
+
};
|
|
4353
|
+
}
|
|
4222
4354
|
|
|
4223
|
-
|
|
4355
|
+
/**
|
|
4356
|
+
* This will register this element with the browser.
|
|
4357
|
+
* @param {string} [name="auro-helptext"] - The name of element that you want to register to.
|
|
4358
|
+
*
|
|
4359
|
+
* @example
|
|
4360
|
+
* AuroCheckbox.register("custom-helptext") // this will register this element to <custom-helptext/>
|
|
4361
|
+
*
|
|
4362
|
+
*/
|
|
4363
|
+
static register(name = "auro-helptext") {
|
|
4364
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
|
|
4365
|
+
}
|
|
4366
|
+
|
|
4367
|
+
updated() {
|
|
4368
|
+
this.handleSlotChange();
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
handleSlotChange(event) {
|
|
4372
|
+
if (event) {
|
|
4373
|
+
this.slotNodes = event.target.assignedNodes();
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
|
|
4377
|
+
}
|
|
4378
|
+
|
|
4379
|
+
/**
|
|
4380
|
+
* Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
|
|
4381
|
+
*
|
|
4382
|
+
* @param {NodeList|Array} nodes - The list of nodes to check for content.
|
|
4383
|
+
* @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
|
|
4384
|
+
* @private
|
|
4385
|
+
*/
|
|
4386
|
+
checkSlotsForContent(nodes) {
|
|
4387
|
+
if (!nodes) {
|
|
4388
|
+
return false;
|
|
4389
|
+
}
|
|
4390
|
+
|
|
4391
|
+
return nodes.some((node) => {
|
|
4392
|
+
if (node.textContent.trim()) {
|
|
4393
|
+
return true;
|
|
4394
|
+
}
|
|
4395
|
+
|
|
4396
|
+
if (!node.querySelector) {
|
|
4397
|
+
return false;
|
|
4398
|
+
}
|
|
4399
|
+
|
|
4400
|
+
const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
|
|
4401
|
+
if (!nestedSlot) {
|
|
4402
|
+
return false;
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
const nestedSlotNodes = nestedSlot.assignedNodes();
|
|
4406
|
+
return this.checkSlotsForContent(nestedSlotNodes);
|
|
4407
|
+
});
|
|
4408
|
+
}
|
|
4224
4409
|
|
|
4225
|
-
|
|
4410
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
4411
|
+
render() {
|
|
4412
|
+
return x$2`
|
|
4413
|
+
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
4414
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
4415
|
+
</div>
|
|
4416
|
+
`;
|
|
4417
|
+
}
|
|
4418
|
+
}
|
|
4226
4419
|
|
|
4227
|
-
|
|
4420
|
+
var helpTextVersion = '1.0.0';
|
|
4228
4421
|
|
|
4229
4422
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4230
4423
|
// See LICENSE in the project root for license information.
|
|
@@ -4301,7 +4494,7 @@ class AuroDropdown extends r$4 {
|
|
|
4301
4494
|
/**
|
|
4302
4495
|
* @private
|
|
4303
4496
|
*/
|
|
4304
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
4497
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
4305
4498
|
|
|
4306
4499
|
/**
|
|
4307
4500
|
* @private
|
|
@@ -4321,17 +4514,22 @@ class AuroDropdown extends r$4 {
|
|
|
4321
4514
|
/**
|
|
4322
4515
|
* Generate unique names for dependency components.
|
|
4323
4516
|
*/
|
|
4324
|
-
const versioning = new AuroDependencyVersioning();
|
|
4517
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
4325
4518
|
|
|
4326
4519
|
/**
|
|
4327
4520
|
* @private
|
|
4328
4521
|
*/
|
|
4329
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
4522
|
+
this.iconTag = versioning.generateTag('auro-icon', iconVersion$1, AuroIcon$1);
|
|
4330
4523
|
|
|
4331
4524
|
/**
|
|
4332
4525
|
* @private
|
|
4333
4526
|
*/
|
|
4334
4527
|
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
4528
|
+
|
|
4529
|
+
/**
|
|
4530
|
+
* @private
|
|
4531
|
+
*/
|
|
4532
|
+
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
4335
4533
|
}
|
|
4336
4534
|
|
|
4337
4535
|
/**
|
|
@@ -4459,7 +4657,7 @@ class AuroDropdown extends r$4 {
|
|
|
4459
4657
|
/**
|
|
4460
4658
|
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
4461
4659
|
*/
|
|
4462
|
-
|
|
4660
|
+
fullscreenBreakpoint: {
|
|
4463
4661
|
type: String,
|
|
4464
4662
|
reflect: true
|
|
4465
4663
|
},
|
|
@@ -4519,9 +4717,9 @@ class AuroDropdown extends r$4 {
|
|
|
4519
4717
|
|
|
4520
4718
|
static get styles() {
|
|
4521
4719
|
return [
|
|
4522
|
-
colorCss$
|
|
4523
|
-
styleCss$
|
|
4524
|
-
tokensCss
|
|
4720
|
+
colorCss$1$1,
|
|
4721
|
+
styleCss$1$1,
|
|
4722
|
+
tokensCss$1
|
|
4525
4723
|
];
|
|
4526
4724
|
}
|
|
4527
4725
|
|
|
@@ -4534,7 +4732,7 @@ class AuroDropdown extends r$4 {
|
|
|
4534
4732
|
*
|
|
4535
4733
|
*/
|
|
4536
4734
|
static register(name = "auro-dropdown") {
|
|
4537
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroDropdown);
|
|
4735
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
4538
4736
|
}
|
|
4539
4737
|
|
|
4540
4738
|
connectedCallback() {
|
|
@@ -4548,8 +4746,8 @@ class AuroDropdown extends r$4 {
|
|
|
4548
4746
|
updated(changedProperties) {
|
|
4549
4747
|
this.floater.handleUpdate(changedProperties);
|
|
4550
4748
|
|
|
4551
|
-
if (changedProperties.has('
|
|
4552
|
-
this.bibContent.mobileFullscreenBreakpoint = this.
|
|
4749
|
+
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
4750
|
+
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
4553
4751
|
}
|
|
4554
4752
|
|
|
4555
4753
|
// when trigger's content is changed without any attribute or node change,
|
|
@@ -4767,9 +4965,9 @@ class AuroDropdown extends r$4 {
|
|
|
4767
4965
|
</div>
|
|
4768
4966
|
` : undefined }
|
|
4769
4967
|
</div>
|
|
4770
|
-
|
|
4968
|
+
<${this.helpTextTag} part="helpText" ?error="${this.error}">
|
|
4771
4969
|
<slot name="helpText"></slot>
|
|
4772
|
-
|
|
4970
|
+
</${this.helpTextTag}>
|
|
4773
4971
|
<div class="slotContent">
|
|
4774
4972
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
4775
4973
|
</div>
|
|
@@ -4789,12 +4987,803 @@ class AuroDropdown extends r$4 {
|
|
|
4789
4987
|
|
|
4790
4988
|
var dropdownVersion = '3.0.0';
|
|
4791
4989
|
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4990
|
+
/**
|
|
4991
|
+
* @license
|
|
4992
|
+
* Copyright 2019 Google LLC
|
|
4993
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4994
|
+
*/
|
|
4995
|
+
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$3 = 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$3=t=>new n$3("string"==typeof t?t:t+"",void 0,s$2),i$5=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3(o,t,s$2)},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$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
|
|
4795
4996
|
|
|
4796
|
-
|
|
4797
|
-
|
|
4997
|
+
/**
|
|
4998
|
+
* @license
|
|
4999
|
+
* Copyright 2017 Google LLC
|
|
5000
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5001
|
+
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$3,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(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$1=(t,s)=>!i$4(t,s),y$1={attribute:true,type:String,converter:u$2,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$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$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("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$3(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$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).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$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$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
5002
|
+
|
|
5003
|
+
/**
|
|
5004
|
+
* @license
|
|
5005
|
+
* Copyright 2017 Google LLC
|
|
5006
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5007
|
+
*/
|
|
5008
|
+
const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2="?"+h,n$1=`<${o$2}>`,r$1=document,l$1=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u$1=t=>a$1(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$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$1?s$1.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$1: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$3?i$3.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$2)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$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&&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$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(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$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.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};
|
|
5009
|
+
|
|
5010
|
+
/**
|
|
5011
|
+
* @license
|
|
5012
|
+
* Copyright 2017 Google LLC
|
|
5013
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5014
|
+
*/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$2=globalThis.litElementPolyfillSupport;i$2?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
5015
|
+
|
|
5016
|
+
/**
|
|
5017
|
+
* @license
|
|
5018
|
+
* Copyright 2020 Google LLC
|
|
5019
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5020
|
+
*/
|
|
5021
|
+
const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i$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}),l=new Map,n=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(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=n(x);
|
|
5022
|
+
|
|
5023
|
+
var colorCss$1 = i$5``;
|
|
5024
|
+
|
|
5025
|
+
var styleCss$2 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#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{overflow:auto;flex:1 1 100%;padding-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
5026
|
+
|
|
5027
|
+
var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15))}`;
|
|
5028
|
+
|
|
5029
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5030
|
+
// See LICENSE in the project root for license information.
|
|
5031
|
+
|
|
5032
|
+
// ---------------------------------------------------------------------
|
|
5033
|
+
|
|
5034
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5035
|
+
|
|
5036
|
+
class AuroLibraryRuntimeUtils {
|
|
5037
|
+
|
|
5038
|
+
/* eslint-disable jsdoc/require-param */
|
|
5039
|
+
|
|
5040
|
+
/**
|
|
5041
|
+
* This will register a new custom element with the browser.
|
|
5042
|
+
* @param {String} name - The name of the custom element.
|
|
5043
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
5044
|
+
* @returns {void}
|
|
5045
|
+
*/
|
|
5046
|
+
registerComponent(name, componentClass) {
|
|
5047
|
+
if (!customElements.get(name)) {
|
|
5048
|
+
customElements.define(name, class extends componentClass {});
|
|
5049
|
+
}
|
|
5050
|
+
}
|
|
5051
|
+
|
|
5052
|
+
/**
|
|
5053
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
5054
|
+
* @returns {void}
|
|
5055
|
+
*/
|
|
5056
|
+
closestElement(
|
|
5057
|
+
selector, // selector like in .closest()
|
|
5058
|
+
base = this, // extra functionality to skip a parent
|
|
5059
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
5060
|
+
!el || el === document || el === window
|
|
5061
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
5062
|
+
: found
|
|
5063
|
+
? found // found a selector INside this element
|
|
5064
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
5065
|
+
) {
|
|
5066
|
+
return __Closest(base);
|
|
5067
|
+
}
|
|
5068
|
+
/* eslint-enable jsdoc/require-param */
|
|
5069
|
+
|
|
5070
|
+
/**
|
|
5071
|
+
* 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.
|
|
5072
|
+
* @param {Object} elem - The element to check.
|
|
5073
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
5074
|
+
* @returns {void}
|
|
5075
|
+
*/
|
|
5076
|
+
handleComponentTagRename(elem, tagName) {
|
|
5077
|
+
const tag = tagName.toLowerCase();
|
|
5078
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
5079
|
+
|
|
5080
|
+
if (elemTag !== tag) {
|
|
5081
|
+
elem.setAttribute(tag, true);
|
|
5082
|
+
}
|
|
5083
|
+
}
|
|
5084
|
+
|
|
5085
|
+
/**
|
|
5086
|
+
* Validates if an element is a specific Auro component.
|
|
5087
|
+
* @param {Object} elem - The element to validate.
|
|
5088
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
5089
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
5090
|
+
*/
|
|
5091
|
+
elementMatch(elem, tagName) {
|
|
5092
|
+
const tag = tagName.toLowerCase();
|
|
5093
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
5094
|
+
|
|
5095
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
5096
|
+
}
|
|
5097
|
+
}
|
|
5098
|
+
|
|
5099
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5100
|
+
// See LICENSE in the project root for license information.
|
|
5101
|
+
|
|
5102
|
+
|
|
5103
|
+
class AuroDependencyVersioning {
|
|
5104
|
+
|
|
5105
|
+
/**
|
|
5106
|
+
* Generates a unique string to be used for child auro element naming.
|
|
5107
|
+
* @private
|
|
5108
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
5109
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
5110
|
+
* @returns {string} - Unique string to be used for naming.
|
|
5111
|
+
*/
|
|
5112
|
+
generateElementName(baseName, version) {
|
|
5113
|
+
let result = baseName;
|
|
5114
|
+
|
|
5115
|
+
result += '-';
|
|
5116
|
+
result += version.replace(/[.]/g, '_');
|
|
5117
|
+
|
|
5118
|
+
return result;
|
|
5119
|
+
}
|
|
5120
|
+
|
|
5121
|
+
/**
|
|
5122
|
+
* Generates a unique string to be used for child auro element naming.
|
|
5123
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
5124
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
5125
|
+
* @returns {string} - Unique string to be used for naming.
|
|
5126
|
+
*/
|
|
5127
|
+
generateTag(baseName, version, tagClass) {
|
|
5128
|
+
const elementName = this.generateElementName(baseName, version);
|
|
5129
|
+
const tag = i$1`${s(elementName)}`;
|
|
5130
|
+
|
|
5131
|
+
if (!customElements.get(elementName)) {
|
|
5132
|
+
customElements.define(elementName, class extends tagClass {});
|
|
5133
|
+
}
|
|
5134
|
+
|
|
5135
|
+
return tag;
|
|
5136
|
+
}
|
|
5137
|
+
}
|
|
5138
|
+
|
|
5139
|
+
/**
|
|
5140
|
+
* @license
|
|
5141
|
+
* Copyright 2017 Google LLC
|
|
5142
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5143
|
+
*/
|
|
5144
|
+
const t={ATTRIBUTE:1},e$1=t=>(...e)=>({_$litDirective$:t,values:e});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)}}
|
|
5145
|
+
|
|
5146
|
+
/**
|
|
5147
|
+
* @license
|
|
5148
|
+
* Copyright 2018 Google LLC
|
|
5149
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5150
|
+
*/const e=e$1(class extends i{constructor(t$1){if(super(t$1),t$1.type!==t.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}});
|
|
5151
|
+
|
|
5152
|
+
/**
|
|
5153
|
+
* @license
|
|
5154
|
+
* Copyright 2018 Google LLC
|
|
5155
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5156
|
+
*/const o=o=>o??E;
|
|
5157
|
+
|
|
5158
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5159
|
+
// See LICENSE in the project root for license information.
|
|
5160
|
+
|
|
5161
|
+
|
|
5162
|
+
/**
|
|
5163
|
+
* @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
|
|
5164
|
+
* @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
|
|
5165
|
+
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
5166
|
+
*/
|
|
5167
|
+
|
|
5168
|
+
class AuroElement extends r {
|
|
5169
|
+
|
|
5170
|
+
// function to define props used within the scope of this component
|
|
5171
|
+
static get properties() {
|
|
5172
|
+
return {
|
|
5173
|
+
hidden: { type: Boolean,
|
|
5174
|
+
reflect: true },
|
|
5175
|
+
hiddenVisually: { type: Boolean,
|
|
5176
|
+
reflect: true },
|
|
5177
|
+
hiddenAudible: { type: Boolean,
|
|
5178
|
+
reflect: true },
|
|
5179
|
+
};
|
|
5180
|
+
}
|
|
5181
|
+
|
|
5182
|
+
/**
|
|
5183
|
+
* @private Function that determines state of aria-hidden
|
|
5184
|
+
*/
|
|
5185
|
+
hideAudible(value) {
|
|
5186
|
+
if (value) {
|
|
5187
|
+
return 'true'
|
|
5188
|
+
}
|
|
5189
|
+
|
|
5190
|
+
return 'false'
|
|
5191
|
+
}
|
|
5192
|
+
}
|
|
5193
|
+
|
|
5194
|
+
var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
5195
|
+
|
|
5196
|
+
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
5197
|
+
|
|
5198
|
+
const _fetchMap = new Map();
|
|
5199
|
+
|
|
5200
|
+
/**
|
|
5201
|
+
* A callback to parse Response body.
|
|
5202
|
+
*
|
|
5203
|
+
* @callback ResponseParser
|
|
5204
|
+
* @param {Fetch.Response} response
|
|
5205
|
+
* @returns {Promise}
|
|
5206
|
+
*/
|
|
5207
|
+
|
|
5208
|
+
/**
|
|
5209
|
+
* A minimal in-memory map to de-duplicate Fetch API media requests.
|
|
5210
|
+
*
|
|
5211
|
+
* @param {String} uri
|
|
5212
|
+
* @param {Object} [options={}]
|
|
5213
|
+
* @param {ResponseParser} [options.responseParser=(response) => response.text()]
|
|
5214
|
+
* @returns {Promise}
|
|
5215
|
+
*/
|
|
5216
|
+
const cacheFetch = (uri, options = {}) => {
|
|
5217
|
+
const responseParser = options.responseParser || ((response) => response.text());
|
|
5218
|
+
if (!_fetchMap.has(uri)) {
|
|
5219
|
+
_fetchMap.set(uri, fetch(uri).then(responseParser));
|
|
5220
|
+
}
|
|
5221
|
+
return _fetchMap.get(uri);
|
|
5222
|
+
};
|
|
5223
|
+
|
|
5224
|
+
var styleCss$1 = i$5`*,*: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}.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}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
|
|
5225
|
+
|
|
5226
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5227
|
+
// See LICENSE in the project root for license information.
|
|
5228
|
+
|
|
5229
|
+
|
|
5230
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
5231
|
+
/**
|
|
5232
|
+
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
5233
|
+
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
5234
|
+
*/
|
|
5235
|
+
|
|
5236
|
+
// build the component class
|
|
5237
|
+
class BaseIcon extends AuroElement {
|
|
5238
|
+
constructor() {
|
|
5239
|
+
super();
|
|
5240
|
+
this.onDark = false;
|
|
5241
|
+
}
|
|
5242
|
+
|
|
5243
|
+
// function to define props used within the scope of this component
|
|
5244
|
+
static get properties() {
|
|
5245
|
+
return {
|
|
5246
|
+
...super.properties,
|
|
5247
|
+
onDark: {
|
|
5248
|
+
type: Boolean,
|
|
5249
|
+
reflect: true
|
|
5250
|
+
},
|
|
5251
|
+
|
|
5252
|
+
/**
|
|
5253
|
+
* @private
|
|
5254
|
+
*/
|
|
5255
|
+
svg: {
|
|
5256
|
+
attribute: false,
|
|
5257
|
+
reflect: true
|
|
5258
|
+
}
|
|
5259
|
+
};
|
|
5260
|
+
}
|
|
5261
|
+
|
|
5262
|
+
static get styles() {
|
|
5263
|
+
return i$5`
|
|
5264
|
+
${styleCss$1}
|
|
5265
|
+
`;
|
|
5266
|
+
}
|
|
5267
|
+
|
|
5268
|
+
/**
|
|
5269
|
+
* Async function to fetch requested icon from npm CDN.
|
|
5270
|
+
* @private
|
|
5271
|
+
* @param {string} category - Icon category.
|
|
5272
|
+
* @param {string} name - Icon name.
|
|
5273
|
+
* @returns {SVGElement} DOM - Ready HTML to be appended.
|
|
5274
|
+
*/
|
|
5275
|
+
async fetchIcon(category, name) {
|
|
5276
|
+
let iconHTML = '';
|
|
5277
|
+
|
|
5278
|
+
if (category === 'logos') {
|
|
5279
|
+
iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
|
|
5280
|
+
} else {
|
|
5281
|
+
iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
|
|
5282
|
+
}
|
|
5283
|
+
|
|
5284
|
+
const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
|
|
5285
|
+
|
|
5286
|
+
return dom.body.querySelector('svg');
|
|
5287
|
+
}
|
|
5288
|
+
|
|
5289
|
+
// lifecycle function
|
|
5290
|
+
async firstUpdated() {
|
|
5291
|
+
if (!this.customSvg) {
|
|
5292
|
+
const svg = await this.fetchIcon(this.category, this.name);
|
|
5293
|
+
|
|
5294
|
+
if (svg) {
|
|
5295
|
+
this.svg = svg;
|
|
5296
|
+
} else if (!svg) {
|
|
5297
|
+
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
5298
|
+
|
|
5299
|
+
this.svg = penDOM.body.firstChild;
|
|
5300
|
+
}
|
|
5301
|
+
}
|
|
5302
|
+
}
|
|
5303
|
+
}
|
|
5304
|
+
|
|
5305
|
+
var tokensCss = i$5`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
|
|
5306
|
+
|
|
5307
|
+
var colorCss$2 = i$5`: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)}`;
|
|
5308
|
+
|
|
5309
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5310
|
+
// See LICENSE in the project root for license information.
|
|
5311
|
+
|
|
5312
|
+
|
|
5313
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
5314
|
+
/**
|
|
5315
|
+
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
5316
|
+
*
|
|
5317
|
+
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
5318
|
+
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
5319
|
+
* @attr {Boolean} customColor - Removes primary selector.
|
|
5320
|
+
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
5321
|
+
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
5322
|
+
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
5323
|
+
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
5324
|
+
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
5325
|
+
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
5326
|
+
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
5327
|
+
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
5328
|
+
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
5329
|
+
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
5330
|
+
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
5331
|
+
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
5332
|
+
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
5333
|
+
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
5334
|
+
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
5335
|
+
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
5336
|
+
* @slot svg - Used for custom SVG content.
|
|
5337
|
+
*/
|
|
5338
|
+
|
|
5339
|
+
// build the component class
|
|
5340
|
+
class AuroIcon extends BaseIcon {
|
|
5341
|
+
constructor() {
|
|
5342
|
+
super();
|
|
5343
|
+
|
|
5344
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
5345
|
+
|
|
5346
|
+
this.privateDefaults();
|
|
5347
|
+
}
|
|
5348
|
+
|
|
5349
|
+
/**
|
|
5350
|
+
* Internal Defaults.
|
|
5351
|
+
* @private
|
|
5352
|
+
* @returns {void}
|
|
5353
|
+
*/
|
|
5354
|
+
privateDefaults() {
|
|
5355
|
+
this.accent = false;
|
|
5356
|
+
this.customColor = false;
|
|
5357
|
+
this.customSvg = false;
|
|
5358
|
+
this.disabled = false;
|
|
5359
|
+
this.emphasis = false;
|
|
5360
|
+
this.error = false;
|
|
5361
|
+
this.info = false;
|
|
5362
|
+
this.label = false;
|
|
5363
|
+
this.primary = false;
|
|
5364
|
+
this.secondary = false;
|
|
5365
|
+
this.subtle = false;
|
|
5366
|
+
this.success = false;
|
|
5367
|
+
this.tertiary = false;
|
|
5368
|
+
this.warning = false;
|
|
5369
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
5370
|
+
}
|
|
5371
|
+
|
|
5372
|
+
// function to define props used within the scope of this component
|
|
5373
|
+
static get properties() {
|
|
5374
|
+
return {
|
|
5375
|
+
...super.properties,
|
|
5376
|
+
accent: {
|
|
5377
|
+
type: Boolean,
|
|
5378
|
+
reflect: true
|
|
5379
|
+
},
|
|
5380
|
+
ariaHidden: {
|
|
5381
|
+
type: String,
|
|
5382
|
+
reflect: true
|
|
5383
|
+
},
|
|
5384
|
+
category: {
|
|
5385
|
+
type: String,
|
|
5386
|
+
reflect: true
|
|
5387
|
+
},
|
|
5388
|
+
customColor: {
|
|
5389
|
+
type: Boolean
|
|
5390
|
+
},
|
|
5391
|
+
customSvg: {
|
|
5392
|
+
type: Boolean
|
|
5393
|
+
},
|
|
5394
|
+
disabled: {
|
|
5395
|
+
type: Boolean,
|
|
5396
|
+
reflect: true
|
|
5397
|
+
},
|
|
5398
|
+
emphasis: {
|
|
5399
|
+
type: Boolean,
|
|
5400
|
+
reflect: true
|
|
5401
|
+
},
|
|
5402
|
+
error: {
|
|
5403
|
+
type: Boolean,
|
|
5404
|
+
reflect: true
|
|
5405
|
+
},
|
|
5406
|
+
info: {
|
|
5407
|
+
type: Boolean,
|
|
5408
|
+
reflect: true
|
|
5409
|
+
},
|
|
5410
|
+
label: {
|
|
5411
|
+
type: Boolean,
|
|
5412
|
+
reflect: true
|
|
5413
|
+
},
|
|
5414
|
+
name: {
|
|
5415
|
+
type: String,
|
|
5416
|
+
reflect: true
|
|
5417
|
+
},
|
|
5418
|
+
primary: {
|
|
5419
|
+
type: Boolean,
|
|
5420
|
+
reflect: true
|
|
5421
|
+
},
|
|
5422
|
+
secondary: {
|
|
5423
|
+
type: Boolean,
|
|
5424
|
+
reflect: true
|
|
5425
|
+
},
|
|
5426
|
+
subtle: {
|
|
5427
|
+
type: Boolean,
|
|
5428
|
+
reflect: true
|
|
5429
|
+
},
|
|
5430
|
+
success: {
|
|
5431
|
+
type: Boolean,
|
|
5432
|
+
reflect: true
|
|
5433
|
+
},
|
|
5434
|
+
tertiary: {
|
|
5435
|
+
type: Boolean,
|
|
5436
|
+
reflect: true
|
|
5437
|
+
},
|
|
5438
|
+
uri: {
|
|
5439
|
+
type: String
|
|
5440
|
+
},
|
|
5441
|
+
warning: {
|
|
5442
|
+
type: Boolean,
|
|
5443
|
+
reflect: true
|
|
5444
|
+
}
|
|
5445
|
+
};
|
|
5446
|
+
}
|
|
5447
|
+
|
|
5448
|
+
static get styles() {
|
|
5449
|
+
return [
|
|
5450
|
+
super.styles,
|
|
5451
|
+
i$5`${tokensCss}`,
|
|
5452
|
+
i$5`${styleCss$1}`,
|
|
5453
|
+
i$5`${colorCss$2}`
|
|
5454
|
+
];
|
|
5455
|
+
}
|
|
5456
|
+
|
|
5457
|
+
/**
|
|
5458
|
+
* This will register this element with the browser.
|
|
5459
|
+
* @param {string} [name="auro-icon"] - The name of element that you want to register to.
|
|
5460
|
+
*
|
|
5461
|
+
* @example
|
|
5462
|
+
* AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
|
|
5463
|
+
*
|
|
5464
|
+
*/
|
|
5465
|
+
static register(name = "auro-icon") {
|
|
5466
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
5467
|
+
}
|
|
5468
|
+
|
|
5469
|
+
connectedCallback() {
|
|
5470
|
+
super.connectedCallback();
|
|
5471
|
+
|
|
5472
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
5473
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
|
|
5474
|
+
}
|
|
5475
|
+
|
|
5476
|
+
/**
|
|
5477
|
+
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
5478
|
+
*/
|
|
5479
|
+
exposeCssParts() {
|
|
5480
|
+
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
5481
|
+
}
|
|
5482
|
+
|
|
5483
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
5484
|
+
render() {
|
|
5485
|
+
const a11y = {
|
|
5486
|
+
'labelContainer': true,
|
|
5487
|
+
'util_displayHiddenVisually': !this.label
|
|
5488
|
+
};
|
|
5489
|
+
|
|
5490
|
+
const classes = {
|
|
5491
|
+
'label': this.label,
|
|
5492
|
+
'wrapper': true,
|
|
5493
|
+
};
|
|
5494
|
+
|
|
5495
|
+
return x`
|
|
5496
|
+
<div
|
|
5497
|
+
class="${e(classes)}"
|
|
5498
|
+
title="${o(this.title || undefined)}">
|
|
5499
|
+
<span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
5500
|
+
${this.customSvg ? x`
|
|
5501
|
+
<slot name="svg"></slot>
|
|
5502
|
+
` : x`
|
|
5503
|
+
${this.svg}
|
|
5504
|
+
`
|
|
5505
|
+
}
|
|
5506
|
+
</span>
|
|
5507
|
+
|
|
5508
|
+
<div class="${e(a11y)}">
|
|
5509
|
+
<slot></slot>
|
|
5510
|
+
</div>
|
|
5511
|
+
</div>
|
|
5512
|
+
`;
|
|
5513
|
+
}
|
|
5514
|
+
}
|
|
5515
|
+
|
|
5516
|
+
var iconVersion = '6.1.2';
|
|
5517
|
+
|
|
5518
|
+
var styleCss$3 = i$5`.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)}.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)}`;
|
|
5519
|
+
|
|
5520
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5521
|
+
// See LICENSE in the project root for license information.
|
|
5522
|
+
|
|
5523
|
+
|
|
5524
|
+
/**
|
|
5525
|
+
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
5526
|
+
*
|
|
5527
|
+
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
5528
|
+
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
5529
|
+
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
5530
|
+
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
5531
|
+
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
5532
|
+
*/
|
|
5533
|
+
|
|
5534
|
+
/* eslint complexity: ["error", 21] */
|
|
5535
|
+
|
|
5536
|
+
// build the component class
|
|
5537
|
+
class AuroHeader extends r {
|
|
5538
|
+
constructor() {
|
|
5539
|
+
super();
|
|
5540
|
+
|
|
5541
|
+
this.display = 'display';
|
|
5542
|
+
|
|
5543
|
+
/**
|
|
5544
|
+
* @private
|
|
5545
|
+
*/
|
|
5546
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
5547
|
+
}
|
|
5548
|
+
|
|
5549
|
+
// function to define props used within the scope of this component
|
|
5550
|
+
static get properties() {
|
|
5551
|
+
return {
|
|
5552
|
+
level: { type: String },
|
|
5553
|
+
display: {
|
|
5554
|
+
type: String,
|
|
5555
|
+
reflect: true
|
|
5556
|
+
},
|
|
5557
|
+
color: { type: String },
|
|
5558
|
+
margin: { type: String },
|
|
5559
|
+
size: { type: String }
|
|
5560
|
+
};
|
|
5561
|
+
}
|
|
5562
|
+
|
|
5563
|
+
static get styles() {
|
|
5564
|
+
return [styleCss$3];
|
|
5565
|
+
}
|
|
5566
|
+
|
|
5567
|
+
/**
|
|
5568
|
+
* This will register this element with the browser.
|
|
5569
|
+
* @param {string} [name="auro-header"] - The name of element that you want to register to.
|
|
5570
|
+
*
|
|
5571
|
+
* @example
|
|
5572
|
+
* AuroHeader.register("custom-header") // this will register this element to <custom-header/>
|
|
5573
|
+
*
|
|
5574
|
+
*/
|
|
5575
|
+
static register(name = "auro-header") {
|
|
5576
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
5577
|
+
}
|
|
5578
|
+
|
|
5579
|
+
firstUpdated() {
|
|
5580
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
5581
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-header');
|
|
5582
|
+
}
|
|
5583
|
+
|
|
5584
|
+
/**
|
|
5585
|
+
* Determines if the spacing is to be applied uniform or individual.
|
|
5586
|
+
* @private
|
|
5587
|
+
* @param {string} size - Accepts string for size definition.
|
|
5588
|
+
* @returns {string} - Returns either selectors or function.
|
|
5589
|
+
*/
|
|
5590
|
+
spacingDecision(size) {
|
|
5591
|
+
if (this.margin === 'both') {
|
|
5592
|
+
switch (size) {
|
|
5593
|
+
case 'none': return `util_stackMarginnone--top util_stackMarginnone--bottom`;
|
|
5594
|
+
case '25': return `util_stackMargin25--top util_stackMargin25--bottom`;
|
|
5595
|
+
case '50': return `util_stackMargin50--top util_stackMargin50--bottom`;
|
|
5596
|
+
case '100': return `util_stackMargin100--top util_stackMargin100--bottom`;
|
|
5597
|
+
case '150': return `util_stackMargin150--top util_stackMargin150--bottom`;
|
|
5598
|
+
case '200': return `util_stackMargin200--top util_stackMargin200--bottom`;
|
|
5599
|
+
case '300': return `util_stackMargin300--top util_stackMargin300--bottom`;
|
|
5600
|
+
case '400': return `util_stackMargin400--top util_stackMargin400--bottom`;
|
|
5601
|
+
case '600': return `util_stackMargin600--top util_stackMargin600--bottom`;
|
|
5602
|
+
case '800': return `util_stackMargin800--top util_stackMargin800--bottom`;
|
|
5603
|
+
default: return '';
|
|
5604
|
+
}
|
|
5605
|
+
} else {
|
|
5606
|
+
return this.spacingApplied(size);
|
|
5607
|
+
}
|
|
5608
|
+
}
|
|
5609
|
+
|
|
5610
|
+
/**
|
|
5611
|
+
* If spacing is individual, return will be single selector based on input.
|
|
5612
|
+
* @private
|
|
5613
|
+
* @param {string} size - Accepts string for size definition.
|
|
5614
|
+
* @returns {string} - Returns selector.
|
|
5615
|
+
*/
|
|
5616
|
+
spacingApplied(size) {
|
|
5617
|
+
switch (size) {
|
|
5618
|
+
case 'none': return `util_stackMarginnone--${this.margin}`;
|
|
5619
|
+
case '25': return `util_stackMargin25--${this.margin}`;
|
|
5620
|
+
case '50': return `util_stackMargin50--${this.margin}`;
|
|
5621
|
+
case '100': return `util_stackMargin100--${this.margin}`;
|
|
5622
|
+
case '150': return `util_stackMargin150--${this.margin}`;
|
|
5623
|
+
case '200': return `util_stackMargin200--${this.margin}`;
|
|
5624
|
+
case '300': return `util_stackMargin300--${this.margin}`;
|
|
5625
|
+
case '400': return `util_stackMargin400--${this.margin}`;
|
|
5626
|
+
case '600': return `util_stackMarginX600--${this.margin}`;
|
|
5627
|
+
case '800': return `util_stackMargin800--${this.margin}`;
|
|
5628
|
+
default: return '';
|
|
5629
|
+
}
|
|
5630
|
+
}
|
|
5631
|
+
|
|
5632
|
+
/**
|
|
5633
|
+
* Creates HTML template for use in render function.
|
|
5634
|
+
* @private
|
|
5635
|
+
* @param {string} level - Accepts string value.
|
|
5636
|
+
* @returns {string} - Returns HTML template.
|
|
5637
|
+
*/
|
|
5638
|
+
template(level) {
|
|
5639
|
+
if (this.display === '' || this.display === null) {
|
|
5640
|
+
this.display = 'display';
|
|
5641
|
+
}
|
|
5642
|
+
|
|
5643
|
+
switch (level) {
|
|
5644
|
+
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>`;
|
|
5645
|
+
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>`;
|
|
5646
|
+
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>`;
|
|
5647
|
+
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>`;
|
|
5648
|
+
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>`;
|
|
5649
|
+
default: return x`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h1>`;
|
|
5650
|
+
}
|
|
5651
|
+
}
|
|
5652
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
5653
|
+
|
|
5654
|
+
render() {
|
|
5655
|
+
return this.template(this.level);
|
|
5656
|
+
}
|
|
5657
|
+
}
|
|
5658
|
+
|
|
5659
|
+
var headerVersion = '3.0.0';
|
|
5660
|
+
|
|
5661
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5662
|
+
// See LICENSE in the project root for license information.
|
|
5663
|
+
|
|
5664
|
+
|
|
5665
|
+
class AuroBibtemplate extends r {
|
|
5666
|
+
|
|
5667
|
+
constructor() {
|
|
5668
|
+
super();
|
|
5669
|
+
|
|
5670
|
+
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
5671
|
+
|
|
5672
|
+
const versioning = new AuroDependencyVersioning();
|
|
5673
|
+
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
5674
|
+
this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
|
|
5675
|
+
}
|
|
5676
|
+
|
|
5677
|
+
static get styles() {
|
|
5678
|
+
return [
|
|
5679
|
+
colorCss$1,
|
|
5680
|
+
styleCss$2,
|
|
5681
|
+
tokenCss
|
|
5682
|
+
];
|
|
5683
|
+
}
|
|
5684
|
+
|
|
5685
|
+
// function to define props used within the scope of this component
|
|
5686
|
+
static get properties() {
|
|
5687
|
+
return {
|
|
5688
|
+
isFullscreen: {
|
|
5689
|
+
type: Boolean,
|
|
5690
|
+
reflect: true,
|
|
5691
|
+
},
|
|
5692
|
+
large: {
|
|
5693
|
+
type: Boolean,
|
|
5694
|
+
reflect: true,
|
|
5695
|
+
}
|
|
5696
|
+
};
|
|
5697
|
+
}
|
|
5698
|
+
|
|
5699
|
+
// function to define props used within the scope of this component
|
|
5700
|
+
/**
|
|
5701
|
+
* This will register this element with the browser.
|
|
5702
|
+
* @param {string} [name="auro-bibtemplate"] - The name of element that you want to register to.
|
|
5703
|
+
*
|
|
5704
|
+
* @example
|
|
5705
|
+
* AuroCheckbox.register("custom-bibtemplate") // this will register this element to <custom-bibtemplate/>
|
|
5706
|
+
*
|
|
5707
|
+
*/
|
|
5708
|
+
static register(name = "auro-bibtemplate") {
|
|
5709
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
|
|
5710
|
+
}
|
|
5711
|
+
|
|
5712
|
+
/**
|
|
5713
|
+
* Prevents scrolling of the body when touching empty areas of the component.
|
|
5714
|
+
* @param {Event} event - The touchmove event.
|
|
5715
|
+
* @returns {void}
|
|
5716
|
+
*/
|
|
5717
|
+
preventBodyScroll(event) {
|
|
5718
|
+
if (event.target === this) {
|
|
5719
|
+
event.preventDefault();
|
|
5720
|
+
}
|
|
5721
|
+
}
|
|
5722
|
+
|
|
5723
|
+
connectedCallback() {
|
|
5724
|
+
super.connectedCallback();
|
|
5725
|
+
|
|
5726
|
+
this.preventBodyScroll = this.preventBodyScroll.bind(this);
|
|
5727
|
+
this.addEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
5728
|
+
}
|
|
5729
|
+
|
|
5730
|
+
disconnectedCallback() {
|
|
5731
|
+
super.disconnectedCallback();
|
|
5732
|
+
|
|
5733
|
+
this.removeEventListener('touchmove', this.preventBodyScroll, { passive: false });
|
|
5734
|
+
}
|
|
5735
|
+
|
|
5736
|
+
onCloseButtonClick() {
|
|
5737
|
+
this.dispatchEvent(new Event("close-click", { bubbles: true,
|
|
5738
|
+
composed: true }));
|
|
5739
|
+
}
|
|
5740
|
+
|
|
5741
|
+
/**
|
|
5742
|
+
* Exposes CSS parts for styling from parent components.
|
|
5743
|
+
* @returns {void}
|
|
5744
|
+
*/
|
|
5745
|
+
exposeCssParts() {
|
|
5746
|
+
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
5747
|
+
}
|
|
5748
|
+
|
|
5749
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
5750
|
+
render() {
|
|
5751
|
+
return u`
|
|
5752
|
+
<div id="bibTemplate" part="bibtemplate">
|
|
5753
|
+
${this.isFullscreen ? u`
|
|
5754
|
+
<div id="headerContainer">
|
|
5755
|
+
<button id="closeButton" @click="${this.onCloseButtonClick}">
|
|
5756
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
5757
|
+
</button>
|
|
5758
|
+
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header">
|
|
5759
|
+
<slot name="header"></slot>
|
|
5760
|
+
</${this.headerTag}>
|
|
5761
|
+
<span id="subheader">
|
|
5762
|
+
<slot name="subheader"></slot>
|
|
5763
|
+
</span>
|
|
5764
|
+
</div>` : null}
|
|
5765
|
+
|
|
5766
|
+
<div id="bodyContainer">
|
|
5767
|
+
<slot></slot>
|
|
5768
|
+
</div>
|
|
5769
|
+
|
|
5770
|
+
${this.isFullscreen ? u`
|
|
5771
|
+
<div id="footerContainer">
|
|
5772
|
+
<slot name="footer"></slot>
|
|
5773
|
+
</div>` : null}
|
|
5774
|
+
</div>
|
|
5775
|
+
`;
|
|
5776
|
+
}
|
|
5777
|
+
}
|
|
5778
|
+
|
|
5779
|
+
var bibTemplateVersion = '1.0.0';
|
|
5780
|
+
|
|
5781
|
+
var styleCss = i$g`:host{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}:host ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}:host([isindropdown]){padding:var(--ds-size-300, 1.5rem)}`;
|
|
5782
|
+
|
|
5783
|
+
var colorCss = i$g`:host ::slotted(*:not(:first-child)){border-color:var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12))}`;
|
|
5784
|
+
|
|
5785
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5786
|
+
// See LICENSE in the project root for license information.
|
|
4798
5787
|
|
|
4799
5788
|
|
|
4800
5789
|
/**
|
|
@@ -4807,7 +5796,7 @@ var colorCss = i$f`:host ::slotted(*:not(:first-child)){border-color:var(--ds-co
|
|
|
4807
5796
|
* @extends LitElement
|
|
4808
5797
|
* @slot Default - Slot for counter elements.
|
|
4809
5798
|
*/
|
|
4810
|
-
class AuroCounterWrapper extends r$
|
|
5799
|
+
class AuroCounterWrapper extends r$9 {
|
|
4811
5800
|
|
|
4812
5801
|
static get styles() {
|
|
4813
5802
|
return [
|
|
@@ -4823,12 +5812,12 @@ class AuroCounterWrapper extends r$8 {
|
|
|
4823
5812
|
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
4824
5813
|
*/
|
|
4825
5814
|
static register(name = "auro-counter-wrapper") {
|
|
4826
|
-
AuroLibraryRuntimeUtils$
|
|
5815
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroCounterWrapper);
|
|
4827
5816
|
}
|
|
4828
5817
|
|
|
4829
5818
|
// function that renders the HTML and CSS into the scope of the component
|
|
4830
5819
|
render() {
|
|
4831
|
-
return u$
|
|
5820
|
+
return u$6`<slot></slot>`;
|
|
4832
5821
|
}
|
|
4833
5822
|
}
|
|
4834
5823
|
|
|
@@ -4850,11 +5839,13 @@ if (!customElements.get("auro-counter-wrapper")) {
|
|
|
4850
5839
|
* @element auro-counter-group
|
|
4851
5840
|
* @extends LitElement
|
|
4852
5841
|
* @slot Default - Slot for counter elements.
|
|
5842
|
+
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
5843
|
+
* @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib
|
|
4853
5844
|
* @slot Label - Dropdown label content. Only used when `isDropdown` is true.
|
|
4854
5845
|
* @slot ValueText - Dropdown value text display. Only used when `isDropdown` is true.
|
|
4855
5846
|
* @slot HelpText - Dropdown help text content. Only used when `isDropdown` is true.
|
|
4856
5847
|
*/
|
|
4857
|
-
class AuroCounterGroup extends r$
|
|
5848
|
+
class AuroCounterGroup extends r$9 {
|
|
4858
5849
|
constructor() {
|
|
4859
5850
|
super();
|
|
4860
5851
|
|
|
@@ -4864,6 +5855,7 @@ class AuroCounterGroup extends r$8 {
|
|
|
4864
5855
|
this.total = undefined;
|
|
4865
5856
|
this.validity = undefined;
|
|
4866
5857
|
this.value = undefined;
|
|
5858
|
+
this.fullscreenBreakpoint = 'sm';
|
|
4867
5859
|
|
|
4868
5860
|
/**
|
|
4869
5861
|
* @private
|
|
@@ -4884,7 +5876,7 @@ class AuroCounterGroup extends r$8 {
|
|
|
4884
5876
|
* Generate unique names for dependency components.
|
|
4885
5877
|
* @private
|
|
4886
5878
|
*/
|
|
4887
|
-
const versioning = new AuroDependencyVersioning$
|
|
5879
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
4888
5880
|
|
|
4889
5881
|
/**
|
|
4890
5882
|
* Dynamically generated dropdown tag.
|
|
@@ -4892,10 +5884,17 @@ class AuroCounterGroup extends r$8 {
|
|
|
4892
5884
|
* @type {string}
|
|
4893
5885
|
*/
|
|
4894
5886
|
this.dropdownTag = versioning.generateTag("auro-dropdown", dropdownVersion, AuroDropdown);
|
|
5887
|
+
|
|
5888
|
+
/**
|
|
5889
|
+
* Dynamically generated bibtempalate tag.
|
|
5890
|
+
* @private
|
|
5891
|
+
* @type {string}
|
|
5892
|
+
*/
|
|
5893
|
+
this.bibtemplateTag = versioning.generateTag('auro-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
4895
5894
|
}
|
|
4896
5895
|
|
|
4897
5896
|
static get styles() {
|
|
4898
|
-
return [styleCss$
|
|
5897
|
+
return [styleCss$5];
|
|
4899
5898
|
}
|
|
4900
5899
|
|
|
4901
5900
|
static get properties() {
|
|
@@ -4944,6 +5943,25 @@ class AuroCounterGroup extends r$8 {
|
|
|
4944
5943
|
*/
|
|
4945
5944
|
value: {
|
|
4946
5945
|
type: Object,
|
|
5946
|
+
},
|
|
5947
|
+
|
|
5948
|
+
/**
|
|
5949
|
+
* If declared, make mobileHeadline in HeadingDisplay.
|
|
5950
|
+
* Otherwise, Heading 600
|
|
5951
|
+
*/
|
|
5952
|
+
largeMobileHeadline: {
|
|
5953
|
+
type: Boolean,
|
|
5954
|
+
reflect: true
|
|
5955
|
+
},
|
|
5956
|
+
|
|
5957
|
+
/**
|
|
5958
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
|
|
5959
|
+
* When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
5960
|
+
* @default sm
|
|
5961
|
+
*/
|
|
5962
|
+
fullscreenBreakpoint: {
|
|
5963
|
+
type: String,
|
|
5964
|
+
reflect: true
|
|
4947
5965
|
}
|
|
4948
5966
|
};
|
|
4949
5967
|
}
|
|
@@ -5063,6 +6081,34 @@ class AuroCounterGroup extends r$8 {
|
|
|
5063
6081
|
this.counters.forEach((counter) => {
|
|
5064
6082
|
counter.addEventListener("input", () => this.updateValue());
|
|
5065
6083
|
});
|
|
6084
|
+
|
|
6085
|
+
if (this.isDropdown) {
|
|
6086
|
+
this.configureBibtemplate();
|
|
6087
|
+
}
|
|
6088
|
+
}
|
|
6089
|
+
|
|
6090
|
+
/**
|
|
6091
|
+
* @private
|
|
6092
|
+
* This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
|
|
6093
|
+
*/
|
|
6094
|
+
configureBibtemplate() {
|
|
6095
|
+
const bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
|
|
6096
|
+
bibtemplate.addEventListener('close-click', () => {
|
|
6097
|
+
if (this.dropdown.isPopoverVisible) {
|
|
6098
|
+
this.dropdown.hide();
|
|
6099
|
+
}
|
|
6100
|
+
});
|
|
6101
|
+
const bibHeader = this.querySelector('[slot="bib.fullscreen.headline"]');
|
|
6102
|
+
if (bibHeader) {
|
|
6103
|
+
bibHeader.setAttribute('slot', 'header');
|
|
6104
|
+
bibtemplate.append(bibHeader);
|
|
6105
|
+
}
|
|
6106
|
+
|
|
6107
|
+
const bibFooter = this.querySelector('[slot="bib.fullscreen.footer"]');
|
|
6108
|
+
if (bibFooter) {
|
|
6109
|
+
bibFooter.setAttribute('slot', 'footer');
|
|
6110
|
+
bibtemplate.append(bibFooter);
|
|
6111
|
+
}
|
|
5066
6112
|
}
|
|
5067
6113
|
|
|
5068
6114
|
/**
|
|
@@ -5132,24 +6178,28 @@ class AuroCounterGroup extends r$8 {
|
|
|
5132
6178
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
5133
6179
|
*/
|
|
5134
6180
|
static register(name = "auro-counter-group") {
|
|
5135
|
-
AuroLibraryRuntimeUtils$
|
|
6181
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroCounterGroup);
|
|
5136
6182
|
}
|
|
5137
6183
|
|
|
5138
6184
|
// function that renders the HTML and CSS into the scope of the component
|
|
5139
6185
|
render() {
|
|
5140
|
-
return u$
|
|
6186
|
+
return u$6`
|
|
5141
6187
|
${this.isDropdown
|
|
5142
|
-
? u$
|
|
6188
|
+
? u$6`<${this.dropdownTag} common chevron fullscreenBreakpoint="${this.fullscreenBreakpoint}">
|
|
6189
|
+
|
|
5143
6190
|
<div slot="trigger"><slot name="valueText">
|
|
5144
6191
|
${this.counters && Array.from(this.counters).map((counter, index) => `${counter.value} ${counter.defaultSlot}${index !== this.counters.length - 1 ? ', ' : ''}`)}
|
|
5145
6192
|
</slot></div>
|
|
5146
6193
|
<div slot="label"><slot name="label"></slot></div>
|
|
5147
6194
|
<div slot="helpText"><slot name="helpText"></slot></div>
|
|
5148
|
-
|
|
5149
|
-
|
|
6195
|
+
|
|
6196
|
+
<${this.bibtemplateTag} ?large="${this.largeMobileHeadline}">
|
|
6197
|
+
<auro-counter-wrapper isInDropdown>
|
|
6198
|
+
</auro-counter-wrapper>
|
|
6199
|
+
</${this.bibtemplateTag}>
|
|
5150
6200
|
</${this.dropdownTag}>
|
|
5151
6201
|
<slot @slotchange=${() => this.configureDropdownCounters()}></slot>`
|
|
5152
|
-
: u$
|
|
6202
|
+
: u$6`<auro-counter-wrapper><slot @slotchange=${() => this.configureCounters()}></slot></auro-counter-wrapper>`
|
|
5153
6203
|
}`;
|
|
5154
6204
|
}
|
|
5155
6205
|
}
|
|
@@ -5157,9 +6207,36 @@ class AuroCounterGroup extends r$8 {
|
|
|
5157
6207
|
AuroCounter.register();
|
|
5158
6208
|
AuroCounterGroup.register();
|
|
5159
6209
|
|
|
6210
|
+
function dropdownCounterExample() {
|
|
6211
|
+
const elem = document.querySelector('#dropdownCouterExample');
|
|
6212
|
+
const resetBtn = elem.querySelector("#dropdownCounterExampleResetbutton") || elem.dropdown.bib.querySelector("#dropdownCounterExampleResetbutton");
|
|
6213
|
+
const saveBtn = elem.querySelector("#dropdownCounterExampleSavebutton") || elem.dropdown.bib.querySelector("#dropdownCounterExampleSavebutton");
|
|
6214
|
+
|
|
6215
|
+
resetBtn.addEventListener('click', () => {
|
|
6216
|
+
elem.counters.forEach(counter => {
|
|
6217
|
+
counter.value = 0;
|
|
6218
|
+
});
|
|
6219
|
+
});
|
|
6220
|
+
|
|
6221
|
+
saveBtn.addEventListener('click', () => {
|
|
6222
|
+
elem.dropdown.hide();
|
|
6223
|
+
});
|
|
6224
|
+
}
|
|
6225
|
+
|
|
5160
6226
|
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers */
|
|
5161
6227
|
|
|
5162
6228
|
function initExamples(initialCount = 0) {
|
|
6229
|
+
try {
|
|
6230
|
+
// javascript example function calls to be added here upon creation to test examples
|
|
6231
|
+
dropdownCounterExample();
|
|
6232
|
+
} catch (err) {
|
|
6233
|
+
if (initialCount <= 20) {
|
|
6234
|
+
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
6235
|
+
setTimeout(() => {
|
|
6236
|
+
initExamples(initialCount + 1);
|
|
6237
|
+
}, 100);
|
|
6238
|
+
}
|
|
6239
|
+
}
|
|
5163
6240
|
}
|
|
5164
6241
|
|
|
5165
6242
|
export { initExamples };
|