@wikicasa-dev/components 1.2.10 → 1.2.12
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/UIKit/AccessibleSelect.vue.d.ts +73 -0
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +45 -0
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +59 -0
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +29 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +71 -0
- package/dist/UIKit/BaseAlert.vue.d.ts +41 -0
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +108 -0
- package/dist/UIKit/BaseBadge.vue.d.ts +36 -0
- package/dist/UIKit/BaseCard.vue.d.ts +41 -0
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +83 -0
- package/dist/UIKit/BaseDropDown.vue.d.ts +123 -0
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +44 -0
- package/dist/UIKit/BaseInput.vue.d.ts +143 -0
- package/dist/UIKit/BaseNavItem.vue.d.ts +43 -0
- package/dist/UIKit/BasePagination.vue.d.ts +65 -0
- package/dist/UIKit/BasePaper.vue.d.ts +2 -0
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +54 -0
- package/dist/UIKit/BaseSlider.vue.d.ts +42 -0
- package/dist/UIKit/BaseTab.vue.d.ts +60 -0
- package/dist/UIKit/BaseTextarea.vue.d.ts +82 -0
- package/dist/UIKit/BaseToggle.vue.d.ts +36 -0
- package/dist/UIKit/BaseTooltip.vue.d.ts +56 -0
- package/dist/UIKit/BaseUploadFile.vue.d.ts +37 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +92 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +78 -0
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +26 -0
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +37 -0
- package/dist/autoplay-l0sNRNKZ.js +1 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +24 -0
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +50 -0
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +69 -0
- package/dist/components.js +33 -135
- package/dist/components.umd.cjs +14 -1
- package/dist/controller-l0sNRNKZ.js +1 -0
- package/dist/free-mode-l0sNRNKZ.js +1 -0
- package/dist/index-BZnZUpib.js +4872 -0
- package/dist/index-BtxYTF3f.js +900 -0
- package/dist/index.d.ts +32 -1
- package/dist/navigation-l0sNRNKZ.js +1 -0
- package/dist/pagination-l0sNRNKZ.js +1 -0
- package/dist/stories/Button.stories.d.ts +6 -6
- package/dist/style.css +1 -1
- package/dist/thumbs-l0sNRNKZ.js +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
withRightLabel: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}, unknown, unknown, {}, {
|
|
15
|
+
handleToggle({ target }: Event): void;
|
|
16
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
withRightLabel: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}>> & {
|
|
30
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
label: string;
|
|
33
|
+
modelValue: boolean;
|
|
34
|
+
withRightLabel: boolean;
|
|
35
|
+
}, {}>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
theme: {
|
|
3
|
+
type: () => {
|
|
4
|
+
color: "blue" | "white";
|
|
5
|
+
size: "sm" | "md" | "lg";
|
|
6
|
+
};
|
|
7
|
+
default(): {
|
|
8
|
+
color: string;
|
|
9
|
+
size: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
direction: {
|
|
13
|
+
type: () => "top" | "bottom" | "left" | "right" | "top-center" | "bottom-center";
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
customTooltipClass: {
|
|
17
|
+
type: () => "mail-alert";
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
showTooltipContentManually: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
theme: {
|
|
26
|
+
type: () => {
|
|
27
|
+
color: "blue" | "white";
|
|
28
|
+
size: "sm" | "md" | "lg";
|
|
29
|
+
};
|
|
30
|
+
default(): {
|
|
31
|
+
color: string;
|
|
32
|
+
size: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
direction: {
|
|
36
|
+
type: () => "top" | "bottom" | "left" | "right" | "top-center" | "bottom-center";
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
customTooltipClass: {
|
|
40
|
+
type: () => "mail-alert";
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
showTooltipContentManually: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
}>>, {
|
|
48
|
+
direction: "top" | "bottom" | "left" | "right" | "top-center" | "bottom-center";
|
|
49
|
+
theme: {
|
|
50
|
+
color: "blue" | "white";
|
|
51
|
+
size: "sm" | "md" | "lg";
|
|
52
|
+
};
|
|
53
|
+
customTooltipClass: "mail-alert";
|
|
54
|
+
showTooltipContentManually: boolean;
|
|
55
|
+
}, {}>;
|
|
56
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
withMargin: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
labelText: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
clear: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}, unknown, any, {}, {
|
|
15
|
+
handleInput({ target }: InputEvent): void;
|
|
16
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cleared" | "uploaded")[], "cleared" | "uploaded", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
withMargin: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
labelText: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
clear: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}>> & {
|
|
30
|
+
onCleared?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
onUploaded?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
labelText: string;
|
|
34
|
+
clear: boolean;
|
|
35
|
+
withMargin: boolean;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Nullable } from "@wikicasa-dev/types";
|
|
2
|
+
type EventPayload = {
|
|
3
|
+
id: string | number;
|
|
4
|
+
label: string | number;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
id: string | number;
|
|
9
|
+
inputClass?: string | undefined;
|
|
10
|
+
inline?: boolean | undefined;
|
|
11
|
+
label?: string | number | undefined;
|
|
12
|
+
labelClass?: string | undefined;
|
|
13
|
+
isValid?: Nullable<boolean> | undefined;
|
|
14
|
+
modelValue?: boolean | undefined;
|
|
15
|
+
containerId?: string | undefined;
|
|
16
|
+
containerClass?: string | undefined;
|
|
17
|
+
handleLabelClick?: boolean | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
inputClass: string;
|
|
20
|
+
inline: boolean;
|
|
21
|
+
label: string;
|
|
22
|
+
labelClass: string;
|
|
23
|
+
isValid: null;
|
|
24
|
+
modelValue: boolean;
|
|
25
|
+
containerId: string;
|
|
26
|
+
containerClass: string;
|
|
27
|
+
handleLabelClick: boolean;
|
|
28
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
change: (args_0: EventPayload) => void;
|
|
30
|
+
click: () => void;
|
|
31
|
+
"update:modelValue": (args_0: boolean) => void;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
33
|
+
id: string | number;
|
|
34
|
+
inputClass?: string | undefined;
|
|
35
|
+
inline?: boolean | undefined;
|
|
36
|
+
label?: string | number | undefined;
|
|
37
|
+
labelClass?: string | undefined;
|
|
38
|
+
isValid?: Nullable<boolean> | undefined;
|
|
39
|
+
modelValue?: boolean | undefined;
|
|
40
|
+
containerId?: string | undefined;
|
|
41
|
+
containerClass?: string | undefined;
|
|
42
|
+
handleLabelClick?: boolean | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
inputClass: string;
|
|
45
|
+
inline: boolean;
|
|
46
|
+
label: string;
|
|
47
|
+
labelClass: string;
|
|
48
|
+
isValid: null;
|
|
49
|
+
modelValue: boolean;
|
|
50
|
+
containerId: string;
|
|
51
|
+
containerClass: string;
|
|
52
|
+
handleLabelClick: boolean;
|
|
53
|
+
}>>> & {
|
|
54
|
+
onChange?: ((args_0: EventPayload) => any) | undefined;
|
|
55
|
+
onClick?: (() => any) | undefined;
|
|
56
|
+
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
label: string | number;
|
|
59
|
+
modelValue: boolean;
|
|
60
|
+
isValid: Nullable<boolean>;
|
|
61
|
+
inputClass: string;
|
|
62
|
+
inline: boolean;
|
|
63
|
+
labelClass: string;
|
|
64
|
+
containerId: string;
|
|
65
|
+
containerClass: string;
|
|
66
|
+
handleLabelClick: boolean;
|
|
67
|
+
}, {}>, {
|
|
68
|
+
label?(_: {}): any;
|
|
69
|
+
}>;
|
|
70
|
+
export default _default;
|
|
71
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
72
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
73
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
74
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
75
|
+
} : {
|
|
76
|
+
type: import('vue').PropType<T[K]>;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
type __VLS_WithDefaults<P, D> = {
|
|
81
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
82
|
+
default: D[K];
|
|
83
|
+
}> : P[K];
|
|
84
|
+
};
|
|
85
|
+
type __VLS_Prettify<T> = {
|
|
86
|
+
[K in keyof T]: T[K];
|
|
87
|
+
} & {};
|
|
88
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
89
|
+
new (): {
|
|
90
|
+
$slots: S;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { CheckboxButtonType, GetterIdType } from "@wikicasa-dev/types";
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
valuesObj?: Record<string, CheckboxButtonType> | undefined;
|
|
4
|
+
formCheckInline?: boolean | undefined;
|
|
5
|
+
customClass?: string | undefined;
|
|
6
|
+
reset?: boolean | undefined;
|
|
7
|
+
autoCheckResetAll?: boolean | undefined;
|
|
8
|
+
autoCheckResetEmpty?: boolean | undefined;
|
|
9
|
+
getKey?: GetterIdType | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
valuesObj(): {};
|
|
12
|
+
formCheckInline: boolean;
|
|
13
|
+
customClass: string;
|
|
14
|
+
reset: boolean;
|
|
15
|
+
autoCheckResetAll: boolean;
|
|
16
|
+
autoCheckResetEmpty: boolean;
|
|
17
|
+
getKey(): (checkBtn: CheckboxButtonType) => string | number;
|
|
18
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (args_0: CheckboxButtonType[]) => void;
|
|
20
|
+
resetted: () => void;
|
|
21
|
+
checkedGroup: (args_0: string) => void;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
23
|
+
valuesObj?: Record<string, CheckboxButtonType> | undefined;
|
|
24
|
+
formCheckInline?: boolean | undefined;
|
|
25
|
+
customClass?: string | undefined;
|
|
26
|
+
reset?: boolean | undefined;
|
|
27
|
+
autoCheckResetAll?: boolean | undefined;
|
|
28
|
+
autoCheckResetEmpty?: boolean | undefined;
|
|
29
|
+
getKey?: GetterIdType | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
valuesObj(): {};
|
|
32
|
+
formCheckInline: boolean;
|
|
33
|
+
customClass: string;
|
|
34
|
+
reset: boolean;
|
|
35
|
+
autoCheckResetAll: boolean;
|
|
36
|
+
autoCheckResetEmpty: boolean;
|
|
37
|
+
getKey(): (checkBtn: CheckboxButtonType) => string | number;
|
|
38
|
+
}>>> & {
|
|
39
|
+
"onUpdate:modelValue"?: ((args_0: CheckboxButtonType[]) => any) | undefined;
|
|
40
|
+
onResetted?: (() => any) | undefined;
|
|
41
|
+
onCheckedGroup?: ((args_0: string) => any) | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
reset: boolean;
|
|
44
|
+
valuesObj: Record<string, CheckboxButtonType>;
|
|
45
|
+
formCheckInline: boolean;
|
|
46
|
+
customClass: string;
|
|
47
|
+
autoCheckResetAll: boolean;
|
|
48
|
+
autoCheckResetEmpty: boolean;
|
|
49
|
+
getKey: GetterIdType;
|
|
50
|
+
}, {}>, {
|
|
51
|
+
checkboxElement?(_: {
|
|
52
|
+
isActive: (elem: CheckboxButtonType) => boolean;
|
|
53
|
+
handleChange: (checkboxValue: CheckboxButtonType) => void;
|
|
54
|
+
}): any;
|
|
55
|
+
}>;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
58
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
59
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
60
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
61
|
+
} : {
|
|
62
|
+
type: import('vue').PropType<T[K]>;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type __VLS_WithDefaults<P, D> = {
|
|
67
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
68
|
+
default: D[K];
|
|
69
|
+
}> : P[K];
|
|
70
|
+
};
|
|
71
|
+
type __VLS_Prettify<T> = {
|
|
72
|
+
[K in keyof T]: T[K];
|
|
73
|
+
} & {};
|
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
label: {
|
|
3
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
isChecked: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
};
|
|
9
|
+
}, unknown, unknown, {}, {
|
|
10
|
+
emitChange(): void;
|
|
11
|
+
handleClick(): void;
|
|
12
|
+
handleOnInput(): void;
|
|
13
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
label: {
|
|
15
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
isChecked: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
};
|
|
21
|
+
}>> & {
|
|
22
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
isChecked: boolean;
|
|
25
|
+
}, {}>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { RadioButtonType } from "@wikicasa-dev/types";
|
|
2
|
+
import { Nullable } from "@wikicasa-dev/types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
initialValue: {
|
|
5
|
+
type: () => RadioButtonType;
|
|
6
|
+
};
|
|
7
|
+
radioValues: {
|
|
8
|
+
type: () => RadioButtonType[];
|
|
9
|
+
};
|
|
10
|
+
resetRadio: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}, unknown, {
|
|
15
|
+
selectedValue: Nullable<RadioButtonType>;
|
|
16
|
+
}, {}, {
|
|
17
|
+
handleChange(elem: RadioButtonType): void;
|
|
18
|
+
reset(): void;
|
|
19
|
+
isActive(elem: RadioButtonType): boolean;
|
|
20
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "resetted")[], "update:modelValue" | "resetted", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
initialValue: {
|
|
22
|
+
type: () => RadioButtonType;
|
|
23
|
+
};
|
|
24
|
+
radioValues: {
|
|
25
|
+
type: () => RadioButtonType[];
|
|
26
|
+
};
|
|
27
|
+
resetRadio: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
}>> & {
|
|
32
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
onResetted?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
resetRadio: boolean;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
observer: IntersectionObserver;
|
|
3
|
+
isVisible: boolean;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
observer: IntersectionObserver;
|
|
6
|
+
isVisible: boolean;
|
|
7
|
+
}>>>, {}, {}>, {
|
|
8
|
+
observable?(_: {}): any;
|
|
9
|
+
}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
interface IntersectionObserverProps {
|
|
2
|
+
observeOnce?: boolean;
|
|
3
|
+
skip?: boolean;
|
|
4
|
+
threshold?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IntersectionObserverProps>, {
|
|
7
|
+
observeOnce: boolean;
|
|
8
|
+
skip: boolean;
|
|
9
|
+
threshold: number;
|
|
10
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
intersection: () => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IntersectionObserverProps>, {
|
|
13
|
+
observeOnce: boolean;
|
|
14
|
+
skip: boolean;
|
|
15
|
+
threshold: number;
|
|
16
|
+
}>>> & {
|
|
17
|
+
onIntersection?: (() => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
observeOnce: boolean;
|
|
20
|
+
skip: boolean;
|
|
21
|
+
threshold: number;
|
|
22
|
+
}, {}>, {
|
|
23
|
+
observer?(_: {
|
|
24
|
+
observer: any;
|
|
25
|
+
isVisible: true;
|
|
26
|
+
}): any;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: import('vue').PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
type __VLS_WithDefaults<P, D> = {
|
|
39
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
40
|
+
default: D[K];
|
|
41
|
+
}> : P[K];
|
|
42
|
+
};
|
|
43
|
+
type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Image } from "@wikicasa-dev/types";
|
|
2
|
+
import type { SwiperOptions } from "swiper/types/swiper-options";
|
|
3
|
+
import "swiper/css/bundle";
|
|
4
|
+
import "swiper/css/zoom";
|
|
5
|
+
interface SwiperCarouselProps {
|
|
6
|
+
id: string;
|
|
7
|
+
swiperOptions: SwiperOptions;
|
|
8
|
+
thumbSwiperOptions?: SwiperOptions;
|
|
9
|
+
lazyLoadImages?: boolean;
|
|
10
|
+
backgroundImage?: boolean;
|
|
11
|
+
images?: Image[];
|
|
12
|
+
artDirection?: Record<string, {
|
|
13
|
+
mq: string;
|
|
14
|
+
width: string;
|
|
15
|
+
}>;
|
|
16
|
+
shiftFirstImage?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwiperCarouselProps>, {
|
|
19
|
+
lazyLoadImages: boolean;
|
|
20
|
+
backgroundImage: boolean;
|
|
21
|
+
shiftFirstImage: boolean;
|
|
22
|
+
}>, {
|
|
23
|
+
moveTo(index: number, speed?: number, runCallbacks?: boolean): void;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
click: () => void;
|
|
26
|
+
moved: (args_0: {
|
|
27
|
+
activeIndex: number;
|
|
28
|
+
}) => void;
|
|
29
|
+
firstSlideLoaded: () => void;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwiperCarouselProps>, {
|
|
31
|
+
lazyLoadImages: boolean;
|
|
32
|
+
backgroundImage: boolean;
|
|
33
|
+
shiftFirstImage: boolean;
|
|
34
|
+
}>>> & {
|
|
35
|
+
onClick?: (() => any) | undefined;
|
|
36
|
+
onMoved?: ((args_0: {
|
|
37
|
+
activeIndex: number;
|
|
38
|
+
}) => any) | undefined;
|
|
39
|
+
onFirstSlideLoaded?: (() => any) | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
backgroundImage: boolean;
|
|
42
|
+
lazyLoadImages: boolean;
|
|
43
|
+
shiftFirstImage: boolean;
|
|
44
|
+
}, {}>, {
|
|
45
|
+
swiper_slide?(_: {}): any;
|
|
46
|
+
}>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
50
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
+
} : {
|
|
53
|
+
type: import('vue').PropType<T[K]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type __VLS_WithDefaults<P, D> = {
|
|
58
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
59
|
+
default: D[K];
|
|
60
|
+
}> : P[K];
|
|
61
|
+
};
|
|
62
|
+
type __VLS_Prettify<T> = {
|
|
63
|
+
[K in keyof T]: T[K];
|
|
64
|
+
} & {};
|
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
package/dist/components.js
CHANGED
|
@@ -1,137 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const C = d({
|
|
3
|
-
name: "BaseIcon",
|
|
4
|
-
props: {
|
|
5
|
-
lazyLoading: { type: Boolean, default: !1 },
|
|
6
|
-
altAttribute: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: ""
|
|
9
|
-
},
|
|
10
|
-
iconName: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: ""
|
|
13
|
-
},
|
|
14
|
-
iconType: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "icon-md"
|
|
17
|
-
},
|
|
18
|
-
iconClass: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "uikit-mr-5px"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}), g = (t, i) => {
|
|
24
|
-
const a = t.__vccOpts || t;
|
|
25
|
-
for (const [o, r] of i)
|
|
26
|
-
a[o] = r;
|
|
27
|
-
return a;
|
|
28
|
-
}, w = ["id", "alt", "src", "width", "height", "loading"];
|
|
29
|
-
function S(t, i, a, o, r, p) {
|
|
30
|
-
return l(), u("img", {
|
|
31
|
-
id: t.$attrs.id,
|
|
32
|
-
class: c(["uikit-inline-block", t.iconType, t.iconClass]),
|
|
33
|
-
alt: t.altAttribute || t.$attrs.alt,
|
|
34
|
-
style: v(t.$attrs.style),
|
|
35
|
-
src: t.$attrs.src ? t.$attrs.src : "",
|
|
36
|
-
width: t.$attrs.width,
|
|
37
|
-
height: t.$attrs.height,
|
|
38
|
-
loading: t.lazyLoading ? "lazy" : "eager"
|
|
39
|
-
}, null, 14, w);
|
|
40
|
-
}
|
|
41
|
-
const z = /* @__PURE__ */ g(C, [["render", S], ["__scopeId", "data-v-e98a91a0"]]), L = {
|
|
42
|
-
viewBox: "0 0 128 128",
|
|
43
|
-
class: "icon-spin uikit-h-6 uikit-w-6"
|
|
44
|
-
}, I = ["stroke-width"], M = /* @__PURE__ */ d({
|
|
45
|
-
__name: "StaticSpinner",
|
|
46
|
-
props: {
|
|
47
|
-
thickness: { default: 9 },
|
|
48
|
-
color: { default: "uikit-stroke-white" }
|
|
49
|
-
},
|
|
50
|
-
setup(t) {
|
|
51
|
-
return (i, a) => (l(), u("div", {
|
|
52
|
-
class: c(["uikit-m-auto uikit-flex uikit-items-center uikit-justify-center", i.color])
|
|
53
|
-
}, [
|
|
54
|
-
(l(), u("svg", L, [
|
|
55
|
-
$("circle", {
|
|
56
|
-
class: "path",
|
|
57
|
-
cx: "64",
|
|
58
|
-
cy: "64",
|
|
59
|
-
r: "42",
|
|
60
|
-
fill: "none",
|
|
61
|
-
"stroke-width": i.thickness
|
|
62
|
-
}, null, 8, I)
|
|
63
|
-
]))
|
|
64
|
-
], 2));
|
|
65
|
-
}
|
|
66
|
-
}), A = /* @__PURE__ */ g(M, [["__scopeId", "data-v-343b59c1"]]), E = ["id", "data-cy", "type", "data-active", "disabled", "aria-labelledby"], V = /* @__PURE__ */ d({
|
|
67
|
-
__name: "BaseButton",
|
|
68
|
-
props: {
|
|
69
|
-
lazyLoadIcon: { type: Boolean, default: !0 },
|
|
70
|
-
btnClass: { default: "" },
|
|
71
|
-
iconName: { default: "" },
|
|
72
|
-
iconNameHovering: { default: "" },
|
|
73
|
-
iconClass: { default: "uikit-mr-[5px]" },
|
|
74
|
-
isEmpty: { type: Boolean, default: !1 },
|
|
75
|
-
keepActive: { type: Boolean, default: !1 },
|
|
76
|
-
isLoading: { type: Boolean, default: !1 },
|
|
77
|
-
disabled: { type: Boolean, default: !1 }
|
|
78
|
-
},
|
|
79
|
-
emits: ["mouseover", "mouseout", "click"],
|
|
80
|
-
setup(t) {
|
|
81
|
-
const i = t, a = f(!1), o = f("");
|
|
82
|
-
h(() => {
|
|
83
|
-
o.value = i.iconName ?? "";
|
|
84
|
-
});
|
|
85
|
-
const r = () => {
|
|
86
|
-
a.value = !0, i.iconNameHovering && m(i.iconNameHovering);
|
|
87
|
-
}, p = () => {
|
|
88
|
-
a.value = !1, i.iconNameHovering && m(i.iconName);
|
|
89
|
-
}, m = (e) => {
|
|
90
|
-
o.value = e;
|
|
91
|
-
};
|
|
92
|
-
return (e, s) => (l(), u("button", {
|
|
93
|
-
id: e.$attrs.id,
|
|
94
|
-
"data-cy": e.$attrs["data-cy"],
|
|
95
|
-
type: e.$attrs.type,
|
|
96
|
-
class: c([
|
|
97
|
-
{
|
|
98
|
-
"uikit-btn": !e.isEmpty,
|
|
99
|
-
"uikit-btn-empty": e.isEmpty,
|
|
100
|
-
"active uikit-font-medium": e.keepActive,
|
|
101
|
-
"uikit-flex uikit-items-center uikit-justify-center": e.iconName || e.isLoading
|
|
102
|
-
},
|
|
103
|
-
e.btnClass
|
|
104
|
-
]),
|
|
105
|
-
style: v(e.$attrs.style),
|
|
106
|
-
"data-active": e.keepActive,
|
|
107
|
-
disabled: e.isLoading || e.disabled,
|
|
108
|
-
"aria-labelledby": e.$attrs.id,
|
|
109
|
-
onMouseover: s[0] || (s[0] = y((n) => {
|
|
110
|
-
r(), e.$emit("mouseover", n);
|
|
111
|
-
}, ["stop"])),
|
|
112
|
-
onMouseout: s[1] || (s[1] = y((n) => {
|
|
113
|
-
p(), e.$emit("mouseout", n);
|
|
114
|
-
}, ["stop"])),
|
|
115
|
-
onClick: s[2] || (s[2] = (n) => e.$emit("click", n))
|
|
116
|
-
}, [
|
|
117
|
-
e.iconName && !e.isLoading ? (l(), b(z, {
|
|
118
|
-
key: e.$attrs.id ? e.$attrs.id : `btn-${e.iconName}`,
|
|
119
|
-
"icon-name": o.value,
|
|
120
|
-
"icon-class": e.iconClass,
|
|
121
|
-
"alt-attribute": "button icon",
|
|
122
|
-
"lazy-loading": e.lazyLoadIcon
|
|
123
|
-
}, null, 8, ["icon-name", "icon-class", "lazy-loading"])) : B("", !0),
|
|
124
|
-
e.isLoading ? k(e.$slots, "spinner", { key: 2 }, () => [
|
|
125
|
-
N(A, {
|
|
126
|
-
color: e.btnClass.includes("uikit-btn-light") ? "uikit-stroke-black" : "uikit-stroke-white"
|
|
127
|
-
}, null, 8, ["color"])
|
|
128
|
-
]) : k(e.$slots, "default", {
|
|
129
|
-
key: 1,
|
|
130
|
-
hover: a.value
|
|
131
|
-
})
|
|
132
|
-
], 46, E));
|
|
133
|
-
}
|
|
134
|
-
});
|
|
1
|
+
import { u as e, _ as o, l as B, o as t, p as r, B as n, r as c, s as l, t as i, y as p, v as d, w as b, x as u, z as A, A as I, C as g, D as C, E as m, F as x, G as T, H as v, I as S, J as w, K as D, L as F, M as G, P as O, Q as P, R, N as h, q as k, O as L } from "./index-BZnZUpib.js";
|
|
135
2
|
export {
|
|
136
|
-
|
|
3
|
+
e as AccessibleSelect,
|
|
4
|
+
o as BaseAccordion,
|
|
5
|
+
B as BaseAccordionBtn,
|
|
6
|
+
t as BaseAccordionContent,
|
|
7
|
+
r as BaseAccordionItem,
|
|
8
|
+
n as BaseAlert,
|
|
9
|
+
c as BaseAutocomplete,
|
|
10
|
+
l as BaseBadge,
|
|
11
|
+
i as BaseButton,
|
|
12
|
+
p as BaseCard,
|
|
13
|
+
d as BaseComplexToggle,
|
|
14
|
+
b as BaseDropDown,
|
|
15
|
+
u as BaseFloatingLabel,
|
|
16
|
+
A as BaseIcon,
|
|
17
|
+
I as BaseInput,
|
|
18
|
+
g as BaseNavItem,
|
|
19
|
+
C as BasePagination,
|
|
20
|
+
m as BasePaper,
|
|
21
|
+
x as BaseSlider,
|
|
22
|
+
T as BaseTab,
|
|
23
|
+
v as BaseTextarea,
|
|
24
|
+
S as BaseToggle,
|
|
25
|
+
w as BaseTooltip,
|
|
26
|
+
D as BaseUploadFile,
|
|
27
|
+
F as CheckboxBtn,
|
|
28
|
+
G as CheckboxGroup,
|
|
29
|
+
O as IntersectionObservable,
|
|
30
|
+
P as IntersectionObserver,
|
|
31
|
+
R as RadioButton,
|
|
32
|
+
h as RadioGroup,
|
|
33
|
+
k as SelectItem,
|
|
34
|
+
L as SwiperCarousel
|
|
137
35
|
};
|