cleek 2.8.7 → 2.8.9
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/main.cjs.js +3101 -0
- package/dist/main.css +1 -0
- package/dist/main.es.js +93574 -0
- package/dist/types/components/ck-button.vue.d.ts +66 -0
- package/dist/types/components/ck-card.vue.d.ts +42 -0
- package/dist/types/components/ck-checkbox.vue.d.ts +40 -0
- package/dist/types/components/ck-chip.vue.d.ts +44 -0
- package/dist/types/components/ck-circle.vue.d.ts +40 -0
- package/dist/types/components/ck-div.vue.d.ts +34 -0
- package/dist/types/components/ck-dropdown/ck-dropdown.vue.d.ts +31 -0
- package/dist/types/components/ck-icon.vue.d.ts +37 -0
- package/dist/types/components/ck-img.vue.d.ts +47 -0
- package/dist/types/components/ck-input/ck-input-date.vue.d.ts +41 -0
- package/dist/types/components/ck-input/ck-input-time.vue.d.ts +32 -0
- package/dist/types/components/ck-input.vue.d.ts +96 -0
- package/dist/types/components/ck-label.vue.d.ts +30 -0
- package/dist/types/components/ck-navbar/ck-navbar.vue.d.ts +30 -0
- package/dist/types/components/ck-notify/ck-notify.d.ts +27 -0
- package/dist/types/components/ck-notify/components/CkAlert.vue.d.ts +6 -0
- package/dist/types/components/ck-notify/components/CkConfirm.vue.d.ts +9 -0
- package/dist/types/components/ck-notify/components/CkNotify.vue.d.ts +10 -0
- package/dist/types/components/ck-popup.vue.d.ts +78 -0
- package/dist/types/components/ck-radio.vue.d.ts +39 -0
- package/dist/types/components/ck-select.vue.d.ts +95 -0
- package/dist/types/components/ck-sidebar.vue.d.ts +47 -0
- package/dist/types/components/ck-switch-options.vue.d.ts +42 -0
- package/dist/types/components/ck-switch.vue.d.ts +47 -0
- package/dist/types/components/ck-table/ck-pagination/ck-pagination.vue.d.ts +25 -0
- package/dist/types/components/ck-table/ck-table.vue.d.ts +99 -0
- package/dist/types/components/ck-table/ck-td.vue.d.ts +47 -0
- package/dist/types/components/ck-table/ck-th.vue.d.ts +32 -0
- package/dist/types/components/ck-table/ck-tr.vue.d.ts +11 -0
- package/dist/types/components/ck-table/inner-components/ck-table__columns-manager.vue.d.ts +25 -0
- package/dist/types/components/ck-table/inner-components/ck-table__header-items.vue.d.ts +51 -0
- package/dist/types/components/ck-table/inner-components/ck-table__pagination.vue.d.ts +31 -0
- package/dist/types/components/ck-table/inner-components/ck-table__title.vue.d.ts +22 -0
- package/dist/types/components/ck-textarea.vue.d.ts +65 -0
- package/dist/types/components/index.d.ts +39 -0
- package/dist/types/components/showers/ck-datetime-shower.vue.d.ts +29 -0
- package/dist/types/components/showers/ck-time-shower.vue.d.ts +18 -0
- package/dist/types/default-cleek-options.d.ts +4 -0
- package/dist/types/hooks/rainbow.d.ts +4 -0
- package/dist/types/hooks/windowWidth.d.ts +3 -0
- package/dist/types/main.d.ts +5 -0
- package/dist/types/package-config.d.ts +3 -0
- package/dist/types/types/cleek-options.d.ts +62 -0
- package/dist/types/types/table.d.ts +19 -0
- package/dist/types/utils/events.d.ts +7 -0
- package/dist/types/utils/global-hooks.d.ts +15 -0
- package/dist/types/utils/globalVariables.d.ts +6 -0
- package/dist/types/utils/mitt.d.ts +2 -0
- package/dist/types/utils/scrollLock.d.ts +3 -0
- package/dist/types/utils/windowWidth.d.ts +11 -0
- package/package.json +37 -37
- package/dist/cleek.es.js +0 -60443
- package/dist/cleek.umd.js +0 -1554
- package/dist/style.css +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
4
|
+
title: Ref<string>;
|
|
5
|
+
text: Ref<string>;
|
|
6
|
+
color: Ref<string>;
|
|
7
|
+
duration: Ref<number>;
|
|
8
|
+
closeCallback: Ref<() => void>;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Align, Color, Layout, ButtonType } from '../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
header?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
footer?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
modelValue: boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
confirmButtons?: boolean;
|
|
12
|
+
acceptButton?: boolean;
|
|
13
|
+
acceptBtnText?: string;
|
|
14
|
+
acceptBtnType?: ButtonType;
|
|
15
|
+
cancelButton?: boolean;
|
|
16
|
+
cancelBtnText?: string;
|
|
17
|
+
cancelBtnType?: ButtonType;
|
|
18
|
+
notCloseBtn?: boolean;
|
|
19
|
+
notCloseByBg?: boolean;
|
|
20
|
+
notClose?: boolean;
|
|
21
|
+
preventCloseOnCancel?: boolean;
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
width?: number;
|
|
24
|
+
maxWidth?: number;
|
|
25
|
+
layout?: Layout;
|
|
26
|
+
textColor?: Color;
|
|
27
|
+
headerColor?: Color;
|
|
28
|
+
headerAlign?: Align;
|
|
29
|
+
backgroundColor?: Color;
|
|
30
|
+
fontSize?: string;
|
|
31
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
"update:modelValue": (value: boolean) => void;
|
|
33
|
+
cancel: () => void;
|
|
34
|
+
accept: () => void;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
36
|
+
modelValue: boolean;
|
|
37
|
+
title?: string;
|
|
38
|
+
confirmButtons?: boolean;
|
|
39
|
+
acceptButton?: boolean;
|
|
40
|
+
acceptBtnText?: string;
|
|
41
|
+
acceptBtnType?: ButtonType;
|
|
42
|
+
cancelButton?: boolean;
|
|
43
|
+
cancelBtnText?: string;
|
|
44
|
+
cancelBtnType?: ButtonType;
|
|
45
|
+
notCloseBtn?: boolean;
|
|
46
|
+
notCloseByBg?: boolean;
|
|
47
|
+
notClose?: boolean;
|
|
48
|
+
preventCloseOnCancel?: boolean;
|
|
49
|
+
isLoading?: boolean;
|
|
50
|
+
width?: number;
|
|
51
|
+
maxWidth?: number;
|
|
52
|
+
layout?: Layout;
|
|
53
|
+
textColor?: Color;
|
|
54
|
+
headerColor?: Color;
|
|
55
|
+
headerAlign?: Align;
|
|
56
|
+
backgroundColor?: Color;
|
|
57
|
+
fontSize?: string;
|
|
58
|
+
}>>> & {
|
|
59
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
60
|
+
onAccept?: () => any;
|
|
61
|
+
onCancel?: () => any;
|
|
62
|
+
}, {}, {}>;
|
|
63
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
64
|
+
export default _default;
|
|
65
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
66
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
67
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
68
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
69
|
+
} : {
|
|
70
|
+
type: import('vue').PropType<T[K]>;
|
|
71
|
+
required: true;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
type Option = {
|
|
2
|
+
value: any;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
modelValue: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
vertical?: boolean;
|
|
9
|
+
classes?: string;
|
|
10
|
+
options?: Option[];
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
value?: any;
|
|
13
|
+
label?: any;
|
|
14
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: string) => void;
|
|
16
|
+
change: (event: Event) => void;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
+
modelValue: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
vertical?: boolean;
|
|
21
|
+
classes?: string;
|
|
22
|
+
options?: Option[];
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
value?: any;
|
|
25
|
+
label?: any;
|
|
26
|
+
}>>> & {
|
|
27
|
+
onChange?: (event: Event) => any;
|
|
28
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
29
|
+
}, {}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Align, AlignVertical, Color, Icon, IconPack, Layout, WidthBreaks } from '../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
type SelectOption = any;
|
|
4
|
+
declare function setFocus(): void;
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
modelValue: any;
|
|
7
|
+
prop?: string;
|
|
8
|
+
reduceValueProp?: string;
|
|
9
|
+
reduceValueMethod?: string;
|
|
10
|
+
reduceNameProp?: string;
|
|
11
|
+
reduceNameMethod?: string;
|
|
12
|
+
autofocus?: boolean;
|
|
13
|
+
notReduce?: boolean;
|
|
14
|
+
notReduceValue?: boolean;
|
|
15
|
+
options?: SelectOption[];
|
|
16
|
+
reduceNameFunction?: (option: SelectOption) => string;
|
|
17
|
+
reduceValueFunction?: (option: SelectOption) => any;
|
|
18
|
+
notClearable?: boolean;
|
|
19
|
+
clearValue?: any;
|
|
20
|
+
searchable?: boolean | string;
|
|
21
|
+
width?: string;
|
|
22
|
+
minWidth?: string;
|
|
23
|
+
layout?: Layout;
|
|
24
|
+
noBorder?: boolean;
|
|
25
|
+
borderColor?: Color;
|
|
26
|
+
bgTransparent?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
group?: Align;
|
|
29
|
+
groupVertical?: AlignVertical;
|
|
30
|
+
widthBreaks?: WidthBreaks;
|
|
31
|
+
icon?: Icon;
|
|
32
|
+
iconRight?: Icon;
|
|
33
|
+
iconPack?: IconPack;
|
|
34
|
+
iconColor?: Color;
|
|
35
|
+
label?: string;
|
|
36
|
+
labelAlign?: Align;
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
emptyOptionsMsg?: string;
|
|
39
|
+
backgroundColor?: Color;
|
|
40
|
+
}>, {
|
|
41
|
+
setFocus: typeof setFocus;
|
|
42
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
"update:modelValue": (value: any) => void;
|
|
44
|
+
click: (event: Event) => void;
|
|
45
|
+
change: (event?: Event) => void;
|
|
46
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
47
|
+
modelValue: any;
|
|
48
|
+
prop?: string;
|
|
49
|
+
reduceValueProp?: string;
|
|
50
|
+
reduceValueMethod?: string;
|
|
51
|
+
reduceNameProp?: string;
|
|
52
|
+
reduceNameMethod?: string;
|
|
53
|
+
autofocus?: boolean;
|
|
54
|
+
notReduce?: boolean;
|
|
55
|
+
notReduceValue?: boolean;
|
|
56
|
+
options?: SelectOption[];
|
|
57
|
+
reduceNameFunction?: (option: SelectOption) => string;
|
|
58
|
+
reduceValueFunction?: (option: SelectOption) => any;
|
|
59
|
+
notClearable?: boolean;
|
|
60
|
+
clearValue?: any;
|
|
61
|
+
searchable?: boolean | string;
|
|
62
|
+
width?: string;
|
|
63
|
+
minWidth?: string;
|
|
64
|
+
layout?: Layout;
|
|
65
|
+
noBorder?: boolean;
|
|
66
|
+
borderColor?: Color;
|
|
67
|
+
bgTransparent?: boolean;
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
group?: Align;
|
|
70
|
+
groupVertical?: AlignVertical;
|
|
71
|
+
widthBreaks?: WidthBreaks;
|
|
72
|
+
icon?: Icon;
|
|
73
|
+
iconRight?: Icon;
|
|
74
|
+
iconPack?: IconPack;
|
|
75
|
+
iconColor?: Color;
|
|
76
|
+
label?: string;
|
|
77
|
+
labelAlign?: Align;
|
|
78
|
+
placeholder?: string;
|
|
79
|
+
emptyOptionsMsg?: string;
|
|
80
|
+
backgroundColor?: Color;
|
|
81
|
+
}>>> & {
|
|
82
|
+
onClick?: (event: Event) => any;
|
|
83
|
+
onChange?: (event?: Event) => any;
|
|
84
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
|
85
|
+
}, {}, {}>;
|
|
86
|
+
export default _default;
|
|
87
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
88
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
89
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
90
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
91
|
+
} : {
|
|
92
|
+
type: import('vue').PropType<T[K]>;
|
|
93
|
+
required: true;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Color } from '../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
footer?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
modelValue: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
width?: string;
|
|
11
|
+
rightSide?: boolean;
|
|
12
|
+
headerColor?: Color;
|
|
13
|
+
headerAlign?: boolean;
|
|
14
|
+
closeBtnAlign?: "left" | "right";
|
|
15
|
+
notCloseBtn?: boolean;
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: boolean) => void;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
+
modelValue: boolean;
|
|
21
|
+
title?: string;
|
|
22
|
+
width?: string;
|
|
23
|
+
rightSide?: boolean;
|
|
24
|
+
headerColor?: Color;
|
|
25
|
+
headerAlign?: boolean;
|
|
26
|
+
closeBtnAlign?: "left" | "right";
|
|
27
|
+
notCloseBtn?: boolean;
|
|
28
|
+
isLoading?: boolean;
|
|
29
|
+
}>>> & {
|
|
30
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
31
|
+
}, {}, {}>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: import('vue').PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
type Option = boolean | number | object | string;
|
|
2
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
modelValue: Option;
|
|
4
|
+
options?: Option[];
|
|
5
|
+
prop?: string;
|
|
6
|
+
notReduce?: boolean;
|
|
7
|
+
reduceFunction?: (option: Option) => any;
|
|
8
|
+
label?: string;
|
|
9
|
+
labelAlign?: string;
|
|
10
|
+
widthBreaks?: [number, string][];
|
|
11
|
+
group?: "left" | "right" | "center";
|
|
12
|
+
groupVertical?: "top" | "bottom" | "center";
|
|
13
|
+
sameWidthOptions?: boolean;
|
|
14
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: Option) => void;
|
|
16
|
+
change: (value: Option) => void;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
+
modelValue: Option;
|
|
19
|
+
options?: Option[];
|
|
20
|
+
prop?: string;
|
|
21
|
+
notReduce?: boolean;
|
|
22
|
+
reduceFunction?: (option: Option) => any;
|
|
23
|
+
label?: string;
|
|
24
|
+
labelAlign?: string;
|
|
25
|
+
widthBreaks?: [number, string][];
|
|
26
|
+
group?: "left" | "right" | "center";
|
|
27
|
+
groupVertical?: "top" | "bottom" | "center";
|
|
28
|
+
sameWidthOptions?: boolean;
|
|
29
|
+
}>>> & {
|
|
30
|
+
onChange?: (value: Option) => any;
|
|
31
|
+
"onUpdate:modelValue"?: (value: Option) => any;
|
|
32
|
+
}, {}, {}>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: import('vue').PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Icon, IconPack, Size } from '../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
type ModelValue = boolean | 1 | 0;
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
modelValue: ModelValue;
|
|
9
|
+
preventAutoUpdate?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
outlined?: boolean;
|
|
12
|
+
squared?: boolean;
|
|
13
|
+
size?: Size;
|
|
14
|
+
icon?: Icon;
|
|
15
|
+
iconPack?: IconPack;
|
|
16
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: ModelValue) => void;
|
|
18
|
+
click: () => void;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
+
modelValue: ModelValue;
|
|
21
|
+
preventAutoUpdate?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
outlined?: boolean;
|
|
24
|
+
squared?: boolean;
|
|
25
|
+
size?: Size;
|
|
26
|
+
icon?: Icon;
|
|
27
|
+
iconPack?: IconPack;
|
|
28
|
+
}>>> & {
|
|
29
|
+
onClick?: () => any;
|
|
30
|
+
"onUpdate:modelValue"?: (value: ModelValue) => any;
|
|
31
|
+
}, {}, {}>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: import('vue').PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Align } from '../../../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
modelValue: number;
|
|
5
|
+
maxStep: number;
|
|
6
|
+
align?: Align;
|
|
7
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: number) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
modelValue: number;
|
|
11
|
+
maxStep: number;
|
|
12
|
+
align?: Align;
|
|
13
|
+
}>>> & {
|
|
14
|
+
"onUpdate:modelValue"?: (value: number) => any;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ColumnItem } from '../../types/table';
|
|
2
|
+
import { Align, Color, Layout, TableVersion } from '../../types/cleek-options';
|
|
3
|
+
|
|
4
|
+
type Columns = ColumnItem[] | object;
|
|
5
|
+
type CellPadding = 's' | 'm' | 'l' | 'none';
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
header?(_: {}): any;
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
desktop?(_: {}): any;
|
|
10
|
+
footer?(_: {}): any;
|
|
11
|
+
mobile?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
columns?: Columns;
|
|
15
|
+
hasColumnsManager?: boolean;
|
|
16
|
+
currentPage?: number;
|
|
17
|
+
itemsPerPage?: number;
|
|
18
|
+
listLength?: number;
|
|
19
|
+
paginationAlign?: Align;
|
|
20
|
+
search?: string;
|
|
21
|
+
loadingText?: string;
|
|
22
|
+
isLoading?: {
|
|
23
|
+
type: boolean;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
hideHeaderActions?: boolean;
|
|
27
|
+
showRefreshBtn?: boolean;
|
|
28
|
+
hideItemsPerPage?: boolean;
|
|
29
|
+
darkMode?: {
|
|
30
|
+
type: boolean;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
notFullWidth?: boolean;
|
|
34
|
+
striped?: boolean;
|
|
35
|
+
cellPadding?: CellPadding;
|
|
36
|
+
cellPaddingY?: CellPadding;
|
|
37
|
+
noResultsText?: string;
|
|
38
|
+
notOverflow?: boolean;
|
|
39
|
+
layout?: Layout;
|
|
40
|
+
version?: TableVersion;
|
|
41
|
+
headerTextColor?: Color;
|
|
42
|
+
headerBackgroundColor?: Color;
|
|
43
|
+
mobileMaxWidth?: Number;
|
|
44
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
+
refreshList: (pageChange: boolean) => void;
|
|
46
|
+
"update:search": (value: string) => void;
|
|
47
|
+
"update:currentPage": (value: number) => void;
|
|
48
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
49
|
+
columns?: Columns;
|
|
50
|
+
hasColumnsManager?: boolean;
|
|
51
|
+
currentPage?: number;
|
|
52
|
+
itemsPerPage?: number;
|
|
53
|
+
listLength?: number;
|
|
54
|
+
paginationAlign?: Align;
|
|
55
|
+
search?: string;
|
|
56
|
+
loadingText?: string;
|
|
57
|
+
isLoading?: {
|
|
58
|
+
type: boolean;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
hideHeaderActions?: boolean;
|
|
62
|
+
showRefreshBtn?: boolean;
|
|
63
|
+
hideItemsPerPage?: boolean;
|
|
64
|
+
darkMode?: {
|
|
65
|
+
type: boolean;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
notFullWidth?: boolean;
|
|
69
|
+
striped?: boolean;
|
|
70
|
+
cellPadding?: CellPadding;
|
|
71
|
+
cellPaddingY?: CellPadding;
|
|
72
|
+
noResultsText?: string;
|
|
73
|
+
notOverflow?: boolean;
|
|
74
|
+
layout?: Layout;
|
|
75
|
+
version?: TableVersion;
|
|
76
|
+
headerTextColor?: Color;
|
|
77
|
+
headerBackgroundColor?: Color;
|
|
78
|
+
mobileMaxWidth?: Number;
|
|
79
|
+
}>>> & {
|
|
80
|
+
"onUpdate:search"?: (value: string) => any;
|
|
81
|
+
onRefreshList?: (pageChange: boolean) => any;
|
|
82
|
+
"onUpdate:currentPage"?: (value: number) => any;
|
|
83
|
+
}, {}, {}>;
|
|
84
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
85
|
+
export default _default;
|
|
86
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
87
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
88
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
89
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
90
|
+
} : {
|
|
91
|
+
type: import('vue').PropType<T[K]>;
|
|
92
|
+
required: true;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
96
|
+
new (): {
|
|
97
|
+
$slots: S;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Align, AlignVertical } from '../../types/cleek-options';
|
|
2
|
+
import { ColumnItem } from '../../types/table';
|
|
3
|
+
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
col?: ColumnItem;
|
|
9
|
+
nowrap?: boolean;
|
|
10
|
+
block?: boolean;
|
|
11
|
+
overflowAuto?: boolean;
|
|
12
|
+
align?: Align;
|
|
13
|
+
verticalAlign?: AlignVertical;
|
|
14
|
+
fixedWidth?: string;
|
|
15
|
+
autoWidth?: boolean;
|
|
16
|
+
minWidth?: string;
|
|
17
|
+
maxWidth?: string;
|
|
18
|
+
maxHeight?: string;
|
|
19
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
20
|
+
col?: ColumnItem;
|
|
21
|
+
nowrap?: boolean;
|
|
22
|
+
block?: boolean;
|
|
23
|
+
overflowAuto?: boolean;
|
|
24
|
+
align?: Align;
|
|
25
|
+
verticalAlign?: AlignVertical;
|
|
26
|
+
fixedWidth?: string;
|
|
27
|
+
autoWidth?: boolean;
|
|
28
|
+
minWidth?: string;
|
|
29
|
+
maxWidth?: string;
|
|
30
|
+
maxHeight?: string;
|
|
31
|
+
}>>>, {}, {}>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: import('vue').PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Align, Color } from '../../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
align: Align;
|
|
8
|
+
minWidth: string;
|
|
9
|
+
textColor?: Color;
|
|
10
|
+
backgroundColor?: Color;
|
|
11
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
align: Align;
|
|
13
|
+
minWidth: string;
|
|
14
|
+
textColor?: Color;
|
|
15
|
+
backgroundColor?: Color;
|
|
16
|
+
}>>>, {}, {}>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ColumnItem } from '../../../types/table';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
modelValue: boolean;
|
|
5
|
+
columns?: object;
|
|
6
|
+
columnsArray?: ColumnItem[];
|
|
7
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: boolean) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
modelValue: boolean;
|
|
11
|
+
columns?: object;
|
|
12
|
+
columnsArray?: ColumnItem[];
|
|
13
|
+
}>>> & {
|
|
14
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Layout, TableVersion } from '../../../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
search?: string;
|
|
5
|
+
hasColumnsManager: boolean;
|
|
6
|
+
showRefreshBtn: boolean;
|
|
7
|
+
hideItemsPerPage: boolean;
|
|
8
|
+
currentPage: number;
|
|
9
|
+
itemsPerPage: number;
|
|
10
|
+
hideHeaderActions: boolean;
|
|
11
|
+
listLength: number;
|
|
12
|
+
layout: Layout;
|
|
13
|
+
version: TableVersion;
|
|
14
|
+
isLoading: {
|
|
15
|
+
type: boolean;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:search": (search: string) => void;
|
|
20
|
+
refreshList: (pageChange: boolean) => void;
|
|
21
|
+
openColumnsManager: () => void;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
23
|
+
search?: string;
|
|
24
|
+
hasColumnsManager: boolean;
|
|
25
|
+
showRefreshBtn: boolean;
|
|
26
|
+
hideItemsPerPage: boolean;
|
|
27
|
+
currentPage: number;
|
|
28
|
+
itemsPerPage: number;
|
|
29
|
+
hideHeaderActions: boolean;
|
|
30
|
+
listLength: number;
|
|
31
|
+
layout: Layout;
|
|
32
|
+
version: TableVersion;
|
|
33
|
+
isLoading: {
|
|
34
|
+
type: boolean;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
}>>> & {
|
|
38
|
+
"onUpdate:search"?: (search: string) => any;
|
|
39
|
+
onRefreshList?: (pageChange: boolean) => any;
|
|
40
|
+
onOpenColumnsManager?: () => any;
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
45
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
+
} : {
|
|
48
|
+
type: import('vue').PropType<T[K]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
};
|