@devschile/chucao 2.0.0 → 2.1.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 (116) 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-75184fe1.entry.js → p-11083711.entry.js} +2 -2
  6. package/dist/chucao/{p-f04d2f75.entry.js → p-121fbfc8.entry.js} +2 -2
  7. package/dist/chucao/{p-10658dc9.entry.js → p-1b1e56cd.entry.js} +2 -2
  8. package/dist/chucao/{p-e48912c7.entry.js → p-2ab4a6a8.entry.js} +2 -2
  9. package/dist/chucao/{p-19dde4f9.entry.js → p-4bc8e098.entry.js} +2 -2
  10. package/dist/chucao/{p-2e20c7a1.entry.js → p-5fe8bfff.entry.js} +2 -2
  11. package/dist/chucao/p-9bb81a65.entry.js +2 -0
  12. package/dist/chucao/p-9bb81a65.entry.js.map +1 -0
  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-66dce533.entry.js → p-a955eebf.entry.js} +2 -2
  16. package/dist/chucao/{p-96c852f5.entry.js → p-d5a9e340.entry.js} +2 -2
  17. package/dist/chucao/{p-f62e1da2.entry.js → p-ff5f5c1f.entry.js} +2 -2
  18. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  19. package/dist/cjs/ch-alert_8.cjs.entry.js +6 -6
  20. package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
  21. package/dist/cjs/ch-divider.cjs.entry.js +1 -1
  22. package/dist/cjs/ch-emoji.cjs.entry.js +104 -0
  23. package/dist/cjs/ch-emoji.cjs.entry.js.map +1 -0
  24. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  25. package/dist/cjs/ch-modal.cjs.entry.js +2 -2
  26. package/dist/cjs/ch-radio.cjs.entry.js +2 -2
  27. package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
  28. package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
  29. package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
  30. package/dist/cjs/chucao.cjs.js +3 -3
  31. package/dist/cjs/chucao.cjs.js.map +1 -1
  32. package/dist/cjs/{index-C9Abf0td.js → index-C9cpLteP.js} +15 -8
  33. package/dist/cjs/index-C9cpLteP.js.map +1 -0
  34. package/dist/cjs/loader.cjs.js +2 -2
  35. package/dist/collection/collection-manifest.json +2 -1
  36. package/dist/collection/components/ch-card/ch-card.js +1 -1
  37. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  38. package/dist/collection/components/ch-emoji/ch-emoji.css +33 -0
  39. package/dist/collection/components/ch-emoji/ch-emoji.js +151 -0
  40. package/dist/collection/components/ch-emoji/ch-emoji.js.map +1 -0
  41. package/dist/collection/components/ch-input/ch-input.js +1 -1
  42. package/dist/collection/components/ch-modal/ch-modal.js +1 -1
  43. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  44. package/dist/collection/components/ch-select/ch-select.js +1 -1
  45. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  46. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  47. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  48. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  49. package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
  50. package/dist/components/ch-accordion.js +1 -1
  51. package/dist/components/ch-alert.js +1 -1
  52. package/dist/components/ch-badge.js +1 -1
  53. package/dist/components/ch-button.js +1 -1
  54. package/dist/components/ch-card.js +1 -1
  55. package/dist/components/ch-checkbox.js +1 -1
  56. package/dist/components/ch-divider.js +1 -1
  57. package/dist/components/ch-emoji.d.ts +11 -0
  58. package/dist/components/ch-emoji.js +2 -0
  59. package/dist/components/ch-emoji.js.map +1 -0
  60. package/dist/components/ch-input.js +1 -1
  61. package/dist/components/ch-link.js +1 -1
  62. package/dist/components/ch-modal.js +1 -1
  63. package/dist/components/ch-radio.js +1 -1
  64. package/dist/components/ch-select.js +1 -1
  65. package/dist/components/ch-spinner.js +1 -1
  66. package/dist/components/ch-switch.js +1 -1
  67. package/dist/components/ch-tabs.js +1 -1
  68. package/dist/components/ch-textarea.js +1 -1
  69. package/dist/components/ch-tooltip.js +1 -1
  70. package/dist/components/index.js +1 -1
  71. package/dist/components/{p-DL-bL54o.js → p-BhAZrOxf.js} +2 -2
  72. package/dist/components/p-BhAZrOxf.js.map +1 -0
  73. package/dist/esm/ch-accordion.entry.js +1 -1
  74. package/dist/esm/ch-alert_8.entry.js +6 -6
  75. package/dist/esm/ch-checkbox.entry.js +2 -2
  76. package/dist/esm/ch-divider.entry.js +1 -1
  77. package/dist/esm/ch-emoji.entry.js +102 -0
  78. package/dist/esm/ch-emoji.entry.js.map +1 -0
  79. package/dist/esm/ch-link.entry.js +1 -1
  80. package/dist/esm/ch-modal.entry.js +2 -2
  81. package/dist/esm/ch-radio.entry.js +2 -2
  82. package/dist/esm/ch-tabs.entry.js +2 -2
  83. package/dist/esm/ch-textarea.entry.js +2 -2
  84. package/dist/esm/ch-tooltip.entry.js +2 -2
  85. package/dist/esm/chucao.js +4 -4
  86. package/dist/esm/chucao.js.map +1 -1
  87. package/dist/esm/{index-BaKXvAYc.js → index-DWC12BJ-.js} +15 -8
  88. package/dist/esm/index-DWC12BJ-.js.map +1 -0
  89. package/dist/esm/loader.js +3 -3
  90. package/dist/types/components/ch-emoji/ch-emoji.d.ts +32 -0
  91. package/dist/types/components.d.ts +72 -0
  92. package/dist/types/stencil-public-runtime.d.ts +1 -0
  93. package/dist-react/components.d.ts +3 -0
  94. package/dist-react/components.js +9 -0
  95. package/dist-react/components.ts +12 -0
  96. package/dist-vue/index.d.ts +1 -0
  97. package/dist-vue/index.js +6 -0
  98. package/dist-vue/index.ts +8 -0
  99. package/hydrate/index.js +135 -17
  100. package/hydrate/index.mjs +135 -17
  101. package/loader/index.d.ts +1 -1
  102. package/package.json +2 -1
  103. package/dist/chucao/p-BaKXvAYc.js.map +0 -1
  104. package/dist/cjs/index-C9Abf0td.js.map +0 -1
  105. package/dist/components/p-DL-bL54o.js.map +0 -1
  106. package/dist/esm/index-BaKXvAYc.js.map +0 -1
  107. /package/dist/chucao/{p-a0ec231a.entry.js.map → p-04dbcfa0.entry.js.map} +0 -0
  108. /package/dist/chucao/{p-75184fe1.entry.js.map → p-11083711.entry.js.map} +0 -0
  109. /package/dist/chucao/{p-f04d2f75.entry.js.map → p-121fbfc8.entry.js.map} +0 -0
  110. /package/dist/chucao/{p-10658dc9.entry.js.map → p-1b1e56cd.entry.js.map} +0 -0
  111. /package/dist/chucao/{p-e48912c7.entry.js.map → p-2ab4a6a8.entry.js.map} +0 -0
  112. /package/dist/chucao/{p-19dde4f9.entry.js.map → p-4bc8e098.entry.js.map} +0 -0
  113. /package/dist/chucao/{p-2e20c7a1.entry.js.map → p-5fe8bfff.entry.js.map} +0 -0
  114. /package/dist/chucao/{p-66dce533.entry.js.map → p-a955eebf.entry.js.map} +0 -0
  115. /package/dist/chucao/{p-96c852f5.entry.js.map → p-d5a9e340.entry.js.map} +0 -0
  116. /package/dist/chucao/{p-f62e1da2.entry.js.map → p-ff5f5c1f.entry.js.map} +0 -0
package/hydrate/index.js CHANGED
@@ -135,7 +135,7 @@ const NAMESPACE = 'chucao';
135
135
  const BUILD = /* chucao */ { hotModuleReplacement: false, slotRelocation: true, state: true, updatable: true};
136
136
 
137
137
  /*
138
- Stencil Hydrate Platform v4.44.0 | MIT Licensed | https://stenciljs.com
138
+ Stencil Hydrate Platform v4.44.2 | MIT Licensed | https://stenciljs.com
139
139
  */
140
140
  var __create = Object.create;
141
141
  var __defProp = Object.defineProperty;
@@ -1917,7 +1917,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1917
1917
  }
1918
1918
  }
1919
1919
  if (newValue == null || newValue === false) {
1920
- if (newValue !== false || elm.getAttribute(memberName) === "") {
1920
+ if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
1921
1921
  {
1922
1922
  elm.removeAttribute(memberName);
1923
1923
  }
@@ -1930,6 +1930,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1930
1930
  }
1931
1931
  }
1932
1932
  };
1933
+ var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
1934
+ var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
1933
1935
  var parseClassListRegex = /\s/;
1934
1936
  var parseClassList = (value) => {
1935
1937
  if (typeof value === "object" && value && "baseVal" in value) {
@@ -2383,7 +2385,7 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
2383
2385
  return newNode;
2384
2386
  }
2385
2387
  }
2386
- if (parent.__insertBefore) {
2388
+ if ((parent == null ? void 0 : parent.__insertBefore)) {
2387
2389
  return parent.__insertBefore(newNode, reference);
2388
2390
  } else {
2389
2391
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
@@ -2801,8 +2803,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
2801
2803
  }
2802
2804
  }
2803
2805
  };
2804
-
2805
- // src/runtime/proxy-component.ts
2806
2806
  var proxyComponent = (Cstr, cmpMeta, flags) => {
2807
2807
  var _a2;
2808
2808
  const prototype = Cstr.prototype;
@@ -5514,7 +5514,7 @@ class ChCard {
5514
5514
  registerInstance(this, hostRef);
5515
5515
  }
5516
5516
  render() {
5517
- return (hAsync(Host, { key: '1541ba4361c996716356fb87cdcc73b1260d4c6a' }, hAsync("div", { key: '924070eeb79f6c8f8e6362772bbab0dcc1c6f315', class: "card" }, hAsync("slot", { key: '2fde36426395a519cb1ebe265ba0eef3aaf6ff38' }))));
5517
+ return (hAsync(Host, { key: 'de570a460eff697eb242ef56fcedd5b400d6b03f' }, hAsync("div", { key: '3350619356a929c5d922948d52d6635420dc8547', class: "card" }, hAsync("slot", { key: 'b50679202b5fea142702de0babf62587186d4dc8' }))));
5518
5518
  }
5519
5519
  static get style() { return chCardCss(); }
5520
5520
  static get cmpMeta() { return {
@@ -5638,7 +5638,7 @@ class ChCheckbox {
5638
5638
  return undefined;
5639
5639
  }
5640
5640
  render() {
5641
- 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))));
5641
+ return (hAsync(Host, { key: 'ad83b999d4dbafbd7b6f2369bae8fbce8e068cad' }, hAsync("label", { key: 'e5927ad9d76db7cd9418debe8e635767b597e27a', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: '93c49822bf5a470d67a7077354adcd9144643843', 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: 'da90747e3339879a744569c98befed94507bebdd', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '3c10c9e29a943bc12983d4ef6b9fa00d95293c80', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '76e4a8debadd36dae475bd2439410c0f2a82cb62', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5642
5642
  }
5643
5643
  static get formAssociated() { return true; }
5644
5644
  static get watchers() { return {
@@ -5703,6 +5703,123 @@ class ChDivider {
5703
5703
  }; }
5704
5704
  }
5705
5705
 
5706
+ const aaaa = "aaaa";
5707
+ const ameno = "ameno";
5708
+ const heart = "huemul-love";
5709
+ const love = "huemul-love";
5710
+ const humo = "humo";
5711
+ const hypnotoad = "hypnotoad";
5712
+ const lmao = "lmao";
5713
+ const loading = "loading";
5714
+ const loco = "loco";
5715
+ const loco2 = "loco2";
5716
+ const lol = "lol";
5717
+ const lol2 = "lol2";
5718
+ const monea = "monea";
5719
+ const negative = "negative";
5720
+ var emojiMap = {
5721
+ aaaa: aaaa,
5722
+ ameno: ameno,
5723
+ "huemul-huaso": "huemul-huaso",
5724
+ "huemul-love": "huemul-love",
5725
+ heart: heart,
5726
+ love: love,
5727
+ "huemul-trusted": "huemul-trusted",
5728
+ humo: humo,
5729
+ hypnotoad: hypnotoad,
5730
+ "lets-fucking-go": "lets-fucking-go",
5731
+ lmao: lmao,
5732
+ loading: loading,
5733
+ loco: loco,
5734
+ loco2: loco2,
5735
+ lol: lol,
5736
+ lol2: lol2,
5737
+ monea: monea,
5738
+ negative: negative
5739
+ };
5740
+
5741
+ 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}`;
5742
+
5743
+ const CDN_BASE = 'https://static.devschile.cl/emoji';
5744
+ const EXTENSIONS = ['png', 'gif', 'jpg', 'svg'];
5745
+ /**
5746
+ * Inline emoji from the devsChile CDN.
5747
+ *
5748
+ * Given a name (or alias from the emoji map), the component resolves the
5749
+ * asset URL and tries each possible file extension until one loads.
5750
+ * Size is controlled via the `size` prop.
5751
+ */
5752
+ class ChEmoji {
5753
+ constructor(hostRef) {
5754
+ registerInstance(this, hostRef);
5755
+ }
5756
+ extIndex = 0;
5757
+ loaded = false;
5758
+ /**
5759
+ * The emoji name or alias, e.g. `"huemul-love"` or `"heart"`.
5760
+ */
5761
+ name;
5762
+ /**
5763
+ * Accessible alt text for the image. Defaults to the `name` prop.
5764
+ */
5765
+ alt;
5766
+ /**
5767
+ * Size of the emoji. Either `sm`, `md`, `lg`, or `xl`.
5768
+ */
5769
+ size = 'md';
5770
+ componentWillLoad() {
5771
+ this.resolveAsset();
5772
+ }
5773
+ handleNameChange() {
5774
+ this.resolveAsset();
5775
+ }
5776
+ resolveAsset() {
5777
+ this.extIndex = 0;
5778
+ this.loaded = false;
5779
+ }
5780
+ get assetName() {
5781
+ return emojiMap[this.name] ?? this.name;
5782
+ }
5783
+ get currentSrc() {
5784
+ return `${CDN_BASE}/${this.assetName}.${EXTENSIONS[this.extIndex]}`;
5785
+ }
5786
+ handleError = () => {
5787
+ if (this.extIndex < EXTENSIONS.length - 1) {
5788
+ this.extIndex++;
5789
+ }
5790
+ };
5791
+ handleLoad = () => {
5792
+ this.loaded = true;
5793
+ };
5794
+ render() {
5795
+ return (hAsync(Host, { key: 'bfc646f047dae03aa8079825012305d7beb1fa6d' }, hAsync("img", { key: 'c397cc1f928c6871df10adc1f43874738e1cbf33', class: {
5796
+ 'emoji': true,
5797
+ [`emoji--${this.size}`]: true,
5798
+ 'emoji--hidden': !this.loaded,
5799
+ }, src: this.currentSrc, alt: this.alt ?? this.name, onError: this.handleError, onLoad: this.handleLoad })));
5800
+ }
5801
+ static get watchers() { return {
5802
+ "name": [{
5803
+ "handleNameChange": 0
5804
+ }]
5805
+ }; }
5806
+ static get style() { return chEmojiCss(); }
5807
+ static get cmpMeta() { return {
5808
+ "$flags$": 521,
5809
+ "$tagName$": "ch-emoji",
5810
+ "$members$": {
5811
+ "name": [1],
5812
+ "alt": [1],
5813
+ "size": [1],
5814
+ "extIndex": [32],
5815
+ "loaded": [32]
5816
+ },
5817
+ "$listeners$": undefined,
5818
+ "$lazyBundleId$": "-",
5819
+ "$attrsToReflect$": []
5820
+ }; }
5821
+ }
5822
+
5706
5823
  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)}`;
5707
5824
 
5708
5825
  let inputIds = 0;
@@ -5827,7 +5944,7 @@ class ChInput {
5827
5944
  return undefined;
5828
5945
  }
5829
5946
  render() {
5830
- 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))));
5947
+ return (hAsync(Host, { key: '8a4b7cf5b80097afb849e2de9620fdd205774923' }, this.label && (hAsync("label", { key: '7400206e6c27d61e7b9afadeba8a2131059af59a', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: '2c4fd9215d5b21f28d57a1c49eeaa64224e21e05', 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: '6e6a381f81442622784afc480eb79327ae8a8525', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '743215633ca399d801c813194b054d40631b7be6', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5831
5948
  }
5832
5949
  static get formAssociated() { return true; }
5833
5950
  static get watchers() { return {
@@ -6088,7 +6205,7 @@ class ChModal {
6088
6205
  this.chClose.emit();
6089
6206
  };
6090
6207
  render() {
6091
- 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' })))));
6208
+ return (hAsync(Host, { key: '8f5f8c340291feb4385076bfdefc02a849e08efe' }, hAsync("dialog", { key: 'e435367c1e3dc5c7e8102f6ac76792394f5097fa', class: "modal", "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '05a0d306dc7e3f917c47de28ed6359280c0472b8', class: "modal-head" }, hAsync("slot", { key: '79e25ed41f98a5ceee2dca9afc200d8980d9f284', name: "heading" }), this.closeLabel && (hAsync("button", { key: '0620b914cb51cae7ab74f2ccccb25e9fc324811f', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: 'e2a1e0ec6c1d1cbdb2de684bfe4c7e0ed07ceaee', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'af254d18e1538ea5dac06c421ba03d897ddf057d', class: "modal-body" }, hAsync("slot", { key: '645876d63f275108a2a9d27f563bb6918dcb9deb' })))));
6092
6209
  }
6093
6210
  static get watchers() { return {
6094
6211
  "open": [{
@@ -6224,7 +6341,7 @@ class ChRadio {
6224
6341
  }
6225
6342
  render() {
6226
6343
  const groupName = this.name || `${this.groupId}-group`;
6227
- 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))));
6344
+ return (hAsync(Host, { key: '2d0f02cbeae89b8c60664825f3885bbeeafd896a' }, this.label && (hAsync("span", { key: 'c32fd25be5eaf0d05c2d8d6aae01dda281f4b952', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: 'bd05a360ad1fd794c95d8066dbb93300152a88dc', 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: '8c451f8d166c6002a4f30bfb72acd6b863ec38c2', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '8ac12f60e463c908dff76d64d7ae0e216ed51489', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6228
6345
  }
6229
6346
  static get formAssociated() { return true; }
6230
6347
  static get watchers() { return {
@@ -6378,7 +6495,7 @@ class ChSelect {
6378
6495
  return undefined;
6379
6496
  }
6380
6497
  render() {
6381
- 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))));
6498
+ return (hAsync(Host, { key: 'ffca23504c723f60f7430e6db2e1fa00db1fd4d8' }, this.label && (hAsync("label", { key: '697998ec67f01f3ca2849b1fb2aa88790d98010b', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: 'f344d240f38dd123bdfd2d34cd15fbc7b5ae0a2c', 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: '34200e96dad92ed55632f0430abde5bc34cf6e6a', 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: '55690dbf57cad7c974d0bf1b8eedb733ddc5b571', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '7d4598b112d21ebc96ac04bca553f63dd5825996', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6382
6499
  }
6383
6500
  static get formAssociated() { return true; }
6384
6501
  static get watchers() { return {
@@ -6447,7 +6564,7 @@ class ChSpinner {
6447
6564
  label;
6448
6565
  render() {
6449
6566
  const labelled = Boolean(this.label);
6450
- 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' })));
6567
+ return (hAsync(Host, { key: '9182eecf066be099714a870fa601f744362e697d' }, hAsync("span", { key: 'd67f2572ab80facadd4d49043a892b16816b4fef', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
6451
6568
  }
6452
6569
  static get style() { return chSpinnerCss(); }
6453
6570
  static get cmpMeta() { return {
@@ -6574,7 +6691,7 @@ class ChSwitch {
6574
6691
  return undefined;
6575
6692
  }
6576
6693
  render() {
6577
- 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))));
6694
+ return (hAsync(Host, { key: 'c1a98e9b04710ed014a8c18d6591fee427df0033' }, hAsync("label", { key: '4b14ec7d7709090235b0e9b74a45d4c76dd52f25', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '4f2c9472b3bf34db582a94e307cc8b47b5dfcd38', 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: '6b2c20c6242178bba39f105a535bb12fc5198cd0', class: "track" }, hAsync("span", { key: '4ae0e675ce335417b867f6b688ec5545769b2d2c', class: "thumb" })), this.label && hAsync("span", { key: 'd5383fac3349441104c0926a6c88078b85bda05c', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '41ed07a95f8d627fb4ed8c903b6ba5ee39baa6a5', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '71cf8526dec44e2099235e3bc744db2aa53d70f0', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6578
6695
  }
6579
6696
  static get formAssociated() { return true; }
6580
6697
  static get watchers() { return {
@@ -6697,7 +6814,7 @@ class ChTabs {
6697
6814
  }
6698
6815
  render() {
6699
6816
  const active = this.activeValue;
6700
- 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 => {
6817
+ return (hAsync(Host, { key: '7c6b34c34e73f034eb03473ad9941eade91317c3' }, hAsync("div", { key: '601bae37f4fb3e5e0d07fb7a91968171b0bd18a3', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
6701
6818
  const selected = tab.value === active;
6702
6819
  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));
6703
6820
  })), 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}` }))))));
@@ -6842,7 +6959,7 @@ class ChTextarea {
6842
6959
  return undefined;
6843
6960
  }
6844
6961
  render() {
6845
- 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))));
6962
+ return (hAsync(Host, { key: '6e738612514b114571c1edfad0fb85e2228653a8' }, this.label && (hAsync("label", { key: '3b58b49a02dd532430cfd9096c326288a5120d6d', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: '0922df038ea6ce6d1567ffe8d02c5b65534bec7a', 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: '6d3518345b9afaad782741a854053ed2b32e31db', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '8a26edd5a1ef3647133813003fb1a53b1a5f99d6', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6846
6963
  }
6847
6964
  static get formAssociated() { return true; }
6848
6965
  static get watchers() { return {
@@ -6967,7 +7084,7 @@ class ChTooltip {
6967
7084
  trigger.setAttribute('aria-describedby', content.id);
6968
7085
  };
6969
7086
  render() {
6970
- 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 })))));
7087
+ return (hAsync(Host, { key: 'cebea73595fe515f952e60c72c42e92888e57133' }, hAsync("span", { key: 'c2eadb27d9d89b19d821ae1da93dcb7125d07bb0', class: "anchor" }, hAsync("slot", { key: '9eccdd49e741ffaed3d7d95c54697666e6e13cf0', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '0842bbc4061da0be353e58bc897548e75c730e43', class: { 'bubble': true, [`bubble--${this.placement}`]: true, 'bubble--visible': this.visible } }, hAsync("slot", { key: '43812aac1e6e2853057e6d34f484906a17b16a5a', name: "content", onSlotchange: this.associate })))));
6971
7088
  }
6972
7089
  static get style() { return chTooltipCss(); }
6973
7090
  static get cmpMeta() { return {
@@ -6993,6 +7110,7 @@ registerComponents([
6993
7110
  ChCard,
6994
7111
  ChCheckbox,
6995
7112
  ChDivider,
7113
+ ChEmoji,
6996
7114
  ChInput,
6997
7115
  ChLink,
6998
7116
  ChModal,
@@ -7104,7 +7222,7 @@ var NAMESPACE = (
7104
7222
  );
7105
7223
 
7106
7224
  /*
7107
- Stencil Hydrate Runner v4.44.0 | MIT Licensed | https://stenciljs.com
7225
+ Stencil Hydrate Runner v4.44.2 | MIT Licensed | https://stenciljs.com
7108
7226
  */
7109
7227
  var __create = Object.create;
7110
7228
  var __defProp = Object.defineProperty;
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;
@@ -5512,7 +5512,7 @@ class ChCard {
5512
5512
  registerInstance(this, hostRef);
5513
5513
  }
5514
5514
  render() {
5515
- return (hAsync(Host, { key: '1541ba4361c996716356fb87cdcc73b1260d4c6a' }, hAsync("div", { key: '924070eeb79f6c8f8e6362772bbab0dcc1c6f315', class: "card" }, hAsync("slot", { key: '2fde36426395a519cb1ebe265ba0eef3aaf6ff38' }))));
5515
+ return (hAsync(Host, { key: 'de570a460eff697eb242ef56fcedd5b400d6b03f' }, hAsync("div", { key: '3350619356a929c5d922948d52d6635420dc8547', class: "card" }, hAsync("slot", { key: 'b50679202b5fea142702de0babf62587186d4dc8' }))));
5516
5516
  }
5517
5517
  static get style() { return chCardCss(); }
5518
5518
  static get cmpMeta() { return {
@@ -5636,7 +5636,7 @@ class ChCheckbox {
5636
5636
  return undefined;
5637
5637
  }
5638
5638
  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))));
5639
+ return (hAsync(Host, { key: 'ad83b999d4dbafbd7b6f2369bae8fbce8e068cad' }, hAsync("label", { key: 'e5927ad9d76db7cd9418debe8e635767b597e27a', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.checkboxId }, hAsync("input", { key: '93c49822bf5a470d67a7077354adcd9144643843', 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: 'da90747e3339879a744569c98befed94507bebdd', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '3c10c9e29a943bc12983d4ef6b9fa00d95293c80', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '76e4a8debadd36dae475bd2439410c0f2a82cb62', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5640
5640
  }
5641
5641
  static get formAssociated() { return true; }
5642
5642
  static get watchers() { return {
@@ -5701,6 +5701,123 @@ class ChDivider {
5701
5701
  }; }
5702
5702
  }
5703
5703
 
5704
+ const aaaa = "aaaa";
5705
+ const ameno = "ameno";
5706
+ const heart = "huemul-love";
5707
+ const love = "huemul-love";
5708
+ const humo = "humo";
5709
+ const hypnotoad = "hypnotoad";
5710
+ const lmao = "lmao";
5711
+ const loading = "loading";
5712
+ const loco = "loco";
5713
+ const loco2 = "loco2";
5714
+ const lol = "lol";
5715
+ const lol2 = "lol2";
5716
+ const monea = "monea";
5717
+ const negative = "negative";
5718
+ var emojiMap = {
5719
+ aaaa: aaaa,
5720
+ ameno: ameno,
5721
+ "huemul-huaso": "huemul-huaso",
5722
+ "huemul-love": "huemul-love",
5723
+ heart: heart,
5724
+ love: love,
5725
+ "huemul-trusted": "huemul-trusted",
5726
+ humo: humo,
5727
+ hypnotoad: hypnotoad,
5728
+ "lets-fucking-go": "lets-fucking-go",
5729
+ lmao: lmao,
5730
+ loading: loading,
5731
+ loco: loco,
5732
+ loco2: loco2,
5733
+ lol: lol,
5734
+ lol2: lol2,
5735
+ monea: monea,
5736
+ negative: negative
5737
+ };
5738
+
5739
+ 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}`;
5740
+
5741
+ const CDN_BASE = 'https://static.devschile.cl/emoji';
5742
+ const EXTENSIONS = ['png', 'gif', 'jpg', 'svg'];
5743
+ /**
5744
+ * Inline emoji from the devsChile CDN.
5745
+ *
5746
+ * Given a name (or alias from the emoji map), the component resolves the
5747
+ * asset URL and tries each possible file extension until one loads.
5748
+ * Size is controlled via the `size` prop.
5749
+ */
5750
+ class ChEmoji {
5751
+ constructor(hostRef) {
5752
+ registerInstance(this, hostRef);
5753
+ }
5754
+ extIndex = 0;
5755
+ loaded = false;
5756
+ /**
5757
+ * The emoji name or alias, e.g. `"huemul-love"` or `"heart"`.
5758
+ */
5759
+ name;
5760
+ /**
5761
+ * Accessible alt text for the image. Defaults to the `name` prop.
5762
+ */
5763
+ alt;
5764
+ /**
5765
+ * Size of the emoji. Either `sm`, `md`, `lg`, or `xl`.
5766
+ */
5767
+ size = 'md';
5768
+ componentWillLoad() {
5769
+ this.resolveAsset();
5770
+ }
5771
+ handleNameChange() {
5772
+ this.resolveAsset();
5773
+ }
5774
+ resolveAsset() {
5775
+ this.extIndex = 0;
5776
+ this.loaded = false;
5777
+ }
5778
+ get assetName() {
5779
+ return emojiMap[this.name] ?? this.name;
5780
+ }
5781
+ get currentSrc() {
5782
+ return `${CDN_BASE}/${this.assetName}.${EXTENSIONS[this.extIndex]}`;
5783
+ }
5784
+ handleError = () => {
5785
+ if (this.extIndex < EXTENSIONS.length - 1) {
5786
+ this.extIndex++;
5787
+ }
5788
+ };
5789
+ handleLoad = () => {
5790
+ this.loaded = true;
5791
+ };
5792
+ render() {
5793
+ return (hAsync(Host, { key: 'bfc646f047dae03aa8079825012305d7beb1fa6d' }, hAsync("img", { key: 'c397cc1f928c6871df10adc1f43874738e1cbf33', class: {
5794
+ 'emoji': true,
5795
+ [`emoji--${this.size}`]: true,
5796
+ 'emoji--hidden': !this.loaded,
5797
+ }, src: this.currentSrc, alt: this.alt ?? this.name, onError: this.handleError, onLoad: this.handleLoad })));
5798
+ }
5799
+ static get watchers() { return {
5800
+ "name": [{
5801
+ "handleNameChange": 0
5802
+ }]
5803
+ }; }
5804
+ static get style() { return chEmojiCss(); }
5805
+ static get cmpMeta() { return {
5806
+ "$flags$": 521,
5807
+ "$tagName$": "ch-emoji",
5808
+ "$members$": {
5809
+ "name": [1],
5810
+ "alt": [1],
5811
+ "size": [1],
5812
+ "extIndex": [32],
5813
+ "loaded": [32]
5814
+ },
5815
+ "$listeners$": undefined,
5816
+ "$lazyBundleId$": "-",
5817
+ "$attrsToReflect$": []
5818
+ }; }
5819
+ }
5820
+
5704
5821
  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
5822
 
5706
5823
  let inputIds = 0;
@@ -5825,7 +5942,7 @@ class ChInput {
5825
5942
  return undefined;
5826
5943
  }
5827
5944
  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))));
5945
+ return (hAsync(Host, { key: '8a4b7cf5b80097afb849e2de9620fdd205774923' }, this.label && (hAsync("label", { key: '7400206e6c27d61e7b9afadeba8a2131059af59a', class: "label", htmlFor: this.inputId }, this.label)), hAsync("input", { key: '2c4fd9215d5b21f28d57a1c49eeaa64224e21e05', 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: '6e6a381f81442622784afc480eb79327ae8a8525', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '743215633ca399d801c813194b054d40631b7be6', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
5829
5946
  }
5830
5947
  static get formAssociated() { return true; }
5831
5948
  static get watchers() { return {
@@ -6086,7 +6203,7 @@ class ChModal {
6086
6203
  this.chClose.emit();
6087
6204
  };
6088
6205
  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' })))));
6206
+ return (hAsync(Host, { key: '8f5f8c340291feb4385076bfdefc02a849e08efe' }, hAsync("dialog", { key: 'e435367c1e3dc5c7e8102f6ac76792394f5097fa', class: "modal", "aria-label": this.label, ref: el => (this.dialog = el) }, hAsync("div", { key: '05a0d306dc7e3f917c47de28ed6359280c0472b8', class: "modal-head" }, hAsync("slot", { key: '79e25ed41f98a5ceee2dca9afc200d8980d9f284', name: "heading" }), this.closeLabel && (hAsync("button", { key: '0620b914cb51cae7ab74f2ccccb25e9fc324811f', class: "modal-close", type: "button", "aria-label": this.closeLabel, onClick: this.handleCloseClick }, hAsync("span", { key: 'e2a1e0ec6c1d1cbdb2de684bfe4c7e0ed07ceaee', "aria-hidden": "true" }, "\u00D7")))), hAsync("div", { key: 'af254d18e1538ea5dac06c421ba03d897ddf057d', class: "modal-body" }, hAsync("slot", { key: '645876d63f275108a2a9d27f563bb6918dcb9deb' })))));
6090
6207
  }
6091
6208
  static get watchers() { return {
6092
6209
  "open": [{
@@ -6222,7 +6339,7 @@ class ChRadio {
6222
6339
  }
6223
6340
  render() {
6224
6341
  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))));
6342
+ return (hAsync(Host, { key: '2d0f02cbeae89b8c60664825f3885bbeeafd896a' }, this.label && (hAsync("span", { key: 'c32fd25be5eaf0d05c2d8d6aae01dda281f4b952', class: "group-label", id: this.labelId }, this.label)), hAsync("div", { key: 'bd05a360ad1fd794c95d8066dbb93300152a88dc', 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: '8c451f8d166c6002a4f30bfb72acd6b863ec38c2', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '8ac12f60e463c908dff76d64d7ae0e216ed51489', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6226
6343
  }
6227
6344
  static get formAssociated() { return true; }
6228
6345
  static get watchers() { return {
@@ -6376,7 +6493,7 @@ class ChSelect {
6376
6493
  return undefined;
6377
6494
  }
6378
6495
  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))));
6496
+ return (hAsync(Host, { key: 'ffca23504c723f60f7430e6db2e1fa00db1fd4d8' }, this.label && (hAsync("label", { key: '697998ec67f01f3ca2849b1fb2aa88790d98010b', class: "label", htmlFor: this.selectId }, this.label)), hAsync("select", { key: 'f344d240f38dd123bdfd2d34cd15fbc7b5ae0a2c', 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: '34200e96dad92ed55632f0430abde5bc34cf6e6a', 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: '55690dbf57cad7c974d0bf1b8eedb733ddc5b571', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '7d4598b112d21ebc96ac04bca553f63dd5825996', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6380
6497
  }
6381
6498
  static get formAssociated() { return true; }
6382
6499
  static get watchers() { return {
@@ -6445,7 +6562,7 @@ class ChSpinner {
6445
6562
  label;
6446
6563
  render() {
6447
6564
  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' })));
6565
+ return (hAsync(Host, { key: '9182eecf066be099714a870fa601f744362e697d' }, hAsync("span", { key: 'd67f2572ab80facadd4d49043a892b16816b4fef', class: { spinner: true, [`spinner--${this.size}`]: true }, role: labelled ? 'status' : undefined, "aria-label": labelled ? this.label : undefined, "aria-hidden": labelled ? undefined : 'true' })));
6449
6566
  }
6450
6567
  static get style() { return chSpinnerCss(); }
6451
6568
  static get cmpMeta() { return {
@@ -6572,7 +6689,7 @@ class ChSwitch {
6572
6689
  return undefined;
6573
6690
  }
6574
6691
  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))));
6692
+ return (hAsync(Host, { key: 'c1a98e9b04710ed014a8c18d6591fee427df0033' }, hAsync("label", { key: '4b14ec7d7709090235b0e9b74a45d4c76dd52f25', class: { 'control': true, 'control--disabled': this.disabled || this.formDisabled }, htmlFor: this.switchId }, hAsync("input", { key: '4f2c9472b3bf34db582a94e307cc8b47b5dfcd38', 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: '6b2c20c6242178bba39f105a535bb12fc5198cd0', class: "track" }, hAsync("span", { key: '4ae0e675ce335417b867f6b688ec5545769b2d2c', class: "thumb" })), this.label && hAsync("span", { key: 'd5383fac3349441104c0926a6c88078b85bda05c', class: "label-text" }, this.label)), this.hint && !(this.invalid && this.errorMessage) && (hAsync("p", { key: '41ed07a95f8d627fb4ed8c903b6ba5ee39baa6a5', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '71cf8526dec44e2099235e3bc744db2aa53d70f0', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6576
6693
  }
6577
6694
  static get formAssociated() { return true; }
6578
6695
  static get watchers() { return {
@@ -6695,7 +6812,7 @@ class ChTabs {
6695
6812
  }
6696
6813
  render() {
6697
6814
  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 => {
6815
+ return (hAsync(Host, { key: '7c6b34c34e73f034eb03473ad9941eade91317c3' }, hAsync("div", { key: '601bae37f4fb3e5e0d07fb7a91968171b0bd18a3', class: "tablist", role: "tablist", "aria-label": this.label, onKeyDown: this.handleKeyDown, ref: el => (this.tablistEl = el) }, this.tabs.map(tab => {
6699
6816
  const selected = tab.value === active;
6700
6817
  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
6818
  })), 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 +6957,7 @@ class ChTextarea {
6840
6957
  return undefined;
6841
6958
  }
6842
6959
  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))));
6960
+ return (hAsync(Host, { key: '6e738612514b114571c1edfad0fb85e2228653a8' }, this.label && (hAsync("label", { key: '3b58b49a02dd532430cfd9096c326288a5120d6d', class: "label", htmlFor: this.textareaId }, this.label)), hAsync("textarea", { key: '0922df038ea6ce6d1567ffe8d02c5b65534bec7a', 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: '6d3518345b9afaad782741a854053ed2b32e31db', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (hAsync("p", { key: '8a26edd5a1ef3647133813003fb1a53b1a5f99d6', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
6844
6961
  }
6845
6962
  static get formAssociated() { return true; }
6846
6963
  static get watchers() { return {
@@ -6965,7 +7082,7 @@ class ChTooltip {
6965
7082
  trigger.setAttribute('aria-describedby', content.id);
6966
7083
  };
6967
7084
  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 })))));
7085
+ return (hAsync(Host, { key: 'cebea73595fe515f952e60c72c42e92888e57133' }, hAsync("span", { key: 'c2eadb27d9d89b19d821ae1da93dcb7125d07bb0', class: "anchor" }, hAsync("slot", { key: '9eccdd49e741ffaed3d7d95c54697666e6e13cf0', name: "trigger", onSlotchange: this.associate }), hAsync("span", { key: '0842bbc4061da0be353e58bc897548e75c730e43', class: { 'bubble': true, [`bubble--${this.placement}`]: true, 'bubble--visible': this.visible } }, hAsync("slot", { key: '43812aac1e6e2853057e6d34f484906a17b16a5a', name: "content", onSlotchange: this.associate })))));
6969
7086
  }
6970
7087
  static get style() { return chTooltipCss(); }
6971
7088
  static get cmpMeta() { return {
@@ -6991,6 +7108,7 @@ registerComponents([
6991
7108
  ChCard,
6992
7109
  ChCheckbox,
6993
7110
  ChDivider,
7111
+ ChEmoji,
6994
7112
  ChInput,
6995
7113
  ChLink,
6996
7114
  ChModal,
@@ -7102,7 +7220,7 @@ var NAMESPACE = (
7102
7220
  );
7103
7221
 
7104
7222
  /*
7105
- Stencil Hydrate Runner v4.44.0 | MIT Licensed | https://stenciljs.com
7223
+ Stencil Hydrate Runner v4.44.2 | MIT Licensed | https://stenciljs.com
7106
7224
  */
7107
7225
  var __create = Object.create;
7108
7226
  var __defProp = Object.defineProperty;
package/loader/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export interface CustomElementsDefineOptions {
8
8
  ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
9
9
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
10
  }
11
- export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
11
+ export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
12
12
  /**
13
13
  * @deprecated
14
14
  */