@katlux/toolkit 0.1.0-beta.5 → 0.1.0-beta.6
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/KBulkActions/KBulkActions.logic.d.ts +2 -9
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +4 -4
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +4 -4
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +72 -0
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +20 -0
- package/dist/runtime/components/KDatatable/KDatatable.global.vue +1 -1
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +12 -0
- 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/KPagination/KPagination.global.vue +1 -1
- package/dist/runtime/components/KTree/KTree.logic.d.ts +1 -1
- 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 +77 -0
- package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +5 -5
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +5 -5
- package/dist/runtime/components/KTreeView/KTreeView.logic.d.ts +1 -1
- package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue +1 -1
- 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/KDataIterator/KDataIterator.vue +1 -1
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +1 -1
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +1 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IKDatatableAction, TDataRow } from '@katlux/providers';
|
|
2
|
-
import { CFlatClientDataProvider } from '@katlux/providers';
|
|
3
2
|
export interface KBulkActionsProps {
|
|
4
3
|
bulkActions: IKDatatableAction[];
|
|
5
4
|
selectedRows: TDataRow[];
|
|
@@ -7,13 +6,7 @@ export interface KBulkActionsProps {
|
|
|
7
6
|
}
|
|
8
7
|
export declare const KBulkActionsDefaultProps: {};
|
|
9
8
|
export declare function useKBulkActionsLogic(props: KBulkActionsProps): {
|
|
10
|
-
selected:
|
|
11
|
-
|
|
12
|
-
label: string;
|
|
13
|
-
} | null, IKDatatableAction | {
|
|
14
|
-
action: Function;
|
|
15
|
-
label: string;
|
|
16
|
-
} | null>;
|
|
17
|
-
dp: CFlatClientDataProvider;
|
|
9
|
+
selected: any;
|
|
10
|
+
dp: any;
|
|
18
11
|
doAction: (action: any) => void;
|
|
19
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
dataProvider: {
|
|
3
|
-
type: PropType<
|
|
3
|
+
type: PropType<ADataProvider>;
|
|
4
4
|
required: boolean;
|
|
5
5
|
};
|
|
6
6
|
closeOnSelect: {
|
|
@@ -40,10 +40,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
40
40
|
default: null;
|
|
41
41
|
};
|
|
42
42
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
43
|
-
"update:modelValue": (value:
|
|
43
|
+
"update:modelValue": (value: any) => any;
|
|
44
44
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
45
|
dataProvider: {
|
|
46
|
-
type: PropType<
|
|
46
|
+
type: PropType<ADataProvider>;
|
|
47
47
|
required: boolean;
|
|
48
48
|
};
|
|
49
49
|
closeOnSelect: {
|
|
@@ -83,7 +83,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
83
83
|
default: null;
|
|
84
84
|
};
|
|
85
85
|
}>> & Readonly<{
|
|
86
|
-
"onUpdate:modelValue"?: ((value:
|
|
86
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
87
87
|
}>, {
|
|
88
88
|
disabled: boolean;
|
|
89
89
|
modelValue: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
dataProvider: {
|
|
3
|
-
type: PropType<
|
|
3
|
+
type: PropType<ADataProvider>;
|
|
4
4
|
required: boolean;
|
|
5
5
|
};
|
|
6
6
|
closeOnSelect: {
|
|
@@ -40,10 +40,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
40
40
|
default: null;
|
|
41
41
|
};
|
|
42
42
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
43
|
-
"update:modelValue": (value:
|
|
43
|
+
"update:modelValue": (value: any) => any;
|
|
44
44
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
45
|
dataProvider: {
|
|
46
|
-
type: PropType<
|
|
46
|
+
type: PropType<ADataProvider>;
|
|
47
47
|
required: boolean;
|
|
48
48
|
};
|
|
49
49
|
closeOnSelect: {
|
|
@@ -83,7 +83,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
83
83
|
default: null;
|
|
84
84
|
};
|
|
85
85
|
}>> & Readonly<{
|
|
86
|
-
"onUpdate:modelValue"?: ((value:
|
|
86
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
87
87
|
}>, {
|
|
88
88
|
disabled: boolean;
|
|
89
89
|
modelValue: any;
|
|
@@ -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<any, any>;
|
|
63
|
+
isOptionsOpen: import("vue").Ref<boolean, boolean>;
|
|
64
|
+
searchtext: import("vue").Ref<string, string>;
|
|
65
|
+
selectItem: (option: ComboboxItem) => void;
|
|
66
|
+
isSelected: (option: ComboboxItem) => any;
|
|
67
|
+
getSelectedContent: () => any;
|
|
68
|
+
toggleDropdown: () => void;
|
|
69
|
+
closeDropdown: () => void;
|
|
70
|
+
filteredOptions: import("vue").ComputedRef<any>;
|
|
71
|
+
loading: any;
|
|
72
|
+
};
|
|
@@ -5,7 +5,7 @@ import { computed, useSlots } from "vue";
|
|
|
5
5
|
import KDataIteratorDefault from "../../presets/default/components/KDataIterator/KDataIterator.vue";
|
|
6
6
|
import { ADataProvider } from "@katlux/providers";
|
|
7
7
|
const props = defineProps({
|
|
8
|
-
dataProvider: { type:
|
|
8
|
+
dataProvider: { type: null, required: true },
|
|
9
9
|
visibleFields: { type: [Array, null], required: false, default: null },
|
|
10
10
|
rowActions: { type: Array, required: false, default: () => [] },
|
|
11
11
|
bulkActions: { type: Array, required: false, default: () => [] },
|
|
@@ -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: any;
|
|
19
|
+
selectAll: any;
|
|
20
|
+
};
|
|
@@ -5,7 +5,7 @@ import { computed, useSlots } from "vue";
|
|
|
5
5
|
import DatatableDefault from "../../presets/default/components/KDatatable/KDatatable.vue";
|
|
6
6
|
import { ADataProvider } from "@katlux/providers";
|
|
7
7
|
const props = defineProps({
|
|
8
|
-
dataProvider: { type:
|
|
8
|
+
dataProvider: { type: null, required: true },
|
|
9
9
|
visibleFields: { type: [Array, null], required: true, default: null },
|
|
10
10
|
rowActions: { type: Array, required: false, default: () => [] },
|
|
11
11
|
bulkActions: { type: Array, required: false, default: () => [] },
|
|
@@ -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: any;
|
|
11
|
+
selectAll: any;
|
|
12
|
+
};
|
|
@@ -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
|
};
|
|
@@ -5,7 +5,7 @@ import { computed } from "vue";
|
|
|
5
5
|
import KPaginationDefault from "../../presets/default/components/KPagination/KPagination.vue";
|
|
6
6
|
import { ADataProvider } from "@katlux/providers";
|
|
7
7
|
const props = defineProps({
|
|
8
|
-
dataProvider: { type:
|
|
8
|
+
dataProvider: { type: null, required: true }
|
|
9
9
|
});
|
|
10
10
|
const {
|
|
11
11
|
dp,
|
|
@@ -45,7 +45,7 @@ export declare const KTreeDefaultProps: {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
export declare function useKTreeLogic(props: KTreeProps): {
|
|
48
|
-
visibleRows: import("vue").ComputedRef<
|
|
48
|
+
visibleRows: import("vue").ComputedRef<any>;
|
|
49
49
|
expandedNodes: any;
|
|
50
50
|
toggleNode: (nodeId: string | number) => void;
|
|
51
51
|
};
|
|
@@ -4,7 +4,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
4
4
|
default: null;
|
|
5
5
|
};
|
|
6
6
|
dataProvider: {
|
|
7
|
-
type: PropType<
|
|
7
|
+
type: PropType<ADataProvider>;
|
|
8
8
|
required: boolean;
|
|
9
9
|
};
|
|
10
10
|
labelField: {
|
|
@@ -56,7 +56,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
56
56
|
default: null;
|
|
57
57
|
};
|
|
58
58
|
dataProvider: {
|
|
59
|
-
type: PropType<
|
|
59
|
+
type: PropType<ADataProvider>;
|
|
60
60
|
required: boolean;
|
|
61
61
|
};
|
|
62
62
|
labelField: {
|
|
@@ -4,7 +4,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
4
4
|
default: null;
|
|
5
5
|
};
|
|
6
6
|
dataProvider: {
|
|
7
|
-
type: PropType<
|
|
7
|
+
type: PropType<ADataProvider>;
|
|
8
8
|
required: boolean;
|
|
9
9
|
};
|
|
10
10
|
labelField: {
|
|
@@ -56,7 +56,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
56
56
|
default: null;
|
|
57
57
|
};
|
|
58
58
|
dataProvider: {
|
|
59
|
-
type: PropType<
|
|
59
|
+
type: PropType<ADataProvider>;
|
|
60
60
|
required: boolean;
|
|
61
61
|
};
|
|
62
62
|
labelField: {
|
|
@@ -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<any, any>;
|
|
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) => any;
|
|
72
|
+
getSelectedContent: () => any;
|
|
73
|
+
toggleDropdown: () => void;
|
|
74
|
+
closeDropdown: () => void;
|
|
75
|
+
filteredOptions: import("vue").ComputedRef<any>;
|
|
76
|
+
loading: any;
|
|
77
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
dataProvider: {
|
|
3
|
-
type: import("vue").PropType<
|
|
3
|
+
type: import("vue").PropType<ADataProvider>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
columns: {
|
|
@@ -24,7 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
24
24
|
default: boolean;
|
|
25
25
|
};
|
|
26
26
|
bulkActions: {
|
|
27
|
-
type: import("vue").PropType<
|
|
27
|
+
type: import("vue").PropType<IKDatatableAction[]>;
|
|
28
28
|
default: () => never[];
|
|
29
29
|
};
|
|
30
30
|
rowActions: {
|
|
@@ -41,7 +41,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
41
41
|
};
|
|
42
42
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
43
|
dataProvider: {
|
|
44
|
-
type: import("vue").PropType<
|
|
44
|
+
type: import("vue").PropType<ADataProvider>;
|
|
45
45
|
required: true;
|
|
46
46
|
};
|
|
47
47
|
columns: {
|
|
@@ -65,7 +65,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
67
|
bulkActions: {
|
|
68
|
-
type: import("vue").PropType<
|
|
68
|
+
type: import("vue").PropType<IKDatatableAction[]>;
|
|
69
69
|
default: () => never[];
|
|
70
70
|
};
|
|
71
71
|
rowActions: {
|
|
@@ -81,7 +81,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
-
bulkActions:
|
|
84
|
+
bulkActions: IKDatatableAction[];
|
|
85
85
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
86
86
|
cellSlots: Record<string, any>;
|
|
87
87
|
headerSlots: Record<string, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
dataProvider: {
|
|
3
|
-
type: import("vue").PropType<
|
|
3
|
+
type: import("vue").PropType<ADataProvider>;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
columns: {
|
|
@@ -24,7 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
24
24
|
default: boolean;
|
|
25
25
|
};
|
|
26
26
|
bulkActions: {
|
|
27
|
-
type: import("vue").PropType<
|
|
27
|
+
type: import("vue").PropType<IKDatatableAction[]>;
|
|
28
28
|
default: () => never[];
|
|
29
29
|
};
|
|
30
30
|
rowActions: {
|
|
@@ -41,7 +41,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
41
41
|
};
|
|
42
42
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
43
|
dataProvider: {
|
|
44
|
-
type: import("vue").PropType<
|
|
44
|
+
type: import("vue").PropType<ADataProvider>;
|
|
45
45
|
required: true;
|
|
46
46
|
};
|
|
47
47
|
columns: {
|
|
@@ -65,7 +65,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
67
|
bulkActions: {
|
|
68
|
-
type: import("vue").PropType<
|
|
68
|
+
type: import("vue").PropType<IKDatatableAction[]>;
|
|
69
69
|
default: () => never[];
|
|
70
70
|
};
|
|
71
71
|
rowActions: {
|
|
@@ -81,7 +81,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
-
bulkActions:
|
|
84
|
+
bulkActions: IKDatatableAction[];
|
|
85
85
|
rowActions: import("./KTreeView.logic.js").IRowAction[];
|
|
86
86
|
cellSlots: Record<string, any>;
|
|
87
87
|
headerSlots: Record<string, any>;
|
|
@@ -68,7 +68,7 @@ export declare const KTreeViewDefaultProps: {
|
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
export declare function useKTreeViewLogic(props: KTreeViewProps): {
|
|
71
|
-
visibleRows: import("vue").ComputedRef<
|
|
71
|
+
visibleRows: import("vue").ComputedRef<any>;
|
|
72
72
|
expandedNodes: any;
|
|
73
73
|
selectedRows: import("vue").Ref<any[], any[]>;
|
|
74
74
|
selectAll: import("vue").Ref<boolean, boolean>;
|
|
@@ -16,7 +16,7 @@ const props = defineProps({
|
|
|
16
16
|
selectedRows: { type: Array, required: true },
|
|
17
17
|
selectAll: { type: Boolean, required: true },
|
|
18
18
|
selected: { type: null, required: true },
|
|
19
|
-
dp: { type:
|
|
19
|
+
dp: { type: null, required: true },
|
|
20
20
|
doAction: { type: Function, required: true }
|
|
21
21
|
});
|
|
22
22
|
const emit = defineEmits(["update:selected"]);
|
|
@@ -24,7 +24,7 @@ import KBulkActions from "../KBulkActions/KBulkActions.vue";
|
|
|
24
24
|
import KPagination from "../KPagination/KPagination.vue";
|
|
25
25
|
import KLoader from "../../../../components/KLoader/KLoader.global.vue";
|
|
26
26
|
const props = defineProps({
|
|
27
|
-
dataProvider: { type:
|
|
27
|
+
dataProvider: { type: null, required: true },
|
|
28
28
|
visibleFields: { type: [Array, null], required: true },
|
|
29
29
|
rowActions: { type: Array, required: true },
|
|
30
30
|
bulkActions: { type: Array, required: true },
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
import { computed } from "vue";
|
|
42
42
|
import { ADataProvider } from "@katlux/providers";
|
|
43
43
|
const props = defineProps({
|
|
44
|
-
dataProvider: { type:
|
|
44
|
+
dataProvider: { type: null, required: true },
|
|
45
45
|
visibleFields: { type: [Array, null], required: true },
|
|
46
46
|
rowActions: { type: Array, required: true },
|
|
47
47
|
bulkActions: { type: Array, required: true },
|