@devschile/chucao 2.7.1 → 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 (253) hide show
  1. package/dist/chucao/chucao.esm.js +1 -1
  2. package/dist/chucao/{p-01b6c7bf.entry.js → p-03acf096.entry.js} +2 -2
  3. package/dist/chucao/{p-10f6801e.entry.js → p-0ce2b15d.entry.js} +2 -2
  4. package/dist/chucao/p-10e37157.entry.js +2 -0
  5. package/dist/chucao/p-10e37157.entry.js.map +1 -0
  6. package/dist/chucao/{p-f917d34f.entry.js → p-12043dc1.entry.js} +2 -2
  7. package/dist/chucao/p-1dca55d6.entry.js +2 -0
  8. package/dist/chucao/{p-deb2571b.entry.js.map → p-1dca55d6.entry.js.map} +1 -1
  9. package/dist/chucao/{p-0c7f6f8d.entry.js → p-244d8e96.entry.js} +2 -2
  10. package/dist/chucao/{p-a7c674b7.entry.js → p-29841714.entry.js} +2 -2
  11. package/dist/chucao/{p-ffecdf25.entry.js → p-302ec527.entry.js} +2 -2
  12. package/dist/chucao/{p-337d7f68.entry.js → p-51f6327c.entry.js} +2 -2
  13. package/dist/chucao/{p-1b70e3f1.entry.js → p-5a62951e.entry.js} +2 -2
  14. package/dist/chucao/{p-472ec451.entry.js → p-5d0ac17a.entry.js} +2 -2
  15. package/dist/chucao/{p-d8b71751.entry.js → p-5e0e1012.entry.js} +2 -2
  16. package/dist/chucao/{p-15d27bb7.entry.js → p-61a94a4e.entry.js} +2 -2
  17. package/dist/chucao/p-649c2cef.entry.js +2 -0
  18. package/dist/chucao/p-649c2cef.entry.js.map +1 -0
  19. package/dist/chucao/p-674c0f61.entry.js +2 -0
  20. package/dist/chucao/p-674c0f61.entry.js.map +1 -0
  21. package/dist/chucao/{p-c4b2bd1f.entry.js → p-67f0fc77.entry.js} +2 -2
  22. package/dist/chucao/{p-5240f5ac.entry.js → p-68e4a129.entry.js} +2 -2
  23. package/dist/chucao/{p-2e37c61b.entry.js → p-6e345b3f.entry.js} +2 -2
  24. package/dist/chucao/{p-f6ab0a11.entry.js → p-72d4dacf.entry.js} +2 -2
  25. package/dist/chucao/{p-8ae680a4.entry.js → p-74d9b7e5.entry.js} +2 -2
  26. package/dist/chucao/p-791ce537.entry.js +2 -0
  27. package/dist/chucao/p-791ce537.entry.js.map +1 -0
  28. package/dist/chucao/{p-c90da3c0.entry.js → p-79e8c10b.entry.js} +2 -2
  29. package/dist/chucao/{p-90284ebe.entry.js → p-7e13f725.entry.js} +2 -2
  30. package/dist/chucao/{p-9ebcc7be.entry.js → p-8b23d072.entry.js} +2 -2
  31. package/dist/chucao/{p-CIV5Gg1o.js → p-8l_6qAY9.js} +3 -3
  32. package/dist/chucao/p-8l_6qAY9.js.map +1 -0
  33. package/dist/chucao/{p-1e4cd3aa.entry.js → p-a5430e95.entry.js} +2 -2
  34. package/dist/chucao/{p-e77d35c3.entry.js → p-a7c66879.entry.js} +2 -2
  35. package/dist/chucao/p-b452d6cb.entry.js +2 -0
  36. package/dist/chucao/p-b7332faf.entry.js +2 -0
  37. package/dist/chucao/{p-60e1c1df.entry.js.map → p-b7332faf.entry.js.map} +1 -1
  38. package/dist/chucao/{p-42028c97.entry.js → p-f3d03388.entry.js} +2 -2
  39. package/dist/chucao/{p-7cdc71cc.entry.js → p-f925d45c.entry.js} +2 -2
  40. package/dist/cjs/ch-accordion.cjs.entry.js +2 -2
  41. package/dist/cjs/ch-alert_8.cjs.entry.js +8 -8
  42. package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
  43. package/dist/cjs/ch-cluster.cjs.entry.js +3 -3
  44. package/dist/cjs/ch-combobox.cjs.entry.js +304 -0
  45. package/dist/cjs/ch-combobox.cjs.entry.js.map +1 -0
  46. package/dist/cjs/ch-confirm-dialog.cjs.entry.js +138 -0
  47. package/dist/cjs/ch-confirm-dialog.cjs.entry.js.map +1 -0
  48. package/dist/cjs/ch-description-list.cjs.entry.js +2 -2
  49. package/dist/cjs/ch-divider.cjs.entry.js +2 -2
  50. package/dist/cjs/ch-drawer.cjs.entry.js +2 -2
  51. package/dist/cjs/ch-emoji.cjs.entry.js +2 -2
  52. package/dist/cjs/ch-empty-state.cjs.entry.js +2 -2
  53. package/dist/cjs/ch-grid.cjs.entry.js +2 -2
  54. package/dist/cjs/ch-icon-button.cjs.entry.js +2 -2
  55. package/dist/cjs/ch-icon.cjs.entry.js +2 -2
  56. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  57. package/dist/cjs/ch-modal.cjs.entry.js +2 -2
  58. package/dist/cjs/ch-number-input.cjs.entry.js +3 -3
  59. package/dist/cjs/ch-otp-input.cjs.entry.js +196 -0
  60. package/dist/cjs/ch-otp-input.cjs.entry.js.map +1 -0
  61. package/dist/cjs/ch-page-header.cjs.entry.js +2 -2
  62. package/dist/cjs/ch-pagination.cjs.entry.js +67 -0
  63. package/dist/cjs/ch-pagination.cjs.entry.js.map +1 -0
  64. package/dist/cjs/ch-radio.cjs.entry.js +2 -2
  65. package/dist/cjs/ch-segmented-control.cjs.entry.js +2 -2
  66. package/dist/cjs/ch-skeleton.cjs.entry.js +2 -2
  67. package/dist/cjs/ch-stack.cjs.entry.js +2 -2
  68. package/dist/cjs/ch-stat.cjs.entry.js +3 -3
  69. package/dist/cjs/ch-table.cjs.entry.js +2 -2
  70. package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
  71. package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
  72. package/dist/cjs/ch-timeline.cjs.entry.js +2 -2
  73. package/dist/cjs/ch-tooltip.cjs.entry.js +3 -3
  74. package/dist/cjs/chucao.cjs.js +2 -2
  75. package/dist/cjs/{index-ByZY6aTj.js → index-C6khqyw3.js} +19 -2
  76. package/dist/cjs/index-C6khqyw3.js.map +1 -0
  77. package/dist/cjs/loader.cjs.js +2 -2
  78. package/dist/collection/collection-manifest.json +4 -0
  79. package/dist/collection/components/ch-accordion/ch-accordion.js +1 -1
  80. package/dist/collection/components/ch-alert/ch-alert.js +1 -1
  81. package/dist/collection/components/ch-badge/ch-badge.js +1 -1
  82. package/dist/collection/components/ch-card/ch-card.js +1 -1
  83. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  84. package/dist/collection/components/ch-cluster/ch-cluster.js +2 -2
  85. package/dist/collection/components/ch-combobox/ch-combobox.css +153 -0
  86. package/dist/collection/components/ch-combobox/ch-combobox.js +577 -0
  87. package/dist/collection/components/ch-combobox/ch-combobox.js.map +1 -0
  88. package/dist/collection/components/ch-confirm-dialog/ch-confirm-dialog.css +71 -0
  89. package/dist/collection/components/ch-confirm-dialog/ch-confirm-dialog.js +382 -0
  90. package/dist/collection/components/ch-confirm-dialog/ch-confirm-dialog.js.map +1 -0
  91. package/dist/collection/components/ch-description-list/ch-description-list.js +1 -1
  92. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  93. package/dist/collection/components/ch-drawer/ch-drawer.js +1 -1
  94. package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
  95. package/dist/collection/components/ch-empty-state/ch-empty-state.js +1 -1
  96. package/dist/collection/components/ch-grid/ch-grid.js +1 -1
  97. package/dist/collection/components/ch-icon/ch-icon.js +1 -1
  98. package/dist/collection/components/ch-icon-button/ch-icon-button.js +1 -1
  99. package/dist/collection/components/ch-input/ch-input.js +1 -1
  100. package/dist/collection/components/ch-modal/ch-modal.js +1 -1
  101. package/dist/collection/components/ch-number-input/ch-number-input.js +2 -2
  102. package/dist/collection/components/ch-otp-input/ch-otp-input.css +86 -0
  103. package/dist/collection/components/ch-otp-input/ch-otp-input.js +478 -0
  104. package/dist/collection/components/ch-otp-input/ch-otp-input.js.map +1 -0
  105. package/dist/collection/components/ch-page-header/ch-page-header.js +1 -1
  106. package/dist/collection/components/ch-pagination/ch-pagination.css +63 -0
  107. package/dist/collection/components/ch-pagination/ch-pagination.js +228 -0
  108. package/dist/collection/components/ch-pagination/ch-pagination.js.map +1 -0
  109. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  110. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +1 -1
  111. package/dist/collection/components/ch-select/ch-select.js +1 -1
  112. package/dist/collection/components/ch-skeleton/ch-skeleton.js +1 -1
  113. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  114. package/dist/collection/components/ch-stack/ch-stack.js +1 -1
  115. package/dist/collection/components/ch-stat/ch-stat.js +2 -2
  116. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  117. package/dist/collection/components/ch-table/ch-table.js +1 -1
  118. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  119. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  120. package/dist/collection/components/ch-timeline/ch-timeline.js +1 -1
  121. package/dist/collection/components/ch-tooltip/ch-tooltip.js +2 -2
  122. package/dist/components/ch-accordion.js +1 -1
  123. package/dist/components/ch-alert.js +1 -1
  124. package/dist/components/ch-badge.js +1 -1
  125. package/dist/components/ch-button.js +1 -1
  126. package/dist/components/ch-card.js +1 -1
  127. package/dist/components/ch-checkbox.js +1 -1
  128. package/dist/components/ch-cluster.js +1 -1
  129. package/dist/components/ch-combobox.d.ts +11 -0
  130. package/dist/components/ch-combobox.js +2 -0
  131. package/dist/components/ch-combobox.js.map +1 -0
  132. package/dist/components/ch-confirm-dialog.d.ts +11 -0
  133. package/dist/components/ch-confirm-dialog.js +2 -0
  134. package/dist/components/ch-confirm-dialog.js.map +1 -0
  135. package/dist/components/ch-description-list.js +1 -1
  136. package/dist/components/ch-divider.js +1 -1
  137. package/dist/components/ch-drawer.js +1 -1
  138. package/dist/components/ch-emoji.js +1 -1
  139. package/dist/components/ch-empty-state.js +1 -1
  140. package/dist/components/ch-grid.js +1 -1
  141. package/dist/components/ch-icon-button.js +1 -1
  142. package/dist/components/ch-icon.js +1 -1
  143. package/dist/components/ch-input.js +1 -1
  144. package/dist/components/ch-modal.js +1 -1
  145. package/dist/components/ch-modal.js.map +1 -1
  146. package/dist/components/ch-number-input.js +1 -1
  147. package/dist/components/ch-otp-input.d.ts +11 -0
  148. package/dist/components/ch-otp-input.js +2 -0
  149. package/dist/components/ch-otp-input.js.map +1 -0
  150. package/dist/components/ch-page-header.js +1 -1
  151. package/dist/components/ch-pagination.d.ts +11 -0
  152. package/dist/components/ch-pagination.js +2 -0
  153. package/dist/components/ch-pagination.js.map +1 -0
  154. package/dist/components/ch-radio.js +1 -1
  155. package/dist/components/ch-segmented-control.js +1 -1
  156. package/dist/components/ch-select.js +1 -1
  157. package/dist/components/ch-skeleton.js +1 -1
  158. package/dist/components/ch-spinner.js +1 -1
  159. package/dist/components/ch-stack.js +1 -1
  160. package/dist/components/ch-stat.js +1 -1
  161. package/dist/components/ch-switch.js +1 -1
  162. package/dist/components/ch-table.js +1 -1
  163. package/dist/components/ch-tabs.js +1 -1
  164. package/dist/components/ch-textarea.js +1 -1
  165. package/dist/components/ch-timeline.js +1 -1
  166. package/dist/components/ch-tooltip.js +1 -1
  167. package/dist/components/{p-DiUN1WGc.js → p-CuSstsTP.js} +2 -2
  168. package/dist/components/p-MBLhKofG.js +2 -0
  169. package/dist/components/p-MBLhKofG.js.map +1 -0
  170. package/dist/components/p-qP_9qshx.js.map +1 -1
  171. package/dist/esm/ch-accordion.entry.js +2 -2
  172. package/dist/esm/ch-alert_8.entry.js +8 -8
  173. package/dist/esm/ch-checkbox.entry.js +2 -2
  174. package/dist/esm/ch-cluster.entry.js +3 -3
  175. package/dist/esm/ch-combobox.entry.js +302 -0
  176. package/dist/esm/ch-combobox.entry.js.map +1 -0
  177. package/dist/esm/ch-confirm-dialog.entry.js +136 -0
  178. package/dist/esm/ch-confirm-dialog.entry.js.map +1 -0
  179. package/dist/esm/ch-description-list.entry.js +2 -2
  180. package/dist/esm/ch-divider.entry.js +2 -2
  181. package/dist/esm/ch-drawer.entry.js +2 -2
  182. package/dist/esm/ch-emoji.entry.js +2 -2
  183. package/dist/esm/ch-empty-state.entry.js +2 -2
  184. package/dist/esm/ch-grid.entry.js +2 -2
  185. package/dist/esm/ch-icon-button.entry.js +2 -2
  186. package/dist/esm/ch-icon.entry.js +2 -2
  187. package/dist/esm/ch-link.entry.js +1 -1
  188. package/dist/esm/ch-modal.entry.js +2 -2
  189. package/dist/esm/ch-number-input.entry.js +3 -3
  190. package/dist/esm/ch-otp-input.entry.js +194 -0
  191. package/dist/esm/ch-otp-input.entry.js.map +1 -0
  192. package/dist/esm/ch-page-header.entry.js +2 -2
  193. package/dist/esm/ch-pagination.entry.js +65 -0
  194. package/dist/esm/ch-pagination.entry.js.map +1 -0
  195. package/dist/esm/ch-radio.entry.js +2 -2
  196. package/dist/esm/ch-segmented-control.entry.js +2 -2
  197. package/dist/esm/ch-skeleton.entry.js +2 -2
  198. package/dist/esm/ch-stack.entry.js +2 -2
  199. package/dist/esm/ch-stat.entry.js +3 -3
  200. package/dist/esm/ch-table.entry.js +2 -2
  201. package/dist/esm/ch-tabs.entry.js +2 -2
  202. package/dist/esm/ch-textarea.entry.js +2 -2
  203. package/dist/esm/ch-timeline.entry.js +2 -2
  204. package/dist/esm/ch-tooltip.entry.js +3 -3
  205. package/dist/esm/chucao.js +3 -3
  206. package/dist/esm/{index-CIV5Gg1o.js → index-8l_6qAY9.js} +19 -2
  207. package/dist/esm/index-8l_6qAY9.js.map +1 -0
  208. package/dist/esm/loader.js +3 -3
  209. package/dist/types/components/ch-combobox/ch-combobox.d.ts +98 -0
  210. package/dist/types/components/ch-confirm-dialog/ch-confirm-dialog.d.ts +81 -0
  211. package/dist/types/components/ch-otp-input/ch-otp-input.d.ts +79 -0
  212. package/dist/types/components/ch-pagination/ch-pagination.d.ts +44 -0
  213. package/dist/types/components.d.ts +757 -0
  214. package/dist-react/components.d.ts +27 -1
  215. package/dist-react/components.js +45 -0
  216. package/dist-react/components.ts +67 -1
  217. package/dist-vue/index.d.ts +4 -0
  218. package/dist-vue/index.js +67 -0
  219. package/dist-vue/index.ts +75 -0
  220. package/hydrate/index.js +855 -35
  221. package/hydrate/index.mjs +855 -35
  222. package/package.json +17 -1
  223. package/dist/chucao/p-60e1c1df.entry.js +0 -2
  224. package/dist/chucao/p-9db118d9.entry.js +0 -2
  225. package/dist/chucao/p-CIV5Gg1o.js.map +0 -1
  226. package/dist/chucao/p-deb2571b.entry.js +0 -2
  227. package/dist/cjs/index-ByZY6aTj.js.map +0 -1
  228. package/dist/esm/index-CIV5Gg1o.js.map +0 -1
  229. /package/dist/chucao/{p-01b6c7bf.entry.js.map → p-03acf096.entry.js.map} +0 -0
  230. /package/dist/chucao/{p-10f6801e.entry.js.map → p-0ce2b15d.entry.js.map} +0 -0
  231. /package/dist/chucao/{p-f917d34f.entry.js.map → p-12043dc1.entry.js.map} +0 -0
  232. /package/dist/chucao/{p-0c7f6f8d.entry.js.map → p-244d8e96.entry.js.map} +0 -0
  233. /package/dist/chucao/{p-a7c674b7.entry.js.map → p-29841714.entry.js.map} +0 -0
  234. /package/dist/chucao/{p-ffecdf25.entry.js.map → p-302ec527.entry.js.map} +0 -0
  235. /package/dist/chucao/{p-337d7f68.entry.js.map → p-51f6327c.entry.js.map} +0 -0
  236. /package/dist/chucao/{p-1b70e3f1.entry.js.map → p-5a62951e.entry.js.map} +0 -0
  237. /package/dist/chucao/{p-472ec451.entry.js.map → p-5d0ac17a.entry.js.map} +0 -0
  238. /package/dist/chucao/{p-d8b71751.entry.js.map → p-5e0e1012.entry.js.map} +0 -0
  239. /package/dist/chucao/{p-15d27bb7.entry.js.map → p-61a94a4e.entry.js.map} +0 -0
  240. /package/dist/chucao/{p-c4b2bd1f.entry.js.map → p-67f0fc77.entry.js.map} +0 -0
  241. /package/dist/chucao/{p-5240f5ac.entry.js.map → p-68e4a129.entry.js.map} +0 -0
  242. /package/dist/chucao/{p-2e37c61b.entry.js.map → p-6e345b3f.entry.js.map} +0 -0
  243. /package/dist/chucao/{p-f6ab0a11.entry.js.map → p-72d4dacf.entry.js.map} +0 -0
  244. /package/dist/chucao/{p-8ae680a4.entry.js.map → p-74d9b7e5.entry.js.map} +0 -0
  245. /package/dist/chucao/{p-c90da3c0.entry.js.map → p-79e8c10b.entry.js.map} +0 -0
  246. /package/dist/chucao/{p-90284ebe.entry.js.map → p-7e13f725.entry.js.map} +0 -0
  247. /package/dist/chucao/{p-9ebcc7be.entry.js.map → p-8b23d072.entry.js.map} +0 -0
  248. /package/dist/chucao/{p-1e4cd3aa.entry.js.map → p-a5430e95.entry.js.map} +0 -0
  249. /package/dist/chucao/{p-e77d35c3.entry.js.map → p-a7c66879.entry.js.map} +0 -0
  250. /package/dist/chucao/{p-9db118d9.entry.js.map → p-b452d6cb.entry.js.map} +0 -0
  251. /package/dist/chucao/{p-42028c97.entry.js.map → p-f3d03388.entry.js.map} +0 -0
  252. /package/dist/chucao/{p-7cdc71cc.entry.js.map → p-f925d45c.entry.js.map} +0 -0
  253. /package/dist/components/{p-DiUN1WGc.js.map → p-CuSstsTP.js.map} +0 -0
package/hydrate/index.mjs CHANGED
@@ -2820,6 +2820,9 @@ var postUpdateComponent = (hostRef) => {
2820
2820
  safeCall(instance, "componentDidUpdate", void 0, elm);
2821
2821
  endPostUpdate();
2822
2822
  }
2823
+ {
2824
+ hostRef.$onInstanceResolve$(elm);
2825
+ }
2823
2826
  {
2824
2827
  if (hostRef.$onRenderResolve$) {
2825
2828
  hostRef.$onRenderResolve$();
@@ -5498,7 +5501,7 @@ class ChAccordion {
5498
5501
  this.chChange.emit(this.value);
5499
5502
  };
5500
5503
  render() {
5501
- return (hAsync(Host, { key: 'f147314134464f7455ac179fad62c1b9318efc92' }, this.items.map(item => {
5504
+ return (hAsync(Host, { key: '75d95349674170ef9e9f6e74b4b3c4369e7f1e21' }, this.items.map(item => {
5502
5505
  const open = this.value === item.value;
5503
5506
  return (hAsync("div", { key: item.value, class: { 'item': true, 'item--open': open } }, hAsync("h3", { class: "item-head" }, hAsync("button", { type: "button", class: "item-toggle", id: this.headerId(item.value), "data-value": item.value, "aria-expanded": open ? 'true' : 'false', "aria-controls": this.panelId(item.value), disabled: item.disabled, onClick: () => this.toggle(item.value) }, item.title)), hAsync("div", { class: "item-panel", id: this.panelId(item.value), role: "region", "aria-labelledby": this.headerId(item.value), hidden: !open }, hAsync("slot", { name: `panel-${item.value}` }))));
5504
5507
  })));
@@ -5661,7 +5664,7 @@ class ChAlert {
5661
5664
  render() {
5662
5665
  const role = this.variant === 'warning' ? 'alert' : 'status';
5663
5666
  const shapes = this.statusCue ? chIcons[VARIANT_ICON[this.variant]] : undefined;
5664
- return (hAsync(Host, { key: 'a223f49acce9b1336d1791c547be15e76e6fd740' }, hAsync("div", { key: role, class: { alert: true, [`alert--${this.variant}`]: true }, role: role }, shapes && (hAsync("svg", { key: 'd14bf776a7c2c570203d4785c51a7e2e2110a837', class: "alert-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 => hAsync(shape.tag, shape.attrs)))), hAsync("div", { key: 'be4eb0acb06ba3b95eae29a08911f4e3a76a5998', class: "alert-content" }, hAsync("slot", { key: '1ebb312baa833210658003113d6aee562a05cb50' })), this.dismissLabel && (hAsync("button", { key: '388986c78e41cf66e74071a27c0ffa9a146fcacb', class: "alert-dismiss", type: "button", "aria-label": this.dismissLabel, onClick: this.handleDismiss }, hAsync("span", { key: '24c24edbee8549bb64a6e9dcc381ebdae8d5d72d', "aria-hidden": "true" }, "\u00D7"))))));
5667
+ return (hAsync(Host, { key: '55c2c37d0a730000b644c583a99eae37d6f75784' }, hAsync("div", { key: role, class: { alert: true, [`alert--${this.variant}`]: true }, role: role }, shapes && (hAsync("svg", { key: '8fb807cd1f894c0960c55a3e417a418078c79d63', class: "alert-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 => hAsync(shape.tag, shape.attrs)))), hAsync("div", { key: '43784df5b3ede4eb01521439dd90d85fccf6fe43', class: "alert-content" }, hAsync("slot", { key: 'f4643113dfe9e3beb6f5e1ae9794b28c19ea3341' })), this.dismissLabel && (hAsync("button", { key: 'a1b3afee8907514f9448810b8f22d288a2f50057', class: "alert-dismiss", type: "button", "aria-label": this.dismissLabel, onClick: this.handleDismiss }, hAsync("span", { key: '50371733d2358e002f7bdd1d5f8cb61d020c1cb9', "aria-hidden": "true" }, "\u00D7"))))));
5665
5668
  }
5666
5669
  static get style() { return chAlertCss(); }
5667
5670
  static get cmpMeta() { return {
@@ -5703,7 +5706,7 @@ class ChBadge {
5703
5706
  */
5704
5707
  statusCue = true;
5705
5708
  render() {
5706
- return (hAsync(Host, { key: '8d92a45ab1f2932deb6a316d20e3aecd59d35498' }, hAsync("span", { key: '16e499ffe26d47e2da057fd49fa214fba0dc9277', class: { badge: true, [`badge--${this.variant}`]: true } }, this.statusCue && hAsync("span", { key: '040dbe5203403812ed98f84b03029ae38071f533', class: "badge-dot", "aria-hidden": "true" }), hAsync("slot", { key: '89c1c35f937bc141bad71a9bee0f76d8b2d28666' }))));
5709
+ return (hAsync(Host, { key: '104554450ef32f24bb88afc77ad0b3d79811de6c' }, hAsync("span", { key: '10531c508c51141fe433f794877d38ac8f9d7859', class: { badge: true, [`badge--${this.variant}`]: true } }, this.statusCue && hAsync("span", { key: 'f6bb6f7c23e7d7f4051a6022f76a15f640e35650', class: "badge-dot", "aria-hidden": "true" }), hAsync("slot", { key: '6c4d8c9c981be16facbcf95c3c0abce6f164ed16' }))));
5707
5710
  }
5708
5711
  static get style() { return chBadgeCss(); }
5709
5712
  static get cmpMeta() { return {
@@ -5834,7 +5837,7 @@ class ChCard {
5834
5837
  registerInstance(this, hostRef);
5835
5838
  }
5836
5839
  render() {
5837
- return (hAsync(Host, { key: '2857d45b454709a8285fd52dbaa0943d571908b1' }, hAsync("div", { key: 'a252222f7d25a697b4d6e8cd240564668a908652', class: "card" }, hAsync("slot", { key: '4cadc2ad7fdbb2141d2a77bc19d5e6344e574b7a' }))));
5840
+ return (hAsync(Host, { key: 'f3a0efc8ed91ac81cf39d599acdf1944d72b56c1' }, hAsync("div", { key: '5524237836d327c8c988903393b5adc09078b121', class: "card" }, hAsync("slot", { key: '7c5a80c115399f591e40705abafd8288ff575d0f' }))));
5838
5841
  }
5839
5842
  static get style() { return chCardCss(); }
5840
5843
  static get cmpMeta() { return {
@@ -5975,7 +5978,7 @@ class ChCheckbox {
5975
5978
  return undefined;
5976
5979
  }
5977
5980
  render() {
5978
- return (hAsync(Host, { key: 'b3ea4a0cfad08ea8c00ac1fbdb54f130a76943b4' }, hAsync("label", { key: '7e1736c41138ab6b73ee30590f290768feb786a1', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: '1d70b3936da371de75a931e3033f08ed05b62101', id: this.checkboxId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), this.label && hAsync("span", { key: '581b62c2a907bc9634d8c137f2539e47c90f79e1', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '51ea863dd984d90fdf70a6f6d8dabdffa92d7340', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '561ef3469af4bbf8f4eef568a0372f78618c047b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5981
+ return (hAsync(Host, { key: 'cf170be4d00e1ccb5511b0b72f6d42faa35b6371' }, hAsync("label", { key: '3af65f435365b1ffdaf2d4149d87c8c4f7630998', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: '3073840bef40f15e7688920209df189e831d4139', id: this.checkboxId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), this.label && hAsync("span", { key: 'a2630c7bf760b5adcd5b22e423d20e1bf7bb5107', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '4c51711fe4a623c2b9a77dc66b2e2668c905fc19', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '053569a86c7c3cd01b2278d3dcde7c649142a7c3', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5979
5982
  }
5980
5983
  static get formAssociated() { return true; }
5981
5984
  static get watchers() { return {
@@ -6046,13 +6049,13 @@ class ChCluster {
6046
6049
  return GAPS$2.has(this.gap) ? this.gap : 'md';
6047
6050
  }
6048
6051
  render() {
6049
- return (hAsync(Host, { key: '63f10662f55078a9aec2680653c040c8411cd80f', class: {
6052
+ return (hAsync(Host, { key: '82b4133e903fd75e71314ae814d7c76d1844bcdc', class: {
6050
6053
  'cluster': true,
6051
6054
  [`cluster--gap-${this.gapStep}`]: true,
6052
6055
  [`cluster--align-${this.align}`]: true,
6053
6056
  [`cluster--justify-${this.justify}`]: true,
6054
6057
  'cluster--nowrap': !this.wrap,
6055
- } }, hAsync("slot", { key: '60f9896089d707fe0ef1980dcb9115bcf3308a2f' })));
6058
+ } }, hAsync("slot", { key: 'a53161dbf0dbfeb52e5dae80de4764d9c708c3c6' })));
6056
6059
  }
6057
6060
  static get style() { return chClusterCss(); }
6058
6061
  static get cmpMeta() { return {
@@ -6070,6 +6073,509 @@ class ChCluster {
6070
6073
  }; }
6071
6074
  }
6072
6075
 
6076
+ const chComboboxCss = () => `:host{display:block;width:100%;font-family:var(--typography-body)}:host([hidden]){display:none}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--color-text-primary)}.chips{display:flex;flex-wrap:wrap;gap:var(--spacing-xs);margin:0 0 var(--spacing-sm);padding:0;list-style:none}.chip{display:inline-flex;align-items:center;gap:var(--spacing-xs);max-width:100%;padding:var(--spacing-2xs) var(--spacing-sm);border:var(--border-width) solid var(--color-border-default);border-radius:var(--radius-sm);background:var(--color-surface-hover);font-size:var(--typography-size-sm)}.chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip__remove{all:unset;cursor:pointer;padding:0 var(--spacing-2xs);border-radius:var(--radius-sm);color:var(--color-text-secondary);line-height:1}.chip__remove:focus-visible{outline:2px solid var(--color-accent-default);outline-offset:1px}.field{position:relative}.input{box-sizing:border-box;width:100%;padding:var(--spacing-xl) var(--spacing-3xl);border:var(--border-width) solid var(--color-border-default);border-radius:var(--radius-sm);background:var(--color-surface-default);color:var(--color-text-primary);font-family:inherit;font-size:var(--typography-size-md);transition:border-color var(--duration-normal) var(--easing-default)}.input::placeholder{color:var(--color-text-secondary)}.input:focus{border-color:var(--color-accent-default);outline:2px solid var(--color-accent-default);outline-offset:1px}.input:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.input--invalid{border-color:var(--color-status-warning)}.listbox{position:absolute;z-index:var(--z-index-dropdown);top:calc(100% + var(--spacing-2xs));left:0;right:0;max-height:16rem;margin:0;padding:var(--spacing-2xs);overflow-y:auto;list-style:none;border:var(--border-width) solid var(--color-border-default);border-radius:var(--radius-sm);background:var(--color-surface-default);box-shadow:var(--shadow-elevate)}.listbox[hidden]{display:none}.listbox__option{padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-sm);font-size:var(--typography-size-sm);cursor:pointer}.listbox__option--active{background:var(--color-surface-hover);font-weight:var(--typography-weight-semibold);box-shadow:inset 2px 0 0 var(--color-accent-default)}.listbox__option--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.listbox__empty{padding:var(--spacing-sm) var(--spacing-md);font-size:var(--typography-size-sm);color:var(--color-text-secondary)}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--color-text-secondary)}.error{color:var(--color-status-warning)}`;
6077
+
6078
+ let comboboxIds = 0;
6079
+ /**
6080
+ * A text field that filters a list of options and commits a choice.
6081
+ *
6082
+ * The input is a native `<input>` rather than `ch-input`: the combobox role
6083
+ * and its `aria-*` state have to sit on the element that owns the interaction,
6084
+ * and ARIA does not forward through a wrapper component.
6085
+ *
6086
+ * Single and multiple are one component. `multiple` changes the value shape
6087
+ * (`string` vs `string[]`), renders the chosen values as removable chips, and
6088
+ * keeps the list open after a pick; single commits and closes. Everything else
6089
+ * — filtering, the active option, keyboard behaviour, validity — is shared, so
6090
+ * the two cannot drift apart.
6091
+ *
6092
+ * The consumer owns the options and, if it fetches them, their ordering: this
6093
+ * component never sorts, debounces or requests anything. It filters what it is
6094
+ * given, and reports what the user asked for.
6095
+ */
6096
+ class ChCombobox {
6097
+ constructor(hostRef) {
6098
+ registerInstance(this, hostRef);
6099
+ this.chChange = createEvent(this, "chChange");
6100
+ this.chFilter = createEvent(this, "chFilter");
6101
+ if (hostRef.$hostElement$["s-ei"]) {
6102
+ this.internals = hostRef.$hostElement$["s-ei"];
6103
+ }
6104
+ else {
6105
+ this.internals = hostRef.$hostElement$.attachInternals();
6106
+ hostRef.$hostElement$["s-ei"] = this.internals;
6107
+ }
6108
+ }
6109
+ inputId = `ch-combobox-${++comboboxIds}`;
6110
+ listId = `${this.inputId}-list`;
6111
+ hintId = `${this.inputId}-hint`;
6112
+ errorId = `${this.inputId}-error`;
6113
+ initialValue = [];
6114
+ internals;
6115
+ formDisabled = false;
6116
+ get host() { return getElement(this); }
6117
+ /** Visible label, associated with the input via `for`/`id`. */
6118
+ label;
6119
+ /** The options to filter and choose from. */
6120
+ options = [];
6121
+ /** The committed value. An array when `multiple`. */
6122
+ value;
6123
+ /** Whether the user can pick more than one option. */
6124
+ multiple = false;
6125
+ /** Placeholder shown while the field is empty. */
6126
+ placeholder;
6127
+ /** Name submitted with the form. Repeated once per value when `multiple`. */
6128
+ name;
6129
+ /** Whether the field is disabled. */
6130
+ disabled = false;
6131
+ /** Whether at least one value is required. */
6132
+ required = false;
6133
+ /** Helper text, replaced by `errorMessage` when invalid. */
6134
+ hint;
6135
+ /** Custom error message; wins over the built-in messages. */
6136
+ errorMessage;
6137
+ /** Whether the field is marked invalid by the consumer. */
6138
+ invalid = false;
6139
+ /** Text the user has typed to filter with. */
6140
+ query = '';
6141
+ /** Whether the list is rendered. */
6142
+ expanded = false;
6143
+ /** Index into `visibleOptions` of the option under the keyboard cursor. */
6144
+ activeIndex = -1;
6145
+ /** Emitted whenever the committed value changes. */
6146
+ chChange;
6147
+ /** Emitted as the user types, with the raw query, so a consumer can filter remotely. */
6148
+ chFilter;
6149
+ /** The committed values as an array, whatever the mode. */
6150
+ get selected() {
6151
+ if (Array.isArray(this.value)) {
6152
+ return this.value;
6153
+ }
6154
+ return this.value === undefined || this.value === '' ? [] : [this.value];
6155
+ }
6156
+ /** Options that match the current query. */
6157
+ get visibleOptions() {
6158
+ const query = this.query.trim().toLowerCase();
6159
+ if (query === '') {
6160
+ return this.options;
6161
+ }
6162
+ return this.options.filter(option => option.label.toLowerCase().includes(query));
6163
+ }
6164
+ /** Options that are still choosable: already-picked ones drop out in multiple mode. */
6165
+ get choosable() {
6166
+ if (!this.multiple) {
6167
+ return this.visibleOptions;
6168
+ }
6169
+ const chosen = new Set(this.selected);
6170
+ return this.visibleOptions.filter(option => !chosen.has(option.value));
6171
+ }
6172
+ labelFor(value) {
6173
+ return this.options.find(option => option.value === value)?.label ?? value;
6174
+ }
6175
+ componentDidLoad() {
6176
+ this.initialValue = this.selected;
6177
+ this.syncForm();
6178
+ this.host.addEventListener('focusout', this.handleFocusOut);
6179
+ this.host.addEventListener('invalid', this.markTouched);
6180
+ }
6181
+ disconnectedCallback() {
6182
+ this.host.removeEventListener('focusout', this.handleFocusOut);
6183
+ }
6184
+ markTouched = () => {
6185
+ this.host.setAttribute('data-touched', '');
6186
+ };
6187
+ /**
6188
+ * Closing on blur is deferred: clicking an option also blurs the input, and
6189
+ * the click must be allowed to land first.
6190
+ */
6191
+ handleFocusOut = () => {
6192
+ this.markTouched();
6193
+ window.setTimeout(() => {
6194
+ if (!this.host.contains(document.activeElement) && this.host.shadowRoot?.activeElement == null) {
6195
+ this.expanded = false;
6196
+ this.syncForm();
6197
+ }
6198
+ }, 0);
6199
+ };
6200
+ syncForm() {
6201
+ const internals = this.internals;
6202
+ if (typeof internals?.setFormValue !== 'function') {
6203
+ return;
6204
+ }
6205
+ const values = this.selected;
6206
+ // Multiple entries are submitted once per value, the way a multi-select does.
6207
+ if (this.multiple) {
6208
+ const data = new FormData();
6209
+ for (const entry of values) {
6210
+ data.append(this.name ?? '', entry);
6211
+ }
6212
+ internals.setFormValue(values.length === 0 ? null : data);
6213
+ }
6214
+ else {
6215
+ internals.setFormValue(values[0] ?? '');
6216
+ }
6217
+ const { flags, message } = resolveValidity({
6218
+ required: this.required,
6219
+ empty: values.length === 0,
6220
+ invalid: this.invalid,
6221
+ errorMessage: this.errorMessage,
6222
+ });
6223
+ internals.setValidity(flags, message);
6224
+ }
6225
+ formResetCallback() {
6226
+ this.value = this.multiple ? [...this.initialValue] : (this.initialValue[0] ?? '');
6227
+ this.query = '';
6228
+ this.syncForm();
6229
+ const input = this.host.shadowRoot?.querySelector('.input');
6230
+ if (input) {
6231
+ input.value = '';
6232
+ }
6233
+ }
6234
+ formDisabledCallback(isDisabled) {
6235
+ this.formDisabled = isDisabled;
6236
+ }
6237
+ commit(value) {
6238
+ if (this.multiple) {
6239
+ const next = this.selected.includes(value) ? this.selected : [...this.selected, value];
6240
+ this.value = next;
6241
+ this.query = '';
6242
+ const input = this.host.shadowRoot?.querySelector('.input');
6243
+ if (input) {
6244
+ input.value = '';
6245
+ }
6246
+ // Keep the list open: choosing again is the common case here.
6247
+ this.activeIndex = -1;
6248
+ }
6249
+ else {
6250
+ this.value = value;
6251
+ this.query = this.labelFor(value);
6252
+ this.expanded = false;
6253
+ this.activeIndex = -1;
6254
+ }
6255
+ this.chChange.emit(this.value);
6256
+ this.syncForm();
6257
+ }
6258
+ remove(value) {
6259
+ const next = this.selected.filter(entry => entry !== value);
6260
+ this.value = this.multiple ? next : '';
6261
+ this.chChange.emit(this.value);
6262
+ this.syncForm();
6263
+ }
6264
+ open() {
6265
+ if (this.disabled || this.formDisabled) {
6266
+ return;
6267
+ }
6268
+ this.expanded = true;
6269
+ }
6270
+ moveActive(delta) {
6271
+ const count = this.choosable.length;
6272
+ if (count === 0) {
6273
+ return;
6274
+ }
6275
+ const next = this.activeIndex + delta;
6276
+ this.activeIndex = next < 0 ? count - 1 : next >= count ? 0 : next;
6277
+ }
6278
+ handleInput = (event) => {
6279
+ const input = event.target;
6280
+ this.query = input.value;
6281
+ this.expanded = true;
6282
+ this.activeIndex = this.choosable.length > 0 ? 0 : -1;
6283
+ // Single mode shows a typed-but-uncommitted value as no value at all.
6284
+ if (!this.multiple && this.value !== undefined && this.value !== this.labelFor(this.selected[0] ?? '')) {
6285
+ this.value = '';
6286
+ }
6287
+ this.chFilter.emit(this.query);
6288
+ };
6289
+ handleKeyDown = (event) => {
6290
+ if (event.key === 'ArrowDown') {
6291
+ event.preventDefault();
6292
+ this.open();
6293
+ this.moveActive(1);
6294
+ return;
6295
+ }
6296
+ if (event.key === 'ArrowUp') {
6297
+ event.preventDefault();
6298
+ this.open();
6299
+ this.moveActive(-1);
6300
+ return;
6301
+ }
6302
+ if (event.key === 'Enter') {
6303
+ const option = this.choosable[this.activeIndex];
6304
+ if (this.expanded && option && !option.disabled) {
6305
+ event.preventDefault();
6306
+ this.commit(option.value);
6307
+ }
6308
+ return;
6309
+ }
6310
+ if (event.key === 'Escape' && this.expanded) {
6311
+ event.preventDefault();
6312
+ this.expanded = false;
6313
+ this.activeIndex = -1;
6314
+ return;
6315
+ }
6316
+ // Backspace in an empty multiple field removes the last chip.
6317
+ if (event.key === 'Backspace' && this.multiple && this.query === '') {
6318
+ const last = this.selected[this.selected.length - 1];
6319
+ if (last !== undefined) {
6320
+ event.preventDefault();
6321
+ this.remove(last);
6322
+ }
6323
+ }
6324
+ };
6325
+ handleFocus = () => {
6326
+ this.open();
6327
+ };
6328
+ handleBlur = () => {
6329
+ // A single-mode field shows the chosen label, not what was typed.
6330
+ const input = this.host.shadowRoot?.querySelector('.input');
6331
+ if (input && !this.multiple) {
6332
+ this.query = '';
6333
+ input.value = this.selected.length > 0 ? this.labelFor(this.selected[0]) : '';
6334
+ }
6335
+ };
6336
+ get isInvalid() {
6337
+ return this.invalid || (this.host.hasAttribute('data-touched') && this.selected.length === 0 && this.required);
6338
+ }
6339
+ get describedBy() {
6340
+ if (this.isInvalid && this.errorMessage) {
6341
+ return this.errorId;
6342
+ }
6343
+ return this.hint ? this.hintId : undefined;
6344
+ }
6345
+ /** The option id for `aria-activedescendant`. */
6346
+ optionId(index) {
6347
+ return `${this.inputId}-option-${index}`;
6348
+ }
6349
+ render() {
6350
+ const options = this.choosable;
6351
+ const active = this.activeIndex >= 0 && this.activeIndex < options.length ? options[this.activeIndex] : undefined;
6352
+ const chosen = this.selected;
6353
+ const showError = this.isInvalid && this.errorMessage;
6354
+ return (hAsync(Host, { key: '783df95d2970b0db5c6f839fb0acbaa7582301f0' }, this.label && (hAsync("label", { key: '232933c04601d543b391d15603f1dcfafa2f6e73', class: "label", htmlFor: this.inputId }, this.label)), this.multiple && chosen.length > 0 && (hAsync("ul", { key: 'e7e92805f42a9a97d0587463f0b68fa79368cc6b', class: "chips", "aria-label": "Selected values" }, chosen.map(entry => (hAsync("li", { class: "chip", key: entry }, hAsync("span", { class: "chip__label" }, this.labelFor(entry)), hAsync("button", { type: "button", class: "chip__remove", "aria-label": `Remove ${this.labelFor(entry)}`, onClick: () => this.remove(entry) }, hAsync("span", { "aria-hidden": "true" }, "\u00D7"))))))), hAsync("div", { key: '076bd78c0c43327c298baf37e9411d68e6b03734', class: "field" }, hAsync("input", { key: '0e2caa28567ea21d8b5a98a8b1ed949e07731e09', id: this.label && !this.multiple ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid }, type: "text", role: "combobox", autocomplete: "off", "aria-expanded": this.expanded ? 'true' : 'false', "aria-controls": this.listId, "aria-autocomplete": "list", "aria-activedescendant": active ? this.optionId(this.activeIndex) : undefined, "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-describedby": this.describedBy, name: this.name, disabled: this.disabled || this.formDisabled, required: this.required, placeholder: chosen.length === 0 ? this.placeholder : undefined, value: this.multiple ? this.query : this.query || (chosen[0] !== undefined ? this.labelFor(chosen[0]) : ''), onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }), hAsync("ul", { key: '5f843aef03c09ff9dd1e02c3da90f6e9dbcca858', class: "listbox", id: this.listId, role: "listbox", "aria-multiselectable": this.multiple ? 'true' : undefined, hidden: !this.expanded }, options.length === 0 && (hAsync("li", { key: '1bb282438f1889da96af7d27b504e31ab19088e5', class: "listbox__empty", role: "presentation" }, "No results")), options.map((option, index) => (hAsync("li", { class: {
6355
+ 'listbox__option': true,
6356
+ 'listbox__option--active': index === this.activeIndex,
6357
+ 'listbox__option--disabled': option.disabled === true,
6358
+ }, id: this.optionId(index), key: option.value, role: "option", "aria-selected": this.multiple ? 'false' : chosen[0] === option.value ? 'true' : 'false', "aria-disabled": option.disabled ? 'true' : undefined,
6359
+ // Pointer-down commits before the input's blur closes the list.
6360
+ onMouseDown: event => {
6361
+ event.preventDefault();
6362
+ if (!option.disabled) {
6363
+ this.commit(option.value);
6364
+ }
6365
+ } }, option.label))))), this.hint && !showError && (hAsync("p", { key: 'dc7f8a5d26e55d2d7836bf72a5359a6c0fbe0220', class: "hint", id: this.hintId }, this.hint)), showError && (hAsync("p", { key: 'd3d9beaa0eb9d830b2c9f3082ea0bf0490efe3ee', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6366
+ }
6367
+ static get formAssociated() { return true; }
6368
+ static get watchers() { return {
6369
+ "value": [{
6370
+ "syncForm": 0
6371
+ }],
6372
+ "required": [{
6373
+ "syncForm": 0
6374
+ }],
6375
+ "invalid": [{
6376
+ "syncForm": 0
6377
+ }],
6378
+ "errorMessage": [{
6379
+ "syncForm": 0
6380
+ }],
6381
+ "multiple": [{
6382
+ "syncForm": 0
6383
+ }]
6384
+ }; }
6385
+ static get style() { return chComboboxCss(); }
6386
+ static get cmpMeta() { return {
6387
+ "$flags$": 585,
6388
+ "$tagName$": "ch-combobox",
6389
+ "$members$": {
6390
+ "label": [1],
6391
+ "options": [16],
6392
+ "value": [1025],
6393
+ "multiple": [516],
6394
+ "placeholder": [1],
6395
+ "name": [513],
6396
+ "disabled": [516],
6397
+ "required": [516],
6398
+ "hint": [1],
6399
+ "errorMessage": [1, "error-message"],
6400
+ "invalid": [4],
6401
+ "formDisabled": [32],
6402
+ "query": [32],
6403
+ "expanded": [32],
6404
+ "activeIndex": [32]
6405
+ },
6406
+ "$listeners$": undefined,
6407
+ "$lazyBundleId$": "-",
6408
+ "$attrsToReflect$": [["multiple", "multiple"], ["name", "name"], ["disabled", "disabled"], ["required", "required"]]
6409
+ }; }
6410
+ }
6411
+
6412
+ const chConfirmDialogCss = () => `:host{display:contents;font-family:var(--typography-body)}.confirm__heading{margin:0;font-family:var(--typography-heading);font-size:var(--typography-size-lg);font-weight:var(--typography-weight-semibold);color:var(--color-text-primary)}.confirm__message{margin:0;font-size:var(--typography-size-sm);color:var(--color-text-secondary);overflow-wrap:break-word}.confirm__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--spacing-md);margin-top:var(--spacing-2xl)}.confirm__button{display:inline-flex;align-items:center;justify-content:center;min-height:2.25rem;padding:0 var(--spacing-lg);border:var(--border-width) solid var(--color-border-default);border-radius:var(--radius-sm);background:var(--color-surface-default);color:var(--color-text-primary);font-family:var(--typography-body);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);cursor:pointer}.confirm__button:focus-visible{outline:2px solid var(--color-accent-default);outline-offset:2px}.confirm__button:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.confirm__button--confirm{border-color:var(--color-accent-default);background:var(--color-accent-default);color:var(--color-accent-text)}.confirm__button--danger{border-color:var(--color-status-warning);background:var(--color-status-warning);color:var(--color-text-primary)}.confirm__button--danger::before{content:'⚠';margin-right:var(--spacing-xs)}`;
6413
+
6414
+ /**
6415
+ * A confirmation dialog over `ch-modal`.
6416
+ *
6417
+ * Declarative only: the consumer opens it with `open` and handles the outcome.
6418
+ * The imperative `confirm()` helper is a separate concern and a separate issue,
6419
+ * because a promise-returning helper has to own mounting, focus and unhandled
6420
+ * rejection, none of which a component should decide for its consumer.
6421
+ *
6422
+ * The guarantees this adds over a plain `ch-modal` are the ones that make a
6423
+ * confirmation safe:
6424
+ *
6425
+ * - exactly one outcome per interaction — a double click on Confirm emits once;
6426
+ * - every dismissal path (Cancel, Escape, backdrop, confirm) is reported, so a
6427
+ * consumer awaiting an answer cannot hang;
6428
+ * - focus lands on Cancel for a destructive action, so the absent-minded Enter
6429
+ * does not destroy anything;
6430
+ * - `pending` is not a cancellation: a slow request keeps the dialog open.
6431
+ */
6432
+ class ChConfirmDialog {
6433
+ constructor(hostRef) {
6434
+ registerInstance(this, hostRef);
6435
+ this.chConfirm = createEvent(this, "chConfirm");
6436
+ this.chCancel = createEvent(this, "chCancel");
6437
+ }
6438
+ get el() { return getElement(this); }
6439
+ /** Whether the dialog is open. Kept in sync when it is dismissed. */
6440
+ open = false;
6441
+ /**
6442
+ * The question, set as the dialog's accessible name. Required: a dialog
6443
+ * without a name is announced as an unlabelled group.
6444
+ */
6445
+ heading;
6446
+ /** Supporting text, rendered under the heading. */
6447
+ message;
6448
+ /** Label of the confirming action. */
6449
+ confirmLabel = 'Confirm';
6450
+ /** Label of the dismissing action. */
6451
+ cancelLabel = 'Cancel';
6452
+ /**
6453
+ * `danger` styles the confirm action as destructive and moves the initial
6454
+ * focus to Cancel, so the safe choice is the default one.
6455
+ */
6456
+ tone = 'default';
6457
+ /** Whether the confirm action is in flight; both buttons are then disabled. */
6458
+ pending = false;
6459
+ /**
6460
+ * Whether Escape and the backdrop dismiss the dialog. When false, the only
6461
+ * way out is one of the two buttons — use it only for a decision that must
6462
+ * be answered rather than abandoned.
6463
+ */
6464
+ dismissible = true;
6465
+ /** Emitted once when the user confirms. */
6466
+ chConfirm;
6467
+ /** Emitted once when the dialog is dismissed without confirming. */
6468
+ chCancel;
6469
+ /** `true` once an outcome has been emitted for the current opening. */
6470
+ settled = false;
6471
+ cancelButton;
6472
+ confirmButton;
6473
+ componentDidLoad() {
6474
+ if (this.open) {
6475
+ this.onOpening();
6476
+ }
6477
+ }
6478
+ handleOpenChange(open) {
6479
+ if (open) {
6480
+ this.onOpening();
6481
+ return;
6482
+ }
6483
+ this.settled = false;
6484
+ }
6485
+ onOpening() {
6486
+ this.settled = false;
6487
+ // Focus is moved once the dialog is actually shown; the modal handles
6488
+ // moving focus into itself, and this refines where it lands.
6489
+ requestAnimationFrame(() => {
6490
+ const target = this.tone === 'danger' ? this.cancelButton : this.confirmButton;
6491
+ target?.focus();
6492
+ });
6493
+ }
6494
+ settle(outcome) {
6495
+ if (this.settled) {
6496
+ return;
6497
+ }
6498
+ this.settled = true;
6499
+ if (outcome === 'confirm') {
6500
+ this.chConfirm.emit();
6501
+ return;
6502
+ }
6503
+ this.chCancel.emit();
6504
+ }
6505
+ handleConfirm = () => {
6506
+ if (this.pending) {
6507
+ return;
6508
+ }
6509
+ this.settle('confirm');
6510
+ };
6511
+ handleCancel = () => {
6512
+ if (this.pending) {
6513
+ return;
6514
+ }
6515
+ this.open = false;
6516
+ this.settle('cancel');
6517
+ };
6518
+ /**
6519
+ * `ch-modal` reports every close that was not requested by the consumer —
6520
+ * Escape and the backdrop. A close while `pending` is the consumer's own
6521
+ * doing and is not a cancellation.
6522
+ */
6523
+ handleModalClose = () => {
6524
+ this.open = false;
6525
+ if (this.pending) {
6526
+ return;
6527
+ }
6528
+ this.settle('cancel');
6529
+ };
6530
+ /**
6531
+ * Escape is a platform close request on the inner `<dialog>`, so a
6532
+ * non-dismissible dialog cancels it before it takes effect. The backdrop is
6533
+ * handled by `ch-modal` and is suppressed the same way.
6534
+ */
6535
+ handleKeyDown = (event) => {
6536
+ if (this.dismissible || event.key !== 'Escape') {
6537
+ return;
6538
+ }
6539
+ event.preventDefault();
6540
+ event.stopPropagation();
6541
+ };
6542
+ /**
6543
+ * Focus the safe action. Exposed so a consumer can return focus deliberately
6544
+ * after a request settles.
6545
+ */
6546
+ async focusCancel() {
6547
+ this.cancelButton?.focus();
6548
+ }
6549
+ render() {
6550
+ return (hAsync(Host, { key: 'b51a806f4cca331fc3a95421d3342608c6e0df4c', onKeyDown: this.handleKeyDown }, hAsync("ch-modal", { key: '453db02cd724bc9bf2ed7c4b61bcf04c77b8d449', open: this.open, label: this.heading, size: "sm", onChClose: this.handleModalClose, onChOpen: () => this.onOpening() }, hAsync("h2", { key: '1dee8f11ee68679792c394506ab2e8a7f98b852b', slot: "heading", class: "confirm__heading" }, this.heading), this.message && hAsync("p", { key: 'f2a8a473acfcdfee51600a0dc7bc47b85f4a0889', class: "confirm__message" }, this.message), hAsync("div", { key: '7ecfa78e4df217e38519f115fdcb4761ed88937d', class: "confirm__actions" }, hAsync("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), hAsync("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)))));
6551
+ }
6552
+ static get watchers() { return {
6553
+ "open": [{
6554
+ "handleOpenChange": 0
6555
+ }]
6556
+ }; }
6557
+ static get style() { return chConfirmDialogCss(); }
6558
+ static get cmpMeta() { return {
6559
+ "$flags$": 521,
6560
+ "$tagName$": "ch-confirm-dialog",
6561
+ "$members$": {
6562
+ "open": [1028],
6563
+ "heading": [1],
6564
+ "message": [1],
6565
+ "confirmLabel": [1, "confirm-label"],
6566
+ "cancelLabel": [1, "cancel-label"],
6567
+ "tone": [1],
6568
+ "pending": [4],
6569
+ "dismissible": [4],
6570
+ "settled": [32],
6571
+ "focusCancel": [64]
6572
+ },
6573
+ "$listeners$": undefined,
6574
+ "$lazyBundleId$": "-",
6575
+ "$attrsToReflect$": []
6576
+ }; }
6577
+ }
6578
+
6073
6579
  const chDescriptionListCss = () => `:host{display:block;font-family:var(--typography-body);color:var(--color-text-secondary)}:host([hidden]){display:none}.list{margin:0;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:var(--spacing-sm) var(--spacing-2xl)}.list--columns-2,.list--columns-3{grid-template-columns:repeat(2, minmax(0, 1fr))}.list--columns-3{grid-template-columns:repeat(3, minmax(0, 1fr))}@media (max-width: 48rem){.list--columns-2,.list--columns-3{grid-template-columns:minmax(0, 1fr)}}::slotted(div){display:grid;grid-template-columns:fit-content(min(12rem, 40%)) minmax(0, 1fr);gap:var(--spacing-sm);align-items:baseline}::slotted(dt){font-family:var(--typography-heading);font-weight:var(--typography-weight-semibold);font-size:var(--typography-size-sm);color:var(--color-text-primary)}::slotted(dd){margin:0;font-size:var(--typography-size-sm);min-width:0;overflow-wrap:break-word}`;
6074
6580
 
6075
6581
  const COLUMNS = new Set(['1', '2', '3']);
@@ -6106,7 +6612,7 @@ class ChDescriptionList {
6106
6612
  return COLUMNS.has(this.columns) ? this.columns : '1';
6107
6613
  }
6108
6614
  render() {
6109
- return (hAsync(Host, { key: '2f349aa14dc442e4e531dacc2d9f6b02fc2b141a' }, hAsync("dl", { key: 'de4bf1b60c31f0319bc5e169304134c8e0046912', class: `list list--columns-${this.columnCount}` }, hAsync("slot", { key: '4ef568fa3e64048ba6e586ae9e8d10c21ad326aa' }))));
6615
+ return (hAsync(Host, { key: '1fd1228705a78196b618efc4b9665de038663ae5' }, hAsync("dl", { key: '0b724aa3c5dec011106347d9d29d0420f723012f', class: `list list--columns-${this.columnCount}` }, hAsync("slot", { key: '4da2c6965568cf7d2f93ee98e131a7bede26d5dc' }))));
6110
6616
  }
6111
6617
  static get style() { return chDescriptionListCss(); }
6112
6618
  static get cmpMeta() { return {
@@ -6132,7 +6638,7 @@ class ChDivider {
6132
6638
  */
6133
6639
  orientation = 'horizontal';
6134
6640
  render() {
6135
- return (hAsync(Host, { key: '0ae19c8f91c810836781f7dac098b49b99c01389', class: { 'divider--vertical': this.orientation === 'vertical' } }, hAsync("hr", { key: 'f5b782f7d67da28ec659fceef32ebf0f4d8ca521', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
6641
+ return (hAsync(Host, { key: 'cc193b7e7229de8ff96eb056bd345cc8d666004b', class: { 'divider--vertical': this.orientation === 'vertical' } }, hAsync("hr", { key: '659320c0372d208aab9b13d471427e479499a72c', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
6136
6642
  }
6137
6643
  static get style() { return chDividerCss(); }
6138
6644
  static get cmpMeta() { return {
@@ -6337,7 +6843,7 @@ class ChDrawer {
6337
6843
  this.chClose.emit();
6338
6844
  };
6339
6845
  render() {
6340
- return (hAsync(Host, { key: '871af03f0944e4272be64c1452cc28a0a39ac0f2' }, hAsync("dialog", { key: '540da9d2bff68d5528e65146b2a049adbc9723c2', class: { drawer: true, [`drawer--${this.side}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: 'de569a4d239dd5e2bf6b2741b77307eb70ddced1', class: "drawer-head" }, hAsync("slot", { key: 'e28ade42e0835a919aa5447dafbbbfff2de903d7', name: "header" }), this.closeLabel && (hAsync("button", { key: '5cf29d8b791652fce663459f479826564637d6ca', class: "drawer-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: '06a24d8b140db10b9d543530ea5dfbd8dd991019', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'b593bac5fb45234d501d3ec540f00d804ae5e066', class: "drawer-body" }, hAsync("slot", { key: '854cb053b30234aa31d59fcf27bb7d2820311eb3' })), hAsync("slot", { key: '5c1fb51d3636af1762b26d72f5eaa79c5f779a60', name: "footer" }))));
6846
+ return (hAsync(Host, { key: '1a51b3f19b956fe860fe4def9f2ac23eac7f86ac' }, hAsync("dialog", { key: 'ad7366eb2e6274962faa2a1564a06ecc3268329c', class: { drawer: true, [`drawer--${this.side}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: 'ce532be71c35234f1713051e5669f1cf9316031e', class: "drawer-head" }, hAsync("slot", { key: 'b522a8f26dddefd2aaf146134ac24e026a5eb72a', name: "header" }), this.closeLabel && (hAsync("button", { key: 'b51fb4e20797cd82661c72c9250b0875338180f0', class: "drawer-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: 'dd21e30fcb74f08c80b1c2ba79696e1d54bf4c26', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'eacafa24e5af7c107e09a7cbfdfc93ae6f373dc5', class: "drawer-body" }, hAsync("slot", { key: 'ddf9370c27956bc2954a3af29064394d37ec5e67' })), hAsync("slot", { key: '0065c8f5bafb14791e63d15bbec0ec2ba533c222', name: "footer" }))));
6341
6847
  }
6342
6848
  static get watchers() { return {
6343
6849
  "open": [{
@@ -6449,7 +6955,7 @@ class ChEmoji {
6449
6955
  this.loaded = true;
6450
6956
  };
6451
6957
  render() {
6452
- return (hAsync(Host, { key: '8444f71f1c84fd8b1940503c5e7bf5ff62bbb9e6' }, hAsync("img", { key: 'ce9c083238c87557f71838ab8de50038fc43a2bd', class: {
6958
+ return (hAsync(Host, { key: 'd6e224a01b95fdebb4525b30b326585ee96e1050' }, hAsync("img", { key: '6bc232d8f25e0099c9e2794f15b8e47f6c2dbb22', class: {
6453
6959
  'emoji': true,
6454
6960
  [`emoji--${this.size}`]: true,
6455
6961
  'emoji--hidden': !this.loaded,
@@ -6505,7 +7011,7 @@ class ChEmptyState {
6505
7011
  */
6506
7012
  size = 'md';
6507
7013
  render() {
6508
- return (hAsync(Host, { key: '8ed0e4e1712c415ccc38050011af09c778a6bb48', class: { 'empty-state': true, [`empty-state--${this.size}`]: true } }, hAsync("div", { key: '63a6dd1e1678c48da81af7e89dc90fd2288fdbfa', class: "empty-state__inner" }, hAsync("div", { key: '3753c28a9268eff9ebb936f3b8f9d4257e63ca41', class: "empty-state__icon", "aria-hidden": "true" }, hAsync("slot", { key: 'abc7a5a2b84d7d4d5be3cd5dcfa3da217e480a4f', name: "icon" })), hAsync("h3", { key: 'c6be0381802f307f35ea81a58fe8571d0799b97a', class: "empty-state__title" }, this.title), this.description && hAsync("p", { key: 'e8c953d3ed017ed9fd06c572a7d601217be317e3', class: "empty-state__description" }, this.description), hAsync("div", { key: 'da062b6ceabc34cced61ed900f09025a83f401f4', class: "empty-state__actions" }, hAsync("slot", { key: '18930706af315dfbb2da7a492c79d3a468be3574' })))));
7014
+ return (hAsync(Host, { key: '15a171d5e6128b278078f3564fe27a75f2d3638f', class: { 'empty-state': true, [`empty-state--${this.size}`]: true } }, hAsync("div", { key: '959baade697f5817d46fe2ef1e08b31d1f14168d', class: "empty-state__inner" }, hAsync("div", { key: 'c97f9d6405da2d81e538701c48e12acbb6bbbd76', class: "empty-state__icon", "aria-hidden": "true" }, hAsync("slot", { key: 'abb50aae0a68ff11b5042a51cdb8d7f69d965ae8', name: "icon" })), hAsync("h3", { key: '2049c3cb4714b642670ba283f8c3c9e3e1ba6ae4', class: "empty-state__title" }, this.title), this.description && hAsync("p", { key: 'b74601952c870aab10345c7bdc856dc779396645', class: "empty-state__description" }, this.description), hAsync("div", { key: 'c72be9f5a4f40113d1c6df1d62c9b617e8dcb407', class: "empty-state__actions" }, hAsync("slot", { key: 'c998904407c1cf174921873e3d547c2056f3d1b5' })))));
6509
7015
  }
6510
7016
  static get style() { return chEmptyStateCss(); }
6511
7017
  static get cmpMeta() { return {
@@ -6576,7 +7082,7 @@ class ChGrid {
6576
7082
  this.el.style.setProperty('--ch-grid-columns', template);
6577
7083
  }
6578
7084
  render() {
6579
- return (hAsync(Host, { key: 'de6c2d15da9a5d735327df077c6b58abe9775267', class: { grid: true, [`grid--gap-${this.gapStep}`]: true } }, hAsync("slot", { key: '348289bcf2f46fb07e7392afa00c4619d6614fef' })));
7085
+ return (hAsync(Host, { key: '4fbcd3b5e563ebf0f5b2878ef6af0cb2d1c0f427', class: { grid: true, [`grid--gap-${this.gapStep}`]: true } }, hAsync("slot", { key: '4fe1548392ab44de9dd895129d77f20650a0d929' })));
6580
7086
  }
6581
7087
  static get style() { return chGridCss(); }
6582
7088
  static get cmpMeta() { return {
@@ -6626,7 +7132,7 @@ class ChIcon {
6626
7132
  render() {
6627
7133
  const shapes = this.name ? chIcons[this.name] : undefined;
6628
7134
  const decorative = !this.label;
6629
- return (hAsync(Host, { key: 'f45fcd8a7f620f12942e3c1dd1c68a16009905ad' }, hAsync("svg", { key: 'c529a79b5ae690200fa0f66aa7eb482e26409ed5', 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 => hAsync(shape.tag, shape.attrs)))));
7135
+ return (hAsync(Host, { key: 'c55af60731d59ee48bfb2566f498c5675c36cb04' }, hAsync("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 => hAsync(shape.tag, shape.attrs)))));
6630
7136
  }
6631
7137
  static get style() { return chIconCss(); }
6632
7138
  static get cmpMeta() { return {
@@ -6689,7 +7195,7 @@ class ChIconButton {
6689
7195
  };
6690
7196
  render() {
6691
7197
  const shapes = this.name ? chIcons[this.name] : undefined;
6692
- return (hAsync(Host, { key: 'cdef3ba2a7577cb7119aa943138746905de21dbb' }, hAsync("button", { key: '2b3afb472d1483b84927a47e997d1f44665f5c62', 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 }, hAsync("svg", { key: 'cdbe7d1bcb75b9a3bc9c6613a5baf3a7421b20d9', 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 => hAsync(shape.tag, shape.attrs))))));
7198
+ return (hAsync(Host, { key: '585bbba80a0811664fcc2fa8fd625cd8655e3395' }, hAsync("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 }, hAsync("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 => hAsync(shape.tag, shape.attrs))))));
6693
7199
  }
6694
7200
  static get style() { return chIconButtonCss(); }
6695
7201
  static get cmpMeta() { return {
@@ -6830,7 +7336,7 @@ class ChInput {
6830
7336
  return undefined;
6831
7337
  }
6832
7338
  render() {
6833
- return (hAsync(Host, { key: '2b6755db381eeecb5c7c15730f351b5a28b2f89a' }, this.label && (hAsync("label", { key: 'a4c4be2f9ca0dddc175597a12d2e48c3a5030131', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'b080e37229425a745588d6080bab48cf62be8aa8', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.invalid }, type: this.type, 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) && (hAsync("p", { key: '857edf91f7b9657b34763fa06bae3d57e07d861c', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '4516a30cd0d40e3b9e53430416934497c92b1f88', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7339
+ return (hAsync(Host, { key: '80dd56c8fa40d4c8c4eec2b62d1fea2aaa574dcc' }, this.label && (hAsync("label", { key: 'd1d4c26e7a49f176f5d986af107395fd32abbd11', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: '9220c4f98593dce4af626a2d068e654cf360199b', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.invalid }, type: this.type, 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) && (hAsync("p", { key: '802ec36ef19bebd3371ff9535fba4052268f3db6', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '489b9634ce6577f71c5875a45cfc5b8a5eeb6cf1', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6834
7340
  }
6835
7341
  static get formAssociated() { return true; }
6836
7342
  static get watchers() { return {
@@ -7079,7 +7585,7 @@ class ChModal {
7079
7585
  this.chClose.emit();
7080
7586
  };
7081
7587
  render() {
7082
- return (hAsync(Host, { key: 'b0fced593159cc6e6952831f9460cce1efd532d4' }, hAsync("dialog", { key: '81180fe5cdd62df43f5aa35a8358b4e86cc8dc40', class: { modal: true, [`modal--${this.size}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '4c13adb1131ee26978f607b86e7eb8a9e65ce3a7', class: "modal-head" }, hAsync("slot", { key: '4cb35bd7f0c290ef0c7aec5df60a839f8c383e66', name: "heading" }), this.closeLabel && (hAsync("button", { key: 'f967cf89873760e1156081a77402d12252cbc20d', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: '719e26b74726be28f50587dca769c257db3ecdec', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'b6a44ef698e580031aa9efa5b5a177c9c1218488', class: "modal-body" }, hAsync("slot", { key: '27c107491182196ee3ea3aa8d6746da0a9be40a6' })))));
7588
+ return (hAsync(Host, { key: '36395dc0b52676493b93d02c04d1c810d98c8028' }, hAsync("dialog", { key: '99d446c5d0ecd9e16f8d36fc2903f1ab06c274f2', class: { modal: true, [`modal--${this.size}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '9dd7043302df7ffa89fdb44f54ed5c93a48fff7e', class: "modal-head" }, hAsync("slot", { key: '473041c868d2234c66276936cde0d020b8ed74ce', name: "heading" }), this.closeLabel && (hAsync("button", { key: 'e3f65a8c91283b8f3a27975afe44e47e65fbf03f', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: 'dbacf11f6b06ed4183e6d277fc807d63867fdf1d', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: '1d9e1567fe0046078f1d26f5dea25c3c06c7e6ed', class: "modal-body" }, hAsync("slot", { key: 'cc0a63c64b512a6c40c59d8395ced225a961adfc' })))));
7083
7589
  }
7084
7590
  static get watchers() { return {
7085
7591
  "open": [{
@@ -7320,10 +7826,10 @@ class ChNumberInput {
7320
7826
  }
7321
7827
  render() {
7322
7828
  const showError = this.isInvalid && this.errorMessage;
7323
- return (hAsync(Host, { key: '1c424d9d76ec39e6cc6018d6ba483f95bd203d32' }, this.label && (hAsync("label", { key: '4fc03334128c33cc425da773df063cd99fee215c', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'ece15737f83c181d615e906aba5cce80c0bcb8ba', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid },
7829
+ return (hAsync(Host, { key: '0265106cccf730338541d292be247b7853ab00cf' }, this.label && (hAsync("label", { key: '17293d5cc55a8d4de0cd544ea1f508d1ed820b12', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'ce17dc7c0f5c1064d8535aef942e486a46b72188', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid },
7324
7830
  // `text` with `inputmode`, not `type="number"`: a number input drops
7325
7831
  // partial values and cannot show grouped digits.
7326
- 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 && (hAsync("p", { key: '7a2e3031b8bfebf26857dd60eb18340f21a01f3d', class: "hint", id: this.hintId }, this.hint)), showError && (hAsync("p", { key: 'f90492532d27088f18b258f885d5d471f31d27cb', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7832
+ 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 && (hAsync("p", { key: '37611a7755f6885e6f87a600b1a27cc5edd5fefd', class: "hint", id: this.hintId }, this.hint)), showError && (hAsync("p", { key: '68b8c5b964a2a98df493103b1fde088aeefda769', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7327
7833
  }
7328
7834
  static get formAssociated() { return true; }
7329
7835
  static get watchers() { return {
@@ -7371,6 +7877,227 @@ class ChNumberInput {
7371
7877
  }; }
7372
7878
  }
7373
7879
 
7880
+ const chOtpInputCss = () => `:host{display:inline-block;width:100%}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.input{box-sizing:border-box;width:100%;padding:var(--spacing-xl) var(--spacing-3xl);border-radius:var(--radius);border:var(--border-width) solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(var(--effect-blur));font-family:inherit;font-size:inherit;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input::placeholder{color:var(--text-muted)}.input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}:host([data-touched]:invalid) .input,:host(:user-invalid) .input{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus,:host(:user-invalid) .input:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.input:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}.input{font-family:var(--typography-heading);font-size:var(--typography-size-lg);letter-spacing:0.4em;text-align:center;font-variant-numeric:tabular-nums}`;
7881
+
7882
+ let otpIds = 0;
7883
+ /**
7884
+ * One-time-code input.
7885
+ *
7886
+ * One native `<input>` holds the whole code, not a box per digit. Per-digit
7887
+ * inputs break paste, break SMS autofill (the platform fills a single field
7888
+ * carrying `autocomplete="one-time-code"`), and give a keyboard user several
7889
+ * tab stops for what is one value. The segmented look is drawn by the shadow
7890
+ * CSS over the single field.
7891
+ *
7892
+ * It never submits on completion: a code entered is not a decision to send it,
7893
+ * so the consumer listens to `chComplete` and submits when it decides to.
7894
+ */
7895
+ class ChOtpInput {
7896
+ constructor(hostRef) {
7897
+ registerInstance(this, hostRef);
7898
+ this.chInput = createEvent(this, "chInput");
7899
+ this.chComplete = createEvent(this, "chComplete");
7900
+ if (hostRef.$hostElement$["s-ei"]) {
7901
+ this.internals = hostRef.$hostElement$["s-ei"];
7902
+ }
7903
+ else {
7904
+ this.internals = hostRef.$hostElement$.attachInternals();
7905
+ hostRef.$hostElement$["s-ei"] = this.internals;
7906
+ }
7907
+ }
7908
+ inputId = `ch-otp-input-${++otpIds}`;
7909
+ hintId = `${this.inputId}-hint`;
7910
+ errorId = `${this.inputId}-error`;
7911
+ initialValue = '';
7912
+ internals;
7913
+ formDisabled = false;
7914
+ get host() { return getElement(this); }
7915
+ /** Visible label, associated with the input via `for`/`id`. */
7916
+ label;
7917
+ /** The code without separators. Filtered to alphanumerics on every change. */
7918
+ value = '';
7919
+ /** How many characters make a complete code. */
7920
+ length = 6;
7921
+ /**
7922
+ * `numeric` restricts input to digits, which is the shape of nearly every
7923
+ * one-time code and lets a phone open the number pad.
7924
+ */
7925
+ inputMode = 'numeric';
7926
+ /** Whether the codes are masked, as for a short-lived secret. */
7927
+ secret = false;
7928
+ /** Placeholder shown when empty. */
7929
+ placeholder;
7930
+ /** Name submitted with the form. */
7931
+ name;
7932
+ /** Whether the field is disabled. */
7933
+ disabled = false;
7934
+ /** Whether a complete code is required for the field to be valid. */
7935
+ required = false;
7936
+ /** Helper text, replaced by `errorMessage` when invalid. */
7937
+ hint;
7938
+ /** Custom error message; wins over the built-in incomplete-code message. */
7939
+ errorMessage;
7940
+ /** Whether the field is marked invalid by the consumer. */
7941
+ invalid = false;
7942
+ /** Emitted on every change with the current (possibly partial) code. */
7943
+ chInput;
7944
+ /**
7945
+ * Emitted once, when the code becomes complete and valid after not being so.
7946
+ * Never fires again while it stays complete, so holding a code cannot
7947
+ * resubmit it.
7948
+ */
7949
+ chComplete;
7950
+ wasComplete = false;
7951
+ componentDidLoad() {
7952
+ this.initialValue = this.value;
7953
+ this.wasComplete = this.isComplete;
7954
+ this.syncForm();
7955
+ this.host.addEventListener('focusout', this.markTouched);
7956
+ this.host.addEventListener('invalid', this.markTouched);
7957
+ }
7958
+ /**
7959
+ * Leaving the field is what turns an unfinished code into an error. The
7960
+ * validity has to be recomputed here: `syncForm` reads the attribute, and
7961
+ * setting it alone would not update `ElementInternals`.
7962
+ */
7963
+ markTouched = () => {
7964
+ this.host.setAttribute('data-touched', '');
7965
+ this.syncForm();
7966
+ };
7967
+ /** Whether the value is a complete, correctly shaped code. */
7968
+ get isComplete() {
7969
+ if (this.value.length !== this.length) {
7970
+ return false;
7971
+ }
7972
+ return this.inputMode === 'numeric' ? /^\d+$/u.test(this.value) : /^[a-z0-9]+$/iu.test(this.value);
7973
+ }
7974
+ /** The message for an incomplete code, which is what makes it invalid. */
7975
+ get incompleteMessage() {
7976
+ if (this.errorMessage || this.invalid || this.value === '') {
7977
+ return undefined;
7978
+ }
7979
+ return this.isComplete ? undefined : `Enter the ${this.length}-character code.`;
7980
+ }
7981
+ syncForm() {
7982
+ const internals = this.internals;
7983
+ if (typeof internals?.setFormValue !== 'function') {
7984
+ return;
7985
+ }
7986
+ internals.setFormValue(this.value);
7987
+ const empty = this.value === '';
7988
+ const base = resolveValidity({ required: this.required, empty, invalid: this.invalid, errorMessage: this.errorMessage });
7989
+ // A partially typed code is what the user is doing, not an error, unless
7990
+ // they have already left the field once.
7991
+ const touched = this.host.hasAttribute('data-touched');
7992
+ const incomplete = this.incompleteMessage;
7993
+ if (incomplete && touched && !empty) {
7994
+ internals.setValidity({ ...base.flags, customError: true }, incomplete);
7995
+ return;
7996
+ }
7997
+ internals.setValidity(base.flags, base.message);
7998
+ }
7999
+ formResetCallback() {
8000
+ this.value = this.initialValue;
8001
+ this.wasComplete = this.isComplete;
8002
+ this.syncForm();
8003
+ const input = this.host.shadowRoot?.querySelector('input');
8004
+ if (input) {
8005
+ input.value = this.value;
8006
+ }
8007
+ }
8008
+ formDisabledCallback(isDisabled) {
8009
+ this.formDisabled = isDisabled;
8010
+ }
8011
+ /** Strips everything the input mode does not allow, then caps the length. */
8012
+ sanitize(raw) {
8013
+ const allowed = this.inputMode === 'numeric' ? raw.replace(/\D/gu, '') : raw.replace(/[^a-z0-9]/giu, '');
8014
+ return allowed.slice(0, Math.max(1, this.length));
8015
+ }
8016
+ handleInput = (ev) => {
8017
+ const input = ev.target;
8018
+ const clean = this.sanitize(input.value);
8019
+ // The element holds the raw text, so a rejected character has to be
8020
+ // written back or it stays visible while the value says otherwise.
8021
+ if (input.value !== clean) {
8022
+ input.value = clean;
8023
+ }
8024
+ this.value = clean;
8025
+ this.chInput.emit(clean);
8026
+ const complete = this.isComplete;
8027
+ if (complete && !this.wasComplete) {
8028
+ this.chComplete.emit(clean);
8029
+ }
8030
+ this.wasComplete = complete;
8031
+ this.syncForm();
8032
+ };
8033
+ handleBlur = () => {
8034
+ this.syncForm();
8035
+ };
8036
+ get isInvalid() {
8037
+ return this.invalid || (this.host.hasAttribute('data-touched') && this.incompleteMessage !== undefined);
8038
+ }
8039
+ get describedBy() {
8040
+ if (this.isInvalid && this.errorMessage) {
8041
+ return this.errorId;
8042
+ }
8043
+ if (this.hint) {
8044
+ return this.hintId;
8045
+ }
8046
+ return undefined;
8047
+ }
8048
+ render() {
8049
+ const showError = this.isInvalid && this.errorMessage;
8050
+ return (hAsync(Host, { key: '1ce9d8e77463ecb270b870461ef96f8e84f418df' }, this.label && (hAsync("label", { key: 'd19c88141314b68912c91af235d45eceaa12555b', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'e2e93f1672fa753b3b20bc032abc6e375591cf3f', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid }, type: this.secret ? 'password' : 'text', inputMode: this.inputMode,
8051
+ // The platform fills a single field carrying this attribute; per-digit
8052
+ // inputs never receive the SMS code.
8053
+ 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 && (hAsync("p", { key: 'f02aa008051c1c0d64bba7045fb72d8c89ebaddd', class: "hint", id: this.hintId }, this.hint)), showError && (hAsync("p", { key: 'ff9dc44ff5de84fd100fe617677ad18ab898fe1e', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8054
+ }
8055
+ static get formAssociated() { return true; }
8056
+ static get watchers() { return {
8057
+ "value": [{
8058
+ "syncForm": 0
8059
+ }],
8060
+ "required": [{
8061
+ "syncForm": 0
8062
+ }],
8063
+ "invalid": [{
8064
+ "syncForm": 0
8065
+ }],
8066
+ "errorMessage": [{
8067
+ "syncForm": 0
8068
+ }],
8069
+ "length": [{
8070
+ "syncForm": 0
8071
+ }],
8072
+ "inputMode": [{
8073
+ "syncForm": 0
8074
+ }]
8075
+ }; }
8076
+ static get style() { return chOtpInputCss(); }
8077
+ static get cmpMeta() { return {
8078
+ "$flags$": 585,
8079
+ "$tagName$": "ch-otp-input",
8080
+ "$members$": {
8081
+ "label": [1],
8082
+ "value": [1025],
8083
+ "length": [2],
8084
+ "inputMode": [1, "input-mode"],
8085
+ "secret": [4],
8086
+ "placeholder": [1],
8087
+ "name": [513],
8088
+ "disabled": [516],
8089
+ "required": [516],
8090
+ "hint": [1],
8091
+ "errorMessage": [1, "error-message"],
8092
+ "invalid": [4],
8093
+ "formDisabled": [32]
8094
+ },
8095
+ "$listeners$": undefined,
8096
+ "$lazyBundleId$": "-",
8097
+ "$attrsToReflect$": [["name", "name"], ["disabled", "disabled"], ["required", "required"]]
8098
+ }; }
8099
+ }
8100
+
7374
8101
  const chPageHeaderCss = () => `:host{display:block}.header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:var(--spacing-2xl);padding-bottom:var(--spacing-2xl);border-bottom:var(--border-width) solid var(--border)}.header-text{display:flex;flex-direction:column;gap:var(--spacing-xs);flex:1 1 20rem;min-width:0}.header-eyebrow{margin:0;color:var(--text-secondary);font-family:var(--font-heading);font-size:var(--typography-size-xs);letter-spacing:var(--typography-tracking-badge);text-transform:uppercase}.header-title{margin:0;color:var(--text);font-family:var(--font-heading);font-size:var(--typography-size-xl);font-weight:var(--typography-weight-bold);line-height:1.2;overflow-wrap:anywhere}.header-description{margin:0;color:var(--text-secondary);font-size:var(--typography-size-sm);line-height:1.5;overflow-wrap:anywhere}.header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-md);max-width:100%}.header-actions:empty{display:none}.header--stacked .header-actions{flex-basis:100%}@media (max-width: 30rem){.header{flex-direction:column}.header-actions{width:100%}}@media (forced-colors: active){.header{border-bottom-color:CanvasText}}`;
7375
8102
 
7376
8103
  /**
@@ -7414,7 +8141,7 @@ class ChPageHeader {
7414
8141
  actionsStacked = false;
7415
8142
  render() {
7416
8143
  const Heading = this.headingLevel;
7417
- return (hAsync(Host, { key: '3d8de76e3df7fba8be55d0708861c7d136b05722' }, hAsync("div", { key: '057d2b4359b9faff34b9fbf6886b04d5d89dc9ac', class: { 'header': true, 'header--stacked': this.actionsStacked } }, hAsync("div", { key: '1ff40b1cd100d41a72d80ab35e619f93b4a43633', class: "header-text" }, this.eyebrow && hAsync("p", { key: '6c2538bf1d450a6dca25fd2815968a9622f7fcbf', class: "header-eyebrow" }, this.eyebrow), hAsync(Heading, { key: '54cdf8e62468e11cf9fe084023e4fe624f958452', class: "header-title" }, this.title), this.description && hAsync("p", { key: 'fe9c6cc78354b38b8833871ddc53d412007abe29', class: "header-description" }, this.description)), hAsync("div", { key: 'e91a66715e2c23478c375ce9ddcf29c04f85b3eb', class: "header-actions" }, hAsync("slot", { key: '06654c2a28d004791ed5b9c213cd66ef80bbcc85', name: "actions" })))));
8144
+ return (hAsync(Host, { key: '482cd87ddc139731c8b09ba6441231657aae0fcd' }, hAsync("div", { key: '9b4d97c14cc6c88d926e4384c6e85df097fdd4ac', class: { 'header': true, 'header--stacked': this.actionsStacked } }, hAsync("div", { key: '55daa00350e1204e7a80cc7ee9d1efad49bc517f', class: "header-text" }, this.eyebrow && hAsync("p", { key: 'f30b06834abcc2c6e4aca65b56d6860e8a242dfe', class: "header-eyebrow" }, this.eyebrow), hAsync(Heading, { key: '2f0c4b1e6608403ce1b4d9316247d6012c4c810f', class: "header-title" }, this.title), this.description && hAsync("p", { key: '28633505d6dcc8346a34010e85664d48bc8b019b', class: "header-description" }, this.description)), hAsync("div", { key: '1bda14e777cc0744a9391ea64accb9d2c734dfc2', class: "header-actions" }, hAsync("slot", { key: '7869965c1649dfc6ffa0e019e84d6785344187d2', name: "actions" })))));
7418
8145
  }
7419
8146
  static get style() { return chPageHeaderCss(); }
7420
8147
  static get cmpMeta() { return {
@@ -7433,6 +8160,95 @@ class ChPageHeader {
7433
8160
  }; }
7434
8161
  }
7435
8162
 
8163
+ const chPaginationCss = () => `:host{display:block;font-family:var(--typography-body);color:var(--color-text-primary)}:host([hidden]){display:none}.pager{display:flex;align-items:center;gap:var(--spacing-md)}.pager__button{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;padding:0 var(--spacing-sm);border:var(--border-width) solid var(--color-border-default);border-radius:var(--radius-sm);background:var(--color-surface-default);color:var(--color-text-primary);font-size:var(--typography-size-md);line-height:1;cursor:pointer}.pager__button:hover:not(:disabled){border-color:var(--color-border-hover);background:var(--color-surface-hover)}.pager__button:focus-visible{outline:2px solid var(--color-accent-default);outline-offset:2px}.pager__button:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.pager__summary{margin:0;font-size:var(--typography-size-sm);color:var(--color-text-secondary);font-variant-numeric:tabular-nums}.pager--sm .pager__button{min-width:1.5rem;height:1.5rem}.pager--sm .pager__summary{font-size:var(--typography-size-xs)}`;
8164
+
8165
+ let paginationIds = 0;
8166
+ /**
8167
+ * Controlled pagination for a known total.
8168
+ *
8169
+ * It holds no page state: `page` and `pageSize` come from the consumer and
8170
+ * every action emits `chPageChange` with the page it wants. That matches
8171
+ * `ch-table`, so a consumer wiring the two together has one model to reason
8172
+ * about — the table shows the rows for `page`, the pagination asks for the
8173
+ * next one, and nothing moves until the consumer's data does.
8174
+ *
8175
+ * No numbered page list. A list of numbers is wrong more often than it is
8176
+ * right (it depends on how many pages fit, which depends on the font, the
8177
+ * locale and the container), and it is the part consumers most often need to
8178
+ * replace with their own. Prev/next plus a position summary covers the
8179
+ * default case; the summary is what tells a screen-reader user where they are.
8180
+ */
8181
+ class ChPagination {
8182
+ constructor(hostRef) {
8183
+ registerInstance(this, hostRef);
8184
+ this.chPageChange = createEvent(this, "chPageChange");
8185
+ }
8186
+ labelId = `ch-pagination-${++paginationIds}`;
8187
+ /** The current page, 1-based. Controlled by the consumer. */
8188
+ page = 1;
8189
+ /** How many rows a page holds. Controlled by the consumer. */
8190
+ pageSize = 10;
8191
+ /** How many rows exist in total. Zero renders a disabled, empty pager. */
8192
+ total = 0;
8193
+ /** Accessible name for the navigation landmark. */
8194
+ label = 'Pagination';
8195
+ /** Size of the controls. */
8196
+ size = 'md';
8197
+ /** Whether the whole control is disabled. */
8198
+ disabled = false;
8199
+ /** Emitted when the user asks for another page. The consumer applies it. */
8200
+ chPageChange;
8201
+ get pageCount() {
8202
+ if (this.total <= 0 || this.pageSize <= 0) {
8203
+ return 0;
8204
+ }
8205
+ return Math.ceil(this.total / this.pageSize);
8206
+ }
8207
+ /** How many rows this page shows, which is short on the last page. */
8208
+ get rowsOnPage() {
8209
+ if (this.pageCount === 0) {
8210
+ return 0;
8211
+ }
8212
+ const remaining = this.total - (this.page - 1) * this.pageSize;
8213
+ return Math.max(0, Math.min(this.pageSize, remaining));
8214
+ }
8215
+ get firstRow() {
8216
+ return this.rowsOnPage === 0 ? 0 : (this.page - 1) * this.pageSize + 1;
8217
+ }
8218
+ get lastRow() {
8219
+ return this.rowsOnPage === 0 ? 0 : this.firstRow + this.rowsOnPage - 1;
8220
+ }
8221
+ go(next) {
8222
+ if (this.disabled || next < 1 || next > this.pageCount || next === this.page) {
8223
+ return;
8224
+ }
8225
+ this.chPageChange.emit({ page: next, pageSize: this.pageSize });
8226
+ }
8227
+ render() {
8228
+ const count = this.pageCount;
8229
+ const atStart = this.page <= 1;
8230
+ const atEnd = count === 0 || this.page >= count;
8231
+ const blocked = this.disabled || count === 0;
8232
+ return (hAsync(Host, { key: 'c5091d1a0791a1e0a87fb483ae026484d2aa6c6a' }, hAsync("nav", { key: 'f70132cdc0ebd3f08d6b712b843bc5a36b20d355', class: { pager: true, [`pager--${this.size}`]: true }, "aria-label": this.label }, hAsync("button", { key: '3aebe1cce9b909f8b5977f231bd540121fc95f50', class: "pager__button", type: "button", disabled: blocked || atStart, onClick: () => this.go(this.page - 1), "aria-label": "Previous page" }, hAsync("span", { key: 'e68021c2356a38c6a79ecf79a9a7cbcd9063e6cf', "aria-hidden": "true" }, "\u2039")), hAsync("p", { key: 'd615f3d94d3c5c9a4232ca50ddf1fc8113eb932e', class: "pager__summary", id: this.labelId, "aria-live": "polite" }, count === 0 ? 'No results' : `${this.firstRow}–${this.lastRow} of ${this.total}`), hAsync("button", { key: '0724d97b05c7fe1ef2501317bd28218fa4d8c440', class: "pager__button", type: "button", disabled: blocked || atEnd, onClick: () => this.go(this.page + 1), "aria-label": "Next page" }, hAsync("span", { key: '05cbf13c2be6ccc33e4a517b995a22113306883b', "aria-hidden": "true" }, "\u203A")))));
8233
+ }
8234
+ static get style() { return chPaginationCss(); }
8235
+ static get cmpMeta() { return {
8236
+ "$flags$": 521,
8237
+ "$tagName$": "ch-pagination",
8238
+ "$members$": {
8239
+ "page": [2],
8240
+ "pageSize": [2, "page-size"],
8241
+ "total": [2],
8242
+ "label": [1],
8243
+ "size": [1],
8244
+ "disabled": [516]
8245
+ },
8246
+ "$listeners$": undefined,
8247
+ "$lazyBundleId$": "-",
8248
+ "$attrsToReflect$": [["disabled", "disabled"]]
8249
+ }; }
8250
+ }
8251
+
7436
8252
  const chRadioCss = () => `:host{display:inline-block}.group-label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.radio-group{display:flex;flex-direction:column;gap:var(--spacing-lg)}.control{display:inline-flex;align-items:center;gap:var(--spacing-lg);cursor:pointer}.control--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.input{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--spacing-4xl);height:var(--spacing-4xl);margin:0;flex-shrink:0;border:var(--border-width) solid var(--border);border-radius:50%;background:var(--surface);cursor:pointer;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.input:checked{border-color:var(--accent)}.input:checked::before{content:'';width:var(--spacing-md);height:var(--spacing-md);border-radius:50%;background:var(--accent)}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus-visible{outline-color:var(--color-status-warning)}:host([data-touched]:invalid) .input,:host(:user-invalid) .input{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus-visible,:host(:user-invalid) .input:focus-visible{outline-color:var(--color-status-warning)}.label-text{color:var(--text)}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;
7437
8253
 
7438
8254
  let radioIds = 0;
@@ -7544,7 +8360,7 @@ class ChRadio {
7544
8360
  }
7545
8361
  render() {
7546
8362
  const groupName = this.name || `${this.groupId}-group`;
7547
- return (hAsync(Host, { key: 'a027da2d803a6e8a2a35afa1920dd3b0f8e06b01' }, this.label && (hAsync("span", { key: '28e11cd1148a89a4f3e85d331f00e39f1d7751ce', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: '43d8a53c9bec1dc129b6588c0118ebe2109b4b7e', class: "radio-group", role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (hAsync("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, hAsync("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 }), hAsync("span", { class: "mark" }), hAsync("span", { class: "label-text" }, option.label))))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '27335cc50f8b280f93857eea370aa37e2290b46b', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '83f93bdc0739961136062acb784a3d6e666de349', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8363
+ return (hAsync(Host, { key: '51bc6a2d4ff9a098889dc65b55afdb7e70a65d5b' }, this.label && (hAsync("span", { key: '0e043e7f3e5a8b48e700975e84c7d5a3515b645a', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: '70853bba1a97cae044ef799a892049f32eb4d61c', class: "radio-group", role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (hAsync("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, hAsync("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 }), hAsync("span", { class: "mark" }), hAsync("span", { class: "label-text" }, option.label))))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: 'cb17c2fc139bb933acf2fc8080e10ee0466c1b68', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'de2406de9bec97f248c3252a9acd9c1ab0c745e0', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7548
8364
  }
7549
8365
  static get formAssociated() { return true; }
7550
8366
  static get watchers() { return {
@@ -7688,7 +8504,7 @@ class ChSegmentedControl {
7688
8504
  }
7689
8505
  render() {
7690
8506
  const groupName = this.name || `${this.groupId}-group`;
7691
- return (hAsync(Host, { key: '59e0782a5c120cd243bbd67eb727ba1a7755d45f' }, this.label && (hAsync("span", { key: 'f1faf9b240224e4c2b10059ed7bf667e24e5997d', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: 'b9e59c0fbd4af04ad4d079415497440ec0a60801', class: { segmented: true, [`segmented--${this.size}`]: true }, role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (hAsync("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, hAsync("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 }), hAsync("span", { class: "label-text" }, option.label)))))));
8507
+ return (hAsync(Host, { key: '2380775f9f3448f173db291ee69b95cbbe77d12b' }, this.label && (hAsync("span", { key: 'fe3f47b45547039550c1581b6aec30b45cf01296', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: 'fe42cb7bd8a7a675211a0a2637d8b023d12874a4', class: { segmented: true, [`segmented--${this.size}`]: true }, role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (hAsync("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, hAsync("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 }), hAsync("span", { class: "label-text" }, option.label)))))));
7692
8508
  }
7693
8509
  static get formAssociated() { return true; }
7694
8510
  static get watchers() { return {
@@ -7831,7 +8647,7 @@ class ChSelect {
7831
8647
  return undefined;
7832
8648
  }
7833
8649
  render() {
7834
- return (hAsync(Host, { key: 'f57fbcbfaaf64a9cbf1f201edd2f9f714db9afee' }, this.label && (hAsync("label", { key: 'e7a4a802ff85cd597e5bdb9a54858e3cbbbcf73b', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: '5d70a598757d9440d90351e8639a876388b5f7a7', id: this.label ? this.selectId : undefined, class: { 'select': true, 'select--invalid': this.invalid }, name: this.name, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }, this.placeholder && (hAsync("option", { key: '9a002af8f52ab2bb2d2c762417cad071b7dd06c7', value: "", disabled: true, hidden: true, selected: !this.value }, this.placeholder)), this.options.map(option => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label)))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '0224ab6e0a54b925e0754c43bb15ceaab84c34a4', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '1624ae9938d47971ee8195f986c45454dad7f846', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8650
+ return (hAsync(Host, { key: 'bb342289b7725eaf8269ceb86589ebeb61f4c63b' }, this.label && (hAsync("label", { key: '766492635c7eac71f719d52d07f71b9895037410', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: 'f086a020b93254d04b635677290e6e5ae9b1b35c', id: this.label ? this.selectId : undefined, class: { 'select': true, 'select--invalid': this.invalid }, name: this.name, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }, this.placeholder && (hAsync("option", { key: '3c22ffe91a28b7e9e3a302c31a3c8945335bd2df', value: "", disabled: true, hidden: true, selected: !this.value }, this.placeholder)), this.options.map(option => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label)))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '495b45c73e98b0b61ccde9e16972d0ff80665edf', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '62f08ed1c7bce8a3fbc357bcf0928dd23c897a7b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7835
8651
  }
7836
8652
  static get formAssociated() { return true; }
7837
8653
  static get watchers() { return {
@@ -7924,7 +8740,7 @@ class ChSkeleton {
7924
8740
  return { width: this.width, height: this.height };
7925
8741
  }
7926
8742
  render() {
7927
- return (hAsync(Host, { key: 'b28cd1be6da1721ff6b93ed1e4bab119ea066ad4', "aria-hidden": "true", class: { 'skeleton': true, [`skeleton--${this.shape}`]: true, 'skeleton--animated': this.animated } }, Array.from({ length: this.items }).map((value, index) => (hAsync("span", { class: "skeleton__item", style: this.sizeStyle, key: index, "data-index": String(value) })))));
8743
+ return (hAsync(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) => (hAsync("span", { class: "skeleton__item", style: this.sizeStyle, key: index, "data-index": String(value) })))));
7928
8744
  }
7929
8745
  static get style() { return chSkeletonCss(); }
7930
8746
  static get cmpMeta() { return {
@@ -7972,7 +8788,7 @@ class ChSpinner {
7972
8788
  label;
7973
8789
  render() {
7974
8790
  const labelled = Boolean(this.label);
7975
- return (hAsync(Host, { key: '1d8ef18f03d7a52d61854cc84fb39994ee8ce0a9' }, hAsync("span", { key: '28ec4657d1a0de9181f9d31742fc6bd26b284b14', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
8791
+ return (hAsync(Host, { key: '03ab408176f59ecdd51a493d795ccc86acfa563c' }, hAsync("span", { key: 'db54c4d2001a01caeea33426d4042c7ee5546b75', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
7976
8792
  }
7977
8793
  static get style() { return chSpinnerCss(); }
7978
8794
  static get cmpMeta() { return {
@@ -8018,7 +8834,7 @@ class ChStack {
8018
8834
  return GAPS.has(this.gap) ? this.gap : 'md';
8019
8835
  }
8020
8836
  render() {
8021
- return (hAsync(Host, { key: '1c70344ce291ba78a533f99ac6c4c135296251e1', class: { stack: true, [`stack--gap-${this.gapStep}`]: true, [`stack--align-${this.align}`]: true, [`stack--justify-${this.justify}`]: true } }, hAsync("slot", { key: 'f4167e47a2fdee42f97611fba5907d79f8d0448d' })));
8837
+ return (hAsync(Host, { key: 'd9947ce1a6c5b06b8e83d458a9b4a71032e1f8a7', class: { stack: true, [`stack--gap-${this.gapStep}`]: true, [`stack--align-${this.align}`]: true, [`stack--justify-${this.justify}`]: true } }, hAsync("slot", { key: '2698e4850b1fd63367d1b7f55dacd1e0e3ae2b3c' })));
8022
8838
  }
8023
8839
  static get style() { return chStackCss(); }
8024
8840
  static get cmpMeta() { return {
@@ -8084,10 +8900,10 @@ class ChStat {
8084
8900
  }
8085
8901
  render() {
8086
8902
  const cue = this.toneClass === 'positive' ? '+' : this.toneClass === 'negative' ? '−' : null;
8087
- return (hAsync(Host, { key: '76d71c964efeb4e5a07aabff0b895f1ded21b345', class: "stat" }, hAsync("div", { key: '103db766f21c91c8406e8d3368049f4e4a018007', class: "stat__inner" }, hAsync("span", { key: '74e45654072a92ba4f894aee5366852561f8f352', class: "stat__label" }, this.label), hAsync("span", { key: 'deb8d0d20c70d7fbab392641fd9d0e617ab8daf5', class: {
8903
+ return (hAsync(Host, { key: '45a42444173ee0839913b7b42df270ffdad064c5', class: "stat" }, hAsync("div", { key: 'dee4aadc137f789e6c44718c3dad1c195a90d6ba', class: "stat__inner" }, hAsync("span", { key: '5300a63497a673ed7e840079b0d63510979c8622', class: "stat__label" }, this.label), hAsync("span", { key: 'e8e56b69c7ed471a0a668588436c9d0149f32da3', class: {
8088
8904
  stat__value: true,
8089
8905
  [`stat__value--${this.toneClass}`]: this.toneClass !== 'default',
8090
- } }, cue && (hAsync("span", { key: '82b83cb7182f10ceca5172fc790aad01882645cc', class: "stat__cue", "aria-hidden": "true" }, cue)), hAsync("slot", { key: 'e9c3095eca4ed3907fc0e95395f3cc62bfd4158a', name: "value" }, this.value)), this.hint && hAsync("span", { key: '4b892b35299def40a62c386e6af7c5f19aebe44b', class: "stat__hint" }, this.hint), hAsync("div", { key: '0535d9fb62ddf5ed1ee2b5993689cb080f753ff9', class: "stat__footer" }, hAsync("slot", { key: '1d8e09fa8db2d4a6e188f8deaa93631df9cc2a36', name: "footer" })))));
8906
+ } }, cue && (hAsync("span", { key: '1d977df4d28190286ac0e99fa376e97c992831ec', class: "stat__cue", "aria-hidden": "true" }, cue)), hAsync("slot", { key: '29c9924f93fc6f948be898cf788d40a78b3b8ee4', name: "value" }, this.value)), this.hint && hAsync("span", { key: 'ad8179cd263b13dcded4a1b74cffb7c38290a791', class: "stat__hint" }, this.hint), hAsync("div", { key: '3d00f1e7c055f847d4bbdecbfdd5fd291f5087b4', class: "stat__footer" }, hAsync("slot", { key: 'c0288524426fa4195f9998eb4188af7f6aa11150', name: "footer" })))));
8091
8907
  }
8092
8908
  static get style() { return chStatCss(); }
8093
8909
  static get cmpMeta() { return {
@@ -8213,7 +9029,7 @@ class ChSwitch {
8213
9029
  return undefined;
8214
9030
  }
8215
9031
  render() {
8216
- return (hAsync(Host, { key: '8bafcbe9b03858f278f0884d43b9ce579a98c84e' }, hAsync("label", { key: '8783c0e8ce0bb9c03a3772a08afb383e338b5be4', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '4093d398ed167ede08749050b6a9c9d5b25f2470', id: this.switchId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", role: "switch", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-checked": this.checked ? 'true' : 'false', "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), hAsync("span", { key: 'eea728ebbf6c6fefd761415bf8cb00765e5c2e76', class: "track" }, hAsync("span", { key: '4d18d8c9ed871bbf6e537b93bcce14c0f00f00e9', class: "thumb" })), this.label && hAsync("span", { key: '048657735d8fdf9a03a89b83cf3f3d65a466d886', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '869a40f9ce8bd2f93d918426f119c637039ac5e9', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '08d947e2909706290b7efbb3e8af6999ad249dea', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
9032
+ return (hAsync(Host, { key: 'bae45755c2467bf088ab67b71c6a21289e33f8f2' }, hAsync("label", { key: '5d68a33bb80334a7f5f326bd6f2dfc2f4c3e01df', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: 'e48330e2c0b23077d34392960dd3d53052b8b21c', id: this.switchId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", role: "switch", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-checked": this.checked ? 'true' : 'false', "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), hAsync("span", { key: '8f7d8fc472bb03a907e007eaf0c4e81d4f2b1a34', class: "track" }, hAsync("span", { key: '574549aed9d109225c15d2a8b94893dea3799fbf', class: "thumb" })), this.label && hAsync("span", { key: '3da40cbd701270e368f8280fb0475d4372ae65c9', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '39fbb18961f849f241c19bfcd1895285b948b8da', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'a29a1a5dc06732a17e745634bf2874a4f28ff574', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8217
9033
  }
8218
9034
  static get formAssociated() { return true; }
8219
9035
  static get watchers() { return {
@@ -8410,7 +9226,7 @@ class ChTable {
8410
9226
  const empty = this.emptyState;
8411
9227
  // Before the first measurement the table is rendered as non-empty, so a
8412
9228
  // consumer never sees the empty message flash over real rows.
8413
- return (hAsync(Host, { key: 'f4511d753b9140b08eee0e50041ba4e7408930ec', class: { 'table': true, 'table--empty': empty === 'true' || empty === 'filtered' } }, hAsync("div", { key: '8cc987803f5d000d7efbbc6b605561d2c6ca1c46', class: "table__scroll", tabIndex: 0, role: "group", "aria-labelledby": this.captionId }, hAsync("table", { key: '9eff6abfe0fecfd3559bfe397db3957fa60e288a' }, hAsync("caption", { key: '35d88e56267aff1ae9753326ffc807cf6e04bfba', id: this.captionId, class: "caption" }, this.label), hAsync("thead", { key: '0b01e865f3c0f40e9e86634f701b77886713e2e3' }, hAsync("tr", { key: '92ded28a12867b8a2a372a9b04e8fd251870a5c7' }, this.columns.map(column => this.renderHeaderCell(column)))), hAsync("tbody", { key: '68d7a49aa51cf1e958f1af7ebc36cdb5f6acfdd0' }, hAsync("slot", { key: '79e296699379971e93b8a91b7823987be835ce8e' })))), (empty === 'true' || empty === 'filtered') && (hAsync("div", { key: 'b7b2734f3d83ced393377fbe6f2911d2466ce714', class: "table__empty", id: this.emptyId }, hAsync("slot", { key: '926191c01eef1f1898ad7fc800824021a697da35', name: "empty" }, hAsync("p", { key: '6302a52795029b3d31200ae3c1c4ff53af3ab81c', class: "table__empty-message" }, this.emptyMessage(empty)))))));
9229
+ return (hAsync(Host, { key: 'bb91f61f579bc99b632bdd5b3a746c6c7319dd70', class: { 'table': true, 'table--empty': empty === 'true' || empty === 'filtered' } }, hAsync("div", { key: 'ddd75bdab98d1784863697dc784d2cec869bd5f5', class: "table__scroll", tabIndex: 0, role: "group", "aria-labelledby": this.captionId }, hAsync("table", { key: 'cf02a54dd6b14a1604b417adab84cde9d0f4d814' }, hAsync("caption", { key: 'fc6f525350e2a51e5325f383edd361c270c25fc0', id: this.captionId, class: "caption" }, this.label), hAsync("thead", { key: '2d03b39883847a2ab0f1807fcf767fc4edea8ad9' }, hAsync("tr", { key: '739e4f34d5a2338db3fabf2f3c9fa265d6d9f976' }, this.columns.map(column => this.renderHeaderCell(column)))), hAsync("tbody", { key: '7584a38498f3c9521640f1f472d841350605a15f' }, hAsync("slot", { key: '81ea6c4992fa3de24916f16db27663646409e8d5' })))), (empty === 'true' || empty === 'filtered') && (hAsync("div", { key: '6b745d95d7f9ebf56d73be6723f9b6aba1854709', class: "table__empty", id: this.emptyId }, hAsync("slot", { key: '2d3cfd14af06b26e2ea6837cc756b555fbeeb5cf', name: "empty" }, hAsync("p", { key: '53a2d940717ae12c04862b544d6eb60c6ed932a5', class: "table__empty-message" }, this.emptyMessage(empty)))))));
8414
9230
  }
8415
9231
  static get watchers() { return {
8416
9232
  "filtered": [{
@@ -8530,7 +9346,7 @@ class ChTabs {
8530
9346
  }
8531
9347
  render() {
8532
9348
  const active = this.activeValue;
8533
- return (hAsync(Host, { key: '5fd5208bb1b9b75f13b9d3830d042f623aaca651' }, hAsync("div", { key: '8d602a604a8315db01f3e4d28a39e866efabdb48', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
9349
+ return (hAsync(Host, { key: '2f6a0ba1be82d292dcb11f772f8764dcce7201bc' }, hAsync("div", { key: '914cb32e1467aaac43178866fbcc9b45d32ec495', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
8534
9350
  const selected = tab.value === active;
8535
9351
  return (hAsync("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));
8536
9352
  })), this.tabs.map(tab => (hAsync("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 }, hAsync("slot", { name: `panel-${tab.value}` }))))));
@@ -8672,7 +9488,7 @@ class ChTextarea {
8672
9488
  return undefined;
8673
9489
  }
8674
9490
  render() {
8675
- return (hAsync(Host, { key: '0f2b76444b3bff5d37d069bf1fe307781c5e59d1' }, this.label && (hAsync("label", { key: '08b83be70f33dc2c9b93a6d748564aad4eb63d76', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: '749876530342e5ff9d70ab7039dded1a4f0faa5a', 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) && (hAsync("p", { key: '36e41249852346df559bd278256cc89a79371a88', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '90bda1f377da78e07eae82ee13069813c7ed1e8b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
9491
+ return (hAsync(Host, { key: '2e8db2290d6a221b844ef2b510d9d1db4d9aac18' }, this.label && (hAsync("label", { key: 'b1687f64d9474706dfcbe7042444e2bfe74a5e49', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("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) && (hAsync("p", { key: '8c013880c709dd0b35d6122765bf2cf8d456f08b', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '88d45fbc82deb9131364b5e2f502daf104c72d56', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8676
9492
  }
8677
9493
  static get formAssociated() { return true; }
8678
9494
  static get watchers() { return {
@@ -8743,7 +9559,7 @@ class ChTimeline {
8743
9559
  registerInstance(this, hostRef);
8744
9560
  }
8745
9561
  render() {
8746
- return (hAsync(Host, { key: '50b3a225915e4223fa3eaf560cb1e15898026ec0', class: "timeline" }, hAsync("ol", { key: '5b5e218a419f63990deca2d1a7e0f8f36f63cc09', class: "list" }, hAsync("slot", { key: '69ff4592e898cdecb078437b6633e5e24c626e61' }))));
9562
+ return (hAsync(Host, { key: '8f9e53b6f2f9c2f9d60a421c1c1c59240e469099', class: "timeline" }, hAsync("ol", { key: '535a06f4b150fc1a67a6baae2f406b76f08cf293', class: "list" }, hAsync("slot", { key: '584198aa85286147b49f2bd4e3897b0faa529309' }))));
8747
9563
  }
8748
9564
  static get style() { return chTimelineCss(); }
8749
9565
  static get cmpMeta() { return {
@@ -9049,7 +9865,7 @@ class ChTooltip {
9049
9865
  };
9050
9866
  render() {
9051
9867
  const { offset } = this;
9052
- return (hAsync(Host, { key: 'c88fafd18dfa217051213dc510d7c3edd7e6fa45' }, hAsync("span", { key: '97b027bccda9cfcfed684556ed11211317ca97b3', class: "anchor" }, hAsync("span", { key: '30f76981b7d295b4459f3ca4045168e24ec1ee65', class: "probe", "aria-hidden": "true", ref: el => (this.probeEl = el) }), hAsync("slot", { key: 'f99a7e5b4ca3775e7af26edf9a9e9d76e7c7a292', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '17b396847c0be20c03fc010b57dfe3c299dbf3c1', ref: el => (this.bubbleEl = el), style: {
9868
+ return (hAsync(Host, { key: '24f3c1522fdde642c50e0358d32a8b7ea8e0d327' }, hAsync("span", { key: '2e09507788b944ab599667bd1bd1d9327e9fc510', class: "anchor" }, hAsync("span", { key: '87b00e6c802396181a808823ef7e08a7f2d18bf8', class: "probe", "aria-hidden": "true", ref: el => (this.probeEl = el) }), hAsync("slot", { key: '9620f1447fa376df84a56348759bac1933f96214', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: 'd8a517178b2035dc9254a48cff8c59cda4025965', ref: el => (this.bubbleEl = el), style: {
9053
9869
  '--ch-tooltip-offset-top': offset ? `${offset.top}px` : null,
9054
9870
  '--ch-tooltip-offset-left': offset ? `${offset.left}px` : null,
9055
9871
  }, class: {
@@ -9057,7 +9873,7 @@ class ChTooltip {
9057
9873
  'bubble--positioned': Boolean(this.offset),
9058
9874
  [`bubble--${this.resolvedPlacement ?? this.placement}`]: true,
9059
9875
  'bubble--visible': this.visible,
9060
- } }, hAsync("slot", { key: 'd11e591c095b29033db96242dbeafa4347ee4326', name: "content", onSlotchange: this.associate })))));
9876
+ } }, hAsync("slot", { key: '5f72e3c398fbe6c14ccea1cdd3f20c40beb9f950', name: "content", onSlotchange: this.associate })))));
9061
9877
  }
9062
9878
  static get style() { return chTooltipCss(); }
9063
9879
  static get cmpMeta() { return {
@@ -9088,6 +9904,8 @@ registerComponents([
9088
9904
  ChCard,
9089
9905
  ChCheckbox,
9090
9906
  ChCluster,
9907
+ ChCombobox,
9908
+ ChConfirmDialog,
9091
9909
  ChDescriptionList,
9092
9910
  ChDivider,
9093
9911
  ChDrawer,
@@ -9100,7 +9918,9 @@ registerComponents([
9100
9918
  ChLink,
9101
9919
  ChModal,
9102
9920
  ChNumberInput,
9921
+ ChOtpInput,
9103
9922
  ChPageHeader,
9923
+ ChPagination,
9104
9924
  ChRadio,
9105
9925
  ChSegmentedControl,
9106
9926
  ChSelect,