@katlux/toolkit 0.1.0-beta.5 → 0.1.0-beta.8
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/module.cjs +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -0
- package/dist/runtime/components/KButton/KButton.global.d.vue.ts +1 -1
- package/dist/runtime/components/KButton/KButton.global.vue.d.ts +1 -1
- package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +2 -2
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +2 -2
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +72 -0
- package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +20 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +12 -0
- package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +1 -1
- package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +1 -1
- package/dist/runtime/components/KLoader/KLoader.global.d.vue.ts +3 -3
- package/dist/runtime/components/KLoader/KLoader.global.vue.d.ts +3 -3
- package/dist/runtime/components/KLoader/KLoader.logic.d.ts +8 -1
- package/dist/runtime/components/KLoader/KLoader.logic.js +1 -0
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +1 -1
- package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +1 -1
- package/dist/runtime/components/KTree/KTree.global.d.vue.ts +1 -1
- package/dist/runtime/components/KTree/KTree.global.vue.d.ts +1 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +5 -5
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +5 -5
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +77 -0
- package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +3 -3
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +3 -3
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +1 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +1 -0
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +1 -0
- package/package.json +1 -1
package/dist/module.cjs
CHANGED
|
@@ -10,6 +10,7 @@ const module$1 = kit.defineNuxtModule({
|
|
|
10
10
|
},
|
|
11
11
|
setup(options, nuxt) {
|
|
12
12
|
const { resolve } = kit.createResolver((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('module.cjs', document.baseURI).href)));
|
|
13
|
+
nuxt.options.css.push(resolve("./runtime/presets/default/assets/scss/index.scss"));
|
|
13
14
|
kit.addComponentsDir({
|
|
14
15
|
path: resolve("./runtime/components"),
|
|
15
16
|
pathPrefix: false,
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -7,6 +7,7 @@ const module$1 = defineNuxtModule({
|
|
|
7
7
|
},
|
|
8
8
|
setup(options, nuxt) {
|
|
9
9
|
const { resolve } = createResolver(import.meta.url);
|
|
10
|
+
nuxt.options.css.push(resolve("./runtime/presets/default/assets/scss/index.scss"));
|
|
10
11
|
addComponentsDir({
|
|
11
12
|
path: resolve("./runtime/components"),
|
|
12
13
|
pathPrefix: false,
|
|
@@ -48,9 +48,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
48
48
|
}>, {
|
|
49
49
|
size: "small" | "large" | "medium" | undefined;
|
|
50
50
|
type: "info" | "default" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | undefined;
|
|
51
|
+
loading: boolean;
|
|
51
52
|
disabled: boolean;
|
|
52
53
|
href: string;
|
|
53
|
-
loading: boolean;
|
|
54
54
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
55
55
|
declare const _default: typeof __VLS_export;
|
|
56
56
|
export default _default;
|
|
@@ -48,9 +48,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
48
48
|
}>, {
|
|
49
49
|
size: "small" | "large" | "medium" | undefined;
|
|
50
50
|
type: "info" | "default" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | undefined;
|
|
51
|
+
loading: boolean;
|
|
51
52
|
disabled: boolean;
|
|
52
53
|
href: string;
|
|
53
|
-
loading: boolean;
|
|
54
54
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
55
55
|
declare const _default: typeof __VLS_export;
|
|
56
56
|
export default _default;
|
|
@@ -22,7 +22,7 @@ export interface KButtonEmits {
|
|
|
22
22
|
export declare function useKButtonLogic(props: KButtonProps, emit: KButtonEmits): {
|
|
23
23
|
isLink: import("vue").ComputedRef<boolean>;
|
|
24
24
|
isDisabled: import("vue").ComputedRef<boolean | undefined>;
|
|
25
|
-
buttonClasses: import("vue").ComputedRef<("info" | "default" | "
|
|
25
|
+
buttonClasses: import("vue").ComputedRef<("info" | "default" | "primary" | "danger" | "success" | "warning" | "light" | "dark" | "small" | "large" | "medium" | {
|
|
26
26
|
disabled: boolean | undefined;
|
|
27
27
|
})[]>;
|
|
28
28
|
onClick: () => void;
|
|
@@ -85,15 +85,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
85
85
|
}>> & Readonly<{
|
|
86
86
|
"onUpdate:modelValue"?: ((value: import("@katlux/providers").TDataRow | import("@katlux/providers").TDataRow[] | null) => any) | undefined;
|
|
87
87
|
}>, {
|
|
88
|
-
disabled: boolean;
|
|
89
|
-
modelValue: any;
|
|
90
88
|
searchbox: boolean;
|
|
89
|
+
disabled: boolean;
|
|
91
90
|
placeholder: string;
|
|
92
91
|
dataProvider: any;
|
|
93
92
|
closeOnSelect: boolean;
|
|
94
93
|
multiSelect: boolean;
|
|
95
94
|
maxSelectedDisplay: string | number | boolean;
|
|
96
95
|
visibleFields: any;
|
|
96
|
+
modelValue: any;
|
|
97
97
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
98
98
|
declare const _default: typeof __VLS_export;
|
|
99
99
|
export default _default;
|
|
@@ -85,15 +85,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
85
85
|
}>> & Readonly<{
|
|
86
86
|
"onUpdate:modelValue"?: ((value: import("@katlux/providers").TDataRow | import("@katlux/providers").TDataRow[] | null) => any) | undefined;
|
|
87
87
|
}>, {
|
|
88
|
-
disabled: boolean;
|
|
89
|
-
modelValue: any;
|
|
90
88
|
searchbox: boolean;
|
|
89
|
+
disabled: boolean;
|
|
91
90
|
placeholder: string;
|
|
92
91
|
dataProvider: any;
|
|
93
92
|
closeOnSelect: boolean;
|
|
94
93
|
multiSelect: boolean;
|
|
95
94
|
maxSelectedDisplay: string | number | boolean;
|
|
96
95
|
visibleFields: any;
|
|
96
|
+
modelValue: any;
|
|
97
97
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
98
98
|
declare const _default: typeof __VLS_export;
|
|
99
99
|
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ADataProvider } from '@katlux/providers';
|
|
2
|
+
import { type TDataRow } from '@katlux/providers';
|
|
3
|
+
export type ComboboxItem = TDataRow;
|
|
4
|
+
export interface KComboboxProps {
|
|
5
|
+
dataProvider: ADataProvider;
|
|
6
|
+
closeOnSelect?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
multiSelect?: boolean;
|
|
9
|
+
maxSelectedDisplay?: number | string | false;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
searchbox?: boolean;
|
|
12
|
+
visibleFields?: Array<String> | null;
|
|
13
|
+
labelField: string;
|
|
14
|
+
modelValue?: ComboboxItem | ComboboxItem[] | null;
|
|
15
|
+
}
|
|
16
|
+
export interface KComboboxEmits {
|
|
17
|
+
(e: 'update:modelValue', value: ComboboxItem | ComboboxItem[] | null): void;
|
|
18
|
+
}
|
|
19
|
+
export declare const KComboboxDefaultProps: {
|
|
20
|
+
dataProvider: {
|
|
21
|
+
type: PropType<ADataProvider>;
|
|
22
|
+
required: boolean;
|
|
23
|
+
};
|
|
24
|
+
closeOnSelect: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
disabled: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
multiSelect: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
maxSelectedDisplay: {
|
|
37
|
+
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
placeholder: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
searchbox: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
visibleFields: {
|
|
49
|
+
type: PropType<Array<String>>;
|
|
50
|
+
default: null;
|
|
51
|
+
};
|
|
52
|
+
labelField: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
required: boolean;
|
|
55
|
+
};
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: PropType<ComboboxItem | ComboboxItem[] | null>;
|
|
58
|
+
default: null;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare function useKComboboxLogic(props: KComboboxProps, emit: KComboboxEmits): {
|
|
62
|
+
selectedItems: import("vue").Ref<TDataRow[] | null, TDataRow[] | null>;
|
|
63
|
+
isOptionsOpen: import("vue").Ref<boolean, boolean>;
|
|
64
|
+
searchtext: import("vue").Ref<string, string>;
|
|
65
|
+
selectItem: (option: ComboboxItem) => void;
|
|
66
|
+
isSelected: (option: ComboboxItem) => boolean | undefined;
|
|
67
|
+
getSelectedContent: () => TDataRow[];
|
|
68
|
+
toggleDropdown: () => void;
|
|
69
|
+
closeDropdown: () => void;
|
|
70
|
+
filteredOptions: import("vue").ComputedRef<TDataRow[]>;
|
|
71
|
+
loading: import("vue").Ref<Boolean, Boolean>;
|
|
72
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ADataProvider } from '@katlux/providers';
|
|
2
|
+
export interface KDataIteratorProps {
|
|
3
|
+
dataProvider: ADataProvider;
|
|
4
|
+
visibleFields?: Array<string> | null;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
search?: string;
|
|
7
|
+
itemsPerPage?: number;
|
|
8
|
+
page?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const KDataIteratorDefaultProps: {
|
|
11
|
+
visibleFields: null;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
search: string;
|
|
14
|
+
itemsPerPage: number;
|
|
15
|
+
page: number;
|
|
16
|
+
};
|
|
17
|
+
export declare function useKDataIteratorLogic(props: KDataIteratorProps): {
|
|
18
|
+
selectedRows: import("vue").Ref<any[], any[]>;
|
|
19
|
+
selectAll: import("vue").Ref<boolean, boolean>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ADataProvider } from '@katlux/providers';
|
|
2
|
+
export interface KDatatableProps {
|
|
3
|
+
dataProvider: ADataProvider;
|
|
4
|
+
visibleFields?: Array<string> | null;
|
|
5
|
+
}
|
|
6
|
+
export declare const KDatatableDefaultProps: {
|
|
7
|
+
visibleFields: null;
|
|
8
|
+
};
|
|
9
|
+
export declare function useKDatatableLogic(props: KDatatableProps): {
|
|
10
|
+
selectedRows: import("vue").Ref<any[], any[]>;
|
|
11
|
+
selectAll: import("vue").Ref<boolean, boolean>;
|
|
12
|
+
};
|
|
@@ -62,8 +62,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
62
62
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
64
|
disabled: boolean;
|
|
65
|
-
modelValue: string;
|
|
66
65
|
placeholder: string;
|
|
66
|
+
modelValue: string;
|
|
67
67
|
format: string;
|
|
68
68
|
step: number;
|
|
69
69
|
startHour: string;
|
|
@@ -62,8 +62,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
62
62
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
64
|
disabled: boolean;
|
|
65
|
-
modelValue: string;
|
|
66
65
|
placeholder: string;
|
|
66
|
+
modelValue: string;
|
|
67
67
|
format: string;
|
|
68
68
|
step: number;
|
|
69
69
|
startHour: string;
|
|
@@ -8,7 +8,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
10
|
size: {
|
|
11
|
-
type: PropType<"small" | "medium" | "large">;
|
|
11
|
+
type: import("vue").PropType<"small" | "medium" | "large">;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -21,11 +21,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
23
|
size: {
|
|
24
|
-
type: PropType<"small" | "medium" | "large">;
|
|
24
|
+
type: import("vue").PropType<"small" | "medium" | "large">;
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
}>> & Readonly<{}>, {
|
|
28
|
-
size:
|
|
28
|
+
size: "small" | "large" | "medium";
|
|
29
29
|
overlay: boolean;
|
|
30
30
|
loading: boolean;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -8,7 +8,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
10
|
size: {
|
|
11
|
-
type: PropType<"small" | "medium" | "large">;
|
|
11
|
+
type: import("vue").PropType<"small" | "medium" | "large">;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -21,11 +21,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
23
|
size: {
|
|
24
|
-
type: PropType<"small" | "medium" | "large">;
|
|
24
|
+
type: import("vue").PropType<"small" | "medium" | "large">;
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
}>> & Readonly<{}>, {
|
|
28
|
-
size:
|
|
28
|
+
size: "small" | "large" | "medium";
|
|
29
29
|
overlay: boolean;
|
|
30
30
|
loading: boolean;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
1
2
|
export interface KLoaderProps {
|
|
2
3
|
loading?: boolean;
|
|
3
4
|
overlay?: boolean;
|
|
@@ -18,5 +19,11 @@ export declare const KLoaderDefaultProps: {
|
|
|
18
19
|
};
|
|
19
20
|
};
|
|
20
21
|
export declare function useKLoaderLogic(props: KLoaderProps): {
|
|
21
|
-
loaderClasses:
|
|
22
|
+
loaderClasses: import("vue").ComputedRef<(string | {
|
|
23
|
+
'is-overlay': boolean | undefined;
|
|
24
|
+
'is-loading'?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
'is-loading': boolean | undefined;
|
|
27
|
+
'is-overlay'?: undefined;
|
|
28
|
+
})[]>;
|
|
22
29
|
};
|
|
@@ -37,8 +37,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
37
37
|
}>> & Readonly<{
|
|
38
38
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
39
39
|
}>, {
|
|
40
|
-
modelValue: string;
|
|
41
40
|
placeholder: string;
|
|
41
|
+
modelValue: string;
|
|
42
42
|
showClear: boolean;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -37,8 +37,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
37
37
|
}>> & Readonly<{
|
|
38
38
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
39
39
|
}>, {
|
|
40
|
-
modelValue: string;
|
|
41
40
|
placeholder: string;
|
|
41
|
+
modelValue: string;
|
|
42
42
|
showClear: boolean;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -65,9 +65,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
65
65
|
default: string;
|
|
66
66
|
};
|
|
67
67
|
}>> & Readonly<{}>, {
|
|
68
|
-
disabled: boolean;
|
|
69
68
|
searchtext: string;
|
|
70
69
|
labelField: string;
|
|
70
|
+
disabled: boolean;
|
|
71
71
|
multiSelect: boolean;
|
|
72
72
|
iconField: string;
|
|
73
73
|
isNodeSelected: (node: any) => boolean;
|
|
@@ -65,9 +65,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
65
65
|
default: string;
|
|
66
66
|
};
|
|
67
67
|
}>> & Readonly<{}>, {
|
|
68
|
-
disabled: boolean;
|
|
69
68
|
searchtext: string;
|
|
70
69
|
labelField: string;
|
|
70
|
+
disabled: boolean;
|
|
71
71
|
multiSelect: boolean;
|
|
72
72
|
iconField: string;
|
|
73
73
|
isNodeSelected: (node: any) => boolean;
|
|
@@ -103,17 +103,17 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
103
103
|
onChange?: ((value: any) => any) | undefined;
|
|
104
104
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
105
105
|
}>, {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
modelValue: any;
|
|
106
|
+
parentKey: string;
|
|
107
|
+
idKey: string;
|
|
109
108
|
searchbox: boolean;
|
|
109
|
+
loading: boolean;
|
|
110
|
+
disabled: boolean;
|
|
110
111
|
placeholder: string;
|
|
111
112
|
dataProvider: any;
|
|
112
113
|
closeOnSelect: boolean;
|
|
113
114
|
multiSelect: boolean;
|
|
115
|
+
modelValue: any;
|
|
114
116
|
iconField: string;
|
|
115
|
-
idKey: string;
|
|
116
|
-
parentKey: string;
|
|
117
117
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
118
118
|
declare const _default: typeof __VLS_export;
|
|
119
119
|
export default _default;
|
|
@@ -103,17 +103,17 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
103
103
|
onChange?: ((value: any) => any) | undefined;
|
|
104
104
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
105
105
|
}>, {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
modelValue: any;
|
|
106
|
+
parentKey: string;
|
|
107
|
+
idKey: string;
|
|
109
108
|
searchbox: boolean;
|
|
109
|
+
loading: boolean;
|
|
110
|
+
disabled: boolean;
|
|
110
111
|
placeholder: string;
|
|
111
112
|
dataProvider: any;
|
|
112
113
|
closeOnSelect: boolean;
|
|
113
114
|
multiSelect: boolean;
|
|
115
|
+
modelValue: any;
|
|
114
116
|
iconField: string;
|
|
115
|
-
idKey: string;
|
|
116
|
-
parentKey: string;
|
|
117
117
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
118
118
|
declare const _default: typeof __VLS_export;
|
|
119
119
|
export default _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { ADataProvider } from '@katlux/providers';
|
|
2
|
+
export interface KTreePickerProps {
|
|
3
|
+
modelValue?: any;
|
|
4
|
+
dataProvider: ADataProvider;
|
|
5
|
+
labelField: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
closeOnSelect?: boolean;
|
|
9
|
+
idKey?: string;
|
|
10
|
+
parentKey?: string;
|
|
11
|
+
iconField?: string;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
multiSelect?: boolean;
|
|
14
|
+
searchbox?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const KTreePickerDefaultProps: {
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: PropType<any>;
|
|
19
|
+
default: null;
|
|
20
|
+
};
|
|
21
|
+
dataProvider: {
|
|
22
|
+
type: PropType<ADataProvider>;
|
|
23
|
+
required: boolean;
|
|
24
|
+
};
|
|
25
|
+
labelField: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: boolean;
|
|
28
|
+
};
|
|
29
|
+
placeholder: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
closeOnSelect: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
idKey: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
parentKey: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
iconField: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
loading: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
multiSelect: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
searchbox: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare function useKTreePickerLogic(props: KTreePickerProps, emit: any): {
|
|
67
|
+
selectedItems: import("vue").Ref<import("@katlux/providers").TDataRow[] | null, import("@katlux/providers").TDataRow[] | null>;
|
|
68
|
+
isOptionsOpen: import("vue").Ref<boolean, boolean>;
|
|
69
|
+
searchtext: import("vue").Ref<string, string>;
|
|
70
|
+
selectItem: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => void;
|
|
71
|
+
isSelected: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => boolean | undefined;
|
|
72
|
+
getSelectedContent: () => import("@katlux/providers").TDataRow[];
|
|
73
|
+
toggleDropdown: () => void;
|
|
74
|
+
closeDropdown: () => void;
|
|
75
|
+
filteredOptions: import("vue").ComputedRef<import("@katlux/providers").TDataRow[]>;
|
|
76
|
+
loading: import("vue").Ref<Boolean, Boolean>;
|
|
77
|
+
};
|
|
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
+
parentKey: string;
|
|
85
|
+
idKey: string;
|
|
86
|
+
expandedByDefault: boolean;
|
|
84
87
|
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
85
88
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
86
89
|
cellSlots: Record<string, any>;
|
|
87
90
|
headerSlots: Record<string, any>;
|
|
88
91
|
treeColumnIndex: number;
|
|
89
|
-
idKey: string;
|
|
90
|
-
parentKey: string;
|
|
91
|
-
expandedByDefault: boolean;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
93
|
declare const _default: typeof __VLS_export;
|
|
94
94
|
export default _default;
|
|
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
+
parentKey: string;
|
|
85
|
+
idKey: string;
|
|
86
|
+
expandedByDefault: boolean;
|
|
84
87
|
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
85
88
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
86
89
|
cellSlots: Record<string, any>;
|
|
87
90
|
headerSlots: Record<string, any>;
|
|
88
91
|
treeColumnIndex: number;
|
|
89
|
-
idKey: string;
|
|
90
|
-
parentKey: string;
|
|
91
|
-
expandedByDefault: boolean;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
93
|
declare const _default: typeof __VLS_export;
|
|
94
94
|
export default _default;
|