@katlux/toolkit 0.1.1-alpha.115 → 0.1.1-alpha.117
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/bin/cli.mjs +72 -0
- package/bin/create-preset.mjs +233 -0
- package/dist/compiled/composables/useDataProvider.mjs +176 -21
- package/dist/compiled/composables/useDataProvider.spec.mjs +52 -0
- package/dist/module.json +1 -1
- package/dist/runtime/components/KAccordion/KAccordion.global.d.vue.ts +23 -2
- package/dist/runtime/components/KAccordion/KAccordion.global.vue +7 -1
- package/dist/runtime/components/KAccordion/KAccordion.global.vue.d.ts +23 -2
- package/dist/runtime/components/KAccordion/KAccordion.logic.d.ts +12 -1
- package/dist/runtime/components/KAccordion/KAccordion.logic.js +32 -4
- package/dist/runtime/components/KAlert/KAlert.global.d.vue.ts +4 -1
- package/dist/runtime/components/KAlert/KAlert.global.vue +8 -2
- package/dist/runtime/components/KAlert/KAlert.global.vue.d.ts +4 -1
- package/dist/runtime/components/KAlert/KAlert.logic.d.ts +6 -1
- package/dist/runtime/components/KAlert/KAlert.logic.js +12 -2
- 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/KCalendar/KCalendar.global.d.vue.ts +11 -0
- package/dist/runtime/components/KCalendar/KCalendar.global.vue +1 -1
- package/dist/runtime/components/KCalendar/KCalendar.global.vue.d.ts +11 -0
- package/dist/runtime/components/KCalendar/KCalendar.logic.d.ts +6 -0
- package/dist/runtime/components/KCalendar/KCalendar.logic.js +13 -4
- package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +1 -1
- package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +1 -1
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +40 -5
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +11 -2
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +40 -5
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +18 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +24 -2
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +12 -12
- package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +12 -12
- package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +3 -3
- package/dist/runtime/components/KContextMenu/KContextMenu.global.d.vue.ts +1 -1
- package/dist/runtime/components/KContextMenu/KContextMenu.global.vue.d.ts +1 -1
- package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +30 -2
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue +29 -4
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +30 -2
- package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +21 -2
- package/dist/runtime/components/KDatatable/KDataIterator.logic.js +66 -31
- package/dist/runtime/components/KDatatable/KDatatable.global.d.vue.ts +35 -3
- package/dist/runtime/components/KDatatable/KDatatable.global.vue +44 -4
- package/dist/runtime/components/KDatatable/KDatatable.global.vue.d.ts +35 -3
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +27 -2
- package/dist/runtime/components/KDatatable/KDatatable.logic.js +77 -5
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +8 -8
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +8 -8
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +2 -2
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +8 -8
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +8 -8
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.d.ts +2 -2
- package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +2 -2
- package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +2 -2
- package/dist/runtime/components/KGantt/KGantt.global.d.vue.ts +8 -8
- package/dist/runtime/components/KGantt/KGantt.global.vue.d.ts +8 -8
- package/dist/runtime/components/KGantt/KGantt.logic.d.ts +4 -4
- 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/KHourSelect/KHourSelect.global.d.vue.ts +1 -1
- package/dist/runtime/components/KHourSelect/KHourSelect.global.vue.d.ts +1 -1
- 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/KPagination/KPagination.global.d.vue.ts +24 -2
- package/dist/runtime/components/KPagination/KPagination.global.vue +8 -2
- package/dist/runtime/components/KPagination/KPagination.global.vue.d.ts +24 -2
- package/dist/runtime/components/KPagination/KPagination.logic.d.ts +18 -4
- package/dist/runtime/components/KPagination/KPagination.logic.js +59 -10
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.d.vue.ts +15 -4
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue +22 -4
- package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue.d.ts +15 -4
- package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.d.ts +6 -0
- package/dist/runtime/components/KRangeSlider/KRangeSlider.logic.js +12 -6
- package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +14 -3
- package/dist/runtime/components/KSlider/KSlider.global.vue +9 -3
- package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +14 -3
- package/dist/runtime/components/KSlider/KSlider.logic.d.ts +5 -0
- package/dist/runtime/components/KSlider/KSlider.logic.js +5 -1
- package/dist/runtime/components/KTabs/KTabItem.global.d.vue.ts +18 -0
- package/dist/runtime/components/KTabs/KTabItem.global.vue.d.ts +18 -0
- package/dist/runtime/components/KTabs/KTabItem.logic.d.ts +11 -0
- package/dist/runtime/components/KTabs/KTabItem.logic.js +10 -1
- package/dist/runtime/components/KTabs/KTabs.global.d.vue.ts +35 -1
- package/dist/runtime/components/KTabs/KTabs.global.vue +13 -2
- package/dist/runtime/components/KTabs/KTabs.global.vue.d.ts +35 -1
- package/dist/runtime/components/KTabs/KTabs.logic.d.ts +22 -2
- package/dist/runtime/components/KTabs/KTabs.logic.js +118 -4
- package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +1 -1
- package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +1 -1
- package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +2 -2
- package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +2 -2
- package/dist/runtime/components/KToast/KToast.global.d.vue.ts +3 -3
- package/dist/runtime/components/KToast/KToast.global.vue.d.ts +3 -3
- package/dist/runtime/components/KTree/KTree.global.d.vue.ts +50 -4
- package/dist/runtime/components/KTree/KTree.global.vue +13 -2
- package/dist/runtime/components/KTree/KTree.global.vue.d.ts +50 -4
- package/dist/runtime/components/KTree/KTree.logic.d.ts +26 -2
- package/dist/runtime/components/KTree/KTree.logic.js +41 -6
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +30 -8
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +1 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +30 -8
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +16 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +8 -0
- package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +7 -3
- package/dist/runtime/components/KTreeView/KTreeView.global.vue +5 -2
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +7 -3
- package/dist/runtime/components/KTreeView/KTreeView.logic.d.ts +4 -1
- package/dist/runtime/components/KTreeView/KTreeView.logic.js +7 -1
- package/dist/runtime/composables/useDataProvider.d.ts +15 -4
- package/dist/runtime/composables/useDataProvider.js +176 -21
- package/dist/runtime/presets/default/assets/scss/css-variables.css +1 -0
- package/dist/runtime/presets/default/assets/scss/css-variables.scss +1 -0
- package/dist/runtime/presets/default/assets/scss/index.css +5 -3
- package/dist/runtime/presets/default/assets/scss/index.scss +4 -3
- package/dist/runtime/presets/default/components/KAlert/KAlert.d.vue.ts +3 -1
- package/dist/runtime/presets/default/components/KAlert/KAlert.vue +3 -3
- package/dist/runtime/presets/default/components/KAlert/KAlert.vue.d.ts +3 -1
- package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue +86 -4
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.d.vue.ts +6 -0
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +5 -1
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue.d.ts +6 -0
- package/dist/runtime/presets/default/components/KRangeSlider/KRangeSlider.vue +9 -0
- package/dist/runtime/presets/default/components/KSlider/KSlider.vue +9 -0
- package/dist/runtime/presets/default/components/KTabs/KTabs.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KTabs/KTabs.vue +23 -0
- package/dist/runtime/presets/default/components/KTabs/KTabs.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KToast/KToast.d.vue.ts +2 -2
- package/dist/runtime/presets/default/components/KToast/KToast.vue.d.ts +2 -2
- package/dist/runtime/presets/default/components/KTree/KTree.d.vue.ts +1 -1
- package/dist/runtime/presets/default/components/KTree/KTree.vue.d.ts +1 -1
- package/package.json +5 -1
|
@@ -12,6 +12,7 @@ export interface KComboboxProps {
|
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
searchbox?: boolean;
|
|
14
14
|
searchPlaceholder?: string;
|
|
15
|
+
searchtext?: string;
|
|
15
16
|
visibleFields?: Array<String> | null;
|
|
16
17
|
labelField: string;
|
|
17
18
|
valueField?: string;
|
|
@@ -28,6 +29,13 @@ export interface KComboboxProps {
|
|
|
28
29
|
export interface KComboboxEmits {
|
|
29
30
|
(e: 'update:modelValue', value: any): void;
|
|
30
31
|
(e: 'update:isOptionsOpen', value: boolean): void;
|
|
32
|
+
(e: 'update:searchtext', value: string): void;
|
|
33
|
+
(e: 'scroll-state-change', state: {
|
|
34
|
+
loadedCount: number;
|
|
35
|
+
hasMore: boolean;
|
|
36
|
+
lastAppendedPage: number;
|
|
37
|
+
totalCount: number;
|
|
38
|
+
}): void;
|
|
31
39
|
}
|
|
32
40
|
export declare const KComboboxDefaultProps: {
|
|
33
41
|
label: {
|
|
@@ -66,6 +74,10 @@ export declare const KComboboxDefaultProps: {
|
|
|
66
74
|
type: StringConstructor;
|
|
67
75
|
default: string;
|
|
68
76
|
};
|
|
77
|
+
searchtext: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
69
81
|
visibleFields: {
|
|
70
82
|
type: PropType<Array<String>>;
|
|
71
83
|
default: null;
|
|
@@ -137,4 +149,10 @@ export declare function useKComboboxLogic(props: KComboboxProps, emit: KCombobox
|
|
|
137
149
|
virtualScroll: boolean;
|
|
138
150
|
itemHeight: number;
|
|
139
151
|
buffer: number;
|
|
152
|
+
virtualScrollState: import("vue").ComputedRef<{
|
|
153
|
+
loadedCount: number;
|
|
154
|
+
hasMore: boolean;
|
|
155
|
+
lastAppendedPage: number;
|
|
156
|
+
totalCount: number;
|
|
157
|
+
}>;
|
|
140
158
|
};
|
|
@@ -40,6 +40,10 @@ export const KComboboxDefaultProps = {
|
|
|
40
40
|
type: String,
|
|
41
41
|
default: "Search..."
|
|
42
42
|
},
|
|
43
|
+
searchtext: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: ""
|
|
46
|
+
},
|
|
43
47
|
visibleFields: {
|
|
44
48
|
type: Array,
|
|
45
49
|
default: null
|
|
@@ -102,11 +106,28 @@ export function useKComboboxLogic(props, emit) {
|
|
|
102
106
|
const selectedItems = ref(null);
|
|
103
107
|
const isOptionsOpen = ref(false);
|
|
104
108
|
const highlightedIndex = ref(-1);
|
|
105
|
-
const searchtext = ref("");
|
|
109
|
+
const searchtext = ref(props.searchtext || "");
|
|
106
110
|
const loadedOptions = ref([]);
|
|
107
111
|
const filteredOptions = computed(() => loadedOptions.value);
|
|
108
112
|
const lastAppendedPage = ref(1);
|
|
109
113
|
const hasMorePages = ref(true);
|
|
114
|
+
watch(() => props.searchtext, (val) => {
|
|
115
|
+
if (val !== void 0 && val !== searchtext.value) {
|
|
116
|
+
searchtext.value = val;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
watch(searchtext, (val) => {
|
|
120
|
+
emit("update:searchtext", val);
|
|
121
|
+
});
|
|
122
|
+
const virtualScrollState = computed(() => ({
|
|
123
|
+
loadedCount: loadedOptions.value.length,
|
|
124
|
+
hasMore: hasMorePages.value,
|
|
125
|
+
lastAppendedPage: lastAppendedPage.value,
|
|
126
|
+
totalCount: dpRowCount.value ?? 0
|
|
127
|
+
}));
|
|
128
|
+
watch(virtualScrollState, (state) => {
|
|
129
|
+
emit("scroll-state-change", state);
|
|
130
|
+
}, { deep: true });
|
|
110
131
|
function getItemKey(item, index) {
|
|
111
132
|
if (!item) return index;
|
|
112
133
|
if (props.valueField && item[props.valueField] !== void 0) return item[props.valueField];
|
|
@@ -487,6 +508,7 @@ export function useKComboboxLogic(props, emit) {
|
|
|
487
508
|
loadMore,
|
|
488
509
|
virtualScroll: props.virtualScroll ?? true,
|
|
489
510
|
itemHeight: props.itemHeight ?? 40,
|
|
490
|
-
buffer: props.buffer ?? 5
|
|
511
|
+
buffer: props.buffer ?? 5,
|
|
512
|
+
virtualScrollState
|
|
491
513
|
};
|
|
492
514
|
}
|
|
@@ -5,11 +5,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
selectionValue: {
|
|
8
|
-
type: (
|
|
8
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
9
9
|
default: null;
|
|
10
10
|
};
|
|
11
11
|
inputValue: {
|
|
12
|
-
type: (
|
|
12
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
15
|
modelValue: {
|
|
@@ -99,11 +99,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
99
99
|
default: string;
|
|
100
100
|
};
|
|
101
101
|
selectionValue: {
|
|
102
|
-
type: (
|
|
102
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
103
103
|
default: null;
|
|
104
104
|
};
|
|
105
105
|
inputValue: {
|
|
106
|
-
type: (
|
|
106
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
107
107
|
default: string;
|
|
108
108
|
};
|
|
109
109
|
modelValue: {
|
|
@@ -188,23 +188,23 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
188
188
|
"onUpdate:selectionValue"?: ((value: any) => any) | undefined;
|
|
189
189
|
"onUpdate:inputValue"?: ((value: any) => any) | undefined;
|
|
190
190
|
}>, {
|
|
191
|
+
modelValue: import("./KCompositeInput.logic.js").ICompositeItem[];
|
|
191
192
|
type: import("./KCompositeInput.logic.js").CompositeInputType;
|
|
192
193
|
label: string;
|
|
193
194
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
194
195
|
validationText: string;
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
searchbox: boolean;
|
|
197
|
+
labelField: string;
|
|
198
|
+
placeholder: string;
|
|
199
|
+
teleportTo: string;
|
|
200
|
+
mask: string;
|
|
201
|
+
valueField: string;
|
|
202
|
+
inputType: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
|
|
197
203
|
selectionValue: string | number | Record<string, any> | unknown[];
|
|
198
204
|
inputValue: string | number | Record<string, any> | unknown[];
|
|
199
205
|
selectionSide: import("./KCompositeInput.logic.js").SelectionSide;
|
|
200
|
-
mask: string;
|
|
201
|
-
labelField: string;
|
|
202
|
-
valueField: string;
|
|
203
|
-
placeholder: string;
|
|
204
206
|
inputPlaceholder: string;
|
|
205
|
-
searchbox: boolean;
|
|
206
207
|
showClear: boolean;
|
|
207
|
-
teleportTo: string;
|
|
208
208
|
inputConfigField: string;
|
|
209
209
|
validateAll: boolean;
|
|
210
210
|
inputFormat: string;
|
|
@@ -5,11 +5,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
selectionValue: {
|
|
8
|
-
type: (
|
|
8
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
9
9
|
default: null;
|
|
10
10
|
};
|
|
11
11
|
inputValue: {
|
|
12
|
-
type: (
|
|
12
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
15
|
modelValue: {
|
|
@@ -99,11 +99,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
99
99
|
default: string;
|
|
100
100
|
};
|
|
101
101
|
selectionValue: {
|
|
102
|
-
type: (
|
|
102
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
103
103
|
default: null;
|
|
104
104
|
};
|
|
105
105
|
inputValue: {
|
|
106
|
-
type: (
|
|
106
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
107
107
|
default: string;
|
|
108
108
|
};
|
|
109
109
|
modelValue: {
|
|
@@ -188,23 +188,23 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
188
188
|
"onUpdate:selectionValue"?: ((value: any) => any) | undefined;
|
|
189
189
|
"onUpdate:inputValue"?: ((value: any) => any) | undefined;
|
|
190
190
|
}>, {
|
|
191
|
+
modelValue: import("./KCompositeInput.logic.js").ICompositeItem[];
|
|
191
192
|
type: import("./KCompositeInput.logic.js").CompositeInputType;
|
|
192
193
|
label: string;
|
|
193
194
|
validation: "error" | "success" | "warning" | null | undefined;
|
|
194
195
|
validationText: string;
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
searchbox: boolean;
|
|
197
|
+
labelField: string;
|
|
198
|
+
placeholder: string;
|
|
199
|
+
teleportTo: string;
|
|
200
|
+
mask: string;
|
|
201
|
+
valueField: string;
|
|
202
|
+
inputType: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
|
|
197
203
|
selectionValue: string | number | Record<string, any> | unknown[];
|
|
198
204
|
inputValue: string | number | Record<string, any> | unknown[];
|
|
199
205
|
selectionSide: import("./KCompositeInput.logic.js").SelectionSide;
|
|
200
|
-
mask: string;
|
|
201
|
-
labelField: string;
|
|
202
|
-
valueField: string;
|
|
203
|
-
placeholder: string;
|
|
204
206
|
inputPlaceholder: string;
|
|
205
|
-
searchbox: boolean;
|
|
206
207
|
showClear: boolean;
|
|
207
|
-
teleportTo: string;
|
|
208
208
|
inputConfigField: string;
|
|
209
209
|
validateAll: boolean;
|
|
210
210
|
inputFormat: string;
|
|
@@ -73,11 +73,11 @@ export declare const KCompositeInputDefaultProps: {
|
|
|
73
73
|
default: string;
|
|
74
74
|
};
|
|
75
75
|
selectionValue: {
|
|
76
|
-
type: (
|
|
76
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
77
77
|
default: null;
|
|
78
78
|
};
|
|
79
79
|
inputValue: {
|
|
80
|
-
type: (
|
|
80
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
81
81
|
default: string;
|
|
82
82
|
};
|
|
83
83
|
modelValue: {
|
|
@@ -176,7 +176,7 @@ export declare function useKCompositeInputLogic(props: KCompositeInputProps, emi
|
|
|
176
176
|
modelValue: any;
|
|
177
177
|
'onUpdate:modelValue': (val: any) => any;
|
|
178
178
|
placeholder: string | undefined;
|
|
179
|
-
type: "number" | "
|
|
179
|
+
type: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
|
|
180
180
|
mask: string | undefined;
|
|
181
181
|
showClear: boolean | undefined;
|
|
182
182
|
}>;
|
|
@@ -46,8 +46,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
46
46
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
47
47
|
}>, {
|
|
48
48
|
isOpen: boolean;
|
|
49
|
-
x: number;
|
|
50
49
|
teleportTo: string;
|
|
50
|
+
x: number;
|
|
51
51
|
y: number;
|
|
52
52
|
target: string | HTMLElement;
|
|
53
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -46,8 +46,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
46
46
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
47
47
|
}>, {
|
|
48
48
|
isOpen: boolean;
|
|
49
|
-
x: number;
|
|
50
49
|
teleportTo: string;
|
|
50
|
+
x: number;
|
|
51
51
|
y: number;
|
|
52
52
|
target: string | HTMLElement;
|
|
53
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -8,12 +8,40 @@ interface Props {
|
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
search?: string;
|
|
10
10
|
itemsPerPage?: number;
|
|
11
|
+
pageSize?: number;
|
|
11
12
|
page?: number;
|
|
13
|
+
currentPage?: number;
|
|
14
|
+
selectedRows?: any[];
|
|
15
|
+
selectAll?: boolean;
|
|
12
16
|
}
|
|
13
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
"update:page": (value: number) => any;
|
|
19
|
+
"update:currentPage": (value: number) => any;
|
|
20
|
+
"update:itemsPerPage": (value: number) => any;
|
|
21
|
+
"update:pageSize": (value: number) => any;
|
|
22
|
+
"update:search": (value: string) => any;
|
|
23
|
+
"update:selectedRows": (value: any[]) => any;
|
|
24
|
+
"update:selectAll": (value: boolean) => any;
|
|
25
|
+
"page-change": (value: number) => any;
|
|
26
|
+
"search-change": (value: string) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
28
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
29
|
+
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
30
|
+
"onUpdate:itemsPerPage"?: ((value: number) => any) | undefined;
|
|
31
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
32
|
+
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
33
|
+
"onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
|
|
34
|
+
"onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
|
|
35
|
+
"onPage-change"?: ((value: number) => any) | undefined;
|
|
36
|
+
"onSearch-change"?: ((value: string) => any) | undefined;
|
|
37
|
+
}>, {
|
|
14
38
|
search: string;
|
|
15
|
-
loading: boolean;
|
|
16
39
|
bulkActions: IKDatatableAction[];
|
|
40
|
+
selectedRows: any[];
|
|
41
|
+
selectAll: boolean;
|
|
42
|
+
loading: boolean;
|
|
43
|
+
currentPage: number;
|
|
44
|
+
pageSize: number;
|
|
17
45
|
visibleFields: Array<string> | null;
|
|
18
46
|
rowActions: IKDatatableAction[];
|
|
19
47
|
itemsPerPage: number;
|
|
@@ -12,9 +12,14 @@ const props = defineProps({
|
|
|
12
12
|
loading: { type: Boolean, required: false, default: false },
|
|
13
13
|
search: { type: String, required: false, default: "" },
|
|
14
14
|
itemsPerPage: { type: Number, required: false, default: 10 },
|
|
15
|
-
|
|
15
|
+
pageSize: { type: Number, required: false, default: void 0 },
|
|
16
|
+
page: { type: Number, required: false, default: 1 },
|
|
17
|
+
currentPage: { type: Number, required: false, default: void 0 },
|
|
18
|
+
selectedRows: { type: Array, required: false, default: void 0 },
|
|
19
|
+
selectAll: { type: Boolean, required: false, default: void 0 }
|
|
16
20
|
});
|
|
17
|
-
const
|
|
21
|
+
const emit = defineEmits(["update:page", "update:currentPage", "update:itemsPerPage", "update:pageSize", "update:search", "update:selectedRows", "update:selectAll", "page-change", "search-change"]);
|
|
22
|
+
const { selectedRows, selectAll, currentPage, pageSize, setCurrentPage, setPageSize } = useKDataIteratorLogic(props, emit);
|
|
18
23
|
const slots = useSlots();
|
|
19
24
|
const mergedSlots = computed(() => ({
|
|
20
25
|
...slots
|
|
@@ -29,15 +34,32 @@ const templateProps = computed(() => ({
|
|
|
29
34
|
selectAll: selectAll.value,
|
|
30
35
|
loading: props.loading,
|
|
31
36
|
search: props.search,
|
|
32
|
-
itemsPerPage:
|
|
33
|
-
page:
|
|
37
|
+
itemsPerPage: pageSize.value,
|
|
38
|
+
page: currentPage.value,
|
|
34
39
|
slots: mergedSlots.value
|
|
35
40
|
}));
|
|
36
41
|
const updateSelectedRows = (val) => {
|
|
37
42
|
selectedRows.value = val;
|
|
43
|
+
emit("update:selectedRows", val);
|
|
38
44
|
};
|
|
39
45
|
const updateSelectAll = (val) => {
|
|
40
46
|
selectAll.value = val;
|
|
47
|
+
emit("update:selectAll", val);
|
|
48
|
+
};
|
|
49
|
+
const updatePage = (val) => {
|
|
50
|
+
setCurrentPage(val);
|
|
51
|
+
emit("update:page", val);
|
|
52
|
+
emit("update:currentPage", val);
|
|
53
|
+
emit("page-change", val);
|
|
54
|
+
};
|
|
55
|
+
const updateItemsPerPage = (val) => {
|
|
56
|
+
setPageSize(val);
|
|
57
|
+
emit("update:itemsPerPage", val);
|
|
58
|
+
emit("update:pageSize", val);
|
|
59
|
+
};
|
|
60
|
+
const updateSearch = (val) => {
|
|
61
|
+
emit("update:search", val);
|
|
62
|
+
emit("search-change", val);
|
|
41
63
|
};
|
|
42
64
|
</script>
|
|
43
65
|
|
|
@@ -47,6 +69,9 @@ component(
|
|
|
47
69
|
v-bind="templateProps"
|
|
48
70
|
@update:selectedRows="updateSelectedRows"
|
|
49
71
|
@update:selectAll="updateSelectAll"
|
|
72
|
+
@update:page="updatePage"
|
|
73
|
+
@update:itemsPerPage="updateItemsPerPage"
|
|
74
|
+
@update:search="updateSearch"
|
|
50
75
|
)
|
|
51
76
|
template(v-for="(_, slot) in $slots" #[slot]="scope")
|
|
52
77
|
slot(:name="slot" v-bind="scope")
|
|
@@ -8,12 +8,40 @@ interface Props {
|
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
search?: string;
|
|
10
10
|
itemsPerPage?: number;
|
|
11
|
+
pageSize?: number;
|
|
11
12
|
page?: number;
|
|
13
|
+
currentPage?: number;
|
|
14
|
+
selectedRows?: any[];
|
|
15
|
+
selectAll?: boolean;
|
|
12
16
|
}
|
|
13
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
"update:page": (value: number) => any;
|
|
19
|
+
"update:currentPage": (value: number) => any;
|
|
20
|
+
"update:itemsPerPage": (value: number) => any;
|
|
21
|
+
"update:pageSize": (value: number) => any;
|
|
22
|
+
"update:search": (value: string) => any;
|
|
23
|
+
"update:selectedRows": (value: any[]) => any;
|
|
24
|
+
"update:selectAll": (value: boolean) => any;
|
|
25
|
+
"page-change": (value: number) => any;
|
|
26
|
+
"search-change": (value: string) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
28
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
29
|
+
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
30
|
+
"onUpdate:itemsPerPage"?: ((value: number) => any) | undefined;
|
|
31
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
32
|
+
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
33
|
+
"onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
|
|
34
|
+
"onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
|
|
35
|
+
"onPage-change"?: ((value: number) => any) | undefined;
|
|
36
|
+
"onSearch-change"?: ((value: string) => any) | undefined;
|
|
37
|
+
}>, {
|
|
14
38
|
search: string;
|
|
15
|
-
loading: boolean;
|
|
16
39
|
bulkActions: IKDatatableAction[];
|
|
40
|
+
selectedRows: any[];
|
|
41
|
+
selectAll: boolean;
|
|
42
|
+
loading: boolean;
|
|
43
|
+
currentPage: number;
|
|
44
|
+
pageSize: number;
|
|
17
45
|
visibleFields: Array<string> | null;
|
|
18
46
|
rowActions: IKDatatableAction[];
|
|
19
47
|
itemsPerPage: number;
|
|
@@ -6,8 +6,23 @@ export interface KDataIteratorProps {
|
|
|
6
6
|
loading?: boolean;
|
|
7
7
|
search?: string;
|
|
8
8
|
itemsPerPage?: number;
|
|
9
|
+
pageSize?: number;
|
|
9
10
|
page?: number;
|
|
11
|
+
currentPage?: number;
|
|
12
|
+
selectedRows?: any[];
|
|
13
|
+
selectAll?: boolean;
|
|
10
14
|
}
|
|
15
|
+
export type KDataIteratorEmits = {
|
|
16
|
+
(e: 'update:page', page: number): void;
|
|
17
|
+
(e: 'update:currentPage', page: number): void;
|
|
18
|
+
(e: 'update:itemsPerPage', size: number): void;
|
|
19
|
+
(e: 'update:pageSize', size: number): void;
|
|
20
|
+
(e: 'update:search', query: string): void;
|
|
21
|
+
(e: 'update:selectedRows', rows: any[]): void;
|
|
22
|
+
(e: 'update:selectAll', selectAll: boolean): void;
|
|
23
|
+
(e: 'page-change', page: number): void;
|
|
24
|
+
(e: 'search-change', query: string): void;
|
|
25
|
+
};
|
|
11
26
|
export declare const KDataIteratorDefaultProps: {
|
|
12
27
|
visibleFields: null;
|
|
13
28
|
loading: boolean;
|
|
@@ -15,10 +30,14 @@ export declare const KDataIteratorDefaultProps: {
|
|
|
15
30
|
itemsPerPage: number;
|
|
16
31
|
page: number;
|
|
17
32
|
};
|
|
18
|
-
export declare function useKDataIteratorLogic(props: KDataIteratorProps): {
|
|
33
|
+
export declare function useKDataIteratorLogic(props: KDataIteratorProps, emit?: KDataIteratorEmits): {
|
|
19
34
|
selectedRows: Ref<any[], any[]>;
|
|
20
35
|
selectAll: Ref<boolean, boolean>;
|
|
21
|
-
pageData:
|
|
36
|
+
pageData: import("vue").ComputedRef<any[]>;
|
|
37
|
+
currentPage: Ref<number, number>;
|
|
38
|
+
pageSize: Ref<number, number>;
|
|
22
39
|
loading: Ref<boolean, boolean>;
|
|
23
40
|
initialLoad: Ref<boolean, boolean>;
|
|
41
|
+
setCurrentPage: (page: number) => void;
|
|
42
|
+
setPageSize: (size: number) => void;
|
|
24
43
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { watch, computed, isRef } from "vue";
|
|
1
|
+
import { ref, watch, computed, isRef } from "vue";
|
|
2
2
|
import { useDataProvider } from "../../composables/useDataProvider.js";
|
|
3
3
|
export const KDataIteratorDefaultProps = {
|
|
4
4
|
visibleFields: null,
|
|
@@ -7,10 +7,21 @@ export const KDataIteratorDefaultProps = {
|
|
|
7
7
|
itemsPerPage: 10,
|
|
8
8
|
page: 1
|
|
9
9
|
};
|
|
10
|
-
export function useKDataIteratorLogic(props) {
|
|
11
|
-
const {
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
export function useKDataIteratorLogic(props, emit) {
|
|
11
|
+
const {
|
|
12
|
+
pageData,
|
|
13
|
+
selectedRows: dpSelectedRows,
|
|
14
|
+
selectAll: dpSelectAll,
|
|
15
|
+
currentPage: dpCurrentPage,
|
|
16
|
+
pageSize: dpPageSize,
|
|
17
|
+
loading: dpLoading,
|
|
18
|
+
initialLoad: dpInitialLoad,
|
|
19
|
+
setCurrentPage,
|
|
20
|
+
setPageSize,
|
|
21
|
+
setFilter
|
|
22
|
+
} = useDataProvider(props.dataProvider);
|
|
23
|
+
const selectedRows = isRef(props.dataProvider?.selectedRows) ? props.dataProvider.selectedRows : props.selectedRows !== void 0 ? ref(props.selectedRows) : dpSelectedRows;
|
|
24
|
+
const selectAll = isRef(props.dataProvider?.selectAll) ? props.dataProvider.selectAll : props.selectAll !== void 0 ? ref(props.selectAll) : dpSelectAll;
|
|
14
25
|
const idKey = props.dataProvider?.idKey || "id";
|
|
15
26
|
const getRowId = (row) => row?.[idKey] ?? row?.id ?? row;
|
|
16
27
|
let isInternalUpdating = false;
|
|
@@ -50,6 +61,45 @@ export function useKDataIteratorLogic(props) {
|
|
|
50
61
|
}
|
|
51
62
|
}
|
|
52
63
|
};
|
|
64
|
+
watch([() => props.page, () => props.currentPage], ([p, cp]) => {
|
|
65
|
+
const targetPage = p ?? cp;
|
|
66
|
+
if (targetPage !== void 0 && targetPage !== dpCurrentPage.value) {
|
|
67
|
+
setCurrentPage(targetPage);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
watch([() => props.itemsPerPage, () => props.pageSize], ([ipp, ps]) => {
|
|
71
|
+
const targetSize = ipp ?? ps;
|
|
72
|
+
if (targetSize !== void 0 && targetSize !== dpPageSize.value) {
|
|
73
|
+
setPageSize(targetSize);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
watch(() => props.search, (newVal) => {
|
|
77
|
+
if (newVal !== void 0) {
|
|
78
|
+
emit?.("update:search", newVal);
|
|
79
|
+
emit?.("search-change", newVal);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
watch(() => props.selectedRows, (val) => {
|
|
83
|
+
if (val !== void 0 && val !== selectedRows.value) {
|
|
84
|
+
selectedRows.value = val;
|
|
85
|
+
syncToProvider();
|
|
86
|
+
}
|
|
87
|
+
}, { deep: true });
|
|
88
|
+
watch(() => props.selectAll, (val) => {
|
|
89
|
+
if (val !== void 0 && val !== selectAll.value) {
|
|
90
|
+
selectAll.value = val;
|
|
91
|
+
syncToProvider();
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
watch(dpCurrentPage, (newVal) => {
|
|
95
|
+
emit?.("update:page", newVal);
|
|
96
|
+
emit?.("update:currentPage", newVal);
|
|
97
|
+
emit?.("page-change", newVal);
|
|
98
|
+
});
|
|
99
|
+
watch(dpPageSize, (newVal) => {
|
|
100
|
+
emit?.("update:itemsPerPage", newVal);
|
|
101
|
+
emit?.("update:pageSize", newVal);
|
|
102
|
+
});
|
|
53
103
|
watch(() => selectAll.value, (newVal) => {
|
|
54
104
|
if (isInternalUpdating) return;
|
|
55
105
|
const currentRows = pageRows.value;
|
|
@@ -61,6 +111,8 @@ export function useKDataIteratorLogic(props) {
|
|
|
61
111
|
const newSelections = currentRows.filter((r) => !currentSelectedIds.has(getRowId(r)));
|
|
62
112
|
selectedRows.value = [...selectedRows.value, ...newSelections];
|
|
63
113
|
}
|
|
114
|
+
emit?.("update:selectedRows", selectedRows.value);
|
|
115
|
+
emit?.("update:selectAll", newVal);
|
|
64
116
|
syncToProvider();
|
|
65
117
|
});
|
|
66
118
|
watch([pageRows, () => selectedRows.value], () => {
|
|
@@ -70,6 +122,7 @@ export function useKDataIteratorLogic(props) {
|
|
|
70
122
|
isInternalUpdating = true;
|
|
71
123
|
selectAll.value = false;
|
|
72
124
|
isInternalUpdating = false;
|
|
125
|
+
emit?.("update:selectAll", false);
|
|
73
126
|
syncToProvider();
|
|
74
127
|
}
|
|
75
128
|
return;
|
|
@@ -80,38 +133,20 @@ export function useKDataIteratorLogic(props) {
|
|
|
80
133
|
isInternalUpdating = true;
|
|
81
134
|
selectAll.value = allSelected;
|
|
82
135
|
isInternalUpdating = false;
|
|
136
|
+
emit?.("update:selectAll", allSelected);
|
|
83
137
|
}
|
|
138
|
+
emit?.("update:selectedRows", selectedRows.value);
|
|
84
139
|
syncToProvider();
|
|
85
140
|
});
|
|
86
|
-
watch(() => props.search, (newVal) => {
|
|
87
|
-
if (newVal !== void 0) {
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
watch(() => props.itemsPerPage, (newVal) => {
|
|
91
|
-
const currentSize = props.dataProvider?.pageSize?.value ?? props.dataProvider?.pageSize;
|
|
92
|
-
if (newVal !== void 0 && newVal !== currentSize) {
|
|
93
|
-
if (typeof props.dataProvider?.setPageSize === "function") {
|
|
94
|
-
props.dataProvider.setPageSize(newVal);
|
|
95
|
-
} else if (props.dataProvider) {
|
|
96
|
-
props.dataProvider.pageSize = newVal;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
watch(() => props.page, (newVal) => {
|
|
101
|
-
const currentPage = props.dataProvider?.currentPage?.value ?? props.dataProvider?.currentPage;
|
|
102
|
-
if (newVal !== void 0 && newVal !== currentPage) {
|
|
103
|
-
if (typeof props.dataProvider?.setCurrentPage === "function") {
|
|
104
|
-
props.dataProvider.setCurrentPage(newVal);
|
|
105
|
-
} else if (props.dataProvider) {
|
|
106
|
-
props.dataProvider.currentPage = newVal;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
141
|
return {
|
|
111
142
|
selectedRows,
|
|
112
143
|
selectAll,
|
|
113
|
-
pageData,
|
|
144
|
+
pageData: pageRows,
|
|
145
|
+
currentPage: dpCurrentPage,
|
|
146
|
+
pageSize: dpPageSize,
|
|
114
147
|
loading: dpLoading,
|
|
115
|
-
initialLoad: dpInitialLoad
|
|
148
|
+
initialLoad: dpInitialLoad,
|
|
149
|
+
setCurrentPage,
|
|
150
|
+
setPageSize
|
|
116
151
|
};
|
|
117
152
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ADataProvider } from '@katlux/providers';
|
|
2
|
-
import type { IKDatatableAction } from '@katlux/providers';
|
|
2
|
+
import type { IKDatatableAction, IDataSort, IDataFilter } from '@katlux/providers';
|
|
3
3
|
interface Props {
|
|
4
4
|
dataProvider: ADataProvider;
|
|
5
|
-
visibleFields
|
|
5
|
+
visibleFields?: Array<string> | null;
|
|
6
6
|
rowActions?: Array<IKDatatableAction>;
|
|
7
7
|
bulkActions?: Array<IKDatatableAction>;
|
|
8
8
|
cellSlots?: Record<string, any>;
|
|
@@ -11,9 +11,41 @@ interface Props {
|
|
|
11
11
|
columnWidths?: Record<string, string>;
|
|
12
12
|
emptyStateText?: string;
|
|
13
13
|
emptyFilterStateText?: string;
|
|
14
|
+
currentPage?: number;
|
|
15
|
+
pageSize?: number;
|
|
16
|
+
sortList?: IDataSort[];
|
|
17
|
+
filter?: IDataFilter | null;
|
|
18
|
+
selectedRows?: any[];
|
|
19
|
+
selectAll?: boolean;
|
|
14
20
|
}
|
|
15
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
21
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
|
+
"update:currentPage": (value: number) => any;
|
|
23
|
+
"update:pageSize": (value: number) => any;
|
|
24
|
+
"update:selectedRows": (value: any[]) => any;
|
|
25
|
+
"update:selectAll": (value: boolean) => any;
|
|
26
|
+
"page-change": (value: number) => any;
|
|
27
|
+
"update:sortList": (value: IDataSort[]) => any;
|
|
28
|
+
"update:filter": (value: IDataFilter | null) => any;
|
|
29
|
+
"sort-change": (value: IDataSort[]) => any;
|
|
30
|
+
"filter-change": (value: IDataFilter | null) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
32
|
+
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
33
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
34
|
+
"onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
|
|
35
|
+
"onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
|
|
36
|
+
"onPage-change"?: ((value: number) => any) | undefined;
|
|
37
|
+
"onUpdate:sortList"?: ((value: IDataSort[]) => any) | undefined;
|
|
38
|
+
"onUpdate:filter"?: ((value: IDataFilter | null) => any) | undefined;
|
|
39
|
+
"onSort-change"?: ((value: IDataSort[]) => any) | undefined;
|
|
40
|
+
"onFilter-change"?: ((value: IDataFilter | null) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
filter: IDataFilter | null;
|
|
16
43
|
bulkActions: Array<IKDatatableAction>;
|
|
44
|
+
selectedRows: any[];
|
|
45
|
+
selectAll: boolean;
|
|
46
|
+
currentPage: number;
|
|
47
|
+
pageSize: number;
|
|
48
|
+
sortList: IDataSort[];
|
|
17
49
|
visibleFields: Array<string> | null;
|
|
18
50
|
rowActions: Array<IKDatatableAction>;
|
|
19
51
|
cellSlots: Record<string, any>;
|