@katlux/toolkit 0.1.1-alpha.144 → 0.1.1-alpha.146

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 (207) hide show
  1. package/bin/ai-init.mjs +517 -0
  2. package/bin/ai-tokens.mjs +1043 -0
  3. package/bin/cli.mjs +80 -43
  4. package/bin/create-preset.mjs +1 -0
  5. package/bin/preset-contracts.json +2941 -0
  6. package/dist/compiled/composables/locales.mjs +204 -25
  7. package/dist/compiled/composables/useDataProvider.mjs +36 -25
  8. package/dist/compiled/composables/useFilterLogic.mjs +10 -2
  9. package/dist/compiled/composables/useKatluxForm.mjs +6 -4
  10. package/dist/compiled/composables/useVirtualDataset.mjs +689 -0
  11. package/dist/compiled/composables/useVirtualScroll.mjs +29 -9
  12. package/dist/module.cjs +63 -77
  13. package/dist/module.d.cts +5 -0
  14. package/dist/module.d.mts +4 -1
  15. package/dist/module.json +1 -1
  16. package/dist/module.mjs +60 -78
  17. package/dist/runtime/components/KAccordion/KAccordion.global.d.vue.ts +2 -2
  18. package/dist/runtime/components/KAccordion/KAccordion.global.vue.d.ts +2 -2
  19. package/dist/runtime/components/KAlert/KAlert.global.d.vue.ts +1 -1
  20. package/dist/runtime/components/KAlert/KAlert.global.vue.d.ts +1 -1
  21. package/dist/runtime/components/KBulkActions/KBulkActions.global.d.vue.ts +7 -3
  22. package/dist/runtime/components/KBulkActions/KBulkActions.global.vue +4 -1
  23. package/dist/runtime/components/KBulkActions/KBulkActions.global.vue.d.ts +7 -3
  24. package/dist/runtime/components/KBulkActions/KBulkActions.logic.d.ts +4 -2
  25. package/dist/runtime/components/KBulkActions/KBulkActions.logic.js +70 -37
  26. package/dist/runtime/components/KButton/KButton.global.d.vue.ts +2 -2
  27. package/dist/runtime/components/KButton/KButton.global.vue.d.ts +2 -2
  28. package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
  29. package/dist/runtime/components/KCalendar/KCalendar.global.d.vue.ts +19 -10
  30. package/dist/runtime/components/KCalendar/KCalendar.global.vue +7 -2
  31. package/dist/runtime/components/KCalendar/KCalendar.global.vue.d.ts +19 -10
  32. package/dist/runtime/components/KCalendar/KCalendar.logic.d.ts +14 -201
  33. package/dist/runtime/components/KCalendar/KCalendar.logic.js +60 -11
  34. package/dist/runtime/components/KCalendar/KCalendarMonth.global.d.vue.ts +25 -5
  35. package/dist/runtime/components/KCalendar/KCalendarMonth.global.vue +11 -1
  36. package/dist/runtime/components/KCalendar/KCalendarMonth.global.vue.d.ts +25 -5
  37. package/dist/runtime/components/KCalendar/KCalendarMonth.logic.d.ts +19 -3
  38. package/dist/runtime/components/KCalendar/KCalendarMonth.logic.js +115 -1
  39. package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +2 -2
  40. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +2 -2
  41. package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +9 -9
  42. package/dist/runtime/components/KCombobox/KCombobox.global.vue +1 -1
  43. package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +9 -9
  44. package/dist/runtime/components/KCombobox/KCombobox.logic.d.ts +7 -1
  45. package/dist/runtime/components/KCombobox/KCombobox.logic.js +1 -1
  46. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +14 -14
  47. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +14 -14
  48. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +3 -3
  49. package/dist/runtime/components/KContextMenu/KContextMenu.logic.js +5 -0
  50. package/dist/runtime/components/KDatatable/KDataIterator.global.d.vue.ts +22 -18
  51. package/dist/runtime/components/KDatatable/KDataIterator.global.vue +23 -16
  52. package/dist/runtime/components/KDatatable/KDataIterator.global.vue.d.ts +22 -18
  53. package/dist/runtime/components/KDatatable/KDataIterator.logic.d.ts +13 -10
  54. package/dist/runtime/components/KDatatable/KDataIterator.logic.js +25 -20
  55. package/dist/runtime/components/KDatatable/KDatatable.global.d.vue.ts +9 -13
  56. package/dist/runtime/components/KDatatable/KDatatable.global.vue +6 -5
  57. package/dist/runtime/components/KDatatable/KDatatable.global.vue.d.ts +9 -13
  58. package/dist/runtime/components/KDatatable/KDatatable.logic.d.ts +4 -6
  59. package/dist/runtime/components/KDatatable/KDatatable.logic.js +26 -19
  60. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +31 -15
  61. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue +38 -13
  62. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +31 -15
  63. package/dist/runtime/components/KDatePicker/KDatePicker.logic.d.ts +28 -6
  64. package/dist/runtime/components/KDatePicker/KDatePicker.logic.js +197 -53
  65. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +3 -3
  66. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +3 -3
  67. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.logic.js +2 -0
  68. package/dist/runtime/components/KDropdown/KDropdown.global.d.vue.ts +1 -1
  69. package/dist/runtime/components/KDropdown/KDropdown.global.vue.d.ts +1 -1
  70. package/dist/runtime/components/KGantt/KGantt.global.d.vue.ts +55 -6
  71. package/dist/runtime/components/KGantt/KGantt.global.vue +12 -3
  72. package/dist/runtime/components/KGantt/KGantt.global.vue.d.ts +55 -6
  73. package/dist/runtime/components/KGantt/KGantt.logic.d.ts +33 -5
  74. package/dist/runtime/components/KGantt/KGantt.logic.js +39 -6
  75. package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +2 -2
  76. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +2 -2
  77. package/dist/runtime/components/KHourSelect/KHourSelect.global.d.vue.ts +1 -1
  78. package/dist/runtime/components/KHourSelect/KHourSelect.global.vue.d.ts +1 -1
  79. package/dist/runtime/components/KLoader/KLoader.global.vue +2 -0
  80. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +2 -2
  81. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +2 -2
  82. package/dist/runtime/components/KMultiTabs/MultiTabs.global.d.vue.ts +23 -0
  83. package/dist/runtime/components/KMultiTabs/MultiTabs.global.vue +22 -0
  84. package/dist/runtime/components/KMultiTabs/MultiTabs.global.vue.d.ts +23 -0
  85. package/dist/runtime/components/KPagination/KPagination.global.d.vue.ts +4 -2
  86. package/dist/runtime/components/KPagination/KPagination.global.vue +2 -1
  87. package/dist/runtime/components/KPagination/KPagination.global.vue.d.ts +4 -2
  88. package/dist/runtime/components/KPagination/KPagination.logic.d.ts +1 -0
  89. package/dist/runtime/components/KPagination/KPagination.logic.js +57 -5
  90. package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +1 -1
  91. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +1 -1
  92. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.d.vue.ts +1 -1
  93. package/dist/runtime/components/KRangeSlider/KRangeSlider.global.vue.d.ts +1 -1
  94. package/dist/runtime/components/KSlider/KSlider.global.d.vue.ts +1 -1
  95. package/dist/runtime/components/KSlider/KSlider.global.vue.d.ts +1 -1
  96. package/dist/runtime/components/KTabs/KTabs.global.d.vue.ts +2 -2
  97. package/dist/runtime/components/KTabs/KTabs.global.vue.d.ts +2 -2
  98. package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +2 -2
  99. package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +2 -2
  100. package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +3 -3
  101. package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +3 -3
  102. package/dist/runtime/components/KToast/KToast.global.d.vue.ts +3 -3
  103. package/dist/runtime/components/KToast/KToast.global.vue.d.ts +3 -3
  104. package/dist/runtime/components/KTooltip/KTooltip.global.d.vue.ts +1 -1
  105. package/dist/runtime/components/KTooltip/KTooltip.global.vue.d.ts +1 -1
  106. package/dist/runtime/components/KTree/KTree.global.d.vue.ts +7 -7
  107. package/dist/runtime/components/KTree/KTree.global.vue.d.ts +7 -7
  108. package/dist/runtime/components/KTree/KTree.logic.d.ts +2 -2
  109. package/dist/runtime/components/KTree/KTree.logic.js +16 -12
  110. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +7 -9
  111. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue +1 -5
  112. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +7 -9
  113. package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +39 -5
  114. package/dist/runtime/components/KTreeView/KTreeView.global.vue +19 -1
  115. package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +39 -5
  116. package/dist/runtime/components/KTreeView/KTreeView.logic.d.ts +23 -3
  117. package/dist/runtime/components/KTreeView/KTreeView.logic.js +76 -6
  118. package/dist/runtime/composables/locales.js +204 -25
  119. package/dist/runtime/composables/useDataProvider.d.ts +5 -3
  120. package/dist/runtime/composables/useDataProvider.js +36 -25
  121. package/dist/runtime/composables/useFilterLogic.d.ts +16 -4
  122. package/dist/runtime/composables/useFilterLogic.js +10 -2
  123. package/dist/runtime/composables/useKatluxForm.d.ts +4 -4
  124. package/dist/runtime/composables/useKatluxForm.js +6 -4
  125. package/dist/runtime/composables/useSortLogic.d.ts +1 -1
  126. package/dist/runtime/composables/useVirtualDataset.d.ts +121 -0
  127. package/dist/runtime/composables/useVirtualDataset.js +689 -0
  128. package/dist/runtime/composables/useVirtualScroll.d.ts +8 -4
  129. package/dist/runtime/composables/useVirtualScroll.js +29 -9
  130. package/dist/runtime/plugins/nuxtCompatPlugin.js +9 -1
  131. package/dist/runtime/presets/default/assets/scss/css-variables.css +3 -0
  132. package/dist/runtime/presets/default/assets/scss/css-variables.scss +6 -1
  133. package/dist/runtime/presets/default/assets/scss/index.css +3 -0
  134. package/dist/runtime/presets/default/assets/svg/katlux-logo.svg +7 -0
  135. package/dist/runtime/presets/default/assets/svg/katlux.svg +6 -0
  136. package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.d.vue.ts +3 -2
  137. package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue +31 -3
  138. package/dist/runtime/presets/default/components/KBulkActions/KBulkActions.vue.d.ts +3 -2
  139. package/dist/runtime/presets/default/components/KCalendar/KCalendar.d.vue.ts +3 -0
  140. package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue +6 -0
  141. package/dist/runtime/presets/default/components/KCalendar/KCalendar.vue.d.ts +3 -0
  142. package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.d.vue.ts +5 -0
  143. package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue +33 -2
  144. package/dist/runtime/presets/default/components/KCalendar/KCalendarMonth.vue.d.ts +5 -0
  145. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.d.vue.ts +2 -2
  146. package/dist/runtime/presets/default/components/KCheckbox/KCheckbox.vue.d.ts +2 -2
  147. package/dist/runtime/presets/default/components/KContextMenu/KContextMenu.vue +7 -1
  148. package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.d.vue.ts +30 -8
  149. package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue +80 -164
  150. package/dist/runtime/presets/default/components/KDataIterator/KDataIterator.vue.d.ts +30 -8
  151. package/dist/runtime/presets/default/components/KDatatable/KDatatable.d.vue.ts +16 -9
  152. package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue +99 -394
  153. package/dist/runtime/presets/default/components/KDatatable/KDatatable.vue.d.ts +16 -9
  154. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.d.vue.ts +6 -0
  155. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue +71 -4
  156. package/dist/runtime/presets/default/components/KDatePicker/KDatePicker.vue.d.ts +6 -0
  157. package/dist/runtime/presets/default/components/KGantt/KGantt.d.vue.ts +11 -12
  158. package/dist/runtime/presets/default/components/KGantt/KGantt.vue +77 -14
  159. package/dist/runtime/presets/default/components/KGantt/KGantt.vue.d.ts +11 -12
  160. package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.vue +1 -0
  161. package/dist/runtime/presets/default/components/KToast/KToast.d.vue.ts +2 -2
  162. package/dist/runtime/presets/default/components/KToast/KToast.vue.d.ts +2 -2
  163. package/dist/runtime/presets/default/components/KTree/KTree.d.vue.ts +4 -4
  164. package/dist/runtime/presets/default/components/KTree/KTree.vue +48 -14
  165. package/dist/runtime/presets/default/components/KTree/KTree.vue.d.ts +4 -4
  166. package/dist/runtime/presets/default/components/KTreeView/KTreeView.d.vue.ts +11 -2
  167. package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue +14 -2
  168. package/dist/runtime/presets/default/components/KTreeView/KTreeView.vue.d.ts +11 -2
  169. package/dist/skills/KATLUX_INDEX.md +9 -6
  170. package/dist/skills/katlux-components/SKILL.md +2 -0
  171. package/dist/skills/katlux-components/components/KBulkActions.md +25 -1
  172. package/dist/skills/katlux-components/components/KCombobox.md +2 -2
  173. package/dist/skills/katlux-components/components/KDataIterator.md +12 -4
  174. package/dist/skills/katlux-components/components/KDatatable.md +38 -0
  175. package/dist/skills/katlux-components/components/KDatePicker.md +3 -1
  176. package/dist/skills/katlux-components/components/KGantt.md +9 -0
  177. package/dist/skills/katlux-components/components/KIcon.md +1 -1
  178. package/dist/skills/katlux-components/components/KLineChart.md +3 -0
  179. package/dist/skills/katlux-components/components/KProductList.md +0 -1
  180. package/dist/skills/katlux-components/components/KScatterChart.md +3 -0
  181. package/dist/skills/katlux-components/components/KTreePicker.md +2 -1
  182. package/dist/skills/katlux-components/components/KTreeView.md +12 -0
  183. package/dist/skills/katlux-config/SKILL.md +19 -8
  184. package/dist/skills/katlux-presets/SKILL.md +121 -1
  185. package/dist/skills/katlux-presets/creating-a-preset.md +67 -0
  186. package/dist/skills/katlux-providers/SKILL.md +7 -5
  187. package/dist/skills/katlux-providers/providers/ADataProvider.md +16 -9
  188. package/dist/skills/katlux-providers/providers/CAPIFlatClientDataProvider.md +27 -3
  189. package/dist/skills/katlux-providers/providers/CAPIFlatServerDataProvider.md +11 -1
  190. package/dist/skills/katlux-providers/providers/CFlatClientDataProvider.md +19 -4
  191. package/dist/skills/katlux-providers/providers/CFlatServerDataProvider.md +4 -2
  192. package/dist/skills/katlux-providers/providers/CTreeClientDataProvider.md +2 -2
  193. package/dist/skills/katlux-providers/providers/RequestProvider.md +10 -0
  194. package/dist/skills/katlux-providers/providers/encryption-field-level.md +63 -19
  195. package/dist/skills/katlux-providers/providers/encryption-key-management.md +20 -2
  196. package/dist/skills/katlux-providers/providers/encryption-key-pinning.md +25 -11
  197. package/dist/skills/katlux-providers/providers/encryption-searchable.md +218 -0
  198. package/dist/skills/katlux-providers/providers/encryption-symmetric.md +25 -1
  199. package/dist/skills/katlux-providers/providers/encryption-threat-model.md +63 -0
  200. package/dist/skills/katlux-providers/providers/encryption.md +26 -1
  201. package/dist/skills/katlux-providers/providers/types.md +3 -1
  202. package/dist/skills/katlux-providers/providers/useDataProvider.md +2 -1
  203. package/dist/skills/katlux-providers/providers/useVirtualDataset.md +154 -0
  204. package/dist/skills/katlux-tokens/SKILL.md +2 -1
  205. package/dist/types.d.mts +1 -1
  206. package/package.json +9 -3
  207. package/bin/add-ai-reference.mjs +0 -259
@@ -16,7 +16,7 @@ type __VLS_Props = {
16
16
  modelValue?: any;
17
17
  selectedNode?: any;
18
18
  virtualScroll?: boolean;
19
- itemHeight?: number;
19
+ itemHeight?: number | ((node: any, index: number) => number);
20
20
  viewportHeight?: number;
21
21
  buffer?: number;
22
22
  loading?: boolean;
@@ -27,13 +27,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
27
27
  onSelect?: ((row: TTreeRow) => any) | undefined;
28
28
  }>, {
29
29
  disabled: boolean;
30
- loading: boolean;
31
30
  idKey: string;
32
- labelField: string;
31
+ loading: boolean;
33
32
  searchtext: string;
34
33
  virtualScroll: boolean;
35
- itemHeight: number;
34
+ itemHeight: number | ((node: any, index: number) => number);
36
35
  buffer: number;
36
+ labelField: string;
37
37
  multiSelect: boolean;
38
38
  viewportHeight: number;
39
39
  iconField: string;
@@ -1,5 +1,5 @@
1
1
  import type { ITreeViewColumn } from '#toolkit/components/KTreeView/KTreeView.logic';
2
- import type { IKDatatableAction } from '@katlux/providers';
2
+ import type { IKDatatableAction, IDataFilter } from '@katlux/providers';
3
3
  type __VLS_Props = {
4
4
  dataProvider: any;
5
5
  columns: ITreeViewColumn[];
@@ -9,6 +9,9 @@ type __VLS_Props = {
9
9
  showCheckboxes: boolean;
10
10
  selectedRows: any[];
11
11
  selectAll: boolean;
12
+ selectAllScope?: 'page' | 'dataset';
13
+ unselectedRows?: any[];
14
+ filter?: IDataFilter | null;
12
15
  expandedNodes: Set<string | number>;
13
16
  toggleNode: (id: string | number) => void;
14
17
  toggleRowSelection: (row: any) => void;
@@ -19,16 +22,22 @@ type __VLS_Props = {
19
22
  columnHeaders?: Record<string, string>;
20
23
  columnWidths?: Record<string, string>;
21
24
  virtualScroll?: boolean;
22
- itemHeight?: number;
25
+ itemHeight?: number | ((row: any, index: number) => number);
23
26
  viewportHeight?: number;
24
27
  buffer?: number;
25
28
  };
26
29
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
27
30
  "update:selectedRows": (value: any[]) => any;
28
31
  "update:selectAll": (value: boolean) => any;
32
+ "update:selectAllScope": (value: "page" | "dataset") => any;
33
+ "update:unselectedRows": (value: any[]) => any;
34
+ "update:filter": (value: IDataFilter | null) => any;
29
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
36
  "onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
31
37
  "onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
38
+ "onUpdate:selectAllScope"?: ((value: "page" | "dataset") => any) | undefined;
39
+ "onUpdate:unselectedRows"?: ((value: any[]) => any) | undefined;
40
+ "onUpdate:filter"?: ((value: IDataFilter | null) => any) | undefined;
32
41
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
42
  declare const _default: typeof __VLS_export;
34
43
  export default _default;
@@ -11,12 +11,18 @@
11
11
  :columnWidths="columnWidths"
12
12
  :selectedRows="selectedRows"
13
13
  :selectAll="selectAll"
14
+ :selectAllScope="selectAllScope"
15
+ :unselectedRows="unselectedRows"
16
+ :filter="filter"
14
17
  :virtualScroll="virtualScroll"
15
18
  :itemHeight="itemHeight"
16
19
  :viewportHeight="viewportHeight"
17
20
  :buffer="buffer"
18
21
  @update:selectedRows="$emit('update:selectedRows', $event)"
19
22
  @update:selectAll="$emit('update:selectAll', $event)"
23
+ @update:selectAllScope="$emit('update:selectAllScope', $event)"
24
+ @update:unselectedRows="$emit('update:unselectedRows', $event)"
25
+ @update:filter="$emit('update:filter', $event)"
20
26
  )
21
27
  //- Tree column cell: rendered natively via dynamic slot name — no h() needed
22
28
  template(v-if="treeColumnField" v-slot:[treeCellSlotName]="slotProps")
@@ -33,7 +39,7 @@
33
39
  import { computed } from 'vue'
34
40
  import KTreeCell from './KTreeCell.vue'
35
41
  import type { ITreeViewColumn } from '#toolkit/components/KTreeView/KTreeView.logic'
36
- import type { IKDatatableAction } from '@katlux/providers'
42
+ import type { IKDatatableAction, IDataFilter } from '@katlux/providers'
37
43
 
38
44
  const props = defineProps<{
39
45
  dataProvider: any
@@ -44,6 +50,9 @@ const props = defineProps<{
44
50
  showCheckboxes: boolean
45
51
  selectedRows: any[]
46
52
  selectAll: boolean
53
+ selectAllScope?: 'page' | 'dataset'
54
+ unselectedRows?: any[]
55
+ filter?: IDataFilter | null
47
56
  expandedNodes: Set<string | number>
48
57
  toggleNode: (id: string | number) => void
49
58
  toggleRowSelection: (row: any) => void
@@ -55,7 +64,7 @@ const props = defineProps<{
55
64
  columnHeaders?: Record<string, string>
56
65
  columnWidths?: Record<string, string>
57
66
  virtualScroll?: boolean
58
- itemHeight?: number
67
+ itemHeight?: number | ((row: any, index: number) => number)
59
68
  viewportHeight?: number
60
69
  buffer?: number
61
70
  }>()
@@ -63,6 +72,9 @@ const props = defineProps<{
63
72
  const emit = defineEmits<{
64
73
  (e: 'update:selectedRows', value: any[]): void
65
74
  (e: 'update:selectAll', value: boolean): void
75
+ (e: 'update:selectAllScope', value: 'page' | 'dataset'): void
76
+ (e: 'update:unselectedRows', value: any[]): void
77
+ (e: 'update:filter', value: IDataFilter | null): void
66
78
  }>()
67
79
 
68
80
  const visibleFields = computed(() => (props.columns as ITreeViewColumn[]).map(col => col.field))
@@ -1,5 +1,5 @@
1
1
  import type { ITreeViewColumn } from '#toolkit/components/KTreeView/KTreeView.logic';
2
- import type { IKDatatableAction } from '@katlux/providers';
2
+ import type { IKDatatableAction, IDataFilter } from '@katlux/providers';
3
3
  type __VLS_Props = {
4
4
  dataProvider: any;
5
5
  columns: ITreeViewColumn[];
@@ -9,6 +9,9 @@ type __VLS_Props = {
9
9
  showCheckboxes: boolean;
10
10
  selectedRows: any[];
11
11
  selectAll: boolean;
12
+ selectAllScope?: 'page' | 'dataset';
13
+ unselectedRows?: any[];
14
+ filter?: IDataFilter | null;
12
15
  expandedNodes: Set<string | number>;
13
16
  toggleNode: (id: string | number) => void;
14
17
  toggleRowSelection: (row: any) => void;
@@ -19,16 +22,22 @@ type __VLS_Props = {
19
22
  columnHeaders?: Record<string, string>;
20
23
  columnWidths?: Record<string, string>;
21
24
  virtualScroll?: boolean;
22
- itemHeight?: number;
25
+ itemHeight?: number | ((row: any, index: number) => number);
23
26
  viewportHeight?: number;
24
27
  buffer?: number;
25
28
  };
26
29
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
27
30
  "update:selectedRows": (value: any[]) => any;
28
31
  "update:selectAll": (value: boolean) => any;
32
+ "update:selectAllScope": (value: "page" | "dataset") => any;
33
+ "update:unselectedRows": (value: any[]) => any;
34
+ "update:filter": (value: IDataFilter | null) => any;
29
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
36
  "onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
31
37
  "onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
38
+ "onUpdate:selectAllScope"?: ((value: "page" | "dataset") => any) | undefined;
39
+ "onUpdate:unselectedRows"?: ((value: any[]) => any) | undefined;
40
+ "onUpdate:filter"?: ((value: IDataFilter | null) => any) | undefined;
32
41
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
42
  declare const _default: typeof __VLS_export;
34
43
  export default _default;
@@ -10,6 +10,7 @@ When the **Katlux MCP Server** (`katlux` / `@katlux/mcp`) is configured in your
10
10
 
11
11
  | MCP Tool | Purpose & Usage | Token Advantage |
12
12
  | --- | --- | --- |
13
+ | `katlux_inspect_project` | Fast read-only project introspection and bidirectional cross-stack map (Page ↔ Component ↔ Provider ↔ API Route ↔ Database/ORM ↔ Types/Services ↔ Styles/Tokens ↔ Tasks). Scopes: `overview`, `stats`, `components`, `providers`, `presets`, `types`, `sql`, `slice`. Call before running grep or reading multiple project files | ~200-500 tokens vs 20k+ reading multiple project files |
13
14
  | `katlux_get_component` | Exact API schema (props, slots, events, examples) for any component. Supports optional `filter: "keyword"` to return only matching props/events | ~100-300 tokens vs 28k in `katlux-components` |
14
15
  | `katlux_lookup_prop` | Ultra-compact atomic lookup for a single prop, event, or slot on a component (e.g. `component: 'KDatatable', prop: 'selectAllScope'`) | **~40 tokens** (ideal for micro-edits & single property checks) |
15
16
  | `katlux_list_components` | Discover components filtered by category (`form`, `data`, `layout`, `navigation`, `feedback`, `charts`, `ecommerce`) or search query | ~150 tokens vs reading entire docs |
@@ -18,8 +19,9 @@ When the **Katlux MCP Server** (`katlux` / `@katlux/mcp`) is configured in your
18
19
  | `katlux_list_icons` | Fuzzy search available SVG icons for `KIcon` and `icon` props | ~100 tokens vs guessing icon names |
19
20
  | `katlux_get_tokens` | CSS design tokens by category (`color`, `surface`, `border`, `typography`, `button`, `input`, `table`, `other`) | ~300 tokens vs 6k in `katlux-tokens` |
20
21
  | `katlux_scaffold` | Boilerplate code generator for common patterns (`datatable-page`, `form-with-validation`, `tree-explorer`, `chart-dashboard`) | Clean boilerplate with zero prompt bloat |
21
- | `katlux_validate_code` | Self-correction linter checking Pug/Vue code against component APIs, providers, and token rules | Catches errors before user sees them |
22
+ | `katlux_validate_code` | Self-correction linter validating snippets (`code`) or workspace files (`filePath`) against component APIs, preset contracts, tokens, and deprecated symbols with line-numbered compact diagnostics | Catches errors before user sees them without token bloat |
22
23
  | `katlux_create_preset` | Scaffolds a new visual theme preset with directory structure and CSS token overrides | Automates theming setup |
24
+ | `katlux_scaffold_preset_component` | Scaffolds an atomic component override inside a preset with exact typed internal contracts | ~250 tokens vs 8k reading canonical source |
23
25
 
24
26
  ## Available Skills (Fallback & Deep Architectural Context)
25
27
 
@@ -35,8 +37,9 @@ If the Katlux MCP server is unavailable in the environment, or when deep archite
35
37
 
36
38
  ## How to Work Efficiently
37
39
 
38
- 1. **MCP Tools First**: Query `katlux_get_component` or `katlux_get_provider` to verify prop types, slots, and events before writing or editing code.
39
- 2. **Icon & Token Lookup**: Use `katlux_list_icons` to verify icon names and `katlux_get_tokens` for theme variables instead of guessing or hardcoding styles.
40
- 3. **Self-Validation**: Run `katlux_validate_code` on newly generated Pug/Vue templates to self-correct issues before delivering code.
41
- 4. **Atomic Skills**: Component and Provider skills are divided into atomic, per-component and per-provider markdown files under `components/` and `providers/`. Read only the specific atomic spec required for your task to preserve tokens.
42
- 5. **Never Inspect node_modules**: Never search or open files in `node_modules/@katlux/*` or `node_modules/`. All component APIs, props, slots, events, providers, and types are documented in Katlux MCP tools and atomic skill files.
40
+ 1. **Project Introspection First**: Call `katlux_inspect_project` (`scope: 'slice'`, `'overview'`, `'presets'`, `'types'`, or `'sql'`) **before** running `grep` or reading multiple workspace files to understand how pages, components, providers, server API routes, database models, and types are wired in the consumer app.
41
+ 2. **MCP Tools First**: Query `katlux_get_component` or `katlux_get_provider` to verify prop types, slots, and events before writing or editing code.
42
+ 3. **Icon & Token Lookup**: Use `katlux_list_icons` to verify icon names and `katlux_get_tokens` for theme variables instead of guessing or hardcoding styles.
43
+ 4. **Self-Validation**: Run `katlux_validate_code` (via `code` snippet or workspace `filePath`) on newly generated or modified Vue/Pug templates, preset components, and stylesheets to self-correct issues with line-numbered diagnostics before delivering code.
44
+ 5. **Atomic Skills**: Component and Provider skills are divided into atomic, per-component and per-provider markdown files under `components/` and `providers/`. Read only the specific atomic spec required for your task to preserve tokens.
45
+ 6. **Never Inspect node_modules**: Never search or open files in `node_modules/@katlux/*` or `node_modules/`. All component APIs, props, slots, events, providers, and types are documented in Katlux MCP tools and atomic skill files.
@@ -96,6 +96,8 @@ description: Complete Katlux UI component API index. Links to atomic component d
96
96
  | `KScatterChart` | 2D coordinate plot | Point clusters, custom coordinate scaling | [KScatterChart.md](components/KScatterChart.md) |
97
97
  | `KHeatMap` | Activity & matrix heatmap | Color intensity scaling, day-of-week matrices | [KHeatMap.md](components/KHeatMap.md) |
98
98
 
99
+ > **Server Provider Chart Single-Page Architecture**: By design, server-side data providers draw one page to support future charting features (pagination, zooming/virtual navigation). To fetch the entire dataset or plot aggregated series across all records, configure `pageSize: -1` on the provider or use a client-side provider (`CFlatClientDataProvider`).
100
+
99
101
  ---
100
102
 
101
103
  ## 7. Directives & Semantic Classes
@@ -7,12 +7,36 @@
7
7
  | `selectedRows` | `Record<string, unknown>[]` | **Required** | Current selection array |
8
8
  | `selectAll` | `boolean` | `false` | Global dataset selection flag |
9
9
  | `unselectedRows` | `Record<string, unknown>[]` | `[]` | Excluded rows when selectAll is true in dataset scope |
10
- | `filter` | `IDataFilter \| IDataFilterGroup` | `undefined` | Active data provider filter to pass to bulk action callbacks |
10
+ | `filter` | `IDataFilter \| null` | `undefined` | Active data provider filter to pass to bulk action callbacks |
11
11
  | `idKey` | `string` | `'id'` | Unique identifier field for row key extraction |
12
12
 
13
13
  - **Feature — Interchangeable Row & Bulk Actions & Rich Context**:
14
14
  `IKDatatableAction` definitions are interchangeable between row-level actions and bulk actions. When invoked via `KBulkActions`, the callback receives `(payload, selectAll, filter)` where `payload` is the array of applicable rows, augmented with context properties `isAllSelected`, `selectedRows`, `selectedRowKeys`, `unselectedRows`, `unselectedRowKeys`, and `filter`.
15
15
 
16
+ - **Architectural Principle — Client/Server Parity & Developer Responsibility**:
17
+ Katlux components are simple, flexible, and free of arbitrary exceptions. Data providers behave identically whether running on client-side or server-side:
18
+ - In dataset-scope selection or virtual scrolling mode, `payload` is passed as `[]` because large datasets cannot and should not be enumerated into client memory.
19
+ - **It is the developer's responsibility** to check `if (isAllSelected)` (or the 2nd `selectAll` argument) and handle query-level mutations using `filter` and `unselectedRows`:
20
+ ```ts
21
+ const bulkActions: IKDatatableAction[] = [
22
+ {
23
+ label: 'Delete',
24
+ type: 'danger',
25
+ action: (selectedRows, isAllSelected, filter) => {
26
+ if (isAllSelected) {
27
+ // Dataset/Server mutation: identical contract for client and server APIs
28
+ dataProvider.deleteWhere({ filter, unselected: selectedRows.unselectedRows })
29
+ } else {
30
+ // Explicit item selection
31
+ selectedRows.forEach(row => dataProvider.deleteItem(row.id))
32
+ }
33
+ }
34
+ }
35
+ ]
36
+ ```
37
+ - Components do **not** invent artificial DOM "visible rows" slices in virtual mode: "visible" rows are merely temporary viewport DOM nodes that shift upon scrolling.
38
+ - **Filter Boundary Invariant**: When active filters change on the provider, selection state (`selectAll = false`, `selectedRows = []`, `unselectedRows = []`) automatically resets so selections never leak between different queries.
39
+
16
40
  ---
17
41
 
18
42
  ## 2.6. Customizing with Scoped Slots (Pug Examples)
@@ -30,8 +30,8 @@
30
30
  | `@update:modelValue` | `(val: string \| number \| Record<string, unknown> \| (string \| number \| Record<string, unknown>)[] \| null)` | Emitted when selection changes |
31
31
  | `@update:isOptionsOpen` | `(open: boolean)` | Emitted when dropdown visibility changes |
32
32
  | `@update:searchtext` | `(text: string)` | Emitted when search input changes (`v-model:searchtext`) |
33
- | `@scroll-state-change` | `(state: IVirtualScrollState)` | Emitted when virtual scroll window updates (`{ startIndex, endIndex, visibleCount, totalCount, scrollTop }`) |
34
- | `@change` | `(val: string \| number \| Record<string, unknown> \| null)` | Emitted on option selection |
33
+ | `@update:scrollState` | `(state: IVirtualScrollState)` | Emitted when virtual scroll window updates (`{ loadedCount, hasMore, lastAppendedPage, totalCount }`) |
34
+ | `@blur` | `(event: FocusEvent)` | Emitted when combobox loses focus |
35
35
  - **Exposed Properties (via `ref`)**:
36
36
  | Property | Type | Description |
37
37
  | --- | --- | --- |
@@ -9,21 +9,29 @@
9
9
  | `visibleFields` | `string[]` | `null` | Array of keys to expose |
10
10
  | `loading` | `boolean` | `false` | Manual loading state toggle |
11
11
  | `v-model:search` / `search` | `string` | `''` | Search string with two-way binding |
12
- | `v-model:page` / `v-model:currentPage` / `page` | `number` | `1` | Current page with two-way binding |
13
- | `v-model:itemsPerPage` / `v-model:pageSize` / `itemsPerPage` | `number` | `10` | Items per page with two-way binding |
12
+ | `v-model:currentPage` / `currentPage` | `number` | `1` | Current page with two-way binding |
13
+ | `v-model:pageSize` / `pageSize` | `number` | `10` | Items per page with two-way binding |
14
14
  | `v-model:selectedRows` / `selectedRows` | `Record<string, unknown>[]` | `[]` | Selected rows array with two-way binding |
15
15
  | `v-model:selectAll` / `selectAll` | `boolean` | `false` | Select-all boolean state with two-way binding |
16
+ | `v-model:unselectedRows` / `unselectedRows` | `Record<string, unknown>[]` | `[]` | Excluded row objects when `selectAll: true` in dataset scope |
17
+ | `selectAllScope` | `'page' \| 'dataset'` | `'page'` | Scope for select-all toggle. Defaults to `'dataset'` when `virtualScroll: true` |
18
+ | `v-model:filter` / `filter` | `IDataFilter \| null` | `undefined` | Active data provider filter with two-way sync |
16
19
 
17
20
  - **Events / Emits**:
18
21
  | Event | Payload | Description |
19
22
  | --- | --- | --- |
20
- | `@update:page` | `(page: number)` | Emitted when page changes |
21
23
  | `@update:currentPage` | `(page: number)` | Emitted when page changes |
22
- | `@update:itemsPerPage`| `(size: number)` | Emitted when page size changes |
23
24
  | `@update:pageSize` | `(size: number)` | Emitted when page size changes |
24
25
  | `@update:search` | `(search: string)` | Emitted when search changes |
25
26
  | `@update:selectedRows`| `(rows: Record<string, unknown>[])` | Emitted when selection changes |
26
27
  | `@update:selectAll` | `(all: boolean)` | Emitted when selectAll toggles |
28
+ | `@update:selectAllScope`| `(scope: 'page' \| 'dataset')` | Emitted when selectAllScope changes |
29
+ | `@update:unselectedRows`| `(rows: any[])` | Emitted when unselectedRows changes |
30
+ | `@update:filter` | `(filter: IDataFilter \| null)` | Emitted when filter changes |
31
+
32
+ - **Selection Contract & Filter Boundary**:
33
+ - Bulk actions receive `(selectedRows, isAllSelected, filter)`. When `isAllSelected` is true, `selectedRows` is `[]`, and the developer is responsible for executing query-level operations using `filter` and `unselectedRows`.
34
+ - When filters update, selection state (`selectAll`, `selectedRows`, `unselectedRows`) resets cleanly to prevent cross-query leakage.
27
35
 
28
36
  - **Slots**:
29
37
  | Slot | Scope | Description |
@@ -45,6 +45,10 @@
45
45
  > - `'page'` (Default): The header checkbox selects only the visible page rows and adds them to `selectedRows`. Navigating to another page keeps previous selections.
46
46
  > - `'dataset'`: The header checkbox sets `selectAll = true` as a fast flag without duplicating thousands/millions of records in memory. Deselected rows are recorded in `unselectedRows`, turning the header checkbox into an indeterminate state (`isIndeterminate: true`). Clicking select-all again clears all selections.
47
47
  > - **Virtual Scrolling Incompatibility & Override**: Virtual scrolling renders a continuous window without discrete pages. Therefore, when `virtualScroll: true`, `selectAllScope` automatically defaults to `'dataset'`. If `selectAllScope="page"` is explicitly set with `virtualScroll: true`, `KDatatable` logs a console warning and automatically overrides the scope to `'dataset'`.
48
+ > - **Bulk Actions Contract & Client/Server Parity**: In dataset mode or virtual scrolling, `selectedRows` is passed as `[]` because large datasets cannot be enumerated into client memory. Handlers must inspect `(selectedRows, isAllSelected, filter)`. When `isAllSelected` is true, the developer performs query-level operations (`dataProvider.deleteWhere({ filter, unselected: selectedRows.unselectedRows })`). Usage is identical across client and server providers.
49
+ > - **Filter Boundary Invariant**: When active filters change on the provider, selection state (`selectAll = false`, `selectedRows = []`, `unselectedRows = []`) automatically resets so selections never leak across different queries.
50
+ >
51
+ > - **Virtualization & Preset Architecture**: In both default and modern presets, `KDatatable` delegates viewport calculations, row delivery caching, and selection bridging to the `useVirtualDataset` composable. Custom presets overriding `KDatatable` or `KDataIterator` must consume `useVirtualDataset` from `#toolkit/composables/useVirtualDataset` to maintain zero-copy cascade consistency without duplicating scrolling algorithms.
48
52
  >
49
53
  > **Mobile Responsiveness**: The datatable container provides native horizontal scrolling with touch scrolling support (`-webkit-overflow-scrolling: touch`) and `white-space: nowrap` on cells to prevent columns from collapsing awkwardly on small screens. Below `768px`, the table footer automatically stacks vertically to keep bulk actions and pagination cleanly separated.
50
54
 
@@ -53,3 +57,37 @@
53
57
  | --- | --- | --- |
54
58
  | `#cell-[field]` | `{ row: Record<string, unknown>, value: unknown }` | Custom cell renderer |
55
59
  | `#header-[field]`| `{ field: string }` | Custom header renderer |
60
+
61
+ ---
62
+
63
+ ### Example: Progressive Batch Ingestion (`batchSize: 50`)
64
+ Load large datasets progressively in chunks while displaying Batch 1 immediately to ensure zero UI delay:
65
+
66
+ ```vue
67
+ <template lang="pug">
68
+ .batch-status-panel(v-if="provider.isBatchLoading")
69
+ span.badge Loading batches in background...
70
+ span.progress {{ provider.batchProgress?.loaded }} / {{ provider.batchProgress?.total }} rows ({{ provider.batchProgress?.percent }}%)
71
+
72
+ KDatatable(
73
+ :dataProvider="provider"
74
+ :visibleFields="['id', 'name', 'email', 'role', 'city']"
75
+ :columnHeaders="{ id: 'ID', name: 'Full Name', email: 'Email', role: 'Role', city: 'City' }"
76
+ )
77
+ </template>
78
+
79
+ <script setup lang="ts">
80
+ import { CAPIFlatClientDataProvider, ECacheStrategy } from '@katlux/providers'
81
+
82
+ // Client-side provider with sequential batch streaming
83
+ const provider = new CAPIFlatClientDataProvider({
84
+ pageSize: 10,
85
+ batchSize: 50, // Fetches ?pageNumber=1&pageSize=50 immediately, then streams remaining batches
86
+ cacheStrategy: ECacheStrategy.ServerSession,
87
+ onBatchLoaded: (event) => {
88
+ console.log(`Batch ${event.pageNumber} ingested: ${event.totalLoaded}/${event.rowCount} rows`)
89
+ }
90
+ })
91
+ provider.setAPIUrl('/api/exampleDataList')
92
+ </script>
93
+ ```
@@ -18,7 +18,9 @@
18
18
  - **Component Specific Props**:
19
19
  | Component | Prop | Type | Default | Description |
20
20
  | --- | --- | --- | --- | --- |
21
- | `KDatePicker` | `v-model:day` | `string \| Date \| number \| null` | `undefined` | Alias for `v-model` |
21
+ | `KDatePicker` | `range` | `boolean` | `false` | Enable date range selection mode emitting [startDate, endDate] |
22
+ | `KDatePicker` | `viewCount` | `number` | `1` | Number of calendar months displayed |
23
+ | `KDatePicker` | `v-model:day` | `string \| Date \| number \| [Date, Date] \| null` | `undefined` | Alias for `v-model` |
22
24
  | `KHourPicker` | `step` | `number` | `30` | Minute selection interval |
23
25
  | `KHourPicker` | `startHour` | `string` | `'00:00'` | Earliest selectable time |
24
26
  | `KHourPicker` | `endHour` | `string` | `undefined` | Latest selectable time |
@@ -21,6 +21,9 @@
21
21
  | `idKey` | `string` | `'id'` | Unique identifier field |
22
22
  | `v-model:selectedRows` / `selectedRows` | `Record<string, unknown>[]` | `[]` | Selected resource rows |
23
23
  | `v-model:selectAll` / `selectAll` | `boolean` | `false` | Global select all |
24
+ | `v-model:unselectedRows` / `unselectedRows` | `Record<string, unknown>[]` | `[]` | Excluded row objects when selectAll is true |
25
+ | `selectAllScope` | `'page' \| 'dataset'` | `'page'` | Scope for select-all toggle. Defaults to `'dataset'` when `virtualScroll: true` |
26
+ | `v-model:filter` / `filter` | `IDataFilter \| null` | `undefined` | Active filter object forwarded down through KTreeView to KDatatable |
24
27
  | `v-model:task` | `IGanttTask | null` | `null` | Selected task |
25
28
  | `virtualScroll` | `boolean` | `false` | Enables DOM virtualization for large resource datasets |
26
29
  | `itemHeight` | `number` | `40` | Fixed height in px for each resource row |
@@ -44,6 +47,12 @@
44
47
  | `@update:task` | `{ task: IGanttTask, sourceRow: Record<string, unknown>, targetRow?: Record<string, unknown> }` | Triggered when a task bar is dragged, resized, or moved across rows and dropped |
45
48
  | `@update:selectedRows` | `Record<string, unknown>[]` | Triggered when row selection checkboxes change |
46
49
  | `@update:selectAll` | `boolean` | Triggered when global select all changes |
50
+ | `@update:selectAllScope`| `'page' \| 'dataset'` | Triggered when select-all scope changes |
51
+ | `@update:unselectedRows`| `Record<string, unknown>[]` | Triggered when excluded rows change |
52
+ | `@update:filter` | `(filter: IDataFilter \| null)` | Triggered when filter changes |
53
+
54
+ - **Hierarchy Prop Forwarding**:
55
+ `KGantt` renders `KTreeView`, which in turn renders `KDatatable`. Selection state (`selectedRows`, `selectAll`, `selectAllScope`, `unselectedRows`) and query context (`filter`) are completely forwarded through the hierarchy to maintain client/server parity and consistent bulk action contracts.
47
56
 
48
57
  - **Opening a Modal or Custom Context Menu on Task Click / Right-Click (Pug)**:
49
58
  ```pug
@@ -1,5 +1,5 @@
1
1
  ### `KIcon`
2
2
  - **Props**: `iconname` (Required), `width`, `height`, `rotate`.
3
- - **Available Icons**: `'close'`, `'search'`, `'chevron'`, `'calendar'`, `'folder'`, `'file'`, `'home'`, `'arrow-left'`, `'arrow-right'`, `'arrow-up'`, `'arrow-down'`, `'plus'`, `'minus'`, `'multiply'`, `'divide'`, `'info'`, `'mail'`, `'type'`, `'hash'`, `'user'`, `'check'`, `'settings'`, `'trash'`, `'edit'`, `'menu'`, `'more-vertical'`, `'warning'`, `'eye'`, `'eye-off'`, `'logout'`, `'refresh'`, `'download'`, `'upload'`, `'link'`, `'bell'`, `'phone'`, `'message-square'`, `'star'`, `'heart'`, `'shopping-bag'`, `'share'`, `'lock'`, `'map-pin'`, `'copy'`, `'external-link'`, `'clock'`, `'camera'`, `'image'`.
3
+ - **Available Icons**: `'close'`, `'search'`, `'chevron'`, `'calendar'`, `'folder'`, `'file'`, `'home'`, `'arrow-left'`, `'arrow-right'`, `'arrow-up'`, `'arrow-down'`, `'plus'`, `'minus'`, `'multiply'`, `'divide'`, `'info'`, `'mail'`, `'type'`, `'hash'`, `'user'`, `'check'`, `'settings'`, `'trash'`, `'edit'`, `'menu'`, `'more-vertical'`, `'warning'`, `'eye'`, `'eye-off'`, `'logout'`, `'refresh'`, `'download'`, `'upload'`, `'link'`, `'bell'`, `'phone'`, `'message-square'`, `'star'`, `'heart'`, `'shopping-bag'`, `'share'`, `'lock'`, `'map-pin'`, `'copy'`, `'external-link'`, `'clock'`, `'camera'`, `'image'`, `'katlux'`, `'katlux-logo'`.
4
4
  - **Styling**: Icons inherit their primary color from `currentColor` (set via CSS `color`). For complex icons with secondary layers (e.g. `calendar`), define the `--icon-secondary` CSS variable (e.g., `--icon-secondary: var(--primary-900);`).
5
5
  - **Testing Note**: `KIcon` resolves SVG components at runtime via Vite's `import.meta.glob`. In headless Vitest test environments, `import.meta.glob` is Vite-specific and resolves empty without a running dev server; unit tests (`KIcon.logic.spec.ts`) therefore validate pure sizing, dimension formatting, and default properties. Full SVG rendering is verified in browser E2E tests.
@@ -16,3 +16,6 @@
16
16
  | `showLegend` | `boolean` | `true` | Displays color-coded legend |
17
17
  | `xAxisTitle` | `string` | `undefined` | Label displayed on X axis |
18
18
  | `yAxisTitle` | `string` | `undefined` | Label displayed on Y axis |
19
+
20
+ > **Server Provider Chart Single-Page Architecture**: By design, server-side data providers draw one page to support future charting features (pagination, zooming/virtual navigation). To fetch the entire dataset or plot aggregated series across all records, configure `pageSize: -1` on the provider or use a client-side provider (`CFlatClientDataProvider`).
21
+
@@ -18,7 +18,6 @@
18
18
  | --- | --- | --- |
19
19
  | `@update:currentPage` | `(page: number)` | Emitted when page changes |
20
20
  | `@update:pageSize` | `(size: number)` | Emitted when page size changes |
21
- | `@page-change` | `(page: number)` | Emitted on page transition |
22
21
 
23
22
  - **Slots**:
24
23
  | Slot | Scope | Description |
@@ -18,3 +18,6 @@
18
18
  | `showLegend` | `boolean` | `true` | Displays legend |
19
19
  | `xAxisTitle` | `string` | `undefined` | Label on X axis |
20
20
  | `yAxisTitle` | `string` | `undefined` | Label on Y axis |
21
+
22
+ > **Server Provider Chart Single-Page Architecture**: By design, server-side data providers draw one page to support future charting features (pagination, zooming/virtual navigation). To fetch the entire dataset or plot aggregated series across all records, configure `pageSize: -1` on the provider or use a client-side provider (`CFlatClientDataProvider`).
23
+
@@ -31,5 +31,6 @@
31
31
  | `@update:isOptionsOpen` | `open: boolean` | Emitted when dropdown opens/closes |
32
32
  | `@update:searchtext` | `text: string` | Emitted when search changes (`v-model:searchtext`) |
33
33
  | `@update:expandedNodes` | `nodes: (string \| number)[]` | Emitted when expansion changes (`v-model:expandedNodes`) |
34
- | `@change` | `node: ITreeNode \| null` | Emitted on selection change |
34
+ | `@update:scrollState` | `state: IVirtualScrollState` | Emitted when virtual scroll state updates |
35
+ | `@node-toggle` | `nodeId: string \| number` | Emitted when a tree branch node toggles |
35
36
  - **Slots**: Forwards all slots to its internal `KTree` (e.g., `#item`, `#default`).
@@ -13,6 +13,12 @@
13
13
  | `bulkActions` | `IKDatatableAction[]` | `[]` | Global actions for selected rows |
14
14
  | `selectedRows` | `Record<string, unknown>[]` | `[]` | Currently selected rows (supports `v-model:selectedRows`) |
15
15
  | `selectAll` | `boolean` | `false` | Header select-all state (supports `v-model:selectAll`) |
16
+ | `selectAllScope` | `'page' \| 'dataset'` | `'page'` | Scope for select-all toggle. Defaults to `'dataset'` when `virtualScroll: true` |
17
+ | `unselectedRows` | `Record<string, unknown>[]` | `[]` | Excluded row objects when selectAll is true (supports `v-model:unselectedRows`) |
18
+ | `v-model:filter` / `filter` | `IDataFilter \| null` | `undefined` | Active filter object forwarded to datatable and bulk actions |
19
+ | `virtualScroll` | `boolean` | `false` | Enables virtual DOM scrolling |
20
+ | `itemHeight` | `number` | `40` | Row height in pixels for virtualization |
21
+ | `viewportHeight` | `number` | `500` | Viewport container height in pixels |
16
22
  | `loading` | `boolean` | `false` | Manual loading state toggle |
17
23
  | `multiSelect` | `boolean` | `false` | Enable node checkboxes |
18
24
  | `selectable` | `boolean` | `false` | Enable node clicking for selection |
@@ -23,6 +29,12 @@
23
29
  | `@update:expandedNodes` | `value: (string \| number)[]` | Emitted when node expansion changes (`v-model:expandedNodes`) |
24
30
  | `@update:selectedRows` | `value: Record<string, unknown>[]` | Emitted when row selection changes (`v-model:selectedRows`) |
25
31
  | `@update:selectAll` | `value: boolean` | Emitted when select-all state toggles (`v-model:selectAll`) |
32
+ | `@update:selectAllScope`| `value: 'page' \| 'dataset'` | Emitted when select-all scope changes |
33
+ | `@update:unselectedRows`| `value: any[]` | Emitted when excluded rows change |
34
+ | `@update:filter` | `(filter: IDataFilter \| null)` | Emitted when filter changes |
35
+
36
+ - **Prop Forwarding to Internal KDatatable**:
37
+ `KTreeView` embeds `KDatatable` under the hood. All selection state (`selectedRows`, `selectAll`, `selectAllScope`, `unselectedRows`) and query context (`filter`) are seamlessly forwarded down to ensure full client/server parity and consistent bulk action contracts.
26
38
  - **Slots**:
27
39
  | Slot | Scope | Description |
28
40
  | --- | --- | --- |
@@ -27,6 +27,13 @@ description: Katlux Toolkit project configuration, development standards, and in
27
27
  ```typescript
28
28
  export default defineNuxtConfig({
29
29
  modules: ['@katlux/toolkit'],
30
+ katluxToolkit: {
31
+ // Module Options
32
+ // autoAiReference: Opt-in automatic sync of AI skill references to .agents/skills/katlux-* during `nuxt dev`.
33
+ // Default is false (zero repository side-effects). Set to true to automatically sync skills in dev mode,
34
+ // or initialize once on-demand via `npx @katlux/toolkit ai-init`.
35
+ autoAiReference: false, // Default is false (opt-in)
36
+ },
30
37
  runtimeConfig: {
31
38
  public: {
32
39
  katluxToolkit: {
@@ -38,6 +45,10 @@ export default defineNuxtConfig({
38
45
  })
39
46
  ```
40
47
 
48
+ > [!NOTE]
49
+ > **AI Skills Auto-Sync (`autoAiReference`)**:
50
+ > By default, `autoAiReference` is `false` to ensure `nuxt dev` never creates unprompted files in consumer repositories. Set `katluxToolkit: { autoAiReference: true }` in `nuxt.config.ts` to automatically synchronize modular skill documentation to `.agents/skills/` during development with cryptographic hash protection (user-modified files are never overwritten). Alternatively, generate references and IDE configurations on demand via `npx @katlux/toolkit ai-init`.
51
+
41
52
  > [!NOTE]
42
53
  > `@katlux/toolkit` automatically installs `@nuxtjs/i18n` with a minimal English default if it is not already present in the consumer's `modules` array. Katlux components rely on `nuxtApp.$t` for all user-facing labels and ARIA strings. If you need custom locales or translation files, add `'@nuxtjs/i18n'` with your own configuration to `modules` **before** `'@katlux/toolkit'` and the toolkit will skip its default installation.
43
54
 
@@ -104,13 +115,13 @@ export default defineAppConfig({
104
115
 
105
116
  | Package Name | Current Version | Description | Installation Command |
106
117
  | --- | --- | --- | --- |
107
- | `@katlux/toolkit` | `0.1.1-alpha.143` | Core Nuxt module, UI toolkit, presets, and components | `npm install @katlux/toolkit@alpha` |
108
- | `@katlux/providers` | `0.1.1-alpha.131` | Core data providers, client caching, and state structures | `npm install @katlux/providers@alpha` |
109
- | `@katlux/preset-modern` | `0.1.1-alpha.118` | Modern design preset and styling variables | `npm install @katlux/preset-modern@alpha` |
110
- | `@katlux/preset-dark` | `0.1.1-alpha.49` | Sleek Dark Mode design preset | `npm install @katlux/preset-dark@alpha` |
111
- | `@katlux/block-charts` | `0.1.1-alpha.118` | Pre-built charting block components | `npm install @katlux/block-charts@alpha` |
112
- | `@katlux/block-ecommerce` | `0.1.1-alpha.118` | Pre-built eCommerce block components | `npm install @katlux/block-ecommerce@alpha` |
113
- | `@katlux/mcp` | `0.1.0-alpha.23` | Model Context Protocol server for AI assistant integration | `npm install @katlux/mcp@alpha` |
118
+ | `@katlux/toolkit` | `0.1.1-alpha.145` | Core Nuxt module, UI toolkit, presets, and components | `npm install @katlux/toolkit@alpha` |
119
+ | `@katlux/providers` | `0.1.1-alpha.132` | Core data providers, client caching, and state structures | `npm install @katlux/providers@alpha` |
120
+ | `@katlux/preset-modern` | `0.1.1-alpha.119` | Modern design preset and styling variables | `npm install @katlux/preset-modern@alpha` |
121
+ | `@katlux/preset-dark` | `0.1.1-alpha.50` | Sleek Dark Mode design preset | `npm install @katlux/preset-dark@alpha` |
122
+ | `@katlux/block-charts` | `0.1.1-alpha.119` | Pre-built charting block components | `npm install @katlux/block-charts@alpha` |
123
+ | `@katlux/block-ecommerce` | `0.1.1-alpha.119` | Pre-built eCommerce block components | `npm install @katlux/block-ecommerce@alpha` |
124
+ | `@katlux/mcp` | `0.1.0-alpha.24` | Model Context Protocol server for AI assistant integration | `npm install @katlux/mcp@alpha` |
114
125
 
115
126
  > [!NOTE]
116
127
  > Katlux packages are currently published under the `@alpha` tag on NPM. Always append `@alpha` or the specific version tag when adding dependencies.
@@ -138,7 +149,7 @@ cd packages/katlux-providers && npm run build
138
149
 
139
150
  ```bash
140
151
  # Publish packages to the beta npm tag
141
- node publish-beta.mjs
152
+ node publish.mjs
142
153
  ```
143
154
 
144
155
  ---