@aurodesignsystem/auro-formkit 2.0.2 → 2.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +281 -135
- package/components/bibtemplate/dist/registered.js +281 -135
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +30 -56
- package/components/checkbox/demo/index.min.js +30 -56
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/index.js +28 -101
- package/components/checkbox/dist/registered.js +28 -101
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.min.js +1289 -734
- package/components/combobox/demo/index.min.js +1289 -734
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/index.js +1024 -632
- package/components/combobox/dist/registered.js +1024 -632
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +971 -435
- package/components/counter/demo/index.js +1 -0
- package/components/counter/demo/index.min.js +972 -435
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +972 -483
- package/components/counter/dist/registered.js +972 -483
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +30 -0
- package/components/datepicker/demo/api.min.js +1818 -735
- package/components/datepicker/demo/index.min.js +1818 -735
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-calendar.d.ts +5 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +7 -0
- package/components/datepicker/dist/buttonVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +1830 -817
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +1830 -817
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.min.js +231 -117
- package/components/dropdown/demo/index.min.js +231 -117
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/index.js +232 -165
- package/components/dropdown/dist/registered.js +232 -165
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/dist/index.js +4 -28
- package/components/form/dist/registered.js +4 -28
- package/components/helptext/dist/index.js +6 -30
- package/components/helptext/dist/registered.js +6 -30
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +471 -164
- package/components/input/demo/index.min.js +471 -164
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/index.js +468 -220
- package/components/input/dist/registered.js +468 -220
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.min.js +183 -60
- package/components/menu/demo/index.min.js +183 -60
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +205 -129
- package/components/menu/dist/registered.js +205 -129
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.min.js +30 -56
- package/components/radio/demo/index.min.js +30 -56
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/index.js +28 -101
- package/components/radio/dist/registered.js +28 -101
- package/components/select/README.md +1 -1
- package/components/select/demo/api.min.js +736 -436
- package/components/select/demo/index.min.js +736 -436
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/index.js +538 -402
- package/components/select/dist/registered.js +538 -402
- package/package.json +4 -2
|
@@ -3,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$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;
|
|
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$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");
|
|
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$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};
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/
|
|
25
|
+
*/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");
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2020 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
31
|
*/
|
|
32
|
-
const a
|
|
32
|
+
const a=Symbol.for(""),o$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);
|
|
33
33
|
|
|
34
|
-
var styleButtonTokenCss = i$
|
|
34
|
+
var styleButtonTokenCss = i$5`: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$5`.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$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_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={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)}}
|
|
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=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}});
|
|
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=o=>o??E;
|
|
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$3 = 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$2 = 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$1`${s(elementName)}`;
|
|
90
90
|
|
|
91
91
|
if (!customElements.get(elementName)) {
|
|
92
92
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -103,7 +103,7 @@ let AuroDependencyVersioning$2 = 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$7 = class AuroLibraryRuntimeUtils {
|
|
107
107
|
|
|
108
108
|
/* eslint-disable jsdoc/require-param */
|
|
109
109
|
|
|
@@ -166,17 +166,87 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
var styleCss$9 = i$
|
|
169
|
+
var styleCss$9 = i$5`: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$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}`;
|
|
171
|
+
var colorCss$8 = i$5`[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$7 = i$
|
|
173
|
+
var tokensCss$7 = i$5`: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
|
-
|
|
175
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
176
|
+
// See LICENSE in the project root for license information.
|
|
176
177
|
|
|
177
|
-
|
|
178
|
+
// ---------------------------------------------------------------------
|
|
179
|
+
|
|
180
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
181
|
+
|
|
182
|
+
let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
183
|
+
|
|
184
|
+
/* eslint-disable jsdoc/require-param */
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* This will register a new custom element with the browser.
|
|
188
|
+
* @param {String} name - The name of the custom element.
|
|
189
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
190
|
+
* @returns {void}
|
|
191
|
+
*/
|
|
192
|
+
registerComponent(name, componentClass) {
|
|
193
|
+
if (!customElements.get(name)) {
|
|
194
|
+
customElements.define(name, class extends componentClass {});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
178
197
|
|
|
179
|
-
|
|
198
|
+
/**
|
|
199
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
200
|
+
* @returns {void}
|
|
201
|
+
*/
|
|
202
|
+
closestElement(
|
|
203
|
+
selector, // selector like in .closest()
|
|
204
|
+
base = this, // extra functionality to skip a parent
|
|
205
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
206
|
+
!el || el === document || el === window
|
|
207
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
208
|
+
: found
|
|
209
|
+
? found // found a selector INside this element
|
|
210
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
211
|
+
) {
|
|
212
|
+
return __Closest(base);
|
|
213
|
+
}
|
|
214
|
+
/* eslint-enable jsdoc/require-param */
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* 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.
|
|
218
|
+
* @param {Object} elem - The element to check.
|
|
219
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
220
|
+
* @returns {void}
|
|
221
|
+
*/
|
|
222
|
+
handleComponentTagRename(elem, tagName) {
|
|
223
|
+
const tag = tagName.toLowerCase();
|
|
224
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
225
|
+
|
|
226
|
+
if (elemTag !== tag) {
|
|
227
|
+
elem.setAttribute(tag, true);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Validates if an element is a specific Auro component.
|
|
233
|
+
* @param {Object} elem - The element to validate.
|
|
234
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
235
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
236
|
+
*/
|
|
237
|
+
elementMatch(elem, tagName) {
|
|
238
|
+
const tag = tagName.toLowerCase();
|
|
239
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
240
|
+
|
|
241
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
var styleCss$8 = i$5`: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}}`;
|
|
246
|
+
|
|
247
|
+
var colorCss$7 = i$5`: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}`;
|
|
248
|
+
|
|
249
|
+
var tokensCss$6 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
180
250
|
|
|
181
251
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
182
252
|
// See LICENSE in the project root for license information.
|
|
@@ -201,7 +271,7 @@ var tokensCss$6 = i$g`:host{--ds-auro-loader-background-color: currentcolor;--ds
|
|
|
201
271
|
*/
|
|
202
272
|
|
|
203
273
|
// build the component class
|
|
204
|
-
class AuroLoader extends r
|
|
274
|
+
class AuroLoader extends r {
|
|
205
275
|
constructor() {
|
|
206
276
|
super();
|
|
207
277
|
|
|
@@ -223,7 +293,7 @@ class AuroLoader extends r$9 {
|
|
|
223
293
|
/**
|
|
224
294
|
* @private
|
|
225
295
|
*/
|
|
226
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
296
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
227
297
|
|
|
228
298
|
this.orbit = false;
|
|
229
299
|
this.ringworm = false;
|
|
@@ -255,9 +325,9 @@ class AuroLoader extends r$9 {
|
|
|
255
325
|
|
|
256
326
|
static get styles() {
|
|
257
327
|
return [
|
|
258
|
-
i$
|
|
259
|
-
i$
|
|
260
|
-
i$
|
|
328
|
+
i$5`${styleCss$8}`,
|
|
329
|
+
i$5`${colorCss$7}`,
|
|
330
|
+
i$5`${tokensCss$6}`
|
|
261
331
|
];
|
|
262
332
|
}
|
|
263
333
|
|
|
@@ -270,7 +340,7 @@ class AuroLoader extends r$9 {
|
|
|
270
340
|
*
|
|
271
341
|
*/
|
|
272
342
|
static register(name = "auro-loader") {
|
|
273
|
-
AuroLibraryRuntimeUtils$
|
|
343
|
+
AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroLoader);
|
|
274
344
|
}
|
|
275
345
|
|
|
276
346
|
firstUpdated() {
|
|
@@ -303,14 +373,14 @@ class AuroLoader extends r$9 {
|
|
|
303
373
|
|
|
304
374
|
// function that renders the HTML and CSS into the scope of the component
|
|
305
375
|
render() {
|
|
306
|
-
return x
|
|
307
|
-
${this.defineTemplate().map((idx) => x
|
|
376
|
+
return x`
|
|
377
|
+
${this.defineTemplate().map((idx) => x`
|
|
308
378
|
<span part="element" class="loader node-${idx}"></span>
|
|
309
379
|
`)}
|
|
310
380
|
|
|
311
381
|
<div class="no-animation">Loading...</div>
|
|
312
382
|
|
|
313
|
-
${this.ringworm ? x
|
|
383
|
+
${this.ringworm ? x`
|
|
314
384
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
315
385
|
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
316
386
|
</svg>`
|
|
@@ -320,7 +390,7 @@ class AuroLoader extends r$9 {
|
|
|
320
390
|
}
|
|
321
391
|
}
|
|
322
392
|
|
|
323
|
-
var loaderVersion = '
|
|
393
|
+
var loaderVersion = '4.0.0';
|
|
324
394
|
|
|
325
395
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
326
396
|
// See LICENSE in the project root for license information.
|
|
@@ -356,10 +426,20 @@ var loaderVersion = '3.1.1';
|
|
|
356
426
|
|
|
357
427
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
358
428
|
|
|
359
|
-
class AuroButton extends r
|
|
429
|
+
class AuroButton extends r {
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Enables form association for this element.
|
|
433
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
|
|
434
|
+
* @returns {boolean} - Returns true to enable form association.
|
|
435
|
+
*/
|
|
436
|
+
static get formAssociated() {
|
|
437
|
+
return true;
|
|
438
|
+
}
|
|
360
439
|
|
|
361
440
|
constructor() {
|
|
362
441
|
super();
|
|
442
|
+
|
|
363
443
|
this.autofocus = false;
|
|
364
444
|
this.disabled = false;
|
|
365
445
|
this.iconOnly = false;
|
|
@@ -372,10 +452,20 @@ class AuroButton extends r$9 {
|
|
|
372
452
|
this.slim = false;
|
|
373
453
|
this.fluid = false;
|
|
374
454
|
|
|
455
|
+
// Support for HTML5 forms
|
|
456
|
+
if (typeof this.attachInternals === 'function') {
|
|
457
|
+
this.internals = this.attachInternals();
|
|
458
|
+
} else {
|
|
459
|
+
this.internals = null;
|
|
460
|
+
|
|
461
|
+
// eslint-disable-next-line no-console
|
|
462
|
+
console.warn('This browser does not support form association features. Some form-related functionality may not work as expected. Consider using a polyfill or handling click events manually.');
|
|
463
|
+
}
|
|
464
|
+
|
|
375
465
|
/**
|
|
376
466
|
* Generate unique names for dependency components.
|
|
377
467
|
*/
|
|
378
|
-
const versioning = new AuroDependencyVersioning$
|
|
468
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
379
469
|
|
|
380
470
|
/**
|
|
381
471
|
* @private
|
|
@@ -470,7 +560,7 @@ class AuroButton extends r$9 {
|
|
|
470
560
|
*
|
|
471
561
|
*/
|
|
472
562
|
static register(name = "auro-button") {
|
|
473
|
-
AuroLibraryRuntimeUtils$
|
|
563
|
+
AuroLibraryRuntimeUtils$7.prototype.registerComponent(name, AuroButton);
|
|
474
564
|
}
|
|
475
565
|
|
|
476
566
|
/**
|
|
@@ -512,6 +602,16 @@ class AuroButton extends r$9 {
|
|
|
512
602
|
this.notifyReady();
|
|
513
603
|
}
|
|
514
604
|
|
|
605
|
+
surfaceSubmitEvent() {
|
|
606
|
+
if (this.form) {
|
|
607
|
+
this.form.requestSubmit();
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
get form() {
|
|
612
|
+
return this.internals ? this.internals.form : null;
|
|
613
|
+
}
|
|
614
|
+
|
|
515
615
|
render() {
|
|
516
616
|
const classes = {
|
|
517
617
|
'util_insetLg--squish': true,
|
|
@@ -524,27 +624,27 @@ class AuroButton extends r$9 {
|
|
|
524
624
|
'loading': this.loading
|
|
525
625
|
};
|
|
526
626
|
|
|
527
|
-
return u
|
|
627
|
+
return u`
|
|
528
628
|
<button
|
|
529
629
|
part="button"
|
|
530
|
-
aria-label="${o
|
|
531
|
-
aria-labelledby="${o
|
|
630
|
+
aria-label="${o(this.arialabel ? this.arialabel : undefined)}"
|
|
631
|
+
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
532
632
|
?autofocus="${this.autofocus}"
|
|
533
|
-
class="${e
|
|
633
|
+
class="${e(classes)}"
|
|
534
634
|
?disabled="${this.disabled || this.loading}"
|
|
535
635
|
?onDark="${this.onDark}"
|
|
536
|
-
title="${o
|
|
537
|
-
name="${o
|
|
538
|
-
type="${o
|
|
539
|
-
variant="${o
|
|
540
|
-
.value="${o
|
|
541
|
-
@click="${
|
|
636
|
+
title="${o(this.title ? this.title : undefined)}"
|
|
637
|
+
name="${o(this.name ? this.name : undefined)}"
|
|
638
|
+
type="${o(this.type ? this.type : undefined)}"
|
|
639
|
+
variant="${o(this.variant ? this.variant : undefined)}"
|
|
640
|
+
.value="${o(this.value ? this.value : undefined)}"
|
|
641
|
+
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
542
642
|
>
|
|
543
|
-
${o
|
|
643
|
+
${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
544
644
|
|
|
545
645
|
<span class="contentWrapper">
|
|
546
646
|
<span class="textSlot" part="text">
|
|
547
|
-
${this.iconOnly ? undefined : u
|
|
647
|
+
${this.iconOnly ? undefined : u`<slot></slot>`}
|
|
548
648
|
</span>
|
|
549
649
|
|
|
550
650
|
<span part="icon">
|
|
@@ -556,6 +656,76 @@ class AuroButton extends r$9 {
|
|
|
556
656
|
}
|
|
557
657
|
}
|
|
558
658
|
|
|
659
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
660
|
+
// See LICENSE in the project root for license information.
|
|
661
|
+
|
|
662
|
+
// ---------------------------------------------------------------------
|
|
663
|
+
|
|
664
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
665
|
+
|
|
666
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
667
|
+
|
|
668
|
+
/* eslint-disable jsdoc/require-param */
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* This will register a new custom element with the browser.
|
|
672
|
+
* @param {String} name - The name of the custom element.
|
|
673
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
674
|
+
* @returns {void}
|
|
675
|
+
*/
|
|
676
|
+
registerComponent(name, componentClass) {
|
|
677
|
+
if (!customElements.get(name)) {
|
|
678
|
+
customElements.define(name, class extends componentClass {});
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
684
|
+
* @returns {void}
|
|
685
|
+
*/
|
|
686
|
+
closestElement(
|
|
687
|
+
selector, // selector like in .closest()
|
|
688
|
+
base = this, // extra functionality to skip a parent
|
|
689
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
690
|
+
!el || el === document || el === window
|
|
691
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
692
|
+
: found
|
|
693
|
+
? found // found a selector INside this element
|
|
694
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
695
|
+
) {
|
|
696
|
+
return __Closest(base);
|
|
697
|
+
}
|
|
698
|
+
/* eslint-enable jsdoc/require-param */
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* 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.
|
|
702
|
+
* @param {Object} elem - The element to check.
|
|
703
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
704
|
+
* @returns {void}
|
|
705
|
+
*/
|
|
706
|
+
handleComponentTagRename(elem, tagName) {
|
|
707
|
+
const tag = tagName.toLowerCase();
|
|
708
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
709
|
+
|
|
710
|
+
if (elemTag !== tag) {
|
|
711
|
+
elem.setAttribute(tag, true);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Validates if an element is a specific Auro component.
|
|
717
|
+
* @param {Object} elem - The element to validate.
|
|
718
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
719
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
720
|
+
*/
|
|
721
|
+
elementMatch(elem, tagName) {
|
|
722
|
+
const tag = tagName.toLowerCase();
|
|
723
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
724
|
+
|
|
725
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
|
|
559
729
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
560
730
|
// See LICENSE in the project root for license information.
|
|
561
731
|
|
|
@@ -580,7 +750,7 @@ class AuroCounterButton extends AuroButton {
|
|
|
580
750
|
*
|
|
581
751
|
*/
|
|
582
752
|
static register(name = "auro-counter-button") {
|
|
583
|
-
AuroLibraryRuntimeUtils$
|
|
753
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterButton);
|
|
584
754
|
}
|
|
585
755
|
}
|
|
586
756
|
|
|
@@ -590,6 +760,46 @@ if (!customElements.get("auro-counter-button")) {
|
|
|
590
760
|
customElements.define("auro-counter-button", AuroCounterButton);
|
|
591
761
|
}
|
|
592
762
|
|
|
763
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
764
|
+
// See LICENSE in the project root for license information.
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Generates a unique string to be used for child auro element naming.
|
|
771
|
+
* @private
|
|
772
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
773
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
774
|
+
* @returns {string} - Unique string to be used for naming.
|
|
775
|
+
*/
|
|
776
|
+
generateElementName(baseName, version) {
|
|
777
|
+
let result = baseName;
|
|
778
|
+
|
|
779
|
+
result += '-';
|
|
780
|
+
result += version.replace(/[.]/g, '_');
|
|
781
|
+
|
|
782
|
+
return result;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Generates a unique string to be used for child auro element naming.
|
|
787
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
788
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
789
|
+
* @returns {string} - Unique string to be used for naming.
|
|
790
|
+
*/
|
|
791
|
+
generateTag(baseName, version, tagClass) {
|
|
792
|
+
const elementName = this.generateElementName(baseName, version);
|
|
793
|
+
const tag = i$1`${s(elementName)}`;
|
|
794
|
+
|
|
795
|
+
if (!customElements.get(elementName)) {
|
|
796
|
+
customElements.define(elementName, class extends tagClass {});
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
return tag;
|
|
800
|
+
}
|
|
801
|
+
};
|
|
802
|
+
|
|
593
803
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
594
804
|
// See LICENSE in the project root for license information.
|
|
595
805
|
|
|
@@ -600,7 +810,7 @@ if (!customElements.get("auro-counter-button")) {
|
|
|
600
810
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
601
811
|
*/
|
|
602
812
|
|
|
603
|
-
let AuroElement$2 = class AuroElement extends r
|
|
813
|
+
let AuroElement$2 = class AuroElement extends r {
|
|
604
814
|
|
|
605
815
|
// function to define props used within the scope of this component
|
|
606
816
|
static get properties() {
|
|
@@ -656,7 +866,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
656
866
|
return _fetchMap$2.get(uri);
|
|
657
867
|
};
|
|
658
868
|
|
|
659
|
-
var styleCss$7 = i$
|
|
869
|
+
var styleCss$7 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
660
870
|
|
|
661
871
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
662
872
|
// See LICENSE in the project root for license information.
|
|
@@ -695,7 +905,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
695
905
|
}
|
|
696
906
|
|
|
697
907
|
static get styles() {
|
|
698
|
-
return i$
|
|
908
|
+
return i$5`
|
|
699
909
|
${styleCss$7}
|
|
700
910
|
`;
|
|
701
911
|
}
|
|
@@ -737,47 +947,88 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
737
947
|
}
|
|
738
948
|
};
|
|
739
949
|
|
|
740
|
-
var tokensCss$5 = i$
|
|
950
|
+
var tokensCss$5 = i$5`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
741
951
|
|
|
742
|
-
var colorCss$6 = i$
|
|
952
|
+
var colorCss$6 = 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)}`;
|
|
743
953
|
|
|
744
|
-
// Copyright (c)
|
|
954
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
745
955
|
// See LICENSE in the project root for license information.
|
|
746
956
|
|
|
957
|
+
// ---------------------------------------------------------------------
|
|
958
|
+
|
|
959
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
960
|
+
|
|
961
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
962
|
+
|
|
963
|
+
/* eslint-disable jsdoc/require-param */
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* This will register a new custom element with the browser.
|
|
967
|
+
* @param {String} name - The name of the custom element.
|
|
968
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
969
|
+
* @returns {void}
|
|
970
|
+
*/
|
|
971
|
+
registerComponent(name, componentClass) {
|
|
972
|
+
if (!customElements.get(name)) {
|
|
973
|
+
customElements.define(name, class extends componentClass {});
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
979
|
+
* @returns {void}
|
|
980
|
+
*/
|
|
981
|
+
closestElement(
|
|
982
|
+
selector, // selector like in .closest()
|
|
983
|
+
base = this, // extra functionality to skip a parent
|
|
984
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
985
|
+
!el || el === document || el === window
|
|
986
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
987
|
+
: found
|
|
988
|
+
? found // found a selector INside this element
|
|
989
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
990
|
+
) {
|
|
991
|
+
return __Closest(base);
|
|
992
|
+
}
|
|
993
|
+
/* eslint-enable jsdoc/require-param */
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* 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.
|
|
997
|
+
* @param {Object} elem - The element to check.
|
|
998
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
999
|
+
* @returns {void}
|
|
1000
|
+
*/
|
|
1001
|
+
handleComponentTagRename(elem, tagName) {
|
|
1002
|
+
const tag = tagName.toLowerCase();
|
|
1003
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
1004
|
+
|
|
1005
|
+
if (elemTag !== tag) {
|
|
1006
|
+
elem.setAttribute(tag, true);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Validates if an element is a specific Auro component.
|
|
1012
|
+
* @param {Object} elem - The element to validate.
|
|
1013
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
1014
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
1015
|
+
*/
|
|
1016
|
+
elementMatch(elem, tagName) {
|
|
1017
|
+
const tag = tagName.toLowerCase();
|
|
1018
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
1019
|
+
|
|
1020
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
1021
|
+
}
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1025
|
+
// See LICENSE in the project root for license information.
|
|
747
1026
|
|
|
748
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
749
|
-
/**
|
|
750
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
751
|
-
*
|
|
752
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
753
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
754
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
755
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
756
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
757
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
758
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
759
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
760
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
761
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
762
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
763
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
764
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
765
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
766
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
767
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
768
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
769
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
770
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
771
|
-
* @slot svg - Used for custom SVG content.
|
|
772
|
-
*/
|
|
773
1027
|
|
|
774
|
-
// build the component class
|
|
775
1028
|
let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
776
1029
|
constructor() {
|
|
777
1030
|
super();
|
|
778
1031
|
|
|
779
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
780
|
-
|
|
781
1032
|
this.privateDefaults();
|
|
782
1033
|
}
|
|
783
1034
|
|
|
@@ -801,78 +1052,144 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
801
1052
|
this.success = false;
|
|
802
1053
|
this.tertiary = false;
|
|
803
1054
|
this.warning = false;
|
|
804
|
-
this.
|
|
1055
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
1056
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
805
1057
|
}
|
|
806
1058
|
|
|
807
1059
|
// function to define props used within the scope of this component
|
|
808
1060
|
static get properties() {
|
|
809
1061
|
return {
|
|
810
1062
|
...super.properties,
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Sets the icon to use the accent style.
|
|
1066
|
+
*/
|
|
811
1067
|
accent: {
|
|
812
1068
|
type: Boolean,
|
|
813
1069
|
reflect: true
|
|
814
1070
|
},
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
1074
|
+
*/
|
|
815
1075
|
ariaHidden: {
|
|
816
1076
|
type: String,
|
|
817
1077
|
reflect: true
|
|
818
1078
|
},
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
1082
|
+
*/
|
|
819
1083
|
category: {
|
|
820
1084
|
type: String,
|
|
821
1085
|
reflect: true
|
|
822
1086
|
},
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Allows custom color to be set.
|
|
1090
|
+
*/
|
|
823
1091
|
customColor: {
|
|
824
1092
|
type: Boolean
|
|
825
1093
|
},
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
1097
|
+
*/
|
|
826
1098
|
customSvg: {
|
|
827
1099
|
type: Boolean
|
|
828
1100
|
},
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Sets the icon to use the disabled style.
|
|
1104
|
+
*/
|
|
829
1105
|
disabled: {
|
|
830
1106
|
type: Boolean,
|
|
831
1107
|
reflect: true
|
|
832
1108
|
},
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* Sets the icon to use the emphasis style.
|
|
1112
|
+
*/
|
|
833
1113
|
emphasis: {
|
|
834
1114
|
type: Boolean,
|
|
835
1115
|
reflect: true
|
|
836
1116
|
},
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* Sets the icon to use the error style.
|
|
1120
|
+
*/
|
|
837
1121
|
error: {
|
|
838
1122
|
type: Boolean,
|
|
839
1123
|
reflect: true
|
|
840
1124
|
},
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Sets the icon to use the info style.
|
|
1128
|
+
*/
|
|
841
1129
|
info: {
|
|
842
1130
|
type: Boolean,
|
|
843
1131
|
reflect: true
|
|
844
1132
|
},
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* Exposes content in slot as icon label.
|
|
1136
|
+
*/
|
|
845
1137
|
label: {
|
|
846
1138
|
type: Boolean,
|
|
847
1139
|
reflect: true
|
|
848
1140
|
},
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
1144
|
+
*/
|
|
849
1145
|
name: {
|
|
850
1146
|
type: String,
|
|
851
1147
|
reflect: true
|
|
852
1148
|
},
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
1152
|
+
*/
|
|
853
1153
|
primary: {
|
|
854
1154
|
type: Boolean,
|
|
855
1155
|
reflect: true
|
|
856
1156
|
},
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* Sets the icon to use the secondary style.
|
|
1160
|
+
*/
|
|
857
1161
|
secondary: {
|
|
858
1162
|
type: Boolean,
|
|
859
1163
|
reflect: true
|
|
860
1164
|
},
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* Sets the icon to use the subtle style.
|
|
1168
|
+
*/
|
|
861
1169
|
subtle: {
|
|
862
1170
|
type: Boolean,
|
|
863
1171
|
reflect: true
|
|
864
1172
|
},
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Sets the icon to use the success style.
|
|
1176
|
+
*/
|
|
865
1177
|
success: {
|
|
866
1178
|
type: Boolean,
|
|
867
1179
|
reflect: true
|
|
868
1180
|
},
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Sets the icon to use the tertiary style.
|
|
1184
|
+
*/
|
|
869
1185
|
tertiary: {
|
|
870
1186
|
type: Boolean,
|
|
871
1187
|
reflect: true
|
|
872
1188
|
},
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* Sets the icon to use the warning style.
|
|
1192
|
+
*/
|
|
876
1193
|
warning: {
|
|
877
1194
|
type: Boolean,
|
|
878
1195
|
reflect: true
|
|
@@ -883,9 +1200,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
883
1200
|
static get styles() {
|
|
884
1201
|
return [
|
|
885
1202
|
super.styles,
|
|
886
|
-
i$
|
|
887
|
-
i$
|
|
888
|
-
i$
|
|
1203
|
+
i$5`${tokensCss$5}`,
|
|
1204
|
+
i$5`${styleCss$7}`,
|
|
1205
|
+
i$5`${colorCss$6}`
|
|
889
1206
|
];
|
|
890
1207
|
}
|
|
891
1208
|
|
|
@@ -898,7 +1215,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
898
1215
|
*
|
|
899
1216
|
*/
|
|
900
1217
|
static register(name = "auro-icon") {
|
|
901
|
-
AuroLibraryRuntimeUtils$
|
|
1218
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroIcon);
|
|
902
1219
|
}
|
|
903
1220
|
|
|
904
1221
|
connectedCallback() {
|
|
@@ -909,38 +1226,54 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
909
1226
|
}
|
|
910
1227
|
|
|
911
1228
|
/**
|
|
1229
|
+
* @private
|
|
912
1230
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
913
1231
|
*/
|
|
914
1232
|
exposeCssParts() {
|
|
915
1233
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
916
1234
|
}
|
|
917
1235
|
|
|
1236
|
+
async firstUpdated() {
|
|
1237
|
+
await super.firstUpdated();
|
|
1238
|
+
|
|
1239
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
1240
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
1241
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
1242
|
+
|
|
1243
|
+
if (svgDesc) {
|
|
1244
|
+
svgDesc.remove();
|
|
1245
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
|
|
918
1250
|
// function that renders the HTML and CSS into the scope of the component
|
|
919
1251
|
render() {
|
|
920
|
-
const
|
|
921
|
-
'
|
|
1252
|
+
const labelClasses = {
|
|
1253
|
+
'labelWrapper': true,
|
|
922
1254
|
'util_displayHiddenVisually': !this.label
|
|
923
1255
|
};
|
|
924
1256
|
|
|
925
|
-
const
|
|
926
|
-
'
|
|
927
|
-
'wrapper': true,
|
|
1257
|
+
const svgClasses = {
|
|
1258
|
+
'svgWrapper': true,
|
|
928
1259
|
};
|
|
929
1260
|
|
|
930
|
-
return x
|
|
931
|
-
<div
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
${this.
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1261
|
+
return x`
|
|
1262
|
+
<div class="componentWrapper">
|
|
1263
|
+
<div
|
|
1264
|
+
class="${e(svgClasses)}"
|
|
1265
|
+
title="${o(this.title || undefined)}">
|
|
1266
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
1267
|
+
${this.customSvg ? x`
|
|
1268
|
+
<slot name="svg"></slot>
|
|
1269
|
+
` : x`
|
|
1270
|
+
${this.svg}
|
|
1271
|
+
`
|
|
1272
|
+
}
|
|
1273
|
+
</span>
|
|
1274
|
+
</div>
|
|
942
1275
|
|
|
943
|
-
<div class="${e
|
|
1276
|
+
<div class="${e(labelClasses)}">
|
|
944
1277
|
<slot></slot>
|
|
945
1278
|
</div>
|
|
946
1279
|
</div>
|
|
@@ -948,7 +1281,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
948
1281
|
}
|
|
949
1282
|
};
|
|
950
1283
|
|
|
951
|
-
var iconVersion$2 = '
|
|
1284
|
+
var iconVersion$2 = '7.0.1';
|
|
952
1285
|
|
|
953
1286
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
954
1287
|
// See LICENSE in the project root for license information.
|
|
@@ -956,7 +1289,7 @@ var iconVersion$2 = '6.1.2';
|
|
|
956
1289
|
|
|
957
1290
|
class AuroFormValidation {
|
|
958
1291
|
constructor() {
|
|
959
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
1292
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
960
1293
|
}
|
|
961
1294
|
|
|
962
1295
|
/**
|
|
@@ -1280,7 +1613,7 @@ class IconUtil {
|
|
|
1280
1613
|
|
|
1281
1614
|
svg.setAttribute('slot', 'svg');
|
|
1282
1615
|
|
|
1283
|
-
return u
|
|
1616
|
+
return u`${svg}`;
|
|
1284
1617
|
}
|
|
1285
1618
|
}
|
|
1286
1619
|
|
|
@@ -1288,11 +1621,11 @@ var plusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width"
|
|
|
1288
1621
|
|
|
1289
1622
|
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>"};
|
|
1290
1623
|
|
|
1291
|
-
var tokensCss$4 = i$
|
|
1624
|
+
var tokensCss$4 = i$5`: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)}`;
|
|
1292
1625
|
|
|
1293
|
-
var colorCss$5 = i$
|
|
1626
|
+
var colorCss$5 = i$5`.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)}`;
|
|
1294
1627
|
|
|
1295
|
-
var styleCss$6 = i$
|
|
1628
|
+
var styleCss$6 = i$5`.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}`;
|
|
1296
1629
|
|
|
1297
1630
|
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
1298
1631
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -1310,7 +1643,7 @@ var styleCss$6 = i$g`.counter{display:flex;align-items:center;justify-content:sp
|
|
|
1310
1643
|
* @slot default - Main label content for the counter.
|
|
1311
1644
|
* @slot description - Descriptive content for the counter.
|
|
1312
1645
|
*/
|
|
1313
|
-
class AuroCounter extends r
|
|
1646
|
+
class AuroCounter extends r {
|
|
1314
1647
|
constructor() {
|
|
1315
1648
|
super();
|
|
1316
1649
|
|
|
@@ -1339,14 +1672,14 @@ class AuroCounter extends r$9 {
|
|
|
1339
1672
|
* @private
|
|
1340
1673
|
* @type {string}
|
|
1341
1674
|
*/
|
|
1342
|
-
this.iconTag = versioning.generateTag("auro-icon", iconVersion$2, AuroIcon$2);
|
|
1675
|
+
this.iconTag = versioning.generateTag("auro-formkit-counter-icon", iconVersion$2, AuroIcon$2);
|
|
1343
1676
|
|
|
1344
1677
|
/**
|
|
1345
1678
|
* @private
|
|
1346
1679
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
1347
1680
|
*/
|
|
1348
1681
|
this.constructor.shadowRootOptions = {
|
|
1349
|
-
...r
|
|
1682
|
+
...r.shadowRootOptions,
|
|
1350
1683
|
delegatesFocus: true,
|
|
1351
1684
|
};
|
|
1352
1685
|
}
|
|
@@ -1441,7 +1774,7 @@ class AuroCounter extends r$9 {
|
|
|
1441
1774
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1442
1775
|
*/
|
|
1443
1776
|
static register(name = "auro-counter") {
|
|
1444
|
-
AuroLibraryRuntimeUtils$
|
|
1777
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounter);
|
|
1445
1778
|
}
|
|
1446
1779
|
|
|
1447
1780
|
static get styles() {
|
|
@@ -1578,7 +1911,7 @@ class AuroCounter extends r$9 {
|
|
|
1578
1911
|
}
|
|
1579
1912
|
|
|
1580
1913
|
render() {
|
|
1581
|
-
return u
|
|
1914
|
+
return u`
|
|
1582
1915
|
<div class="counter">
|
|
1583
1916
|
<div class="content" >
|
|
1584
1917
|
<label id="counter-label" class="label"><slot @slotchange="${this.onDefaultSlotChange}" ></slot></label>
|
|
@@ -1598,58 +1931,25 @@ class AuroCounter extends r$9 {
|
|
|
1598
1931
|
|
|
1599
1932
|
<div class="quantityWrapper">
|
|
1600
1933
|
<div class="quantity">${this.value !== undefined ? this.value : this.min}</div>
|
|
1601
|
-
</div>
|
|
1602
|
-
|
|
1603
|
-
<auro-counter-button
|
|
1604
|
-
aria-hidden="true"
|
|
1605
|
-
iconOnly
|
|
1606
|
-
tabindex="-1"
|
|
1607
|
-
part="controlPlus"
|
|
1608
|
-
@click="${() => this.increment()}"
|
|
1609
|
-
?disabled="${this.disabled || this.disableMax || this.isIncrementDisabled(this.max)}"
|
|
1610
|
-
>
|
|
1611
|
-
<${this.iconTag} class="controlIcon" slot="icon" customSvg> ${IconUtil.generateSvgHtml(plusIcon)} </${this.iconTag}>
|
|
1612
|
-
</auro-counter-button>
|
|
1613
|
-
</div>
|
|
1614
|
-
</div>
|
|
1615
|
-
`;
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
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)}#slotHolder{display:none}`;
|
|
1620
|
-
|
|
1621
|
-
/**
|
|
1622
|
-
* @license
|
|
1623
|
-
* Copyright 2017 Google LLC
|
|
1624
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1625
|
-
*/
|
|
1626
|
-
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};
|
|
1627
|
-
|
|
1628
|
-
/**
|
|
1629
|
-
* @license
|
|
1630
|
-
* Copyright 2020 Google LLC
|
|
1631
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1632
|
-
*/
|
|
1633
|
-
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);
|
|
1634
|
-
|
|
1635
|
-
/**
|
|
1636
|
-
* @license
|
|
1637
|
-
* Copyright 2019 Google LLC
|
|
1638
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1639
|
-
*/
|
|
1640
|
-
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;
|
|
1934
|
+
</div>
|
|
1641
1935
|
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1936
|
+
<auro-counter-button
|
|
1937
|
+
aria-hidden="true"
|
|
1938
|
+
iconOnly
|
|
1939
|
+
tabindex="-1"
|
|
1940
|
+
part="controlPlus"
|
|
1941
|
+
@click="${() => this.increment()}"
|
|
1942
|
+
?disabled="${this.disabled || this.disableMax || this.isIncrementDisabled(this.max)}"
|
|
1943
|
+
>
|
|
1944
|
+
<${this.iconTag} class="controlIcon" slot="icon" customSvg> ${IconUtil.generateSvgHtml(plusIcon)} </${this.iconTag}>
|
|
1945
|
+
</auro-counter-button>
|
|
1946
|
+
</div>
|
|
1947
|
+
</div>
|
|
1948
|
+
`;
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1647
1951
|
|
|
1648
|
-
|
|
1649
|
-
* @license
|
|
1650
|
-
* Copyright 2017 Google LLC
|
|
1651
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1652
|
-
*/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");
|
|
1952
|
+
var styleCss$5 = i$5`: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)}#slotHolder{display:none}`;
|
|
1653
1953
|
|
|
1654
1954
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1655
1955
|
// See LICENSE in the project root for license information.
|
|
@@ -1658,7 +1958,7 @@ const t$3=globalThis,e$6=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.na
|
|
|
1658
1958
|
|
|
1659
1959
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1660
1960
|
|
|
1661
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
1961
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
1662
1962
|
|
|
1663
1963
|
/* eslint-disable jsdoc/require-param */
|
|
1664
1964
|
|
|
@@ -2450,7 +2750,8 @@ function isContainingBlock(elementOrCss) {
|
|
|
2450
2750
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
2451
2751
|
|
|
2452
2752
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2453
|
-
|
|
2753
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
2754
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
2454
2755
|
}
|
|
2455
2756
|
function getContainingBlock(element) {
|
|
2456
2757
|
let currentNode = getParentNode(element);
|
|
@@ -3008,6 +3309,10 @@ const platform = {
|
|
|
3008
3309
|
isRTL
|
|
3009
3310
|
};
|
|
3010
3311
|
|
|
3312
|
+
function rectsAreEqual(a, b) {
|
|
3313
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3011
3316
|
// https://samthor.au/2021/observing-dom/
|
|
3012
3317
|
function observeMove(element, onMove) {
|
|
3013
3318
|
let io = null;
|
|
@@ -3027,12 +3332,13 @@ function observeMove(element, onMove) {
|
|
|
3027
3332
|
threshold = 1;
|
|
3028
3333
|
}
|
|
3029
3334
|
cleanup();
|
|
3335
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
3030
3336
|
const {
|
|
3031
3337
|
left,
|
|
3032
3338
|
top,
|
|
3033
3339
|
width,
|
|
3034
3340
|
height
|
|
3035
|
-
} =
|
|
3341
|
+
} = elementRectForRootMargin;
|
|
3036
3342
|
if (!skip) {
|
|
3037
3343
|
onMove();
|
|
3038
3344
|
}
|
|
@@ -3065,6 +3371,16 @@ function observeMove(element, onMove) {
|
|
|
3065
3371
|
refresh(false, ratio);
|
|
3066
3372
|
}
|
|
3067
3373
|
}
|
|
3374
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
3375
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
3376
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
3377
|
+
// area anymore. This can happen under performance constraints. This may
|
|
3378
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
3379
|
+
// work around this, we compare the element's bounding rect now with
|
|
3380
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
3381
|
+
// are not equal then the element moved, so we refresh.
|
|
3382
|
+
refresh();
|
|
3383
|
+
}
|
|
3068
3384
|
isFirstUpdate = false;
|
|
3069
3385
|
}
|
|
3070
3386
|
|
|
@@ -3142,7 +3458,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
3142
3458
|
}
|
|
3143
3459
|
function frameLoop() {
|
|
3144
3460
|
const nextRefRect = getBoundingClientRect(reference);
|
|
3145
|
-
if (prevRefRect && (
|
|
3461
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
3146
3462
|
update();
|
|
3147
3463
|
}
|
|
3148
3464
|
prevRefRect = nextRefRect;
|
|
@@ -3455,11 +3771,11 @@ class AuroFloatingUI {
|
|
|
3455
3771
|
|
|
3456
3772
|
updateCurrentExpandedDropdown() {
|
|
3457
3773
|
// Close any other dropdown that is already open
|
|
3458
|
-
if (document.
|
|
3459
|
-
|
|
3774
|
+
if (document.expandedAuroFormkitDropdown) {
|
|
3775
|
+
document.expandedAuroFormkitDropdown.hide;
|
|
3460
3776
|
}
|
|
3461
3777
|
|
|
3462
|
-
document.
|
|
3778
|
+
document.expandedAuroFormkitDropdown = this;
|
|
3463
3779
|
}
|
|
3464
3780
|
|
|
3465
3781
|
showBib() {
|
|
@@ -3673,7 +3989,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
3673
3989
|
*/
|
|
3674
3990
|
generateTag(baseName, version, tagClass) {
|
|
3675
3991
|
const elementName = this.generateElementName(baseName, version);
|
|
3676
|
-
const tag = i$
|
|
3992
|
+
const tag = i$1`${s(elementName)}`;
|
|
3677
3993
|
|
|
3678
3994
|
if (!customElements.get(elementName)) {
|
|
3679
3995
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -3683,25 +3999,6 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
3683
3999
|
}
|
|
3684
4000
|
};
|
|
3685
4001
|
|
|
3686
|
-
/**
|
|
3687
|
-
* @license
|
|
3688
|
-
* Copyright 2017 Google LLC
|
|
3689
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3690
|
-
*/
|
|
3691
|
-
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)}};
|
|
3692
|
-
|
|
3693
|
-
/**
|
|
3694
|
-
* @license
|
|
3695
|
-
* Copyright 2018 Google LLC
|
|
3696
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3697
|
-
*/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}});
|
|
3698
|
-
|
|
3699
|
-
/**
|
|
3700
|
-
* @license
|
|
3701
|
-
* Copyright 2018 Google LLC
|
|
3702
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
3703
|
-
*/const o$3$1=o=>o??E$1;
|
|
3704
|
-
|
|
3705
4002
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3706
4003
|
// See LICENSE in the project root for license information.
|
|
3707
4004
|
|
|
@@ -3712,7 +4009,7 @@ const t$2$1={ATTRIBUTE:1},e$4$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$
|
|
|
3712
4009
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
3713
4010
|
*/
|
|
3714
4011
|
|
|
3715
|
-
let AuroElement$1 = class AuroElement extends r
|
|
4012
|
+
let AuroElement$1 = class AuroElement extends r {
|
|
3716
4013
|
|
|
3717
4014
|
// function to define props used within the scope of this component
|
|
3718
4015
|
static get properties() {
|
|
@@ -3768,7 +4065,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
3768
4065
|
return _fetchMap$1.get(uri);
|
|
3769
4066
|
};
|
|
3770
4067
|
|
|
3771
|
-
var styleCss$3$1 = i$
|
|
4068
|
+
var styleCss$3$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
3772
4069
|
|
|
3773
4070
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3774
4071
|
// See LICENSE in the project root for license information.
|
|
@@ -3807,7 +4104,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
3807
4104
|
}
|
|
3808
4105
|
|
|
3809
4106
|
static get styles() {
|
|
3810
|
-
return i$
|
|
4107
|
+
return i$5`
|
|
3811
4108
|
${styleCss$3$1}
|
|
3812
4109
|
`;
|
|
3813
4110
|
}
|
|
@@ -3849,47 +4146,88 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
3849
4146
|
}
|
|
3850
4147
|
};
|
|
3851
4148
|
|
|
3852
|
-
var tokensCss$2 = i$
|
|
4149
|
+
var tokensCss$2 = i$5`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
3853
4150
|
|
|
3854
|
-
var colorCss$3 = i$
|
|
4151
|
+
var colorCss$3 = 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)}`;
|
|
3855
4152
|
|
|
3856
|
-
// Copyright (c)
|
|
4153
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3857
4154
|
// See LICENSE in the project root for license information.
|
|
3858
4155
|
|
|
4156
|
+
// ---------------------------------------------------------------------
|
|
4157
|
+
|
|
4158
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4159
|
+
|
|
4160
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
4161
|
+
|
|
4162
|
+
/* eslint-disable jsdoc/require-param */
|
|
4163
|
+
|
|
4164
|
+
/**
|
|
4165
|
+
* This will register a new custom element with the browser.
|
|
4166
|
+
* @param {String} name - The name of the custom element.
|
|
4167
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
4168
|
+
* @returns {void}
|
|
4169
|
+
*/
|
|
4170
|
+
registerComponent(name, componentClass) {
|
|
4171
|
+
if (!customElements.get(name)) {
|
|
4172
|
+
customElements.define(name, class extends componentClass {});
|
|
4173
|
+
}
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
/**
|
|
4177
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
4178
|
+
* @returns {void}
|
|
4179
|
+
*/
|
|
4180
|
+
closestElement(
|
|
4181
|
+
selector, // selector like in .closest()
|
|
4182
|
+
base = this, // extra functionality to skip a parent
|
|
4183
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4184
|
+
!el || el === document || el === window
|
|
4185
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
4186
|
+
: found
|
|
4187
|
+
? found // found a selector INside this element
|
|
4188
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4189
|
+
) {
|
|
4190
|
+
return __Closest(base);
|
|
4191
|
+
}
|
|
4192
|
+
/* eslint-enable jsdoc/require-param */
|
|
4193
|
+
|
|
4194
|
+
/**
|
|
4195
|
+
* 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.
|
|
4196
|
+
* @param {Object} elem - The element to check.
|
|
4197
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4198
|
+
* @returns {void}
|
|
4199
|
+
*/
|
|
4200
|
+
handleComponentTagRename(elem, tagName) {
|
|
4201
|
+
const tag = tagName.toLowerCase();
|
|
4202
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4203
|
+
|
|
4204
|
+
if (elemTag !== tag) {
|
|
4205
|
+
elem.setAttribute(tag, true);
|
|
4206
|
+
}
|
|
4207
|
+
}
|
|
4208
|
+
|
|
4209
|
+
/**
|
|
4210
|
+
* Validates if an element is a specific Auro component.
|
|
4211
|
+
* @param {Object} elem - The element to validate.
|
|
4212
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
4213
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4214
|
+
*/
|
|
4215
|
+
elementMatch(elem, tagName) {
|
|
4216
|
+
const tag = tagName.toLowerCase();
|
|
4217
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4218
|
+
|
|
4219
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
4220
|
+
}
|
|
4221
|
+
};
|
|
4222
|
+
|
|
4223
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4224
|
+
// See LICENSE in the project root for license information.
|
|
3859
4225
|
|
|
3860
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
3861
|
-
/**
|
|
3862
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
3863
|
-
*
|
|
3864
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
3865
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
3866
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
3867
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
3868
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
3869
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
3870
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
3871
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
3872
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
3873
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
3874
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
3875
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
3876
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
3877
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
3878
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
3879
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
3880
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
3881
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
3882
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
3883
|
-
* @slot svg - Used for custom SVG content.
|
|
3884
|
-
*/
|
|
3885
4226
|
|
|
3886
|
-
// build the component class
|
|
3887
4227
|
let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
3888
4228
|
constructor() {
|
|
3889
4229
|
super();
|
|
3890
4230
|
|
|
3891
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
3892
|
-
|
|
3893
4231
|
this.privateDefaults();
|
|
3894
4232
|
}
|
|
3895
4233
|
|
|
@@ -3913,78 +4251,144 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
3913
4251
|
this.success = false;
|
|
3914
4252
|
this.tertiary = false;
|
|
3915
4253
|
this.warning = false;
|
|
3916
|
-
this.
|
|
4254
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
4255
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
3917
4256
|
}
|
|
3918
4257
|
|
|
3919
4258
|
// function to define props used within the scope of this component
|
|
3920
4259
|
static get properties() {
|
|
3921
4260
|
return {
|
|
3922
4261
|
...super.properties,
|
|
4262
|
+
|
|
4263
|
+
/**
|
|
4264
|
+
* Sets the icon to use the accent style.
|
|
4265
|
+
*/
|
|
3923
4266
|
accent: {
|
|
3924
4267
|
type: Boolean,
|
|
3925
4268
|
reflect: true
|
|
3926
4269
|
},
|
|
4270
|
+
|
|
4271
|
+
/**
|
|
4272
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
4273
|
+
*/
|
|
3927
4274
|
ariaHidden: {
|
|
3928
4275
|
type: String,
|
|
3929
4276
|
reflect: true
|
|
3930
4277
|
},
|
|
4278
|
+
|
|
4279
|
+
/**
|
|
4280
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
4281
|
+
*/
|
|
3931
4282
|
category: {
|
|
3932
4283
|
type: String,
|
|
3933
4284
|
reflect: true
|
|
3934
4285
|
},
|
|
4286
|
+
|
|
4287
|
+
/**
|
|
4288
|
+
* Allows custom color to be set.
|
|
4289
|
+
*/
|
|
3935
4290
|
customColor: {
|
|
3936
4291
|
type: Boolean
|
|
3937
4292
|
},
|
|
4293
|
+
|
|
4294
|
+
/**
|
|
4295
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
4296
|
+
*/
|
|
3938
4297
|
customSvg: {
|
|
3939
4298
|
type: Boolean
|
|
3940
4299
|
},
|
|
4300
|
+
|
|
4301
|
+
/**
|
|
4302
|
+
* Sets the icon to use the disabled style.
|
|
4303
|
+
*/
|
|
3941
4304
|
disabled: {
|
|
3942
4305
|
type: Boolean,
|
|
3943
4306
|
reflect: true
|
|
3944
4307
|
},
|
|
4308
|
+
|
|
4309
|
+
/**
|
|
4310
|
+
* Sets the icon to use the emphasis style.
|
|
4311
|
+
*/
|
|
3945
4312
|
emphasis: {
|
|
3946
4313
|
type: Boolean,
|
|
3947
4314
|
reflect: true
|
|
3948
4315
|
},
|
|
4316
|
+
|
|
4317
|
+
/**
|
|
4318
|
+
* Sets the icon to use the error style.
|
|
4319
|
+
*/
|
|
3949
4320
|
error: {
|
|
3950
4321
|
type: Boolean,
|
|
3951
4322
|
reflect: true
|
|
3952
4323
|
},
|
|
4324
|
+
|
|
4325
|
+
/**
|
|
4326
|
+
* Sets the icon to use the info style.
|
|
4327
|
+
*/
|
|
3953
4328
|
info: {
|
|
3954
4329
|
type: Boolean,
|
|
3955
4330
|
reflect: true
|
|
3956
4331
|
},
|
|
4332
|
+
|
|
4333
|
+
/**
|
|
4334
|
+
* Exposes content in slot as icon label.
|
|
4335
|
+
*/
|
|
3957
4336
|
label: {
|
|
3958
4337
|
type: Boolean,
|
|
3959
4338
|
reflect: true
|
|
3960
4339
|
},
|
|
4340
|
+
|
|
4341
|
+
/**
|
|
4342
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
4343
|
+
*/
|
|
3961
4344
|
name: {
|
|
3962
4345
|
type: String,
|
|
3963
4346
|
reflect: true
|
|
3964
4347
|
},
|
|
4348
|
+
|
|
4349
|
+
/**
|
|
4350
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
4351
|
+
*/
|
|
3965
4352
|
primary: {
|
|
3966
4353
|
type: Boolean,
|
|
3967
4354
|
reflect: true
|
|
3968
4355
|
},
|
|
4356
|
+
|
|
4357
|
+
/**
|
|
4358
|
+
* Sets the icon to use the secondary style.
|
|
4359
|
+
*/
|
|
3969
4360
|
secondary: {
|
|
3970
4361
|
type: Boolean,
|
|
3971
4362
|
reflect: true
|
|
3972
4363
|
},
|
|
4364
|
+
|
|
4365
|
+
/**
|
|
4366
|
+
* Sets the icon to use the subtle style.
|
|
4367
|
+
*/
|
|
3973
4368
|
subtle: {
|
|
3974
4369
|
type: Boolean,
|
|
3975
4370
|
reflect: true
|
|
3976
4371
|
},
|
|
4372
|
+
|
|
4373
|
+
/**
|
|
4374
|
+
* Sets the icon to use the success style.
|
|
4375
|
+
*/
|
|
3977
4376
|
success: {
|
|
3978
4377
|
type: Boolean,
|
|
3979
4378
|
reflect: true
|
|
3980
4379
|
},
|
|
4380
|
+
|
|
4381
|
+
/**
|
|
4382
|
+
* Sets the icon to use the tertiary style.
|
|
4383
|
+
*/
|
|
3981
4384
|
tertiary: {
|
|
3982
4385
|
type: Boolean,
|
|
3983
4386
|
reflect: true
|
|
3984
4387
|
},
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
4388
|
+
|
|
4389
|
+
/**
|
|
4390
|
+
* Sets the icon to use the warning style.
|
|
4391
|
+
*/
|
|
3988
4392
|
warning: {
|
|
3989
4393
|
type: Boolean,
|
|
3990
4394
|
reflect: true
|
|
@@ -3995,9 +4399,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
3995
4399
|
static get styles() {
|
|
3996
4400
|
return [
|
|
3997
4401
|
super.styles,
|
|
3998
|
-
i$
|
|
3999
|
-
i$
|
|
4000
|
-
i$
|
|
4402
|
+
i$5`${tokensCss$2}`,
|
|
4403
|
+
i$5`${styleCss$3$1}`,
|
|
4404
|
+
i$5`${colorCss$3}`
|
|
4001
4405
|
];
|
|
4002
4406
|
}
|
|
4003
4407
|
|
|
@@ -4010,7 +4414,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4010
4414
|
*
|
|
4011
4415
|
*/
|
|
4012
4416
|
static register(name = "auro-icon") {
|
|
4013
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
4417
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
|
|
4014
4418
|
}
|
|
4015
4419
|
|
|
4016
4420
|
connectedCallback() {
|
|
@@ -4021,38 +4425,54 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4021
4425
|
}
|
|
4022
4426
|
|
|
4023
4427
|
/**
|
|
4428
|
+
* @private
|
|
4024
4429
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
4025
4430
|
*/
|
|
4026
4431
|
exposeCssParts() {
|
|
4027
4432
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
4028
4433
|
}
|
|
4029
4434
|
|
|
4435
|
+
async firstUpdated() {
|
|
4436
|
+
await super.firstUpdated();
|
|
4437
|
+
|
|
4438
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
4439
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
4440
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
4441
|
+
|
|
4442
|
+
if (svgDesc) {
|
|
4443
|
+
svgDesc.remove();
|
|
4444
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4447
|
+
}
|
|
4448
|
+
|
|
4030
4449
|
// function that renders the HTML and CSS into the scope of the component
|
|
4031
4450
|
render() {
|
|
4032
|
-
const
|
|
4033
|
-
'
|
|
4451
|
+
const labelClasses = {
|
|
4452
|
+
'labelWrapper': true,
|
|
4034
4453
|
'util_displayHiddenVisually': !this.label
|
|
4035
4454
|
};
|
|
4036
4455
|
|
|
4037
|
-
const
|
|
4038
|
-
'
|
|
4039
|
-
'wrapper': true,
|
|
4456
|
+
const svgClasses = {
|
|
4457
|
+
'svgWrapper': true,
|
|
4040
4458
|
};
|
|
4041
4459
|
|
|
4042
|
-
return x
|
|
4043
|
-
<div
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
${this.
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4460
|
+
return x`
|
|
4461
|
+
<div class="componentWrapper">
|
|
4462
|
+
<div
|
|
4463
|
+
class="${e(svgClasses)}"
|
|
4464
|
+
title="${o(this.title || undefined)}">
|
|
4465
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
4466
|
+
${this.customSvg ? x`
|
|
4467
|
+
<slot name="svg"></slot>
|
|
4468
|
+
` : x`
|
|
4469
|
+
${this.svg}
|
|
4470
|
+
`
|
|
4471
|
+
}
|
|
4472
|
+
</span>
|
|
4473
|
+
</div>
|
|
4054
4474
|
|
|
4055
|
-
<div class="${e
|
|
4475
|
+
<div class="${e(labelClasses)}">
|
|
4056
4476
|
<slot></slot>
|
|
4057
4477
|
</div>
|
|
4058
4478
|
</div>
|
|
@@ -4062,11 +4482,11 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4062
4482
|
|
|
4063
4483
|
var iconVersion$1 = '6.1.2';
|
|
4064
4484
|
|
|
4065
|
-
var styleCss$2$1 = i$
|
|
4485
|
+
var styleCss$2$1 = i$5`: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}`;
|
|
4066
4486
|
|
|
4067
|
-
var colorCss$2$1 = i$
|
|
4487
|
+
var colorCss$2$1 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
4068
4488
|
|
|
4069
|
-
var tokensCss$1 = i$
|
|
4489
|
+
var tokensCss$1 = i$5`: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)}`;
|
|
4070
4490
|
|
|
4071
4491
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4072
4492
|
// See LICENSE in the project root for license information.
|
|
@@ -4086,7 +4506,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
4086
4506
|
* @csspart bibContainer - Apply css to the bib container.
|
|
4087
4507
|
*/
|
|
4088
4508
|
|
|
4089
|
-
class AuroDropdownBib extends r
|
|
4509
|
+
class AuroDropdownBib extends r {
|
|
4090
4510
|
|
|
4091
4511
|
constructor() {
|
|
4092
4512
|
super();
|
|
@@ -4096,7 +4516,7 @@ class AuroDropdownBib extends r$4 {
|
|
|
4096
4516
|
*/
|
|
4097
4517
|
this._mobileBreakpointValue = undefined;
|
|
4098
4518
|
|
|
4099
|
-
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4519
|
+
AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4100
4520
|
}
|
|
4101
4521
|
|
|
4102
4522
|
static get styles() {
|
|
@@ -4177,7 +4597,7 @@ class AuroDropdownBib extends r$4 {
|
|
|
4177
4597
|
|
|
4178
4598
|
// function that renders the HTML and CSS into the scope of the component
|
|
4179
4599
|
render() {
|
|
4180
|
-
return u
|
|
4600
|
+
return u`
|
|
4181
4601
|
<div class="container" part="bibContainer">
|
|
4182
4602
|
<slot></slot>
|
|
4183
4603
|
</div>
|
|
@@ -4187,41 +4607,15 @@ class AuroDropdownBib extends r$4 {
|
|
|
4187
4607
|
|
|
4188
4608
|
var dropdownVersion$1 = '3.0.0';
|
|
4189
4609
|
|
|
4190
|
-
var styleCss$1$1 = i$
|
|
4191
|
-
|
|
4192
|
-
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)}`;
|
|
4193
|
-
|
|
4194
|
-
/**
|
|
4195
|
-
* @license
|
|
4196
|
-
* Copyright 2019 Google LLC
|
|
4197
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4198
|
-
*/
|
|
4199
|
-
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;
|
|
4200
|
-
|
|
4201
|
-
/**
|
|
4202
|
-
* @license
|
|
4203
|
-
* Copyright 2017 Google LLC
|
|
4204
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4205
|
-
*/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");
|
|
4206
|
-
|
|
4207
|
-
/**
|
|
4208
|
-
* @license
|
|
4209
|
-
* Copyright 2017 Google LLC
|
|
4210
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4211
|
-
*/
|
|
4212
|
-
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};
|
|
4610
|
+
var styleCss$1$1 = i$5`: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)}`;
|
|
4213
4611
|
|
|
4214
|
-
|
|
4215
|
-
* @license
|
|
4216
|
-
* Copyright 2017 Google LLC
|
|
4217
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4218
|
-
*/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");
|
|
4612
|
+
var colorCss$1$1 = i$5`.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)}`;
|
|
4219
4613
|
|
|
4220
|
-
var colorCss$4 = i$
|
|
4614
|
+
var colorCss$4 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4221
4615
|
|
|
4222
|
-
var styleCss$4 = i$
|
|
4616
|
+
var styleCss$4 = i$5`.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}`;
|
|
4223
4617
|
|
|
4224
|
-
var tokensCss$3 = i$
|
|
4618
|
+
var tokensCss$3 = i$5`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
4225
4619
|
|
|
4226
4620
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4227
4621
|
// See LICENSE in the project root for license information.
|
|
@@ -4230,7 +4624,7 @@ var tokensCss$3 = i$3$1`:host{--ds-auro-helptext-color: var(--ds-color-text-tert
|
|
|
4230
4624
|
|
|
4231
4625
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4232
4626
|
|
|
4233
|
-
let AuroLibraryRuntimeUtils$
|
|
4627
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4234
4628
|
|
|
4235
4629
|
/* eslint-disable jsdoc/require-param */
|
|
4236
4630
|
|
|
@@ -4302,7 +4696,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
4302
4696
|
*
|
|
4303
4697
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
4304
4698
|
*/
|
|
4305
|
-
class AuroHelpText extends r
|
|
4699
|
+
class AuroHelpText extends r {
|
|
4306
4700
|
|
|
4307
4701
|
constructor() {
|
|
4308
4702
|
super();
|
|
@@ -4310,7 +4704,7 @@ class AuroHelpText extends r$8 {
|
|
|
4310
4704
|
this.error = false;
|
|
4311
4705
|
this.hasTextContent = false;
|
|
4312
4706
|
|
|
4313
|
-
AuroLibraryRuntimeUtils$
|
|
4707
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
4314
4708
|
}
|
|
4315
4709
|
|
|
4316
4710
|
static get styles() {
|
|
@@ -4358,7 +4752,7 @@ class AuroHelpText extends r$8 {
|
|
|
4358
4752
|
*
|
|
4359
4753
|
*/
|
|
4360
4754
|
static register(name = "auro-helptext") {
|
|
4361
|
-
AuroLibraryRuntimeUtils$
|
|
4755
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
4362
4756
|
}
|
|
4363
4757
|
|
|
4364
4758
|
updated() {
|
|
@@ -4406,7 +4800,7 @@ class AuroHelpText extends r$8 {
|
|
|
4406
4800
|
|
|
4407
4801
|
// function that renders the HTML and CSS into the scope of the component
|
|
4408
4802
|
render() {
|
|
4409
|
-
return x
|
|
4803
|
+
return x`
|
|
4410
4804
|
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
4411
4805
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
4412
4806
|
</div>
|
|
@@ -4432,7 +4826,7 @@ var helpTextVersion = '1.0.0';
|
|
|
4432
4826
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
4433
4827
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
4434
4828
|
*/
|
|
4435
|
-
class AuroDropdown extends r
|
|
4829
|
+
class AuroDropdown extends r {
|
|
4436
4830
|
constructor() {
|
|
4437
4831
|
super();
|
|
4438
4832
|
|
|
@@ -4448,7 +4842,7 @@ class AuroDropdown extends r$4 {
|
|
|
4448
4842
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
4449
4843
|
*/
|
|
4450
4844
|
this.constructor.shadowRootOptions = {
|
|
4451
|
-
...r
|
|
4845
|
+
...r.shadowRootOptions,
|
|
4452
4846
|
delegatesFocus: true,
|
|
4453
4847
|
};
|
|
4454
4848
|
|
|
@@ -4491,7 +4885,7 @@ class AuroDropdown extends r$4 {
|
|
|
4491
4885
|
/**
|
|
4492
4886
|
* @private
|
|
4493
4887
|
*/
|
|
4494
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
4888
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
4495
4889
|
|
|
4496
4890
|
/**
|
|
4497
4891
|
* @private
|
|
@@ -4516,17 +4910,17 @@ class AuroDropdown extends r$4 {
|
|
|
4516
4910
|
/**
|
|
4517
4911
|
* @private
|
|
4518
4912
|
*/
|
|
4519
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$1, AuroIcon$1);
|
|
4913
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion$1, AuroIcon$1);
|
|
4520
4914
|
|
|
4521
4915
|
/**
|
|
4522
4916
|
* @private
|
|
4523
4917
|
*/
|
|
4524
|
-
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
4918
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
4525
4919
|
|
|
4526
4920
|
/**
|
|
4527
4921
|
* @private
|
|
4528
4922
|
*/
|
|
4529
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
4923
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion, AuroHelpText);
|
|
4530
4924
|
}
|
|
4531
4925
|
|
|
4532
4926
|
/**
|
|
@@ -4729,7 +5123,7 @@ class AuroDropdown extends r$4 {
|
|
|
4729
5123
|
*
|
|
4730
5124
|
*/
|
|
4731
5125
|
static register(name = "auro-dropdown") {
|
|
4732
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
5126
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
|
|
4733
5127
|
}
|
|
4734
5128
|
|
|
4735
5129
|
connectedCallback() {
|
|
@@ -4752,6 +5146,7 @@ class AuroDropdown extends r$4 {
|
|
|
4752
5146
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
4753
5147
|
this.handleTriggerContentSlotChange();
|
|
4754
5148
|
}
|
|
5149
|
+
|
|
4755
5150
|
}
|
|
4756
5151
|
|
|
4757
5152
|
firstUpdated() {
|
|
@@ -4928,7 +5323,7 @@ class AuroDropdown extends r$4 {
|
|
|
4928
5323
|
|
|
4929
5324
|
// function that renders the HTML and CSS into the scope of the component
|
|
4930
5325
|
render() {
|
|
4931
|
-
return u
|
|
5326
|
+
return u`
|
|
4932
5327
|
<div>
|
|
4933
5328
|
<div
|
|
4934
5329
|
id="trigger"
|
|
@@ -4948,7 +5343,7 @@ class AuroDropdown extends r$4 {
|
|
|
4948
5343
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
4949
5344
|
</div>
|
|
4950
5345
|
</div>
|
|
4951
|
-
${this.chevron || this.common ? u
|
|
5346
|
+
${this.chevron || this.common ? u`
|
|
4952
5347
|
<div
|
|
4953
5348
|
id="showStateIcon"
|
|
4954
5349
|
part="chevron">
|
|
@@ -4977,45 +5372,12 @@ class AuroDropdown extends r$4 {
|
|
|
4977
5372
|
?rounded="${this.common || this.rounded}"
|
|
4978
5373
|
?inset="${this.common || this.inset}">
|
|
4979
5374
|
</${this.dropdownBibTag}>
|
|
4980
|
-
</div>
|
|
4981
|
-
`;
|
|
4982
|
-
}
|
|
4983
|
-
}
|
|
4984
|
-
|
|
4985
|
-
var dropdownVersion = '3.0.0';
|
|
4986
|
-
|
|
4987
|
-
/**
|
|
4988
|
-
* @license
|
|
4989
|
-
* Copyright 2019 Google LLC
|
|
4990
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4991
|
-
*/
|
|
4992
|
-
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;
|
|
4993
|
-
|
|
4994
|
-
/**
|
|
4995
|
-
* @license
|
|
4996
|
-
* Copyright 2017 Google LLC
|
|
4997
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4998
|
-
*/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");
|
|
4999
|
-
|
|
5000
|
-
/**
|
|
5001
|
-
* @license
|
|
5002
|
-
* Copyright 2017 Google LLC
|
|
5003
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5004
|
-
*/
|
|
5005
|
-
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};
|
|
5006
|
-
|
|
5007
|
-
/**
|
|
5008
|
-
* @license
|
|
5009
|
-
* Copyright 2017 Google LLC
|
|
5010
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5011
|
-
*/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");
|
|
5375
|
+
</div>
|
|
5376
|
+
`;
|
|
5377
|
+
}
|
|
5378
|
+
}
|
|
5012
5379
|
|
|
5013
|
-
|
|
5014
|
-
* @license
|
|
5015
|
-
* Copyright 2020 Google LLC
|
|
5016
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5017
|
-
*/
|
|
5018
|
-
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);
|
|
5380
|
+
var dropdownVersion = '3.0.0';
|
|
5019
5381
|
|
|
5020
5382
|
var colorCss$1 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
5021
5383
|
|
|
@@ -5030,7 +5392,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
5030
5392
|
|
|
5031
5393
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5032
5394
|
|
|
5033
|
-
class AuroLibraryRuntimeUtils {
|
|
5395
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
5034
5396
|
|
|
5035
5397
|
/* eslint-disable jsdoc/require-param */
|
|
5036
5398
|
|
|
@@ -5091,7 +5453,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
5091
5453
|
|
|
5092
5454
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
5093
5455
|
}
|
|
5094
|
-
}
|
|
5456
|
+
};
|
|
5095
5457
|
|
|
5096
5458
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5097
5459
|
// See LICENSE in the project root for license information.
|
|
@@ -5133,25 +5495,6 @@ class AuroDependencyVersioning {
|
|
|
5133
5495
|
}
|
|
5134
5496
|
}
|
|
5135
5497
|
|
|
5136
|
-
/**
|
|
5137
|
-
* @license
|
|
5138
|
-
* Copyright 2017 Google LLC
|
|
5139
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5140
|
-
*/
|
|
5141
|
-
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)}}
|
|
5142
|
-
|
|
5143
|
-
/**
|
|
5144
|
-
* @license
|
|
5145
|
-
* Copyright 2018 Google LLC
|
|
5146
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5147
|
-
*/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}});
|
|
5148
|
-
|
|
5149
|
-
/**
|
|
5150
|
-
* @license
|
|
5151
|
-
* Copyright 2018 Google LLC
|
|
5152
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5153
|
-
*/const o=o=>o??E;
|
|
5154
|
-
|
|
5155
5498
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5156
5499
|
// See LICENSE in the project root for license information.
|
|
5157
5500
|
|
|
@@ -5218,7 +5561,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
5218
5561
|
return _fetchMap.get(uri);
|
|
5219
5562
|
};
|
|
5220
5563
|
|
|
5221
|
-
var styleCss$1 = i$5
|
|
5564
|
+
var styleCss$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
5222
5565
|
|
|
5223
5566
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5224
5567
|
// See LICENSE in the project root for license information.
|
|
@@ -5299,47 +5642,88 @@ class BaseIcon extends AuroElement {
|
|
|
5299
5642
|
}
|
|
5300
5643
|
}
|
|
5301
5644
|
|
|
5302
|
-
var tokensCss = i$5`:host{--ds-auro-icon-color:
|
|
5645
|
+
var tokensCss = i$5`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
5303
5646
|
|
|
5304
|
-
var colorCss$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:
|
|
5647
|
+
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)}`;
|
|
5305
5648
|
|
|
5306
|
-
// Copyright (c)
|
|
5649
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5307
5650
|
// See LICENSE in the project root for license information.
|
|
5308
5651
|
|
|
5652
|
+
// ---------------------------------------------------------------------
|
|
5653
|
+
|
|
5654
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5655
|
+
|
|
5656
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
5657
|
+
|
|
5658
|
+
/* eslint-disable jsdoc/require-param */
|
|
5659
|
+
|
|
5660
|
+
/**
|
|
5661
|
+
* This will register a new custom element with the browser.
|
|
5662
|
+
* @param {String} name - The name of the custom element.
|
|
5663
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
5664
|
+
* @returns {void}
|
|
5665
|
+
*/
|
|
5666
|
+
registerComponent(name, componentClass) {
|
|
5667
|
+
if (!customElements.get(name)) {
|
|
5668
|
+
customElements.define(name, class extends componentClass {});
|
|
5669
|
+
}
|
|
5670
|
+
}
|
|
5671
|
+
|
|
5672
|
+
/**
|
|
5673
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
5674
|
+
* @returns {void}
|
|
5675
|
+
*/
|
|
5676
|
+
closestElement(
|
|
5677
|
+
selector, // selector like in .closest()
|
|
5678
|
+
base = this, // extra functionality to skip a parent
|
|
5679
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
5680
|
+
!el || el === document || el === window
|
|
5681
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
5682
|
+
: found
|
|
5683
|
+
? found // found a selector INside this element
|
|
5684
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
5685
|
+
) {
|
|
5686
|
+
return __Closest(base);
|
|
5687
|
+
}
|
|
5688
|
+
/* eslint-enable jsdoc/require-param */
|
|
5689
|
+
|
|
5690
|
+
/**
|
|
5691
|
+
* 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.
|
|
5692
|
+
* @param {Object} elem - The element to check.
|
|
5693
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
5694
|
+
* @returns {void}
|
|
5695
|
+
*/
|
|
5696
|
+
handleComponentTagRename(elem, tagName) {
|
|
5697
|
+
const tag = tagName.toLowerCase();
|
|
5698
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
5699
|
+
|
|
5700
|
+
if (elemTag !== tag) {
|
|
5701
|
+
elem.setAttribute(tag, true);
|
|
5702
|
+
}
|
|
5703
|
+
}
|
|
5704
|
+
|
|
5705
|
+
/**
|
|
5706
|
+
* Validates if an element is a specific Auro component.
|
|
5707
|
+
* @param {Object} elem - The element to validate.
|
|
5708
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
5709
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
5710
|
+
*/
|
|
5711
|
+
elementMatch(elem, tagName) {
|
|
5712
|
+
const tag = tagName.toLowerCase();
|
|
5713
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
5714
|
+
|
|
5715
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
5716
|
+
}
|
|
5717
|
+
};
|
|
5718
|
+
|
|
5719
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5720
|
+
// See LICENSE in the project root for license information.
|
|
5309
5721
|
|
|
5310
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
5311
|
-
/**
|
|
5312
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
5313
|
-
*
|
|
5314
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
5315
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
5316
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
5317
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
5318
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
5319
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
5320
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
5321
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
5322
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
5323
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
5324
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
5325
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
5326
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
5327
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
5328
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
5329
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
5330
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
5331
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
5332
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
5333
|
-
* @slot svg - Used for custom SVG content.
|
|
5334
|
-
*/
|
|
5335
5722
|
|
|
5336
|
-
// build the component class
|
|
5337
5723
|
class AuroIcon extends BaseIcon {
|
|
5338
5724
|
constructor() {
|
|
5339
5725
|
super();
|
|
5340
5726
|
|
|
5341
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
5342
|
-
|
|
5343
5727
|
this.privateDefaults();
|
|
5344
5728
|
}
|
|
5345
5729
|
|
|
@@ -5363,78 +5747,144 @@ class AuroIcon extends BaseIcon {
|
|
|
5363
5747
|
this.success = false;
|
|
5364
5748
|
this.tertiary = false;
|
|
5365
5749
|
this.warning = false;
|
|
5366
|
-
this.
|
|
5750
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
5751
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
5367
5752
|
}
|
|
5368
5753
|
|
|
5369
5754
|
// function to define props used within the scope of this component
|
|
5370
5755
|
static get properties() {
|
|
5371
5756
|
return {
|
|
5372
5757
|
...super.properties,
|
|
5758
|
+
|
|
5759
|
+
/**
|
|
5760
|
+
* Sets the icon to use the accent style.
|
|
5761
|
+
*/
|
|
5373
5762
|
accent: {
|
|
5374
5763
|
type: Boolean,
|
|
5375
5764
|
reflect: true
|
|
5376
5765
|
},
|
|
5766
|
+
|
|
5767
|
+
/**
|
|
5768
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
5769
|
+
*/
|
|
5377
5770
|
ariaHidden: {
|
|
5378
5771
|
type: String,
|
|
5379
5772
|
reflect: true
|
|
5380
5773
|
},
|
|
5774
|
+
|
|
5775
|
+
/**
|
|
5776
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
5777
|
+
*/
|
|
5381
5778
|
category: {
|
|
5382
5779
|
type: String,
|
|
5383
5780
|
reflect: true
|
|
5384
5781
|
},
|
|
5782
|
+
|
|
5783
|
+
/**
|
|
5784
|
+
* Allows custom color to be set.
|
|
5785
|
+
*/
|
|
5385
5786
|
customColor: {
|
|
5386
5787
|
type: Boolean
|
|
5387
5788
|
},
|
|
5789
|
+
|
|
5790
|
+
/**
|
|
5791
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
5792
|
+
*/
|
|
5388
5793
|
customSvg: {
|
|
5389
5794
|
type: Boolean
|
|
5390
5795
|
},
|
|
5796
|
+
|
|
5797
|
+
/**
|
|
5798
|
+
* Sets the icon to use the disabled style.
|
|
5799
|
+
*/
|
|
5391
5800
|
disabled: {
|
|
5392
5801
|
type: Boolean,
|
|
5393
5802
|
reflect: true
|
|
5394
5803
|
},
|
|
5804
|
+
|
|
5805
|
+
/**
|
|
5806
|
+
* Sets the icon to use the emphasis style.
|
|
5807
|
+
*/
|
|
5395
5808
|
emphasis: {
|
|
5396
5809
|
type: Boolean,
|
|
5397
5810
|
reflect: true
|
|
5398
5811
|
},
|
|
5812
|
+
|
|
5813
|
+
/**
|
|
5814
|
+
* Sets the icon to use the error style.
|
|
5815
|
+
*/
|
|
5399
5816
|
error: {
|
|
5400
5817
|
type: Boolean,
|
|
5401
5818
|
reflect: true
|
|
5402
5819
|
},
|
|
5820
|
+
|
|
5821
|
+
/**
|
|
5822
|
+
* Sets the icon to use the info style.
|
|
5823
|
+
*/
|
|
5403
5824
|
info: {
|
|
5404
5825
|
type: Boolean,
|
|
5405
5826
|
reflect: true
|
|
5406
5827
|
},
|
|
5828
|
+
|
|
5829
|
+
/**
|
|
5830
|
+
* Exposes content in slot as icon label.
|
|
5831
|
+
*/
|
|
5407
5832
|
label: {
|
|
5408
5833
|
type: Boolean,
|
|
5409
5834
|
reflect: true
|
|
5410
5835
|
},
|
|
5836
|
+
|
|
5837
|
+
/**
|
|
5838
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
5839
|
+
*/
|
|
5411
5840
|
name: {
|
|
5412
5841
|
type: String,
|
|
5413
5842
|
reflect: true
|
|
5414
5843
|
},
|
|
5844
|
+
|
|
5845
|
+
/**
|
|
5846
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
5847
|
+
*/
|
|
5415
5848
|
primary: {
|
|
5416
5849
|
type: Boolean,
|
|
5417
5850
|
reflect: true
|
|
5418
5851
|
},
|
|
5852
|
+
|
|
5853
|
+
/**
|
|
5854
|
+
* Sets the icon to use the secondary style.
|
|
5855
|
+
*/
|
|
5419
5856
|
secondary: {
|
|
5420
5857
|
type: Boolean,
|
|
5421
5858
|
reflect: true
|
|
5422
5859
|
},
|
|
5860
|
+
|
|
5861
|
+
/**
|
|
5862
|
+
* Sets the icon to use the subtle style.
|
|
5863
|
+
*/
|
|
5423
5864
|
subtle: {
|
|
5424
5865
|
type: Boolean,
|
|
5425
5866
|
reflect: true
|
|
5426
5867
|
},
|
|
5868
|
+
|
|
5869
|
+
/**
|
|
5870
|
+
* Sets the icon to use the success style.
|
|
5871
|
+
*/
|
|
5427
5872
|
success: {
|
|
5428
5873
|
type: Boolean,
|
|
5429
5874
|
reflect: true
|
|
5430
5875
|
},
|
|
5876
|
+
|
|
5877
|
+
/**
|
|
5878
|
+
* Sets the icon to use the tertiary style.
|
|
5879
|
+
*/
|
|
5431
5880
|
tertiary: {
|
|
5432
5881
|
type: Boolean,
|
|
5433
5882
|
reflect: true
|
|
5434
5883
|
},
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5884
|
+
|
|
5885
|
+
/**
|
|
5886
|
+
* Sets the icon to use the warning style.
|
|
5887
|
+
*/
|
|
5438
5888
|
warning: {
|
|
5439
5889
|
type: Boolean,
|
|
5440
5890
|
reflect: true
|
|
@@ -5460,7 +5910,7 @@ class AuroIcon extends BaseIcon {
|
|
|
5460
5910
|
*
|
|
5461
5911
|
*/
|
|
5462
5912
|
static register(name = "auro-icon") {
|
|
5463
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
5913
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
5464
5914
|
}
|
|
5465
5915
|
|
|
5466
5916
|
connectedCallback() {
|
|
@@ -5471,38 +5921,54 @@ class AuroIcon extends BaseIcon {
|
|
|
5471
5921
|
}
|
|
5472
5922
|
|
|
5473
5923
|
/**
|
|
5924
|
+
* @private
|
|
5474
5925
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
5475
5926
|
*/
|
|
5476
5927
|
exposeCssParts() {
|
|
5477
5928
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
5478
5929
|
}
|
|
5479
5930
|
|
|
5931
|
+
async firstUpdated() {
|
|
5932
|
+
await super.firstUpdated();
|
|
5933
|
+
|
|
5934
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
5935
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
5936
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
5937
|
+
|
|
5938
|
+
if (svgDesc) {
|
|
5939
|
+
svgDesc.remove();
|
|
5940
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
5941
|
+
}
|
|
5942
|
+
}
|
|
5943
|
+
}
|
|
5944
|
+
|
|
5480
5945
|
// function that renders the HTML and CSS into the scope of the component
|
|
5481
5946
|
render() {
|
|
5482
|
-
const
|
|
5483
|
-
'
|
|
5947
|
+
const labelClasses = {
|
|
5948
|
+
'labelWrapper': true,
|
|
5484
5949
|
'util_displayHiddenVisually': !this.label
|
|
5485
5950
|
};
|
|
5486
5951
|
|
|
5487
|
-
const
|
|
5488
|
-
'
|
|
5489
|
-
'wrapper': true,
|
|
5952
|
+
const svgClasses = {
|
|
5953
|
+
'svgWrapper': true,
|
|
5490
5954
|
};
|
|
5491
5955
|
|
|
5492
5956
|
return x`
|
|
5493
|
-
<div
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
${this.
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5957
|
+
<div class="componentWrapper">
|
|
5958
|
+
<div
|
|
5959
|
+
class="${e(svgClasses)}"
|
|
5960
|
+
title="${o(this.title || undefined)}">
|
|
5961
|
+
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
5962
|
+
${this.customSvg ? x`
|
|
5963
|
+
<slot name="svg"></slot>
|
|
5964
|
+
` : x`
|
|
5965
|
+
${this.svg}
|
|
5966
|
+
`
|
|
5967
|
+
}
|
|
5968
|
+
</span>
|
|
5969
|
+
</div>
|
|
5504
5970
|
|
|
5505
|
-
<div class="${e(
|
|
5971
|
+
<div class="${e(labelClasses)}">
|
|
5506
5972
|
<slot></slot>
|
|
5507
5973
|
</div>
|
|
5508
5974
|
</div>
|
|
@@ -5510,7 +5976,77 @@ class AuroIcon extends BaseIcon {
|
|
|
5510
5976
|
}
|
|
5511
5977
|
}
|
|
5512
5978
|
|
|
5513
|
-
var iconVersion = '
|
|
5979
|
+
var iconVersion = '7.0.1';
|
|
5980
|
+
|
|
5981
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5982
|
+
// See LICENSE in the project root for license information.
|
|
5983
|
+
|
|
5984
|
+
// ---------------------------------------------------------------------
|
|
5985
|
+
|
|
5986
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5987
|
+
|
|
5988
|
+
class AuroLibraryRuntimeUtils {
|
|
5989
|
+
|
|
5990
|
+
/* eslint-disable jsdoc/require-param */
|
|
5991
|
+
|
|
5992
|
+
/**
|
|
5993
|
+
* This will register a new custom element with the browser.
|
|
5994
|
+
* @param {String} name - The name of the custom element.
|
|
5995
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
5996
|
+
* @returns {void}
|
|
5997
|
+
*/
|
|
5998
|
+
registerComponent(name, componentClass) {
|
|
5999
|
+
if (!customElements.get(name)) {
|
|
6000
|
+
customElements.define(name, class extends componentClass {});
|
|
6001
|
+
}
|
|
6002
|
+
}
|
|
6003
|
+
|
|
6004
|
+
/**
|
|
6005
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
6006
|
+
* @returns {void}
|
|
6007
|
+
*/
|
|
6008
|
+
closestElement(
|
|
6009
|
+
selector, // selector like in .closest()
|
|
6010
|
+
base = this, // extra functionality to skip a parent
|
|
6011
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
6012
|
+
!el || el === document || el === window
|
|
6013
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
6014
|
+
: found
|
|
6015
|
+
? found // found a selector INside this element
|
|
6016
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6017
|
+
) {
|
|
6018
|
+
return __Closest(base);
|
|
6019
|
+
}
|
|
6020
|
+
/* eslint-enable jsdoc/require-param */
|
|
6021
|
+
|
|
6022
|
+
/**
|
|
6023
|
+
* 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.
|
|
6024
|
+
* @param {Object} elem - The element to check.
|
|
6025
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
6026
|
+
* @returns {void}
|
|
6027
|
+
*/
|
|
6028
|
+
handleComponentTagRename(elem, tagName) {
|
|
6029
|
+
const tag = tagName.toLowerCase();
|
|
6030
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6031
|
+
|
|
6032
|
+
if (elemTag !== tag) {
|
|
6033
|
+
elem.setAttribute(tag, true);
|
|
6034
|
+
}
|
|
6035
|
+
}
|
|
6036
|
+
|
|
6037
|
+
/**
|
|
6038
|
+
* Validates if an element is a specific Auro component.
|
|
6039
|
+
* @param {Object} elem - The element to validate.
|
|
6040
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
6041
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6042
|
+
*/
|
|
6043
|
+
elementMatch(elem, tagName) {
|
|
6044
|
+
const tag = tagName.toLowerCase();
|
|
6045
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6046
|
+
|
|
6047
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
6048
|
+
}
|
|
6049
|
+
}
|
|
5514
6050
|
|
|
5515
6051
|
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)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
5516
6052
|
|
|
@@ -5665,11 +6201,11 @@ class AuroBibtemplate extends r {
|
|
|
5665
6201
|
constructor() {
|
|
5666
6202
|
super();
|
|
5667
6203
|
|
|
5668
|
-
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
6204
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
5669
6205
|
|
|
5670
6206
|
const versioning = new AuroDependencyVersioning();
|
|
5671
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
5672
|
-
this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
|
|
6207
|
+
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
|
|
6208
|
+
this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
|
|
5673
6209
|
}
|
|
5674
6210
|
|
|
5675
6211
|
static get styles() {
|
|
@@ -5704,7 +6240,7 @@ class AuroBibtemplate extends r {
|
|
|
5704
6240
|
*
|
|
5705
6241
|
*/
|
|
5706
6242
|
static register(name = "auro-bibtemplate") {
|
|
5707
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
|
|
6243
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
5708
6244
|
}
|
|
5709
6245
|
|
|
5710
6246
|
/**
|
|
@@ -5776,9 +6312,9 @@ class AuroBibtemplate extends r {
|
|
|
5776
6312
|
|
|
5777
6313
|
var bibTemplateVersion = '1.0.0';
|
|
5778
6314
|
|
|
5779
|
-
var styleCss = i$
|
|
6315
|
+
var styleCss = i$5`: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)}`;
|
|
5780
6316
|
|
|
5781
|
-
var colorCss = i$
|
|
6317
|
+
var colorCss = i$5`:host ::slotted(*:not(:first-child)){border-color:var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12))}`;
|
|
5782
6318
|
|
|
5783
6319
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5784
6320
|
// See LICENSE in the project root for license information.
|
|
@@ -5794,7 +6330,7 @@ var colorCss = i$g`:host ::slotted(*:not(:first-child)){border-color:var(--ds-co
|
|
|
5794
6330
|
* @extends LitElement
|
|
5795
6331
|
* @slot Default - Slot for counter elements.
|
|
5796
6332
|
*/
|
|
5797
|
-
class AuroCounterWrapper extends r
|
|
6333
|
+
class AuroCounterWrapper extends r {
|
|
5798
6334
|
|
|
5799
6335
|
static get styles() {
|
|
5800
6336
|
return [
|
|
@@ -5810,12 +6346,12 @@ class AuroCounterWrapper extends r$9 {
|
|
|
5810
6346
|
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
5811
6347
|
*/
|
|
5812
6348
|
static register(name = "auro-counter-wrapper") {
|
|
5813
|
-
AuroLibraryRuntimeUtils$
|
|
6349
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterWrapper);
|
|
5814
6350
|
}
|
|
5815
6351
|
|
|
5816
6352
|
// function that renders the HTML and CSS into the scope of the component
|
|
5817
6353
|
render() {
|
|
5818
|
-
return u
|
|
6354
|
+
return u`<slot></slot>`;
|
|
5819
6355
|
}
|
|
5820
6356
|
}
|
|
5821
6357
|
|
|
@@ -5843,7 +6379,7 @@ if (!customElements.get("auro-counter-wrapper")) {
|
|
|
5843
6379
|
* @slot valueText - Dropdown value text display. Only used when `isDropdown` is true.
|
|
5844
6380
|
* @slot helpText - Dropdown help text content. Only used when `isDropdown` is true.
|
|
5845
6381
|
*/
|
|
5846
|
-
class AuroCounterGroup extends r
|
|
6382
|
+
class AuroCounterGroup extends r {
|
|
5847
6383
|
constructor() {
|
|
5848
6384
|
super();
|
|
5849
6385
|
|
|
@@ -5886,14 +6422,14 @@ class AuroCounterGroup extends r$9 {
|
|
|
5886
6422
|
* @private
|
|
5887
6423
|
* @type {string}
|
|
5888
6424
|
*/
|
|
5889
|
-
this.dropdownTag = versioning.generateTag("auro-dropdown", dropdownVersion, AuroDropdown);
|
|
6425
|
+
this.dropdownTag = versioning.generateTag("auro-formkit-counter-dropdown", dropdownVersion, AuroDropdown);
|
|
5890
6426
|
|
|
5891
6427
|
/**
|
|
5892
6428
|
* Dynamically generated bibtempalate tag.
|
|
5893
6429
|
* @private
|
|
5894
6430
|
* @type {string}
|
|
5895
6431
|
*/
|
|
5896
|
-
this.bibtemplateTag = versioning.generateTag('auro-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
6432
|
+
this.bibtemplateTag = versioning.generateTag('auro-formkit-counter-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
5897
6433
|
}
|
|
5898
6434
|
|
|
5899
6435
|
static get styles() {
|
|
@@ -6201,14 +6737,14 @@ class AuroCounterGroup extends r$9 {
|
|
|
6201
6737
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
6202
6738
|
*/
|
|
6203
6739
|
static register(name = "auro-counter-group") {
|
|
6204
|
-
AuroLibraryRuntimeUtils$
|
|
6740
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterGroup);
|
|
6205
6741
|
}
|
|
6206
6742
|
|
|
6207
6743
|
// function that renders the HTML and CSS into the scope of the component
|
|
6208
6744
|
render() {
|
|
6209
|
-
return u
|
|
6745
|
+
return u`
|
|
6210
6746
|
${this.isDropdown
|
|
6211
|
-
? u
|
|
6747
|
+
? u`<${this.dropdownTag} common chevron fullscreenBreakpoint="${this.fullscreenBreakpoint}">
|
|
6212
6748
|
<div slot="trigger"><slot name="valueText">
|
|
6213
6749
|
${this.counters && Array.from(this.counters).map((counter, index) => `${counter.value} ${counter.defaultSlot}${index !== this.counters.length - 1 ? ', ' : ''}`)}
|
|
6214
6750
|
</slot></div>
|
|
@@ -6226,7 +6762,7 @@ class AuroCounterGroup extends r$9 {
|
|
|
6226
6762
|
<slot name="bib.fullscreen.footer" @slotchange="${this.handleSlotChange}"></slot>
|
|
6227
6763
|
</div>
|
|
6228
6764
|
`
|
|
6229
|
-
: u
|
|
6765
|
+
: u`<auro-counter-wrapper><slot @slotchange=${() => this.configureCounters()}></slot></auro-counter-wrapper>`
|
|
6230
6766
|
}`;
|
|
6231
6767
|
}
|
|
6232
6768
|
}
|
|
@@ -6235,6 +6771,7 @@ class AuroCounterGroup extends r$9 {
|
|
|
6235
6771
|
|
|
6236
6772
|
AuroCounter.register();
|
|
6237
6773
|
AuroCounterGroup.register();
|
|
6774
|
+
AuroCounterGroup.register('custom-counter-group');
|
|
6238
6775
|
AuroCounter.register('custom-counter');
|
|
6239
6776
|
|
|
6240
6777
|
function initExamples(initialCount = 0) {
|