@devschile/chucao 2.8.0 → 2.9.0

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 (216) hide show
  1. package/dist/chucao/chucao.esm.js +1 -1
  2. package/dist/chucao/{p-5093c486.entry.js → p-03acf096.entry.js} +2 -2
  3. package/dist/chucao/{p-f0c288db.entry.js → p-0ce2b15d.entry.js} +2 -2
  4. package/dist/chucao/{p-af088ffd.entry.js → p-10e37157.entry.js} +2 -2
  5. package/dist/chucao/{p-46dae34b.entry.js → p-12043dc1.entry.js} +2 -2
  6. package/dist/chucao/p-1dca55d6.entry.js +2 -0
  7. package/dist/chucao/{p-0831c6f2.entry.js.map → p-1dca55d6.entry.js.map} +1 -1
  8. package/dist/chucao/{p-c4d68ab7.entry.js → p-244d8e96.entry.js} +2 -2
  9. package/dist/chucao/{p-ba589c2f.entry.js → p-29841714.entry.js} +2 -2
  10. package/dist/chucao/{p-5577e0a0.entry.js → p-302ec527.entry.js} +2 -2
  11. package/dist/chucao/{p-25f4f815.entry.js → p-5a62951e.entry.js} +2 -2
  12. package/dist/chucao/{p-3e0d7585.entry.js → p-5d0ac17a.entry.js} +2 -2
  13. package/dist/chucao/{p-b42ec9bf.entry.js → p-5e0e1012.entry.js} +2 -2
  14. package/dist/chucao/{p-56e41372.entry.js → p-61a94a4e.entry.js} +2 -2
  15. package/dist/chucao/p-649c2cef.entry.js +2 -0
  16. package/dist/chucao/p-649c2cef.entry.js.map +1 -0
  17. package/dist/chucao/{p-eb39b9c2.entry.js → p-674c0f61.entry.js} +2 -2
  18. package/dist/chucao/{p-d868bdbc.entry.js → p-67f0fc77.entry.js} +2 -2
  19. package/dist/chucao/{p-d630f662.entry.js → p-68e4a129.entry.js} +2 -2
  20. package/dist/chucao/{p-b80c39c3.entry.js → p-6e345b3f.entry.js} +2 -2
  21. package/dist/chucao/{p-6e93c392.entry.js → p-72d4dacf.entry.js} +2 -2
  22. package/dist/chucao/{p-ca3179ae.entry.js → p-74d9b7e5.entry.js} +2 -2
  23. package/dist/chucao/{p-8b09ad3c.entry.js → p-791ce537.entry.js} +2 -2
  24. package/dist/chucao/{p-ad41da02.entry.js → p-79e8c10b.entry.js} +2 -2
  25. package/dist/chucao/{p-c98e2a50.entry.js → p-7e13f725.entry.js} +2 -2
  26. package/dist/chucao/{p-6c2e5931.entry.js → p-8b23d072.entry.js} +2 -2
  27. package/dist/chucao/{p-920d5727.entry.js → p-a5430e95.entry.js} +2 -2
  28. package/dist/chucao/{p-e6b7b2da.entry.js → p-a7c66879.entry.js} +2 -2
  29. package/dist/chucao/p-b452d6cb.entry.js +2 -0
  30. package/dist/chucao/{p-0d7fc720.entry.js → p-b7332faf.entry.js} +2 -2
  31. package/dist/chucao/{p-19d90f87.entry.js → p-f3d03388.entry.js} +2 -2
  32. package/dist/chucao/{p-8fcf6d36.entry.js → p-f925d45c.entry.js} +2 -2
  33. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  34. package/dist/cjs/ch-alert_8.cjs.entry.js +7 -7
  35. package/dist/cjs/ch-checkbox.cjs.entry.js +1 -1
  36. package/dist/cjs/ch-cluster.cjs.entry.js +2 -2
  37. package/dist/cjs/ch-combobox.cjs.entry.js +304 -0
  38. package/dist/cjs/ch-combobox.cjs.entry.js.map +1 -0
  39. package/dist/cjs/ch-confirm-dialog.cjs.entry.js +1 -1
  40. package/dist/cjs/ch-description-list.cjs.entry.js +1 -1
  41. package/dist/cjs/ch-divider.cjs.entry.js +1 -1
  42. package/dist/cjs/ch-drawer.cjs.entry.js +1 -1
  43. package/dist/cjs/ch-emoji.cjs.entry.js +1 -1
  44. package/dist/cjs/ch-empty-state.cjs.entry.js +1 -1
  45. package/dist/cjs/ch-grid.cjs.entry.js +1 -1
  46. package/dist/cjs/ch-icon-button.cjs.entry.js +1 -1
  47. package/dist/cjs/ch-icon.cjs.entry.js +1 -1
  48. package/dist/cjs/ch-modal.cjs.entry.js +1 -1
  49. package/dist/cjs/ch-number-input.cjs.entry.js +2 -2
  50. package/dist/cjs/ch-otp-input.cjs.entry.js +2 -2
  51. package/dist/cjs/ch-page-header.cjs.entry.js +1 -1
  52. package/dist/cjs/ch-pagination.cjs.entry.js +1 -1
  53. package/dist/cjs/ch-radio.cjs.entry.js +1 -1
  54. package/dist/cjs/ch-segmented-control.cjs.entry.js +1 -1
  55. package/dist/cjs/ch-skeleton.cjs.entry.js +1 -1
  56. package/dist/cjs/ch-stack.cjs.entry.js +1 -1
  57. package/dist/cjs/ch-stat.cjs.entry.js +2 -2
  58. package/dist/cjs/ch-table.cjs.entry.js +1 -1
  59. package/dist/cjs/ch-tabs.cjs.entry.js +1 -1
  60. package/dist/cjs/ch-textarea.cjs.entry.js +1 -1
  61. package/dist/cjs/ch-timeline.cjs.entry.js +1 -1
  62. package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
  63. package/dist/cjs/chucao.cjs.js +1 -1
  64. package/dist/cjs/loader.cjs.js +1 -1
  65. package/dist/collection/collection-manifest.json +1 -0
  66. package/dist/collection/components/ch-accordion/ch-accordion.js +1 -1
  67. package/dist/collection/components/ch-alert/ch-alert.js +1 -1
  68. package/dist/collection/components/ch-badge/ch-badge.js +1 -1
  69. package/dist/collection/components/ch-card/ch-card.js +1 -1
  70. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  71. package/dist/collection/components/ch-cluster/ch-cluster.js +2 -2
  72. package/dist/collection/components/ch-combobox/ch-combobox.css +153 -0
  73. package/dist/collection/components/ch-combobox/ch-combobox.js +577 -0
  74. package/dist/collection/components/ch-combobox/ch-combobox.js.map +1 -0
  75. package/dist/collection/components/ch-confirm-dialog/ch-confirm-dialog.js +1 -1
  76. package/dist/collection/components/ch-description-list/ch-description-list.js +1 -1
  77. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  78. package/dist/collection/components/ch-drawer/ch-drawer.js +1 -1
  79. package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
  80. package/dist/collection/components/ch-empty-state/ch-empty-state.js +1 -1
  81. package/dist/collection/components/ch-grid/ch-grid.js +1 -1
  82. package/dist/collection/components/ch-icon/ch-icon.js +1 -1
  83. package/dist/collection/components/ch-icon-button/ch-icon-button.js +1 -1
  84. package/dist/collection/components/ch-input/ch-input.js +1 -1
  85. package/dist/collection/components/ch-modal/ch-modal.js +1 -1
  86. package/dist/collection/components/ch-number-input/ch-number-input.js +2 -2
  87. package/dist/collection/components/ch-otp-input/ch-otp-input.js +2 -2
  88. package/dist/collection/components/ch-page-header/ch-page-header.js +1 -1
  89. package/dist/collection/components/ch-pagination/ch-pagination.js +1 -1
  90. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  91. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +1 -1
  92. package/dist/collection/components/ch-select/ch-select.js +1 -1
  93. package/dist/collection/components/ch-skeleton/ch-skeleton.js +1 -1
  94. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  95. package/dist/collection/components/ch-stack/ch-stack.js +1 -1
  96. package/dist/collection/components/ch-stat/ch-stat.js +2 -2
  97. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  98. package/dist/collection/components/ch-table/ch-table.js +1 -1
  99. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  100. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  101. package/dist/collection/components/ch-timeline/ch-timeline.js +1 -1
  102. package/dist/collection/components/ch-tooltip/ch-tooltip.js +2 -2
  103. package/dist/components/ch-accordion.js +1 -1
  104. package/dist/components/ch-alert.js +1 -1
  105. package/dist/components/ch-badge.js +1 -1
  106. package/dist/components/ch-button.js +1 -1
  107. package/dist/components/ch-card.js +1 -1
  108. package/dist/components/ch-checkbox.js +1 -1
  109. package/dist/components/ch-cluster.js +1 -1
  110. package/dist/components/ch-combobox.d.ts +11 -0
  111. package/dist/components/ch-combobox.js +2 -0
  112. package/dist/components/ch-combobox.js.map +1 -0
  113. package/dist/components/ch-confirm-dialog.js +1 -1
  114. package/dist/components/ch-description-list.js +1 -1
  115. package/dist/components/ch-divider.js +1 -1
  116. package/dist/components/ch-drawer.js +1 -1
  117. package/dist/components/ch-emoji.js +1 -1
  118. package/dist/components/ch-empty-state.js +1 -1
  119. package/dist/components/ch-grid.js +1 -1
  120. package/dist/components/ch-icon-button.js +1 -1
  121. package/dist/components/ch-icon.js +1 -1
  122. package/dist/components/ch-input.js +1 -1
  123. package/dist/components/ch-modal.js +1 -1
  124. package/dist/components/ch-number-input.js +1 -1
  125. package/dist/components/ch-otp-input.js +1 -1
  126. package/dist/components/ch-page-header.js +1 -1
  127. package/dist/components/ch-pagination.js +1 -1
  128. package/dist/components/ch-radio.js +1 -1
  129. package/dist/components/ch-segmented-control.js +1 -1
  130. package/dist/components/ch-select.js +1 -1
  131. package/dist/components/ch-skeleton.js +1 -1
  132. package/dist/components/ch-spinner.js +1 -1
  133. package/dist/components/ch-stack.js +1 -1
  134. package/dist/components/ch-stat.js +1 -1
  135. package/dist/components/ch-switch.js +1 -1
  136. package/dist/components/ch-table.js +1 -1
  137. package/dist/components/ch-tabs.js +1 -1
  138. package/dist/components/ch-textarea.js +1 -1
  139. package/dist/components/ch-timeline.js +1 -1
  140. package/dist/components/ch-tooltip.js +1 -1
  141. package/dist/components/{p-CF1yV0aa.js → p-CuSstsTP.js} +2 -2
  142. package/dist/components/{p-CmMN-UuJ.js → p-MBLhKofG.js} +2 -2
  143. package/dist/esm/ch-accordion.entry.js +1 -1
  144. package/dist/esm/ch-alert_8.entry.js +7 -7
  145. package/dist/esm/ch-checkbox.entry.js +1 -1
  146. package/dist/esm/ch-cluster.entry.js +2 -2
  147. package/dist/esm/ch-combobox.entry.js +302 -0
  148. package/dist/esm/ch-combobox.entry.js.map +1 -0
  149. package/dist/esm/ch-confirm-dialog.entry.js +1 -1
  150. package/dist/esm/ch-description-list.entry.js +1 -1
  151. package/dist/esm/ch-divider.entry.js +1 -1
  152. package/dist/esm/ch-drawer.entry.js +1 -1
  153. package/dist/esm/ch-emoji.entry.js +1 -1
  154. package/dist/esm/ch-empty-state.entry.js +1 -1
  155. package/dist/esm/ch-grid.entry.js +1 -1
  156. package/dist/esm/ch-icon-button.entry.js +1 -1
  157. package/dist/esm/ch-icon.entry.js +1 -1
  158. package/dist/esm/ch-modal.entry.js +1 -1
  159. package/dist/esm/ch-number-input.entry.js +2 -2
  160. package/dist/esm/ch-otp-input.entry.js +2 -2
  161. package/dist/esm/ch-page-header.entry.js +1 -1
  162. package/dist/esm/ch-pagination.entry.js +1 -1
  163. package/dist/esm/ch-radio.entry.js +1 -1
  164. package/dist/esm/ch-segmented-control.entry.js +1 -1
  165. package/dist/esm/ch-skeleton.entry.js +1 -1
  166. package/dist/esm/ch-stack.entry.js +1 -1
  167. package/dist/esm/ch-stat.entry.js +2 -2
  168. package/dist/esm/ch-table.entry.js +1 -1
  169. package/dist/esm/ch-tabs.entry.js +1 -1
  170. package/dist/esm/ch-textarea.entry.js +1 -1
  171. package/dist/esm/ch-timeline.entry.js +1 -1
  172. package/dist/esm/ch-tooltip.entry.js +2 -2
  173. package/dist/esm/chucao.js +1 -1
  174. package/dist/esm/loader.js +1 -1
  175. package/dist/types/components/ch-combobox/ch-combobox.d.ts +98 -0
  176. package/dist/types/components.d.ts +209 -0
  177. package/dist-react/components.d.ts +7 -1
  178. package/dist-react/components.js +12 -0
  179. package/dist-react/components.ts +19 -1
  180. package/dist-vue/index.d.ts +1 -0
  181. package/dist-vue/index.js +19 -0
  182. package/dist-vue/index.ts +21 -0
  183. package/hydrate/index.js +376 -39
  184. package/hydrate/index.mjs +376 -39
  185. package/package.json +5 -1
  186. package/dist/chucao/p-0831c6f2.entry.js +0 -2
  187. package/dist/chucao/p-7f99ae48.entry.js +0 -2
  188. /package/dist/chucao/{p-5093c486.entry.js.map → p-03acf096.entry.js.map} +0 -0
  189. /package/dist/chucao/{p-f0c288db.entry.js.map → p-0ce2b15d.entry.js.map} +0 -0
  190. /package/dist/chucao/{p-af088ffd.entry.js.map → p-10e37157.entry.js.map} +0 -0
  191. /package/dist/chucao/{p-46dae34b.entry.js.map → p-12043dc1.entry.js.map} +0 -0
  192. /package/dist/chucao/{p-c4d68ab7.entry.js.map → p-244d8e96.entry.js.map} +0 -0
  193. /package/dist/chucao/{p-ba589c2f.entry.js.map → p-29841714.entry.js.map} +0 -0
  194. /package/dist/chucao/{p-5577e0a0.entry.js.map → p-302ec527.entry.js.map} +0 -0
  195. /package/dist/chucao/{p-25f4f815.entry.js.map → p-5a62951e.entry.js.map} +0 -0
  196. /package/dist/chucao/{p-3e0d7585.entry.js.map → p-5d0ac17a.entry.js.map} +0 -0
  197. /package/dist/chucao/{p-b42ec9bf.entry.js.map → p-5e0e1012.entry.js.map} +0 -0
  198. /package/dist/chucao/{p-56e41372.entry.js.map → p-61a94a4e.entry.js.map} +0 -0
  199. /package/dist/chucao/{p-eb39b9c2.entry.js.map → p-674c0f61.entry.js.map} +0 -0
  200. /package/dist/chucao/{p-d868bdbc.entry.js.map → p-67f0fc77.entry.js.map} +0 -0
  201. /package/dist/chucao/{p-d630f662.entry.js.map → p-68e4a129.entry.js.map} +0 -0
  202. /package/dist/chucao/{p-b80c39c3.entry.js.map → p-6e345b3f.entry.js.map} +0 -0
  203. /package/dist/chucao/{p-6e93c392.entry.js.map → p-72d4dacf.entry.js.map} +0 -0
  204. /package/dist/chucao/{p-ca3179ae.entry.js.map → p-74d9b7e5.entry.js.map} +0 -0
  205. /package/dist/chucao/{p-8b09ad3c.entry.js.map → p-791ce537.entry.js.map} +0 -0
  206. /package/dist/chucao/{p-ad41da02.entry.js.map → p-79e8c10b.entry.js.map} +0 -0
  207. /package/dist/chucao/{p-c98e2a50.entry.js.map → p-7e13f725.entry.js.map} +0 -0
  208. /package/dist/chucao/{p-6c2e5931.entry.js.map → p-8b23d072.entry.js.map} +0 -0
  209. /package/dist/chucao/{p-920d5727.entry.js.map → p-a5430e95.entry.js.map} +0 -0
  210. /package/dist/chucao/{p-e6b7b2da.entry.js.map → p-a7c66879.entry.js.map} +0 -0
  211. /package/dist/chucao/{p-7f99ae48.entry.js.map → p-b452d6cb.entry.js.map} +0 -0
  212. /package/dist/chucao/{p-0d7fc720.entry.js.map → p-b7332faf.entry.js.map} +0 -0
  213. /package/dist/chucao/{p-19d90f87.entry.js.map → p-f3d03388.entry.js.map} +0 -0
  214. /package/dist/chucao/{p-8fcf6d36.entry.js.map → p-f925d45c.entry.js.map} +0 -0
  215. /package/dist/components/{p-CF1yV0aa.js.map → p-CuSstsTP.js.map} +0 -0
  216. /package/dist/components/{p-CmMN-UuJ.js.map → p-MBLhKofG.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ch-combobox.entry.js","sources":["src/components/ch-combobox/ch-combobox.css?tag=ch-combobox&encapsulation=shadow","src/components/ch-combobox/ch-combobox.tsx"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n font-family: var(--typography-body);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n.label {\n display: block;\n margin-bottom: var(--spacing-sm);\n font-size: var(--typography-size-sm);\n font-weight: var(--typography-weight-semibold);\n color: var(--color-text-primary);\n}\n\n.chips {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-xs);\n margin: 0 0 var(--spacing-sm);\n padding: 0;\n list-style: none;\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-xs);\n max-width: 100%;\n padding: var(--spacing-2xs) var(--spacing-sm);\n border: var(--border-width) solid var(--color-border-default);\n border-radius: var(--radius-sm);\n background: var(--color-surface-hover);\n font-size: var(--typography-size-sm);\n}\n\n.chip__label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.chip__remove {\n all: unset;\n cursor: pointer;\n padding: 0 var(--spacing-2xs);\n border-radius: var(--radius-sm);\n color: var(--color-text-secondary);\n line-height: 1;\n}\n\n.chip__remove:focus-visible {\n outline: 2px solid var(--color-accent-default);\n outline-offset: 1px;\n}\n\n/* The list is positioned against the field, not the viewport: a dropdown that\n * is part of a form flow should move with it, unlike a tooltip. */\n.field {\n position: relative;\n}\n\n.input {\n box-sizing: border-box;\n width: 100%;\n padding: var(--spacing-xl) var(--spacing-3xl);\n border: var(--border-width) solid var(--color-border-default);\n border-radius: var(--radius-sm);\n background: var(--color-surface-default);\n color: var(--color-text-primary);\n font-family: inherit;\n font-size: var(--typography-size-md);\n transition: border-color var(--duration-normal) var(--easing-default);\n}\n\n.input::placeholder {\n color: var(--color-text-secondary);\n}\n\n.input:focus {\n border-color: var(--color-accent-default);\n outline: 2px solid var(--color-accent-default);\n outline-offset: 1px;\n}\n\n.input:disabled {\n opacity: var(--opacity-disabled);\n cursor: not-allowed;\n}\n\n.input--invalid {\n border-color: var(--color-status-warning);\n}\n\n.listbox {\n position: absolute;\n z-index: var(--z-index-dropdown);\n top: calc(100% + var(--spacing-2xs));\n left: 0;\n right: 0;\n max-height: 16rem;\n margin: 0;\n padding: var(--spacing-2xs);\n overflow-y: auto;\n list-style: none;\n border: var(--border-width) solid var(--color-border-default);\n border-radius: var(--radius-sm);\n background: var(--color-surface-default);\n box-shadow: var(--shadow-elevate);\n}\n\n.listbox[hidden] {\n display: none;\n}\n\n.listbox__option {\n padding: var(--spacing-sm) var(--spacing-md);\n border-radius: var(--radius-sm);\n font-size: var(--typography-size-sm);\n cursor: pointer;\n}\n\n/* The active option is marked by a rule and weight, not only a tint. */\n.listbox__option--active {\n background: var(--color-surface-hover);\n font-weight: var(--typography-weight-semibold);\n box-shadow: inset 2px 0 0 var(--color-accent-default);\n}\n\n.listbox__option--disabled {\n opacity: var(--opacity-disabled);\n cursor: not-allowed;\n}\n\n.listbox__empty {\n padding: var(--spacing-sm) var(--spacing-md);\n font-size: var(--typography-size-sm);\n color: var(--color-text-secondary);\n}\n\n.hint,\n.error {\n margin: var(--spacing-sm) 0 0;\n font-size: var(--typography-size-sm);\n color: var(--color-text-secondary);\n}\n\n.error {\n color: var(--color-status-warning);\n}\n","import { AttachInternals, Component, Element, Event, type EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\n\nimport { resolveValidity } from '../../utils/validation-message';\n\nexport interface ChComboboxOption {\n label: string;\n value: string;\n disabled?: boolean;\n /** Optional grouping label; consecutive options with the same group are announced together. */\n group?: string;\n}\n\nlet comboboxIds = 0;\n\n/**\n * A text field that filters a list of options and commits a choice.\n *\n * The input is a native `<input>` rather than `ch-input`: the combobox role\n * and its `aria-*` state have to sit on the element that owns the interaction,\n * and ARIA does not forward through a wrapper component.\n *\n * Single and multiple are one component. `multiple` changes the value shape\n * (`string` vs `string[]`), renders the chosen values as removable chips, and\n * keeps the list open after a pick; single commits and closes. Everything else\n * — filtering, the active option, keyboard behaviour, validity — is shared, so\n * the two cannot drift apart.\n *\n * The consumer owns the options and, if it fetches them, their ordering: this\n * component never sorts, debounces or requests anything. It filters what it is\n * given, and reports what the user asked for.\n */\n@Component({\n tag: 'ch-combobox',\n styleUrl: 'ch-combobox.css',\n shadow: true,\n formAssociated: true,\n})\nexport class ChCombobox {\n private readonly inputId = `ch-combobox-${++comboboxIds}`;\n private readonly listId = `${this.inputId}-list`;\n private readonly hintId = `${this.inputId}-hint`;\n private readonly errorId = `${this.inputId}-error`;\n private initialValue: string[] = [];\n\n @AttachInternals() internals!: ElementInternals;\n @State() formDisabled = false;\n @Element() private host!: HTMLElement;\n\n /** Visible label, associated with the input via `for`/`id`. */\n @Prop() label?: string;\n\n /** The options to filter and choose from. */\n @Prop() options: ChComboboxOption[] = [];\n\n /** The committed value. An array when `multiple`. */\n @Prop({ mutable: true }) value?: string | string[];\n\n /** Whether the user can pick more than one option. */\n @Prop({ reflect: true }) multiple = false;\n\n /** Placeholder shown while the field is empty. */\n @Prop() placeholder?: string;\n\n /** Name submitted with the form. Repeated once per value when `multiple`. */\n @Prop({ reflect: true }) name?: string;\n\n /** Whether the field is disabled. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Whether at least one value is required. */\n @Prop({ reflect: true }) required = false;\n\n /** Helper text, replaced by `errorMessage` when invalid. */\n @Prop() hint?: string;\n\n /** Custom error message; wins over the built-in messages. */\n @Prop() errorMessage?: string;\n\n /** Whether the field is marked invalid by the consumer. */\n @Prop() invalid = false;\n\n /** Text the user has typed to filter with. */\n @State() private query = '';\n\n /** Whether the list is rendered. */\n @State() private expanded = false;\n\n /** Index into `visibleOptions` of the option under the keyboard cursor. */\n @State() private activeIndex = -1;\n\n /** Emitted whenever the committed value changes. */\n @Event() chChange: EventEmitter<string | string[]>;\n\n /** Emitted as the user types, with the raw query, so a consumer can filter remotely. */\n @Event() chFilter: EventEmitter<string>;\n\n /** The committed values as an array, whatever the mode. */\n private get selected(): string[] {\n if (Array.isArray(this.value)) {\n return this.value;\n }\n return this.value === undefined || this.value === '' ? [] : [this.value];\n }\n\n /** Options that match the current query. */\n private get visibleOptions(): ChComboboxOption[] {\n const query = this.query.trim().toLowerCase();\n if (query === '') {\n return this.options;\n }\n return this.options.filter(option => option.label.toLowerCase().includes(query));\n }\n\n /** Options that are still choosable: already-picked ones drop out in multiple mode. */\n private get choosable(): ChComboboxOption[] {\n if (!this.multiple) {\n return this.visibleOptions;\n }\n const chosen = new Set(this.selected);\n return this.visibleOptions.filter(option => !chosen.has(option.value));\n }\n\n private labelFor(value: string): string {\n return this.options.find(option => option.value === value)?.label ?? value;\n }\n\n componentDidLoad() {\n this.initialValue = this.selected;\n this.syncForm();\n this.host.addEventListener('focusout', this.handleFocusOut);\n this.host.addEventListener('invalid', this.markTouched);\n }\n\n disconnectedCallback() {\n this.host.removeEventListener('focusout', this.handleFocusOut);\n }\n\n private markTouched = (): void => {\n this.host.setAttribute('data-touched', '');\n };\n\n /**\n * Closing on blur is deferred: clicking an option also blurs the input, and\n * the click must be allowed to land first.\n */\n private handleFocusOut = () => {\n this.markTouched();\n window.setTimeout(() => {\n if (!this.host.contains(document.activeElement) && this.host.shadowRoot?.activeElement == null) {\n this.expanded = false;\n this.syncForm();\n }\n }, 0);\n };\n\n @Watch('value')\n @Watch('required')\n @Watch('invalid')\n @Watch('errorMessage')\n @Watch('multiple')\n protected syncForm(): void {\n const internals = this.internals;\n if (typeof internals?.setFormValue !== 'function') {\n return;\n }\n const values = this.selected;\n // Multiple entries are submitted once per value, the way a multi-select does.\n if (this.multiple) {\n const data = new FormData();\n for (const entry of values) {\n data.append(this.name ?? '', entry);\n }\n internals.setFormValue(values.length === 0 ? null : data);\n } else {\n internals.setFormValue(values[0] ?? '');\n }\n\n const { flags, message } = resolveValidity({\n required: this.required,\n empty: values.length === 0,\n invalid: this.invalid,\n errorMessage: this.errorMessage,\n });\n internals.setValidity(flags, message);\n }\n\n formResetCallback(): void {\n this.value = this.multiple ? [...this.initialValue] : (this.initialValue[0] ?? '');\n this.query = '';\n this.syncForm();\n const input = this.host.shadowRoot?.querySelector('.input') as HTMLInputElement | null;\n if (input) {\n input.value = '';\n }\n }\n\n formDisabledCallback(isDisabled: boolean): void {\n this.formDisabled = isDisabled;\n }\n\n private commit(value: string) {\n if (this.multiple) {\n const next = this.selected.includes(value) ? this.selected : [...this.selected, value];\n this.value = next;\n this.query = '';\n const input = this.host.shadowRoot?.querySelector('.input') as HTMLInputElement | null;\n if (input) {\n input.value = '';\n }\n // Keep the list open: choosing again is the common case here.\n this.activeIndex = -1;\n } else {\n this.value = value;\n this.query = this.labelFor(value);\n this.expanded = false;\n this.activeIndex = -1;\n }\n this.chChange.emit(this.value as string | string[]);\n this.syncForm();\n }\n\n private remove(value: string) {\n const next = this.selected.filter(entry => entry !== value);\n this.value = this.multiple ? next : '';\n this.chChange.emit(this.value as string | string[]);\n this.syncForm();\n }\n\n private open() {\n if (this.disabled || this.formDisabled) {\n return;\n }\n this.expanded = true;\n }\n\n private moveActive(delta: number) {\n const count = this.choosable.length;\n if (count === 0) {\n return;\n }\n const next = this.activeIndex + delta;\n this.activeIndex = next < 0 ? count - 1 : next >= count ? 0 : next;\n }\n\n private handleInput = (event: InputEvent) => {\n const input = event.target as HTMLInputElement;\n this.query = input.value;\n this.expanded = true;\n this.activeIndex = this.choosable.length > 0 ? 0 : -1;\n // Single mode shows a typed-but-uncommitted value as no value at all.\n if (!this.multiple && this.value !== undefined && this.value !== this.labelFor(this.selected[0] ?? '')) {\n this.value = '';\n }\n this.chFilter.emit(this.query);\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.open();\n this.moveActive(1);\n return;\n }\n if (event.key === 'ArrowUp') {\n event.preventDefault();\n this.open();\n this.moveActive(-1);\n return;\n }\n if (event.key === 'Enter') {\n const option = this.choosable[this.activeIndex];\n if (this.expanded && option && !option.disabled) {\n event.preventDefault();\n this.commit(option.value);\n }\n return;\n }\n if (event.key === 'Escape' && this.expanded) {\n event.preventDefault();\n this.expanded = false;\n this.activeIndex = -1;\n return;\n }\n // Backspace in an empty multiple field removes the last chip.\n if (event.key === 'Backspace' && this.multiple && this.query === '') {\n const last = this.selected[this.selected.length - 1];\n if (last !== undefined) {\n event.preventDefault();\n this.remove(last);\n }\n }\n };\n\n private handleFocus = () => {\n this.open();\n };\n\n private handleBlur = () => {\n // A single-mode field shows the chosen label, not what was typed.\n const input = this.host.shadowRoot?.querySelector('.input') as HTMLInputElement | null;\n if (input && !this.multiple) {\n this.query = '';\n input.value = this.selected.length > 0 ? this.labelFor(this.selected[0]) : '';\n }\n };\n\n private get isInvalid(): boolean {\n return this.invalid || (this.host.hasAttribute('data-touched') && this.selected.length === 0 && this.required);\n }\n\n private get describedBy(): string | undefined {\n if (this.isInvalid && this.errorMessage) {\n return this.errorId;\n }\n return this.hint ? this.hintId : undefined;\n }\n\n /** The option id for `aria-activedescendant`. */\n private optionId(index: number): string {\n return `${this.inputId}-option-${index}`;\n }\n\n render() {\n const options = this.choosable;\n const active = this.activeIndex >= 0 && this.activeIndex < options.length ? options[this.activeIndex] : undefined;\n const chosen = this.selected;\n const showError = this.isInvalid && this.errorMessage;\n\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.inputId}>\n {this.label}\n </label>\n )}\n {this.multiple && chosen.length > 0 && (\n <ul class=\"chips\" aria-label=\"Selected values\">\n {chosen.map(entry => (\n <li class=\"chip\" key={entry}>\n <span class=\"chip__label\">{this.labelFor(entry)}</span>\n <button type=\"button\" class=\"chip__remove\" aria-label={`Remove ${this.labelFor(entry)}`} onClick={() => this.remove(entry)}>\n <span aria-hidden=\"true\">×</span>\n </button>\n </li>\n ))}\n </ul>\n )}\n <div class=\"field\">\n <input\n id={this.label && !this.multiple ? this.inputId : undefined}\n class={{ 'input': true, 'input--invalid': this.isInvalid }}\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-expanded={this.expanded ? 'true' : 'false'}\n aria-controls={this.listId}\n aria-autocomplete=\"list\"\n aria-activedescendant={active ? this.optionId(this.activeIndex) : undefined}\n aria-invalid={this.isInvalid ? 'true' : undefined}\n aria-describedby={this.describedBy}\n name={this.name}\n disabled={this.disabled || this.formDisabled}\n required={this.required}\n placeholder={chosen.length === 0 ? this.placeholder : undefined}\n value={this.multiple ? this.query : this.query || (chosen[0] !== undefined ? this.labelFor(chosen[0]) : '')}\n onInput={this.handleInput}\n onKeyDown={this.handleKeyDown}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n />\n <ul class=\"listbox\" id={this.listId} role=\"listbox\" aria-multiselectable={this.multiple ? 'true' : undefined} hidden={!this.expanded}>\n {options.length === 0 && (\n <li class=\"listbox__empty\" role=\"presentation\">\n No results\n </li>\n )}\n {options.map((option, index) => (\n <li\n class={{\n 'listbox__option': true,\n 'listbox__option--active': index === this.activeIndex,\n 'listbox__option--disabled': option.disabled === true,\n }}\n id={this.optionId(index)}\n key={option.value}\n role=\"option\"\n aria-selected={this.multiple ? 'false' : chosen[0] === option.value ? 'true' : 'false'}\n aria-disabled={option.disabled ? 'true' : undefined}\n // Pointer-down commits before the input's blur closes the list.\n onMouseDown={event => {\n event.preventDefault();\n if (!option.disabled) {\n this.commit(option.value);\n }\n }}\n >\n {option.label}\n </li>\n ))}\n </ul>\n </div>\n {this.hint && !showError && (\n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AE,KAAK,IAAG;gBACnB,KAAK,CAAC,cAAc,EAAE;AACtB,gBAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpB,oBAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;AAE7B,aAAC,EAAA,EAEA,MAAM,CAAC,KAAK,CACV,CACN,CAAC,CACC,CACD,EACL,IAAI,CAAC,IAAI,IAAI,CAAC,SAAS,KACtB,CAAA,CAAA,GAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAG,KAAK,EAAC,MAAM,EAAC,EAAE,EAAE,IAAI,CAAC,MAAM,IAC5B,IAAI,CAAC,IAAI,CACR,CACL,EACA,SAAS,KACR,CAAA,CAAA,GAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAG,KAAK,EAAC,OAAO,EAAC,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAC,OAAO,EAAA,EAC5C,IAAI,CAAC,YAAY,CAChB,CACL,CACI;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -120,7 +120,7 @@ const ChConfirmDialog = class {
120
120
  this.cancelButton?.focus();
121
121
  }
122
122
  render() {
123
- return (h(Host, { key: '7aa8fd72a281369f47ce7f1eb99c52ab60ba4ee0', onKeyDown: this.handleKeyDown }, h("ch-modal", { key: '019663f042f5c2ce3dd1f58433faee170c01e8e6', open: this.open, label: this.heading, size: "sm", onChClose: this.handleModalClose, onChOpen: () => this.onOpening() }, h("h2", { key: '9d97f437e535a3a9feb181e9807dc9c532efd872', slot: "heading", class: "confirm__heading" }, this.heading), this.message && h("p", { key: 'a0d64b2b915624473162557972eabdf80b445d58', class: "confirm__message" }, this.message), h("div", { key: '0b44308d6eb7a4aea2c1166f8a7f6f19c41cdbb7', class: "confirm__actions" }, h("button", { key: '7908d0db96e7c59c7b4673220aa62c2170b29d54', class: { 'confirm__button': true, 'confirm__button--cancel': true }, type: "button", ref: el => (this.cancelButton = el), disabled: this.pending, onClick: this.handleCancel }, this.cancelLabel), h("button", { key: '43657105b474b303160da19e1fa5fda47f63207c', class: { 'confirm__button': true, 'confirm__button--confirm': true, 'confirm__button--danger': this.tone === 'danger' }, type: "button", ref: el => (this.confirmButton = el), disabled: this.pending, "aria-busy": this.pending ? 'true' : undefined, onClick: this.handleConfirm }, this.confirmLabel)))));
123
+ return (h(Host, { key: 'b51a806f4cca331fc3a95421d3342608c6e0df4c', onKeyDown: this.handleKeyDown }, h("ch-modal", { key: '453db02cd724bc9bf2ed7c4b61bcf04c77b8d449', open: this.open, label: this.heading, size: "sm", onChClose: this.handleModalClose, onChOpen: () => this.onOpening() }, h("h2", { key: '1dee8f11ee68679792c394506ab2e8a7f98b852b', slot: "heading", class: "confirm__heading" }, this.heading), this.message && h("p", { key: 'f2a8a473acfcdfee51600a0dc7bc47b85f4a0889', class: "confirm__message" }, this.message), h("div", { key: '7ecfa78e4df217e38519f115fdcb4761ed88937d', class: "confirm__actions" }, h("button", { key: '0c4a117caee9ef316932e2eea9c0aa3734f0bbee', class: { 'confirm__button': true, 'confirm__button--cancel': true }, type: "button", ref: el => (this.cancelButton = el), disabled: this.pending, onClick: this.handleCancel }, this.cancelLabel), h("button", { key: 'd33fd5f6f218bfcd39f179e29d757f7f9bdcae30', class: { 'confirm__button': true, 'confirm__button--confirm': true, 'confirm__button--danger': this.tone === 'danger' }, type: "button", ref: el => (this.confirmButton = el), disabled: this.pending, "aria-busy": this.pending ? 'true' : undefined, onClick: this.handleConfirm }, this.confirmLabel)))));
124
124
  }
125
125
  static get watchers() { return {
126
126
  "open": [{
@@ -16,7 +16,7 @@ const ChDescriptionList = class {
16
16
  return COLUMNS.has(this.columns) ? this.columns : '1';
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '590fc24614ba9240d7708cff6cb6027eca5904bf' }, h("dl", { key: '868ee275cd6c792bff933c2429fe23985b9c30e3', class: `list list--columns-${this.columnCount}` }, h("slot", { key: '7433fcda6f0e6b2c738c790839169669c31bd266' }))));
19
+ return (h(Host, { key: '1fd1228705a78196b618efc4b9665de038663ae5' }, h("dl", { key: '0b724aa3c5dec011106347d9d29d0420f723012f', class: `list list--columns-${this.columnCount}` }, h("slot", { key: '4da2c6965568cf7d2f93ee98e131a7bede26d5dc' }))));
20
20
  }
21
21
  };
22
22
  ChDescriptionList.style = chDescriptionListCss();
@@ -11,7 +11,7 @@ const ChDivider = class {
11
11
  */
12
12
  orientation = 'horizontal';
13
13
  render() {
14
- return (h(Host, { key: '068a29854d312d17f5f5b768975996e1b8db9317', class: { 'divider--vertical': this.orientation === 'vertical' } }, h("hr", { key: 'c2dca357f717b822caa028fae4c1d5e4709ae75c', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
14
+ return (h(Host, { key: 'cc193b7e7229de8ff96eb056bd345cc8d666004b', class: { 'divider--vertical': this.orientation === 'vertical' } }, h("hr", { key: '659320c0372d208aab9b13d471427e479499a72c', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
15
15
  }
16
16
  };
17
17
  ChDivider.style = chDividerCss();
@@ -136,7 +136,7 @@ const ChDrawer = class {
136
136
  this.chClose.emit();
137
137
  };
138
138
  render() {
139
- return (h(Host, { key: 'f20d997fbaec9bcb5a4435c53bc893513e07bf05' }, h("dialog", { key: '216248a651d9fbd61c659da772cb2c1cd9cdb029', class: { drawer: true, [`drawer--${this.side}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, h("div", { key: '2d0f9c5a66ae0f609185479722236bfa35fc15ff', class: "drawer-head" }, h("slot", { key: '3e3fc15109e4e463cfcff4a96cffd943a0c48f3d', name: "header" }), this.closeLabel && (h("button", { key: 'a6e3b3d7ab9955cb9e84405c3313c85389bb1b5a', class: "drawer-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, h("span", { key: '2dcb7632e635f763c0973cdb4fb7fe8dfa09fd4b', "aria-hidden": "true" }, "\u00D7")))), h("div", { key: '0a73837b9dcae4d31d7abb4cec14d93a9bbdec4a', class: "drawer-body" }, h("slot", { key: 'f9786b2da1062eeb7d7019b849508eb3a5fc83b7' })), h("slot", { key: '85e518742d2c5435ce50c52100d24576caae9a8b', name: "footer" }))));
139
+ return (h(Host, { key: '1a51b3f19b956fe860fe4def9f2ac23eac7f86ac' }, h("dialog", { key: 'ad7366eb2e6274962faa2a1564a06ecc3268329c', class: { drawer: true, [`drawer--${this.side}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, h("div", { key: 'ce532be71c35234f1713051e5669f1cf9316031e', class: "drawer-head" }, h("slot", { key: 'b522a8f26dddefd2aaf146134ac24e026a5eb72a', name: "header" }), this.closeLabel && (h("button", { key: 'b51fb4e20797cd82661c72c9250b0875338180f0', class: "drawer-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, h("span", { key: 'dd21e30fcb74f08c80b1c2ba79696e1d54bf4c26', "aria-hidden": "true" }, "\u00D7")))), h("div", { key: 'eacafa24e5af7c107e09a7cbfdfc93ae6f373dc5', class: "drawer-body" }, h("slot", { key: 'ddf9370c27956bc2954a3af29064394d37ec5e67' })), h("slot", { key: '0065c8f5bafb14791e63d15bbec0ec2ba533c222', name: "footer" }))));
140
140
  }
141
141
  static get watchers() { return {
142
142
  "open": [{
@@ -82,7 +82,7 @@ const ChEmoji = class {
82
82
  this.loaded = true;
83
83
  };
84
84
  render() {
85
- return (h(Host, { key: 'fd0f1f45a986a2668adb3cda893e4f6666f78eeb' }, h("img", { key: '207a6d2d6111fd13d724e4f3ce5dcc1d299f1228', class: {
85
+ return (h(Host, { key: 'd6e224a01b95fdebb4525b30b326585ee96e1050' }, h("img", { key: '6bc232d8f25e0099c9e2794f15b8e47f6c2dbb22', class: {
86
86
  'emoji': true,
87
87
  [`emoji--${this.size}`]: true,
88
88
  'emoji--hidden': !this.loaded,
@@ -21,7 +21,7 @@ const ChEmptyState = class {
21
21
  */
22
22
  size = 'md';
23
23
  render() {
24
- return (h(Host, { key: 'ad3644cfbad791e9684b20b9776c8c68d15036e2', class: { 'empty-state': true, [`empty-state--${this.size}`]: true } }, h("div", { key: '88479d9470be1db6d4d9968ad656297f06a2526c', class: "empty-state__inner" }, h("div", { key: '07b46c4f6e086921367b466df1b40eb3f49aeeac', class: "empty-state__icon", "aria-hidden": "true" }, h("slot", { key: 'f2b769787d5b2aaa04493157f39e20c164df2322', name: "icon" })), h("h3", { key: '83131b17b5dac383141f2997ac2dfdde2b620d16', class: "empty-state__title" }, this.title), this.description && h("p", { key: 'ca76152650118f55229ebac53c2963cb84982e77', class: "empty-state__description" }, this.description), h("div", { key: '552f1319198b0c182cace7956e84ddc9e837043e', class: "empty-state__actions" }, h("slot", { key: 'b99db3bfac784acf8389f100362371c3a44f4ace' })))));
24
+ return (h(Host, { key: '15a171d5e6128b278078f3564fe27a75f2d3638f', class: { 'empty-state': true, [`empty-state--${this.size}`]: true } }, h("div", { key: '959baade697f5817d46fe2ef1e08b31d1f14168d', class: "empty-state__inner" }, h("div", { key: 'c97f9d6405da2d81e538701c48e12acbb6bbbd76', class: "empty-state__icon", "aria-hidden": "true" }, h("slot", { key: 'abb50aae0a68ff11b5042a51cdb8d7f69d965ae8', name: "icon" })), h("h3", { key: '2049c3cb4714b642670ba283f8c3c9e3e1ba6ae4', class: "empty-state__title" }, this.title), this.description && h("p", { key: 'b74601952c870aab10345c7bdc856dc779396645', class: "empty-state__description" }, this.description), h("div", { key: 'c72be9f5a4f40113d1c6df1d62c9b617e8dcb407', class: "empty-state__actions" }, h("slot", { key: 'c998904407c1cf174921873e3d547c2056f3d1b5' })))));
25
25
  }
26
26
  };
27
27
  ChEmptyState.style = chEmptyStateCss();
@@ -46,7 +46,7 @@ const ChGrid = class {
46
46
  this.el.style.setProperty('--ch-grid-columns', template);
47
47
  }
48
48
  render() {
49
- return (h(Host, { key: '7e22752629d6e8dae0dd6ae05eb12aba96c97fc2', class: { grid: true, [`grid--gap-${this.gapStep}`]: true } }, h("slot", { key: 'dc7286fa1b34610aa802afc7298422147d936cbd' })));
49
+ return (h(Host, { key: '4fbcd3b5e563ebf0f5b2878ef6af0cb2d1c0f427', class: { grid: true, [`grid--gap-${this.gapStep}`]: true } }, h("slot", { key: '4fe1548392ab44de9dd895129d77f20650a0d929' })));
50
50
  }
51
51
  };
52
52
  ChGrid.style = chGridCss();
@@ -38,7 +38,7 @@ const ChIconButton = class {
38
38
  };
39
39
  render() {
40
40
  const shapes = this.name ? chIcons[this.name] : undefined;
41
- return (h(Host, { key: 'eb744fa706b32c5ffca8b174f5cfc5e5cb546879' }, h("button", { key: 'a0923d38dc46adce13ae3d8e12426a419fe37c4a', class: `button button--${this.size}`, type: this.type, "aria-label": this.label, "aria-busy": this.loading ? 'true' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleClick }, h("svg", { key: 'db67ffae9402ea67849f8b4aa487bf3fb152da63', class: "icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, (shapes ?? []).map(shape => h(shape.tag, shape.attrs))))));
41
+ return (h(Host, { key: '585bbba80a0811664fcc2fa8fd625cd8655e3395' }, h("button", { key: 'd817e9eda842b824a052be9b822c860b9417ddd4', class: `button button--${this.size}`, type: this.type, "aria-label": this.label, "aria-busy": this.loading ? 'true' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleClick }, h("svg", { key: '2f0278d9f551da6b526c3fe5a6680cd38080502e', class: "icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, (shapes ?? []).map(shape => h(shape.tag, shape.attrs))))));
42
42
  }
43
43
  };
44
44
  ChIconButton.style = chIconButtonCss();
@@ -25,7 +25,7 @@ const ChIcon = class {
25
25
  render() {
26
26
  const shapes = this.name ? chIcons[this.name] : undefined;
27
27
  const decorative = !this.label;
28
- return (h(Host, { key: '4d1ec8879f2715fa6973c1e06de4109f68f7b439' }, h("svg", { key: 'e2a72cd9a83a9672e04484f042801041f80a2b81', class: `icon icon--${this.size}`, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", role: decorative ? undefined : 'img', "aria-label": this.label, "aria-hidden": decorative ? 'true' : undefined, focusable: "false" }, (shapes ?? []).map(shape => h(shape.tag, shape.attrs)))));
28
+ return (h(Host, { key: 'c55af60731d59ee48bfb2566f498c5675c36cb04' }, h("svg", { key: '65334ba063c059ef2a505c7ea34859d1d1971f01', class: `icon icon--${this.size}`, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", role: decorative ? undefined : 'img', "aria-label": this.label, "aria-hidden": decorative ? 'true' : undefined, focusable: "false" }, (shapes ?? []).map(shape => h(shape.tag, shape.attrs)))));
29
29
  }
30
30
  };
31
31
  ChIcon.style = chIconCss();
@@ -138,7 +138,7 @@ const ChModal = class {
138
138
  this.chClose.emit();
139
139
  };
140
140
  render() {
141
- return (h(Host, { key: 'e9b0fe7e84f3de036e01f836bb431849b4486ab3' }, h("dialog", { key: '0c5017b5e773534c11a74504a0773ae555b32322', class: { modal: true, [`modal--${this.size}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, h("div", { key: 'ae8988208ac3856792eff026e8ebd1f9e696b175', class: "modal-head" }, h("slot", { key: 'f7f231f4a5b8541ce2da8ea000b5ce95d58484b3', name: "heading" }), this.closeLabel && (h("button", { key: 'dbf0962e6244cff373887fa1e1501aaae6e15250', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, h("span", { key: 'e7e1493a5eca9afb0f9fef279efdd5692157755a', "aria-hidden": "true" }, "\u00D7")))), h("div", { key: '95b719095bac72ce64e6201ef4465c1173dfb16f', class: "modal-body" }, h("slot", { key: 'bad31888a31219e6dffd294ca18a749e9916c0f2' })))));
141
+ return (h(Host, { key: '36395dc0b52676493b93d02c04d1c810d98c8028' }, h("dialog", { key: '99d446c5d0ecd9e16f8d36fc2903f1ab06c274f2', class: { modal: true, [`modal--${this.size}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, h("div", { key: '9dd7043302df7ffa89fdb44f54ed5c93a48fff7e', class: "modal-head" }, h("slot", { key: '473041c868d2234c66276936cde0d020b8ed74ce', name: "heading" }), this.closeLabel && (h("button", { key: 'e3f65a8c91283b8f3a27975afe44e47e65fbf03f', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, h("span", { key: 'dbacf11f6b06ed4183e6d277fc807d63867fdf1d', "aria-hidden": "true" }, "\u00D7")))), h("div", { key: '1d9e1567fe0046078f1d26f5dea25c3c06c7e6ed', class: "modal-body" }, h("slot", { key: 'cc0a63c64b512a6c40c59d8395ced225a961adfc' })))));
142
142
  }
143
143
  static get watchers() { return {
144
144
  "open": [{
@@ -203,10 +203,10 @@ const ChNumberInput = class {
203
203
  }
204
204
  render() {
205
205
  const showError = this.isInvalid && this.errorMessage;
206
- return (h(Host, { key: 'cf109ceb6d832f6c9dcedd666beee69fb4e434f6' }, this.label && (h("label", { key: 'cc6bb3e172738febaf91777499bd8f9c9e6c9701', class: "label", htmlFor: this.inputId }, this.label)), h("input", { key: '44f4199e9d18f4dd3600183f2a4ba4e451013bc6', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid },
206
+ return (h(Host, { key: '0265106cccf730338541d292be247b7853ab00cf' }, this.label && (h("label", { key: '17293d5cc55a8d4de0cd544ea1f508d1ed820b12', class: "label", htmlFor: this.inputId }, this.label)), h("input", { key: 'ce17dc7c0f5c1064d8535aef942e486a46b72188', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid },
207
207
  // `text` with `inputmode`, not `type="number"`: a number input drops
208
208
  // partial values and cannot show grouped digits.
209
- type: "text", inputMode: this.decimals ? 'decimal' : 'numeric', name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.typing ? this.draft : this.formatDisplay(this.value), "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur }), this.hint && !showError && (h("p", { key: '30c755eee77a4fce6c04350e61ffa084a33a085d', class: "hint", id: this.hintId }, this.hint)), showError && (h("p", { key: '3bd96e7dae46ba2a16b23db0d7d1d528590468c9', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
209
+ type: "text", inputMode: this.decimals ? 'decimal' : 'numeric', name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.typing ? this.draft : this.formatDisplay(this.value), "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur }), this.hint && !showError && (h("p", { key: '37611a7755f6885e6f87a600b1a27cc5edd5fefd', class: "hint", id: this.hintId }, this.hint)), showError && (h("p", { key: '68b8c5b964a2a98df493103b1fde088aeefda769', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
210
210
  }
211
211
  static get formAssociated() { return true; }
212
212
  static get watchers() { return {
@@ -159,10 +159,10 @@ const ChOtpInput = class {
159
159
  }
160
160
  render() {
161
161
  const showError = this.isInvalid && this.errorMessage;
162
- return (h(Host, { key: 'addfb3ad7a6a5fabefe89dd5cde1d4e5b79d7c7c' }, this.label && (h("label", { key: 'e2ad53ac281a2334712d04ff6e09070616a38e7f', class: "label", htmlFor: this.inputId }, this.label)), h("input", { key: '4ea2123ba313a2626105346db50af219f5542de3', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid }, type: this.secret ? 'password' : 'text', inputMode: this.inputMode,
162
+ return (h(Host, { key: '1ce9d8e77463ecb270b870461ef96f8e84f418df' }, this.label && (h("label", { key: 'd19c88141314b68912c91af235d45eceaa12555b', class: "label", htmlFor: this.inputId }, this.label)), h("input", { key: 'e2e93f1672fa753b3b20bc032abc6e375591cf3f', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid }, type: this.secret ? 'password' : 'text', inputMode: this.inputMode,
163
163
  // The platform fills a single field carrying this attribute; per-digit
164
164
  // inputs never receive the SMS code.
165
- autocomplete: "one-time-code", autocapitalize: this.inputMode === 'text' ? 'characters' : 'off', spellcheck: false, name: this.name, placeholder: this.placeholder, maxLength: this.length, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onBlur: this.handleBlur }), this.hint && !showError && (h("p", { key: '6ecfc85e27b82b2afe94f66959e3f5cb99708189', class: "hint", id: this.hintId }, this.hint)), showError && (h("p", { key: '9b429bcea9bfb40c9583778dcdc4e8f64a84b552', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
165
+ autocomplete: "one-time-code", autocapitalize: this.inputMode === 'text' ? 'characters' : 'off', spellcheck: false, name: this.name, placeholder: this.placeholder, maxLength: this.length, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onBlur: this.handleBlur }), this.hint && !showError && (h("p", { key: 'f02aa008051c1c0d64bba7045fb72d8c89ebaddd', class: "hint", id: this.hintId }, this.hint)), showError && (h("p", { key: 'ff9dc44ff5de84fd100fe617677ad18ab898fe1e', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
166
166
  }
167
167
  static get formAssociated() { return true; }
168
168
  static get watchers() { return {
@@ -32,7 +32,7 @@ const ChPageHeader = class {
32
32
  actionsStacked = false;
33
33
  render() {
34
34
  const Heading = this.headingLevel;
35
- return (h(Host, { key: '1cafd07a2f349f4430ba34013c05e5183965fbbb' }, h("div", { key: '177e37bd58f4284e2ec0e8777d81141eac9f00df', class: { 'header': true, 'header--stacked': this.actionsStacked } }, h("div", { key: '343b3a0b688d7e4c120e3f4d937fa8780f832937', class: "header-text" }, this.eyebrow && h("p", { key: '27f87c70c45c34abb331703dab225ec94d8365c3', class: "header-eyebrow" }, this.eyebrow), h(Heading, { key: '57d7d9f930284597705e7369ab2ce6f401a08ace', class: "header-title" }, this.title), this.description && h("p", { key: '5213e3d9df7c05f3acf8e4b93c57c84ddc9f665c', class: "header-description" }, this.description)), h("div", { key: '605e9ca206d4af6dade53df096a621fae89f595a', class: "header-actions" }, h("slot", { key: 'dacaf1353ca517d10819eaa94f158e3a148319be', name: "actions" })))));
35
+ return (h(Host, { key: '482cd87ddc139731c8b09ba6441231657aae0fcd' }, h("div", { key: '9b4d97c14cc6c88d926e4384c6e85df097fdd4ac', class: { 'header': true, 'header--stacked': this.actionsStacked } }, h("div", { key: '55daa00350e1204e7a80cc7ee9d1efad49bc517f', class: "header-text" }, this.eyebrow && h("p", { key: 'f30b06834abcc2c6e4aca65b56d6860e8a242dfe', class: "header-eyebrow" }, this.eyebrow), h(Heading, { key: '2f0c4b1e6608403ce1b4d9316247d6012c4c810f', class: "header-title" }, this.title), this.description && h("p", { key: '28633505d6dcc8346a34010e85664d48bc8b019b', class: "header-description" }, this.description)), h("div", { key: '1bda14e777cc0744a9391ea64accb9d2c734dfc2', class: "header-actions" }, h("slot", { key: '7869965c1649dfc6ffa0e019e84d6785344187d2', name: "actions" })))));
36
36
  }
37
37
  };
38
38
  ChPageHeader.style = chPageHeaderCss();
@@ -54,7 +54,7 @@ const ChPagination = class {
54
54
  const atStart = this.page <= 1;
55
55
  const atEnd = count === 0 || this.page >= count;
56
56
  const blocked = this.disabled || count === 0;
57
- return (h(Host, { key: '82d5cbf478d149a09f17d43113374f0a9fdb626c' }, h("nav", { key: 'd6b712c900e61d03864e3b2f799a881f340b01a9', class: { pager: true, [`pager--${this.size}`]: true }, "aria-label": this.label }, h("button", { key: 'f3a2d877c6af803d8bde467efbc437c36502e7c3', class: "pager__button", type: "button", disabled: blocked || atStart, onClick: () => this.go(this.page - 1), "aria-label": "Previous page" }, h("span", { key: '8d2c3e7d96bc0761fb56318b34a70924c7250939', "aria-hidden": "true" }, "\u2039")), h("p", { key: 'c4eb6fb365ab8f06dadee383be08f0d8fe39f882', class: "pager__summary", id: this.labelId, "aria-live": "polite" }, count === 0 ? 'No results' : `${this.firstRow}–${this.lastRow} of ${this.total}`), h("button", { key: '1ee7a5084c6d937bb1d1b2260b09dd5d190aaf09', class: "pager__button", type: "button", disabled: blocked || atEnd, onClick: () => this.go(this.page + 1), "aria-label": "Next page" }, h("span", { key: '8fbf8209157fe9833a25ed22270580a980d66a1d', "aria-hidden": "true" }, "\u203A")))));
57
+ return (h(Host, { key: 'c5091d1a0791a1e0a87fb483ae026484d2aa6c6a' }, h("nav", { key: 'f70132cdc0ebd3f08d6b712b843bc5a36b20d355', class: { pager: true, [`pager--${this.size}`]: true }, "aria-label": this.label }, h("button", { key: '3aebe1cce9b909f8b5977f231bd540121fc95f50', class: "pager__button", type: "button", disabled: blocked || atStart, onClick: () => this.go(this.page - 1), "aria-label": "Previous page" }, h("span", { key: 'e68021c2356a38c6a79ecf79a9a7cbcd9063e6cf', "aria-hidden": "true" }, "\u2039")), h("p", { key: 'd615f3d94d3c5c9a4232ca50ddf1fc8113eb932e', class: "pager__summary", id: this.labelId, "aria-live": "polite" }, count === 0 ? 'No results' : `${this.firstRow}–${this.lastRow} of ${this.total}`), h("button", { key: '0724d97b05c7fe1ef2501317bd28218fa4d8c440', class: "pager__button", type: "button", disabled: blocked || atEnd, onClick: () => this.go(this.page + 1), "aria-label": "Next page" }, h("span", { key: '05cbf13c2be6ccc33e4a517b995a22113306883b', "aria-hidden": "true" }, "\u203A")))));
58
58
  }
59
59
  };
60
60
  ChPagination.style = chPaginationCss();
@@ -112,7 +112,7 @@ const ChRadio = class {
112
112
  }
113
113
  render() {
114
114
  const groupName = this.name || `${this.groupId}-group`;
115
- return (h(Host, { key: 'bf7c403e1c7c172b5427d6e41d6740909e7f42f8' }, this.label && (h("span", { key: '4a5391dca354ab46c80238f0f5d8ac43f1024b28', class: "group-label", id: this.labelId }, this.label)), h("div", { key: '75854ae56cf848cbfcbb6a3a36fd831975e41071', class: "radio-group", role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (h("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, h("input", { class: { 'input': true, 'input--invalid': this.invalid }, type: "radio", name: groupName, value: option.value, checked: option.value === this.value, disabled: this.disabled || this.formDisabled || option.disabled, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), h("span", { class: "mark" }), h("span", { class: "label-text" }, option.label))))), this.hint && !(this.invalid && this.errorMessage) && (h("p", { key: '270d6cdf03427427e88d5c6445f6607779c3ee14', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (h("p", { key: '6091a667601e9ff02f4b245d5a2cebf1e63d4ce0', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
115
+ return (h(Host, { key: '51bc6a2d4ff9a098889dc65b55afdb7e70a65d5b' }, this.label && (h("span", { key: '0e043e7f3e5a8b48e700975e84c7d5a3515b645a', class: "group-label", id: this.labelId }, this.label)), h("div", { key: '70853bba1a97cae044ef799a892049f32eb4d61c', class: "radio-group", role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (h("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, h("input", { class: { 'input': true, 'input--invalid': this.invalid }, type: "radio", name: groupName, value: option.value, checked: option.value === this.value, disabled: this.disabled || this.formDisabled || option.disabled, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), h("span", { class: "mark" }), h("span", { class: "label-text" }, option.label))))), this.hint && !(this.invalid && this.errorMessage) && (h("p", { key: 'cb17c2fc139bb933acf2fc8080e10ee0466c1b68', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (h("p", { key: 'de2406de9bec97f248c3252a9acd9c1ab0c745e0', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
116
116
  }
117
117
  static get formAssociated() { return true; }
118
118
  static get watchers() { return {
@@ -91,7 +91,7 @@ const ChSegmentedControl = class {
91
91
  }
92
92
  render() {
93
93
  const groupName = this.name || `${this.groupId}-group`;
94
- return (h(Host, { key: '521878f5cc2c183a1ac2c89d2fa4d1b26e58dcce' }, this.label && (h("span", { key: 'd87b35d855bd1185ddff983b7af098dcd867ed3a', class: "group-label", id: this.labelId }, this.label)), h("div", { key: '008d37b8f9c50b007d7975b8cf0ce7ba52c283a1', class: { segmented: true, [`segmented--${this.size}`]: true }, role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (h("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, h("input", { class: "input", type: "radio", name: groupName, value: option.value, checked: option.value === this.value, disabled: this.disabled || this.formDisabled || option.disabled, onChange: this.handleChange }), h("span", { class: "label-text" }, option.label)))))));
94
+ return (h(Host, { key: '2380775f9f3448f173db291ee69b95cbbe77d12b' }, this.label && (h("span", { key: 'fe3f47b45547039550c1581b6aec30b45cf01296', class: "group-label", id: this.labelId }, this.label)), h("div", { key: 'fe42cb7bd8a7a675211a0a2637d8b023d12874a4', class: { segmented: true, [`segmented--${this.size}`]: true }, role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (h("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, h("input", { class: "input", type: "radio", name: groupName, value: option.value, checked: option.value === this.value, disabled: this.disabled || this.formDisabled || option.disabled, onChange: this.handleChange }), h("span", { class: "label-text" }, option.label)))))));
95
95
  }
96
96
  static get formAssociated() { return true; }
97
97
  static get watchers() { return {
@@ -45,7 +45,7 @@ const ChSkeleton = class {
45
45
  return { width: this.width, height: this.height };
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: '4bf9bb4d0fdfb1ecff7f0a9606da0c3eaa47aca3', "aria-hidden": "true", class: { 'skeleton': true, [`skeleton--${this.shape}`]: true, 'skeleton--animated': this.animated } }, Array.from({ length: this.items }).map((value, index) => (h("span", { class: "skeleton__item", style: this.sizeStyle, key: index, "data-index": String(value) })))));
48
+ return (h(Host, { key: '0a4de76c2f5d591ccdc128d41412fd99d5b0f191', "aria-hidden": "true", class: { 'skeleton': true, [`skeleton--${this.shape}`]: true, 'skeleton--animated': this.animated } }, Array.from({ length: this.items }).map((value, index) => (h("span", { class: "skeleton__item", style: this.sizeStyle, key: index, "data-index": String(value) })))));
49
49
  }
50
50
  };
51
51
  ChSkeleton.style = chSkeletonCss();
@@ -24,7 +24,7 @@ const ChStack = class {
24
24
  return GAPS.has(this.gap) ? this.gap : 'md';
25
25
  }
26
26
  render() {
27
- return (h(Host, { key: '9c781e2f2c953d67442838300c7cd83fb47c19c6', class: { stack: true, [`stack--gap-${this.gapStep}`]: true, [`stack--align-${this.align}`]: true, [`stack--justify-${this.justify}`]: true } }, h("slot", { key: '3907d79b2c5f58a9dccf9b68e34d3fb0878c16a5' })));
27
+ return (h(Host, { key: 'd9947ce1a6c5b06b8e83d458a9b4a71032e1f8a7', class: { stack: true, [`stack--gap-${this.gapStep}`]: true, [`stack--align-${this.align}`]: true, [`stack--justify-${this.justify}`]: true } }, h("slot", { key: '2698e4850b1fd63367d1b7f55dacd1e0e3ae2b3c' })));
28
28
  }
29
29
  };
30
30
  ChStack.style = chStackCss();
@@ -30,10 +30,10 @@ const ChStat = class {
30
30
  }
31
31
  render() {
32
32
  const cue = this.toneClass === 'positive' ? '+' : this.toneClass === 'negative' ? '−' : null;
33
- return (h(Host, { key: '79553724e7efce617f793913fc4b65301d8e4214', class: "stat" }, h("div", { key: '1d24c5b7fce578242c2464914beddd7c0bc0ac1b', class: "stat__inner" }, h("span", { key: '37bbb5ebf996a2f460d817ffc546bf37100a4c7f', class: "stat__label" }, this.label), h("span", { key: 'a1e5ff57b56f04fcc31b31d04ad6e8fae4ab75e3', class: {
33
+ return (h(Host, { key: '45a42444173ee0839913b7b42df270ffdad064c5', class: "stat" }, h("div", { key: 'dee4aadc137f789e6c44718c3dad1c195a90d6ba', class: "stat__inner" }, h("span", { key: '5300a63497a673ed7e840079b0d63510979c8622', class: "stat__label" }, this.label), h("span", { key: 'e8e56b69c7ed471a0a668588436c9d0149f32da3', class: {
34
34
  stat__value: true,
35
35
  [`stat__value--${this.toneClass}`]: this.toneClass !== 'default',
36
- } }, cue && (h("span", { key: '9a35c34c366d66f3712f9c22cacefe48e550a08f', class: "stat__cue", "aria-hidden": "true" }, cue)), h("slot", { key: 'cbf547c8ec13a675cd694e39016b7a702fac41a5', name: "value" }, this.value)), this.hint && h("span", { key: 'ceaa61ab32fd4b607fe40f96a4ded7588098c98b', class: "stat__hint" }, this.hint), h("div", { key: '67352638ded6243693a9698105b9d330466ccc3b', class: "stat__footer" }, h("slot", { key: '8d8e59eae68d8d7153a57ec33a8185483e79b8f3', name: "footer" })))));
36
+ } }, cue && (h("span", { key: '1d977df4d28190286ac0e99fa376e97c992831ec', class: "stat__cue", "aria-hidden": "true" }, cue)), h("slot", { key: '29c9924f93fc6f948be898cf788d40a78b3b8ee4', name: "value" }, this.value)), this.hint && h("span", { key: 'ad8179cd263b13dcded4a1b74cffb7c38290a791', class: "stat__hint" }, this.hint), h("div", { key: '3d00f1e7c055f847d4bbdecbfdd5fd291f5087b4', class: "stat__footer" }, h("slot", { key: 'c0288524426fa4195f9998eb4188af7f6aa11150', name: "footer" })))));
37
37
  }
38
38
  };
39
39
  ChStat.style = chStatCss();
@@ -118,7 +118,7 @@ const ChTable = class {
118
118
  const empty = this.emptyState;
119
119
  // Before the first measurement the table is rendered as non-empty, so a
120
120
  // consumer never sees the empty message flash over real rows.
121
- return (h(Host, { key: 'e7957ed09b624ec1fdc599f300d7b1a49668ec41', class: { 'table': true, 'table--empty': empty === 'true' || empty === 'filtered' } }, h("div", { key: 'c2fe932de59ee1c557c7a10bdd5f8704b5ee1dd2', class: "table__scroll", tabIndex: 0, role: "group", "aria-labelledby": this.captionId }, h("table", { key: '9e76c06676ef07c3c7fc46e80e78a7baba6f0c33' }, h("caption", { key: '3842f79c25b143fdb6d410d985e1d456cbdde190', id: this.captionId, class: "caption" }, this.label), h("thead", { key: '1116cf7fed60c9757fac4097332aa2308609cb6b' }, h("tr", { key: 'f8ea8e04ca4bd02a63768c93c6ce1c5b4e307792' }, this.columns.map(column => this.renderHeaderCell(column)))), h("tbody", { key: '2a2c7b18fad74c854cad9164978753ffe168219f' }, h("slot", { key: '514e8c0b56e8beb8c0503723823ce8be7a588af6' })))), (empty === 'true' || empty === 'filtered') && (h("div", { key: 'a64841b511490e24462b89b8007f79c662de6120', class: "table__empty", id: this.emptyId }, h("slot", { key: '32bcbe36421d083883223dadaec7dbd194deab8c', name: "empty" }, h("p", { key: '36a9af8b0e9cbb0dfb96d52d057c910a92fe918e', class: "table__empty-message" }, this.emptyMessage(empty)))))));
121
+ return (h(Host, { key: 'bb91f61f579bc99b632bdd5b3a746c6c7319dd70', class: { 'table': true, 'table--empty': empty === 'true' || empty === 'filtered' } }, h("div", { key: 'ddd75bdab98d1784863697dc784d2cec869bd5f5', class: "table__scroll", tabIndex: 0, role: "group", "aria-labelledby": this.captionId }, h("table", { key: 'cf02a54dd6b14a1604b417adab84cde9d0f4d814' }, h("caption", { key: 'fc6f525350e2a51e5325f383edd361c270c25fc0', id: this.captionId, class: "caption" }, this.label), h("thead", { key: '2d03b39883847a2ab0f1807fcf767fc4edea8ad9' }, h("tr", { key: '739e4f34d5a2338db3fabf2f3c9fa265d6d9f976' }, this.columns.map(column => this.renderHeaderCell(column)))), h("tbody", { key: '7584a38498f3c9521640f1f472d841350605a15f' }, h("slot", { key: '81ea6c4992fa3de24916f16db27663646409e8d5' })))), (empty === 'true' || empty === 'filtered') && (h("div", { key: '6b745d95d7f9ebf56d73be6723f9b6aba1854709', class: "table__empty", id: this.emptyId }, h("slot", { key: '2d3cfd14af06b26e2ea6837cc756b555fbeeb5cf', name: "empty" }, h("p", { key: '53a2d940717ae12c04862b544d6eb60c6ed932a5', class: "table__empty-message" }, this.emptyMessage(empty)))))));
122
122
  }
123
123
  static get watchers() { return {
124
124
  "filtered": [{
@@ -84,7 +84,7 @@ const ChTabs = class {
84
84
  }
85
85
  render() {
86
86
  const active = this.activeValue;
87
- return (h(Host, { key: '596a51404c0d7d87f9988534f65e98135ecfcb75' }, h("div", { key: '6eb8cf1c1a986ce1ebd211806d130c0156bad2f1', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
87
+ return (h(Host, { key: '2f6a0ba1be82d292dcb11f772f8764dcce7201bc' }, h("div", { key: '914cb32e1467aaac43178866fbcc9b45d32ec495', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
88
88
  const selected = tab.value === active;
89
89
  return (h("button", { key: tab.value, type: "button", class: { 'tab': true, 'tab--active': selected, 'tab--disabled': Boolean(tab.disabled) }, role: "tab", id: this.tabId(tab.value), "data-value": tab.value, "aria-selected": selected ? 'true' : 'false', "aria-controls": this.panelId(tab.value), tabIndex: selected ? FIRST_TAB_INDEX : LAST_TAB_INDEX, disabled: tab.disabled, onClick: () => this.select(tab.value) }, tab.label));
90
90
  })), this.tabs.map(tab => (h("div", { key: `${tab.value}-panel`, class: "tabpanel", id: this.panelId(tab.value), role: "tabpanel", "aria-labelledby": this.tabId(tab.value), tabIndex: FIRST_TAB_INDEX, hidden: tab.value !== active }, h("slot", { name: `panel-${tab.value}` }))))));
@@ -123,7 +123,7 @@ const ChTextarea = class {
123
123
  return undefined;
124
124
  }
125
125
  render() {
126
- return (h(Host, { key: 'd416e809a6e1e3efe416add0008da16a690a611f' }, this.label && (h("label", { key: '777fd65954d8b346dd58ff06fa482e63ebcc3469', class: "label", htmlFor: this.textareaId }, this.label)), h("textarea", { key: '5ec5f626a54f7b94be8064e759553f7324499485', id: this.label ? this.textareaId : undefined, class: { 'textarea': true, 'textarea--invalid': this.invalid }, rows: this.rows, name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (h("p", { key: 'dee1dba3eda31566326284fccbdc0f352b14fe8f', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (h("p", { key: '5e1d47eb86b8ddd5284c3bad620bab11e340034c', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
126
+ return (h(Host, { key: '2e8db2290d6a221b844ef2b510d9d1db4d9aac18' }, this.label && (h("label", { key: 'b1687f64d9474706dfcbe7042444e2bfe74a5e49', class: "label", htmlFor: this.textareaId }, this.label)), h("textarea", { key: '3e45a32bcfb609fb072bcf84cba46e7d0d5806a8', id: this.label ? this.textareaId : undefined, class: { 'textarea': true, 'textarea--invalid': this.invalid }, rows: this.rows, name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (h("p", { key: '8c013880c709dd0b35d6122765bf2cf8d456f08b', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (h("p", { key: '88d45fbc82deb9131364b5e2f502daf104c72d56', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
127
127
  }
128
128
  static get formAssociated() { return true; }
129
129
  static get watchers() { return {
@@ -7,7 +7,7 @@ const ChTimeline = class {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: 'f8e1398cd3993e0b4fdfa039f2e09d99321745e0', class: "timeline" }, h("ol", { key: '0341a6f18ed91895bc18b01b4a2d327eed48befc', class: "list" }, h("slot", { key: '90c240cb80a37e844f840d062b7b7e5b97a97c1a' }))));
10
+ return (h(Host, { key: '8f9e53b6f2f9c2f9d60a421c1c1c59240e469099', class: "timeline" }, h("ol", { key: '535a06f4b150fc1a67a6baae2f406b76f08cf293', class: "list" }, h("slot", { key: '584198aa85286147b49f2bd4e3897b0faa529309' }))));
11
11
  }
12
12
  };
13
13
  ChTimeline.style = chTimelineCss();
@@ -275,7 +275,7 @@ const ChTooltip = class {
275
275
  };
276
276
  render() {
277
277
  const { offset } = this;
278
- return (h(Host, { key: 'ccc4855053e0c1661f37ef6d40dffc4d0ff8fef3' }, h("span", { key: 'c71b50bd48142031f60017a01e9abbeaad755f83', class: "anchor" }, h("span", { key: 'aa337facc4dd983a5c2b2cf68ef1b3079e911f0b', class: "probe", "aria-hidden": "true", ref: el => (this.probeEl = el) }), h("slot", { key: 'd4c7db781d9cad1b61d0b17071e41ee9619e5129', name: "trigger", onSlotchange: this.associate }), h("span", { key: '8eda03e816c13ba58721a3f2c058d1e812c5630e', ref: el => (this.bubbleEl = el), style: {
278
+ return (h(Host, { key: '24f3c1522fdde642c50e0358d32a8b7ea8e0d327' }, h("span", { key: '2e09507788b944ab599667bd1bd1d9327e9fc510', class: "anchor" }, h("span", { key: '87b00e6c802396181a808823ef7e08a7f2d18bf8', class: "probe", "aria-hidden": "true", ref: el => (this.probeEl = el) }), h("slot", { key: '9620f1447fa376df84a56348759bac1933f96214', name: "trigger", onSlotchange: this.associate }), h("span", { key: 'd8a517178b2035dc9254a48cff8c59cda4025965', ref: el => (this.bubbleEl = el), style: {
279
279
  '--ch-tooltip-offset-top': offset ? `${offset.top}px` : null,
280
280
  '--ch-tooltip-offset-left': offset ? `${offset.left}px` : null,
281
281
  }, class: {
@@ -283,7 +283,7 @@ const ChTooltip = class {
283
283
  'bubble--positioned': Boolean(this.offset),
284
284
  [`bubble--${this.resolvedPlacement ?? this.placement}`]: true,
285
285
  'bubble--visible': this.visible,
286
- } }, h("slot", { key: '402e2c295e88586d78974a2169a75afda1380c96', name: "content", onSlotchange: this.associate })))));
286
+ } }, h("slot", { key: '5f72e3c398fbe6c14ccea1cdd3f20c40beb9f950', name: "content", onSlotchange: this.associate })))));
287
287
  }
288
288
  };
289
289
  function horizontalMargin(el) {
@@ -16,7 +16,7 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["ch-confirm-dialog",[[513,"ch-confirm-dialog",{"open":[1028],"heading":[1],"message":[1],"confirmLabel":[1,"confirm-label"],"cancelLabel":[1,"cancel-label"],"tone":[1],"pending":[4],"dismissible":[4],"settled":[32],"focusCancel":[64]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[577,"ch-checkbox",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-cluster",[[769,"ch-cluster",{"gap":[1],"align":[1],"justify":[1],"wrap":[4]}]]],["ch-description-list",[[769,"ch-description-list",{"columns":[1]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-drawer",[[769,"ch-drawer",{"open":[1028],"side":[1],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-emoji",[[513,"ch-emoji",{"name":[1],"alt":[1],"size":[1],"extIndex":[32],"loaded":[32]},null,{"name":[{"handleNameChange":0}]}]]],["ch-empty-state",[[769,"ch-empty-state",{"title":[1],"description":[1],"size":[1]}]]],["ch-grid",[[769,"ch-grid",{"columns":[1],"gap":[1],"minItemWidth":[1,"min-item-width"]}]]],["ch-icon",[[513,"ch-icon",{"name":[1],"size":[1],"label":[1]}]]],["ch-icon-button",[[513,"ch-icon-button",{"name":[1],"label":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-number-input",[[577,"ch-number-input",{"label":[1],"value":[1025],"format":[1],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"min":[2],"max":[2],"step":[8],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32],"draft":[32],"typing":[32]},null,{"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"min":[{"syncForm":0}],"max":[{"syncForm":0}]}]]],["ch-otp-input",[[577,"ch-otp-input",{"label":[1],"value":[1025],"length":[2],"inputMode":[1,"input-mode"],"secret":[4],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"length":[{"syncForm":0}],"inputMode":[{"syncForm":0}]}]]],["ch-page-header",[[769,"ch-page-header",{"title":[1],"headingLevel":[1,"heading-level"],"eyebrow":[1],"description":[1],"actionsStacked":[4,"actions-stacked"]}]]],["ch-pagination",[[513,"ch-pagination",{"page":[2],"pageSize":[2,"page-size"],"total":[2],"label":[1],"size":[1],"disabled":[516]}]]],["ch-radio",[[577,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-segmented-control",[[577,"ch-segmented-control",{"label":[1],"options":[16],"value":[1025],"size":[1],"name":[513],"disabled":[516],"required":[516],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}]}]]],["ch-skeleton",[[513,"ch-skeleton",{"width":[1],"height":[1],"shape":[1],"count":[2],"animated":[4]}]]],["ch-stack",[[769,"ch-stack",{"gap":[1],"align":[1],"justify":[1]}]]],["ch-stat",[[769,"ch-stat",{"label":[1],"value":[1],"hint":[1],"tone":[1]}]]],["ch-table",[[769,"ch-table",{"columns":[16],"sortable":[516],"sortKey":[1,"sort-key"],"sortDirection":[1,"sort-direction"],"label":[1],"filtered":[516],"empty":[32],"rerender":[32]},null,{"filtered":[{"onFiltered":0}],"sortKey":[{"rerenderHeaders":0}],"sortDirection":[{"rerenderHeaders":0}],"sortable":[{"rerenderHeaders":0}]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[577,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-timeline",[[257,"ch-timeline"]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32],"resolvedPlacement":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"],[11,"scroll","handleScroll"],[9,"resize","handleResize"]]]]],["ch-alert_8",[[769,"ch-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"href":[1],"target":[1],"label":[1]}],[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"],"statusCue":[4,"status-cue"]}],[769,"ch-badge",{"variant":[1],"statusCue":[4,"status-cue"]}],[257,"ch-card"],[577,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-switch",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[513,"ch-spinner",{"size":[1],"label":[1]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"],"size":[1]},null,{"open":[{"handleOpenChange":0}]}]]]], options);
19
+ return bootstrapLazy([["ch-confirm-dialog",[[513,"ch-confirm-dialog",{"open":[1028],"heading":[1],"message":[1],"confirmLabel":[1,"confirm-label"],"cancelLabel":[1,"cancel-label"],"tone":[1],"pending":[4],"dismissible":[4],"settled":[32],"focusCancel":[64]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[577,"ch-checkbox",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-cluster",[[769,"ch-cluster",{"gap":[1],"align":[1],"justify":[1],"wrap":[4]}]]],["ch-combobox",[[577,"ch-combobox",{"label":[1],"options":[16],"value":[1025],"multiple":[516],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32],"query":[32],"expanded":[32],"activeIndex":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"multiple":[{"syncForm":0}]}]]],["ch-description-list",[[769,"ch-description-list",{"columns":[1]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-drawer",[[769,"ch-drawer",{"open":[1028],"side":[1],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-emoji",[[513,"ch-emoji",{"name":[1],"alt":[1],"size":[1],"extIndex":[32],"loaded":[32]},null,{"name":[{"handleNameChange":0}]}]]],["ch-empty-state",[[769,"ch-empty-state",{"title":[1],"description":[1],"size":[1]}]]],["ch-grid",[[769,"ch-grid",{"columns":[1],"gap":[1],"minItemWidth":[1,"min-item-width"]}]]],["ch-icon",[[513,"ch-icon",{"name":[1],"size":[1],"label":[1]}]]],["ch-icon-button",[[513,"ch-icon-button",{"name":[1],"label":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-number-input",[[577,"ch-number-input",{"label":[1],"value":[1025],"format":[1],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"min":[2],"max":[2],"step":[8],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32],"draft":[32],"typing":[32]},null,{"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"min":[{"syncForm":0}],"max":[{"syncForm":0}]}]]],["ch-otp-input",[[577,"ch-otp-input",{"label":[1],"value":[1025],"length":[2],"inputMode":[1,"input-mode"],"secret":[4],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"length":[{"syncForm":0}],"inputMode":[{"syncForm":0}]}]]],["ch-page-header",[[769,"ch-page-header",{"title":[1],"headingLevel":[1,"heading-level"],"eyebrow":[1],"description":[1],"actionsStacked":[4,"actions-stacked"]}]]],["ch-pagination",[[513,"ch-pagination",{"page":[2],"pageSize":[2,"page-size"],"total":[2],"label":[1],"size":[1],"disabled":[516]}]]],["ch-radio",[[577,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-segmented-control",[[577,"ch-segmented-control",{"label":[1],"options":[16],"value":[1025],"size":[1],"name":[513],"disabled":[516],"required":[516],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}]}]]],["ch-skeleton",[[513,"ch-skeleton",{"width":[1],"height":[1],"shape":[1],"count":[2],"animated":[4]}]]],["ch-stack",[[769,"ch-stack",{"gap":[1],"align":[1],"justify":[1]}]]],["ch-stat",[[769,"ch-stat",{"label":[1],"value":[1],"hint":[1],"tone":[1]}]]],["ch-table",[[769,"ch-table",{"columns":[16],"sortable":[516],"sortKey":[1,"sort-key"],"sortDirection":[1,"sort-direction"],"label":[1],"filtered":[516],"empty":[32],"rerender":[32]},null,{"filtered":[{"onFiltered":0}],"sortKey":[{"rerenderHeaders":0}],"sortDirection":[{"rerenderHeaders":0}],"sortable":[{"rerenderHeaders":0}]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[577,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-timeline",[[257,"ch-timeline"]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32],"resolvedPlacement":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"],[11,"scroll","handleScroll"],[9,"resize","handleResize"]]]]],["ch-alert_8",[[769,"ch-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"href":[1],"target":[1],"label":[1]}],[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"],"statusCue":[4,"status-cue"]}],[769,"ch-badge",{"variant":[1],"statusCue":[4,"status-cue"]}],[257,"ch-card"],[577,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-switch",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[513,"ch-spinner",{"size":[1],"label":[1]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"],"size":[1]},null,{"open":[{"handleOpenChange":0}]}]]]], options);
20
20
  });
21
21
  //# sourceMappingURL=chucao.js.map
22
22
 
@@ -4,7 +4,7 @@ export { s as setNonce } from './index-8l_6qAY9.js';
4
4
  const defineCustomElements = async (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
6
  await globalScripts();
7
- return bootstrapLazy([["ch-confirm-dialog",[[513,"ch-confirm-dialog",{"open":[1028],"heading":[1],"message":[1],"confirmLabel":[1,"confirm-label"],"cancelLabel":[1,"cancel-label"],"tone":[1],"pending":[4],"dismissible":[4],"settled":[32],"focusCancel":[64]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[577,"ch-checkbox",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-cluster",[[769,"ch-cluster",{"gap":[1],"align":[1],"justify":[1],"wrap":[4]}]]],["ch-description-list",[[769,"ch-description-list",{"columns":[1]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-drawer",[[769,"ch-drawer",{"open":[1028],"side":[1],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-emoji",[[513,"ch-emoji",{"name":[1],"alt":[1],"size":[1],"extIndex":[32],"loaded":[32]},null,{"name":[{"handleNameChange":0}]}]]],["ch-empty-state",[[769,"ch-empty-state",{"title":[1],"description":[1],"size":[1]}]]],["ch-grid",[[769,"ch-grid",{"columns":[1],"gap":[1],"minItemWidth":[1,"min-item-width"]}]]],["ch-icon",[[513,"ch-icon",{"name":[1],"size":[1],"label":[1]}]]],["ch-icon-button",[[513,"ch-icon-button",{"name":[1],"label":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-number-input",[[577,"ch-number-input",{"label":[1],"value":[1025],"format":[1],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"min":[2],"max":[2],"step":[8],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32],"draft":[32],"typing":[32]},null,{"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"min":[{"syncForm":0}],"max":[{"syncForm":0}]}]]],["ch-otp-input",[[577,"ch-otp-input",{"label":[1],"value":[1025],"length":[2],"inputMode":[1,"input-mode"],"secret":[4],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"length":[{"syncForm":0}],"inputMode":[{"syncForm":0}]}]]],["ch-page-header",[[769,"ch-page-header",{"title":[1],"headingLevel":[1,"heading-level"],"eyebrow":[1],"description":[1],"actionsStacked":[4,"actions-stacked"]}]]],["ch-pagination",[[513,"ch-pagination",{"page":[2],"pageSize":[2,"page-size"],"total":[2],"label":[1],"size":[1],"disabled":[516]}]]],["ch-radio",[[577,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-segmented-control",[[577,"ch-segmented-control",{"label":[1],"options":[16],"value":[1025],"size":[1],"name":[513],"disabled":[516],"required":[516],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}]}]]],["ch-skeleton",[[513,"ch-skeleton",{"width":[1],"height":[1],"shape":[1],"count":[2],"animated":[4]}]]],["ch-stack",[[769,"ch-stack",{"gap":[1],"align":[1],"justify":[1]}]]],["ch-stat",[[769,"ch-stat",{"label":[1],"value":[1],"hint":[1],"tone":[1]}]]],["ch-table",[[769,"ch-table",{"columns":[16],"sortable":[516],"sortKey":[1,"sort-key"],"sortDirection":[1,"sort-direction"],"label":[1],"filtered":[516],"empty":[32],"rerender":[32]},null,{"filtered":[{"onFiltered":0}],"sortKey":[{"rerenderHeaders":0}],"sortDirection":[{"rerenderHeaders":0}],"sortable":[{"rerenderHeaders":0}]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[577,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-timeline",[[257,"ch-timeline"]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32],"resolvedPlacement":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"],[11,"scroll","handleScroll"],[9,"resize","handleResize"]]]]],["ch-alert_8",[[769,"ch-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"href":[1],"target":[1],"label":[1]}],[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"],"statusCue":[4,"status-cue"]}],[769,"ch-badge",{"variant":[1],"statusCue":[4,"status-cue"]}],[257,"ch-card"],[577,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-switch",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[513,"ch-spinner",{"size":[1],"label":[1]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"],"size":[1]},null,{"open":[{"handleOpenChange":0}]}]]]], options);
7
+ return bootstrapLazy([["ch-confirm-dialog",[[513,"ch-confirm-dialog",{"open":[1028],"heading":[1],"message":[1],"confirmLabel":[1,"confirm-label"],"cancelLabel":[1,"cancel-label"],"tone":[1],"pending":[4],"dismissible":[4],"settled":[32],"focusCancel":[64]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[577,"ch-checkbox",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-cluster",[[769,"ch-cluster",{"gap":[1],"align":[1],"justify":[1],"wrap":[4]}]]],["ch-combobox",[[577,"ch-combobox",{"label":[1],"options":[16],"value":[1025],"multiple":[516],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32],"query":[32],"expanded":[32],"activeIndex":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"multiple":[{"syncForm":0}]}]]],["ch-description-list",[[769,"ch-description-list",{"columns":[1]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-drawer",[[769,"ch-drawer",{"open":[1028],"side":[1],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-emoji",[[513,"ch-emoji",{"name":[1],"alt":[1],"size":[1],"extIndex":[32],"loaded":[32]},null,{"name":[{"handleNameChange":0}]}]]],["ch-empty-state",[[769,"ch-empty-state",{"title":[1],"description":[1],"size":[1]}]]],["ch-grid",[[769,"ch-grid",{"columns":[1],"gap":[1],"minItemWidth":[1,"min-item-width"]}]]],["ch-icon",[[513,"ch-icon",{"name":[1],"size":[1],"label":[1]}]]],["ch-icon-button",[[513,"ch-icon-button",{"name":[1],"label":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-number-input",[[577,"ch-number-input",{"label":[1],"value":[1025],"format":[1],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"min":[2],"max":[2],"step":[8],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32],"draft":[32],"typing":[32]},null,{"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"min":[{"syncForm":0}],"max":[{"syncForm":0}]}]]],["ch-otp-input",[[577,"ch-otp-input",{"label":[1],"value":[1025],"length":[2],"inputMode":[1,"input-mode"],"secret":[4],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}],"length":[{"syncForm":0}],"inputMode":[{"syncForm":0}]}]]],["ch-page-header",[[769,"ch-page-header",{"title":[1],"headingLevel":[1,"heading-level"],"eyebrow":[1],"description":[1],"actionsStacked":[4,"actions-stacked"]}]]],["ch-pagination",[[513,"ch-pagination",{"page":[2],"pageSize":[2,"page-size"],"total":[2],"label":[1],"size":[1],"disabled":[516]}]]],["ch-radio",[[577,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-segmented-control",[[577,"ch-segmented-control",{"label":[1],"options":[16],"value":[1025],"size":[1],"name":[513],"disabled":[516],"required":[516],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}]}]]],["ch-skeleton",[[513,"ch-skeleton",{"width":[1],"height":[1],"shape":[1],"count":[2],"animated":[4]}]]],["ch-stack",[[769,"ch-stack",{"gap":[1],"align":[1],"justify":[1]}]]],["ch-stat",[[769,"ch-stat",{"label":[1],"value":[1],"hint":[1],"tone":[1]}]]],["ch-table",[[769,"ch-table",{"columns":[16],"sortable":[516],"sortKey":[1,"sort-key"],"sortDirection":[1,"sort-direction"],"label":[1],"filtered":[516],"empty":[32],"rerender":[32]},null,{"filtered":[{"onFiltered":0}],"sortKey":[{"rerenderHeaders":0}],"sortDirection":[{"rerenderHeaders":0}],"sortable":[{"rerenderHeaders":0}]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[577,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-timeline",[[257,"ch-timeline"]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32],"resolvedPlacement":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"],[11,"scroll","handleScroll"],[9,"resize","handleResize"]]]]],["ch-alert_8",[[769,"ch-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"href":[1],"target":[1],"label":[1]}],[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"],"statusCue":[4,"status-cue"]}],[769,"ch-badge",{"variant":[1],"statusCue":[4,"status-cue"]}],[257,"ch-card"],[577,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-switch",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[513,"ch-spinner",{"size":[1],"label":[1]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"],"size":[1]},null,{"open":[{"handleOpenChange":0}]}]]]], options);
8
8
  };
9
9
 
10
10
  export { defineCustomElements };