@devschile/chucao 1.3.0 → 1.4.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/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/p-1f47dd08.entry.js +2 -0
- package/dist/chucao/p-1f47dd08.entry.js.map +1 -0
- package/dist/chucao/p-438e1401.entry.js +2 -0
- package/dist/chucao/p-438e1401.entry.js.map +1 -0
- package/dist/chucao/p-7413b8c3.entry.js +2 -0
- package/dist/chucao/p-7413b8c3.entry.js.map +1 -0
- package/dist/chucao/p-90db80a2.entry.js +2 -0
- package/dist/chucao/p-90db80a2.entry.js.map +1 -0
- package/dist/chucao/p-Bk9pvIKL.js +3 -0
- package/dist/chucao/p-Bk9pvIKL.js.map +1 -0
- package/dist/chucao/p-faa21ce0.entry.js +2 -0
- package/dist/chucao/p-faa21ce0.entry.js.map +1 -0
- package/dist/cjs/ch-badge_5.cjs.entry.js +54 -6
- package/dist/cjs/ch-badge_5.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-checkbox.cjs.entry.js +80 -0
- package/dist/cjs/ch-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-radio.cjs.entry.js +83 -0
- package/dist/cjs/ch-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-switch.cjs.entry.js +80 -0
- package/dist/cjs/ch-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-textarea.cjs.entry.js +94 -0
- package/dist/cjs/ch-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/chucao.cjs.js +2 -2
- package/dist/cjs/{index-yB1Ik3Sa.js → index-DX3RZKi8.js} +5 -2
- package/dist/cjs/index-DX3RZKi8.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.css +79 -0
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +276 -0
- package/dist/collection/components/ch-checkbox/ch-checkbox.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.css +20 -0
- package/dist/collection/components/ch-input/ch-input.js +83 -1
- package/dist/collection/components/ch-input/ch-input.js.map +1 -1
- package/dist/collection/components/ch-radio/ch-radio.css +89 -0
- package/dist/collection/components/ch-radio/ch-radio.js +282 -0
- package/dist/collection/components/ch-radio/ch-radio.js.map +1 -0
- package/dist/collection/components/ch-select/ch-select.css +20 -0
- package/dist/collection/components/ch-select/ch-select.js +83 -1
- package/dist/collection/components/ch-select/ch-select.js.map +1 -1
- package/dist/collection/components/ch-switch/ch-switch.css +92 -0
- package/dist/collection/components/ch-switch/ch-switch.js +276 -0
- package/dist/collection/components/ch-switch/ch-switch.js.map +1 -0
- package/dist/collection/components/ch-textarea/ch-textarea.css +66 -0
- package/dist/collection/components/ch-textarea/ch-textarea.js +323 -0
- package/dist/collection/components/ch-textarea/ch-textarea.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-card.js.map +1 -1
- package/dist/components/ch-checkbox.d.ts +11 -0
- package/dist/components/ch-checkbox.js +2 -0
- package/dist/components/ch-checkbox.js.map +1 -0
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-input.js.map +1 -1
- package/dist/components/ch-radio.d.ts +11 -0
- package/dist/components/ch-radio.js +2 -0
- package/dist/components/ch-radio.js.map +1 -0
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-select.js.map +1 -1
- package/dist/components/ch-switch.d.ts +11 -0
- package/dist/components/ch-switch.js +2 -0
- package/dist/components/ch-switch.js.map +1 -0
- package/dist/components/ch-textarea.d.ts +11 -0
- package/dist/components/ch-textarea.js +2 -0
- package/dist/components/ch-textarea.js.map +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-CcEsJ4Ml.js +2 -0
- package/dist/components/p-CcEsJ4Ml.js.map +1 -0
- package/dist/esm/ch-badge_5.entry.js +54 -6
- package/dist/esm/ch-badge_5.entry.js.map +1 -1
- package/dist/esm/ch-checkbox.entry.js +78 -0
- package/dist/esm/ch-checkbox.entry.js.map +1 -0
- package/dist/esm/ch-radio.entry.js +81 -0
- package/dist/esm/ch-radio.entry.js.map +1 -0
- package/dist/esm/ch-switch.entry.js +78 -0
- package/dist/esm/ch-switch.entry.js.map +1 -0
- package/dist/esm/ch-textarea.entry.js +92 -0
- package/dist/esm/ch-textarea.entry.js.map +1 -0
- package/dist/esm/chucao.js +3 -3
- package/dist/esm/{index-COo5t8-6.js → index-Bk9pvIKL.js} +5 -2
- package/dist/esm/index-Bk9pvIKL.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/ch-checkbox/ch-checkbox.d.ts +51 -0
- package/dist/types/components/ch-input/ch-input.d.ts +16 -0
- package/dist/types/components/ch-radio/ch-radio.d.ts +58 -0
- package/dist/types/components/ch-select/ch-select.d.ts +16 -0
- package/dist/types/components/ch-switch/ch-switch.d.ts +51 -0
- package/dist/types/components/ch-textarea/ch-textarea.d.ts +60 -0
- package/dist/types/components.d.ts +571 -0
- package/dist-react/components.d.ts +22 -1
- package/dist-react/components.js +39 -0
- package/dist-react/components.ts +55 -1
- package/dist-vue/index.d.ts +4 -0
- package/dist-vue/index.js +69 -0
- package/dist-vue/index.ts +77 -0
- package/package.json +1 -1
- package/dist/chucao/p-94a2b1be.entry.js +0 -2
- package/dist/chucao/p-94a2b1be.entry.js.map +0 -1
- package/dist/chucao/p-COo5t8-6.js +0 -3
- package/dist/chucao/p-COo5t8-6.js.map +0 -1
- package/dist/cjs/index-yB1Ik3Sa.js.map +0 -1
- package/dist/components/p-DCKzDjxR.js +0 -2
- package/dist/components/p-DCKzDjxR.js.map +0 -1
- package/dist/esm/index-COo5t8-6.js.map +0 -1
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
5
|
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
-
import { type ChButtonCustomEvent, type ChInputCustomEvent, type ChSelectCustomEvent } from "@devschile/chucao";
|
|
6
|
+
import { type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
|
|
7
7
|
import type { Components } from "@devschile/chucao/dist/components";
|
|
8
8
|
import { ChBadge as ChBadgeElement } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
9
9
|
import { ChButton as ChButtonElement } from "@devschile/chucao/dist/components/ch-button.js";
|
|
10
10
|
import { ChCard as ChCardElement } from "@devschile/chucao/dist/components/ch-card.js";
|
|
11
|
+
import { ChCheckbox as ChCheckboxElement } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
11
12
|
import { ChInput as ChInputElement } from "@devschile/chucao/dist/components/ch-input.js";
|
|
13
|
+
import { ChRadio as ChRadioElement } from "@devschile/chucao/dist/components/ch-radio.js";
|
|
12
14
|
import { ChSelect as ChSelectElement } from "@devschile/chucao/dist/components/ch-select.js";
|
|
15
|
+
import { ChSwitch as ChSwitchElement } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
16
|
+
import { ChTextarea as ChTextareaElement } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
13
17
|
export type ChBadgeEvents = NonNullable<unknown>;
|
|
14
18
|
export declare const ChBadge: StencilReactComponent<ChBadgeElement, ChBadgeEvents, Components.ChBadge>;
|
|
15
19
|
export type ChButtonEvents = {
|
|
@@ -18,12 +22,29 @@ export type ChButtonEvents = {
|
|
|
18
22
|
export declare const ChButton: StencilReactComponent<ChButtonElement, ChButtonEvents, Components.ChButton>;
|
|
19
23
|
export type ChCardEvents = NonNullable<unknown>;
|
|
20
24
|
export declare const ChCard: StencilReactComponent<ChCardElement, ChCardEvents, Components.ChCard>;
|
|
25
|
+
export type ChCheckboxEvents = {
|
|
26
|
+
onChChange: EventName<ChCheckboxCustomEvent<boolean>>;
|
|
27
|
+
};
|
|
28
|
+
export declare const ChCheckbox: StencilReactComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox>;
|
|
21
29
|
export type ChInputEvents = {
|
|
22
30
|
onChInput: EventName<ChInputCustomEvent<string>>;
|
|
23
31
|
onChChange: EventName<ChInputCustomEvent<string>>;
|
|
24
32
|
};
|
|
25
33
|
export declare const ChInput: StencilReactComponent<ChInputElement, ChInputEvents, Components.ChInput>;
|
|
34
|
+
export type ChRadioEvents = {
|
|
35
|
+
onChChange: EventName<ChRadioCustomEvent<string>>;
|
|
36
|
+
};
|
|
37
|
+
export declare const ChRadio: StencilReactComponent<ChRadioElement, ChRadioEvents, Components.ChRadio>;
|
|
26
38
|
export type ChSelectEvents = {
|
|
27
39
|
onChChange: EventName<ChSelectCustomEvent<string>>;
|
|
28
40
|
};
|
|
29
41
|
export declare const ChSelect: StencilReactComponent<ChSelectElement, ChSelectEvents, Components.ChSelect>;
|
|
42
|
+
export type ChSwitchEvents = {
|
|
43
|
+
onChChange: EventName<ChSwitchCustomEvent<boolean>>;
|
|
44
|
+
};
|
|
45
|
+
export declare const ChSwitch: StencilReactComponent<ChSwitchElement, ChSwitchEvents, Components.ChSwitch>;
|
|
46
|
+
export type ChTextareaEvents = {
|
|
47
|
+
onChInput: EventName<ChTextareaCustomEvent<string>>;
|
|
48
|
+
onChChange: EventName<ChTextareaCustomEvent<string>>;
|
|
49
|
+
};
|
|
50
|
+
export declare const ChTextarea: StencilReactComponent<ChTextareaElement, ChTextareaEvents, Components.ChTextarea>;
|
package/dist-react/components.js
CHANGED
|
@@ -4,8 +4,12 @@ import React from 'react';
|
|
|
4
4
|
import { ChBadge as ChBadgeElement, defineCustomElement as defineChBadge } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
5
5
|
import { ChButton as ChButtonElement, defineCustomElement as defineChButton } from "@devschile/chucao/dist/components/ch-button.js";
|
|
6
6
|
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
7
|
+
import { ChCheckbox as ChCheckboxElement, defineCustomElement as defineChCheckbox } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
7
8
|
import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
|
|
9
|
+
import { ChRadio as ChRadioElement, defineCustomElement as defineChRadio } from "@devschile/chucao/dist/components/ch-radio.js";
|
|
8
10
|
import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } from "@devschile/chucao/dist/components/ch-select.js";
|
|
11
|
+
import { ChSwitch as ChSwitchElement, defineCustomElement as defineChSwitch } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
12
|
+
import { ChTextarea as ChTextareaElement, defineCustomElement as defineChTextarea } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
9
13
|
export const ChBadge = /*@__PURE__*/ createComponent({
|
|
10
14
|
tagName: 'ch-badge',
|
|
11
15
|
elementClass: ChBadgeElement,
|
|
@@ -30,6 +34,14 @@ export const ChCard = /*@__PURE__*/ createComponent({
|
|
|
30
34
|
events: {},
|
|
31
35
|
defineCustomElement: defineChCard
|
|
32
36
|
});
|
|
37
|
+
export const ChCheckbox = /*@__PURE__*/ createComponent({
|
|
38
|
+
tagName: 'ch-checkbox',
|
|
39
|
+
elementClass: ChCheckboxElement,
|
|
40
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
41
|
+
react: React,
|
|
42
|
+
events: { onChChange: 'chChange' },
|
|
43
|
+
defineCustomElement: defineChCheckbox
|
|
44
|
+
});
|
|
33
45
|
export const ChInput = /*@__PURE__*/ createComponent({
|
|
34
46
|
tagName: 'ch-input',
|
|
35
47
|
elementClass: ChInputElement,
|
|
@@ -41,6 +53,14 @@ export const ChInput = /*@__PURE__*/ createComponent({
|
|
|
41
53
|
},
|
|
42
54
|
defineCustomElement: defineChInput
|
|
43
55
|
});
|
|
56
|
+
export const ChRadio = /*@__PURE__*/ createComponent({
|
|
57
|
+
tagName: 'ch-radio',
|
|
58
|
+
elementClass: ChRadioElement,
|
|
59
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
60
|
+
react: React,
|
|
61
|
+
events: { onChChange: 'chChange' },
|
|
62
|
+
defineCustomElement: defineChRadio
|
|
63
|
+
});
|
|
44
64
|
export const ChSelect = /*@__PURE__*/ createComponent({
|
|
45
65
|
tagName: 'ch-select',
|
|
46
66
|
elementClass: ChSelectElement,
|
|
@@ -49,3 +69,22 @@ export const ChSelect = /*@__PURE__*/ createComponent({
|
|
|
49
69
|
events: { onChChange: 'chChange' },
|
|
50
70
|
defineCustomElement: defineChSelect
|
|
51
71
|
});
|
|
72
|
+
export const ChSwitch = /*@__PURE__*/ createComponent({
|
|
73
|
+
tagName: 'ch-switch',
|
|
74
|
+
elementClass: ChSwitchElement,
|
|
75
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
76
|
+
react: React,
|
|
77
|
+
events: { onChChange: 'chChange' },
|
|
78
|
+
defineCustomElement: defineChSwitch
|
|
79
|
+
});
|
|
80
|
+
export const ChTextarea = /*@__PURE__*/ createComponent({
|
|
81
|
+
tagName: 'ch-textarea',
|
|
82
|
+
elementClass: ChTextareaElement,
|
|
83
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
84
|
+
react: React,
|
|
85
|
+
events: {
|
|
86
|
+
onChInput: 'chInput',
|
|
87
|
+
onChChange: 'chChange'
|
|
88
|
+
},
|
|
89
|
+
defineCustomElement: defineChTextarea
|
|
90
|
+
});
|
package/dist-react/components.ts
CHANGED
|
@@ -11,13 +11,17 @@ 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 ChInputCustomEvent, type ChSelectCustomEvent } from "@devschile/chucao";
|
|
14
|
+
import { type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
|
|
15
15
|
import type { Components } from "@devschile/chucao/dist/components";
|
|
16
16
|
import { ChBadge as ChBadgeElement, defineCustomElement as defineChBadge } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
17
17
|
import { ChButton as ChButtonElement, defineCustomElement as defineChButton } from "@devschile/chucao/dist/components/ch-button.js";
|
|
18
18
|
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
19
|
+
import { ChCheckbox as ChCheckboxElement, defineCustomElement as defineChCheckbox } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
19
20
|
import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
|
|
21
|
+
import { ChRadio as ChRadioElement, defineCustomElement as defineChRadio } from "@devschile/chucao/dist/components/ch-radio.js";
|
|
20
22
|
import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } from "@devschile/chucao/dist/components/ch-select.js";
|
|
23
|
+
import { ChSwitch as ChSwitchElement, defineCustomElement as defineChSwitch } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
24
|
+
import { ChTextarea as ChTextareaElement, defineCustomElement as defineChTextarea } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
21
25
|
|
|
22
26
|
export type ChBadgeEvents = NonNullable<unknown>;
|
|
23
27
|
|
|
@@ -52,6 +56,17 @@ export const ChCard: StencilReactComponent<ChCardElement, ChCardEvents, Componen
|
|
|
52
56
|
defineCustomElement: defineChCard
|
|
53
57
|
});
|
|
54
58
|
|
|
59
|
+
export type ChCheckboxEvents = { onChChange: EventName<ChCheckboxCustomEvent<boolean>> };
|
|
60
|
+
|
|
61
|
+
export const ChCheckbox: StencilReactComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox> = /*@__PURE__*/ createComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox>({
|
|
62
|
+
tagName: 'ch-checkbox',
|
|
63
|
+
elementClass: ChCheckboxElement,
|
|
64
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
65
|
+
react: React,
|
|
66
|
+
events: { onChChange: 'chChange' } as ChCheckboxEvents,
|
|
67
|
+
defineCustomElement: defineChCheckbox
|
|
68
|
+
});
|
|
69
|
+
|
|
55
70
|
export type ChInputEvents = {
|
|
56
71
|
onChInput: EventName<ChInputCustomEvent<string>>,
|
|
57
72
|
onChChange: EventName<ChInputCustomEvent<string>>
|
|
@@ -69,6 +84,17 @@ export const ChInput: StencilReactComponent<ChInputElement, ChInputEvents, Compo
|
|
|
69
84
|
defineCustomElement: defineChInput
|
|
70
85
|
});
|
|
71
86
|
|
|
87
|
+
export type ChRadioEvents = { onChChange: EventName<ChRadioCustomEvent<string>> };
|
|
88
|
+
|
|
89
|
+
export const ChRadio: StencilReactComponent<ChRadioElement, ChRadioEvents, Components.ChRadio> = /*@__PURE__*/ createComponent<ChRadioElement, ChRadioEvents, Components.ChRadio>({
|
|
90
|
+
tagName: 'ch-radio',
|
|
91
|
+
elementClass: ChRadioElement,
|
|
92
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
93
|
+
react: React,
|
|
94
|
+
events: { onChChange: 'chChange' } as ChRadioEvents,
|
|
95
|
+
defineCustomElement: defineChRadio
|
|
96
|
+
});
|
|
97
|
+
|
|
72
98
|
export type ChSelectEvents = { onChChange: EventName<ChSelectCustomEvent<string>> };
|
|
73
99
|
|
|
74
100
|
export const ChSelect: StencilReactComponent<ChSelectElement, ChSelectEvents, Components.ChSelect> = /*@__PURE__*/ createComponent<ChSelectElement, ChSelectEvents, Components.ChSelect>({
|
|
@@ -79,3 +105,31 @@ export const ChSelect: StencilReactComponent<ChSelectElement, ChSelectEvents, Co
|
|
|
79
105
|
events: { onChChange: 'chChange' } as ChSelectEvents,
|
|
80
106
|
defineCustomElement: defineChSelect
|
|
81
107
|
});
|
|
108
|
+
|
|
109
|
+
export type ChSwitchEvents = { onChChange: EventName<ChSwitchCustomEvent<boolean>> };
|
|
110
|
+
|
|
111
|
+
export const ChSwitch: StencilReactComponent<ChSwitchElement, ChSwitchEvents, Components.ChSwitch> = /*@__PURE__*/ createComponent<ChSwitchElement, ChSwitchEvents, Components.ChSwitch>({
|
|
112
|
+
tagName: 'ch-switch',
|
|
113
|
+
elementClass: ChSwitchElement,
|
|
114
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
115
|
+
react: React,
|
|
116
|
+
events: { onChChange: 'chChange' } as ChSwitchEvents,
|
|
117
|
+
defineCustomElement: defineChSwitch
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export type ChTextareaEvents = {
|
|
121
|
+
onChInput: EventName<ChTextareaCustomEvent<string>>,
|
|
122
|
+
onChChange: EventName<ChTextareaCustomEvent<string>>
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export const ChTextarea: StencilReactComponent<ChTextareaElement, ChTextareaEvents, Components.ChTextarea> = /*@__PURE__*/ createComponent<ChTextareaElement, ChTextareaEvents, Components.ChTextarea>({
|
|
126
|
+
tagName: 'ch-textarea',
|
|
127
|
+
elementClass: ChTextareaElement,
|
|
128
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
129
|
+
react: React,
|
|
130
|
+
events: {
|
|
131
|
+
onChInput: 'chInput',
|
|
132
|
+
onChChange: 'chChange'
|
|
133
|
+
} as ChTextareaEvents,
|
|
134
|
+
defineCustomElement: defineChTextarea
|
|
135
|
+
});
|
package/dist-vue/index.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ import type { JSX } from '@devschile/chucao/dist/components';
|
|
|
3
3
|
export declare const ChBadge: StencilVueComponent<JSX.ChBadge>;
|
|
4
4
|
export declare const ChButton: StencilVueComponent<JSX.ChButton>;
|
|
5
5
|
export declare const ChCard: StencilVueComponent<JSX.ChCard>;
|
|
6
|
+
export declare const ChCheckbox: StencilVueComponent<JSX.ChCheckbox>;
|
|
6
7
|
export declare const ChInput: StencilVueComponent<JSX.ChInput>;
|
|
8
|
+
export declare const ChRadio: StencilVueComponent<JSX.ChRadio>;
|
|
7
9
|
export declare const ChSelect: StencilVueComponent<JSX.ChSelect>;
|
|
10
|
+
export declare const ChSwitch: StencilVueComponent<JSX.ChSwitch>;
|
|
11
|
+
export declare const ChTextarea: StencilVueComponent<JSX.ChTextarea>;
|
package/dist-vue/index.js
CHANGED
|
@@ -5,8 +5,12 @@ import { defineContainer } from '@stencil/vue-output-target/runtime';
|
|
|
5
5
|
import { defineCustomElement as defineChBadge } from '@devschile/chucao/dist/components/ch-badge.js';
|
|
6
6
|
import { defineCustomElement as defineChButton } from '@devschile/chucao/dist/components/ch-button.js';
|
|
7
7
|
import { defineCustomElement as defineChCard } from '@devschile/chucao/dist/components/ch-card.js';
|
|
8
|
+
import { defineCustomElement as defineChCheckbox } from '@devschile/chucao/dist/components/ch-checkbox.js';
|
|
8
9
|
import { defineCustomElement as defineChInput } from '@devschile/chucao/dist/components/ch-input.js';
|
|
10
|
+
import { defineCustomElement as defineChRadio } from '@devschile/chucao/dist/components/ch-radio.js';
|
|
9
11
|
import { defineCustomElement as defineChSelect } from '@devschile/chucao/dist/components/ch-select.js';
|
|
12
|
+
import { defineCustomElement as defineChSwitch } from '@devschile/chucao/dist/components/ch-switch.js';
|
|
13
|
+
import { defineCustomElement as defineChTextarea } from '@devschile/chucao/dist/components/ch-textarea.js';
|
|
10
14
|
export const ChBadge = /*@__PURE__*/ defineContainer('ch-badge', defineChBadge, [
|
|
11
15
|
'variant'
|
|
12
16
|
]);
|
|
@@ -19,6 +23,20 @@ export const ChButton = /*@__PURE__*/ defineContainer('ch-button', defineChButto
|
|
|
19
23
|
'chClick'
|
|
20
24
|
]);
|
|
21
25
|
export const ChCard = /*@__PURE__*/ defineContainer('ch-card', defineChCard);
|
|
26
|
+
export const ChCheckbox = /*@__PURE__*/ defineContainer('ch-checkbox', defineChCheckbox, [
|
|
27
|
+
'label',
|
|
28
|
+
'name',
|
|
29
|
+
'value',
|
|
30
|
+
'checked',
|
|
31
|
+
'disabled',
|
|
32
|
+
'required',
|
|
33
|
+
'hint',
|
|
34
|
+
'errorMessage',
|
|
35
|
+
'invalid',
|
|
36
|
+
'chChange'
|
|
37
|
+
], [
|
|
38
|
+
'chChange'
|
|
39
|
+
]);
|
|
22
40
|
export const ChInput = /*@__PURE__*/ defineContainer('ch-input', defineChInput, [
|
|
23
41
|
'label',
|
|
24
42
|
'type',
|
|
@@ -27,12 +45,29 @@ export const ChInput = /*@__PURE__*/ defineContainer('ch-input', defineChInput,
|
|
|
27
45
|
'name',
|
|
28
46
|
'disabled',
|
|
29
47
|
'required',
|
|
48
|
+
'hint',
|
|
49
|
+
'errorMessage',
|
|
50
|
+
'invalid',
|
|
30
51
|
'chInput',
|
|
31
52
|
'chChange'
|
|
32
53
|
], [
|
|
33
54
|
'chInput',
|
|
34
55
|
'chChange'
|
|
35
56
|
]);
|
|
57
|
+
export const ChRadio = /*@__PURE__*/ defineContainer('ch-radio', defineChRadio, [
|
|
58
|
+
'label',
|
|
59
|
+
'options',
|
|
60
|
+
'value',
|
|
61
|
+
'name',
|
|
62
|
+
'disabled',
|
|
63
|
+
'required',
|
|
64
|
+
'hint',
|
|
65
|
+
'errorMessage',
|
|
66
|
+
'invalid',
|
|
67
|
+
'chChange'
|
|
68
|
+
], [
|
|
69
|
+
'chChange'
|
|
70
|
+
]);
|
|
36
71
|
export const ChSelect = /*@__PURE__*/ defineContainer('ch-select', defineChSelect, [
|
|
37
72
|
'label',
|
|
38
73
|
'options',
|
|
@@ -41,7 +76,41 @@ export const ChSelect = /*@__PURE__*/ defineContainer('ch-select', defineChSelec
|
|
|
41
76
|
'name',
|
|
42
77
|
'disabled',
|
|
43
78
|
'required',
|
|
79
|
+
'hint',
|
|
80
|
+
'errorMessage',
|
|
81
|
+
'invalid',
|
|
82
|
+
'chChange'
|
|
83
|
+
], [
|
|
84
|
+
'chChange'
|
|
85
|
+
]);
|
|
86
|
+
export const ChSwitch = /*@__PURE__*/ defineContainer('ch-switch', defineChSwitch, [
|
|
87
|
+
'label',
|
|
88
|
+
'name',
|
|
89
|
+
'value',
|
|
90
|
+
'checked',
|
|
91
|
+
'disabled',
|
|
92
|
+
'required',
|
|
93
|
+
'hint',
|
|
94
|
+
'errorMessage',
|
|
95
|
+
'invalid',
|
|
96
|
+
'chChange'
|
|
97
|
+
], [
|
|
98
|
+
'chChange'
|
|
99
|
+
]);
|
|
100
|
+
export const ChTextarea = /*@__PURE__*/ defineContainer('ch-textarea', defineChTextarea, [
|
|
101
|
+
'label',
|
|
102
|
+
'value',
|
|
103
|
+
'placeholder',
|
|
104
|
+
'rows',
|
|
105
|
+
'name',
|
|
106
|
+
'disabled',
|
|
107
|
+
'required',
|
|
108
|
+
'hint',
|
|
109
|
+
'errorMessage',
|
|
110
|
+
'invalid',
|
|
111
|
+
'chInput',
|
|
44
112
|
'chChange'
|
|
45
113
|
], [
|
|
114
|
+
'chInput',
|
|
46
115
|
'chChange'
|
|
47
116
|
]);
|
package/dist-vue/index.ts
CHANGED
|
@@ -8,8 +8,12 @@ import type { JSX } from '@devschile/chucao/dist/components';
|
|
|
8
8
|
import { defineCustomElement as defineChBadge } from '@devschile/chucao/dist/components/ch-badge.js';
|
|
9
9
|
import { defineCustomElement as defineChButton } from '@devschile/chucao/dist/components/ch-button.js';
|
|
10
10
|
import { defineCustomElement as defineChCard } from '@devschile/chucao/dist/components/ch-card.js';
|
|
11
|
+
import { defineCustomElement as defineChCheckbox } from '@devschile/chucao/dist/components/ch-checkbox.js';
|
|
11
12
|
import { defineCustomElement as defineChInput } from '@devschile/chucao/dist/components/ch-input.js';
|
|
13
|
+
import { defineCustomElement as defineChRadio } from '@devschile/chucao/dist/components/ch-radio.js';
|
|
12
14
|
import { defineCustomElement as defineChSelect } from '@devschile/chucao/dist/components/ch-select.js';
|
|
15
|
+
import { defineCustomElement as defineChSwitch } from '@devschile/chucao/dist/components/ch-switch.js';
|
|
16
|
+
import { defineCustomElement as defineChTextarea } from '@devschile/chucao/dist/components/ch-textarea.js';
|
|
13
17
|
|
|
14
18
|
|
|
15
19
|
|
|
@@ -31,6 +35,22 @@ export const ChButton: StencilVueComponent<JSX.ChButton> = /*@__PURE__*/ defineC
|
|
|
31
35
|
export const ChCard: StencilVueComponent<JSX.ChCard> = /*@__PURE__*/ defineContainer<JSX.ChCard>('ch-card', defineChCard);
|
|
32
36
|
|
|
33
37
|
|
|
38
|
+
export const ChCheckbox: StencilVueComponent<JSX.ChCheckbox> = /*@__PURE__*/ defineContainer<JSX.ChCheckbox>('ch-checkbox', defineChCheckbox, [
|
|
39
|
+
'label',
|
|
40
|
+
'name',
|
|
41
|
+
'value',
|
|
42
|
+
'checked',
|
|
43
|
+
'disabled',
|
|
44
|
+
'required',
|
|
45
|
+
'hint',
|
|
46
|
+
'errorMessage',
|
|
47
|
+
'invalid',
|
|
48
|
+
'chChange'
|
|
49
|
+
], [
|
|
50
|
+
'chChange'
|
|
51
|
+
]);
|
|
52
|
+
|
|
53
|
+
|
|
34
54
|
export const ChInput: StencilVueComponent<JSX.ChInput> = /*@__PURE__*/ defineContainer<JSX.ChInput>('ch-input', defineChInput, [
|
|
35
55
|
'label',
|
|
36
56
|
'type',
|
|
@@ -39,6 +59,9 @@ export const ChInput: StencilVueComponent<JSX.ChInput> = /*@__PURE__*/ defineCon
|
|
|
39
59
|
'name',
|
|
40
60
|
'disabled',
|
|
41
61
|
'required',
|
|
62
|
+
'hint',
|
|
63
|
+
'errorMessage',
|
|
64
|
+
'invalid',
|
|
42
65
|
'chInput',
|
|
43
66
|
'chChange'
|
|
44
67
|
], [
|
|
@@ -47,6 +70,22 @@ export const ChInput: StencilVueComponent<JSX.ChInput> = /*@__PURE__*/ defineCon
|
|
|
47
70
|
]);
|
|
48
71
|
|
|
49
72
|
|
|
73
|
+
export const ChRadio: StencilVueComponent<JSX.ChRadio> = /*@__PURE__*/ defineContainer<JSX.ChRadio>('ch-radio', defineChRadio, [
|
|
74
|
+
'label',
|
|
75
|
+
'options',
|
|
76
|
+
'value',
|
|
77
|
+
'name',
|
|
78
|
+
'disabled',
|
|
79
|
+
'required',
|
|
80
|
+
'hint',
|
|
81
|
+
'errorMessage',
|
|
82
|
+
'invalid',
|
|
83
|
+
'chChange'
|
|
84
|
+
], [
|
|
85
|
+
'chChange'
|
|
86
|
+
]);
|
|
87
|
+
|
|
88
|
+
|
|
50
89
|
export const ChSelect: StencilVueComponent<JSX.ChSelect> = /*@__PURE__*/ defineContainer<JSX.ChSelect>('ch-select', defineChSelect, [
|
|
51
90
|
'label',
|
|
52
91
|
'options',
|
|
@@ -55,8 +94,46 @@ export const ChSelect: StencilVueComponent<JSX.ChSelect> = /*@__PURE__*/ defineC
|
|
|
55
94
|
'name',
|
|
56
95
|
'disabled',
|
|
57
96
|
'required',
|
|
97
|
+
'hint',
|
|
98
|
+
'errorMessage',
|
|
99
|
+
'invalid',
|
|
100
|
+
'chChange'
|
|
101
|
+
], [
|
|
102
|
+
'chChange'
|
|
103
|
+
]);
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
export const ChSwitch: StencilVueComponent<JSX.ChSwitch> = /*@__PURE__*/ defineContainer<JSX.ChSwitch>('ch-switch', defineChSwitch, [
|
|
107
|
+
'label',
|
|
108
|
+
'name',
|
|
109
|
+
'value',
|
|
110
|
+
'checked',
|
|
111
|
+
'disabled',
|
|
112
|
+
'required',
|
|
113
|
+
'hint',
|
|
114
|
+
'errorMessage',
|
|
115
|
+
'invalid',
|
|
116
|
+
'chChange'
|
|
117
|
+
], [
|
|
118
|
+
'chChange'
|
|
119
|
+
]);
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
export const ChTextarea: StencilVueComponent<JSX.ChTextarea> = /*@__PURE__*/ defineContainer<JSX.ChTextarea>('ch-textarea', defineChTextarea, [
|
|
123
|
+
'label',
|
|
124
|
+
'value',
|
|
125
|
+
'placeholder',
|
|
126
|
+
'rows',
|
|
127
|
+
'name',
|
|
128
|
+
'disabled',
|
|
129
|
+
'required',
|
|
130
|
+
'hint',
|
|
131
|
+
'errorMessage',
|
|
132
|
+
'invalid',
|
|
133
|
+
'chInput',
|
|
58
134
|
'chChange'
|
|
59
135
|
], [
|
|
136
|
+
'chInput',
|
|
60
137
|
'chChange'
|
|
61
138
|
]);
|
|
62
139
|
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as a,h as r,H as e,c as t}from"./p-COo5t8-6.js";const o=()=>`:host{display:inline-block}.badge{display:inline-block;padding:var(--spacing-2xs) var(--spacing-lg);border-radius:var(--radius-pill);font-size:var(--typography-size-xs);font-weight:var(--typography-weight-semibold);text-transform:uppercase;letter-spacing:var(--typography-tracking-badge)}.badge--default{background:var(--color-surface-hover);color:var(--accent)}.badge--positive{background:var(--color-status-positive-background);color:var(--color-status-positive)}.badge--warning{background:var(--color-status-warning-background);color:var(--color-status-warning)}`;const i=class{constructor(r){a(this,r)}variant="default";render(){return r(e,{key:"9bac1191887568872ad75b1eec3a6084310253db"},r("span",{key:"fae2007c430f102f8ad4e0cc7d97c606dde69eed",class:{badge:true,[`badge--${this.variant}`]:true}},r("slot",{key:"56913dac3a8c18e76a419c22c27c69ca1adc8cc0"})))}};i.style=o();const s=()=>`:host{display:inline-block}.btn{display:inline-flex;align-items:center;gap:var(--spacing-sm);border:none;cursor:pointer;font-family:inherit;font-size:inherit}.btn:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.btn:focus-visible{outline:var(--focus-outline-width) solid var(--accent);outline-offset:var(--focus-outline-offset)}.btn--primary{background-color:var(--accent);color:var(--color-accent-text);font-weight:var(--typography-weight-bold);padding:var(--spacing-xs) var(--spacing-xl);border-radius:var(--radius-pill);transition:background-color var(--duration-normal) var(--easing-default), transform var(--duration-fast) var(--easing-default)}.btn--primary:hover{background-color:var(--accent-hover);transform:translateY(calc(-1 * var(--spacing-elevate)))}.btn--secondary{background-color:transparent;color:var(--text);font-weight:var(--typography-weight-bold);padding:var(--spacing-xs) var(--spacing-xl);border-radius:var(--radius-pill);border:var(--border-width) solid var(--border);transition:border-color var(--duration-normal) var(--easing-default), background-color var(--duration-normal) var(--easing-default), transform var(--duration-fast) var(--easing-default)}.btn--secondary:hover{border-color:var(--border-hover);background-color:var(--surface-hover);transform:translateY(calc(-1 * var(--spacing-elevate)))}`;const d=class{constructor(r){a(this,r);this.chClick=t(this,"chClick")}variant="primary";disabled=false;label;chClick;handleClick=a=>{this.chClick.emit(a)};render(){return r(e,{key:"ac7192a829924909b5068272786a301ae94f722c"},r("button",{key:"74e32d6dcc873224e48101b13019df73aeac45c9",class:{btn:true,[`btn--${this.variant}`]:true},type:"button",disabled:this.disabled,"aria-label":this.label,onClick:this.handleClick},r("slot",{key:"2aee1cf56fec308e43d2abce2af9752fe7bc6f47"})))}};d.style=s();const c=()=>`:host{display:block}::slotted(p){color:var(--text-muted)}.card{color:var(--text);background:var(--surface);border:var(--border-width) solid var(--border);border-radius:var(--radius);padding:var(--spacing-4xl) var(--spacing-5xl);backdrop-filter:blur(var(--effect-blur));position:relative;overflow:hidden;transition:border-color var(--duration-normal) var(--easing-default), transform var(--duration-fast) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:var(--border-accent-bar);background:var(--accent);opacity:0;transition:opacity var(--duration-normal) var(--easing-default)}.card:hover{border-color:var(--border-hover);transform:translateX(var(--spacing-shift));box-shadow:var(--shadow-card-hover)}.card:hover::before{opacity:1}`;const n=class{constructor(r){a(this,r)}render(){return r(e,{key:"e9685d92d3ffe08fb37088c0743534fd2701ecbb"},r("div",{key:"98317e248251b8d23baea9dd3810fc94953dabc4",class:"card"},r("slot",{key:"842e2fe5f72c74f1a14f20957e2edfd882b71edc"})))}};n.style=c();const l=()=>`:host{display:inline-block;width:100%}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.input{box-sizing:border-box;width:100%;padding:var(--spacing-xl) var(--spacing-3xl);border-radius:var(--radius);border:var(--border-width) solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(var(--effect-blur));font-family:inherit;font-size:inherit;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.input::placeholder{color:var(--text-muted)}.input:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.input:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}`;let b=0;const h=class{constructor(r){a(this,r);this.chInput=t(this,"chInput");this.chChange=t(this,"chChange")}inputId=`ch-input-${++b}`;label;type="text";value="";placeholder;name;disabled=false;required=false;chInput;chChange;handleInput=a=>{this.value=a.target.value;this.chInput.emit(this.value)};handleChange=a=>{this.value=a.target.value;this.chChange.emit(this.value)};render(){return r(e,{key:"83f68aa09efcfcd544012ffde27f116c122ba215"},this.label&&r("label",{key:"d8ca4d52450a024991a3c8f22876483d2031593c",class:"label",htmlFor:this.inputId},this.label),r("input",{key:"fe8c7ce352397b8b0401226501039fc87e8cef57",id:this.label?this.inputId:undefined,class:"input",type:this.type,name:this.name,placeholder:this.placeholder,disabled:this.disabled,required:this.required,value:this.value,onInput:this.handleInput,onChange:this.handleChange}))}};h.style=l();const u=()=>`:host{display:inline-block;width:100%}.label{display:block;margin-bottom:var(--spacing-sm);font-size:var(--typography-size-sm);font-weight:var(--typography-weight-semibold);color:var(--text)}.select{box-sizing:border-box;width:100%;padding:var(--spacing-xl) var(--spacing-3xl);border-radius:var(--radius);border:var(--border-width) solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(var(--effect-blur));font-family:inherit;font-size:inherit;cursor:pointer;transition:border-color var(--duration-normal) var(--easing-default), box-shadow var(--duration-normal) var(--easing-default)}.select:focus{border-color:var(--accent);box-shadow:var(--shadow-focus-ring);outline:none}.select:disabled{opacity:var(--opacity-disabled);cursor:not-allowed}.select option{background:var(--bg);color:var(--text)}`;let v=0;const f=class{constructor(r){a(this,r);this.chChange=t(this,"chChange")}selectId=`ch-select-${++v}`;label;options=[];value;placeholder;name;disabled=false;required=false;chChange;handleChange=a=>{this.value=a.target.value;this.chChange.emit(this.value)};render(){return r(e,{key:"57cb1bebbc8ab5ddc01ca1d568cd6871ad6591a2"},this.label&&r("label",{key:"4f89a32b4dea704c6e4f59d7c070281bffbe6dae",class:"label",htmlFor:this.selectId},this.label),r("select",{key:"f4d5badf61e6d72f3f1c9383a0f1b4093303acd3",id:this.label?this.selectId:undefined,class:"select",name:this.name,disabled:this.disabled,required:this.required,onChange:this.handleChange},this.placeholder&&r("option",{key:"241c5db4c8947c8b6bb0ad855e71e99b7315eb73",value:"",disabled:true,hidden:true,selected:!this.value},this.placeholder),this.options.map((a=>r("option",{value:a.value,disabled:a.disabled,selected:a.value===this.value},a.label)))))}};f.style=u();export{i as ch_badge,d as ch_button,n as ch_card,h as ch_input,f as ch_select};
|
|
2
|
-
//# sourceMappingURL=p-94a2b1be.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["chBadgeCss","ChBadge","variant","render","h","Host","key","class","badge","this","chButtonCss","ChButton","disabled","label","chClick","handleClick","ev","emit","btn","type","onClick","chCardCss","ChCard","chInputCss","inputIds","ChInput","inputId","value","placeholder","name","required","chInput","chChange","handleInput","target","handleChange","htmlFor","id","undefined","onInput","onChange","chSelectCss","selectIds","ChSelect","selectId","options","hidden","selected","map","option"],"sources":["src/components/ch-badge/ch-badge.css?tag=ch-badge&encapsulation=shadow","src/components/ch-badge/ch-badge.tsx","src/components/ch-button/ch-button.css?tag=ch-button&encapsulation=shadow","src/components/ch-button/ch-button.tsx","src/components/ch-card/ch-card.css?tag=ch-card&encapsulation=shadow","src/components/ch-card/ch-card.tsx","src/components/ch-input/ch-input.css?tag=ch-input&encapsulation=shadow","src/components/ch-input/ch-input.tsx","src/components/ch-select/ch-select.css?tag=ch-select&encapsulation=shadow","src/components/ch-select/ch-select.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n.badge {\n display: inline-block;\n padding: var(--spacing-2xs) var(--spacing-lg);\n border-radius: var(--radius-pill);\n font-size: var(--typography-size-xs);\n font-weight: var(--typography-weight-semibold);\n text-transform: uppercase;\n letter-spacing: var(--typography-tracking-badge);\n}\n\n.badge--default {\n background: var(--color-surface-hover);\n color: var(--accent);\n}\n\n.badge--positive {\n background: var(--color-status-positive-background);\n color: var(--color-status-positive);\n}\n.badge--warning {\n background: var(--color-status-warning-background);\n color: var(--color-status-warning);\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\nexport type ChBadgeVariant = 'default' | 'positive' | 'warning';\n\n@Component({\n tag: 'ch-badge',\n styleUrl: 'ch-badge.css',\n shadow: true,\n})\nexport class ChBadge {\n /**\n * The visual style of the badge. Either `default`, `positive`, or `warning`.\n */\n @Prop() variant: ChBadgeVariant = 'default';\n\n render() {\n return (\n <Host>\n <span class={{ badge: true, [`badge--${this.variant}`]: true }}>\n <slot></slot>\n </span>\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n}\n\n.btn {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-sm);\n border: none;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n}\n\n.btn:disabled {\n opacity: var(--opacity-disabled);\n cursor: not-allowed;\n}\n\n.btn:focus-visible {\n outline: var(--focus-outline-width) solid var(--accent);\n outline-offset: var(--focus-outline-offset);\n}\n\n.btn--primary {\n background-color: var(--accent);\n color: var(--color-accent-text);\n font-weight: var(--typography-weight-bold);\n padding: var(--spacing-xs) var(--spacing-xl);\n border-radius: var(--radius-pill);\n transition:\n background-color var(--duration-normal) var(--easing-default),\n transform var(--duration-fast) var(--easing-default);\n}\n\n.btn--primary:hover {\n background-color: var(--accent-hover);\n transform: translateY(calc(-1 * var(--spacing-elevate)));\n}\n\n.btn--secondary {\n background-color: transparent;\n color: var(--text);\n font-weight: var(--typography-weight-bold);\n padding: var(--spacing-xs) var(--spacing-xl);\n border-radius: var(--radius-pill);\n border: var(--border-width) solid var(--border);\n transition:\n border-color var(--duration-normal) var(--easing-default),\n background-color var(--duration-normal) var(--easing-default),\n transform var(--duration-fast) var(--easing-default);\n}\n\n.btn--secondary:hover {\n border-color: var(--border-hover);\n background-color: var(--surface-hover);\n transform: translateY(calc(-1 * var(--spacing-elevate)));\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nexport type ChButtonVariant = 'primary' | 'secondary';\n\n@Component({\n tag: 'ch-button',\n styleUrl: 'ch-button.css',\n shadow: true,\n})\nexport class ChButton {\n /**\n * The visual style of the button. Either `primary` or `secondary`.\n */\n @Prop() variant: ChButtonVariant = 'primary';\n\n /**\n * Whether the button is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Accessible label set as `aria-label` on the native `<button>`. Use it\n * when the button's content doesn't convey its purpose on its own (e.g.\n * an icon-only button).\n */\n @Prop() label?: string;\n\n /**\n * Emitted when the button is clicked.\n */\n @Event() chClick: EventEmitter<MouseEvent>;\n\n private handleClick = (ev: MouseEvent) => {\n this.chClick.emit(ev);\n };\n\n render() {\n return (\n <Host>\n <button\n class={{ btn: true, [`btn--${this.variant}`]: true }}\n type=\"button\"\n disabled={this.disabled}\n aria-label={this.label}\n onClick={this.handleClick}\n >\n <slot></slot>\n </button>\n </Host>\n );\n }\n}\n",":host {\n display: block;\n}\n\n::slotted(p) {\n color: var(--text-muted);\n}\n\n.card {\n color: var(--text);\n background: var(--surface);\n border: var(--border-width) solid var(--border);\n border-radius: var(--radius);\n padding: var(--spacing-4xl) var(--spacing-5xl);\n backdrop-filter: blur(var(--effect-blur));\n position: relative;\n overflow: hidden;\n transition:\n border-color var(--duration-normal) var(--easing-default),\n transform var(--duration-fast) var(--easing-default),\n box-shadow var(--duration-normal) var(--easing-default);\n}\n\n.card::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n width: var(--border-accent-bar);\n background: var(--accent);\n opacity: 0;\n transition: opacity var(--duration-normal) var(--easing-default);\n}\n\n.card:hover {\n border-color: var(--border-hover);\n transform: translateX(var(--spacing-shift));\n box-shadow: var(--shadow-card-hover);\n}\n\n.card:hover::before {\n opacity: 1;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'ch-card',\n styleUrl: 'ch-card.css',\n shadow: true,\n})\nexport class ChCard {\n render() {\n return (\n <Host>\n <div class=\"card\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n width: 100%;\n}\n\n.label {\n display: block;\n margin-bottom: var(--spacing-sm);\n font-size: var(--typography-size-sm);\n font-weight: var(--typography-weight-semibold);\n color: var(--text);\n}\n\n.input {\n box-sizing: border-box;\n width: 100%;\n padding: var(--spacing-xl) var(--spacing-3xl);\n border-radius: var(--radius);\n border: var(--border-width) solid var(--border);\n background: var(--surface);\n color: var(--text);\n backdrop-filter: blur(var(--effect-blur));\n font-family: inherit;\n font-size: inherit;\n transition:\n border-color var(--duration-normal) var(--easing-default),\n box-shadow var(--duration-normal) var(--easing-default);\n}\n\n.input::placeholder {\n color: var(--text-muted);\n}\n\n.input:focus {\n border-color: var(--accent);\n box-shadow: var(--shadow-focus-ring);\n outline: none;\n}\n\n.input:disabled {\n opacity: var(--opacity-disabled);\n cursor: not-allowed;\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nlet inputIds = 0;\n\n@Component({\n tag: 'ch-input',\n styleUrl: 'ch-input.css',\n shadow: true,\n})\nexport class ChInput {\n private readonly inputId = `ch-input-${++inputIds}`;\n\n /**\n * Visible label rendered above the input and associated with it via\n * `for`/`id`, so assistive technology announces the input's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The type of the input, mirroring the native `<input type>` attribute.\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({ mutable: true }) value = '';\n\n /**\n * Placeholder text shown when the input is empty.\n */\n @Prop() placeholder?: string;\n\n /**\n * The name of the input, submitted with form data.\n */\n @Prop() name?: string;\n\n /**\n * Whether the input is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Whether the input is required.\n */\n @Prop() required = false;\n\n /**\n * Emitted on every keystroke, with the current input value.\n */\n @Event() chInput: EventEmitter<string>;\n\n /**\n * Emitted when the input value is committed (on native `change`).\n */\n @Event() chChange: EventEmitter<string>;\n\n private handleInput = (ev: InputEvent) => {\n this.value = (ev.target as HTMLInputElement).value;\n this.chInput.emit(this.value);\n };\n\n private handleChange = (ev: Event) => {\n this.value = (ev.target as HTMLInputElement).value;\n this.chChange.emit(this.value);\n };\n\n render() {\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.inputId}>\n {this.label}\n </label>\n )}\n <input\n id={this.label ? this.inputId : undefined}\n class=\"input\"\n type={this.type}\n name={this.name}\n placeholder={this.placeholder}\n disabled={this.disabled}\n required={this.required}\n value={this.value}\n onInput={this.handleInput}\n onChange={this.handleChange}\n />\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n width: 100%;\n}\n\n.label {\n display: block;\n margin-bottom: var(--spacing-sm);\n font-size: var(--typography-size-sm);\n font-weight: var(--typography-weight-semibold);\n color: var(--text);\n}\n\n.select {\n box-sizing: border-box;\n width: 100%;\n padding: var(--spacing-xl) var(--spacing-3xl);\n border-radius: var(--radius);\n border: var(--border-width) solid var(--border);\n background: var(--surface);\n color: var(--text);\n backdrop-filter: blur(var(--effect-blur));\n font-family: inherit;\n font-size: inherit;\n cursor: pointer;\n transition:\n border-color var(--duration-normal) var(--easing-default),\n box-shadow var(--duration-normal) var(--easing-default);\n}\n\n.select:focus {\n border-color: var(--accent);\n box-shadow: var(--shadow-focus-ring);\n outline: none;\n}\n\n.select:disabled {\n opacity: var(--opacity-disabled);\n cursor: not-allowed;\n}\n\n.select option {\n background: var(--bg);\n color: var(--text);\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nexport interface ChSelectOption {\n label: string;\n value: string;\n disabled?: boolean;\n}\n\nlet selectIds = 0;\n\n@Component({\n tag: 'ch-select',\n styleUrl: 'ch-select.css',\n shadow: true,\n})\nexport class ChSelect {\n private readonly selectId = `ch-select-${++selectIds}`;\n\n /**\n * Visible label rendered above the select and associated with it via\n * `for`/`id`, so assistive technology announces the select's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The list of options rendered inside the select.\n */\n @Prop() options: ChSelectOption[] = [];\n\n /**\n * The value of the selected option.\n */\n @Prop({ mutable: true }) value?: string;\n\n /**\n * Placeholder shown as a disabled, hidden first option when no value is selected.\n */\n @Prop() placeholder?: string;\n\n /**\n * The name of the select, submitted with form data.\n */\n @Prop() name?: string;\n\n /**\n * Whether the select is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Whether a value is required.\n */\n @Prop() required = false;\n\n /**\n * Emitted when the selected option changes, with the new value.\n */\n @Event() chChange: EventEmitter<string>;\n\n private handleChange = (ev: Event) => {\n this.value = (ev.target as HTMLSelectElement).value;\n this.chChange.emit(this.value);\n };\n\n render() {\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.selectId}>\n {this.label}\n </label>\n )}\n <select\n id={this.label ? this.selectId : undefined}\n class=\"select\"\n name={this.name}\n disabled={this.disabled}\n required={this.required}\n onChange={this.handleChange}\n >\n {this.placeholder && (\n <option value=\"\" disabled hidden selected={!this.value}>\n {this.placeholder}\n </option>\n )}\n {this.options.map(option => (\n <option value={option.value} disabled={option.disabled} selected={option.value === this.value}>\n {option.label}\n </option>\n ))}\n </select>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAa,IAAM,wjB,MCSZC,EAAO,M,yBAIVC,QAA0B,UAElC,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,QAAAE,IAAA,2CAAMC,MAAO,CAAEC,MAAO,KAAM,CAAC,UAAUC,KAAKP,WAAY,OACtDE,EAAA,QAAAE,IAAA,8C,eCnBV,MAAMI,EAAc,IAAM,00C,MCSbC,EAAQ,M,wDAIXT,QAA2B,UAK3BU,SAAW,MAOXC,MAKCC,QAEDC,YAAeC,IACrBP,KAAKK,QAAQG,KAAKD,EAAG,EAGvB,MAAAb,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,UAAAE,IAAA,2CACEC,MAAO,CAAEW,IAAK,KAAM,CAAC,QAAQT,KAAKP,WAAY,MAC9CiB,KAAK,SACLP,SAAUH,KAAKG,SAAQ,aACXH,KAAKI,MACjBO,QAASX,KAAKM,aAEdX,EAAA,QAAAE,IAAA,8C,eC9CV,MAAMe,EAAY,IAAM,20B,MCOXC,EAAM,M,yBACjB,MAAAnB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAM,QACTH,EAAA,QAAAE,IAAA,8C,eCZV,MAAMiB,EAAa,IAAM,uyBCEzB,IAAIC,EAAW,E,MAOFC,EAAO,M,yFACDC,QAAU,cAAcF,IAMjCX,MAKAM,KAAO,OAKUQ,MAAQ,GAKzBC,YAKAC,KAKAjB,SAAW,MAKXkB,SAAW,MAKVC,QAKAC,SAEDC,YAAejB,IACrBP,KAAKkB,MAASX,EAAGkB,OAA4BP,MAC7ClB,KAAKsB,QAAQd,KAAKR,KAAKkB,MAAM,EAGvBQ,aAAgBnB,IACtBP,KAAKkB,MAASX,EAAGkB,OAA4BP,MAC7ClB,KAAKuB,SAASf,KAAKR,KAAKkB,MAAM,EAGhC,MAAAxB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACFG,KAAKI,OACJT,EAAA,SAAAE,IAAA,2CAAOC,MAAM,QAAQ6B,QAAS3B,KAAKiB,SAChCjB,KAAKI,OAGVT,EAAA,SAAAE,IAAA,2CACE+B,GAAI5B,KAAKI,MAAQJ,KAAKiB,QAAUY,UAChC/B,MAAM,QACNY,KAAMV,KAAKU,KACXU,KAAMpB,KAAKoB,KACXD,YAAanB,KAAKmB,YAClBhB,SAAUH,KAAKG,SACfkB,SAAUrB,KAAKqB,SACfH,MAAOlB,KAAKkB,MACZY,QAAS9B,KAAKwB,YACdO,SAAU/B,KAAK0B,e,eCtFzB,MAAMM,EAAc,IAAM,m0BCQ1B,IAAIC,EAAY,E,MAOHC,EAAQ,M,0DACFC,SAAW,eAAeF,IAMnC7B,MAKAgC,QAA4B,GAKXlB,MAKjBC,YAKAC,KAKAjB,SAAW,MAKXkB,SAAW,MAKVE,SAEDG,aAAgBnB,IACtBP,KAAKkB,MAASX,EAAGkB,OAA6BP,MAC9ClB,KAAKuB,SAASf,KAAKR,KAAKkB,MAAM,EAGhC,MAAAxB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACFG,KAAKI,OACJT,EAAA,SAAAE,IAAA,2CAAOC,MAAM,QAAQ6B,QAAS3B,KAAKmC,UAChCnC,KAAKI,OAGVT,EAAA,UAAAE,IAAA,2CACE+B,GAAI5B,KAAKI,MAAQJ,KAAKmC,SAAWN,UACjC/B,MAAM,SACNsB,KAAMpB,KAAKoB,KACXjB,SAAUH,KAAKG,SACfkB,SAAUrB,KAAKqB,SACfU,SAAU/B,KAAK0B,cAEd1B,KAAKmB,aACJxB,EAAA,UAAAE,IAAA,2CAAQqB,MAAM,GAAGf,SAAQ,KAACkC,OAAM,KAACC,UAAWtC,KAAKkB,OAC9ClB,KAAKmB,aAGTnB,KAAKoC,QAAQG,KAAIC,GAChB7C,EAAA,UAAQuB,MAAOsB,EAAOtB,MAAOf,SAAUqC,EAAOrC,SAAUmC,SAAUE,EAAOtB,QAAUlB,KAAKkB,OACrFsB,EAAOpC,U","ignoreList":[]}
|
|
@@ -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 l=(e,t)=>{var n;const r=t.t;const l=Object.entries((n=r.o)!=null?n:{});l.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const l=o(Object.getPrototypeOf(e),n,true)||Object.getOwnPropertyDescriptor(e,n);if(l){Object.defineProperty(e,n,{get(){return l.get.call(this)},set(e){l.set.call(this,e)},configurable:true,enumerable:true})}if(t.l.has(n)){e[n]=t.l.get(n)}else if(r!==void 0){e[n]=r}}}))};var s=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var i=(e,n)=>{if(!n)return;e.__stencil__getHostRef=()=>n;n.i=e;if(n.t.u&512&&t.prop){l(e,n)}};var a=(e,t)=>{const n={u:0,$hostElement$:e,t,l: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 l=u.get(o);if(l){return l[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 L(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 R=(e,t="")=>{{return()=>{}}};var A=(e,t)=>{{return()=>{}}};function D(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 H=new WeakMap;var N=(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 U=(e,t,n)=>{var r,o,l;const s=P(t);const i=p.get(s);if(!m.document){return s}e=e.nodeType===11?e:m.document;if(i){if(typeof i==="string"){e=e.head||e;let n=H.get(e);let l;if(!n){H.set(e,n=new Set)}if(!n.has(s)){l=m.document.createElement("style");l.textContent=i;const a=(r=y.k)!=null?r:D(m.document);if(a!=null){l.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(l,(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(i);if(w){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=i+t.textContent}else{e.prepend(l)}}}else{e.append(l)}}if(t.u&1){e.insertBefore(l,null)}if(t.u&4){l.textContent+=h}if(n){n.add(s)}}}else{let t=H.get(e);if(!t){H.set(e,t=new Set)}if(!t.has(s)){const n=(l=e.defaultView)!=null?l:e.ownerDocument.defaultView;let r;if(i.constructor===n.CSSStyleSheet){r=i}else{r=new n.CSSStyleSheet;for(let e=0;e<i.cssRules.length;e++){r.insertRule(i.cssRules[e].cssText,e)}}if(w){e.adoptedStyleSheets.push(r)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}t.add(s)}}}return s};var F=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const o=R("attachStyles",t.$);const l=U(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=l;n.classList.add(l+"-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=He(e)}let r=null;let o=null;let l=false;let s=false;const i=[];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(l=typeof e!=="function"&&!T(r)){r=String(r)}if(l&&s){i[i.length-1].O+=r}else{i.push(l?I(null,r):r)}s=l}}};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(i.length>0){c.M=i}{c.L=o}return c};var I=(e,t)=>{const n={u:0,R:e,O:t!=null?t:null,A:null,M:null};{n.C=null}{n.L=null}return n};var V={};var q=e=>e&&e.R===V;var G=(e,t,n)=>{if(e!=null&&!T(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&1){return String(e)}return e}return e};var Y=e=>{var t;return(t=s(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,l,i)=>{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 l=K(r);{t.remove(...o.filter((e=>e&&!l.includes(e))));t.add(...l.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=s(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 s=T(r);if((a||s&&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||l&4||o)&&!s&&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.A.nodeType===11&&t.A.host?t.A.host:t.A;const l=e&&e.C||{};const s=t.C||{};{for(const e of te(Object.keys(l))){if(!(e in s)){B(o,e,l[e],void 0,n,t.u)}}}for(const e of te(Object.keys(s))){B(o,e,l[e],s[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 le=(e,t,n)=>{const r=t.M[n];let o=0;let l;let s;if(r.O!=null){l=r.A=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.")}l=r.A=m.document.createElement(r.R);{ee(null,r,oe)}if(r.M){const t=r.R==="template"?l.content:l;for(o=0;o<r.M.length;++o){s=le(e,r,o);if(s){t.appendChild(s)}}}}l["s-hn"]=ne;return l};var se=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 ie=(e,t,n,r,o,l)=>{let s=e;let i;if(s.shadowRoot&&s.tagName===ne){s=s.shadowRoot}if(n.R==="template"){s=s.content}for(;o<=l;++o){if(r[o]){i=le(null,n,o);if(i){r[o].A=i;de(s,i,t)}}}};var ae=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.A;if(e){e.remove()}}}};var ce=(e,t,n,r,o=false)=>{let l=0;let s=0;let i=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.R==="template"?e.content:e;while(l<=c&&s<=d){if(f==null){f=t[++l]}else if(u==null){u=t[--c]}else if(p==null){p=r[++s]}else if(v==null){v=r[--d]}else if(fe(f,p,o)){ue(f,p,o);f=t[++l];p=r[++s]}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.A,u.A.nextSibling);f=t[++l];v=r[--d]}else if(fe(u,p,o)){ue(u,p,o);de(y,u.A,f.A);u=t[--c];p=r[++s]}else{i=-1;{for(a=l;a<=c;++a){if(t[a]&&t[a].L!==null&&t[a].L===p.L){i=a;break}}}if(i>=0){m=t[i];if(m.R!==p.R){h=le(t&&t[s],n,i)}else{ue(m,p,o);t[i]=void 0;h=m.A}p=r[++s]}else{h=le(t&&t[s],n,s);p=r[++s]}if(h){{de(f.A.parentNode,h,f.A)}}}}if(l>c){ie(e,r[d+1]==null?null:r[d+1].A,n,r,s,d)}else if(s>d){ae(t,l,c)}};var fe=(e,t,n=false)=>{if(e.R===t.R){if(!n){return e.L===t.L}if(n&&!e.L&&t.L){e.L=t.L}return true}return false};var ue=(e,n,r=false)=>{const o=n.A=e.A;const l=e.M;const s=n.M;const i=n.R;const a=n.O;if(a==null){{if(i==="slot"&&!re){if(e.D!==n.D){n.A["s-sn"]=n.D||"";se(n.A.parentElement)}}ee(e,n,oe)}if(l!==null&&s!==null){ce(o,l,n,s,r)}else if(s!==null){if(e.O!==null){o.textContent=""}ie(o,null,n,s,0,s.length-1)}else if(!r&&t.updatable&&l!==null){ae(l,0,l.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 l=e.H||I(null,null);const s=q(t);const i=s?t:W(null,null,t);ne=r.tagName;if(n&&i.C){for(const e of Object.keys(i.C)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){i.C[e]=r[e]}}}i.R=null;i.u|=4;e.H=i;i.A=l.A=r.shadowRoot||r;re=!!(o.u&1)&&!(o.u&128);ue(l,i,n)};var ve=(e,t)=>{if(t&&!e.N&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.N=()=>{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.U);const n=()=>me(e,t);if(t){queueMicrotask((()=>{n()}));return}return M(n)};var me=(e,t)=>{const n=e.$hostElement$;const r=R("scheduleUpdate",e.t.$);const o=e.i;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 l;if(t){{if(e.m.length){e.m.forEach((e=>e(n)))}}l=Se(o,"componentWillLoad",void 0,n)}else{l=Se(o,"componentWillUpdate",void 0,n)}l=ye(l,(()=>Se(o,"componentWillRender",void 0,n)));r();return ye(l,(()=>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 l=R("update",e.t.$);const s=o["s-rc"];if(n){F(e)}const i=R("render",e.t.$);{we(e,t,o,n)}if(s){s.map((e=>e()));o["s-rc"]=void 0}i();l();{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=R("postUpdate",t);const o=e.i;const l=e.U;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(!l){$e()}}}else{Se(o,"componentDidUpdate",void 0,n);r()}{if(e.N){e.N();e.N=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)=>s(e).l.get(t);var Oe=(e,t,n,r)=>{const o=s(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 l=o.l.get(t);const i=o.u;const a=o.i;n=G(n,r.o[t][0]);const c=Number.isNaN(l)&&Number.isNaN(n);const f=n!==l&&!c;if((!(i&8)||l===void 0)&&f){o.l.set(t,n);if(i&2){if(a.componentShouldUpdate){const e=a.componentShouldUpdate(n,l,t);if(e===false&&!(i&16)){return}}if(!(i&16)){he(o,false)}}}};var Ce=(e,n,r)=>{var l,i;const a=e.prototype;if(n.o||t.propChangeCallback){const c=Object.entries((l=n.o)!=null?l:{});c.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:l,set:i}=o(a,e)||{};if(l)n.o[e][0]|=2048;if(i)n.o[e][0]|=4096;if(r&1||!l){Object.defineProperty(a,e,{get(){{if((n.o[e][0]&2048)===0){return ke(this,e)}const t=s(this);const r=t?t.i:a;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(a,e,{set(o){const l=s(this);if(!l){return}if(i){const r=t&32?this[e]:l.$hostElement$[e];if(typeof r==="undefined"&&l.l.get(e)){o=l.l.get(e)}i.apply(this,[G(o,t)]);o=t&32?this[e]:l.$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&&!l.i){l.m.push((()=>{if(n.o[e][0]&4096&&l.i[e]!==l.l.get(e)){l.i[e]=o}}))}return}const s=()=>{const r=l.i[e];if(!l.l.get(e)&&r){l.l.set(e,r)}l.i[e]=G(o,t);Oe(this,e,l.i[e],n)};if(l.i){s()}else{l.m.push((()=>{s()}))}}}})}}));if(r&1){const r=new Map;a.attributeChangedCallback=function(e,o,l){y.jmp((()=>{var i;const f=r.get(e);const u=s(this);if(this.hasOwnProperty(f)&&t.lazyLoad){l=this[f];delete this[f]}if(a.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==l){return}else if(f==null){const t=u==null?void 0:u.u;if(u&&t&&!(t&8)&&l!==o){const r=u.i;const s=(i=n.F)==null?void 0:i[e];s==null?void 0:s.forEach((n=>{const[[s,i]]=Object.entries(n);if(r[s]!=null&&(t&128||i&1)){r[s].call(r,l,o,e)}}))}return}const d=c.find((([e])=>e===f));const p=d&&d[1][0]&4;const v=p&&l===null&&this[f]===void 0;if(p){l=l===null||l==="false"?false:true}const h=Object.getOwnPropertyDescriptor(a,f);if(!v&&l!=this[f]&&(!h.get||!!h.set)){this[f]=l}}))};e.observedAttributes=Array.from(new Set([...Object.keys((i=n.F)!=null?i:{}),...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 l;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=A();l=await t;e()}else{l=t}if(!l){throw new Error(`Constructor for "${r.$}#${n.P}" was not found`)}if(!l.isProxied){Ce(l,r,2);l.isProxied=true}const o=R("createInstance",r.$);{n.u|=8}try{new l(n)}catch(t){f(t,e)}{n.u&=-9}o();{Ee(n.i,e)}}else{l=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.u|=128))}if(l&&l.style){let e;if(typeof l.style==="string"){e=l.style}const n=P(r);if(!p.has(n)||t.hotModuleReplacement){const t=R("registerStyles",r.$);N(n,e,!!(r.u&1));t()}}}const o=n.U;const s=()=>he(n,true);if(o&&o["s-rc"]){o["s-rc"].push(s)}else{s()}}catch(t){f(t,e);if(n.N){n.N();n.N=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=s(e);if(!t){return}const n=t.t;const r=R("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.U=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.i){Ee(t.i,e)}else if(t==null?void 0:t.v){t.v.then((()=>Ee(t.i,e)))}}r()}};var Le=(e,t)=>{{Se(e,"disconnectedCallback",void 0,t||e)}};var Re=async e=>{if((y.u&1)===0){const t=s(e);if(t==null?void 0:t.i){Le(t.i,e)}else if(t==null?void 0:t.v){t.v.then((()=>Le(t.i,e)))}}if(H.has(e)){H.delete(e)}if(e.shadowRoot&&H.has(e.shadowRoot)){H.delete(e.shadowRoot)}};var Ae=(e,t={})=>{var n;if(!m.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=R();const o=[];const l=t.exclude||[];const i=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=He(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){L.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=s(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((()=>Re(this)));y.raf((()=>{var e;const t=s(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.H)==null?void 0:e.A)instanceof Node&&!t.H.A.isConnected){delete t.H.A}}))}componentOnReady(){var e;return(e=s(this))==null?void 0:e.v}};n.S=e[0];if(!l.includes(r)&&!i.get(r)){o.push(r);i.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:D(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 De=e=>y.k=e;function He(e){return e}export{V as H,Ae as b,Z as c,n as g,W as h,g as p,i as r,De as s};
|
|
3
|
-
//# sourceMappingURL=p-COo5t8-6.js.map
|