@wikicasa-dev/components 1.9.32 → 1.9.34
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 +4 -18
- package/dist/AccessibleSelect.js +1 -1
- package/dist/BaseAutocomplete.js +1 -1
- package/dist/BaseDropDown.js +1 -1
- package/dist/BaseTabView.js +1 -1
- package/dist/SwiperCarousel.js +1 -1
- package/dist/UIKit/AccessibleSelect.vue.d.ts +16 -47
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +18 -35
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +19 -39
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +15 -19
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +32 -53
- package/dist/UIKit/BaseAlert.vue.d.ts +11 -28
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +180 -108
- package/dist/UIKit/BaseBadge.vue.d.ts +11 -27
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +13 -18
- package/dist/UIKit/BaseButton.vue.d.ts +20 -57
- package/dist/UIKit/BaseCard.vue.d.ts +14 -37
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +26 -64
- package/dist/UIKit/BaseDropDown.vue.d.ts +28 -67
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +6 -32
- package/dist/UIKit/BaseInput.vue.d.ts +41 -75
- package/dist/UIKit/BaseModal.vue.d.ts +29 -69
- package/dist/UIKit/BasePagination.vue.d.ts +19 -71
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +21 -37
- package/dist/UIKit/BaseSlider.vue.d.ts +60 -104
- package/dist/UIKit/BaseSnackbar.vue.d.ts +6 -32
- package/dist/UIKit/BaseTextarea.vue.d.ts +19 -43
- package/dist/UIKit/BaseToggle.vue.d.ts +21 -25
- package/dist/UIKit/BaseTooltip.vue.d.ts +12 -43
- package/dist/UIKit/BaseUploadFile.vue.d.ts +17 -44
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +29 -65
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +24 -55
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +6 -27
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +33 -50
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +10 -15
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +4 -30
- package/dist/UIKit/StaticSpinner.vue.d.ts +4 -27
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +10 -15
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +6 -28
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +11 -27
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +14 -33
- package/dist/UIKit/types.d.ts +0 -1
- package/dist/assets/BaseAlert.css +1 -1
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseFloatingLabel.css +1 -1
- package/dist/assets/BaseTextarea.css +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chart/DoughnutChart.vue.d.ts +3 -13
- package/dist/chart/LineChart.vue.d.ts +3 -13
- package/dist/chart/composables/useChartjsModules.d.ts +0 -1
- package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.BZJiuA9q.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.B8sZx5ag.js} +1 -1
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.CuwMDpZt.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.lynxd7Sj.js} +2 -2
- package/dist/chunks/{BaseDropDown.vue_vue_type_script_setup_true_lang.BW53X5Mh.js → BaseDropDown.vue_vue_type_script_setup_true_lang.CVDnCMnS.js} +1 -1
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.nuPyOFsi.js +94 -0
- package/dist/chunks/{SwiperCarousel.BV6QiwmC.js → SwiperCarousel.DWUl3bgn.js} +132 -131
- package/dist/chunks/{index.C7BPB1tC.js → index.D6IWh9UY.js} +2 -2
- package/dist/chunks/{useKeyboardController.CXrrg8Zt.js → useKeyboardController.CutKeclN.js} +3 -6
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +14 -29
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +36 -42
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +18 -35
- package/dist/components/carousel/SwiperSlide.vue.d.ts +7 -2
- package/dist/composables/useFloatingLabel.d.ts +0 -1
- package/dist/composables/useValidator.d.ts +0 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +53 -57
- package/package.json +19 -21
- package/dist/BaseNavItem.js +0 -58
- package/dist/UIKit/BaseNavItem.vue.d.ts +0 -93
- package/dist/assets/BaseNavItem.css +0 -1
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.RbxW2M0Y.js +0 -85
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @wikicasa-dev/types
|
|
2
2
|
|
|
3
|
-
Libreria condivisa contenente componneti scritte in Vue 3.
|
|
3
|
+
Libreria condivisa contenente componneti scritte in Vue 3.
|
|
4
4
|
La chiave privata per la condivisione è già configurata su tutti i progetti Wikicasa, per l'installazione o l'aggiornamento della libreria basterà quindi eseguire
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
pnpm add @wikicasa-dev/components
|
|
7
7
|
|
|
8
8
|
## Sviluppo e rilascio
|
|
9
9
|
|
|
10
|
-
La libreria fa parte di un monorepo insieme a `@wikicasa-dev/utilities` e `@wikicasa-dev/types`.
|
|
10
|
+
La libreria fa parte di un monorepo insieme a `@wikicasa-dev/utilities` e `@wikicasa-dev/types`.
|
|
11
11
|
Il monorepo è gestito da **[pnpm](https://pnpm.io/it/)**. Il bundler in uso per questa libreria è **[Vite](https://pnpm.io/it/)**.
|
|
12
12
|
|
|
13
13
|
I file _index.html_ e _main.ts_ possono essere usati come playground per provare il funzionamento del codice. Per avviare il server di sviluppo basterà eseguire
|
|
@@ -26,21 +26,7 @@ Successivamente bisognerà incrementare la versione. pnpm ha un comando apposito
|
|
|
26
26
|
|
|
27
27
|
pnpm version <major|minor|patch>
|
|
28
28
|
|
|
29
|
-
Sta allo sviluppatore scegliere l'incremento di versione più opportuno.
|
|
29
|
+
Sta allo sviluppatore scegliere l'incremento di versione più opportuno.
|
|
30
30
|
Dopodiché occorrerà eseguire il commit e push delle modifiche (pnpm blocca il rilascio in caso di modifiche non committate) per poi procedere alla pubblicazione con
|
|
31
31
|
|
|
32
32
|
pnpm publish
|
|
33
|
-
|
|
34
|
-
## Storybook
|
|
35
|
-
|
|
36
|
-
La libreria è configurata con [Storybook](https://storybook.js.org/) per testare le componenti. Per lanciare Storybook in locale basterà eseguire
|
|
37
|
-
|
|
38
|
-
pnpm storybook
|
|
39
|
-
|
|
40
|
-
L'hot reload funziona anche per le componenti e le stories, occasionalmente sarà necessario aggiornare la pagina.
|
|
41
|
-
|
|
42
|
-
Storybook può essere rilasciato su Chromatic, occorre eseguire
|
|
43
|
-
|
|
44
|
-
pnpm chromatic
|
|
45
|
-
|
|
46
|
-
per generare un link pubblico a Storybook.
|
package/dist/AccessibleSelect.js
CHANGED
package/dist/BaseAutocomplete.js
CHANGED
package/dist/BaseDropDown.js
CHANGED
package/dist/BaseTabView.js
CHANGED
package/dist/SwiperCarousel.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { AccessibleSelectOptions } from './types';
|
|
2
|
-
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
lefticon?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {
|
|
7
|
+
btnEl: HTMLButtonElement;
|
|
8
|
+
};
|
|
9
|
+
attrs: Partial<{}>;
|
|
5
10
|
};
|
|
6
|
-
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
7
13
|
label?: string;
|
|
8
14
|
dropdownPosition?: "top" | "bottom";
|
|
9
15
|
namespace: string;
|
|
@@ -19,19 +25,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
19
25
|
*/
|
|
20
26
|
closeOnBodyPressed?: boolean;
|
|
21
27
|
border?: boolean;
|
|
22
|
-
}
|
|
23
|
-
modelValue: () =>
|
|
24
|
-
|
|
25
|
-
label: string;
|
|
26
|
-
};
|
|
27
|
-
label: string;
|
|
28
|
-
dropdownPosition: string;
|
|
29
|
-
isValid: null;
|
|
30
|
-
closeOnBodyPressed: boolean;
|
|
31
|
-
border: boolean;
|
|
32
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
-
"update:modelValue": (args_0: AccessibleSelectOptions) => void;
|
|
34
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
28
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
"update:modelValue": (args_0: AccessibleSelectOptions) => any;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
35
31
|
label?: string;
|
|
36
32
|
dropdownPosition?: "top" | "bottom";
|
|
37
33
|
namespace: string;
|
|
@@ -47,45 +43,18 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
47
43
|
*/
|
|
48
44
|
closeOnBodyPressed?: boolean;
|
|
49
45
|
border?: boolean;
|
|
50
|
-
}
|
|
51
|
-
modelValue: () => {
|
|
52
|
-
id: string;
|
|
53
|
-
label: string;
|
|
54
|
-
};
|
|
55
|
-
label: string;
|
|
56
|
-
dropdownPosition: string;
|
|
57
|
-
isValid: null;
|
|
58
|
-
closeOnBodyPressed: boolean;
|
|
59
|
-
border: boolean;
|
|
60
|
-
}>>> & Readonly<{
|
|
46
|
+
}> & Readonly<{
|
|
61
47
|
"onUpdate:modelValue"?: ((args_0: AccessibleSelectOptions) => any) | undefined;
|
|
62
48
|
}>, {
|
|
63
49
|
label: string;
|
|
64
|
-
border: boolean;
|
|
65
50
|
isValid: boolean | null;
|
|
66
51
|
modelValue: AccessibleSelectOptions;
|
|
67
52
|
dropdownPosition: "top" | "bottom";
|
|
68
53
|
closeOnBodyPressed: boolean;
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
border: boolean;
|
|
55
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
56
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
71
57
|
export default _default;
|
|
72
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
73
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
74
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
75
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
76
|
-
} : {
|
|
77
|
-
type: import('vue').PropType<T[K]>;
|
|
78
|
-
required: true;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
type __VLS_WithDefaults<P, D> = {
|
|
82
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
83
|
-
default: D[K];
|
|
84
|
-
}> : P[K];
|
|
85
|
-
};
|
|
86
|
-
type __VLS_Prettify<T> = {
|
|
87
|
-
[K in keyof T]: T[K];
|
|
88
|
-
} & {};
|
|
89
58
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
90
59
|
new (): {
|
|
91
60
|
$slots: S;
|
|
@@ -1,46 +1,29 @@
|
|
|
1
1
|
import { AccordionItem } from '@wikicasa-dev/types';
|
|
2
|
-
|
|
3
2
|
type AccordionItemDecorated<T> = Record<string | number, T & Partial<AccordionItem>>;
|
|
4
3
|
declare function __VLS_template(): {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {
|
|
6
|
+
updatePrev: <T>(a: AccordionItem, _accordionItems: AccordionItemDecorated<T>) => void;
|
|
7
|
+
prev: {
|
|
8
|
+
title?: string | undefined;
|
|
9
|
+
id: string | number;
|
|
10
|
+
active?: boolean | undefined;
|
|
11
|
+
} | null;
|
|
12
|
+
}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
attrs: Partial<{}>;
|
|
13
16
|
};
|
|
14
|
-
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
15
19
|
autoClose?: boolean;
|
|
16
|
-
}
|
|
17
|
-
autoClose: boolean;
|
|
18
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
19
21
|
autoClose?: boolean;
|
|
20
|
-
}>, {
|
|
21
|
-
autoClose: boolean;
|
|
22
|
-
}>>> & Readonly<{}>, {
|
|
22
|
+
}> & Readonly<{}>, {
|
|
23
23
|
autoClose: boolean;
|
|
24
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
26
|
export default _default;
|
|
27
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
29
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
-
} : {
|
|
32
|
-
type: import('vue').PropType<T[K]>;
|
|
33
|
-
required: true;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
type __VLS_WithDefaults<P, D> = {
|
|
37
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
38
|
-
default: D[K];
|
|
39
|
-
}> : P[K];
|
|
40
|
-
};
|
|
41
|
-
type __VLS_Prettify<T> = {
|
|
42
|
-
[K in keyof T]: T[K];
|
|
43
|
-
} & {};
|
|
44
27
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
28
|
new (): {
|
|
46
29
|
$slots: S;
|
|
@@ -1,59 +1,39 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
slots: {
|
|
3
|
+
custom_content?(_: {}): any;
|
|
4
|
+
custom_btn?(_: {
|
|
5
|
+
btnId: string;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
toggleAccordion: () => void;
|
|
8
|
+
}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
attrs: Partial<{}>;
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
10
15
|
id: string | number;
|
|
11
16
|
arrowWidth?: number;
|
|
12
17
|
onContainerClickExpand?: boolean;
|
|
13
18
|
accordionOpen?: boolean;
|
|
14
19
|
toggleAccordion: () => void;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
onContainerClickExpand: boolean;
|
|
19
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
-
click: () => void;
|
|
21
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
click: () => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
22
23
|
id: string | number;
|
|
23
24
|
arrowWidth?: number;
|
|
24
25
|
onContainerClickExpand?: boolean;
|
|
25
26
|
accordionOpen?: boolean;
|
|
26
27
|
toggleAccordion: () => void;
|
|
27
|
-
}
|
|
28
|
-
accordionOpen: boolean;
|
|
29
|
-
arrowWidth: number;
|
|
30
|
-
onContainerClickExpand: boolean;
|
|
31
|
-
}>>> & Readonly<{
|
|
28
|
+
}> & Readonly<{
|
|
32
29
|
onClick?: (() => any) | undefined;
|
|
33
30
|
}>, {
|
|
34
31
|
arrowWidth: number;
|
|
35
|
-
accordionOpen: boolean;
|
|
36
32
|
onContainerClickExpand: boolean;
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
accordionOpen: boolean;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
36
|
export default _default;
|
|
40
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
41
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
42
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
43
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
44
|
-
} : {
|
|
45
|
-
type: import('vue').PropType<T[K]>;
|
|
46
|
-
required: true;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
type __VLS_WithDefaults<P, D> = {
|
|
50
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
51
|
-
default: D[K];
|
|
52
|
-
}> : P[K];
|
|
53
|
-
};
|
|
54
|
-
type __VLS_Prettify<T> = {
|
|
55
|
-
[K in keyof T]: T[K];
|
|
56
|
-
} & {};
|
|
57
37
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
38
|
new (): {
|
|
59
39
|
$slots: S;
|
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
slots: {
|
|
3
|
+
custom_accordion_content?(_: {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
}): any;
|
|
6
|
+
default?(_: {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
attrs: Partial<{}>;
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
10
15
|
id: string | number;
|
|
11
16
|
accordionOpen: boolean;
|
|
12
|
-
}
|
|
17
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
13
18
|
id: string | number;
|
|
14
19
|
accordionOpen: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
20
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
22
|
export default _default;
|
|
18
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
-
} : {
|
|
23
|
-
type: import('vue').PropType<T[K]>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
24
|
new (): {
|
|
29
25
|
$slots: S;
|
|
@@ -1,44 +1,40 @@
|
|
|
1
1
|
import { AccordionItem } from '@wikicasa-dev/types';
|
|
2
|
-
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
custom_content?(_: {}): any;
|
|
5
|
+
custom_btn?(_: {
|
|
6
|
+
btnId: string;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
toggleAccordion: () => void;
|
|
9
|
+
}): any;
|
|
10
|
+
custom_accordion?(_: {
|
|
11
|
+
id: string | number;
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
toggleAccordion: () => void;
|
|
14
|
+
}): any;
|
|
15
|
+
custom_accordion_content?(_: {
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
}): any;
|
|
18
|
+
default?(_: {
|
|
19
|
+
isOpen: boolean;
|
|
20
|
+
}): any;
|
|
21
|
+
};
|
|
22
|
+
refs: {};
|
|
23
|
+
attrs: Partial<{}>;
|
|
21
24
|
};
|
|
22
|
-
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<AccordionItem & {
|
|
23
27
|
arrowWidth?: number;
|
|
24
28
|
onContainerClickExpand?: boolean;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
accordionOpened: (a: AccordionItem) => void;
|
|
32
|
-
accordionClosed: (a: AccordionItem) => void;
|
|
33
|
-
"update:accordionState": (args_0: boolean) => void;
|
|
34
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AccordionItem & {
|
|
29
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
click: () => any;
|
|
31
|
+
accordionOpened: (a: AccordionItem) => any;
|
|
32
|
+
accordionClosed: (a: AccordionItem) => any;
|
|
33
|
+
"update:accordionState": (args_0: boolean) => any;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<AccordionItem & {
|
|
35
35
|
arrowWidth?: number;
|
|
36
36
|
onContainerClickExpand?: boolean;
|
|
37
|
-
}
|
|
38
|
-
active: boolean;
|
|
39
|
-
arrowWidth: number;
|
|
40
|
-
onContainerClickExpand: boolean;
|
|
41
|
-
}>>> & Readonly<{
|
|
37
|
+
}> & Readonly<{
|
|
42
38
|
onClick?: (() => any) | undefined;
|
|
43
39
|
onAccordionOpened?: ((a: AccordionItem) => any) | undefined;
|
|
44
40
|
onAccordionClosed?: ((a: AccordionItem) => any) | undefined;
|
|
@@ -47,26 +43,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
47
43
|
active: boolean;
|
|
48
44
|
arrowWidth: number;
|
|
49
45
|
onContainerClickExpand: boolean;
|
|
50
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
51
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
52
48
|
export default _default;
|
|
53
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
55
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
56
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
57
|
-
} : {
|
|
58
|
-
type: import('vue').PropType<T[K]>;
|
|
59
|
-
required: true;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
type __VLS_WithDefaults<P, D> = {
|
|
63
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
64
|
-
default: D[K];
|
|
65
|
-
}> : P[K];
|
|
66
|
-
};
|
|
67
|
-
type __VLS_Prettify<T> = {
|
|
68
|
-
[K in keyof T]: T[K];
|
|
69
|
-
} & {};
|
|
70
49
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
71
50
|
new (): {
|
|
72
51
|
$slots: S;
|
|
@@ -1,41 +1,24 @@
|
|
|
1
1
|
import { TwPrefix } from 'lib/types';
|
|
2
|
-
|
|
3
2
|
type AlertClassPrefix = "alert-";
|
|
4
3
|
type AlertColors = "w-primary" | "w-danger";
|
|
5
4
|
type AlertClass = `${TwPrefix}${AlertClassPrefix}${AlertColors}` | "";
|
|
6
5
|
declare function __VLS_template(): {
|
|
7
|
-
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
attrs: Partial<{}>;
|
|
8
11
|
};
|
|
9
|
-
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
10
14
|
alertClass?: AlertClass;
|
|
11
|
-
}
|
|
12
|
-
alertClass: string;
|
|
13
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
14
16
|
alertClass?: AlertClass;
|
|
15
|
-
}>, {
|
|
16
|
-
alertClass: string;
|
|
17
|
-
}>>> & Readonly<{}>, {
|
|
17
|
+
}> & Readonly<{}>, {
|
|
18
18
|
alertClass: AlertClass;
|
|
19
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
20
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
21
|
export default _default;
|
|
22
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
-
} : {
|
|
27
|
-
type: import('vue').PropType<T[K]>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
type __VLS_WithDefaults<P, D> = {
|
|
32
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
-
default: D[K];
|
|
34
|
-
}> : P[K];
|
|
35
|
-
};
|
|
36
|
-
type __VLS_Prettify<T> = {
|
|
37
|
-
[K in keyof T]: T[K];
|
|
38
|
-
} & {};
|
|
39
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
23
|
new (): {
|
|
41
24
|
$slots: S;
|