@devschile/chucao 1.4.0 → 1.5.1
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 +3 -0
- package/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/{p-438e1401.entry.js → p-12e02f8e.entry.js} +2 -2
- package/dist/chucao/{p-7413b8c3.entry.js → p-21fa1897.entry.js} +2 -2
- package/dist/chucao/p-5c5048cf.entry.js +2 -0
- package/dist/chucao/p-5c5048cf.entry.js.map +1 -0
- package/dist/chucao/p-5df14f4b.entry.js +2 -0
- package/dist/chucao/p-5df14f4b.entry.js.map +1 -0
- package/dist/chucao/p-5e0ba154.entry.js +2 -0
- package/dist/chucao/p-5e0ba154.entry.js.map +1 -0
- package/dist/chucao/p-C_GZnvOi.js +3 -0
- package/dist/chucao/p-C_GZnvOi.js.map +1 -0
- package/dist/chucao/{p-1f47dd08.entry.js → p-bd015077.entry.js} +2 -2
- package/dist/chucao/p-ca96fa8a.entry.js +2 -0
- package/dist/chucao/p-ca96fa8a.entry.js.map +1 -0
- package/dist/chucao/{p-90db80a2.entry.js → p-ccae6c46.entry.js} +2 -2
- package/dist/chucao/{p-faa21ce0.entry.js → p-e25ff59c.entry.js} +2 -2
- package/dist/chucao/p-e25ff59c.entry.js.map +1 -0
- package/dist/cjs/ch-accordion.cjs.entry.js +48 -0
- package/dist/cjs/ch-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-badge_5.cjs.entry.js +6 -6
- package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ch-divider.cjs.entry.js +24 -0
- package/dist/cjs/ch-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-link.cjs.entry.js +49 -0
- package/dist/cjs/ch-link.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-radio.cjs.entry.js +2 -2
- package/dist/cjs/ch-switch.cjs.entry.js +3 -3
- package/dist/cjs/ch-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-tabs.cjs.entry.js +100 -0
- package/dist/cjs/ch-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
- package/dist/cjs/chucao.cjs.js +2 -2
- package/dist/cjs/{index-DX3RZKi8.js → index-Ha3VDOML.js} +32 -3
- package/dist/cjs/index-Ha3VDOML.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/ch-accordion/ch-accordion.css +72 -0
- package/dist/collection/components/ch-accordion/ch-accordion.js +111 -0
- package/dist/collection/components/ch-accordion/ch-accordion.js.map +1 -0
- package/dist/collection/components/ch-badge/ch-badge.js +1 -1
- package/dist/collection/components/ch-button/ch-button.js +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-divider/ch-divider.css +25 -0
- package/dist/collection/components/ch-divider/ch-divider.js +53 -0
- package/dist/collection/components/ch-divider/ch-divider.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.js +1 -1
- package/dist/collection/components/ch-link/ch-link.css +40 -0
- package/dist/collection/components/ch-link/ch-link.js +158 -0
- package/dist/collection/components/ch-link/ch-link.js.map +1 -0
- package/dist/collection/components/ch-radio/ch-radio.js +1 -1
- package/dist/collection/components/ch-select/ch-select.js +1 -1
- package/dist/collection/components/ch-switch/ch-switch.css +1 -1
- package/dist/collection/components/ch-switch/ch-switch.js +1 -1
- package/dist/collection/components/ch-switch/ch-switch.js.map +1 -1
- package/dist/collection/components/ch-tabs/ch-tabs.css +69 -0
- package/dist/collection/components/ch-tabs/ch-tabs.js +182 -0
- package/dist/collection/components/ch-tabs/ch-tabs.js.map +1 -0
- package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
- package/dist/components/ch-accordion.d.ts +11 -0
- package/dist/components/ch-accordion.js +2 -0
- package/dist/components/ch-accordion.js.map +1 -0
- package/dist/components/ch-badge.js +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-divider.d.ts +11 -0
- package/dist/components/ch-divider.js +2 -0
- package/dist/components/ch-divider.js.map +1 -0
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-link.d.ts +11 -0
- package/dist/components/ch-link.js +2 -0
- package/dist/components/ch-link.js.map +1 -0
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-switch.js.map +1 -1
- package/dist/components/ch-tabs.d.ts +11 -0
- package/dist/components/ch-tabs.js +2 -0
- package/dist/components/ch-tabs.js.map +1 -0
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-C3Jfy_hI.js +2 -0
- package/dist/components/p-C3Jfy_hI.js.map +1 -0
- package/dist/esm/ch-accordion.entry.js +46 -0
- package/dist/esm/ch-accordion.entry.js.map +1 -0
- package/dist/esm/ch-badge_5.entry.js +6 -6
- package/dist/esm/ch-checkbox.entry.js +2 -2
- package/dist/esm/ch-divider.entry.js +22 -0
- package/dist/esm/ch-divider.entry.js.map +1 -0
- package/dist/esm/ch-link.entry.js +47 -0
- package/dist/esm/ch-link.entry.js.map +1 -0
- package/dist/esm/ch-radio.entry.js +2 -2
- package/dist/esm/ch-switch.entry.js +3 -3
- package/dist/esm/ch-switch.entry.js.map +1 -1
- package/dist/esm/ch-tabs.entry.js +98 -0
- package/dist/esm/ch-tabs.entry.js.map +1 -0
- package/dist/esm/ch-textarea.entry.js +2 -2
- package/dist/esm/chucao.js +3 -3
- package/dist/esm/{index-Bk9pvIKL.js → index-C_GZnvOi.js} +32 -3
- package/dist/esm/index-C_GZnvOi.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/ch-accordion/ch-accordion.d.ts +25 -0
- package/dist/types/components/ch-divider/ch-divider.d.ts +8 -0
- package/dist/types/components/ch-link/ch-link.d.ts +28 -0
- package/dist/types/components/ch-tabs/ch-tabs.d.ts +34 -0
- package/dist/types/components.d.ts +223 -0
- package/dist-react/components.d.ts +19 -1
- package/dist-react/components.js +36 -0
- package/dist-react/components.ts +49 -1
- package/dist-vue/index.d.ts +4 -0
- package/dist-vue/index.js +31 -0
- package/dist-vue/index.ts +39 -0
- package/package.json +1 -1
- package/dist/chucao/p-Bk9pvIKL.js +0 -3
- package/dist/chucao/p-Bk9pvIKL.js.map +0 -1
- package/dist/chucao/p-faa21ce0.entry.js.map +0 -1
- package/dist/cjs/index-DX3RZKi8.js.map +0 -1
- package/dist/components/p-CcEsJ4Ml.js +0 -2
- package/dist/components/p-CcEsJ4Ml.js.map +0 -1
- package/dist/esm/index-Bk9pvIKL.js.map +0 -1
- /package/dist/chucao/{p-438e1401.entry.js.map → p-12e02f8e.entry.js.map} +0 -0
- /package/dist/chucao/{p-7413b8c3.entry.js.map → p-21fa1897.entry.js.map} +0 -0
- /package/dist/chucao/{p-1f47dd08.entry.js.map → p-bd015077.entry.js.map} +0 -0
- /package/dist/chucao/{p-90db80a2.entry.js.map → p-ccae6c46.entry.js.map} +0 -0
package/dist-react/components.ts
CHANGED
|
@@ -11,18 +11,33 @@ import type { EventName, StencilReactComponent } from '@stencil/react-output-tar
|
|
|
11
11
|
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
12
12
|
import React from 'react';
|
|
13
13
|
|
|
14
|
-
import { type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
|
|
14
|
+
import { type ChAccordionCustomEvent, type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChLinkCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTabsCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
|
|
15
15
|
import type { Components } from "@devschile/chucao/dist/components";
|
|
16
|
+
import { ChAccordion as ChAccordionElement, defineCustomElement as defineChAccordion } from "@devschile/chucao/dist/components/ch-accordion.js";
|
|
16
17
|
import { ChBadge as ChBadgeElement, defineCustomElement as defineChBadge } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
17
18
|
import { ChButton as ChButtonElement, defineCustomElement as defineChButton } from "@devschile/chucao/dist/components/ch-button.js";
|
|
18
19
|
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
19
20
|
import { ChCheckbox as ChCheckboxElement, defineCustomElement as defineChCheckbox } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
21
|
+
import { ChDivider as ChDividerElement, defineCustomElement as defineChDivider } from "@devschile/chucao/dist/components/ch-divider.js";
|
|
20
22
|
import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
|
|
23
|
+
import { ChLink as ChLinkElement, defineCustomElement as defineChLink } from "@devschile/chucao/dist/components/ch-link.js";
|
|
21
24
|
import { ChRadio as ChRadioElement, defineCustomElement as defineChRadio } from "@devschile/chucao/dist/components/ch-radio.js";
|
|
22
25
|
import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } from "@devschile/chucao/dist/components/ch-select.js";
|
|
23
26
|
import { ChSwitch as ChSwitchElement, defineCustomElement as defineChSwitch } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
27
|
+
import { ChTabs as ChTabsElement, defineCustomElement as defineChTabs } from "@devschile/chucao/dist/components/ch-tabs.js";
|
|
24
28
|
import { ChTextarea as ChTextareaElement, defineCustomElement as defineChTextarea } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
25
29
|
|
|
30
|
+
export type ChAccordionEvents = { onChChange: EventName<ChAccordionCustomEvent<string | undefined>> };
|
|
31
|
+
|
|
32
|
+
export const ChAccordion: StencilReactComponent<ChAccordionElement, ChAccordionEvents, Components.ChAccordion> = /*@__PURE__*/ createComponent<ChAccordionElement, ChAccordionEvents, Components.ChAccordion>({
|
|
33
|
+
tagName: 'ch-accordion',
|
|
34
|
+
elementClass: ChAccordionElement,
|
|
35
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
36
|
+
react: React,
|
|
37
|
+
events: { onChChange: 'chChange' } as ChAccordionEvents,
|
|
38
|
+
defineCustomElement: defineChAccordion
|
|
39
|
+
});
|
|
40
|
+
|
|
26
41
|
export type ChBadgeEvents = NonNullable<unknown>;
|
|
27
42
|
|
|
28
43
|
export const ChBadge: StencilReactComponent<ChBadgeElement, ChBadgeEvents, Components.ChBadge> = /*@__PURE__*/ createComponent<ChBadgeElement, ChBadgeEvents, Components.ChBadge>({
|
|
@@ -67,6 +82,17 @@ export const ChCheckbox: StencilReactComponent<ChCheckboxElement, ChCheckboxEven
|
|
|
67
82
|
defineCustomElement: defineChCheckbox
|
|
68
83
|
});
|
|
69
84
|
|
|
85
|
+
export type ChDividerEvents = NonNullable<unknown>;
|
|
86
|
+
|
|
87
|
+
export const ChDivider: StencilReactComponent<ChDividerElement, ChDividerEvents, Components.ChDivider> = /*@__PURE__*/ createComponent<ChDividerElement, ChDividerEvents, Components.ChDivider>({
|
|
88
|
+
tagName: 'ch-divider',
|
|
89
|
+
elementClass: ChDividerElement,
|
|
90
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
91
|
+
react: React,
|
|
92
|
+
events: {} as ChDividerEvents,
|
|
93
|
+
defineCustomElement: defineChDivider
|
|
94
|
+
});
|
|
95
|
+
|
|
70
96
|
export type ChInputEvents = {
|
|
71
97
|
onChInput: EventName<ChInputCustomEvent<string>>,
|
|
72
98
|
onChChange: EventName<ChInputCustomEvent<string>>
|
|
@@ -84,6 +110,17 @@ export const ChInput: StencilReactComponent<ChInputElement, ChInputEvents, Compo
|
|
|
84
110
|
defineCustomElement: defineChInput
|
|
85
111
|
});
|
|
86
112
|
|
|
113
|
+
export type ChLinkEvents = { onChClick: EventName<ChLinkCustomEvent<MouseEvent>> };
|
|
114
|
+
|
|
115
|
+
export const ChLink: StencilReactComponent<ChLinkElement, ChLinkEvents, Components.ChLink> = /*@__PURE__*/ createComponent<ChLinkElement, ChLinkEvents, Components.ChLink>({
|
|
116
|
+
tagName: 'ch-link',
|
|
117
|
+
elementClass: ChLinkElement,
|
|
118
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
119
|
+
react: React,
|
|
120
|
+
events: { onChClick: 'chClick' } as ChLinkEvents,
|
|
121
|
+
defineCustomElement: defineChLink
|
|
122
|
+
});
|
|
123
|
+
|
|
87
124
|
export type ChRadioEvents = { onChChange: EventName<ChRadioCustomEvent<string>> };
|
|
88
125
|
|
|
89
126
|
export const ChRadio: StencilReactComponent<ChRadioElement, ChRadioEvents, Components.ChRadio> = /*@__PURE__*/ createComponent<ChRadioElement, ChRadioEvents, Components.ChRadio>({
|
|
@@ -117,6 +154,17 @@ export const ChSwitch: StencilReactComponent<ChSwitchElement, ChSwitchEvents, Co
|
|
|
117
154
|
defineCustomElement: defineChSwitch
|
|
118
155
|
});
|
|
119
156
|
|
|
157
|
+
export type ChTabsEvents = { onChChange: EventName<ChTabsCustomEvent<string>> };
|
|
158
|
+
|
|
159
|
+
export const ChTabs: StencilReactComponent<ChTabsElement, ChTabsEvents, Components.ChTabs> = /*@__PURE__*/ createComponent<ChTabsElement, ChTabsEvents, Components.ChTabs>({
|
|
160
|
+
tagName: 'ch-tabs',
|
|
161
|
+
elementClass: ChTabsElement,
|
|
162
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
163
|
+
react: React,
|
|
164
|
+
events: { onChChange: 'chChange' } as ChTabsEvents,
|
|
165
|
+
defineCustomElement: defineChTabs
|
|
166
|
+
});
|
|
167
|
+
|
|
120
168
|
export type ChTextareaEvents = {
|
|
121
169
|
onChInput: EventName<ChTextareaCustomEvent<string>>,
|
|
122
170
|
onChChange: EventName<ChTextareaCustomEvent<string>>
|
package/dist-vue/index.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { type StencilVueComponent } from '@stencil/vue-output-target/runtime';
|
|
2
2
|
import type { JSX } from '@devschile/chucao/dist/components';
|
|
3
|
+
export declare const ChAccordion: StencilVueComponent<JSX.ChAccordion>;
|
|
3
4
|
export declare const ChBadge: StencilVueComponent<JSX.ChBadge>;
|
|
4
5
|
export declare const ChButton: StencilVueComponent<JSX.ChButton>;
|
|
5
6
|
export declare const ChCard: StencilVueComponent<JSX.ChCard>;
|
|
6
7
|
export declare const ChCheckbox: StencilVueComponent<JSX.ChCheckbox>;
|
|
8
|
+
export declare const ChDivider: StencilVueComponent<JSX.ChDivider>;
|
|
7
9
|
export declare const ChInput: StencilVueComponent<JSX.ChInput>;
|
|
10
|
+
export declare const ChLink: StencilVueComponent<JSX.ChLink>;
|
|
8
11
|
export declare const ChRadio: StencilVueComponent<JSX.ChRadio>;
|
|
9
12
|
export declare const ChSelect: StencilVueComponent<JSX.ChSelect>;
|
|
10
13
|
export declare const ChSwitch: StencilVueComponent<JSX.ChSwitch>;
|
|
14
|
+
export declare const ChTabs: StencilVueComponent<JSX.ChTabs>;
|
|
11
15
|
export declare const ChTextarea: StencilVueComponent<JSX.ChTextarea>;
|
package/dist-vue/index.js
CHANGED
|
@@ -2,15 +2,26 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* auto-generated vue proxies */
|
|
4
4
|
import { defineContainer } from '@stencil/vue-output-target/runtime';
|
|
5
|
+
import { defineCustomElement as defineChAccordion } from '@devschile/chucao/dist/components/ch-accordion.js';
|
|
5
6
|
import { defineCustomElement as defineChBadge } from '@devschile/chucao/dist/components/ch-badge.js';
|
|
6
7
|
import { defineCustomElement as defineChButton } from '@devschile/chucao/dist/components/ch-button.js';
|
|
7
8
|
import { defineCustomElement as defineChCard } from '@devschile/chucao/dist/components/ch-card.js';
|
|
8
9
|
import { defineCustomElement as defineChCheckbox } from '@devschile/chucao/dist/components/ch-checkbox.js';
|
|
10
|
+
import { defineCustomElement as defineChDivider } from '@devschile/chucao/dist/components/ch-divider.js';
|
|
9
11
|
import { defineCustomElement as defineChInput } from '@devschile/chucao/dist/components/ch-input.js';
|
|
12
|
+
import { defineCustomElement as defineChLink } from '@devschile/chucao/dist/components/ch-link.js';
|
|
10
13
|
import { defineCustomElement as defineChRadio } from '@devschile/chucao/dist/components/ch-radio.js';
|
|
11
14
|
import { defineCustomElement as defineChSelect } from '@devschile/chucao/dist/components/ch-select.js';
|
|
12
15
|
import { defineCustomElement as defineChSwitch } from '@devschile/chucao/dist/components/ch-switch.js';
|
|
16
|
+
import { defineCustomElement as defineChTabs } from '@devschile/chucao/dist/components/ch-tabs.js';
|
|
13
17
|
import { defineCustomElement as defineChTextarea } from '@devschile/chucao/dist/components/ch-textarea.js';
|
|
18
|
+
export const ChAccordion = /*@__PURE__*/ defineContainer('ch-accordion', defineChAccordion, [
|
|
19
|
+
'items',
|
|
20
|
+
'value',
|
|
21
|
+
'chChange'
|
|
22
|
+
], [
|
|
23
|
+
'chChange'
|
|
24
|
+
]);
|
|
14
25
|
export const ChBadge = /*@__PURE__*/ defineContainer('ch-badge', defineChBadge, [
|
|
15
26
|
'variant'
|
|
16
27
|
]);
|
|
@@ -37,6 +48,9 @@ export const ChCheckbox = /*@__PURE__*/ defineContainer('ch-checkbox', defineChC
|
|
|
37
48
|
], [
|
|
38
49
|
'chChange'
|
|
39
50
|
]);
|
|
51
|
+
export const ChDivider = /*@__PURE__*/ defineContainer('ch-divider', defineChDivider, [
|
|
52
|
+
'orientation'
|
|
53
|
+
]);
|
|
40
54
|
export const ChInput = /*@__PURE__*/ defineContainer('ch-input', defineChInput, [
|
|
41
55
|
'label',
|
|
42
56
|
'type',
|
|
@@ -54,6 +68,15 @@ export const ChInput = /*@__PURE__*/ defineContainer('ch-input', defineChInput,
|
|
|
54
68
|
'chInput',
|
|
55
69
|
'chChange'
|
|
56
70
|
]);
|
|
71
|
+
export const ChLink = /*@__PURE__*/ defineContainer('ch-link', defineChLink, [
|
|
72
|
+
'href',
|
|
73
|
+
'target',
|
|
74
|
+
'variant',
|
|
75
|
+
'disabled',
|
|
76
|
+
'chClick'
|
|
77
|
+
], [
|
|
78
|
+
'chClick'
|
|
79
|
+
]);
|
|
57
80
|
export const ChRadio = /*@__PURE__*/ defineContainer('ch-radio', defineChRadio, [
|
|
58
81
|
'label',
|
|
59
82
|
'options',
|
|
@@ -97,6 +120,14 @@ export const ChSwitch = /*@__PURE__*/ defineContainer('ch-switch', defineChSwitc
|
|
|
97
120
|
], [
|
|
98
121
|
'chChange'
|
|
99
122
|
]);
|
|
123
|
+
export const ChTabs = /*@__PURE__*/ defineContainer('ch-tabs', defineChTabs, [
|
|
124
|
+
'tabs',
|
|
125
|
+
'value',
|
|
126
|
+
'label',
|
|
127
|
+
'chChange'
|
|
128
|
+
], [
|
|
129
|
+
'chChange'
|
|
130
|
+
]);
|
|
100
131
|
export const ChTextarea = /*@__PURE__*/ defineContainer('ch-textarea', defineChTextarea, [
|
|
101
132
|
'label',
|
|
102
133
|
'value',
|
package/dist-vue/index.ts
CHANGED
|
@@ -5,18 +5,31 @@ import { defineContainer, type StencilVueComponent } from '@stencil/vue-output-t
|
|
|
5
5
|
|
|
6
6
|
import type { JSX } from '@devschile/chucao/dist/components';
|
|
7
7
|
|
|
8
|
+
import { defineCustomElement as defineChAccordion } from '@devschile/chucao/dist/components/ch-accordion.js';
|
|
8
9
|
import { defineCustomElement as defineChBadge } from '@devschile/chucao/dist/components/ch-badge.js';
|
|
9
10
|
import { defineCustomElement as defineChButton } from '@devschile/chucao/dist/components/ch-button.js';
|
|
10
11
|
import { defineCustomElement as defineChCard } from '@devschile/chucao/dist/components/ch-card.js';
|
|
11
12
|
import { defineCustomElement as defineChCheckbox } from '@devschile/chucao/dist/components/ch-checkbox.js';
|
|
13
|
+
import { defineCustomElement as defineChDivider } from '@devschile/chucao/dist/components/ch-divider.js';
|
|
12
14
|
import { defineCustomElement as defineChInput } from '@devschile/chucao/dist/components/ch-input.js';
|
|
15
|
+
import { defineCustomElement as defineChLink } from '@devschile/chucao/dist/components/ch-link.js';
|
|
13
16
|
import { defineCustomElement as defineChRadio } from '@devschile/chucao/dist/components/ch-radio.js';
|
|
14
17
|
import { defineCustomElement as defineChSelect } from '@devschile/chucao/dist/components/ch-select.js';
|
|
15
18
|
import { defineCustomElement as defineChSwitch } from '@devschile/chucao/dist/components/ch-switch.js';
|
|
19
|
+
import { defineCustomElement as defineChTabs } from '@devschile/chucao/dist/components/ch-tabs.js';
|
|
16
20
|
import { defineCustomElement as defineChTextarea } from '@devschile/chucao/dist/components/ch-textarea.js';
|
|
17
21
|
|
|
18
22
|
|
|
19
23
|
|
|
24
|
+
export const ChAccordion: StencilVueComponent<JSX.ChAccordion> = /*@__PURE__*/ defineContainer<JSX.ChAccordion>('ch-accordion', defineChAccordion, [
|
|
25
|
+
'items',
|
|
26
|
+
'value',
|
|
27
|
+
'chChange'
|
|
28
|
+
], [
|
|
29
|
+
'chChange'
|
|
30
|
+
]);
|
|
31
|
+
|
|
32
|
+
|
|
20
33
|
export const ChBadge: StencilVueComponent<JSX.ChBadge> = /*@__PURE__*/ defineContainer<JSX.ChBadge>('ch-badge', defineChBadge, [
|
|
21
34
|
'variant'
|
|
22
35
|
]);
|
|
@@ -51,6 +64,11 @@ export const ChCheckbox: StencilVueComponent<JSX.ChCheckbox> = /*@__PURE__*/ def
|
|
|
51
64
|
]);
|
|
52
65
|
|
|
53
66
|
|
|
67
|
+
export const ChDivider: StencilVueComponent<JSX.ChDivider> = /*@__PURE__*/ defineContainer<JSX.ChDivider>('ch-divider', defineChDivider, [
|
|
68
|
+
'orientation'
|
|
69
|
+
]);
|
|
70
|
+
|
|
71
|
+
|
|
54
72
|
export const ChInput: StencilVueComponent<JSX.ChInput> = /*@__PURE__*/ defineContainer<JSX.ChInput>('ch-input', defineChInput, [
|
|
55
73
|
'label',
|
|
56
74
|
'type',
|
|
@@ -70,6 +88,17 @@ export const ChInput: StencilVueComponent<JSX.ChInput> = /*@__PURE__*/ defineCon
|
|
|
70
88
|
]);
|
|
71
89
|
|
|
72
90
|
|
|
91
|
+
export const ChLink: StencilVueComponent<JSX.ChLink> = /*@__PURE__*/ defineContainer<JSX.ChLink>('ch-link', defineChLink, [
|
|
92
|
+
'href',
|
|
93
|
+
'target',
|
|
94
|
+
'variant',
|
|
95
|
+
'disabled',
|
|
96
|
+
'chClick'
|
|
97
|
+
], [
|
|
98
|
+
'chClick'
|
|
99
|
+
]);
|
|
100
|
+
|
|
101
|
+
|
|
73
102
|
export const ChRadio: StencilVueComponent<JSX.ChRadio> = /*@__PURE__*/ defineContainer<JSX.ChRadio>('ch-radio', defineChRadio, [
|
|
74
103
|
'label',
|
|
75
104
|
'options',
|
|
@@ -119,6 +148,16 @@ export const ChSwitch: StencilVueComponent<JSX.ChSwitch> = /*@__PURE__*/ defineC
|
|
|
119
148
|
]);
|
|
120
149
|
|
|
121
150
|
|
|
151
|
+
export const ChTabs: StencilVueComponent<JSX.ChTabs> = /*@__PURE__*/ defineContainer<JSX.ChTabs>('ch-tabs', defineChTabs, [
|
|
152
|
+
'tabs',
|
|
153
|
+
'value',
|
|
154
|
+
'label',
|
|
155
|
+
'chChange'
|
|
156
|
+
], [
|
|
157
|
+
'chChange'
|
|
158
|
+
]);
|
|
159
|
+
|
|
160
|
+
|
|
122
161
|
export const ChTextarea: StencilVueComponent<JSX.ChTextarea> = /*@__PURE__*/ defineContainer<JSX.ChTextarea>('ch-textarea', defineChTextarea, [
|
|
123
162
|
'label',
|
|
124
163
|
'value',
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const e="chucao";const t={hotModuleReplacement:false,hydratedSelectorName:"hydrated",lazyLoad:true,prop:true,propChangeCallback:false,updatable:true};const n=()=>{};const r=":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-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;--easing-default:ease;--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)}";function o(e,t,n){const r=typeof HTMLElement!=="undefined"?HTMLElement.prototype:null;while(e&&e!==r){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}return void 0}var s=(e,t)=>{var n;const r=t.t;const s=Object.entries((n=r.o)!=null?n:{});s.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const s=o(Object.getPrototypeOf(e),n,true)||Object.getOwnPropertyDescriptor(e,n);if(s){Object.defineProperty(e,n,{get(){return s.get.call(this)},set(e){s.set.call(this,e)},configurable:true,enumerable:true})}if(t.i.has(n)){e[n]=t.i.get(n)}else if(r!==void 0){e[n]=r}}}))};var i=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var l=(e,n)=>{if(!n)return;e.__stencil__getHostRef=()=>n;n.l=e;if(n.t.u&512&&t.prop){s(e,n)}};var a=(e,t)=>{const n={u:0,$hostElement$:e,t,i:new Map,p:new Map};{n.v=new Promise((e=>n.h=e));e["s-p"]=[];e["s-rc"]=[]}{n.m=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var c=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var u=new Map;var d=(e,t,n)=>{const r=e.$.replace(/-/g,"_");const o=e.S;if(!o){return void 0}const s=u.get(o);if(s){return s[r]}
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((e=>{{u.set(o,e)}return e[r]}),(e=>{f(e,t.$hostElement$)}))};var p=new Map;var v="{visibility:hidden}.hydrated{visibility:inherit}";var h="slot-fb{display:contents}slot-fb[hidden]{display:none}";var m=typeof window!=="undefined"?window:{};var y={u:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var g=e=>Promise.resolve(e);var b=(()=>{try{if(!m.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var w=b?(()=>!!m.document&&Object.getOwnPropertyDescriptor(m.document.adoptedStyleSheets,"length").writable)():false;var x=false;var $=[];var S=[];var j=(e,t)=>n=>{e.push(n);if(!x){x=true;if(t&&y.u&4){C(O)}else{y.raf(O)}}};var k=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var O=()=>{k($);{k(S);if(x=$.length>0){y.raf(O)}}};var C=e=>g().then(e);var M=j(S,true);function E(e){if(!b)return void 0;const t=new CSSStyleSheet;t.replaceSync(e);return t}var z;function N(e){var t;const n={mode:"open"};const o=this.attachShadow(n);if(z===void 0)z=(t=E(r))!=null?t:null;if(z){if(w){o.adoptedStyleSheets.push(z)}else{o.adoptedStyleSheets=[...o.adoptedStyleSheets,z]}}else if(!b){const e=document.createElement("style");e.innerHTML=r;o.prepend(e)}}var L=(e,t="")=>{{return()=>{}}};var R=(e,t)=>{{return()=>{}}};function A(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var D=new WeakMap;var F=(e,t,n)=>{let r=p.get(e);if(b&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}p.set(e,r)};var H=(e,t,n)=>{var r,o,s;const i=P(t);const l=p.get(i);if(!m.document){return i}e=e.nodeType===11?e:m.document;if(l){if(typeof l==="string"){e=e.head||e;let n=D.get(e);let s;if(!n){D.set(e,n=new Set)}if(!n.has(i)){s=m.document.createElement("style");s.textContent=l;const a=(r=y.k)!=null?r:A(m.document);if(a!=null){s.setAttribute("nonce",a)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(b){const t=(o=e.defaultView)!=null?o:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(l);if(w){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=l+t.textContent}else{e.prepend(s)}}}else{e.append(s)}}if(t.u&1){e.insertBefore(s,null)}if(t.u&4){s.textContent+=h}if(n){n.add(i)}}}else{let t=D.get(e);if(!t){D.set(e,t=new Set)}if(!t.has(i)){const n=(s=e.defaultView)!=null?s:e.ownerDocument.defaultView;let r;if(l.constructor===n.CSSStyleSheet){r=l}else{r=new n.CSSStyleSheet;for(let e=0;e<l.cssRules.length;e++){r.insertRule(l.cssRules[e].cssText,e)}}if(w){e.adoptedStyleSheets.push(r)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}t.add(i)}}}return i};var U=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const o=L("attachStyles",t.$);const s=H(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=s;n.classList.add(s+"-h")}o()};var P=(e,t)=>"sc-"+e.$;var T=e=>{e=typeof e;return e==="object"||e==="function"};var W=(e,t,...n)=>{if(typeof e==="string"){e=De(e)}let r=null;let o=null;let s=false;let i=false;const l=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(s=typeof e!=="function"&&!T(r)){r=String(r)}if(s&&i){l[l.length-1].O+=r}else{l.push(s?I(null,r):r)}i=s}}};a(n);if(t){if(t.key){o=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const c=I(e,null);c.C=t;if(l.length>0){c.M=l}{c.N=o}return c};var I=(e,t)=>{const n={u:0,L:e,O:t!=null?t:null,R:null,M:null};{n.C=null}{n.N=null}return n};var V={};var q=e=>e&&e.L===V;var G=(e,t,n)=>{if(e!=null&&!T(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var Y=e=>{var t;return(t=i(e))==null?void 0:t.$hostElement$};var Z=(e,t,n)=>{const r=Y(e);return{emit:e=>_(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var _=(e,t,n)=>{const r=y.ce(t,n);e.dispatchEvent(r);return r};var B=(e,t,n,r,o,s,l)=>{if(n===r){return}let a=c(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const o=K(n);let s=K(r);{t.remove(...o.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!o.includes(e))))}}else if(t==="key");else if(!a&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(c(m,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const o=t.endsWith(Q);t=t.replace(X,"");if(n){y.rel(e,t,n,o)}if(r){y.ael(e,t,r,o)}}}else if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let o;{const t=i(e);if(t&&t.t&&t.t.o){const e=t.t.o[n];if(e&&e[1]){o=e[1]}}}if(!o){o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(r==null||r===false){if(r!==false||e.getAttribute(o)===""){e.removeAttribute(o)}}else{e.setAttribute(o,r===true?"":r)}return}else if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=r}catch(e){}return}else{const i=T(r);if((a||i&&r!==null)&&!o){try{if(!e.tagName.includes("-")){const o=r==null?"":r;if(t==="list"){a=false}else if(n==null||e[t]!==o){if(typeof e.__lookupSetter__(t)==="function"){e[t]=o}else{e.setAttribute(t,o)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!a||s&4||o)&&!i&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var J=/\s/;var K=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(J)};var Q="Capture";var X=new RegExp(Q+"$");var ee=(e,t,n,r)=>{const o=t.R.nodeType===11&&t.R.host?t.R.host:t.R;const s=e&&e.C||{};const i=t.C||{};{for(const e of te(Object.keys(s))){if(!(e in i)){B(o,e,s[e],void 0,n,t.u)}}}for(const e of te(Object.keys(i))){B(o,e,s[e],i[e],n,t.u)}};function te(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ne;var re=false;var oe=false;var se=(e,t,n)=>{const r=t.M[n];let o=0;let s;let i;if(r.O!=null){s=r.R=m.document.createTextNode(r.O)}else{if(!m.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}s=r.R=m.document.createElement(r.L);{ee(null,r,oe)}if(r.M){const t=r.L==="template"?s.content:s;for(o=0;o<r.M.length;++o){i=se(e,r,o);if(i){t.appendChild(i)}}}}s["s-hn"]=ne;return s};var ie=e=>{y.u|=1;const t=e.closest(ne.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const r=Array.from(e.__childNodes||e.childNodes);for(const e of n?r.reverse():r){if(e["s-sh"]!=null){de(t,e,n!=null?n:null);e["s-sh"]=void 0}}}y.u&=-2};var le=(e,t,n,r,o,s)=>{let i=e;let l;if(i.shadowRoot&&i.tagName===ne){i=i.shadowRoot}if(n.L==="template"){i=i.content}for(;o<=s;++o){if(r[o]){l=se(null,n,o);if(l){r[o].R=l;de(i,l,t)}}}};var ae=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.R;if(e){e.remove()}}}};var ce=(e,t,n,r,o=false)=>{let s=0;let i=0;let l=0;let a=0;let c=t.length-1;let f=t[0];let u=t[c];let d=r.length-1;let p=r[0];let v=r[d];let h;let m;const y=n.L==="template"?e.content:e;while(s<=c&&i<=d){if(f==null){f=t[++s]}else if(u==null){u=t[--c]}else if(p==null){p=r[++i]}else if(v==null){v=r[--d]}else if(fe(f,p,o)){ue(f,p,o);f=t[++s];p=r[++i]}else if(fe(u,v,o)){ue(u,v,o);u=t[--c];v=r[--d]}else if(fe(f,v,o)){ue(f,v,o);de(y,f.R,u.R.nextSibling);f=t[++s];v=r[--d]}else if(fe(u,p,o)){ue(u,p,o);de(y,u.R,f.R);u=t[--c];p=r[++i]}else{l=-1;{for(a=s;a<=c;++a){if(t[a]&&t[a].N!==null&&t[a].N===p.N){l=a;break}}}if(l>=0){m=t[l];if(m.L!==p.L){h=se(t&&t[i],n,l)}else{ue(m,p,o);t[l]=void 0;h=m.R}p=r[++i]}else{h=se(t&&t[i],n,i);p=r[++i]}if(h){{de(f.R.parentNode,h,f.R)}}}}if(s>c){le(e,r[d+1]==null?null:r[d+1].R,n,r,i,d)}else if(i>d){ae(t,s,c)}};var fe=(e,t,n=false)=>{if(e.L===t.L){if(!n){return e.N===t.N}if(n&&!e.N&&t.N){e.N=t.N}return true}return false};var ue=(e,n,r=false)=>{const o=n.R=e.R;const s=e.M;const i=n.M;const l=n.L;const a=n.O;if(a==null){{if(l==="slot"&&!re){if(e.A!==n.A){n.R["s-sn"]=n.A||"";ie(n.R.parentElement)}}ee(e,n,oe)}if(s!==null&&i!==null){ce(o,s,n,i,r)}else if(i!==null){if(e.O!==null){o.textContent=""}le(o,null,n,i,0,i.length-1)}else if(!r&&t.updatable&&s!==null){ae(s,0,s.length-1)}else;}else if(e.O!==a){o.data=a}};var de=(e,t,n,r)=>{if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};var pe=(e,t,n=false)=>{const r=e.$hostElement$;const o=e.t;const s=e.D||I(null,null);const i=q(t);const l=i?t:W(null,null,t);ne=r.tagName;if(n&&l.C){for(const e of Object.keys(l.C)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){l.C[e]=r[e]}}}l.L=null;l.u|=4;e.D=l;l.R=s.R=r.shadowRoot||r;re=!!(o.u&1)&&!(o.u&128);ue(s,l,n)};var ve=(e,t)=>{if(t&&!e.F&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.F=()=>{t["s-p"].splice(n-1,1);r()})))}};var he=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}ve(e,e.H);const n=()=>me(e,t);if(t){queueMicrotask((()=>{n()}));return}return M(n)};var me=(e,t)=>{const n=e.$hostElement$;const r=L("scheduleUpdate",e.t.$);const o=e.l;if(!o){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{if(e.m.length){e.m.forEach((e=>e(n)))}}s=Se(o,"componentWillLoad",void 0,n)}else{s=Se(o,"componentWillUpdate",void 0,n)}s=ye(s,(()=>Se(o,"componentWillRender",void 0,n)));r();return ye(s,(()=>be(e,o,t)))};var ye=(e,t)=>ge(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var ge=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var be=async(e,t,n)=>{var r;const o=e.$hostElement$;const s=L("update",e.t.$);const i=o["s-rc"];if(n){U(e)}const l=L("render",e.t.$);{we(e,t,o,n)}if(i){i.map((e=>e()));o["s-rc"]=void 0}l();s();{const t=(r=o["s-p"])!=null?r:[];const n=()=>xe(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.u|=4;t.length=0}}};var we=(e,t,n,r)=>{try{t=t.render();{e.u&=-17}{e.u|=2}{{{pe(e,t,r)}}}}catch(t){f(t,e.$hostElement$)}return null};var xe=e=>{const t=e.t.$;const n=e.$hostElement$;const r=L("postUpdate",t);const o=e.l;const s=e.H;Se(o,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{je(n)}Se(o,"componentDidLoad",void 0,n);r();{e.h(n);if(!s){$e()}}}else{Se(o,"componentDidUpdate",void 0,n);r()}{if(e.F){e.F();e.F=void 0}if(e.u&512){C((()=>he(e,false)))}e.u&=-517}};var $e=t=>{C((()=>_(m,"appload",{detail:{namespace:e}})))};var Se=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){f(e,r)}}return void 0};var je=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var ke=(e,t)=>i(e).i.get(t);var Oe=(e,t,n,r)=>{const o=i(e);if(!o){return}if(!o){throw new Error(`Couldn't find host element for "${r.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const s=o.i.get(t);const l=o.u;const a=o.l;n=G(n,r.o[t][0]);const c=Number.isNaN(s)&&Number.isNaN(n);const f=n!==s&&!c;if((!(l&8)||s===void 0)&&f){o.i.set(t,n);if(l&2){if(a.componentShouldUpdate){const e=a.componentShouldUpdate(n,s,t);if(e===false&&!(l&16)){return}}if(!(l&16)){he(o,false)}}}};var Ce=(e,n,r)=>{var s,l;const a=e.prototype;if(n.o||t.propChangeCallback){const c=Object.entries((s=n.o)!=null?s:{});c.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:s,set:l}=o(a,e)||{};if(s)n.o[e][0]|=2048;if(l)n.o[e][0]|=4096;if(r&1||!s){Object.defineProperty(a,e,{get(){{if((n.o[e][0]&2048)===0){return ke(this,e)}const t=i(this);const r=t?t.l:a;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(a,e,{set(o){const s=i(this);if(!s){return}if(l){const r=t&32?this[e]:s.$hostElement$[e];if(typeof r==="undefined"&&s.i.get(e)){o=s.i.get(e)}l.apply(this,[G(o,t)]);o=t&32?this[e]:s.$hostElement$[e];Oe(this,e,o,n);return}{if((r&1)===0||(n.o[e][0]&4096)===0){Oe(this,e,o,n);if(r&1&&!s.l){s.m.push((()=>{if(n.o[e][0]&4096&&s.l[e]!==s.i.get(e)){s.l[e]=o}}))}return}const i=()=>{const r=s.l[e];if(!s.i.get(e)&&r){s.i.set(e,r)}s.l[e]=G(o,t);Oe(this,e,s.l[e],n)};if(s.l){i()}else{s.m.push((()=>{i()}))}}}})}}));if(r&1){const r=new Map;a.attributeChangedCallback=function(e,o,s){y.jmp((()=>{var l;const f=r.get(e);const u=i(this);if(this.hasOwnProperty(f)&&t.lazyLoad){s=this[f];delete this[f]}if(a.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==s){return}else if(f==null){const t=u==null?void 0:u.u;if(u&&t&&!(t&8)&&s!==o){const r=u.l;const i=(l=n.U)==null?void 0:l[e];i==null?void 0:i.forEach((n=>{const[[i,l]]=Object.entries(n);if(r[i]!=null&&(t&128||l&1)){r[i].call(r,s,o,e)}}))}return}const d=c.find((([e])=>e===f));const p=d&&d[1][0]&4;const v=p&&s===null&&this[f]===void 0;if(p){s=s===null||s==="false"?false:true}const h=Object.getOwnPropertyDescriptor(a,f);if(!v&&s!=this[f]&&(!h.get||!!h.set)){this[f]=s}}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=n.U)!=null?l:{}),...c.filter((([e,t])=>t[0]&31)).map((([e,t])=>{const n=t[1]||e;r.set(n,e);return n}))]))}}return e};var Me=async(e,n,r,o)=>{let s;try{if((n.u&32)===0){n.u|=32;const o=r.S;if(o){const t=d(r,n);if(t&&"then"in t){const e=R();s=await t;e()}else{s=t}if(!s){throw new Error(`Constructor for "${r.$}#${n.P}" was not found`)}if(!s.isProxied){Ce(s,r,2);s.isProxied=true}const o=L("createInstance",r.$);{n.u|=8}try{new s(n)}catch(t){f(t,e)}{n.u&=-9}o();{Ee(n.l,e)}}else{s=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.u|=128))}if(s&&s.style){let e;if(typeof s.style==="string"){e=s.style}const n=P(r);if(!p.has(n)||t.hotModuleReplacement){const t=L("registerStyles",r.$);F(n,e,!!(r.u&1));t()}}}const o=n.H;const i=()=>he(n,true);if(o&&o["s-rc"]){o["s-rc"].push(i)}else{i()}}catch(t){f(t,e);if(n.F){n.F();n.F=void 0}if(n.h){n.h(e)}}};var Ee=(e,t)=>{{Se(e,"connectedCallback",void 0,t)}};var ze=e=>{if((y.u&1)===0){const t=i(e);if(!t){return}const n=t.t;const r=L("connectedCallback",n.$);if(!(t.u&1)){t.u|=1;{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){ve(t,t.H=n);break}}}if(n.o){Object.entries(n.o).map((([t,[n]])=>{if(n&31&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t];e[t]=n}}))}{Me(e,t,n)}}else{if(t==null?void 0:t.l){Ee(t.l,e)}else if(t==null?void 0:t.v){t.v.then((()=>Ee(t.l,e)))}}r()}};var Ne=(e,t)=>{{Se(e,"disconnectedCallback",void 0,t||e)}};var Le=async e=>{if((y.u&1)===0){const t=i(e);if(t==null?void 0:t.l){Ne(t.l,e)}else if(t==null?void 0:t.v){t.v.then((()=>Ne(t.l,e)))}}if(D.has(e)){D.delete(e)}if(e.shadowRoot&&D.has(e.shadowRoot)){D.delete(e.shadowRoot)}};var Re=(e,t={})=>{var n;if(!m.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=L();const o=[];const s=t.exclude||[];const l=m.customElements;const c=m.document.head;const f=c.querySelector("meta[charset]");const u=m.document.createElement("style");const d=[];let p;let h=true;Object.assign(y,t);y.j=new URL(t.resourcesUrl||"./",m.document.baseURI).href;e.map((e=>{e[1].map((t=>{const n={u:t[0],$:t[1],o:t[2],T:t[3]};{n.o=t[2]}const r=De(n.$);const c=class extends HTMLElement{["s-p"];["s-rc"];hasRegisteredEventListeners=false;constructor(e){super(e);e=this;a(e,n);if(n.u&1){{if(!e.shadowRoot){N.call(e,n)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${n.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=i(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(p){clearTimeout(p);p=null}if(h){d.push(this)}else{y.jmp((()=>ze(this)))}}disconnectedCallback(){y.jmp((()=>Le(this)));y.raf((()=>{var e;const t=i(this);if(!t){return}const n=d.findIndex((e=>e===this));if(n>-1){d.splice(n,1)}if(((e=t==null?void 0:t.D)==null?void 0:e.R)instanceof Node&&!t.D.R.isConnected){delete t.D.R}}))}componentOnReady(){var e;return(e=i(this))==null?void 0:e.v}};n.S=e[0];if(!s.includes(r)&&!l.get(r)){o.push(r);l.define(r,Ce(c,n,1))}}))}));if(o.length>0){{u.textContent+=o.sort()+v}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=y.k)!=null?n:A(m.document);if(e!=null){u.setAttribute("nonce",e)}c.insertBefore(u,f?f.nextSibling:c.firstChild)}}h=false;if(d.length){d.map((e=>e.connectedCallback()))}else{{y.jmp((()=>p=setTimeout($e,30)))}}r()};var Ae=e=>y.k=e;function De(e){return e}export{V as H,Re as b,Z as c,n as g,W as h,g as p,l as r,Ae as s};
|
|
3
|
-
//# sourceMappingURL=p-Bk9pvIKL.js.map
|