@wikicasa-dev/components 1.9.31 → 1.9.33
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/CheckboxBtn.js +10 -10
- 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/BaseNavItem.vue.d.ts +1 -1
- 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/BaseNavItem.css +1 -1
- package/dist/assets/BaseTextarea.css +1 -1
- package/dist/assets/CheckboxBtn.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/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 +17 -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 +0 -1
- package/package.json +14 -15
package/dist/CheckboxBtn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, mergeModels as s, useId as g, useAttrs as C, useModel as y, openBlock as d, createElementBlock as u, normalizeClass as a, withModifiers as
|
|
1
|
+
import { defineComponent as m, mergeModels as s, useId as g, useAttrs as C, useModel as y, openBlock as d, createElementBlock as u, normalizeClass as a, withModifiers as r, createElementVNode as k, unref as c, renderSlot as v, toDisplayString as V, createCommentVNode as w } from "vue";
|
|
2
2
|
import { _ as $ } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
3
|
import './assets/CheckboxBtn.css';const B = ["id"], I = ["id", "data-cy", "checked", "disabled"], M = ["for"], q = /* @__PURE__ */ m({
|
|
4
4
|
__name: "CheckboxBtn",
|
|
@@ -11,22 +11,22 @@ import './assets/CheckboxBtn.css';const B = ["id"], I = ["id", "data-cy", "check
|
|
|
11
11
|
isValid: { default: null },
|
|
12
12
|
containerId: {},
|
|
13
13
|
containerClass: {},
|
|
14
|
-
handleLabelClick: { type: Boolean }
|
|
14
|
+
handleLabelClick: { type: Boolean, default: !0 }
|
|
15
15
|
}, {
|
|
16
16
|
modelValue: { type: Boolean, default: !1 },
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: /* @__PURE__ */ s(["click", "change"], ["update:modelValue"]),
|
|
20
20
|
setup(i, { emit: p }) {
|
|
21
|
-
const l = g(),
|
|
22
|
-
const e =
|
|
23
|
-
|
|
21
|
+
const l = g(), f = C(), n = y(i, "modelValue"), o = p, b = () => {
|
|
22
|
+
const e = f.checked ?? n.value;
|
|
23
|
+
o("change", {
|
|
24
24
|
id: i.id ?? l,
|
|
25
25
|
label: i.label,
|
|
26
26
|
checked: !e
|
|
27
27
|
}), n.value = !e;
|
|
28
28
|
}, h = () => {
|
|
29
|
-
|
|
29
|
+
b(), i.handleLabelClick && o("click");
|
|
30
30
|
};
|
|
31
31
|
return (e, t) => (d(), u("div", {
|
|
32
32
|
id: e.containerId,
|
|
@@ -36,7 +36,7 @@ import './assets/CheckboxBtn.css';const B = ["id"], I = ["id", "data-cy", "check
|
|
|
36
36
|
e.$attrs["wrapper-margin-y"],
|
|
37
37
|
e.containerClass
|
|
38
38
|
]]),
|
|
39
|
-
onClick:
|
|
39
|
+
onClick: r(h, ["stop"])
|
|
40
40
|
}, [
|
|
41
41
|
k("input", {
|
|
42
42
|
id: `${e.id ?? c(l)}`,
|
|
@@ -50,9 +50,9 @@ import './assets/CheckboxBtn.css';const B = ["id"], I = ["id", "data-cy", "check
|
|
|
50
50
|
type: "checkbox",
|
|
51
51
|
checked: e.$attrs.checked ?? n.value,
|
|
52
52
|
disabled: e.$attrs.disabled,
|
|
53
|
-
onChange: t[0] || (t[0] =
|
|
53
|
+
onChange: t[0] || (t[0] = r(() => {
|
|
54
54
|
}, ["prevent", "stop"])),
|
|
55
|
-
onClick: t[1] || (t[1] =
|
|
55
|
+
onClick: t[1] || (t[1] = r(() => {
|
|
56
56
|
}, ["prevent", "stop"]))
|
|
57
57
|
}, null, 42, I),
|
|
58
58
|
v(e.$slots, "label", {}, () => [
|
|
@@ -69,7 +69,7 @@ import './assets/CheckboxBtn.css';const B = ["id"], I = ["id", "data-cy", "check
|
|
|
69
69
|
], !0)
|
|
70
70
|
], 10, B));
|
|
71
71
|
}
|
|
72
|
-
}), N = /* @__PURE__ */ $(q, [["__scopeId", "data-v-
|
|
72
|
+
}), N = /* @__PURE__ */ $(q, [["__scopeId", "data-v-c8d2c078"]]);
|
|
73
73
|
export {
|
|
74
74
|
N as default
|
|
75
75
|
};
|
|
@@ -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;
|