@devschile/chucao 2.7.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 (179) hide show
  1. package/dist/chucao/chucao.esm.js +1 -1
  2. package/dist/chucao/{p-d1e9f563.entry.js → p-01b6c7bf.entry.js} +2 -2
  3. package/dist/chucao/{p-39815ee2.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-339e3c30.entry.js → p-15d27bb7.entry.js} +2 -2
  7. package/dist/chucao/{p-afe45116.entry.js → p-1b70e3f1.entry.js} +2 -2
  8. package/dist/chucao/{p-d2077ae4.entry.js → p-1e4cd3aa.entry.js} +2 -2
  9. package/dist/chucao/{p-36c59ad1.entry.js → p-2e37c61b.entry.js} +2 -2
  10. package/dist/chucao/{p-999dba28.entry.js → p-42028c97.entry.js} +2 -2
  11. package/dist/chucao/{p-14184080.entry.js → p-472ec451.entry.js} +2 -2
  12. package/dist/chucao/{p-3f9894a4.entry.js → p-5240f5ac.entry.js} +2 -2
  13. package/dist/chucao/{p-62e762f7.entry.js → p-60e1c1df.entry.js} +2 -2
  14. package/dist/chucao/{p-e2fe7c5d.entry.js → p-7cdc71cc.entry.js} +2 -2
  15. package/dist/chucao/{p-4c8838a0.entry.js → p-8ae680a4.entry.js} +2 -2
  16. package/dist/chucao/{p-3e6614ee.entry.js → p-90284ebe.entry.js} +2 -2
  17. package/dist/chucao/{p-93f25dd5.entry.js → p-9db118d9.entry.js} +2 -2
  18. package/dist/chucao/{p-a84d4493.entry.js → p-9ebcc7be.entry.js} +2 -2
  19. package/dist/chucao/{p-507d4b69.entry.js → p-a7c674b7.entry.js} +2 -2
  20. package/dist/chucao/{p-4cda7f71.entry.js → p-c4b2bd1f.entry.js} +2 -2
  21. package/dist/chucao/{p-1852dfdb.entry.js → p-c90da3c0.entry.js} +2 -2
  22. package/dist/chucao/{p-08d90a3d.entry.js → p-d8b71751.entry.js} +2 -2
  23. package/dist/chucao/{p-10109256.entry.js → p-deb2571b.entry.js} +2 -2
  24. package/dist/chucao/{p-f17b186f.entry.js → p-e77d35c3.entry.js} +2 -2
  25. package/dist/chucao/{p-1e8d921d.entry.js → p-f6ab0a11.entry.js} +2 -2
  26. package/dist/chucao/{p-afacd489.entry.js → p-f917d34f.entry.js} +2 -2
  27. package/dist/chucao/{p-bf036509.entry.js → p-ffecdf25.entry.js} +2 -2
  28. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  29. package/dist/cjs/ch-alert_8.cjs.entry.js +7 -7
  30. package/dist/cjs/ch-checkbox.cjs.entry.js +1 -1
  31. package/dist/cjs/ch-cluster.cjs.entry.js +2 -2
  32. package/dist/cjs/ch-description-list.cjs.entry.js +1 -1
  33. package/dist/cjs/ch-divider.cjs.entry.js +1 -1
  34. package/dist/cjs/ch-drawer.cjs.entry.js +1 -1
  35. package/dist/cjs/ch-emoji.cjs.entry.js +1 -1
  36. package/dist/cjs/ch-empty-state.cjs.entry.js +1 -1
  37. package/dist/cjs/ch-grid.cjs.entry.js +1 -1
  38. package/dist/cjs/ch-icon-button.cjs.entry.js +1 -1
  39. package/dist/cjs/ch-icon.cjs.entry.js +1 -1
  40. package/dist/cjs/ch-modal.cjs.entry.js +1 -1
  41. package/dist/cjs/ch-number-input.cjs.entry.js +2 -2
  42. package/dist/cjs/ch-page-header.cjs.entry.js +1 -1
  43. package/dist/cjs/ch-radio.cjs.entry.js +1 -1
  44. package/dist/cjs/ch-segmented-control.cjs.entry.js +1 -1
  45. package/dist/cjs/ch-skeleton.cjs.entry.js +1 -1
  46. package/dist/cjs/ch-stack.cjs.entry.js +1 -1
  47. package/dist/cjs/ch-stat.cjs.entry.js +2 -2
  48. package/dist/cjs/ch-table.cjs.entry.js +1 -1
  49. package/dist/cjs/ch-tabs.cjs.entry.js +1 -1
  50. package/dist/cjs/ch-textarea.cjs.entry.js +1 -1
  51. package/dist/cjs/ch-timeline.cjs.entry.js +1 -1
  52. package/dist/cjs/ch-tooltip.cjs.entry.js +24 -7
  53. package/dist/cjs/ch-tooltip.cjs.entry.js.map +1 -1
  54. package/dist/collection/components/ch-accordion/ch-accordion.js +1 -1
  55. package/dist/collection/components/ch-alert/ch-alert.js +1 -1
  56. package/dist/collection/components/ch-badge/ch-badge.js +1 -1
  57. package/dist/collection/components/ch-card/ch-card.js +1 -1
  58. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  59. package/dist/collection/components/ch-cluster/ch-cluster.js +2 -2
  60. package/dist/collection/components/ch-description-list/ch-description-list.js +1 -1
  61. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  62. package/dist/collection/components/ch-drawer/ch-drawer.js +1 -1
  63. package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
  64. package/dist/collection/components/ch-empty-state/ch-empty-state.js +1 -1
  65. package/dist/collection/components/ch-grid/ch-grid.js +1 -1
  66. package/dist/collection/components/ch-icon/ch-icon.js +1 -1
  67. package/dist/collection/components/ch-icon-button/ch-icon-button.js +1 -1
  68. package/dist/collection/components/ch-input/ch-input.js +1 -1
  69. package/dist/collection/components/ch-modal/ch-modal.js +1 -1
  70. package/dist/collection/components/ch-number-input/ch-number-input.js +2 -2
  71. package/dist/collection/components/ch-page-header/ch-page-header.js +1 -1
  72. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  73. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +1 -1
  74. package/dist/collection/components/ch-select/ch-select.js +1 -1
  75. package/dist/collection/components/ch-skeleton/ch-skeleton.js +1 -1
  76. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  77. package/dist/collection/components/ch-stack/ch-stack.js +1 -1
  78. package/dist/collection/components/ch-stat/ch-stat.js +2 -2
  79. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  80. package/dist/collection/components/ch-table/ch-table.js +1 -1
  81. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  82. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  83. package/dist/collection/components/ch-timeline/ch-timeline.js +1 -1
  84. package/dist/collection/components/ch-tooltip/ch-tooltip.css +11 -0
  85. package/dist/collection/components/ch-tooltip/ch-tooltip.js +23 -6
  86. package/dist/collection/components/ch-tooltip/ch-tooltip.js.map +1 -1
  87. package/dist/collection/utils/overlay.js.map +1 -1
  88. package/dist/components/ch-accordion.js +1 -1
  89. package/dist/components/ch-alert.js +1 -1
  90. package/dist/components/ch-badge.js +1 -1
  91. package/dist/components/ch-button.js +1 -1
  92. package/dist/components/ch-card.js +1 -1
  93. package/dist/components/ch-checkbox.js +1 -1
  94. package/dist/components/ch-cluster.js +1 -1
  95. package/dist/components/ch-description-list.js +1 -1
  96. package/dist/components/ch-divider.js +1 -1
  97. package/dist/components/ch-drawer.js +1 -1
  98. package/dist/components/ch-emoji.js +1 -1
  99. package/dist/components/ch-empty-state.js +1 -1
  100. package/dist/components/ch-grid.js +1 -1
  101. package/dist/components/ch-icon-button.js +1 -1
  102. package/dist/components/ch-icon.js +1 -1
  103. package/dist/components/ch-input.js +1 -1
  104. package/dist/components/ch-modal.js +1 -1
  105. package/dist/components/ch-number-input.js +1 -1
  106. package/dist/components/ch-page-header.js +1 -1
  107. package/dist/components/ch-radio.js +1 -1
  108. package/dist/components/ch-segmented-control.js +1 -1
  109. package/dist/components/ch-select.js +1 -1
  110. package/dist/components/ch-skeleton.js +1 -1
  111. package/dist/components/ch-spinner.js +1 -1
  112. package/dist/components/ch-stack.js +1 -1
  113. package/dist/components/ch-stat.js +1 -1
  114. package/dist/components/ch-switch.js +1 -1
  115. package/dist/components/ch-table.js +1 -1
  116. package/dist/components/ch-tabs.js +1 -1
  117. package/dist/components/ch-textarea.js +1 -1
  118. package/dist/components/ch-timeline.js +1 -1
  119. package/dist/components/ch-tooltip.js +1 -1
  120. package/dist/components/ch-tooltip.js.map +1 -1
  121. package/dist/components/{p-CuczWSQU.js → p-DiUN1WGc.js} +2 -2
  122. package/dist/esm/ch-accordion.entry.js +1 -1
  123. package/dist/esm/ch-alert_8.entry.js +7 -7
  124. package/dist/esm/ch-checkbox.entry.js +1 -1
  125. package/dist/esm/ch-cluster.entry.js +2 -2
  126. package/dist/esm/ch-description-list.entry.js +1 -1
  127. package/dist/esm/ch-divider.entry.js +1 -1
  128. package/dist/esm/ch-drawer.entry.js +1 -1
  129. package/dist/esm/ch-emoji.entry.js +1 -1
  130. package/dist/esm/ch-empty-state.entry.js +1 -1
  131. package/dist/esm/ch-grid.entry.js +1 -1
  132. package/dist/esm/ch-icon-button.entry.js +1 -1
  133. package/dist/esm/ch-icon.entry.js +1 -1
  134. package/dist/esm/ch-modal.entry.js +1 -1
  135. package/dist/esm/ch-number-input.entry.js +2 -2
  136. package/dist/esm/ch-page-header.entry.js +1 -1
  137. package/dist/esm/ch-radio.entry.js +1 -1
  138. package/dist/esm/ch-segmented-control.entry.js +1 -1
  139. package/dist/esm/ch-skeleton.entry.js +1 -1
  140. package/dist/esm/ch-stack.entry.js +1 -1
  141. package/dist/esm/ch-stat.entry.js +2 -2
  142. package/dist/esm/ch-table.entry.js +1 -1
  143. package/dist/esm/ch-tabs.entry.js +1 -1
  144. package/dist/esm/ch-textarea.entry.js +1 -1
  145. package/dist/esm/ch-timeline.entry.js +1 -1
  146. package/dist/esm/ch-tooltip.entry.js +24 -7
  147. package/dist/esm/ch-tooltip.entry.js.map +1 -1
  148. package/dist/types/components/ch-tooltip/ch-tooltip.d.ts +7 -0
  149. package/dist/types/utils/overlay.d.ts +1 -1
  150. package/hydrate/index.js +57 -40
  151. package/hydrate/index.mjs +57 -40
  152. package/package.json +1 -1
  153. package/dist/chucao/p-5c253fa0.entry.js +0 -2
  154. package/dist/chucao/p-5c253fa0.entry.js.map +0 -1
  155. /package/dist/chucao/{p-d1e9f563.entry.js.map → p-01b6c7bf.entry.js.map} +0 -0
  156. /package/dist/chucao/{p-39815ee2.entry.js.map → p-0c7f6f8d.entry.js.map} +0 -0
  157. /package/dist/chucao/{p-339e3c30.entry.js.map → p-15d27bb7.entry.js.map} +0 -0
  158. /package/dist/chucao/{p-afe45116.entry.js.map → p-1b70e3f1.entry.js.map} +0 -0
  159. /package/dist/chucao/{p-d2077ae4.entry.js.map → p-1e4cd3aa.entry.js.map} +0 -0
  160. /package/dist/chucao/{p-36c59ad1.entry.js.map → p-2e37c61b.entry.js.map} +0 -0
  161. /package/dist/chucao/{p-999dba28.entry.js.map → p-42028c97.entry.js.map} +0 -0
  162. /package/dist/chucao/{p-14184080.entry.js.map → p-472ec451.entry.js.map} +0 -0
  163. /package/dist/chucao/{p-3f9894a4.entry.js.map → p-5240f5ac.entry.js.map} +0 -0
  164. /package/dist/chucao/{p-62e762f7.entry.js.map → p-60e1c1df.entry.js.map} +0 -0
  165. /package/dist/chucao/{p-e2fe7c5d.entry.js.map → p-7cdc71cc.entry.js.map} +0 -0
  166. /package/dist/chucao/{p-4c8838a0.entry.js.map → p-8ae680a4.entry.js.map} +0 -0
  167. /package/dist/chucao/{p-3e6614ee.entry.js.map → p-90284ebe.entry.js.map} +0 -0
  168. /package/dist/chucao/{p-93f25dd5.entry.js.map → p-9db118d9.entry.js.map} +0 -0
  169. /package/dist/chucao/{p-a84d4493.entry.js.map → p-9ebcc7be.entry.js.map} +0 -0
  170. /package/dist/chucao/{p-507d4b69.entry.js.map → p-a7c674b7.entry.js.map} +0 -0
  171. /package/dist/chucao/{p-4cda7f71.entry.js.map → p-c4b2bd1f.entry.js.map} +0 -0
  172. /package/dist/chucao/{p-1852dfdb.entry.js.map → p-c90da3c0.entry.js.map} +0 -0
  173. /package/dist/chucao/{p-08d90a3d.entry.js.map → p-d8b71751.entry.js.map} +0 -0
  174. /package/dist/chucao/{p-10109256.entry.js.map → p-deb2571b.entry.js.map} +0 -0
  175. /package/dist/chucao/{p-f17b186f.entry.js.map → p-e77d35c3.entry.js.map} +0 -0
  176. /package/dist/chucao/{p-1e8d921d.entry.js.map → p-f6ab0a11.entry.js.map} +0 -0
  177. /package/dist/chucao/{p-afacd489.entry.js.map → p-f917d34f.entry.js.map} +0 -0
  178. /package/dist/chucao/{p-bf036509.entry.js.map → p-ffecdf25.entry.js.map} +0 -0
  179. /package/dist/components/{p-CuczWSQU.js.map → p-DiUN1WGc.js.map} +0 -0
package/hydrate/index.mjs CHANGED
@@ -5498,7 +5498,7 @@ class ChAccordion {
5498
5498
  this.chChange.emit(this.value);
5499
5499
  };
5500
5500
  render() {
5501
- return (hAsync(Host, { key: '409acc858675f8586e07dd3739b3998bb0bd1b5c' }, this.items.map(item => {
5501
+ return (hAsync(Host, { key: 'f147314134464f7455ac179fad62c1b9318efc92' }, this.items.map(item => {
5502
5502
  const open = this.value === item.value;
5503
5503
  return (hAsync("div", { key: item.value, class: { 'item': true, 'item--open': open } }, hAsync("h3", { class: "item-head" }, hAsync("button", { type: "button", class: "item-toggle", id: this.headerId(item.value), "data-value": item.value, "aria-expanded": open ? 'true' : 'false', "aria-controls": this.panelId(item.value), disabled: item.disabled, onClick: () => this.toggle(item.value) }, item.title)), hAsync("div", { class: "item-panel", id: this.panelId(item.value), role: "region", "aria-labelledby": this.headerId(item.value), hidden: !open }, hAsync("slot", { name: `panel-${item.value}` }))));
5504
5504
  })));
@@ -5661,7 +5661,7 @@ class ChAlert {
5661
5661
  render() {
5662
5662
  const role = this.variant === 'warning' ? 'alert' : 'status';
5663
5663
  const shapes = this.statusCue ? chIcons[VARIANT_ICON[this.variant]] : undefined;
5664
- return (hAsync(Host, { key: '215aabbfa3003e3e7535272c08944260f1a9632d' }, hAsync("div", { key: role, class: { alert: true, [`alert--${this.variant}`]: true }, role: role }, shapes && (hAsync("svg", { key: '0ce82e3f75057178968440f52d9227b822c56c00', 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: 'ddaa7c828c61f95a1a341b73b13f676678f5df90', class: "alert-content" }, hAsync("slot", { key: 'd3ec8f34fee0a58acbccfd8b62ccb316db3fa80b' })), this.dismissLabel && (hAsync("button", { key: '1e8b52b8149cfa788253797c16a86b087430878e', class: "alert-dismiss", type: "button", "aria-label": this.dismissLabel, onClick: this.handleDismiss }, hAsync("span", { key: '5dfed25295ef86ca384d7f4bfd0d5c555274728c', "aria-hidden": "true" }, "\u00D7"))))));
5664
+ return (hAsync(Host, { key: 'a223f49acce9b1336d1791c547be15e76e6fd740' }, hAsync("div", { key: role, class: { alert: true, [`alert--${this.variant}`]: true }, role: role }, shapes && (hAsync("svg", { key: 'd14bf776a7c2c570203d4785c51a7e2e2110a837', class: "alert-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, shapes.map(shape => hAsync(shape.tag, shape.attrs)))), hAsync("div", { key: 'be4eb0acb06ba3b95eae29a08911f4e3a76a5998', class: "alert-content" }, hAsync("slot", { key: '1ebb312baa833210658003113d6aee562a05cb50' })), this.dismissLabel && (hAsync("button", { key: '388986c78e41cf66e74071a27c0ffa9a146fcacb', class: "alert-dismiss", type: "button", "aria-label": this.dismissLabel, onClick: this.handleDismiss }, hAsync("span", { key: '24c24edbee8549bb64a6e9dcc381ebdae8d5d72d', "aria-hidden": "true" }, "\u00D7"))))));
5665
5665
  }
5666
5666
  static get style() { return chAlertCss(); }
5667
5667
  static get cmpMeta() { return {
@@ -5703,7 +5703,7 @@ class ChBadge {
5703
5703
  */
5704
5704
  statusCue = true;
5705
5705
  render() {
5706
- return (hAsync(Host, { key: 'c6e468054822e210a4067d1c651f7602ff14fb43' }, hAsync("span", { key: '1615a33a2ca7ace0570e6710038be8cb9f29825a', class: { badge: true, [`badge--${this.variant}`]: true } }, this.statusCue && hAsync("span", { key: '20e222901097dffb6da270da17510851160a7553', class: "badge-dot", "aria-hidden": "true" }), hAsync("slot", { key: '28d66fa8367ec3b3106c51af50bc8db15561bb6e' }))));
5706
+ return (hAsync(Host, { key: '8d92a45ab1f2932deb6a316d20e3aecd59d35498' }, hAsync("span", { key: '16e499ffe26d47e2da057fd49fa214fba0dc9277', class: { badge: true, [`badge--${this.variant}`]: true } }, this.statusCue && hAsync("span", { key: '040dbe5203403812ed98f84b03029ae38071f533', class: "badge-dot", "aria-hidden": "true" }), hAsync("slot", { key: '89c1c35f937bc141bad71a9bee0f76d8b2d28666' }))));
5707
5707
  }
5708
5708
  static get style() { return chBadgeCss(); }
5709
5709
  static get cmpMeta() { return {
@@ -5834,7 +5834,7 @@ class ChCard {
5834
5834
  registerInstance(this, hostRef);
5835
5835
  }
5836
5836
  render() {
5837
- return (hAsync(Host, { key: 'c9ba0279cf4abcd7d4080f73686fbdf6eb74346d' }, hAsync("div", { key: 'c246fe28baabad8b8692d981f397f206fbaeef87', class: "card" }, hAsync("slot", { key: '30065c0b9b12c071b937d37d6b18c6727569f108' }))));
5837
+ return (hAsync(Host, { key: '2857d45b454709a8285fd52dbaa0943d571908b1' }, hAsync("div", { key: 'a252222f7d25a697b4d6e8cd240564668a908652', class: "card" }, hAsync("slot", { key: '4cadc2ad7fdbb2141d2a77bc19d5e6344e574b7a' }))));
5838
5838
  }
5839
5839
  static get style() { return chCardCss(); }
5840
5840
  static get cmpMeta() { return {
@@ -5975,7 +5975,7 @@ class ChCheckbox {
5975
5975
  return undefined;
5976
5976
  }
5977
5977
  render() {
5978
- return (hAsync(Host, { key: 'b3f66a5f7c7a9325cf85e6ee80b0893d520201a4' }, hAsync("label", { key: '2362a243af367f8d0c286ef910fb4f7814a1ca4e', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: 'c2ebaf6a15259caa4bac3d104507137be815ed11', 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: '60e9393b8d0a4abaa1dcdad11c94607c91bd3b40', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '041cfba5bfdf5924cabfdf375905d99755959fcd', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'c72207cfdf83d419804c7e969aaa35d70fc3fddf', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5978
+ return (hAsync(Host, { key: 'b3ea4a0cfad08ea8c00ac1fbdb54f130a76943b4' }, hAsync("label", { key: '7e1736c41138ab6b73ee30590f290768feb786a1', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: '1d70b3936da371de75a931e3033f08ed05b62101', id: this.checkboxId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), this.label && hAsync("span", { key: '581b62c2a907bc9634d8c137f2539e47c90f79e1', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '51ea863dd984d90fdf70a6f6d8dabdffa92d7340', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '561ef3469af4bbf8f4eef568a0372f78618c047b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5979
5979
  }
5980
5980
  static get formAssociated() { return true; }
5981
5981
  static get watchers() { return {
@@ -6046,13 +6046,13 @@ class ChCluster {
6046
6046
  return GAPS$2.has(this.gap) ? this.gap : 'md';
6047
6047
  }
6048
6048
  render() {
6049
- return (hAsync(Host, { key: '9eee9c08a5e08f27cfcd401a0e70d6b97a426206', class: {
6049
+ return (hAsync(Host, { key: '63f10662f55078a9aec2680653c040c8411cd80f', class: {
6050
6050
  'cluster': true,
6051
6051
  [`cluster--gap-${this.gapStep}`]: true,
6052
6052
  [`cluster--align-${this.align}`]: true,
6053
6053
  [`cluster--justify-${this.justify}`]: true,
6054
6054
  'cluster--nowrap': !this.wrap,
6055
- } }, hAsync("slot", { key: '47fc7945bc64d427f7e7a274e26a20d7f85f9b78' })));
6055
+ } }, hAsync("slot", { key: '60f9896089d707fe0ef1980dcb9115bcf3308a2f' })));
6056
6056
  }
6057
6057
  static get style() { return chClusterCss(); }
6058
6058
  static get cmpMeta() { return {
@@ -6106,7 +6106,7 @@ class ChDescriptionList {
6106
6106
  return COLUMNS.has(this.columns) ? this.columns : '1';
6107
6107
  }
6108
6108
  render() {
6109
- return (hAsync(Host, { key: 'e08da698cbef6acf5a98d69687ea3da1cc766320' }, hAsync("dl", { key: '6c9f4d7eb2ccaa978e60990e4fb0ba7154ac4bcd', class: `list list--columns-${this.columnCount}` }, hAsync("slot", { key: '6a7e8db498e40ef6aab6f8b350feed5474d5c970' }))));
6109
+ return (hAsync(Host, { key: '2f349aa14dc442e4e531dacc2d9f6b02fc2b141a' }, hAsync("dl", { key: 'de4bf1b60c31f0319bc5e169304134c8e0046912', class: `list list--columns-${this.columnCount}` }, hAsync("slot", { key: '4ef568fa3e64048ba6e586ae9e8d10c21ad326aa' }))));
6110
6110
  }
6111
6111
  static get style() { return chDescriptionListCss(); }
6112
6112
  static get cmpMeta() { return {
@@ -6132,7 +6132,7 @@ class ChDivider {
6132
6132
  */
6133
6133
  orientation = 'horizontal';
6134
6134
  render() {
6135
- return (hAsync(Host, { key: '8bc2b7f15c104c6dc88ebaa01c557325795ebf4d', class: { 'divider--vertical': this.orientation === 'vertical' } }, hAsync("hr", { key: '6762a8fe2524d3192b02e96f4791b597a952d18e', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
6135
+ return (hAsync(Host, { key: '0ae19c8f91c810836781f7dac098b49b99c01389', class: { 'divider--vertical': this.orientation === 'vertical' } }, hAsync("hr", { key: 'f5b782f7d67da28ec659fceef32ebf0f4d8ca521', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
6136
6136
  }
6137
6137
  static get style() { return chDividerCss(); }
6138
6138
  static get cmpMeta() { return {
@@ -6337,7 +6337,7 @@ class ChDrawer {
6337
6337
  this.chClose.emit();
6338
6338
  };
6339
6339
  render() {
6340
- return (hAsync(Host, { key: '87ead2b210d5dd9b3ec17900e084e7a9d2dc98a1' }, hAsync("dialog", { key: '539b008877dce5e7f22375954102e6177e9462be', class: { drawer: true, [`drawer--${this.side}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '86c8d8fd3ba465eff81cdac6ade6b99e72bfed7c', class: "drawer-head" }, hAsync("slot", { key: '3d14acad851e5422a948c9006531738febe9f38d', name: "header" }), this.closeLabel && (hAsync("button", { key: 'b7a6552923571793cc341efa04f2c0eeafb072ba', class: "drawer-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: 'ce0b9ee5e3b3e44047caa2c013f6b82f3614fc58', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'e8bd2b75ba66dcacdedcdfafded14a0978d8df4a', class: "drawer-body" }, hAsync("slot", { key: 'f9f8c836e1c26254e1595dd21b344bd3ef2f8e29' })), hAsync("slot", { key: '8e30ab7cb6926e93c577ec4a04211ae02550e5d4', name: "footer" }))));
6340
+ return (hAsync(Host, { key: '871af03f0944e4272be64c1452cc28a0a39ac0f2' }, hAsync("dialog", { key: '540da9d2bff68d5528e65146b2a049adbc9723c2', class: { drawer: true, [`drawer--${this.side}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: 'de569a4d239dd5e2bf6b2741b77307eb70ddced1', class: "drawer-head" }, hAsync("slot", { key: 'e28ade42e0835a919aa5447dafbbbfff2de903d7', name: "header" }), this.closeLabel && (hAsync("button", { key: '5cf29d8b791652fce663459f479826564637d6ca', class: "drawer-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: '06a24d8b140db10b9d543530ea5dfbd8dd991019', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'b593bac5fb45234d501d3ec540f00d804ae5e066', class: "drawer-body" }, hAsync("slot", { key: '854cb053b30234aa31d59fcf27bb7d2820311eb3' })), hAsync("slot", { key: '5c1fb51d3636af1762b26d72f5eaa79c5f779a60', name: "footer" }))));
6341
6341
  }
6342
6342
  static get watchers() { return {
6343
6343
  "open": [{
@@ -6449,7 +6449,7 @@ class ChEmoji {
6449
6449
  this.loaded = true;
6450
6450
  };
6451
6451
  render() {
6452
- return (hAsync(Host, { key: '88ac5a90f1f650e0c7df247e6b6361037d85485f' }, hAsync("img", { key: '1d93a9f59ec3a5cc7ad608e768877541060f5922', class: {
6452
+ return (hAsync(Host, { key: '8444f71f1c84fd8b1940503c5e7bf5ff62bbb9e6' }, hAsync("img", { key: 'ce9c083238c87557f71838ab8de50038fc43a2bd', class: {
6453
6453
  'emoji': true,
6454
6454
  [`emoji--${this.size}`]: true,
6455
6455
  'emoji--hidden': !this.loaded,
@@ -6505,7 +6505,7 @@ class ChEmptyState {
6505
6505
  */
6506
6506
  size = 'md';
6507
6507
  render() {
6508
- return (hAsync(Host, { key: '00235d393cf4086251c30e285cf2d3c23ebf41e4', class: { 'empty-state': true, [`empty-state--${this.size}`]: true } }, hAsync("div", { key: '93f62b2d9617b3367bed602bd6ce01d93db488fb', class: "empty-state__inner" }, hAsync("div", { key: '96c0e1b38ca99006735218882722bc2b58c445fd', class: "empty-state__icon", "aria-hidden": "true" }, hAsync("slot", { key: 'ed2e900c26b3d0dabf8934460f4b98d52825f150', name: "icon" })), hAsync("h3", { key: '2dd318bdd5f7ac7b75789ec5f5652fd11329ed91', class: "empty-state__title" }, this.title), this.description && hAsync("p", { key: '28627d2e576f1e8adcd876d3043bc77e8a1e780b', class: "empty-state__description" }, this.description), hAsync("div", { key: 'eaaefb702ba1985f794cb9c231f038eab420bc7f', class: "empty-state__actions" }, hAsync("slot", { key: '5869c9a6e1c61492f58c96580dd36ce976855e8c' })))));
6508
+ return (hAsync(Host, { key: '8ed0e4e1712c415ccc38050011af09c778a6bb48', class: { 'empty-state': true, [`empty-state--${this.size}`]: true } }, hAsync("div", { key: '63a6dd1e1678c48da81af7e89dc90fd2288fdbfa', class: "empty-state__inner" }, hAsync("div", { key: '3753c28a9268eff9ebb936f3b8f9d4257e63ca41', class: "empty-state__icon", "aria-hidden": "true" }, hAsync("slot", { key: 'abc7a5a2b84d7d4d5be3cd5dcfa3da217e480a4f', name: "icon" })), hAsync("h3", { key: 'c6be0381802f307f35ea81a58fe8571d0799b97a', class: "empty-state__title" }, this.title), this.description && hAsync("p", { key: 'e8c953d3ed017ed9fd06c572a7d601217be317e3', class: "empty-state__description" }, this.description), hAsync("div", { key: 'da062b6ceabc34cced61ed900f09025a83f401f4', class: "empty-state__actions" }, hAsync("slot", { key: '18930706af315dfbb2da7a492c79d3a468be3574' })))));
6509
6509
  }
6510
6510
  static get style() { return chEmptyStateCss(); }
6511
6511
  static get cmpMeta() { return {
@@ -6576,7 +6576,7 @@ class ChGrid {
6576
6576
  this.el.style.setProperty('--ch-grid-columns', template);
6577
6577
  }
6578
6578
  render() {
6579
- return (hAsync(Host, { key: '060fe33c2c61fc933295ac172f19e6e89ad47958', class: { grid: true, [`grid--gap-${this.gapStep}`]: true } }, hAsync("slot", { key: '8c0f3890d7463c6fd0b8862538667d9893c87b09' })));
6579
+ return (hAsync(Host, { key: 'de6c2d15da9a5d735327df077c6b58abe9775267', class: { grid: true, [`grid--gap-${this.gapStep}`]: true } }, hAsync("slot", { key: '348289bcf2f46fb07e7392afa00c4619d6614fef' })));
6580
6580
  }
6581
6581
  static get style() { return chGridCss(); }
6582
6582
  static get cmpMeta() { return {
@@ -6626,7 +6626,7 @@ class ChIcon {
6626
6626
  render() {
6627
6627
  const shapes = this.name ? chIcons[this.name] : undefined;
6628
6628
  const decorative = !this.label;
6629
- return (hAsync(Host, { key: 'b91921c5334e7e5ba853cff9c9b05d5f27905524' }, hAsync("svg", { key: '581a85e4069a1068e0fa2e1842d2a7bdae5c5be6', 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)))));
6629
+ return (hAsync(Host, { key: 'f45fcd8a7f620f12942e3c1dd1c68a16009905ad' }, hAsync("svg", { key: 'c529a79b5ae690200fa0f66aa7eb482e26409ed5', class: `icon icon--${this.size}`, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", role: decorative ? undefined : 'img', "aria-label": this.label, "aria-hidden": decorative ? 'true' : undefined, focusable: "false" }, (shapes ?? []).map(shape => hAsync(shape.tag, shape.attrs)))));
6630
6630
  }
6631
6631
  static get style() { return chIconCss(); }
6632
6632
  static get cmpMeta() { return {
@@ -6689,7 +6689,7 @@ class ChIconButton {
6689
6689
  };
6690
6690
  render() {
6691
6691
  const shapes = this.name ? chIcons[this.name] : undefined;
6692
- return (hAsync(Host, { key: 'ed86ae858a19fc388e334400f0ffa9739fdbd8ba' }, hAsync("button", { key: '63dcbdf55394f1827281bc1fbc675c64ed3a85b8', 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: 'ebf21312e93919ebc30ac5fc312100ce8cbb7e43', 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))))));
6692
+ return (hAsync(Host, { key: 'cdef3ba2a7577cb7119aa943138746905de21dbb' }, hAsync("button", { key: '2b3afb472d1483b84927a47e997d1f44665f5c62', class: `button button--${this.size}`, type: this.type, "aria-label": this.label, "aria-busy": this.loading ? 'true' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleClick }, hAsync("svg", { key: 'cdbe7d1bcb75b9a3bc9c6613a5baf3a7421b20d9', class: "icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, (shapes ?? []).map(shape => hAsync(shape.tag, shape.attrs))))));
6693
6693
  }
6694
6694
  static get style() { return chIconButtonCss(); }
6695
6695
  static get cmpMeta() { return {
@@ -6830,7 +6830,7 @@ class ChInput {
6830
6830
  return undefined;
6831
6831
  }
6832
6832
  render() {
6833
- return (hAsync(Host, { key: '33e649d73a3233e1f19866e5bbee6e78e0f63fcf' }, this.label && (hAsync("label", { key: 'e35c7617156783fced56f18ddd9b24522ed78fe3', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'af076d87c628d2ddc84d4ce50a1430f226c973c3', 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: '2df68defbac2414f4411ef26f9eb4ee739c7cae4', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '4afb9a049ff1363e1ac5fa9134816e1445556288', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6833
+ return (hAsync(Host, { key: '2b6755db381eeecb5c7c15730f351b5a28b2f89a' }, this.label && (hAsync("label", { key: 'a4c4be2f9ca0dddc175597a12d2e48c3a5030131', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'b080e37229425a745588d6080bab48cf62be8aa8', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.invalid }, type: this.type, name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '857edf91f7b9657b34763fa06bae3d57e07d861c', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '4516a30cd0d40e3b9e53430416934497c92b1f88', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6834
6834
  }
6835
6835
  static get formAssociated() { return true; }
6836
6836
  static get watchers() { return {
@@ -7079,7 +7079,7 @@ class ChModal {
7079
7079
  this.chClose.emit();
7080
7080
  };
7081
7081
  render() {
7082
- return (hAsync(Host, { key: '4d8733c2a7d61db0dc5b6635d378ba224c341c0d' }, hAsync("dialog", { key: '102ca6d6c20316cac02efeabf0998595b79aa250', class: { modal: true, [`modal--${this.size}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '4af292f332b096338d0b7a1f454c04c253b834cd', class: "modal-head" }, hAsync("slot", { key: '68231f103d25ec8a00e417df6fe87ce3605ca87d', name: "heading" }), this.closeLabel && (hAsync("button", { key: 'd1cd454130253a5dac856fcbb714c5e11a3e6647', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: '580d4b6258cdc60b326cf6617ad23d91280c6ef3', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'ab24f91acfd00b56ca6c2413517dd4e29a1d2090', class: "modal-body" }, hAsync("slot", { key: '0b68a633776daef2df48b54ca79842ae37ce13dc' })))));
7082
+ return (hAsync(Host, { key: 'b0fced593159cc6e6952831f9460cce1efd532d4' }, hAsync("dialog", { key: '81180fe5cdd62df43f5aa35a8358b4e86cc8dc40', class: { modal: true, [`modal--${this.size}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '4c13adb1131ee26978f607b86e7eb8a9e65ce3a7', class: "modal-head" }, hAsync("slot", { key: '4cb35bd7f0c290ef0c7aec5df60a839f8c383e66', name: "heading" }), this.closeLabel && (hAsync("button", { key: 'f967cf89873760e1156081a77402d12252cbc20d', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: '719e26b74726be28f50587dca769c257db3ecdec', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'b6a44ef698e580031aa9efa5b5a177c9c1218488', class: "modal-body" }, hAsync("slot", { key: '27c107491182196ee3ea3aa8d6746da0a9be40a6' })))));
7083
7083
  }
7084
7084
  static get watchers() { return {
7085
7085
  "open": [{
@@ -7320,10 +7320,10 @@ class ChNumberInput {
7320
7320
  }
7321
7321
  render() {
7322
7322
  const showError = this.isInvalid && this.errorMessage;
7323
- return (hAsync(Host, { key: 'a61b148b9757e3fbaaca45df64f7e840b695ae6c' }, this.label && (hAsync("label", { key: '1d815643dd57d6cbd9275d1c4be6387361827a6c', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: '441d257935b935c8ce59598f16e71488458d5819', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid },
7323
+ return (hAsync(Host, { key: '1c424d9d76ec39e6cc6018d6ba483f95bd203d32' }, this.label && (hAsync("label", { key: '4fc03334128c33cc425da773df063cd99fee215c', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'ece15737f83c181d615e906aba5cce80c0bcb8ba', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.isInvalid },
7324
7324
  // `text` with `inputmode`, not `type="number"`: a number input drops
7325
7325
  // partial values and cannot show grouped digits.
7326
- type: "text", inputMode: this.decimals ? 'decimal' : 'numeric', name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.typing ? this.draft : this.formatDisplay(this.value), "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur }), this.hint && !showError && (hAsync("p", { key: 'a1481e1135cc7ac8925b7d8e570672e86537b1e6', class: "hint", id: this.hintId }, this.hint)), showError && (hAsync("p", { key: '26f31f1a68428e42a0037b11b7023a5905586e0f', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7326
+ type: "text", inputMode: this.decimals ? 'decimal' : 'numeric', name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.typing ? this.draft : this.formatDisplay(this.value), "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur }), this.hint && !showError && (hAsync("p", { key: '7a2e3031b8bfebf26857dd60eb18340f21a01f3d', class: "hint", id: this.hintId }, this.hint)), showError && (hAsync("p", { key: 'f90492532d27088f18b258f885d5d471f31d27cb', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7327
7327
  }
7328
7328
  static get formAssociated() { return true; }
7329
7329
  static get watchers() { return {
@@ -7414,7 +7414,7 @@ class ChPageHeader {
7414
7414
  actionsStacked = false;
7415
7415
  render() {
7416
7416
  const Heading = this.headingLevel;
7417
- return (hAsync(Host, { key: '95acf13910ba80c07da4c1e5f983066491d75dd7' }, hAsync("div", { key: '9e12b0ca4c51b93857d45574fd6c0e0cfabd94d6', class: { 'header': true, 'header--stacked': this.actionsStacked } }, hAsync("div", { key: '0904ccd420f2d8c0e1023fe732a7fb9c3075f546', class: "header-text" }, this.eyebrow && hAsync("p", { key: '54d4e59f866fcf0f6733a5a71fe261c06b7dfe86', class: "header-eyebrow" }, this.eyebrow), hAsync(Heading, { key: '1da9cde092fad2d3e2aa33c2f81d1f72bc753cfd', class: "header-title" }, this.title), this.description && hAsync("p", { key: 'e5482b1f89f9835d6b05bbd761d88f41aef32f3a', class: "header-description" }, this.description)), hAsync("div", { key: '43796222f50d5efcaf73fe3bb7721fbc090e91d7', class: "header-actions" }, hAsync("slot", { key: '50f0bd9a2f8624d1182e3d7728ae16dacc221949', name: "actions" })))));
7417
+ return (hAsync(Host, { key: '3d8de76e3df7fba8be55d0708861c7d136b05722' }, hAsync("div", { key: '057d2b4359b9faff34b9fbf6886b04d5d89dc9ac', class: { 'header': true, 'header--stacked': this.actionsStacked } }, hAsync("div", { key: '1ff40b1cd100d41a72d80ab35e619f93b4a43633', class: "header-text" }, this.eyebrow && hAsync("p", { key: '6c2538bf1d450a6dca25fd2815968a9622f7fcbf', class: "header-eyebrow" }, this.eyebrow), hAsync(Heading, { key: '54cdf8e62468e11cf9fe084023e4fe624f958452', class: "header-title" }, this.title), this.description && hAsync("p", { key: 'fe9c6cc78354b38b8833871ddc53d412007abe29', class: "header-description" }, this.description)), hAsync("div", { key: 'e91a66715e2c23478c375ce9ddcf29c04f85b3eb', class: "header-actions" }, hAsync("slot", { key: '06654c2a28d004791ed5b9c213cd66ef80bbcc85', name: "actions" })))));
7418
7418
  }
7419
7419
  static get style() { return chPageHeaderCss(); }
7420
7420
  static get cmpMeta() { return {
@@ -7544,7 +7544,7 @@ class ChRadio {
7544
7544
  }
7545
7545
  render() {
7546
7546
  const groupName = this.name || `${this.groupId}-group`;
7547
- return (hAsync(Host, { key: 'a545f7161f0072fdb40506f189c7f65743ba803d' }, this.label && (hAsync("span", { key: '6e06f9daaebe97dc67625867a5106bfa6a098c7f', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: '10c8ef5b2a9c55a29088008e7673fef14de0e9b7', 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: '5fccaaf47a325853227e92e4955401a45926f990', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'c882e47610464b54bbf5b5d73d809637ab0723f8', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7547
+ return (hAsync(Host, { key: 'a027da2d803a6e8a2a35afa1920dd3b0f8e06b01' }, this.label && (hAsync("span", { key: '28e11cd1148a89a4f3e85d331f00e39f1d7751ce', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: '43d8a53c9bec1dc129b6588c0118ebe2109b4b7e', class: "radio-group", role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (hAsync("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, hAsync("input", { class: { 'input': true, 'input--invalid': this.invalid }, type: "radio", name: groupName, value: option.value, checked: option.value === this.value, disabled: this.disabled || this.formDisabled || option.disabled, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), hAsync("span", { class: "mark" }), hAsync("span", { class: "label-text" }, option.label))))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '27335cc50f8b280f93857eea370aa37e2290b46b', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '83f93bdc0739961136062acb784a3d6e666de349', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7548
7548
  }
7549
7549
  static get formAssociated() { return true; }
7550
7550
  static get watchers() { return {
@@ -7688,7 +7688,7 @@ class ChSegmentedControl {
7688
7688
  }
7689
7689
  render() {
7690
7690
  const groupName = this.name || `${this.groupId}-group`;
7691
- return (hAsync(Host, { key: '6cc9d109e7d115767b7aa9425189e14910368f7a' }, this.label && (hAsync("span", { key: '36130e74137c8ded23fa3abbcd5b3ca2dca500b6', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: '4fe09a3d88ffbee7a9d239683250d3b1aa163827', 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)))))));
7691
+ return (hAsync(Host, { key: '59e0782a5c120cd243bbd67eb727ba1a7755d45f' }, this.label && (hAsync("span", { key: 'f1faf9b240224e4c2b10059ed7bf667e24e5997d', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: 'b9e59c0fbd4af04ad4d079415497440ec0a60801', class: { segmented: true, [`segmented--${this.size}`]: true }, role: "radiogroup", "aria-labelledby": this.label ? this.labelId : undefined }, this.options.map(option => (hAsync("label", { class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled || option.disabled } }, hAsync("input", { class: "input", type: "radio", name: groupName, value: option.value, checked: option.value === this.value, disabled: this.disabled || this.formDisabled || option.disabled, onChange: this.handleChange }), hAsync("span", { class: "label-text" }, option.label)))))));
7692
7692
  }
7693
7693
  static get formAssociated() { return true; }
7694
7694
  static get watchers() { return {
@@ -7831,7 +7831,7 @@ class ChSelect {
7831
7831
  return undefined;
7832
7832
  }
7833
7833
  render() {
7834
- return (hAsync(Host, { key: '5cfba4a4ff65210d997afeb0150dd60d240c4b5c' }, this.label && (hAsync("label", { key: '0c1947f49fff348f7eb9481f23f159c1a3cff9a4', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: 'b891f00e59457e3dbe13a13b5bfbf7668e1a7f5f', 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: 'a8d3c97efe95afaca8e8c50875d1ee87dce7a84f', 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: '270691d2ecb48516d6a67e682a847405caf62b96', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '8c446716bac87325dedec28176acfa72d435579c', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7834
+ return (hAsync(Host, { key: 'f57fbcbfaaf64a9cbf1f201edd2f9f714db9afee' }, this.label && (hAsync("label", { key: 'e7a4a802ff85cd597e5bdb9a54858e3cbbbcf73b', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: '5d70a598757d9440d90351e8639a876388b5f7a7', id: this.label ? this.selectId : undefined, class: { 'select': true, 'select--invalid': this.invalid }, name: this.name, disabled: this.disabled || this.formDisabled, required: this.required, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }, this.placeholder && (hAsync("option", { key: '9a002af8f52ab2bb2d2c762417cad071b7dd06c7', value: "", disabled: true, hidden: true, selected: !this.value }, this.placeholder)), this.options.map(option => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label)))), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '0224ab6e0a54b925e0754c43bb15ceaab84c34a4', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '1624ae9938d47971ee8195f986c45454dad7f846', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7835
7835
  }
7836
7836
  static get formAssociated() { return true; }
7837
7837
  static get watchers() { return {
@@ -7924,7 +7924,7 @@ class ChSkeleton {
7924
7924
  return { width: this.width, height: this.height };
7925
7925
  }
7926
7926
  render() {
7927
- return (hAsync(Host, { key: 'ce24b967d8867d59071af91d3768d1732e68ec55', "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) })))));
7927
+ return (hAsync(Host, { key: 'b28cd1be6da1721ff6b93ed1e4bab119ea066ad4', "aria-hidden": "true", class: { 'skeleton': true, [`skeleton--${this.shape}`]: true, 'skeleton--animated': this.animated } }, Array.from({ length: this.items }).map((value, index) => (hAsync("span", { class: "skeleton__item", style: this.sizeStyle, key: index, "data-index": String(value) })))));
7928
7928
  }
7929
7929
  static get style() { return chSkeletonCss(); }
7930
7930
  static get cmpMeta() { return {
@@ -7972,7 +7972,7 @@ class ChSpinner {
7972
7972
  label;
7973
7973
  render() {
7974
7974
  const labelled = Boolean(this.label);
7975
- return (hAsync(Host, { key: 'b0f95c7faefd1ee42daa4a206237080ffdc7d9fa' }, hAsync("span", { key: '8334394e952debce6d1dc1aa4e069a97df89ce78', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
7975
+ return (hAsync(Host, { key: '1d8ef18f03d7a52d61854cc84fb39994ee8ce0a9' }, hAsync("span", { key: '28ec4657d1a0de9181f9d31742fc6bd26b284b14', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
7976
7976
  }
7977
7977
  static get style() { return chSpinnerCss(); }
7978
7978
  static get cmpMeta() { return {
@@ -8018,7 +8018,7 @@ class ChStack {
8018
8018
  return GAPS.has(this.gap) ? this.gap : 'md';
8019
8019
  }
8020
8020
  render() {
8021
- return (hAsync(Host, { key: '59953e25dd22750d1e68fb1cd87818f99131b585', class: { stack: true, [`stack--gap-${this.gapStep}`]: true, [`stack--align-${this.align}`]: true, [`stack--justify-${this.justify}`]: true } }, hAsync("slot", { key: '571c88fe8089b4078076a296af454d608e2950d5' })));
8021
+ return (hAsync(Host, { key: '1c70344ce291ba78a533f99ac6c4c135296251e1', class: { stack: true, [`stack--gap-${this.gapStep}`]: true, [`stack--align-${this.align}`]: true, [`stack--justify-${this.justify}`]: true } }, hAsync("slot", { key: 'f4167e47a2fdee42f97611fba5907d79f8d0448d' })));
8022
8022
  }
8023
8023
  static get style() { return chStackCss(); }
8024
8024
  static get cmpMeta() { return {
@@ -8084,10 +8084,10 @@ class ChStat {
8084
8084
  }
8085
8085
  render() {
8086
8086
  const cue = this.toneClass === 'positive' ? '+' : this.toneClass === 'negative' ? '−' : null;
8087
- return (hAsync(Host, { key: 'cd62c0babb04a2ac4fe677d813ed8c7e702f34b6', class: "stat" }, hAsync("div", { key: '8bd3a3696c18b4d90383d5c67f18f11695d236e1', class: "stat__inner" }, hAsync("span", { key: 'e9fe2811b10835ef6b9823a2ba6cca368805bb75', class: "stat__label" }, this.label), hAsync("span", { key: '77a988331db066b79129cc6ec13e40e8803e0f76', class: {
8087
+ return (hAsync(Host, { key: '76d71c964efeb4e5a07aabff0b895f1ded21b345', class: "stat" }, hAsync("div", { key: '103db766f21c91c8406e8d3368049f4e4a018007', class: "stat__inner" }, hAsync("span", { key: '74e45654072a92ba4f894aee5366852561f8f352', class: "stat__label" }, this.label), hAsync("span", { key: 'deb8d0d20c70d7fbab392641fd9d0e617ab8daf5', class: {
8088
8088
  stat__value: true,
8089
8089
  [`stat__value--${this.toneClass}`]: this.toneClass !== 'default',
8090
- } }, cue && (hAsync("span", { key: 'e87701ffbc81445a1de05f593556193634cc509f', class: "stat__cue", "aria-hidden": "true" }, cue)), hAsync("slot", { key: '734c4ee24976ee950c12be1db6015d46e5928612', name: "value" }, this.value)), this.hint && hAsync("span", { key: '54734ce294cb543de618a3895dffdedc544a1a82', class: "stat__hint" }, this.hint), hAsync("div", { key: '6de7e23a08b807ff6ee3e1c56a3945d3b8ac8111', class: "stat__footer" }, hAsync("slot", { key: 'c1c86d9e7cd6d76730bd1f1ea935707cdd7eea31', name: "footer" })))));
8090
+ } }, cue && (hAsync("span", { key: '82b83cb7182f10ceca5172fc790aad01882645cc', class: "stat__cue", "aria-hidden": "true" }, cue)), hAsync("slot", { key: 'e9c3095eca4ed3907fc0e95395f3cc62bfd4158a', name: "value" }, this.value)), this.hint && hAsync("span", { key: '4b892b35299def40a62c386e6af7c5f19aebe44b', class: "stat__hint" }, this.hint), hAsync("div", { key: '0535d9fb62ddf5ed1ee2b5993689cb080f753ff9', class: "stat__footer" }, hAsync("slot", { key: '1d8e09fa8db2d4a6e188f8deaa93631df9cc2a36', name: "footer" })))));
8091
8091
  }
8092
8092
  static get style() { return chStatCss(); }
8093
8093
  static get cmpMeta() { return {
@@ -8213,7 +8213,7 @@ class ChSwitch {
8213
8213
  return undefined;
8214
8214
  }
8215
8215
  render() {
8216
- return (hAsync(Host, { key: 'a593cc587574d7f103af5571bdb88945eb692c04' }, hAsync("label", { key: '1574e583db0b04d7ab66e978d15f3b4d28e4e738', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '9855c9b7c67bda69b6fb4feaab8ea57ba5c523df', 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: '0c666ac6c4f9fbaa8e6d5be6667e96ec7ca41e75', class: "track" }, hAsync("span", { key: 'ceda77fc17a9f756c23bf5cdb8586cfad0e8b480', class: "thumb" })), this.label && hAsync("span", { key: '57a96bf5e7e2ad15c0cf9ab655de7da7b7beca92', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: 'd3a6eaba0aa54e9cd659cc845d75e6d139d120c5', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '4a4e7a1ffd8dd9e4dc2822442791f1ae91a715cc', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8216
+ return (hAsync(Host, { key: '8bafcbe9b03858f278f0884d43b9ce579a98c84e' }, hAsync("label", { key: '8783c0e8ce0bb9c03a3772a08afb383e338b5be4', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '4093d398ed167ede08749050b6a9c9d5b25f2470', id: this.switchId, class: { 'input': true, 'input--invalid': this.invalid }, type: "checkbox", role: "switch", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.formDisabled, required: this.required, "aria-checked": this.checked ? 'true' : 'false', "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onChange: this.handleChange }), hAsync("span", { key: 'eea728ebbf6c6fefd761415bf8cb00765e5c2e76', class: "track" }, hAsync("span", { key: '4d18d8c9ed871bbf6e537b93bcce14c0f00f00e9', class: "thumb" })), this.label && hAsync("span", { key: '048657735d8fdf9a03a89b83cf3f3d65a466d886', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '869a40f9ce8bd2f93d918426f119c637039ac5e9', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '08d947e2909706290b7efbb3e8af6999ad249dea', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8217
8217
  }
8218
8218
  static get formAssociated() { return true; }
8219
8219
  static get watchers() { return {
@@ -8410,7 +8410,7 @@ class ChTable {
8410
8410
  const empty = this.emptyState;
8411
8411
  // Before the first measurement the table is rendered as non-empty, so a
8412
8412
  // consumer never sees the empty message flash over real rows.
8413
- return (hAsync(Host, { key: '8b2a0b8933c184f7ed0bc544856f1d6b83831b66', class: { 'table': true, 'table--empty': empty === 'true' || empty === 'filtered' } }, hAsync("div", { key: 'e3a98557a58a2cc83f3f3a2830cea120e5b62e0d', class: "table__scroll", tabIndex: 0, role: "group", "aria-labelledby": this.captionId }, hAsync("table", { key: 'fac2788e9efba5062e5901f342a907482afd8756' }, hAsync("caption", { key: 'c0a06b68197d4b242aab7420b12fca0836b311cb', id: this.captionId, class: "caption" }, this.label), hAsync("thead", { key: 'c32113deaee84ed07a0c16f1009b92882e9d1c25' }, hAsync("tr", { key: '74aea52de8834bbd21e03756d2fe5f04b9483d08' }, this.columns.map(column => this.renderHeaderCell(column)))), hAsync("tbody", { key: '64cf3b2997ae422bcac52642b452f2872ac8edbc' }, hAsync("slot", { key: '2899df2f2e05c185c1753ab884785b683d66c252' })))), (empty === 'true' || empty === 'filtered') && (hAsync("div", { key: '9d836746ae931e40ddf41fc21ae9bb556e111834', class: "table__empty", id: this.emptyId }, hAsync("slot", { key: 'aa6e65cf00004586a238057f24922f2ad4e1df92', name: "empty" }, hAsync("p", { key: 'cd73a4eae162c59b7836130f884876f87d0c2201', class: "table__empty-message" }, this.emptyMessage(empty)))))));
8413
+ return (hAsync(Host, { key: 'f4511d753b9140b08eee0e50041ba4e7408930ec', class: { 'table': true, 'table--empty': empty === 'true' || empty === 'filtered' } }, hAsync("div", { key: '8cc987803f5d000d7efbbc6b605561d2c6ca1c46', class: "table__scroll", tabIndex: 0, role: "group", "aria-labelledby": this.captionId }, hAsync("table", { key: '9eff6abfe0fecfd3559bfe397db3957fa60e288a' }, hAsync("caption", { key: '35d88e56267aff1ae9753326ffc807cf6e04bfba', id: this.captionId, class: "caption" }, this.label), hAsync("thead", { key: '0b01e865f3c0f40e9e86634f701b77886713e2e3' }, hAsync("tr", { key: '92ded28a12867b8a2a372a9b04e8fd251870a5c7' }, this.columns.map(column => this.renderHeaderCell(column)))), hAsync("tbody", { key: '68d7a49aa51cf1e958f1af7ebc36cdb5f6acfdd0' }, hAsync("slot", { key: '79e296699379971e93b8a91b7823987be835ce8e' })))), (empty === 'true' || empty === 'filtered') && (hAsync("div", { key: 'b7b2734f3d83ced393377fbe6f2911d2466ce714', class: "table__empty", id: this.emptyId }, hAsync("slot", { key: '926191c01eef1f1898ad7fc800824021a697da35', name: "empty" }, hAsync("p", { key: '6302a52795029b3d31200ae3c1c4ff53af3ab81c', class: "table__empty-message" }, this.emptyMessage(empty)))))));
8414
8414
  }
8415
8415
  static get watchers() { return {
8416
8416
  "filtered": [{
@@ -8530,7 +8530,7 @@ class ChTabs {
8530
8530
  }
8531
8531
  render() {
8532
8532
  const active = this.activeValue;
8533
- return (hAsync(Host, { key: '8499b678f6aed49bced1c10bfee39817ed153fb8' }, hAsync("div", { key: '95bb01015c94eb6f91793d0e824cce73ea178f52', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
8533
+ return (hAsync(Host, { key: '5fd5208bb1b9b75f13b9d3830d042f623aaca651' }, hAsync("div", { key: '8d602a604a8315db01f3e4d28a39e866efabdb48', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
8534
8534
  const selected = tab.value === active;
8535
8535
  return (hAsync("button", { key: tab.value, type: "button", class: { 'tab': true, 'tab--active': selected, 'tab--disabled': Boolean(tab.disabled) }, role: "tab", id: this.tabId(tab.value), "data-value": tab.value, "aria-selected": selected ? 'true' : 'false', "aria-controls": this.panelId(tab.value), tabIndex: selected ? FIRST_TAB_INDEX : LAST_TAB_INDEX, disabled: tab.disabled, onClick: () => this.select(tab.value) }, tab.label));
8536
8536
  })), this.tabs.map(tab => (hAsync("div", { key: `${tab.value}-panel`, class: "tabpanel", id: this.panelId(tab.value), role: "tabpanel", "aria-labelledby": this.tabId(tab.value), tabIndex: FIRST_TAB_INDEX, hidden: tab.value !== active }, hAsync("slot", { name: `panel-${tab.value}` }))))));
@@ -8672,7 +8672,7 @@ class ChTextarea {
8672
8672
  return undefined;
8673
8673
  }
8674
8674
  render() {
8675
- return (hAsync(Host, { key: '50b58cb3c3c33b0e129c54d78fd38134f2cd45f3' }, this.label && (hAsync("label", { key: '615ef3a1c58affc5b605659ff3c12062e64ce487', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: '8adb8ca913fabd93b51bd0ae8564159bec624367', 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: 'e7a62fc5ca3d07700e2c9217df153f1fe3268743', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'ad206962998f27690672701e12b7b54b4aa1d52b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8675
+ return (hAsync(Host, { key: '0f2b76444b3bff5d37d069bf1fe307781c5e59d1' }, this.label && (hAsync("label", { key: '08b83be70f33dc2c9b93a6d748564aad4eb63d76', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: '749876530342e5ff9d70ab7039dded1a4f0faa5a', id: this.label ? this.textareaId : undefined, class: { 'textarea': true, 'textarea--invalid': this.invalid }, rows: this.rows, name: this.name, placeholder: this.placeholder, disabled: this.disabled || this.formDisabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '36e41249852346df559bd278256cc89a79371a88', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '90bda1f377da78e07eae82ee13069813c7ed1e8b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
8676
8676
  }
8677
8677
  static get formAssociated() { return true; }
8678
8678
  static get watchers() { return {
@@ -8743,7 +8743,7 @@ class ChTimeline {
8743
8743
  registerInstance(this, hostRef);
8744
8744
  }
8745
8745
  render() {
8746
- return (hAsync(Host, { key: '616e3744bb0d45ed22c323a21a0276d2340b8a9b', class: "timeline" }, hAsync("ol", { key: '101666196cfef534559f9d1170f2152909ab5101', class: "list" }, hAsync("slot", { key: 'bff9503a2815bac51a633fa1b35053d1be26d90c' }))));
8746
+ return (hAsync(Host, { key: '50b3a225915e4223fa3eaf560cb1e15898026ec0', class: "timeline" }, hAsync("ol", { key: '5b5e218a419f63990deca2d1a7e0f8f36f63cc09', class: "list" }, hAsync("slot", { key: '69ff4592e898cdecb078437b6633e5e24c626e61' }))));
8747
8747
  }
8748
8748
  static get style() { return chTimelineCss(); }
8749
8749
  static get cmpMeta() { return {
@@ -8857,7 +8857,7 @@ function correction(before, after) {
8857
8857
  return 0;
8858
8858
  }
8859
8859
 
8860
- 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}}`;
8860
+ 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}}`;
8861
8861
 
8862
8862
  let tooltipIds = 0;
8863
8863
  /** Space between the trigger and the bubble, matching `--spacing-md`. */
@@ -8892,6 +8892,7 @@ class ChTooltip {
8892
8892
  get el() { return getElement(this); }
8893
8893
  fallbackId = `ch-tooltip-${++tooltipIds}`;
8894
8894
  bubbleEl;
8895
+ probeEl;
8895
8896
  cleanup;
8896
8897
  /**
8897
8898
  * The side the bubble is placed on. It is a preference: when that side has no
@@ -8983,30 +8984,46 @@ class ChTooltip {
8983
8984
  * Measures the anchor and the bubble and stores the offset that keeps the
8984
8985
  * bubble inside the viewport. Nothing is measured before the bubble has a
8985
8986
  * box to measure, so the pre-paint render uses plain CSS.
8987
+ *
8988
+ * A fixed bubble is positioned against the nearest ancestor that establishes
8989
+ * a containing block (a `transform`, `filter`, `backdrop-filter`, `contain`
8990
+ * or `will-change`), not necessarily the viewport. The probe is fixed at the
8991
+ * containing block's origin, so both the anchor and the viewport are
8992
+ * converted into that same space before `placeOverlay` does its maths.
8986
8993
  */
8987
8994
  position() {
8988
8995
  if (typeof window === 'undefined') {
8989
8996
  return;
8990
8997
  }
8991
8998
  const bubble = this.bubbleEl ?? (this.bubbleEl = this.el.shadowRoot?.querySelector('.bubble') ?? undefined);
8992
- if (!bubble || bubble.offsetWidth === 0) {
8999
+ const probe = this.probeEl ?? (this.probeEl = this.el.shadowRoot?.querySelector('.probe') ?? undefined);
9000
+ if (!bubble || !probe || bubble.offsetWidth === 0) {
8993
9001
  return;
8994
9002
  }
8995
9003
  const anchorRect = this.slotted('trigger')?.getBoundingClientRect?.();
8996
9004
  if (!anchorRect) {
8997
9005
  return;
8998
9006
  }
9007
+ const probeRect = probe.getBoundingClientRect();
9008
+ const scaleX = probeRect.width || 1;
9009
+ const scaleY = probeRect.height || 1;
9010
+ const inContainingBlock = (rect) => ({
9011
+ top: (rect.top - probeRect.top) / scaleY,
9012
+ left: (rect.left - probeRect.left) / scaleX,
9013
+ width: rect.width / scaleX,
9014
+ height: rect.height / scaleY,
9015
+ });
8999
9016
  const surface = {
9000
9017
  width: bubble.offsetWidth + horizontalMargin(bubble),
9001
9018
  height: bubble.offsetHeight,
9002
9019
  };
9003
9020
  const viewport = window.visualViewport;
9004
9021
  const { placement, top, left } = placeOverlay({
9005
- anchor: { top: anchorRect.top, left: anchorRect.left, width: anchorRect.width, height: anchorRect.height },
9022
+ anchor: inContainingBlock(anchorRect),
9006
9023
  surface,
9007
- viewport: viewport
9024
+ viewport: inContainingBlock(viewport
9008
9025
  ? { top: viewport.offsetTop, left: viewport.offsetLeft, width: viewport.width, height: viewport.height }
9009
- : { top: 0, left: 0, width: window.innerWidth, height: window.innerHeight },
9026
+ : { top: 0, left: 0, width: window.innerWidth, height: window.innerHeight }),
9010
9027
  preferred: this.placement,
9011
9028
  gap: GAP,
9012
9029
  });
@@ -9032,7 +9049,7 @@ class ChTooltip {
9032
9049
  };
9033
9050
  render() {
9034
9051
  const { offset } = this;
9035
- return (hAsync(Host, { key: '7a973aaf76394079854cc78bbb1884b557ac84fe' }, hAsync("span", { key: '3575faff5ddcf08abc07290657f73ea08585b123', class: "anchor" }, hAsync("slot", { key: 'a05a69a210af40e408fc976e595d87af6d91aeed', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '572da206df248b6cea6d2bcc3bb752818486213e', ref: el => (this.bubbleEl = el), style: {
9052
+ return (hAsync(Host, { key: 'c88fafd18dfa217051213dc510d7c3edd7e6fa45' }, hAsync("span", { key: '97b027bccda9cfcfed684556ed11211317ca97b3', class: "anchor" }, hAsync("span", { key: '30f76981b7d295b4459f3ca4045168e24ec1ee65', class: "probe", "aria-hidden": "true", ref: el => (this.probeEl = el) }), hAsync("slot", { key: 'f99a7e5b4ca3775e7af26edf9a9e9d76e7c7a292', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '17b396847c0be20c03fc010b57dfe3c299dbf3c1', ref: el => (this.bubbleEl = el), style: {
9036
9053
  '--ch-tooltip-offset-top': offset ? `${offset.top}px` : null,
9037
9054
  '--ch-tooltip-offset-left': offset ? `${offset.left}px` : null,
9038
9055
  }, class: {
@@ -9040,7 +9057,7 @@ class ChTooltip {
9040
9057
  'bubble--positioned': Boolean(this.offset),
9041
9058
  [`bubble--${this.resolvedPlacement ?? this.placement}`]: true,
9042
9059
  'bubble--visible': this.visible,
9043
- } }, hAsync("slot", { key: '7cf98063f828b2f2a63b0d0d4a5f90c8bacc4c14', name: "content", onSlotchange: this.associate })))));
9060
+ } }, hAsync("slot", { key: 'd11e591c095b29033db96242dbeafa4347ee4326', name: "content", onSlotchange: this.associate })))));
9044
9061
  }
9045
9062
  static get style() { return chTooltipCss(); }
9046
9063
  static get cmpMeta() { return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devschile/chucao",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Chucao — devsChile design system, packaged as StencilJS web components",
5
5
  "keywords": [
6
6
  "stenciljs",
@@ -1,2 +0,0 @@
1
- import{r as t,a as e,f as o,h as i,H as s}from"./p-CIV5Gg1o.js";const r={top:"bottom",bottom:"top",left:"right",right:"left"};const n={top:"vertical",bottom:"vertical",left:"horizontal",right:"horizontal"};function a(t,e){return{top:e.top-t.top,left:e.left-t.left,bottom:t.top+t.height-(e.top+e.height),right:t.left+t.width-(e.left+e.width)}}function l(t,e,o,i){switch(t){case"top":return{top:e.top-o.height-i,left:e.left+(e.width-o.width)/2};case"bottom":return{top:e.top+e.height+i,left:e.left+(e.width-o.width)/2};case"left":return{top:e.top+(e.height-o.height)/2,left:e.left-o.width-i};case"right":return{top:e.top+(e.height-o.height)/2,left:e.left+e.width+i}}}function b({anchor:t,surface:e,viewport:o,preferred:i,gap:s}){const b=[i,r[i]];let h=i;let p=Number.POSITIVE_INFINITY;for(const i of b){const{top:r,left:b}=l(i,t,e,s);const c={top:r,left:b,width:e.width,height:e.height};const d=a(c,o);const u=n[i]==="vertical"?f(d.top)+f(d.bottom):f(d.left)+f(d.right);if(u<p){p=u;h=i}}const{top:d,left:u}=l(h,t,e,s);const g={top:d,left:u,width:e.width,height:e.height};const m=a(g,o);const v=n[h]==="vertical"?{top:d,left:u+c(m.left,m.right)}:{top:d+c(m.top,m.bottom),left:u};return{placement:h,top:v.top,left:v.left}}function f(t){return t>0?t:0}function c(t,e){if(t>0){return t}if(e>0){return-e}return 0}const h=()=>`: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}}`;let p=0;const d=8;const u=class{constructor(e){t(this,e)}get el(){return e(this)}fallbackId=`ch-tooltip-${++p}`;bubbleEl;cleanup;placement="top";hovered=false;focused=false;dismissed=false;resolvedPlacement;offset;get visible(){return(this.hovered||this.focused)&&!this.dismissed}componentDidLoad(){this.associate()}connectedCallback(){this.watchViewport()}disconnectedCallback(){this.cleanup?.()}handleMouseEnter(){this.hovered=true;this.dismissed=false;this.position()}handleMouseLeave(){this.hovered=false}handleFocusIn(){this.focused=true;this.dismissed=false;this.position()}handleFocusOut(){this.focused=false}handleKeyDown(t){if(t.key==="Escape"&&this.visible&&!t.defaultPrevented){t.preventDefault();this.dismissed=true}}handleScroll(){if(this.visible&&this.offset){this.position()}}handleResize(){this.position()}watchViewport(){if(typeof window==="undefined"){return}const t=window.visualViewport;if(!t||this.cleanup){return}const e=()=>this.position();t.addEventListener("resize",e);t.addEventListener("scroll",e);this.cleanup=()=>{t.removeEventListener("resize",e);t.removeEventListener("scroll",e)}}slotted(t){return Array.from(this.el.children).find((e=>e.getAttribute("slot")===t))}position(){if(typeof window==="undefined"){return}const t=this.bubbleEl??(this.bubbleEl=this.el.shadowRoot?.querySelector(".bubble")??undefined);if(!t||t.offsetWidth===0){return}const e=this.slotted("trigger")?.getBoundingClientRect?.();if(!e){return}const i={width:t.offsetWidth+g(t),height:t.offsetHeight};const s=window.visualViewport;const{placement:r,top:n,left:a}=b({anchor:{top:e.top,left:e.left,width:e.width,height:e.height},surface:i,viewport:s?{top:s.offsetTop,left:s.offsetLeft,width:s.width,height:s.height}:{top:0,left:0,width:window.innerWidth,height:window.innerHeight},preferred:this.placement,gap:d});const l=this.offset;const f=l?.top===n&&l?.left===a&&this.resolvedPlacement===r;this.resolvedPlacement=r;this.offset={top:n,left:a};if(!f){o(this)}}associate=()=>{const t=this.slotted("trigger");const e=this.slotted("content");if(!t||!e){return}if(!e.id){e.id=this.fallbackId}e.setAttribute("role","tooltip");t.setAttribute("aria-describedby",e.id)};render(){const{offset:t}=this;return i(s,{key:"7a973aaf76394079854cc78bbb1884b557ac84fe"},i("span",{key:"3575faff5ddcf08abc07290657f73ea08585b123",class:"anchor"},i("slot",{key:"a05a69a210af40e408fc976e595d87af6d91aeed",name:"trigger",onSlotchange:this.associate}),i("span",{key:"572da206df248b6cea6d2bcc3bb752818486213e",ref:t=>this.bubbleEl=t,style:{"--ch-tooltip-offset-top":t?`${t.top}px`:null,"--ch-tooltip-offset-left":t?`${t.left}px`:null},class:{bubble:true,"bubble--positioned":Boolean(this.offset),[`bubble--${this.resolvedPlacement??this.placement}`]:true,"bubble--visible":this.visible}},i("slot",{key:"7cf98063f828b2f2a63b0d0d4a5f90c8bacc4c14",name:"content",onSlotchange:this.associate}))))}};function g(t){const e=getComputedStyle(t);return(parseFloat(e.marginLeft)||0)+(parseFloat(e.marginRight)||0)}u.style=h();export{u as ch_tooltip};
2
- //# sourceMappingURL=p-5c253fa0.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["OPPOSITE","top","bottom","left","right","AXIS","overflowOf","surface","viewport","height","width","offsetFor","placement","anchor","gap","placeOverlay","preferred","candidates","best","Number","POSITIVE_INFINITY","candidate","rect","overflow","main","clamp","shifted","correction","before","after","chTooltipCss","tooltipIds","GAP","ChTooltip","fallbackId","bubbleEl","cleanup","hovered","focused","dismissed","resolvedPlacement","offset","visible","this","componentDidLoad","associate","connectedCallback","watchViewport","disconnectedCallback","handleMouseEnter","position","handleMouseLeave","handleFocusIn","handleFocusOut","handleKeyDown","event","key","defaultPrevented","preventDefault","handleScroll","handleResize","window","visualViewport","update","addEventListener","removeEventListener","slotted","name","Array","from","el","children","find","child","getAttribute","bubble","shadowRoot","querySelector","undefined","offsetWidth","anchorRect","getBoundingClientRect","horizontalMargin","offsetHeight","offsetTop","offsetLeft","innerWidth","innerHeight","current","unchanged","forceUpdate","trigger","content","id","setAttribute","render","h","Host","class","onSlotchange","ref","style","Boolean","getComputedStyle","parseFloat","marginLeft","marginRight"],"sources":["src/utils/overlay.ts","src/components/ch-tooltip/ch-tooltip.css?tag=ch-tooltip&encapsulation=shadow","src/components/ch-tooltip/ch-tooltip.tsx"],"sourcesContent":["export type ChOverlayPlacement = 'top' | 'bottom' | 'left' | 'right';\n\nexport interface ChOverlayPosition {\n /** Placement after flipping when the preferred side does not fit. */\n placement: ChOverlayPlacement;\n /** Offset from the anchor's top-left corner, in pixels. */\n top: number;\n left: number;\n}\n\nexport interface ChOverlayRect {\n top: number;\n left: number;\n width: number;\n height: number;\n}\n\nexport interface ChOverlayViewport {\n top: number;\n left: number;\n width: number;\n height: number;\n}\n\nconst OPPOSITE: Record<ChOverlayPlacement, ChOverlayPlacement> = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left',\n};\n\nconst AXIS: Record<ChOverlayPlacement, 'vertical' | 'horizontal'> = {\n top: 'vertical',\n bottom: 'vertical',\n left: 'horizontal',\n right: 'horizontal',\n};\n\n/**\n * How far a placed surface overflows each viewport edge. Positive values are\n * overflow. Used both to pick a placement and to shift the surface back in.\n */\nexport function overflowOf(surface: ChOverlayRect, viewport: ChOverlayViewport) {\n return {\n top: viewport.top - surface.top,\n left: viewport.left - surface.left,\n bottom: surface.top + surface.height - (viewport.top + viewport.height),\n right: surface.left + surface.width - (viewport.left + viewport.width),\n };\n}\n\nfunction offsetFor(placement: ChOverlayPlacement, anchor: ChOverlayRect, surface: { width: number; height: number }, gap: number) {\n switch (placement) {\n case 'top':\n return {\n top: anchor.top - surface.height - gap,\n left: anchor.left + (anchor.width - surface.width) / 2,\n };\n case 'bottom':\n return {\n top: anchor.top + anchor.height + gap,\n left: anchor.left + (anchor.width - surface.width) / 2,\n };\n case 'left':\n return {\n top: anchor.top + (anchor.height - surface.height) / 2,\n left: anchor.left - surface.width - gap,\n };\n case 'right':\n return {\n top: anchor.top + (anchor.height - surface.height) / 2,\n left: anchor.left + anchor.width + gap,\n };\n }\n}\n\n/**\n * Picks the placement that overflows least and then shifts the surface along\n * the cross axis so it stays inside the viewport.\n *\n * The main-axis overflow is not compensated with a translate: a tooltip pinned\n * to the top edge would cover its own trigger. Flipping to the other side is\n * what keeps it readable, and the caller decides whether to accept the\n * remaining overflow.\n */\nexport function placeOverlay({\n anchor,\n surface,\n viewport,\n preferred,\n gap,\n}: {\n anchor: ChOverlayRect;\n surface: { width: number; height: number };\n viewport: ChOverlayViewport;\n preferred: ChOverlayPlacement;\n gap: number;\n}): ChOverlayPosition {\n const candidates: ChOverlayPlacement[] = [preferred, OPPOSITE[preferred]];\n let placement = preferred;\n let best = Number.POSITIVE_INFINITY;\n\n for (const candidate of candidates) {\n const { top, left } = offsetFor(candidate, anchor, surface, gap);\n const rect = { top, left, width: surface.width, height: surface.height };\n const overflow = overflowOf(rect, viewport);\n const main = AXIS[candidate] === 'vertical' ? clamp(overflow.top) + clamp(overflow.bottom) : clamp(overflow.left) + clamp(overflow.right);\n\n if (main < best) {\n best = main;\n placement = candidate;\n }\n }\n\n const { top, left } = offsetFor(placement, anchor, surface, gap);\n const rect = { top, left, width: surface.width, height: surface.height };\n const overflow = overflowOf(rect, viewport);\n\n const shifted = AXIS[placement] === 'vertical' ? { top, left: left + correction(overflow.left, overflow.right) } : { top: top + correction(overflow.top, overflow.bottom), left };\n\n return { placement, top: shifted.top, left: shifted.left };\n}\n\n/** Only real overflow counts: the side that fits contributes nothing. */\nfunction clamp(overflow: number) {\n return overflow > 0 ? overflow : 0;\n}\n\n/**\n * Turns the two overflows on an axis into a shift. `before` is the overflow on\n * the leading edge (top or left), `after` the one on the trailing edge; both\n * are positive when the surface spills past that edge.\n *\n * Pushing away from the leading edge moves the surface inwards, so the shift is\n * `+before`. The trailing edge needs the opposite sign. When both overflow the\n * surface is larger than the viewport: pin it to the leading edge and let\n * `max-width` stop the spill.\n */\nfunction correction(before: number, after: number) {\n if (before > 0) {\n return before;\n }\n if (after > 0) {\n return -after;\n }\n return 0;\n}\n",":host {\n display: inline-block;\n}\n\n.anchor {\n position: relative;\n display: inline-flex;\n}\n\n.bubble {\n position: absolute;\n z-index: var(--z-index-dropdown);\n width: max-content;\n max-width: min(16rem, calc(100vw - 2 * var(--spacing-2xl)));\n padding: var(--spacing-md) var(--spacing-2xl);\n border: var(--border-width) solid var(--border);\n border-radius: var(--radius-sm);\n background: var(--color-background-base);\n color: var(--text);\n font-family: var(--font-body);\n font-size: var(--typography-size-sm);\n line-height: 1.4;\n opacity: 0;\n visibility: hidden;\n transition:\n opacity var(--duration-fast) var(--easing-default),\n visibility var(--duration-fast) var(--easing-default);\n}\n\n.bubble--visible {\n opacity: 1;\n visibility: visible;\n}\n\n.bubble::before {\n content: '';\n position: absolute;\n}\n\n/*\n * Once the component has measured the anchor, the bubble is placed with fixed\n * coordinates. Viewport coordinates do not depend on ancestors' transforms or\n * overflow, so a tooltip inside a scrolling drawer or modal stays anchored.\n */\n.bubble--positioned {\n position: fixed;\n top: var(--ch-tooltip-offset-top);\n left: var(--ch-tooltip-offset-left);\n transform: none;\n margin: 0;\n}\n\n.bubble--top {\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-bottom: var(--spacing-md);\n}\n\n/* Stencil scopes each rule by doubling its classes, so a three-class selector\n is what actually outranks the single-class placement rules above. */\n.bubble.bubble--positioned.bubble--top,\n.bubble.bubble--positioned.bubble--bottom,\n.bubble.bubble--positioned.bubble--left,\n.bubble.bubble--positioned.bubble--right {\n inset: auto;\n top: var(--ch-tooltip-offset-top);\n left: var(--ch-tooltip-offset-left);\n right: auto;\n bottom: auto;\n transform: none;\n margin: 0;\n}\n\n.bubble--top::before {\n top: 100%;\n left: 0;\n right: 0;\n height: var(--spacing-md);\n}\n\n.bubble--bottom {\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-top: var(--spacing-md);\n}\n\n.bubble--bottom::before {\n bottom: 100%;\n left: 0;\n right: 0;\n height: var(--spacing-md);\n}\n\n.bubble--left {\n right: 100%;\n top: 50%;\n transform: translateY(-50%);\n margin-right: var(--spacing-md);\n}\n\n.bubble--left::before {\n left: 100%;\n top: 0;\n bottom: 0;\n width: var(--spacing-md);\n}\n\n.bubble--right {\n left: 100%;\n top: 50%;\n transform: translateY(-50%);\n margin-left: var(--spacing-md);\n}\n\n.bubble--right::before {\n right: 100%;\n top: 0;\n bottom: 0;\n width: var(--spacing-md);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .bubble {\n transition: none;\n }\n}\n","import { Component, Element, forceUpdate, Host, Listen, Prop, State, h } from '@stencil/core';\n\nimport { placeOverlay, type ChOverlayPlacement } from '../../utils/overlay';\n\nexport type ChTooltipPlacement = ChOverlayPlacement;\n\nlet tooltipIds = 0;\n\n/** Space between the trigger and the bubble, matching `--spacing-md`. */\nconst GAP = 8;\n\n/**\n * Short help text shown on hover and on focus.\n *\n * Both the trigger and the text come from the consumer's light DOM through\n * named slots. That is what makes the accessible association work: an\n * `aria-describedby` IDREF only resolves within a single tree, and slotted\n * nodes stay in the document tree even though they render inside the shadow\n * root. Keeping the text in the shadow root instead would need a reference\n * pointing into a shadow tree, which the platform does not allow — element\n * reflection only points outwards, and `referenceTarget` is not available yet.\n *\n * The trigger has to be a natively focusable element (`<button>`, `<a>`,\n * `<input>`). A chucao component such as `ch-button` will not be described,\n * because `aria-*` set on a custom element host does not reach the native\n * element inside it — see the discussion in issue #47.\n *\n * Positioning is measured, not purely CSS: `placement` is the preferred side,\n * and the bubble flips to the opposite side when the preferred one does not\n * fit, then shifts along the other axis to stay inside the viewport. It\n * re-measures on scroll, resize and visual-viewport changes, which is what\n * keeps it correct inside a scrolling modal or drawer and when a mobile\n * keyboard shrinks the visible area.\n */\n@Component({\n tag: 'ch-tooltip',\n styleUrl: 'ch-tooltip.css',\n shadow: true,\n})\nexport class ChTooltip {\n @Element() private el: HTMLElement;\n\n private readonly fallbackId = `ch-tooltip-${++tooltipIds}`;\n\n private bubbleEl?: HTMLElement;\n\n private cleanup?: () => void;\n\n /**\n * The side the bubble is placed on. It is a preference: when that side has no\n * room the bubble flips to the opposite one.\n */\n @Prop() placement: ChTooltipPlacement = 'top';\n\n // Hover and focus are tracked apart so that neither cancels the other: a\n // pointer passing over and away must not hide a tooltip whose trigger still\n // holds keyboard focus.\n @State() hovered = false;\n @State() focused = false;\n @State() dismissed = false;\n\n /** The placement actually used, which may differ from the prop after a flip. */\n @State() resolvedPlacement?: ChTooltipPlacement;\n\n /** Offset applied to the bubble once it has been measured. */\n private offset?: { top: number; left: number };\n\n private get visible() {\n return (this.hovered || this.focused) && !this.dismissed;\n }\n\n componentDidLoad() {\n this.associate();\n }\n\n connectedCallback() {\n this.watchViewport();\n }\n\n disconnectedCallback() {\n this.cleanup?.();\n }\n\n @Listen('mouseenter')\n handleMouseEnter() {\n this.hovered = true;\n this.dismissed = false;\n this.position();\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n this.hovered = false;\n }\n\n @Listen('focusin')\n handleFocusIn() {\n this.focused = true;\n this.dismissed = false;\n this.position();\n }\n\n @Listen('focusout')\n handleFocusOut() {\n this.focused = false;\n }\n\n /**\n * Listens on the document because a tooltip opened by hovering leaves focus\n * wherever it was, so a host-scoped handler would never see the key.\n *\n * `preventDefault()` dismisses only the innermost surface: the platform's\n * close request for an open native `<dialog>` is the default action of this\n * same keydown, so cancelling it keeps an enclosing `ch-modal` open. Proven\n * against a real `ch-modal` in `tests/browser/ch-tooltip.browser.spec.ts`.\n */\n @Listen('keydown', { target: 'document' })\n handleKeyDown(event: KeyboardEvent) {\n if (event.key === 'Escape' && this.visible && !event.defaultPrevented) {\n event.preventDefault();\n this.dismissed = true;\n }\n }\n\n /** Cheap guard so scroll frames do not measure while nothing is shown. */\n @Listen('scroll', { target: 'window', capture: true, passive: true })\n handleScroll() {\n if (this.visible && this.offset) {\n this.position();\n }\n }\n\n @Listen('resize', { target: 'window', passive: true })\n handleResize() {\n this.position();\n }\n\n private watchViewport() {\n if (typeof window === 'undefined') {\n return;\n }\n const viewport = window.visualViewport;\n if (!viewport || this.cleanup) {\n return;\n }\n const update = () => this.position();\n viewport.addEventListener('resize', update);\n viewport.addEventListener('scroll', update);\n this.cleanup = () => {\n viewport.removeEventListener('resize', update);\n viewport.removeEventListener('scroll', update);\n };\n }\n\n private slotted(name: string) {\n return Array.from(this.el.children).find(child => child.getAttribute('slot') === name);\n }\n\n /**\n * Measures the anchor and the bubble and stores the offset that keeps the\n * bubble inside the viewport. Nothing is measured before the bubble has a\n * box to measure, so the pre-paint render uses plain CSS.\n */\n private position() {\n if (typeof window === 'undefined') {\n return;\n }\n const bubble = this.bubbleEl ?? (this.bubbleEl = this.el.shadowRoot?.querySelector<HTMLElement>('.bubble') ?? undefined);\n if (!bubble || bubble.offsetWidth === 0) {\n return;\n }\n\n const anchorRect = (this.slotted('trigger') as HTMLElement | undefined)?.getBoundingClientRect?.();\n if (!anchorRect) {\n return;\n }\n\n const surface = {\n width: bubble.offsetWidth + horizontalMargin(bubble),\n height: bubble.offsetHeight,\n };\n const viewport = window.visualViewport;\n\n const { placement, top, left } = placeOverlay({\n anchor: { top: anchorRect.top, left: anchorRect.left, width: anchorRect.width, height: anchorRect.height },\n surface,\n viewport: viewport\n ? { top: viewport.offsetTop, left: viewport.offsetLeft, width: viewport.width, height: viewport.height }\n : { top: 0, left: 0, width: window.innerWidth, height: window.innerHeight },\n preferred: this.placement,\n gap: GAP,\n });\n\n const current = this.offset;\n const unchanged = current?.top === top && current?.left === left && this.resolvedPlacement === placement;\n this.resolvedPlacement = placement;\n this.offset = { top, left };\n if (!unchanged) {\n forceUpdate(this);\n }\n }\n\n /**\n * Points the trigger at the text with `aria-describedby`. Re-run on\n * `slotchange` because a framework re-render can replace the slotted nodes\n * and take the attributes with them.\n */\n private associate = () => {\n const trigger = this.slotted('trigger');\n const content = this.slotted('content');\n if (!trigger || !content) {\n return;\n }\n if (!content.id) {\n content.id = this.fallbackId;\n }\n content.setAttribute('role', 'tooltip');\n trigger.setAttribute('aria-describedby', content.id);\n };\n\n render() {\n const { offset } = this;\n\n return (\n <Host>\n <span class=\"anchor\">\n {/* Pre-measure render uses the preferred side so the bubble never\n jumps from the wrong edge on its first frame. */}\n <slot name=\"trigger\" onSlotchange={this.associate}></slot>\n <span\n ref={el => (this.bubbleEl = el)}\n style={{\n '--ch-tooltip-offset-top': offset ? `${offset.top}px` : null,\n '--ch-tooltip-offset-left': offset ? `${offset.left}px` : null,\n }}\n class={{\n 'bubble': true,\n 'bubble--positioned': Boolean(this.offset),\n [`bubble--${this.resolvedPlacement ?? this.placement}`]: true,\n 'bubble--visible': this.visible,\n }}\n >\n <slot name=\"content\" onSlotchange={this.associate}></slot>\n </span>\n </span>\n </Host>\n );\n }\n}\n\nfunction horizontalMargin(el: HTMLElement) {\n const style = getComputedStyle(el);\n return (parseFloat(style.marginLeft) || 0) + (parseFloat(style.marginRight) || 0);\n}\n"],"mappings":"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","ignoreList":[]}