@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
package/hydrate/index.js CHANGED
@@ -5500,7 +5500,7 @@ class ChAccordion {
5500
5500
  this.chChange.emit(this.value);
5501
5501
  };
5502
5502
  render() {
5503
- return (hAsync(Host, { key: '83cb1bb02baec54767edde0241c9f784b35cf336' }, this.items.map(item => {
5503
+ return (hAsync(Host, { key: 'f147314134464f7455ac179fad62c1b9318efc92' }, this.items.map(item => {
5504
5504
  const open = this.value === item.value;
5505
5505
  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}` }))));
5506
5506
  })));
@@ -5663,7 +5663,7 @@ class ChAlert {
5663
5663
  render() {
5664
5664
  const role = this.variant === 'warning' ? 'alert' : 'status';
5665
5665
  const shapes = this.statusCue ? chIcons[VARIANT_ICON[this.variant]] : undefined;
5666
- return (hAsync(Host, { key: 'a3b0af93e0fd59c088575c1a56265698ca2836b0' }, hAsync("div", { key: role, class: { alert: true, [`alert--${this.variant}`]: true }, role: role }, shapes && (hAsync("svg", { key: '7bceb09ba57e6b6d2344cb88476f8327c215941d', 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: '0e936cb51c852ab375b32b4fd5bcf3e275f56d21', class: "alert-content" }, hAsync("slot", { key: 'f29a5e218b900718505908b0c6731403414eacda' })), this.dismissLabel && (hAsync("button", { key: 'fe80820757f3fe2f76d44f6227f9ce6e0774cb30', class: "alert-dismiss", type: "button", "aria-label": this.dismissLabel, onClick: this.handleDismiss }, hAsync("span", { key: 'eb8110f89d6fb3f080f78a8b2e2569f2050bd91d', "aria-hidden": "true" }, "\u00D7"))))));
5666
+ 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
5667
  }
5668
5668
  static get style() { return chAlertCss(); }
5669
5669
  static get cmpMeta() { return {
@@ -5705,7 +5705,7 @@ class ChBadge {
5705
5705
  */
5706
5706
  statusCue = true;
5707
5707
  render() {
5708
- return (hAsync(Host, { key: '4c2874a988c47589bb4b101479e93aba9c1cf05c' }, hAsync("span", { key: '5d78f0c78545ad36f3e8cbfee48b0256545e9964', class: { badge: true, [`badge--${this.variant}`]: true } }, this.statusCue && hAsync("span", { key: '02bebc85a39fca230f09cc4688a05d055396d054', class: "badge-dot", "aria-hidden": "true" }), hAsync("slot", { key: '87d5e53ae4ea195f6f78ce8694048c9cd27af2ac' }))));
5708
+ 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
5709
  }
5710
5710
  static get style() { return chBadgeCss(); }
5711
5711
  static get cmpMeta() { return {
@@ -5836,7 +5836,7 @@ class ChCard {
5836
5836
  registerInstance(this, hostRef);
5837
5837
  }
5838
5838
  render() {
5839
- return (hAsync(Host, { key: '3f9cac3b9c506e14a27750e0e501a4f524ef9d8d' }, hAsync("div", { key: 'a35fc3f44e85df166a311317d5409ed96664c4e8', class: "card" }, hAsync("slot", { key: '15efcaa33c3fdf8599c78cfe61ee107fd42115b3' }))));
5839
+ return (hAsync(Host, { key: '2857d45b454709a8285fd52dbaa0943d571908b1' }, hAsync("div", { key: 'a252222f7d25a697b4d6e8cd240564668a908652', class: "card" }, hAsync("slot", { key: '4cadc2ad7fdbb2141d2a77bc19d5e6344e574b7a' }))));
5840
5840
  }
5841
5841
  static get style() { return chCardCss(); }
5842
5842
  static get cmpMeta() { return {
@@ -5977,7 +5977,7 @@ class ChCheckbox {
5977
5977
  return undefined;
5978
5978
  }
5979
5979
  render() {
5980
- return (hAsync(Host, { key: '09ba208488d214d27ae2d5019a231a17033e5157' }, hAsync("label", { key: '266604e9468f3a12b9593afc0ba25389ae6ab327', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: 'd068dc3c56fd8c2588821de0f394296305023f1d', 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: '22f1fd5ab55d39da62fee78434794cd488bf1dcd', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: 'ef7de0570aeac42cfedaf7dd90922460e0c822d9', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'f4fea80489574d6673176fc1139c496c202a92bc', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5980
+ 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
5981
  }
5982
5982
  static get formAssociated() { return true; }
5983
5983
  static get watchers() { return {
@@ -6048,13 +6048,13 @@ class ChCluster {
6048
6048
  return GAPS$2.has(this.gap) ? this.gap : 'md';
6049
6049
  }
6050
6050
  render() {
6051
- return (hAsync(Host, { key: 'e3d17238168f3faaa452740f0aab6a9e0ed5219f', class: {
6051
+ return (hAsync(Host, { key: '63f10662f55078a9aec2680653c040c8411cd80f', class: {
6052
6052
  'cluster': true,
6053
6053
  [`cluster--gap-${this.gapStep}`]: true,
6054
6054
  [`cluster--align-${this.align}`]: true,
6055
6055
  [`cluster--justify-${this.justify}`]: true,
6056
6056
  'cluster--nowrap': !this.wrap,
6057
- } }, hAsync("slot", { key: '638cecec55ed72d53eb5c6e51d1a683833fa5756' })));
6057
+ } }, hAsync("slot", { key: '60f9896089d707fe0ef1980dcb9115bcf3308a2f' })));
6058
6058
  }
6059
6059
  static get style() { return chClusterCss(); }
6060
6060
  static get cmpMeta() { return {
@@ -6108,7 +6108,7 @@ class ChDescriptionList {
6108
6108
  return COLUMNS.has(this.columns) ? this.columns : '1';
6109
6109
  }
6110
6110
  render() {
6111
- return (hAsync(Host, { key: 'd4905aeabf16e8c0798601a15e9115128c87f367' }, hAsync("dl", { key: 'f2f85f1cdae61f0d5d8c007509ec75f21a9e69df', class: `list list--columns-${this.columnCount}` }, hAsync("slot", { key: '60883fb5884ad38791c7ef811e4f3a0be6396e61' }))));
6111
+ return (hAsync(Host, { key: '2f349aa14dc442e4e531dacc2d9f6b02fc2b141a' }, hAsync("dl", { key: 'de4bf1b60c31f0319bc5e169304134c8e0046912', class: `list list--columns-${this.columnCount}` }, hAsync("slot", { key: '4ef568fa3e64048ba6e586ae9e8d10c21ad326aa' }))));
6112
6112
  }
6113
6113
  static get style() { return chDescriptionListCss(); }
6114
6114
  static get cmpMeta() { return {
@@ -6134,7 +6134,7 @@ class ChDivider {
6134
6134
  */
6135
6135
  orientation = 'horizontal';
6136
6136
  render() {
6137
- return (hAsync(Host, { key: 'c18cffa051e3fde189ed358a748e58d0af534357', class: { 'divider--vertical': this.orientation === 'vertical' } }, hAsync("hr", { key: '2a6fe2c3a2b61eecd03e0b5d2830695328e77453', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
6137
+ 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 })));
6138
6138
  }
6139
6139
  static get style() { return chDividerCss(); }
6140
6140
  static get cmpMeta() { return {
@@ -6339,7 +6339,7 @@ class ChDrawer {
6339
6339
  this.chClose.emit();
6340
6340
  };
6341
6341
  render() {
6342
- return (hAsync(Host, { key: 'a0406608e57614c79a23673f040191e2d94cdd48' }, hAsync("dialog", { key: '84072ff1a87f1033c5b4911089c8c0819fe087ea', class: { drawer: true, [`drawer--${this.side}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '57cddba1e04471dc6d0fe6e86311c38bb4329969', class: "drawer-head" }, hAsync("slot", { key: 'b77179dec88ae4d1b9975b7e6b16184a8aa8bb79', name: "header" }), this.closeLabel && (hAsync("button", { key: '88daedc7a80418e3480b577639e80ef31ff02486', class: "drawer-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: 'e5bb3e74f1b4365b0e32e2b8e70bdc46ac882c78', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'd81831510dd6a0d9e97eddffac99bc0689bf3d31', class: "drawer-body" }, hAsync("slot", { key: 'f3d72a55ad19021369e117ec5bf9693bc6d72c85' })), hAsync("slot", { key: '339e8989a2ea9f580a756ff89e10c40e55904c11', name: "footer" }))));
6342
+ 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" }))));
6343
6343
  }
6344
6344
  static get watchers() { return {
6345
6345
  "open": [{
@@ -6451,7 +6451,7 @@ class ChEmoji {
6451
6451
  this.loaded = true;
6452
6452
  };
6453
6453
  render() {
6454
- return (hAsync(Host, { key: '4a5c5b2a917227ab3fb9aabe560718a84dd17730' }, hAsync("img", { key: 'dbc09e58cd1a6ce899ce82dd1ec13ba15955b4ad', class: {
6454
+ return (hAsync(Host, { key: '8444f71f1c84fd8b1940503c5e7bf5ff62bbb9e6' }, hAsync("img", { key: 'ce9c083238c87557f71838ab8de50038fc43a2bd', class: {
6455
6455
  'emoji': true,
6456
6456
  [`emoji--${this.size}`]: true,
6457
6457
  'emoji--hidden': !this.loaded,
@@ -6507,7 +6507,7 @@ class ChEmptyState {
6507
6507
  */
6508
6508
  size = 'md';
6509
6509
  render() {
6510
- return (hAsync(Host, { key: '73a168213e3f62b73d859dd6e1ad35eff6694746', class: { 'empty-state': true, [`empty-state--${this.size}`]: true } }, hAsync("div", { key: '81bbad48af38acd640a67673132773a66d06c35b', class: "empty-state__inner" }, hAsync("div", { key: '1f9f8953beba68951163a5081ada1254ee6de61c', class: "empty-state__icon", "aria-hidden": "true" }, hAsync("slot", { key: '70c2b38f1a780b4c39a676d6b4cf4fe9d80a45c5', name: "icon" })), hAsync("h3", { key: '964501021ac65c7edb96c60b9e6f6dc7aece2ebe', class: "empty-state__title" }, this.title), this.description && hAsync("p", { key: 'a6effa9b7a24875938fc18ee9e6a7acf1c35b0ba', class: "empty-state__description" }, this.description), hAsync("div", { key: '0052d3c169569b96ee73b481f44b669715f90771', class: "empty-state__actions" }, hAsync("slot", { key: '3fa51fed8e5f49e02a9f588a3c0577ce9c2c5797' })))));
6510
+ 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' })))));
6511
6511
  }
6512
6512
  static get style() { return chEmptyStateCss(); }
6513
6513
  static get cmpMeta() { return {
@@ -6578,7 +6578,7 @@ class ChGrid {
6578
6578
  this.el.style.setProperty('--ch-grid-columns', template);
6579
6579
  }
6580
6580
  render() {
6581
- return (hAsync(Host, { key: '09a37640189b353bd109bce97ad684396f91a06d', class: { grid: true, [`grid--gap-${this.gapStep}`]: true } }, hAsync("slot", { key: 'e309fee76ea499e4c3b22082218d12fc94cb8fb8' })));
6581
+ return (hAsync(Host, { key: 'de6c2d15da9a5d735327df077c6b58abe9775267', class: { grid: true, [`grid--gap-${this.gapStep}`]: true } }, hAsync("slot", { key: '348289bcf2f46fb07e7392afa00c4619d6614fef' })));
6582
6582
  }
6583
6583
  static get style() { return chGridCss(); }
6584
6584
  static get cmpMeta() { return {
@@ -6628,7 +6628,7 @@ class ChIcon {
6628
6628
  render() {
6629
6629
  const shapes = this.name ? chIcons[this.name] : undefined;
6630
6630
  const decorative = !this.label;
6631
- return (hAsync(Host, { key: 'c5f0c415136db62b88cfdd17b1535ccabda92060' }, hAsync("svg", { key: '55e4f5604d9a6b3e7727fb8354658928104ea156', 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)))));
6631
+ 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)))));
6632
6632
  }
6633
6633
  static get style() { return chIconCss(); }
6634
6634
  static get cmpMeta() { return {
@@ -6691,7 +6691,7 @@ class ChIconButton {
6691
6691
  };
6692
6692
  render() {
6693
6693
  const shapes = this.name ? chIcons[this.name] : undefined;
6694
- return (hAsync(Host, { key: '201ad628b28588bdf40baf822abc60b2c8b7c6f2' }, hAsync("button", { key: '21fb01a8b6deef9e330ee2e3805834f5f2b8a953', 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: 'c003a3643d5968f08cf9227f768aea7b4817ab7d', 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))))));
6694
+ 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))))));
6695
6695
  }
6696
6696
  static get style() { return chIconButtonCss(); }
6697
6697
  static get cmpMeta() { return {
@@ -6832,7 +6832,7 @@ class ChInput {
6832
6832
  return undefined;
6833
6833
  }
6834
6834
  render() {
6835
- return (hAsync(Host, { key: 'd85d2773a340ee1a46f7f76a0d287ff1194d0e0b' }, this.label && (hAsync("label", { key: '9ad19457232c703a59eab1062e12c17e8c2b8327', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'f88fe669d2afa183230b1286dd88ccc894eaee5e', 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: '31bdbb81ba537cc7d84b8cf7fc24055890b9b000', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '50a7cb03654f5deaa70af64ee14d774e94f77816', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6835
+ 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))));
6836
6836
  }
6837
6837
  static get formAssociated() { return true; }
6838
6838
  static get watchers() { return {
@@ -7081,7 +7081,7 @@ class ChModal {
7081
7081
  this.chClose.emit();
7082
7082
  };
7083
7083
  render() {
7084
- return (hAsync(Host, { key: '01e01a6927352410f85cb7022aa653482e52f010' }, hAsync("dialog", { key: '166798e913c662fad6c517d3c5ac957b3d9a44cf', class: { modal: true, [`modal--${this.size}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '3d0766206306e7efe1c613313a99d049aea168ef', class: "modal-head" }, hAsync("slot", { key: '9b50ec72180b64e7eef52dab2f9246eee1cbe788', name: "heading" }), this.closeLabel && (hAsync("button", { key: 'd6c375363d9debb0c3858bb0dc1a67c816b24442', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: '128216aa8fca200775cd7ab28b23555bd516d1db', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'eebabfd71be502cc99e8337526cd31d4406d5eb8', class: "modal-body" }, hAsync("slot", { key: '1bbc38d606a23c6b499a80a6695a1ee6334c414f' })))));
7084
+ 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' })))));
7085
7085
  }
7086
7086
  static get watchers() { return {
7087
7087
  "open": [{
@@ -7104,6 +7104,275 @@ class ChModal {
7104
7104
  }; }
7105
7105
  }
7106
7106
 
7107
+ const chNumberInputCss = () => `: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)}`;
7108
+
7109
+ let numberInputIds = 0;
7110
+ /**
7111
+ * Numeric input that keeps what the user is typing separate from the value the
7112
+ * form submits.
7113
+ *
7114
+ * The display is formatted (`1.234.567` for CLP) while `value` and `FormData`
7115
+ * carry a canonical machine-readable string: digits only for CLP, the plain
7116
+ * decimal for `plain`. Parsing on every keystroke cannot represent the
7117
+ * intermediate states people actually type — `-`, `1.`, `0,` — so those stay as
7118
+ * text and are validated at the end.
7119
+ *
7120
+ * Empty is not zero. A cleared field submits `''` and reports `valueMissing`
7121
+ * when required; it never becomes `0`.
7122
+ *
7123
+ * There is no separate currency component: `format="clp"` is the currency
7124
+ * boundary for Chilean pesos, the only case with a real consumer.
7125
+ */
7126
+ class ChNumberInput {
7127
+ constructor(hostRef) {
7128
+ registerInstance(this, hostRef);
7129
+ this.chInput = createEvent(this, "chInput");
7130
+ this.chChange = createEvent(this, "chChange");
7131
+ if (hostRef.$hostElement$["s-ei"]) {
7132
+ this.internals = hostRef.$hostElement$["s-ei"];
7133
+ }
7134
+ else {
7135
+ this.internals = hostRef.$hostElement$.attachInternals();
7136
+ hostRef.$hostElement$["s-ei"] = this.internals;
7137
+ }
7138
+ }
7139
+ inputId = `ch-number-input-${++numberInputIds}`;
7140
+ hintId = `${this.inputId}-hint`;
7141
+ errorId = `${this.inputId}-error`;
7142
+ initialValue = '';
7143
+ internals;
7144
+ formDisabled = false;
7145
+ get host() { return getElement(this); }
7146
+ /** Visible label, associated with the input via `for`/`id`. */
7147
+ label;
7148
+ /**
7149
+ * Canonical value: digits only for `clp`, a plain decimal string for `plain`.
7150
+ * Never formatted — formatting lives in the rendered text.
7151
+ */
7152
+ value = '';
7153
+ /** How the number is displayed while typing. */
7154
+ format = 'plain';
7155
+ /** Placeholder shown when the field is empty. */
7156
+ placeholder;
7157
+ /** Name submitted with the form. */
7158
+ name;
7159
+ /** Whether the field is disabled. */
7160
+ disabled = false;
7161
+ /** Whether a value is required; an empty field is then invalid. */
7162
+ required = false;
7163
+ /** Minimum accepted value. */
7164
+ min;
7165
+ /** Maximum accepted value. */
7166
+ max;
7167
+ /** Stepping increment. `'any'` disables stepping validation. */
7168
+ step = 'any';
7169
+ /** Helper text, replaced by `errorMessage` when invalid. */
7170
+ hint;
7171
+ /** Custom error message; wins over the built-in range messages. */
7172
+ errorMessage;
7173
+ /** Whether the field is marked invalid by the consumer. */
7174
+ invalid = false;
7175
+ /** Emitted on every keystroke with the canonical value. */
7176
+ chInput;
7177
+ /** Emitted on commit (native `change`) with the canonical value. */
7178
+ chChange;
7179
+ /**
7180
+ * The text in the input, which may be a partial number like `-` or `1.`.
7181
+ * This is the only thing rendered, so it is also what a reset must restore.
7182
+ */
7183
+ draft = '';
7184
+ /**
7185
+ * Whether the user has typed since the last commit. While false the input
7186
+ * renders `value` directly, which is what makes `formResetCallback` and a
7187
+ * consumer assigning `.value` repaint without extra bookkeeping.
7188
+ */
7189
+ typing = false;
7190
+ componentWillLoad() {
7191
+ this.draft = this.formatDisplay(this.value);
7192
+ }
7193
+ get decimals() {
7194
+ return this.format !== 'clp';
7195
+ }
7196
+ /** Formats a canonical value for display. */
7197
+ formatDisplay(value) {
7198
+ if (value === '') {
7199
+ return '';
7200
+ }
7201
+ if (this.format === 'clp') {
7202
+ const digits = value.replace(/\D/gu, '');
7203
+ return digits === '' ? '' : Number(digits).toLocaleString('es-CL');
7204
+ }
7205
+ return value;
7206
+ }
7207
+ /**
7208
+ * Strips display formatting back to the canonical string: digits only for
7209
+ * CLP; a leading sign, digits and one decimal separator for `plain`.
7210
+ */
7211
+ toCanonical(text) {
7212
+ if (this.format === 'clp') {
7213
+ return text.replace(/\D/gu, '');
7214
+ }
7215
+ const normalised = text.replace(/\s/gu, '').replace(',', '.');
7216
+ const match = /^-?\d*(?:\.\d*)?/u.exec(normalised);
7217
+ return match ? match[0] : '';
7218
+ }
7219
+ /**
7220
+ * Whether the field holds a real number. A draft that is only a sign or a
7221
+ * separator (`-`, `.`) is still being typed and submits as empty.
7222
+ */
7223
+ get isEmpty() {
7224
+ return !/^-?\d/u.test(this.toCanonical(this.draft));
7225
+ }
7226
+ /** What the form receives and `value` exposes. */
7227
+ get canonical() {
7228
+ return this.isEmpty ? '' : this.toCanonical(this.draft);
7229
+ }
7230
+ get numericValue() {
7231
+ return Number(this.canonical);
7232
+ }
7233
+ /** The message for a value outside `min`/`max`, if there is one. */
7234
+ outOfRange(parsed) {
7235
+ const { min, max } = this;
7236
+ if (min !== undefined && parsed < min) {
7237
+ return `Enter a value of at least ${min}.`;
7238
+ }
7239
+ if (max !== undefined && parsed > max) {
7240
+ return `Enter a value of at most ${max}.`;
7241
+ }
7242
+ return undefined;
7243
+ }
7244
+ rangeError() {
7245
+ if (this.errorMessage || this.isEmpty || this.invalid) {
7246
+ return undefined;
7247
+ }
7248
+ const parsed = this.numericValue;
7249
+ return Number.isNaN(parsed) ? 'Enter a valid number.' : this.outOfRange(parsed);
7250
+ }
7251
+ syncForm() {
7252
+ const { internals, required, invalid, errorMessage, canonical } = this;
7253
+ if (typeof internals?.setFormValue !== 'function') {
7254
+ return;
7255
+ }
7256
+ internals.setFormValue(canonical);
7257
+ const base = resolveValidity({ required, empty: canonical === '', invalid, errorMessage });
7258
+ const rangeMessage = this.rangeError();
7259
+ if (rangeMessage) {
7260
+ internals.setValidity({ ...base.flags, badInput: true }, rangeMessage);
7261
+ return;
7262
+ }
7263
+ internals.setValidity(base.flags, base.message);
7264
+ }
7265
+ componentDidLoad() {
7266
+ this.initialValue = this.value;
7267
+ this.syncForm();
7268
+ this.host.addEventListener('change', this.markTouched);
7269
+ this.host.addEventListener('focusout', this.markTouched);
7270
+ this.host.addEventListener('invalid', this.markTouched);
7271
+ }
7272
+ markTouched = () => {
7273
+ this.host.setAttribute('data-touched', '');
7274
+ };
7275
+ formResetCallback() {
7276
+ this.value = this.initialValue;
7277
+ this.draft = this.formatDisplay(this.initialValue);
7278
+ this.typing = false;
7279
+ this.syncForm();
7280
+ // The vdom does not push a re-rendered `value` onto a live `<input>`: the
7281
+ // property is set by the browser's own typing and the diff sees no change.
7282
+ // A reset restores the text directly.
7283
+ const input = this.host.shadowRoot?.querySelector('input');
7284
+ if (input) {
7285
+ input.value = this.formatDisplay(this.initialValue);
7286
+ }
7287
+ }
7288
+ formDisabledCallback(isDisabled) {
7289
+ this.formDisabled = isDisabled;
7290
+ }
7291
+ commit(text) {
7292
+ this.typing = true;
7293
+ this.draft = text;
7294
+ this.value = this.canonical;
7295
+ this.chInput.emit(this.value);
7296
+ this.syncForm();
7297
+ }
7298
+ handleInput = (ev) => {
7299
+ this.commit(ev.target.value);
7300
+ };
7301
+ handleChange = (ev) => {
7302
+ this.commit(ev.target.value);
7303
+ this.chChange.emit(this.value);
7304
+ };
7305
+ /** Reformats grouped CLP digits once the field loses focus. */
7306
+ handleBlur = () => {
7307
+ if (this.format === 'clp') {
7308
+ this.draft = this.formatDisplay(this.canonical);
7309
+ }
7310
+ };
7311
+ get isInvalid() {
7312
+ return this.invalid || this.rangeError() !== undefined;
7313
+ }
7314
+ get describedBy() {
7315
+ if (this.isInvalid && this.errorMessage) {
7316
+ return this.errorId;
7317
+ }
7318
+ if (this.hint) {
7319
+ return this.hintId;
7320
+ }
7321
+ return undefined;
7322
+ }
7323
+ render() {
7324
+ const showError = this.isInvalid && this.errorMessage;
7325
+ 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 },
7326
+ // `text` with `inputmode`, not `type="number"`: a number input drops
7327
+ // partial values and cannot show grouped digits.
7328
+ 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))));
7329
+ }
7330
+ static get formAssociated() { return true; }
7331
+ static get watchers() { return {
7332
+ "required": [{
7333
+ "syncForm": 0
7334
+ }],
7335
+ "invalid": [{
7336
+ "syncForm": 0
7337
+ }],
7338
+ "errorMessage": [{
7339
+ "syncForm": 0
7340
+ }],
7341
+ "min": [{
7342
+ "syncForm": 0
7343
+ }],
7344
+ "max": [{
7345
+ "syncForm": 0
7346
+ }]
7347
+ }; }
7348
+ static get style() { return chNumberInputCss(); }
7349
+ static get cmpMeta() { return {
7350
+ "$flags$": 585,
7351
+ "$tagName$": "ch-number-input",
7352
+ "$members$": {
7353
+ "label": [1],
7354
+ "value": [1025],
7355
+ "format": [1],
7356
+ "placeholder": [1],
7357
+ "name": [513],
7358
+ "disabled": [516],
7359
+ "required": [516],
7360
+ "min": [2],
7361
+ "max": [2],
7362
+ "step": [8],
7363
+ "hint": [1],
7364
+ "errorMessage": [1, "error-message"],
7365
+ "invalid": [4],
7366
+ "formDisabled": [32],
7367
+ "draft": [32],
7368
+ "typing": [32]
7369
+ },
7370
+ "$listeners$": undefined,
7371
+ "$lazyBundleId$": "-",
7372
+ "$attrsToReflect$": [["name", "name"], ["disabled", "disabled"], ["required", "required"]]
7373
+ }; }
7374
+ }
7375
+
7107
7376
  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}}`;
7108
7377
 
7109
7378
  /**
@@ -7147,7 +7416,7 @@ class ChPageHeader {
7147
7416
  actionsStacked = false;
7148
7417
  render() {
7149
7418
  const Heading = this.headingLevel;
7150
- return (hAsync(Host, { key: '0e2bc8c10790e1f6f36a4c679579ac775f6ec3a4' }, hAsync("div", { key: '8ef9876c61f0ff325fedfb899d2e09c02b8e5e53', class: { 'header': true, 'header--stacked': this.actionsStacked } }, hAsync("div", { key: '3bef4d66f8d69397c4117e9d4a0637e978abbe2e', class: "header-text" }, this.eyebrow && hAsync("p", { key: '1ae504669807c48d95d12ce5b7d488f85e5dc864', class: "header-eyebrow" }, this.eyebrow), hAsync(Heading, { key: '9b6374d6b1d18124e49acf67af08443175f4bbaa', class: "header-title" }, this.title), this.description && hAsync("p", { key: '9c3d2d58f1c2dde2c70fc5f86eb2d580a13f8594', class: "header-description" }, this.description)), hAsync("div", { key: '3b48c89c2a8c4c5d3e42f6b78db80b3e9c2e0c50', class: "header-actions" }, hAsync("slot", { key: '77b2010fec0113af7c8ee7c7bcd884dd11b05138', name: "actions" })))));
7419
+ 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" })))));
7151
7420
  }
7152
7421
  static get style() { return chPageHeaderCss(); }
7153
7422
  static get cmpMeta() { return {
@@ -7277,7 +7546,7 @@ class ChRadio {
7277
7546
  }
7278
7547
  render() {
7279
7548
  const groupName = this.name || `${this.groupId}-group`;
7280
- return (hAsync(Host, { key: 'f55466f6bcbe3283d294161c02498419066ca958' }, this.label && (hAsync("span", { key: '789131e7d8812ee930db5e0a0c6dc7f7e353249f', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: 'fc0a7adbde7feaaca99d156d45aacb6d18d5588e', 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: '53f3e9d368cfefa9a4d85010b65f002a3b92e0f4', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '517b7204ebf91042d293be294d7e936954eb80fb', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7549
+ 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))));
7281
7550
  }
7282
7551
  static get formAssociated() { return true; }
7283
7552
  static get watchers() { return {
@@ -7421,7 +7690,7 @@ class ChSegmentedControl {
7421
7690
  }
7422
7691
  render() {
7423
7692
  const groupName = this.name || `${this.groupId}-group`;
7424
- return (hAsync(Host, { key: 'a8782886fd0c20fa96a5a54c9997fe9d91d3e670' }, this.label && (hAsync("span", { key: '99a2727035a62f71d01f07e0cf222becb118d3b2', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: '31b293c379a996e06650c1a6c9fe9c46c32097a2', 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)))))));
7693
+ 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)))))));
7425
7694
  }
7426
7695
  static get formAssociated() { return true; }
7427
7696
  static get watchers() { return {
@@ -7564,7 +7833,7 @@ class ChSelect {
7564
7833
  return undefined;
7565
7834
  }
7566
7835
  render() {
7567
- return (hAsync(Host, { key: 'aeba7eff5bf3bd7926922e65376c6508fc1c4dd3' }, this.label && (hAsync("label", { key: '943e5557014e2297368825505513f4ad8b093ee5', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: 'ccec2dfef1b06b219e7aed536914ebf2b24e370f', 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: 'a0c41592c1a5a90f611917da984374edf5305b96', 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: '28a35ede5d7bb1937d501719244b4b9f7a5d95f2', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'b021c848f75367e2e3329aab423f787205ee0491', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7836
+ 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))));
7568
7837
  }
7569
7838
  static get formAssociated() { return true; }
7570
7839
  static get watchers() { return {
@@ -7657,7 +7926,7 @@ class ChSkeleton {
7657
7926
  return { width: this.width, height: this.height };
7658
7927
  }
7659
7928
  render() {
7660
- return (hAsync(Host, { key: '705e4cd6dac9c8c8578cb8133a700c3297d9fffe', "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) })))));
7929
+ 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) })))));
7661
7930
  }
7662
7931
  static get style() { return chSkeletonCss(); }
7663
7932
  static get cmpMeta() { return {
@@ -7705,7 +7974,7 @@ class ChSpinner {
7705
7974
  label;
7706
7975
  render() {
7707
7976
  const labelled = Boolean(this.label);
7708
- return (hAsync(Host, { key: '6d26b2ead7b674058b3d5c56caf9329cf9377ae6' }, hAsync("span", { key: 'a3fa9b56474271154527b9e0f9def3136b158ea4', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
7977
+ 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' })));
7709
7978
  }
7710
7979
  static get style() { return chSpinnerCss(); }
7711
7980
  static get cmpMeta() { return {
@@ -7751,7 +8020,7 @@ class ChStack {
7751
8020
  return GAPS.has(this.gap) ? this.gap : 'md';
7752
8021
  }
7753
8022
  render() {
7754
- return (hAsync(Host, { key: 'd4ee90331cd1ff0d65eb9c80aa684d3b2f5e2876', class: { stack: true, [`stack--gap-${this.gapStep}`]: true, [`stack--align-${this.align}`]: true, [`stack--justify-${this.justify}`]: true } }, hAsync("slot", { key: 'bdfe358adc457ed6ba79ca80b9e96f17597fbcb5' })));
8023
+ 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' })));
7755
8024
  }
7756
8025
  static get style() { return chStackCss(); }
7757
8026
  static get cmpMeta() { return {
@@ -7817,10 +8086,10 @@ class ChStat {
7817
8086
  }
7818
8087
  render() {
7819
8088
  const cue = this.toneClass === 'positive' ? '+' : this.toneClass === 'negative' ? '−' : null;
7820
- return (hAsync(Host, { key: '5a43c713faab1513866d8f06899bb3fd3184cf09', class: "stat" }, hAsync("div", { key: '9c24e9774cfe0a70b8ba37c06ce7f264b34a9d8c', class: "stat__inner" }, hAsync("span", { key: '1a9330c2b31ec6de29f1b8c77761d7eb16160aae', class: "stat__label" }, this.label), hAsync("span", { key: '3f6c5e76f5c062effcb9793206a949942bcdfb9a', class: {
8089
+ 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: {
7821
8090
  stat__value: true,
7822
8091
  [`stat__value--${this.toneClass}`]: this.toneClass !== 'default',
7823
- } }, cue && (hAsync("span", { key: 'b5f79899ec52e7e2b3ec3c00295f755f770a8bca', class: "stat__cue", "aria-hidden": "true" }, cue)), hAsync("slot", { key: 'b64083aa5738b4088cf9029650286b2564649ec9', name: "value" }, this.value)), this.hint && hAsync("span", { key: '9f560c1f1fd23f08ea63eccc9076066a7fd1a0f9', class: "stat__hint" }, this.hint), hAsync("div", { key: '77f3fe1f87e3abc2cce829e06b21f6b2c5f9aa15', class: "stat__footer" }, hAsync("slot", { key: 'd75204702eab0ab1f55df92e9c13c899235f6840', name: "footer" })))));
8092
+ } }, 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" })))));
7824
8093
  }
7825
8094
  static get style() { return chStatCss(); }
7826
8095
  static get cmpMeta() { return {
@@ -7946,7 +8215,7 @@ class ChSwitch {
7946
8215
  return undefined;
7947
8216
  }
7948
8217
  render() {
7949
- return (hAsync(Host, { key: 'e1493afa72058b44b5051cdc641604d02952b6be' }, hAsync("label", { key: '80f2ca9bdb7fab02556f427f4a1fce56744eaf50', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '22a873c43b7f9c94455373d80ab5b3c28153ff70', 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: 'd995c061f60ad3040048966da17ad8cb2ebdb622', class: "track" }, hAsync("span", { key: 'ba09dcb23640b2925d0c82f5ab46213acc7e8a86', class: "thumb" })), this.label && hAsync("span", { key: '9849238fd3486bc1d869c6df373e30209e46d264', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '76a5cb6da88dbd7088cf2c0d9c2b5a781a632a7f', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '5ebd8ab9b2390fea801bf75eeb4967e95983e041', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8218
+ 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))));
7950
8219
  }
7951
8220
  static get formAssociated() { return true; }
7952
8221
  static get watchers() { return {
@@ -7985,6 +8254,200 @@ class ChSwitch {
7985
8254
  }; }
7986
8255
  }
7987
8256
 
8257
+ const chTableCss = () => `:host{display:block;font-family:var(--typography-body);color:var(--color-text-primary)}:host([hidden]){display:none}.table__scroll{overflow-x:auto;min-width:0;border:var(--border-width) solid var(--color-border-default);border-radius:var(--radius-md);background:var(--color-surface-default)}.table__scroll:focus-visible{outline:2px solid var(--color-accent-default);outline-offset:2px}.table{width:100%;border-collapse:collapse;font-size:var(--typography-size-sm)}.cell{min-width:8rem}.caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.cell{padding:var(--spacing-md) var(--spacing-lg);text-align:left;vertical-align:top;border-bottom:var(--border-width) solid var(--color-border-default)}.cell--header{font-weight:var(--typography-weight-semibold);color:var(--color-text-secondary);white-space:nowrap;background:var(--color-surface-hover)}tbody tr:last-child td{border-bottom:0}.sort{all:unset;display:inline-flex;align-items:center;gap:var(--spacing-xs);cursor:pointer;border-radius:var(--radius-sm)}.sort:focus-visible{outline:2px solid var(--color-accent-default);outline-offset:2px}.sort__cue{font-size:var(--typography-size-xs);color:var(--color-text-secondary)}.table__empty{padding:var(--spacing-2xl) var(--spacing-lg);text-align:center}.table__empty-message{margin:0;font-size:var(--typography-size-sm);color:var(--color-text-secondary)}`;
8258
+
8259
+ let tableIds = 0;
8260
+ /**
8261
+ * Presentation-only data grid over a native `<table>`.
8262
+ *
8263
+ * The component renders the table skeleton and the header row; the consumer
8264
+ * slots the body as **native** `<tr>` elements. It does not hold the rows, sort
8265
+ * them, paginate them or fetch anything — it reports intent and the consumer
8266
+ * decides. Sorting is controlled: the table reflects the `sortKey` and
8267
+ * `sortDirection` it is given, so a consumer that ignores `chSort` leaves the
8268
+ * `aria-sort` that matches its own data.
8269
+ *
8270
+ * ```html
8271
+ * <ch-table sortable sort-key="name" sort-direction="ascending">
8272
+ * <tr><td>Aurora SpA</td><td>En despacho</td></tr>
8273
+ * <tr><td>Bosque Ltda</td><td>Pendiente</td></tr>
8274
+ * </ch-table>
8275
+ * ```
8276
+ *
8277
+ * ```js
8278
+ * table.columns = [
8279
+ * { key: 'name', label: 'Cliente' },
8280
+ * { key: 'status', label: 'Estado' },
8281
+ * ];
8282
+ * ```
8283
+ *
8284
+ * Columns come from the `columns` prop, like `ch-select`'s `options` — there is
8285
+ * no `ch-table-column` element, and an unknown element inside a component is
8286
+ * never rendered.
8287
+ *
8288
+ * Rows must be real `<tr>` elements created as DOM nodes, not written as
8289
+ * HTML inside the tag: the parser rejects a `<tr>` outside a `<table>`, so
8290
+ * `<ch-table><tr>…</tr></ch-table>` in an HTML string parses to a text node
8291
+ * and the table correctly reports itself empty. Framework templates and
8292
+ * `createElement` are unaffected.
8293
+ *
8294
+ * The shape is the one approved on #77: `table`/`thead`/`tbody` live in the
8295
+ * shadow DOM and the consumer slots native rows. Custom row and cell elements
8296
+ * are not possible — the HTML parser foster-parents them out of a native
8297
+ * table, which the spike in `tests/browser/semantic-shapes.browser.spec.ts`
8298
+ * measured in real Chromium.
8299
+ */
8300
+ class ChTable {
8301
+ constructor(hostRef) {
8302
+ registerInstance(this, hostRef);
8303
+ this.chSort = createEvent(this, "chSort");
8304
+ }
8305
+ captionId = `ch-table-${++tableIds}-caption`;
8306
+ emptyId = `${this.captionId}-empty`;
8307
+ get host() { return getElement(this); }
8308
+ /** Columns, in display order. Rendered as the header row. */
8309
+ columns = [];
8310
+ /** Whether the header offers sorting. Individual columns can opt out. */
8311
+ sortable = false;
8312
+ /** Key of the column currently used for sorting. Controlled by the consumer. */
8313
+ sortKey;
8314
+ /** Direction of the current sort. Defaults to `ascending`. */
8315
+ sortDirection = 'ascending';
8316
+ /**
8317
+ * Accessible name for the table. Always rendered as a caption, visually
8318
+ * hidden, because a data table without a name is announced as a bare grid.
8319
+ */
8320
+ label;
8321
+ /**
8322
+ * Shown in place of the rows when the body is empty. `filtered` distinguishes
8323
+ * "nothing matched your filters" from "there is nothing yet", which are
8324
+ * different messages and different next actions.
8325
+ */
8326
+ empty = 'unmeasured';
8327
+ /**
8328
+ * Marks the body as empty *because of filtering* rather than because there is
8329
+ * no data at all. Both look like zero rows, and they need different messages
8330
+ * and different next actions.
8331
+ */
8332
+ filtered = false;
8333
+ /** Emitted when a sortable header is activated. The consumer applies the sort. */
8334
+ chSort;
8335
+ onFiltered() {
8336
+ this.measure();
8337
+ }
8338
+ rerenderHeaders() {
8339
+ // Header attributes are derived from controlled props, so a prop change
8340
+ // has to repaint them; `columns` and the slot repaint on their own.
8341
+ this.rerender = !this.rerender;
8342
+ }
8343
+ rerender = false;
8344
+ observer;
8345
+ componentDidLoad() {
8346
+ this.measure();
8347
+ // `slotchange` does not fire for native `<tr>` children, and it only fires
8348
+ // at all once the element is upgraded, so a row added later would leave the
8349
+ // table stuck on its first measurement. Observing the host covers both
8350
+ // orders plus a consumer that swaps rows on refresh. `MutationObserver` is
8351
+ // absent in the mock-doc test environment, where the slot behaviour is
8352
+ // exercised through an explicit `slotchange` instead.
8353
+ if (typeof MutationObserver === 'function') {
8354
+ this.observer = new MutationObserver(this.measure);
8355
+ this.observer.observe(this.host, { childList: true });
8356
+ }
8357
+ }
8358
+ disconnectedCallback() {
8359
+ this.observer?.disconnect();
8360
+ this.observer = undefined;
8361
+ }
8362
+ measure = () => {
8363
+ const rows = Array.from(this.host.children).filter(child => child.tagName === 'TR');
8364
+ this.empty = rows.length === 0 ? 'true' : 'none';
8365
+ };
8366
+ /**
8367
+ * A filtered-empty body and a truly empty one both have zero rows; only the
8368
+ * consumer knows which, since `filtered` is a prop it controls.
8369
+ */
8370
+ get emptyState() {
8371
+ if (this.filtered) {
8372
+ return 'filtered';
8373
+ }
8374
+ return this.empty;
8375
+ }
8376
+ /** Direction glyph. Not colour: the arrow is the cue in greyscale. */
8377
+ sortCue(active) {
8378
+ if (!active) {
8379
+ return '⇅';
8380
+ }
8381
+ return this.sortDirection === 'ascending' ? '▲' : '▼';
8382
+ }
8383
+ emptyMessage(state) {
8384
+ return state === 'filtered' ? 'No results for these filters.' : 'Nothing here yet.';
8385
+ }
8386
+ nextDirection(key) {
8387
+ if (this.sortKey !== key) {
8388
+ return 'ascending';
8389
+ }
8390
+ return this.sortDirection === 'ascending' ? 'descending' : 'ascending';
8391
+ }
8392
+ handleSort = (key) => {
8393
+ this.chSort.emit({ key, direction: this.nextDirection(key) });
8394
+ };
8395
+ handleHeaderKeydown = (ev, key) => {
8396
+ if (ev.key !== 'Enter' && ev.key !== ' ') {
8397
+ return;
8398
+ }
8399
+ ev.preventDefault();
8400
+ this.handleSort(key);
8401
+ };
8402
+ renderHeaderCell(column) {
8403
+ const sortable = this.sortable && column.sortable !== false;
8404
+ if (!sortable) {
8405
+ return (hAsync("th", { scope: "col", class: "cell cell--header" }, column.label));
8406
+ }
8407
+ const active = this.sortKey === column.key;
8408
+ const direction = active ? this.sortDirection : 'none';
8409
+ return (hAsync("th", { scope: "col", class: "cell cell--header", "aria-sort": direction }, hAsync("button", { type: "button", class: "sort", onClick: () => this.handleSort(column.key), onKeyDown: ev => this.handleHeaderKeydown(ev, column.key) }, hAsync("span", null, column.label), hAsync("span", { class: "sort__cue", "aria-hidden": "true" }, this.sortCue(active)))));
8410
+ }
8411
+ render() {
8412
+ const empty = this.emptyState;
8413
+ // Before the first measurement the table is rendered as non-empty, so a
8414
+ // consumer never sees the empty message flash over real rows.
8415
+ 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)))))));
8416
+ }
8417
+ static get watchers() { return {
8418
+ "filtered": [{
8419
+ "onFiltered": 0
8420
+ }],
8421
+ "sortKey": [{
8422
+ "rerenderHeaders": 0
8423
+ }],
8424
+ "sortDirection": [{
8425
+ "rerenderHeaders": 0
8426
+ }],
8427
+ "sortable": [{
8428
+ "rerenderHeaders": 0
8429
+ }]
8430
+ }; }
8431
+ static get style() { return chTableCss(); }
8432
+ static get cmpMeta() { return {
8433
+ "$flags$": 777,
8434
+ "$tagName$": "ch-table",
8435
+ "$members$": {
8436
+ "columns": [16],
8437
+ "sortable": [516],
8438
+ "sortKey": [1, "sort-key"],
8439
+ "sortDirection": [1, "sort-direction"],
8440
+ "label": [1],
8441
+ "filtered": [516],
8442
+ "empty": [32],
8443
+ "rerender": [32]
8444
+ },
8445
+ "$listeners$": undefined,
8446
+ "$lazyBundleId$": "-",
8447
+ "$attrsToReflect$": [["sortable", "sortable"], ["filtered", "filtered"]]
8448
+ }; }
8449
+ }
8450
+
7988
8451
  const chTabsCss = () => `:host{display:block}.tablist{display:flex;gap:var(--spacing-2xl);border-bottom:var(--border-width) solid var(--border)}.tab{appearance:none;position:relative;background:transparent;border:none;padding:var(--spacing-md) 0 var(--spacing-xl);margin-bottom:calc(-1 * var(--border-width));color:var(--text-muted);font-family:inherit;font-size:inherit;font-weight:var(--typography-weight-semibold);cursor:pointer;transition:color var(--duration-normal) var(--easing-default), border-color var(--duration-normal) var(--easing-default)}.tab::after{content:'';position:absolute;left:0;right:0;bottom:0;height:var(--border-accent-bar);background:var(--accent);opacity:0;transition:opacity var(--duration-normal) var(--easing-default)}.tab:hover{color:var(--text)}.tab:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.tab--active{color:var(--text)}.tab--active::after{opacity:1}.tab--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.tabpanel{padding-top:var(--spacing-2xl);color:var(--text)}.tabpanel[hidden]{display:none}`;
7989
8452
 
7990
8453
  const FIRST_TAB_INDEX = 0;
@@ -8069,7 +8532,7 @@ class ChTabs {
8069
8532
  }
8070
8533
  render() {
8071
8534
  const active = this.activeValue;
8072
- return (hAsync(Host, { key: 'de167280c159345631f84f5eb7a3dc165396f361' }, hAsync("div", { key: '62c008bcf9eafd1c5f5121540b2841e2a6ada541', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
8535
+ 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 => {
8073
8536
  const selected = tab.value === active;
8074
8537
  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));
8075
8538
  })), 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}` }))))));
@@ -8211,7 +8674,7 @@ class ChTextarea {
8211
8674
  return undefined;
8212
8675
  }
8213
8676
  render() {
8214
- return (hAsync(Host, { key: 'c4334a23f6ad2394d410498726f3f422a654ffe3' }, this.label && (hAsync("label", { key: 'd935613b40c6c52be41e258aad2a3c17a290a506', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: 'ab27ae9a6be7d2bcc17638c209ef23eb3757c102', 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: 'eb488704ac6ff76534308aefd0938d848d14608f', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '04c084b29d102f06bf15efc4c416b6ba0967ba8d', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8677
+ 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))));
8215
8678
  }
8216
8679
  static get formAssociated() { return true; }
8217
8680
  static get watchers() { return {
@@ -8282,7 +8745,7 @@ class ChTimeline {
8282
8745
  registerInstance(this, hostRef);
8283
8746
  }
8284
8747
  render() {
8285
- return (hAsync(Host, { key: 'da3288af540acb92113ba83d08fc5e1693e83b3e', class: "timeline" }, hAsync("ol", { key: '1aaee846703dd0a67d6df04945eb4a62e2bbf711', class: "list" }, hAsync("slot", { key: '394cfd03640a2cf78bd620338de9ed9ef7b9d9f5' }))));
8748
+ return (hAsync(Host, { key: '50b3a225915e4223fa3eaf560cb1e15898026ec0', class: "timeline" }, hAsync("ol", { key: '5b5e218a419f63990deca2d1a7e0f8f36f63cc09', class: "list" }, hAsync("slot", { key: '69ff4592e898cdecb078437b6633e5e24c626e61' }))));
8286
8749
  }
8287
8750
  static get style() { return chTimelineCss(); }
8288
8751
  static get cmpMeta() { return {
@@ -8396,7 +8859,7 @@ function correction(before, after) {
8396
8859
  return 0;
8397
8860
  }
8398
8861
 
8399
- const chTooltipCss = () => `:host{display:inline-block}.anchor{position:relative;display:inline-flex}.bubble{position:absolute;z-index:var(--z-index-dropdown);width:max-content;max-width:min(16rem, calc(100vw - 2 * var(--spacing-2xl)));padding:var(--spacing-md) var(--spacing-2xl);border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-sm);line-height:1.4;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--easing-default), visibility var(--duration-fast) var(--easing-default)}.bubble--visible{opacity:1;visibility:visible}.bubble::before{content:'';position:absolute}.bubble--positioned{position:fixed;top:var(--ch-tooltip-offset-top);left:var(--ch-tooltip-offset-left);transform:none;margin:0}.bubble--top{bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:var(--spacing-md)}.bubble.bubble--positioned.bubble--top,.bubble.bubble--positioned.bubble--bottom,.bubble.bubble--positioned.bubble--left,.bubble.bubble--positioned.bubble--right{inset:auto;top:var(--ch-tooltip-offset-top);left:var(--ch-tooltip-offset-left);right:auto;bottom:auto;transform:none;margin:0}.bubble--top::before{top:100%;left:0;right:0;height:var(--spacing-md)}.bubble--bottom{top:100%;left:50%;transform:translateX(-50%);margin-top:var(--spacing-md)}.bubble--bottom::before{bottom:100%;left:0;right:0;height:var(--spacing-md)}.bubble--left{right:100%;top:50%;transform:translateY(-50%);margin-right:var(--spacing-md)}.bubble--left::before{left:100%;top:0;bottom:0;width:var(--spacing-md)}.bubble--right{left:100%;top:50%;transform:translateY(-50%);margin-left:var(--spacing-md)}.bubble--right::before{right:100%;top:0;bottom:0;width:var(--spacing-md)}@media (prefers-reduced-motion: reduce){.bubble{transition:none}}`;
8862
+ const chTooltipCss = () => `:host{display:inline-block}.anchor{position:relative;display:inline-flex}.probe{position:fixed;top:0;left:0;width:1px;height:1px;visibility:hidden;pointer-events:none}.bubble{position:absolute;z-index:var(--z-index-dropdown);width:max-content;max-width:min(16rem, calc(100vw - 2 * var(--spacing-2xl)));padding:var(--spacing-md) var(--spacing-2xl);border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-sm);line-height:1.4;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--easing-default), visibility var(--duration-fast) var(--easing-default)}.bubble--visible{opacity:1;visibility:visible}.bubble::before{content:'';position:absolute}.bubble--positioned{position:fixed;top:var(--ch-tooltip-offset-top);left:var(--ch-tooltip-offset-left);transform:none;margin:0}.bubble--top{bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:var(--spacing-md)}.bubble.bubble--positioned.bubble--top,.bubble.bubble--positioned.bubble--bottom,.bubble.bubble--positioned.bubble--left,.bubble.bubble--positioned.bubble--right{inset:auto;top:var(--ch-tooltip-offset-top);left:var(--ch-tooltip-offset-left);right:auto;bottom:auto;transform:none;margin:0}.bubble--top::before{top:100%;left:0;right:0;height:var(--spacing-md)}.bubble--bottom{top:100%;left:50%;transform:translateX(-50%);margin-top:var(--spacing-md)}.bubble--bottom::before{bottom:100%;left:0;right:0;height:var(--spacing-md)}.bubble--left{right:100%;top:50%;transform:translateY(-50%);margin-right:var(--spacing-md)}.bubble--left::before{left:100%;top:0;bottom:0;width:var(--spacing-md)}.bubble--right{left:100%;top:50%;transform:translateY(-50%);margin-left:var(--spacing-md)}.bubble--right::before{right:100%;top:0;bottom:0;width:var(--spacing-md)}@media (prefers-reduced-motion: reduce){.bubble{transition:none}}`;
8400
8863
 
8401
8864
  let tooltipIds = 0;
8402
8865
  /** Space between the trigger and the bubble, matching `--spacing-md`. */
@@ -8431,6 +8894,7 @@ class ChTooltip {
8431
8894
  get el() { return getElement(this); }
8432
8895
  fallbackId = `ch-tooltip-${++tooltipIds}`;
8433
8896
  bubbleEl;
8897
+ probeEl;
8434
8898
  cleanup;
8435
8899
  /**
8436
8900
  * The side the bubble is placed on. It is a preference: when that side has no
@@ -8522,30 +8986,46 @@ class ChTooltip {
8522
8986
  * Measures the anchor and the bubble and stores the offset that keeps the
8523
8987
  * bubble inside the viewport. Nothing is measured before the bubble has a
8524
8988
  * box to measure, so the pre-paint render uses plain CSS.
8989
+ *
8990
+ * A fixed bubble is positioned against the nearest ancestor that establishes
8991
+ * a containing block (a `transform`, `filter`, `backdrop-filter`, `contain`
8992
+ * or `will-change`), not necessarily the viewport. The probe is fixed at the
8993
+ * containing block's origin, so both the anchor and the viewport are
8994
+ * converted into that same space before `placeOverlay` does its maths.
8525
8995
  */
8526
8996
  position() {
8527
8997
  if (typeof window === 'undefined') {
8528
8998
  return;
8529
8999
  }
8530
9000
  const bubble = this.bubbleEl ?? (this.bubbleEl = this.el.shadowRoot?.querySelector('.bubble') ?? undefined);
8531
- if (!bubble || bubble.offsetWidth === 0) {
9001
+ const probe = this.probeEl ?? (this.probeEl = this.el.shadowRoot?.querySelector('.probe') ?? undefined);
9002
+ if (!bubble || !probe || bubble.offsetWidth === 0) {
8532
9003
  return;
8533
9004
  }
8534
9005
  const anchorRect = this.slotted('trigger')?.getBoundingClientRect?.();
8535
9006
  if (!anchorRect) {
8536
9007
  return;
8537
9008
  }
9009
+ const probeRect = probe.getBoundingClientRect();
9010
+ const scaleX = probeRect.width || 1;
9011
+ const scaleY = probeRect.height || 1;
9012
+ const inContainingBlock = (rect) => ({
9013
+ top: (rect.top - probeRect.top) / scaleY,
9014
+ left: (rect.left - probeRect.left) / scaleX,
9015
+ width: rect.width / scaleX,
9016
+ height: rect.height / scaleY,
9017
+ });
8538
9018
  const surface = {
8539
9019
  width: bubble.offsetWidth + horizontalMargin(bubble),
8540
9020
  height: bubble.offsetHeight,
8541
9021
  };
8542
9022
  const viewport = window.visualViewport;
8543
9023
  const { placement, top, left } = placeOverlay({
8544
- anchor: { top: anchorRect.top, left: anchorRect.left, width: anchorRect.width, height: anchorRect.height },
9024
+ anchor: inContainingBlock(anchorRect),
8545
9025
  surface,
8546
- viewport: viewport
9026
+ viewport: inContainingBlock(viewport
8547
9027
  ? { top: viewport.offsetTop, left: viewport.offsetLeft, width: viewport.width, height: viewport.height }
8548
- : { top: 0, left: 0, width: window.innerWidth, height: window.innerHeight },
9028
+ : { top: 0, left: 0, width: window.innerWidth, height: window.innerHeight }),
8549
9029
  preferred: this.placement,
8550
9030
  gap: GAP,
8551
9031
  });
@@ -8571,7 +9051,7 @@ class ChTooltip {
8571
9051
  };
8572
9052
  render() {
8573
9053
  const { offset } = this;
8574
- return (hAsync(Host, { key: '676e431d0100ecc9ea688b7e37bc87e8295bb24d' }, hAsync("span", { key: '20a388681252e9c4d52e662c014efd9a198efbd7', class: "anchor" }, hAsync("slot", { key: 'a06cbe31dd04cba38ef09788359783d816fc1a5b', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '13cb5b782a7029fc82c10b9b6765de62b94b9afa', ref: el => (this.bubbleEl = el), style: {
9054
+ 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: {
8575
9055
  '--ch-tooltip-offset-top': offset ? `${offset.top}px` : null,
8576
9056
  '--ch-tooltip-offset-left': offset ? `${offset.left}px` : null,
8577
9057
  }, class: {
@@ -8579,7 +9059,7 @@ class ChTooltip {
8579
9059
  'bubble--positioned': Boolean(this.offset),
8580
9060
  [`bubble--${this.resolvedPlacement ?? this.placement}`]: true,
8581
9061
  'bubble--visible': this.visible,
8582
- } }, hAsync("slot", { key: '6610bbf299354bb3be07bb273fab3f8fd91fd254', name: "content", onSlotchange: this.associate })))));
9062
+ } }, hAsync("slot", { key: 'd11e591c095b29033db96242dbeafa4347ee4326', name: "content", onSlotchange: this.associate })))));
8583
9063
  }
8584
9064
  static get style() { return chTooltipCss(); }
8585
9065
  static get cmpMeta() { return {
@@ -8621,6 +9101,7 @@ registerComponents([
8621
9101
  ChInput,
8622
9102
  ChLink,
8623
9103
  ChModal,
9104
+ ChNumberInput,
8624
9105
  ChPageHeader,
8625
9106
  ChRadio,
8626
9107
  ChSegmentedControl,
@@ -8630,6 +9111,7 @@ registerComponents([
8630
9111
  ChStack,
8631
9112
  ChStat,
8632
9113
  ChSwitch,
9114
+ ChTable,
8633
9115
  ChTabs,
8634
9116
  ChTextarea,
8635
9117
  ChTimeline,