@katlux/toolkit 0.1.0-beta.6 → 0.1.0-beta.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/module.cjs +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -0
- package/dist/runtime/components/KBulkActions/KBulkActions.logic.d.ts +9 -2
- package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
- 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 +5 -5
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +2 -2
- package/dist/runtime/components/KDatatable/KDatatable.global.vue +1 -1
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +2 -2
- 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 +4 -4
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +4 -4
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +5 -5
- package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +8 -8
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +8 -8
- 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/KDataIterator/KDataIterator.vue +1 -1
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +1 -1
- 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,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IKDatatableAction, TDataRow } from '@katlux/providers';
|
|
2
|
+
import { CFlatClientDataProvider } from '@katlux/providers';
|
|
2
3
|
export interface KBulkActionsProps {
|
|
3
4
|
bulkActions: IKDatatableAction[];
|
|
4
5
|
selectedRows: TDataRow[];
|
|
@@ -6,7 +7,13 @@ export interface KBulkActionsProps {
|
|
|
6
7
|
}
|
|
7
8
|
export declare const KBulkActionsDefaultProps: {};
|
|
8
9
|
export declare function useKBulkActionsLogic(props: KBulkActionsProps): {
|
|
9
|
-
selected:
|
|
10
|
-
|
|
10
|
+
selected: import("vue").Ref<{
|
|
11
|
+
action: Function;
|
|
12
|
+
label: string;
|
|
13
|
+
} | null, IKDatatableAction | {
|
|
14
|
+
action: Function;
|
|
15
|
+
label: string;
|
|
16
|
+
} | null>;
|
|
17
|
+
dp: CFlatClientDataProvider;
|
|
11
18
|
doAction: (action: any) => void;
|
|
12
19
|
};
|
|
@@ -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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
dataProvider: {
|
|
3
|
-
type: PropType<ADataProvider>;
|
|
3
|
+
type: PropType<import("@katlux/providers").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: import("@katlux/providers").TDataRow | import("@katlux/providers").TDataRow[] | null) => any;
|
|
44
44
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
45
|
dataProvider: {
|
|
46
|
-
type: PropType<ADataProvider>;
|
|
46
|
+
type: PropType<import("@katlux/providers").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: import("@katlux/providers").TDataRow | import("@katlux/providers").TDataRow[] | null) => 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<ADataProvider>;
|
|
3
|
+
type: PropType<import("@katlux/providers").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: import("@katlux/providers").TDataRow | import("@katlux/providers").TDataRow[] | null) => any;
|
|
44
44
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
45
|
dataProvider: {
|
|
46
|
-
type: PropType<ADataProvider>;
|
|
46
|
+
type: PropType<import("@katlux/providers").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: import("@katlux/providers").TDataRow | import("@katlux/providers").TDataRow[] | null) => any) | undefined;
|
|
87
87
|
}>, {
|
|
88
88
|
disabled: boolean;
|
|
89
89
|
modelValue: any;
|
|
@@ -59,14 +59,14 @@ export declare const KComboboxDefaultProps: {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
export declare function useKComboboxLogic(props: KComboboxProps, emit: KComboboxEmits): {
|
|
62
|
-
selectedItems: import("vue").Ref<
|
|
62
|
+
selectedItems: import("vue").Ref<TDataRow[] | null, TDataRow[] | null>;
|
|
63
63
|
isOptionsOpen: import("vue").Ref<boolean, boolean>;
|
|
64
64
|
searchtext: import("vue").Ref<string, string>;
|
|
65
65
|
selectItem: (option: ComboboxItem) => void;
|
|
66
|
-
isSelected: (option: ComboboxItem) =>
|
|
67
|
-
getSelectedContent: () =>
|
|
66
|
+
isSelected: (option: ComboboxItem) => boolean | undefined;
|
|
67
|
+
getSelectedContent: () => TDataRow[];
|
|
68
68
|
toggleDropdown: () => void;
|
|
69
69
|
closeDropdown: () => void;
|
|
70
|
-
filteredOptions: import("vue").ComputedRef<
|
|
71
|
-
loading:
|
|
70
|
+
filteredOptions: import("vue").ComputedRef<TDataRow[]>;
|
|
71
|
+
loading: import("vue").Ref<Boolean, Boolean>;
|
|
72
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: Object, 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: () => [] },
|
|
@@ -15,6 +15,6 @@ export declare const KDataIteratorDefaultProps: {
|
|
|
15
15
|
page: number;
|
|
16
16
|
};
|
|
17
17
|
export declare function useKDataIteratorLogic(props: KDataIteratorProps): {
|
|
18
|
-
selectedRows: any
|
|
19
|
-
selectAll:
|
|
18
|
+
selectedRows: import("vue").Ref<any[], any[]>;
|
|
19
|
+
selectAll: import("vue").Ref<boolean, boolean>;
|
|
20
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: Object, 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: () => [] },
|
|
@@ -7,6 +7,6 @@ export declare const KDatatableDefaultProps: {
|
|
|
7
7
|
visibleFields: null;
|
|
8
8
|
};
|
|
9
9
|
export declare function useKDatatableLogic(props: KDatatableProps): {
|
|
10
|
-
selectedRows: any
|
|
11
|
-
selectAll:
|
|
10
|
+
selectedRows: import("vue").Ref<any[], any[]>;
|
|
11
|
+
selectAll: import("vue").Ref<boolean, boolean>;
|
|
12
12
|
};
|
|
@@ -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: Object, 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<import("@katlux/providers").TDataRow[]>;
|
|
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<ADataProvider>;
|
|
7
|
+
type: PropType<import("@katlux/providers").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<ADataProvider>;
|
|
59
|
+
type: PropType<import("@katlux/providers").ADataProvider>;
|
|
60
60
|
required: boolean;
|
|
61
61
|
};
|
|
62
62
|
labelField: {
|
|
@@ -103,6 +103,8 @@ 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;
|
|
106
108
|
disabled: boolean;
|
|
107
109
|
loading: boolean;
|
|
108
110
|
modelValue: any;
|
|
@@ -112,8 +114,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
112
114
|
closeOnSelect: boolean;
|
|
113
115
|
multiSelect: boolean;
|
|
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;
|
|
@@ -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<ADataProvider>;
|
|
7
|
+
type: PropType<import("@katlux/providers").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<ADataProvider>;
|
|
59
|
+
type: PropType<import("@katlux/providers").ADataProvider>;
|
|
60
60
|
required: boolean;
|
|
61
61
|
};
|
|
62
62
|
labelField: {
|
|
@@ -103,6 +103,8 @@ 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;
|
|
106
108
|
disabled: boolean;
|
|
107
109
|
loading: boolean;
|
|
108
110
|
modelValue: any;
|
|
@@ -112,8 +114,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
112
114
|
closeOnSelect: boolean;
|
|
113
115
|
multiSelect: boolean;
|
|
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;
|
|
@@ -64,14 +64,14 @@ export declare const KTreePickerDefaultProps: {
|
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
export declare function useKTreePickerLogic(props: KTreePickerProps, emit: any): {
|
|
67
|
-
selectedItems: import("vue").Ref<
|
|
67
|
+
selectedItems: import("vue").Ref<import("@katlux/providers").TDataRow[] | null, import("@katlux/providers").TDataRow[] | null>;
|
|
68
68
|
isOptionsOpen: import("vue").Ref<boolean, boolean>;
|
|
69
69
|
searchtext: import("vue").Ref<string, string>;
|
|
70
70
|
selectItem: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => void;
|
|
71
|
-
isSelected: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) =>
|
|
72
|
-
getSelectedContent: () =>
|
|
71
|
+
isSelected: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => boolean | undefined;
|
|
72
|
+
getSelectedContent: () => import("@katlux/providers").TDataRow[];
|
|
73
73
|
toggleDropdown: () => void;
|
|
74
74
|
closeDropdown: () => void;
|
|
75
|
-
filteredOptions: import("vue").ComputedRef<
|
|
76
|
-
loading:
|
|
75
|
+
filteredOptions: import("vue").ComputedRef<import("@katlux/providers").TDataRow[]>;
|
|
76
|
+
loading: import("vue").Ref<Boolean, Boolean>;
|
|
77
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<ADataProvider>;
|
|
3
|
+
type: import("vue").PropType<import("@katlux/providers").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<IKDatatableAction[]>;
|
|
27
|
+
type: import("vue").PropType<import("@katlux/providers").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<ADataProvider>;
|
|
44
|
+
type: import("vue").PropType<import("@katlux/providers").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<IKDatatableAction[]>;
|
|
68
|
+
type: import("vue").PropType<import("@katlux/providers").IKDatatableAction[]>;
|
|
69
69
|
default: () => never[];
|
|
70
70
|
};
|
|
71
71
|
rowActions: {
|
|
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
-
|
|
84
|
+
parentKey: string;
|
|
85
|
+
idKey: string;
|
|
86
|
+
expandedByDefault: boolean;
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
dataProvider: {
|
|
3
|
-
type: import("vue").PropType<ADataProvider>;
|
|
3
|
+
type: import("vue").PropType<import("@katlux/providers").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<IKDatatableAction[]>;
|
|
27
|
+
type: import("vue").PropType<import("@katlux/providers").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<ADataProvider>;
|
|
44
|
+
type: import("vue").PropType<import("@katlux/providers").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<IKDatatableAction[]>;
|
|
68
|
+
type: import("vue").PropType<import("@katlux/providers").IKDatatableAction[]>;
|
|
69
69
|
default: () => never[];
|
|
70
70
|
};
|
|
71
71
|
rowActions: {
|
|
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
81
81
|
default: () => {};
|
|
82
82
|
};
|
|
83
83
|
}>> & Readonly<{}>, {
|
|
84
|
-
|
|
84
|
+
parentKey: string;
|
|
85
|
+
idKey: string;
|
|
86
|
+
expandedByDefault: boolean;
|
|
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;
|
|
@@ -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<import("@katlux/providers").TDataRow[]>;
|
|
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: Object, 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: Object, 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: Object, required: true },
|
|
45
45
|
visibleFields: { type: [Array, null], required: true },
|
|
46
46
|
rowActions: { type: Array, required: true },
|
|
47
47
|
bulkActions: { type: Array, required: true },
|