@katlux/toolkit 0.1.1-alpha.117 → 0.1.1-alpha.119
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/create-preset.mjs +373 -21
- package/dist/compiled/composables/useKatluxContext.mjs +6 -3
- package/dist/compiled/composables/useKatluxForm.mjs +268 -0
- package/dist/compiled/composables/useToast.mjs +164 -0
- package/dist/compiled/composables/useVirtualScroll.mjs +176 -0
- package/dist/module.cjs +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -0
- package/dist/runtime/components/KBulkActions/KBulkActions.global.d.vue.ts +6 -2
- package/dist/runtime/components/KBulkActions/KBulkActions.global.vue +3 -3
- package/dist/runtime/components/KBulkActions/KBulkActions.global.vue.d.ts +6 -2
- package/dist/runtime/components/KBulkActions/KBulkActions.logic.js +9 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +9 -0
- package/dist/runtime/components/KCombobox/KCombobox.global.vue +2 -1
- package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +9 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +5 -0
- package/dist/runtime/components/KCombobox/KCombobox.logic.js +22 -3
- package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +8 -0
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue +10 -2
- package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +8 -0
- package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +8 -0
- package/dist/runtime/components/KDatatable/KDataIterator.logic.js +10 -2
- package/dist/runtime/components/KDatatable/KDatatable.global.d.vue.ts +8 -0
- package/dist/runtime/components/KDatatable/KDatatable.global.vue +12 -4
- package/dist/runtime/components/KDatatable/KDatatable.global.vue.d.ts +8 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +8 -0
- package/dist/runtime/components/KDatatable/KDatatable.logic.js +11 -3
- package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +2 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +5 -1
- package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +2 -0
- package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +7 -6
- package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +7 -6
- package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +9 -0
- package/dist/runtime/components/KDropdown/KDropdown.global.vue +2 -1
- package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +9 -0
- package/dist/runtime/components/KDropdown/KDropdown.logic.d.ts +5 -0
- package/dist/runtime/components/KDropdown/KDropdown.logic.js +10 -7
- package/dist/runtime/components/KGantt/KGantt.logic.js +11 -4
- package/dist/runtime/components/KPagination/KPagination.logic.js +7 -4
- package/dist/runtime/components/KToast/KToast.global.d.vue.ts +24 -1
- package/dist/runtime/components/KToast/KToast.global.vue +12 -2
- package/dist/runtime/components/KToast/KToast.global.vue.d.ts +24 -1
- package/dist/runtime/components/KToast/KToast.logic.d.ts +13 -0
- package/dist/runtime/components/KToast/KToast.logic.js +45 -5
- package/dist/runtime/components/KToastContainer/KToastContainer.global.d.vue.ts +3 -0
- package/dist/runtime/components/KToastContainer/KToastContainer.global.vue +11 -0
- package/dist/runtime/components/KToastContainer/KToastContainer.global.vue.d.ts +3 -0
- package/dist/runtime/components/KTree/KTree.global.d.vue.ts +38 -0
- package/dist/runtime/components/KTree/KTree.global.vue +7 -3
- package/dist/runtime/components/KTree/KTree.global.vue.d.ts +38 -0
- package/dist/runtime/components/KTree/KTree.logic.d.ts +21 -0
- package/dist/runtime/components/KTree/KTree.logic.js +17 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +52 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +30 -3
- package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +52 -1
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +20 -0
- package/dist/runtime/components/KTreePicker/KTreePicker.logic.js +16 -0
- package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +36 -0
- package/dist/runtime/components/KTreeView/KTreeView.global.vue +5 -1
- package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +36 -0
- package/dist/runtime/components/KTreeView/KTreeView.logic.d.ts +20 -0
- package/dist/runtime/components/KTreeView/KTreeView.logic.js +16 -0
- package/dist/runtime/composables/useKatluxContext.js +6 -3
- package/dist/runtime/composables/useKatluxForm.d.ts +143 -0
- package/dist/runtime/composables/useKatluxForm.js +268 -0
- package/dist/runtime/composables/useToast.d.ts +49 -0
- package/dist/runtime/composables/useToast.js +164 -0
- package/dist/runtime/composables/useVirtualScroll.d.ts +34 -0
- package/dist/runtime/composables/useVirtualScroll.js +176 -0
- package/dist/runtime/plugins/PresetPlugin.js +9 -1
- package/dist/runtime/plugins/nuxtCompatPlugin.js +0 -1
- package/dist/runtime/plugins/toastPlugin.client.d.ts +2 -0
- package/dist/runtime/plugins/toastPlugin.client.js +16 -0
- package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue +1 -0
- package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue +36 -7
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue +10 -4
- package/dist/runtime/presets/default/components/KCombobox/KCombobox.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue +7 -2
- package/dist/runtime/presets/default/components/KCombobox/KComboboxList.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.d.vue.ts +10 -1
- package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue +128 -6
- package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue.d.ts +10 -1
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.d.vue.ts +12 -1
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +206 -27
- package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue.d.ts +12 -1
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.d.vue.ts +1 -0
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue +23 -2
- package/dist/runtime/presets/default/components/KDropdown/KDropdown.vue.d.ts +1 -0
- package/dist/runtime/presets/default/components/KLayout/KLayout.vue +4 -2
- package/dist/runtime/presets/default/components/KModal/KModal.vue +8 -1
- package/dist/runtime/presets/default/components/KTabs/KTabItem.vue +1 -1
- package/dist/runtime/presets/default/components/KTextbox/KTextbox.vue +6 -4
- package/dist/runtime/presets/default/components/KToast/KToast.d.vue.ts +6 -0
- package/dist/runtime/presets/default/components/KToast/KToast.vue +22 -4
- package/dist/runtime/presets/default/components/KToast/KToast.vue.d.ts +6 -0
- package/dist/runtime/presets/default/components/KToastContainer/KToastContainer.d.vue.ts +11 -0
- package/dist/runtime/presets/default/components/KToastContainer/KToastContainer.vue +207 -0
- package/dist/runtime/presets/default/components/KToastContainer/KToastContainer.vue.d.ts +11 -0
- package/dist/runtime/presets/default/components/KTree/KTree.d.vue.ts +15 -5
- package/dist/runtime/presets/default/components/KTree/KTree.vue +232 -13
- package/dist/runtime/presets/default/components/KTree/KTree.vue.d.ts +15 -5
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.d.vue.ts +14 -1
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue +118 -13
- package/dist/runtime/presets/default/components/KTreePicker/KTreePicker.vue.d.ts +14 -1
- package/dist/runtime/presets/default/components/KTreeView/KTreeCell.vue +12 -3
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.d.vue.ts +4 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue +8 -0
- package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue.d.ts +4 -0
- package/dist/runtime/server/middleware/session.js +1 -1
- package/package.json +3 -4
- package/dist/compiled/composables/useDataProvider.spec.mjs +0 -157
- package/dist/compiled/composables/useKatluxContext.spec.mjs +0 -63
- package/dist/compiled/composables/useKatluxI18n.spec.mjs +0 -10
- package/dist/compiled/composables/usePresetComponent.spec.mjs +0 -106
- package/dist/compiled/composables/useTemplate.spec.mjs +0 -30
- package/dist/compiled/utils/PresetResolver.spec.mjs +0 -68
|
@@ -8,6 +8,15 @@ export function getApplicableRows(action, selectedRows, selectAll) {
|
|
|
8
8
|
if (!selectedRows || selectedRows.length === 0) {
|
|
9
9
|
return [];
|
|
10
10
|
}
|
|
11
|
+
const isBulkAction = action.isBulk || typeof action.visible === "function" && action.visible.length >= 2;
|
|
12
|
+
if (isBulkAction) {
|
|
13
|
+
try {
|
|
14
|
+
const isVisible = action.visible(selectedRows, selectAll);
|
|
15
|
+
return isVisible ? selectedRows : [];
|
|
16
|
+
} catch {
|
|
17
|
+
return selectedRows;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
11
20
|
let isPerRowPredicate = false;
|
|
12
21
|
try {
|
|
13
22
|
const testResult = action.visible(selectedRows[0]);
|
|
@@ -89,6 +89,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
89
89
|
type: NumberConstructor;
|
|
90
90
|
default: number;
|
|
91
91
|
};
|
|
92
|
+
maxHeight: {
|
|
93
|
+
type: NumberConstructor;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
92
96
|
}>, {
|
|
93
97
|
virtualScrollState: import("vue").ComputedRef<{
|
|
94
98
|
loadedCount: number;
|
|
@@ -201,6 +205,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
201
205
|
type: NumberConstructor;
|
|
202
206
|
default: number;
|
|
203
207
|
};
|
|
208
|
+
maxHeight: {
|
|
209
|
+
type: NumberConstructor;
|
|
210
|
+
default: undefined;
|
|
211
|
+
};
|
|
204
212
|
}>> & Readonly<{
|
|
205
213
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
206
214
|
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
@@ -227,6 +235,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
227
235
|
placeholder: string;
|
|
228
236
|
teleportTo: string;
|
|
229
237
|
fullWidth: boolean;
|
|
238
|
+
maxHeight: number;
|
|
230
239
|
closeOnSelect: boolean;
|
|
231
240
|
multiSelect: boolean;
|
|
232
241
|
maxSelectedDisplay: string | number | boolean;
|
|
@@ -67,7 +67,8 @@ const templateProps = computed(() => ({
|
|
|
67
67
|
valueField: props.valueField,
|
|
68
68
|
validation: props.validation,
|
|
69
69
|
validationText: props.validationText,
|
|
70
|
-
fullWidth: props.fullWidth
|
|
70
|
+
fullWidth: props.fullWidth,
|
|
71
|
+
maxHeight: props.maxHeight
|
|
71
72
|
}));
|
|
72
73
|
function updateSearchText(val) {
|
|
73
74
|
searchtext.value = val;
|
|
@@ -89,6 +89,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
89
89
|
type: NumberConstructor;
|
|
90
90
|
default: number;
|
|
91
91
|
};
|
|
92
|
+
maxHeight: {
|
|
93
|
+
type: NumberConstructor;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
92
96
|
}>, {
|
|
93
97
|
virtualScrollState: import("vue").ComputedRef<{
|
|
94
98
|
loadedCount: number;
|
|
@@ -201,6 +205,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
201
205
|
type: NumberConstructor;
|
|
202
206
|
default: number;
|
|
203
207
|
};
|
|
208
|
+
maxHeight: {
|
|
209
|
+
type: NumberConstructor;
|
|
210
|
+
default: undefined;
|
|
211
|
+
};
|
|
204
212
|
}>> & Readonly<{
|
|
205
213
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
206
214
|
"onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
|
|
@@ -227,6 +235,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
227
235
|
placeholder: string;
|
|
228
236
|
teleportTo: string;
|
|
229
237
|
fullWidth: boolean;
|
|
238
|
+
maxHeight: number;
|
|
230
239
|
closeOnSelect: boolean;
|
|
231
240
|
multiSelect: boolean;
|
|
232
241
|
maxSelectedDisplay: string | number | boolean;
|
|
@@ -25,6 +25,7 @@ export interface KComboboxProps {
|
|
|
25
25
|
virtualScroll?: boolean;
|
|
26
26
|
itemHeight?: number;
|
|
27
27
|
buffer?: number;
|
|
28
|
+
maxHeight?: number;
|
|
28
29
|
}
|
|
29
30
|
export interface KComboboxEmits {
|
|
30
31
|
(e: 'update:modelValue', value: any): void;
|
|
@@ -127,6 +128,10 @@ export declare const KComboboxDefaultProps: {
|
|
|
127
128
|
type: NumberConstructor;
|
|
128
129
|
default: number;
|
|
129
130
|
};
|
|
131
|
+
maxHeight: {
|
|
132
|
+
type: NumberConstructor;
|
|
133
|
+
default: undefined;
|
|
134
|
+
};
|
|
130
135
|
};
|
|
131
136
|
export declare function useKComboboxLogic(props: KComboboxProps, emit: KComboboxEmits): {
|
|
132
137
|
selectedItems: import("vue").Ref<TDataRow[] | null, TDataRow[] | null>;
|
|
@@ -92,6 +92,10 @@ export const KComboboxDefaultProps = {
|
|
|
92
92
|
buffer: {
|
|
93
93
|
type: Number,
|
|
94
94
|
default: 5
|
|
95
|
+
},
|
|
96
|
+
maxHeight: {
|
|
97
|
+
type: Number,
|
|
98
|
+
default: void 0
|
|
95
99
|
}
|
|
96
100
|
};
|
|
97
101
|
export function useKComboboxLogic(props, emit) {
|
|
@@ -197,7 +201,7 @@ export function useKComboboxLogic(props, emit) {
|
|
|
197
201
|
emit("update:modelValue", value);
|
|
198
202
|
} else {
|
|
199
203
|
const value = props.valueField ? selectedItems.value?.[0]?.[props.valueField] : selectedItems.value?.[0];
|
|
200
|
-
emit("update:modelValue", value
|
|
204
|
+
emit("update:modelValue", value !== void 0 ? value : null);
|
|
201
205
|
}
|
|
202
206
|
}
|
|
203
207
|
function isSelected(option) {
|
|
@@ -290,6 +294,21 @@ export function useKComboboxLogic(props, emit) {
|
|
|
290
294
|
}
|
|
291
295
|
break;
|
|
292
296
|
}
|
|
297
|
+
case " ":
|
|
298
|
+
case "Space": {
|
|
299
|
+
const target = e.target;
|
|
300
|
+
if (target && target.tagName !== "INPUT") {
|
|
301
|
+
e.preventDefault();
|
|
302
|
+
if (isOptionsOpen.value) {
|
|
303
|
+
if (highlightedIndex.value >= 0 && highlightedIndex.value < total) {
|
|
304
|
+
selectItem(filteredOptions.value[highlightedIndex.value]);
|
|
305
|
+
}
|
|
306
|
+
} else {
|
|
307
|
+
isOptionsOpen.value = true;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
293
312
|
case "Escape": {
|
|
294
313
|
if (isOptionsOpen.value) {
|
|
295
314
|
e.preventDefault();
|
|
@@ -454,7 +473,7 @@ export function useKComboboxLogic(props, emit) {
|
|
|
454
473
|
}
|
|
455
474
|
}
|
|
456
475
|
function resolveSelectedFromValue() {
|
|
457
|
-
if (
|
|
476
|
+
if (props.modelValue === void 0 || props.modelValue === null) {
|
|
458
477
|
selectedItems.value = null;
|
|
459
478
|
return;
|
|
460
479
|
}
|
|
@@ -483,7 +502,7 @@ export function useKComboboxLogic(props, emit) {
|
|
|
483
502
|
watch(
|
|
484
503
|
() => [unref(props.dataProvider?.allData), unref(props.dataProvider?.pageData), loadedOptions.value.length],
|
|
485
504
|
() => {
|
|
486
|
-
if (props.modelValue && (!selectedItems.value || selectedItems.value.length === 0 || !selectedItems.value[0]?.[props.labelField])) {
|
|
505
|
+
if (props.modelValue !== void 0 && props.modelValue !== null && (!selectedItems.value || selectedItems.value.length === 0 || !selectedItems.value[0]?.[props.labelField])) {
|
|
487
506
|
resolveSelectedFromValue();
|
|
488
507
|
}
|
|
489
508
|
}
|
|
@@ -13,6 +13,10 @@ interface Props {
|
|
|
13
13
|
currentPage?: number;
|
|
14
14
|
selectedRows?: any[];
|
|
15
15
|
selectAll?: boolean;
|
|
16
|
+
virtualScroll?: boolean;
|
|
17
|
+
itemHeight?: number;
|
|
18
|
+
viewportHeight?: number;
|
|
19
|
+
buffer?: number;
|
|
16
20
|
}
|
|
17
21
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
22
|
"update:page": (value: number) => any;
|
|
@@ -42,10 +46,14 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
42
46
|
loading: boolean;
|
|
43
47
|
currentPage: number;
|
|
44
48
|
pageSize: number;
|
|
49
|
+
virtualScroll: boolean;
|
|
50
|
+
itemHeight: number;
|
|
51
|
+
buffer: number;
|
|
45
52
|
visibleFields: Array<string> | null;
|
|
46
53
|
rowActions: IKDatatableAction[];
|
|
47
54
|
itemsPerPage: number;
|
|
48
55
|
page: number;
|
|
56
|
+
viewportHeight: number;
|
|
49
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
58
|
declare const _default: typeof __VLS_export;
|
|
51
59
|
export default _default;
|
|
@@ -16,7 +16,11 @@ const props = defineProps({
|
|
|
16
16
|
page: { type: Number, required: false, default: 1 },
|
|
17
17
|
currentPage: { type: Number, required: false, default: void 0 },
|
|
18
18
|
selectedRows: { type: Array, required: false, default: void 0 },
|
|
19
|
-
selectAll: { type: Boolean, required: false, default: void 0 }
|
|
19
|
+
selectAll: { type: Boolean, required: false, default: void 0 },
|
|
20
|
+
virtualScroll: { type: Boolean, required: false, default: false },
|
|
21
|
+
itemHeight: { type: Number, required: false, default: 60 },
|
|
22
|
+
viewportHeight: { type: Number, required: false, default: 500 },
|
|
23
|
+
buffer: { type: Number, required: false, default: 5 }
|
|
20
24
|
});
|
|
21
25
|
const emit = defineEmits(["update:page", "update:currentPage", "update:itemsPerPage", "update:pageSize", "update:search", "update:selectedRows", "update:selectAll", "page-change", "search-change"]);
|
|
22
26
|
const { selectedRows, selectAll, currentPage, pageSize, setCurrentPage, setPageSize } = useKDataIteratorLogic(props, emit);
|
|
@@ -36,7 +40,11 @@ const templateProps = computed(() => ({
|
|
|
36
40
|
search: props.search,
|
|
37
41
|
itemsPerPage: pageSize.value,
|
|
38
42
|
page: currentPage.value,
|
|
39
|
-
slots: mergedSlots.value
|
|
43
|
+
slots: mergedSlots.value,
|
|
44
|
+
virtualScroll: props.virtualScroll,
|
|
45
|
+
itemHeight: props.itemHeight,
|
|
46
|
+
viewportHeight: props.viewportHeight,
|
|
47
|
+
buffer: props.buffer
|
|
40
48
|
}));
|
|
41
49
|
const updateSelectedRows = (val) => {
|
|
42
50
|
selectedRows.value = val;
|
|
@@ -13,6 +13,10 @@ interface Props {
|
|
|
13
13
|
currentPage?: number;
|
|
14
14
|
selectedRows?: any[];
|
|
15
15
|
selectAll?: boolean;
|
|
16
|
+
virtualScroll?: boolean;
|
|
17
|
+
itemHeight?: number;
|
|
18
|
+
viewportHeight?: number;
|
|
19
|
+
buffer?: number;
|
|
16
20
|
}
|
|
17
21
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
22
|
"update:page": (value: number) => any;
|
|
@@ -42,10 +46,14 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
42
46
|
loading: boolean;
|
|
43
47
|
currentPage: number;
|
|
44
48
|
pageSize: number;
|
|
49
|
+
virtualScroll: boolean;
|
|
50
|
+
itemHeight: number;
|
|
51
|
+
buffer: number;
|
|
45
52
|
visibleFields: Array<string> | null;
|
|
46
53
|
rowActions: IKDatatableAction[];
|
|
47
54
|
itemsPerPage: number;
|
|
48
55
|
page: number;
|
|
56
|
+
viewportHeight: number;
|
|
49
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
58
|
declare const _default: typeof __VLS_export;
|
|
51
59
|
export default _default;
|
|
@@ -11,6 +11,10 @@ export interface KDataIteratorProps {
|
|
|
11
11
|
currentPage?: number;
|
|
12
12
|
selectedRows?: any[];
|
|
13
13
|
selectAll?: boolean;
|
|
14
|
+
virtualScroll?: boolean;
|
|
15
|
+
itemHeight?: number;
|
|
16
|
+
viewportHeight?: number;
|
|
17
|
+
buffer?: number;
|
|
14
18
|
}
|
|
15
19
|
export type KDataIteratorEmits = {
|
|
16
20
|
(e: 'update:page', page: number): void;
|
|
@@ -29,6 +33,10 @@ export declare const KDataIteratorDefaultProps: {
|
|
|
29
33
|
search: string;
|
|
30
34
|
itemsPerPage: number;
|
|
31
35
|
page: number;
|
|
36
|
+
virtualScroll: boolean;
|
|
37
|
+
itemHeight: number;
|
|
38
|
+
viewportHeight: number;
|
|
39
|
+
buffer: number;
|
|
32
40
|
};
|
|
33
41
|
export declare function useKDataIteratorLogic(props: KDataIteratorProps, emit?: KDataIteratorEmits): {
|
|
34
42
|
selectedRows: Ref<any[], any[]>;
|
|
@@ -5,7 +5,11 @@ export const KDataIteratorDefaultProps = {
|
|
|
5
5
|
loading: false,
|
|
6
6
|
search: "",
|
|
7
7
|
itemsPerPage: 10,
|
|
8
|
-
page: 1
|
|
8
|
+
page: 1,
|
|
9
|
+
virtualScroll: false,
|
|
10
|
+
itemHeight: 60,
|
|
11
|
+
viewportHeight: 500,
|
|
12
|
+
buffer: 5
|
|
9
13
|
};
|
|
10
14
|
export function useKDataIteratorLogic(props, emit) {
|
|
11
15
|
const {
|
|
@@ -100,8 +104,10 @@ export function useKDataIteratorLogic(props, emit) {
|
|
|
100
104
|
emit?.("update:itemsPerPage", newVal);
|
|
101
105
|
emit?.("update:pageSize", newVal);
|
|
102
106
|
});
|
|
107
|
+
let lastSyncedSelectAll = Boolean(selectAll.value);
|
|
103
108
|
watch(() => selectAll.value, (newVal) => {
|
|
104
|
-
if (isInternalUpdating) return;
|
|
109
|
+
if (isInternalUpdating || newVal === lastSyncedSelectAll) return;
|
|
110
|
+
lastSyncedSelectAll = newVal;
|
|
105
111
|
const currentRows = pageRows.value;
|
|
106
112
|
if (newVal === false) {
|
|
107
113
|
const pageIds = new Set(currentRows.map(getRowId));
|
|
@@ -119,6 +125,7 @@ export function useKDataIteratorLogic(props, emit) {
|
|
|
119
125
|
const currentRows = pageRows.value;
|
|
120
126
|
if (currentRows.length === 0) {
|
|
121
127
|
if (selectAll.value) {
|
|
128
|
+
lastSyncedSelectAll = false;
|
|
122
129
|
isInternalUpdating = true;
|
|
123
130
|
selectAll.value = false;
|
|
124
131
|
isInternalUpdating = false;
|
|
@@ -130,6 +137,7 @@ export function useKDataIteratorLogic(props, emit) {
|
|
|
130
137
|
const currentSelectedIds = new Set(selectedRows.value.map(getRowId));
|
|
131
138
|
const allSelected = currentRows.every((r) => currentSelectedIds.has(getRowId(r)));
|
|
132
139
|
if (selectAll.value !== allSelected) {
|
|
140
|
+
lastSyncedSelectAll = allSelected;
|
|
133
141
|
isInternalUpdating = true;
|
|
134
142
|
selectAll.value = allSelected;
|
|
135
143
|
isInternalUpdating = false;
|
|
@@ -17,6 +17,10 @@ interface Props {
|
|
|
17
17
|
filter?: IDataFilter | null;
|
|
18
18
|
selectedRows?: any[];
|
|
19
19
|
selectAll?: boolean;
|
|
20
|
+
virtualScroll?: boolean;
|
|
21
|
+
itemHeight?: number;
|
|
22
|
+
viewportHeight?: number;
|
|
23
|
+
buffer?: number;
|
|
20
24
|
}
|
|
21
25
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
26
|
"update:currentPage": (value: number) => any;
|
|
@@ -46,8 +50,12 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
46
50
|
currentPage: number;
|
|
47
51
|
pageSize: number;
|
|
48
52
|
sortList: IDataSort[];
|
|
53
|
+
virtualScroll: boolean;
|
|
54
|
+
itemHeight: number;
|
|
55
|
+
buffer: number;
|
|
49
56
|
visibleFields: Array<string> | null;
|
|
50
57
|
rowActions: Array<IKDatatableAction>;
|
|
58
|
+
viewportHeight: number;
|
|
51
59
|
cellSlots: Record<string, any>;
|
|
52
60
|
headerSlots: Record<string, any>;
|
|
53
61
|
columnHeaders: Record<string, string>;
|
|
@@ -11,8 +11,8 @@ const props = defineProps({
|
|
|
11
11
|
bulkActions: { type: Array, required: false, default: () => [] },
|
|
12
12
|
cellSlots: { type: Object, required: false, default: void 0 },
|
|
13
13
|
headerSlots: { type: Object, required: false, default: void 0 },
|
|
14
|
-
columnHeaders: { type: Object, required: false, default:
|
|
15
|
-
columnWidths: { type: Object, required: false, default:
|
|
14
|
+
columnHeaders: { type: Object, required: false, default: () => ({}) },
|
|
15
|
+
columnWidths: { type: Object, required: false, default: () => ({}) },
|
|
16
16
|
emptyStateText: { type: String, required: false, default: "no result" },
|
|
17
17
|
emptyFilterStateText: { type: String, required: false, default: "no result found for filter" },
|
|
18
18
|
currentPage: { type: Number, required: false, default: void 0 },
|
|
@@ -20,7 +20,11 @@ const props = defineProps({
|
|
|
20
20
|
sortList: { type: Array, required: false, default: void 0 },
|
|
21
21
|
filter: { type: [Object, null], required: false, default: void 0 },
|
|
22
22
|
selectedRows: { type: Array, required: false, default: void 0 },
|
|
23
|
-
selectAll: { type: Boolean, required: false, default: void 0 }
|
|
23
|
+
selectAll: { type: Boolean, required: false, default: void 0 },
|
|
24
|
+
virtualScroll: { type: Boolean, required: false, default: false },
|
|
25
|
+
itemHeight: { type: Number, required: false, default: 40 },
|
|
26
|
+
viewportHeight: { type: Number, required: false, default: 500 },
|
|
27
|
+
buffer: { type: Number, required: false, default: 5 }
|
|
24
28
|
});
|
|
25
29
|
const emit = defineEmits(["update:currentPage", "update:pageSize", "update:sortList", "update:filter", "update:selectedRows", "update:selectAll", "page-change", "sort-change", "filter-change"]);
|
|
26
30
|
const {
|
|
@@ -57,7 +61,11 @@ const templateProps = computed(() => ({
|
|
|
57
61
|
columnHeaders: props.columnHeaders,
|
|
58
62
|
columnWidths: props.columnWidths,
|
|
59
63
|
emptyStateText: props.emptyStateText,
|
|
60
|
-
emptyFilterStateText: props.emptyFilterStateText
|
|
64
|
+
emptyFilterStateText: props.emptyFilterStateText,
|
|
65
|
+
virtualScroll: props.virtualScroll,
|
|
66
|
+
itemHeight: props.itemHeight,
|
|
67
|
+
viewportHeight: props.viewportHeight,
|
|
68
|
+
buffer: props.buffer
|
|
61
69
|
}));
|
|
62
70
|
const updateSelectedRows = (val) => {
|
|
63
71
|
selectedRows.value = val;
|
|
@@ -17,6 +17,10 @@ interface Props {
|
|
|
17
17
|
filter?: IDataFilter | null;
|
|
18
18
|
selectedRows?: any[];
|
|
19
19
|
selectAll?: boolean;
|
|
20
|
+
virtualScroll?: boolean;
|
|
21
|
+
itemHeight?: number;
|
|
22
|
+
viewportHeight?: number;
|
|
23
|
+
buffer?: number;
|
|
20
24
|
}
|
|
21
25
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
26
|
"update:currentPage": (value: number) => any;
|
|
@@ -46,8 +50,12 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
46
50
|
currentPage: number;
|
|
47
51
|
pageSize: number;
|
|
48
52
|
sortList: IDataSort[];
|
|
53
|
+
virtualScroll: boolean;
|
|
54
|
+
itemHeight: number;
|
|
55
|
+
buffer: number;
|
|
49
56
|
visibleFields: Array<string> | null;
|
|
50
57
|
rowActions: Array<IKDatatableAction>;
|
|
58
|
+
viewportHeight: number;
|
|
51
59
|
cellSlots: Record<string, any>;
|
|
52
60
|
headerSlots: Record<string, any>;
|
|
53
61
|
columnHeaders: Record<string, string>;
|
|
@@ -11,6 +11,10 @@ export interface KDatatableProps {
|
|
|
11
11
|
filter?: IDataFilter | null;
|
|
12
12
|
selectedRows?: any[];
|
|
13
13
|
selectAll?: boolean;
|
|
14
|
+
virtualScroll?: boolean;
|
|
15
|
+
itemHeight?: number;
|
|
16
|
+
viewportHeight?: number;
|
|
17
|
+
buffer?: number;
|
|
14
18
|
}
|
|
15
19
|
export type KDatatableEmits = {
|
|
16
20
|
(e: 'update:currentPage', page: number): void;
|
|
@@ -27,6 +31,10 @@ export declare const KDatatableDefaultProps: {
|
|
|
27
31
|
visibleFields: null;
|
|
28
32
|
emptyStateText: string;
|
|
29
33
|
emptyFilterStateText: string;
|
|
34
|
+
virtualScroll: boolean;
|
|
35
|
+
itemHeight: number;
|
|
36
|
+
viewportHeight: number;
|
|
37
|
+
buffer: number;
|
|
30
38
|
};
|
|
31
39
|
export declare function useKDatatableLogic(props: KDatatableProps, emit?: KDatatableEmits): {
|
|
32
40
|
selectedRows: Ref<any[], any[]>;
|
|
@@ -3,7 +3,11 @@ import { useDataProvider } from "../../composables/useDataProvider.js";
|
|
|
3
3
|
export const KDatatableDefaultProps = {
|
|
4
4
|
visibleFields: null,
|
|
5
5
|
emptyStateText: "no result",
|
|
6
|
-
emptyFilterStateText: "no result found for filter"
|
|
6
|
+
emptyFilterStateText: "no result found for filter",
|
|
7
|
+
virtualScroll: false,
|
|
8
|
+
itemHeight: 40,
|
|
9
|
+
viewportHeight: 500,
|
|
10
|
+
buffer: 5
|
|
7
11
|
};
|
|
8
12
|
export function useKDatatableLogic(props, emit) {
|
|
9
13
|
const {
|
|
@@ -119,8 +123,10 @@ export function useKDatatableLogic(props, emit) {
|
|
|
119
123
|
emit?.("update:filter", newVal);
|
|
120
124
|
emit?.("filter-change", newVal);
|
|
121
125
|
}, { deep: true });
|
|
126
|
+
let lastSyncedSelectAll = Boolean(selectAll.value);
|
|
122
127
|
watch(() => selectAll.value, (newVal) => {
|
|
123
|
-
if (isInternalUpdating) return;
|
|
128
|
+
if (isInternalUpdating || newVal === lastSyncedSelectAll) return;
|
|
129
|
+
lastSyncedSelectAll = newVal;
|
|
124
130
|
const currentRows = pageRows.value;
|
|
125
131
|
if (newVal === false) {
|
|
126
132
|
const pageIds = new Set(currentRows.map(getRowId));
|
|
@@ -138,6 +144,7 @@ export function useKDatatableLogic(props, emit) {
|
|
|
138
144
|
const currentRows = pageRows.value;
|
|
139
145
|
if (currentRows.length === 0) {
|
|
140
146
|
if (selectAll.value) {
|
|
147
|
+
lastSyncedSelectAll = false;
|
|
141
148
|
isInternalUpdating = true;
|
|
142
149
|
selectAll.value = false;
|
|
143
150
|
isInternalUpdating = false;
|
|
@@ -149,6 +156,7 @@ export function useKDatatableLogic(props, emit) {
|
|
|
149
156
|
const selectedIds = new Set(selectedRows.value.map(getRowId));
|
|
150
157
|
const allCurrentSelected = currentRows.every((r) => selectedIds.has(getRowId(r)));
|
|
151
158
|
if (selectAll.value !== allCurrentSelected) {
|
|
159
|
+
lastSyncedSelectAll = allCurrentSelected;
|
|
152
160
|
isInternalUpdating = true;
|
|
153
161
|
selectAll.value = allCurrentSelected;
|
|
154
162
|
isInternalUpdating = false;
|
|
@@ -156,7 +164,7 @@ export function useKDatatableLogic(props, emit) {
|
|
|
156
164
|
}
|
|
157
165
|
emit?.("update:selectedRows", selectedRows.value);
|
|
158
166
|
syncToProvider();
|
|
159
|
-
}, { immediate: true
|
|
167
|
+
}, { immediate: true });
|
|
160
168
|
return {
|
|
161
169
|
selectedRows,
|
|
162
170
|
selectAll,
|
|
@@ -55,6 +55,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
55
55
|
};
|
|
56
56
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
57
57
|
"update:modelValue": (value: string | Date) => any;
|
|
58
|
+
change: (value: string | Date) => any;
|
|
58
59
|
"update:isOpen": (value: boolean) => any;
|
|
59
60
|
"update:maskedModel": (value: string) => any;
|
|
60
61
|
"update:calendarShow": (value: boolean) => any;
|
|
@@ -115,6 +116,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
115
116
|
};
|
|
116
117
|
}>> & Readonly<{
|
|
117
118
|
"onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
|
|
119
|
+
onChange?: ((value: string | Date) => any) | undefined;
|
|
118
120
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
119
121
|
"onUpdate:maskedModel"?: ((value: string) => any) | undefined;
|
|
120
122
|
"onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
|
|
@@ -4,7 +4,7 @@ import { usePresetComponent } from "../../composables/usePresetComponent";
|
|
|
4
4
|
import { computed, watch } from "vue";
|
|
5
5
|
import KDatePickerDefault from "../../presets/default/components/KDatePicker/KDatePicker.vue";
|
|
6
6
|
const props = defineProps(KDatePickerDefaultProps);
|
|
7
|
-
const emit = defineEmits(["update:maskedModel", "update:calendarShow", "update:day", "update:modelValue", "update:isOpen"]);
|
|
7
|
+
const emit = defineEmits(["update:maskedModel", "update:calendarShow", "update:day", "update:modelValue", "update:isOpen", "change"]);
|
|
8
8
|
const {
|
|
9
9
|
_date,
|
|
10
10
|
maskedModel,
|
|
@@ -36,6 +36,9 @@ const templateProps = computed(() => ({
|
|
|
36
36
|
const handleClear = () => {
|
|
37
37
|
_date.value = "";
|
|
38
38
|
maskedModel.value = "";
|
|
39
|
+
emit("update:day", "");
|
|
40
|
+
emit("update:modelValue", "");
|
|
41
|
+
emit("change", "");
|
|
39
42
|
};
|
|
40
43
|
const updateMaskedModel = (val) => {
|
|
41
44
|
maskedModel.value = val;
|
|
@@ -53,6 +56,7 @@ watch(_date, (newDate) => {
|
|
|
53
56
|
if (d1 !== d2 && d1 !== d3) {
|
|
54
57
|
emit("update:day", newDate);
|
|
55
58
|
emit("update:modelValue", newDate);
|
|
59
|
+
emit("change", newDate);
|
|
56
60
|
}
|
|
57
61
|
});
|
|
58
62
|
watch(calendarShow, (newVal) => {
|
|
@@ -55,6 +55,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
55
55
|
};
|
|
56
56
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
57
57
|
"update:modelValue": (value: string | Date) => any;
|
|
58
|
+
change: (value: string | Date) => any;
|
|
58
59
|
"update:isOpen": (value: boolean) => any;
|
|
59
60
|
"update:maskedModel": (value: string) => any;
|
|
60
61
|
"update:calendarShow": (value: boolean) => any;
|
|
@@ -115,6 +116,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
115
116
|
};
|
|
116
117
|
}>> & Readonly<{
|
|
117
118
|
"onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
|
|
119
|
+
onChange?: ((value: string | Date) => any) | undefined;
|
|
118
120
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
119
121
|
"onUpdate:maskedModel"?: ((value: string) => any) | undefined;
|
|
120
122
|
"onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
|
|
@@ -106,12 +106,6 @@ export function useKDatePickerLogic(props) {
|
|
|
106
106
|
formattedDate = formattedDate.replace("YYYY", year.toString());
|
|
107
107
|
return formattedDate;
|
|
108
108
|
};
|
|
109
|
-
onMounted(() => {
|
|
110
|
-
syncValue(props.modelValue || props.day);
|
|
111
|
-
if (props.isOpen) {
|
|
112
|
-
calendarShow.value = props.isOpen;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
109
|
const syncValue = (val) => {
|
|
116
110
|
if (val === void 0 || val === null || val === "") {
|
|
117
111
|
_date.value = "";
|
|
@@ -127,6 +121,13 @@ export function useKDatePickerLogic(props) {
|
|
|
127
121
|
maskedModel.value = "";
|
|
128
122
|
}
|
|
129
123
|
};
|
|
124
|
+
syncValue(props.modelValue || props.day);
|
|
125
|
+
onMounted(() => {
|
|
126
|
+
syncValue(props.modelValue || props.day);
|
|
127
|
+
if (props.isOpen) {
|
|
128
|
+
calendarShow.value = props.isOpen;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
130
131
|
watch(() => props.day, (newDay) => {
|
|
131
132
|
if (newDay !== void 0) {
|
|
132
133
|
const d1 = newDay && (newDay instanceof Date || typeof newDay === "string") ? newDay instanceof Date ? newDay.getTime() : new Date(newDay).getTime() : 0;
|
|
@@ -170,12 +170,6 @@ export function useKDateTimePickerLogic(props) {
|
|
|
170
170
|
}
|
|
171
171
|
return /* @__PURE__ */ new Date();
|
|
172
172
|
});
|
|
173
|
-
onMounted(() => {
|
|
174
|
-
syncValue(props.modelValue || props.day);
|
|
175
|
-
if (props.isOpen) {
|
|
176
|
-
calendarShow.value = props.isOpen;
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
173
|
const syncValue = (val) => {
|
|
180
174
|
if (val === void 0 || val === null || val === "") {
|
|
181
175
|
_date.value = "";
|
|
@@ -201,6 +195,13 @@ export function useKDateTimePickerLogic(props) {
|
|
|
201
195
|
}
|
|
202
196
|
updateMaskedModel();
|
|
203
197
|
};
|
|
198
|
+
syncValue(props.modelValue || props.day);
|
|
199
|
+
onMounted(() => {
|
|
200
|
+
syncValue(props.modelValue || props.day);
|
|
201
|
+
if (props.isOpen) {
|
|
202
|
+
calendarShow.value = props.isOpen;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
204
205
|
watch(() => props.modelValue, (newVal) => {
|
|
205
206
|
if (newVal !== void 0) {
|
|
206
207
|
const d1 = newVal && (newVal instanceof Date || typeof newVal === "string") ? newVal instanceof Date ? newVal.getTime() : new Date(newVal).getTime() : 0;
|
|
@@ -23,6 +23,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
23
23
|
type: import("vue").PropType<import("./KDropdown.logic.js").KDropdownDirection>;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
|
+
maxHeight: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
26
30
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
31
|
"update:isOpen": (value: boolean) => any;
|
|
28
32
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -50,6 +54,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
50
54
|
type: import("vue").PropType<import("./KDropdown.logic.js").KDropdownDirection>;
|
|
51
55
|
default: string;
|
|
52
56
|
};
|
|
57
|
+
maxHeight: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
53
61
|
}>> & Readonly<{
|
|
54
62
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
55
63
|
}>, {
|
|
@@ -57,6 +65,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
57
65
|
direction: import("./KDropdown.logic.js").KDropdownDirection;
|
|
58
66
|
teleportTo: string;
|
|
59
67
|
fullWidth: boolean;
|
|
68
|
+
maxHeight: number;
|
|
60
69
|
align: import("./KDropdown.logic.js").KDropdownAlign;
|
|
61
70
|
anchorEl: HTMLElement;
|
|
62
71
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -23,6 +23,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
23
23
|
type: import("vue").PropType<import("./KDropdown.logic.js").KDropdownDirection>;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
|
+
maxHeight: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
26
30
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
31
|
"update:isOpen": (value: boolean) => any;
|
|
28
32
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -50,6 +54,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
50
54
|
type: import("vue").PropType<import("./KDropdown.logic.js").KDropdownDirection>;
|
|
51
55
|
default: string;
|
|
52
56
|
};
|
|
57
|
+
maxHeight: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
53
61
|
}>> & Readonly<{
|
|
54
62
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
55
63
|
}>, {
|
|
@@ -57,6 +65,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
57
65
|
direction: import("./KDropdown.logic.js").KDropdownDirection;
|
|
58
66
|
teleportTo: string;
|
|
59
67
|
fullWidth: boolean;
|
|
68
|
+
maxHeight: number;
|
|
60
69
|
align: import("./KDropdown.logic.js").KDropdownAlign;
|
|
61
70
|
anchorEl: HTMLElement;
|
|
62
71
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|