@katlux/toolkit 0.1.1-alpha.109 → 0.1.1-alpha.110

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.
Files changed (35) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/KBulkActions/KBulkActions.logic.d.ts +2 -0
  3. package/dist/runtime/components/KBulkActions/KBulkActions.logic.js +46 -3
  4. package/dist/runtime/components/KButton/KButton.global.d.vue.ts +1 -1
  5. package/dist/runtime/components/KButton/KButton.global.vue.d.ts +1 -1
  6. package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
  7. package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +1 -1
  8. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +1 -1
  9. package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +3 -3
  10. package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +3 -3
  11. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +5 -5
  12. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +5 -5
  13. package/dist/runtime/components/KContextMenu/KContextMenu.global.d.vue.ts +1 -1
  14. package/dist/runtime/components/KContextMenu/KContextMenu.global.vue.d.ts +1 -1
  15. package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +1 -1
  16. package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +1 -1
  17. package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +2 -2
  18. package/dist/runtime/components/KDatatable/KDatatable.logic.js +28 -10
  19. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +1 -1
  20. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +1 -1
  21. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +1 -1
  22. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +1 -1
  23. package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +1 -1
  24. package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +1 -1
  25. package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +1 -1
  26. package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +1 -1
  27. package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +1 -1
  28. package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +1 -1
  29. package/dist/runtime/components/KTree/KTree.global.d.vue.ts +1 -1
  30. package/dist/runtime/components/KTree/KTree.global.vue.d.ts +1 -1
  31. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +5 -5
  32. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +5 -5
  33. package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +3 -3
  34. package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +3 -3
  35. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@katlux/toolkit",
3
3
  "configKey": "katluxToolkit",
4
- "version": "0.1.1-alpha.109",
4
+ "version": "0.1.1-alpha.110",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -6,6 +6,7 @@ export interface KBulkActionsProps {
6
6
  selectAll: boolean;
7
7
  }
8
8
  export declare const KBulkActionsDefaultProps: {};
9
+ export declare function getApplicableRows(action: IKDatatableAction, selectedRows: TDataRow[], selectAll: boolean): TDataRow[];
9
10
  export declare function useKBulkActionsLogic(props: KBulkActionsProps): {
10
11
  selected: import("vue").Ref<{
11
12
  action: Function;
@@ -25,4 +26,5 @@ export declare function useKBulkActionsLogic(props: KBulkActionsProps): {
25
26
  dp: CFlatClientDataProvider;
26
27
  doAction: (action: any) => void;
27
28
  visibleBulkActions: import("vue").ComputedRef<IKDatatableAction[]>;
29
+ getApplicableRows: typeof getApplicableRows;
28
30
  };
@@ -1,17 +1,58 @@
1
1
  import { ref, watch, computed } from "vue";
2
2
  import { CFlatClientDataProvider } from "@katlux/providers";
3
3
  export const KBulkActionsDefaultProps = {};
4
+ export function getApplicableRows(action, selectedRows, selectAll) {
5
+ if (!action.visible) {
6
+ return selectedRows || [];
7
+ }
8
+ if (!selectedRows || selectedRows.length === 0) {
9
+ return [];
10
+ }
11
+ let isPerRowPredicate = false;
12
+ try {
13
+ const testResult = action.visible(selectedRows[0]);
14
+ if (typeof testResult === "boolean") {
15
+ isPerRowPredicate = true;
16
+ }
17
+ } catch {
18
+ isPerRowPredicate = false;
19
+ }
20
+ if (isPerRowPredicate) {
21
+ return selectedRows.filter((row) => {
22
+ try {
23
+ return Boolean(action.visible(row));
24
+ } catch {
25
+ return false;
26
+ }
27
+ });
28
+ }
29
+ try {
30
+ const isVisible = action.visible(selectedRows, selectAll);
31
+ return isVisible ? selectedRows : [];
32
+ } catch {
33
+ return selectedRows;
34
+ }
35
+ }
4
36
  export function useKBulkActionsLogic(props) {
5
37
  const selected = ref(null);
6
38
  const dp = new CFlatClientDataProvider();
7
39
  const visibleBulkActions = computed(() => {
8
40
  return props.bulkActions.filter((action) => {
9
41
  if (!action.visible) return true;
10
- return action.visible(props.selectedRows, props.selectAll);
42
+ if (!props.selectedRows || props.selectedRows.length === 0) {
43
+ try {
44
+ return Boolean(action.visible([], props.selectAll));
45
+ } catch {
46
+ return false;
47
+ }
48
+ }
49
+ const applicable = getApplicableRows(action, props.selectedRows, props.selectAll);
50
+ return applicable.length > 0;
11
51
  });
12
52
  });
13
53
  watch(visibleBulkActions, (actions) => {
14
54
  dp.setData(actions.map((row) => ({
55
+ ...row,
15
56
  label: row.label,
16
57
  action: row.action
17
58
  })));
@@ -19,13 +60,15 @@ export function useKBulkActionsLogic(props) {
19
60
  function doAction(action) {
20
61
  const act = action;
21
62
  if (act && act.action) {
22
- act.action(props.selectedRows, props.selectAll);
63
+ const applicableRows = getApplicableRows(act, props.selectedRows, props.selectAll);
64
+ act.action(applicableRows, props.selectAll);
23
65
  }
24
66
  }
25
67
  return {
26
68
  selected,
27
69
  dp,
28
70
  doAction,
29
- visibleBulkActions
71
+ visibleBulkActions,
72
+ getApplicableRows
30
73
  };
31
74
  }
@@ -56,10 +56,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
56
56
  }>, {
57
57
  size: "small" | "large" | "medium" | undefined;
58
58
  type: "default" | "info" | "success" | "warning" | "danger" | "primary" | "light" | "dark" | undefined;
59
+ loading: boolean;
59
60
  iconOnly: boolean;
60
61
  disabled: boolean;
61
62
  href: string;
62
- loading: boolean;
63
63
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
64
64
  declare const _default: typeof __VLS_export;
65
65
  export default _default;
@@ -56,10 +56,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
56
56
  }>, {
57
57
  size: "small" | "large" | "medium" | undefined;
58
58
  type: "default" | "info" | "success" | "warning" | "danger" | "primary" | "light" | "dark" | undefined;
59
+ loading: boolean;
59
60
  iconOnly: boolean;
60
61
  disabled: boolean;
61
62
  href: string;
62
- loading: boolean;
63
63
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
64
64
  declare const _default: typeof __VLS_export;
65
65
  export default _default;
@@ -23,7 +23,7 @@ export interface KButtonEmits {
23
23
  export declare function useKButtonLogic(props: KButtonProps, emit: KButtonEmits): {
24
24
  isLink: import("vue").ComputedRef<boolean>;
25
25
  isDisabled: import("vue").ComputedRef<boolean | undefined>;
26
- buttonClasses: import("vue").ComputedRef<("default" | "small" | "info" | "success" | "warning" | "danger" | "primary" | "light" | "dark" | "large" | "medium" | {
26
+ buttonClasses: import("vue").ComputedRef<("default" | "info" | "success" | "warning" | "danger" | "small" | "primary" | "light" | "dark" | "large" | "medium" | {
27
27
  disabled: boolean | undefined;
28
28
  'icon-only': boolean | undefined;
29
29
  })[]>;
@@ -54,11 +54,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
54
54
  }>> & Readonly<{
55
55
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
56
56
  }>, {
57
+ value: any;
57
58
  label: string;
58
59
  disabled: boolean;
59
60
  validation: "error" | "success" | "warning" | null | undefined;
60
61
  validationText: string;
61
- value: any;
62
62
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
63
63
  declare const _default: typeof __VLS_export;
64
64
  export default _default;
@@ -54,11 +54,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
54
54
  }>> & Readonly<{
55
55
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
56
56
  }>, {
57
+ value: any;
57
58
  label: string;
58
59
  disabled: boolean;
59
60
  validation: "error" | "success" | "warning" | null | undefined;
60
61
  validationText: string;
61
- value: any;
62
62
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
63
63
  declare const _default: typeof __VLS_export;
64
64
  export default _default;
@@ -159,17 +159,17 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
159
159
  validation: "error" | "success" | "warning" | null | undefined;
160
160
  validationText: string;
161
161
  modelValue: any;
162
- valueField: string;
163
- placeholder: string;
164
162
  searchbox: boolean;
165
- teleportTo: string;
166
163
  searchPlaceholder: string;
167
164
  isOptionsOpen: boolean;
165
+ placeholder: string;
166
+ teleportTo: string;
168
167
  fullWidth: boolean;
169
168
  closeOnSelect: boolean;
170
169
  multiSelect: boolean;
171
170
  maxSelectedDisplay: string | number | boolean;
172
171
  visibleFields: String[];
172
+ valueField: string;
173
173
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
174
174
  declare const _default: typeof __VLS_export;
175
175
  export default _default;
@@ -159,17 +159,17 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
159
159
  validation: "error" | "success" | "warning" | null | undefined;
160
160
  validationText: string;
161
161
  modelValue: any;
162
- valueField: string;
163
- placeholder: string;
164
162
  searchbox: boolean;
165
- teleportTo: string;
166
163
  searchPlaceholder: string;
167
164
  isOptionsOpen: boolean;
165
+ placeholder: string;
166
+ teleportTo: string;
168
167
  fullWidth: boolean;
169
168
  closeOnSelect: boolean;
170
169
  multiSelect: boolean;
171
170
  maxSelectedDisplay: string | number | boolean;
172
171
  visibleFields: String[];
172
+ valueField: string;
173
173
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
174
174
  declare const _default: typeof __VLS_export;
175
175
  export default _default;
@@ -193,18 +193,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
193
193
  validation: "error" | "success" | "warning" | null | undefined;
194
194
  validationText: string;
195
195
  modelValue: import("./KCompositeInput.logic.js").ICompositeItem[];
196
+ searchbox: boolean;
197
+ labelField: string;
198
+ placeholder: string;
199
+ teleportTo: string;
200
+ valueField: string;
196
201
  inputType: "number" | "url" | "search" | "text" | "password" | "email" | "tel" | undefined;
197
202
  selectionValue: string | number | Record<string, any> | unknown[];
198
203
  inputValue: string | number | Record<string, any> | unknown[];
199
204
  selectionSide: import("./KCompositeInput.logic.js").SelectionSide;
200
205
  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;
@@ -193,18 +193,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
193
193
  validation: "error" | "success" | "warning" | null | undefined;
194
194
  validationText: string;
195
195
  modelValue: import("./KCompositeInput.logic.js").ICompositeItem[];
196
+ searchbox: boolean;
197
+ labelField: string;
198
+ placeholder: string;
199
+ teleportTo: string;
200
+ valueField: string;
196
201
  inputType: "number" | "url" | "search" | "text" | "password" | "email" | "tel" | undefined;
197
202
  selectionValue: string | number | Record<string, any> | unknown[];
198
203
  inputValue: string | number | Record<string, any> | unknown[];
199
204
  selectionSide: import("./KCompositeInput.logic.js").SelectionSide;
200
205
  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;
@@ -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
- teleportTo: string;
50
49
  x: number;
50
+ teleportTo: string;
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
- teleportTo: string;
50
49
  x: number;
50
+ teleportTo: string;
51
51
  y: number;
52
52
  target: string | HTMLElement;
53
53
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -11,9 +11,9 @@ interface Props {
11
11
  page?: number;
12
12
  }
13
13
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
- bulkActions: IKDatatableAction[];
15
14
  search: string;
16
15
  loading: boolean;
16
+ bulkActions: IKDatatableAction[];
17
17
  visibleFields: Array<string> | null;
18
18
  rowActions: IKDatatableAction[];
19
19
  itemsPerPage: number;
@@ -11,9 +11,9 @@ interface Props {
11
11
  page?: number;
12
12
  }
13
13
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
14
- bulkActions: IKDatatableAction[];
15
14
  search: string;
16
15
  loading: boolean;
16
+ bulkActions: IKDatatableAction[];
17
17
  visibleFields: Array<string> | null;
18
18
  rowActions: IKDatatableAction[];
19
19
  itemsPerPage: number;
@@ -11,8 +11,8 @@ export declare const KDatatableDefaultProps: {
11
11
  emptyFilterStateText: string;
12
12
  };
13
13
  export declare function useKDatatableLogic(props: KDatatableProps): {
14
- selectedRows: import("@katlux/providers").CompatRef<any[]>;
15
- selectAll: import("@katlux/providers").CompatRef<boolean>;
14
+ selectedRows: import("@katlux/providers").CompatRef<any[]> | import("vue").Ref<any[], any[]>;
15
+ selectAll: import("vue").Ref<boolean, boolean> | import("@katlux/providers").CompatRef<boolean>;
16
16
  getRowKey: (row: any, index: number) => string | number;
17
17
  pageData: import("vue").Ref<import("@katlux/providers").TDataRow[], import("@katlux/providers").TDataRow[]>;
18
18
  };
@@ -7,10 +7,12 @@ export const KDatatableDefaultProps = {
7
7
  };
8
8
  export function useKDatatableLogic(props) {
9
9
  const { pageData, selectedRows: dpSelectedRows, selectAll: dpSelectAll } = useDataProvider(props.dataProvider);
10
- const selectedRows = props.dataProvider?.selectedRows || dpSelectedRows;
11
- const selectAll = props.dataProvider?.selectAll || dpSelectAll;
10
+ const selectedRows = props.dataProvider?.selectedRows && !props.dataProvider?.selectedRows?.__v_skip ? props.dataProvider.selectedRows : dpSelectedRows;
11
+ const selectAll = props.dataProvider?.selectAll && !props.dataProvider?.selectAll?.__v_skip ? props.dataProvider.selectAll : dpSelectAll;
12
12
  const idKey = props.dataProvider?.idKey || "id";
13
13
  const getRowId = (row) => row?.[idKey] ?? row?.id ?? row;
14
+ let isInternalUpdating = false;
15
+ const getPageRows = () => (props.dataProvider?.pageData?.value ?? props.dataProvider?.pageData ?? pageData.value) || [];
14
16
  const getRowKey = (row, index) => {
15
17
  if (row && row[idKey] !== void 0 && row[idKey] !== null) {
16
18
  return row[idKey];
@@ -23,8 +25,14 @@ export function useKDatatableLogic(props) {
23
25
  }
24
26
  return index;
25
27
  };
26
- let isInternalUpdating = false;
27
- const getPageRows = () => (props.dataProvider?.pageData?.value ?? props.dataProvider?.pageData ?? pageData.value) || [];
28
+ const syncToProvider = () => {
29
+ if (props.dataProvider?.selectedRows && props.dataProvider.selectedRows !== selectedRows) {
30
+ props.dataProvider.selectedRows.value = selectedRows.value;
31
+ }
32
+ if (props.dataProvider?.selectAll && props.dataProvider.selectAll !== selectAll) {
33
+ props.dataProvider.selectAll.value = selectAll.value;
34
+ }
35
+ };
28
36
  watch(() => selectAll.value, (newVal) => {
29
37
  if (isInternalUpdating) return;
30
38
  const currentRows = getPageRows();
@@ -36,21 +44,31 @@ export function useKDatatableLogic(props) {
36
44
  const newSelections = currentRows.filter((r) => !currentSelectedIds.has(getRowId(r)));
37
45
  selectedRows.value = [...selectedRows.value, ...newSelections];
38
46
  }
47
+ syncToProvider();
39
48
  });
40
49
  watch([getPageRows, () => selectedRows.value], () => {
41
50
  const currentRows = getPageRows();
42
51
  if (currentRows.length === 0) {
43
- isInternalUpdating = true;
44
- selectAll.value = false;
45
- isInternalUpdating = false;
52
+ if (selectAll.value) {
53
+ isInternalUpdating = true;
54
+ selectAll.value = false;
55
+ isInternalUpdating = false;
56
+ syncToProvider();
57
+ }
46
58
  return;
47
59
  }
48
60
  const selectedIds = new Set(selectedRows.value.map(getRowId));
49
61
  const allCurrentSelected = currentRows.every((r) => selectedIds.has(getRowId(r)));
50
- isInternalUpdating = true;
51
- selectAll.value = allCurrentSelected;
52
- isInternalUpdating = false;
62
+ if (selectAll.value !== allCurrentSelected) {
63
+ isInternalUpdating = true;
64
+ selectAll.value = allCurrentSelected;
65
+ isInternalUpdating = false;
66
+ }
67
+ syncToProvider();
53
68
  }, { immediate: true });
69
+ watch(() => selectedRows.value, () => {
70
+ syncToProvider();
71
+ }, { deep: true });
54
72
  return {
55
73
  selectedRows,
56
74
  selectAll,
@@ -127,8 +127,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
127
127
  validationText: string;
128
128
  modelValue: string | Date;
129
129
  placeholder: string;
130
- showClear: boolean;
131
130
  teleportTo: string;
131
+ showClear: boolean;
132
132
  align: "left" | "right" | undefined;
133
133
  format: string;
134
134
  calendarDefinedDays: import("../KCalendar/types.js").IDefinedDay[];
@@ -127,8 +127,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
127
127
  validationText: string;
128
128
  modelValue: string | Date;
129
129
  placeholder: string;
130
- showClear: boolean;
131
130
  teleportTo: string;
131
+ showClear: boolean;
132
132
  align: "left" | "right" | undefined;
133
133
  format: string;
134
134
  calendarDefinedDays: import("../KCalendar/types.js").IDefinedDay[];
@@ -133,8 +133,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
133
133
  validationText: string;
134
134
  modelValue: string | Date;
135
135
  placeholder: string;
136
- showClear: boolean;
137
136
  teleportTo: string;
137
+ showClear: boolean;
138
138
  format: string;
139
139
  calendarDefinedDays: import("../KCalendar/types.js").IDefinedDay[];
140
140
  calendarMarkedDays: import("../KCalendar/types.js").IMarkedDay[];
@@ -133,8 +133,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
133
133
  validationText: string;
134
134
  modelValue: string | Date;
135
135
  placeholder: string;
136
- showClear: boolean;
137
136
  teleportTo: string;
137
+ showClear: boolean;
138
138
  format: string;
139
139
  calendarDefinedDays: import("../KCalendar/types.js").IDefinedDay[];
140
140
  calendarMarkedDays: import("../KCalendar/types.js").IMarkedDay[];
@@ -54,8 +54,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
54
54
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
55
55
  }>, {
56
56
  isOpen: boolean;
57
- teleportTo: string;
58
57
  direction: import("./KDropdown.logic.js").KDropdownDirection;
58
+ teleportTo: string;
59
59
  fullWidth: boolean;
60
60
  align: import("./KDropdown.logic.js").KDropdownAlign;
61
61
  anchorEl: HTMLElement;
@@ -54,8 +54,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
54
54
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
55
55
  }>, {
56
56
  isOpen: boolean;
57
- teleportTo: string;
58
57
  direction: import("./KDropdown.logic.js").KDropdownDirection;
58
+ teleportTo: string;
59
59
  fullWidth: boolean;
60
60
  align: import("./KDropdown.logic.js").KDropdownAlign;
61
61
  anchorEl: HTMLElement;
@@ -53,9 +53,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
53
53
  }>> & Readonly<{
54
54
  "onUpdate:value"?: ((value: any) => any) | undefined;
55
55
  }>, {
56
+ value: number;
56
57
  label: string;
57
58
  disabled: boolean;
58
- value: number;
59
59
  step: number;
60
60
  min: number;
61
61
  max: number;
@@ -53,9 +53,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
53
53
  }>> & Readonly<{
54
54
  "onUpdate:value"?: ((value: any) => any) | undefined;
55
55
  }>, {
56
+ value: number;
56
57
  label: string;
57
58
  disabled: boolean;
58
- value: number;
59
59
  step: number;
60
60
  min: number;
61
61
  max: number;
@@ -57,10 +57,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
57
57
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
58
58
  }>, {
59
59
  label: string;
60
+ rows: number;
60
61
  validation: "error" | "success" | "warning" | null | undefined;
61
62
  validationText: string;
62
63
  placeholder: string;
63
- rows: number;
64
64
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65
65
  declare const _default: typeof __VLS_export;
66
66
  export default _default;
@@ -57,10 +57,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
57
57
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
58
58
  }>, {
59
59
  label: string;
60
+ rows: number;
60
61
  validation: "error" | "success" | "warning" | null | undefined;
61
62
  validationText: string;
62
63
  placeholder: string;
63
- rows: number;
64
64
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65
65
  declare const _default: typeof __VLS_export;
66
66
  export default _default;
@@ -66,8 +66,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
66
66
  };
67
67
  }>> & Readonly<{}>, {
68
68
  disabled: boolean;
69
- labelField: string;
70
69
  searchtext: string;
70
+ labelField: string;
71
71
  multiSelect: boolean;
72
72
  iconField: string;
73
73
  isNodeSelected: (node: any) => boolean;
@@ -66,8 +66,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
66
66
  };
67
67
  }>> & Readonly<{}>, {
68
68
  disabled: boolean;
69
- labelField: string;
70
69
  searchtext: string;
70
+ labelField: string;
71
71
  multiSelect: boolean;
72
72
  iconField: string;
73
73
  isNodeSelected: (node: any) => boolean;
@@ -164,23 +164,23 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
164
164
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
165
165
  "onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
166
166
  }>, {
167
+ parentKey: string;
168
+ loading: boolean;
169
+ idKey: string;
167
170
  label: string;
168
171
  disabled: boolean;
169
- loading: boolean;
170
172
  validation: "error" | "success" | "warning" | null | undefined;
171
173
  validationText: string;
172
174
  modelValue: any;
173
- valueField: string;
174
- placeholder: string;
175
175
  searchbox: boolean;
176
176
  searchPlaceholder: string;
177
177
  isOptionsOpen: boolean;
178
+ placeholder: string;
178
179
  fullWidth: boolean;
179
180
  closeOnSelect: boolean;
180
181
  multiSelect: boolean;
182
+ valueField: string;
181
183
  iconField: string;
182
- idKey: string;
183
- parentKey: string;
184
184
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
185
185
  declare const _default: typeof __VLS_export;
186
186
  export default _default;
@@ -164,23 +164,23 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
164
164
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
165
165
  "onUpdate:isOptionsOpen"?: ((value: boolean) => any) | undefined;
166
166
  }>, {
167
+ parentKey: string;
168
+ loading: boolean;
169
+ idKey: string;
167
170
  label: string;
168
171
  disabled: boolean;
169
- loading: boolean;
170
172
  validation: "error" | "success" | "warning" | null | undefined;
171
173
  validationText: string;
172
174
  modelValue: any;
173
- valueField: string;
174
- placeholder: string;
175
175
  searchbox: boolean;
176
176
  searchPlaceholder: string;
177
177
  isOptionsOpen: boolean;
178
+ placeholder: string;
178
179
  fullWidth: boolean;
179
180
  closeOnSelect: boolean;
180
181
  multiSelect: boolean;
182
+ valueField: string;
181
183
  iconField: string;
182
- idKey: string;
183
- parentKey: string;
184
184
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
185
185
  declare const _default: typeof __VLS_export;
186
186
  export default _default;
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
81
81
  default: () => {};
82
82
  };
83
83
  }>> & Readonly<{}>, {
84
+ parentKey: string;
85
+ idKey: string;
86
+ expandedByDefault: boolean;
84
87
  bulkActions: import("@katlux/providers").IKDatatableAction[];
85
88
  rowActions: import("@katlux/providers").IKDatatableAction[];
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;
@@ -81,14 +81,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
81
81
  default: () => {};
82
82
  };
83
83
  }>> & Readonly<{}>, {
84
+ parentKey: string;
85
+ idKey: string;
86
+ expandedByDefault: boolean;
84
87
  bulkActions: import("@katlux/providers").IKDatatableAction[];
85
88
  rowActions: import("@katlux/providers").IKDatatableAction[];
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@katlux/toolkit",
3
- "version": "0.1.1-alpha.109",
3
+ "version": "0.1.1-alpha.110",
4
4
  "description": "Core UI toolkit and utilities for the Katlux ecosystem",
5
5
  "author": "Katlux",
6
6
  "license": "Apache-2.0",