@katlux/toolkit 0.1.1-alpha.139 → 0.1.1-alpha.140

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 (31) 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/KCompositeInput/KCompositeInput.global.d.vue.ts +6 -6
  10. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +6 -6
  11. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +3 -3
  12. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +4 -4
  13. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +4 -4
  14. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +1 -1
  15. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +1 -1
  16. package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +1 -1
  17. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +1 -1
  18. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +1 -1
  19. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +1 -1
  20. package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +1 -1
  21. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +1 -1
  22. package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +1 -1
  23. package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +1 -1
  24. package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +2 -2
  25. package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +2 -2
  26. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +1 -1
  27. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +1 -1
  28. package/dist/skills/katlux-config/SKILL.md +7 -7
  29. package/dist/skills/katlux-providers/providers/CAPIFlatServerDataProvider.md +25 -0
  30. package/dist/skills/katlux-providers/providers/encryption.md +83 -4
  31. 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.139",
4
+ "version": "0.1.1-alpha.140",
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;
@@ -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
  }>;
@@ -55,8 +55,8 @@ 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
60
  "update:isOpen": (value: boolean) => any;
61
61
  "update:maskedModel": (value: string) => any;
62
62
  "update:calendarShow": (value: boolean) => any;
@@ -117,8 +117,8 @@ 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
122
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
123
123
  "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
124
124
  "onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
@@ -130,13 +130,13 @@ 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;
137
137
  showClear: boolean;
138
- align: "left" | "right" | undefined;
139
138
  format: string;
139
+ align: "left" | "right" | undefined;
140
140
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
141
141
  declare const _default: typeof __VLS_export;
142
142
  export default _default;
@@ -55,8 +55,8 @@ 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
60
  "update:isOpen": (value: boolean) => any;
61
61
  "update:maskedModel": (value: string) => any;
62
62
  "update:calendarShow": (value: boolean) => any;
@@ -117,8 +117,8 @@ 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
122
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
123
123
  "onUpdate:maskedModel"?: ((value: string) => any) | undefined;
124
124
  "onUpdate:calendarShow"?: ((value: boolean) => any) | undefined;
@@ -130,13 +130,13 @@ 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;
137
137
  showClear: boolean;
138
- align: "left" | "right" | undefined;
139
138
  format: string;
139
+ align: "left" | "right" | undefined;
140
140
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
141
141
  declare const _default: typeof __VLS_export;
142
142
  export default _default;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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.138` | Core Nuxt module, UI toolkit, presets, and components | `npm install @katlux/toolkit@alpha` |
108
- | `@katlux/providers` | `0.1.1-alpha.126` | Core data providers, client caching, and state structures | `npm install @katlux/providers@alpha` |
109
- | `@katlux/preset-modern` | `0.1.1-alpha.113` | Modern design preset and styling variables | `npm install @katlux/preset-modern@alpha` |
110
- | `@katlux/preset-dark` | `0.1.1-alpha.44` | Sleek Dark Mode design preset | `npm install @katlux/preset-dark@alpha` |
111
- | `@katlux/block-charts` | `0.1.1-alpha.113` | Pre-built charting block components | `npm install @katlux/block-charts@alpha` |
112
- | `@katlux/block-ecommerce` | `0.1.1-alpha.113` | Pre-built eCommerce block components | `npm install @katlux/block-ecommerce@alpha` |
113
- | `@katlux/mcp` | `0.1.0-alpha.18` | Model Context Protocol server for AI assistant integration | `npm install @katlux/mcp@alpha` |
107
+ | `@katlux/toolkit` | `0.1.1-alpha.139` | Core Nuxt module, UI toolkit, presets, and components | `npm install @katlux/toolkit@alpha` |
108
+ | `@katlux/providers` | `0.1.1-alpha.127` | Core data providers, client caching, and state structures | `npm install @katlux/providers@alpha` |
109
+ | `@katlux/preset-modern` | `0.1.1-alpha.114` | Modern design preset and styling variables | `npm install @katlux/preset-modern@alpha` |
110
+ | `@katlux/preset-dark` | `0.1.1-alpha.45` | Sleek Dark Mode design preset | `npm install @katlux/preset-dark@alpha` |
111
+ | `@katlux/block-charts` | `0.1.1-alpha.114` | Pre-built charting block components | `npm install @katlux/block-charts@alpha` |
112
+ | `@katlux/block-ecommerce` | `0.1.1-alpha.114` | Pre-built eCommerce block components | `npm install @katlux/block-ecommerce@alpha` |
113
+ | `@katlux/mcp` | `0.1.0-alpha.19` | 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.
@@ -9,6 +9,7 @@ Handle full API integration with automatic query generation. Pagination, filteri
9
9
  | `cacheStrategy` | `ECacheStrategy`| Persistence engine for this provider |
10
10
  | `cacheLifetime` | `number` | Expiration in milliseconds |
11
11
  | `refreshOnMutation`| `boolean` | Reload data after `delete`/`update` (Default: true) |
12
+ | `encryption` | `IProviderEncryptionOptions` | Client-side decryption config (`fields: string[]`, `key`, `strict`). Automatically decrypts received page slices on-the-fly via `decryptPageRows()`. |
12
13
 
13
14
  - **Methods**:
14
15
  | Method | Params | Description |
@@ -18,3 +19,27 @@ Handle full API integration with automatic query generation. Pagination, filteri
18
19
  | `create(item)` | `any` | Async POST request to creation endpoint |
19
20
  | `update(item)` | `any` | Async PUT request to update endpoint |
20
21
  | `delete(items)` | `any[]` | Async batch deletion via endpoint |
22
+
23
+ #### Server-Side Encrypted Datatable & Search Integration
24
+ When querying backend persistence endpoints (e.g. server-side datatable backends or Cloudflare stateless edge workers) that store and return encrypted records:
25
+ ```ts
26
+ const provider = new CAPIFlatServerDataProvider({
27
+ pageSize: 10,
28
+ cacheStrategy: ECacheStrategy.IndexedDB,
29
+ encryption: {
30
+ enabled: true,
31
+ key: 'user-secret-encryption-key',
32
+ fields: ['name', 'email', 'salary']
33
+ }
34
+ })
35
+ provider.setAPIUrl('/api/encryptedDataList')
36
+
37
+ // Filtering triggers structured queries to the server;
38
+ // The server matches queries against HMAC blind indices / GIN trigrams and returns encrypted envelopes.
39
+ // CAPIFlatServerDataProvider automatically decrypts the 10 received page rows for KDatatable.
40
+ provider.setFilter({
41
+ operator: EDataFilterOperator.In,
42
+ field: { name: 'Elena' },
43
+ active: true
44
+ })
45
+ ```
@@ -24,6 +24,9 @@ Zero-dependency, native cryptographic toolkit for end-to-end client-side, in-fli
24
24
  - **Provider Methods (`IEncryptionProvider` / `AEncryptionProvider`)**:
25
25
  - `encrypt(data: any, options?: IEncryptionContext): Promise<IEncryptedPayload | any>`: Encrypts data into an envelope or field-encrypted record (strictly idempotent; already-encrypted fields/envelopes are never double-encrypted). Attaches `kid` when specified or uses `activeKid`.
26
26
  - `decrypt(payload: any, options?: IEncryptionContext): Promise<any>`: Decrypts envelope back into original data, immediately zeroing plaintext byte buffers in memory. Dynamically routes decryption through `keys[envelope.kid]` or fallback keys, validating against `allowedKids`. Automatically leverages record-level DEK caching across multi-field records for up to 90% latency reduction.
27
+ - `encryptField(value: any, context?: IFieldEncryptionContext): Promise<IEncryptedPayload>`: Atomically encrypts a single scalar value with contextual AAD binding (`recordId`, `fieldName`, sibling `aadFields`) into an `IEncryptedPayload` envelope without requiring dummy object allocation.
28
+ - `decryptField(envelope: IEncryptedPayload, context?: IFieldEncryptionContext): Promise<any>`: Symmetrically decrypts a single scalar field envelope, verifying contextual AAD integrity and tamper resistance.
29
+ - `computeBlindIndex(value: any, hmacKey?: CryptoKey | TKeyProvider): Promise<string>`: Computes deterministic HMAC-SHA256 blind index hex hash with Unicode NFKC normalization and lowercasing for exact-match database lookups.
27
30
  - `warmupKey(options?: IEncryptionContext): Promise<void>`: Pre-derives and caches CryptoKey / Buffer in memory. When a keyring (`keys`) is configured, resolves and warms up all keys concurrently via `Promise.all`. Supported on `CWebCrypto`, `CWebCryptoAESCBC`, and `CNodeCrypto` (`warmupKeySync` also available on Node).
28
31
  - `setKeyring(keys: Record<string, TKeyProvider | IKeyPair>, activeKid?: string): void`: Replaces or updates the active keyring dictionary and optionally sets the active outbound key identifier.
29
32
  - `getKeyring(): Record<string, TKeyProvider | IKeyPair>`: Returns the currently configured keyring dictionary.
@@ -33,17 +36,25 @@ Zero-dependency, native cryptographic toolkit for end-to-end client-side, in-fli
33
36
  - `clearKeys() / dispose()`: Wipes in-memory key caches, zeroes mutable Buffer bytes and keyring caches, and clears sensitive asymmetric keys upon logout/session end.
34
37
  - `resolveRawKey(keyProvider?: TKeyProvider)`: (Protected on `AEncryptionProvider`) Resolves key or async keyProvider callback. Supports `string`, `Uint8Array`, `ArrayBuffer`, and `CryptoKey` without byte corruption.
35
38
  - **PEM Import/Export (`CKeyManager` / `CRSA` / `CECDH`)**:
36
- - `importPublicKeyFromPEM(pem, ...)`: Imports SPKI PEM string to `CryptoKey`.
37
- - `importPrivateKeyFromPEM(pem, ...)`: Imports PKCS#8 PEM string to `CryptoKey`.
39
+ - `importPublicKeyFromPEM(pem, algorithm?, curve?, hash?)`: Imports SPKI PEM string to `CryptoKey` (`RSA-OAEP`, `ECDH`, or `ECDSA`).
40
+ - `importPrivateKeyFromPEM(pem, algorithm?, curve?, hash?)`: Imports PKCS#8 PEM string to `CryptoKey` (`RSA-OAEP`, `ECDH`, or `ECDSA`).
41
+ - `importECDSAPublicKeyFromPEM(pem, curve?): Promise<CryptoKey>`: Imports an ECDSA public key from PEM SPKI for signature verification.
42
+ - `importECDSAPrivateKeyFromPEM(pem, curve?): Promise<CryptoKey>`: Imports an ECDSA private key from PEM PKCS#8 for signing.
38
43
  - `exportPublicKeyToPEM(key)`: Exports `CryptoKey` to standard SPKI PEM string.
39
44
  - `exportPrivateKeyToPEM(key)`: Exports `CryptoKey` to standard PKCS#8 PEM string.
40
- - **Account Key Wrapping & Re-Wrapping (`CKeyManager`)**:
45
+ - **Account & HMAC Key Wrapping (`CKeyManager`)**:
41
46
  - `wrapAccountKeyForUser(adek, userPublicKey): Promise<string>`: Wraps an ADEK for a user using RSA-OAEP.
42
47
  - `unwrapAccountKeyForUser(wrappedKeyBase64, userPrivateKey, unwrappedKeyAlgorithm?, extractable?): Promise<CryptoKey>`: Restores an unextractable AES-GCM ADEK from envelope using RSA-OAEP.
48
+ - `wrapHMACKeyForUser(hmacKey, userPublicKey): Promise<string>`: Wraps an HMAC blind indexing key for a user using RSA-OAEP.
49
+ - `unwrapHMACKeyForUser(wrappedKeyBase64, userPrivateKey, hash?, extractable?): Promise<CryptoKey>`: Restores an HMAC search key using recipient RSA-OAEP private key.
43
50
  - `rewrapAccountKeyForUser(wrappedKeyBase64, myPrivateKey, recipientPublicKey): Promise<string>`: Atomically re-wraps an ADEK envelope for a new recipient without exposing raw extractable keys to application memory, guaranteeing memory zeroization via `finally`.
51
+ - **Blind Index & Token Utilities (`CKeyManager` / `CSearchIndex`)**:
52
+ - `CKeyManager.computeBlindIndex(value, hmacKey): Promise<string>`: Computes deterministic HMAC-SHA256 blind index hash for arbitrary values.
53
+ - `searchIndex.computeBlindIndex(term): Promise<string>`: Computes blind index using configured search HMAC key.
54
+ - `searchIndex.indexRowDecrypted(row, decryptedPlaintext): Promise<void>`: Indexes a row using pre-decrypted plaintext fields while preserving raw ciphertext in data tables.
44
55
  - **Digital Signatures & Access Grants (`CKeyManager` / `canonicalizeJson`)**:
45
56
  - `canonicalizeJson(value): string`: Serializes a JavaScript value to a deterministic, canonical JSON string conforming to RFC 8785 (JCS).
46
- - `generateSigningKeyPair(curve?, extractable?): Promise<IKeyPair>`: Generates an ECDSA P-256 signing key pair.
57
+ - `generateSigningKeyPair(curve?, extractable?): Promise<IKeyPair>` / `generateECDSAKeyPair()`: Generates an ECDSA signing key pair (`P-256`, `P-384`, `P-521`).
47
58
  - `getKeyFingerprint(publicKey): Promise<string>`: Generates a deterministic SHA-256 fingerprint for a public key formatted as `SHA256:<base64url>`.
48
59
  - `sign(data, privateKey): Promise<string>`: Signs arbitrary data or JSON objects using an ECDSA P-256 private key (objects automatically canonicalized via RFC 8785).
49
60
  - `verify(data, signature, publicKey): Promise<boolean>`: Verifies an ECDSA P-256 signature against original data or JSON object.
@@ -90,6 +101,7 @@ interface IProviderEncryptionOptions {
90
101
  allowedKids?: string[] // Whitelist of permitted Key Identifiers (kid); defaults to Object.keys(keys)
91
102
  onDecryptError?: ((info: IDecryptErrorInfo) => any) | boolean | string // Per-field error hook, safe fallback marker, or true for '[⚠ Decryption Error]'
92
103
  searchIndex?: boolean // Enables HMAC-SHA256 blind index and trigram search index on encrypted fields
104
+ preEncrypted?: boolean // Set to true if API endpoints return pre-encrypted ciphertext envelopes; enables in-memory index decryption
93
105
  hmacKey?: TKeyProvider // Optional dedicated HMAC key for search indexing (defaults to encryption key)
94
106
  algorithm?: 'AES-GCM' | string // default: 'AES-GCM'
95
107
  customProvider?: IEncryptionProvider // Custom cipher adapter (e.g. CRSA, CECDH, AES-CBC)
@@ -120,6 +132,7 @@ Supported uniformly across **all** client and server data providers:
120
132
 
121
133
  #### Local DataProvider Encryption Architecture
122
134
  - **Eager Encryption**: `setData(rows)` encrypts designated `fields` immediately before storing in `allData`. Plaintext never persists in `allData`.
135
+ - **Pre-Encrypted Ingest & Search**: When datasets arrive already encrypted (`preEncrypted: true`), data providers (`CFlatClientDataProvider`, `CAPIFlatClientDataProvider`) perform a transient in-memory decryption pass on indexed fields to populate `CSearchIndex` without modifying or leaking the persistent ciphertext rows in `allData`.
123
136
  - **Non-blocking Ingestion**: `setDataChunked(rows, { chunkSize: 250, yieldStrategy: 'idle' })` yields between chunks to prevent main-thread freezing on large datasets.
124
137
  - **Idempotent Ingestion**: Pre-encrypted envelopes (`__encrypted: true`, e.g. from IndexedDB or Web Workers) pass through untouched without double-encryption.
125
138
  - **Lazy Page-Level Decryption**: `loadPageData()` slices `allData` and decrypts only the active page (`pageSize` rows) into `pageData`. Only visible rows are plaintext in memory.
@@ -186,3 +199,69 @@ In multi-tenant, field-encrypted, and SSR scenarios, Katlux cryptographic provid
186
199
  - **Concurrent Multi-Key Warmup**: Calling `warmupKey()` (or `warmupKeySync()` on Node) resolves and primes all cryptographic keys across the entire keyring concurrently using `Promise.all`, preventing runtime latency spikes or race conditions during rotation periods.
187
200
  - **Dynamic Runtime Keyring Management**: Keyrings can be rotated dynamically at runtime using `provider.setKeyring(newKeys, newActiveKid)` or `provider.setActiveKid(newKid)` without recreating provider instances or dropping existing session caches.
188
201
 
202
+ #### Backend Persistence & Datatable Encrypted Search Architecture
203
+ To enable fast exact-match and substring search across AES-256-GCM encrypted records in persisted storage and server-side datatables without decrypting rows or leaking plaintext to the persistence server:
204
+
205
+ 1. **Schema Column Mapping**:
206
+ - **Ciphertext (`JSONB` or `TEXT`)**: Holds the complete Katlux envelope `{ __encrypted: true, ciphertext, iv, tag, v: 1 }`.
207
+ - **Blind Index (`CHAR(64)`)**: Deterministic HMAC-SHA256 hash of normalized plaintext, indexed with a **B-Tree** for $O(\log N)$ point lookups (`=` / `IN`).
208
+ - **Trigram Array (`TEXT[]` or `BIGINT[]`)**: Set of hashed 3-character slices, indexed with an **inverted index (e.g. GIN / array index)** for substring queries.
209
+
210
+ ```sql
211
+ CREATE TABLE contacts (
212
+ id SERIAL PRIMARY KEY,
213
+ name_encrypted JSONB NOT NULL,
214
+ email_encrypted JSONB NOT NULL,
215
+ salary_encrypted JSONB,
216
+ name_bidx CHAR(64) NOT NULL,
217
+ email_bidx CHAR(64) NOT NULL,
218
+ name_trigrams TEXT[] NOT NULL,
219
+ email_trigrams TEXT[] NOT NULL,
220
+ role VARCHAR(100),
221
+ department VARCHAR(100),
222
+ status VARCHAR(50) DEFAULT 'Active'
223
+ );
224
+
225
+ -- B-Tree for exact lookups:
226
+ CREATE INDEX idx_contacts_name_bidx ON contacts (name_bidx);
227
+ CREATE INDEX idx_contacts_email_bidx ON contacts (email_bidx);
228
+
229
+ -- Inverted index for fast array containment substring search:
230
+ CREATE INDEX idx_contacts_name_trigrams ON contacts USING GIN (name_trigrams);
231
+ CREATE INDEX idx_contacts_email_trigrams ON contacts USING GIN (email_trigrams);
232
+ ```
233
+
234
+ 2. **Ingestion Pipeline**:
235
+ - Normalize plaintext (`NFKC` + lowercase).
236
+ - Generate exact blind index token via `CKeyManager.computeBlindIndex(plain, hmacKey)` or `searchIndex.computeToken(plain)`.
237
+ - Extract 3-character slices via `extractTrigrams(plain)` and hash each trigram with `searchIndex.computeTrigramTokens(plain)`.
238
+ - Encrypt sensitive columns with `cipher.encryptField(plain, { recordId: id, fieldName: 'name' })`.
239
+ - Persist encrypted envelopes and token arrays into the persistence datatable storage.
240
+
241
+ 3. **Query Execution**:
242
+ - **Exact Match (`name = $1`)**:
243
+ ```sql
244
+ -- Compute HMAC token in API, then point-lookup using B-Tree:
245
+ SELECT id, name_encrypted, email_encrypted, role FROM contacts WHERE name_bidx = $1;
246
+ ```
247
+ - **Substring Search (`name CONTAINS $1`)**:
248
+ ```sql
249
+ -- Extract & hash search query trigrams, then query via array containment operator (@>):
250
+ SELECT id, name_encrypted, email_encrypted, role
251
+ FROM contacts
252
+ WHERE name_trigrams @> $1::text[]
253
+ ORDER BY id ASC
254
+ LIMIT 10 OFFSET 0;
255
+ ```
256
+ - **Compound Filtering**:
257
+ Combine plain columns with encrypted token clauses:
258
+ ```sql
259
+ WHERE name_trigrams @> $1::text[] AND department = 'Security'
260
+ ```
261
+
262
+ 4. **Security & Production Best Practices**:
263
+ - **Strict Key Isolation**: Isolate `DATA_ENCRYPTION_KEY` (AES-256-GCM) from `BLIND_INDEX_HMAC_KEY`. Persistence storage compromise cannot decrypt plaintext; cipher key exposure cannot reverse blind indices.
264
+ - **Short Queries (< 3 chars)**: Substring search requires at least 3 characters to form a valid trigram. Enforce a 3-character minimum in client UI.
265
+ - **Low-Cardinality Isolation**: Never blind index low-cardinality fields (boolean flags, binary status) to avoid frequency analysis leakage.
266
+ - **Client Decryption Pipeline**: API responses return encrypted envelopes (`__encrypted: true`). Frontend `CAPIFlatServerDataProvider` decrypts only the received page slice via `decryptPageRows()` on arrival.
267
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@katlux/toolkit",
3
- "version": "0.1.1-alpha.139",
3
+ "version": "0.1.1-alpha.140",
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.127",
57
+ "@katlux/providers": "^0.1.1-alpha.128",
58
58
  "@nuxt/kit": "^3.12.0",
59
59
  "@nuxtjs/i18n": "^10.4.0",
60
60
  "pug": "^3.0.0",