@devschile/chucao 2.6.0 → 2.7.1

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 (209) hide show
  1. package/dist/chucao/chucao.esm.js +1 -1
  2. package/dist/chucao/{p-ffaf1a31.entry.js → p-01b6c7bf.entry.js} +2 -2
  3. package/dist/chucao/{p-2c1bc8bd.entry.js → p-0c7f6f8d.entry.js} +2 -2
  4. package/dist/chucao/p-10f6801e.entry.js +2 -0
  5. package/dist/chucao/p-10f6801e.entry.js.map +1 -0
  6. package/dist/chucao/{p-0409c063.entry.js → p-15d27bb7.entry.js} +2 -2
  7. package/dist/chucao/{p-e6f959f4.entry.js → p-1b70e3f1.entry.js} +2 -2
  8. package/dist/chucao/{p-66ae9e2c.entry.js → p-1e4cd3aa.entry.js} +2 -2
  9. package/dist/chucao/{p-c1b35f1b.entry.js → p-2e37c61b.entry.js} +2 -2
  10. package/dist/chucao/{p-f7305552.entry.js → p-42028c97.entry.js} +2 -2
  11. package/dist/chucao/{p-090d26f1.entry.js → p-472ec451.entry.js} +2 -2
  12. package/dist/chucao/{p-81b6622f.entry.js → p-5240f5ac.entry.js} +2 -2
  13. package/dist/chucao/p-60e1c1df.entry.js +2 -0
  14. package/dist/chucao/{p-b56f4a29.entry.js.map → p-60e1c1df.entry.js.map} +1 -1
  15. package/dist/chucao/{p-b9b47942.entry.js → p-7cdc71cc.entry.js} +2 -2
  16. package/dist/chucao/{p-50cbea7f.entry.js → p-8ae680a4.entry.js} +2 -2
  17. package/dist/chucao/{p-20ea1b18.entry.js → p-90284ebe.entry.js} +2 -2
  18. package/dist/chucao/p-9db118d9.entry.js +2 -0
  19. package/dist/chucao/p-9ebcc7be.entry.js +2 -0
  20. package/dist/chucao/p-9ebcc7be.entry.js.map +1 -0
  21. package/dist/chucao/{p-207648f9.entry.js → p-a7c674b7.entry.js} +2 -2
  22. package/dist/chucao/{p-79f20bfd.entry.js → p-c4b2bd1f.entry.js} +2 -2
  23. package/dist/chucao/{p-7d4336bd.entry.js → p-c90da3c0.entry.js} +2 -2
  24. package/dist/chucao/p-d8b71751.entry.js +2 -0
  25. package/dist/chucao/p-d8b71751.entry.js.map +1 -0
  26. package/dist/chucao/{p-925af6b8.entry.js → p-deb2571b.entry.js} +2 -2
  27. package/dist/chucao/{p-9794a3fa.entry.js → p-e77d35c3.entry.js} +2 -2
  28. package/dist/chucao/{p-21ca2235.entry.js → p-f6ab0a11.entry.js} +2 -2
  29. package/dist/chucao/p-f917d34f.entry.js +2 -0
  30. package/dist/chucao/{p-e2f725bd.entry.js.map → p-f917d34f.entry.js.map} +1 -1
  31. package/dist/chucao/{p-f0aea6ed.entry.js → p-ffecdf25.entry.js} +2 -2
  32. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  33. package/dist/cjs/ch-alert_8.cjs.entry.js +7 -7
  34. package/dist/cjs/ch-checkbox.cjs.entry.js +1 -1
  35. package/dist/cjs/ch-cluster.cjs.entry.js +2 -2
  36. package/dist/cjs/ch-description-list.cjs.entry.js +1 -1
  37. package/dist/cjs/ch-divider.cjs.entry.js +1 -1
  38. package/dist/cjs/ch-drawer.cjs.entry.js +1 -1
  39. package/dist/cjs/ch-emoji.cjs.entry.js +1 -1
  40. package/dist/cjs/ch-empty-state.cjs.entry.js +1 -1
  41. package/dist/cjs/ch-grid.cjs.entry.js +1 -1
  42. package/dist/cjs/ch-icon-button.cjs.entry.js +1 -1
  43. package/dist/cjs/ch-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/ch-modal.cjs.entry.js +1 -1
  45. package/dist/cjs/ch-number-input.cjs.entry.js +237 -0
  46. package/dist/cjs/ch-number-input.cjs.entry.js.map +1 -0
  47. package/dist/cjs/ch-page-header.cjs.entry.js +1 -1
  48. package/dist/cjs/ch-radio.cjs.entry.js +1 -1
  49. package/dist/cjs/ch-segmented-control.cjs.entry.js +1 -1
  50. package/dist/cjs/ch-skeleton.cjs.entry.js +1 -1
  51. package/dist/cjs/ch-stack.cjs.entry.js +1 -1
  52. package/dist/cjs/ch-stat.cjs.entry.js +2 -2
  53. package/dist/cjs/ch-table.cjs.entry.js +145 -0
  54. package/dist/cjs/ch-table.cjs.entry.js.map +1 -0
  55. package/dist/cjs/ch-tabs.cjs.entry.js +1 -1
  56. package/dist/cjs/ch-textarea.cjs.entry.js +1 -1
  57. package/dist/cjs/ch-timeline.cjs.entry.js +1 -1
  58. package/dist/cjs/ch-tooltip.cjs.entry.js +24 -7
  59. package/dist/cjs/ch-tooltip.cjs.entry.js.map +1 -1
  60. package/dist/cjs/chucao.cjs.js +1 -1
  61. package/dist/cjs/loader.cjs.js +1 -1
  62. package/dist/collection/collection-manifest.json +2 -0
  63. package/dist/collection/components/ch-accordion/ch-accordion.js +1 -1
  64. package/dist/collection/components/ch-alert/ch-alert.js +1 -1
  65. package/dist/collection/components/ch-badge/ch-badge.js +1 -1
  66. package/dist/collection/components/ch-card/ch-card.js +1 -1
  67. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  68. package/dist/collection/components/ch-cluster/ch-cluster.js +2 -2
  69. package/dist/collection/components/ch-description-list/ch-description-list.js +1 -1
  70. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  71. package/dist/collection/components/ch-drawer/ch-drawer.js +1 -1
  72. package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
  73. package/dist/collection/components/ch-empty-state/ch-empty-state.js +1 -1
  74. package/dist/collection/components/ch-grid/ch-grid.js +1 -1
  75. package/dist/collection/components/ch-icon/ch-icon.js +1 -1
  76. package/dist/collection/components/ch-icon-button/ch-icon-button.js +1 -1
  77. package/dist/collection/components/ch-input/ch-input.js +1 -1
  78. package/dist/collection/components/ch-modal/ch-modal.js +1 -1
  79. package/dist/collection/components/ch-number-input/ch-number-input.css +74 -0
  80. package/dist/collection/components/ch-number-input/ch-number-input.js +555 -0
  81. package/dist/collection/components/ch-number-input/ch-number-input.js.map +1 -0
  82. package/dist/collection/components/ch-page-header/ch-page-header.js +1 -1
  83. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  84. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +1 -1
  85. package/dist/collection/components/ch-select/ch-select.js +1 -1
  86. package/dist/collection/components/ch-skeleton/ch-skeleton.js +1 -1
  87. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  88. package/dist/collection/components/ch-stack/ch-stack.js +1 -1
  89. package/dist/collection/components/ch-stat/ch-stat.js +2 -2
  90. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  91. package/dist/collection/components/ch-table/ch-table.css +107 -0
  92. package/dist/collection/components/ch-table/ch-table.js +347 -0
  93. package/dist/collection/components/ch-table/ch-table.js.map +1 -0
  94. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  95. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  96. package/dist/collection/components/ch-timeline/ch-timeline.js +1 -1
  97. package/dist/collection/components/ch-tooltip/ch-tooltip.css +11 -0
  98. package/dist/collection/components/ch-tooltip/ch-tooltip.js +23 -6
  99. package/dist/collection/components/ch-tooltip/ch-tooltip.js.map +1 -1
  100. package/dist/collection/utils/overlay.js.map +1 -1
  101. package/dist/components/ch-accordion.js +1 -1
  102. package/dist/components/ch-alert.js +1 -1
  103. package/dist/components/ch-badge.js +1 -1
  104. package/dist/components/ch-button.js +1 -1
  105. package/dist/components/ch-card.js +1 -1
  106. package/dist/components/ch-card.js.map +1 -1
  107. package/dist/components/ch-checkbox.js +1 -1
  108. package/dist/components/ch-cluster.js +1 -1
  109. package/dist/components/ch-description-list.js +1 -1
  110. package/dist/components/ch-divider.js +1 -1
  111. package/dist/components/ch-drawer.js +1 -1
  112. package/dist/components/ch-emoji.js +1 -1
  113. package/dist/components/ch-empty-state.js +1 -1
  114. package/dist/components/ch-grid.js +1 -1
  115. package/dist/components/ch-icon-button.js +1 -1
  116. package/dist/components/ch-icon.js +1 -1
  117. package/dist/components/ch-input.js +1 -1
  118. package/dist/components/ch-modal.js +1 -1
  119. package/dist/components/ch-number-input.d.ts +11 -0
  120. package/dist/components/ch-number-input.js +2 -0
  121. package/dist/components/ch-number-input.js.map +1 -0
  122. package/dist/components/ch-page-header.js +1 -1
  123. package/dist/components/ch-radio.js +1 -1
  124. package/dist/components/ch-segmented-control.js +1 -1
  125. package/dist/components/ch-select.js +1 -1
  126. package/dist/components/ch-skeleton.js +1 -1
  127. package/dist/components/ch-spinner.js +1 -1
  128. package/dist/components/ch-stack.js +1 -1
  129. package/dist/components/ch-stat.js +1 -1
  130. package/dist/components/ch-switch.js +1 -1
  131. package/dist/components/ch-table.d.ts +11 -0
  132. package/dist/components/ch-table.js +2 -0
  133. package/dist/components/ch-table.js.map +1 -0
  134. package/dist/components/ch-tabs.js +1 -1
  135. package/dist/components/ch-textarea.js +1 -1
  136. package/dist/components/ch-timeline.js +1 -1
  137. package/dist/components/ch-tooltip.js +1 -1
  138. package/dist/components/ch-tooltip.js.map +1 -1
  139. package/dist/components/{p-Cw0b4OGc.js → p-DiUN1WGc.js} +2 -2
  140. package/dist/esm/ch-accordion.entry.js +1 -1
  141. package/dist/esm/ch-alert_8.entry.js +7 -7
  142. package/dist/esm/ch-checkbox.entry.js +1 -1
  143. package/dist/esm/ch-cluster.entry.js +2 -2
  144. package/dist/esm/ch-description-list.entry.js +1 -1
  145. package/dist/esm/ch-divider.entry.js +1 -1
  146. package/dist/esm/ch-drawer.entry.js +1 -1
  147. package/dist/esm/ch-emoji.entry.js +1 -1
  148. package/dist/esm/ch-empty-state.entry.js +1 -1
  149. package/dist/esm/ch-grid.entry.js +1 -1
  150. package/dist/esm/ch-icon-button.entry.js +1 -1
  151. package/dist/esm/ch-icon.entry.js +1 -1
  152. package/dist/esm/ch-modal.entry.js +1 -1
  153. package/dist/esm/ch-number-input.entry.js +235 -0
  154. package/dist/esm/ch-number-input.entry.js.map +1 -0
  155. package/dist/esm/ch-page-header.entry.js +1 -1
  156. package/dist/esm/ch-radio.entry.js +1 -1
  157. package/dist/esm/ch-segmented-control.entry.js +1 -1
  158. package/dist/esm/ch-skeleton.entry.js +1 -1
  159. package/dist/esm/ch-stack.entry.js +1 -1
  160. package/dist/esm/ch-stat.entry.js +2 -2
  161. package/dist/esm/ch-table.entry.js +143 -0
  162. package/dist/esm/ch-table.entry.js.map +1 -0
  163. package/dist/esm/ch-tabs.entry.js +1 -1
  164. package/dist/esm/ch-textarea.entry.js +1 -1
  165. package/dist/esm/ch-timeline.entry.js +1 -1
  166. package/dist/esm/ch-tooltip.entry.js +24 -7
  167. package/dist/esm/ch-tooltip.entry.js.map +1 -1
  168. package/dist/esm/chucao.js +1 -1
  169. package/dist/esm/loader.js +1 -1
  170. package/dist/types/components/ch-number-input/ch-number-input.d.ts +105 -0
  171. package/dist/types/components/ch-table/ch-table.d.ts +106 -0
  172. package/dist/types/components/ch-tooltip/ch-tooltip.d.ts +7 -0
  173. package/dist/types/components.d.ts +459 -0
  174. package/dist/types/utils/overlay.d.ts +1 -1
  175. package/dist-react/components.d.ts +15 -1
  176. package/dist-react/components.js +21 -0
  177. package/dist-react/components.ts +31 -1
  178. package/dist-vue/index.d.ts +2 -0
  179. package/dist-vue/index.js +33 -0
  180. package/dist-vue/index.ts +37 -0
  181. package/hydrate/index.js +519 -37
  182. package/hydrate/index.mjs +519 -37
  183. package/package.json +9 -1
  184. package/dist/chucao/p-370d9629.entry.js +0 -2
  185. package/dist/chucao/p-370d9629.entry.js.map +0 -1
  186. package/dist/chucao/p-95061461.entry.js +0 -2
  187. package/dist/chucao/p-b56f4a29.entry.js +0 -2
  188. package/dist/chucao/p-e2f725bd.entry.js +0 -2
  189. /package/dist/chucao/{p-ffaf1a31.entry.js.map → p-01b6c7bf.entry.js.map} +0 -0
  190. /package/dist/chucao/{p-2c1bc8bd.entry.js.map → p-0c7f6f8d.entry.js.map} +0 -0
  191. /package/dist/chucao/{p-0409c063.entry.js.map → p-15d27bb7.entry.js.map} +0 -0
  192. /package/dist/chucao/{p-e6f959f4.entry.js.map → p-1b70e3f1.entry.js.map} +0 -0
  193. /package/dist/chucao/{p-66ae9e2c.entry.js.map → p-1e4cd3aa.entry.js.map} +0 -0
  194. /package/dist/chucao/{p-c1b35f1b.entry.js.map → p-2e37c61b.entry.js.map} +0 -0
  195. /package/dist/chucao/{p-f7305552.entry.js.map → p-42028c97.entry.js.map} +0 -0
  196. /package/dist/chucao/{p-090d26f1.entry.js.map → p-472ec451.entry.js.map} +0 -0
  197. /package/dist/chucao/{p-81b6622f.entry.js.map → p-5240f5ac.entry.js.map} +0 -0
  198. /package/dist/chucao/{p-b9b47942.entry.js.map → p-7cdc71cc.entry.js.map} +0 -0
  199. /package/dist/chucao/{p-50cbea7f.entry.js.map → p-8ae680a4.entry.js.map} +0 -0
  200. /package/dist/chucao/{p-20ea1b18.entry.js.map → p-90284ebe.entry.js.map} +0 -0
  201. /package/dist/chucao/{p-95061461.entry.js.map → p-9db118d9.entry.js.map} +0 -0
  202. /package/dist/chucao/{p-207648f9.entry.js.map → p-a7c674b7.entry.js.map} +0 -0
  203. /package/dist/chucao/{p-79f20bfd.entry.js.map → p-c4b2bd1f.entry.js.map} +0 -0
  204. /package/dist/chucao/{p-7d4336bd.entry.js.map → p-c90da3c0.entry.js.map} +0 -0
  205. /package/dist/chucao/{p-925af6b8.entry.js.map → p-deb2571b.entry.js.map} +0 -0
  206. /package/dist/chucao/{p-9794a3fa.entry.js.map → p-e77d35c3.entry.js.map} +0 -0
  207. /package/dist/chucao/{p-21ca2235.entry.js.map → p-f6ab0a11.entry.js.map} +0 -0
  208. /package/dist/chucao/{p-f0aea6ed.entry.js.map → p-ffecdf25.entry.js.map} +0 -0
  209. /package/dist/components/{p-Cw0b4OGc.js.map → p-DiUN1WGc.js.map} +0 -0
@@ -21,6 +21,7 @@ import { ChIconSize } from "./components/ch-icon/ch-icon";
21
21
  import { ChIconButtonSize } from "./components/ch-icon-button/ch-icon-button";
22
22
  import { ChLinkVariant } from "./components/ch-link/ch-link";
23
23
  import { ChModalSize } from "./components/ch-modal/ch-modal";
24
+ import { ChNumberInputFormat, ChNumberInputStep } from "./components/ch-number-input/ch-number-input";
24
25
  import { ChPageHeaderHeadingLevel } from "./components/ch-page-header/ch-page-header";
25
26
  import { ChRadioOption } from "./components/ch-radio/ch-radio";
26
27
  import { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
@@ -29,6 +30,7 @@ import { ChSkeletonShape } from "./components/ch-skeleton/ch-skeleton";
29
30
  import { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
30
31
  import { ChStackAlign, ChStackGap, ChStackJustify } from "./components/ch-stack/ch-stack";
31
32
  import { ChStatTone } from "./components/ch-stat/ch-stat";
33
+ import { ChTableSortColumn, ChTableSortDirection } from "./components/ch-table/ch-table";
32
34
  import { ChTab } from "./components/ch-tabs/ch-tabs";
33
35
  import { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
34
36
  export { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
@@ -47,6 +49,7 @@ export { ChIconSize } from "./components/ch-icon/ch-icon";
47
49
  export { ChIconButtonSize } from "./components/ch-icon-button/ch-icon-button";
48
50
  export { ChLinkVariant } from "./components/ch-link/ch-link";
49
51
  export { ChModalSize } from "./components/ch-modal/ch-modal";
52
+ export { ChNumberInputFormat, ChNumberInputStep } from "./components/ch-number-input/ch-number-input";
50
53
  export { ChPageHeaderHeadingLevel } from "./components/ch-page-header/ch-page-header";
51
54
  export { ChRadioOption } from "./components/ch-radio/ch-radio";
52
55
  export { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
@@ -55,6 +58,7 @@ export { ChSkeletonShape } from "./components/ch-skeleton/ch-skeleton";
55
58
  export { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
56
59
  export { ChStackAlign, ChStackGap, ChStackJustify } from "./components/ch-stack/ch-stack";
57
60
  export { ChStatTone } from "./components/ch-stat/ch-stat";
61
+ export { ChTableSortColumn, ChTableSortDirection } from "./components/ch-table/ch-table";
58
62
  export { ChTab } from "./components/ch-tabs/ch-tabs";
59
63
  export { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
60
64
  export namespace Components {
@@ -512,6 +516,79 @@ export namespace Components {
512
516
  */
513
517
  "size": ChModalSize;
514
518
  }
519
+ /**
520
+ * Numeric input that keeps what the user is typing separate from the value the
521
+ * form submits.
522
+ * The display is formatted (`1.234.567` for CLP) while `value` and `FormData`
523
+ * carry a canonical machine-readable string: digits only for CLP, the plain
524
+ * decimal for `plain`. Parsing on every keystroke cannot represent the
525
+ * intermediate states people actually type — `-`, `1.`, `0,` — so those stay as
526
+ * text and are validated at the end.
527
+ * Empty is not zero. A cleared field submits `''` and reports `valueMissing`
528
+ * when required; it never becomes `0`.
529
+ * There is no separate currency component: `format="clp"` is the currency
530
+ * boundary for Chilean pesos, the only case with a real consumer.
531
+ */
532
+ interface ChNumberInput {
533
+ /**
534
+ * Whether the field is disabled.
535
+ * @default false
536
+ */
537
+ "disabled": boolean;
538
+ /**
539
+ * Custom error message; wins over the built-in range messages.
540
+ */
541
+ "errorMessage"?: string;
542
+ /**
543
+ * How the number is displayed while typing.
544
+ * @default 'plain'
545
+ */
546
+ "format": ChNumberInputFormat;
547
+ /**
548
+ * Helper text, replaced by `errorMessage` when invalid.
549
+ */
550
+ "hint"?: string;
551
+ /**
552
+ * Whether the field is marked invalid by the consumer.
553
+ * @default false
554
+ */
555
+ "invalid": boolean;
556
+ /**
557
+ * Visible label, associated with the input via `for`/`id`.
558
+ */
559
+ "label"?: string;
560
+ /**
561
+ * Maximum accepted value.
562
+ */
563
+ "max"?: number;
564
+ /**
565
+ * Minimum accepted value.
566
+ */
567
+ "min"?: number;
568
+ /**
569
+ * Name submitted with the form.
570
+ */
571
+ "name"?: string;
572
+ /**
573
+ * Placeholder shown when the field is empty.
574
+ */
575
+ "placeholder"?: string;
576
+ /**
577
+ * Whether a value is required; an empty field is then invalid.
578
+ * @default false
579
+ */
580
+ "required": boolean;
581
+ /**
582
+ * Stepping increment. `'any'` disables stepping validation.
583
+ * @default 'any'
584
+ */
585
+ "step": ChNumberInputStep;
586
+ /**
587
+ * Canonical value: digits only for `clp`, a plain decimal string for `plain`. Never formatted — formatting lives in the rendered text.
588
+ * @default ''
589
+ */
590
+ "value": string;
591
+ }
515
592
  /**
516
593
  * The heading block at the top of a page: title, optional eyebrow and
517
594
  * description, and a trailing actions area.
@@ -833,6 +910,70 @@ export namespace Components {
833
910
  */
834
911
  "value": string;
835
912
  }
913
+ /**
914
+ * Presentation-only data grid over a native `<table>`.
915
+ * The component renders the table skeleton and the header row; the consumer
916
+ * slots the body as **native** `<tr>` elements. It does not hold the rows, sort
917
+ * them, paginate them or fetch anything — it reports intent and the consumer
918
+ * decides. Sorting is controlled: the table reflects the `sortKey` and
919
+ * `sortDirection` it is given, so a consumer that ignores `chSort` leaves the
920
+ * `aria-sort` that matches its own data.
921
+ * ```html
922
+ * <ch-table sortable sort-key="name" sort-direction="ascending">
923
+ * <tr><td>Aurora SpA</td><td>En despacho</td></tr>
924
+ * <tr><td>Bosque Ltda</td><td>Pendiente</td></tr>
925
+ * </ch-table>
926
+ * ```
927
+ * ```js
928
+ * table.columns = [
929
+ * { key: 'name', label: 'Cliente' },
930
+ * { key: 'status', label: 'Estado' },
931
+ * ];
932
+ * ```
933
+ * Columns come from the `columns` prop, like `ch-select`'s `options` — there is
934
+ * no `ch-table-column` element, and an unknown element inside a component is
935
+ * never rendered.
936
+ * Rows must be real `<tr>` elements created as DOM nodes, not written as
937
+ * HTML inside the tag: the parser rejects a `<tr>` outside a `<table>`, so
938
+ * `<ch-table><tr>…</tr></ch-table>` in an HTML string parses to a text node
939
+ * and the table correctly reports itself empty. Framework templates and
940
+ * `createElement` are unaffected.
941
+ * The shape is the one approved on #77: `table`/`thead`/`tbody` live in the
942
+ * shadow DOM and the consumer slots native rows. Custom row and cell elements
943
+ * are not possible — the HTML parser foster-parents them out of a native
944
+ * table, which the spike in `tests/browser/semantic-shapes.browser.spec.ts`
945
+ * measured in real Chromium.
946
+ */
947
+ interface ChTable {
948
+ /**
949
+ * Columns, in display order. Rendered as the header row.
950
+ * @default []
951
+ */
952
+ "columns": ChTableSortColumn[];
953
+ /**
954
+ * Marks the body as empty *because of filtering* rather than because there is no data at all. Both look like zero rows, and they need different messages and different next actions.
955
+ * @default false
956
+ */
957
+ "filtered": boolean;
958
+ /**
959
+ * Accessible name for the table. Always rendered as a caption, visually hidden, because a data table without a name is announced as a bare grid.
960
+ */
961
+ "label": string;
962
+ /**
963
+ * Direction of the current sort. Defaults to `ascending`.
964
+ * @default 'ascending'
965
+ */
966
+ "sortDirection": ChTableSortDirection;
967
+ /**
968
+ * Key of the column currently used for sorting. Controlled by the consumer.
969
+ */
970
+ "sortKey"?: string;
971
+ /**
972
+ * Whether the header offers sorting. Individual columns can opt out.
973
+ * @default false
974
+ */
975
+ "sortable": boolean;
976
+ }
836
977
  interface ChTabs {
837
978
  /**
838
979
  * Accessible label for the tablist, set as `aria-label`.
@@ -982,6 +1123,10 @@ export interface ChModalCustomEvent<T> extends CustomEvent<T> {
982
1123
  detail: T;
983
1124
  target: HTMLChModalElement;
984
1125
  }
1126
+ export interface ChNumberInputCustomEvent<T> extends CustomEvent<T> {
1127
+ detail: T;
1128
+ target: HTMLChNumberInputElement;
1129
+ }
985
1130
  export interface ChRadioCustomEvent<T> extends CustomEvent<T> {
986
1131
  detail: T;
987
1132
  target: HTMLChRadioElement;
@@ -998,6 +1143,10 @@ export interface ChSwitchCustomEvent<T> extends CustomEvent<T> {
998
1143
  detail: T;
999
1144
  target: HTMLChSwitchElement;
1000
1145
  }
1146
+ export interface ChTableCustomEvent<T> extends CustomEvent<T> {
1147
+ detail: T;
1148
+ target: HTMLChTableElement;
1149
+ }
1001
1150
  export interface ChTabsCustomEvent<T> extends CustomEvent<T> {
1002
1151
  detail: T;
1003
1152
  target: HTMLChTabsElement;
@@ -1319,6 +1468,37 @@ declare global {
1319
1468
  prototype: HTMLChModalElement;
1320
1469
  new (): HTMLChModalElement;
1321
1470
  };
1471
+ interface HTMLChNumberInputElementEventMap {
1472
+ "chInput": string;
1473
+ "chChange": string;
1474
+ }
1475
+ /**
1476
+ * Numeric input that keeps what the user is typing separate from the value the
1477
+ * form submits.
1478
+ * The display is formatted (`1.234.567` for CLP) while `value` and `FormData`
1479
+ * carry a canonical machine-readable string: digits only for CLP, the plain
1480
+ * decimal for `plain`. Parsing on every keystroke cannot represent the
1481
+ * intermediate states people actually type — `-`, `1.`, `0,` — so those stay as
1482
+ * text and are validated at the end.
1483
+ * Empty is not zero. A cleared field submits `''` and reports `valueMissing`
1484
+ * when required; it never becomes `0`.
1485
+ * There is no separate currency component: `format="clp"` is the currency
1486
+ * boundary for Chilean pesos, the only case with a real consumer.
1487
+ */
1488
+ interface HTMLChNumberInputElement extends Components.ChNumberInput, HTMLStencilElement {
1489
+ addEventListener<K extends keyof HTMLChNumberInputElementEventMap>(type: K, listener: (this: HTMLChNumberInputElement, ev: ChNumberInputCustomEvent<HTMLChNumberInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1490
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1491
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1492
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1493
+ removeEventListener<K extends keyof HTMLChNumberInputElementEventMap>(type: K, listener: (this: HTMLChNumberInputElement, ev: ChNumberInputCustomEvent<HTMLChNumberInputElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1494
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1495
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1496
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1497
+ }
1498
+ var HTMLChNumberInputElement: {
1499
+ prototype: HTMLChNumberInputElement;
1500
+ new (): HTMLChNumberInputElement;
1501
+ };
1322
1502
  /**
1323
1503
  * The heading block at the top of a page: title, optional eyebrow and
1324
1504
  * description, and a trailing actions area.
@@ -1475,6 +1655,57 @@ declare global {
1475
1655
  prototype: HTMLChSwitchElement;
1476
1656
  new (): HTMLChSwitchElement;
1477
1657
  };
1658
+ interface HTMLChTableElementEventMap {
1659
+ "chSort": { key: string; direction: ChTableSortDirection };
1660
+ }
1661
+ /**
1662
+ * Presentation-only data grid over a native `<table>`.
1663
+ * The component renders the table skeleton and the header row; the consumer
1664
+ * slots the body as **native** `<tr>` elements. It does not hold the rows, sort
1665
+ * them, paginate them or fetch anything — it reports intent and the consumer
1666
+ * decides. Sorting is controlled: the table reflects the `sortKey` and
1667
+ * `sortDirection` it is given, so a consumer that ignores `chSort` leaves the
1668
+ * `aria-sort` that matches its own data.
1669
+ * ```html
1670
+ * <ch-table sortable sort-key="name" sort-direction="ascending">
1671
+ * <tr><td>Aurora SpA</td><td>En despacho</td></tr>
1672
+ * <tr><td>Bosque Ltda</td><td>Pendiente</td></tr>
1673
+ * </ch-table>
1674
+ * ```
1675
+ * ```js
1676
+ * table.columns = [
1677
+ * { key: 'name', label: 'Cliente' },
1678
+ * { key: 'status', label: 'Estado' },
1679
+ * ];
1680
+ * ```
1681
+ * Columns come from the `columns` prop, like `ch-select`'s `options` — there is
1682
+ * no `ch-table-column` element, and an unknown element inside a component is
1683
+ * never rendered.
1684
+ * Rows must be real `<tr>` elements created as DOM nodes, not written as
1685
+ * HTML inside the tag: the parser rejects a `<tr>` outside a `<table>`, so
1686
+ * `<ch-table><tr>…</tr></ch-table>` in an HTML string parses to a text node
1687
+ * and the table correctly reports itself empty. Framework templates and
1688
+ * `createElement` are unaffected.
1689
+ * The shape is the one approved on #77: `table`/`thead`/`tbody` live in the
1690
+ * shadow DOM and the consumer slots native rows. Custom row and cell elements
1691
+ * are not possible — the HTML parser foster-parents them out of a native
1692
+ * table, which the spike in `tests/browser/semantic-shapes.browser.spec.ts`
1693
+ * measured in real Chromium.
1694
+ */
1695
+ interface HTMLChTableElement extends Components.ChTable, HTMLStencilElement {
1696
+ addEventListener<K extends keyof HTMLChTableElementEventMap>(type: K, listener: (this: HTMLChTableElement, ev: ChTableCustomEvent<HTMLChTableElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1697
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1698
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1699
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1700
+ removeEventListener<K extends keyof HTMLChTableElementEventMap>(type: K, listener: (this: HTMLChTableElement, ev: ChTableCustomEvent<HTMLChTableElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1701
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1702
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1703
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1704
+ }
1705
+ var HTMLChTableElement: {
1706
+ prototype: HTMLChTableElement;
1707
+ new (): HTMLChTableElement;
1708
+ };
1478
1709
  interface HTMLChTabsElementEventMap {
1479
1710
  "chChange": string;
1480
1711
  }
@@ -1582,6 +1813,7 @@ declare global {
1582
1813
  "ch-input": HTMLChInputElement;
1583
1814
  "ch-link": HTMLChLinkElement;
1584
1815
  "ch-modal": HTMLChModalElement;
1816
+ "ch-number-input": HTMLChNumberInputElement;
1585
1817
  "ch-page-header": HTMLChPageHeaderElement;
1586
1818
  "ch-radio": HTMLChRadioElement;
1587
1819
  "ch-segmented-control": HTMLChSegmentedControlElement;
@@ -1591,6 +1823,7 @@ declare global {
1591
1823
  "ch-stack": HTMLChStackElement;
1592
1824
  "ch-stat": HTMLChStatElement;
1593
1825
  "ch-switch": HTMLChSwitchElement;
1826
+ "ch-table": HTMLChTableElement;
1594
1827
  "ch-tabs": HTMLChTabsElement;
1595
1828
  "ch-textarea": HTMLChTextareaElement;
1596
1829
  "ch-timeline": HTMLChTimelineElement;
@@ -2110,6 +2343,91 @@ declare namespace LocalJSX {
2110
2343
  */
2111
2344
  "size"?: ChModalSize;
2112
2345
  }
2346
+ /**
2347
+ * Numeric input that keeps what the user is typing separate from the value the
2348
+ * form submits.
2349
+ * The display is formatted (`1.234.567` for CLP) while `value` and `FormData`
2350
+ * carry a canonical machine-readable string: digits only for CLP, the plain
2351
+ * decimal for `plain`. Parsing on every keystroke cannot represent the
2352
+ * intermediate states people actually type — `-`, `1.`, `0,` — so those stay as
2353
+ * text and are validated at the end.
2354
+ * Empty is not zero. A cleared field submits `''` and reports `valueMissing`
2355
+ * when required; it never becomes `0`.
2356
+ * There is no separate currency component: `format="clp"` is the currency
2357
+ * boundary for Chilean pesos, the only case with a real consumer.
2358
+ */
2359
+ interface ChNumberInput {
2360
+ /**
2361
+ * Whether the field is disabled.
2362
+ * @default false
2363
+ */
2364
+ "disabled"?: boolean;
2365
+ /**
2366
+ * Custom error message; wins over the built-in range messages.
2367
+ */
2368
+ "errorMessage"?: string;
2369
+ /**
2370
+ * The `id` of a `<form>` element to associate this element with.
2371
+ */
2372
+ "form"?: string;
2373
+ /**
2374
+ * How the number is displayed while typing.
2375
+ * @default 'plain'
2376
+ */
2377
+ "format"?: ChNumberInputFormat;
2378
+ /**
2379
+ * Helper text, replaced by `errorMessage` when invalid.
2380
+ */
2381
+ "hint"?: string;
2382
+ /**
2383
+ * Whether the field is marked invalid by the consumer.
2384
+ * @default false
2385
+ */
2386
+ "invalid"?: boolean;
2387
+ /**
2388
+ * Visible label, associated with the input via `for`/`id`.
2389
+ */
2390
+ "label"?: string;
2391
+ /**
2392
+ * Maximum accepted value.
2393
+ */
2394
+ "max"?: number;
2395
+ /**
2396
+ * Minimum accepted value.
2397
+ */
2398
+ "min"?: number;
2399
+ /**
2400
+ * Name submitted with the form.
2401
+ */
2402
+ "name"?: string;
2403
+ /**
2404
+ * Emitted on commit (native `change`) with the canonical value.
2405
+ */
2406
+ "onChChange"?: (event: ChNumberInputCustomEvent<string>) => void;
2407
+ /**
2408
+ * Emitted on every keystroke with the canonical value.
2409
+ */
2410
+ "onChInput"?: (event: ChNumberInputCustomEvent<string>) => void;
2411
+ /**
2412
+ * Placeholder shown when the field is empty.
2413
+ */
2414
+ "placeholder"?: string;
2415
+ /**
2416
+ * Whether a value is required; an empty field is then invalid.
2417
+ * @default false
2418
+ */
2419
+ "required"?: boolean;
2420
+ /**
2421
+ * Stepping increment. `'any'` disables stepping validation.
2422
+ * @default 'any'
2423
+ */
2424
+ "step"?: ChNumberInputStep;
2425
+ /**
2426
+ * Canonical value: digits only for `clp`, a plain decimal string for `plain`. Never formatted — formatting lives in the rendered text.
2427
+ * @default ''
2428
+ */
2429
+ "value"?: string;
2430
+ }
2113
2431
  /**
2114
2432
  * The heading block at the top of a page: title, optional eyebrow and
2115
2433
  * description, and a trailing actions area.
@@ -2463,6 +2781,74 @@ declare namespace LocalJSX {
2463
2781
  */
2464
2782
  "value"?: string;
2465
2783
  }
2784
+ /**
2785
+ * Presentation-only data grid over a native `<table>`.
2786
+ * The component renders the table skeleton and the header row; the consumer
2787
+ * slots the body as **native** `<tr>` elements. It does not hold the rows, sort
2788
+ * them, paginate them or fetch anything — it reports intent and the consumer
2789
+ * decides. Sorting is controlled: the table reflects the `sortKey` and
2790
+ * `sortDirection` it is given, so a consumer that ignores `chSort` leaves the
2791
+ * `aria-sort` that matches its own data.
2792
+ * ```html
2793
+ * <ch-table sortable sort-key="name" sort-direction="ascending">
2794
+ * <tr><td>Aurora SpA</td><td>En despacho</td></tr>
2795
+ * <tr><td>Bosque Ltda</td><td>Pendiente</td></tr>
2796
+ * </ch-table>
2797
+ * ```
2798
+ * ```js
2799
+ * table.columns = [
2800
+ * { key: 'name', label: 'Cliente' },
2801
+ * { key: 'status', label: 'Estado' },
2802
+ * ];
2803
+ * ```
2804
+ * Columns come from the `columns` prop, like `ch-select`'s `options` — there is
2805
+ * no `ch-table-column` element, and an unknown element inside a component is
2806
+ * never rendered.
2807
+ * Rows must be real `<tr>` elements created as DOM nodes, not written as
2808
+ * HTML inside the tag: the parser rejects a `<tr>` outside a `<table>`, so
2809
+ * `<ch-table><tr>…</tr></ch-table>` in an HTML string parses to a text node
2810
+ * and the table correctly reports itself empty. Framework templates and
2811
+ * `createElement` are unaffected.
2812
+ * The shape is the one approved on #77: `table`/`thead`/`tbody` live in the
2813
+ * shadow DOM and the consumer slots native rows. Custom row and cell elements
2814
+ * are not possible — the HTML parser foster-parents them out of a native
2815
+ * table, which the spike in `tests/browser/semantic-shapes.browser.spec.ts`
2816
+ * measured in real Chromium.
2817
+ */
2818
+ interface ChTable {
2819
+ /**
2820
+ * Columns, in display order. Rendered as the header row.
2821
+ * @default []
2822
+ */
2823
+ "columns"?: ChTableSortColumn[];
2824
+ /**
2825
+ * Marks the body as empty *because of filtering* rather than because there is no data at all. Both look like zero rows, and they need different messages and different next actions.
2826
+ * @default false
2827
+ */
2828
+ "filtered"?: boolean;
2829
+ /**
2830
+ * Accessible name for the table. Always rendered as a caption, visually hidden, because a data table without a name is announced as a bare grid.
2831
+ */
2832
+ "label": string;
2833
+ /**
2834
+ * Emitted when a sortable header is activated. The consumer applies the sort.
2835
+ */
2836
+ "onChSort"?: (event: ChTableCustomEvent<{ key: string; direction: ChTableSortDirection }>) => void;
2837
+ /**
2838
+ * Direction of the current sort. Defaults to `ascending`.
2839
+ * @default 'ascending'
2840
+ */
2841
+ "sortDirection"?: ChTableSortDirection;
2842
+ /**
2843
+ * Key of the column currently used for sorting. Controlled by the consumer.
2844
+ */
2845
+ "sortKey"?: string;
2846
+ /**
2847
+ * Whether the header offers sorting. Individual columns can opt out.
2848
+ * @default false
2849
+ */
2850
+ "sortable"?: boolean;
2851
+ }
2466
2852
  interface ChTabs {
2467
2853
  /**
2468
2854
  * Accessible label for the tablist, set as `aria-label`.
@@ -2694,6 +3080,21 @@ declare namespace LocalJSX {
2694
3080
  "closeLabel": string;
2695
3081
  "size": ChModalSize;
2696
3082
  }
3083
+ interface ChNumberInputAttributes {
3084
+ "label": string;
3085
+ "value": string;
3086
+ "format": ChNumberInputFormat;
3087
+ "placeholder": string;
3088
+ "name": string;
3089
+ "disabled": boolean;
3090
+ "required": boolean;
3091
+ "min": number;
3092
+ "max": number;
3093
+ "step": string;
3094
+ "hint": string;
3095
+ "errorMessage": string;
3096
+ "invalid": boolean;
3097
+ }
2697
3098
  interface ChPageHeaderAttributes {
2698
3099
  "title": string;
2699
3100
  "headingLevel": ChPageHeaderHeadingLevel;
@@ -2763,6 +3164,13 @@ declare namespace LocalJSX {
2763
3164
  "errorMessage": string;
2764
3165
  "invalid": boolean;
2765
3166
  }
3167
+ interface ChTableAttributes {
3168
+ "sortable": boolean;
3169
+ "sortKey": string;
3170
+ "sortDirection": ChTableSortDirection;
3171
+ "label": string;
3172
+ "filtered": boolean;
3173
+ }
2766
3174
  interface ChTabsAttributes {
2767
3175
  "value": string;
2768
3176
  "label": string;
@@ -2802,6 +3210,7 @@ declare namespace LocalJSX {
2802
3210
  "ch-input": Omit<ChInput, keyof ChInputAttributes> & { [K in keyof ChInput & keyof ChInputAttributes]?: ChInput[K] } & { [K in keyof ChInput & keyof ChInputAttributes as `attr:${K}`]?: ChInputAttributes[K] } & { [K in keyof ChInput & keyof ChInputAttributes as `prop:${K}`]?: ChInput[K] };
2803
3211
  "ch-link": Omit<ChLink, keyof ChLinkAttributes> & { [K in keyof ChLink & keyof ChLinkAttributes]?: ChLink[K] } & { [K in keyof ChLink & keyof ChLinkAttributes as `attr:${K}`]?: ChLinkAttributes[K] } & { [K in keyof ChLink & keyof ChLinkAttributes as `prop:${K}`]?: ChLink[K] };
2804
3212
  "ch-modal": Omit<ChModal, keyof ChModalAttributes> & { [K in keyof ChModal & keyof ChModalAttributes]?: ChModal[K] } & { [K in keyof ChModal & keyof ChModalAttributes as `attr:${K}`]?: ChModalAttributes[K] } & { [K in keyof ChModal & keyof ChModalAttributes as `prop:${K}`]?: ChModal[K] };
3213
+ "ch-number-input": Omit<ChNumberInput, keyof ChNumberInputAttributes> & { [K in keyof ChNumberInput & keyof ChNumberInputAttributes]?: ChNumberInput[K] } & { [K in keyof ChNumberInput & keyof ChNumberInputAttributes as `attr:${K}`]?: ChNumberInputAttributes[K] } & { [K in keyof ChNumberInput & keyof ChNumberInputAttributes as `prop:${K}`]?: ChNumberInput[K] };
2805
3214
  "ch-page-header": Omit<ChPageHeader, keyof ChPageHeaderAttributes> & { [K in keyof ChPageHeader & keyof ChPageHeaderAttributes]?: ChPageHeader[K] } & { [K in keyof ChPageHeader & keyof ChPageHeaderAttributes as `attr:${K}`]?: ChPageHeaderAttributes[K] } & { [K in keyof ChPageHeader & keyof ChPageHeaderAttributes as `prop:${K}`]?: ChPageHeader[K] } & OneOf<"title", ChPageHeader["title"], ChPageHeaderAttributes["title"]>;
2806
3215
  "ch-radio": Omit<ChRadio, keyof ChRadioAttributes> & { [K in keyof ChRadio & keyof ChRadioAttributes]?: ChRadio[K] } & { [K in keyof ChRadio & keyof ChRadioAttributes as `attr:${K}`]?: ChRadioAttributes[K] } & { [K in keyof ChRadio & keyof ChRadioAttributes as `prop:${K}`]?: ChRadio[K] };
2807
3216
  "ch-segmented-control": Omit<ChSegmentedControl, keyof ChSegmentedControlAttributes> & { [K in keyof ChSegmentedControl & keyof ChSegmentedControlAttributes]?: ChSegmentedControl[K] } & { [K in keyof ChSegmentedControl & keyof ChSegmentedControlAttributes as `attr:${K}`]?: ChSegmentedControlAttributes[K] } & { [K in keyof ChSegmentedControl & keyof ChSegmentedControlAttributes as `prop:${K}`]?: ChSegmentedControl[K] };
@@ -2811,6 +3220,7 @@ declare namespace LocalJSX {
2811
3220
  "ch-stack": Omit<ChStack, keyof ChStackAttributes> & { [K in keyof ChStack & keyof ChStackAttributes]?: ChStack[K] } & { [K in keyof ChStack & keyof ChStackAttributes as `attr:${K}`]?: ChStackAttributes[K] } & { [K in keyof ChStack & keyof ChStackAttributes as `prop:${K}`]?: ChStack[K] };
2812
3221
  "ch-stat": Omit<ChStat, keyof ChStatAttributes> & { [K in keyof ChStat & keyof ChStatAttributes]?: ChStat[K] } & { [K in keyof ChStat & keyof ChStatAttributes as `attr:${K}`]?: ChStatAttributes[K] } & { [K in keyof ChStat & keyof ChStatAttributes as `prop:${K}`]?: ChStat[K] } & OneOf<"label", ChStat["label"], ChStatAttributes["label"]> & OneOf<"value", ChStat["value"], ChStatAttributes["value"]>;
2813
3222
  "ch-switch": Omit<ChSwitch, keyof ChSwitchAttributes> & { [K in keyof ChSwitch & keyof ChSwitchAttributes]?: ChSwitch[K] } & { [K in keyof ChSwitch & keyof ChSwitchAttributes as `attr:${K}`]?: ChSwitchAttributes[K] } & { [K in keyof ChSwitch & keyof ChSwitchAttributes as `prop:${K}`]?: ChSwitch[K] };
3223
+ "ch-table": Omit<ChTable, keyof ChTableAttributes> & { [K in keyof ChTable & keyof ChTableAttributes]?: ChTable[K] } & { [K in keyof ChTable & keyof ChTableAttributes as `attr:${K}`]?: ChTableAttributes[K] } & { [K in keyof ChTable & keyof ChTableAttributes as `prop:${K}`]?: ChTable[K] } & OneOf<"label", ChTable["label"], ChTableAttributes["label"]>;
2814
3224
  "ch-tabs": Omit<ChTabs, keyof ChTabsAttributes> & { [K in keyof ChTabs & keyof ChTabsAttributes]?: ChTabs[K] } & { [K in keyof ChTabs & keyof ChTabsAttributes as `attr:${K}`]?: ChTabsAttributes[K] } & { [K in keyof ChTabs & keyof ChTabsAttributes as `prop:${K}`]?: ChTabs[K] };
2815
3225
  "ch-textarea": Omit<ChTextarea, keyof ChTextareaAttributes> & { [K in keyof ChTextarea & keyof ChTextareaAttributes]?: ChTextarea[K] } & { [K in keyof ChTextarea & keyof ChTextareaAttributes as `attr:${K}`]?: ChTextareaAttributes[K] } & { [K in keyof ChTextarea & keyof ChTextareaAttributes as `prop:${K}`]?: ChTextarea[K] };
2816
3226
  "ch-timeline": ChTimeline;
@@ -2941,6 +3351,20 @@ declare module "@stencil/core" {
2941
3351
  * than only for some.
2942
3352
  */
2943
3353
  "ch-modal": LocalJSX.IntrinsicElements["ch-modal"] & JSXBase.HTMLAttributes<HTMLChModalElement>;
3354
+ /**
3355
+ * Numeric input that keeps what the user is typing separate from the value the
3356
+ * form submits.
3357
+ * The display is formatted (`1.234.567` for CLP) while `value` and `FormData`
3358
+ * carry a canonical machine-readable string: digits only for CLP, the plain
3359
+ * decimal for `plain`. Parsing on every keystroke cannot represent the
3360
+ * intermediate states people actually type — `-`, `1.`, `0,` — so those stay as
3361
+ * text and are validated at the end.
3362
+ * Empty is not zero. A cleared field submits `''` and reports `valueMissing`
3363
+ * when required; it never becomes `0`.
3364
+ * There is no separate currency component: `format="clp"` is the currency
3365
+ * boundary for Chilean pesos, the only case with a real consumer.
3366
+ */
3367
+ "ch-number-input": LocalJSX.IntrinsicElements["ch-number-input"] & JSXBase.HTMLAttributes<HTMLChNumberInputElement>;
2944
3368
  /**
2945
3369
  * The heading block at the top of a page: title, optional eyebrow and
2946
3370
  * description, and a trailing actions area.
@@ -3008,6 +3432,41 @@ declare module "@stencil/core" {
3008
3432
  */
3009
3433
  "ch-stat": LocalJSX.IntrinsicElements["ch-stat"] & JSXBase.HTMLAttributes<HTMLChStatElement>;
3010
3434
  "ch-switch": LocalJSX.IntrinsicElements["ch-switch"] & JSXBase.HTMLAttributes<HTMLChSwitchElement>;
3435
+ /**
3436
+ * Presentation-only data grid over a native `<table>`.
3437
+ * The component renders the table skeleton and the header row; the consumer
3438
+ * slots the body as **native** `<tr>` elements. It does not hold the rows, sort
3439
+ * them, paginate them or fetch anything — it reports intent and the consumer
3440
+ * decides. Sorting is controlled: the table reflects the `sortKey` and
3441
+ * `sortDirection` it is given, so a consumer that ignores `chSort` leaves the
3442
+ * `aria-sort` that matches its own data.
3443
+ * ```html
3444
+ * <ch-table sortable sort-key="name" sort-direction="ascending">
3445
+ * <tr><td>Aurora SpA</td><td>En despacho</td></tr>
3446
+ * <tr><td>Bosque Ltda</td><td>Pendiente</td></tr>
3447
+ * </ch-table>
3448
+ * ```
3449
+ * ```js
3450
+ * table.columns = [
3451
+ * { key: 'name', label: 'Cliente' },
3452
+ * { key: 'status', label: 'Estado' },
3453
+ * ];
3454
+ * ```
3455
+ * Columns come from the `columns` prop, like `ch-select`'s `options` — there is
3456
+ * no `ch-table-column` element, and an unknown element inside a component is
3457
+ * never rendered.
3458
+ * Rows must be real `<tr>` elements created as DOM nodes, not written as
3459
+ * HTML inside the tag: the parser rejects a `<tr>` outside a `<table>`, so
3460
+ * `<ch-table><tr>…</tr></ch-table>` in an HTML string parses to a text node
3461
+ * and the table correctly reports itself empty. Framework templates and
3462
+ * `createElement` are unaffected.
3463
+ * The shape is the one approved on #77: `table`/`thead`/`tbody` live in the
3464
+ * shadow DOM and the consumer slots native rows. Custom row and cell elements
3465
+ * are not possible — the HTML parser foster-parents them out of a native
3466
+ * table, which the spike in `tests/browser/semantic-shapes.browser.spec.ts`
3467
+ * measured in real Chromium.
3468
+ */
3469
+ "ch-table": LocalJSX.IntrinsicElements["ch-table"] & JSXBase.HTMLAttributes<HTMLChTableElement>;
3011
3470
  "ch-tabs": LocalJSX.IntrinsicElements["ch-tabs"] & JSXBase.HTMLAttributes<HTMLChTabsElement>;
3012
3471
  "ch-textarea": LocalJSX.IntrinsicElements["ch-textarea"] & JSXBase.HTMLAttributes<HTMLChTextareaElement>;
3013
3472
  /**
@@ -2,7 +2,7 @@ export type ChOverlayPlacement = 'top' | 'bottom' | 'left' | 'right';
2
2
  export interface ChOverlayPosition {
3
3
  /** Placement after flipping when the preferred side does not fit. */
4
4
  placement: ChOverlayPlacement;
5
- /** Offset from the anchor's top-left corner, in pixels. */
5
+ /** Position in the same coordinate space as `anchor` and `viewport`, in pixels. */
6
6
  top: number;
7
7
  left: number;
8
8
  }
@@ -3,7 +3,7 @@
3
3
  * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
4
  */
5
5
  import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
6
- import { type ChAccordionCustomEvent, type ChAlertCustomEvent, type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChDrawerCustomEvent, type ChIconButtonCustomEvent, type ChInputCustomEvent, type ChLinkCustomEvent, type ChModalCustomEvent, type ChRadioCustomEvent, type ChSegmentedControlCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTabsCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
6
+ import { type ChAccordionCustomEvent, type ChAlertCustomEvent, type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChDrawerCustomEvent, type ChIconButtonCustomEvent, type ChInputCustomEvent, type ChLinkCustomEvent, type ChModalCustomEvent, type ChNumberInputCustomEvent, type ChRadioCustomEvent, type ChSegmentedControlCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTableCustomEvent, type ChTableSortDirection, type ChTabsCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
7
7
  import type { Components } from "@devschile/chucao/dist/components";
8
8
  import { ChAccordion as ChAccordionElement } from "@devschile/chucao/dist/components/ch-accordion.js";
9
9
  import { ChAlert as ChAlertElement } from "@devschile/chucao/dist/components/ch-alert.js";
@@ -23,6 +23,7 @@ import { ChIcon as ChIconElement } from "@devschile/chucao/dist/components/ch-ic
23
23
  import { ChInput as ChInputElement } from "@devschile/chucao/dist/components/ch-input.js";
24
24
  import { ChLink as ChLinkElement } from "@devschile/chucao/dist/components/ch-link.js";
25
25
  import { ChModal as ChModalElement } from "@devschile/chucao/dist/components/ch-modal.js";
26
+ import { ChNumberInput as ChNumberInputElement } from "@devschile/chucao/dist/components/ch-number-input.js";
26
27
  import { ChPageHeader as ChPageHeaderElement } from "@devschile/chucao/dist/components/ch-page-header.js";
27
28
  import { ChRadio as ChRadioElement } from "@devschile/chucao/dist/components/ch-radio.js";
28
29
  import { ChSegmentedControl as ChSegmentedControlElement } from "@devschile/chucao/dist/components/ch-segmented-control.js";
@@ -32,6 +33,7 @@ import { ChSpinner as ChSpinnerElement } from "@devschile/chucao/dist/components
32
33
  import { ChStack as ChStackElement } from "@devschile/chucao/dist/components/ch-stack.js";
33
34
  import { ChStat as ChStatElement } from "@devschile/chucao/dist/components/ch-stat.js";
34
35
  import { ChSwitch as ChSwitchElement } from "@devschile/chucao/dist/components/ch-switch.js";
36
+ import { ChTable as ChTableElement } from "@devschile/chucao/dist/components/ch-table.js";
35
37
  import { ChTabs as ChTabsElement } from "@devschile/chucao/dist/components/ch-tabs.js";
36
38
  import { ChTextarea as ChTextareaElement } from "@devschile/chucao/dist/components/ch-textarea.js";
37
39
  import { ChTimeline as ChTimelineElement } from "@devschile/chucao/dist/components/ch-timeline.js";
@@ -93,6 +95,11 @@ export type ChModalEvents = {
93
95
  onChClose: EventName<ChModalCustomEvent<void>>;
94
96
  };
95
97
  export declare const ChModal: StencilReactComponent<ChModalElement, ChModalEvents, Components.ChModal>;
98
+ export type ChNumberInputEvents = {
99
+ onChInput: EventName<ChNumberInputCustomEvent<string>>;
100
+ onChChange: EventName<ChNumberInputCustomEvent<string>>;
101
+ };
102
+ export declare const ChNumberInput: StencilReactComponent<ChNumberInputElement, ChNumberInputEvents, Components.ChNumberInput>;
96
103
  export type ChPageHeaderEvents = NonNullable<unknown>;
97
104
  export declare const ChPageHeader: StencilReactComponent<ChPageHeaderElement, ChPageHeaderEvents, Components.ChPageHeader, 'title'>;
98
105
  export type ChRadioEvents = {
@@ -119,6 +126,13 @@ export type ChSwitchEvents = {
119
126
  onChChange: EventName<ChSwitchCustomEvent<boolean>>;
120
127
  };
121
128
  export declare const ChSwitch: StencilReactComponent<ChSwitchElement, ChSwitchEvents, Components.ChSwitch>;
129
+ export type ChTableEvents = {
130
+ onChSort: EventName<ChTableCustomEvent<{
131
+ key: string;
132
+ direction: ChTableSortDirection;
133
+ }>>;
134
+ };
135
+ export declare const ChTable: StencilReactComponent<ChTableElement, ChTableEvents, Components.ChTable, 'label'>;
122
136
  export type ChTabsEvents = {
123
137
  onChChange: EventName<ChTabsCustomEvent<string>>;
124
138
  };