@katlux/toolkit 0.1.1-alpha.134 → 0.1.1-alpha.136

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 (48) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/KAccordion/KAccordion.global.d.vue.ts +1 -1
  3. package/dist/runtime/components/KAccordion/KAccordion.global.vue.d.ts +1 -1
  4. package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
  5. package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +1 -1
  6. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +1 -1
  7. package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +1 -1
  8. package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +1 -1
  9. package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +1 -1
  10. package/dist/runtime/components/KCombobox/KCombobox.logic.js +36 -11
  11. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +6 -6
  12. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +6 -6
  13. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +3 -3
  14. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.js +9 -3
  15. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +5 -5
  16. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +5 -5
  17. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +3 -3
  18. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +3 -3
  19. package/dist/runtime/components/KGrid/KGrid.global.d.vue.ts +1 -1
  20. package/dist/runtime/components/KGrid/KGrid.global.vue.d.ts +1 -1
  21. package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +1 -1
  22. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +1 -1
  23. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +1 -1
  24. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +1 -1
  25. package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +1 -1
  26. package/dist/runtime/components/KRadiobox/KRadiobox.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/KTextbox/KTextbox.global.d.vue.ts +2 -2
  30. package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +2 -2
  31. package/dist/runtime/components/KTooltip/KTooltip.global.d.vue.ts +1 -1
  32. package/dist/runtime/components/KTooltip/KTooltip.global.vue.d.ts +1 -1
  33. package/dist/runtime/components/KTree/KTree.global.d.vue.ts +10 -0
  34. package/dist/runtime/components/KTree/KTree.global.vue +6 -3
  35. package/dist/runtime/components/KTree/KTree.global.vue.d.ts +10 -0
  36. package/dist/runtime/components/KTree/KTree.logic.d.ts +6 -0
  37. package/dist/runtime/components/KTree/KTree.logic.js +13 -2
  38. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +2 -2
  39. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +3 -2
  40. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +2 -2
  41. package/dist/runtime/components/KTreePicker/KTreePicker.logic.d.ts +1 -1
  42. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.d.vue.ts +2 -2
  43. package/dist/runtime/presets/default/components/KHourPicker/KHourPicker.vue.d.ts +2 -2
  44. package/dist/runtime/presets/default/components/KTree/KTree.d.vue.ts +2 -0
  45. package/dist/runtime/presets/default/components/KTree/KTree.vue +5 -0
  46. package/dist/runtime/presets/default/components/KTree/KTree.vue.d.ts +2 -0
  47. package/dist/skills/katlux-config/SKILL.md +7 -7
  48. package/package.json +2 -2
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.134",
4
+ "version": "0.1.1-alpha.136",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -27,8 +27,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
27
27
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
28
28
  onChange?: ((value: any) => any) | undefined;
29
29
  }>, {
30
- modelValue: string | number | string[] | number[];
31
30
  multiOpen: boolean;
31
+ modelValue: string | number | string[] | number[];
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
33
33
  declare const _default: typeof __VLS_export;
34
34
  export default _default;
@@ -27,8 +27,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
27
27
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
28
28
  onChange?: ((value: any) => any) | undefined;
29
29
  }>, {
30
- modelValue: string | number | string[] | number[];
31
30
  multiOpen: boolean;
31
+ modelValue: string | number | string[] | number[];
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
33
33
  declare const _default: typeof __VLS_export;
34
34
  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" | "info" | "success" | "warning" | "danger" | "small" | "primary" | "light" | "dark" | "large" | "medium" | {
26
+ buttonClasses: import("vue").ComputedRef<("small" | "default" | "info" | "success" | "warning" | "danger" | "primary" | "light" | "dark" | "large" | "medium" | {
27
27
  disabled: boolean | undefined;
28
28
  'icon-only': boolean | undefined;
29
29
  })[]>;
@@ -77,7 +77,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
77
77
  }>, {
78
78
  label: string;
79
79
  disabled: boolean;
80
- validation: "success" | "warning" | "error" | null | undefined;
80
+ validation: "error" | "success" | "warning" | null | undefined;
81
81
  validationText: string;
82
82
  idKey: string;
83
83
  indeterminate: boolean;
@@ -77,7 +77,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
77
77
  }>, {
78
78
  label: string;
79
79
  disabled: boolean;
80
- validation: "success" | "warning" | "error" | null | undefined;
80
+ validation: "error" | "success" | "warning" | null | undefined;
81
81
  validationText: string;
82
82
  idKey: string;
83
83
  indeterminate: boolean;
@@ -225,7 +225,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
225
225
  modelValue: any;
226
226
  label: string;
227
227
  disabled: boolean;
228
- validation: "success" | "warning" | "error" | null | undefined;
228
+ validation: "error" | "success" | "warning" | null | undefined;
229
229
  validationText: string;
230
230
  searchbox: boolean;
231
231
  searchtext: string;
@@ -225,7 +225,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
225
225
  modelValue: any;
226
226
  label: string;
227
227
  disabled: boolean;
228
- validation: "success" | "warning" | "error" | null | undefined;
228
+ validation: "error" | "success" | "warning" | null | undefined;
229
229
  validationText: string;
230
230
  searchbox: boolean;
231
231
  searchtext: string;
@@ -143,7 +143,7 @@ export declare function useKComboboxLogic(props: KComboboxProps, emit: KCombobox
143
143
  searchtext: import("vue").Ref<string, string>;
144
144
  selectItem: (option: ComboboxItem) => void;
145
145
  isSelected: (option: ComboboxItem) => boolean | undefined;
146
- getSelectedContent: () => TDataRow[];
146
+ getSelectedContent: () => any[];
147
147
  toggleDropdown: () => void;
148
148
  closeDropdown: () => void;
149
149
  filteredOptions: import("vue").ComputedRef<TDataRow[]>;
@@ -211,25 +211,35 @@ export function useKComboboxLogic(props, emit) {
211
211
  return selectedItems.value?.some((item) => item[props.labelField] === option[props.labelField]);
212
212
  }
213
213
  function getSelectedContent() {
214
- if (selectedItems.value && selectedItems.value.length > 0)
214
+ if (selectedItems.value && selectedItems.value.length > 0) {
215
+ const sanitizedItems = selectedItems.value.map((item) => {
216
+ if (item && item[props.labelField] && typeof item[props.labelField] === "object" && item[props.labelField].__encrypted) {
217
+ const val = props.valueField ? item[props.valueField] : item.id;
218
+ const decryptedCandidate = loadedOptions.value.find((opt) => (props.valueField ? opt[props.valueField] : opt.id) === val) || (unref(props.dataProvider?.rowMap) || []).find((opt) => (props.valueField ? opt[props.valueField] : opt.id) === val) || (dpPageData.value || []).find((opt) => (props.valueField ? opt[props.valueField] : opt.id) === val);
219
+ if (decryptedCandidate && (typeof decryptedCandidate[props.labelField] === "string" || !decryptedCandidate[props.labelField]?.__encrypted)) {
220
+ return decryptedCandidate;
221
+ }
222
+ }
223
+ return item;
224
+ });
215
225
  if (props.multiSelect) {
216
- if (!props.maxSelectedDisplay) return selectedItems.value;
217
- else if (selectedItems.value.length <= Number(props.maxSelectedDisplay)) {
218
- return selectedItems.value;
226
+ if (!props.maxSelectedDisplay) return sanitizedItems;
227
+ else if (sanitizedItems.length <= Number(props.maxSelectedDisplay)) {
228
+ return sanitizedItems;
219
229
  } else {
220
- const maxDisplay = selectedItems.value.slice(
230
+ const maxDisplay = sanitizedItems.slice(
221
231
  0,
222
232
  Number(props.maxSelectedDisplay)
223
233
  );
224
234
  maxDisplay.push({
225
235
  [props.labelField]: "+" + String(
226
- selectedItems.value.length - Number(props.maxSelectedDisplay)
236
+ sanitizedItems.length - Number(props.maxSelectedDisplay)
227
237
  )
228
238
  });
229
239
  return maxDisplay;
230
240
  }
231
- } else return selectedItems.value;
232
- else return [];
241
+ } else return sanitizedItems;
242
+ } else return [];
233
243
  }
234
244
  function toggleDropdown() {
235
245
  if (props.disabled) return;
@@ -481,10 +491,25 @@ export function useKComboboxLogic(props, emit) {
481
491
  selectedItems.value = Array.isArray(props.modelValue) ? props.modelValue : [props.modelValue];
482
492
  return;
483
493
  }
494
+ const values = Array.isArray(props.modelValue) ? props.modelValue : [props.modelValue];
495
+ if (selectedItems.value && selectedItems.value.length === values.length) {
496
+ const currentMatches = values.every(
497
+ (v) => selectedItems.value.some((item) => {
498
+ const itemVal = item[props.valueField];
499
+ const labelVal = item[props.labelField];
500
+ const isDecrypted = typeof labelVal === "string" || labelVal && typeof labelVal === "object" && !labelVal.__encrypted;
501
+ return itemVal === v && Boolean(isDecrypted);
502
+ })
503
+ );
504
+ if (currentMatches) {
505
+ return;
506
+ }
507
+ }
484
508
  const provider = props.dataProvider;
485
- const data = unref(provider?.allData) || loadedOptions.value || dpPageData.value || [];
509
+ const rowMap = unref(provider?.rowMap);
510
+ const pageData = dpPageData.value || unref(provider?.pageData);
511
+ const data = Array.isArray(loadedOptions.value) && loadedOptions.value.length > 0 ? loadedOptions.value : Array.isArray(rowMap) && rowMap.length > 0 ? rowMap : Array.isArray(pageData) && pageData.length > 0 ? pageData : unref(provider?.allData) || [];
486
512
  if (data.length === 0) return;
487
- const values = Array.isArray(props.modelValue) ? props.modelValue : [props.modelValue];
488
513
  const matchedItems = data.filter((item) => values.includes(item[props.valueField]));
489
514
  if (matchedItems.length > 0) {
490
515
  selectedItems.value = matchedItems;
@@ -504,7 +529,7 @@ export function useKComboboxLogic(props, emit) {
504
529
  watch(
505
530
  () => [unref(props.dataProvider?.allData), unref(props.dataProvider?.pageData), loadedOptions.value.length],
506
531
  () => {
507
- if (props.modelValue !== void 0 && props.modelValue !== null && (!selectedItems.value || selectedItems.value.length === 0 || !selectedItems.value[0]?.[props.labelField])) {
532
+ if (props.modelValue !== void 0 && props.modelValue !== null && (!selectedItems.value || selectedItems.value.length === 0 || !selectedItems.value[0]?.[props.labelField] || selectedItems.value[0]?.[props.labelField]?.__encrypted)) {
508
533
  resolveSelectedFromValue();
509
534
  }
510
535
  }
@@ -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: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
8
+ type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
9
9
  default: null;
10
10
  };
11
11
  inputValue: {
12
- type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
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: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
102
+ type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
103
103
  default: null;
104
104
  };
105
105
  inputValue: {
106
- type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
106
+ type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
107
107
  default: string;
108
108
  };
109
109
  modelValue: {
@@ -191,7 +191,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
191
191
  modelValue: import("./KCompositeInput.logic.js").ICompositeItem[];
192
192
  type: import("./KCompositeInput.logic.js").CompositeInputType;
193
193
  label: string;
194
- validation: "success" | "warning" | "error" | null | undefined;
194
+ validation: "error" | "success" | "warning" | null | undefined;
195
195
  validationText: string;
196
196
  searchbox: boolean;
197
197
  labelField: string;
@@ -199,7 +199,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
199
199
  teleportTo: string;
200
200
  mask: string;
201
201
  valueField: string;
202
- inputType: "number" | "url" | "search" | "text" | "password" | "email" | "tel" | undefined;
202
+ inputType: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
203
203
  selectionValue: string | number | Record<string, any> | unknown[];
204
204
  inputValue: string | number | Record<string, any> | unknown[];
205
205
  selectionSide: import("./KCompositeInput.logic.js").SelectionSide;
@@ -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: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
8
+ type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
9
9
  default: null;
10
10
  };
11
11
  inputValue: {
12
- type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
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: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
102
+ type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
103
103
  default: null;
104
104
  };
105
105
  inputValue: {
106
- type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
106
+ type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
107
107
  default: string;
108
108
  };
109
109
  modelValue: {
@@ -191,7 +191,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
191
191
  modelValue: import("./KCompositeInput.logic.js").ICompositeItem[];
192
192
  type: import("./KCompositeInput.logic.js").CompositeInputType;
193
193
  label: string;
194
- validation: "success" | "warning" | "error" | null | undefined;
194
+ validation: "error" | "success" | "warning" | null | undefined;
195
195
  validationText: string;
196
196
  searchbox: boolean;
197
197
  labelField: string;
@@ -199,7 +199,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
199
199
  teleportTo: string;
200
200
  mask: string;
201
201
  valueField: string;
202
- inputType: "number" | "url" | "search" | "text" | "password" | "email" | "tel" | undefined;
202
+ inputType: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
203
203
  selectionValue: string | number | Record<string, any> | unknown[];
204
204
  inputValue: string | number | Record<string, any> | unknown[];
205
205
  selectionSide: import("./KCompositeInput.logic.js").SelectionSide;
@@ -73,11 +73,11 @@ export declare const KCompositeInputDefaultProps: {
73
73
  default: string;
74
74
  };
75
75
  selectionValue: {
76
- type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
76
+ type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
77
77
  default: null;
78
78
  };
79
79
  inputValue: {
80
- type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
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" | "url" | "search" | "text" | "password" | "email" | "tel" | undefined;
179
+ type: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
180
180
  mask: string | undefined;
181
181
  showClear: boolean | undefined;
182
182
  }>;
@@ -102,7 +102,9 @@ export function useKCompositeInputLogic(props, emit) {
102
102
  if (typeof props.selectionValue === "object") return props.selectionValue;
103
103
  if (props.dataProvider && typeof props.dataProvider === "object") {
104
104
  const provider = props.dataProvider;
105
- const data = unref(provider.allData) || unref(provider.pageData) || [];
105
+ const pageData = unref(provider.pageData);
106
+ const rowMap = unref(provider.rowMap);
107
+ const data = Array.isArray(pageData) && pageData.length > 0 ? pageData : Array.isArray(rowMap) && rowMap.length > 0 ? rowMap : unref(provider.allData) || [];
106
108
  return data.find((item) => getSelectionKey(item) === props.selectionValue) || props.selectionValue;
107
109
  }
108
110
  return props.selectionValue;
@@ -129,7 +131,9 @@ export function useKCompositeInputLogic(props, emit) {
129
131
  const resolvedValidation = computed(() => {
130
132
  if (props.validateAll) {
131
133
  const provider = props.dataProvider;
132
- const data = unref(provider?.allData) || unref(provider?.pageData) || [];
134
+ const pageData = unref(provider?.pageData);
135
+ const rowMap = unref(provider?.rowMap);
136
+ const data = Array.isArray(pageData) && pageData.length > 0 ? pageData : Array.isArray(rowMap) && rowMap.length > 0 ? rowMap : unref(provider?.allData) || [];
133
137
  const configField = props.inputConfigField || "inputConfig";
134
138
  const activeConfig = resolvedInputConfig.value;
135
139
  if (activeConfig.validation && activeConfig.validation !== "success") {
@@ -156,7 +160,9 @@ export function useKCompositeInputLogic(props, emit) {
156
160
  const resolvedValidationText = computed(() => {
157
161
  if (props.validateAll) {
158
162
  const provider = props.dataProvider;
159
- const data = unref(provider?.allData) || unref(provider?.pageData) || [];
163
+ const pageData = unref(provider?.pageData);
164
+ const rowMap = unref(provider?.rowMap);
165
+ const data = Array.isArray(pageData) && pageData.length > 0 ? pageData : Array.isArray(rowMap) && rowMap.length > 0 ? rowMap : unref(provider?.allData) || [];
160
166
  const configField = props.inputConfigField || "inputConfig";
161
167
  const activeConfig = resolvedInputConfig.value;
162
168
  if (activeConfig.validation && activeConfig.validation !== "success") {
@@ -55,12 +55,12 @@ 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
- blur: (event: FocusEvent) => any;
59
58
  change: (value: string | Date) => any;
59
+ blur: (event: FocusEvent) => any;
60
+ "update:isOpen": (value: boolean) => any;
60
61
  "update:maskedModel": (value: string) => any;
61
62
  "update:calendarShow": (value: boolean) => any;
62
63
  "update:day": (value: string | Date) => any;
63
- "update:isOpen": (value: boolean) => any;
64
64
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
65
65
  label: {
66
66
  type: StringConstructor;
@@ -117,12 +117,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
117
117
  };
118
118
  }>> & Readonly<{
119
119
  "onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
120
- onBlur?: ((event: FocusEvent) => any) | undefined;
121
120
  onChange?: ((value: string | Date) => any) | undefined;
121
+ onBlur?: ((event: FocusEvent) => any) | undefined;
122
+ "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
122
123
  "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
123
124
  "onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
124
125
  "onUpdate:day"?: ((value: string | Date) => any) | undefined;
125
- "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
126
126
  }>, {
127
127
  modelValue: string | Date;
128
128
  isOpen: boolean;
@@ -130,7 +130,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
130
130
  definedDays: import("../KCalendar/types.js").IDefinedDay[];
131
131
  markedDays: import("../KCalendar/types.js").IMarkedDay[];
132
132
  day: string | Date;
133
- validation: "success" | "warning" | "error" | null | undefined;
133
+ validation: "error" | "success" | "warning" | null | undefined;
134
134
  validationText: string;
135
135
  placeholder: string;
136
136
  teleportTo: string;
@@ -55,12 +55,12 @@ 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
- blur: (event: FocusEvent) => any;
59
58
  change: (value: string | Date) => any;
59
+ blur: (event: FocusEvent) => any;
60
+ "update:isOpen": (value: boolean) => any;
60
61
  "update:maskedModel": (value: string) => any;
61
62
  "update:calendarShow": (value: boolean) => any;
62
63
  "update:day": (value: string | Date) => any;
63
- "update:isOpen": (value: boolean) => any;
64
64
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
65
65
  label: {
66
66
  type: StringConstructor;
@@ -117,12 +117,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
117
117
  };
118
118
  }>> & Readonly<{
119
119
  "onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
120
- onBlur?: ((event: FocusEvent) => any) | undefined;
121
120
  onChange?: ((value: string | Date) => any) | undefined;
121
+ onBlur?: ((event: FocusEvent) => any) | undefined;
122
+ "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
122
123
  "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
123
124
  "onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
124
125
  "onUpdate:day"?: ((value: string | Date) => any) | undefined;
125
- "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
126
126
  }>, {
127
127
  modelValue: string | Date;
128
128
  isOpen: boolean;
@@ -130,7 +130,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
130
130
  definedDays: import("../KCalendar/types.js").IDefinedDay[];
131
131
  markedDays: import("../KCalendar/types.js").IMarkedDay[];
132
132
  day: string | Date;
133
- validation: "success" | "warning" | "error" | null | undefined;
133
+ validation: "error" | "success" | "warning" | null | undefined;
134
134
  validationText: string;
135
135
  placeholder: string;
136
136
  teleportTo: string;
@@ -59,9 +59,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
59
59
  };
60
60
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
61
61
  "update:modelValue": (value: string | Date) => any;
62
+ "update:isOpen": (value: boolean) => any;
62
63
  "update:maskedModel": (value: string) => any;
63
64
  "update:calendarShow": (value: boolean) => any;
64
- "update:isOpen": (value: boolean) => any;
65
65
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
66
66
  label: {
67
67
  type: StringConstructor;
@@ -122,9 +122,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
122
122
  };
123
123
  }>> & Readonly<{
124
124
  "onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
125
+ "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
125
126
  "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
126
127
  "onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
127
- "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
128
128
  }>, {
129
129
  modelValue: string | Date;
130
130
  isOpen: boolean;
@@ -132,7 +132,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
132
132
  definedDays: import("../KCalendar/types.js").IDefinedDay[];
133
133
  markedDays: import("../KCalendar/types.js").IMarkedDay[];
134
134
  day: string | Date;
135
- validation: "success" | "warning" | "error" | null | undefined;
135
+ validation: "error" | "success" | "warning" | null | undefined;
136
136
  validationText: string;
137
137
  placeholder: string;
138
138
  teleportTo: string;
@@ -59,9 +59,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
59
59
  };
60
60
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
61
61
  "update:modelValue": (value: string | Date) => any;
62
+ "update:isOpen": (value: boolean) => any;
62
63
  "update:maskedModel": (value: string) => any;
63
64
  "update:calendarShow": (value: boolean) => any;
64
- "update:isOpen": (value: boolean) => any;
65
65
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
66
66
  label: {
67
67
  type: StringConstructor;
@@ -122,9 +122,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
122
122
  };
123
123
  }>> & Readonly<{
124
124
  "onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
125
+ "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
125
126
  "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
126
127
  "onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
127
- "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
128
128
  }>, {
129
129
  modelValue: string | Date;
130
130
  isOpen: boolean;
@@ -132,7 +132,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
132
132
  definedDays: import("../KCalendar/types.js").IDefinedDay[];
133
133
  markedDays: import("../KCalendar/types.js").IMarkedDay[];
134
134
  day: string | Date;
135
- validation: "success" | "warning" | "error" | null | undefined;
135
+ validation: "error" | "success" | "warning" | null | undefined;
136
136
  validationText: string;
137
137
  placeholder: string;
138
138
  teleportTo: string;
@@ -1,8 +1,8 @@
1
1
  import { type KGridProps } from './KGrid.logic.js';
2
2
  declare const __VLS_export: import("vue").DefineComponent<KGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KGridProps> & Readonly<{}>, {
3
3
  direction: "row" | "column";
4
- align: "start" | "center" | "end" | "stretch" | "baseline";
5
4
  noGap: boolean;
5
+ align: "start" | "center" | "end" | "stretch" | "baseline";
6
6
  wrap: "wrap" | "nowrap";
7
7
  flexChild: boolean;
8
8
  justify: "start" | "center" | "end" | "space-between" | "around" | "evenly";
@@ -1,8 +1,8 @@
1
1
  import { type KGridProps } from './KGrid.logic.js';
2
2
  declare const __VLS_export: import("vue").DefineComponent<KGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KGridProps> & Readonly<{}>, {
3
3
  direction: "row" | "column";
4
- align: "start" | "center" | "end" | "stretch" | "baseline";
5
4
  noGap: boolean;
5
+ align: "start" | "center" | "end" | "stretch" | "baseline";
6
6
  wrap: "wrap" | "nowrap";
7
7
  flexChild: boolean;
8
8
  justify: "start" | "center" | "end" | "space-between" | "around" | "evenly";
@@ -110,7 +110,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
110
110
  isOpen: boolean;
111
111
  label: string;
112
112
  disabled: boolean;
113
- validation: "success" | "warning" | "error" | null | undefined;
113
+ validation: "error" | "success" | "warning" | null | undefined;
114
114
  validationText: string;
115
115
  placeholder: string;
116
116
  showClear: boolean;
@@ -110,7 +110,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
110
110
  isOpen: boolean;
111
111
  label: string;
112
112
  disabled: boolean;
113
- validation: "success" | "warning" | "error" | null | undefined;
113
+ validation: "error" | "success" | "warning" | null | undefined;
114
114
  validationText: string;
115
115
  placeholder: string;
116
116
  showClear: boolean;
@@ -66,7 +66,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
66
66
  }>, {
67
67
  modelValue: string;
68
68
  label: string;
69
- validation: "success" | "warning" | "error" | null | undefined;
69
+ validation: "error" | "success" | "warning" | null | undefined;
70
70
  validationText: string;
71
71
  placeholder: string;
72
72
  showClear: boolean;
@@ -66,7 +66,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
66
66
  }>, {
67
67
  modelValue: string;
68
68
  label: string;
69
- validation: "success" | "warning" | "error" | null | undefined;
69
+ validation: "error" | "success" | "warning" | null | undefined;
70
70
  validationText: string;
71
71
  placeholder: string;
72
72
  showClear: boolean;
@@ -51,7 +51,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
51
51
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
52
52
  }>, {
53
53
  disabled: boolean;
54
- validation: "success" | "warning" | "error" | null | undefined;
54
+ validation: "error" | "success" | "warning" | null | undefined;
55
55
  validationText: string;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
57
57
  declare const _default: typeof __VLS_export;
@@ -51,7 +51,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
51
51
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
52
52
  }>, {
53
53
  disabled: boolean;
54
- validation: "success" | "warning" | "error" | null | undefined;
54
+ validation: "error" | "success" | "warning" | null | undefined;
55
55
  validationText: string;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
57
57
  declare const _default: typeof __VLS_export;
@@ -57,7 +57,7 @@ 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
- validation: "success" | "warning" | "error" | null | undefined;
60
+ validation: "error" | "success" | "warning" | null | undefined;
61
61
  validationText: string;
62
62
  placeholder: string;
63
63
  rows: number;
@@ -57,7 +57,7 @@ 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
- validation: "success" | "warning" | "error" | null | undefined;
60
+ validation: "error" | "success" | "warning" | null | undefined;
61
61
  validationText: string;
62
62
  placeholder: string;
63
63
  rows: number;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
67
67
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
68
68
  }>, {
69
69
  modelValue: string;
70
- type: "number" | "url" | "search" | "text" | "password" | "email" | "tel" | undefined;
70
+ type: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
71
71
  label: string;
72
- validation: "success" | "warning" | "error" | null | undefined;
72
+ validation: "error" | "success" | "warning" | null | undefined;
73
73
  validationText: string;
74
74
  placeholder: string;
75
75
  showClear: boolean;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
67
67
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
68
68
  }>, {
69
69
  modelValue: string;
70
- type: "number" | "url" | "search" | "text" | "password" | "email" | "tel" | undefined;
70
+ type: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
71
71
  label: string;
72
- validation: "success" | "warning" | "error" | null | undefined;
72
+ validation: "error" | "success" | "warning" | null | undefined;
73
73
  validationText: string;
74
74
  placeholder: string;
75
75
  showClear: boolean;
@@ -27,7 +27,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
27
27
  }>> & Readonly<{}>, {
28
28
  disabled: boolean;
29
29
  text: string;
30
- position: "left" | "right" | "top" | "bottom";
30
+ position: "top" | "left" | "right" | "bottom";
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
33
33
  export default _default;
@@ -27,7 +27,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
27
27
  }>> & Readonly<{}>, {
28
28
  disabled: boolean;
29
29
  text: string;
30
- position: "left" | "right" | "top" | "bottom";
30
+ position: "top" | "left" | "right" | "bottom";
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
33
33
  export default _default;
@@ -63,11 +63,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
63
63
  type: NumberConstructor;
64
64
  default: number;
65
65
  };
66
+ loading: {
67
+ type: BooleanConstructor;
68
+ default: undefined;
69
+ };
66
70
  }>, {
67
71
  visibleRows: import("vue").ComputedRef<import("@katlux/providers").TTreeRow[]>;
68
72
  expandedNodes: import("vue").Ref<Set<string | number> & Omit<Set<string | number>, keyof Set<any>>, Set<string | number> | (Set<string | number> & Omit<Set<string | number>, keyof Set<any>>)>;
69
73
  toggleNode: (nodeId: string | number) => void;
70
74
  selectNode: (node: any) => void;
75
+ loading: import("vue").ComputedRef<boolean>;
71
76
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
72
77
  "update:modelValue": (val: any) => any;
73
78
  select: (node: any) => any;
@@ -141,6 +146,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
141
146
  type: NumberConstructor;
142
147
  default: number;
143
148
  };
149
+ loading: {
150
+ type: BooleanConstructor;
151
+ default: undefined;
152
+ };
144
153
  }>> & Readonly<{
145
154
  "onUpdate:modelValue"?: ((val: any) => any) | undefined;
146
155
  onSelect?: ((node: any) => any) | undefined;
@@ -152,6 +161,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
152
161
  }>, {
153
162
  modelValue: any;
154
163
  disabled: boolean;
164
+ loading: boolean;
155
165
  idKey: string;
156
166
  searchtext: string;
157
167
  virtualScroll: boolean;
@@ -9,7 +9,8 @@ const {
9
9
  visibleRows,
10
10
  expandedNodes,
11
11
  toggleNode,
12
- selectNode
12
+ selectNode,
13
+ loading
13
14
  } = useKTreeLogic(props, emit);
14
15
  const presetComponent = usePresetComponent("KTree", KTreeDefault);
15
16
  const templateProps = computed(() => ({
@@ -31,13 +32,15 @@ const templateProps = computed(() => ({
31
32
  virtualScroll: props.virtualScroll,
32
33
  itemHeight: props.itemHeight,
33
34
  viewportHeight: props.viewportHeight,
34
- buffer: props.buffer
35
+ buffer: props.buffer,
36
+ loading: loading.value
35
37
  }));
36
38
  defineExpose({
37
39
  visibleRows,
38
40
  expandedNodes,
39
41
  toggleNode,
40
- selectNode
42
+ selectNode,
43
+ loading
41
44
  });
42
45
  </script>
43
46
 
@@ -63,11 +63,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
63
63
  type: NumberConstructor;
64
64
  default: number;
65
65
  };
66
+ loading: {
67
+ type: BooleanConstructor;
68
+ default: undefined;
69
+ };
66
70
  }>, {
67
71
  visibleRows: import("vue").ComputedRef<import("@katlux/providers").TTreeRow[]>;
68
72
  expandedNodes: import("vue").Ref<Set<string | number> & Omit<Set<string | number>, keyof Set<any>>, Set<string | number> | (Set<string | number> & Omit<Set<string | number>, keyof Set<any>>)>;
69
73
  toggleNode: (nodeId: string | number) => void;
70
74
  selectNode: (node: any) => void;
75
+ loading: import("vue").ComputedRef<boolean>;
71
76
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
72
77
  "update:modelValue": (val: any) => any;
73
78
  select: (node: any) => any;
@@ -141,6 +146,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
141
146
  type: NumberConstructor;
142
147
  default: number;
143
148
  };
149
+ loading: {
150
+ type: BooleanConstructor;
151
+ default: undefined;
152
+ };
144
153
  }>> & Readonly<{
145
154
  "onUpdate:modelValue"?: ((val: any) => any) | undefined;
146
155
  onSelect?: ((node: any) => any) | undefined;
@@ -152,6 +161,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
152
161
  }>, {
153
162
  modelValue: any;
154
163
  disabled: boolean;
164
+ loading: boolean;
155
165
  idKey: string;
156
166
  searchtext: string;
157
167
  virtualScroll: boolean;
@@ -17,6 +17,7 @@ export interface KTreeProps {
17
17
  itemHeight?: number;
18
18
  viewportHeight?: number;
19
19
  buffer?: number;
20
+ loading?: boolean;
20
21
  }
21
22
  export type KTreeEmits = {
22
23
  (e: 'update:searchtext', val: string): void;
@@ -92,10 +93,15 @@ export declare const KTreeDefaultProps: {
92
93
  type: NumberConstructor;
93
94
  default: number;
94
95
  };
96
+ loading: {
97
+ type: BooleanConstructor;
98
+ default: undefined;
99
+ };
95
100
  };
96
101
  export declare function useKTreeLogic(props: KTreeProps, emit?: KTreeEmits): {
97
102
  visibleRows: import("vue").ComputedRef<TTreeRow[]>;
98
103
  expandedNodes: import("vue").Ref<Set<string | number> & Omit<Set<string | number>, keyof Set<any>>, Set<string | number> | (Set<string | number> & Omit<Set<string | number>, keyof Set<any>>)>;
99
104
  toggleNode: (nodeId: string | number) => void;
100
105
  selectNode: (node: any) => void;
106
+ loading: import("vue").ComputedRef<boolean>;
101
107
  };
@@ -65,10 +65,20 @@ export const KTreeDefaultProps = {
65
65
  buffer: {
66
66
  type: Number,
67
67
  default: 5
68
+ },
69
+ loading: {
70
+ type: Boolean,
71
+ default: void 0
68
72
  }
69
73
  };
70
74
  export function useKTreeLogic(props, emit) {
71
- const { pageData, setFilter } = useDataProvider(props.dataProvider);
75
+ const { pageData, setFilter, loading: dpLoading, initialLoad: dpInitialLoad } = useDataProvider(props.dataProvider);
76
+ const isLoading = computed(() => {
77
+ if (typeof props.loading === "boolean") {
78
+ return props.loading;
79
+ }
80
+ return Boolean(dpLoading.value || dpInitialLoad.value);
81
+ });
72
82
  const visibleRows = computed(() => pageData.value || []);
73
83
  let isFirstSearchRun = true;
74
84
  watch(() => props.searchtext, (newVal) => {
@@ -144,6 +154,7 @@ export function useKTreeLogic(props, emit) {
144
154
  visibleRows,
145
155
  expandedNodes,
146
156
  toggleNode,
147
- selectNode
157
+ selectNode,
158
+ loading: isLoading
148
159
  };
149
160
  }
@@ -107,7 +107,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
107
107
  searchtext: import("vue").Ref<string, string>;
108
108
  selectItem: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => void;
109
109
  isSelected: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => boolean | undefined;
110
- getSelectedContent: () => import("@katlux/providers").TDataRow[];
110
+ getSelectedContent: () => any[];
111
111
  toggleDropdown: () => void;
112
112
  closeDropdown: () => void;
113
113
  recalculateHeight: () => any;
@@ -235,7 +235,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
235
235
  label: string;
236
236
  disabled: boolean;
237
237
  loading: boolean;
238
- validation: "success" | "warning" | "error" | null | undefined;
238
+ validation: "error" | "success" | "warning" | null | undefined;
239
239
  validationText: string;
240
240
  idKey: string;
241
241
  searchbox: boolean;
@@ -15,7 +15,8 @@ const {
15
15
  toggleDropdown,
16
16
  closeDropdown,
17
17
  filteredOptions,
18
- loading
18
+ loading,
19
+ initialLoading
19
20
  } = useKTreePickerLogic(props, emit);
20
21
  watch(isOptionsOpen, (newVal) => {
21
22
  emit("update:isOptionsOpen", newVal);
@@ -45,7 +46,7 @@ const templateProps = computed(() => ({
45
46
  closeDropdown,
46
47
  selectItem,
47
48
  isSelected,
48
- loading: loading.value || props.loading,
49
+ loading: Boolean(loading.value || initialLoading?.value || props.loading),
49
50
  closeOnSelect: props.closeOnSelect,
50
51
  valueField: props.valueField || props.idKey,
51
52
  validation: props.validation,
@@ -107,7 +107,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
107
107
  searchtext: import("vue").Ref<string, string>;
108
108
  selectItem: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => void;
109
109
  isSelected: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => boolean | undefined;
110
- getSelectedContent: () => import("@katlux/providers").TDataRow[];
110
+ getSelectedContent: () => any[];
111
111
  toggleDropdown: () => void;
112
112
  closeDropdown: () => void;
113
113
  recalculateHeight: () => any;
@@ -235,7 +235,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
235
235
  label: string;
236
236
  disabled: boolean;
237
237
  loading: boolean;
238
- validation: "success" | "warning" | "error" | null | undefined;
238
+ validation: "error" | "success" | "warning" | null | undefined;
239
239
  validationText: string;
240
240
  idKey: string;
241
241
  searchbox: boolean;
@@ -139,7 +139,7 @@ export declare function useKTreePickerLogic(props: KTreePickerProps, emit: any):
139
139
  searchtext: import("vue").Ref<string, string>;
140
140
  selectItem: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => void;
141
141
  isSelected: (option: import("../KCombobox/KCombobox.logic.js").ComboboxItem) => boolean | undefined;
142
- getSelectedContent: () => import("@katlux/providers").TDataRow[];
142
+ getSelectedContent: () => any[];
143
143
  toggleDropdown: () => void;
144
144
  closeDropdown: () => void;
145
145
  filteredOptions: import("vue").ComputedRef<import("@katlux/providers").TDataRow[]>;
@@ -17,11 +17,11 @@ type __VLS_Props = {
17
17
  validationText?: string;
18
18
  };
19
19
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
- "update:maskedModel": (value: string) => any;
21
20
  "update:isOpen": (value: boolean) => any;
21
+ "update:maskedModel": (value: string) => any;
22
22
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
24
23
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
24
+ "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
25
25
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  declare const _default: typeof __VLS_export;
27
27
  export default _default;
@@ -17,11 +17,11 @@ type __VLS_Props = {
17
17
  validationText?: string;
18
18
  };
19
19
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
- "update:maskedModel": (value: string) => any;
21
20
  "update:isOpen": (value: boolean) => any;
21
+ "update:maskedModel": (value: string) => any;
22
22
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
24
23
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
24
+ "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
25
25
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  declare const _default: typeof __VLS_export;
27
27
  export default _default;
@@ -19,6 +19,7 @@ type __VLS_Props = {
19
19
  itemHeight?: number;
20
20
  viewportHeight?: number;
21
21
  buffer?: number;
22
+ loading?: boolean;
22
23
  };
23
24
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
24
25
  select: (row: TTreeRow) => any;
@@ -26,6 +27,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
26
27
  onSelect?: ((row: TTreeRow) => any) | undefined;
27
28
  }>, {
28
29
  disabled: boolean;
30
+ loading: boolean;
29
31
  idKey: string;
30
32
  searchtext: string;
31
33
  virtualScroll: boolean;
@@ -112,6 +112,7 @@ const props = withDefaults(
112
112
  itemHeight?: number
113
113
  viewportHeight?: number
114
114
  buffer?: number
115
+ loading?: boolean
115
116
  }>(),
116
117
  {
117
118
  labelField: 'name',
@@ -126,6 +127,7 @@ const props = withDefaults(
126
127
  itemHeight: 32,
127
128
  viewportHeight: 400,
128
129
  buffer: 5,
130
+ loading: undefined,
129
131
  }
130
132
  )
131
133
 
@@ -159,6 +161,9 @@ const isSelected = (row: TTreeRow): boolean => {
159
161
  }
160
162
 
161
163
  const isLoading = computed(() => {
164
+ if (typeof props.loading === 'boolean') {
165
+ return props.loading
166
+ }
162
167
  const l = props.dataProvider?.loading
163
168
  const init = props.dataProvider?.initialLoad
164
169
  const loadingVal = isRef(l) ? l.value : (l?.value ?? l ?? false)
@@ -19,6 +19,7 @@ type __VLS_Props = {
19
19
  itemHeight?: number;
20
20
  viewportHeight?: number;
21
21
  buffer?: number;
22
+ loading?: boolean;
22
23
  };
23
24
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
24
25
  select: (row: TTreeRow) => any;
@@ -26,6 +27,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
26
27
  onSelect?: ((row: TTreeRow) => any) | undefined;
27
28
  }>, {
28
29
  disabled: boolean;
30
+ loading: boolean;
29
31
  idKey: string;
30
32
  searchtext: string;
31
33
  virtualScroll: boolean;
@@ -104,13 +104,13 @@ export default defineAppConfig({
104
104
 
105
105
  | Package Name | Current Version | Description | Installation Command |
106
106
  | --- | --- | --- | --- |
107
- | `@katlux/toolkit` | `0.1.1-alpha.133` | Core Nuxt module, UI toolkit, presets, and components | `npm install @katlux/toolkit@alpha` |
108
- | `@katlux/providers` | `0.1.1-alpha.120` | Core data providers, client caching, and state structures | `npm install @katlux/providers@alpha` |
109
- | `@katlux/preset-modern` | `0.1.1-alpha.108` | Modern design preset and styling variables | `npm install @katlux/preset-modern@alpha` |
110
- | `@katlux/preset-dark` | `0.1.1-alpha.39` | Sleek Dark Mode design preset | `npm install @katlux/preset-dark@alpha` |
111
- | `@katlux/block-charts` | `0.1.1-alpha.108` | Pre-built charting block components | `npm install @katlux/block-charts@alpha` |
112
- | `@katlux/block-ecommerce` | `0.1.1-alpha.108` | Pre-built eCommerce block components | `npm install @katlux/block-ecommerce@alpha` |
113
- | `@katlux/mcp` | `0.1.0-alpha.12` | Model Context Protocol server for AI assistant integration | `npm install @katlux/mcp@alpha` |
107
+ | `@katlux/toolkit` | `0.1.1-alpha.135` | Core Nuxt module, UI toolkit, presets, and components | `npm install @katlux/toolkit@alpha` |
108
+ | `@katlux/providers` | `0.1.1-alpha.122` | Core data providers, client caching, and state structures | `npm install @katlux/providers@alpha` |
109
+ | `@katlux/preset-modern` | `0.1.1-alpha.110` | Modern design preset and styling variables | `npm install @katlux/preset-modern@alpha` |
110
+ | `@katlux/preset-dark` | `0.1.1-alpha.41` | Sleek Dark Mode design preset | `npm install @katlux/preset-dark@alpha` |
111
+ | `@katlux/block-charts` | `0.1.1-alpha.110` | Pre-built charting block components | `npm install @katlux/block-charts@alpha` |
112
+ | `@katlux/block-ecommerce` | `0.1.1-alpha.110` | Pre-built eCommerce block components | `npm install @katlux/block-ecommerce@alpha` |
113
+ | `@katlux/mcp` | `0.1.0-alpha.14` | Model Context Protocol server for AI assistant integration | `npm install @katlux/mcp@alpha` |
114
114
 
115
115
  > [!NOTE]
116
116
  > Katlux packages are currently published under the `@alpha` tag on NPM. Always append `@alpha` or the specific version tag when adding dependencies.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@katlux/toolkit",
3
- "version": "0.1.1-alpha.134",
3
+ "version": "0.1.1-alpha.136",
4
4
  "description": "Core UI toolkit and utilities for the Katlux ecosystem",
5
5
  "author": "Katlux",
6
6
  "license": "Apache-2.0",
@@ -54,7 +54,7 @@
54
54
  "**/*.sass"
55
55
  ],
56
56
  "dependencies": {
57
- "@katlux/providers": "^0.1.1-alpha.121",
57
+ "@katlux/providers": "^0.1.1-alpha.123",
58
58
  "@nuxt/kit": "^3.12.0",
59
59
  "@nuxtjs/i18n": "^10.4.0",
60
60
  "pug": "^3.0.0",