@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
@@ -0,0 +1,105 @@
1
+ import { type EventEmitter } from '../../stencil-public-runtime';
2
+ export type ChNumberInputFormat = 'plain' | 'clp';
3
+ export type ChNumberInputStep = number | 'any';
4
+ /**
5
+ * Numeric input that keeps what the user is typing separate from the value the
6
+ * form submits.
7
+ *
8
+ * The display is formatted (`1.234.567` for CLP) while `value` and `FormData`
9
+ * carry a canonical machine-readable string: digits only for CLP, the plain
10
+ * decimal for `plain`. Parsing on every keystroke cannot represent the
11
+ * intermediate states people actually type — `-`, `1.`, `0,` — so those stay as
12
+ * text and are validated at the end.
13
+ *
14
+ * Empty is not zero. A cleared field submits `''` and reports `valueMissing`
15
+ * when required; it never becomes `0`.
16
+ *
17
+ * There is no separate currency component: `format="clp"` is the currency
18
+ * boundary for Chilean pesos, the only case with a real consumer.
19
+ */
20
+ export declare class ChNumberInput {
21
+ private readonly inputId;
22
+ private readonly hintId;
23
+ private readonly errorId;
24
+ private initialValue;
25
+ internals: ElementInternals;
26
+ formDisabled: boolean;
27
+ private host;
28
+ /** Visible label, associated with the input via `for`/`id`. */
29
+ label?: string;
30
+ /**
31
+ * Canonical value: digits only for `clp`, a plain decimal string for `plain`.
32
+ * Never formatted — formatting lives in the rendered text.
33
+ */
34
+ value: string;
35
+ /** How the number is displayed while typing. */
36
+ format: ChNumberInputFormat;
37
+ /** Placeholder shown when the field is empty. */
38
+ placeholder?: string;
39
+ /** Name submitted with the form. */
40
+ name?: string;
41
+ /** Whether the field is disabled. */
42
+ disabled: boolean;
43
+ /** Whether a value is required; an empty field is then invalid. */
44
+ required: boolean;
45
+ /** Minimum accepted value. */
46
+ min?: number;
47
+ /** Maximum accepted value. */
48
+ max?: number;
49
+ /** Stepping increment. `'any'` disables stepping validation. */
50
+ step: ChNumberInputStep;
51
+ /** Helper text, replaced by `errorMessage` when invalid. */
52
+ hint?: string;
53
+ /** Custom error message; wins over the built-in range messages. */
54
+ errorMessage?: string;
55
+ /** Whether the field is marked invalid by the consumer. */
56
+ invalid: boolean;
57
+ /** Emitted on every keystroke with the canonical value. */
58
+ chInput: EventEmitter<string>;
59
+ /** Emitted on commit (native `change`) with the canonical value. */
60
+ chChange: EventEmitter<string>;
61
+ /**
62
+ * The text in the input, which may be a partial number like `-` or `1.`.
63
+ * This is the only thing rendered, so it is also what a reset must restore.
64
+ */
65
+ private draft;
66
+ /**
67
+ * Whether the user has typed since the last commit. While false the input
68
+ * renders `value` directly, which is what makes `formResetCallback` and a
69
+ * consumer assigning `.value` repaint without extra bookkeeping.
70
+ */
71
+ private typing;
72
+ componentWillLoad(): void;
73
+ private get decimals();
74
+ /** Formats a canonical value for display. */
75
+ private formatDisplay;
76
+ /**
77
+ * Strips display formatting back to the canonical string: digits only for
78
+ * CLP; a leading sign, digits and one decimal separator for `plain`.
79
+ */
80
+ private toCanonical;
81
+ /**
82
+ * Whether the field holds a real number. A draft that is only a sign or a
83
+ * separator (`-`, `.`) is still being typed and submits as empty.
84
+ */
85
+ private get isEmpty();
86
+ /** What the form receives and `value` exposes. */
87
+ private get canonical();
88
+ private get numericValue();
89
+ /** The message for a value outside `min`/`max`, if there is one. */
90
+ private outOfRange;
91
+ private rangeError;
92
+ protected syncForm(): void;
93
+ componentDidLoad(): void;
94
+ private markTouched;
95
+ formResetCallback(): void;
96
+ formDisabledCallback(isDisabled: boolean): void;
97
+ private commit;
98
+ private handleInput;
99
+ private handleChange;
100
+ /** Reformats grouped CLP digits once the field loses focus. */
101
+ private handleBlur;
102
+ private get isInvalid();
103
+ private get describedBy();
104
+ render(): any;
105
+ }
@@ -0,0 +1,106 @@
1
+ import { type EventEmitter } from '../../stencil-public-runtime';
2
+ export type ChTableSortDirection = 'ascending' | 'descending';
3
+ /** A column the table can sort by, in display order. */
4
+ export interface ChTableSortColumn {
5
+ /** Identifies the column in `chSort` events. */
6
+ key: string;
7
+ /** Visible header text. */
8
+ label: string;
9
+ /** Whether the header offers sorting. Defaults to `true` when the table is sortable. */
10
+ sortable?: boolean;
11
+ }
12
+ /**
13
+ * Presentation-only data grid over a native `<table>`.
14
+ *
15
+ * The component renders the table skeleton and the header row; the consumer
16
+ * slots the body as **native** `<tr>` elements. It does not hold the rows, sort
17
+ * them, paginate them or fetch anything — it reports intent and the consumer
18
+ * decides. Sorting is controlled: the table reflects the `sortKey` and
19
+ * `sortDirection` it is given, so a consumer that ignores `chSort` leaves the
20
+ * `aria-sort` that matches its own data.
21
+ *
22
+ * ```html
23
+ * <ch-table sortable sort-key="name" sort-direction="ascending">
24
+ * <tr><td>Aurora SpA</td><td>En despacho</td></tr>
25
+ * <tr><td>Bosque Ltda</td><td>Pendiente</td></tr>
26
+ * </ch-table>
27
+ * ```
28
+ *
29
+ * ```js
30
+ * table.columns = [
31
+ * { key: 'name', label: 'Cliente' },
32
+ * { key: 'status', label: 'Estado' },
33
+ * ];
34
+ * ```
35
+ *
36
+ * Columns come from the `columns` prop, like `ch-select`'s `options` — there is
37
+ * no `ch-table-column` element, and an unknown element inside a component is
38
+ * never rendered.
39
+ *
40
+ * Rows must be real `<tr>` elements created as DOM nodes, not written as
41
+ * HTML inside the tag: the parser rejects a `<tr>` outside a `<table>`, so
42
+ * `<ch-table><tr>…</tr></ch-table>` in an HTML string parses to a text node
43
+ * and the table correctly reports itself empty. Framework templates and
44
+ * `createElement` are unaffected.
45
+ *
46
+ * The shape is the one approved on #77: `table`/`thead`/`tbody` live in the
47
+ * shadow DOM and the consumer slots native rows. Custom row and cell elements
48
+ * are not possible — the HTML parser foster-parents them out of a native
49
+ * table, which the spike in `tests/browser/semantic-shapes.browser.spec.ts`
50
+ * measured in real Chromium.
51
+ */
52
+ export declare class ChTable {
53
+ private readonly captionId;
54
+ private readonly emptyId;
55
+ private host;
56
+ /** Columns, in display order. Rendered as the header row. */
57
+ columns: ChTableSortColumn[];
58
+ /** Whether the header offers sorting. Individual columns can opt out. */
59
+ sortable: boolean;
60
+ /** Key of the column currently used for sorting. Controlled by the consumer. */
61
+ sortKey?: string;
62
+ /** Direction of the current sort. Defaults to `ascending`. */
63
+ sortDirection: ChTableSortDirection;
64
+ /**
65
+ * Accessible name for the table. Always rendered as a caption, visually
66
+ * hidden, because a data table without a name is announced as a bare grid.
67
+ */
68
+ label: string;
69
+ /**
70
+ * Shown in place of the rows when the body is empty. `filtered` distinguishes
71
+ * "nothing matched your filters" from "there is nothing yet", which are
72
+ * different messages and different next actions.
73
+ */
74
+ empty: 'unmeasured' | 'none' | 'true';
75
+ /**
76
+ * Marks the body as empty *because of filtering* rather than because there is
77
+ * no data at all. Both look like zero rows, and they need different messages
78
+ * and different next actions.
79
+ */
80
+ filtered: boolean;
81
+ /** Emitted when a sortable header is activated. The consumer applies the sort. */
82
+ chSort: EventEmitter<{
83
+ key: string;
84
+ direction: ChTableSortDirection;
85
+ }>;
86
+ protected onFiltered(): void;
87
+ protected rerenderHeaders(): void;
88
+ private rerender;
89
+ private observer?;
90
+ componentDidLoad(): void;
91
+ disconnectedCallback(): void;
92
+ private measure;
93
+ /**
94
+ * A filtered-empty body and a truly empty one both have zero rows; only the
95
+ * consumer knows which, since `filtered` is a prop it controls.
96
+ */
97
+ private get emptyState();
98
+ /** Direction glyph. Not colour: the arrow is the cue in greyscale. */
99
+ private sortCue;
100
+ private emptyMessage;
101
+ private nextDirection;
102
+ private handleSort;
103
+ private handleHeaderKeydown;
104
+ private renderHeaderCell;
105
+ render(): any;
106
+ }
@@ -27,6 +27,7 @@ export declare class ChTooltip {
27
27
  private el;
28
28
  private readonly fallbackId;
29
29
  private bubbleEl?;
30
+ private probeEl?;
30
31
  private cleanup?;
31
32
  /**
32
33
  * The side the bubble is placed on. It is a preference: when that side has no
@@ -67,6 +68,12 @@ export declare class ChTooltip {
67
68
  * Measures the anchor and the bubble and stores the offset that keeps the
68
69
  * bubble inside the viewport. Nothing is measured before the bubble has a
69
70
  * box to measure, so the pre-paint render uses plain CSS.
71
+ *
72
+ * A fixed bubble is positioned against the nearest ancestor that establishes
73
+ * a containing block (a `transform`, `filter`, `backdrop-filter`, `contain`
74
+ * or `will-change`), not necessarily the viewport. The probe is fixed at the
75
+ * containing block's origin, so both the anchor and the viewport are
76
+ * converted into that same space before `placeOverlay` does its maths.
70
77
  */
71
78
  private position;
72
79
  /**