@katlux/toolkit 0.1.0-beta.31 → 0.1.0-beta.34
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.json +1 -1
- 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.logic.d.ts +0 -72
- package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +0 -20
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +0 -12
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +2 -2
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +2 -2
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +0 -77
- 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/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -47,7 +47,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
47
47
|
onClick?: (() => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
49
|
size: "small" | "large" | "medium" | undefined;
|
|
50
|
-
type: "info" | "default" | "
|
|
50
|
+
type: "info" | "default" | "success" | "warning" | "primary" | "dark" | "danger" | "light" | undefined;
|
|
51
51
|
disabled: boolean;
|
|
52
52
|
href: string;
|
|
53
53
|
loading: boolean;
|
|
@@ -47,7 +47,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
47
47
|
onClick?: (() => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
49
|
size: "small" | "large" | "medium" | undefined;
|
|
50
|
-
type: "info" | "default" | "
|
|
50
|
+
type: "info" | "default" | "success" | "warning" | "primary" | "dark" | "danger" | "light" | undefined;
|
|
51
51
|
disabled: boolean;
|
|
52
52
|
href: string;
|
|
53
53
|
loading: boolean;
|
|
@@ -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" | "success" | "warning" | "primary" | "dark" | "small" | "danger" | "light" | "large" | "medium" | {
|
|
26
26
|
disabled: boolean | undefined;
|
|
27
27
|
})[]>;
|
|
28
28
|
onClick: () => void;
|
|
@@ -1,72 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -11,8 +11,8 @@ interface Props {
|
|
|
11
11
|
page?: number;
|
|
12
12
|
}
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
-
bulkActions: IKDatatableAction[];
|
|
15
14
|
search: string;
|
|
15
|
+
bulkActions: IKDatatableAction[];
|
|
16
16
|
loading: boolean;
|
|
17
17
|
visibleFields: Array<string> | null;
|
|
18
18
|
rowActions: IKDatatableAction[];
|
|
@@ -11,8 +11,8 @@ interface Props {
|
|
|
11
11
|
page?: number;
|
|
12
12
|
}
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
-
bulkActions: IKDatatableAction[];
|
|
15
14
|
search: string;
|
|
15
|
+
bulkActions: IKDatatableAction[];
|
|
16
16
|
loading: boolean;
|
|
17
17
|
visibleFields: Array<string> | null;
|
|
18
18
|
rowActions: IKDatatableAction[];
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -103,8 +103,6 @@ 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
|
-
parentKey: string;
|
|
107
|
-
idKey: string;
|
|
108
106
|
disabled: boolean;
|
|
109
107
|
loading: boolean;
|
|
110
108
|
modelValue: any;
|
|
@@ -114,6 +112,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
114
112
|
closeOnSelect: boolean;
|
|
115
113
|
multiSelect: boolean;
|
|
116
114
|
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,8 +103,6 @@ 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
|
-
parentKey: string;
|
|
107
|
-
idKey: string;
|
|
108
106
|
disabled: boolean;
|
|
109
107
|
loading: boolean;
|
|
110
108
|
modelValue: any;
|
|
@@ -114,6 +112,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
114
112
|
closeOnSelect: boolean;
|
|
115
113
|
multiSelect: boolean;
|
|
116
114
|
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;
|
|
@@ -1,77 +0,0 @@
|
|
|
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;
|
|
87
84
|
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
88
85
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
89
86
|
cellSlots: Record<string, any>;
|
|
90
87
|
headerSlots: Record<string, any>;
|
|
91
88
|
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;
|
|
87
84
|
bulkActions: import("@katlux/providers").IKDatatableAction[];
|
|
88
85
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
89
86
|
cellSlots: Record<string, any>;
|
|
90
87
|
headerSlots: Record<string, any>;
|
|
91
88
|
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;
|