@devschile/chucao 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/README.md +2 -0
  2. package/dist/chucao/chucao.esm.js +1 -1
  3. package/dist/chucao/chucao.esm.js.map +1 -1
  4. package/dist/chucao/{p-a0ec231a.entry.js → p-04dbcfa0.entry.js} +2 -2
  5. package/dist/chucao/{p-96c852f5.entry.js → p-077dc2a6.entry.js} +2 -2
  6. package/dist/chucao/{p-19dde4f9.entry.js → p-079c2017.entry.js} +2 -2
  7. package/dist/chucao/p-37e7f9cc.entry.js +2 -0
  8. package/dist/chucao/p-37e7f9cc.entry.js.map +1 -0
  9. package/dist/chucao/{p-f04d2f75.entry.js → p-5ae89a19.entry.js} +2 -2
  10. package/dist/chucao/p-70285203.entry.js +2 -0
  11. package/dist/chucao/p-70285203.entry.js.map +1 -0
  12. package/dist/chucao/{p-2e20c7a1.entry.js → p-9c072600.entry.js} +2 -2
  13. package/dist/chucao/{p-BaKXvAYc.js → p-DWC12BJ-.js} +2 -2
  14. package/dist/chucao/p-DWC12BJ-.js.map +1 -0
  15. package/dist/chucao/p-b678a7e2.entry.js +2 -0
  16. package/dist/chucao/p-b678a7e2.entry.js.map +1 -0
  17. package/dist/chucao/p-b8bd0310.entry.js +2 -0
  18. package/dist/chucao/p-b8bd0310.entry.js.map +1 -0
  19. package/dist/chucao/p-bb2445d1.entry.js +2 -0
  20. package/dist/chucao/p-c986036f.entry.js +2 -0
  21. package/dist/chucao/p-c986036f.entry.js.map +1 -0
  22. package/dist/chucao/p-d8DfpzMR.js +2 -0
  23. package/dist/chucao/p-d8DfpzMR.js.map +1 -0
  24. package/dist/chucao/{p-10658dc9.entry.js → p-e3265e38.entry.js} +2 -2
  25. package/dist/chucao/{p-f62e1da2.entry.js → p-ff5f5c1f.entry.js} +2 -2
  26. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  27. package/dist/cjs/ch-alert_8.cjs.entry.js +55 -12
  28. package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
  30. package/dist/cjs/ch-divider.cjs.entry.js +2 -2
  31. package/dist/cjs/ch-drawer.cjs.entry.js +153 -0
  32. package/dist/cjs/ch-drawer.cjs.entry.js.map +1 -0
  33. package/dist/cjs/ch-emoji.cjs.entry.js +104 -0
  34. package/dist/cjs/ch-emoji.cjs.entry.js.map +1 -0
  35. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  36. package/dist/cjs/ch-modal.cjs.entry.js +5 -24
  37. package/dist/cjs/ch-modal.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ch-radio.cjs.entry.js +2 -2
  39. package/dist/cjs/ch-segmented-control.cjs.entry.js +112 -0
  40. package/dist/cjs/ch-segmented-control.cjs.entry.js.map +1 -0
  41. package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
  42. package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
  43. package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
  44. package/dist/cjs/chucao.cjs.js +3 -3
  45. package/dist/cjs/chucao.cjs.js.map +1 -1
  46. package/dist/cjs/{index-C9Abf0td.js → index-C9cpLteP.js} +15 -8
  47. package/dist/cjs/index-C9cpLteP.js.map +1 -0
  48. package/dist/cjs/loader.cjs.js +2 -2
  49. package/dist/cjs/scroll-lock-DIRqLP4K.js +49 -0
  50. package/dist/cjs/scroll-lock-DIRqLP4K.js.map +1 -0
  51. package/dist/collection/collection-manifest.json +4 -1
  52. package/dist/collection/components/ch-button/ch-button.css +56 -18
  53. package/dist/collection/components/ch-button/ch-button.js +135 -8
  54. package/dist/collection/components/ch-button/ch-button.js.map +1 -1
  55. package/dist/collection/components/ch-card/ch-card.js +1 -1
  56. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  57. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  58. package/dist/collection/components/ch-drawer/ch-drawer.css +152 -0
  59. package/dist/collection/components/ch-drawer/ch-drawer.js +285 -0
  60. package/dist/collection/components/ch-drawer/ch-drawer.js.map +1 -0
  61. package/dist/collection/components/ch-emoji/ch-emoji.css +33 -0
  62. package/dist/collection/components/ch-emoji/ch-emoji.js +151 -0
  63. package/dist/collection/components/ch-emoji/ch-emoji.js.map +1 -0
  64. package/dist/collection/components/ch-input/ch-input.js +1 -1
  65. package/dist/collection/components/ch-modal/ch-modal.js +4 -23
  66. package/dist/collection/components/ch-modal/ch-modal.js.map +1 -1
  67. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  68. package/dist/collection/components/ch-segmented-control/ch-segmented-control.css +88 -0
  69. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +295 -0
  70. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js.map +1 -0
  71. package/dist/collection/components/ch-select/ch-select.js +1 -1
  72. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  73. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  74. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  75. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  76. package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
  77. package/dist/collection/utils/scroll-lock.js +42 -0
  78. package/dist/collection/utils/scroll-lock.js.map +1 -0
  79. package/dist/components/ch-accordion.js +1 -1
  80. package/dist/components/ch-alert.js +1 -1
  81. package/dist/components/ch-badge.js +1 -1
  82. package/dist/components/ch-button.js +1 -1
  83. package/dist/components/ch-button.js.map +1 -1
  84. package/dist/components/ch-card.js +1 -1
  85. package/dist/components/ch-checkbox.js +1 -1
  86. package/dist/components/ch-divider.js +1 -1
  87. package/dist/components/ch-drawer.d.ts +11 -0
  88. package/dist/components/ch-drawer.js +2 -0
  89. package/dist/components/ch-drawer.js.map +1 -0
  90. package/dist/components/ch-emoji.d.ts +11 -0
  91. package/dist/components/ch-emoji.js +2 -0
  92. package/dist/components/ch-emoji.js.map +1 -0
  93. package/dist/components/ch-input.js +1 -1
  94. package/dist/components/ch-link.js +1 -1
  95. package/dist/components/ch-modal.js +1 -1
  96. package/dist/components/ch-modal.js.map +1 -1
  97. package/dist/components/ch-radio.js +1 -1
  98. package/dist/components/ch-segmented-control.d.ts +11 -0
  99. package/dist/components/ch-segmented-control.js +2 -0
  100. package/dist/components/ch-segmented-control.js.map +1 -0
  101. package/dist/components/ch-select.js +1 -1
  102. package/dist/components/ch-spinner.js +1 -1
  103. package/dist/components/ch-spinner.js.map +1 -1
  104. package/dist/components/ch-switch.js +1 -1
  105. package/dist/components/ch-tabs.js +1 -1
  106. package/dist/components/ch-textarea.js +1 -1
  107. package/dist/components/ch-tooltip.js +1 -1
  108. package/dist/components/index.js +1 -1
  109. package/dist/components/{p-DL-bL54o.js → p-BhAZrOxf.js} +2 -2
  110. package/dist/components/p-BhAZrOxf.js.map +1 -0
  111. package/dist/components/p-C4eGmLcE.js +2 -0
  112. package/dist/components/p-C4eGmLcE.js.map +1 -0
  113. package/dist/components/p-d8DfpzMR.js +2 -0
  114. package/dist/components/p-d8DfpzMR.js.map +1 -0
  115. package/dist/esm/ch-accordion.entry.js +1 -1
  116. package/dist/esm/ch-alert_8.entry.js +55 -12
  117. package/dist/esm/ch-alert_8.entry.js.map +1 -1
  118. package/dist/esm/ch-checkbox.entry.js +2 -2
  119. package/dist/esm/ch-divider.entry.js +2 -2
  120. package/dist/esm/ch-drawer.entry.js +151 -0
  121. package/dist/esm/ch-drawer.entry.js.map +1 -0
  122. package/dist/esm/ch-emoji.entry.js +102 -0
  123. package/dist/esm/ch-emoji.entry.js.map +1 -0
  124. package/dist/esm/ch-link.entry.js +1 -1
  125. package/dist/esm/ch-modal.entry.js +5 -24
  126. package/dist/esm/ch-modal.entry.js.map +1 -1
  127. package/dist/esm/ch-radio.entry.js +2 -2
  128. package/dist/esm/ch-segmented-control.entry.js +110 -0
  129. package/dist/esm/ch-segmented-control.entry.js.map +1 -0
  130. package/dist/esm/ch-tabs.entry.js +2 -2
  131. package/dist/esm/ch-textarea.entry.js +2 -2
  132. package/dist/esm/ch-tooltip.entry.js +2 -2
  133. package/dist/esm/chucao.js +4 -4
  134. package/dist/esm/chucao.js.map +1 -1
  135. package/dist/esm/{index-BaKXvAYc.js → index-DWC12BJ-.js} +15 -8
  136. package/dist/esm/index-DWC12BJ-.js.map +1 -0
  137. package/dist/esm/loader.js +3 -3
  138. package/dist/esm/scroll-lock-d8DfpzMR.js +46 -0
  139. package/dist/esm/scroll-lock-d8DfpzMR.js.map +1 -0
  140. package/dist/types/components/ch-button/ch-button.d.ts +29 -5
  141. package/dist/types/components/ch-drawer/ch-drawer.d.ts +68 -0
  142. package/dist/types/components/ch-emoji/ch-emoji.d.ts +32 -0
  143. package/dist/types/components/ch-segmented-control/ch-segmented-control.d.ts +72 -0
  144. package/dist/types/components.d.ts +405 -6
  145. package/dist/types/stencil-public-runtime.d.ts +1 -0
  146. package/dist/types/utils/scroll-lock.d.ts +17 -0
  147. package/dist-react/components.d.ts +15 -1
  148. package/dist-react/components.js +30 -0
  149. package/dist-react/components.ts +43 -1
  150. package/dist-vue/index.d.ts +3 -0
  151. package/dist-vue/index.js +35 -0
  152. package/dist-vue/index.ts +41 -0
  153. package/hydrate/index.js +541 -46
  154. package/hydrate/index.mjs +541 -46
  155. package/loader/index.d.ts +1 -1
  156. package/package.json +5 -3
  157. package/dist/chucao/p-66dce533.entry.js +0 -2
  158. package/dist/chucao/p-66dce533.entry.js.map +0 -1
  159. package/dist/chucao/p-75184fe1.entry.js +0 -2
  160. package/dist/chucao/p-75184fe1.entry.js.map +0 -1
  161. package/dist/chucao/p-BaKXvAYc.js.map +0 -1
  162. package/dist/chucao/p-e48912c7.entry.js +0 -2
  163. package/dist/cjs/index-C9Abf0td.js.map +0 -1
  164. package/dist/components/p-DL-bL54o.js.map +0 -1
  165. package/dist/esm/index-BaKXvAYc.js.map +0 -1
  166. /package/dist/chucao/{p-a0ec231a.entry.js.map → p-04dbcfa0.entry.js.map} +0 -0
  167. /package/dist/chucao/{p-96c852f5.entry.js.map → p-077dc2a6.entry.js.map} +0 -0
  168. /package/dist/chucao/{p-19dde4f9.entry.js.map → p-079c2017.entry.js.map} +0 -0
  169. /package/dist/chucao/{p-f04d2f75.entry.js.map → p-5ae89a19.entry.js.map} +0 -0
  170. /package/dist/chucao/{p-2e20c7a1.entry.js.map → p-9c072600.entry.js.map} +0 -0
  171. /package/dist/chucao/{p-e48912c7.entry.js.map → p-bb2445d1.entry.js.map} +0 -0
  172. /package/dist/chucao/{p-10658dc9.entry.js.map → p-e3265e38.entry.js.map} +0 -0
  173. /package/dist/chucao/{p-f62e1da2.entry.js.map → p-ff5f5c1f.entry.js.map} +0 -0
package/hydrate/index.mjs CHANGED
@@ -133,7 +133,7 @@ const NAMESPACE = 'chucao';
133
133
  const BUILD = /* chucao */ { hotModuleReplacement: false, slotRelocation: true, state: true, updatable: true};
134
134
 
135
135
  /*
136
- Stencil Hydrate Platform v4.44.0 | MIT Licensed | https://stenciljs.com
136
+ Stencil Hydrate Platform v4.44.2 | MIT Licensed | https://stenciljs.com
137
137
  */
138
138
  var __create = Object.create;
139
139
  var __defProp = Object.defineProperty;
@@ -1915,7 +1915,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1915
1915
  }
1916
1916
  }
1917
1917
  if (newValue == null || newValue === false) {
1918
- if (newValue !== false || elm.getAttribute(memberName) === "") {
1918
+ if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
1919
1919
  {
1920
1920
  elm.removeAttribute(memberName);
1921
1921
  }
@@ -1928,6 +1928,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1928
1928
  }
1929
1929
  }
1930
1930
  };
1931
+ var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
1932
+ var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
1931
1933
  var parseClassListRegex = /\s/;
1932
1934
  var parseClassList = (value) => {
1933
1935
  if (typeof value === "object" && value && "baseVal" in value) {
@@ -2381,7 +2383,7 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
2381
2383
  return newNode;
2382
2384
  }
2383
2385
  }
2384
- if (parent.__insertBefore) {
2386
+ if ((parent == null ? void 0 : parent.__insertBefore)) {
2385
2387
  return parent.__insertBefore(newNode, reference);
2386
2388
  } else {
2387
2389
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
@@ -2799,8 +2801,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
2799
2801
  }
2800
2802
  }
2801
2803
  };
2802
-
2803
- // src/runtime/proxy-component.ts
2804
2804
  var proxyComponent = (Cstr, cmpMeta, flags) => {
2805
2805
  var _a2;
2806
2806
  const prototype = Cstr.prototype;
@@ -5459,7 +5459,7 @@ class ChBadge {
5459
5459
  }; }
5460
5460
  }
5461
5461
 
5462
- const chButtonCss = () => `:host{display:inline-block}.btn{display:inline-flex;align-items:center;gap:var(--spacing-sm);border:none;cursor:pointer;font-family:inherit;font-size:inherit}.btn:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.btn:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.btn--primary{background-color:var(--accent);color:var(--color-accent-text);font-weight:var(--typography-weight-bold);padding:var(--spacing-xs) var(--spacing-xl);border-radius:var(--radius-pill);transition:background-color var(--duration-normal) var(--easing-default), transform var(--duration-fast) var(--easing-default)}.btn--primary:hover{background-color:var(--accent-hover);transform:translateY(calc(-1 * var(--spacing-elevate)))}.btn--secondary{background-color:transparent;color:var(--text);font-weight:var(--typography-weight-bold);padding:var(--spacing-xs) var(--spacing-xl);border-radius:var(--radius-pill);border:var(--border-width) solid var(--border);transition:border-color var(--duration-normal) var(--easing-default), background-color var(--duration-normal) var(--easing-default), transform var(--duration-fast) var(--easing-default)}.btn--secondary:hover{border-color:var(--border-hover);background-color:var(--surface-hover);transform:translateY(calc(-1 * var(--spacing-elevate)))}`;
5462
+ const chButtonCss = () => `:host{display:inline-block}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--spacing-sm);box-sizing:border-box;border:var(--border-width) solid transparent;border-radius:var(--radius-pill);cursor:pointer;font-family:inherit;font-weight:var(--typography-weight-bold);text-decoration:none;line-height:1.2;transition:background-color var(--duration-normal) var(--easing-default), border-color var(--duration-normal) var(--easing-default), color var(--duration-normal) var(--easing-default), transform var(--duration-fast) var(--easing-default)}.btn--sm{padding:var(--spacing-2xs) var(--spacing-lg);font-size:var(--typography-size-sm)}.btn--md{padding:var(--spacing-xs) var(--spacing-xl);font-size:inherit}.btn--lg{padding:var(--spacing-sm) var(--spacing-2xl);font-size:var(--typography-size-lg)}.btn:disabled,.btn--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.btn--loading:disabled,.btn--loading.btn--disabled{opacity:1;cursor:progress}.btn:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.btn--primary{background-color:var(--accent);color:var(--color-accent-text)}.btn--primary:hover:not(:disabled){background-color:var(--accent-hover);transform:translateY(calc(-1 * var(--spacing-elevate)))}.btn--secondary{background-color:transparent;color:var(--text);border-color:var(--border)}.btn--secondary:hover:not(:disabled){border-color:var(--border-hover);background-color:var(--surface-hover);transform:translateY(calc(-1 * var(--spacing-elevate)))}.btn--ghost{background-color:transparent;color:var(--text)}.btn--ghost:hover:not(:disabled){background-color:var(--surface-hover)}.btn--danger{background-color:var(--color-status-warning);color:var(--bg)}.btn--danger:hover:not(:disabled){filter:brightness(0.92);transform:translateY(calc(-1 * var(--spacing-elevate)))}`;
5463
5463
 
5464
5464
  class ChButton {
5465
5465
  constructor(hostRef) {
@@ -5467,17 +5467,38 @@ class ChButton {
5467
5467
  this.chClick = createEvent(this, "chClick");
5468
5468
  }
5469
5469
  /**
5470
- * The visual style of the button. Either `primary` or `secondary`.
5470
+ * The visual style of the button. One of `primary`, `secondary`, `ghost`,
5471
+ * or `danger`.
5471
5472
  */
5472
5473
  variant = 'primary';
5474
+ /**
5475
+ * The size of the button. One of `sm`, `md`, or `lg`.
5476
+ */
5477
+ size = 'md';
5473
5478
  /**
5474
5479
  * Whether the button is disabled.
5475
5480
  */
5476
5481
  disabled = false;
5477
5482
  /**
5478
- * Accessible label set as `aria-label` on the native `<button>`. Use it
5479
- * when the button's content doesn't convey its purpose on its own (e.g.
5480
- * an icon-only button).
5483
+ * Whether the button is loading. Shows a spinner, disables interaction, and
5484
+ * announces the busy state with `aria-busy`.
5485
+ */
5486
+ loading = false;
5487
+ /**
5488
+ * When set, the button renders as an `<a>` pointing to this URL while
5489
+ * keeping the button styling.
5490
+ */
5491
+ href;
5492
+ /**
5493
+ * The browsing context the link opens in (e.g. `_blank`). Only used when
5494
+ * `href` is set. For `_blank`, a `noopener noreferrer` `rel` is added
5495
+ * automatically.
5496
+ */
5497
+ target;
5498
+ /**
5499
+ * Accessible label set as `aria-label` on the native element. Use it when
5500
+ * the button's content doesn't convey its purpose on its own (e.g. an
5501
+ * icon-only button).
5481
5502
  */
5482
5503
  label;
5483
5504
  /**
@@ -5485,10 +5506,32 @@ class ChButton {
5485
5506
  */
5486
5507
  chClick;
5487
5508
  handleClick = (ev) => {
5509
+ if (this.disabled || this.loading) {
5510
+ ev.preventDefault();
5511
+ return;
5512
+ }
5488
5513
  this.chClick.emit(ev);
5489
5514
  };
5515
+ get spinnerSize() {
5516
+ return this.size === 'lg' ? 'md' : 'sm';
5517
+ }
5518
+ renderContent() {
5519
+ return [this.loading ? hAsync("ch-spinner", { size: this.spinnerSize }) : hAsync("slot", { name: "start" }), hAsync("slot", null), hAsync("slot", { name: "end" })];
5520
+ }
5490
5521
  render() {
5491
- return (hAsync(Host, { key: '9363b49e8d38c0fab49ed10356380ded20a8cf5e' }, hAsync("button", { key: '3c98506ae1418c4bc88f5aa72dfe058948556ed5', class: { btn: true, [`btn--${this.variant}`]: true }, type: "button", disabled: this.disabled, "aria-label": this.label, onClick: this.handleClick }, hAsync("slot", { key: 'cdcf4f656b995fa527d4139a41b2ea3c7086e065' }))));
5522
+ const classes = {
5523
+ 'btn': true,
5524
+ [`btn--${this.variant}`]: true,
5525
+ [`btn--${this.size}`]: true,
5526
+ 'btn--loading': this.loading,
5527
+ };
5528
+ if (this.href && !this.disabled && !this.loading) {
5529
+ return (hAsync(Host, null, hAsync("a", { class: classes, href: this.href, target: this.target, rel: this.target === '_blank' ? 'noopener noreferrer' : undefined, "aria-label": this.label, onClick: this.handleClick }, this.renderContent())));
5530
+ }
5531
+ if (this.href) {
5532
+ return (hAsync(Host, null, hAsync("span", { class: { ...classes, 'btn--disabled': true }, "aria-label": this.label, "aria-disabled": "true", "aria-busy": this.loading ? 'true' : undefined }, this.renderContent())));
5533
+ }
5534
+ return (hAsync(Host, null, hAsync("button", { class: classes, type: "button", disabled: this.disabled || this.loading, "aria-label": this.label, "aria-busy": this.loading ? 'true' : undefined, onClick: this.handleClick }, this.renderContent())));
5492
5535
  }
5493
5536
  static get style() { return chButtonCss(); }
5494
5537
  static get cmpMeta() { return {
@@ -5496,7 +5539,11 @@ class ChButton {
5496
5539
  "$tagName$": "ch-button",
5497
5540
  "$members$": {
5498
5541
  "variant": [1],
5542
+ "size": [1],
5499
5543
  "disabled": [4],
5544
+ "loading": [4],
5545
+ "href": [1],
5546
+ "target": [1],
5500
5547
  "label": [1]
5501
5548
  },
5502
5549
  "$listeners$": undefined,
@@ -5512,7 +5559,7 @@ class ChCard {
5512
5559
  registerInstance(this, hostRef);
5513
5560
  }
5514
5561
  render() {
5515
- return (hAsync(Host, { key: '1541ba4361c996716356fb87cdcc73b1260d4c6a' }, hAsync("div", { key: '924070eeb79f6c8f8e6362772bbab0dcc1c6f315', class: "card" }, hAsync("slot", { key: '2fde36426395a519cb1ebe265ba0eef3aaf6ff38' }))));
5562
+ return (hAsync(Host, { key: '7e2833cdc6f37c6b8577c17677840913fb7cd9e1' }, hAsync("div", { key: '223c291e98af73ee2c299b8649773cfcf54388d7', class: "card" }, hAsync("slot", { key: 'e948386bcd492c31e264d50cf27d26e98dd771eb' }))));
5516
5563
  }
5517
5564
  static get style() { return chCardCss(); }
5518
5565
  static get cmpMeta() { return {
@@ -5636,7 +5683,7 @@ class ChCheckbox {
5636
5683
  return undefined;
5637
5684
  }
5638
5685
  render() {
5639
- return (hAsync(Host, { key: 'ca6c6f1297434052eeee68fd76cf21d6a7b99aae' }, hAsync("label", { key: '1f3538da6eb2ce91a75cf73044e2103ba472d4ed', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: '7ed674616bc70af42b025a2b945378192ce48a58', 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: '4f5ccc7b28d95d012aa5cd87ec2411be34672d9e', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: 'b7d2b09c54ed61907e4e7110af867b2a0592924c', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '2340791705a5fce22b810a3a32377a7b1ccef852', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5686
+ return (hAsync(Host, { key: '4011f5a338d2b006a0bfa8217d1ee9b01b987d7d' }, hAsync("label", { key: '8c6c8d6c530d366b26f0cb602dc1e987ed8324d5', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: 'c1f58eeba34ae5d5371e863f349433852fc3c882', 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: '447812e11253c951cb6a5003adda13357fc6dec3', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '5369375f8dd0c2fa787207f8fcef4feeb78ddda6', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'e90274e1df8d205053effe57ceb56f8e8b4deca2', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5640
5687
  }
5641
5688
  static get formAssociated() { return true; }
5642
5689
  static get watchers() { return {
@@ -5686,7 +5733,7 @@ class ChDivider {
5686
5733
  */
5687
5734
  orientation = 'horizontal';
5688
5735
  render() {
5689
- return (hAsync(Host, { key: '888debaaee690d5bbc5e276773f16ac7ead0129a', class: { 'divider--vertical': this.orientation === 'vertical' } }, hAsync("hr", { key: 'ae175f047605cfbe2b24d50e0dab56ac362c49a1', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
5736
+ return (hAsync(Host, { key: '26aa4586507d821e539adcf1e057467654c19491', class: { 'divider--vertical': this.orientation === 'vertical' } }, hAsync("hr", { key: '599b22093ffe91c87899d84ad8c63ab6279107cb', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
5690
5737
  }
5691
5738
  static get style() { return chDividerCss(); }
5692
5739
  static get cmpMeta() { return {
@@ -5701,6 +5748,335 @@ class ChDivider {
5701
5748
  }; }
5702
5749
  }
5703
5750
 
5751
+ let openOverlays = 0;
5752
+ let previousOverflow = '';
5753
+ let previousPaddingRight = '';
5754
+ /**
5755
+ * Prevents the page behind an overlay from scrolling, compensating for the
5756
+ * scrollbar it removes so the layout does not shift.
5757
+ *
5758
+ * Reference-counted on a module-level counter, so concurrent overlays (a modal
5759
+ * over a drawer, several stacked dialogs) cannot unlock the page early:
5760
+ * whichever overlay closes first only decrements the count, and the last one
5761
+ * restores the original styles.
5762
+ *
5763
+ * Callers must pair every `lockScroll()` with exactly one `unlockScroll()`.
5764
+ */
5765
+ function lockScroll() {
5766
+ openOverlays += 1;
5767
+ if (openOverlays > 1) {
5768
+ return;
5769
+ }
5770
+ const root = document.documentElement;
5771
+ const scrollbar = window.innerWidth - root.clientWidth;
5772
+ previousOverflow = root.style.overflow;
5773
+ previousPaddingRight = root.style.paddingRight;
5774
+ root.style.overflow = 'hidden';
5775
+ if (scrollbar > 0) {
5776
+ root.style.paddingRight = `${scrollbar}px`;
5777
+ }
5778
+ }
5779
+ /**
5780
+ * Releases one scroll lock. Only the last lock restores the page; earlier calls
5781
+ * are a no-op so the overlay still open keeps the page frozen.
5782
+ */
5783
+ function unlockScroll() {
5784
+ openOverlays -= 1;
5785
+ if (openOverlays > 0) {
5786
+ return;
5787
+ }
5788
+ const root = document.documentElement;
5789
+ root.style.overflow = previousOverflow;
5790
+ root.style.paddingRight = previousPaddingRight;
5791
+ }
5792
+
5793
+ const chDrawerCss = () => `.drawer{position:fixed;inset:0;margin:0;box-sizing:border-box;flex-direction:column;gap:var(--spacing-2xl);width:min(24rem, 100vw);height:100vh;height:100dvh;max-width:100vw;max-height:100dvh;padding:var(--spacing-5xl);border:var(--border-width) solid var(--border);border-radius:0;background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-md);overflow:hidden}.drawer[open]{display:flex}.drawer--start{inset:0 auto 0 0;border-inline-start:none;animation:drawer-in-start var(--duration-normal) var(--easing-default)}.drawer--end{inset:0 0 0 auto;border-inline-end:none;animation:drawer-in-end var(--duration-normal) var(--easing-default)}.drawer--top{inset:0 0 auto 0;width:100vw;height:auto;max-height:80dvh;border-block-start:none;animation:drawer-in-top var(--duration-normal) var(--easing-default)}.drawer--bottom{inset:auto 0 0 0;width:100vw;height:auto;max-height:80dvh;border-block-end:none;animation:drawer-in-bottom var(--duration-normal) var(--easing-default)}.drawer::backdrop{background:var(--color-scrim-default);backdrop-filter:blur(var(--effect-blur))}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--spacing-2xl);flex:none}.drawer-body{flex:1;min-height:0;overflow-y:auto}::slotted([slot='footer']){display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing-md);flex:none;padding-top:var(--spacing-2xl);border-top:var(--border-width) solid var(--border)}.drawer-close{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--spacing-2xs) var(--spacing-md);border:0;border-radius:var(--radius);background:none;color:var(--text-muted);cursor:pointer;font-family:var(--font-heading);font-size:var(--typography-size-lg);line-height:1;transition:background-color var(--duration-normal) var(--easing-default)}.drawer-close:hover{background:var(--surface-hover);color:var(--text)}.drawer-close:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}@keyframes drawer-in-start{from{transform:translateX(-100%)}}@keyframes drawer-in-end{from{transform:translateX(100%)}}@keyframes drawer-in-top{from{transform:translateY(-100%)}}@keyframes drawer-in-bottom{from{transform:translateY(100%)}}@media (pointer: coarse){.drawer-close{min-width:44px;min-height:44px}}@media (prefers-reduced-motion: reduce){.drawer{animation:none}.drawer-close{transition:none}}`;
5794
+
5795
+ /**
5796
+ * Sliding side panel for navigation, editing forms and quick detail views.
5797
+ *
5798
+ * Built on the native `<dialog>` element and opened with `showModal()`, exactly
5799
+ * like `ch-modal`, so the browser owns focus management, the inert background,
5800
+ * `Escape`, the top layer, `::backdrop`, and the implicit `dialog` role with
5801
+ * `aria-modal="true"`. The only differences are placement — anchored to one
5802
+ * edge instead of centred — and the longer content it is meant for, which is
5803
+ * why it exposes `header` and `footer` slots around a scrollable body.
5804
+ *
5805
+ * Scroll locking is shared with `ch-modal` through `utils/scroll-lock`, so a
5806
+ * drawer and a modal opened together cannot unlock the page early.
5807
+ */
5808
+ class ChDrawer {
5809
+ constructor(hostRef) {
5810
+ registerInstance(this, hostRef);
5811
+ this.chOpen = createEvent(this, "chOpen");
5812
+ this.chClose = createEvent(this, "chClose");
5813
+ }
5814
+ /**
5815
+ * Whether the drawer is open. Kept in sync when the user closes it with
5816
+ * `Escape`, the close button or a click outside.
5817
+ */
5818
+ open = false;
5819
+ /**
5820
+ * The edge the panel slides in from. `start`/`end` follow the writing
5821
+ * direction, so `start` is the left edge in LTR and the right edge in RTL.
5822
+ */
5823
+ side = 'end';
5824
+ /**
5825
+ * Accessible name for the drawer, set as `aria-label`. A slotted heading
5826
+ * cannot be referenced with `aria-labelledby` across the shadow boundary, so
5827
+ * the name comes through this prop — and a modal dialog needs one, so pass
5828
+ * the same text as the heading.
5829
+ */
5830
+ label;
5831
+ /**
5832
+ * Accessible label for the close button, set as `aria-label`. Setting it is
5833
+ * what adds the button: its only content is a decorative glyph, so without a
5834
+ * label it would have no accessible name.
5835
+ */
5836
+ closeLabel;
5837
+ /**
5838
+ * Emitted after the drawer opens.
5839
+ */
5840
+ chOpen;
5841
+ /**
5842
+ * Emitted after the drawer closes, however it was closed.
5843
+ */
5844
+ chClose;
5845
+ dialog;
5846
+ scrollLocked = false;
5847
+ pointerDownedOutside = false;
5848
+ componentDidLoad() {
5849
+ // Wired here rather than in JSX because Stencil derives a listener's event
5850
+ // name from whether `on<name>` exists on `window`, which differs between
5851
+ // the browser and the test environment for pointer events.
5852
+ this.dialog?.addEventListener('close', this.handleNativeClose);
5853
+ this.dialog?.addEventListener('pointerdown', this.handlePointerDown);
5854
+ this.dialog?.addEventListener('click', this.handleClick);
5855
+ if (this.open) {
5856
+ this.showDialog();
5857
+ }
5858
+ }
5859
+ disconnectedCallback() {
5860
+ this.dialog?.removeEventListener('close', this.handleNativeClose);
5861
+ this.dialog?.removeEventListener('pointerdown', this.handlePointerDown);
5862
+ this.dialog?.removeEventListener('click', this.handleClick);
5863
+ this.unlockScroll();
5864
+ }
5865
+ handleOpenChange(open) {
5866
+ if (open) {
5867
+ this.showDialog();
5868
+ }
5869
+ else {
5870
+ this.closeDialog();
5871
+ }
5872
+ }
5873
+ showDialog() {
5874
+ if (typeof this.dialog?.showModal !== 'function') {
5875
+ return;
5876
+ }
5877
+ this.lockScroll();
5878
+ this.dialog.showModal();
5879
+ this.chOpen.emit();
5880
+ }
5881
+ closeDialog() {
5882
+ if (typeof this.dialog?.close === 'function' && this.dialog.open) {
5883
+ this.dialog.close();
5884
+ }
5885
+ }
5886
+ lockScroll() {
5887
+ if (this.scrollLocked) {
5888
+ return;
5889
+ }
5890
+ this.scrollLocked = true;
5891
+ lockScroll();
5892
+ }
5893
+ unlockScroll() {
5894
+ if (!this.scrollLocked) {
5895
+ return;
5896
+ }
5897
+ this.scrollLocked = false;
5898
+ unlockScroll();
5899
+ }
5900
+ /**
5901
+ * True for a pointer event on the backdrop: the `<dialog>` is the event
5902
+ * target for its own box only, and the coordinates fall outside that box.
5903
+ */
5904
+ isOnBackdrop(event) {
5905
+ if (!this.dialog || event.target !== this.dialog) {
5906
+ return false;
5907
+ }
5908
+ const box = this.dialog.getBoundingClientRect();
5909
+ return event.clientX < box.left || event.clientX > box.right || event.clientY < box.top || event.clientY > box.bottom;
5910
+ }
5911
+ handlePointerDown = (event) => {
5912
+ this.pointerDownedOutside = this.isOnBackdrop(event);
5913
+ };
5914
+ handleClick = (event) => {
5915
+ // Requiring the press to have started on the backdrop too keeps a
5916
+ // selection dragged out of the drawer, and a keyboard-synthesised click
5917
+ // (which reports coordinates of 0), from closing it.
5918
+ const dismiss = this.pointerDownedOutside && this.isOnBackdrop(event);
5919
+ this.pointerDownedOutside = false;
5920
+ if (dismiss) {
5921
+ this.closeDialog();
5922
+ }
5923
+ };
5924
+ handleNativeClose = () => {
5925
+ this.unlockScroll();
5926
+ if (this.open) {
5927
+ this.open = false;
5928
+ }
5929
+ this.chClose.emit();
5930
+ };
5931
+ handleCloseClick = () => {
5932
+ if (typeof this.dialog?.close === 'function' && this.dialog.open) {
5933
+ this.dialog.close();
5934
+ return;
5935
+ }
5936
+ this.open = false;
5937
+ this.chClose.emit();
5938
+ };
5939
+ render() {
5940
+ return (hAsync(Host, { key: '8ee0dd329f7304e3f4804c26c75514372d49b4b8' }, hAsync("dialog", { key: '7f99c8edf6f820b595d4360ccc90123da37f9314', class: { drawer: true, [`drawer--${this.side}`]: true }, "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '65c2a386b36305ece253fe644db2a198bc245d12', class: "drawer-head" }, hAsync("slot", { key: '6c259b14a1fea3a38014c832d917554e3d431e18', name: "header" }), this.closeLabel && (hAsync("button", { key: '4d259fbd9850ea4f379f07be50f863e896e67312', class: "drawer-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: 'f1623602e84587020e77ec84c4b997c726414193', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'b239b7da3c9b00a6e80d33290d810297301206de', class: "drawer-body" }, hAsync("slot", { key: 'c3739f84975fc5f4717986214217c23eacb4432f' })), hAsync("slot", { key: '469be1ccedaf474fe40a9c2d264b6c128715cfc7', name: "footer" }))));
5941
+ }
5942
+ static get watchers() { return {
5943
+ "open": [{
5944
+ "handleOpenChange": 0
5945
+ }]
5946
+ }; }
5947
+ static get style() { return chDrawerCss(); }
5948
+ static get cmpMeta() { return {
5949
+ "$flags$": 777,
5950
+ "$tagName$": "ch-drawer",
5951
+ "$members$": {
5952
+ "open": [1028],
5953
+ "side": [1],
5954
+ "label": [1],
5955
+ "closeLabel": [1, "close-label"]
5956
+ },
5957
+ "$listeners$": undefined,
5958
+ "$lazyBundleId$": "-",
5959
+ "$attrsToReflect$": []
5960
+ }; }
5961
+ }
5962
+
5963
+ const aaaa = "aaaa";
5964
+ const ameno = "ameno";
5965
+ const heart = "huemul-love";
5966
+ const love = "huemul-love";
5967
+ const humo = "humo";
5968
+ const hypnotoad = "hypnotoad";
5969
+ const lmao = "lmao";
5970
+ const loading = "loading";
5971
+ const loco = "loco";
5972
+ const loco2 = "loco2";
5973
+ const lol = "lol";
5974
+ const lol2 = "lol2";
5975
+ const monea = "monea";
5976
+ const negative = "negative";
5977
+ var emojiMap = {
5978
+ aaaa: aaaa,
5979
+ ameno: ameno,
5980
+ "huemul-huaso": "huemul-huaso",
5981
+ "huemul-love": "huemul-love",
5982
+ heart: heart,
5983
+ love: love,
5984
+ "huemul-trusted": "huemul-trusted",
5985
+ humo: humo,
5986
+ hypnotoad: hypnotoad,
5987
+ "lets-fucking-go": "lets-fucking-go",
5988
+ lmao: lmao,
5989
+ loading: loading,
5990
+ loco: loco,
5991
+ loco2: loco2,
5992
+ lol: lol,
5993
+ lol2: lol2,
5994
+ monea: monea,
5995
+ negative: negative
5996
+ };
5997
+
5998
+ const chEmojiCss = () => `:host{display:inline-block;vertical-align:middle}.emoji{display:block;object-fit:contain}.emoji--sm{width:16px;height:16px}.emoji--md{width:24px;height:24px}.emoji--lg{width:32px;height:32px}.emoji--xl{width:48px;height:48px}.emoji--hidden{display:none}`;
5999
+
6000
+ const CDN_BASE = 'https://static.devschile.cl/emoji';
6001
+ const EXTENSIONS = ['png', 'gif', 'jpg', 'svg'];
6002
+ /**
6003
+ * Inline emoji from the devsChile CDN.
6004
+ *
6005
+ * Given a name (or alias from the emoji map), the component resolves the
6006
+ * asset URL and tries each possible file extension until one loads.
6007
+ * Size is controlled via the `size` prop.
6008
+ */
6009
+ class ChEmoji {
6010
+ constructor(hostRef) {
6011
+ registerInstance(this, hostRef);
6012
+ }
6013
+ extIndex = 0;
6014
+ loaded = false;
6015
+ /**
6016
+ * The emoji name or alias, e.g. `"huemul-love"` or `"heart"`.
6017
+ */
6018
+ name;
6019
+ /**
6020
+ * Accessible alt text for the image. Defaults to the `name` prop.
6021
+ */
6022
+ alt;
6023
+ /**
6024
+ * Size of the emoji. Either `sm`, `md`, `lg`, or `xl`.
6025
+ */
6026
+ size = 'md';
6027
+ componentWillLoad() {
6028
+ this.resolveAsset();
6029
+ }
6030
+ handleNameChange() {
6031
+ this.resolveAsset();
6032
+ }
6033
+ resolveAsset() {
6034
+ this.extIndex = 0;
6035
+ this.loaded = false;
6036
+ }
6037
+ get assetName() {
6038
+ return emojiMap[this.name] ?? this.name;
6039
+ }
6040
+ get currentSrc() {
6041
+ return `${CDN_BASE}/${this.assetName}.${EXTENSIONS[this.extIndex]}`;
6042
+ }
6043
+ handleError = () => {
6044
+ if (this.extIndex < EXTENSIONS.length - 1) {
6045
+ this.extIndex++;
6046
+ }
6047
+ };
6048
+ handleLoad = () => {
6049
+ this.loaded = true;
6050
+ };
6051
+ render() {
6052
+ return (hAsync(Host, { key: '494b67e2300a9e1e9bb013aeefa6154cd26984ee' }, hAsync("img", { key: 'f05cacf5cdfdf09ba21a5841a6571741aa86e8b5', class: {
6053
+ 'emoji': true,
6054
+ [`emoji--${this.size}`]: true,
6055
+ 'emoji--hidden': !this.loaded,
6056
+ }, src: this.currentSrc, alt: this.alt ?? this.name, onError: this.handleError, onLoad: this.handleLoad })));
6057
+ }
6058
+ static get watchers() { return {
6059
+ "name": [{
6060
+ "handleNameChange": 0
6061
+ }]
6062
+ }; }
6063
+ static get style() { return chEmojiCss(); }
6064
+ static get cmpMeta() { return {
6065
+ "$flags$": 521,
6066
+ "$tagName$": "ch-emoji",
6067
+ "$members$": {
6068
+ "name": [1],
6069
+ "alt": [1],
6070
+ "size": [1],
6071
+ "extIndex": [32],
6072
+ "loaded": [32]
6073
+ },
6074
+ "$listeners$": undefined,
6075
+ "$lazyBundleId$": "-",
6076
+ "$attrsToReflect$": []
6077
+ }; }
6078
+ }
6079
+
5704
6080
  const chInputCss = () => `:host{display:inline-block;width:100%}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.input{box-sizing:border-box;width:100%;padding:var(--spacing-xl) var(--spacing-3xl);border-radius:var(--radius);border:var(--border-width) solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(var(--effect-blur));font-family:inherit;font-size:inherit;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input::placeholder{color:var(--text-muted)}.input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.input--invalid{border-color:var(--color-status-warning)}.input--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}:host([data-touched]:invalid) .input,:host(:user-invalid) .input{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .input:focus,:host(:user-invalid) .input:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.input:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;
5705
6081
 
5706
6082
  let inputIds = 0;
@@ -5825,7 +6201,7 @@ class ChInput {
5825
6201
  return undefined;
5826
6202
  }
5827
6203
  render() {
5828
- return (hAsync(Host, { key: '8ac09d33deda0e98464108b77ef5e79ca1696e3f' }, this.label && (hAsync("label", { key: 'e66ab373c5234c2fdacf6bbb796b42ed212c3fd8', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: 'ae23f4e30970287927f418aebd3b1f83be6d7738', 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: '8a6ff789e40a0b3595a34c1e94c3d779d4169bf0', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'aa4c0d89748ad91d91f6483fcf9b3641b44ee864', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6204
+ return (hAsync(Host, { key: '8f06015ae952c02467d45bb97d306eb7525a7429' }, this.label && (hAsync("label", { key: '300cf07bfc4e79eb5904140e105d33fa96f09efe', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: '85ab8a0f5a35f421c9af6137bc691e6fb543e940', 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: '4a64db0bc1f03dd756dd55ecf6ff8b95de00dfe1', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'c1c8a0c8f719f53941180ae05b17710a5f7c212b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5829
6205
  }
5830
6206
  static get formAssociated() { return true; }
5831
6207
  static get watchers() { return {
@@ -5921,9 +6297,6 @@ class ChLink {
5921
6297
 
5922
6298
  const chModalCss = () => `.modal{box-sizing:border-box;max-width:min(32rem, calc(100vw - var(--spacing-6xl)));max-height:calc(100vh - var(--spacing-6xl));padding:var(--spacing-5xl);border:var(--border-width) solid var(--border);border-radius:var(--radius);background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-md)}.modal::backdrop{background:var(--color-scrim-default);backdrop-filter:blur(var(--effect-blur))}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--spacing-2xl);margin-bottom:var(--spacing-2xl)}.modal-body{overflow-y:auto}.modal-close{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:var(--spacing-2xs) var(--spacing-md);border:0;border-radius:var(--radius);background:none;color:var(--text-muted);cursor:pointer;font-family:var(--font-heading);font-size:var(--typography-size-lg);line-height:1;transition:background-color var(--duration-normal) var(--easing-default)}.modal-close:hover{background:var(--surface-hover);color:var(--text)}.modal-close:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}@media (pointer: coarse){.modal-close{min-width:44px;min-height:44px}}@media (prefers-reduced-motion: reduce){.modal-close{transition:none}}`;
5923
6299
 
5924
- let openModals = 0;
5925
- let previousOverflow = '';
5926
- let previousPaddingRight = '';
5927
6300
  /**
5928
6301
  * Modal dialog, built on the native `<dialog>` element and opened with
5929
6302
  * `showModal()`.
@@ -6020,31 +6393,14 @@ class ChModal {
6020
6393
  return;
6021
6394
  }
6022
6395
  this.scrollLocked = true;
6023
- openModals += 1;
6024
- if (openModals > 1) {
6025
- return;
6026
- }
6027
- const root = document.documentElement;
6028
- const scrollbar = window.innerWidth - root.clientWidth;
6029
- previousOverflow = root.style.overflow;
6030
- previousPaddingRight = root.style.paddingRight;
6031
- root.style.overflow = 'hidden';
6032
- if (scrollbar > 0) {
6033
- root.style.paddingRight = `${scrollbar}px`;
6034
- }
6396
+ lockScroll();
6035
6397
  }
6036
6398
  unlockScroll() {
6037
6399
  if (!this.scrollLocked) {
6038
6400
  return;
6039
6401
  }
6040
6402
  this.scrollLocked = false;
6041
- openModals -= 1;
6042
- if (openModals > 0) {
6043
- return;
6044
- }
6045
- const root = document.documentElement;
6046
- root.style.overflow = previousOverflow;
6047
- root.style.paddingRight = previousPaddingRight;
6403
+ unlockScroll();
6048
6404
  }
6049
6405
  /**
6050
6406
  * True for a pointer event on the backdrop: the `<dialog>` is the event
@@ -6086,7 +6442,7 @@ class ChModal {
6086
6442
  this.chClose.emit();
6087
6443
  };
6088
6444
  render() {
6089
- return (hAsync(Host, { key: '92edf16d3ff079f72a4785ec9852e3e25218fd35' }, hAsync("dialog", { key: '546fc72a098e1e2d8c05fafa2f11eac19ff83fd3', class: "modal", "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '5a67aa39b6687db89d97533eb54d3a3b663bed56', class: "modal-head" }, hAsync("slot", { key: '2e44b59a7c5e6af4a110a7f86362964ddd30d215', name: "heading" }), this.closeLabel && (hAsync("button", { key: 'ce70baaa876c9f7b82865f0547e8e8cef5d5dfde', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: 'df4536a8851a1ca9d3d2c46d15d18856660a54f6', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: '5de77062134ccd90643df17d7b0d0ddb161f6a5f', class: "modal-body" }, hAsync("slot", { key: '3b64493e9236b311a4b2f5250c5027f866bce8fd' })))));
6445
+ return (hAsync(Host, { key: '2a8271f9606bc98d0b054016a60afbcb36dfaa48' }, hAsync("dialog", { key: '8c866544fd071b98a0b2e58df1690705347a183c', class: "modal", "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: 'fceb7d0e17ecfe639f518c26ea75abf96bf3469e', class: "modal-head" }, hAsync("slot", { key: '89359d0e82b4c5694b8ad76bd7c67b2a1a80f11a', name: "heading" }), this.closeLabel && (hAsync("button", { key: 'edcf61410f993d367613a4bd485c63336ee82619', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: '80ce411b41882508b805aeb1ad0caee07fbbeaaa', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'd0f72191474917a8e4c68c4996a40340c4494651', class: "modal-body" }, hAsync("slot", { key: '46c1d56f416a742176b4be753aa7a8af14bb579d' })))));
6090
6446
  }
6091
6447
  static get watchers() { return {
6092
6448
  "open": [{
@@ -6222,7 +6578,7 @@ class ChRadio {
6222
6578
  }
6223
6579
  render() {
6224
6580
  const groupName = this.name || `${this.groupId}-group`;
6225
- return (hAsync(Host, { key: '1a2562301b8daf00c557764c7f4cdfd54e6e11ef' }, this.label && (hAsync("span", { key: '873958acd3422069572031d59be22c06e3e705a6', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: '860c71f128b6fb84dce3c14d2086fd77cc1a4a1e', 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: '2b358f659d1ef21b1e90ecb67c41d6a0054806e3', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '4e60f0303e42668c4532f076143a47daa216dff8', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6581
+ return (hAsync(Host, { key: '3cd55c205d303df45671dc76756b1fcc78baf760' }, this.label && (hAsync("span", { key: '0e9ab53baa202dff829a46e8674d7f994f9f14b9', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: '584e1e36954f7daad8b71c9b690f7fe42f53bb09', 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: '9030ddc9030ea728d56fa2f5520f9df26df75f0d', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'e2ba85ff960ae61f4b882190e19558f6189c569b', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6226
6582
  }
6227
6583
  static get formAssociated() { return true; }
6228
6584
  static get watchers() { return {
@@ -6261,6 +6617,142 @@ class ChRadio {
6261
6617
  }; }
6262
6618
  }
6263
6619
 
6620
+ const chSegmentedControlCss = () => `:host{display:inline-block;max-width:100%}.group-label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.segmented{display:inline-flex;align-items:stretch;max-width:100%;padding:var(--spacing-2xs);border:var(--border-width) solid var(--border);border-radius:var(--radius-pill);background:var(--surface)}.control{position:relative;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-pill);cursor:pointer;transition:background-color var(--duration-normal) var(--easing-default)}.control:hover:not(.control--disabled){background:var(--surface-hover)}.control--disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.input{position:absolute;inset:0;margin:0;opacity:0;cursor:inherit}.input:checked~.label-text{background:var(--accent);color:var(--color-accent-text);font-weight:var(--typography-weight-semibold)}.input:focus-visible~.label-text{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.label-text{display:block;padding:var(--spacing-2xs) var(--spacing-3xl);border-radius:inherit;font-size:var(--typography-size-sm);white-space:nowrap;transition:background-color var(--duration-normal) var(--easing-default), color var(--duration-normal) var(--easing-default)}.segmented--sm .label-text{padding:var(--spacing-2xs) var(--spacing-2xl);font-size:var(--typography-size-xs)}:host([data-touched]:invalid) .segmented,:host(:user-invalid) .segmented{border-color:var(--color-status-warning)}@media (prefers-reduced-motion: reduce){.control,.label-text{transition:none}}`;
6621
+
6622
+ let segmentedIds = 0;
6623
+ /**
6624
+ * Compact control for switching between a few mutually exclusive options
6625
+ * (all/in/out, movement type, and similar filters).
6626
+ *
6627
+ * Built on native radio inputs sharing a name inside a `role="radiogroup"`,
6628
+ * so arrow-key navigation, a single tab stop, `:focus-visible` and native form
6629
+ * participation come from the platform instead of hand-rolled key handling.
6630
+ * It is form-associated like the other controls: inside a `<form>` the selected
6631
+ * value is submitted under `name`, and `required` with an empty value is
6632
+ * invalid.
6633
+ *
6634
+ * It differs from `ch-radio` in presentation only — segments in a joined track
6635
+ * instead of a vertical list of radio marks — so it is meant for compact
6636
+ * filters, not for long option lists.
6637
+ */
6638
+ class ChSegmentedControl {
6639
+ constructor(hostRef) {
6640
+ registerInstance(this, hostRef);
6641
+ this.chChange = createEvent(this, "chChange");
6642
+ if (hostRef.$hostElement$["s-ei"]) {
6643
+ this.internals = hostRef.$hostElement$["s-ei"];
6644
+ }
6645
+ else {
6646
+ this.internals = hostRef.$hostElement$.attachInternals();
6647
+ hostRef.$hostElement$["s-ei"] = this.internals;
6648
+ }
6649
+ }
6650
+ groupId = `ch-segmented-${++segmentedIds}`;
6651
+ labelId = `${this.groupId}-label`;
6652
+ initialValue;
6653
+ internals;
6654
+ formDisabled = false;
6655
+ get host() { return getElement(this); }
6656
+ /**
6657
+ * Visible label describing the group, associated with it via
6658
+ * `aria-labelledby`.
6659
+ */
6660
+ label;
6661
+ /**
6662
+ * The list of options rendered as segments.
6663
+ */
6664
+ options = [];
6665
+ /**
6666
+ * The value of the selected option.
6667
+ */
6668
+ value;
6669
+ /**
6670
+ * The size of the segments. Either `sm` or `md`.
6671
+ */
6672
+ size = 'md';
6673
+ /**
6674
+ * The name shared by all radio inputs in the group, also used to submit the
6675
+ * value. Defaults to an auto-generated group name so options are mutually
6676
+ * exclusive out of the box.
6677
+ */
6678
+ name;
6679
+ /**
6680
+ * Whether all segments are disabled.
6681
+ */
6682
+ disabled = false;
6683
+ /**
6684
+ * Whether a value is required.
6685
+ */
6686
+ required = false;
6687
+ /**
6688
+ * Emitted when a new option is selected, with the selected value.
6689
+ */
6690
+ chChange;
6691
+ handleChange = (ev) => {
6692
+ this.value = ev.target.value;
6693
+ this.chChange.emit(this.value);
6694
+ };
6695
+ syncForm() {
6696
+ const internals = this.internals;
6697
+ if (typeof internals?.setFormValue !== 'function') {
6698
+ return;
6699
+ }
6700
+ internals.setFormValue(this.value ?? null);
6701
+ const flags = {};
6702
+ if (this.required && !this.value) {
6703
+ flags.valueMissing = true;
6704
+ }
6705
+ internals.setValidity(flags, flags.valueMissing ? 'Please fill out this field.' : undefined);
6706
+ }
6707
+ componentDidLoad() {
6708
+ this.initialValue = this.value;
6709
+ this.syncForm();
6710
+ this.host.addEventListener('change', this.markTouched);
6711
+ this.host.addEventListener('focusout', this.markTouched);
6712
+ this.host.addEventListener('invalid', this.markTouched);
6713
+ }
6714
+ markTouched = () => {
6715
+ this.host.setAttribute('data-touched', '');
6716
+ };
6717
+ formResetCallback() {
6718
+ this.value = this.initialValue;
6719
+ }
6720
+ formDisabledCallback(isDisabled) {
6721
+ this.formDisabled = isDisabled;
6722
+ }
6723
+ render() {
6724
+ const groupName = this.name || `${this.groupId}-group`;
6725
+ return (hAsync(Host, { key: 'fd588544d9cdebaaeb1961f4ecb5c5630e8e4699' }, this.label && (hAsync("span", { key: '58ade8d7858d6e12d71778bc07337ab485be383d', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: 'b872fc7e4a2dc678dbc1c9cf7c30d66ce24ebcac', 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)))))));
6726
+ }
6727
+ static get formAssociated() { return true; }
6728
+ static get watchers() { return {
6729
+ "value": [{
6730
+ "syncForm": 0
6731
+ }],
6732
+ "required": [{
6733
+ "syncForm": 0
6734
+ }]
6735
+ }; }
6736
+ static get style() { return chSegmentedControlCss(); }
6737
+ static get cmpMeta() { return {
6738
+ "$flags$": 585,
6739
+ "$tagName$": "ch-segmented-control",
6740
+ "$members$": {
6741
+ "label": [1],
6742
+ "options": [16],
6743
+ "value": [1025],
6744
+ "size": [1],
6745
+ "name": [513],
6746
+ "disabled": [516],
6747
+ "required": [516],
6748
+ "formDisabled": [32]
6749
+ },
6750
+ "$listeners$": undefined,
6751
+ "$lazyBundleId$": "-",
6752
+ "$attrsToReflect$": [["name", "name"], ["disabled", "disabled"], ["required", "required"]]
6753
+ }; }
6754
+ }
6755
+
6264
6756
  const chSelectCss = () => `:host{display:inline-block;width:100%}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.select{box-sizing:border-box;width:100%;padding:var(--spacing-xl) var(--spacing-3xl);border-radius:var(--radius);border:var(--border-width) solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(var(--effect-blur));font-family:inherit;font-size:inherit;cursor:pointer;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.select:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.select--invalid{border-color:var(--color-status-warning)}.select--invalid:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}:host([data-touched]:invalid) .select,:host(:user-invalid) .select{border-color:var(--color-status-warning)}:host([data-touched]:invalid) .select:focus,:host(:user-invalid) .select:focus{border-color:var(--color-status-warning);box-shadow:0 0 0 3px var(--color-status-warning-background)}.select:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.select option{background:var(--bg);color:var(--text)}.hint,.error{margin:var(--spacing-sm) 0 0;font-size:var(--typography-size-sm);color:var(--text-muted)}.error{color:var(--color-status-warning)}`;
6265
6757
 
6266
6758
  let selectIds = 0;
@@ -6376,7 +6868,7 @@ class ChSelect {
6376
6868
  return undefined;
6377
6869
  }
6378
6870
  render() {
6379
- return (hAsync(Host, { key: 'b3336d43945543f23e903df41eaefef23fde6ff4' }, this.label && (hAsync("label", { key: '1928d359fce76001c24c969ccc59c5bc7c67e676', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: '7896282971021ef35d9bd3926335e02bc0efc804', 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: '4acfff84e5616092c6a8d0741cdf6bf959a4cfee', 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: 'cb079b5ed1a64e53b6bc3ba07f63dee0baa0f78f', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '87e730d857a4a8c44378c98759ac8ecc7cfde366', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6871
+ return (hAsync(Host, { key: 'bf1cb02b17b6c31297e1b77e9cad6488c9fafd1c' }, this.label && (hAsync("label", { key: '837158a8827a3f9af3a58a14c104f15919058ae0', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: '4622f105d8852a2658b917f1329c3c71c791547a', 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: '1d3ea13f0f9f8f0c7b3b5d0c3a5a36cb465937b2', 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: 'd73ff8034dfe5546f7f77417d73e91a0fc763321', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'fa487e405f01ae8473d442b1b94ea1cc9eb07d31', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6380
6872
  }
6381
6873
  static get formAssociated() { return true; }
6382
6874
  static get watchers() { return {
@@ -6445,7 +6937,7 @@ class ChSpinner {
6445
6937
  label;
6446
6938
  render() {
6447
6939
  const labelled = Boolean(this.label);
6448
- return (hAsync(Host, { key: 'dc7c7e19f6a6878680555b0d7dbd84f5dc5774c8' }, hAsync("span", { key: 'd29d5f3344ae578d2a28382b13b45b901d41e52b', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
6940
+ return (hAsync(Host, { key: 'cdb44d362b4f366703c13816d7c72967e03709b1' }, hAsync("span", { key: '5368a6f9cef9ff6eafc4ac0323e2cc01da6e627f', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
6449
6941
  }
6450
6942
  static get style() { return chSpinnerCss(); }
6451
6943
  static get cmpMeta() { return {
@@ -6572,7 +7064,7 @@ class ChSwitch {
6572
7064
  return undefined;
6573
7065
  }
6574
7066
  render() {
6575
- return (hAsync(Host, { key: '1f868bf2f0a95e5eb0b0013de2a1414034a0af78' }, hAsync("label", { key: 'bfa3ff8ca66a9c367882808718b882bb1679d5fd', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '49d10196b6df781b1e76d0b33118cc21294136f4', 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: '79948dc41567e2c52023e1c0ddd17888b4a04335', class: "track" }, hAsync("span", { key: 'd07b297ff5edd963954e4ab2b7e678176a1823f6', class: "thumb" })), this.label && hAsync("span", { key: '33695230dab7fc68c0dc1b06cc21b7f8bf7bb1ec', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '3be08bad4526e8c1adde62a154654079b17d6910', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '623cff85e039ecb640238d9e41fd3aa82c671ddd', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7067
+ return (hAsync(Host, { key: '0aae2ddd370936be88af621aba79507531c9ca46' }, hAsync("label", { key: '70a97960763688fbdcad1807468ce647c33c6601', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '6addc2227c9f8a07f9695f1c40a6cf1667a097e6', 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: '06dc52e18e506a49bf188d4d1562c73d1e2b141c', class: "track" }, hAsync("span", { key: 'c7072be8d8a38472aa88e2f7ae1db4c79960ccda', class: "thumb" })), this.label && hAsync("span", { key: 'b3b24e569e5d46d51600fab3546c5d4bf5aca515', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '0b7bb4fff74be16b96d18af71ef46b0d6dec7984', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'b8bfccb23ee16e3885508dbb23052ebc297c36de', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6576
7068
  }
6577
7069
  static get formAssociated() { return true; }
6578
7070
  static get watchers() { return {
@@ -6695,7 +7187,7 @@ class ChTabs {
6695
7187
  }
6696
7188
  render() {
6697
7189
  const active = this.activeValue;
6698
- return (hAsync(Host, { key: '0467e7ea24884d4c19c33b736a07303569dfaa3b' }, hAsync("div", { key: '8ad451816ef31809c82486f3c9dd36b6e89e77e5', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
7190
+ return (hAsync(Host, { key: '8b0757158cca856bd984e99b86b9f1c3a79e1dfb' }, hAsync("div", { key: 'e1ecf05df41e26787ed3702c113a393edcc6dea4', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
6699
7191
  const selected = tab.value === active;
6700
7192
  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));
6701
7193
  })), 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}` }))))));
@@ -6840,7 +7332,7 @@ class ChTextarea {
6840
7332
  return undefined;
6841
7333
  }
6842
7334
  render() {
6843
- return (hAsync(Host, { key: 'de54ff9593c43939689cfbe2e13de538fcc7c022' }, this.label && (hAsync("label", { key: 'bfab3a6e82c1dbb03bd8f3477e6def631eca2e26', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: 'a2de483052ac7849f9f7ff61b4052d068cf7fcf6', 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: '80e2a1a36274eaff1609b60882dee02c34138687', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: 'b086d35f6579c56debdb8445aefa79ae953c8734', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
7335
+ return (hAsync(Host, { key: '35cdb2ec4cb35cb33492c4827f6f69251eea64be' }, this.label && (hAsync("label", { key: '157579852d461707fddc660f33acd21768f7d3fe', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: 'bf43052c6c66c24a906f6e4fae4256675a1b9f89', 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: '3dcacf048dccc3474d9397f917da32b334a072fd', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '22e706a1e0b17112b39e296d267d33a1bced06ee', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6844
7336
  }
6845
7337
  static get formAssociated() { return true; }
6846
7338
  static get watchers() { return {
@@ -6965,7 +7457,7 @@ class ChTooltip {
6965
7457
  trigger.setAttribute('aria-describedby', content.id);
6966
7458
  };
6967
7459
  render() {
6968
- return (hAsync(Host, { key: '654d4a12f84c94e014691e911e7c63c6c45b8755' }, hAsync("span", { key: '726269e02fedc37efc39f1561d8b9baf83d6a4cc', class: "anchor" }, hAsync("slot", { key: '876cb19249032d6d1c66f22bd2c255683b6a7f66', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '7436eb75b40b33d0b6c8ce194245d4a08a29facb', class: { 'bubble': true, [`bubble--${this.placement}`]: true, 'bubble--visible': this.visible } }, hAsync("slot", { key: '24648cc6078d61803793df011058da9515b466b5', name: "content", onSlotchange: this.associate })))));
7460
+ return (hAsync(Host, { key: '89e1b0de9e5d2a33edba2cc0b479788694c5a202' }, hAsync("span", { key: 'c7a31597ba6fd6a7c68cdd74cf8170d14b9e85ba', class: "anchor" }, hAsync("slot", { key: 'eac54ebeffa8ccbfdd0c4e42e26cd4c40e81d649', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '326581a3f64a2165a9031818782a50de7fe05fa7', class: { 'bubble': true, [`bubble--${this.placement}`]: true, 'bubble--visible': this.visible } }, hAsync("slot", { key: '739d4b50a611cc4db8fdc802f2f39deb68f974eb', name: "content", onSlotchange: this.associate })))));
6969
7461
  }
6970
7462
  static get style() { return chTooltipCss(); }
6971
7463
  static get cmpMeta() { return {
@@ -6991,10 +7483,13 @@ registerComponents([
6991
7483
  ChCard,
6992
7484
  ChCheckbox,
6993
7485
  ChDivider,
7486
+ ChDrawer,
7487
+ ChEmoji,
6994
7488
  ChInput,
6995
7489
  ChLink,
6996
7490
  ChModal,
6997
7491
  ChRadio,
7492
+ ChSegmentedControl,
6998
7493
  ChSelect,
6999
7494
  ChSpinner,
7000
7495
  ChSwitch,
@@ -7102,7 +7597,7 @@ var NAMESPACE = (
7102
7597
  );
7103
7598
 
7104
7599
  /*
7105
- Stencil Hydrate Runner v4.44.0 | MIT Licensed | https://stenciljs.com
7600
+ Stencil Hydrate Runner v4.44.2 | MIT Licensed | https://stenciljs.com
7106
7601
  */
7107
7602
  var __create = Object.create;
7108
7603
  var __defProp = Object.defineProperty;