@devschile/chucao 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/README.md +2 -0
  2. package/dist/chucao/chucao.esm.js +1 -1
  3. package/dist/chucao/chucao.esm.js.map +1 -1
  4. package/dist/chucao/{p-a0ec231a.entry.js → p-04dbcfa0.entry.js} +2 -2
  5. package/dist/chucao/{p-96c852f5.entry.js → p-077dc2a6.entry.js} +2 -2
  6. package/dist/chucao/{p-19dde4f9.entry.js → p-079c2017.entry.js} +2 -2
  7. package/dist/chucao/p-37e7f9cc.entry.js +2 -0
  8. package/dist/chucao/p-37e7f9cc.entry.js.map +1 -0
  9. package/dist/chucao/{p-f04d2f75.entry.js → p-5ae89a19.entry.js} +2 -2
  10. package/dist/chucao/p-70285203.entry.js +2 -0
  11. package/dist/chucao/p-70285203.entry.js.map +1 -0
  12. package/dist/chucao/{p-2e20c7a1.entry.js → p-9c072600.entry.js} +2 -2
  13. package/dist/chucao/{p-BaKXvAYc.js → p-DWC12BJ-.js} +2 -2
  14. package/dist/chucao/p-DWC12BJ-.js.map +1 -0
  15. package/dist/chucao/p-b678a7e2.entry.js +2 -0
  16. package/dist/chucao/p-b678a7e2.entry.js.map +1 -0
  17. package/dist/chucao/p-b8bd0310.entry.js +2 -0
  18. package/dist/chucao/p-b8bd0310.entry.js.map +1 -0
  19. package/dist/chucao/p-bb2445d1.entry.js +2 -0
  20. package/dist/chucao/p-c986036f.entry.js +2 -0
  21. package/dist/chucao/p-c986036f.entry.js.map +1 -0
  22. package/dist/chucao/p-d8DfpzMR.js +2 -0
  23. package/dist/chucao/p-d8DfpzMR.js.map +1 -0
  24. package/dist/chucao/{p-10658dc9.entry.js → p-e3265e38.entry.js} +2 -2
  25. package/dist/chucao/{p-f62e1da2.entry.js → p-ff5f5c1f.entry.js} +2 -2
  26. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  27. package/dist/cjs/ch-alert_8.cjs.entry.js +55 -12
  28. package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
  30. package/dist/cjs/ch-divider.cjs.entry.js +2 -2
  31. package/dist/cjs/ch-drawer.cjs.entry.js +153 -0
  32. package/dist/cjs/ch-drawer.cjs.entry.js.map +1 -0
  33. package/dist/cjs/ch-emoji.cjs.entry.js +104 -0
  34. package/dist/cjs/ch-emoji.cjs.entry.js.map +1 -0
  35. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  36. package/dist/cjs/ch-modal.cjs.entry.js +5 -24
  37. package/dist/cjs/ch-modal.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ch-radio.cjs.entry.js +2 -2
  39. package/dist/cjs/ch-segmented-control.cjs.entry.js +112 -0
  40. package/dist/cjs/ch-segmented-control.cjs.entry.js.map +1 -0
  41. package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
  42. package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
  43. package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
  44. package/dist/cjs/chucao.cjs.js +3 -3
  45. package/dist/cjs/chucao.cjs.js.map +1 -1
  46. package/dist/cjs/{index-C9Abf0td.js → index-C9cpLteP.js} +15 -8
  47. package/dist/cjs/index-C9cpLteP.js.map +1 -0
  48. package/dist/cjs/loader.cjs.js +2 -2
  49. package/dist/cjs/scroll-lock-DIRqLP4K.js +49 -0
  50. package/dist/cjs/scroll-lock-DIRqLP4K.js.map +1 -0
  51. package/dist/collection/collection-manifest.json +4 -1
  52. package/dist/collection/components/ch-button/ch-button.css +56 -18
  53. package/dist/collection/components/ch-button/ch-button.js +135 -8
  54. package/dist/collection/components/ch-button/ch-button.js.map +1 -1
  55. package/dist/collection/components/ch-card/ch-card.js +1 -1
  56. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  57. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  58. package/dist/collection/components/ch-drawer/ch-drawer.css +152 -0
  59. package/dist/collection/components/ch-drawer/ch-drawer.js +285 -0
  60. package/dist/collection/components/ch-drawer/ch-drawer.js.map +1 -0
  61. package/dist/collection/components/ch-emoji/ch-emoji.css +33 -0
  62. package/dist/collection/components/ch-emoji/ch-emoji.js +151 -0
  63. package/dist/collection/components/ch-emoji/ch-emoji.js.map +1 -0
  64. package/dist/collection/components/ch-input/ch-input.js +1 -1
  65. package/dist/collection/components/ch-modal/ch-modal.js +4 -23
  66. package/dist/collection/components/ch-modal/ch-modal.js.map +1 -1
  67. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  68. package/dist/collection/components/ch-segmented-control/ch-segmented-control.css +88 -0
  69. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +295 -0
  70. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js.map +1 -0
  71. package/dist/collection/components/ch-select/ch-select.js +1 -1
  72. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  73. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  74. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  75. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  76. package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
  77. package/dist/collection/utils/scroll-lock.js +42 -0
  78. package/dist/collection/utils/scroll-lock.js.map +1 -0
  79. package/dist/components/ch-accordion.js +1 -1
  80. package/dist/components/ch-alert.js +1 -1
  81. package/dist/components/ch-badge.js +1 -1
  82. package/dist/components/ch-button.js +1 -1
  83. package/dist/components/ch-button.js.map +1 -1
  84. package/dist/components/ch-card.js +1 -1
  85. package/dist/components/ch-checkbox.js +1 -1
  86. package/dist/components/ch-divider.js +1 -1
  87. package/dist/components/ch-drawer.d.ts +11 -0
  88. package/dist/components/ch-drawer.js +2 -0
  89. package/dist/components/ch-drawer.js.map +1 -0
  90. package/dist/components/ch-emoji.d.ts +11 -0
  91. package/dist/components/ch-emoji.js +2 -0
  92. package/dist/components/ch-emoji.js.map +1 -0
  93. package/dist/components/ch-input.js +1 -1
  94. package/dist/components/ch-link.js +1 -1
  95. package/dist/components/ch-modal.js +1 -1
  96. package/dist/components/ch-modal.js.map +1 -1
  97. package/dist/components/ch-radio.js +1 -1
  98. package/dist/components/ch-segmented-control.d.ts +11 -0
  99. package/dist/components/ch-segmented-control.js +2 -0
  100. package/dist/components/ch-segmented-control.js.map +1 -0
  101. package/dist/components/ch-select.js +1 -1
  102. package/dist/components/ch-spinner.js +1 -1
  103. package/dist/components/ch-spinner.js.map +1 -1
  104. package/dist/components/ch-switch.js +1 -1
  105. package/dist/components/ch-tabs.js +1 -1
  106. package/dist/components/ch-textarea.js +1 -1
  107. package/dist/components/ch-tooltip.js +1 -1
  108. package/dist/components/index.js +1 -1
  109. package/dist/components/{p-DL-bL54o.js → p-BhAZrOxf.js} +2 -2
  110. package/dist/components/p-BhAZrOxf.js.map +1 -0
  111. package/dist/components/p-C4eGmLcE.js +2 -0
  112. package/dist/components/p-C4eGmLcE.js.map +1 -0
  113. package/dist/components/p-d8DfpzMR.js +2 -0
  114. package/dist/components/p-d8DfpzMR.js.map +1 -0
  115. package/dist/esm/ch-accordion.entry.js +1 -1
  116. package/dist/esm/ch-alert_8.entry.js +55 -12
  117. package/dist/esm/ch-alert_8.entry.js.map +1 -1
  118. package/dist/esm/ch-checkbox.entry.js +2 -2
  119. package/dist/esm/ch-divider.entry.js +2 -2
  120. package/dist/esm/ch-drawer.entry.js +151 -0
  121. package/dist/esm/ch-drawer.entry.js.map +1 -0
  122. package/dist/esm/ch-emoji.entry.js +102 -0
  123. package/dist/esm/ch-emoji.entry.js.map +1 -0
  124. package/dist/esm/ch-link.entry.js +1 -1
  125. package/dist/esm/ch-modal.entry.js +5 -24
  126. package/dist/esm/ch-modal.entry.js.map +1 -1
  127. package/dist/esm/ch-radio.entry.js +2 -2
  128. package/dist/esm/ch-segmented-control.entry.js +110 -0
  129. package/dist/esm/ch-segmented-control.entry.js.map +1 -0
  130. package/dist/esm/ch-tabs.entry.js +2 -2
  131. package/dist/esm/ch-textarea.entry.js +2 -2
  132. package/dist/esm/ch-tooltip.entry.js +2 -2
  133. package/dist/esm/chucao.js +4 -4
  134. package/dist/esm/chucao.js.map +1 -1
  135. package/dist/esm/{index-BaKXvAYc.js → index-DWC12BJ-.js} +15 -8
  136. package/dist/esm/index-DWC12BJ-.js.map +1 -0
  137. package/dist/esm/loader.js +3 -3
  138. package/dist/esm/scroll-lock-d8DfpzMR.js +46 -0
  139. package/dist/esm/scroll-lock-d8DfpzMR.js.map +1 -0
  140. package/dist/types/components/ch-button/ch-button.d.ts +29 -5
  141. package/dist/types/components/ch-drawer/ch-drawer.d.ts +68 -0
  142. package/dist/types/components/ch-emoji/ch-emoji.d.ts +32 -0
  143. package/dist/types/components/ch-segmented-control/ch-segmented-control.d.ts +72 -0
  144. package/dist/types/components.d.ts +405 -6
  145. package/dist/types/stencil-public-runtime.d.ts +1 -0
  146. package/dist/types/utils/scroll-lock.d.ts +17 -0
  147. package/dist-react/components.d.ts +15 -1
  148. package/dist-react/components.js +30 -0
  149. package/dist-react/components.ts +43 -1
  150. package/dist-vue/index.d.ts +3 -0
  151. package/dist-vue/index.js +35 -0
  152. package/dist-vue/index.ts +41 -0
  153. package/hydrate/index.js +541 -46
  154. package/hydrate/index.mjs +541 -46
  155. package/loader/index.d.ts +1 -1
  156. package/package.json +5 -3
  157. package/dist/chucao/p-66dce533.entry.js +0 -2
  158. package/dist/chucao/p-66dce533.entry.js.map +0 -1
  159. package/dist/chucao/p-75184fe1.entry.js +0 -2
  160. package/dist/chucao/p-75184fe1.entry.js.map +0 -1
  161. package/dist/chucao/p-BaKXvAYc.js.map +0 -1
  162. package/dist/chucao/p-e48912c7.entry.js +0 -2
  163. package/dist/cjs/index-C9Abf0td.js.map +0 -1
  164. package/dist/components/p-DL-bL54o.js.map +0 -1
  165. package/dist/esm/index-BaKXvAYc.js.map +0 -1
  166. /package/dist/chucao/{p-a0ec231a.entry.js.map → p-04dbcfa0.entry.js.map} +0 -0
  167. /package/dist/chucao/{p-96c852f5.entry.js.map → p-077dc2a6.entry.js.map} +0 -0
  168. /package/dist/chucao/{p-19dde4f9.entry.js.map → p-079c2017.entry.js.map} +0 -0
  169. /package/dist/chucao/{p-f04d2f75.entry.js.map → p-5ae89a19.entry.js.map} +0 -0
  170. /package/dist/chucao/{p-2e20c7a1.entry.js.map → p-9c072600.entry.js.map} +0 -0
  171. /package/dist/chucao/{p-e48912c7.entry.js.map → p-bb2445d1.entry.js.map} +0 -0
  172. /package/dist/chucao/{p-10658dc9.entry.js.map → p-e3265e38.entry.js.map} +0 -0
  173. /package/dist/chucao/{p-f62e1da2.entry.js.map → p-ff5f5c1f.entry.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, a as getElement, h, H as Host } from './index-BaKXvAYc.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: '89e1b0de9e5d2a33edba2cc0b479788694c5a202' }, h("span", { key: 'c7a31597ba6fd6a7c68cdd74cf8170d14b9e85ba', class: "anchor" }, h("slot", { key: 'eac54ebeffa8ccbfdd0c4e42e26cd4c40e81d649', name: "trigger", onSlotchange: this.associate }), h("span", { key: '326581a3f64a2165a9031818782a50de7fe05fa7', class: { 'bubble': true, [`bubble--${this.placement}`]: true, 'bubble--visible': this.visible } }, h("slot", { key: '739d4b50a611cc4db8fdc802f2f39deb68f974eb', 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-BaKXvAYc.js';
2
- export { s as setNonce } from './index-BaKXvAYc.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"],[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-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);
19
+ return bootstrapLazy([["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-drawer",[[769,"ch-drawer",{"open":[1028],"side":[1],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["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-segmented-control",[[577,"ch-segmented-control",{"label":[1],"options":[16],"value":[1025],"size":[1],"name":[513],"disabled":[516],"required":[516],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"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"]]]]],["ch-alert_8",[[769,"ch-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"href":[1],"target":[1],"label":[1]}],[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[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}]}],[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}]}],[513,"ch-spinner",{"size":[1],"label":[1]}]]]], 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) => {
@@ -1267,7 +1267,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1267
1267
  }
1268
1268
  }
1269
1269
  if (newValue == null || newValue === false) {
1270
- if (newValue !== false || elm.getAttribute(memberName) === "") {
1270
+ if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
1271
1271
  {
1272
1272
  elm.removeAttribute(memberName);
1273
1273
  }
@@ -1280,6 +1280,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1280
1280
  }
1281
1281
  }
1282
1282
  };
1283
+ var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
1284
+ var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
1283
1285
  var parseClassListRegex = /\s/;
1284
1286
  var parseClassList = (value) => {
1285
1287
  if (typeof value === "object" && value && "baseVal" in value) {
@@ -1573,9 +1575,7 @@ var flushQueuedRefCallbacks = () => {
1573
1575
  }
1574
1576
  };
1575
1577
  var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1576
- if (parent.__insertBefore) {
1577
- return parent.__insertBefore(newNode, reference);
1578
- } else {
1578
+ {
1579
1579
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1580
1580
  }
1581
1581
  };
@@ -1841,6 +1841,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1841
1841
  };
1842
1842
 
1843
1843
  // src/runtime/proxy-component.ts
1844
+ var reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? "" : String(propValue);
1844
1845
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1845
1846
  var _a, _b;
1846
1847
  const prototype = Cstr.prototype;
@@ -1986,7 +1987,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1986
1987
  return;
1987
1988
  }
1988
1989
  const propFlags = members.find(([m]) => m === propName);
1989
- 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
+ }
1990
1997
  const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1991
1998
  if (isBooleanTarget) {
1992
1999
  newValue = newValue === null || newValue === "false" ? false : true;
@@ -2385,6 +2392,6 @@ function transformTag(tag) {
2385
2392
  }
2386
2393
 
2387
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 };
2388
- //# sourceMappingURL=index-BaKXvAYc.js.map
2395
+ //# sourceMappingURL=index-DWC12BJ-.js.map
2389
2396
 
2390
- //# sourceMappingURL=index-BaKXvAYc.js.map
2397
+ //# sourceMappingURL=index-DWC12BJ-.js.map