@aurodesignsystem/auro-formkit 2.0.0-beta.3 → 2.0.0-beta.4
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/.turbo/cache/013a48308b893dac-meta.json +1 -1
- package/.turbo/cache/02244170c798a2bd-meta.json +1 -1
- package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
- package/.turbo/cache/051ff97a20add0e2-meta.json +1 -0
- package/.turbo/cache/051ff97a20add0e2.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
- package/.turbo/cache/0ea853339c064fa1-meta.json +1 -0
- package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
- package/.turbo/cache/16658beec9f4a809-meta.json +1 -0
- package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
- package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -1
- package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -1
- package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
- package/.turbo/cache/1df4710eef8ed00d-meta.json +1 -0
- package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
- package/.turbo/cache/204b66d1b253e9cc-meta.json +1 -0
- package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
- package/.turbo/cache/2a5d0939d6fc1052-meta.json +1 -0
- package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
- package/.turbo/cache/2e3b829fcf75c836-meta.json +1 -0
- package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
- package/.turbo/cache/3d380d0d40404cac-meta.json +1 -0
- package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
- package/.turbo/cache/3e12285c614db539-meta.json +1 -1
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
- package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -1
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
- package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
- package/.turbo/cache/691a74627ec57993-meta.json +1 -1
- package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -1
- package/.turbo/cache/6dd67d179191bda8-meta.json +1 -1
- package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
- package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
- package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
- package/.turbo/cache/786a822763403879-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
- package/.turbo/cache/7ffd501e81790676-meta.json +1 -0
- package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
- package/.turbo/cache/80a13352066a9801-meta.json +1 -1
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
- package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -1
- package/.turbo/cache/8e9ebc3df0e18de0-meta.json +1 -0
- package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
- package/.turbo/cache/973d0eea26083f4b-meta.json +1 -0
- package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
- package/.turbo/cache/9c6ad42729c7b2d8-meta.json +1 -0
- package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/a9a9d012c83882d8-meta.json +1 -0
- package/.turbo/cache/a9a9d012c83882d8.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
- package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
- package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
- package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
- package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -1
- package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
- package/.turbo/cache/d61543843c932504-meta.json +1 -1
- package/.turbo/cache/d61543843c932504.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
- package/.turbo/cache/db361cb6578dca84-meta.json +1 -0
- package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
- package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -1
- package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/f3ff9040a2196834-meta.json +1 -0
- package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
- package/.turbo/cache/f817d89688cefca8-meta.json +1 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
- package/.turbo/cache/fc57c17867dcac3d-meta.json +1 -0
- package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
- package/CHANGELOG.md +18 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/demo/api.min.js +407 -113
- package/components/combobox/demo/index.min.js +407 -113
- package/components/combobox/dist/index.js +407 -113
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/datepicker/demo/api.min.js +407 -113
- package/components/datepicker/demo/index.min.js +407 -113
- package/components/datepicker/dist/index.js +407 -113
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +2 -2
- package/components/dropdown/demo/api.md +4 -4
- package/components/dropdown/demo/api.min.js +166 -42
- package/components/dropdown/demo/index.min.js +166 -42
- package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
- package/components/dropdown/dist/index.js +166 -42
- package/components/dropdown/src/auro-dropdown.js +154 -39
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +4 -0
- package/components/dropdown/src/styles/style.scss +5 -0
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/input/.turbo/turbo-build.log +3 -3
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/demo/api.md +37 -35
- package/components/input/demo/api.min.js +241 -71
- package/components/input/demo/index.min.js +241 -71
- package/components/input/dist/base-input.d.ts +157 -79
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +241 -71
- package/components/input/src/base-input.js +241 -71
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/select/.turbo/turbo-build.log +7 -9
- package/components/select/demo/api.md +39 -100
- package/components/select/demo/api.min.js +292 -169
- package/components/select/demo/index.md +100 -43
- package/components/select/demo/index.min.js +292 -169
- package/components/select/dist/auro-select.d.ts +63 -50
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +287 -151
- package/components/select/src/auro-select.js +102 -102
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +7 -0
- package/components/select/src/styles/style.scss +11 -1
- package/package.json +1 -1
- package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
- package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
- package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
- package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
- package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
- package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
- package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
- package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
- package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
- package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
- package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
- package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
- package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
- package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
- package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
- package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
- package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
- package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
- package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
- /package/.turbo/cache/{d39e6ef95ebc4cc0.tar.zst → f817d89688cefca8.tar.zst} +0 -0
|
@@ -107,20 +107,20 @@ function auroMenuLoadingExample() {
|
|
|
107
107
|
* Copyright 2019 Google LLC
|
|
108
108
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
109
109
|
*/
|
|
110
|
-
const t$5=globalThis,e$
|
|
110
|
+
const t$5=globalThis,e$9=t$5.ShadowRoot&&(void 0===t$5.ShadyCSS||t$5.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$5=Symbol(),o$9=new WeakMap;let n$7 = class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s$5)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$9&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$9.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$9.set(s,t));}return t}toString(){return this.cssText}};const r$7=t=>new n$7("string"==typeof t?t:t+"",void 0,s$5),i$b=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===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$7(o,t,s$5)},S$3=(s,o)=>{if(e$9)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$5.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$5=e$9?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$7(e)})(t):t;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* @license
|
|
114
114
|
* Copyright 2017 Google LLC
|
|
115
115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
116
|
-
*/const{is:i$a,defineProperty:e$
|
|
116
|
+
*/const{is:i$a,defineProperty:e$8,getOwnPropertyDescriptor:r$6,getOwnPropertyNames:h$3,getOwnPropertySymbols:o$8,getPrototypeOf:n$6}=Object,a$5=globalThis,c$4=a$5.trustedTypes,l$5=c$4?c$4.emptyScript:"",p$3=a$5.reactiveElementPolyfillSupport,d$3=(t,s)=>t,u$5={toAttribute(t,s){switch(s){case Boolean:t=t?l$5: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$3=(t,s)=>!i$a(t,s),y$3={attribute:!0,type:String,converter:u$5,reflect:!1,hasChanged:f$3};Symbol.metadata??=Symbol("metadata"),a$5.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$3){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$8(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$6(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:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$3}static _$Ei(){if(this.hasOwnProperty(d$3("elementProperties")))return;const t=n$6(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$3("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d$3("properties"))){const t=this.properties,s=[...h$3(t),...o$8(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$5(s));}else void 0!==s&&i.push(c$5(s));return i}static _$Eu(t,s){const i=s.attribute;return !1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,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$3(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),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&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$5).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$5;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$3)(this[t],s))return;this.P(t,s,i);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=!0;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)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=!1;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=!1,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}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$3("elementProperties")]=new Map,b$1[d$3("finalized")]=new Map,p$3?.({ReactiveElement:b$1}),(a$5.reactiveElementVersions??=[]).push("2.0.4");
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* @license
|
|
120
120
|
* Copyright 2017 Google LLC
|
|
121
121
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
122
122
|
*/
|
|
123
|
-
const t$4=globalThis,i$9=t$4.trustedTypes,s$4=i$9?i$9.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$
|
|
123
|
+
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$2=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$2,n$5=`<${o$7}>`,r$5=document,l$4=()=>r$5.createComment(""),c$3=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$2="[ \t\n\f\r]",f$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_$1=/>/g,m$1=RegExp(`>|${d$2}(?:([^\\s"'>=/]+)(${d$2}*=${d$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$2=/'/g,g$1=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$2=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$1=y$2(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$5.createTreeWalker(r$5,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$2;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$2?"!--"===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$2,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$2):c===g$1||c===p$2?c=m$1:c===v$1||c===_$1?c=f$2:(c=m$1,r=void 0);const x=c===m$1&&t[i+1].startsWith("/>")?" ":"";l+=c===f$2?s+n$5:d>=0?(o.push(a),s.slice(0,d)+e$7+s.slice(d)+h$2+x):s+h$2+(-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$2),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$2)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$2),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$2,t+1));)d.push({type:7,index:c}),t+=h$2.length-1;}c++;}}static createElement(t,i){const s=r$5.createElement("template");return s.innerHTML=t,s}};function S$2(t,i,s=t,e){if(i===T$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),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$2(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$5).importNode(i,!0);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$5,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??!0;}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$2(this,t,i),c$3(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$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$5.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?.(!1,!0,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=!1;if(void 0===h)t=S$2(this,t,i,0),o=!c$3(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$2(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$3(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$2(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$2(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};
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* @license
|
|
@@ -128,12 +128,25 @@ const t$4=globalThis,i$9=t$4.trustedTypes,s$4=i$9?i$9.createPolicy("lit-html",{c
|
|
|
128
128
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
129
|
*/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(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return T$1}};r$4._$litElement$=!0,r$4["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:r$4});const i$8=globalThis.litElementPolyfillSupport;i$8?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
130
130
|
|
|
131
|
+
/**
|
|
132
|
+
* @license
|
|
133
|
+
* Copyright 2017 Google LLC
|
|
134
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
|
+
*/
|
|
136
|
+
const t$3={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$6=t=>(...e)=>({_$litDirective$:t,values:e});let i$7 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @license
|
|
140
|
+
* Copyright 2018 Google LLC
|
|
141
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
142
|
+
*/const e$5=e$6(class extends i$7{constructor(t){if(super(t),t.type!==t$3.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}});
|
|
143
|
+
|
|
131
144
|
/**
|
|
132
145
|
* @license
|
|
133
146
|
* Copyright 2020 Google LLC
|
|
134
147
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
148
|
*/
|
|
136
|
-
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$
|
|
149
|
+
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$6=(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$4=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=!1;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$6(i));)c+=s+r[++$],f=!0;$!==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$4(x$1);
|
|
137
150
|
|
|
138
151
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
139
152
|
// See LICENSE in the project root for license information.
|
|
@@ -490,7 +503,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
490
503
|
*/
|
|
491
504
|
generateTag(baseName, version, tagClass) {
|
|
492
505
|
const elementName = this.generateElementName(baseName, version);
|
|
493
|
-
const tag = i$
|
|
506
|
+
const tag = i$6`${s$3(elementName)}`;
|
|
494
507
|
|
|
495
508
|
if (!customElements.get(elementName)) {
|
|
496
509
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -2530,13 +2543,13 @@ class AuroDependencyVersioning {
|
|
|
2530
2543
|
* Copyright 2017 Google LLC
|
|
2531
2544
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2532
2545
|
*/
|
|
2533
|
-
const t
|
|
2546
|
+
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},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)}}
|
|
2534
2547
|
|
|
2535
2548
|
/**
|
|
2536
2549
|
* @license
|
|
2537
2550
|
* Copyright 2018 Google LLC
|
|
2538
2551
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2539
|
-
*/const e
|
|
2552
|
+
*/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}});
|
|
2540
2553
|
|
|
2541
2554
|
/**
|
|
2542
2555
|
* @license
|
|
@@ -2883,7 +2896,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2883
2896
|
|
|
2884
2897
|
return x`
|
|
2885
2898
|
<div
|
|
2886
|
-
class="${e
|
|
2899
|
+
class="${e(classes)}"
|
|
2887
2900
|
title="${o$5(this.title || undefined)}">
|
|
2888
2901
|
<span aria-hidden="${o$5(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
2889
2902
|
${this.customSvg ? x`
|
|
@@ -2894,7 +2907,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2894
2907
|
}
|
|
2895
2908
|
</span>
|
|
2896
2909
|
|
|
2897
|
-
<div class="${e
|
|
2910
|
+
<div class="${e(a11y)}">
|
|
2898
2911
|
<slot></slot>
|
|
2899
2912
|
</div>
|
|
2900
2913
|
</div>
|
|
@@ -2904,7 +2917,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2904
2917
|
|
|
2905
2918
|
var iconVersion$1 = '6.1.2';
|
|
2906
2919
|
|
|
2907
|
-
var styleCss$1$1 = i$3`: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);white-space:normal}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@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)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}: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)}`;
|
|
2920
|
+
var styleCss$1$1 = i$3`: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;border-width:1px;border-style:solid}@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)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}: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)}`;
|
|
2908
2921
|
|
|
2909
2922
|
var colorCss$1$1 = i$3`.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)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-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);outline:1px solid 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))}.helpText{color:var(--ds-auro-dropdown-help-text-color)}: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-help-text-color: var(--ds-color-text-error-default, #cc1816);--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)}`;
|
|
2910
2923
|
|
|
@@ -2928,9 +2941,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2928
2941
|
];
|
|
2929
2942
|
|
|
2930
2943
|
/**
|
|
2931
|
-
* @attr { Boolean } common - If declared, will apply all styles for the common theme.
|
|
2932
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
|
|
2933
|
-
* @attr { Boolean } inset - If declared, will apply extra padding to bib content.
|
|
2934
2944
|
* @prop { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
2935
2945
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2936
2946
|
*/
|
|
@@ -2956,14 +2966,26 @@ class AuroDropdownBib extends r {
|
|
|
2956
2966
|
|
|
2957
2967
|
static get properties() {
|
|
2958
2968
|
return {
|
|
2969
|
+
|
|
2970
|
+
/**
|
|
2971
|
+
* If declared, will apply all styles for the common theme.
|
|
2972
|
+
*/
|
|
2959
2973
|
common: {
|
|
2960
2974
|
type: Boolean,
|
|
2961
2975
|
reflect: true
|
|
2962
2976
|
},
|
|
2977
|
+
|
|
2978
|
+
/**
|
|
2979
|
+
* If declared, will apply extra padding to bib content.
|
|
2980
|
+
*/
|
|
2963
2981
|
inset: {
|
|
2964
2982
|
type: Boolean,
|
|
2965
2983
|
reflect: true
|
|
2966
2984
|
},
|
|
2985
|
+
|
|
2986
|
+
/**
|
|
2987
|
+
* If declared, will apply border-radius to the bib.
|
|
2988
|
+
*/
|
|
2967
2989
|
rounded: {
|
|
2968
2990
|
type: Boolean,
|
|
2969
2991
|
reflect: true
|
|
@@ -3007,22 +3029,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
3007
3029
|
|
|
3008
3030
|
|
|
3009
3031
|
/**
|
|
3010
|
-
* @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
|
|
3011
|
-
* @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
|
|
3012
|
-
* @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
|
|
3013
|
-
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
3014
3032
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
3015
|
-
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
3016
|
-
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
3017
|
-
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
3018
|
-
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
3019
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
3020
|
-
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
3021
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
3022
|
-
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
3023
|
-
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
3024
|
-
* @attr { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
3025
|
-
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
3026
3033
|
* @slot - Default slot for the popover content.
|
|
3027
3034
|
* @slot label - Defines the content of the label.
|
|
3028
3035
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -3060,6 +3067,16 @@ class AuroDropdown extends r {
|
|
|
3060
3067
|
this.tabIndex = 0;
|
|
3061
3068
|
this.noToggle = false;
|
|
3062
3069
|
|
|
3070
|
+
/**
|
|
3071
|
+
* @private
|
|
3072
|
+
*/
|
|
3073
|
+
this.hasTriggerContent = false;
|
|
3074
|
+
|
|
3075
|
+
/**
|
|
3076
|
+
* @private
|
|
3077
|
+
*/
|
|
3078
|
+
this.triggerContentSlot = undefined;
|
|
3079
|
+
|
|
3063
3080
|
/**
|
|
3064
3081
|
* @private
|
|
3065
3082
|
*/
|
|
@@ -3106,89 +3123,166 @@ class AuroDropdown extends r {
|
|
|
3106
3123
|
// function to define props used within the scope of this component
|
|
3107
3124
|
static get properties() {
|
|
3108
3125
|
return {
|
|
3126
|
+
|
|
3127
|
+
/**
|
|
3128
|
+
* If declared, applies a border around the trigger slot.
|
|
3129
|
+
*/
|
|
3109
3130
|
bordered: {
|
|
3110
3131
|
type: Boolean,
|
|
3111
3132
|
reflect: true
|
|
3112
3133
|
},
|
|
3134
|
+
|
|
3135
|
+
/**
|
|
3136
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
3137
|
+
* @attr {Boolean} chevron
|
|
3138
|
+
*/
|
|
3113
3139
|
chevron: {
|
|
3114
3140
|
type: Boolean,
|
|
3115
3141
|
reflect: true
|
|
3116
3142
|
},
|
|
3117
|
-
|
|
3143
|
+
|
|
3144
|
+
/**
|
|
3145
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
3146
|
+
*/
|
|
3147
|
+
common: {
|
|
3118
3148
|
type: Boolean,
|
|
3119
3149
|
reflect: true
|
|
3120
3150
|
},
|
|
3121
|
-
|
|
3151
|
+
|
|
3152
|
+
/**
|
|
3153
|
+
* If declared, the dropdown is not interactive.
|
|
3154
|
+
*/
|
|
3155
|
+
disabled: {
|
|
3122
3156
|
type: Boolean,
|
|
3123
3157
|
reflect: true
|
|
3124
3158
|
},
|
|
3125
|
-
|
|
3159
|
+
|
|
3160
|
+
/**
|
|
3161
|
+
* @private
|
|
3162
|
+
*/
|
|
3163
|
+
dropdownWidth: {
|
|
3164
|
+
type: Number
|
|
3165
|
+
},
|
|
3166
|
+
|
|
3167
|
+
/**
|
|
3168
|
+
* If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
3169
|
+
*/
|
|
3170
|
+
error: {
|
|
3126
3171
|
type: Boolean,
|
|
3127
|
-
reflect: true
|
|
3172
|
+
reflect: true
|
|
3128
3173
|
},
|
|
3174
|
+
|
|
3175
|
+
/**
|
|
3176
|
+
* If declared, the bib will display when focus is applied to the trigger.
|
|
3177
|
+
*/
|
|
3129
3178
|
focusShow: {
|
|
3130
3179
|
type: Boolean,
|
|
3131
3180
|
reflect: true
|
|
3132
3181
|
},
|
|
3133
|
-
|
|
3182
|
+
|
|
3183
|
+
/**
|
|
3184
|
+
* Makes the trigger to be full width of its parent container.
|
|
3185
|
+
*/
|
|
3186
|
+
fluid: {
|
|
3134
3187
|
type: Boolean,
|
|
3135
3188
|
reflect: true
|
|
3136
3189
|
},
|
|
3190
|
+
|
|
3191
|
+
/**
|
|
3192
|
+
* If declared, will apply padding around trigger slot content.
|
|
3193
|
+
*/
|
|
3137
3194
|
inset: {
|
|
3138
3195
|
type: Boolean,
|
|
3139
3196
|
reflect: true
|
|
3140
3197
|
},
|
|
3141
|
-
|
|
3198
|
+
|
|
3199
|
+
/**
|
|
3200
|
+
* If true, the dropdown bib is displayed.
|
|
3201
|
+
*/
|
|
3202
|
+
isPopoverVisible: {
|
|
3203
|
+
type: Boolean
|
|
3204
|
+
},
|
|
3205
|
+
|
|
3206
|
+
/**
|
|
3207
|
+
* If declared, the trigger will toggle the dropdown on mouseover/mouseout.
|
|
3208
|
+
*/
|
|
3209
|
+
hoverToggle: {
|
|
3142
3210
|
type: Boolean,
|
|
3143
3211
|
reflect: true
|
|
3144
3212
|
},
|
|
3145
|
-
|
|
3146
|
-
|
|
3213
|
+
|
|
3214
|
+
/**
|
|
3215
|
+
* @private
|
|
3216
|
+
*/
|
|
3217
|
+
hasTriggerContent: {
|
|
3218
|
+
type: Boolean
|
|
3219
|
+
},
|
|
3220
|
+
|
|
3221
|
+
/**
|
|
3222
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
3223
|
+
*/
|
|
3224
|
+
mobileFullscreenBreakpoint: {
|
|
3225
|
+
type: String,
|
|
3147
3226
|
reflect: true
|
|
3148
3227
|
},
|
|
3149
|
-
|
|
3228
|
+
|
|
3229
|
+
/**
|
|
3230
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
3231
|
+
*/
|
|
3232
|
+
matchWidth: {
|
|
3150
3233
|
type: Boolean,
|
|
3151
3234
|
reflect: true
|
|
3152
3235
|
},
|
|
3153
|
-
|
|
3236
|
+
|
|
3237
|
+
/**
|
|
3238
|
+
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
3239
|
+
*/
|
|
3240
|
+
noHideOnThisFocusLoss: {
|
|
3154
3241
|
type: Boolean,
|
|
3155
3242
|
reflect: true
|
|
3156
3243
|
},
|
|
3157
|
-
|
|
3244
|
+
|
|
3245
|
+
/**
|
|
3246
|
+
* If declared, the trigger will only show the dropdown bib.
|
|
3247
|
+
*/
|
|
3248
|
+
noToggle: {
|
|
3158
3249
|
type: Boolean,
|
|
3159
3250
|
reflect: true
|
|
3160
3251
|
},
|
|
3161
|
-
|
|
3252
|
+
|
|
3162
3253
|
onSlotChange: {
|
|
3163
3254
|
type: Function,
|
|
3164
3255
|
reflect: false
|
|
3165
3256
|
},
|
|
3166
|
-
mobileFullscreenBreakpoint: {
|
|
3167
|
-
type: String,
|
|
3168
|
-
reflect: true,
|
|
3169
|
-
},
|
|
3170
3257
|
|
|
3171
3258
|
/**
|
|
3172
3259
|
* @private
|
|
3173
3260
|
*/
|
|
3174
|
-
|
|
3261
|
+
placement: {
|
|
3262
|
+
type: String
|
|
3263
|
+
},
|
|
3175
3264
|
|
|
3176
3265
|
/**
|
|
3177
|
-
*
|
|
3266
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
3178
3267
|
*/
|
|
3179
|
-
|
|
3268
|
+
rounded: {
|
|
3269
|
+
type: Boolean,
|
|
3270
|
+
reflect: true
|
|
3271
|
+
},
|
|
3180
3272
|
|
|
3181
3273
|
/**
|
|
3182
3274
|
* @private
|
|
3183
3275
|
*/
|
|
3184
|
-
tabIndex: {
|
|
3276
|
+
tabIndex: {
|
|
3277
|
+
type: Number
|
|
3278
|
+
}
|
|
3185
3279
|
};
|
|
3186
3280
|
}
|
|
3187
3281
|
|
|
3188
3282
|
static get styles() {
|
|
3189
3283
|
return [
|
|
3190
|
-
styleCss$1$1,
|
|
3191
3284
|
colorCss$1$1,
|
|
3285
|
+
styleCss$1$1,
|
|
3192
3286
|
tokensCss$3
|
|
3193
3287
|
];
|
|
3194
3288
|
}
|
|
@@ -3219,6 +3313,12 @@ class AuroDropdown extends r {
|
|
|
3219
3313
|
if (changedProperties.has('mobileFullscreenBreakpoint')) {
|
|
3220
3314
|
this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
|
|
3221
3315
|
}
|
|
3316
|
+
|
|
3317
|
+
// when trigger's content is changed without any attribute or node change,
|
|
3318
|
+
// `requestUpdate` needs to be called to update hasTriggerContnet
|
|
3319
|
+
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
3320
|
+
this.handleTriggerContentSlotChange();
|
|
3321
|
+
}
|
|
3222
3322
|
}
|
|
3223
3323
|
|
|
3224
3324
|
firstUpdated() {
|
|
@@ -3261,6 +3361,43 @@ class AuroDropdown extends r {
|
|
|
3261
3361
|
return inCustomSlot;
|
|
3262
3362
|
}
|
|
3263
3363
|
|
|
3364
|
+
/**
|
|
3365
|
+
* Handles changes to the trigger content slot and updates related properties.
|
|
3366
|
+
*
|
|
3367
|
+
* It first updates the floater settings
|
|
3368
|
+
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
3369
|
+
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
3370
|
+
*
|
|
3371
|
+
* @private
|
|
3372
|
+
* @method handleTriggerContentSlotChange
|
|
3373
|
+
* @param {Event} event - native slotchange event
|
|
3374
|
+
* @returns {void}
|
|
3375
|
+
*/
|
|
3376
|
+
handleTriggerContentSlotChange(event) {
|
|
3377
|
+
this.floater.handleTriggerTabIndex();
|
|
3378
|
+
|
|
3379
|
+
if (event) {
|
|
3380
|
+
this.triggerNode = event.target;
|
|
3381
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3384
|
+
if (this.triggerContentSlot) {
|
|
3385
|
+
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
3386
|
+
if (slot.textContent.trim()) {
|
|
3387
|
+
return true;
|
|
3388
|
+
}
|
|
3389
|
+
const slotInSlot = slot.querySelector('slot');
|
|
3390
|
+
if (!slotInSlot) {
|
|
3391
|
+
return false;
|
|
3392
|
+
}
|
|
3393
|
+
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
3394
|
+
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
3395
|
+
});
|
|
3396
|
+
} else {
|
|
3397
|
+
this.hasTriggerContent = false;
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3264
3401
|
/**
|
|
3265
3402
|
* Handles the default slot change event and updates the content.
|
|
3266
3403
|
*
|
|
@@ -3295,13 +3432,13 @@ class AuroDropdown extends r {
|
|
|
3295
3432
|
tabindex="${this.tabIndex}"
|
|
3296
3433
|
>
|
|
3297
3434
|
<div class="triggerContentWrapper">
|
|
3298
|
-
<label class="label" id="triggerLabel">
|
|
3435
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
3299
3436
|
<slot name="label"></slot>
|
|
3300
3437
|
</label>
|
|
3301
3438
|
<div class="triggerContent">
|
|
3302
3439
|
<slot
|
|
3303
3440
|
name="trigger"
|
|
3304
|
-
@slotchange="${() =>
|
|
3441
|
+
@slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
|
|
3305
3442
|
</div>
|
|
3306
3443
|
</div>
|
|
3307
3444
|
${this.chevron || this.common ? u$1`
|
|
@@ -3343,7 +3480,7 @@ AuroDropdown.register();
|
|
|
3343
3480
|
|
|
3344
3481
|
var dropdownVersion = '3.0.0';
|
|
3345
3482
|
|
|
3346
|
-
var styleCss$3 = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}.selectElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:1rem}`;
|
|
3483
|
+
var styleCss$3 = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}[slot=trigger] #placeholder.hidden{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{padding:0;pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}.selectElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:1rem}`;
|
|
3347
3484
|
|
|
3348
3485
|
var colorCss$3 = i$b`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host [auro-dropdown]::part(trigger):hover{--ds-auro-dropdown-trigger-container-color: rgba(0 0 0 / 0.06)}:host([disabled]) *{color:var(--ds-color-text-ui-disabled-default, #adadad)}.placeholder{color:var(--ds-auro-select-placeholder-text-color)}`;
|
|
3349
3486
|
|
|
@@ -3357,22 +3494,10 @@ var tokensCss$2 = i$b`:host{--ds-auro-select-placeholder-text-color: var(--ds-co
|
|
|
3357
3494
|
/**
|
|
3358
3495
|
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
3359
3496
|
*
|
|
3360
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
3361
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
|
|
3362
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
3363
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
3364
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
3365
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
3366
|
-
* @attr {Boolean} required - Populates the `required` attribute on the element. Used for client-side validation.
|
|
3367
|
-
* @attr {Boolean} flexMenuWidth - If set, makes dropdown bib width match the size of the content, rather than the width of the trigger.
|
|
3368
|
-
* @prop {String} placeholder - Define placeholder text to display before a value is manually selected.
|
|
3369
|
-
* @prop {String} value - Value selected for the component.
|
|
3370
|
-
* @prop {Boolean} disabled - When attribute is present element shows disabled state.
|
|
3371
|
-
* @prop {Boolean} noCheckmark - When true, checkmark on selected option will no longer be present.
|
|
3372
|
-
* @attr {Object} optionSelected - Specifies the current selected menuOption.
|
|
3373
3497
|
* @slot - Default slot for the menu content.
|
|
3374
3498
|
* @slot label - Defines the content of the label.
|
|
3375
3499
|
* @slot helpText - Defines the content of the helpText.
|
|
3500
|
+
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
3376
3501
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
3377
3502
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
3378
3503
|
* @csspart helpText - Apply CSS to the help text.
|
|
@@ -3383,7 +3508,6 @@ class AuroSelect extends r$4 {
|
|
|
3383
3508
|
constructor() {
|
|
3384
3509
|
super();
|
|
3385
3510
|
|
|
3386
|
-
this.placeholder = 'Please select option';
|
|
3387
3511
|
this.optionSelected = undefined;
|
|
3388
3512
|
this.validity = undefined;
|
|
3389
3513
|
|
|
@@ -3438,68 +3562,118 @@ class AuroSelect extends r$4 {
|
|
|
3438
3562
|
// to understand how to use reflected attributes with your property settings.
|
|
3439
3563
|
static get properties() {
|
|
3440
3564
|
return {
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3565
|
+
|
|
3566
|
+
/**
|
|
3567
|
+
* When attribute is present, element shows disabled state.
|
|
3568
|
+
*/
|
|
3569
|
+
disabled: {
|
|
3570
|
+
type: Boolean,
|
|
3571
|
+
reflect: true
|
|
3444
3572
|
},
|
|
3445
|
-
|
|
3446
|
-
|
|
3573
|
+
|
|
3574
|
+
/**
|
|
3575
|
+
* If set, makes dropdown width match the size of the content, rather than the width of the trigger.
|
|
3576
|
+
*/
|
|
3577
|
+
flexMenuWidth: {
|
|
3578
|
+
type: Boolean,
|
|
3579
|
+
reflect: true
|
|
3447
3580
|
},
|
|
3581
|
+
|
|
3582
|
+
/**
|
|
3583
|
+
* When true, checkmark on selected option will no longer be present.
|
|
3584
|
+
*/
|
|
3585
|
+
noCheckmark: {
|
|
3586
|
+
type: Boolean,
|
|
3587
|
+
reflect: true
|
|
3588
|
+
},
|
|
3589
|
+
|
|
3590
|
+
/**
|
|
3591
|
+
* If set, disables auto-validation on blur.
|
|
3592
|
+
*/
|
|
3448
3593
|
noValidate: {
|
|
3449
3594
|
type: Boolean,
|
|
3450
3595
|
reflect: true
|
|
3451
3596
|
},
|
|
3597
|
+
|
|
3598
|
+
/**
|
|
3599
|
+
* @private
|
|
3600
|
+
*/
|
|
3601
|
+
optionActive: {
|
|
3602
|
+
type: Object
|
|
3603
|
+
},
|
|
3604
|
+
|
|
3605
|
+
/**
|
|
3606
|
+
* Specifies the current selected menuOption.
|
|
3607
|
+
*/
|
|
3608
|
+
optionSelected: {
|
|
3609
|
+
type: Object
|
|
3610
|
+
},
|
|
3611
|
+
|
|
3612
|
+
/**
|
|
3613
|
+
* @private
|
|
3614
|
+
*/
|
|
3615
|
+
options: {
|
|
3616
|
+
type: Array
|
|
3617
|
+
},
|
|
3618
|
+
|
|
3619
|
+
/**
|
|
3620
|
+
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
3621
|
+
*/
|
|
3452
3622
|
required: {
|
|
3453
3623
|
type: Boolean,
|
|
3454
3624
|
reflect: true
|
|
3455
3625
|
},
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
3629
|
+
*/
|
|
3456
3630
|
error: {
|
|
3457
3631
|
type: String,
|
|
3458
3632
|
reflect: true
|
|
3459
3633
|
},
|
|
3634
|
+
|
|
3635
|
+
/**
|
|
3636
|
+
* Sets a custom help text message to display for all validityStates.
|
|
3637
|
+
*/
|
|
3460
3638
|
setCustomValidity: {
|
|
3461
3639
|
type: String
|
|
3462
3640
|
},
|
|
3641
|
+
|
|
3642
|
+
/**
|
|
3643
|
+
* Custom help text message to display when validity = `customError`.
|
|
3644
|
+
*/
|
|
3463
3645
|
setCustomValidityCustomError: {
|
|
3464
3646
|
type: String
|
|
3465
3647
|
},
|
|
3648
|
+
|
|
3649
|
+
/**
|
|
3650
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
3651
|
+
*/
|
|
3466
3652
|
setCustomValidityValueMissing: {
|
|
3467
3653
|
type: String
|
|
3468
3654
|
},
|
|
3655
|
+
|
|
3656
|
+
/**
|
|
3657
|
+
* Specifies the `validityState` this element is in.
|
|
3658
|
+
*/
|
|
3469
3659
|
validity: {
|
|
3470
3660
|
type: String,
|
|
3471
3661
|
reflect: true
|
|
3472
3662
|
},
|
|
3473
|
-
disabled: {
|
|
3474
|
-
type: Boolean,
|
|
3475
|
-
reflect: true
|
|
3476
|
-
},
|
|
3477
|
-
noCheckmark: {
|
|
3478
|
-
type: Boolean,
|
|
3479
|
-
reflect: true
|
|
3480
|
-
},
|
|
3481
|
-
flexMenuWidth: {
|
|
3482
|
-
type: Boolean,
|
|
3483
|
-
reflect: true
|
|
3484
|
-
},
|
|
3485
|
-
placeholder: { type: String },
|
|
3486
|
-
|
|
3487
|
-
/**
|
|
3488
|
-
* @private
|
|
3489
|
-
*/
|
|
3490
|
-
options: { type: Array },
|
|
3491
3663
|
|
|
3492
3664
|
/**
|
|
3493
|
-
*
|
|
3665
|
+
* Value selected for the component.
|
|
3494
3666
|
*/
|
|
3495
|
-
|
|
3667
|
+
value: {
|
|
3668
|
+
type: String
|
|
3669
|
+
}
|
|
3496
3670
|
};
|
|
3497
3671
|
}
|
|
3498
3672
|
|
|
3499
3673
|
static get styles() {
|
|
3500
3674
|
return [
|
|
3501
|
-
styleCss$3,
|
|
3502
3675
|
colorCss$3,
|
|
3676
|
+
styleCss$3,
|
|
3503
3677
|
tokensCss$2
|
|
3504
3678
|
];
|
|
3505
3679
|
}
|
|
@@ -3534,36 +3708,30 @@ class AuroSelect extends r$4 {
|
|
|
3534
3708
|
}
|
|
3535
3709
|
|
|
3536
3710
|
/**
|
|
3537
|
-
* Updates the displayed value in an Auro dropdown component based on
|
|
3538
|
-
* @param {string|HTMLElement} option - The option to display. If a string, a new span element with the value string is created. If an HTMLElement, the selected option is cloned and non-styling attributes are removed.
|
|
3711
|
+
* Updates the displayed value in an Auro dropdown component based on optionSelected
|
|
3539
3712
|
* @private
|
|
3540
3713
|
* @returns {void}
|
|
3541
3714
|
*/
|
|
3542
|
-
updateDisplayedValue(
|
|
3715
|
+
updateDisplayedValue() {
|
|
3543
3716
|
const triggerContentEl = this.dropdown.querySelector('#triggerFocus');
|
|
3544
3717
|
|
|
3545
3718
|
// remove all existing rendered value(s)
|
|
3546
|
-
triggerContentEl.querySelectorAll('auro-menuoption, [
|
|
3719
|
+
triggerContentEl.querySelectorAll('auro-menuoption, [auro-menuoption]').forEach((elm) => {
|
|
3547
3720
|
elm.remove();
|
|
3548
3721
|
});
|
|
3549
3722
|
|
|
3550
|
-
if (
|
|
3551
|
-
// create a new span element with the value string
|
|
3552
|
-
const valueElem = document.createElement('span');
|
|
3553
|
-
valueElem.setAttribute('valuestr', true);
|
|
3554
|
-
valueElem.textContent = option;
|
|
3555
|
-
|
|
3556
|
-
// append the new element into the trigger content
|
|
3557
|
-
triggerContentEl.appendChild(valueElem);
|
|
3558
|
-
} else if (typeof option === 'object') {
|
|
3723
|
+
if (this.optionSelected) {
|
|
3559
3724
|
// clone the selected option and remove attributes that style it
|
|
3560
|
-
const clone =
|
|
3725
|
+
const clone = this.optionSelected.cloneNode(true);
|
|
3561
3726
|
clone.removeAttribute('selected');
|
|
3562
3727
|
clone.removeAttribute('class');
|
|
3563
3728
|
|
|
3564
3729
|
// insert the non-styled clone into the trigger
|
|
3565
3730
|
triggerContentEl.appendChild(clone);
|
|
3566
3731
|
}
|
|
3732
|
+
|
|
3733
|
+
// notify dropdown as trigger content is changed
|
|
3734
|
+
this.dropdown.requestUpdate();
|
|
3567
3735
|
}
|
|
3568
3736
|
|
|
3569
3737
|
/**
|
|
@@ -3573,7 +3741,7 @@ class AuroSelect extends r$4 {
|
|
|
3573
3741
|
*/
|
|
3574
3742
|
configureMenu() {
|
|
3575
3743
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
3576
|
-
|
|
3744
|
+
|
|
3577
3745
|
// racing condition on custom-select with custom-menu
|
|
3578
3746
|
if (!this.menu) {
|
|
3579
3747
|
setTimeout(() => {
|
|
@@ -3582,6 +3750,7 @@ class AuroSelect extends r$4 {
|
|
|
3582
3750
|
return;
|
|
3583
3751
|
}
|
|
3584
3752
|
|
|
3753
|
+
this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
|
|
3585
3754
|
this.menu.setAttribute('aria-hidden', 'true');
|
|
3586
3755
|
|
|
3587
3756
|
this.generateOptionsArray();
|
|
@@ -3594,8 +3763,6 @@ class AuroSelect extends r$4 {
|
|
|
3594
3763
|
this.optionSelected = this.menu.optionSelected;
|
|
3595
3764
|
this.value = this.optionSelected.value;
|
|
3596
3765
|
|
|
3597
|
-
this.updateDisplayedValue(this.optionSelected);
|
|
3598
|
-
|
|
3599
3766
|
if (this.dropdown.isPopoverVisible) {
|
|
3600
3767
|
this.dropdown.hide();
|
|
3601
3768
|
}
|
|
@@ -3610,7 +3777,11 @@ class AuroSelect extends r$4 {
|
|
|
3610
3777
|
*/
|
|
3611
3778
|
this.menu.addEventListener('auroMenu-selectValueFailure', () => {
|
|
3612
3779
|
this.reset();
|
|
3613
|
-
|
|
3780
|
+
});
|
|
3781
|
+
|
|
3782
|
+
this.menu.addEventListener('auroMenu-selectValueReset', () => {
|
|
3783
|
+
this.optionSelected = this.menu.optionSelected;
|
|
3784
|
+
this.validation.validate(this);
|
|
3614
3785
|
});
|
|
3615
3786
|
}
|
|
3616
3787
|
|
|
@@ -3661,8 +3832,6 @@ class AuroSelect extends r$4 {
|
|
|
3661
3832
|
this.addEventListener('blur', () => {
|
|
3662
3833
|
this.validation.validate(this);
|
|
3663
3834
|
});
|
|
3664
|
-
|
|
3665
|
-
this.labelForSr();
|
|
3666
3835
|
}
|
|
3667
3836
|
|
|
3668
3837
|
/**
|
|
@@ -3781,6 +3950,10 @@ class AuroSelect extends r$4 {
|
|
|
3781
3950
|
}));
|
|
3782
3951
|
}
|
|
3783
3952
|
|
|
3953
|
+
if (changedProperties.has('optionSelected')) {
|
|
3954
|
+
this.updateDisplayedValue();
|
|
3955
|
+
}
|
|
3956
|
+
|
|
3784
3957
|
if (changedProperties.has('error')) {
|
|
3785
3958
|
this.validation.validate(this, true);
|
|
3786
3959
|
}
|
|
@@ -3794,52 +3967,15 @@ class AuroSelect extends r$4 {
|
|
|
3794
3967
|
this.validation.reset(this);
|
|
3795
3968
|
}
|
|
3796
3969
|
|
|
3797
|
-
/**
|
|
3798
|
-
* Handles reading of auro-select by screen readers.
|
|
3799
|
-
* @private
|
|
3800
|
-
* @returns {void}
|
|
3801
|
-
*/
|
|
3802
|
-
labelForSr() {
|
|
3803
|
-
const placeholderLabel = document.createElement("div");
|
|
3804
|
-
const textId = "label";
|
|
3805
|
-
|
|
3806
|
-
placeholderLabel.setAttribute("id", textId);
|
|
3807
|
-
placeholderLabel.setAttribute("aria-live", "polite");
|
|
3808
|
-
|
|
3809
|
-
const styles = {
|
|
3810
|
-
position: 'absolute',
|
|
3811
|
-
overflow: 'hidden',
|
|
3812
|
-
clipPath: 'inset(1px, 1px, 1px, 1px)',
|
|
3813
|
-
width: '1px',
|
|
3814
|
-
height: '1px',
|
|
3815
|
-
padding: '0',
|
|
3816
|
-
border: '0'
|
|
3817
|
-
};
|
|
3818
|
-
|
|
3819
|
-
Object.assign(placeholderLabel.style, styles);
|
|
3820
|
-
|
|
3821
|
-
this.addEventListener('focus', () => {
|
|
3822
|
-
document.body.appendChild(placeholderLabel);
|
|
3823
|
-
|
|
3824
|
-
if (!this.optionSelected) {
|
|
3825
|
-
document.getElementById(textId).innerHTML = this.placeholder;
|
|
3826
|
-
} else {
|
|
3827
|
-
document.getElementById(textId).innerHTML = `${this.optionSelected.innerText}, ${this.placeholder}`;
|
|
3828
|
-
}
|
|
3829
|
-
});
|
|
3830
|
-
|
|
3831
|
-
this.addEventListener('blur', () => {
|
|
3832
|
-
if (document.contains(placeholderLabel)) {
|
|
3833
|
-
document.body.removeChild(placeholderLabel);
|
|
3834
|
-
}
|
|
3835
|
-
});
|
|
3836
|
-
}
|
|
3837
|
-
|
|
3838
3970
|
// When using auroElement, use the following attribute and function when hiding content from screen readers.
|
|
3839
3971
|
// aria-hidden="${this.hideAudible(this.hiddenAudible)}"
|
|
3840
3972
|
|
|
3841
3973
|
// function that renders the HTML and CSS into the scope of the component
|
|
3842
3974
|
render() {
|
|
3975
|
+
const placeholderClass = {
|
|
3976
|
+
hidden: this.value,
|
|
3977
|
+
};
|
|
3978
|
+
|
|
3843
3979
|
return u$3`
|
|
3844
3980
|
<div class="outerWrapper">
|
|
3845
3981
|
<div aria-live="polite" class="util_displayHiddenVisually">
|
|
@@ -3866,7 +4002,7 @@ class AuroSelect extends r$4 {
|
|
|
3866
4002
|
chevron
|
|
3867
4003
|
part="dropdown">
|
|
3868
4004
|
<span slot="trigger" aria-haspopup="true" id="triggerFocus">
|
|
3869
|
-
|
|
4005
|
+
<span id="placeholder" class="${e$5(placeholderClass)}"><slot name="placeholder"></slot></span>
|
|
3870
4006
|
</span>
|
|
3871
4007
|
<div class="menuWrapper">
|
|
3872
4008
|
</div>
|
|
@@ -4429,19 +4565,6 @@ var styleCss$1 = i$b`:host{display:flex;align-items:center;padding:var(--ds-size
|
|
|
4429
4565
|
|
|
4430
4566
|
var colorCss$1 = i$b`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color) !important}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-menuoption-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}`;
|
|
4431
4567
|
|
|
4432
|
-
/**
|
|
4433
|
-
* @license
|
|
4434
|
-
* Copyright 2017 Google LLC
|
|
4435
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4436
|
-
*/
|
|
4437
|
-
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},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)}}
|
|
4438
|
-
|
|
4439
|
-
/**
|
|
4440
|
-
* @license
|
|
4441
|
-
* Copyright 2018 Google LLC
|
|
4442
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
4443
|
-
*/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$1}});
|
|
4444
|
-
|
|
4445
4568
|
/**
|
|
4446
4569
|
* @license
|
|
4447
4570
|
* Copyright 2018 Google LLC
|
|
@@ -4787,7 +4910,7 @@ class AuroIcon extends BaseIcon {
|
|
|
4787
4910
|
|
|
4788
4911
|
return x$1`
|
|
4789
4912
|
<div
|
|
4790
|
-
class="${e(classes)}"
|
|
4913
|
+
class="${e$5(classes)}"
|
|
4791
4914
|
title="${o(this.title || undefined)}">
|
|
4792
4915
|
<span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
|
|
4793
4916
|
${this.customSvg ? x$1`
|
|
@@ -4798,7 +4921,7 @@ class AuroIcon extends BaseIcon {
|
|
|
4798
4921
|
}
|
|
4799
4922
|
</span>
|
|
4800
4923
|
|
|
4801
|
-
<div class="${e(a11y)}">
|
|
4924
|
+
<div class="${e$5(a11y)}">
|
|
4802
4925
|
<slot></slot>
|
|
4803
4926
|
</div>
|
|
4804
4927
|
</div>
|