@aurodesignsystem/auro-formkit 2.0.2 → 2.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +281 -135
- package/components/bibtemplate/dist/registered.js +281 -135
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +30 -56
- package/components/checkbox/demo/index.min.js +30 -56
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/index.js +28 -101
- package/components/checkbox/dist/registered.js +28 -101
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.min.js +1289 -734
- package/components/combobox/demo/index.min.js +1289 -734
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/index.js +1024 -632
- package/components/combobox/dist/registered.js +1024 -632
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +971 -435
- package/components/counter/demo/index.js +1 -0
- package/components/counter/demo/index.min.js +972 -435
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +972 -483
- package/components/counter/dist/registered.js +972 -483
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +30 -0
- package/components/datepicker/demo/api.min.js +1818 -735
- package/components/datepicker/demo/index.min.js +1818 -735
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-calendar.d.ts +5 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +7 -0
- package/components/datepicker/dist/buttonVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +1830 -817
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +1830 -817
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.min.js +231 -117
- package/components/dropdown/demo/index.min.js +231 -117
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/index.js +232 -165
- package/components/dropdown/dist/registered.js +232 -165
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/dist/index.js +4 -28
- package/components/form/dist/registered.js +4 -28
- package/components/helptext/dist/index.js +6 -30
- package/components/helptext/dist/registered.js +6 -30
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +471 -164
- package/components/input/demo/index.min.js +471 -164
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/index.js +468 -220
- package/components/input/dist/registered.js +468 -220
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.min.js +183 -60
- package/components/menu/demo/index.min.js +183 -60
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +205 -129
- package/components/menu/dist/registered.js +205 -129
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.min.js +30 -56
- package/components/radio/demo/index.min.js +30 -56
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/index.js +28 -101
- package/components/radio/dist/registered.js +28 -101
- package/components/select/README.md +1 -1
- package/components/select/demo/api.min.js +736 -436
- package/components/select/demo/index.min.js +736 -436
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/index.js +538 -402
- package/components/select/dist/registered.js +538 -402
- package/package.json +4 -2
|
@@ -1,35 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
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};
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright 2020 Google LLC
|
|
11
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/
|
|
13
|
-
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);
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @license
|
|
17
|
-
* Copyright 2019 Google LLC
|
|
18
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/
|
|
20
|
-
const t$3=globalThis,e$6=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$5=new WeakMap;let n$4 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$6&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$5.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$5.set(s,t));}return t}toString(){return this.cssText}};const r$6=t=>new n$4("string"==typeof t?t:t+"",void 0,s$2),i$7=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$4(o,t,s$2)},S$2=(s,o)=>{if(e$6)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$3.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$4=e$6?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$6(e)})(t):t;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @license
|
|
24
|
-
* Copyright 2017 Google LLC
|
|
25
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
26
|
-
*/const{is:i$6,defineProperty:e$5,getOwnPropertyDescriptor:r$5,getOwnPropertyNames:h$2,getOwnPropertySymbols:o$4,getPrototypeOf:n$3}=Object,a$2=globalThis,c$3=a$2.trustedTypes,l$2=c$3?c$3.emptyScript:"",p$2=a$2.reactiveElementPolyfillSupport,d$2=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2=(t,s)=>!i$6(t,s),y$2={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let b$1 = class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$2){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$5(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$5(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$2}static _$Ei(){if(this.hasOwnProperty(d$2("elementProperties")))return;const t=n$3(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$2("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$2("properties"))){const t=this.properties,s=[...h$2(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$4(s));}else void 0!==s&&i.push(c$4(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$2(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$2)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$2("elementProperties")]=new Map,b$1[d$2("finalized")]=new Map,p$2?.({ReactiveElement:b$1}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @license
|
|
30
|
-
* Copyright 2017 Google LLC
|
|
31
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/let r$4 = class r extends b$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$4._$litElement$=true,r$4["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4});const i$5=globalThis.litElementPolyfillSupport;i$5?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
1
|
+
import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
2
|
+
import { LitElement, css, html } from 'lit';
|
|
3
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
33
5
|
|
|
34
6
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
35
7
|
// See LICENSE in the project root for license information.
|
|
@@ -38,7 +10,7 @@ const t$3=globalThis,e$6=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.na
|
|
|
38
10
|
|
|
39
11
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
40
12
|
|
|
41
|
-
let AuroLibraryRuntimeUtils$
|
|
13
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
42
14
|
|
|
43
15
|
/* eslint-disable jsdoc/require-param */
|
|
44
16
|
|
|
@@ -830,7 +802,8 @@ function isContainingBlock(elementOrCss) {
|
|
|
830
802
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
831
803
|
|
|
832
804
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
833
|
-
|
|
805
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
806
|
+
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));
|
|
834
807
|
}
|
|
835
808
|
function getContainingBlock(element) {
|
|
836
809
|
let currentNode = getParentNode(element);
|
|
@@ -1388,6 +1361,10 @@ const platform = {
|
|
|
1388
1361
|
isRTL
|
|
1389
1362
|
};
|
|
1390
1363
|
|
|
1364
|
+
function rectsAreEqual(a, b) {
|
|
1365
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1391
1368
|
// https://samthor.au/2021/observing-dom/
|
|
1392
1369
|
function observeMove(element, onMove) {
|
|
1393
1370
|
let io = null;
|
|
@@ -1407,12 +1384,13 @@ function observeMove(element, onMove) {
|
|
|
1407
1384
|
threshold = 1;
|
|
1408
1385
|
}
|
|
1409
1386
|
cleanup();
|
|
1387
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
1410
1388
|
const {
|
|
1411
1389
|
left,
|
|
1412
1390
|
top,
|
|
1413
1391
|
width,
|
|
1414
1392
|
height
|
|
1415
|
-
} =
|
|
1393
|
+
} = elementRectForRootMargin;
|
|
1416
1394
|
if (!skip) {
|
|
1417
1395
|
onMove();
|
|
1418
1396
|
}
|
|
@@ -1445,6 +1423,16 @@ function observeMove(element, onMove) {
|
|
|
1445
1423
|
refresh(false, ratio);
|
|
1446
1424
|
}
|
|
1447
1425
|
}
|
|
1426
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
1427
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
1428
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
1429
|
+
// area anymore. This can happen under performance constraints. This may
|
|
1430
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
1431
|
+
// work around this, we compare the element's bounding rect now with
|
|
1432
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
1433
|
+
// are not equal then the element moved, so we refresh.
|
|
1434
|
+
refresh();
|
|
1435
|
+
}
|
|
1448
1436
|
isFirstUpdate = false;
|
|
1449
1437
|
}
|
|
1450
1438
|
|
|
@@ -1522,7 +1510,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1522
1510
|
}
|
|
1523
1511
|
function frameLoop() {
|
|
1524
1512
|
const nextRefRect = getBoundingClientRect(reference);
|
|
1525
|
-
if (prevRefRect && (
|
|
1513
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
1526
1514
|
update();
|
|
1527
1515
|
}
|
|
1528
1516
|
prevRefRect = nextRefRect;
|
|
@@ -1835,11 +1823,11 @@ class AuroFloatingUI {
|
|
|
1835
1823
|
|
|
1836
1824
|
updateCurrentExpandedDropdown() {
|
|
1837
1825
|
// Close any other dropdown that is already open
|
|
1838
|
-
if (document.
|
|
1839
|
-
|
|
1826
|
+
if (document.expandedAuroFormkitDropdown) {
|
|
1827
|
+
document.expandedAuroFormkitDropdown.hide;
|
|
1840
1828
|
}
|
|
1841
1829
|
|
|
1842
|
-
document.
|
|
1830
|
+
document.expandedAuroFormkitDropdown = this;
|
|
1843
1831
|
}
|
|
1844
1832
|
|
|
1845
1833
|
showBib() {
|
|
@@ -2053,7 +2041,7 @@ class AuroDependencyVersioning {
|
|
|
2053
2041
|
*/
|
|
2054
2042
|
generateTag(baseName, version, tagClass) {
|
|
2055
2043
|
const elementName = this.generateElementName(baseName, version);
|
|
2056
|
-
const tag =
|
|
2044
|
+
const tag = literal`${unsafeStatic(elementName)}`;
|
|
2057
2045
|
|
|
2058
2046
|
if (!customElements.get(elementName)) {
|
|
2059
2047
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -2063,25 +2051,6 @@ class AuroDependencyVersioning {
|
|
|
2063
2051
|
}
|
|
2064
2052
|
}
|
|
2065
2053
|
|
|
2066
|
-
/**
|
|
2067
|
-
* @license
|
|
2068
|
-
* Copyright 2017 Google LLC
|
|
2069
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2070
|
-
*/
|
|
2071
|
-
const t$2={ATTRIBUTE:1},e$4=t=>(...e)=>({_$litDirective$:t,values:e});let i$4 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
2072
|
-
|
|
2073
|
-
/**
|
|
2074
|
-
* @license
|
|
2075
|
-
* Copyright 2018 Google LLC
|
|
2076
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2077
|
-
*/const e$3=e$4(class extends i$4{constructor(t){if(super(t),t.type!==t$2.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
|
|
2078
|
-
|
|
2079
|
-
/**
|
|
2080
|
-
* @license
|
|
2081
|
-
* Copyright 2018 Google LLC
|
|
2082
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2083
|
-
*/const o$3=o=>o??E$1;
|
|
2084
|
-
|
|
2085
2054
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2086
2055
|
// See LICENSE in the project root for license information.
|
|
2087
2056
|
|
|
@@ -2092,7 +2061,7 @@ const t$2={ATTRIBUTE:1},e$4=t=>(...e)=>({_$litDirective$:t,values:e});let i$4 =
|
|
|
2092
2061
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
2093
2062
|
*/
|
|
2094
2063
|
|
|
2095
|
-
class AuroElement extends
|
|
2064
|
+
class AuroElement extends LitElement {
|
|
2096
2065
|
|
|
2097
2066
|
// function to define props used within the scope of this component
|
|
2098
2067
|
static get properties() {
|
|
@@ -2148,7 +2117,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
2148
2117
|
return _fetchMap.get(uri);
|
|
2149
2118
|
};
|
|
2150
2119
|
|
|
2151
|
-
var styleCss$3 =
|
|
2120
|
+
var styleCss$3 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
2152
2121
|
|
|
2153
2122
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2154
2123
|
// See LICENSE in the project root for license information.
|
|
@@ -2187,7 +2156,7 @@ class BaseIcon extends AuroElement {
|
|
|
2187
2156
|
}
|
|
2188
2157
|
|
|
2189
2158
|
static get styles() {
|
|
2190
|
-
return
|
|
2159
|
+
return css`
|
|
2191
2160
|
${styleCss$3}
|
|
2192
2161
|
`;
|
|
2193
2162
|
}
|
|
@@ -2229,47 +2198,88 @@ class BaseIcon extends AuroElement {
|
|
|
2229
2198
|
}
|
|
2230
2199
|
}
|
|
2231
2200
|
|
|
2232
|
-
var tokensCss$2 =
|
|
2201
|
+
var tokensCss$2 = css`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
2233
2202
|
|
|
2234
|
-
var colorCss$3 =
|
|
2203
|
+
var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
2235
2204
|
|
|
2236
|
-
// Copyright (c)
|
|
2205
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2237
2206
|
// See LICENSE in the project root for license information.
|
|
2238
2207
|
|
|
2208
|
+
// ---------------------------------------------------------------------
|
|
2209
|
+
|
|
2210
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2211
|
+
|
|
2212
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
2213
|
+
|
|
2214
|
+
/* eslint-disable jsdoc/require-param */
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
* This will register a new custom element with the browser.
|
|
2218
|
+
* @param {String} name - The name of the custom element.
|
|
2219
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
2220
|
+
* @returns {void}
|
|
2221
|
+
*/
|
|
2222
|
+
registerComponent(name, componentClass) {
|
|
2223
|
+
if (!customElements.get(name)) {
|
|
2224
|
+
customElements.define(name, class extends componentClass {});
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
2230
|
+
* @returns {void}
|
|
2231
|
+
*/
|
|
2232
|
+
closestElement(
|
|
2233
|
+
selector, // selector like in .closest()
|
|
2234
|
+
base = this, // extra functionality to skip a parent
|
|
2235
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
2236
|
+
!el || el === document || el === window
|
|
2237
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
2238
|
+
: found
|
|
2239
|
+
? found // found a selector INside this element
|
|
2240
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
2241
|
+
) {
|
|
2242
|
+
return __Closest(base);
|
|
2243
|
+
}
|
|
2244
|
+
/* eslint-enable jsdoc/require-param */
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* 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.
|
|
2248
|
+
* @param {Object} elem - The element to check.
|
|
2249
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
2250
|
+
* @returns {void}
|
|
2251
|
+
*/
|
|
2252
|
+
handleComponentTagRename(elem, tagName) {
|
|
2253
|
+
const tag = tagName.toLowerCase();
|
|
2254
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2255
|
+
|
|
2256
|
+
if (elemTag !== tag) {
|
|
2257
|
+
elem.setAttribute(tag, true);
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
/**
|
|
2262
|
+
* Validates if an element is a specific Auro component.
|
|
2263
|
+
* @param {Object} elem - The element to validate.
|
|
2264
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
2265
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
2266
|
+
*/
|
|
2267
|
+
elementMatch(elem, tagName) {
|
|
2268
|
+
const tag = tagName.toLowerCase();
|
|
2269
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2270
|
+
|
|
2271
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2275
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2276
|
+
// See LICENSE in the project root for license information.
|
|
2239
2277
|
|
|
2240
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
2241
|
-
/**
|
|
2242
|
-
* auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
|
|
2243
|
-
*
|
|
2244
|
-
* @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
2245
|
-
* @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
|
|
2246
|
-
* @attr {Boolean} customColor - Removes primary selector.
|
|
2247
|
-
* @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
|
|
2248
|
-
* @attr {Boolean} label - Exposes content in slot as icon label.
|
|
2249
|
-
* @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
2250
|
-
* @attr {Boolean} accent - Sets the icon to use the accent style.
|
|
2251
|
-
* @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
|
|
2252
|
-
* @attr {Boolean} disabled - Sets the icon to use the disabled style.
|
|
2253
|
-
* @attr {Boolean} error - Sets the icon to use the error style.
|
|
2254
|
-
* @attr {Boolean} info - Sets the icon to use the info style.
|
|
2255
|
-
* @attr {Boolean} secondary - Sets the icon to use the secondary style.
|
|
2256
|
-
* @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
|
|
2257
|
-
* @attr {Boolean} subtle - Sets the icon to use the subtle style.
|
|
2258
|
-
* @attr {Boolean} success - Sets the icon to use the success style.
|
|
2259
|
-
* @attr {Boolean} warning - Sets the icon to use the warning style.
|
|
2260
|
-
* @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
|
|
2261
|
-
* @attr {String} uri - Set the uri for CDN used when fetching icons
|
|
2262
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed.
|
|
2263
|
-
* @slot svg - Used for custom SVG content.
|
|
2264
|
-
*/
|
|
2265
2278
|
|
|
2266
|
-
// build the component class
|
|
2267
2279
|
class AuroIcon extends BaseIcon {
|
|
2268
2280
|
constructor() {
|
|
2269
2281
|
super();
|
|
2270
2282
|
|
|
2271
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
2272
|
-
|
|
2273
2283
|
this.privateDefaults();
|
|
2274
2284
|
}
|
|
2275
2285
|
|
|
@@ -2293,6 +2303,7 @@ class AuroIcon extends BaseIcon {
|
|
|
2293
2303
|
this.success = false;
|
|
2294
2304
|
this.tertiary = false;
|
|
2295
2305
|
this.warning = false;
|
|
2306
|
+
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
2296
2307
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
2297
2308
|
}
|
|
2298
2309
|
|
|
@@ -2300,71 +2311,136 @@ class AuroIcon extends BaseIcon {
|
|
|
2300
2311
|
static get properties() {
|
|
2301
2312
|
return {
|
|
2302
2313
|
...super.properties,
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* Sets the icon to use the accent style.
|
|
2317
|
+
*/
|
|
2303
2318
|
accent: {
|
|
2304
2319
|
type: Boolean,
|
|
2305
2320
|
reflect: true
|
|
2306
2321
|
},
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
2325
|
+
*/
|
|
2307
2326
|
ariaHidden: {
|
|
2308
2327
|
type: String,
|
|
2309
2328
|
reflect: true
|
|
2310
2329
|
},
|
|
2330
|
+
|
|
2331
|
+
/**
|
|
2332
|
+
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
2333
|
+
*/
|
|
2311
2334
|
category: {
|
|
2312
2335
|
type: String,
|
|
2313
2336
|
reflect: true
|
|
2314
2337
|
},
|
|
2338
|
+
|
|
2339
|
+
/**
|
|
2340
|
+
* Allows custom color to be set.
|
|
2341
|
+
*/
|
|
2315
2342
|
customColor: {
|
|
2316
2343
|
type: Boolean
|
|
2317
2344
|
},
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
2348
|
+
*/
|
|
2318
2349
|
customSvg: {
|
|
2319
2350
|
type: Boolean
|
|
2320
2351
|
},
|
|
2352
|
+
|
|
2353
|
+
/**
|
|
2354
|
+
* Sets the icon to use the disabled style.
|
|
2355
|
+
*/
|
|
2321
2356
|
disabled: {
|
|
2322
2357
|
type: Boolean,
|
|
2323
2358
|
reflect: true
|
|
2324
2359
|
},
|
|
2360
|
+
|
|
2361
|
+
/**
|
|
2362
|
+
* Sets the icon to use the emphasis style.
|
|
2363
|
+
*/
|
|
2325
2364
|
emphasis: {
|
|
2326
2365
|
type: Boolean,
|
|
2327
2366
|
reflect: true
|
|
2328
2367
|
},
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* Sets the icon to use the error style.
|
|
2371
|
+
*/
|
|
2329
2372
|
error: {
|
|
2330
2373
|
type: Boolean,
|
|
2331
2374
|
reflect: true
|
|
2332
2375
|
},
|
|
2376
|
+
|
|
2377
|
+
/**
|
|
2378
|
+
* Sets the icon to use the info style.
|
|
2379
|
+
*/
|
|
2333
2380
|
info: {
|
|
2334
2381
|
type: Boolean,
|
|
2335
2382
|
reflect: true
|
|
2336
2383
|
},
|
|
2384
|
+
|
|
2385
|
+
/**
|
|
2386
|
+
* Exposes content in slot as icon label.
|
|
2387
|
+
*/
|
|
2337
2388
|
label: {
|
|
2338
2389
|
type: Boolean,
|
|
2339
2390
|
reflect: true
|
|
2340
2391
|
},
|
|
2392
|
+
|
|
2393
|
+
/**
|
|
2394
|
+
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
2395
|
+
*/
|
|
2341
2396
|
name: {
|
|
2342
2397
|
type: String,
|
|
2343
2398
|
reflect: true
|
|
2344
2399
|
},
|
|
2400
|
+
|
|
2401
|
+
/**
|
|
2402
|
+
* DEPRECATED: Sets the icon to use the baseline primary icon style.
|
|
2403
|
+
*/
|
|
2345
2404
|
primary: {
|
|
2346
2405
|
type: Boolean,
|
|
2347
2406
|
reflect: true
|
|
2348
2407
|
},
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
* Sets the icon to use the secondary style.
|
|
2411
|
+
*/
|
|
2349
2412
|
secondary: {
|
|
2350
2413
|
type: Boolean,
|
|
2351
2414
|
reflect: true
|
|
2352
2415
|
},
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* Sets the icon to use the subtle style.
|
|
2419
|
+
*/
|
|
2353
2420
|
subtle: {
|
|
2354
2421
|
type: Boolean,
|
|
2355
2422
|
reflect: true
|
|
2356
2423
|
},
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* Sets the icon to use the success style.
|
|
2427
|
+
*/
|
|
2357
2428
|
success: {
|
|
2358
2429
|
type: Boolean,
|
|
2359
2430
|
reflect: true
|
|
2360
2431
|
},
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
* Sets the icon to use the tertiary style.
|
|
2435
|
+
*/
|
|
2361
2436
|
tertiary: {
|
|
2362
2437
|
type: Boolean,
|
|
2363
2438
|
reflect: true
|
|
2364
2439
|
},
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2440
|
+
|
|
2441
|
+
/**
|
|
2442
|
+
* Sets the icon to use the warning style.
|
|
2443
|
+
*/
|
|
2368
2444
|
warning: {
|
|
2369
2445
|
type: Boolean,
|
|
2370
2446
|
reflect: true
|
|
@@ -2375,9 +2451,9 @@ class AuroIcon extends BaseIcon {
|
|
|
2375
2451
|
static get styles() {
|
|
2376
2452
|
return [
|
|
2377
2453
|
super.styles,
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2454
|
+
css`${tokensCss$2}`,
|
|
2455
|
+
css`${styleCss$3}`,
|
|
2456
|
+
css`${colorCss$3}`
|
|
2381
2457
|
];
|
|
2382
2458
|
}
|
|
2383
2459
|
|
|
@@ -2401,38 +2477,54 @@ class AuroIcon extends BaseIcon {
|
|
|
2401
2477
|
}
|
|
2402
2478
|
|
|
2403
2479
|
/**
|
|
2480
|
+
* @private
|
|
2404
2481
|
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
2405
2482
|
*/
|
|
2406
2483
|
exposeCssParts() {
|
|
2407
2484
|
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
2408
2485
|
}
|
|
2409
2486
|
|
|
2487
|
+
async firstUpdated() {
|
|
2488
|
+
await super.firstUpdated();
|
|
2489
|
+
|
|
2490
|
+
// Removes the SVG description for screenreader if ariaHidden is set to true
|
|
2491
|
+
if (!this.hasAttribute('ariaHidden') && this.svg) {
|
|
2492
|
+
const svgDesc = this.svg.querySelector('desc');
|
|
2493
|
+
|
|
2494
|
+
if (svgDesc) {
|
|
2495
|
+
svgDesc.remove();
|
|
2496
|
+
this.svg.removeAttribute('aria-labelledby');
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2410
2501
|
// function that renders the HTML and CSS into the scope of the component
|
|
2411
2502
|
render() {
|
|
2412
|
-
const
|
|
2413
|
-
'
|
|
2503
|
+
const labelClasses = {
|
|
2504
|
+
'labelWrapper': true,
|
|
2414
2505
|
'util_displayHiddenVisually': !this.label
|
|
2415
2506
|
};
|
|
2416
2507
|
|
|
2417
|
-
const
|
|
2418
|
-
'
|
|
2419
|
-
'wrapper': true,
|
|
2508
|
+
const svgClasses = {
|
|
2509
|
+
'svgWrapper': true,
|
|
2420
2510
|
};
|
|
2421
2511
|
|
|
2422
|
-
return
|
|
2423
|
-
<div
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
${this.
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2512
|
+
return html`
|
|
2513
|
+
<div class="componentWrapper">
|
|
2514
|
+
<div
|
|
2515
|
+
class="${classMap(svgClasses)}"
|
|
2516
|
+
title="${ifDefined(this.title || undefined)}">
|
|
2517
|
+
<span aria-hidden="${ifDefined(this.ariaHidden || true)}" part="svg">
|
|
2518
|
+
${this.customSvg ? html`
|
|
2519
|
+
<slot name="svg"></slot>
|
|
2520
|
+
` : html`
|
|
2521
|
+
${this.svg}
|
|
2522
|
+
`
|
|
2523
|
+
}
|
|
2524
|
+
</span>
|
|
2525
|
+
</div>
|
|
2434
2526
|
|
|
2435
|
-
<div class="${
|
|
2527
|
+
<div class="${classMap(labelClasses)}">
|
|
2436
2528
|
<slot></slot>
|
|
2437
2529
|
</div>
|
|
2438
2530
|
</div>
|
|
@@ -2442,11 +2534,11 @@ class AuroIcon extends BaseIcon {
|
|
|
2442
2534
|
|
|
2443
2535
|
var iconVersion = '6.1.2';
|
|
2444
2536
|
|
|
2445
|
-
var styleCss$2 =
|
|
2537
|
+
var styleCss$2 = css`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
2446
2538
|
|
|
2447
|
-
var colorCss$2 =
|
|
2539
|
+
var colorCss$2 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2448
2540
|
|
|
2449
|
-
var tokensCss$1 =
|
|
2541
|
+
var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
2450
2542
|
|
|
2451
2543
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2452
2544
|
// See LICENSE in the project root for license information.
|
|
@@ -2466,7 +2558,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2466
2558
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2467
2559
|
*/
|
|
2468
2560
|
|
|
2469
|
-
class AuroDropdownBib extends
|
|
2561
|
+
class AuroDropdownBib extends LitElement {
|
|
2470
2562
|
|
|
2471
2563
|
constructor() {
|
|
2472
2564
|
super();
|
|
@@ -2476,7 +2568,7 @@ class AuroDropdownBib extends r$4 {
|
|
|
2476
2568
|
*/
|
|
2477
2569
|
this._mobileBreakpointValue = undefined;
|
|
2478
2570
|
|
|
2479
|
-
AuroLibraryRuntimeUtils$
|
|
2571
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
2480
2572
|
}
|
|
2481
2573
|
|
|
2482
2574
|
static get styles() {
|
|
@@ -2557,7 +2649,7 @@ class AuroDropdownBib extends r$4 {
|
|
|
2557
2649
|
|
|
2558
2650
|
// function that renders the HTML and CSS into the scope of the component
|
|
2559
2651
|
render() {
|
|
2560
|
-
return
|
|
2652
|
+
return html$1`
|
|
2561
2653
|
<div class="container" part="bibContainer">
|
|
2562
2654
|
<slot></slot>
|
|
2563
2655
|
</div>
|
|
@@ -2567,41 +2659,15 @@ class AuroDropdownBib extends r$4 {
|
|
|
2567
2659
|
|
|
2568
2660
|
var dropdownVersion = '3.0.0';
|
|
2569
2661
|
|
|
2570
|
-
var styleCss$1 =
|
|
2571
|
-
|
|
2572
|
-
var colorCss$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)}`;
|
|
2662
|
+
var styleCss$1 = css`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2573
2663
|
|
|
2574
|
-
|
|
2575
|
-
* @license
|
|
2576
|
-
* Copyright 2019 Google LLC
|
|
2577
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2578
|
-
*/
|
|
2579
|
-
const t$1=globalThis,e$2=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$1=Symbol(),o$2=new WeakMap;let n$2 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$2("string"==typeof t?t:t+"",void 0,s$1),i$3=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$2(o,t,s$1)},S$1=(s,o)=>{if(e$2)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
|
|
2664
|
+
var colorCss$1 = css`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
2580
2665
|
|
|
2581
|
-
|
|
2582
|
-
* @license
|
|
2583
|
-
* Copyright 2017 Google LLC
|
|
2584
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2585
|
-
*/const{is:i$2,defineProperty:e$1,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$1,getPrototypeOf:n$1}=Object,a$1=globalThis,c$1=a$1.trustedTypes,l$1=c$1?c$1.emptyScript:"",p$1=a$1.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$1={toAttribute(t,s){switch(s){case Boolean:t=t?l$1:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$2(t,s),y$1={attribute:true,type:String,converter:u$1,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$1.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$1(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$1).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$1;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$1.reactiveElementVersions??=[]).push("2.0.4");
|
|
2666
|
+
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
2586
2667
|
|
|
2587
|
-
|
|
2588
|
-
* @license
|
|
2589
|
-
* Copyright 2017 Google LLC
|
|
2590
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2591
|
-
*/
|
|
2592
|
-
const t=globalThis,i$1=t.trustedTypes,s=i$1?i$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,e="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o="?"+h,n=`<${o}>`,r$1=document,l=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=Array.isArray,u=t=>a(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$1?i$1.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l());}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j=t.litHtmlPolyfillSupport;j?.(N,R),(t.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
2668
|
+
var styleCss = css`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}:host([large]) .helptext-wrapper{font-size:var(--ds-text-body-size-default, 1rem)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
2593
2669
|
|
|
2594
|
-
|
|
2595
|
-
* @license
|
|
2596
|
-
* Copyright 2017 Google LLC
|
|
2597
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2598
|
-
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
2599
|
-
|
|
2600
|
-
var colorCss = i$3`:host([error]){--ds-auro-helptext-color: var(--ds-color-text-error-default, #cc1816)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
2601
|
-
|
|
2602
|
-
var styleCss = i$3`.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}`;
|
|
2603
|
-
|
|
2604
|
-
var tokensCss = i$3`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
2670
|
+
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-color-text-tertiary-default, #6a717c)}`;
|
|
2605
2671
|
|
|
2606
2672
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2607
2673
|
// See LICENSE in the project root for license information.
|
|
@@ -2682,7 +2748,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
2682
2748
|
*
|
|
2683
2749
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
2684
2750
|
*/
|
|
2685
|
-
class AuroHelpText extends
|
|
2751
|
+
class AuroHelpText extends LitElement {
|
|
2686
2752
|
|
|
2687
2753
|
constructor() {
|
|
2688
2754
|
super();
|
|
@@ -2786,7 +2852,7 @@ class AuroHelpText extends r {
|
|
|
2786
2852
|
|
|
2787
2853
|
// function that renders the HTML and CSS into the scope of the component
|
|
2788
2854
|
render() {
|
|
2789
|
-
return
|
|
2855
|
+
return html`
|
|
2790
2856
|
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
2791
2857
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
2792
2858
|
</div>
|
|
@@ -2812,7 +2878,7 @@ var helpTextVersion = '1.0.0';
|
|
|
2812
2878
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
2813
2879
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
2814
2880
|
*/
|
|
2815
|
-
class AuroDropdown extends
|
|
2881
|
+
class AuroDropdown extends LitElement {
|
|
2816
2882
|
constructor() {
|
|
2817
2883
|
super();
|
|
2818
2884
|
|
|
@@ -2828,7 +2894,7 @@ class AuroDropdown extends r$4 {
|
|
|
2828
2894
|
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
2829
2895
|
*/
|
|
2830
2896
|
this.constructor.shadowRootOptions = {
|
|
2831
|
-
...
|
|
2897
|
+
...LitElement.shadowRootOptions,
|
|
2832
2898
|
delegatesFocus: true,
|
|
2833
2899
|
};
|
|
2834
2900
|
|
|
@@ -2871,7 +2937,7 @@ class AuroDropdown extends r$4 {
|
|
|
2871
2937
|
/**
|
|
2872
2938
|
* @private
|
|
2873
2939
|
*/
|
|
2874
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
2940
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
2875
2941
|
|
|
2876
2942
|
/**
|
|
2877
2943
|
* @private
|
|
@@ -2896,17 +2962,17 @@ class AuroDropdown extends r$4 {
|
|
|
2896
2962
|
/**
|
|
2897
2963
|
* @private
|
|
2898
2964
|
*/
|
|
2899
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
2965
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion, AuroIcon);
|
|
2900
2966
|
|
|
2901
2967
|
/**
|
|
2902
2968
|
* @private
|
|
2903
2969
|
*/
|
|
2904
|
-
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion, AuroDropdownBib);
|
|
2970
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion, AuroDropdownBib);
|
|
2905
2971
|
|
|
2906
2972
|
/**
|
|
2907
2973
|
* @private
|
|
2908
2974
|
*/
|
|
2909
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
2975
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion, AuroHelpText);
|
|
2910
2976
|
}
|
|
2911
2977
|
|
|
2912
2978
|
/**
|
|
@@ -3109,7 +3175,7 @@ class AuroDropdown extends r$4 {
|
|
|
3109
3175
|
*
|
|
3110
3176
|
*/
|
|
3111
3177
|
static register(name = "auro-dropdown") {
|
|
3112
|
-
AuroLibraryRuntimeUtils$
|
|
3178
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
3113
3179
|
}
|
|
3114
3180
|
|
|
3115
3181
|
connectedCallback() {
|
|
@@ -3132,6 +3198,7 @@ class AuroDropdown extends r$4 {
|
|
|
3132
3198
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
3133
3199
|
this.handleTriggerContentSlotChange();
|
|
3134
3200
|
}
|
|
3201
|
+
|
|
3135
3202
|
}
|
|
3136
3203
|
|
|
3137
3204
|
firstUpdated() {
|
|
@@ -3308,7 +3375,7 @@ class AuroDropdown extends r$4 {
|
|
|
3308
3375
|
|
|
3309
3376
|
// function that renders the HTML and CSS into the scope of the component
|
|
3310
3377
|
render() {
|
|
3311
|
-
return
|
|
3378
|
+
return html$1`
|
|
3312
3379
|
<div>
|
|
3313
3380
|
<div
|
|
3314
3381
|
id="trigger"
|
|
@@ -3328,7 +3395,7 @@ class AuroDropdown extends r$4 {
|
|
|
3328
3395
|
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
3329
3396
|
</div>
|
|
3330
3397
|
</div>
|
|
3331
|
-
${this.chevron || this.common ?
|
|
3398
|
+
${this.chevron || this.common ? html$1`
|
|
3332
3399
|
<div
|
|
3333
3400
|
id="showStateIcon"
|
|
3334
3401
|
part="chevron">
|