@aurodesignsystem/auro-formkit 2.0.0-beta.1 → 2.0.0-beta.10

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 (561) hide show
  1. package/.turbo/cache/026e4d886ba97e63-meta.json +1 -0
  2. package/.turbo/cache/026e4d886ba97e63.tar.zst +0 -0
  3. package/.turbo/cache/080ca6155e637d5d-meta.json +1 -0
  4. package/.turbo/cache/080ca6155e637d5d.tar.zst +0 -0
  5. package/.turbo/cache/0b115e30ff606299-meta.json +1 -0
  6. package/.turbo/cache/0b115e30ff606299.tar.zst +0 -0
  7. package/.turbo/cache/0c8124a987c1cc05-meta.json +1 -0
  8. package/.turbo/cache/0c8124a987c1cc05.tar.zst +0 -0
  9. package/.turbo/cache/18129dba20f51b6b-meta.json +1 -0
  10. package/.turbo/cache/18129dba20f51b6b.tar.zst +0 -0
  11. package/.turbo/cache/1c630fb3411e4a41-meta.json +1 -0
  12. package/.turbo/cache/1c630fb3411e4a41.tar.zst +0 -0
  13. package/.turbo/cache/24b19ac5895e5dd6-meta.json +1 -0
  14. package/.turbo/cache/24b19ac5895e5dd6.tar.zst +0 -0
  15. package/.turbo/cache/2787020e69f50af2-meta.json +1 -0
  16. package/.turbo/cache/2787020e69f50af2.tar.zst +0 -0
  17. package/.turbo/cache/29b72c73cbccb53d-meta.json +1 -0
  18. package/.turbo/cache/29b72c73cbccb53d.tar.zst +0 -0
  19. package/.turbo/cache/2c0d681132c153dd-meta.json +1 -0
  20. package/.turbo/cache/2c0d681132c153dd.tar.zst +0 -0
  21. package/.turbo/cache/3e647c5863d32e6f-meta.json +1 -0
  22. package/.turbo/cache/3e647c5863d32e6f.tar.zst +0 -0
  23. package/.turbo/cache/4006a206400d5c7b-meta.json +1 -0
  24. package/.turbo/cache/4006a206400d5c7b.tar.zst +0 -0
  25. package/.turbo/cache/43f5206cc4e69b44-meta.json +1 -0
  26. package/.turbo/cache/43f5206cc4e69b44.tar.zst +0 -0
  27. package/.turbo/cache/492dda333b8d15f1-meta.json +1 -0
  28. package/.turbo/cache/492dda333b8d15f1.tar.zst +0 -0
  29. package/.turbo/cache/4a85ec226b585fd5-meta.json +1 -0
  30. package/.turbo/cache/4a85ec226b585fd5.tar.zst +0 -0
  31. package/.turbo/cache/50993de942ec15a9-meta.json +1 -0
  32. package/.turbo/cache/50993de942ec15a9.tar.zst +0 -0
  33. package/.turbo/cache/50a29c70b93c57dd-meta.json +1 -0
  34. package/.turbo/cache/50a29c70b93c57dd.tar.zst +0 -0
  35. package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -0
  36. package/.turbo/cache/51eaa58d5c167de8.tar.zst +0 -0
  37. package/.turbo/cache/56455145cd768755-meta.json +1 -0
  38. package/.turbo/cache/56455145cd768755.tar.zst +0 -0
  39. package/.turbo/cache/5c06332cf9f132da-meta.json +1 -0
  40. package/.turbo/cache/5c06332cf9f132da.tar.zst +0 -0
  41. package/.turbo/cache/5e613afc6868d0e2-meta.json +1 -0
  42. package/.turbo/cache/5e613afc6868d0e2.tar.zst +0 -0
  43. package/.turbo/cache/6081837e8943b62e-meta.json +1 -0
  44. package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
  45. package/.turbo/cache/60ad74320c682a2b-meta.json +1 -0
  46. package/.turbo/cache/60ad74320c682a2b.tar.zst +0 -0
  47. package/.turbo/cache/61e218aba69cff58-meta.json +1 -0
  48. package/.turbo/cache/61e218aba69cff58.tar.zst +0 -0
  49. package/.turbo/cache/639dac15b979bedc-meta.json +1 -0
  50. package/.turbo/cache/639dac15b979bedc.tar.zst +0 -0
  51. package/.turbo/cache/664c2e08614fd212-meta.json +1 -0
  52. package/.turbo/cache/664c2e08614fd212.tar.zst +0 -0
  53. package/.turbo/cache/6c51b0ebfc086faa-meta.json +1 -0
  54. package/.turbo/cache/6c51b0ebfc086faa.tar.zst +0 -0
  55. package/.turbo/cache/7216d994164825fb-meta.json +1 -0
  56. package/.turbo/cache/7216d994164825fb.tar.zst +0 -0
  57. package/.turbo/cache/77da375a012de9d0-meta.json +1 -0
  58. package/.turbo/cache/77da375a012de9d0.tar.zst +0 -0
  59. package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -0
  60. package/.turbo/cache/7bf2b06a479d0b30.tar.zst +0 -0
  61. package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -0
  62. package/.turbo/cache/7c9ca6163e61285c.tar.zst +0 -0
  63. package/.turbo/cache/83a167e135cb431a-meta.json +1 -0
  64. package/.turbo/cache/83a167e135cb431a.tar.zst +0 -0
  65. package/.turbo/cache/8af27c076dc010c3-meta.json +1 -0
  66. package/.turbo/cache/8af27c076dc010c3.tar.zst +0 -0
  67. package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -0
  68. package/.turbo/cache/8bb856bd31b5b479.tar.zst +0 -0
  69. package/.turbo/cache/953c8216249d3509-meta.json +1 -0
  70. package/.turbo/cache/953c8216249d3509.tar.zst +0 -0
  71. package/.turbo/cache/95a5e76ffd8c5110-meta.json +1 -0
  72. package/.turbo/cache/95a5e76ffd8c5110.tar.zst +0 -0
  73. package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -0
  74. package/.turbo/cache/9ae99e8e7bd83d06.tar.zst +0 -0
  75. package/.turbo/cache/a8b0fa0a9aa707c5-meta.json +1 -0
  76. package/.turbo/cache/a8b0fa0a9aa707c5.tar.zst +0 -0
  77. package/.turbo/cache/b22ca87b2f7f9cc2-meta.json +1 -0
  78. package/.turbo/cache/b22ca87b2f7f9cc2.tar.zst +0 -0
  79. package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -0
  80. package/.turbo/cache/b5e6dc7fb9ae1a2f.tar.zst +0 -0
  81. package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -0
  82. package/.turbo/cache/b6a202cc85cb61a0.tar.zst +0 -0
  83. package/.turbo/cache/b7bbe2e7d44b77f0-meta.json +1 -0
  84. package/.turbo/cache/b7bbe2e7d44b77f0.tar.zst +0 -0
  85. package/.turbo/cache/be0b95293ea517cc-meta.json +1 -0
  86. package/.turbo/cache/be0b95293ea517cc.tar.zst +0 -0
  87. package/.turbo/cache/c2b51643f886a493-meta.json +1 -0
  88. package/.turbo/cache/c2b51643f886a493.tar.zst +0 -0
  89. package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -0
  90. package/.turbo/cache/c44efc9e4ddd8a0e.tar.zst +0 -0
  91. package/.turbo/cache/c6c6411199b68170-meta.json +1 -0
  92. package/.turbo/cache/c6c6411199b68170.tar.zst +0 -0
  93. package/.turbo/cache/c74d369a0475b124-meta.json +1 -0
  94. package/.turbo/cache/c74d369a0475b124.tar.zst +0 -0
  95. package/.turbo/cache/c7f5a276ddb73cf7-meta.json +1 -0
  96. package/.turbo/cache/c7f5a276ddb73cf7.tar.zst +0 -0
  97. package/.turbo/cache/c96933d40404e4c8-meta.json +1 -0
  98. package/.turbo/cache/c96933d40404e4c8.tar.zst +0 -0
  99. package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -0
  100. package/.turbo/cache/d5db503b2eaf239c.tar.zst +0 -0
  101. package/.turbo/cache/d775555355d6b8fc-meta.json +1 -0
  102. package/.turbo/cache/d775555355d6b8fc.tar.zst +0 -0
  103. package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -0
  104. package/.turbo/cache/d7c3007be148d2a1.tar.zst +0 -0
  105. package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -0
  106. package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
  107. package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -0
  108. package/.turbo/cache/e62cfee068e3ef36.tar.zst +0 -0
  109. package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -0
  110. package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
  111. package/.turbo/cache/eb1dbe885532c1dc-meta.json +1 -0
  112. package/.turbo/cache/eb1dbe885532c1dc.tar.zst +0 -0
  113. package/.turbo/cache/f1f6744948f1b18f-meta.json +1 -0
  114. package/.turbo/cache/f1f6744948f1b18f.tar.zst +0 -0
  115. package/.turbo/cache/feefbc25d550c1cd-meta.json +1 -0
  116. package/.turbo/cache/feefbc25d550c1cd.tar.zst +0 -0
  117. package/.turbo/cache/ff4dbfffc29255ab-meta.json +1 -0
  118. package/.turbo/cache/ff4dbfffc29255ab.tar.zst +0 -0
  119. package/.vscode/settings.json +3 -0
  120. package/CHANGELOG.md +109 -0
  121. package/README.md +59 -59
  122. package/components/checkbox/.turbo/turbo-build$colon$sass.log +10 -10
  123. package/components/checkbox/.turbo/turbo-build.log +20 -21
  124. package/components/checkbox/.turbo/turbo-bundler.log +4 -4
  125. package/components/checkbox/.turbo/turbo-postCss$colon$component.log +1 -2
  126. package/components/checkbox/.turbo/turbo-sass$colon$render.log +6 -6
  127. package/components/checkbox/.turbo/turbo-types.log +1 -1
  128. package/components/checkbox/README.md +26 -34
  129. package/components/checkbox/demo/api.md +65 -65
  130. package/components/checkbox/demo/api.min.js +184 -84
  131. package/components/checkbox/demo/index.md +62 -62
  132. package/components/checkbox/demo/index.min.js +184 -84
  133. package/components/checkbox/dist/auro-checkbox-group.d.ts +35 -16
  134. package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
  135. package/components/checkbox/dist/auro-checkbox.d.ts +20 -11
  136. package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
  137. package/components/checkbox/dist/index.js +184 -84
  138. package/components/checkbox/package.json +1 -1
  139. package/components/checkbox/src/auro-checkbox-group.js +46 -17
  140. package/components/checkbox/src/auro-checkbox.js +29 -12
  141. package/components/combobox/.turbo/turbo-build$colon$sass.log +5 -5
  142. package/components/combobox/.turbo/turbo-build.log +22 -23
  143. package/components/combobox/.turbo/turbo-postCss$colon$component.log +1 -2
  144. package/components/combobox/.turbo/turbo-sass$colon$render.log +2 -2
  145. package/components/combobox/README.md +21 -26
  146. package/components/combobox/demo/api.md +17 -15
  147. package/components/combobox/demo/api.min.js +754 -357
  148. package/components/combobox/demo/index.md +1 -1
  149. package/components/combobox/demo/index.min.js +754 -357
  150. package/components/combobox/dist/auro-combobox.d.ts +11 -4
  151. package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
  152. package/components/combobox/dist/dropdownVersion.d.ts +3 -0
  153. package/components/combobox/dist/dropdownVersion.d.ts.map +1 -0
  154. package/components/combobox/dist/index.js +752 -355
  155. package/components/combobox/dist/inputVersion.d.ts +3 -0
  156. package/components/combobox/dist/inputVersion.d.ts.map +1 -0
  157. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/.husky/pre-commit +1 -0
  158. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/CHANGELOG.md +863 -0
  159. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/README.md +109 -0
  160. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/README.md +86 -0
  161. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/_auroElement.scss +45 -0
  162. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.js +38 -0
  163. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.mjs +38 -0
  164. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials+fv.css +110 -0
  165. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials.css +106 -0
  166. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/demoWrapper.css +8 -0
  167. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/elementDemoStyles.css +813 -0
  168. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/package.json +134 -0
  169. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/packageScripts/postinstall.mjs +39 -0
  170. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_animation.scss +30 -0
  171. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_blockquote.scss +46 -0
  172. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_breakpoints.scss +155 -0
  173. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_core.scss +25 -0
  174. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_essentials.scss +267 -0
  175. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_focus-visible.scss +36 -0
  176. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_fonts.scss +50 -0
  177. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_grids.scss +395 -0
  178. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_headings.scss +255 -0
  179. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_normalize.scss +663 -0
  180. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_picture.scss +31 -0
  181. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_utilityClasses.scss +22 -0
  182. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials+fv.scss +19 -0
  183. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials.scss +18 -0
  184. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleButton.scss +32 -0
  185. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleTab.scss +26 -0
  186. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_containedButtons.scss +59 -0
  187. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_table.scss +54 -0
  188. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_tablist.scss +37 -0
  189. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/README.md +5 -0
  190. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/demoWrapper.scss +18 -0
  191. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/elementDemoStyles.scss +123 -0
  192. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_deprecated.scss +16 -0
  193. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_manageScope.scss +42 -0
  194. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_displayProperties.scss +142 -0
  195. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_fontStyles.scss +151 -0
  196. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_inset.scss +188 -0
  197. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_layoutProperties.scss +75 -0
  198. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_listProperties.scss +176 -0
  199. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_responsive.scss +249 -0
  200. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_typeProperties.scss +49 -0
  201. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_capitalize.scss +20 -0
  202. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_contains.scss +26 -0
  203. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_map-deep-get.scss +29 -0
  204. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleButton.scss +76 -0
  205. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleTab.scss +86 -0
  206. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_insetUtility.scss +9 -0
  207. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_layoutPropertiesGenerator.scss +75 -0
  208. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_spacingUtility.scss +96 -0
  209. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_important.scss +20 -0
  210. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_spacing-options.scss +13 -0
  211. package/components/combobox/node_modules/@rollup/plugin-node-resolve/README.md +293 -0
  212. package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js +1377 -0
  213. package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/index.js +1370 -0
  214. package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/package.json +1 -0
  215. package/components/combobox/node_modules/@rollup/plugin-node-resolve/package.json +89 -0
  216. package/components/combobox/node_modules/@rollup/plugin-node-resolve/types/index.d.ts +115 -0
  217. package/components/combobox/node_modules/chalk/package.json +3 -3
  218. package/components/combobox/node_modules/chalk/readme.md +25 -53
  219. package/components/combobox/node_modules/chalk/source/index.d.ts +6 -1
  220. package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +6 -2
  221. package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +2 -2
  222. package/components/combobox/package.json +8 -8
  223. package/components/combobox/src/auro-combobox.js +75 -76
  224. package/components/combobox/src/dropdownVersion.js +1 -0
  225. package/components/combobox/src/inputVersion.js +1 -0
  226. package/components/counter/.turbo/turbo-build$colon$sass.log +179 -7
  227. package/components/counter/.turbo/turbo-build$colon$version.log +10 -0
  228. package/components/counter/.turbo/turbo-build.log +288 -14
  229. package/components/counter/.turbo/turbo-bundler.log +4 -4
  230. package/components/counter/.turbo/turbo-postCss$colon$component.log +1 -2
  231. package/components/counter/.turbo/turbo-sass$colon$render.log +39 -3
  232. package/components/counter/.turbo/turbo-types.log +1 -1
  233. package/components/counter/README.md +188 -0
  234. package/components/counter/demo/api.md +98 -1016
  235. package/components/counter/demo/api.min.js +1670 -32
  236. package/components/counter/demo/index.js +2 -1
  237. package/components/counter/demo/index.md +194 -0
  238. package/components/counter/demo/index.min.js +1702 -19
  239. package/components/counter/dist/auro-counter-button.d.ts +13 -0
  240. package/components/counter/dist/auro-counter-button.d.ts.map +1 -0
  241. package/components/counter/dist/auro-counter-group.d.ts +77 -6
  242. package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
  243. package/components/counter/dist/auro-counter.d.ts +78 -0
  244. package/components/counter/dist/auro-counter.d.ts.map +1 -1
  245. package/components/counter/dist/dropdownVersion.d.ts +3 -0
  246. package/components/counter/dist/dropdownVersion.d.ts.map +1 -0
  247. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +3 -0
  248. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
  249. package/components/counter/dist/iconVersion.d.ts +3 -0
  250. package/components/counter/dist/iconVersion.d.ts.map +1 -0
  251. package/components/counter/dist/index.js +1670 -32
  252. package/components/counter/dist/styles/color-css.d.ts +3 -0
  253. package/components/counter/dist/styles/color-css.d.ts.map +1 -0
  254. package/components/counter/dist/styles/counter-button-color-css.d.ts +3 -0
  255. package/components/counter/dist/styles/counter-button-color-css.d.ts.map +1 -0
  256. package/components/counter/dist/styles/counter-button-css.d.ts +3 -0
  257. package/components/counter/dist/styles/counter-button-css.d.ts.map +1 -0
  258. package/components/counter/dist/styles/counter-button-tokens-css.d.ts +3 -0
  259. package/components/counter/dist/styles/counter-button-tokens-css.d.ts.map +1 -0
  260. package/components/counter/dist/styles/counter-group-color-css.d.ts +3 -0
  261. package/components/counter/dist/styles/counter-group-color-css.d.ts.map +1 -0
  262. package/components/counter/dist/styles/tokens-css.d.ts +3 -0
  263. package/components/counter/dist/styles/tokens-css.d.ts.map +1 -0
  264. package/components/counter/package.json +9 -3
  265. package/components/counter/src/auro-counter-button.js +42 -0
  266. package/components/counter/src/auro-counter-group.js +150 -21
  267. package/components/counter/src/auro-counter.js +272 -12
  268. package/components/counter/src/dropdownVersion.js +1 -0
  269. package/components/counter/src/formkit/auro-dropdownVersion.js +1 -0
  270. package/components/counter/src/iconVersion.js +1 -0
  271. package/components/counter/src/index.js +1 -1
  272. package/components/counter/src/styles/color-css.js +2 -0
  273. package/components/counter/src/styles/color.css +25 -0
  274. package/components/counter/src/styles/color.scss +44 -0
  275. package/components/counter/src/styles/counter-button-color-css.js +2 -0
  276. package/components/counter/src/styles/counter-button-color.css +14 -0
  277. package/components/counter/src/styles/counter-button-color.scss +29 -0
  278. package/components/counter/src/styles/counter-button-css.js +2 -0
  279. package/components/counter/src/styles/counter-button-tokens-css.js +2 -0
  280. package/components/counter/src/styles/counter-button-tokens.css +7 -0
  281. package/components/counter/src/styles/counter-button-tokens.scss +9 -0
  282. package/components/counter/src/styles/counter-button.css +187 -0
  283. package/components/counter/src/styles/counter-button.scss +83 -0
  284. package/components/counter/src/styles/counter-group-color-css.js +2 -0
  285. package/components/counter/src/styles/counter-group-color.css +4 -0
  286. package/components/counter/src/styles/counter-group-color.scss +19 -0
  287. package/components/counter/src/styles/counter-group-css.js +1 -1
  288. package/components/counter/src/styles/counter-group.css +13 -1
  289. package/components/counter/src/styles/counter-group.scss +14 -1
  290. package/components/counter/src/styles/style-css.js +1 -1
  291. package/components/counter/src/styles/style.css +43 -1
  292. package/components/counter/src/styles/style.scss +48 -2
  293. package/components/counter/src/styles/tokens-css.js +2 -0
  294. package/components/counter/src/styles/tokens.css +11 -0
  295. package/components/counter/src/styles/tokens.scss +24 -0
  296. package/components/datepicker/.turbo/turbo-build$colon$sass.log +34 -34
  297. package/components/datepicker/.turbo/turbo-build.log +59 -59
  298. package/components/datepicker/.turbo/turbo-postCss$colon$component.log +1 -2
  299. package/components/datepicker/.turbo/turbo-sass$colon$render.log +10 -10
  300. package/components/datepicker/README.md +21 -26
  301. package/components/datepicker/demo/api.md +177 -131
  302. package/components/datepicker/demo/api.min.js +995 -559
  303. package/components/datepicker/demo/index.md +1 -1
  304. package/components/datepicker/demo/index.min.js +995 -559
  305. package/components/datepicker/dist/auro-datepicker.d.ts +89 -78
  306. package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
  307. package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
  308. package/components/datepicker/dist/dropdownVersion.d.ts.map +1 -1
  309. package/components/datepicker/dist/index.js +995 -559
  310. package/components/datepicker/dist/inputVersion.d.ts +3 -0
  311. package/components/datepicker/dist/inputVersion.d.ts.map +1 -0
  312. package/components/datepicker/package.json +3 -3
  313. package/components/datepicker/src/auro-datepicker.js +142 -104
  314. package/components/datepicker/src/dropdownVersion.js +1 -0
  315. package/components/datepicker/src/inputVersion.js +1 -0
  316. package/components/datepicker/src/styles/color-cell-css.js +1 -1
  317. package/components/datepicker/src/styles/color-cell.css +1 -1
  318. package/components/datepicker/src/styles/color-cell.scss +1 -1
  319. package/components/dropdown/.turbo/turbo-build$colon$sass.log +8 -8
  320. package/components/dropdown/.turbo/turbo-build$colon$version.log +1 -1
  321. package/components/dropdown/.turbo/turbo-build.log +19 -20
  322. package/components/dropdown/.turbo/turbo-bundler.log +4 -4
  323. package/components/dropdown/.turbo/turbo-postCss$colon$component.log +1 -2
  324. package/components/dropdown/.turbo/turbo-sass$colon$render.log +6 -6
  325. package/components/dropdown/.turbo/turbo-types.log +1 -1
  326. package/components/dropdown/README.md +18 -26
  327. package/components/dropdown/demo/api.md +4 -4
  328. package/components/dropdown/demo/api.min.js +205 -81
  329. package/components/dropdown/demo/index.min.js +205 -81
  330. package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
  331. package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
  332. package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
  333. package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
  334. package/components/dropdown/dist/index.js +205 -81
  335. package/components/dropdown/package.json +1 -1
  336. package/components/dropdown/src/auro-dropdown.js +154 -39
  337. package/components/dropdown/src/auro-dropdownBib.js +12 -3
  338. package/components/dropdown/src/styles/style-css.js +1 -1
  339. package/components/dropdown/src/styles/style.css +4 -0
  340. package/components/dropdown/src/styles/style.scss +5 -0
  341. package/components/form/.turbo/turbo-build$colon$sass.log +6 -6
  342. package/components/form/.turbo/turbo-build$colon$version.log +1 -1
  343. package/components/form/.turbo/turbo-build.log +17 -18
  344. package/components/form/.turbo/turbo-bundler.log +4 -4
  345. package/components/form/.turbo/turbo-postCss$colon$component.log +1 -2
  346. package/components/form/.turbo/turbo-sass$colon$render.log +2 -2
  347. package/components/form/.turbo/turbo-types.log +1 -1
  348. package/components/form/README.md +18 -26
  349. package/components/form/demo/api.min.js +4 -4
  350. package/components/form/demo/index.min.js +4 -4
  351. package/components/form/dist/index.js +4 -4
  352. package/components/form/package.json +1 -1
  353. package/components/input/.turbo/turbo-build$colon$sass.log +66 -16
  354. package/components/input/.turbo/turbo-build$colon$version.log +1 -1
  355. package/components/input/.turbo/turbo-build.log +79 -32
  356. package/components/input/.turbo/turbo-bundler.log +4 -4
  357. package/components/input/.turbo/turbo-postCss$colon$component.log +1 -2
  358. package/components/input/.turbo/turbo-sass$colon$render.log +15 -9
  359. package/components/input/.turbo/turbo-types.log +1 -1
  360. package/components/input/README.md +18 -28
  361. package/components/input/demo/api.md +146 -311
  362. package/components/input/demo/api.min.js +365 -145
  363. package/components/input/demo/index.md +11 -61
  364. package/components/input/demo/index.min.js +365 -145
  365. package/components/input/dist/auro-input.d.ts.map +1 -1
  366. package/components/input/dist/base-input.d.ts +155 -84
  367. package/components/input/dist/base-input.d.ts.map +1 -1
  368. package/components/input/dist/index.js +365 -145
  369. package/components/input/dist/styles/mixins-css.d.ts +3 -0
  370. package/components/input/dist/styles/mixins-css.d.ts.map +1 -0
  371. package/components/input/package.json +1 -1
  372. package/components/input/src/auro-input.js +0 -1
  373. package/components/input/src/base-input.js +252 -85
  374. package/components/input/src/styles/borders.scss +3 -19
  375. package/components/input/src/styles/color.css +1 -2
  376. package/components/input/src/styles/color.scss +3 -10
  377. package/components/input/src/styles/input-css.js +1 -1
  378. package/components/input/src/styles/input.css +1 -1
  379. package/components/input/src/styles/input.scss +4 -1
  380. package/components/input/src/styles/label-css.js +1 -1
  381. package/components/input/src/styles/label.css +1 -1
  382. package/components/input/src/styles/label.scss +4 -7
  383. package/components/input/src/styles/mixins-css.js +2 -0
  384. package/components/input/src/styles/mixins.css +1 -0
  385. package/components/input/src/styles/mixins.scss +45 -0
  386. package/components/input/src/styles/notificationIcons-css.js +1 -1
  387. package/components/input/src/styles/notificationIcons.css +13 -12
  388. package/components/input/src/styles/notificationIcons.scss +17 -25
  389. package/components/input/src/styles/style-css.js +1 -1
  390. package/components/input/src/styles/style.css +15 -17
  391. package/components/input/src/styles/style.scss +0 -4
  392. package/components/menu/.turbo/turbo-build$colon$sass.log +9 -9
  393. package/components/menu/.turbo/turbo-build$colon$version.log +1 -1
  394. package/components/menu/.turbo/turbo-build.log +20 -21
  395. package/components/menu/.turbo/turbo-bundler.log +4 -4
  396. package/components/menu/.turbo/turbo-postCss$colon$component.log +1 -2
  397. package/components/menu/.turbo/turbo-sass$colon$render.log +6 -6
  398. package/components/menu/.turbo/turbo-types.log +1 -1
  399. package/components/menu/README.md +18 -26
  400. package/components/menu/demo/api.min.js +7 -7
  401. package/components/menu/demo/index.min.js +7 -7
  402. package/components/menu/dist/auro-menu.d.ts +1 -1
  403. package/components/menu/dist/index.js +7 -7
  404. package/components/menu/package.json +1 -1
  405. package/components/menu/src/auro-menu.js +1 -1
  406. package/components/radio/.turbo/turbo-build$colon$sass.log +13 -13
  407. package/components/radio/.turbo/turbo-build.log +23 -24
  408. package/components/radio/.turbo/turbo-bundler.log +4 -4
  409. package/components/radio/.turbo/turbo-postCss$colon$component.log +1 -2
  410. package/components/radio/.turbo/turbo-sass$colon$render.log +6 -6
  411. package/components/radio/.turbo/turbo-types.log +1 -1
  412. package/components/radio/README.md +18 -26
  413. package/components/radio/demo/api.md +3 -1
  414. package/components/radio/demo/api.min.js +111 -57
  415. package/components/radio/demo/index.min.js +111 -57
  416. package/components/radio/dist/index.js +111 -57
  417. package/components/radio/package.json +1 -1
  418. package/components/radio/src/auro-radio-group.js +1 -1
  419. package/components/select/.turbo/turbo-build$colon$sass.log +12 -12
  420. package/components/select/.turbo/turbo-build.log +30 -33
  421. package/components/select/.turbo/turbo-postCss$colon$component.log +1 -2
  422. package/components/select/.turbo/turbo-sass$colon$render.log +4 -4
  423. package/components/select/README.md +21 -42
  424. package/components/select/demo/api.md +45 -110
  425. package/components/select/demo/api.min.js +434 -279
  426. package/components/select/demo/index.md +101 -59
  427. package/components/select/demo/index.min.js +434 -275
  428. package/components/select/dist/auro-select.d.ts +64 -51
  429. package/components/select/dist/auro-select.d.ts.map +1 -1
  430. package/components/select/dist/dropdownVersion.d.ts +3 -0
  431. package/components/select/dist/dropdownVersion.d.ts.map +1 -0
  432. package/components/select/dist/index.js +429 -257
  433. package/components/select/package.json +3 -3
  434. package/components/select/src/auro-select.js +101 -119
  435. package/components/select/src/dropdownVersion.js +1 -0
  436. package/components/select/src/styles/style-css.js +1 -1
  437. package/components/select/src/styles/style.css +7 -0
  438. package/components/select/src/styles/style.scss +11 -1
  439. package/package.json +21 -21
  440. package/packages/build-tools/src/docProcessor.mjs +37 -8
  441. package/packages/form-validation/src/validation.js +104 -50
  442. package/packages/utils/package.json +12 -0
  443. package/packages/utils/src/iconUtil.js +25 -0
  444. package/packages/utils/src/index.js +1 -0
  445. package/turbo.json +8 -8
  446. package/.turbo/cache/013a48308b893dac-meta.json +0 -1
  447. package/.turbo/cache/013a48308b893dac.tar.zst +0 -0
  448. package/.turbo/cache/0663fcbb1d711029-meta.json +0 -1
  449. package/.turbo/cache/0663fcbb1d711029.tar.zst +0 -0
  450. package/.turbo/cache/07ca42419b9f050c-meta.json +0 -1
  451. package/.turbo/cache/07ca42419b9f050c.tar.zst +0 -0
  452. package/.turbo/cache/0a2b0a4df8a0443f-meta.json +0 -1
  453. package/.turbo/cache/0a2b0a4df8a0443f.tar.zst +0 -0
  454. package/.turbo/cache/0cea4c1f34f3683b-meta.json +0 -1
  455. package/.turbo/cache/0cea4c1f34f3683b.tar.zst +0 -0
  456. package/.turbo/cache/120c8e207aa1ba35-meta.json +0 -1
  457. package/.turbo/cache/120c8e207aa1ba35.tar.zst +0 -0
  458. package/.turbo/cache/141bb7d9a95e288b-meta.json +0 -1
  459. package/.turbo/cache/141bb7d9a95e288b.tar.zst +0 -0
  460. package/.turbo/cache/17259cf94d8f8925-meta.json +0 -1
  461. package/.turbo/cache/17259cf94d8f8925.tar.zst +0 -0
  462. package/.turbo/cache/17dd4bdef6550a07-meta.json +0 -1
  463. package/.turbo/cache/17dd4bdef6550a07.tar.zst +0 -0
  464. package/.turbo/cache/1c99a949ec63ab35-meta.json +0 -1
  465. package/.turbo/cache/1c99a949ec63ab35.tar.zst +0 -0
  466. package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
  467. package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
  468. package/.turbo/cache/257a7a26ea72dbc5-meta.json +0 -1
  469. package/.turbo/cache/257a7a26ea72dbc5.tar.zst +0 -0
  470. package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
  471. package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
  472. package/.turbo/cache/32c0b9995fb5f8dd-meta.json +0 -1
  473. package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
  474. package/.turbo/cache/3bf45120d0cc9bd8-meta.json +0 -1
  475. package/.turbo/cache/3bf45120d0cc9bd8.tar.zst +0 -0
  476. package/.turbo/cache/45035bf5c4147ccd-meta.json +0 -1
  477. package/.turbo/cache/45035bf5c4147ccd.tar.zst +0 -0
  478. package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
  479. package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
  480. package/.turbo/cache/56cb35d4c7473a23-meta.json +0 -1
  481. package/.turbo/cache/56cb35d4c7473a23.tar.zst +0 -0
  482. package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
  483. package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
  484. package/.turbo/cache/5f304c0f37ef25f3-meta.json +0 -1
  485. package/.turbo/cache/5f304c0f37ef25f3.tar.zst +0 -0
  486. package/.turbo/cache/626afdc67e0cb540-meta.json +0 -1
  487. package/.turbo/cache/626afdc67e0cb540.tar.zst +0 -0
  488. package/.turbo/cache/64de7a53e02db647-meta.json +0 -1
  489. package/.turbo/cache/64de7a53e02db647.tar.zst +0 -0
  490. package/.turbo/cache/691a74627ec57993-meta.json +0 -1
  491. package/.turbo/cache/691a74627ec57993.tar.zst +0 -0
  492. package/.turbo/cache/69aae513b7ec6c7d-meta.json +0 -1
  493. package/.turbo/cache/69aae513b7ec6c7d.tar.zst +0 -0
  494. package/.turbo/cache/6dd7058e6703cb35-meta.json +0 -1
  495. package/.turbo/cache/6dd7058e6703cb35.tar.zst +0 -0
  496. package/.turbo/cache/6ef81cf9a66f982a-meta.json +0 -1
  497. package/.turbo/cache/6ef81cf9a66f982a.tar.zst +0 -0
  498. package/.turbo/cache/73e9073a5274616d-meta.json +0 -1
  499. package/.turbo/cache/73e9073a5274616d.tar.zst +0 -0
  500. package/.turbo/cache/773edc0f83c8c5a5-meta.json +0 -1
  501. package/.turbo/cache/773edc0f83c8c5a5.tar.zst +0 -0
  502. package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
  503. package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
  504. package/.turbo/cache/786a822763403879-meta.json +0 -1
  505. package/.turbo/cache/786a822763403879.tar.zst +0 -0
  506. package/.turbo/cache/80b5d974184a01df-meta.json +0 -1
  507. package/.turbo/cache/80b5d974184a01df.tar.zst +0 -0
  508. package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
  509. package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
  510. package/.turbo/cache/8954c6073396fadd-meta.json +0 -1
  511. package/.turbo/cache/8954c6073396fadd.tar.zst +0 -0
  512. package/.turbo/cache/9154e8fe6ab767ea-meta.json +0 -1
  513. package/.turbo/cache/9154e8fe6ab767ea.tar.zst +0 -0
  514. package/.turbo/cache/92daa6d7c389d548-meta.json +0 -1
  515. package/.turbo/cache/92daa6d7c389d548.tar.zst +0 -0
  516. package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
  517. package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
  518. package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
  519. package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
  520. package/.turbo/cache/a49cc58242467fdc-meta.json +0 -1
  521. package/.turbo/cache/a49cc58242467fdc.tar.zst +0 -0
  522. package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
  523. package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
  524. package/.turbo/cache/a77bc920ea508bb8-meta.json +0 -1
  525. package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
  526. package/.turbo/cache/af061e7a077a9ba5-meta.json +0 -1
  527. package/.turbo/cache/af061e7a077a9ba5.tar.zst +0 -0
  528. package/.turbo/cache/b50f1b283b4b81cd-meta.json +0 -1
  529. package/.turbo/cache/b50f1b283b4b81cd.tar.zst +0 -0
  530. package/.turbo/cache/b54fc4f664a7a5a0-meta.json +0 -1
  531. package/.turbo/cache/b54fc4f664a7a5a0.tar.zst +0 -0
  532. package/.turbo/cache/ba4418918621fbcd-meta.json +0 -1
  533. package/.turbo/cache/ba4418918621fbcd.tar.zst +0 -0
  534. package/.turbo/cache/bb8b41cd0ade3986-meta.json +0 -1
  535. package/.turbo/cache/bb8b41cd0ade3986.tar.zst +0 -0
  536. package/.turbo/cache/be7c23c37b8ec74b-meta.json +0 -1
  537. package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
  538. package/.turbo/cache/bf85bc040b7e64db-meta.json +0 -1
  539. package/.turbo/cache/bf85bc040b7e64db.tar.zst +0 -0
  540. package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +0 -1
  541. package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
  542. package/.turbo/cache/cc81de9c0b452a7c-meta.json +0 -1
  543. package/.turbo/cache/cc81de9c0b452a7c.tar.zst +0 -0
  544. package/.turbo/cache/cd5f6987783fb56d-meta.json +0 -1
  545. package/.turbo/cache/cd5f6987783fb56d.tar.zst +0 -0
  546. package/.turbo/cache/cd845bb6102c589a-meta.json +0 -1
  547. package/.turbo/cache/cd845bb6102c589a.tar.zst +0 -0
  548. package/.turbo/cache/ce67b6522dd09e64-meta.json +0 -1
  549. package/.turbo/cache/ce67b6522dd09e64.tar.zst +0 -0
  550. package/.turbo/cache/d7a47b77deb3d9a4-meta.json +0 -1
  551. package/.turbo/cache/d7a47b77deb3d9a4.tar.zst +0 -0
  552. package/.turbo/cache/dad1301ac69bcb85-meta.json +0 -1
  553. package/.turbo/cache/dad1301ac69bcb85.tar.zst +0 -0
  554. package/.turbo/cache/e992dab20aeefbaf-meta.json +0 -1
  555. package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
  556. package/.turbo/cache/fa132b5b5f0e75f8-meta.json +0 -1
  557. package/.turbo/cache/fa132b5b5f0e75f8.tar.zst +0 -0
  558. package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
  559. package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
  560. package/.turbo/cache/ff58f630c9d69af4-meta.json +0 -1
  561. package/.turbo/cache/ff58f630c9d69af4.tar.zst +0 -0
@@ -3,33 +3,46 @@
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&&(undefined===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$=true,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&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$8.get(s)),undefined===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+"",undefined,s$5),i$b=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$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;undefined!==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:true,type:String,converter:u$5,reflect:false,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=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==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:true,enumerable:true}}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(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$3("finalized")))return;if(this.finalized=true,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(undefined!==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);undefined!==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 undefined!==s&&i.push(c$5(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==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(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==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(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==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(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$3)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}};b$1.elementStyles=[],b$1.shadowRootOptions={mode:"open"},b$1[d$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}):undefined,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 undefined!==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:undefined!==u[1]?c=_$1:undefined!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$1):undefined!==u[3]&&(c=m$1):c===m$1?">"===u[0]?(c=r??f$2,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===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=undefined);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=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==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=undefined,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,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;undefined!==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) undefined!==s&&(undefined!==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=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==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):undefined!==t._$litType$?this.$(t):undefined!==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):(undefined===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 undefined===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$4(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$4()),this.O(l$4()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===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=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===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?undefined: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=undefined,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(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$4(),t),t,undefined,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=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};r$4._$litElement$=true,r$4["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r$4});const i$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(undefined===this.st){this.st=new Set,undefined!==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
29
42
  * Copyright 2020 Google LLC
30
43
  * SPDX-License-Identifier: BSD-3-Clause
31
44
  */
32
- const a$3=Symbol.for(""),o$5=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$5(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);
45
+ const a$3=Symbol.for(""),o$5=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(undefined!==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=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$5(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(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);
33
46
 
34
47
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
35
48
  // See LICENSE in the project root for license information.
@@ -135,30 +148,87 @@ class AuroFormValidation {
135
148
  }
136
149
 
137
150
  /**
138
- * Determines the validity state of the element based on the common attribute restrictions (pattern).
139
- * @private
140
- * @param {object} elem - HTML element to validate.
151
+ * Validates the attributes of a given element based on predefined validation rules.
152
+ *
153
+ * @param {HTMLElement} elem - The element to be validated.
141
154
  * @returns {void}
155
+ *
156
+ * @example
157
+ * // Assuming `inputElement` is a reference to an input element in the DOM
158
+ * validateElementAttributes(inputElement);
159
+ *
160
+ * The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
161
+ * If a validation rule is violated, it sets the element's validity state and error message accordingly.
162
+ *
163
+ * Validation rules:
164
+ * - input:
165
+ * - length:
166
+ * - tooShort: Checks if the value length is less than the minimum length.
167
+ * - tooLong: Checks if the value length exceeds the maximum length.
168
+ * - pattern:
169
+ * - patternMismatch: Checks if the value does not match the specified pattern.
170
+ * - counter:
171
+ * - range:
172
+ * - rangeOverflow: Checks if the value exceeds the maximum value.
173
+ * - rangeUnderflow: Checks if the value is less than the minimum value.
142
174
  */
143
- validateAttributes(elem) {
144
- if (elem.pattern) {
145
- const pattern = new RegExp(`^${elem.pattern}$`, 'u');
146
-
147
- if (!pattern.test(elem.value)) {
148
- elem.validity = 'badInput';
149
- elem.setCustomValidity = elem.setCustomValidityBadInput || '';
175
+ validateElementAttributes(elem) {
176
+ const validationRules = {
177
+ input: {
178
+ length: [
179
+ {
180
+ check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
181
+ validity: 'tooShort',
182
+ message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
183
+ },
184
+ {
185
+ check: (e) => e.value?.length > e.maxLength,
186
+ validity: 'tooLong',
187
+ message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
188
+ }
189
+ ],
190
+ pattern: [
191
+ {
192
+ check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
193
+ validity: 'patternMismatch',
194
+ message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
195
+ }
196
+ ]
197
+ },
198
+ counter: {
199
+ range: [
200
+ {
201
+ check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
202
+ validity: 'rangeOverflow',
203
+ message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
204
+ },
205
+ {
206
+ check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
207
+ validity: 'rangeUnderflow',
208
+ message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
209
+ }
210
+ ]
150
211
  }
212
+ };
213
+
214
+ let elementType;
215
+ if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
216
+ elementType = 'input';
217
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
218
+ elementType = 'counter';
151
219
  }
152
-
153
- // Length > 0 is required to prevent the error message from showing when the input is empty
154
- if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
155
- elem.validity = 'tooShort';
156
- elem.setCustomValidity = elem.setCustomValidityTooShort || '';
157
- }
158
220
 
159
- if (elem.value?.length > elem.maxLength) {
160
- elem.validity = 'tooLong';
161
- elem.setCustomValidity = elem.setCustomValidityTooLong || '';
221
+ if (elementType) {
222
+ const rules = validationRules[elementType];
223
+
224
+ if (rules) {
225
+ Object.values(rules).flat().forEach(rule => {
226
+ if (rule.check(elem)) {
227
+ elem.validity = rule.validity;
228
+ elem.errorMessage = rule.message(elem);
229
+ }
230
+ });
231
+ }
162
232
  }
163
233
  }
164
234
 
@@ -174,33 +244,32 @@ class AuroFormValidation {
174
244
  const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
175
245
 
176
246
  if (!elem.value.match(emailRegex)) {
177
- elem.validity = 'badInput';
178
- elem.setCustomValidity = elem.setCustomValidityForType || '';
247
+ elem.validity = 'patternMismatch';
248
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
179
249
  }
180
250
  } else if (elem.type === 'credit-card') {
181
251
  if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
182
252
  elem.validity = 'tooShort';
183
- elem.setCustomValidity = elem.setCustomValidityForType || '';
253
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
184
254
  }
185
255
  } else if (elem.type === 'number') {
186
256
  if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
187
257
  elem.validity = 'rangeOverflow';
188
- elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
258
+ elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
189
259
  }
190
260
 
191
- if (elem.min !== undefined && Number(elem.min) > Number(elem.value)) {
261
+ if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
192
262
  elem.validity = 'rangeUnderflow';
193
- elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeUnderflow') || '';
263
+ elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
194
264
  }
195
-
196
265
  } else if (elem.type === 'month-day-year' ||
197
266
  elem.type === 'month-year' ||
198
267
  elem.type === 'month-fullYear' ||
199
268
  elem.type === 'year-month-day'
200
269
  ) {
201
- if (elem.value && elem.value.length > 0 && elem.value.length < elem.dateStrLength) {
270
+ if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
202
271
  elem.validity = 'tooShort';
203
- elem.setCustomValidity = elem.setCustomValidityForType || '';
272
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
204
273
  } else {
205
274
  const valueDate = new Date(elem.value);
206
275
 
@@ -210,7 +279,7 @@ class AuroFormValidation {
210
279
 
211
280
  if (valueDate > maxDate) {
212
281
  elem.validity = 'rangeOverflow';
213
- elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
282
+ elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
214
283
  }
215
284
  }
216
285
 
@@ -220,7 +289,7 @@ class AuroFormValidation {
220
289
 
221
290
  if (valueDate < minDate) {
222
291
  elem.validity = 'rangeUnderflow';
223
- elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeUnderflow') || '';
292
+ elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
224
293
  }
225
294
  }
226
295
  }
@@ -243,10 +312,10 @@ class AuroFormValidation {
243
312
 
244
313
  if (elem.hasAttribute('error')) {
245
314
  elem.validity = 'customError';
246
- elem.setCustomValidity = elem.error;
315
+ elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
247
316
  } else if (validationShouldRun) {
248
317
  elem.validity = 'valid';
249
- elem.setCustomValidity = '';
318
+ elem.errorMessage = '';
250
319
 
251
320
  /**
252
321
  * Only validate once we interact with the datepicker
@@ -258,7 +327,7 @@ class AuroFormValidation {
258
327
  let hasValue = elem.value && elem.value.length > 0;
259
328
 
260
329
  // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
261
- if (this.auroInputElements && this.auroInputElements.length === 2) {
330
+ if (this.auroInputElements?.length === 2) {
262
331
  if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
263
332
  hasValue = false;
264
333
  }
@@ -266,31 +335,29 @@ class AuroFormValidation {
266
335
 
267
336
  if (!hasValue && elem.required) {
268
337
  elem.validity = 'valueMissing';
269
- elem.setCustomValidity = elem.setCustomValidityValueMissing || '';
338
+ elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
270
339
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
271
340
  this.validateType(elem);
272
- this.validateAttributes(elem);
341
+ this.validateElementAttributes(elem);
342
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
343
+ this.validateElementAttributes(elem);
273
344
  }
274
345
  }
275
346
 
276
- if (this.auroInputElements && this.auroInputElements.length > 0) {
347
+ if (this.auroInputElements?.length > 0) {
277
348
  elem.validity = this.auroInputElements[0].validity;
278
- elem.setCustomValidity = this.auroInputElements[0].setCustomValidity;
349
+ elem.errorMessage = this.auroInputElements[0].errorMessage;
279
350
 
280
- if (elem.validity === 'valid') {
281
- if (this.auroInputElements.length > 1) {
282
- elem.validity = this.auroInputElements[1].validity;
283
- elem.setCustomValidity = this.auroInputElements[1].setCustomValidity;
284
- }
351
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
352
+ elem.validity = this.auroInputElements[1].validity;
353
+ elem.errorMessage = this.auroInputElements[1].errorMessage;
285
354
  }
286
355
  }
287
356
 
288
357
  if (validationShouldRun || elem.hasAttribute('error')) {
289
- if (elem.validity && elem.validity !== 'valid') {
290
- // Use the validity message override if it is declared
291
- if (elem.ValidityMessageOverride) {
292
- elem.setCustomValidity = elem.ValidityMessageOverride;
293
- }
358
+ // Use the validity message override if it is declared
359
+ if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
360
+ elem.errorMessage = elem.ValidityMessageOverride;
294
361
  }
295
362
 
296
363
  this.getErrorMessage(elem);
@@ -336,18 +403,18 @@ class AuroFormValidation {
336
403
  if (elem.validity !== 'valid') {
337
404
  if (elem.setCustomValidity) {
338
405
  elem.errorMessage = elem.setCustomValidity;
339
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
406
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
340
407
  const input = elem.renderRoot.querySelector('input');
341
408
 
342
409
  if (input.validationMessage.length > 0) {
343
410
  elem.errorMessage = input.validationMessage;
344
411
  }
345
- } else if (this.inputElements && this.inputElements.length > 0) {
412
+ } else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
346
413
  const firstInput = this.inputElements[0];
347
414
 
348
415
  if (firstInput.validationMessage.length > 0) {
349
416
  elem.errorMessage = firstInput.validationMessage;
350
- } else if (this.inputElements.length === 2) {
417
+ } else if (this.inputElements?.length === 2) {
351
418
  const secondInput = this.inputElements[1];
352
419
 
353
420
  if (secondInput.validationMessage.length > 0) {
@@ -406,33 +473,33 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
406
473
  * Copyright 2017 Google LLC
407
474
  * SPDX-License-Identifier: BSD-3-Clause
408
475
  */
409
- const t$2=globalThis,i$5=t$2.trustedTypes,s$2=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$4="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$4="?"+h$1,n$3=`<${o$4}>`,r$3=document,l$2=()=>r$3.createComment(""),c$2=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$2=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y$1(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$3.createTreeWalker(r$3,129);function P(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$2?s$2.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$1;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$1?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f$1,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p$1):c===g||c===p$1?c=m:c===v||c===_?c=f$1:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1?s+n$3:d>=0?(o.push(a),s.slice(0,d)+e$4+s.slice(d)+h$1+x):s+h$1+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$4)){const i=v[a++],s=r.getAttribute(t).split(h$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h$1),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$4)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1,t+1));)d.push({type:7,index:c}),t+=h$1.length-1;}c++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}}function S$1(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$2(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$1(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$3).importNode(i,!0);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$3,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!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$1(this,t,i),c$2(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$2(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c$2(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a$2(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$2()),this.O(l$2()),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));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=S$1(this,t,i,0),o=!c$2(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$1(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$2(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$1(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1(this,t);}}const j=t$2.litHtmlPolyfillSupport;j?.(N,R),(t$2.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$2(),t),t,void 0,s??{});}return h._$AI(t),h};
476
+ const t$2=globalThis,i$5=t$2.trustedTypes,s$2=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$4="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$4="?"+h$1,n$3=`<${o$4}>`,r$3=document,l$2=()=>r$3.createComment(""),c$2=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$2=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y$1(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$3.createTreeWalker(r$3,129);function P(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$2?s$2.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$1;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$1?"!--"===u[1]?c=v:undefined!==u[1]?c=_:undefined!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):undefined!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f$1,d=-1):undefined===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=undefined===u[3]?m:'"'===u[3]?g:p$1):c===g||c===p$1?c=m:c===v||c===_?c=f$1:(c=m,r=undefined);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f$1?s+n$3:d>=0?(o.push(a),s.slice(0,d)+e$4+s.slice(d)+h$1+x):s+h$1+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$4)){const i=v[a++],s=r.getAttribute(t).split(h$1),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h$1)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h$1),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$4)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$1,t+1));)d.push({type:7,index:c}),t+=h$1.length-1;}c++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}}function S$1(t,i,s=t,e){if(i===T)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c$2(i)?undefined:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),undefined===o?h=undefined:(h=new o(t),h._$AT(t,s,e)),undefined!==e?(s._$Co??=[])[e]=h:s._$Cl=h),undefined!==h&&(i=S$1(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=undefined,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$3).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;undefined!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$3,e}p(t){let i=0;for(const s of this._$AV) undefined!==s&&(undefined!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=undefined,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return undefined!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1(this,t,i),c$2(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$2(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c$2(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(undefined===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return undefined===i&&A.set(t.strings,i=new N(t)),i}k(t){a$2(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$2()),this.O(l$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ undefined===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=undefined,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(undefined===h)t=S$1(this,t,i,0),o=!c$2(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$1(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$2(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?undefined:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$1(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=undefined,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1(this,t);}}const j=t$2.litHtmlPolyfillSupport;j?.(N,R),(t$2.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$2(),t),t,undefined,s??{});}return h._$AI(t),h};
410
477
 
411
478
  /**
412
479
  * @license
413
480
  * Copyright 2020 Google LLC
414
481
  * SPDX-License-Identifier: BSD-3-Clause
415
482
  */
416
- const a$1=Symbol.for(""),o$3=t=>{if(t?.r===a$1)return t?._$litStatic$},s$1=t=>({_$litStatic$:t,r:a$1}),i$4=(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$1}),l$1=new Map,n$2=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$3(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$1.get(t))&&(n.raw=n,l$1.set(t,r=n)),e=u;}return t(r,...e)},u$1=n$2(x);
483
+ const a$1=Symbol.for(""),o$3=t=>{if(t?.r===a$1)return t?._$litStatic$},s$1=t=>({_$litStatic$:t,r:a$1}),i$4=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(undefined!==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$1}),l$1=new Map,n$2=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$3(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l$1.get(t))&&(n.raw=n,l$1.set(t,r=n)),e=u;}return t(r,...e)},u$1=n$2(x);
417
484
 
418
485
  /**
419
486
  * @license
420
487
  * Copyright 2019 Google LLC
421
488
  * SPDX-License-Identifier: BSD-3-Clause
422
489
  */
423
- const t$1=globalThis,e$3=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o$2=new WeakMap;let n$1 = class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)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$3&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$2.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new n$1("string"==typeof t?t:t+"",void 0,s),i$3=(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$1(o,t,s)},S=(s,o)=>{if(e$3)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1=e$3?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
490
+ const t$1=globalThis,e$3=t$1.ShadowRoot&&(undefined===t$1.ShadyCSS||t$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o$2=new WeakMap;let n$1 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s)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$3&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$2.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$2.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new n$1("string"==typeof t?t:t+"",undefined,s),i$3=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$1(o,t,s)},S=(s,o)=>{if(e$3)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$1.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1=e$3?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
424
491
 
425
492
  /**
426
493
  * @license
427
494
  * Copyright 2017 Google LLC
428
495
  * SPDX-License-Identifier: BSD-3-Clause
429
- */const{is:i$2,defineProperty:e$2,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o$1,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l: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=(t,s)=>!i$2(t,s),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){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$2(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...h(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$1(s));}else void 0!==s&&i.push(c$1(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(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).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;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)(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.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d("elementProperties")]=new Map,b[d("finalized")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push("2.0.4");
496
+ */const{is:i$2,defineProperty:e$2,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o$1,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l: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=(t,s)=>!i$2(t,s),y={attribute:true,type:String,converter:u,reflect:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$2(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...h(t),...o$1(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(undefined!==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);undefined!==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$1(s));}else undefined!==s&&i.push(c$1(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?undefined:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():undefined}constructor(){super(),this._$Ep=undefined,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),undefined!==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(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u).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(undefined!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r="function"==typeof t.converter?{fromAttribute:t.converter}:undefined!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(undefined!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=undefined;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t) true!==i.wrapped||this._$AL.has(s)||undefined===this[s]||this.P(s,this[s],i);}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=false,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d("elementProperties")]=new Map,b[d("finalized")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push("2.0.4");
430
497
 
431
498
  /**
432
499
  * @license
433
500
  * Copyright 2017 Google LLC
434
501
  * SPDX-License-Identifier: BSD-3-Clause
435
- */class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return T}}r._$litElement$=!0,r["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:r});const i$1=globalThis.litElementPolyfillSupport;i$1?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
502
+ */class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=undefined;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}r._$litElement$=true,r["finalized"]=true,globalThis.litElementHydrateSupport?.({LitElement:r});const i$1=globalThis.litElementPolyfillSupport;i$1?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
436
503
 
437
504
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
438
505
  // See LICENSE in the project root for license information.
@@ -552,7 +619,7 @@ function getAlignmentAxis(placement) {
552
619
  return getOppositeAxis(getSideAxis(placement));
553
620
  }
554
621
  function getAlignmentSides(placement, rects, rtl) {
555
- if (rtl === void 0) {
622
+ if (rtl === undefined) {
556
623
  rtl = false;
557
624
  }
558
625
  const alignment = getAlignment(placement);
@@ -709,7 +776,7 @@ const computePosition$1 = async (reference, floating, config) => {
709
776
  platform
710
777
  } = config;
711
778
  const validMiddleware = middleware.filter(Boolean);
712
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
779
+ const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(floating));
713
780
  let rects = await platform.getElementRects({
714
781
  reference,
715
782
  floating,
@@ -795,7 +862,7 @@ const computePosition$1 = async (reference, floating, config) => {
795
862
  */
796
863
  async function detectOverflow(state, options) {
797
864
  var _await$platform$isEle;
798
- if (options === void 0) {
865
+ if (options === undefined) {
799
866
  options = {};
800
867
  }
801
868
  const {
@@ -817,7 +884,7 @@ async function detectOverflow(state, options) {
817
884
  const altContext = elementContext === 'floating' ? 'reference' : 'floating';
818
885
  const element = elements[altBoundary ? altContext : elementContext];
819
886
  const clippingClientRect = rectToClientRect(await platform.getClippingRect({
820
- element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
887
+ element: ((_await$platform$isEle = await (platform.isElement == null ? undefined : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? undefined : platform.getDocumentElement(elements.floating))),
821
888
  boundary,
822
889
  rootBoundary,
823
890
  strategy
@@ -828,8 +895,8 @@ async function detectOverflow(state, options) {
828
895
  width: rects.floating.width,
829
896
  height: rects.floating.height
830
897
  } : rects.reference;
831
- const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
832
- const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
898
+ const offsetParent = await (platform.getOffsetParent == null ? undefined : platform.getOffsetParent(elements.floating));
899
+ const offsetScale = (await (platform.isElement == null ? undefined : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? undefined : platform.getScale(offsetParent))) || {
833
900
  x: 1,
834
901
  y: 1
835
902
  } : {
@@ -866,7 +933,7 @@ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
866
933
  * @see https://floating-ui.com/docs/autoPlacement
867
934
  */
868
935
  const autoPlacement$1 = function (options) {
869
- if (options === void 0) {
936
+ if (options === undefined) {
870
937
  options = {};
871
938
  }
872
939
  return {
@@ -890,12 +957,12 @@ const autoPlacement$1 = function (options) {
890
957
  } = evaluate(options, state);
891
958
  const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
892
959
  const overflow = await detectOverflow(state, detectOverflowOptions);
893
- const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
960
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP.index) || 0;
894
961
  const currentPlacement = placements$1[currentIndex];
895
962
  if (currentPlacement == null) {
896
963
  return {};
897
964
  }
898
- const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
965
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating)));
899
966
 
900
967
  // Make `computeCoords` start from the right place.
901
968
  if (placement !== currentPlacement) {
@@ -906,7 +973,7 @@ const autoPlacement$1 = function (options) {
906
973
  };
907
974
  }
908
975
  const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
909
- const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
976
+ const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? undefined : _middlewareData$autoP2.overflows) || []), {
910
977
  placement: currentPlacement,
911
978
  overflows: currentOverflows
912
979
  }];
@@ -936,7 +1003,7 @@ const autoPlacement$1 = function (options) {
936
1003
  // Aligned placements should not check their opposite crossAxis
937
1004
  // side.
938
1005
  getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
939
- const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
1006
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? undefined : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
940
1007
  if (resetPlacement !== placement) {
941
1008
  return {
942
1009
  data: {
@@ -960,7 +1027,7 @@ const autoPlacement$1 = function (options) {
960
1027
  * @see https://floating-ui.com/docs/flip
961
1028
  */
962
1029
  const flip$1 = function (options) {
963
- if (options === void 0) {
1030
+ if (options === undefined) {
964
1031
  options = {};
965
1032
  }
966
1033
  return {
@@ -996,7 +1063,7 @@ const flip$1 = function (options) {
996
1063
  const side = getSide(placement);
997
1064
  const initialSideAxis = getSideAxis(initialPlacement);
998
1065
  const isBasePlacement = getSide(initialPlacement) === initialPlacement;
999
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
1066
+ const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
1000
1067
  const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
1001
1068
  const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
1002
1069
  if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
@@ -1005,7 +1072,7 @@ const flip$1 = function (options) {
1005
1072
  const placements = [initialPlacement, ...fallbackPlacements];
1006
1073
  const overflow = await detectOverflow(state, detectOverflowOptions);
1007
1074
  const overflows = [];
1008
- let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
1075
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? undefined : _middlewareData$flip.overflows) || [];
1009
1076
  if (checkMainAxis) {
1010
1077
  overflows.push(overflow[side]);
1011
1078
  }
@@ -1021,7 +1088,7 @@ const flip$1 = function (options) {
1021
1088
  // One or more sides is overflowing.
1022
1089
  if (!overflows.every(side => side <= 0)) {
1023
1090
  var _middlewareData$flip2, _overflowsData$filter;
1024
- const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
1091
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? undefined : _middlewareData$flip2.index) || 0) + 1;
1025
1092
  const nextPlacement = placements[nextIndex];
1026
1093
  if (nextPlacement) {
1027
1094
  // Try next placement and re-run the lifecycle.
@@ -1038,7 +1105,7 @@ const flip$1 = function (options) {
1038
1105
 
1039
1106
  // First, find the candidates that fit on the mainAxis side of overflow,
1040
1107
  // then find the placement that fits the best on the main crossAxis side.
1041
- let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
1108
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? undefined : _overflowsData$filter.placement;
1042
1109
 
1043
1110
  // Otherwise fallback.
1044
1111
  if (!resetPlacement) {
@@ -1055,7 +1122,7 @@ const flip$1 = function (options) {
1055
1122
  currentSideAxis === 'y';
1056
1123
  }
1057
1124
  return true;
1058
- }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
1125
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? undefined : _overflowsData$filter2[0];
1059
1126
  if (placement) {
1060
1127
  resetPlacement = placement;
1061
1128
  }
@@ -1088,7 +1155,7 @@ async function convertValueToCoords(state, options) {
1088
1155
  platform,
1089
1156
  elements
1090
1157
  } = state;
1091
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
1158
+ const rtl = await (platform.isRTL == null ? undefined : platform.isRTL(elements.floating));
1092
1159
  const side = getSide(placement);
1093
1160
  const alignment = getAlignment(placement);
1094
1161
  const isVertical = getSideAxis(placement) === 'y';
@@ -1130,7 +1197,7 @@ async function convertValueToCoords(state, options) {
1130
1197
  * @see https://floating-ui.com/docs/offset
1131
1198
  */
1132
1199
  const offset$1 = function (options) {
1133
- if (options === void 0) {
1200
+ if (options === undefined) {
1134
1201
  options = 0;
1135
1202
  }
1136
1203
  return {
@@ -1148,7 +1215,7 @@ const offset$1 = function (options) {
1148
1215
 
1149
1216
  // If the placement is the same and the arrow caused an alignment offset
1150
1217
  // then we don't need to change the positioning coordinates.
1151
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1218
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? undefined : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
1152
1219
  return {};
1153
1220
  }
1154
1221
  return {
@@ -1177,11 +1244,11 @@ function getNodeName(node) {
1177
1244
  }
1178
1245
  function getWindow(node) {
1179
1246
  var _node$ownerDocument;
1180
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1247
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? undefined : _node$ownerDocument.defaultView) || window;
1181
1248
  }
1182
1249
  function getDocumentElement(node) {
1183
1250
  var _ref;
1184
- return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
1251
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? undefined : _ref.documentElement;
1185
1252
  }
1186
1253
  function isNode(value) {
1187
1254
  if (!hasWindow()) {
@@ -1296,14 +1363,14 @@ function getNearestOverflowAncestor(node) {
1296
1363
  }
1297
1364
  function getOverflowAncestors(node, list, traverseIframes) {
1298
1365
  var _node$ownerDocument2;
1299
- if (list === void 0) {
1366
+ if (list === undefined) {
1300
1367
  list = [];
1301
1368
  }
1302
- if (traverseIframes === void 0) {
1369
+ if (traverseIframes === undefined) {
1303
1370
  traverseIframes = true;
1304
1371
  }
1305
1372
  const scrollableAncestor = getNearestOverflowAncestor(node);
1306
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1373
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? undefined : _node$ownerDocument2.body);
1307
1374
  const win = getWindow(scrollableAncestor);
1308
1375
  if (isBody) {
1309
1376
  const frameElement = getFrameElement(win);
@@ -1380,7 +1447,7 @@ function getVisualOffsets(element) {
1380
1447
  };
1381
1448
  }
1382
1449
  function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1383
- if (isFixed === void 0) {
1450
+ if (isFixed === undefined) {
1384
1451
  isFixed = false;
1385
1452
  }
1386
1453
  if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
@@ -1390,10 +1457,10 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1390
1457
  }
1391
1458
 
1392
1459
  function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1393
- if (includeScale === void 0) {
1460
+ if (includeScale === undefined) {
1394
1461
  includeScale = false;
1395
1462
  }
1396
- if (isFixedStrategy === void 0) {
1463
+ if (isFixedStrategy === undefined) {
1397
1464
  isFixedStrategy = false;
1398
1465
  }
1399
1466
  const clientRect = element.getBoundingClientRect();
@@ -1453,7 +1520,7 @@ function getWindowScrollBarX(element, rect) {
1453
1520
  }
1454
1521
 
1455
1522
  function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
1456
- if (ignoreScrollbarX === void 0) {
1523
+ if (ignoreScrollbarX === undefined) {
1457
1524
  ignoreScrollbarX = false;
1458
1525
  }
1459
1526
  const htmlRect = documentElement.getBoundingClientRect();
@@ -1803,10 +1870,10 @@ function observeMove(element, onMove) {
1803
1870
  io = null;
1804
1871
  }
1805
1872
  function refresh(skip, threshold) {
1806
- if (skip === void 0) {
1873
+ if (skip === undefined) {
1807
1874
  skip = false;
1808
1875
  }
1809
- if (threshold === void 0) {
1876
+ if (threshold === undefined) {
1810
1877
  threshold = 1;
1811
1878
  }
1812
1879
  cleanup();
@@ -1877,7 +1944,7 @@ function observeMove(element, onMove) {
1877
1944
  * @see https://floating-ui.com/docs/autoUpdate
1878
1945
  */
1879
1946
  function autoUpdate(reference, floating, update, options) {
1880
- if (options === void 0) {
1947
+ if (options === undefined) {
1881
1948
  options = {};
1882
1949
  }
1883
1950
  const {
@@ -2093,7 +2160,7 @@ class AuroFloatingUI {
2093
2160
  // Compute the position of the bib
2094
2161
  computePosition(this.element.trigger, this.element.bib, {
2095
2162
  placement: this.element.floaterConfig.placement || 'bottom',
2096
- middleware: middleware || []
2163
+ middleware: middleware
2097
2164
  }).then(({x, y}) => { // eslint-disable-line id-length
2098
2165
  Object.assign(this.element.bib.style, {
2099
2166
  left: `${x}px`,
@@ -2437,7 +2504,7 @@ const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e
2437
2504
  * @license
2438
2505
  * Copyright 2018 Google LLC
2439
2506
  * SPDX-License-Identifier: BSD-3-Clause
2440
- */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}});
2507
+ */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(undefined===this.st){this.st=new Set,undefined!==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}});
2441
2508
 
2442
2509
  /**
2443
2510
  * @license
@@ -2805,7 +2872,7 @@ class AuroIcon extends BaseIcon {
2805
2872
 
2806
2873
  var iconVersion = '6.1.2';
2807
2874
 
2808
- 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)}`;
2875
+ 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)}`;
2809
2876
 
2810
2877
  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)}`;
2811
2878
 
@@ -2829,9 +2896,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2829
2896
  ];
2830
2897
 
2831
2898
  /**
2832
- * @attr { Boolean } common - If declared, will apply all styles for the common theme.
2833
- * @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
2834
- * @attr { Boolean } inset - If declared, will apply extra padding to bib content.
2835
2899
  * @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.
2836
2900
  * @csspart bibContainer - Apply css to the bib container.
2837
2901
  */
@@ -2857,14 +2921,26 @@ class AuroDropdownBib extends r {
2857
2921
 
2858
2922
  static get properties() {
2859
2923
  return {
2924
+
2925
+ /**
2926
+ * If declared, will apply all styles for the common theme.
2927
+ */
2860
2928
  common: {
2861
2929
  type: Boolean,
2862
2930
  reflect: true
2863
2931
  },
2932
+
2933
+ /**
2934
+ * If declared, will apply extra padding to bib content.
2935
+ */
2864
2936
  inset: {
2865
2937
  type: Boolean,
2866
2938
  reflect: true
2867
2939
  },
2940
+
2941
+ /**
2942
+ * If declared, will apply border-radius to the bib.
2943
+ */
2868
2944
  rounded: {
2869
2945
  type: Boolean,
2870
2946
  reflect: true
@@ -2908,22 +2984,7 @@ if (!customElements.get("auro-dropdownbib")) {
2908
2984
 
2909
2985
 
2910
2986
  /**
2911
- * @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
2912
- * @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
2913
- * @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
2914
- * @attr { Boolean } disabled - If declared, the dropdown is not interactive.
2915
2987
  * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
2916
- * @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
2917
- * @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
2918
- * @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
2919
- * @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
2920
- * @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
2921
- * @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
2922
- * @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
2923
- * @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
2924
- * @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
2925
- * @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.
2926
- * @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
2927
2988
  * @slot - Default slot for the popover content.
2928
2989
  * @slot label - Defines the content of the label.
2929
2990
  * @slot helpText - Defines the content of the helpText.
@@ -2961,6 +3022,16 @@ class AuroDropdown extends r {
2961
3022
  this.tabIndex = 0;
2962
3023
  this.noToggle = false;
2963
3024
 
3025
+ /**
3026
+ * @private
3027
+ */
3028
+ this.hasTriggerContent = false;
3029
+
3030
+ /**
3031
+ * @private
3032
+ */
3033
+ this.triggerContentSlot = undefined;
3034
+
2964
3035
  /**
2965
3036
  * @private
2966
3037
  */
@@ -3007,89 +3078,166 @@ class AuroDropdown extends r {
3007
3078
  // function to define props used within the scope of this component
3008
3079
  static get properties() {
3009
3080
  return {
3081
+
3082
+ /**
3083
+ * If declared, applies a border around the trigger slot.
3084
+ */
3010
3085
  bordered: {
3011
3086
  type: Boolean,
3012
3087
  reflect: true
3013
3088
  },
3089
+
3090
+ /**
3091
+ * If declared, the dropdown displays a chevron on the right.
3092
+ * @attr {Boolean} chevron
3093
+ */
3014
3094
  chevron: {
3015
3095
  type: Boolean,
3016
3096
  reflect: true
3017
3097
  },
3018
- disabled: {
3098
+
3099
+ /**
3100
+ * If declared, the dropdown will be styled with the common theme.
3101
+ */
3102
+ common: {
3019
3103
  type: Boolean,
3020
3104
  reflect: true
3021
3105
  },
3022
- error: {
3106
+
3107
+ /**
3108
+ * If declared, the dropdown is not interactive.
3109
+ */
3110
+ disabled: {
3023
3111
  type: Boolean,
3024
3112
  reflect: true
3025
3113
  },
3026
- fluid: {
3114
+
3115
+ /**
3116
+ * @private
3117
+ */
3118
+ dropdownWidth: {
3119
+ type: Number
3120
+ },
3121
+
3122
+ /**
3123
+ * If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
3124
+ */
3125
+ error: {
3027
3126
  type: Boolean,
3028
- reflect: true,
3127
+ reflect: true
3029
3128
  },
3129
+
3130
+ /**
3131
+ * If declared, the bib will display when focus is applied to the trigger.
3132
+ */
3030
3133
  focusShow: {
3031
3134
  type: Boolean,
3032
3135
  reflect: true
3033
3136
  },
3034
- hoverToggle: {
3137
+
3138
+ /**
3139
+ * Makes the trigger to be full width of its parent container.
3140
+ */
3141
+ fluid: {
3035
3142
  type: Boolean,
3036
3143
  reflect: true
3037
3144
  },
3145
+
3146
+ /**
3147
+ * If declared, will apply padding around trigger slot content.
3148
+ */
3038
3149
  inset: {
3039
3150
  type: Boolean,
3040
3151
  reflect: true
3041
3152
  },
3042
- matchWidth: {
3153
+
3154
+ /**
3155
+ * If true, the dropdown bib is displayed.
3156
+ */
3157
+ isPopoverVisible: {
3158
+ type: Boolean
3159
+ },
3160
+
3161
+ /**
3162
+ * If declared, the trigger will toggle the dropdown on mouseover/mouseout.
3163
+ */
3164
+ hoverToggle: {
3043
3165
  type: Boolean,
3044
3166
  reflect: true
3045
3167
  },
3046
- rounded: {
3047
- type: Boolean,
3168
+
3169
+ /**
3170
+ * @private
3171
+ */
3172
+ hasTriggerContent: {
3173
+ type: Boolean
3174
+ },
3175
+
3176
+ /**
3177
+ * 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.
3178
+ */
3179
+ mobileFullscreenBreakpoint: {
3180
+ type: String,
3048
3181
  reflect: true
3049
3182
  },
3050
- common: {
3183
+
3184
+ /**
3185
+ * If declared, the popover and trigger will be set to the same width.
3186
+ */
3187
+ matchWidth: {
3051
3188
  type: Boolean,
3052
3189
  reflect: true
3053
3190
  },
3054
- noToggle: {
3191
+
3192
+ /**
3193
+ * If declared, the dropdown will not hide when moving focus outside the element.
3194
+ */
3195
+ noHideOnThisFocusLoss: {
3055
3196
  type: Boolean,
3056
3197
  reflect: true
3057
3198
  },
3058
- noHideOnThisFocusLoss: {
3199
+
3200
+ /**
3201
+ * If declared, the trigger will only show the dropdown bib.
3202
+ */
3203
+ noToggle: {
3059
3204
  type: Boolean,
3060
3205
  reflect: true
3061
3206
  },
3062
- isPopoverVisible: { type: Boolean },
3207
+
3063
3208
  onSlotChange: {
3064
3209
  type: Function,
3065
3210
  reflect: false
3066
3211
  },
3067
- mobileFullscreenBreakpoint: {
3068
- type: String,
3069
- reflect: true,
3070
- },
3071
3212
 
3072
3213
  /**
3073
3214
  * @private
3074
3215
  */
3075
- dropdownWidth: { type: Number },
3216
+ placement: {
3217
+ type: String
3218
+ },
3076
3219
 
3077
3220
  /**
3078
- * @private
3221
+ * If declared, will apply border-radius to trigger and default slots.
3079
3222
  */
3080
- placement: { type: String },
3223
+ rounded: {
3224
+ type: Boolean,
3225
+ reflect: true
3226
+ },
3081
3227
 
3082
3228
  /**
3083
3229
  * @private
3084
3230
  */
3085
- tabIndex: { type: Number }
3231
+ tabIndex: {
3232
+ type: Number
3233
+ }
3086
3234
  };
3087
3235
  }
3088
3236
 
3089
3237
  static get styles() {
3090
3238
  return [
3091
- styleCss$1,
3092
3239
  colorCss$1,
3240
+ styleCss$1,
3093
3241
  tokensCss$2
3094
3242
  ];
3095
3243
  }
@@ -3120,6 +3268,12 @@ class AuroDropdown extends r {
3120
3268
  if (changedProperties.has('mobileFullscreenBreakpoint')) {
3121
3269
  this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
3122
3270
  }
3271
+
3272
+ // when trigger's content is changed without any attribute or node change,
3273
+ // `requestUpdate` needs to be called to update hasTriggerContnet
3274
+ if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
3275
+ this.handleTriggerContentSlotChange();
3276
+ }
3123
3277
  }
3124
3278
 
3125
3279
  firstUpdated() {
@@ -3162,6 +3316,43 @@ class AuroDropdown extends r {
3162
3316
  return inCustomSlot;
3163
3317
  }
3164
3318
 
3319
+ /**
3320
+ * Handles changes to the trigger content slot and updates related properties.
3321
+ *
3322
+ * It first updates the floater settings
3323
+ * Then, it retrieves the assigned nodes from the event target and checks if any of
3324
+ * the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
3325
+ *
3326
+ * @private
3327
+ * @method handleTriggerContentSlotChange
3328
+ * @param {Event} event - native slotchange event
3329
+ * @returns {void}
3330
+ */
3331
+ handleTriggerContentSlotChange(event) {
3332
+ this.floater.handleTriggerTabIndex();
3333
+
3334
+ if (event) {
3335
+ this.triggerNode = event.target;
3336
+ this.triggerContentSlot = event.target.assignedNodes();
3337
+ }
3338
+
3339
+ if (this.triggerContentSlot) {
3340
+ this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
3341
+ if (slot.textContent.trim()) {
3342
+ return true;
3343
+ }
3344
+ const slotInSlot = slot.querySelector('slot');
3345
+ if (!slotInSlot) {
3346
+ return false;
3347
+ }
3348
+ const slotsInSlotNodes = slotInSlot.assignedNodes();
3349
+ return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3350
+ });
3351
+ } else {
3352
+ this.hasTriggerContent = false;
3353
+ }
3354
+ }
3355
+
3165
3356
  /**
3166
3357
  * Handles the default slot change event and updates the content.
3167
3358
  *
@@ -3196,13 +3387,13 @@ class AuroDropdown extends r {
3196
3387
  tabindex="${this.tabIndex}"
3197
3388
  >
3198
3389
  <div class="triggerContentWrapper">
3199
- <label class="label" id="triggerLabel">
3390
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3200
3391
  <slot name="label"></slot>
3201
3392
  </label>
3202
3393
  <div class="triggerContent">
3203
3394
  <slot
3204
3395
  name="trigger"
3205
- @slotchange="${() => {this.floater.handleTriggerTabIndex(); }}"></slot>
3396
+ @slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
3206
3397
  </div>
3207
3398
  </div>
3208
3399
  ${this.chevron || this.common ? u$1`
@@ -3244,11 +3435,11 @@ AuroDropdown.register();
3244
3435
 
3245
3436
  var dropdownVersion = '3.0.0';
3246
3437
 
3247
- 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}`;
3438
+ 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}`;
3248
3439
 
3249
- 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)}`;
3440
+ 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)}`;
3250
3441
 
3251
- var tokensCss = i$a`:host{--ds-auro-select-placeholder-text-color: var(--ds-color-text-secondary-default, $ds-color-text-secondary-default)}`;
3442
+ var tokensCss = i$b`:host{--ds-auro-select-placeholder-text-color: var(--ds-color-text-secondary-default, $ds-color-text-secondary-default)}`;
3252
3443
 
3253
3444
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3254
3445
  // See LICENSE in the project root for license information.
@@ -3258,22 +3449,10 @@ var tokensCss = i$a`:host{--ds-auro-select-placeholder-text-color: var(--ds-colo
3258
3449
  /**
3259
3450
  * The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
3260
3451
  *
3261
- * @attr {String} validity - Specifies the `validityState` this element is in.
3262
- * @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
3263
- * @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
3264
- * @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
3265
- * @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
3266
- * @attr {Boolean} noValidate - If set, disables auto-validation on blur.
3267
- * @attr {Boolean} required - Populates the `required` attribute on the element. Used for client-side validation.
3268
- * @attr {Boolean} flexMenuWidth - If set, makes dropdown bib width match the size of the content, rather than the width of the trigger.
3269
- * @prop {String} placeholder - Define placeholder text to display before a value is manually selected.
3270
- * @prop {String} value - Value selected for the component.
3271
- * @prop {Boolean} disabled - When attribute is present element shows disabled state.
3272
- * @prop {Boolean} noCheckmark - When true, checkmark on selected option will no longer be present.
3273
- * @attr {Object} optionSelected - Specifies the current selected menuOption.
3274
3452
  * @slot - Default slot for the menu content.
3275
3453
  * @slot label - Defines the content of the label.
3276
3454
  * @slot helpText - Defines the content of the helpText.
3455
+ * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
3277
3456
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
3278
3457
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
3279
3458
  * @csspart helpText - Apply CSS to the help text.
@@ -3284,7 +3463,6 @@ class AuroSelect extends r$4 {
3284
3463
  constructor() {
3285
3464
  super();
3286
3465
 
3287
- this.placeholder = 'Please select option';
3288
3466
  this.optionSelected = undefined;
3289
3467
  this.validity = undefined;
3290
3468
 
@@ -3339,68 +3517,118 @@ class AuroSelect extends r$4 {
3339
3517
  // to understand how to use reflected attributes with your property settings.
3340
3518
  static get properties() {
3341
3519
  return {
3342
- // ...super.properties,
3343
- optionSelected: {
3344
- type: Object
3520
+
3521
+ /**
3522
+ * When attribute is present, element shows disabled state.
3523
+ */
3524
+ disabled: {
3525
+ type: Boolean,
3526
+ reflect: true
3345
3527
  },
3346
- value: {
3347
- type: String
3528
+
3529
+ /**
3530
+ * If set, makes dropdown width match the size of the content, rather than the width of the trigger.
3531
+ */
3532
+ flexMenuWidth: {
3533
+ type: Boolean,
3534
+ reflect: true
3535
+ },
3536
+
3537
+ /**
3538
+ * When true, checkmark on selected option will no longer be present.
3539
+ */
3540
+ noCheckmark: {
3541
+ type: Boolean,
3542
+ reflect: true
3348
3543
  },
3544
+
3545
+ /**
3546
+ * If set, disables auto-validation on blur.
3547
+ */
3349
3548
  noValidate: {
3350
3549
  type: Boolean,
3351
3550
  reflect: true
3352
3551
  },
3552
+
3553
+ /**
3554
+ * @private
3555
+ */
3556
+ optionActive: {
3557
+ type: Object
3558
+ },
3559
+
3560
+ /**
3561
+ * Specifies the current selected menuOption.
3562
+ */
3563
+ optionSelected: {
3564
+ type: Object
3565
+ },
3566
+
3567
+ /**
3568
+ * @private
3569
+ */
3570
+ options: {
3571
+ type: Array
3572
+ },
3573
+
3574
+ /**
3575
+ * Populates the `required` attribute on the element. Used for client-side validation.
3576
+ */
3353
3577
  required: {
3354
3578
  type: Boolean,
3355
3579
  reflect: true
3356
3580
  },
3581
+
3582
+ /**
3583
+ * When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
3584
+ */
3357
3585
  error: {
3358
3586
  type: String,
3359
3587
  reflect: true
3360
3588
  },
3589
+
3590
+ /**
3591
+ * Sets a custom help text message to display for all validityStates.
3592
+ */
3361
3593
  setCustomValidity: {
3362
3594
  type: String
3363
3595
  },
3596
+
3597
+ /**
3598
+ * Custom help text message to display when validity = `customError`.
3599
+ */
3364
3600
  setCustomValidityCustomError: {
3365
3601
  type: String
3366
3602
  },
3603
+
3604
+ /**
3605
+ * Custom help text message to display when validity = `valueMissing`.
3606
+ */
3367
3607
  setCustomValidityValueMissing: {
3368
3608
  type: String
3369
3609
  },
3610
+
3611
+ /**
3612
+ * Specifies the `validityState` this element is in.
3613
+ */
3370
3614
  validity: {
3371
3615
  type: String,
3372
3616
  reflect: true
3373
3617
  },
3374
- disabled: {
3375
- type: Boolean,
3376
- reflect: true
3377
- },
3378
- noCheckmark: {
3379
- type: Boolean,
3380
- reflect: true
3381
- },
3382
- flexMenuWidth: {
3383
- type: Boolean,
3384
- reflect: true
3385
- },
3386
- placeholder: { type: String },
3387
3618
 
3388
3619
  /**
3389
- * @private
3620
+ * Value selected for the component.
3390
3621
  */
3391
- options: { type: Array },
3392
-
3393
- /**
3394
- * @private
3395
- */
3396
- optionActive: { type: Object },
3622
+ value: {
3623
+ type: String
3624
+ }
3397
3625
  };
3398
3626
  }
3399
3627
 
3400
3628
  static get styles() {
3401
3629
  return [
3402
- styleCss,
3403
3630
  colorCss,
3631
+ styleCss,
3404
3632
  tokensCss
3405
3633
  ];
3406
3634
  }
@@ -3435,36 +3663,30 @@ class AuroSelect extends r$4 {
3435
3663
  }
3436
3664
 
3437
3665
  /**
3438
- * Updates the displayed value in an Auro dropdown component based on the provided option.
3439
- * @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.
3666
+ * Updates the displayed value in an Auro dropdown component based on optionSelected
3440
3667
  * @private
3441
3668
  * @returns {void}
3442
3669
  */
3443
- updateDisplayedValue(option) {
3670
+ updateDisplayedValue() {
3444
3671
  const triggerContentEl = this.dropdown.querySelector('#triggerFocus');
3445
3672
 
3446
3673
  // remove all existing rendered value(s)
3447
- triggerContentEl.querySelectorAll('auro-menuoption, [valuestr], [auro-menuoption]').forEach((elm) => {
3674
+ triggerContentEl.querySelectorAll('auro-menuoption, [auro-menuoption]').forEach((elm) => {
3448
3675
  elm.remove();
3449
3676
  });
3450
3677
 
3451
- if (typeof option === 'string' && option !== this.placeholder) {
3452
- // create a new span element with the value string
3453
- const valueElem = document.createElement('span');
3454
- valueElem.setAttribute('valuestr', true);
3455
- valueElem.textContent = option;
3456
-
3457
- // append the new element into the trigger content
3458
- triggerContentEl.appendChild(valueElem);
3459
- } else if (typeof option === 'object') {
3678
+ if (this.optionSelected) {
3460
3679
  // clone the selected option and remove attributes that style it
3461
- const clone = option.cloneNode(true);
3680
+ const clone = this.optionSelected.cloneNode(true);
3462
3681
  clone.removeAttribute('selected');
3463
3682
  clone.removeAttribute('class');
3464
3683
 
3465
3684
  // insert the non-styled clone into the trigger
3466
3685
  triggerContentEl.appendChild(clone);
3467
3686
  }
3687
+
3688
+ // notify dropdown as trigger content is changed
3689
+ this.dropdown.requestUpdate();
3468
3690
  }
3469
3691
 
3470
3692
  /**
@@ -3474,7 +3696,7 @@ class AuroSelect extends r$4 {
3474
3696
  */
3475
3697
  configureMenu() {
3476
3698
  this.menu = this.querySelector('auro-menu, [auro-menu]');
3477
- this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
3699
+
3478
3700
  // racing condition on custom-select with custom-menu
3479
3701
  if (!this.menu) {
3480
3702
  setTimeout(() => {
@@ -3483,6 +3705,7 @@ class AuroSelect extends r$4 {
3483
3705
  return;
3484
3706
  }
3485
3707
 
3708
+ this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
3486
3709
  this.menu.setAttribute('aria-hidden', 'true');
3487
3710
 
3488
3711
  this.generateOptionsArray();
@@ -3495,8 +3718,6 @@ class AuroSelect extends r$4 {
3495
3718
  this.optionSelected = this.menu.optionSelected;
3496
3719
  this.value = this.optionSelected.value;
3497
3720
 
3498
- this.updateDisplayedValue(this.optionSelected);
3499
-
3500
3721
  if (this.dropdown.isPopoverVisible) {
3501
3722
  this.dropdown.hide();
3502
3723
  }
@@ -3510,25 +3731,11 @@ class AuroSelect extends r$4 {
3510
3731
  * with `auro-select.value`.
3511
3732
  */
3512
3733
  this.menu.addEventListener('auroMenu-selectValueFailure', () => {
3513
- this.menu.optionSelected = undefined;
3514
- this.optionSelected = this.menu.optionSelected;
3515
-
3516
- this.validity = 'badInput';
3517
-
3518
- // Capitalizes the first letter of each word in this.value string
3519
- const valueStr = this.value.replace(/(^\w{1})|(\s+\w{1})/gu, (letter) => letter.toUpperCase());
3520
-
3521
- // Pass the new string to the trigger content
3522
- this.updateDisplayedValue(valueStr);
3734
+ this.reset();
3523
3735
  });
3524
3736
 
3525
3737
  this.menu.addEventListener('auroMenu-selectValueReset', () => {
3526
- // set the trigger content back to the placeholder
3527
- this.updateDisplayedValue(this.placeholder);
3528
-
3529
- this.optionSelected = undefined;
3530
- this.value = undefined;
3531
-
3738
+ this.optionSelected = this.menu.optionSelected;
3532
3739
  this.validation.validate(this);
3533
3740
  });
3534
3741
  }
@@ -3580,8 +3787,6 @@ class AuroSelect extends r$4 {
3580
3787
  this.addEventListener('blur', () => {
3581
3788
  this.validation.validate(this);
3582
3789
  });
3583
-
3584
- this.labelForSr();
3585
3790
  }
3586
3791
 
3587
3792
  /**
@@ -3700,6 +3905,10 @@ class AuroSelect extends r$4 {
3700
3905
  }));
3701
3906
  }
3702
3907
 
3908
+ if (changedProperties.has('optionSelected')) {
3909
+ this.updateDisplayedValue();
3910
+ }
3911
+
3703
3912
  if (changedProperties.has('error')) {
3704
3913
  this.validation.validate(this, true);
3705
3914
  }
@@ -3713,52 +3922,15 @@ class AuroSelect extends r$4 {
3713
3922
  this.validation.reset(this);
3714
3923
  }
3715
3924
 
3716
- /**
3717
- * Handles reading of auro-select by screen readers.
3718
- * @private
3719
- * @returns {void}
3720
- */
3721
- labelForSr() {
3722
- const placeholderLabel = document.createElement("div");
3723
- const textId = "label";
3724
-
3725
- placeholderLabel.setAttribute("id", textId);
3726
- placeholderLabel.setAttribute("aria-live", "polite");
3727
-
3728
- const styles = {
3729
- position: 'absolute',
3730
- overflow: 'hidden',
3731
- clipPath: 'inset(1px, 1px, 1px, 1px)',
3732
- width: '1px',
3733
- height: '1px',
3734
- padding: '0',
3735
- border: '0'
3736
- };
3737
-
3738
- Object.assign(placeholderLabel.style, styles);
3739
-
3740
- this.addEventListener('focus', () => {
3741
- document.body.appendChild(placeholderLabel);
3742
-
3743
- if (!this.optionSelected) {
3744
- document.getElementById(textId).innerHTML = this.placeholder;
3745
- } else {
3746
- document.getElementById(textId).innerHTML = `${this.optionSelected.innerText}, ${this.placeholder}`;
3747
- }
3748
- });
3749
-
3750
- this.addEventListener('blur', () => {
3751
- if (document.contains(placeholderLabel)) {
3752
- document.body.removeChild(placeholderLabel);
3753
- }
3754
- });
3755
- }
3756
-
3757
3925
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
3758
3926
  // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
3759
3927
 
3760
3928
  // function that renders the HTML and CSS into the scope of the component
3761
3929
  render() {
3930
+ const placeholderClass = {
3931
+ hidden: this.value,
3932
+ };
3933
+
3762
3934
  return u$3`
3763
3935
  <div class="outerWrapper">
3764
3936
  <div aria-live="polite" class="util_displayHiddenVisually">
@@ -3785,7 +3957,7 @@ class AuroSelect extends r$4 {
3785
3957
  chevron
3786
3958
  part="dropdown">
3787
3959
  <span slot="trigger" aria-haspopup="true" id="triggerFocus">
3788
- ${this.value ? this.displayValue : u$3`<span class="placeholder">${this.placeholder}</span>`}
3960
+ <span id="placeholder" class="${e$5(placeholderClass)}"><slot name="placeholder"></slot></span>
3789
3961
  </span>
3790
3962
  <div class="menuWrapper">
3791
3963
  </div>
@@ -3798,7 +3970,7 @@ class AuroSelect extends r$4 {
3798
3970
  </p>`
3799
3971
  : u$3`
3800
3972
  <p class="selectElement-helpText" id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
3801
- ${this.setCustomValidity}
3973
+ ${this.errorMessage}
3802
3974
  </p>`
3803
3975
  }
3804
3976
  </span>