@devschile/chucao 2.4.0 → 2.5.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.
- package/README.md +17 -16
- package/dist/chucao/chucao.css +1 -1
- package/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/index.esm.js +1 -1
- package/dist/chucao/index.esm.js.map +1 -1
- package/dist/chucao/{p-1ebd9dc4.entry.js → p-0bc141a2.entry.js} +2 -2
- package/dist/chucao/{p-449e1ba0.entry.js → p-0e044eff.entry.js} +2 -2
- package/dist/chucao/{p-a07e0e97.entry.js → p-1108062e.entry.js} +2 -2
- package/dist/chucao/{p-85db779c.entry.js → p-26e144ff.entry.js} +2 -2
- package/dist/chucao/p-2c681cc0.entry.js +2 -0
- package/dist/chucao/p-2c681cc0.entry.js.map +1 -0
- package/dist/chucao/p-2e785177.entry.js +2 -0
- package/dist/chucao/{p-0e3c83a6.entry.js.map → p-2e785177.entry.js.map} +1 -1
- package/dist/chucao/{p-6e95f31f.entry.js → p-337d7f68.entry.js} +2 -2
- package/dist/chucao/{p-7c85f5fe.entry.js → p-350f974d.entry.js} +2 -2
- package/dist/chucao/p-4846cac4.entry.js +2 -0
- package/dist/chucao/{p-d0533af6.entry.js → p-6345c9e1.entry.js} +2 -2
- package/dist/chucao/p-957acf39.entry.js +2 -0
- package/dist/chucao/p-957acf39.entry.js.map +1 -0
- package/dist/chucao/{p-34a9d1f4.entry.js → p-97655c41.entry.js} +2 -2
- package/dist/chucao/{p-b5552b50.entry.js → p-9f73855e.entry.js} +2 -2
- package/dist/chucao/p-CIV5Gg1o.js +3 -0
- package/dist/chucao/p-CIV5Gg1o.js.map +1 -0
- package/dist/chucao/p-CnivhwvG.js +2 -0
- package/dist/chucao/p-CnivhwvG.js.map +1 -0
- package/dist/chucao/{p-17451d92.entry.js → p-b53d954e.entry.js} +2 -2
- package/dist/chucao/{p-d776b092.entry.js → p-b6cc08f0.entry.js} +2 -2
- package/dist/chucao/p-be7b5c21.entry.js +2 -0
- package/dist/chucao/p-be7b5c21.entry.js.map +1 -0
- package/dist/chucao/p-c165f839.entry.js +2 -0
- package/dist/chucao/p-c165f839.entry.js.map +1 -0
- package/dist/chucao/{p-56d64d84.entry.js → p-c251b0d1.entry.js} +2 -2
- package/dist/chucao/p-f5b74bca.entry.js +2 -0
- package/dist/chucao/p-f5b74bca.entry.js.map +1 -0
- package/dist/chucao/{p-84d875e9.entry.js → p-f9fe752c.entry.js} +2 -2
- package/dist/chucao/{p-1778a313.entry.js → p-fdf065e6.entry.js} +2 -2
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-alert_8.cjs.entry.js +34 -10
- package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ch-cluster.cjs.entry.js +3 -3
- package/dist/cjs/ch-divider.cjs.entry.js +2 -2
- package/dist/cjs/ch-drawer.cjs.entry.js +2 -2
- package/dist/cjs/ch-emoji.cjs.entry.js +2 -2
- package/dist/cjs/ch-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ch-grid.cjs.entry.js +2 -2
- package/dist/cjs/ch-icon-button.cjs.entry.js +51 -0
- package/dist/cjs/ch-icon-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-icon.cjs.entry.js +38 -0
- package/dist/cjs/ch-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-link.cjs.entry.js +1 -1
- package/dist/cjs/ch-modal.cjs.entry.js +2 -2
- package/dist/cjs/ch-page-header.cjs.entry.js +45 -0
- package/dist/cjs/ch-page-header.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-radio.cjs.entry.js +2 -2
- package/dist/cjs/ch-segmented-control.cjs.entry.js +2 -2
- package/dist/cjs/ch-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ch-stack.cjs.entry.js +2 -2
- package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ch-tooltip.cjs.entry.js +204 -5
- package/dist/cjs/ch-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/chucao.cjs.js +2 -2
- package/dist/cjs/icons-CNyDgV-q.js +88 -0
- package/dist/cjs/icons-CNyDgV-q.js.map +1 -0
- package/dist/cjs/{index-ysucLiAq.js → index-ByZY6aTj.js} +81 -5
- package/dist/cjs/index-ByZY6aTj.js.map +1 -0
- package/dist/cjs/index.cjs.js +16 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/ch-alert/ch-alert.css +13 -0
- package/dist/collection/components/ch-alert/ch-alert.js +44 -1
- package/dist/collection/components/ch-alert/ch-alert.js.map +1 -1
- package/dist/collection/components/ch-badge/ch-badge.css +30 -1
- package/dist/collection/components/ch-badge/ch-badge.js +35 -1
- package/dist/collection/components/ch-badge/ch-badge.js.map +1 -1
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
- package/dist/collection/components/ch-cluster/ch-cluster.js +2 -2
- package/dist/collection/components/ch-divider/ch-divider.js +1 -1
- package/dist/collection/components/ch-drawer/ch-drawer.js +1 -1
- package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
- package/dist/collection/components/ch-empty-state/ch-empty-state.js +1 -1
- package/dist/collection/components/ch-grid/ch-grid.js +1 -1
- package/dist/collection/components/ch-icon/ch-icon.css +25 -0
- package/dist/collection/components/ch-icon/ch-icon.js +121 -0
- package/dist/collection/components/ch-icon/ch-icon.js.map +1 -0
- package/dist/collection/components/ch-icon-button/ch-icon-button.css +99 -0
- package/dist/collection/components/ch-icon-button/ch-icon-button.js +216 -0
- package/dist/collection/components/ch-icon-button/ch-icon-button.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.js +1 -1
- package/dist/collection/components/ch-modal/ch-modal.js +1 -1
- package/dist/collection/components/ch-page-header/ch-page-header.css +84 -0
- package/dist/collection/components/ch-page-header/ch-page-header.js +162 -0
- package/dist/collection/components/ch-page-header/ch-page-header.js.map +1 -0
- package/dist/collection/components/ch-radio/ch-radio.js +1 -1
- package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +1 -1
- package/dist/collection/components/ch-select/ch-select.js +1 -1
- package/dist/collection/components/ch-skeleton/ch-skeleton.js +1 -1
- package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
- package/dist/collection/components/ch-stack/ch-stack.js +1 -1
- package/dist/collection/components/ch-switch/ch-switch.js +1 -1
- package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
- package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
- package/dist/collection/components/ch-tooltip/ch-tooltip.css +29 -1
- package/dist/collection/components/ch-tooltip/ch-tooltip.js +125 -6
- package/dist/collection/components/ch-tooltip/ch-tooltip.js.map +1 -1
- package/dist/collection/tokens/tokens.js +12 -0
- package/dist/collection/tokens/tokens.js.map +1 -1
- package/dist/collection/tokens/types.js.map +1 -1
- package/dist/collection/utils/icons.js +82 -0
- package/dist/collection/utils/icons.js.map +1 -0
- package/dist/collection/utils/overlay.js +101 -0
- package/dist/collection/utils/overlay.js.map +1 -0
- package/dist/components/ch-accordion.js +1 -1
- package/dist/components/ch-alert.js +1 -1
- package/dist/components/ch-alert.js.map +1 -1
- package/dist/components/ch-badge.js +1 -1
- package/dist/components/ch-badge.js.map +1 -1
- package/dist/components/ch-button.js +1 -1
- package/dist/components/ch-card.js +1 -1
- package/dist/components/ch-checkbox.js +1 -1
- package/dist/components/ch-cluster.js +1 -1
- package/dist/components/ch-divider.js +1 -1
- package/dist/components/ch-drawer.js +1 -1
- package/dist/components/ch-emoji.js +1 -1
- package/dist/components/ch-empty-state.js +1 -1
- package/dist/components/ch-grid.js +1 -1
- package/dist/components/ch-icon-button.d.ts +11 -0
- package/dist/components/ch-icon-button.js +2 -0
- package/dist/components/ch-icon-button.js.map +1 -0
- package/dist/components/ch-icon.d.ts +11 -0
- package/dist/components/ch-icon.js +2 -0
- package/dist/components/ch-icon.js.map +1 -0
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-link.js +1 -1
- package/dist/components/ch-modal.js +1 -1
- package/dist/components/ch-page-header.d.ts +11 -0
- package/dist/components/ch-page-header.js +2 -0
- package/dist/components/ch-page-header.js.map +1 -0
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-segmented-control.js +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-skeleton.js +1 -1
- package/dist/components/ch-spinner.js +1 -1
- package/dist/components/ch-stack.js +1 -1
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/ch-tooltip.js +1 -1
- package/dist/components/ch-tooltip.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-no2_9Jk-.js → p-CV0rD-fF.js} +2 -2
- package/dist/components/p-CnivhwvG.js +2 -0
- package/dist/components/p-CnivhwvG.js.map +1 -0
- package/dist/components/p-qP_9qshx.js +2 -0
- package/dist/components/p-qP_9qshx.js.map +1 -0
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-alert_8.entry.js +34 -10
- package/dist/esm/ch-alert_8.entry.js.map +1 -1
- package/dist/esm/ch-checkbox.entry.js +2 -2
- package/dist/esm/ch-cluster.entry.js +3 -3
- package/dist/esm/ch-divider.entry.js +2 -2
- package/dist/esm/ch-drawer.entry.js +2 -2
- package/dist/esm/ch-emoji.entry.js +2 -2
- package/dist/esm/ch-empty-state.entry.js +2 -2
- package/dist/esm/ch-grid.entry.js +2 -2
- package/dist/esm/ch-icon-button.entry.js +49 -0
- package/dist/esm/ch-icon-button.entry.js.map +1 -0
- package/dist/esm/ch-icon.entry.js +36 -0
- package/dist/esm/ch-icon.entry.js.map +1 -0
- package/dist/esm/ch-link.entry.js +1 -1
- package/dist/esm/ch-modal.entry.js +2 -2
- package/dist/esm/ch-page-header.entry.js +43 -0
- package/dist/esm/ch-page-header.entry.js.map +1 -0
- package/dist/esm/ch-radio.entry.js +2 -2
- package/dist/esm/ch-segmented-control.entry.js +2 -2
- package/dist/esm/ch-skeleton.entry.js +2 -2
- package/dist/esm/ch-stack.entry.js +2 -2
- package/dist/esm/ch-tabs.entry.js +2 -2
- package/dist/esm/ch-textarea.entry.js +2 -2
- package/dist/esm/ch-tooltip.entry.js +204 -5
- package/dist/esm/ch-tooltip.entry.js.map +1 -1
- package/dist/esm/chucao.js +3 -3
- package/dist/esm/icons-CnivhwvG.js +86 -0
- package/dist/esm/icons-CnivhwvG.js.map +1 -0
- package/dist/esm/{index-DVKZbUp9.js → index-CIV5Gg1o.js} +81 -6
- package/dist/esm/index-CIV5Gg1o.js.map +1 -0
- package/dist/esm/index.js +13 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/ch-alert/ch-alert.d.ts +11 -0
- package/dist/types/components/ch-badge/ch-badge.d.ts +14 -0
- package/dist/types/components/ch-icon/ch-icon.d.ts +29 -0
- package/dist/types/components/ch-icon-button/ch-icon-button.d.ts +36 -0
- package/dist/types/components/ch-page-header/ch-page-header.d.ts +39 -0
- package/dist/types/components/ch-tooltip/ch-tooltip.d.ts +32 -2
- package/dist/types/components.d.ts +406 -2
- package/dist/types/tokens/tokens.d.ts +12 -0
- package/dist/types/tokens/types.d.ts +2 -1
- package/dist/types/utils/icons.d.ts +15 -0
- package/dist/types/utils/overlay.d.ts +49 -0
- package/dist-react/components.d.ts +12 -1
- package/dist-react/components.js +27 -0
- package/dist-react/components.ts +37 -1
- package/dist-vue/index.d.ts +3 -0
- package/dist-vue/index.js +29 -1
- package/dist-vue/index.ts +35 -1
- package/hydrate/index.js +601 -34
- package/hydrate/index.mjs +601 -34
- package/package.json +91 -4
- package/dist/chucao/p-0e3c83a6.entry.js +0 -2
- package/dist/chucao/p-82216381.entry.js +0 -2
- package/dist/chucao/p-82216381.entry.js.map +0 -1
- package/dist/chucao/p-907195ff.entry.js +0 -2
- package/dist/chucao/p-DVKZbUp9.js +0 -3
- package/dist/chucao/p-DVKZbUp9.js.map +0 -1
- package/dist/chucao/p-b392021c.entry.js +0 -2
- package/dist/chucao/p-b392021c.entry.js.map +0 -1
- package/dist/cjs/index-ysucLiAq.js.map +0 -1
- package/dist/components/p-DQOKq7af.js +0 -2
- package/dist/components/p-DQOKq7af.js.map +0 -1
- package/dist/esm/index-DVKZbUp9.js.map +0 -1
- /package/dist/chucao/{p-1ebd9dc4.entry.js.map → p-0bc141a2.entry.js.map} +0 -0
- /package/dist/chucao/{p-449e1ba0.entry.js.map → p-0e044eff.entry.js.map} +0 -0
- /package/dist/chucao/{p-a07e0e97.entry.js.map → p-1108062e.entry.js.map} +0 -0
- /package/dist/chucao/{p-85db779c.entry.js.map → p-26e144ff.entry.js.map} +0 -0
- /package/dist/chucao/{p-6e95f31f.entry.js.map → p-337d7f68.entry.js.map} +0 -0
- /package/dist/chucao/{p-7c85f5fe.entry.js.map → p-350f974d.entry.js.map} +0 -0
- /package/dist/chucao/{p-907195ff.entry.js.map → p-4846cac4.entry.js.map} +0 -0
- /package/dist/chucao/{p-d0533af6.entry.js.map → p-6345c9e1.entry.js.map} +0 -0
- /package/dist/chucao/{p-34a9d1f4.entry.js.map → p-97655c41.entry.js.map} +0 -0
- /package/dist/chucao/{p-b5552b50.entry.js.map → p-9f73855e.entry.js.map} +0 -0
- /package/dist/chucao/{p-17451d92.entry.js.map → p-b53d954e.entry.js.map} +0 -0
- /package/dist/chucao/{p-d776b092.entry.js.map → p-b6cc08f0.entry.js.map} +0 -0
- /package/dist/chucao/{p-56d64d84.entry.js.map → p-c251b0d1.entry.js.map} +0 -0
- /package/dist/chucao/{p-84d875e9.entry.js.map → p-f9fe752c.entry.js.map} +0 -0
- /package/dist/chucao/{p-1778a313.entry.js.map → p-fdf065e6.entry.js.map} +0 -0
- /package/dist/components/{p-no2_9Jk-.js.map → p-CV0rD-fF.js.map} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const chIcons = {
|
|
4
|
+
alert: [
|
|
5
|
+
{ tag: 'path', attrs: { d: 'm21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3' } },
|
|
6
|
+
{ tag: 'path', attrs: { d: 'M12 9v4' } },
|
|
7
|
+
{ tag: 'path', attrs: { d: 'M12 17h.01' } },
|
|
8
|
+
],
|
|
9
|
+
arrowRight: [
|
|
10
|
+
{ tag: 'path', attrs: { d: 'M5 12h14' } },
|
|
11
|
+
{ tag: 'path', attrs: { d: 'm12 5 7 7-7 7' } },
|
|
12
|
+
],
|
|
13
|
+
check: [{ tag: 'path', attrs: { d: 'M20 6 9 17l-5-5' } }],
|
|
14
|
+
chevronDown: [{ tag: 'path', attrs: { d: 'm6 9 6 6 6-6' } }],
|
|
15
|
+
chevronRight: [{ tag: 'path', attrs: { d: 'm9 18 6-6-6-6' } }],
|
|
16
|
+
close: [
|
|
17
|
+
{ tag: 'path', attrs: { d: 'M18 6 6 18' } },
|
|
18
|
+
{ tag: 'path', attrs: { d: 'm6 6 12 12' } },
|
|
19
|
+
],
|
|
20
|
+
copy: [
|
|
21
|
+
{ tag: 'rect', attrs: { width: '14', height: '14', x: '8', y: '8', rx: '2', ry: '2' } },
|
|
22
|
+
{ tag: 'path', attrs: { d: 'M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2' } },
|
|
23
|
+
],
|
|
24
|
+
delete: [
|
|
25
|
+
{ tag: 'path', attrs: { d: 'M10 11v6' } },
|
|
26
|
+
{ tag: 'path', attrs: { d: 'M14 11v6' } },
|
|
27
|
+
{ tag: 'path', attrs: { d: 'M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6' } },
|
|
28
|
+
{ tag: 'path', attrs: { d: 'M3 6h18' } },
|
|
29
|
+
{ tag: 'path', attrs: { d: 'M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2' } },
|
|
30
|
+
],
|
|
31
|
+
download: [
|
|
32
|
+
{ tag: 'path', attrs: { d: 'M12 15V3' } },
|
|
33
|
+
{ tag: 'path', attrs: { d: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' } },
|
|
34
|
+
{ tag: 'path', attrs: { d: 'm7 10 5 5 5-5' } },
|
|
35
|
+
],
|
|
36
|
+
error: [
|
|
37
|
+
{ tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },
|
|
38
|
+
{ tag: 'line', attrs: {} },
|
|
39
|
+
{ tag: 'line', attrs: {} },
|
|
40
|
+
],
|
|
41
|
+
externalLink: [
|
|
42
|
+
{ tag: 'path', attrs: { d: 'M15 3h6v6' } },
|
|
43
|
+
{ tag: 'path', attrs: { d: 'M10 14 21 3' } },
|
|
44
|
+
{ tag: 'path', attrs: { d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6' } },
|
|
45
|
+
],
|
|
46
|
+
info: [
|
|
47
|
+
{ tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },
|
|
48
|
+
{ tag: 'path', attrs: { d: 'M12 16v-4' } },
|
|
49
|
+
{ tag: 'path', attrs: { d: 'M12 8h.01' } },
|
|
50
|
+
],
|
|
51
|
+
menu: [
|
|
52
|
+
{ tag: 'path', attrs: { d: 'M4 5h16' } },
|
|
53
|
+
{ tag: 'path', attrs: { d: 'M4 12h16' } },
|
|
54
|
+
{ tag: 'path', attrs: { d: 'M4 19h16' } },
|
|
55
|
+
],
|
|
56
|
+
plus: [
|
|
57
|
+
{ tag: 'path', attrs: { d: 'M5 12h14' } },
|
|
58
|
+
{ tag: 'path', attrs: { d: 'M12 5v14' } },
|
|
59
|
+
],
|
|
60
|
+
search: [
|
|
61
|
+
{ tag: 'path', attrs: { d: 'm21 21-4.34-4.34' } },
|
|
62
|
+
{ tag: 'circle', attrs: { cx: '11', cy: '11', r: '8' } },
|
|
63
|
+
],
|
|
64
|
+
spinner: [
|
|
65
|
+
{ tag: 'path', attrs: { d: 'M12 2v4' } },
|
|
66
|
+
{ tag: 'path', attrs: { d: 'm16.2 7.8 2.9-2.9' } },
|
|
67
|
+
{ tag: 'path', attrs: { d: 'M18 12h4' } },
|
|
68
|
+
{ tag: 'path', attrs: { d: 'm16.2 16.2 2.9 2.9' } },
|
|
69
|
+
{ tag: 'path', attrs: { d: 'M12 18v4' } },
|
|
70
|
+
{ tag: 'path', attrs: { d: 'm4.9 19.1 2.9-2.9' } },
|
|
71
|
+
{ tag: 'path', attrs: { d: 'M2 12h4' } },
|
|
72
|
+
{ tag: 'path', attrs: { d: 'm4.9 4.9 2.9 2.9' } },
|
|
73
|
+
],
|
|
74
|
+
success: [
|
|
75
|
+
{ tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },
|
|
76
|
+
{ tag: 'path', attrs: { d: 'm16 9-5.5 5.5L8 12' } },
|
|
77
|
+
],
|
|
78
|
+
upload: [
|
|
79
|
+
{ tag: 'path', attrs: { d: 'M12 3v12' } },
|
|
80
|
+
{ tag: 'path', attrs: { d: 'm17 8-5-5-5 5' } },
|
|
81
|
+
{ tag: 'path', attrs: { d: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' } },
|
|
82
|
+
],
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
exports.chIcons = chIcons;
|
|
86
|
+
//# sourceMappingURL=icons-CNyDgV-q.js.map
|
|
87
|
+
|
|
88
|
+
//# sourceMappingURL=icons-CNyDgV-q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons-CNyDgV-q.js","sources":["src/utils/icons.ts"],"sourcesContent":["/**\n * Icon geometry, copied from Lucide v1.82.0 (https://lucide.dev), ISC licensed.\n *\n * Only the shapes are vendored, not the package: a dependency would ship a\n * whole icon set to consumers who need six of them, and the set has to be\n * frozen so an upstream rename cannot silently break a public `name` value.\n * Each entry keeps Lucide's 24x24 viewBox, so stroke width stays consistent\n * across sizes.\n */\nexport type ChIconName =\n | 'alert'\n | 'arrowRight'\n | 'check'\n | 'chevronDown'\n | 'chevronRight'\n | 'close'\n | 'copy'\n | 'delete'\n | 'download'\n | 'error'\n | 'externalLink'\n | 'info'\n | 'menu'\n | 'plus'\n | 'search'\n | 'spinner'\n | 'success'\n | 'upload';\n\nexport interface ChIconShape {\n tag: 'path' | 'circle' | 'rect' | 'line' | 'polyline' | 'polygon';\n attrs: Record<string, string>;\n}\n\nexport const chIcons: Record<ChIconName, ChIconShape[]> = {\n alert: [\n { tag: 'path', attrs: { d: 'm21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3' } },\n { tag: 'path', attrs: { d: 'M12 9v4' } },\n { tag: 'path', attrs: { d: 'M12 17h.01' } },\n ],\n arrowRight: [\n { tag: 'path', attrs: { d: 'M5 12h14' } },\n { tag: 'path', attrs: { d: 'm12 5 7 7-7 7' } },\n ],\n check: [{ tag: 'path', attrs: { d: 'M20 6 9 17l-5-5' } }],\n chevronDown: [{ tag: 'path', attrs: { d: 'm6 9 6 6 6-6' } }],\n chevronRight: [{ tag: 'path', attrs: { d: 'm9 18 6-6-6-6' } }],\n close: [\n { tag: 'path', attrs: { d: 'M18 6 6 18' } },\n { tag: 'path', attrs: { d: 'm6 6 12 12' } },\n ],\n copy: [\n { tag: 'rect', attrs: { width: '14', height: '14', x: '8', y: '8', rx: '2', ry: '2' } },\n { tag: 'path', attrs: { d: 'M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2' } },\n ],\n delete: [\n { tag: 'path', attrs: { d: 'M10 11v6' } },\n { tag: 'path', attrs: { d: 'M14 11v6' } },\n { tag: 'path', attrs: { d: 'M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6' } },\n { tag: 'path', attrs: { d: 'M3 6h18' } },\n { tag: 'path', attrs: { d: 'M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2' } },\n ],\n download: [\n { tag: 'path', attrs: { d: 'M12 15V3' } },\n { tag: 'path', attrs: { d: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' } },\n { tag: 'path', attrs: { d: 'm7 10 5 5 5-5' } },\n ],\n error: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },\n { tag: 'line', attrs: {} },\n { tag: 'line', attrs: {} },\n ],\n externalLink: [\n { tag: 'path', attrs: { d: 'M15 3h6v6' } },\n { tag: 'path', attrs: { d: 'M10 14 21 3' } },\n { tag: 'path', attrs: { d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6' } },\n ],\n info: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },\n { tag: 'path', attrs: { d: 'M12 16v-4' } },\n { tag: 'path', attrs: { d: 'M12 8h.01' } },\n ],\n menu: [\n { tag: 'path', attrs: { d: 'M4 5h16' } },\n { tag: 'path', attrs: { d: 'M4 12h16' } },\n { tag: 'path', attrs: { d: 'M4 19h16' } },\n ],\n plus: [\n { tag: 'path', attrs: { d: 'M5 12h14' } },\n { tag: 'path', attrs: { d: 'M12 5v14' } },\n ],\n search: [\n { tag: 'path', attrs: { d: 'm21 21-4.34-4.34' } },\n { tag: 'circle', attrs: { cx: '11', cy: '11', r: '8' } },\n ],\n spinner: [\n { tag: 'path', attrs: { d: 'M12 2v4' } },\n { tag: 'path', attrs: { d: 'm16.2 7.8 2.9-2.9' } },\n { tag: 'path', attrs: { d: 'M18 12h4' } },\n { tag: 'path', attrs: { d: 'm16.2 16.2 2.9 2.9' } },\n { tag: 'path', attrs: { d: 'M12 18v4' } },\n { tag: 'path', attrs: { d: 'm4.9 19.1 2.9-2.9' } },\n { tag: 'path', attrs: { d: 'M2 12h4' } },\n { tag: 'path', attrs: { d: 'm4.9 4.9 2.9 2.9' } },\n ],\n success: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },\n { tag: 'path', attrs: { d: 'm16 9-5.5 5.5L8 12' } },\n ],\n upload: [\n { tag: 'path', attrs: { d: 'M12 3v12' } },\n { tag: 'path', attrs: { d: 'm17 8-5-5-5 5' } },\n { tag: 'path', attrs: { d: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' } },\n ],\n};\n"],"names":[],"mappings":";;AAkCO,MAAM,OAAO,GAAsC;AACxD,IAAA,KAAK,EAAE;QACL,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,0EAA0E,EAAE,EAAE;QACzG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE;QACxC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,EAAE;AAC5C,KAAA;AACD,IAAA,UAAU,EAAE;QACV,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE;QACzC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,EAAE;AAC/C,KAAA;AACD,IAAA,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,iBAAiB,EAAE,EAAE,CAAC;AACzD,IAAA,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC;AAC5D,IAAA,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,eAAe,EA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kB,EAAE,EAAE;AAClD,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QACzD,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,oBAAoB,EAAE,EAAE;AACpD,KAAA;AACD,IAAA,MAAM,EAAE;QACN,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE;QACzC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,EAAE;QAC9C,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,2CAA2C,EAAE,EAAE;AAC3E,KAAA;;;;;"}
|
|
@@ -4,12 +4,16 @@ const NAMESPACE = 'chucao';
|
|
|
4
4
|
const BUILD = /* chucao */ { hotModuleReplacement: false, lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
|
|
5
5
|
|
|
6
6
|
const globalScripts = () => {};
|
|
7
|
-
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)}";
|
|
7
|
+
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;--icon-size-sm:16px;--icon-size-md:20px;--icon-size-lg:24px;--icon-stroke:2px}@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)}";
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
Stencil Client Platform v4.45.1 | MIT Licensed | https://stenciljs.com
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
|
|
14
|
+
// src/utils/constants.ts
|
|
15
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
16
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
13
17
|
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
14
18
|
PrimitiveType2["Undefined"] = "undefined";
|
|
15
19
|
PrimitiveType2["Null"] = "null";
|
|
@@ -571,6 +575,13 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
571
575
|
}
|
|
572
576
|
}
|
|
573
577
|
}
|
|
578
|
+
if (typeof nodeName === "function") {
|
|
579
|
+
return nodeName(
|
|
580
|
+
vnodeData === null ? {} : vnodeData,
|
|
581
|
+
vNodeChildren,
|
|
582
|
+
vdomFnUtils
|
|
583
|
+
);
|
|
584
|
+
}
|
|
574
585
|
const vnode = newVNode(nodeName, null);
|
|
575
586
|
vnode.$attrs$ = vnodeData;
|
|
576
587
|
if (vNodeChildren.length > 0) {
|
|
@@ -600,6 +611,36 @@ var newVNode = (tag, text) => {
|
|
|
600
611
|
};
|
|
601
612
|
var Host = {};
|
|
602
613
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
614
|
+
var vdomFnUtils = {
|
|
615
|
+
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
616
|
+
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
617
|
+
};
|
|
618
|
+
var convertToPublic = (node) => ({
|
|
619
|
+
vattrs: node.$attrs$,
|
|
620
|
+
vchildren: node.$children$,
|
|
621
|
+
vkey: node.$key$,
|
|
622
|
+
vname: node.$name$,
|
|
623
|
+
vtag: node.$tag$,
|
|
624
|
+
vtext: node.$text$
|
|
625
|
+
});
|
|
626
|
+
var convertToPrivate = (node) => {
|
|
627
|
+
if (typeof node.vtag === "function") {
|
|
628
|
+
const vnodeData = { ...node.vattrs };
|
|
629
|
+
if (node.vkey) {
|
|
630
|
+
vnodeData.key = node.vkey;
|
|
631
|
+
}
|
|
632
|
+
if (node.vname) {
|
|
633
|
+
vnodeData.name = node.vname;
|
|
634
|
+
}
|
|
635
|
+
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
636
|
+
}
|
|
637
|
+
const vnode = newVNode(node.vtag, node.vtext);
|
|
638
|
+
vnode.$attrs$ = node.vattrs;
|
|
639
|
+
vnode.$children$ = node.vchildren;
|
|
640
|
+
vnode.$key$ = node.vkey;
|
|
641
|
+
vnode.$name$ = node.vname;
|
|
642
|
+
return vnode;
|
|
643
|
+
};
|
|
603
644
|
|
|
604
645
|
// src/runtime/client-hydrate.ts
|
|
605
646
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
@@ -1372,12 +1413,19 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1372
1413
|
if (newVNode2.$text$ != null) {
|
|
1373
1414
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
1374
1415
|
} else {
|
|
1416
|
+
if (!isSvgMode) {
|
|
1417
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
1418
|
+
}
|
|
1375
1419
|
if (!win.document) {
|
|
1376
1420
|
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
1377
1421
|
}
|
|
1378
|
-
elm = newVNode2.$elm$ = win.document.
|
|
1422
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
1423
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
1379
1424
|
newVNode2.$tag$
|
|
1380
|
-
);
|
|
1425
|
+
) ;
|
|
1426
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
1427
|
+
isSvgMode = false;
|
|
1428
|
+
}
|
|
1381
1429
|
{
|
|
1382
1430
|
updateElement(null, newVNode2, isSvgMode);
|
|
1383
1431
|
}
|
|
@@ -1390,6 +1438,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
1390
1438
|
}
|
|
1391
1439
|
}
|
|
1392
1440
|
}
|
|
1441
|
+
{
|
|
1442
|
+
if (newVNode2.$tag$ === "svg") {
|
|
1443
|
+
isSvgMode = false;
|
|
1444
|
+
} else if (elm.tagName === "foreignObject") {
|
|
1445
|
+
isSvgMode = true;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1393
1448
|
}
|
|
1394
1449
|
elm["s-hn"] = hostTagName;
|
|
1395
1450
|
return elm;
|
|
@@ -1548,6 +1603,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1548
1603
|
const tag = newVNode2.$tag$;
|
|
1549
1604
|
const text = newVNode2.$text$;
|
|
1550
1605
|
if (text == null) {
|
|
1606
|
+
{
|
|
1607
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1608
|
+
}
|
|
1551
1609
|
{
|
|
1552
1610
|
if (tag === "slot" && !useNativeShadowDom) {
|
|
1553
1611
|
if (oldVNode.$name$ !== newVNode2.$name$) {
|
|
@@ -1572,6 +1630,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
1572
1630
|
} else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
|
|
1573
1631
|
newVNode2.$children$ = oldChildren;
|
|
1574
1632
|
}
|
|
1633
|
+
if (isSvgMode && tag === "svg") {
|
|
1634
|
+
isSvgMode = false;
|
|
1635
|
+
}
|
|
1575
1636
|
} else if (oldVNode.$text$ !== text) {
|
|
1576
1637
|
elm.data = text;
|
|
1577
1638
|
}
|
|
@@ -1783,6 +1844,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1783
1844
|
hostRef.$flags$ &= -517;
|
|
1784
1845
|
}
|
|
1785
1846
|
};
|
|
1847
|
+
var forceUpdate = (ref) => {
|
|
1848
|
+
var _a;
|
|
1849
|
+
{
|
|
1850
|
+
const hostRef = getHostRef(ref);
|
|
1851
|
+
const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
|
|
1852
|
+
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1853
|
+
scheduleUpdate(hostRef, false);
|
|
1854
|
+
}
|
|
1855
|
+
return isConnected;
|
|
1856
|
+
}
|
|
1857
|
+
};
|
|
1786
1858
|
var appDidLoad = (who) => {
|
|
1787
1859
|
var _a;
|
|
1788
1860
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
@@ -2407,6 +2479,9 @@ var getHostListenerTarget = (doc, elm, flags) => {
|
|
|
2407
2479
|
if (flags & 4 /* TargetDocument */) {
|
|
2408
2480
|
return doc;
|
|
2409
2481
|
}
|
|
2482
|
+
if (flags & 8 /* TargetWindow */) {
|
|
2483
|
+
return win;
|
|
2484
|
+
}
|
|
2410
2485
|
return elm;
|
|
2411
2486
|
};
|
|
2412
2487
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -2423,12 +2498,13 @@ function transformTag(tag) {
|
|
|
2423
2498
|
exports.Host = Host;
|
|
2424
2499
|
exports.bootstrapLazy = bootstrapLazy;
|
|
2425
2500
|
exports.createEvent = createEvent;
|
|
2501
|
+
exports.forceUpdate = forceUpdate;
|
|
2426
2502
|
exports.getElement = getElement;
|
|
2427
2503
|
exports.globalScripts = globalScripts;
|
|
2428
2504
|
exports.h = h;
|
|
2429
2505
|
exports.promiseResolve = promiseResolve;
|
|
2430
2506
|
exports.registerInstance = registerInstance;
|
|
2431
2507
|
exports.setNonce = setNonce;
|
|
2432
|
-
//# sourceMappingURL=index-
|
|
2508
|
+
//# sourceMappingURL=index-ByZY6aTj.js.map
|
|
2433
2509
|
|
|
2434
|
-
//# sourceMappingURL=index-
|
|
2510
|
+
//# sourceMappingURL=index-ByZY6aTj.js.map
|