@devschile/chucao 1.8.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 (158) hide show
  1. package/README.md +3 -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-e8fe65bb.entry.js → p-04dbcfa0.entry.js} +2 -2
  5. package/dist/chucao/p-11083711.entry.js +2 -0
  6. package/dist/chucao/p-11083711.entry.js.map +1 -0
  7. package/dist/chucao/{p-cfb6db53.entry.js → p-121fbfc8.entry.js} +2 -2
  8. package/dist/chucao/p-1b1e56cd.entry.js +2 -0
  9. package/dist/chucao/p-1b1e56cd.entry.js.map +1 -0
  10. package/dist/chucao/{p-df73f786.entry.js → p-2ab4a6a8.entry.js} +2 -2
  11. package/dist/chucao/p-4bc8e098.entry.js +2 -0
  12. package/dist/chucao/p-4bc8e098.entry.js.map +1 -0
  13. package/dist/chucao/p-5fe8bfff.entry.js +2 -0
  14. package/dist/chucao/p-5fe8bfff.entry.js.map +1 -0
  15. package/dist/chucao/p-9bb81a65.entry.js +2 -0
  16. package/dist/chucao/p-9bb81a65.entry.js.map +1 -0
  17. package/dist/chucao/p-DWC12BJ-.js +3 -0
  18. package/dist/chucao/p-DWC12BJ-.js.map +1 -0
  19. package/dist/chucao/{p-2d7e81b2.entry.js → p-a955eebf.entry.js} +2 -2
  20. package/dist/chucao/{p-cbb2b478.entry.js → p-d5a9e340.entry.js} +2 -2
  21. package/dist/chucao/{p-1cc7042e.entry.js → p-ff5f5c1f.entry.js} +2 -2
  22. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  23. package/dist/cjs/ch-alert_8.cjs.entry.js +186 -9
  24. package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ch-checkbox.cjs.entry.js +62 -3
  26. package/dist/cjs/ch-checkbox.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ch-divider.cjs.entry.js +1 -1
  28. package/dist/cjs/ch-emoji.cjs.entry.js +104 -0
  29. package/dist/cjs/ch-emoji.cjs.entry.js.map +1 -0
  30. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  31. package/dist/cjs/ch-modal.cjs.entry.js +2 -2
  32. package/dist/cjs/ch-radio.cjs.entry.js +62 -3
  33. package/dist/cjs/ch-radio.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
  35. package/dist/cjs/ch-textarea.cjs.entry.js +62 -3
  36. package/dist/cjs/ch-textarea.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
  38. package/dist/cjs/chucao.cjs.js +3 -3
  39. package/dist/cjs/chucao.cjs.js.map +1 -1
  40. package/dist/cjs/{index-DMeDkSQU.js → index-C9cpLteP.js} +71 -12
  41. package/dist/cjs/index-C9cpLteP.js.map +1 -0
  42. package/dist/cjs/loader.cjs.js +2 -2
  43. package/dist/collection/collection-manifest.json +2 -1
  44. package/dist/collection/components/ch-card/ch-card.js +1 -1
  45. package/dist/collection/components/ch-checkbox/ch-checkbox.css +10 -0
  46. package/dist/collection/components/ch-checkbox/ch-checkbox.js +64 -4
  47. package/dist/collection/components/ch-checkbox/ch-checkbox.js.map +1 -1
  48. package/dist/collection/components/ch-emoji/ch-emoji.css +33 -0
  49. package/dist/collection/components/ch-emoji/ch-emoji.js +151 -0
  50. package/dist/collection/components/ch-emoji/ch-emoji.js.map +1 -0
  51. package/dist/collection/components/ch-input/ch-input.css +11 -0
  52. package/dist/collection/components/ch-input/ch-input.js +64 -4
  53. package/dist/collection/components/ch-input/ch-input.js.map +1 -1
  54. package/dist/collection/components/ch-modal/ch-modal.js +1 -1
  55. package/dist/collection/components/ch-radio/ch-radio.css +10 -0
  56. package/dist/collection/components/ch-radio/ch-radio.js +64 -4
  57. package/dist/collection/components/ch-radio/ch-radio.js.map +1 -1
  58. package/dist/collection/components/ch-select/ch-select.css +11 -0
  59. package/dist/collection/components/ch-select/ch-select.js +64 -4
  60. package/dist/collection/components/ch-select/ch-select.js.map +1 -1
  61. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  62. package/dist/collection/components/ch-switch/ch-switch.css +10 -0
  63. package/dist/collection/components/ch-switch/ch-switch.js +64 -4
  64. package/dist/collection/components/ch-switch/ch-switch.js.map +1 -1
  65. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  66. package/dist/collection/components/ch-textarea/ch-textarea.css +11 -0
  67. package/dist/collection/components/ch-textarea/ch-textarea.js +64 -4
  68. package/dist/collection/components/ch-textarea/ch-textarea.js.map +1 -1
  69. package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
  70. package/dist/components/ch-accordion.js +1 -1
  71. package/dist/components/ch-alert.js +1 -1
  72. package/dist/components/ch-badge.js +1 -1
  73. package/dist/components/ch-button.js +1 -1
  74. package/dist/components/ch-card.js +1 -1
  75. package/dist/components/ch-checkbox.js +1 -1
  76. package/dist/components/ch-checkbox.js.map +1 -1
  77. package/dist/components/ch-divider.js +1 -1
  78. package/dist/components/ch-emoji.d.ts +11 -0
  79. package/dist/components/ch-emoji.js +2 -0
  80. package/dist/components/ch-emoji.js.map +1 -0
  81. package/dist/components/ch-input.js +1 -1
  82. package/dist/components/ch-input.js.map +1 -1
  83. package/dist/components/ch-link.js +1 -1
  84. package/dist/components/ch-modal.js +1 -1
  85. package/dist/components/ch-radio.js +1 -1
  86. package/dist/components/ch-radio.js.map +1 -1
  87. package/dist/components/ch-select.js +1 -1
  88. package/dist/components/ch-select.js.map +1 -1
  89. package/dist/components/ch-spinner.js +1 -1
  90. package/dist/components/ch-switch.js +1 -1
  91. package/dist/components/ch-switch.js.map +1 -1
  92. package/dist/components/ch-tabs.js +1 -1
  93. package/dist/components/ch-textarea.js +1 -1
  94. package/dist/components/ch-textarea.js.map +1 -1
  95. package/dist/components/ch-tooltip.js +1 -1
  96. package/dist/components/index.js +1 -1
  97. package/dist/components/p-BhAZrOxf.js +2 -0
  98. package/dist/components/p-BhAZrOxf.js.map +1 -0
  99. package/dist/esm/ch-accordion.entry.js +1 -1
  100. package/dist/esm/ch-alert_8.entry.js +186 -9
  101. package/dist/esm/ch-alert_8.entry.js.map +1 -1
  102. package/dist/esm/ch-checkbox.entry.js +62 -3
  103. package/dist/esm/ch-checkbox.entry.js.map +1 -1
  104. package/dist/esm/ch-divider.entry.js +1 -1
  105. package/dist/esm/ch-emoji.entry.js +102 -0
  106. package/dist/esm/ch-emoji.entry.js.map +1 -0
  107. package/dist/esm/ch-link.entry.js +1 -1
  108. package/dist/esm/ch-modal.entry.js +2 -2
  109. package/dist/esm/ch-radio.entry.js +62 -3
  110. package/dist/esm/ch-radio.entry.js.map +1 -1
  111. package/dist/esm/ch-tabs.entry.js +2 -2
  112. package/dist/esm/ch-textarea.entry.js +62 -3
  113. package/dist/esm/ch-textarea.entry.js.map +1 -1
  114. package/dist/esm/ch-tooltip.entry.js +2 -2
  115. package/dist/esm/chucao.js +4 -4
  116. package/dist/esm/chucao.js.map +1 -1
  117. package/dist/esm/{index-Bvah_WQV.js → index-DWC12BJ-.js} +71 -12
  118. package/dist/esm/index-DWC12BJ-.js.map +1 -0
  119. package/dist/esm/loader.js +3 -3
  120. package/dist/types/components/ch-checkbox/ch-checkbox.d.ts +9 -0
  121. package/dist/types/components/ch-emoji/ch-emoji.d.ts +32 -0
  122. package/dist/types/components/ch-input/ch-input.d.ts +9 -0
  123. package/dist/types/components/ch-radio/ch-radio.d.ts +9 -0
  124. package/dist/types/components/ch-select/ch-select.d.ts +9 -0
  125. package/dist/types/components/ch-switch/ch-switch.d.ts +9 -0
  126. package/dist/types/components/ch-textarea/ch-textarea.d.ts +9 -0
  127. package/dist/types/components.d.ts +96 -0
  128. package/dist/types/stencil-public-runtime.d.ts +1 -0
  129. package/dist-react/components.d.ts +3 -0
  130. package/dist-react/components.js +9 -0
  131. package/dist-react/components.ts +12 -0
  132. package/dist-vue/index.d.ts +1 -0
  133. package/dist-vue/index.js +6 -0
  134. package/dist-vue/index.ts +8 -0
  135. package/hydrate/index.js +555 -63
  136. package/hydrate/index.mjs +555 -63
  137. package/loader/index.d.ts +1 -1
  138. package/package.json +5 -1
  139. package/dist/chucao/p-13ab5f9a.entry.js +0 -2
  140. package/dist/chucao/p-13ab5f9a.entry.js.map +0 -1
  141. package/dist/chucao/p-23c5220b.entry.js +0 -2
  142. package/dist/chucao/p-23c5220b.entry.js.map +0 -1
  143. package/dist/chucao/p-421cda05.entry.js +0 -2
  144. package/dist/chucao/p-421cda05.entry.js.map +0 -1
  145. package/dist/chucao/p-Bvah_WQV.js +0 -3
  146. package/dist/chucao/p-Bvah_WQV.js.map +0 -1
  147. package/dist/chucao/p-c16b18b7.entry.js +0 -2
  148. package/dist/chucao/p-c16b18b7.entry.js.map +0 -1
  149. package/dist/cjs/index-DMeDkSQU.js.map +0 -1
  150. package/dist/components/p-hyy-cLgi.js +0 -2
  151. package/dist/components/p-hyy-cLgi.js.map +0 -1
  152. package/dist/esm/index-Bvah_WQV.js.map +0 -1
  153. /package/dist/chucao/{p-e8fe65bb.entry.js.map → p-04dbcfa0.entry.js.map} +0 -0
  154. /package/dist/chucao/{p-cfb6db53.entry.js.map → p-121fbfc8.entry.js.map} +0 -0
  155. /package/dist/chucao/{p-df73f786.entry.js.map → p-2ab4a6a8.entry.js.map} +0 -0
  156. /package/dist/chucao/{p-2d7e81b2.entry.js.map → p-a955eebf.entry.js.map} +0 -0
  157. /package/dist/chucao/{p-cbb2b478.entry.js.map → p-d5a9e340.entry.js.map} +0 -0
  158. /package/dist/chucao/{p-1cc7042e.entry.js.map → p-ff5f5c1f.entry.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, a as getElement, h, H as Host } from './index-Bvah_WQV.js';
1
+ import { r as registerInstance, a as getElement, h, H as Host } from './index-DWC12BJ-.js';
2
2
 
3
3
  const chTooltipCss = () => `:host{display:inline-block}.anchor{position:relative;display:inline-flex}.bubble{position:absolute;z-index:var(--z-index-dropdown);width:max-content;max-width:16rem;padding:var(--spacing-md) var(--spacing-2xl);border:var(--border-width) solid var(--border);border-radius:var(--radius-sm);background:var(--color-background-base);color:var(--text);font-family:var(--font-body);font-size:var(--typography-size-sm);line-height:1.4;opacity:0;visibility:hidden;transition:opacity var(--duration-fast) var(--easing-default), visibility var(--duration-fast) var(--easing-default)}.bubble--visible{opacity:1;visibility:visible}.bubble::before{content:'';position:absolute}.bubble--top{bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:var(--spacing-md)}.bubble--top::before{top:100%;left:0;right:0;height:var(--spacing-md)}.bubble--bottom{top:100%;left:50%;transform:translateX(-50%);margin-top:var(--spacing-md)}.bubble--bottom::before{bottom:100%;left:0;right:0;height:var(--spacing-md)}.bubble--left{right:100%;top:50%;transform:translateY(-50%);margin-right:var(--spacing-md)}.bubble--left::before{left:100%;top:0;bottom:0;width:var(--spacing-md)}.bubble--right{left:100%;top:50%;transform:translateY(-50%);margin-left:var(--spacing-md)}.bubble--right::before{right:100%;top:0;bottom:0;width:var(--spacing-md)}@media (prefers-reduced-motion: reduce){.bubble{transition:none}}`;
4
4
 
@@ -69,7 +69,7 @@ const ChTooltip = class {
69
69
  trigger.setAttribute('aria-describedby', content.id);
70
70
  };
71
71
  render() {
72
- return (h(Host, { key: '654d4a12f84c94e014691e911e7c63c6c45b8755' }, h("span", { key: '726269e02fedc37efc39f1561d8b9baf83d6a4cc', class: "anchor" }, h("slot", { key: '876cb19249032d6d1c66f22bd2c255683b6a7f66', name: "trigger", onSlotchange: this.associate }), h("span", { key: '7436eb75b40b33d0b6c8ce194245d4a08a29facb', class: { 'bubble': true, [`bubble--${this.placement}`]: true, 'bubble--visible': this.visible } }, h("slot", { key: '24648cc6078d61803793df011058da9515b466b5', name: "content", onSlotchange: this.associate })))));
72
+ return (h(Host, { key: 'cebea73595fe515f952e60c72c42e92888e57133' }, h("span", { key: 'c2eadb27d9d89b19d821ae1da93dcb7125d07bb0', class: "anchor" }, h("slot", { key: '9eccdd49e741ffaed3d7d95c54697666e6e13cf0', name: "trigger", onSlotchange: this.associate }), h("span", { key: '0842bbc4061da0be353e58bc897548e75c730e43', class: { 'bubble': true, [`bubble--${this.placement}`]: true, 'bubble--visible': this.visible } }, h("slot", { key: '43812aac1e6e2853057e6d34f484906a17b16a5a', name: "content", onSlotchange: this.associate })))));
73
73
  }
74
74
  };
75
75
  ChTooltip.style = chTooltipCss();
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-Bvah_WQV.js';
2
- export { s as setNonce } from './index-Bvah_WQV.js';
1
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-DWC12BJ-.js';
2
+ export { s as setNonce } from './index-DWC12BJ-.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.44.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.44.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
 
8
8
  var patchBrowser = () => {
@@ -16,7 +16,7 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["ch-alert_8",[[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[513,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}],[513,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}],[513,"ch-spinner",{"size":[1],"label":[1]}],[513,"ch-switch",{"label":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[513,"ch-checkbox",{"label":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-radio",[[513,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[513,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]]]], options);
19
+ return bootstrapLazy([["ch-alert_8",[[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[577,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[513,"ch-spinner",{"size":[1],"label":[1]}],[577,"ch-switch",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[577,"ch-checkbox",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-emoji",[[513,"ch-emoji",{"name":[1],"alt":[1],"size":[1],"extIndex":[32],"loaded":[32]},null,{"name":[{"handleNameChange":0}]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-radio",[[577,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[577,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]]]], options);
20
20
  });
21
21
  //# sourceMappingURL=chucao.js.map
22
22
 
@@ -1 +1 @@
1
- {"version":3,"file":"chucao.js","sources":["node_modules/.pnpm/@stencil+core@4.44.0/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.44.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"chucao.js","sources":["node_modules/.pnpm/@stencil+core@4.44.2/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.44.2 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
@@ -5,7 +5,7 @@ const globalScripts = () => {};
5
5
  const globalStyles = ":root{--color-background-base:#100a1c;--color-background-top-glow:#201e40;--color-background-bottom-glow:#261226;--color-surface-default:rgba(32, 30, 64, 0.6);--color-surface-hover:rgba(45, 212, 191, 0.08);--color-scrim-default:rgba(0, 0, 0, 0.6);--color-border-default:rgba(255, 255, 255, 0.08);--color-border-hover:rgba(45, 212, 191, 0.3);--color-accent-default:#2dd4bf;--color-accent-hover:#5ee8d4;--color-accent-text:#06210f;--color-status-positive:#4ade80;--color-status-positive-background:rgba(34, 197, 94, 0.18);--color-status-warning:#f87171;--color-status-warning-background:rgba(248, 113, 113, 0.15);--color-text-primary:#ffffff;--color-text-secondary:rgba(255, 255, 255, 0.55);--color-brand-huemul-dark:#85422b;--color-brand-huemul-light:#b45b38;--color-brand-stroke:#1d1d1b;--typography-body:Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--typography-heading:Inconsolata, monospace;--typography-size-xs:0.68rem;--typography-size-sm:0.85rem;--typography-size-md:1rem;--typography-size-lg:1.25rem;--typography-size-xl:1.5rem;--typography-weight-regular:400;--typography-weight-semibold:600;--typography-weight-bold:700;--typography-tracking-badge:0.03em;--spacing-2xs:0.18rem;--spacing-xs:0.25rem;--spacing-sm:0.35rem;--spacing-md:0.5rem;--spacing-lg:0.6rem;--spacing-xl:0.8rem;--spacing-2xl:1rem;--spacing-3xl:1.25rem;--spacing-4xl:1.35rem;--spacing-5xl:1.5rem;--spacing-6xl:2rem;--spacing-shift:2px;--spacing-elevate:1px;--radius-sm:6px;--radius-md:8px;--radius-pill:999px;--border-width:1px;--border-accent-bar:3px;--shadow-focus-ring:0 0 0 3px rgba(45, 212, 191, 0.12);--shadow-card-hover:0 4px 20px rgba(45, 212, 191, 0.06);--effect-blur:10px;--duration-fast:150ms;--duration-normal:200ms;--duration-spin:800ms;--easing-default:ease;--easing-linear:linear;--focus-outline-width:2px;--focus-outline-offset:2px;--opacity-disabled:0.5;--z-index-base:0;--z-index-dropdown:100;--z-index-modal:1000;--layout-max-width:68rem}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-400-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-600-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-700-normal.woff2') format('woff2')}@font-face{font-family:'Inconsolata';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/inconsolata-latin-400-normal.woff2') format('woff2')}:root{--bg:var(--color-background-base);--bg-gradient:radial-gradient(50% 30% ellipse at center top, var(--color-background-top-glow) 0%, rgba(0, 0, 0, 0) 100%),\n radial-gradient(60% 50% ellipse at center bottom, var(--color-background-bottom-glow) 0%, var(--color-background-base) 100%);--surface:var(--color-surface-default);--surface-hover:var(--color-surface-hover);--border:var(--color-border-default);--border-hover:var(--color-border-hover);--text:var(--color-text-primary);--text-muted:var(--color-text-secondary);--accent:var(--color-accent-default);--accent-hover:var(--color-accent-hover);--font-body:var(--typography-body);--font-heading:var(--typography-heading);--radius:var(--radius-sm)}body{font-family:var(--font-body)}.ch-container{width:100%;max-width:var(--layout-max-width);margin-inline:auto}.ch-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.ch-flex{display:flex}.ch-flex-col{display:flex;flex-direction:column}.ch-items-center{align-items:center}.ch-justify-center{justify-content:center}.ch-justify-between{justify-content:space-between}.ch-gap-sm{gap:var(--spacing-md)}.ch-gap-md{gap:var(--spacing-2xl)}.ch-text-center{text-align:center}.ch-text-primary{color:var(--text)}.ch-text-muted{color:var(--text-muted)}.ch-text-accent{color:var(--accent)}.ch-heading{font-family:var(--font-heading)}";
6
6
 
7
7
  /*
8
- Stencil Client Platform v4.44.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.44.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
@@ -168,6 +168,12 @@ var HYDRATE_CHILD_ID = "c-id";
168
168
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
169
169
  var MAX_LAZY_LOAD_RETRIES = 3;
170
170
  var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
171
+ var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
172
+ "formAssociatedCallback",
173
+ "formResetCallback",
174
+ "formDisabledCallback",
175
+ "formStateRestoreCallback"
176
+ ];
171
177
  var win = typeof window !== "undefined" ? window : {};
172
178
  var plt = {
173
179
  $flags$: 0,
@@ -1125,7 +1131,9 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1125
1131
  }
1126
1132
  if (propValue != null && !isComplexType(propValue)) {
1127
1133
  if (propType & 4 /* Boolean */) {
1128
- {
1134
+ if (isFormAssociated && typeof propValue === "string") {
1135
+ return propValue === "" || !!propValue;
1136
+ } else {
1129
1137
  return propValue === "false" ? false : propValue === "" || !!propValue;
1130
1138
  }
1131
1139
  }
@@ -1259,7 +1267,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1259
1267
  }
1260
1268
  }
1261
1269
  if (newValue == null || newValue === false) {
1262
- if (newValue !== false || elm.getAttribute(memberName) === "") {
1270
+ if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
1263
1271
  {
1264
1272
  elm.removeAttribute(memberName);
1265
1273
  }
@@ -1272,6 +1280,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1272
1280
  }
1273
1281
  }
1274
1282
  };
1283
+ var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
1284
+ var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
1275
1285
  var parseClassListRegex = /\s/;
1276
1286
  var parseClassList = (value) => {
1277
1287
  if (typeof value === "object" && value && "baseVal" in value) {
@@ -1565,9 +1575,7 @@ var flushQueuedRefCallbacks = () => {
1565
1575
  }
1566
1576
  };
1567
1577
  var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1568
- if (parent.__insertBefore) {
1569
- return parent.__insertBefore(newNode, reference);
1570
- } else {
1578
+ {
1571
1579
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1572
1580
  }
1573
1581
  };
@@ -1578,6 +1586,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1578
1586
  const isHostElement = isHost(renderFnResults);
1579
1587
  const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1580
1588
  hostTagName = hostElm.tagName;
1589
+ if (cmpMeta.$attrsToReflect$) {
1590
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1591
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
1592
+ {
1593
+ rootVnode.$attrs$[attribute] = hostElm[propName];
1594
+ }
1595
+ });
1596
+ }
1581
1597
  if (isInitialLoad && rootVnode.$attrs$) {
1582
1598
  for (const key of Object.keys(rootVnode.$attrs$)) {
1583
1599
  if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
@@ -1782,7 +1798,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1782
1798
  const instance = hostRef.$lazyInstance$ ;
1783
1799
  newVal = parsePropertyValue(
1784
1800
  newVal,
1785
- cmpMeta.$members$[propName][0]);
1801
+ cmpMeta.$members$[propName][0],
1802
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1803
+ );
1786
1804
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1787
1805
  const didValueChange = newVal !== oldVal && !areBothNaN;
1788
1806
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -1823,9 +1841,30 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1823
1841
  };
1824
1842
 
1825
1843
  // src/runtime/proxy-component.ts
1844
+ var reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? "" : String(propValue);
1826
1845
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1827
1846
  var _a, _b;
1828
1847
  const prototype = Cstr.prototype;
1848
+ if (cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
1849
+ FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
1850
+ Object.defineProperty(prototype, cbName, {
1851
+ value(...args) {
1852
+ var _a2;
1853
+ const hostRef = getHostRef(this);
1854
+ const instance = hostRef == null ? void 0 : hostRef.$lazyInstance$ ;
1855
+ if (!instance) {
1856
+ (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {
1857
+ const cb = asyncInstance[cbName];
1858
+ typeof cb === "function" && cb.call(asyncInstance, ...args);
1859
+ });
1860
+ } else {
1861
+ const cb = instance[cbName] ;
1862
+ typeof cb === "function" && cb.call(instance, ...args);
1863
+ }
1864
+ }
1865
+ });
1866
+ });
1867
+ }
1829
1868
  if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1830
1869
  {
1831
1870
  if (Cstr.watchers && !cmpMeta.$watchers$) {
@@ -1875,7 +1914,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1875
1914
  origSetter.apply(this, [
1876
1915
  parsePropertyValue(
1877
1916
  newValue,
1878
- memberFlags)
1917
+ memberFlags,
1918
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1919
+ )
1879
1920
  ]);
1880
1921
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1881
1922
  setValue(this, memberName, newValue, cmpMeta);
@@ -1900,7 +1941,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1900
1941
  }
1901
1942
  ref.$lazyInstance$[memberName] = parsePropertyValue(
1902
1943
  newValue,
1903
- memberFlags);
1944
+ memberFlags,
1945
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1946
+ );
1904
1947
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1905
1948
  };
1906
1949
  if (ref.$lazyInstance$) {
@@ -1944,7 +1987,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1944
1987
  return;
1945
1988
  }
1946
1989
  const propFlags = members.find(([m]) => m === propName);
1947
- const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
1990
+ const propMemberFlags = propFlags ? propFlags[1][0] : 0;
1991
+ const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
1992
+ if (propMemberFlags & 512 /* ReflectAttr */ && propMemberFlags & 8 /* Any */ && // a complex value is never written to an attribute, so a change while the prop holds
1993
+ // one is always external
1994
+ !isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) {
1995
+ return;
1996
+ }
1948
1997
  const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1949
1998
  if (isBooleanTarget) {
1950
1999
  newValue = newValue === null || newValue === "false" ? false : true;
@@ -1959,8 +2008,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1959
2008
  /* @__PURE__ */ new Set([
1960
2009
  ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1961
2010
  ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
2011
+ var _a2;
1962
2012
  const attrName = m[1] || propName;
1963
2013
  attrNameToPropName.set(attrName, propName);
2014
+ if (m[0] & 512 /* ReflectAttr */) {
2015
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2016
+ }
1964
2017
  return attrName;
1965
2018
  })
1966
2019
  ])
@@ -2190,6 +2243,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2190
2243
  {
2191
2244
  cmpMeta.$listeners$ = compactMeta[3];
2192
2245
  }
2246
+ {
2247
+ cmpMeta.$attrsToReflect$ = [];
2248
+ }
2193
2249
  {
2194
2250
  cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);
2195
2251
  cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};
@@ -2260,6 +2316,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2260
2316
  return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
2261
2317
  }
2262
2318
  };
2319
+ if (cmpMeta.$flags$ & 64 /* formAssociated */) {
2320
+ HostElement.formAssociated = true;
2321
+ }
2263
2322
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
2264
2323
  if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2265
2324
  cmpTags.push(tagName);
@@ -2333,6 +2392,6 @@ function transformTag(tag) {
2333
2392
  }
2334
2393
 
2335
2394
  export { Host as H, getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2336
- //# sourceMappingURL=index-Bvah_WQV.js.map
2395
+ //# sourceMappingURL=index-DWC12BJ-.js.map
2337
2396
 
2338
- //# sourceMappingURL=index-Bvah_WQV.js.map
2397
+ //# sourceMappingURL=index-DWC12BJ-.js.map