@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.
Files changed (172) hide show
  1. package/.turbo/cache/013a48308b893dac-meta.json +1 -1
  2. package/.turbo/cache/02244170c798a2bd-meta.json +1 -1
  3. package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
  4. package/.turbo/cache/051ff97a20add0e2-meta.json +1 -0
  5. package/.turbo/cache/051ff97a20add0e2.tar.zst +0 -0
  6. package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
  7. package/.turbo/cache/0ea853339c064fa1-meta.json +1 -0
  8. package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
  9. package/.turbo/cache/16658beec9f4a809-meta.json +1 -0
  10. package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
  11. package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
  12. package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -1
  13. package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -1
  14. package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
  15. package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
  16. package/.turbo/cache/1df4710eef8ed00d-meta.json +1 -0
  17. package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
  18. package/.turbo/cache/204b66d1b253e9cc-meta.json +1 -0
  19. package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
  20. package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
  21. package/.turbo/cache/2a5d0939d6fc1052-meta.json +1 -0
  22. package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
  23. package/.turbo/cache/2e3b829fcf75c836-meta.json +1 -0
  24. package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
  25. package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
  26. package/.turbo/cache/3d380d0d40404cac-meta.json +1 -0
  27. package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
  28. package/.turbo/cache/3e12285c614db539-meta.json +1 -1
  29. package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
  30. package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -1
  31. package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
  32. package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
  33. package/.turbo/cache/691a74627ec57993-meta.json +1 -1
  34. package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -1
  35. package/.turbo/cache/6dd67d179191bda8-meta.json +1 -1
  36. package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
  37. package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
  38. package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
  39. package/.turbo/cache/786a822763403879-meta.json +1 -1
  40. package/.turbo/cache/7e1043cffa69f327-meta.json +1 -1
  41. package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
  42. package/.turbo/cache/7ffd501e81790676-meta.json +1 -0
  43. package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
  44. package/.turbo/cache/80a13352066a9801-meta.json +1 -1
  45. package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
  46. package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
  47. package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -1
  48. package/.turbo/cache/8e9ebc3df0e18de0-meta.json +1 -0
  49. package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
  50. package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
  51. package/.turbo/cache/973d0eea26083f4b-meta.json +1 -0
  52. package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
  53. package/.turbo/cache/9c6ad42729c7b2d8-meta.json +1 -0
  54. package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
  55. package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
  56. package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
  57. package/.turbo/cache/a9a9d012c83882d8-meta.json +1 -0
  58. package/.turbo/cache/a9a9d012c83882d8.tar.zst +0 -0
  59. package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
  60. package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
  61. package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
  62. package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
  63. package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -1
  64. package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
  65. package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
  66. package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
  67. package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -1
  68. package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
  69. package/.turbo/cache/d61543843c932504-meta.json +1 -1
  70. package/.turbo/cache/d61543843c932504.tar.zst +0 -0
  71. package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
  72. package/.turbo/cache/db361cb6578dca84-meta.json +1 -0
  73. package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
  74. package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -1
  75. package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
  76. package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
  77. package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
  78. package/.turbo/cache/f3ff9040a2196834-meta.json +1 -0
  79. package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
  80. package/.turbo/cache/f817d89688cefca8-meta.json +1 -0
  81. package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
  82. package/.turbo/cache/fc57c17867dcac3d-meta.json +1 -0
  83. package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
  84. package/CHANGELOG.md +18 -0
  85. package/components/checkbox/.turbo/turbo-build.log +3 -3
  86. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  87. package/components/combobox/.turbo/turbo-build.log +3 -3
  88. package/components/combobox/demo/api.min.js +407 -113
  89. package/components/combobox/demo/index.min.js +407 -113
  90. package/components/combobox/dist/index.js +407 -113
  91. package/components/counter/.turbo/turbo-build.log +3 -3
  92. package/components/counter/.turbo/turbo-bundler.log +3 -3
  93. package/components/datepicker/demo/api.min.js +407 -113
  94. package/components/datepicker/demo/index.min.js +407 -113
  95. package/components/datepicker/dist/index.js +407 -113
  96. package/components/dropdown/.turbo/turbo-build.log +3 -3
  97. package/components/dropdown/.turbo/turbo-bundler.log +2 -2
  98. package/components/dropdown/demo/api.md +4 -4
  99. package/components/dropdown/demo/api.min.js +166 -42
  100. package/components/dropdown/demo/index.min.js +166 -42
  101. package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
  102. package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
  103. package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
  104. package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
  105. package/components/dropdown/dist/index.js +166 -42
  106. package/components/dropdown/src/auro-dropdown.js +154 -39
  107. package/components/dropdown/src/auro-dropdownBib.js +12 -3
  108. package/components/dropdown/src/styles/style-css.js +1 -1
  109. package/components/dropdown/src/styles/style.css +4 -0
  110. package/components/dropdown/src/styles/style.scss +5 -0
  111. package/components/form/.turbo/turbo-build.log +3 -3
  112. package/components/form/.turbo/turbo-bundler.log +3 -3
  113. package/components/input/.turbo/turbo-build.log +3 -3
  114. package/components/input/.turbo/turbo-bundler.log +3 -3
  115. package/components/input/demo/api.md +37 -35
  116. package/components/input/demo/api.min.js +241 -71
  117. package/components/input/demo/index.min.js +241 -71
  118. package/components/input/dist/base-input.d.ts +157 -79
  119. package/components/input/dist/base-input.d.ts.map +1 -1
  120. package/components/input/dist/index.js +241 -71
  121. package/components/input/src/base-input.js +241 -71
  122. package/components/menu/.turbo/turbo-build.log +3 -3
  123. package/components/menu/.turbo/turbo-bundler.log +3 -3
  124. package/components/radio/.turbo/turbo-build.log +3 -3
  125. package/components/radio/.turbo/turbo-bundler.log +3 -3
  126. package/components/select/.turbo/turbo-build.log +7 -9
  127. package/components/select/demo/api.md +39 -100
  128. package/components/select/demo/api.min.js +292 -169
  129. package/components/select/demo/index.md +100 -43
  130. package/components/select/demo/index.min.js +292 -169
  131. package/components/select/dist/auro-select.d.ts +63 -50
  132. package/components/select/dist/auro-select.d.ts.map +1 -1
  133. package/components/select/dist/index.js +287 -151
  134. package/components/select/src/auro-select.js +102 -102
  135. package/components/select/src/styles/style-css.js +1 -1
  136. package/components/select/src/styles/style.css +7 -0
  137. package/components/select/src/styles/style.scss +11 -1
  138. package/package.json +1 -1
  139. package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
  140. package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
  141. package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
  142. package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
  143. package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
  144. package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
  145. package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
  146. package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
  147. package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
  148. package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
  149. package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
  150. package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
  151. package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
  152. package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
  153. package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
  154. package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
  155. package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
  156. package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
  157. package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
  158. package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
  159. package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
  160. package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
  161. package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
  162. package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
  163. package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
  164. package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
  165. package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
  166. package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
  167. package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
  168. package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
  169. package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
  170. package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
  171. package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
  172. /package/.turbo/cache/{d39e6ef95ebc4cc0.tar.zst → f817d89688cefca8.tar.zst} +0 -0
@@ -3,26 +3,39 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const t$4=globalThis,e$7=t$4.ShadowRoot&&(void 0===t$4.ShadyCSS||t$4.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$5=Symbol(),o$8=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$7&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$8.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$8.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$a=(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$7)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$4.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$5=e$7?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$7(e)})(t):t;
6
+ 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$8=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$8.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$8.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;
7
7
 
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2017 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */const{is:i$9,defineProperty:e$6,getOwnPropertyDescriptor:r$6,getOwnPropertyNames:h$3,getOwnPropertySymbols:o$7,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$9(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$6(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$7(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");
12
+ */const{is:i$a,defineProperty:e$8,getOwnPropertyDescriptor:r$6,getOwnPropertyNames:h$3,getOwnPropertySymbols:o$7,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$7(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");
13
13
 
14
14
  /**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
18
  */
19
- const t$3=globalThis,i$8=t$3.trustedTypes,s$4=i$8?i$8.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$5="$lit$",h$2=`lit$${Math.random().toFixed(9).slice(2)}$`,o$6="?"+h$2,n$5=`<${o$6}>`,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$5+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$5)){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$8?i$8.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$6)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$3.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$3.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};
19
+ 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$6="?"+h$2,n$5=`<${o$6}>`,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$6)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};
20
20
 
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */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$7=globalThis.litElementPolyfillSupport;i$7?.({LitElement:r$4});(globalThis.litElementVersions??=[]).push("4.1.1");
25
+ */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");
26
+
27
+ /**
28
+ * @license
29
+ * Copyright 2017 Google LLC
30
+ * SPDX-License-Identifier: BSD-3-Clause
31
+ */
32
+ 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)}};
33
+
34
+ /**
35
+ * @license
36
+ * Copyright 2018 Google LLC
37
+ * SPDX-License-Identifier: BSD-3-Clause
38
+ */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}});
26
39
 
27
40
  /**
28
41
  * @license
@@ -2800,7 +2813,7 @@ class AuroIcon extends BaseIcon {
2800
2813
 
2801
2814
  var iconVersion = '6.1.2';
2802
2815
 
2803
- var styleCss$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)}`;
2816
+ var styleCss$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)}`;
2804
2817
 
2805
2818
  var colorCss$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)}`;
2806
2819
 
@@ -2824,9 +2837,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2824
2837
  ];
2825
2838
 
2826
2839
  /**
2827
- * @attr { Boolean } common - If declared, will apply all styles for the common theme.
2828
- * @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
2829
- * @attr { Boolean } inset - If declared, will apply extra padding to bib content.
2830
2840
  * @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.
2831
2841
  * @csspart bibContainer - Apply css to the bib container.
2832
2842
  */
@@ -2852,14 +2862,26 @@ class AuroDropdownBib extends r {
2852
2862
 
2853
2863
  static get properties() {
2854
2864
  return {
2865
+
2866
+ /**
2867
+ * If declared, will apply all styles for the common theme.
2868
+ */
2855
2869
  common: {
2856
2870
  type: Boolean,
2857
2871
  reflect: true
2858
2872
  },
2873
+
2874
+ /**
2875
+ * If declared, will apply extra padding to bib content.
2876
+ */
2859
2877
  inset: {
2860
2878
  type: Boolean,
2861
2879
  reflect: true
2862
2880
  },
2881
+
2882
+ /**
2883
+ * If declared, will apply border-radius to the bib.
2884
+ */
2863
2885
  rounded: {
2864
2886
  type: Boolean,
2865
2887
  reflect: true
@@ -2903,22 +2925,7 @@ if (!customElements.get("auro-dropdownbib")) {
2903
2925
 
2904
2926
 
2905
2927
  /**
2906
- * @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
2907
- * @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
2908
- * @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
2909
- * @attr { Boolean } disabled - If declared, the dropdown is not interactive.
2910
2928
  * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
2911
- * @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
2912
- * @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
2913
- * @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
2914
- * @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
2915
- * @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
2916
- * @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
2917
- * @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
2918
- * @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
2919
- * @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
2920
- * @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.
2921
- * @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
2922
2929
  * @slot - Default slot for the popover content.
2923
2930
  * @slot label - Defines the content of the label.
2924
2931
  * @slot helpText - Defines the content of the helpText.
@@ -2956,6 +2963,16 @@ class AuroDropdown extends r {
2956
2963
  this.tabIndex = 0;
2957
2964
  this.noToggle = false;
2958
2965
 
2966
+ /**
2967
+ * @private
2968
+ */
2969
+ this.hasTriggerContent = false;
2970
+
2971
+ /**
2972
+ * @private
2973
+ */
2974
+ this.triggerContentSlot = undefined;
2975
+
2959
2976
  /**
2960
2977
  * @private
2961
2978
  */
@@ -3002,89 +3019,166 @@ class AuroDropdown extends r {
3002
3019
  // function to define props used within the scope of this component
3003
3020
  static get properties() {
3004
3021
  return {
3022
+
3023
+ /**
3024
+ * If declared, applies a border around the trigger slot.
3025
+ */
3005
3026
  bordered: {
3006
3027
  type: Boolean,
3007
3028
  reflect: true
3008
3029
  },
3030
+
3031
+ /**
3032
+ * If declared, the dropdown displays a chevron on the right.
3033
+ * @attr {Boolean} chevron
3034
+ */
3009
3035
  chevron: {
3010
3036
  type: Boolean,
3011
3037
  reflect: true
3012
3038
  },
3013
- disabled: {
3039
+
3040
+ /**
3041
+ * If declared, the dropdown will be styled with the common theme.
3042
+ */
3043
+ common: {
3014
3044
  type: Boolean,
3015
3045
  reflect: true
3016
3046
  },
3017
- error: {
3047
+
3048
+ /**
3049
+ * If declared, the dropdown is not interactive.
3050
+ */
3051
+ disabled: {
3018
3052
  type: Boolean,
3019
3053
  reflect: true
3020
3054
  },
3021
- fluid: {
3055
+
3056
+ /**
3057
+ * @private
3058
+ */
3059
+ dropdownWidth: {
3060
+ type: Number
3061
+ },
3062
+
3063
+ /**
3064
+ * If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
3065
+ */
3066
+ error: {
3022
3067
  type: Boolean,
3023
- reflect: true,
3068
+ reflect: true
3024
3069
  },
3070
+
3071
+ /**
3072
+ * If declared, the bib will display when focus is applied to the trigger.
3073
+ */
3025
3074
  focusShow: {
3026
3075
  type: Boolean,
3027
3076
  reflect: true
3028
3077
  },
3029
- hoverToggle: {
3078
+
3079
+ /**
3080
+ * Makes the trigger to be full width of its parent container.
3081
+ */
3082
+ fluid: {
3030
3083
  type: Boolean,
3031
3084
  reflect: true
3032
3085
  },
3086
+
3087
+ /**
3088
+ * If declared, will apply padding around trigger slot content.
3089
+ */
3033
3090
  inset: {
3034
3091
  type: Boolean,
3035
3092
  reflect: true
3036
3093
  },
3037
- matchWidth: {
3094
+
3095
+ /**
3096
+ * If true, the dropdown bib is displayed.
3097
+ */
3098
+ isPopoverVisible: {
3099
+ type: Boolean
3100
+ },
3101
+
3102
+ /**
3103
+ * If declared, the trigger will toggle the dropdown on mouseover/mouseout.
3104
+ */
3105
+ hoverToggle: {
3038
3106
  type: Boolean,
3039
3107
  reflect: true
3040
3108
  },
3041
- rounded: {
3042
- type: Boolean,
3109
+
3110
+ /**
3111
+ * @private
3112
+ */
3113
+ hasTriggerContent: {
3114
+ type: Boolean
3115
+ },
3116
+
3117
+ /**
3118
+ * 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.
3119
+ */
3120
+ mobileFullscreenBreakpoint: {
3121
+ type: String,
3043
3122
  reflect: true
3044
3123
  },
3045
- common: {
3124
+
3125
+ /**
3126
+ * If declared, the popover and trigger will be set to the same width.
3127
+ */
3128
+ matchWidth: {
3046
3129
  type: Boolean,
3047
3130
  reflect: true
3048
3131
  },
3049
- noToggle: {
3132
+
3133
+ /**
3134
+ * If declared, the dropdown will not hide when moving focus outside the element.
3135
+ */
3136
+ noHideOnThisFocusLoss: {
3050
3137
  type: Boolean,
3051
3138
  reflect: true
3052
3139
  },
3053
- noHideOnThisFocusLoss: {
3140
+
3141
+ /**
3142
+ * If declared, the trigger will only show the dropdown bib.
3143
+ */
3144
+ noToggle: {
3054
3145
  type: Boolean,
3055
3146
  reflect: true
3056
3147
  },
3057
- isPopoverVisible: { type: Boolean },
3148
+
3058
3149
  onSlotChange: {
3059
3150
  type: Function,
3060
3151
  reflect: false
3061
3152
  },
3062
- mobileFullscreenBreakpoint: {
3063
- type: String,
3064
- reflect: true,
3065
- },
3066
3153
 
3067
3154
  /**
3068
3155
  * @private
3069
3156
  */
3070
- dropdownWidth: { type: Number },
3157
+ placement: {
3158
+ type: String
3159
+ },
3071
3160
 
3072
3161
  /**
3073
- * @private
3162
+ * If declared, will apply border-radius to trigger and default slots.
3074
3163
  */
3075
- placement: { type: String },
3164
+ rounded: {
3165
+ type: Boolean,
3166
+ reflect: true
3167
+ },
3076
3168
 
3077
3169
  /**
3078
3170
  * @private
3079
3171
  */
3080
- tabIndex: { type: Number }
3172
+ tabIndex: {
3173
+ type: Number
3174
+ }
3081
3175
  };
3082
3176
  }
3083
3177
 
3084
3178
  static get styles() {
3085
3179
  return [
3086
- styleCss$1,
3087
3180
  colorCss$1,
3181
+ styleCss$1,
3088
3182
  tokensCss$2
3089
3183
  ];
3090
3184
  }
@@ -3115,6 +3209,12 @@ class AuroDropdown extends r {
3115
3209
  if (changedProperties.has('mobileFullscreenBreakpoint')) {
3116
3210
  this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
3117
3211
  }
3212
+
3213
+ // when trigger's content is changed without any attribute or node change,
3214
+ // `requestUpdate` needs to be called to update hasTriggerContnet
3215
+ if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
3216
+ this.handleTriggerContentSlotChange();
3217
+ }
3118
3218
  }
3119
3219
 
3120
3220
  firstUpdated() {
@@ -3157,6 +3257,43 @@ class AuroDropdown extends r {
3157
3257
  return inCustomSlot;
3158
3258
  }
3159
3259
 
3260
+ /**
3261
+ * Handles changes to the trigger content slot and updates related properties.
3262
+ *
3263
+ * It first updates the floater settings
3264
+ * Then, it retrieves the assigned nodes from the event target and checks if any of
3265
+ * the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
3266
+ *
3267
+ * @private
3268
+ * @method handleTriggerContentSlotChange
3269
+ * @param {Event} event - native slotchange event
3270
+ * @returns {void}
3271
+ */
3272
+ handleTriggerContentSlotChange(event) {
3273
+ this.floater.handleTriggerTabIndex();
3274
+
3275
+ if (event) {
3276
+ this.triggerNode = event.target;
3277
+ this.triggerContentSlot = event.target.assignedNodes();
3278
+ }
3279
+
3280
+ if (this.triggerContentSlot) {
3281
+ this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
3282
+ if (slot.textContent.trim()) {
3283
+ return true;
3284
+ }
3285
+ const slotInSlot = slot.querySelector('slot');
3286
+ if (!slotInSlot) {
3287
+ return false;
3288
+ }
3289
+ const slotsInSlotNodes = slotInSlot.assignedNodes();
3290
+ return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3291
+ });
3292
+ } else {
3293
+ this.hasTriggerContent = false;
3294
+ }
3295
+ }
3296
+
3160
3297
  /**
3161
3298
  * Handles the default slot change event and updates the content.
3162
3299
  *
@@ -3191,13 +3328,13 @@ class AuroDropdown extends r {
3191
3328
  tabindex="${this.tabIndex}"
3192
3329
  >
3193
3330
  <div class="triggerContentWrapper">
3194
- <label class="label" id="triggerLabel">
3331
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3195
3332
  <slot name="label"></slot>
3196
3333
  </label>
3197
3334
  <div class="triggerContent">
3198
3335
  <slot
3199
3336
  name="trigger"
3200
- @slotchange="${() => {this.floater.handleTriggerTabIndex(); }}"></slot>
3337
+ @slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
3201
3338
  </div>
3202
3339
  </div>
3203
3340
  ${this.chevron || this.common ? u$1`
@@ -3239,11 +3376,11 @@ AuroDropdown.register();
3239
3376
 
3240
3377
  var dropdownVersion = '3.0.0';
3241
3378
 
3242
- var styleCss = i$a`*,*: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}`;
3379
+ var styleCss = 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}`;
3243
3380
 
3244
- var colorCss = i$a`*,*: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)}`;
3381
+ var colorCss = 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)}`;
3245
3382
 
3246
- var tokensCss = i$a`:host{--ds-auro-select-placeholder-text-color: var(--ds-color-text-secondary-default, $ds-color-text-secondary-default)}`;
3383
+ var tokensCss = i$b`:host{--ds-auro-select-placeholder-text-color: var(--ds-color-text-secondary-default, $ds-color-text-secondary-default)}`;
3247
3384
 
3248
3385
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3249
3386
  // See LICENSE in the project root for license information.
@@ -3253,22 +3390,10 @@ var tokensCss = i$a`:host{--ds-auro-select-placeholder-text-color: var(--ds-colo
3253
3390
  /**
3254
3391
  * The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
3255
3392
  *
3256
- * @attr {String} validity - Specifies the `validityState` this element is in.
3257
- * @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
3258
- * @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
3259
- * @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
3260
- * @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
3261
- * @attr {Boolean} noValidate - If set, disables auto-validation on blur.
3262
- * @attr {Boolean} required - Populates the `required` attribute on the element. Used for client-side validation.
3263
- * @attr {Boolean} flexMenuWidth - If set, makes dropdown bib width match the size of the content, rather than the width of the trigger.
3264
- * @prop {String} placeholder - Define placeholder text to display before a value is manually selected.
3265
- * @prop {String} value - Value selected for the component.
3266
- * @prop {Boolean} disabled - When attribute is present element shows disabled state.
3267
- * @prop {Boolean} noCheckmark - When true, checkmark on selected option will no longer be present.
3268
- * @attr {Object} optionSelected - Specifies the current selected menuOption.
3269
3393
  * @slot - Default slot for the menu content.
3270
3394
  * @slot label - Defines the content of the label.
3271
3395
  * @slot helpText - Defines the content of the helpText.
3396
+ * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
3272
3397
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
3273
3398
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
3274
3399
  * @csspart helpText - Apply CSS to the help text.
@@ -3279,7 +3404,6 @@ class AuroSelect extends r$4 {
3279
3404
  constructor() {
3280
3405
  super();
3281
3406
 
3282
- this.placeholder = 'Please select option';
3283
3407
  this.optionSelected = undefined;
3284
3408
  this.validity = undefined;
3285
3409
 
@@ -3334,68 +3458,118 @@ class AuroSelect extends r$4 {
3334
3458
  // to understand how to use reflected attributes with your property settings.
3335
3459
  static get properties() {
3336
3460
  return {
3337
- // ...super.properties,
3338
- optionSelected: {
3339
- type: Object
3461
+
3462
+ /**
3463
+ * When attribute is present, element shows disabled state.
3464
+ */
3465
+ disabled: {
3466
+ type: Boolean,
3467
+ reflect: true
3340
3468
  },
3341
- value: {
3342
- type: String
3469
+
3470
+ /**
3471
+ * If set, makes dropdown width match the size of the content, rather than the width of the trigger.
3472
+ */
3473
+ flexMenuWidth: {
3474
+ type: Boolean,
3475
+ reflect: true
3343
3476
  },
3477
+
3478
+ /**
3479
+ * When true, checkmark on selected option will no longer be present.
3480
+ */
3481
+ noCheckmark: {
3482
+ type: Boolean,
3483
+ reflect: true
3484
+ },
3485
+
3486
+ /**
3487
+ * If set, disables auto-validation on blur.
3488
+ */
3344
3489
  noValidate: {
3345
3490
  type: Boolean,
3346
3491
  reflect: true
3347
3492
  },
3493
+
3494
+ /**
3495
+ * @private
3496
+ */
3497
+ optionActive: {
3498
+ type: Object
3499
+ },
3500
+
3501
+ /**
3502
+ * Specifies the current selected menuOption.
3503
+ */
3504
+ optionSelected: {
3505
+ type: Object
3506
+ },
3507
+
3508
+ /**
3509
+ * @private
3510
+ */
3511
+ options: {
3512
+ type: Array
3513
+ },
3514
+
3515
+ /**
3516
+ * Populates the `required` attribute on the element. Used for client-side validation.
3517
+ */
3348
3518
  required: {
3349
3519
  type: Boolean,
3350
3520
  reflect: true
3351
3521
  },
3522
+
3523
+ /**
3524
+ * When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
3525
+ */
3352
3526
  error: {
3353
3527
  type: String,
3354
3528
  reflect: true
3355
3529
  },
3530
+
3531
+ /**
3532
+ * Sets a custom help text message to display for all validityStates.
3533
+ */
3356
3534
  setCustomValidity: {
3357
3535
  type: String
3358
3536
  },
3537
+
3538
+ /**
3539
+ * Custom help text message to display when validity = `customError`.
3540
+ */
3359
3541
  setCustomValidityCustomError: {
3360
3542
  type: String
3361
3543
  },
3544
+
3545
+ /**
3546
+ * Custom help text message to display when validity = `valueMissing`.
3547
+ */
3362
3548
  setCustomValidityValueMissing: {
3363
3549
  type: String
3364
3550
  },
3551
+
3552
+ /**
3553
+ * Specifies the `validityState` this element is in.
3554
+ */
3365
3555
  validity: {
3366
3556
  type: String,
3367
3557
  reflect: true
3368
3558
  },
3369
- disabled: {
3370
- type: Boolean,
3371
- reflect: true
3372
- },
3373
- noCheckmark: {
3374
- type: Boolean,
3375
- reflect: true
3376
- },
3377
- flexMenuWidth: {
3378
- type: Boolean,
3379
- reflect: true
3380
- },
3381
- placeholder: { type: String },
3382
3559
 
3383
3560
  /**
3384
- * @private
3561
+ * Value selected for the component.
3385
3562
  */
3386
- options: { type: Array },
3387
-
3388
- /**
3389
- * @private
3390
- */
3391
- optionActive: { type: Object },
3563
+ value: {
3564
+ type: String
3565
+ }
3392
3566
  };
3393
3567
  }
3394
3568
 
3395
3569
  static get styles() {
3396
3570
  return [
3397
- styleCss,
3398
3571
  colorCss,
3572
+ styleCss,
3399
3573
  tokensCss
3400
3574
  ];
3401
3575
  }
@@ -3430,36 +3604,30 @@ class AuroSelect extends r$4 {
3430
3604
  }
3431
3605
 
3432
3606
  /**
3433
- * Updates the displayed value in an Auro dropdown component based on the provided option.
3434
- * @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.
3607
+ * Updates the displayed value in an Auro dropdown component based on optionSelected
3435
3608
  * @private
3436
3609
  * @returns {void}
3437
3610
  */
3438
- updateDisplayedValue(option) {
3611
+ updateDisplayedValue() {
3439
3612
  const triggerContentEl = this.dropdown.querySelector('#triggerFocus');
3440
3613
 
3441
3614
  // remove all existing rendered value(s)
3442
- triggerContentEl.querySelectorAll('auro-menuoption, [valuestr], [auro-menuoption]').forEach((elm) => {
3615
+ triggerContentEl.querySelectorAll('auro-menuoption, [auro-menuoption]').forEach((elm) => {
3443
3616
  elm.remove();
3444
3617
  });
3445
3618
 
3446
- if (typeof option === 'string' && option !== this.placeholder) {
3447
- // create a new span element with the value string
3448
- const valueElem = document.createElement('span');
3449
- valueElem.setAttribute('valuestr', true);
3450
- valueElem.textContent = option;
3451
-
3452
- // append the new element into the trigger content
3453
- triggerContentEl.appendChild(valueElem);
3454
- } else if (typeof option === 'object') {
3619
+ if (this.optionSelected) {
3455
3620
  // clone the selected option and remove attributes that style it
3456
- const clone = option.cloneNode(true);
3621
+ const clone = this.optionSelected.cloneNode(true);
3457
3622
  clone.removeAttribute('selected');
3458
3623
  clone.removeAttribute('class');
3459
3624
 
3460
3625
  // insert the non-styled clone into the trigger
3461
3626
  triggerContentEl.appendChild(clone);
3462
3627
  }
3628
+
3629
+ // notify dropdown as trigger content is changed
3630
+ this.dropdown.requestUpdate();
3463
3631
  }
3464
3632
 
3465
3633
  /**
@@ -3469,7 +3637,7 @@ class AuroSelect extends r$4 {
3469
3637
  */
3470
3638
  configureMenu() {
3471
3639
  this.menu = this.querySelector('auro-menu, [auro-menu]');
3472
- this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
3640
+
3473
3641
  // racing condition on custom-select with custom-menu
3474
3642
  if (!this.menu) {
3475
3643
  setTimeout(() => {
@@ -3478,6 +3646,7 @@ class AuroSelect extends r$4 {
3478
3646
  return;
3479
3647
  }
3480
3648
 
3649
+ this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
3481
3650
  this.menu.setAttribute('aria-hidden', 'true');
3482
3651
 
3483
3652
  this.generateOptionsArray();
@@ -3490,8 +3659,6 @@ class AuroSelect extends r$4 {
3490
3659
  this.optionSelected = this.menu.optionSelected;
3491
3660
  this.value = this.optionSelected.value;
3492
3661
 
3493
- this.updateDisplayedValue(this.optionSelected);
3494
-
3495
3662
  if (this.dropdown.isPopoverVisible) {
3496
3663
  this.dropdown.hide();
3497
3664
  }
@@ -3506,7 +3673,11 @@ class AuroSelect extends r$4 {
3506
3673
  */
3507
3674
  this.menu.addEventListener('auroMenu-selectValueFailure', () => {
3508
3675
  this.reset();
3509
- this.updateDisplayedValue(this.placeholder);
3676
+ });
3677
+
3678
+ this.menu.addEventListener('auroMenu-selectValueReset', () => {
3679
+ this.optionSelected = this.menu.optionSelected;
3680
+ this.validation.validate(this);
3510
3681
  });
3511
3682
  }
3512
3683
 
@@ -3557,8 +3728,6 @@ class AuroSelect extends r$4 {
3557
3728
  this.addEventListener('blur', () => {
3558
3729
  this.validation.validate(this);
3559
3730
  });
3560
-
3561
- this.labelForSr();
3562
3731
  }
3563
3732
 
3564
3733
  /**
@@ -3677,6 +3846,10 @@ class AuroSelect extends r$4 {
3677
3846
  }));
3678
3847
  }
3679
3848
 
3849
+ if (changedProperties.has('optionSelected')) {
3850
+ this.updateDisplayedValue();
3851
+ }
3852
+
3680
3853
  if (changedProperties.has('error')) {
3681
3854
  this.validation.validate(this, true);
3682
3855
  }
@@ -3690,52 +3863,15 @@ class AuroSelect extends r$4 {
3690
3863
  this.validation.reset(this);
3691
3864
  }
3692
3865
 
3693
- /**
3694
- * Handles reading of auro-select by screen readers.
3695
- * @private
3696
- * @returns {void}
3697
- */
3698
- labelForSr() {
3699
- const placeholderLabel = document.createElement("div");
3700
- const textId = "label";
3701
-
3702
- placeholderLabel.setAttribute("id", textId);
3703
- placeholderLabel.setAttribute("aria-live", "polite");
3704
-
3705
- const styles = {
3706
- position: 'absolute',
3707
- overflow: 'hidden',
3708
- clipPath: 'inset(1px, 1px, 1px, 1px)',
3709
- width: '1px',
3710
- height: '1px',
3711
- padding: '0',
3712
- border: '0'
3713
- };
3714
-
3715
- Object.assign(placeholderLabel.style, styles);
3716
-
3717
- this.addEventListener('focus', () => {
3718
- document.body.appendChild(placeholderLabel);
3719
-
3720
- if (!this.optionSelected) {
3721
- document.getElementById(textId).innerHTML = this.placeholder;
3722
- } else {
3723
- document.getElementById(textId).innerHTML = `${this.optionSelected.innerText}, ${this.placeholder}`;
3724
- }
3725
- });
3726
-
3727
- this.addEventListener('blur', () => {
3728
- if (document.contains(placeholderLabel)) {
3729
- document.body.removeChild(placeholderLabel);
3730
- }
3731
- });
3732
- }
3733
-
3734
3866
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
3735
3867
  // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
3736
3868
 
3737
3869
  // function that renders the HTML and CSS into the scope of the component
3738
3870
  render() {
3871
+ const placeholderClass = {
3872
+ hidden: this.value,
3873
+ };
3874
+
3739
3875
  return u$3`
3740
3876
  <div class="outerWrapper">
3741
3877
  <div aria-live="polite" class="util_displayHiddenVisually">
@@ -3762,7 +3898,7 @@ class AuroSelect extends r$4 {
3762
3898
  chevron
3763
3899
  part="dropdown">
3764
3900
  <span slot="trigger" aria-haspopup="true" id="triggerFocus">
3765
- ${this.value ? this.displayValue : u$3`<span class="placeholder">${this.placeholder}</span>`}
3901
+ <span id="placeholder" class="${e$5(placeholderClass)}"><slot name="placeholder"></slot></span>
3766
3902
  </span>
3767
3903
  <div class="menuWrapper">
3768
3904
  </div>