cleek 2.8.6 → 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 -60442
- package/dist/cleek.umd.js +0 -1554
- package/dist/style.css +0 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Align, AlignVertical, Color, Icon, IconPack, Layout, ButtonType, WidthBreaks } 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
|
+
title?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
type?: ButtonType;
|
|
11
|
+
color?: Color;
|
|
12
|
+
textColor?: Color;
|
|
13
|
+
backgroundColor?: Color;
|
|
14
|
+
align?: Align;
|
|
15
|
+
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
16
|
+
width?: string;
|
|
17
|
+
layout?: Layout;
|
|
18
|
+
icon?: Icon;
|
|
19
|
+
iconRight?: Icon;
|
|
20
|
+
iconPack?: IconPack;
|
|
21
|
+
label?: string;
|
|
22
|
+
labelAlign?: Align;
|
|
23
|
+
widthBreaks?: WidthBreaks;
|
|
24
|
+
group?: Align;
|
|
25
|
+
groupVertical?: AlignVertical;
|
|
26
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
click: (event: Event) => void;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
29
|
+
title?: string;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
isLoading?: boolean;
|
|
32
|
+
type?: ButtonType;
|
|
33
|
+
color?: Color;
|
|
34
|
+
textColor?: Color;
|
|
35
|
+
backgroundColor?: Color;
|
|
36
|
+
align?: Align;
|
|
37
|
+
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
38
|
+
width?: string;
|
|
39
|
+
layout?: Layout;
|
|
40
|
+
icon?: Icon;
|
|
41
|
+
iconRight?: Icon;
|
|
42
|
+
iconPack?: IconPack;
|
|
43
|
+
label?: string;
|
|
44
|
+
labelAlign?: Align;
|
|
45
|
+
widthBreaks?: WidthBreaks;
|
|
46
|
+
group?: Align;
|
|
47
|
+
groupVertical?: AlignVertical;
|
|
48
|
+
}>>> & {
|
|
49
|
+
onClick?: (event: Event) => any;
|
|
50
|
+
}, {}, {}>;
|
|
51
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
52
|
+
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_WithTemplateSlots<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Layout } 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
|
+
modelValue?: boolean;
|
|
8
|
+
title?: string;
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
block?: boolean;
|
|
11
|
+
hideCloseBtn?: boolean;
|
|
12
|
+
layout?: Layout;
|
|
13
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (modelValue: boolean) => void;
|
|
15
|
+
closeCard: () => void;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
+
modelValue?: boolean;
|
|
18
|
+
title?: string;
|
|
19
|
+
subtitle?: string;
|
|
20
|
+
block?: boolean;
|
|
21
|
+
hideCloseBtn?: boolean;
|
|
22
|
+
layout?: Layout;
|
|
23
|
+
}>>> & {
|
|
24
|
+
"onUpdate:modelValue"?: (modelValue: boolean) => any;
|
|
25
|
+
onCloseCard?: () => any;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
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_WithTemplateSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { 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
|
+
modelValue: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
color?: Color;
|
|
11
|
+
colorText?: Color;
|
|
12
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (value: boolean) => void;
|
|
14
|
+
change: (event: Event) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
modelValue: boolean;
|
|
17
|
+
label?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
color?: Color;
|
|
20
|
+
colorText?: Color;
|
|
21
|
+
}>>> & {
|
|
22
|
+
onChange?: (event: Event) => any;
|
|
23
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
24
|
+
}, {}, {}>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
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_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Align, Color, Icon, IconPack, Size } 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
|
+
size?: Size;
|
|
8
|
+
color?: Color;
|
|
9
|
+
textColor?: Color;
|
|
10
|
+
align?: Align;
|
|
11
|
+
nowrap?: boolean;
|
|
12
|
+
icon?: Icon;
|
|
13
|
+
iconRight?: Icon;
|
|
14
|
+
iconPack?: IconPack;
|
|
15
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
click: (event: Event) => void;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
+
size?: Size;
|
|
19
|
+
color?: Color;
|
|
20
|
+
textColor?: Color;
|
|
21
|
+
align?: Align;
|
|
22
|
+
nowrap?: boolean;
|
|
23
|
+
icon?: Icon;
|
|
24
|
+
iconRight?: Icon;
|
|
25
|
+
iconPack?: IconPack;
|
|
26
|
+
}>>> & {
|
|
27
|
+
onClick?: (event: Event) => any;
|
|
28
|
+
}, {}, {}>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
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
|
+
};
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Color, Icon, IconPack, Size } 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
|
+
size?: Size;
|
|
8
|
+
sizeInPx?: Size;
|
|
9
|
+
color?: Color;
|
|
10
|
+
textColor?: Color;
|
|
11
|
+
icon?: Icon;
|
|
12
|
+
iconPack?: IconPack;
|
|
13
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
click: (domEvent: DomEvent) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
size?: Size;
|
|
17
|
+
sizeInPx?: Size;
|
|
18
|
+
color?: Color;
|
|
19
|
+
textColor?: Color;
|
|
20
|
+
icon?: Icon;
|
|
21
|
+
iconPack?: IconPack;
|
|
22
|
+
}>>> & {
|
|
23
|
+
onClick?: (domEvent: DomEvent) => any;
|
|
24
|
+
}, {}, {}>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
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_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SizeInCSS } 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
|
+
widthBreaks?: [number, string][];
|
|
8
|
+
block?: boolean;
|
|
9
|
+
gap: SizeInCSS;
|
|
10
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
click: (event: Event) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
widthBreaks?: [number, string][];
|
|
14
|
+
block?: boolean;
|
|
15
|
+
gap: SizeInCSS;
|
|
16
|
+
}>>> & {
|
|
17
|
+
onClick?: (event: Event) => any;
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Align, Layout } from '../../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
trigger?(_: {}): any;
|
|
5
|
+
popper?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
dark?: boolean;
|
|
9
|
+
align?: Align;
|
|
10
|
+
layout?: Layout;
|
|
11
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
dark?: boolean;
|
|
13
|
+
align?: Align;
|
|
14
|
+
layout?: Layout;
|
|
15
|
+
}>>>, {}, {}>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
17
|
+
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
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Color, Icon, IconPack, Size, SizeInCSS } from '../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
icon: Icon;
|
|
5
|
+
iconPack?: IconPack;
|
|
6
|
+
color?: Color;
|
|
7
|
+
size?: Size | SizeInCSS | string;
|
|
8
|
+
flip?: "horizontal" | "vertical" | "both";
|
|
9
|
+
fixedWidth?: SizeInCSS;
|
|
10
|
+
rotation?: 90 | 180 | 270 | "90" | "180" | "270";
|
|
11
|
+
spin?: boolean;
|
|
12
|
+
pulse?: boolean;
|
|
13
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
click: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
icon: Icon;
|
|
17
|
+
iconPack?: IconPack;
|
|
18
|
+
color?: Color;
|
|
19
|
+
size?: Size | SizeInCSS | string;
|
|
20
|
+
flip?: "horizontal" | "vertical" | "both";
|
|
21
|
+
fixedWidth?: SizeInCSS;
|
|
22
|
+
rotation?: 90 | 180 | 270 | "90" | "180" | "270";
|
|
23
|
+
spin?: boolean;
|
|
24
|
+
pulse?: boolean;
|
|
25
|
+
}>>> & {
|
|
26
|
+
onClick?: (...args: any[]) => 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
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Color, Size, SizeInCSS } from '../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
src: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
size?: Size;
|
|
7
|
+
sizeAbsolute?: SizeInCSS;
|
|
8
|
+
width?: SizeInCSS;
|
|
9
|
+
height?: SizeInCSS;
|
|
10
|
+
zoom: boolean;
|
|
11
|
+
zoomTitle: string;
|
|
12
|
+
hasBorder?: boolean;
|
|
13
|
+
borderColor: Color;
|
|
14
|
+
rounded?: boolean;
|
|
15
|
+
radius?: SizeInCSS;
|
|
16
|
+
static: boolean;
|
|
17
|
+
dynamic: boolean;
|
|
18
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
click: (event: MouseEvent) => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
21
|
+
src: string;
|
|
22
|
+
alt?: string;
|
|
23
|
+
size?: Size;
|
|
24
|
+
sizeAbsolute?: SizeInCSS;
|
|
25
|
+
width?: SizeInCSS;
|
|
26
|
+
height?: SizeInCSS;
|
|
27
|
+
zoom: boolean;
|
|
28
|
+
zoomTitle: string;
|
|
29
|
+
hasBorder?: boolean;
|
|
30
|
+
borderColor: Color;
|
|
31
|
+
rounded?: boolean;
|
|
32
|
+
radius?: SizeInCSS;
|
|
33
|
+
static: boolean;
|
|
34
|
+
dynamic: boolean;
|
|
35
|
+
}>>> & {
|
|
36
|
+
onClick?: (event: MouseEvent) => any;
|
|
37
|
+
}, {}, {}>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
41
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
+
} : {
|
|
44
|
+
type: import('vue').PropType<T[K]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Align, AlignVertical, Color, Icon, WidthBreaks } from '../../types/cleek-options';
|
|
2
|
+
import { IconPack } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
|
|
4
|
+
type stringDate = null | string;
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
modelValue: stringDate;
|
|
7
|
+
label?: string;
|
|
8
|
+
icon?: Icon;
|
|
9
|
+
iconRight?: Icon;
|
|
10
|
+
iconPack?: IconPack;
|
|
11
|
+
iconColor?: Color;
|
|
12
|
+
widthBreaks?: WidthBreaks;
|
|
13
|
+
group?: Align;
|
|
14
|
+
groupVertical?: AlignVertical;
|
|
15
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (modelValue: string) => void;
|
|
17
|
+
change: (modelValue: string) => void;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
19
|
+
modelValue: stringDate;
|
|
20
|
+
label?: string;
|
|
21
|
+
icon?: Icon;
|
|
22
|
+
iconRight?: Icon;
|
|
23
|
+
iconPack?: IconPack;
|
|
24
|
+
iconColor?: Color;
|
|
25
|
+
widthBreaks?: WidthBreaks;
|
|
26
|
+
group?: Align;
|
|
27
|
+
groupVertical?: AlignVertical;
|
|
28
|
+
}>>> & {
|
|
29
|
+
onChange?: (modelValue: string) => any;
|
|
30
|
+
"onUpdate:modelValue"?: (modelValue: string) => any;
|
|
31
|
+
}, {}, {}>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: import('vue').PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Align, AlignVertical, WidthBreaks } from '../../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
type numberTime = number | undefined;
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
modelValue: numberTime;
|
|
6
|
+
label?: string;
|
|
7
|
+
widthBreaks?: WidthBreaks;
|
|
8
|
+
group?: Align;
|
|
9
|
+
groupVertical?: AlignVertical;
|
|
10
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: number) => void;
|
|
12
|
+
change: (value: number) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
modelValue: numberTime;
|
|
15
|
+
label?: string;
|
|
16
|
+
widthBreaks?: WidthBreaks;
|
|
17
|
+
group?: Align;
|
|
18
|
+
groupVertical?: AlignVertical;
|
|
19
|
+
}>>> & {
|
|
20
|
+
onChange?: (value: number) => any;
|
|
21
|
+
"onUpdate:modelValue"?: (value: number) => any;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Align, AlignVertical, Color, Icon, IconPack, InputType, Layout, SizeInCSS, WidthBreaks } from '../types/cleek-options';
|
|
2
|
+
|
|
3
|
+
declare function setFocus(): void;
|
|
4
|
+
declare function setSelect(): void;
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
modelValue: string | number;
|
|
7
|
+
type?: InputType;
|
|
8
|
+
autocomplete?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
plusMinusButtons?: boolean;
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
label?: string;
|
|
15
|
+
labelAlign?: Align;
|
|
16
|
+
icon?: Icon;
|
|
17
|
+
iconRight?: Icon;
|
|
18
|
+
iconPack?: IconPack;
|
|
19
|
+
iconColor?: Color;
|
|
20
|
+
group?: Align;
|
|
21
|
+
groupVertical?: AlignVertical;
|
|
22
|
+
widthBreaks?: WidthBreaks;
|
|
23
|
+
fontSize: SizeInCSS;
|
|
24
|
+
size?: "s" | "m" | "l" | "xl";
|
|
25
|
+
hideBorder?: boolean;
|
|
26
|
+
width?: string;
|
|
27
|
+
align?: Align;
|
|
28
|
+
layout?: Layout;
|
|
29
|
+
borderColor?: Color;
|
|
30
|
+
textColor?: Color;
|
|
31
|
+
autofocus?: boolean;
|
|
32
|
+
capitalize?: boolean;
|
|
33
|
+
autoSelect?: boolean;
|
|
34
|
+
delayChangeTime?: number;
|
|
35
|
+
justInteger?: boolean;
|
|
36
|
+
}>, {
|
|
37
|
+
setFocus: typeof setFocus;
|
|
38
|
+
setSelect: typeof setSelect;
|
|
39
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
+
"update:modelValue": (value: string | number) => void;
|
|
41
|
+
click: (event: Event) => void;
|
|
42
|
+
input: (event: Event) => void;
|
|
43
|
+
change: (event: Event) => void;
|
|
44
|
+
focus: (event: Event) => void;
|
|
45
|
+
blur: (event: Event) => void;
|
|
46
|
+
delayChange: (value: string | number) => void;
|
|
47
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
48
|
+
modelValue: string | number;
|
|
49
|
+
type?: InputType;
|
|
50
|
+
autocomplete?: boolean;
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
placeholder?: string;
|
|
53
|
+
plusMinusButtons?: boolean;
|
|
54
|
+
min?: number;
|
|
55
|
+
max?: number;
|
|
56
|
+
label?: string;
|
|
57
|
+
labelAlign?: Align;
|
|
58
|
+
icon?: Icon;
|
|
59
|
+
iconRight?: Icon;
|
|
60
|
+
iconPack?: IconPack;
|
|
61
|
+
iconColor?: Color;
|
|
62
|
+
group?: Align;
|
|
63
|
+
groupVertical?: AlignVertical;
|
|
64
|
+
widthBreaks?: WidthBreaks;
|
|
65
|
+
fontSize: SizeInCSS;
|
|
66
|
+
size?: "s" | "m" | "l" | "xl";
|
|
67
|
+
hideBorder?: boolean;
|
|
68
|
+
width?: string;
|
|
69
|
+
align?: Align;
|
|
70
|
+
layout?: Layout;
|
|
71
|
+
borderColor?: Color;
|
|
72
|
+
textColor?: Color;
|
|
73
|
+
autofocus?: boolean;
|
|
74
|
+
capitalize?: boolean;
|
|
75
|
+
autoSelect?: boolean;
|
|
76
|
+
delayChangeTime?: number;
|
|
77
|
+
justInteger?: boolean;
|
|
78
|
+
}>>> & {
|
|
79
|
+
onClick?: (event: Event) => any;
|
|
80
|
+
onFocus?: (event: Event) => any;
|
|
81
|
+
onBlur?: (event: Event) => any;
|
|
82
|
+
onChange?: (event: Event) => any;
|
|
83
|
+
onInput?: (event: Event) => any;
|
|
84
|
+
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
85
|
+
onDelayChange?: (value: string | number) => any;
|
|
86
|
+
}, {}, {}>;
|
|
87
|
+
export default _default;
|
|
88
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
89
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
90
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
91
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
92
|
+
} : {
|
|
93
|
+
type: import('vue').PropType<T[K]>;
|
|
94
|
+
required: true;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Align } 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
|
+
for: string;
|
|
8
|
+
align: Align;
|
|
9
|
+
size?: "s" | "m" | "l" | "xl";
|
|
10
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
for: string;
|
|
12
|
+
align: Align;
|
|
13
|
+
size?: "s" | "m" | "l" | "xl";
|
|
14
|
+
}>>>, {}, {}>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
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
|
+
};
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { 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
|
+
backgroundColor?: Color;
|
|
8
|
+
padding?: string;
|
|
9
|
+
position?: string;
|
|
10
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
backgroundColor?: Color;
|
|
12
|
+
padding?: string;
|
|
13
|
+
position?: string;
|
|
14
|
+
}>>>, {}, {}>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
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
|
+
};
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
alert(msg: string): void;
|
|
3
|
+
alertOptions({ title, msg, acceptText }: {
|
|
4
|
+
title: string;
|
|
5
|
+
msg: string;
|
|
6
|
+
acceptText: string;
|
|
7
|
+
}): void;
|
|
8
|
+
confirmOptions({ title, msg, acceptText, cancelText, success, failure, }: {
|
|
9
|
+
title?: string;
|
|
10
|
+
msg?: string;
|
|
11
|
+
acceptText?: string;
|
|
12
|
+
cancelText?: string;
|
|
13
|
+
success?: () => void;
|
|
14
|
+
failure?: () => void;
|
|
15
|
+
}): void;
|
|
16
|
+
confirm(msg: string, success: () => void, failure?: () => void): void;
|
|
17
|
+
notify({ text, title, color, duration }: {
|
|
18
|
+
text?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
color?: string;
|
|
21
|
+
duration?: number;
|
|
22
|
+
}): void;
|
|
23
|
+
notifySuccess(text: string, title?: string, duration?: number): void;
|
|
24
|
+
notifyError(text: string, title?: string, duration?: number): void;
|
|
25
|
+
notifyWarning(text: string, title?: string, duration?: number): void;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
title: import('vue').Ref<string>;
|
|
3
|
+
msg: import('vue').Ref<string>;
|
|
4
|
+
acceptText: import('vue').Ref<string>;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
title: import('vue').Ref<string>;
|
|
3
|
+
msg: import('vue').Ref<string>;
|
|
4
|
+
acceptText: import('vue').Ref<string>;
|
|
5
|
+
cancelText: import('vue').Ref<string>;
|
|
6
|
+
responseSuccess: import('vue').Ref<() => void>;
|
|
7
|
+
responseFailure: import('vue').Ref<() => void>;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
9
|
+
export default _default;
|