@aurodesignsystem/auro-formkit 2.0.0-beta.3 → 2.0.0-beta.30

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 (639) hide show
  1. package/.turbo/cache/019608f754b4fd0c-meta.json +1 -0
  2. package/.turbo/cache/019608f754b4fd0c.tar.zst +0 -0
  3. package/.turbo/cache/111ea1a7d5e86aac-meta.json +1 -0
  4. package/.turbo/cache/111ea1a7d5e86aac.tar.zst +0 -0
  5. package/.turbo/cache/18ce0cc67c14e0c9-meta.json +1 -0
  6. package/.turbo/cache/18ce0cc67c14e0c9.tar.zst +0 -0
  7. package/.turbo/cache/1d4280429ff4222f-meta.json +1 -0
  8. package/.turbo/cache/1d4280429ff4222f.tar.zst +0 -0
  9. package/.turbo/cache/251ba344c6338ba3-meta.json +1 -0
  10. package/.turbo/cache/251ba344c6338ba3.tar.zst +0 -0
  11. package/.turbo/cache/298b6ff0272e6226-meta.json +1 -0
  12. package/.turbo/cache/298b6ff0272e6226.tar.zst +0 -0
  13. package/.turbo/cache/2abb5400a01a1694-meta.json +1 -0
  14. package/.turbo/cache/2abb5400a01a1694.tar.zst +0 -0
  15. package/.turbo/cache/30fda91ef83677e4-meta.json +1 -0
  16. package/.turbo/cache/30fda91ef83677e4.tar.zst +0 -0
  17. package/.turbo/cache/3221d91a94756c26-meta.json +1 -0
  18. package/.turbo/cache/3221d91a94756c26.tar.zst +0 -0
  19. package/.turbo/cache/3ab09fe7cf32b3bf-meta.json +1 -0
  20. package/.turbo/cache/3ab09fe7cf32b3bf.tar.zst +0 -0
  21. package/.turbo/cache/3d05fb6e2d593287-meta.json +1 -0
  22. package/.turbo/cache/3d05fb6e2d593287.tar.zst +0 -0
  23. package/.turbo/cache/3f1b3db13386acdc-meta.json +1 -0
  24. package/.turbo/cache/3f1b3db13386acdc.tar.zst +0 -0
  25. package/.turbo/cache/430c124614841675-meta.json +1 -0
  26. package/.turbo/cache/430c124614841675.tar.zst +0 -0
  27. package/.turbo/cache/45bdeb0396723b25-meta.json +1 -0
  28. package/.turbo/cache/45bdeb0396723b25.tar.zst +0 -0
  29. package/.turbo/cache/4e9c9a5dd62c50a4-meta.json +1 -0
  30. package/.turbo/cache/4e9c9a5dd62c50a4.tar.zst +0 -0
  31. package/.turbo/cache/559b052d8150dd3f-meta.json +1 -0
  32. package/.turbo/cache/559b052d8150dd3f.tar.zst +0 -0
  33. package/.turbo/cache/5748467be5ef9c07-meta.json +1 -0
  34. package/.turbo/cache/5748467be5ef9c07.tar.zst +0 -0
  35. package/.turbo/cache/59481fd7f6f355ed-meta.json +1 -0
  36. package/.turbo/cache/59481fd7f6f355ed.tar.zst +0 -0
  37. package/.turbo/cache/5a78bd07d371dd47-meta.json +1 -0
  38. package/.turbo/cache/5a78bd07d371dd47.tar.zst +0 -0
  39. package/.turbo/cache/5fc9a7a072827b7b-meta.json +1 -0
  40. package/.turbo/cache/5fc9a7a072827b7b.tar.zst +0 -0
  41. package/.turbo/cache/63f832b4947ecf9d-meta.json +1 -0
  42. package/.turbo/cache/63f832b4947ecf9d.tar.zst +0 -0
  43. package/.turbo/cache/6a5dc307d8619c06-meta.json +1 -0
  44. package/.turbo/cache/6a5dc307d8619c06.tar.zst +0 -0
  45. package/.turbo/cache/6ed764f60d634993-meta.json +1 -0
  46. package/.turbo/cache/6ed764f60d634993.tar.zst +0 -0
  47. package/.turbo/cache/753b119a389426be-meta.json +1 -0
  48. package/.turbo/cache/753b119a389426be.tar.zst +0 -0
  49. package/.turbo/cache/80ece7354266e40f-meta.json +1 -0
  50. package/.turbo/cache/80ece7354266e40f.tar.zst +0 -0
  51. package/.turbo/cache/846bade4a9a3eba9-meta.json +1 -0
  52. package/.turbo/cache/846bade4a9a3eba9.tar.zst +0 -0
  53. package/.turbo/cache/8ac38d70a60381cb-meta.json +1 -0
  54. package/.turbo/cache/8ac38d70a60381cb.tar.zst +0 -0
  55. package/.turbo/cache/8c637a8d4c2166c5-meta.json +1 -0
  56. package/.turbo/cache/8c637a8d4c2166c5.tar.zst +0 -0
  57. package/.turbo/cache/8cd5a06a396632cf-meta.json +1 -0
  58. package/.turbo/cache/8cd5a06a396632cf.tar.zst +0 -0
  59. package/.turbo/cache/970ba88c4c4092cd-meta.json +1 -0
  60. package/.turbo/cache/970ba88c4c4092cd.tar.zst +0 -0
  61. package/.turbo/cache/9db5147195c32672-meta.json +1 -0
  62. package/.turbo/cache/9db5147195c32672.tar.zst +0 -0
  63. package/.turbo/cache/a002bc214179bedc-meta.json +1 -0
  64. package/.turbo/cache/a002bc214179bedc.tar.zst +0 -0
  65. package/.turbo/cache/a02c2bc2a4638817-meta.json +1 -0
  66. package/.turbo/cache/a02c2bc2a4638817.tar.zst +0 -0
  67. package/.turbo/cache/a7004571f6307848-meta.json +1 -0
  68. package/.turbo/cache/a7004571f6307848.tar.zst +0 -0
  69. package/.turbo/cache/a7dea1f1ae1fdc27-meta.json +1 -0
  70. package/.turbo/cache/a7dea1f1ae1fdc27.tar.zst +0 -0
  71. package/.turbo/cache/a8307dcc447702ad-meta.json +1 -0
  72. package/.turbo/cache/a8307dcc447702ad.tar.zst +0 -0
  73. package/.turbo/cache/a9dc1069fcd851ff-meta.json +1 -0
  74. package/.turbo/cache/a9dc1069fcd851ff.tar.zst +0 -0
  75. package/.turbo/cache/b4de0d19f9eeaceb-meta.json +1 -0
  76. package/.turbo/cache/b4de0d19f9eeaceb.tar.zst +0 -0
  77. package/.turbo/cache/b682d4cec0741fa1-meta.json +1 -0
  78. package/.turbo/cache/b682d4cec0741fa1.tar.zst +0 -0
  79. package/.turbo/cache/bf3d1eace5e676f9-meta.json +1 -0
  80. package/.turbo/cache/bf3d1eace5e676f9.tar.zst +0 -0
  81. package/.turbo/cache/c27d47351838ceb1-meta.json +1 -0
  82. package/.turbo/cache/c27d47351838ceb1.tar.zst +0 -0
  83. package/.turbo/cache/c7d435ade46f3c1e-meta.json +1 -0
  84. package/.turbo/cache/c7d435ade46f3c1e.tar.zst +0 -0
  85. package/.turbo/cache/cbcd9db8ac9a2d52-meta.json +1 -0
  86. package/.turbo/cache/cbcd9db8ac9a2d52.tar.zst +0 -0
  87. package/.turbo/cache/d0c4bf3a3a3840fd-meta.json +1 -0
  88. package/.turbo/cache/d0c4bf3a3a3840fd.tar.zst +0 -0
  89. package/.turbo/cache/d3afdb9a7db9eacc-meta.json +1 -0
  90. package/.turbo/cache/d3afdb9a7db9eacc.tar.zst +0 -0
  91. package/.turbo/cache/d8ecdff9c663c38e-meta.json +1 -0
  92. package/.turbo/cache/d8ecdff9c663c38e.tar.zst +0 -0
  93. package/.turbo/cache/de494df6a3006101-meta.json +1 -0
  94. package/.turbo/cache/de494df6a3006101.tar.zst +0 -0
  95. package/.turbo/cache/e06dedab4c19ae2a-meta.json +1 -0
  96. package/.turbo/cache/e06dedab4c19ae2a.tar.zst +0 -0
  97. package/.turbo/cache/e56a9865641ec3e8-meta.json +1 -0
  98. package/.turbo/cache/e56a9865641ec3e8.tar.zst +0 -0
  99. package/.turbo/cache/e7ed9e7056d80938-meta.json +1 -0
  100. package/.turbo/cache/e7ed9e7056d80938.tar.zst +0 -0
  101. package/.turbo/cache/e837827cd24834c4-meta.json +1 -0
  102. package/.turbo/cache/e837827cd24834c4.tar.zst +0 -0
  103. package/.turbo/cache/e9ff93179777aa26-meta.json +1 -0
  104. package/.turbo/cache/e9ff93179777aa26.tar.zst +0 -0
  105. package/.turbo/cache/f6220a9af06bee74-meta.json +1 -0
  106. package/.turbo/cache/f6220a9af06bee74.tar.zst +0 -0
  107. package/.turbo/cache/f7ab9a13f9acc0ab-meta.json +1 -0
  108. package/.turbo/cache/f7ab9a13f9acc0ab.tar.zst +0 -0
  109. package/.turbo/cache/ff3c8a3042cab66e-meta.json +1 -0
  110. package/.turbo/cache/ff3c8a3042cab66e.tar.zst +0 -0
  111. package/.vscode/settings.json +3 -0
  112. package/CHANGELOG.md +276 -0
  113. package/README.md +59 -59
  114. package/components/checkbox/.turbo/turbo-build$colon$sass.log +10 -10
  115. package/components/checkbox/.turbo/turbo-build.log +20 -21
  116. package/components/checkbox/.turbo/turbo-postCss$colon$component.log +1 -2
  117. package/components/checkbox/.turbo/turbo-sass$colon$render.log +6 -6
  118. package/components/checkbox/README.md +26 -34
  119. package/components/checkbox/demo/api.md +67 -68
  120. package/components/checkbox/demo/api.min.js +429 -89
  121. package/components/checkbox/demo/index.md +62 -62
  122. package/components/checkbox/demo/index.min.js +429 -89
  123. package/components/checkbox/dist/auro-checkbox-group.d.ts +40 -16
  124. package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
  125. package/components/checkbox/dist/auro-checkbox.d.ts +19 -6
  126. package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
  127. package/components/checkbox/dist/index.js +429 -89
  128. package/components/checkbox/package.json +4 -3
  129. package/components/checkbox/src/auro-checkbox-group.js +62 -23
  130. package/components/checkbox/src/auro-checkbox.js +30 -9
  131. package/components/checkbox/src/styles/colorGroup-css.js +1 -1
  132. package/components/checkbox/src/styles/colorGroup.css +0 -8
  133. package/components/checkbox/src/styles/colorGroup.scss +0 -8
  134. package/components/checkbox/src/styles/tokens-css.js +1 -1
  135. package/components/checkbox/src/styles/tokens.css +0 -1
  136. package/components/checkbox/src/styles/tokens.scss +0 -1
  137. package/components/combobox/.turbo/turbo-build$colon$sass.log +5 -5
  138. package/components/combobox/.turbo/turbo-build.log +22 -23
  139. package/components/combobox/.turbo/turbo-postCss$colon$component.log +1 -2
  140. package/components/combobox/.turbo/turbo-sass$colon$render.log +2 -2
  141. package/components/combobox/README.md +23 -28
  142. package/components/combobox/demo/api.md +27 -25
  143. package/components/combobox/demo/api.min.js +3681 -943
  144. package/components/combobox/demo/index.md +1 -1
  145. package/components/combobox/demo/index.min.js +3678 -940
  146. package/components/combobox/dist/auro-combobox.d.ts +74 -79
  147. package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
  148. package/components/combobox/dist/dropdownVersion.d.ts +3 -0
  149. package/components/combobox/dist/dropdownVersion.d.ts.map +1 -0
  150. package/components/combobox/dist/index.js +3047 -623
  151. package/components/combobox/dist/inputVersion.d.ts +3 -0
  152. package/components/combobox/dist/inputVersion.d.ts.map +1 -0
  153. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/.husky/pre-commit +1 -0
  154. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/CHANGELOG.md +863 -0
  155. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/README.md +109 -0
  156. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/README.md +86 -0
  157. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/_auroElement.scss +45 -0
  158. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.js +38 -0
  159. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement.mjs +38 -0
  160. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials+fv.css +110 -0
  161. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/bundled/essentials.css +106 -0
  162. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/demoWrapper.css +8 -0
  163. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/dist/elementDemoStyles.css +813 -0
  164. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/package.json +134 -0
  165. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/packageScripts/postinstall.mjs +39 -0
  166. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_animation.scss +30 -0
  167. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_blockquote.scss +46 -0
  168. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_breakpoints.scss +155 -0
  169. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_core.scss +25 -0
  170. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_essentials.scss +267 -0
  171. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_focus-visible.scss +36 -0
  172. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_fonts.scss +50 -0
  173. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_grids.scss +395 -0
  174. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_headings.scss +255 -0
  175. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_normalize.scss +663 -0
  176. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_picture.scss +31 -0
  177. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/_utilityClasses.scss +22 -0
  178. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials+fv.scss +19 -0
  179. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/bundled/essentials.scss +18 -0
  180. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleButton.scss +32 -0
  181. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_anchor-roleTab.scss +26 -0
  182. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_containedButtons.scss +59 -0
  183. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_table.scss +54 -0
  184. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/componentSupport/_tablist.scss +37 -0
  185. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/README.md +5 -0
  186. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/demoWrapper.scss +18 -0
  187. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/elementDemoStyles/elementDemoStyles.scss +123 -0
  188. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_deprecated.scss +16 -0
  189. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/libSupport/_manageScope.scss +42 -0
  190. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_displayProperties.scss +142 -0
  191. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_fontStyles.scss +151 -0
  192. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_inset.scss +188 -0
  193. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_layoutProperties.scss +75 -0
  194. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_listProperties.scss +176 -0
  195. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_responsive.scss +249 -0
  196. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityClasses/_typeProperties.scss +49 -0
  197. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_capitalize.scss +20 -0
  198. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_contains.scss +26 -0
  199. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityFunctions/_map-deep-get.scss +29 -0
  200. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleButton.scss +76 -0
  201. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_anchor-roleTab.scss +86 -0
  202. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_insetUtility.scss +9 -0
  203. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_layoutPropertiesGenerator.scss +75 -0
  204. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityMixins/_spacingUtility.scss +96 -0
  205. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_important.scss +20 -0
  206. package/components/combobox/node_modules/@aurodesignsystem/webcorestylesheets/src/utilityVariables/_spacing-options.scss +13 -0
  207. package/components/combobox/node_modules/@rollup/plugin-node-resolve/README.md +293 -0
  208. package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js +1377 -0
  209. package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/index.js +1370 -0
  210. package/components/combobox/node_modules/@rollup/plugin-node-resolve/dist/es/package.json +1 -0
  211. package/components/combobox/node_modules/@rollup/plugin-node-resolve/package.json +89 -0
  212. package/components/combobox/node_modules/@rollup/plugin-node-resolve/types/index.d.ts +115 -0
  213. package/components/combobox/node_modules/chalk/package.json +3 -3
  214. package/components/combobox/node_modules/chalk/readme.md +25 -53
  215. package/components/combobox/node_modules/chalk/source/index.d.ts +6 -1
  216. package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +6 -2
  217. package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +2 -2
  218. package/components/combobox/package.json +11 -12
  219. package/components/combobox/src/auro-combobox.js +215 -159
  220. package/components/combobox/src/dropdownVersion.js +1 -0
  221. package/components/combobox/src/inputVersion.js +1 -0
  222. package/components/counter/.turbo/turbo-build$colon$sass.log +210 -7
  223. package/components/{input → counter}/.turbo/turbo-build$colon$version.log +5 -5
  224. package/components/counter/.turbo/turbo-build.log +338 -14
  225. package/components/counter/.turbo/turbo-bundler.log +13 -4
  226. package/components/counter/.turbo/turbo-postCss$colon$component.log +1 -2
  227. package/components/counter/.turbo/turbo-sass$colon$render.log +45 -3
  228. package/components/counter/.turbo/turbo-types.log +1 -1
  229. package/components/counter/README.md +188 -0
  230. package/components/counter/demo/api.md +107 -1014
  231. package/components/counter/demo/api.min.js +1815 -36
  232. package/components/counter/demo/index.js +2 -1
  233. package/components/counter/demo/index.md +292 -0
  234. package/components/counter/demo/index.min.js +1842 -18
  235. package/components/counter/dist/auro-counter-button.d.ts +13 -0
  236. package/components/counter/dist/auro-counter-button.d.ts.map +1 -0
  237. package/components/counter/dist/auro-counter-group.d.ts +115 -5
  238. package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
  239. package/components/counter/dist/auro-counter-wrapper.d.ts +23 -0
  240. package/components/counter/dist/auro-counter-wrapper.d.ts.map +1 -0
  241. package/components/counter/dist/auro-counter.d.ts +82 -0
  242. package/components/counter/dist/auro-counter.d.ts.map +1 -1
  243. package/components/counter/dist/dropdownVersion.d.ts +3 -0
  244. package/components/counter/dist/dropdownVersion.d.ts.map +1 -0
  245. package/components/counter/dist/iconVersion.d.ts +3 -0
  246. package/components/counter/dist/iconVersion.d.ts.map +1 -0
  247. package/components/counter/dist/index.js +1815 -36
  248. package/components/{input/dist/styles/helpText-css.d.ts → counter/dist/styles/color-css.d.ts} +1 -1
  249. package/components/counter/dist/styles/color-css.d.ts.map +1 -0
  250. package/components/counter/dist/styles/counter-button-color-css.d.ts +3 -0
  251. package/components/counter/dist/styles/counter-button-color-css.d.ts.map +1 -0
  252. package/components/counter/dist/styles/counter-button-css.d.ts +3 -0
  253. package/components/counter/dist/styles/counter-button-css.d.ts.map +1 -0
  254. package/components/counter/dist/styles/counter-button-tokens-css.d.ts +3 -0
  255. package/components/counter/dist/styles/counter-button-tokens-css.d.ts.map +1 -0
  256. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +3 -0
  257. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts.map +1 -0
  258. package/components/counter/dist/styles/counter-wrapper-css.d.ts +3 -0
  259. package/components/counter/dist/styles/counter-wrapper-css.d.ts.map +1 -0
  260. package/components/counter/dist/styles/tokens-css.d.ts +3 -0
  261. package/components/counter/dist/styles/tokens-css.d.ts.map +1 -0
  262. package/components/counter/package.json +11 -3
  263. package/components/counter/src/auro-counter-button.js +42 -0
  264. package/components/counter/src/auro-counter-group.js +236 -20
  265. package/components/counter/src/auro-counter-wrapper.js +54 -0
  266. package/components/counter/src/auro-counter.js +285 -12
  267. package/components/counter/src/dropdownVersion.js +1 -0
  268. package/components/counter/src/iconVersion.js +1 -0
  269. package/components/counter/src/index.js +1 -1
  270. package/components/counter/src/styles/color-css.js +2 -0
  271. package/components/counter/src/styles/color.css +25 -0
  272. package/components/counter/src/styles/color.scss +44 -0
  273. package/components/counter/src/styles/counter-button-color-css.js +2 -0
  274. package/components/counter/src/styles/counter-button-color.css +14 -0
  275. package/components/counter/src/styles/counter-button-color.scss +29 -0
  276. package/components/counter/src/styles/counter-button-css.js +2 -0
  277. package/components/counter/src/styles/counter-button-tokens-css.js +2 -0
  278. package/components/counter/src/styles/counter-button-tokens.css +7 -0
  279. package/components/counter/src/styles/counter-button-tokens.scss +9 -0
  280. package/components/counter/src/styles/counter-button.css +187 -0
  281. package/components/counter/src/styles/counter-button.scss +83 -0
  282. package/components/counter/src/styles/counter-group-css.js +1 -1
  283. package/components/counter/src/styles/counter-group.css +12 -1
  284. package/components/counter/src/styles/counter-group.scss +12 -1
  285. package/components/counter/src/styles/counter-wrapper-color-css.js +2 -0
  286. package/components/counter/src/styles/counter-wrapper-color.css +4 -0
  287. package/components/counter/src/styles/counter-wrapper-color.scss +19 -0
  288. package/components/counter/src/styles/counter-wrapper-css.js +2 -0
  289. package/components/counter/src/styles/counter-wrapper.css +15 -0
  290. package/components/counter/src/styles/counter-wrapper.scss +29 -0
  291. package/components/counter/src/styles/style-css.js +1 -1
  292. package/components/counter/src/styles/style.css +43 -1
  293. package/components/counter/src/styles/style.scss +48 -2
  294. package/components/counter/src/styles/tokens-css.js +2 -0
  295. package/components/counter/src/styles/tokens.css +11 -0
  296. package/components/counter/src/styles/tokens.scss +24 -0
  297. package/components/datepicker/.turbo/turbo-build$colon$sass.log +34 -34
  298. package/components/datepicker/.turbo/turbo-build.log +52 -53
  299. package/components/datepicker/.turbo/turbo-postCss$colon$component.log +1 -2
  300. package/components/datepicker/.turbo/turbo-sass$colon$render.log +10 -10
  301. package/components/datepicker/README.md +21 -26
  302. package/components/datepicker/demo/api.md +85 -57
  303. package/components/datepicker/demo/api.min.js +1643 -693
  304. package/components/datepicker/demo/index.md +1 -1
  305. package/components/datepicker/demo/index.min.js +1643 -693
  306. package/components/datepicker/dist/auro-calendar.d.ts +1 -1
  307. package/components/datepicker/dist/auro-datepicker.d.ts +101 -73
  308. package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
  309. package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
  310. package/components/datepicker/dist/dropdownVersion.d.ts.map +1 -1
  311. package/components/datepicker/dist/index.js +1643 -693
  312. package/components/datepicker/dist/inputVersion.d.ts +3 -0
  313. package/components/datepicker/dist/inputVersion.d.ts.map +1 -0
  314. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +2 -2
  315. package/components/datepicker/package.json +5 -5
  316. package/components/datepicker/src/auro-calendar.js +1 -1
  317. package/components/datepicker/src/auro-datepicker.js +170 -82
  318. package/components/datepicker/src/dropdownVersion.js +1 -0
  319. package/components/datepicker/src/inputVersion.js +1 -0
  320. package/components/datepicker/src/styles/color-cell-css.js +1 -1
  321. package/components/datepicker/src/styles/color-cell.css +1 -1
  322. package/components/datepicker/src/styles/color-cell.scss +1 -1
  323. package/components/datepicker/src/styles/style-css.js +1 -1
  324. package/components/datepicker/src/styles/style.css +0 -6
  325. package/components/datepicker/src/styles/style.scss +0 -6
  326. package/components/datepicker/src/utilitiesCalendarRender.js +2 -2
  327. package/components/dropdown/.turbo/turbo-build$colon$sass.log +8 -8
  328. package/components/dropdown/.turbo/turbo-build.log +19 -20
  329. package/components/dropdown/.turbo/turbo-postCss$colon$component.log +1 -2
  330. package/components/dropdown/.turbo/turbo-sass$colon$render.log +6 -6
  331. package/components/dropdown/README.md +18 -26
  332. package/components/dropdown/demo/api.md +4 -5
  333. package/components/dropdown/demo/api.min.js +467 -122
  334. package/components/dropdown/demo/index.min.js +467 -122
  335. package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
  336. package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
  337. package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
  338. package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
  339. package/components/dropdown/dist/index.js +467 -122
  340. package/components/dropdown/package.json +4 -3
  341. package/components/dropdown/src/auro-dropdown.js +157 -43
  342. package/components/dropdown/src/auro-dropdownBib.js +12 -3
  343. package/components/dropdown/src/styles/color-css.js +1 -1
  344. package/components/dropdown/src/styles/color.css +0 -5
  345. package/components/dropdown/src/styles/color.scss +0 -5
  346. package/components/dropdown/src/styles/style-css.js +1 -1
  347. package/components/dropdown/src/styles/style.css +4 -6
  348. package/components/dropdown/src/styles/style.scss +5 -6
  349. package/components/dropdown/src/styles/tokens-css.js +1 -1
  350. package/components/dropdown/src/styles/tokens.css +0 -1
  351. package/components/dropdown/src/styles/tokens.scss +0 -1
  352. package/components/form/.turbo/turbo-build$colon$sass.log +6 -6
  353. package/components/form/.turbo/turbo-build$colon$version.log +1 -1
  354. package/components/form/.turbo/turbo-build.log +17 -18
  355. package/components/form/.turbo/turbo-bundler.log +4 -4
  356. package/components/form/.turbo/turbo-postCss$colon$component.log +1 -2
  357. package/components/form/.turbo/turbo-sass$colon$render.log +2 -2
  358. package/components/form/.turbo/turbo-types.log +1 -1
  359. package/components/form/README.md +28 -34
  360. package/components/form/demo/api.min.js +405 -25
  361. package/components/form/demo/index.min.js +405 -25
  362. package/components/form/demo/registerDemoDeps.js +6 -0
  363. package/components/form/demo/working.html +117 -0
  364. package/components/form/dist/auro-form.d.ts +160 -2
  365. package/components/form/dist/auro-form.d.ts.map +1 -1
  366. package/components/form/dist/index.js +405 -25
  367. package/components/form/package.json +6 -4
  368. package/components/form/src/auro-form.js +402 -25
  369. package/components/form/src/styles/style.css +1 -1
  370. package/components/helptext/.stylelintrc.json +3 -0
  371. package/components/helptext/.turbo/turbo-build$colon$sass.log +34 -0
  372. package/components/helptext/.turbo/turbo-build.log +49 -0
  373. package/components/helptext/.turbo/turbo-bundler.log +7 -0
  374. package/components/helptext/.turbo/turbo-postCss$colon$component.log +4 -0
  375. package/components/helptext/.turbo/turbo-sass$colon$render.log +22 -0
  376. package/components/helptext/.turbo/turbo-types.log +4 -0
  377. package/components/helptext/dist/auro-helptext.d.ts +54 -0
  378. package/components/helptext/dist/auro-helptext.d.ts.map +1 -0
  379. package/components/helptext/dist/index.d.ts +3 -0
  380. package/components/helptext/dist/index.d.ts.map +1 -0
  381. package/components/helptext/dist/index.js +224 -0
  382. package/components/helptext/dist/styles/color-css.d.ts +3 -0
  383. package/components/helptext/dist/styles/color-css.d.ts.map +1 -0
  384. package/components/helptext/dist/styles/style-css.d.ts +3 -0
  385. package/components/helptext/dist/styles/style-css.d.ts.map +1 -0
  386. package/components/helptext/dist/styles/tokens-css.d.ts +3 -0
  387. package/components/helptext/dist/styles/tokens-css.d.ts.map +1 -0
  388. package/components/helptext/node_modules/chalk/package.json +83 -0
  389. package/components/helptext/node_modules/chalk/readme.md +297 -0
  390. package/components/helptext/node_modules/chalk/source/index.d.ts +325 -0
  391. package/components/helptext/node_modules/chalk/source/index.js +225 -0
  392. package/components/helptext/node_modules/chalk/source/utilities.js +33 -0
  393. package/components/helptext/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  394. package/components/helptext/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  395. package/components/helptext/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  396. package/components/helptext/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
  397. package/components/helptext/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  398. package/components/helptext/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
  399. package/components/helptext/package.json +57 -0
  400. package/components/helptext/src/auro-helptext.js +127 -0
  401. package/components/helptext/src/index.js +6 -0
  402. package/components/helptext/src/styles/color-css.js +2 -0
  403. package/components/helptext/src/styles/color.css +8 -0
  404. package/components/helptext/src/styles/color.scss +11 -0
  405. package/components/helptext/src/styles/style-css.js +2 -0
  406. package/components/helptext/src/styles/style.css +20 -0
  407. package/components/helptext/src/styles/style.scss +30 -0
  408. package/components/helptext/src/styles/tokens-css.js +2 -0
  409. package/components/helptext/src/styles/tokens.css +3 -0
  410. package/components/helptext/src/styles/tokens.scss +5 -0
  411. package/components/input/.turbo/turbo-build$colon$sass.log +22 -32
  412. package/components/input/.turbo/turbo-build.log +33 -46
  413. package/components/input/.turbo/turbo-postCss$colon$component.log +1 -2
  414. package/components/input/.turbo/turbo-sass$colon$render.log +9 -15
  415. package/components/input/README.md +18 -28
  416. package/components/input/demo/api.md +122 -288
  417. package/components/input/demo/api.min.js +653 -195
  418. package/components/input/demo/index.md +9 -59
  419. package/components/input/demo/index.min.js +653 -195
  420. package/components/input/dist/auro-input.d.ts.map +1 -1
  421. package/components/input/dist/base-input.d.ts +160 -82
  422. package/components/input/dist/base-input.d.ts.map +1 -1
  423. package/components/input/dist/index.js +653 -195
  424. package/components/input/package.json +4 -3
  425. package/components/input/src/auro-input.js +18 -10
  426. package/components/input/src/base-input.js +246 -76
  427. package/components/input/src/styles/color-css.js +1 -1
  428. package/components/input/src/styles/color.css +0 -5
  429. package/components/input/src/styles/color.scss +0 -5
  430. package/components/input/src/styles/input-css.js +1 -1
  431. package/components/input/src/styles/input.css +2 -2
  432. package/components/input/src/styles/input.scss +2 -2
  433. package/components/input/src/styles/style-css.js +1 -1
  434. package/components/input/src/styles/style.css +2 -9
  435. package/components/input/src/styles/style.scss +0 -1
  436. package/components/input/src/styles/tokens-css.js +1 -1
  437. package/components/input/src/styles/tokens.css +0 -1
  438. package/components/input/src/styles/tokens.scss +0 -1
  439. package/components/menu/.turbo/turbo-build$colon$sass.log +9 -9
  440. package/components/menu/.turbo/turbo-build$colon$version.log +1 -1
  441. package/components/menu/.turbo/turbo-build.log +22 -21
  442. package/components/menu/.turbo/turbo-bundler.log +4 -4
  443. package/components/menu/.turbo/turbo-postCss$colon$component.log +1 -2
  444. package/components/menu/.turbo/turbo-sass$colon$render.log +6 -6
  445. package/components/menu/.turbo/turbo-types.log +1 -1
  446. package/components/menu/README.md +18 -26
  447. package/components/menu/demo/api.md +57 -20
  448. package/components/menu/demo/api.min.js +626 -312
  449. package/components/menu/demo/index.min.js +624 -310
  450. package/components/menu/dist/auro-menu-utils.d.ts +43 -0
  451. package/components/menu/dist/auro-menu-utils.d.ts.map +1 -0
  452. package/components/menu/dist/auro-menu.d.ts +97 -81
  453. package/components/menu/dist/auro-menu.d.ts.map +1 -1
  454. package/components/menu/dist/index.d.ts +1 -0
  455. package/components/menu/dist/index.js +625 -311
  456. package/components/menu/package.json +3 -3
  457. package/components/menu/src/auro-menu-utils.js +131 -0
  458. package/components/menu/src/auro-menu.js +492 -303
  459. package/components/menu/src/index.js +7 -0
  460. package/components/menu/src/styles/color-menuoption-css.js +1 -1
  461. package/components/menu/src/styles/color-menuoption.css +3 -0
  462. package/components/menu/src/styles/color-menuoption.scss +4 -0
  463. package/components/menu/src/styles/style-menu.css +1 -1
  464. package/components/radio/.turbo/turbo-build$colon$sass.log +13 -13
  465. package/components/radio/.turbo/turbo-build.log +23 -24
  466. package/components/radio/.turbo/turbo-postCss$colon$component.log +1 -2
  467. package/components/radio/.turbo/turbo-sass$colon$render.log +6 -6
  468. package/components/radio/README.md +18 -26
  469. package/components/radio/demo/api.md +4 -4
  470. package/components/radio/demo/api.min.js +350 -61
  471. package/components/radio/demo/index.min.js +350 -61
  472. package/components/radio/dist/auro-radio-group.d.ts +5 -0
  473. package/components/radio/dist/auro-radio-group.d.ts.map +1 -1
  474. package/components/radio/dist/index.js +350 -61
  475. package/components/radio/package.json +4 -3
  476. package/components/radio/src/auro-radio-group.js +14 -5
  477. package/components/radio/src/styles/groupColor-css.js +1 -1
  478. package/components/radio/src/styles/groupColor.css +0 -8
  479. package/components/radio/src/styles/groupColor.scss +0 -8
  480. package/components/radio/src/styles/tokens-css.js +1 -1
  481. package/components/radio/src/styles/tokens.css +0 -1
  482. package/components/radio/src/styles/tokens.scss +0 -1
  483. package/components/select/.turbo/turbo-build$colon$sass.log +12 -12
  484. package/components/select/.turbo/turbo-build.log +32 -33
  485. package/components/select/.turbo/turbo-postCss$colon$component.log +1 -2
  486. package/components/select/.turbo/turbo-sass$colon$render.log +4 -4
  487. package/components/select/README.md +21 -42
  488. package/components/select/demo/api.md +86 -111
  489. package/components/select/demo/api.min.js +2961 -701
  490. package/components/select/demo/index.md +101 -59
  491. package/components/select/demo/index.min.js +2960 -700
  492. package/components/select/dist/auro-select.d.ts +77 -48
  493. package/components/select/dist/auro-select.d.ts.map +1 -1
  494. package/components/select/dist/dropdownVersion.d.ts +3 -0
  495. package/components/select/dist/dropdownVersion.d.ts.map +1 -0
  496. package/components/select/dist/index.js +2421 -462
  497. package/components/select/package.json +5 -5
  498. package/components/select/src/auro-select.js +157 -120
  499. package/components/select/src/dropdownVersion.js +1 -0
  500. package/components/select/src/styles/style-css.js +1 -1
  501. package/components/select/src/styles/style.css +12 -4
  502. package/components/select/src/styles/style.scss +22 -5
  503. package/package.json +27 -23
  504. package/packages/build-tools/src/docProcessor.mjs +37 -8
  505. package/packages/build-tools/src/postinstall.mjs +8 -0
  506. package/packages/form-validation/src/validation.js +79 -20
  507. package/packages/utils/package.json +12 -0
  508. package/packages/utils/src/iconUtil.js +25 -0
  509. package/packages/utils/src/index.js +1 -0
  510. package/turbo.json +42 -9
  511. package/.turbo/cache/013a48308b893dac-meta.json +0 -1
  512. package/.turbo/cache/013a48308b893dac.tar.zst +0 -0
  513. package/.turbo/cache/02244170c798a2bd-meta.json +0 -1
  514. package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
  515. package/.turbo/cache/07ca42419b9f050c-meta.json +0 -1
  516. package/.turbo/cache/07ca42419b9f050c.tar.zst +0 -0
  517. package/.turbo/cache/0cea4c1f34f3683b-meta.json +0 -1
  518. package/.turbo/cache/0cea4c1f34f3683b.tar.zst +0 -0
  519. package/.turbo/cache/17259cf94d8f8925-meta.json +0 -1
  520. package/.turbo/cache/17259cf94d8f8925.tar.zst +0 -0
  521. package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
  522. package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
  523. package/.turbo/cache/1b9818717e4bdf9f-meta.json +0 -1
  524. package/.turbo/cache/1b9818717e4bdf9f.tar.zst +0 -0
  525. package/.turbo/cache/1c0f580d37370ba2-meta.json +0 -1
  526. package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
  527. package/.turbo/cache/1c99a949ec63ab35-meta.json +0 -1
  528. package/.turbo/cache/1c99a949ec63ab35.tar.zst +0 -0
  529. package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
  530. package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
  531. package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
  532. package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
  533. package/.turbo/cache/257a7a26ea72dbc5-meta.json +0 -1
  534. package/.turbo/cache/257a7a26ea72dbc5.tar.zst +0 -0
  535. package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
  536. package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
  537. package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
  538. package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
  539. package/.turbo/cache/3bf45120d0cc9bd8-meta.json +0 -1
  540. package/.turbo/cache/3bf45120d0cc9bd8.tar.zst +0 -0
  541. package/.turbo/cache/3e12285c614db539-meta.json +0 -1
  542. package/.turbo/cache/3e12285c614db539.tar.zst +0 -0
  543. package/.turbo/cache/45035bf5c4147ccd-meta.json +0 -1
  544. package/.turbo/cache/45035bf5c4147ccd.tar.zst +0 -0
  545. package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
  546. package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
  547. package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +0 -1
  548. package/.turbo/cache/5bf2d3f7ba5891e0.tar.zst +0 -0
  549. package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
  550. package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
  551. package/.turbo/cache/5f304c0f37ef25f3-meta.json +0 -1
  552. package/.turbo/cache/5f304c0f37ef25f3.tar.zst +0 -0
  553. package/.turbo/cache/64de7a53e02db647-meta.json +0 -1
  554. package/.turbo/cache/64de7a53e02db647.tar.zst +0 -0
  555. package/.turbo/cache/691a74627ec57993-meta.json +0 -1
  556. package/.turbo/cache/691a74627ec57993.tar.zst +0 -0
  557. package/.turbo/cache/69aae513b7ec6c7d-meta.json +0 -1
  558. package/.turbo/cache/69aae513b7ec6c7d.tar.zst +0 -0
  559. package/.turbo/cache/6dd67d179191bda8-meta.json +0 -1
  560. package/.turbo/cache/6dd67d179191bda8.tar.zst +0 -0
  561. package/.turbo/cache/6dd7058e6703cb35-meta.json +0 -1
  562. package/.turbo/cache/6dd7058e6703cb35.tar.zst +0 -0
  563. package/.turbo/cache/73e9073a5274616d-meta.json +0 -1
  564. package/.turbo/cache/73e9073a5274616d.tar.zst +0 -0
  565. package/.turbo/cache/773edc0f83c8c5a5-meta.json +0 -1
  566. package/.turbo/cache/773edc0f83c8c5a5.tar.zst +0 -0
  567. package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
  568. package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
  569. package/.turbo/cache/786a822763403879-meta.json +0 -1
  570. package/.turbo/cache/786a822763403879.tar.zst +0 -0
  571. package/.turbo/cache/7e1043cffa69f327-meta.json +0 -1
  572. package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
  573. package/.turbo/cache/80a13352066a9801-meta.json +0 -1
  574. package/.turbo/cache/80a13352066a9801.tar.zst +0 -0
  575. package/.turbo/cache/80b5d974184a01df-meta.json +0 -1
  576. package/.turbo/cache/80b5d974184a01df.tar.zst +0 -0
  577. package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
  578. package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
  579. package/.turbo/cache/8954c6073396fadd-meta.json +0 -1
  580. package/.turbo/cache/8954c6073396fadd.tar.zst +0 -0
  581. package/.turbo/cache/8e79bd5c3a16a72e-meta.json +0 -1
  582. package/.turbo/cache/8e79bd5c3a16a72e.tar.zst +0 -0
  583. package/.turbo/cache/92daa6d7c389d548-meta.json +0 -1
  584. package/.turbo/cache/92daa6d7c389d548.tar.zst +0 -0
  585. package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
  586. package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
  587. package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
  588. package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
  589. package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
  590. package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
  591. package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
  592. package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
  593. package/.turbo/cache/a77bc920ea508bb8-meta.json +0 -1
  594. package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
  595. package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
  596. package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
  597. package/.turbo/cache/b54fc4f664a7a5a0-meta.json +0 -1
  598. package/.turbo/cache/b54fc4f664a7a5a0.tar.zst +0 -0
  599. package/.turbo/cache/ba4418918621fbcd-meta.json +0 -1
  600. package/.turbo/cache/ba4418918621fbcd.tar.zst +0 -0
  601. package/.turbo/cache/be7c23c37b8ec74b-meta.json +0 -1
  602. package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
  603. package/.turbo/cache/bffc7582905c2a5e-meta.json +0 -1
  604. package/.turbo/cache/bffc7582905c2a5e.tar.zst +0 -0
  605. package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +0 -1
  606. package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
  607. package/.turbo/cache/cc81de9c0b452a7c-meta.json +0 -1
  608. package/.turbo/cache/cc81de9c0b452a7c.tar.zst +0 -0
  609. package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
  610. package/.turbo/cache/d39e6ef95ebc4cc0.tar.zst +0 -0
  611. package/.turbo/cache/d572ebb3c833e8f4-meta.json +0 -1
  612. package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
  613. package/.turbo/cache/d61543843c932504-meta.json +0 -1
  614. package/.turbo/cache/d61543843c932504.tar.zst +0 -0
  615. package/.turbo/cache/dad1301ac69bcb85-meta.json +0 -1
  616. package/.turbo/cache/dad1301ac69bcb85.tar.zst +0 -0
  617. package/.turbo/cache/dea5945f55c6aba5-meta.json +0 -1
  618. package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
  619. package/.turbo/cache/e992dab20aeefbaf-meta.json +0 -1
  620. package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
  621. package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
  622. package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
  623. package/.turbo/cache/fa132b5b5f0e75f8-meta.json +0 -1
  624. package/.turbo/cache/fa132b5b5f0e75f8.tar.zst +0 -0
  625. package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
  626. package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
  627. package/components/checkbox/.turbo/turbo-bundler.log +0 -13
  628. package/components/checkbox/.turbo/turbo-types.log +0 -4
  629. package/components/dropdown/.turbo/turbo-build$colon$version.log +0 -7
  630. package/components/dropdown/.turbo/turbo-bundler.log +0 -13
  631. package/components/dropdown/.turbo/turbo-types.log +0 -4
  632. package/components/input/.turbo/turbo-bundler.log +0 -13
  633. package/components/input/.turbo/turbo-types.log +0 -4
  634. package/components/input/dist/styles/helpText-css.d.ts.map +0 -1
  635. package/components/input/src/styles/helpText-css.js +0 -2
  636. package/components/input/src/styles/helpText.css +0 -6
  637. package/components/input/src/styles/helpText.scss +0 -9
  638. package/components/radio/.turbo/turbo-bundler.log +0 -13
  639. package/components/radio/.turbo/turbo-types.log +0 -4
@@ -1,68 +1,1892 @@
1
+ import { AuroDropdown } from '@aurodesignsystem/auro-dropdown';
2
+
3
+ /**
4
+ * @license
5
+ * Copyright 2019 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ const t$2=globalThis,e$4=t$2.ShadowRoot&&(undefined===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$3 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&undefined===t){const e=undefined!==s&&1===s.length;e&&(t=o$4.get(s)),undefined===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$3("string"==typeof t?t:t+"",undefined,s$2),i$5=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3(o,t,s$2)},S$1=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;undefined!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
9
+
10
+ /**
11
+ * @license
12
+ * Copyright 2017 Google LLC
13
+ * SPDX-License-Identifier: BSD-3-Clause
14
+ */const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$3,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),y$1={attribute:true,type:String,converter:u$2,reflect:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y$1){if(s.state&&(s.attribute=false),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);undefined!==r&&e$3(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),undefined!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$3(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(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$2(s));}else undefined!==s&&i.push(c$2(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$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(undefined!==e&&true===i.reflect){const r=(undefined!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(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$2;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$1)(this[t],s))return;this.P(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),true===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=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$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
15
+
1
16
  /**
2
17
  * @license
3
18
  * Copyright 2017 Google LLC
4
19
  * SPDX-License-Identifier: BSD-3-Clause
5
20
  */
6
- const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$2="$lit$",h$1=`lit$${Math.random().toFixed(9).slice(2)}$`,o$3="?"+h$1,n$3=`<${o$3}>`,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$1?s$1.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$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$2+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$2)){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$3?i$3.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$3)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$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$2(),t),t,void 0,s??{});}return h._$AI(t),h};
21
+ const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):undefined,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2="?"+h,n$1=`<${o$2}>`,r$1=document,l$1=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u$1=t=>a$1(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return undefined!==s$1?s$1.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v: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,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):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=undefined);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n$1:d>=0?(o.push(a),s.slice(0,d)+e$2+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$2)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$3?i$3.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1());}}}else if(8===r.nodeType)if(r.data===o$2)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=undefined!==e?s._$Co?.[e]:s._$Cl;const o=c(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(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$1).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$1,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(this,t,i),c(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):undefined!==t._$litType$?this.$(t):undefined!==t.nodeType?this.T(t):u$1(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(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$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$1()),this.O(l$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ 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(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?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(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(this,t);}}const j=t$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(undefined===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$1(),t),t,undefined,s??{});}return h._$AI(t),h};
22
+
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */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$2=globalThis.litElementPolyfillSupport;i$2?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
7
28
 
8
29
  /**
9
30
  * @license
10
31
  * Copyright 2020 Google LLC
11
32
  * SPDX-License-Identifier: BSD-3-Clause
12
33
  */
13
- const a$1=Symbol.for(""),o$2=t=>{if(t?.r===a$1)return t?._$litStatic$},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$2(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);
34
+ const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(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}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&undefined!==(i=e[$],s=o$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");undefined===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(x);
35
+
36
+ var styleButtonTokenCss = i$5`:host{--ds-auro-counter-control-ui-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-border-active: var(--ds-color-border-active-default, #0074c8);--ds-auro-counter-control-border-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03))}`;
37
+
38
+ var styleButtonColorCss = i$5`.auroButton{border-color:unset;background-color:var(--ds-auro-counter-control-ui-bkg);color:var(--ds-auro-button-text-color);-webkit-tap-highlight-color:var(--ds-auro-button-tap-color)}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline-color:var(--ds-auro-counter-control-border-active)}@media(hover: hover){.auroButton:active:not(:disabled),.auroButton:hover:not(:disabled){background-color:var(--ds-auro-counter-control-ui-hover)}}`;
39
+
40
+ var styleButtonCss = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.contentWrapper{display:flex;align-items:center}.contentWrapper span{display:block;height:var(--ds-size-300, 1.5rem)}.auroButton{position:relative;display:inline-flex;overflow:visible;width:calc(var(--ds-size-50, 0.25rem) + var(--ds-size-400, 2rem));height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));flex-direction:row;align-items:center;justify-content:center;padding:var(--ds-auro-counter-control-padding);border:none;border-radius:var(--ds-auro-counter-control-border-radius);margin:0;cursor:pointer;gap:var(--ds-size-100, 0.5rem);line-height:unset;-webkit-touch-callout:none;user-select:none;white-space:nowrap}.auroButton:active .contentWrapper{transform:scale(0.95)}.auroButton:disabled{cursor:not-allowed;transform:unset}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline-offset:0;outline-style:solid;outline-width:var(--ds-size-25, 0.125rem);transform:unset}`;
14
41
 
15
42
  /**
16
43
  * @license
17
- * Copyright 2019 Google LLC
44
+ * Copyright 2017 Google LLC
18
45
  * SPDX-License-Identifier: BSD-3-Clause
19
46
  */
20
- const t=globalThis,e$1=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o$1=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$1&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$1.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$1.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$2=(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$1)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$1=e$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
47
+ const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
21
48
 
22
49
  /**
23
50
  * @license
24
- * Copyright 2017 Google LLC
51
+ * Copyright 2018 Google LLC
25
52
  * SPDX-License-Identifier: BSD-3-Clause
26
- */const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:r$1,getOwnPropertyNames:h,getOwnPropertySymbols:o,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$1(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(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(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");
53
+ */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}});
27
54
 
28
55
  /**
29
56
  * @license
30
- * Copyright 2017 Google LLC
57
+ * Copyright 2018 Google LLC
31
58
  * SPDX-License-Identifier: BSD-3-Clause
32
- */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=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
59
+ */const o=o=>o??E;
60
+
61
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
62
+ // See LICENSE in the project root for license information.
63
+
64
+
65
+ class AuroDependencyVersioning {
66
+
67
+ /**
68
+ * Generates a unique string to be used for child auro element naming.
69
+ * @private
70
+ * @param {string} baseName - Defines the first part of the unique element name.
71
+ * @param {string} version - Version of the component that will be appended to the baseName.
72
+ * @returns {string} - Unique string to be used for naming.
73
+ */
74
+ generateElementName(baseName, version) {
75
+ let result = baseName;
76
+
77
+ result += '-';
78
+ result += version.replace(/[.]/g, '_');
79
+
80
+ return result;
81
+ }
33
82
 
34
- var styleCss = i$2`:host{position:relative}`;
83
+ /**
84
+ * Generates a unique string to be used for child auro element naming.
85
+ * @param {string} baseName - Defines the first part of the unique element name.
86
+ * @param {string} version - Version of the component that will be appended to the baseName.
87
+ * @returns {string} - Unique string to be used for naming.
88
+ */
89
+ generateTag(baseName, version, tagClass) {
90
+ const elementName = this.generateElementName(baseName, version);
91
+ const tag = i$1`${s(elementName)}`;
35
92
 
36
- // Copyright (c) 2024 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
93
+ if (!customElements.get(elementName)) {
94
+ customElements.define(elementName, class extends tagClass {});
95
+ }
96
+
97
+ return tag;
98
+ }
99
+ }
100
+
101
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
37
102
  // See LICENSE in the project root for license information.
38
103
 
104
+ // ---------------------------------------------------------------------
39
105
 
40
- class AuroCounter extends r {
106
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
107
+
108
+ class AuroLibraryRuntimeUtils {
109
+
110
+ /* eslint-disable jsdoc/require-param */
111
+
112
+ /**
113
+ * This will register a new custom element with the browser.
114
+ * @param {String} name - The name of the custom element.
115
+ * @param {Object} componentClass - The class to register as a custom element.
116
+ * @returns {void}
117
+ */
118
+ registerComponent(name, componentClass) {
119
+ if (!customElements.get(name)) {
120
+ customElements.define(name, class extends componentClass {});
121
+ }
122
+ }
123
+
124
+ /**
125
+ * Finds and returns the closest HTML Element based on a selector.
126
+ * @returns {void}
127
+ */
128
+ closestElement(
129
+ selector, // selector like in .closest()
130
+ base = this, // extra functionality to skip a parent
131
+ __Closest = (el, found = el && el.closest(selector)) =>
132
+ !el || el === document || el === window
133
+ ? null // standard .closest() returns null for non-found selectors also
134
+ : found
135
+ ? found // found a selector INside this element
136
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
137
+ ) {
138
+ return __Closest(base);
139
+ }
140
+ /* eslint-enable jsdoc/require-param */
141
+
142
+ /**
143
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
144
+ * @param {Object} elem - The element to check.
145
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
146
+ * @returns {void}
147
+ */
148
+ handleComponentTagRename(elem, tagName) {
149
+ const tag = tagName.toLowerCase();
150
+ const elemTag = elem.tagName.toLowerCase();
151
+
152
+ if (elemTag !== tag) {
153
+ elem.setAttribute(tag, true);
154
+ }
155
+ }
156
+
157
+ /**
158
+ * Validates if an element is a specific Auro component.
159
+ * @param {Object} elem - The element to validate.
160
+ * @param {String} tagName - The name of the Auro component to check against.
161
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
162
+ */
163
+ elementMatch(elem, tagName) {
164
+ const tag = tagName.toLowerCase();
165
+ const elemTag = elem.tagName.toLowerCase();
166
+
167
+ return elemTag === tag || elem.hasAttribute(tag);
168
+ }
169
+ }
170
+
171
+ var styleCss$5 = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
172
+
173
+ var colorCss$4 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
174
+
175
+ var tokensCss$3 = i$5`:host{--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color: var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color: transparent}`;
176
+
177
+ var styleCss$4 = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: 0.375rem;--margin-xs: 0.2rem;--margin-sm: 0.5rem;--margin-md: 0.75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
178
+
179
+ var colorCss$3 = i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color: var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color: var(--ds-color-utility-neutral-inverse, #ccd2db)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
180
+
181
+ var tokensCss$2 = i$5`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}`;
182
+
183
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
184
+ // See LICENSE in the project root for license information.
185
+
186
+
187
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
188
+ /**
189
+ * The auro-loader element is an easy to use animated loader component.
190
+ *
191
+ * @attr {Boolean} pulse - sets loader type
192
+ * @attr {Boolean} ringworm - sets loader type
193
+ * @attr {Boolean} laser - sets loader type
194
+ * @attr {Boolean} orbit - sets loader type
195
+ * @attr {Boolean} white - sets color of loader to white
196
+ * @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
197
+ * @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
198
+ * @attr {Boolean} xs - sets size to extra small
199
+ * @attr {Boolean} sm - sets size to small
200
+ * @attr {Boolean} md - sets size to medium
201
+ * @attr {Boolean} lg - sets size to large
202
+ * @csspart element - apply style to adjust speed of animation
203
+ */
204
+
205
+ // build the component class
206
+ class AuroLoader extends r {
207
+ constructor() {
208
+ super();
209
+
210
+ /**
211
+ * @private
212
+ */
213
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
214
+
215
+ /**
216
+ * @private
217
+ */
218
+ this.mdCount = 3;
219
+
220
+ /**
221
+ * @private
222
+ */
223
+ this.smCount = 2;
224
+
225
+ /**
226
+ * @private
227
+ */
228
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
229
+
230
+ this.orbit = false;
231
+ this.ringworm = false;
232
+ this.laser = false;
233
+ this.pulse = false;
234
+ }
235
+
236
+ // function to define props used within the scope of this component
237
+ static get properties() {
238
+ return {
239
+ pulse: {
240
+ type: Boolean,
241
+ reflect: true
242
+ },
243
+ orbit: {
244
+ type: Boolean,
245
+ reflect: true
246
+ },
247
+ ringworm: {
248
+ type: Boolean,
249
+ reflect: true
250
+ },
251
+ laser: {
252
+ type: Boolean,
253
+ reflect: true
254
+ }
255
+ };
256
+ }
257
+
258
+ static get styles() {
259
+ return [
260
+ i$5`${styleCss$4}`,
261
+ i$5`${colorCss$3}`,
262
+ i$5`${tokensCss$2}`
263
+ ];
264
+ }
265
+
266
+ /**
267
+ * This will register this element with the browser.
268
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
269
+ *
270
+ * @example
271
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
272
+ *
273
+ */
274
+ static register(name = "auro-loader") {
275
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroLoader);
276
+ }
277
+
278
+ firstUpdated() {
279
+ // Add the tag name as an attribute if it is different than the component name
280
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
281
+ }
282
+
283
+ connectedCallback() {
284
+ super.connectedCallback();
285
+ }
286
+
287
+ /**
288
+ * @private
289
+ * @returns {Array} Numbered array for template map.
290
+ */
291
+ defineTemplate() {
292
+ let nodes = Array.from(Array(this.mdCount).keys());
293
+
294
+ if (this.orbit || this.laser) {
295
+ nodes = Array.from(Array(this.smCount).keys());
296
+ } else if (this.ringworm) {
297
+ nodes = Array.from(Array(0).keys());
298
+ }
299
+
300
+ return nodes;
301
+ }
302
+
303
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
304
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
305
+
306
+ // function that renders the HTML and CSS into the scope of the component
307
+ render() {
308
+ return x`
309
+ ${this.defineTemplate().map((idx) => x`
310
+ <span part="element" class="loader node-${idx}"></span>
311
+ `)}
312
+
313
+ <div class="no-animation">Loading...</div>
314
+
315
+ ${this.ringworm ? x`
316
+ <svg part="element" class="circular" viewBox="25 25 50 50">
317
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
318
+ </svg>`
319
+ : ``
320
+ }
321
+ `;
322
+ }
323
+ }
324
+
325
+ var loaderVersion = '3.1.1';
326
+
327
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
328
+ // See LICENSE in the project root for license information.
329
+
330
+
331
+ /**
332
+ * @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
333
+ * @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
334
+ * @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
335
+ * @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
336
+ * @attr {Boolean} onDark - Set value for on-dark version of auro-button
337
+ * @attr {Boolean} rounded - If set to true, the button will have a rounded shape
338
+ * @attr {Boolean} slim - Set value for slim version of auro-button
339
+ * @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
340
+ * @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
341
+ * @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
342
+ * @attr {String} id - Set the unique ID of an element.
343
+ * @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
344
+ * @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
345
+ * @attr {String} value - Defines the value associated with the button which is submitted with the form data.
346
+ * @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
347
+ * @attr {Boolean} secondary - DEPRECATED
348
+ * @attr {Boolean} tertiary - DEPRECATED
349
+ * @prop {Boolean} ready - When false the component API should not be called.
350
+ * @event auroButton-ready - Notifies that the component has finished initializing.
351
+ * @slot - Default slot for the text of the button.
352
+ * @slot icon - Slot to provide auro-icon for the button.
353
+ * @csspart button - Apply CSS to HTML5 button.
354
+ * @csspart loader - Apply CSS to auro-loader.
355
+ * @csspart text - Apply CSS to text slot.
356
+ * @csspart icon - Apply CSS to icon slot.
357
+ */
358
+
359
+ /* eslint-disable lit/no-invalid-html, lit/binding-positions */
360
+
361
+ class AuroButton extends r {
362
+
363
+ constructor() {
364
+ super();
365
+ this.autofocus = false;
366
+ this.disabled = false;
367
+ this.iconOnly = false;
368
+ this.loading = false;
369
+ this.onDark = false;
370
+ this.ready = false;
371
+ this.secondary = false;
372
+ this.tertiary = false;
373
+ this.rounded = false;
374
+ this.slim = false;
375
+ this.fluid = false;
376
+
377
+ /**
378
+ * Generate unique names for dependency components.
379
+ */
380
+ const versioning = new AuroDependencyVersioning();
381
+
382
+ /**
383
+ * @private
384
+ */
385
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
386
+ }
387
+
388
+ static get styles() {
389
+ return [
390
+ tokensCss$3,
391
+ styleCss$5,
392
+ colorCss$4
393
+ ];
394
+ }
395
+
396
+ static get properties() {
397
+ return {
398
+ autofocus: {
399
+ type: Boolean,
400
+ reflect: true
401
+ },
402
+ disabled: {
403
+ type: Boolean,
404
+ reflect: true
405
+ },
406
+ secondary: {
407
+ type: Boolean,
408
+ reflect: true
409
+ },
410
+ tertiary: {
411
+ type: Boolean,
412
+ reflect: true
413
+ },
414
+ fluid: {
415
+ type: Boolean,
416
+ reflect: true
417
+ },
418
+ iconOnly: {
419
+ type: Boolean,
420
+ reflect: true
421
+ },
422
+ loading: {
423
+ type: Boolean,
424
+ reflect: true
425
+ },
426
+ onDark: {
427
+ type: Boolean,
428
+ reflect: true
429
+ },
430
+ rounded: {
431
+ type: Boolean,
432
+ reflect: true
433
+ },
434
+ slim: {
435
+ type: Boolean,
436
+ reflect: true
437
+ },
438
+ arialabel: {
439
+ type: String,
440
+ reflect: true
441
+ },
442
+ arialabelledby: {
443
+ type: String,
444
+ reflect: true
445
+ },
446
+ title: {
447
+ type: String,
448
+ reflect: true
449
+ },
450
+ type: {
451
+ type: String,
452
+ reflect: true
453
+ },
454
+ value: {
455
+ type: String,
456
+ reflect: true
457
+ },
458
+ variant: {
459
+ type: String,
460
+ reflect: true
461
+ },
462
+ ready: { type: Boolean },
463
+ };
464
+ }
465
+
466
+ /**
467
+ * This will register this element with the browser.
468
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
469
+ *
470
+ * @example
471
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
472
+ *
473
+ */
474
+ static register(name = "auro-button") {
475
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroButton);
476
+ }
477
+
478
+ /**
479
+ * Internal method to apply focus to the HTML5 button.
480
+ * @private
481
+ * @returns {void}
482
+ */
483
+ focus() {
484
+ this.renderRoot.querySelector('button').focus();
485
+ }
486
+
487
+ /**
488
+ * Marks the component as ready and sends event.
489
+ * @private
490
+ * @returns {void}
491
+ */
492
+ notifyReady() {
493
+ this.ready = true;
494
+
495
+ this.dispatchEvent(new CustomEvent('auroButton-ready', {
496
+ bubbles: true,
497
+ cancelable: false,
498
+ composed: true,
499
+ }));
500
+ }
501
+
502
+ updated() {
503
+ // support the old `secondary` and `tertiary` attributes` that are deprecated
504
+ if (this.secondary) {
505
+ this.setAttribute('variant', 'secondary');
506
+ }
507
+
508
+ if (this.tertiary) {
509
+ this.setAttribute('variant', 'tertiary');
510
+ }
511
+ }
512
+
513
+ firstUpdated() {
514
+ this.notifyReady();
515
+ }
516
+
517
+ render() {
518
+ const classes = {
519
+ 'util_insetLg--squish': true,
520
+ 'auro-button': true,
521
+ 'auroButton': true,
522
+ 'auro-button--rounded': this.rounded,
523
+ 'auro-button--slim': this.slim,
524
+ 'auro-button--iconOnly': this.iconOnly,
525
+ 'auro-button--iconOnlySlim': this.iconOnly && this.slim,
526
+ 'loading': this.loading
527
+ };
528
+
529
+ return u`
530
+ <button
531
+ part="button"
532
+ aria-label="${o(this.arialabel ? this.arialabel : undefined)}"
533
+ aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
534
+ ?autofocus="${this.autofocus}"
535
+ class="${e(classes)}"
536
+ ?disabled="${this.disabled || this.loading}"
537
+ ?onDark="${this.onDark}"
538
+ title="${o(this.title ? this.title : undefined)}"
539
+ name="${o(this.name ? this.name : undefined)}"
540
+ type="${o(this.type ? this.type : undefined)}"
541
+ variant="${o(this.variant ? this.variant : undefined)}"
542
+ .value="${o(this.value ? this.value : undefined)}"
543
+ @click="${() => {}}"
544
+ >
545
+ ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
546
+
547
+ <span class="contentWrapper">
548
+ <span class="textSlot" part="text">
549
+ ${this.iconOnly ? undefined : u`<slot></slot>`}
550
+ </span>
551
+
552
+ <span part="icon">
553
+ <slot name="icon"></slot>
554
+ </span>
555
+ </span>
556
+ </button>
557
+ `;
558
+ }
559
+ }
560
+
561
+ // Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
562
+ // See LICENSE in the project root for license information.
563
+
564
+
565
+ // build the component class
566
+ class AuroCounterButton extends AuroButton {
567
+
568
+ static get styles() {
569
+ return [
570
+ styleButtonCss,
571
+ styleButtonColorCss,
572
+ styleButtonTokenCss
573
+ ];
574
+ }
575
+
576
+ /**
577
+ * This will register this element with the browser.
578
+ * @param {string} [name="auro-counter-button"] - The name of element that you want to register to.
579
+ *
580
+ * @example
581
+ * AuroCounterButton.register("custom-counter-button") // this will register this element to <custom-counter-button/>
582
+ *
583
+ */
584
+ static register(name = "auro-counter-button") {
585
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounterButton);
586
+ }
587
+ }
588
+
589
+ /* istanbul ignore else */
590
+ // define the name of the custom component
591
+ if (!customElements.get("auro-counter-button")) {
592
+ customElements.define("auro-counter-button", AuroCounterButton);
593
+ }
594
+
595
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
596
+ // See LICENSE in the project root for license information.
597
+
598
+
599
+ /**
600
+ * @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
601
+ * @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
602
+ * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
603
+ */
604
+
605
+ class AuroElement extends r {
606
+
607
+ // function to define props used within the scope of this component
608
+ static get properties() {
609
+ return {
610
+ hidden: { type: Boolean,
611
+ reflect: true },
612
+ hiddenVisually: { type: Boolean,
613
+ reflect: true },
614
+ hiddenAudible: { type: Boolean,
615
+ reflect: true },
616
+ };
617
+ }
618
+
619
+ /**
620
+ * @private Function that determines state of aria-hidden
621
+ */
622
+ hideAudible(value) {
623
+ if (value) {
624
+ return 'true'
625
+ }
626
+
627
+ return 'false'
628
+ }
629
+ }
630
+
631
+ var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
632
+
633
+ /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
634
+
635
+ const _fetchMap = new Map();
636
+
637
+ /**
638
+ * A callback to parse Response body.
639
+ *
640
+ * @callback ResponseParser
641
+ * @param {Fetch.Response} response
642
+ * @returns {Promise}
643
+ */
644
+
645
+ /**
646
+ * A minimal in-memory map to de-duplicate Fetch API media requests.
647
+ *
648
+ * @param {String} uri
649
+ * @param {Object} [options={}]
650
+ * @param {ResponseParser} [options.responseParser=(response) => response.text()]
651
+ * @returns {Promise}
652
+ */
653
+ const cacheFetch = (uri, options = {}) => {
654
+ const responseParser = options.responseParser || ((response) => response.text());
655
+ if (!_fetchMap.has(uri)) {
656
+ _fetchMap.set(uri, fetch(uri).then(responseParser));
657
+ }
658
+ return _fetchMap.get(uri);
659
+ };
660
+
661
+ var styleCss$3 = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.wrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelContainer{line-height:1.8}`;
662
+
663
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
664
+ // See LICENSE in the project root for license information.
665
+
666
+
667
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
668
+ /**
669
+ * @attr {Boolean} onDark - Set value for on-dark version of auro-icon
670
+ * @slot - Hidden from visibility, used for a11y if icon description is needed
671
+ */
672
+
673
+ // build the component class
674
+ class BaseIcon extends AuroElement {
675
+ constructor() {
676
+ super();
677
+ this.onDark = false;
678
+ }
679
+
680
+ // function to define props used within the scope of this component
681
+ static get properties() {
682
+ return {
683
+ ...super.properties,
684
+ onDark: {
685
+ type: Boolean,
686
+ reflect: true
687
+ },
688
+
689
+ /**
690
+ * @private
691
+ */
692
+ svg: {
693
+ attribute: false,
694
+ reflect: true
695
+ }
696
+ };
697
+ }
698
+
699
+ static get styles() {
700
+ return i$5`
701
+ ${styleCss$3}
702
+ `;
703
+ }
704
+
705
+ /**
706
+ * Async function to fetch requested icon from npm CDN.
707
+ * @private
708
+ * @param {string} category - Icon category.
709
+ * @param {string} name - Icon name.
710
+ * @returns {SVGElement} DOM - Ready HTML to be appended.
711
+ */
712
+ async fetchIcon(category, name) {
713
+ let iconHTML = '';
714
+
715
+ if (category === 'logos') {
716
+ iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
717
+ } else {
718
+ iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
719
+ }
720
+
721
+ const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
722
+
723
+ return dom.body.querySelector('svg');
724
+ }
725
+
726
+ // lifecycle function
727
+ async firstUpdated() {
728
+ if (!this.customSvg) {
729
+ const svg = await this.fetchIcon(this.category, this.name);
730
+
731
+ if (svg) {
732
+ this.svg = svg;
733
+ } else if (!svg) {
734
+ const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
735
+
736
+ this.svg = penDOM.body.firstChild;
737
+ }
738
+ }
739
+ }
740
+ }
741
+
742
+ var tokensCss$1 = i$5`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
743
+
744
+ var colorCss$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
745
+
746
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
747
+ // See LICENSE in the project root for license information.
748
+
749
+
750
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
751
+ /**
752
+ * auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
753
+ *
754
+ * @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
755
+ * @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
756
+ * @attr {Boolean} customColor - Removes primary selector.
757
+ * @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
758
+ * @attr {Boolean} label - Exposes content in slot as icon label.
759
+ * @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
760
+ * @attr {Boolean} accent - Sets the icon to use the accent style.
761
+ * @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
762
+ * @attr {Boolean} disabled - Sets the icon to use the disabled style.
763
+ * @attr {Boolean} error - Sets the icon to use the error style.
764
+ * @attr {Boolean} info - Sets the icon to use the info style.
765
+ * @attr {Boolean} secondary - Sets the icon to use the secondary style.
766
+ * @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
767
+ * @attr {Boolean} subtle - Sets the icon to use the subtle style.
768
+ * @attr {Boolean} success - Sets the icon to use the success style.
769
+ * @attr {Boolean} warning - Sets the icon to use the warning style.
770
+ * @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
771
+ * @attr {String} uri - Set the uri for CDN used when fetching icons
772
+ * @slot - Hidden from visibility, used for a11y if icon description is needed.
773
+ * @slot svg - Used for custom SVG content.
774
+ */
775
+
776
+ // build the component class
777
+ class AuroIcon extends BaseIcon {
778
+ constructor() {
779
+ super();
780
+
781
+ this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
782
+
783
+ this.privateDefaults();
784
+ }
785
+
786
+ /**
787
+ * Internal Defaults.
788
+ * @private
789
+ * @returns {void}
790
+ */
791
+ privateDefaults() {
792
+ this.accent = false;
793
+ this.customColor = false;
794
+ this.customSvg = false;
795
+ this.disabled = false;
796
+ this.emphasis = false;
797
+ this.error = false;
798
+ this.info = false;
799
+ this.label = false;
800
+ this.primary = false;
801
+ this.secondary = false;
802
+ this.subtle = false;
803
+ this.success = false;
804
+ this.tertiary = false;
805
+ this.warning = false;
806
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
807
+ }
808
+
809
+ // function to define props used within the scope of this component
810
+ static get properties() {
811
+ return {
812
+ ...super.properties,
813
+ accent: {
814
+ type: Boolean,
815
+ reflect: true
816
+ },
817
+ ariaHidden: {
818
+ type: String,
819
+ reflect: true
820
+ },
821
+ category: {
822
+ type: String,
823
+ reflect: true
824
+ },
825
+ customColor: {
826
+ type: Boolean
827
+ },
828
+ customSvg: {
829
+ type: Boolean
830
+ },
831
+ disabled: {
832
+ type: Boolean,
833
+ reflect: true
834
+ },
835
+ emphasis: {
836
+ type: Boolean,
837
+ reflect: true
838
+ },
839
+ error: {
840
+ type: Boolean,
841
+ reflect: true
842
+ },
843
+ info: {
844
+ type: Boolean,
845
+ reflect: true
846
+ },
847
+ label: {
848
+ type: Boolean,
849
+ reflect: true
850
+ },
851
+ name: {
852
+ type: String,
853
+ reflect: true
854
+ },
855
+ primary: {
856
+ type: Boolean,
857
+ reflect: true
858
+ },
859
+ secondary: {
860
+ type: Boolean,
861
+ reflect: true
862
+ },
863
+ subtle: {
864
+ type: Boolean,
865
+ reflect: true
866
+ },
867
+ success: {
868
+ type: Boolean,
869
+ reflect: true
870
+ },
871
+ tertiary: {
872
+ type: Boolean,
873
+ reflect: true
874
+ },
875
+ uri: {
876
+ type: String
877
+ },
878
+ warning: {
879
+ type: Boolean,
880
+ reflect: true
881
+ }
882
+ };
883
+ }
41
884
 
42
885
  static get styles() {
43
- return [styleCss];
886
+ return [
887
+ super.styles,
888
+ i$5`${tokensCss$1}`,
889
+ i$5`${styleCss$3}`,
890
+ i$5`${colorCss$2}`
891
+ ];
892
+ }
893
+
894
+ /**
895
+ * This will register this element with the browser.
896
+ * @param {string} [name="auro-icon"] - The name of element that you want to register to.
897
+ *
898
+ * @example
899
+ * AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
900
+ *
901
+ */
902
+ static register(name = "auro-icon") {
903
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
904
+ }
905
+
906
+ connectedCallback() {
907
+ super.connectedCallback();
908
+
909
+ // Add the tag name as an attribute if it is different than the component name
910
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
911
+ }
912
+
913
+ /**
914
+ * @returns {void} Exposes CSS parts for styling from parent components.
915
+ */
916
+ exposeCssParts() {
917
+ this.setAttribute('exportparts', 'svg:iconSvg');
44
918
  }
45
919
 
46
920
  // function that renders the HTML and CSS into the scope of the component
47
921
  render() {
48
- return u$1`
49
- <div>
50
- <slot></slot>
922
+ const a11y = {
923
+ 'labelContainer': true,
924
+ 'util_displayHiddenVisually': !this.label
925
+ };
926
+
927
+ const classes = {
928
+ 'label': this.label,
929
+ 'wrapper': true,
930
+ };
931
+
932
+ return x`
933
+ <div
934
+ class="${e(classes)}"
935
+ title="${o(this.title || undefined)}">
936
+ <span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
937
+ ${this.customSvg ? x`
938
+ <slot name="svg"></slot>
939
+ ` : x`
940
+ ${this.svg}
941
+ `
942
+ }
943
+ </span>
944
+
945
+ <div class="${e(a11y)}">
946
+ <slot></slot>
947
+ </div>
948
+ </div>
949
+ `;
950
+ }
951
+ }
952
+
953
+ var iconVersion = '6.1.2';
954
+
955
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
956
+ // See LICENSE in the project root for license information.
957
+
958
+
959
+ class AuroFormValidation {
960
+ constructor() {
961
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
962
+ }
963
+
964
+ /**
965
+ * Resets the element to its initial state.
966
+ * @private
967
+ * @param {object} elem - HTML element to reset.
968
+ * @returns {void}
969
+ */
970
+ reset(elem) {
971
+ elem.validity = undefined;
972
+ elem.value = undefined;
973
+
974
+ // Resets the second value of the datepicker in range state
975
+ if (elem.valueEnd) {
976
+ elem.valueEnd = undefined;
977
+ }
978
+
979
+ // Resets selected option of element
980
+ if (elem.optionSelected) {
981
+ elem.optionSelected = undefined;
982
+ }
983
+
984
+ // Runs validation to handle error attribute
985
+ this.validate(elem);
986
+ }
987
+
988
+ /**
989
+ * Validates the attributes of a given element based on predefined validation rules.
990
+ *
991
+ * @param {HTMLElement} elem - The element to be validated.
992
+ * @returns {void}
993
+ *
994
+ * @example
995
+ * // Assuming `inputElement` is a reference to an input element in the DOM
996
+ * validateElementAttributes(inputElement);
997
+ *
998
+ * The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
999
+ * If a validation rule is violated, it sets the element's validity state and error message accordingly.
1000
+ *
1001
+ * Validation rules:
1002
+ * - input:
1003
+ * - length:
1004
+ * - tooShort: Checks if the value length is less than the minimum length.
1005
+ * - tooLong: Checks if the value length exceeds the maximum length.
1006
+ * - pattern:
1007
+ * - patternMismatch: Checks if the value does not match the specified pattern.
1008
+ * - counter:
1009
+ * - range:
1010
+ * - rangeOverflow: Checks if the value exceeds the maximum value.
1011
+ * - rangeUnderflow: Checks if the value is less than the minimum value.
1012
+ */
1013
+ validateElementAttributes(elem) {
1014
+ const validationRules = {
1015
+ input: {
1016
+ length: [
1017
+ {
1018
+ check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
1019
+ validity: 'tooShort',
1020
+ message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
1021
+ },
1022
+ {
1023
+ check: (e) => e.value?.length > e.maxLength,
1024
+ validity: 'tooLong',
1025
+ message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
1026
+ }
1027
+ ],
1028
+ pattern: [
1029
+ {
1030
+ check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
1031
+ validity: 'patternMismatch',
1032
+ message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
1033
+ }
1034
+ ]
1035
+ },
1036
+ counter: {
1037
+ range: [
1038
+ {
1039
+ check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
1040
+ validity: 'rangeOverflow',
1041
+ message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
1042
+ },
1043
+ {
1044
+ check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
1045
+ validity: 'rangeUnderflow',
1046
+ message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
1047
+ }
1048
+ ]
1049
+ }
1050
+ };
1051
+
1052
+ let elementType;
1053
+ if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1054
+ elementType = 'input';
1055
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
1056
+ elementType = 'counter';
1057
+ }
1058
+
1059
+ if (elementType) {
1060
+ const rules = validationRules[elementType];
1061
+
1062
+ if (rules) {
1063
+ Object.values(rules).flat().forEach(rule => {
1064
+ if (rule.check(elem)) {
1065
+ elem.validity = rule.validity;
1066
+ elem.errorMessage = rule.message(elem);
1067
+ }
1068
+ });
1069
+ }
1070
+ }
1071
+ }
1072
+
1073
+ /**
1074
+ * Determines the validity state of the element based on the type attribute.
1075
+ * @private
1076
+ * @param {object} elem - HTML element to validate.
1077
+ * @returns {void}
1078
+ */
1079
+ validateType(elem) {
1080
+ if (elem.hasAttribute('type')) {
1081
+ if (elem.type === 'email') {
1082
+ const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
1083
+
1084
+ if (!elem.value.match(emailRegex)) {
1085
+ elem.validity = 'patternMismatch';
1086
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1087
+ }
1088
+ } else if (elem.type === 'credit-card') {
1089
+ if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
1090
+ elem.validity = 'tooShort';
1091
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1092
+ }
1093
+ } else if (elem.type === 'number') {
1094
+ if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
1095
+ elem.validity = 'rangeOverflow';
1096
+ elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
1097
+ }
1098
+
1099
+ if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
1100
+ elem.validity = 'rangeUnderflow';
1101
+ elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
1102
+ }
1103
+ } else if (elem.type === 'month-day-year' ||
1104
+ elem.type === 'month-year' ||
1105
+ elem.type === 'month-fullYear' ||
1106
+ elem.type === 'year-month-day'
1107
+ ) {
1108
+ if (elem.value?.length > 0 && elem.value.length < elem.dateStrLength) {
1109
+ elem.validity = 'tooShort';
1110
+ elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1111
+ } else {
1112
+ const valueDate = new Date(elem.value);
1113
+
1114
+ // validate max
1115
+ if (elem.max !== undefined) {
1116
+ const maxDate = new Date(elem.max);
1117
+
1118
+ if (valueDate > maxDate) {
1119
+ elem.validity = 'rangeOverflow';
1120
+ elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
1121
+ }
1122
+ }
1123
+
1124
+ // validate min
1125
+ if (elem.min) {
1126
+ const minDate = new Date(elem.min);
1127
+
1128
+ if (valueDate < minDate) {
1129
+ elem.validity = 'rangeUnderflow';
1130
+ elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
1131
+ }
1132
+ }
1133
+ }
1134
+ }
1135
+ }
1136
+ }
1137
+
1138
+ /**
1139
+ * Determines the validity state of the element.
1140
+ * @param {object} elem - HTML element to validate.
1141
+ * @param {boolean} force - Boolean that forces validation to run.
1142
+ * @returns {void}
1143
+ */
1144
+ validate(elem, force) {
1145
+ this.getInputElements(elem);
1146
+ this.getAuroInputs(elem);
1147
+
1148
+ // Validate only if noValidate is not true and the input does not have focus
1149
+ const validationShouldRun = force || (!elem.contains(document.activeElement) && elem.value !== undefined) || elem.validateOnInput;
1150
+
1151
+ if (elem.hasAttribute('error')) {
1152
+ elem.validity = 'customError';
1153
+ elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
1154
+ } else if (validationShouldRun) {
1155
+ elem.validity = 'valid';
1156
+ elem.errorMessage = '';
1157
+
1158
+ /**
1159
+ * Only validate once we interact with the datepicker
1160
+ * elem.value === undefined is the initial state pre-interaction.
1161
+ *
1162
+ * The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
1163
+ */
1164
+
1165
+ let hasValue = elem.value && elem.value.length > 0;
1166
+
1167
+ // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
1168
+ if (this.auroInputElements?.length === 2) {
1169
+ if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
1170
+ hasValue = false;
1171
+ }
1172
+ }
1173
+
1174
+ if (!hasValue && elem.required) {
1175
+ elem.validity = 'valueMissing';
1176
+ elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
1177
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1178
+ this.validateType(elem);
1179
+ this.validateElementAttributes(elem);
1180
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
1181
+ this.validateElementAttributes(elem);
1182
+ }
1183
+ }
1184
+
1185
+ if (this.auroInputElements?.length > 0) {
1186
+ elem.validity = this.auroInputElements[0].validity;
1187
+ elem.errorMessage = this.auroInputElements[0].errorMessage;
1188
+
1189
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
1190
+ elem.validity = this.auroInputElements[1].validity;
1191
+ elem.errorMessage = this.auroInputElements[1].errorMessage;
1192
+ }
1193
+ }
1194
+
1195
+ if (validationShouldRun || elem.hasAttribute('error')) {
1196
+ // Use the validity message override if it is declared
1197
+ if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
1198
+ elem.errorMessage = elem.ValidityMessageOverride;
1199
+ }
1200
+
1201
+ this.getErrorMessage(elem);
1202
+
1203
+ elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1204
+ bubbles: true,
1205
+ composed: true,
1206
+ detail: {
1207
+ validity: elem.validity,
1208
+ message: elem.errorMessage
1209
+ }
1210
+ }));
1211
+ }
1212
+ }
1213
+
1214
+ /**
1215
+ * Gets all the HTML5 `inputs` in the element shadow DOM.
1216
+ * @private
1217
+ * @param {object} elem - HTML element to validate.
1218
+ * @returns {void}
1219
+ */
1220
+ getInputElements(elem) {
1221
+ this.inputElements = elem.renderRoot.querySelectorAll('input');
1222
+ }
1223
+
1224
+ /**
1225
+ * Gets all the `auro-inputs` in the element shadow DOM.
1226
+ * @private
1227
+ * @param {object} elem - HTML element to validate.
1228
+ * @returns {void}
1229
+ */
1230
+ getAuroInputs(elem) {
1231
+ this.auroInputElements = elem.shadowRoot.querySelectorAll('auro-input, [auro-input]');
1232
+ }
1233
+
1234
+ /**
1235
+ * Return appropriate error message.
1236
+ * @private
1237
+ * @param {object} elem - HTML element to validate.
1238
+ * @returns {void}
1239
+ */
1240
+ getErrorMessage(elem) {
1241
+ if (elem.validity !== 'valid') {
1242
+ if (elem.setCustomValidity) {
1243
+ elem.errorMessage = elem.setCustomValidity;
1244
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
1245
+ const input = elem.renderRoot.querySelector('input');
1246
+
1247
+ if (input.validationMessage.length > 0) {
1248
+ elem.errorMessage = input.validationMessage;
1249
+ }
1250
+ } else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
1251
+ const firstInput = this.inputElements[0];
1252
+
1253
+ if (firstInput.validationMessage.length > 0) {
1254
+ elem.errorMessage = firstInput.validationMessage;
1255
+ } else if (this.inputElements?.length === 2) {
1256
+ const secondInput = this.inputElements[1];
1257
+
1258
+ if (secondInput.validationMessage.length > 0) {
1259
+ elem.errorMessage = secondInput.validationMessage;
1260
+ }
1261
+ }
1262
+ }
1263
+ } else {
1264
+ elem.errorMessage = undefined;
1265
+ }
1266
+ }
1267
+ }
1268
+
1269
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1270
+ // See LICENSE in the project root for license information.
1271
+
1272
+
1273
+ class IconUtil {
1274
+
1275
+ /**
1276
+ * Generates an HTML element containing an SVG icon based on the provided `svgContent`.
1277
+ *
1278
+ * @param {string} svgContent - The SVG content to be embedded.
1279
+ * @param {Object} _attributes - Additional attributes to set on the icon element.
1280
+ * @returns {Element} The HTML element containing the SVG icon.
1281
+ */
1282
+ static generateSvgHtml(svgContent) {
1283
+ const dom = new DOMParser().parseFromString(svgContent.svg, 'text/html');
1284
+ const svg = dom.body.firstChild;
1285
+
1286
+ svg.setAttribute('slot', 'svg');
1287
+
1288
+ return u`${svg}`;
1289
+ }
1290
+ }
1291
+
1292
+ var plusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"plus-lg","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-hidden=\"true\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><path d=\"M11.898 5.007 12 5a.75.75 0 0 1 .743.648l.007.102v5.5h5.5a.75.75 0 0 1 .743.648L19 12a.75.75 0 0 1-.648.743l-.102.007h-5.501l.001 5.5a.75.75 0 0 1-.648.743L12 19a.75.75 0 0 1-.743-.648l-.007-.102-.001-5.5H5.75a.75.75 0 0 1-.743-.648L5 12a.75.75 0 0 1 .648-.743l.102-.007h5.5v-5.5a.75.75 0 0 1 .648-.743L12 5z\"/></svg>"};
1293
+
1294
+ var minusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"minus-lg","category":"interface","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-hidden=\"true\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><path d=\"M5.75 12.75h12.5a.75.75 0 1 0 0-1.5H5.75a.75.75 0 1 0 0 1.5\"/></svg>"};
1295
+
1296
+ var tokensCss = i$5`:host{--ds-auro-counter-text-default: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-counter-text-secondary: var(--ds-color-text-secondary-default, #525252);--ds-auro-counter-text-disabled: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-ui-hover: var(--ds-color-ui-hover-default, #054687);--ds-auro-counter-control-ui-disabled: var(--ds-color-ui-disabled-default, rgba(0, 116, 200, 0.2));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03));--ds-auro-counter-control-line-height: var(--ds-text-body-size-sm, 0.875rem);--ds-auro-counter-icon-color-default: var(--ds-color-ui-default-default, #0074c8)}`;
1297
+
1298
+ var colorCss$1 = i$5`.counter{color:var(--ds-auro-counter-text-default)}[name=description]::slotted(*){color:var(--ds-auro-counter-text-secondary)}.controlIcon{color:var(--ds-auro-counter-icon-color-default)}.quantityWrapper{background-color:var(--ds-auro-counter-control-ui-bkg)}[disabled] .controlIcon,:host([disabled]) .controlIcon{color:var(--ds-auro-counter-control-ui-disabled)}[disabled] label,[disabled] [name=description]::slotted(*),[disabled]::part(counterControl),:host([disabled]) label,:host([disabled]) [name=description]::slotted(*),:host([disabled])::part(counterControl){color:var(--ds-auro-counter-text-disabled)}`;
1299
+
1300
+ var styleCss$2 = i$5`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;line-height:0}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
1301
+
1302
+ /* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
1303
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1304
+ // See LICENSE in the project root for license information.
1305
+
1306
+
1307
+ /**
1308
+ * Auro Counter is a customizable counter component for user interface interactions.
1309
+ *
1310
+ * This web component provides a flexible counter interface with increment and decrement buttons,
1311
+ * supporting optional sub-labels and disabled states.
1312
+ *
1313
+ * @element auro-counter
1314
+ * @extends LitElement
1315
+ * @slot Default - Main label content for the counter.
1316
+ * @slot description - Descriptive content for the counter.
1317
+ */
1318
+ class AuroCounter extends r {
1319
+ constructor() {
1320
+ super();
1321
+
1322
+ this.disabled = false;
1323
+ this.disableMax = false;
1324
+ this.disableMin = false;
1325
+ this.max = 9;
1326
+ this.min = 0;
1327
+ this.validity = undefined;
1328
+ this.value = undefined;
1329
+
1330
+ /**
1331
+ * @private
1332
+ */
1333
+ this.validation = new AuroFormValidation();
1334
+
1335
+ /**
1336
+ * Generate unique names for dependency components.
1337
+ * @private
1338
+ */
1339
+ const versioning = new AuroDependencyVersioning();
1340
+
1341
+ /**
1342
+ * Dynamically generated icon tag for counter buttons.
1343
+ * @private
1344
+ * @type {string}
1345
+ */
1346
+ this.iconTag = versioning.generateTag("auro-icon", iconVersion, AuroIcon);
1347
+ }
1348
+
1349
+ /**
1350
+ * Defines reactive properties for the component.
1351
+ * @returns {Object} Property configuration.
1352
+ */
1353
+ static get properties() {
1354
+ return {
1355
+
1356
+ /**
1357
+ * Indicates if the counter is disabled.
1358
+ */
1359
+ disabled: {
1360
+ type: Boolean,
1361
+ reflect: true,
1362
+ },
1363
+
1364
+ /**
1365
+ * Group will attach to counter to disable the increment button.
1366
+ * @private
1367
+ */
1368
+ disableMax: {
1369
+ type: Boolean,
1370
+ },
1371
+
1372
+ /**
1373
+ * Group will attach to counter to disable the decrement button.
1374
+ * @private
1375
+ */
1376
+ disableMin: {
1377
+ type: Boolean,
1378
+ },
1379
+
1380
+ /**
1381
+ * The maximum value for the counter.
1382
+ */
1383
+ max: {
1384
+ type: Number,
1385
+ reflect: true,
1386
+ },
1387
+
1388
+ /**
1389
+ * The minimum value for the counter.
1390
+ */
1391
+ min: {
1392
+ type: Number,
1393
+ reflect: true,
1394
+ },
1395
+
1396
+ /**
1397
+ * The validity state of the counter.
1398
+ */
1399
+ validity: {
1400
+ type: String,
1401
+ reflect: true,
1402
+ },
1403
+
1404
+ /**
1405
+ * The current value of the counter.
1406
+ */
1407
+ value: {
1408
+ type: Number,
1409
+ },
1410
+ };
1411
+ }
1412
+
1413
+ /**
1414
+ * Registers the custom element with the browser.
1415
+ * @param {string} [name="auro-counter"] - Custom element name to register.
1416
+ * @example
1417
+ * AuroCounter.register("custom-counter") // registers <custom-counter/>
1418
+ */
1419
+ static register(name = "auro-counter") {
1420
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounter);
1421
+ }
1422
+
1423
+ static get styles() {
1424
+ return [
1425
+ tokensCss,
1426
+ colorCss$1,
1427
+ styleCss$2
1428
+ ];
1429
+ }
1430
+
1431
+ /**
1432
+ * Increments the counter value by 1. If a value is provided, it increments by that amount.
1433
+ * @method increment
1434
+ * @param {number} [value] - The amount to increment by.
1435
+ * @returns {void}
1436
+ */
1437
+ increment(value) {
1438
+ if (this.disabled) {
1439
+ return;
1440
+ }
1441
+
1442
+ this.value += value !== undefined ? value : 1;
1443
+ }
1444
+
1445
+ /**
1446
+ * Decrements the value of the counter by 1. If a value is provided, it decrements by that amount.
1447
+ * @method decrement
1448
+ * @param {number} [value] - The amount to decrement by.
1449
+ * @returns {void}
1450
+ */
1451
+ decrement(value) {
1452
+ if (this.disabled) {
1453
+ return;
1454
+ }
1455
+
1456
+ this.value -= value !== undefined ? value : 1;
1457
+ }
1458
+
1459
+ /**
1460
+ * Initializes the value of the counter.
1461
+ * If the current value is undefined, it sets the value to the minimum value.
1462
+ * @private
1463
+ */
1464
+ initValue() {
1465
+ if (this.value === undefined) {
1466
+ this.value = this.min;
1467
+ }
1468
+ }
1469
+
1470
+ /**
1471
+ * Determines if the increment button should be disabled based on the current value and extrema.
1472
+ *
1473
+ * @param {number} extrema - The extreme value (either min or max) to compare against the current value.
1474
+ * @returns {boolean} - Returns true if the increment button should be disabled, otherwise false.
1475
+ * @private
1476
+ */
1477
+ isIncrementDisabled(extrema) {
1478
+ // Initially, the value is undefined and then set to the minimum value. During this transition, the increment button should be disabled.
1479
+ if (this.value === undefined) {
1480
+ return false;
1481
+ } else if (extrema === this.min && this.value > extrema) {
1482
+ return false;
1483
+ } else if (extrema === this.max && this.value < extrema) {
1484
+ return false;
1485
+ }
1486
+
1487
+ return true;
1488
+ }
1489
+
1490
+ /**
1491
+ * Moves the focus to the first enabled button within the shadow DOM.
1492
+ * This method searches for the first `auro-counter-button` element that is not disabled
1493
+ * and sets the focus on it.
1494
+ * @private
1495
+ */
1496
+ jumpFocusToEnabled() {
1497
+ const button = this.shadowRoot.querySelector("auro-counter-button:not([disabled])");
1498
+ if (button && button instanceof HTMLButtonElement) {
1499
+ button.focus();
1500
+ }
1501
+ }
1502
+
1503
+ /**
1504
+ * Validates value.
1505
+ * @param {boolean} [force=false] - Whether to force validation.
1506
+ */
1507
+ validate(force = false) {
1508
+ this.validation.validate(this, force);
1509
+ }
1510
+
1511
+
1512
+ firstUpdated() {
1513
+ this.initValue();
1514
+ }
1515
+
1516
+ updated(changedProperties) {
1517
+ if (changedProperties.has("value")) {
1518
+ this.validate();
1519
+ this.dispatchEvent(
1520
+ new CustomEvent("input", {
1521
+ detail: {
1522
+ value: this.value,
1523
+ },
1524
+ }),
1525
+ {
1526
+ bubble: true,
1527
+ composable: true,
1528
+ }
1529
+ );
1530
+
1531
+ if (
1532
+ this.value === this.max ||
1533
+ this.value === this.min ||
1534
+ changedProperties.get("disableMax") ||
1535
+ changedProperties.get("disableMin")
1536
+ ) {
1537
+ this.jumpFocusToEnabled();
1538
+ }
1539
+ }
1540
+ /* eslint-disable no-extra-parens */
1541
+ if (
1542
+ (changedProperties.has("disableMax") &&
1543
+ changedProperties.get("disableMax") !== undefined) ||
1544
+ (changedProperties.has("disableMin") &&
1545
+ changedProperties.get("disableMin") !== undefined)
1546
+ ) {
1547
+ this.jumpFocusToEnabled();
1548
+ }
1549
+ /* eslint-enable no-extra-parens */
1550
+ }
1551
+
1552
+ render() {
1553
+ return u`
1554
+ <div class="counter">
1555
+ <div class="content" >
1556
+ <label class="label"><slot></slot></label>
1557
+ <slot name="description"></slot>
1558
+ </div>
1559
+
1560
+ <div part="counterControl">
1561
+ <auro-counter-button
1562
+ part="controlMinus"
1563
+ @click="${() => this.decrement()}"
1564
+ ?disabled="${this.disabled || this.disableMin || this.isIncrementDisabled(this.min)}"
1565
+ >
1566
+ <${this.iconTag} class="controlIcon" slot="icon" customSvg> ${IconUtil.generateSvgHtml(minusIcon)} </${this.iconTag}>
1567
+ </auro-counter-button>
1568
+
1569
+ <div class="quantityWrapper">
1570
+ <div class="quantity">${this.value !== undefined ? this.value : this.min}</div>
1571
+ </div>
1572
+
1573
+ <auro-counter-button
1574
+ part="controlPlus"
1575
+ @click="${() => this.increment()}"
1576
+ ?disabled="${this.disabled || this.disableMax || this.isIncrementDisabled(this.max)}"
1577
+ >
1578
+ <${this.iconTag} class="controlIcon" slot="icon" customSvg> ${IconUtil.generateSvgHtml(plusIcon)} </${this.iconTag}>
1579
+ </auro-counter-button>
1580
+ </div>
51
1581
  </div>
52
1582
  `;
53
1583
  }
54
1584
  }
55
1585
 
1586
+ var styleCss$1 = i$5`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:auto;text-overflow:ellipsis}[auro-dropdown]{display:block}`;
1587
+
1588
+ var dropdownVersion = '3.0.0';
1589
+
1590
+ var styleCss = i$5`:host{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}:host ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}:host([isindropdown]){padding:var(--ds-size-300, 1.5rem)}`;
1591
+
1592
+ var colorCss = i$5`:host ::slotted(*:not(:first-child)){border-color:var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12))}`;
1593
+
1594
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1595
+ // See LICENSE in the project root for license information.
1596
+
1597
+
1598
+ /**
1599
+ * Auro Counter Wrapper is a group of counter components.
1600
+ *
1601
+ * This web component provides a flexible interface for grouping multiple counters, supporting
1602
+ * validation, custom validity messages, and disabled states based on the group's value.
1603
+ *
1604
+ * @element auro-counter-group
1605
+ * @extends LitElement
1606
+ * @slot Default - Slot for counter elements.
1607
+ */
1608
+ class AuroCounterWrapper extends r {
1609
+
1610
+ static get styles() {
1611
+ return [
1612
+ colorCss,
1613
+ styleCss
1614
+ ];
1615
+ }
1616
+
1617
+ /**
1618
+ * Registers the custom element with the browser.
1619
+ * @param {string} [name="auro-counter-wrapper"] - Custom element name to register.
1620
+ * @example
1621
+ * AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
1622
+ */
1623
+ static register(name = "auro-counter-wrapper") {
1624
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounterWrapper);
1625
+ }
1626
+
1627
+ // function that renders the HTML and CSS into the scope of the component
1628
+ render() {
1629
+ return u`<slot></slot>`;
1630
+ }
1631
+ }
1632
+
56
1633
  /* istanbul ignore else */
57
1634
  // define the name of the custom component
58
- if (!customElements.get("auro-counter")) {
59
- customElements.define("auro-counter", AuroCounter);
1635
+ if (!customElements.get("auro-counter-wrapper")) {
1636
+ customElements.define("auro-counter-wrapper", AuroCounterWrapper);
60
1637
  }
61
1638
 
62
- /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
1639
+ /* eslint-disable lit/no-invalid-html, lit/binding-positions */
1640
+
1641
+
1642
+ /**
1643
+ * Auro Counter Group is a group of counter components.
1644
+ *
1645
+ * This web component provides a flexible interface for grouping multiple counters, supporting
1646
+ * validation, custom validity messages, and disabled states based on the group's value.
1647
+ *
1648
+ * @element auro-counter-group
1649
+ * @extends LitElement
1650
+ * @slot Default - Slot for counter elements.
1651
+ * @slot Label - Dropdown label content. Only used when `isDropdown` is true.
1652
+ * @slot ValueText - Dropdown value text display. Only used when `isDropdown` is true.
1653
+ * @slot HelpText - Dropdown help text content. Only used when `isDropdown` is true.
1654
+ */
1655
+ class AuroCounterGroup extends r {
1656
+ constructor() {
1657
+ super();
1658
+
1659
+ this.isDropdown = false;
1660
+
1661
+ this.max = undefined;
1662
+ this.min = undefined;
1663
+ this.total = undefined;
1664
+ this.validity = undefined;
1665
+ this.value = undefined;
1666
+
1667
+ /**
1668
+ * @private
1669
+ */
1670
+ this.counters = undefined;
1671
+
1672
+ /**
1673
+ * @private
1674
+ */
1675
+ this.validation = new AuroFormValidation();
1676
+
1677
+ /**
1678
+ * Generate unique names for dependency components.
1679
+ * @private
1680
+ */
1681
+ const versioning = new AuroDependencyVersioning();
1682
+
1683
+ /**
1684
+ * Dynamically generated dropdown tag.
1685
+ * @private
1686
+ * @type {string}
1687
+ */
1688
+ this.dropdownTag = versioning.generateTag("auro-dropdown", dropdownVersion, AuroDropdown);
1689
+ }
1690
+
1691
+ static get styles() {
1692
+ return [styleCss$1];
1693
+ }
1694
+
1695
+ static get properties() {
1696
+ return {
1697
+
1698
+ /**
1699
+ * Indicates if the counter group is displayed as a dropdown.
1700
+ */
1701
+ isDropdown: {
1702
+ type: Boolean
1703
+ },
1704
+
1705
+ /**
1706
+ * The maximum value allowed for the whole group of counters.
1707
+ */
1708
+ max: {
1709
+ type: Number,
1710
+ reflect: true,
1711
+ },
1712
+
1713
+ /**
1714
+ * The minimum value allowed for the whole group of counters.
1715
+ */
1716
+ min: {
1717
+ type: Number,
1718
+ reflect: true,
1719
+ },
1720
+
1721
+ /**
1722
+ * Reflects the validity state.
1723
+ */
1724
+ validity: {
1725
+ type: String,
1726
+ reflect: true,
1727
+ },
1728
+
1729
+ /**
1730
+ * The total value of the counters.
1731
+ */
1732
+ total: {
1733
+ type: Number,
1734
+ },
1735
+
1736
+ /**
1737
+ * The current individual values of the nested counters.
1738
+ */
1739
+ value: {
1740
+ type: Object,
1741
+ }
1742
+ };
1743
+ }
1744
+
1745
+ /**
1746
+ * Dynamically disables increment/decrement buttons on a counter based on group value.
1747
+ * This method checks the total aggregated value against the group's min and max properties.
1748
+ * If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
1749
+ *
1750
+ * @param {HTMLElement} counter - The counter element to potentially disable.
1751
+ * @private
1752
+ */
1753
+ manageDisabled(counter) {
1754
+ counter.disableMax = false;
1755
+ counter.disableMin = false;
63
1756
 
1757
+ if (this.total <= this.min) {
1758
+ counter.disableMin = true;
1759
+ } else if (this.total >= this.max) {
1760
+ counter.disableMax = true;
1761
+ }
1762
+ }
1763
+
1764
+ /**
1765
+ * Attaches input event listeners to all auro-counter elements within the component.
1766
+ * This method selects all `auro-counter` and `[auro-counter]` elements and adds an `input` event listener to each.
1767
+ * The listener calls `this.updateValue()` whenever the value of a counter changes.
1768
+ * @private
1769
+ */
1770
+ configureCounters() {
1771
+ this.counters = this.querySelectorAll("auro-counter, [auro-counter]");
1772
+ this.counters.forEach((counter) => {
1773
+ counter.addEventListener("input", () => this.updateValue());
1774
+ });
1775
+ }
1776
+
1777
+ /**
1778
+ * Configures the dropdown counters by selecting all `auro-counter` elements
1779
+ * and appending them to the `auro-counter-wrapper` element within the shadow DOM.
1780
+ * Adds an event listener to each counter to update the value on input.
1781
+ * @private
1782
+ */
1783
+ configureDropdownCounters() {
1784
+ const counterWrapper = this.shadowRoot.querySelector('auro-counter-wrapper');
1785
+ this.counters = this.querySelectorAll("auro-counter, [auro-counter]");
1786
+
1787
+ this.counters.forEach((counter) => {
1788
+ counterWrapper.append(counter);
1789
+ });
1790
+
1791
+ this.counters = counterWrapper.querySelectorAll("auro-counter, [auro-counter]");
1792
+ this.counters.forEach((counter) => {
1793
+ counter.addEventListener("input", () => this.updateValue());
1794
+ });
1795
+ }
1796
+
1797
+ /**
1798
+ * Safely converts a value to a number, returning 0 if invalid.
1799
+ * @private
1800
+ * @param {*} value - The value to convert.
1801
+ * @returns {number} The converted number or 0 if invalid.
1802
+ */
1803
+ safeNumberConversion(value) {
1804
+ const num = Number(value);
1805
+ return Number.isNaN(num) ? 0 : num;
1806
+ }
1807
+
1808
+ /**
1809
+ * Updates the aggregate value based on the values of contained auro-counter components.
1810
+ * This method queries for all `auro-counter` elements, sums their values, and updates the component's `value` property.
1811
+ * Additionally, it iterates through each counter and calls `manageDisabled()` on it.
1812
+ * @private
1813
+ */
1814
+ updateValue() {
1815
+ this.value = Array.from(this.counters).reduce((acc, counter, index) => {
1816
+ const name = counter.hasAttribute('name') ? counter.getAttribute('name') : `counter-${index}`;
1817
+ acc[name] = this.safeNumberConversion(counter.value);
1818
+ return acc;
1819
+ }, {});
1820
+
1821
+ this.total = Array.from(this.counters).reduce(
1822
+ (total, counter) => total + this.safeNumberConversion(counter.value),
1823
+ 0,
1824
+ );
1825
+
1826
+ this.counters.forEach((counter) => {
1827
+ this.manageDisabled(counter);
1828
+ });
1829
+ }
1830
+
1831
+ /**
1832
+ * Validates value.
1833
+ * @param {boolean} [force=false] - Whether to force validation.
1834
+ */
1835
+ validate(force = false) {
1836
+ this.validation.validate(this, force);
1837
+ }
1838
+
1839
+ updated(changedProperties) {
1840
+ if (changedProperties.has("value")) {
1841
+ this.validate();
1842
+ this.dispatchEvent(
1843
+ new CustomEvent("input", {
1844
+ detail: {
1845
+ total: this.total,
1846
+ value: this.value
1847
+ },
1848
+ }),
1849
+ {
1850
+ bubble: true,
1851
+ composable: true,
1852
+ }
1853
+ );
1854
+ }
1855
+ }
1856
+
1857
+ /**
1858
+ * Registers the custom element with the browser.
1859
+ * @param {string} [name="auro-counter-group"] - Custom element name to register.
1860
+ * @example
1861
+ * AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
1862
+ */
1863
+ static register(name = "auro-counter-group") {
1864
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounterGroup);
1865
+ }
1866
+
1867
+ // function that renders the HTML and CSS into the scope of the component
1868
+ render() {
1869
+ return u`
1870
+ ${this.isDropdown
1871
+ ? u`<${this.dropdownTag} common chevron>
1872
+ <div slot="trigger"><slot name="valueText">
1873
+ ${this.counters && Array.from(this.counters).map((counter, index) => `${counter.value} ${counter.shadowRoot.querySelector('.label slot').assignedNodes()[0].textContent}${index !== this.counters.length - 1 ? ', ' : ''}`)}
1874
+ </slot></div>
1875
+ <div slot="label"><slot name="label"></slot></div>
1876
+ <div slot="helpText"><slot name="helpText"></slot></div>
1877
+ <auro-counter-wrapper isInDropdown>
1878
+ </auro-counter-wrapper>
1879
+ </${this.dropdownTag}>
1880
+ <slot @slotchange=${() => this.configureDropdownCounters()}></slot>`
1881
+ : u`<auro-counter-wrapper><slot @slotchange=${() => this.configureCounters()}></slot></auro-counter-wrapper>`
1882
+ }`;
1883
+ }
1884
+ }
1885
+
1886
+ /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
64
1887
 
65
1888
  AuroCounter.register();
1889
+ AuroCounterGroup.register();
66
1890
  AuroCounter.register('custom-counter');
67
1891
 
68
1892
  function initExamples(initialCount = 0) {