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

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 (54) 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.global.d.vue.ts +1 -1
  5. package/dist/runtime/components/KButton/KButton.global.vue.d.ts +1 -1
  6. package/dist/runtime/components/KButton/KButton.logic.d.ts +1 -1
  7. package/dist/runtime/components/KCheckbox/KCheckbox.global.d.vue.ts +2 -2
  8. package/dist/runtime/components/KCheckbox/KCheckbox.global.vue.d.ts +2 -2
  9. package/dist/runtime/components/KCombobox/KCombobox.global.d.vue.ts +2 -2
  10. package/dist/runtime/components/KCombobox/KCombobox.global.vue.d.ts +2 -2
  11. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.d.vue.ts +7 -7
  12. package/dist/runtime/components/KCompositeInput/KCompositeInput.global.vue.d.ts +7 -7
  13. package/dist/runtime/components/KCompositeInput/KCompositeInput.logic.d.ts +3 -3
  14. package/dist/runtime/components/KDatePicker/KDatePicker.global.d.vue.ts +4 -4
  15. package/dist/runtime/components/KDatePicker/KDatePicker.global.vue.d.ts +4 -4
  16. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.d.vue.ts +2 -2
  17. package/dist/runtime/components/KDateTimePicker/KDateTimePicker.global.vue.d.ts +2 -2
  18. package/dist/runtime/components/KGantt/KGantt.global.d.vue.ts +11 -0
  19. package/dist/runtime/components/KGantt/KGantt.global.vue +3 -0
  20. package/dist/runtime/components/KGantt/KGantt.global.vue.d.ts +11 -0
  21. package/dist/runtime/components/KGantt/KGantt.logic.d.ts +7 -1
  22. package/dist/runtime/components/KGantt/KGantt.logic.js +26 -7
  23. package/dist/runtime/components/KHourPicker/KHourPicker.global.d.vue.ts +2 -2
  24. package/dist/runtime/components/KHourPicker/KHourPicker.global.vue.d.ts +2 -2
  25. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.d.vue.ts +2 -2
  26. package/dist/runtime/components/KMaskTextbox/KMaskTextbox.global.vue.d.ts +2 -2
  27. package/dist/runtime/components/KRadiobox/KRadiobox.global.d.vue.ts +1 -1
  28. package/dist/runtime/components/KRadiobox/KRadiobox.global.vue.d.ts +1 -1
  29. package/dist/runtime/components/KTextarea/KTextarea.global.d.vue.ts +2 -2
  30. package/dist/runtime/components/KTextarea/KTextarea.global.vue.d.ts +2 -2
  31. package/dist/runtime/components/KTextbox/KTextbox.global.d.vue.ts +3 -3
  32. package/dist/runtime/components/KTextbox/KTextbox.global.vue.d.ts +3 -3
  33. package/dist/runtime/components/KToast/KToast.global.d.vue.ts +1 -1
  34. package/dist/runtime/components/KToast/KToast.global.vue.d.ts +1 -1
  35. package/dist/runtime/components/KTree/KTree.global.d.vue.ts +1 -1
  36. package/dist/runtime/components/KTree/KTree.global.vue.d.ts +1 -1
  37. package/dist/runtime/components/KTreePicker/KTreePicker.global.d.vue.ts +3 -3
  38. package/dist/runtime/components/KTreePicker/KTreePicker.global.vue.d.ts +3 -3
  39. package/dist/runtime/components/KTreeView/KTreeView.global.d.vue.ts +1 -1
  40. package/dist/runtime/components/KTreeView/KTreeView.global.vue.d.ts +1 -1
  41. package/dist/runtime/presets/default/components/KGantt/KGantt.d.vue.ts +11 -0
  42. package/dist/runtime/presets/default/components/KGantt/KGantt.vue +53 -12
  43. package/dist/runtime/presets/default/components/KGantt/KGantt.vue.d.ts +11 -0
  44. package/dist/runtime/presets/default/components/KGantt/KGanttTimeline.vue +2 -0
  45. package/dist/runtime/presets/default/components/KTree/KTree.d.vue.ts +1 -1
  46. package/dist/runtime/presets/default/components/KTree/KTree.vue.d.ts +1 -1
  47. package/dist/skills/KATLUX_INDEX.md +1 -0
  48. package/dist/skills/katlux-components/components/KGantt.md +10 -1
  49. package/dist/skills/katlux-config/SKILL.md +7 -7
  50. package/dist/skills/katlux-presets/SKILL.md +2 -0
  51. package/dist/skills/katlux-presets/creating-a-preset.md +269 -0
  52. package/dist/skills/katlux-providers/SKILL.md +1 -1
  53. package/dist/skills/katlux-providers/providers/encryption.md +43 -6
  54. package/package.json +2 -2
@@ -57,9 +57,9 @@ 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: "error" | "success" | "warning" | null | undefined;
61
- placeholder: string;
60
+ validation: "success" | "warning" | "error" | null | undefined;
62
61
  validationText: string;
62
+ placeholder: string;
63
63
  rows: number;
64
64
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65
65
  declare const _default: typeof __VLS_export;
@@ -67,11 +67,11 @@ 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" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
70
+ type: "number" | "url" | "search" | "text" | "password" | "email" | "tel" | undefined;
71
71
  label: string;
72
- validation: "error" | "success" | "warning" | null | undefined;
73
- placeholder: string;
72
+ validation: "success" | "warning" | "error" | null | undefined;
74
73
  validationText: string;
74
+ placeholder: string;
75
75
  showClear: boolean;
76
76
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
77
77
  declare const _default: typeof __VLS_export;
@@ -67,11 +67,11 @@ 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" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
70
+ type: "number" | "url" | "search" | "text" | "password" | "email" | "tel" | undefined;
71
71
  label: string;
72
- validation: "error" | "success" | "warning" | null | undefined;
73
- placeholder: string;
72
+ validation: "success" | "warning" | "error" | null | undefined;
74
73
  validationText: string;
74
+ placeholder: string;
75
75
  showClear: boolean;
76
76
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
77
77
  declare const _default: typeof __VLS_export;
@@ -73,8 +73,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
73
73
  title: string;
74
74
  text: string;
75
75
  timeout: number;
76
- pauseOnHover: boolean;
77
76
  teleport: boolean;
77
+ pauseOnHover: boolean;
78
78
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
79
79
  declare const _default: typeof __VLS_export;
80
80
  export default _default;
@@ -73,8 +73,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
73
73
  title: string;
74
74
  text: string;
75
75
  timeout: number;
76
- pauseOnHover: boolean;
77
76
  teleport: boolean;
77
+ pauseOnHover: boolean;
78
78
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
79
79
  declare const _default: typeof __VLS_export;
80
80
  export default _default;
@@ -162,13 +162,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
162
162
  modelValue: any;
163
163
  disabled: boolean;
164
164
  loading: boolean;
165
+ idKey: string;
165
166
  searchtext: string;
166
167
  virtualScroll: boolean;
167
168
  itemHeight: number;
168
169
  buffer: number;
169
170
  labelField: string;
170
171
  multiSelect: boolean;
171
- idKey: string;
172
172
  viewportHeight: number;
173
173
  expandedNodes: (string | number)[] | Set<string | number>;
174
174
  iconField: string;
@@ -162,13 +162,13 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
162
162
  modelValue: any;
163
163
  disabled: boolean;
164
164
  loading: boolean;
165
+ idKey: string;
165
166
  searchtext: string;
166
167
  virtualScroll: boolean;
167
168
  itemHeight: number;
168
169
  buffer: number;
169
170
  labelField: string;
170
171
  multiSelect: boolean;
171
- idKey: string;
172
172
  viewportHeight: number;
173
173
  expandedNodes: (string | number)[] | Set<string | number>;
174
174
  iconField: string;
@@ -235,7 +235,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
235
235
  label: string;
236
236
  disabled: boolean;
237
237
  loading: boolean;
238
- validation: "error" | "success" | "warning" | null | undefined;
238
+ validation: "success" | "warning" | "error" | null | undefined;
239
+ validationText: string;
240
+ idKey: string;
239
241
  searchbox: boolean;
240
242
  searchtext: string;
241
243
  searchPlaceholder: string;
@@ -245,11 +247,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
245
247
  isOptionsOpen: boolean;
246
248
  placeholder: string;
247
249
  fullWidth: boolean;
248
- validationText: string;
249
250
  closeOnSelect: boolean;
250
251
  multiSelect: boolean;
251
252
  valueField: string;
252
- idKey: string;
253
253
  viewportHeight: number;
254
254
  expandedNodes: any;
255
255
  parentKey: string;
@@ -235,7 +235,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
235
235
  label: string;
236
236
  disabled: boolean;
237
237
  loading: boolean;
238
- validation: "error" | "success" | "warning" | null | undefined;
238
+ validation: "success" | "warning" | "error" | null | undefined;
239
+ validationText: string;
240
+ idKey: string;
239
241
  searchbox: boolean;
240
242
  searchtext: string;
241
243
  searchPlaceholder: string;
@@ -245,11 +247,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
245
247
  isOptionsOpen: boolean;
246
248
  placeholder: string;
247
249
  fullWidth: boolean;
248
- validationText: string;
249
250
  closeOnSelect: boolean;
250
251
  multiSelect: boolean;
251
252
  valueField: string;
252
- idKey: string;
253
253
  viewportHeight: number;
254
254
  expandedNodes: any;
255
255
  parentKey: string;
@@ -142,10 +142,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
142
142
  selectedRows: any[];
143
143
  bulkActions: import("@katlux/providers").IKDatatableAction[];
144
144
  selectAll: boolean;
145
+ idKey: string;
145
146
  virtualScroll: boolean;
146
147
  itemHeight: number;
147
148
  buffer: number;
148
- idKey: string;
149
149
  rowActions: import("@katlux/providers").IKDatatableAction[];
150
150
  viewportHeight: number;
151
151
  cellSlots: Record<string, any>;
@@ -142,10 +142,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
142
142
  selectedRows: any[];
143
143
  bulkActions: import("@katlux/providers").IKDatatableAction[];
144
144
  selectAll: boolean;
145
+ idKey: string;
145
146
  virtualScroll: boolean;
146
147
  itemHeight: number;
147
148
  buffer: number;
148
- idKey: string;
149
149
  rowActions: import("@katlux/providers").IKDatatableAction[];
150
150
  viewportHeight: number;
151
151
  cellSlots: Record<string, any>;
@@ -25,6 +25,7 @@ type __VLS_Props = {
25
25
  headerSlots?: any;
26
26
  endingPoint?: Date | string | number;
27
27
  mode?: 'date' | 'numeric';
28
+ inclusiveEndDate?: boolean;
28
29
  virtualScroll?: boolean;
29
30
  itemHeight?: number;
30
31
  viewportHeight?: number;
@@ -50,6 +51,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
50
51
  sourceRow: any;
51
52
  targetRow?: any;
52
53
  }) => any;
54
+ "task-change": (payload: {
55
+ task: IGanttTask;
56
+ sourceRow: any;
57
+ targetRow?: any;
58
+ }) => any;
53
59
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
54
60
  "onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
55
61
  "onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
@@ -68,6 +74,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
68
74
  sourceRow: any;
69
75
  targetRow?: any;
70
76
  }) => any) | undefined;
77
+ "onTask-change"?: ((payload: {
78
+ task: IGanttTask;
79
+ sourceRow: any;
80
+ targetRow?: any;
81
+ }) => any) | undefined;
71
82
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
72
83
  declare const _default: typeof __VLS_export;
73
84
  export default _default;
@@ -95,6 +95,7 @@ const props = defineProps<{
95
95
 
96
96
  endingPoint?: Date | string | number
97
97
  mode?: 'date' | 'numeric'
98
+ inclusiveEndDate?: boolean
98
99
 
99
100
  virtualScroll?: boolean
100
101
  itemHeight?: number
@@ -107,6 +108,7 @@ const props = defineProps<{
107
108
 
108
109
  const emit = defineEmits<{
109
110
  (e: 'update:task', payload: { task: IGanttTask; sourceRow: any; targetRow?: any }): void
111
+ (e: 'task-change', payload: { task: IGanttTask; sourceRow: any; targetRow?: any }): void
110
112
  (e: 'update:selectedRows', value: any[]): void
111
113
  (e: 'update:selectAll', value: boolean): void
112
114
  (e: 'task-click', payload: { task: IGanttTask; row: any }): void
@@ -124,6 +126,7 @@ interface ActiveDrag {
124
126
  currentHoverRow: any
125
127
  mode: 'move' | 'resize-left' | 'resize-right'
126
128
  startX: number
129
+ startY: number
127
130
  wrapperWidth: number
128
131
  originalStartMs: number
129
132
  originalEndMs: number
@@ -202,6 +205,22 @@ const onTaskClick = (payload: { task: IGanttTask; row: any }) => {
202
205
  emit('task-click', payload)
203
206
  }
204
207
 
208
+ function formatTaskDate(originalValue: any, ms: number, mode?: 'date' | 'numeric') {
209
+ if (mode === 'numeric' || typeof originalValue === 'number') return ms
210
+ if (originalValue instanceof Date) return new Date(ms)
211
+ if (typeof originalValue === 'string') {
212
+ if (/^\d{4}-\d{2}-\d{2}$/.test(originalValue)) {
213
+ const d = new Date(ms)
214
+ const year = d.getFullYear()
215
+ const month = String(d.getMonth() + 1).padStart(2, '0')
216
+ const day = String(d.getDate()).padStart(2, '0')
217
+ return `${year}-${month}-${day}`
218
+ }
219
+ return new Date(ms).toISOString()
220
+ }
221
+ return ms
222
+ }
223
+
205
224
  const onTaskDragStart = (
206
225
  { event, task, rowId, mode, wrapperEl }: { event: MouseEvent; task: IGanttTask; rowId: any; mode: string; wrapperEl: HTMLElement | null },
207
226
  row: any
@@ -226,6 +245,7 @@ const onTaskDragStart = (
226
245
  currentHoverRow: row,
227
246
  mode: mode as ActiveDrag['mode'],
228
247
  startX: event.clientX,
248
+ startY: event.clientY,
229
249
  wrapperWidth,
230
250
  originalStartMs,
231
251
  originalEndMs,
@@ -250,7 +270,8 @@ const onMouseMove = (e: MouseEvent) => {
250
270
 
251
271
  const state = activeDragState.value
252
272
  const deltaX = e.clientX - state.startX
253
- if (Math.abs(deltaX) > 4) {
273
+ const deltaY = e.clientY - state.startY
274
+ if (Math.abs(deltaX) > 4 || Math.abs(deltaY) > 4) {
254
275
  wasDragging = true
255
276
  }
256
277
  const msPerPx = (props.globalDateRange.end - props.globalDateRange.start) / state.wrapperWidth
@@ -280,12 +301,6 @@ const onMouseUp = () => {
280
301
  window.removeEventListener('mousemove', onMouseMove)
281
302
  window.removeEventListener('mouseup', onMouseUp)
282
303
 
283
- if (wasDragging) {
284
- setTimeout(() => {
285
- wasDragging = false
286
- }, 150)
287
- }
288
-
289
304
  if (!activeDragState.value) { return }
290
305
 
291
306
  const state = activeDragState.value
@@ -299,6 +314,22 @@ const onMouseUp = () => {
299
314
  state.currentEndMs !== state.originalEndMs ||
300
315
  (state.currentHoverRow && state.currentHoverRow !== state.sourceRow)
301
316
 
317
+ if (hasMoved || wasDragging) {
318
+ wasDragging = true
319
+ // Intercept and prevent the browser's subsequent click event in the capture phase
320
+ const captureClick = (e: MouseEvent) => {
321
+ e.stopPropagation()
322
+ e.stopImmediatePropagation()
323
+ e.preventDefault()
324
+ window.removeEventListener('click', captureClick, true)
325
+ }
326
+ window.addEventListener('click', captureClick, true)
327
+ setTimeout(() => {
328
+ window.removeEventListener('click', captureClick, true)
329
+ wasDragging = false
330
+ }, 100)
331
+ }
332
+
302
333
  if (!hasMoved) {
303
334
  activeDragState.value = null
304
335
  return
@@ -306,8 +337,8 @@ const onMouseUp = () => {
306
337
 
307
338
  const updatedTask = {
308
339
  ...state.task,
309
- [startField]: state.currentStartMs,
310
- [endField]: state.currentEndMs
340
+ [startField]: formatTaskDate(state.task[startField], state.currentStartMs, props.mode),
341
+ [endField]: formatTaskDate(state.task[endField], state.currentEndMs, props.mode)
311
342
  }
312
343
 
313
344
  let targetRow = state.sourceRow
@@ -347,18 +378,27 @@ const onMouseUp = () => {
347
378
  ? props.getTasksForRow(targetRow)
348
379
  : (targetRow?.[tasksField] || [])
349
380
 
350
- const overlapping = isTaskOverlapping(updatedTask, targetTasks, startField, endField)
381
+ const overlapping = isTaskOverlapping(
382
+ updatedTask,
383
+ targetTasks,
384
+ startField,
385
+ endField,
386
+ props.inclusiveEndDate ?? (props.mode === 'date')
387
+ )
351
388
 
352
389
  if (overlapping) {
353
390
  activeDragState.value = null
354
391
  return
355
392
  }
356
393
 
357
- emit('update:task', {
394
+ const emitPayload = {
358
395
  task: updatedTask,
359
396
  sourceRow: state.sourceRow,
360
397
  targetRow: targetRow !== state.sourceRow ? targetRow : undefined
361
- })
398
+ }
399
+
400
+ emit('update:task', emitPayload)
401
+ emit('task-change', emitPayload)
362
402
 
363
403
  activeDragState.value = null
364
404
  }
@@ -427,6 +467,7 @@ const ganttColumns = computed(() => {
427
467
  :deep(th[data-field="ganttTimeline"]),
428
468
  :deep(td[data-field="ganttTimeline"]) {
429
469
  padding: 0;
470
+ width: 100% !important;
430
471
  }
431
472
 
432
473
  .gantt-actions {
@@ -25,6 +25,7 @@ type __VLS_Props = {
25
25
  headerSlots?: any;
26
26
  endingPoint?: Date | string | number;
27
27
  mode?: 'date' | 'numeric';
28
+ inclusiveEndDate?: boolean;
28
29
  virtualScroll?: boolean;
29
30
  itemHeight?: number;
30
31
  viewportHeight?: number;
@@ -50,6 +51,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
50
51
  sourceRow: any;
51
52
  targetRow?: any;
52
53
  }) => any;
54
+ "task-change": (payload: {
55
+ task: IGanttTask;
56
+ sourceRow: any;
57
+ targetRow?: any;
58
+ }) => any;
53
59
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
54
60
  "onUpdate:selectedRows"?: ((value: any[]) => any) | undefined;
55
61
  "onUpdate:selectAll"?: ((value: boolean) => any) | undefined;
@@ -68,6 +74,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
68
74
  sourceRow: any;
69
75
  targetRow?: any;
70
76
  }) => any) | undefined;
77
+ "onTask-change"?: ((payload: {
78
+ task: IGanttTask;
79
+ sourceRow: any;
80
+ targetRow?: any;
81
+ }) => any) | undefined;
71
82
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
72
83
  declare const _default: typeof __VLS_export;
73
84
  export default _default;
@@ -25,11 +25,13 @@
25
25
  .gantt-resize-handle.left(
26
26
  v-if="editable"
27
27
  @mousedown.left.stop="$emit('task-dragstart', { event: $event, task, rowId: row?.id, mode: 'resize-left', wrapperEl: wrapperRef })"
28
+ @click.stop
28
29
  )
29
30
  span.gantt-title {{ task[titleField] || '' }}
30
31
  .gantt-resize-handle.right(
31
32
  v-if="editable"
32
33
  @mousedown.left.stop="$emit('task-dragstart', { event: $event, task, rowId: row?.id, mode: 'resize-right', wrapperEl: wrapperRef })"
34
+ @click.stop
33
35
  )
34
36
  </template>
35
37
 
@@ -28,13 +28,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
28
28
  }>, {
29
29
  disabled: boolean;
30
30
  loading: boolean;
31
+ idKey: string;
31
32
  searchtext: string;
32
33
  virtualScroll: boolean;
33
34
  itemHeight: number;
34
35
  buffer: number;
35
36
  labelField: string;
36
37
  multiSelect: boolean;
37
- idKey: string;
38
38
  viewportHeight: number;
39
39
  iconField: string;
40
40
  selectable: boolean;
@@ -28,13 +28,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
28
28
  }>, {
29
29
  disabled: boolean;
30
30
  loading: boolean;
31
+ idKey: string;
31
32
  searchtext: string;
32
33
  virtualScroll: boolean;
33
34
  itemHeight: number;
34
35
  buffer: number;
35
36
  labelField: string;
36
37
  multiSelect: boolean;
37
- idKey: string;
38
38
  viewportHeight: number;
39
39
  iconField: string;
40
40
  selectable: boolean;
@@ -14,6 +14,7 @@ When the **Katlux MCP Server** (`katlux` / `@katlux/mcp`) is configured in your
14
14
  | `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
15
  | `katlux_list_components` | Discover components filtered by category (`form`, `data`, `layout`, `navigation`, `feedback`, `charts`, `ecommerce`) or search query | ~150 tokens vs reading entire docs |
16
16
  | `katlux_get_provider` | Data provider architecture, constructor options, caching, encryption, and recipes for `ADataProvider`, `CFlatClientDataProvider`, `CAPIFlatServerDataProvider` | ~400 tokens vs 15k in `katlux-providers` |
17
+ | `katlux_get_encryption` | Cryptographic architectures, cipher provider APIs, E2EE recipes, field-level encryption, tenant key wrapping, blind search indexing, and security instructions | ~200-500 tokens vs 14k in encryption spec |
17
18
  | `katlux_list_icons` | Fuzzy search available SVG icons for `KIcon` and `icon` props | ~100 tokens vs guessing icon names |
18
19
  | `katlux_get_tokens` | CSS design tokens by category (`color`, `surface`, `border`, `typography`, `button`, `input`, `table`, `other`) | ~300 tokens vs 6k in `katlux-tokens` |
19
20
  | `katlux_scaffold` | Boilerplate code generator for common patterns (`datatable-page`, `form-with-validation`, `tree-explorer`, `chart-dashboard`) | Clean boilerplate with zero prompt bloat |
@@ -3,7 +3,7 @@
3
3
  | Prop | Type | Default | Description |
4
4
  | --- | --- | --- | --- |
5
5
  | `dataProvider` | `ADataProvider` | **Required** | Resource data source |
6
- | `columns` | `ITreeViewColumn[]`| **Required** | Left-side resource columns |
6
+ | `columns` | `ITreeViewColumn[]`| **Required** | Left-side resource columns (specify `width` like `'260px'` to maintain a fixed, stable column width across timeline zoom operations) |
7
7
  | `treeColumnIndex` | `number` | `0` | Column index displaying the hierarchical tree expander |
8
8
  | `startDate` | `Date \| string` | Now - 15d | Timeline start date (date mode) |
9
9
  | `endDate` | `Date \| string` | Now + 45d | Timeline end date (date mode) |
@@ -27,6 +27,14 @@
27
27
  | `viewportHeight` | `number` | `500` | Height in px of the scrollable viewport |
28
28
  | `buffer` | `number` | `5` | Number of off-screen buffer rows rendered above/below |
29
29
 
30
+ - **Slots**:
31
+ | Slot | Description |
32
+ | --- | --- |
33
+ | `#task` | Custom template for timeline task bars (Props: `task`, `resource`) |
34
+ | `#timeline-header` | Custom template for the timeline ruler/header |
35
+ | `#cell-[fieldName]` | Custom cell renderer for resource columns (e.g. `#cell-resource`) |
36
+ | `#header-[fieldName]` | Custom header renderer for resource columns |
37
+
30
38
  - **Events**:
31
39
  | Event | Payload | Description |
32
40
  | --- | --- | --- |
@@ -55,6 +63,7 @@ KModal(v-model="isModalOpen" :title="activeTask?.title || 'Task Details'")
55
63
  p(v-if="activeTask") Resource: \#{{ activeRow?.name }}
56
64
  ```
57
65
  ```typescript
66
+ const columns = [{ field: 'resource', header: 'Resource', width: '260px' }]
58
67
  const isModalOpen = ref(false)
59
68
  const isContextMenuOpen = ref(false)
60
69
  const menuPos = ref({ x: 0, y: 0 })
@@ -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.136` | Core Nuxt module, UI toolkit, presets, and components | `npm install @katlux/toolkit@alpha` |
108
- | `@katlux/providers` | `0.1.1-alpha.123` | Core data providers, client caching, and state structures | `npm install @katlux/providers@alpha` |
109
- | `@katlux/preset-modern` | `0.1.1-alpha.111` | Modern design preset and styling variables | `npm install @katlux/preset-modern@alpha` |
110
- | `@katlux/preset-dark` | `0.1.1-alpha.42` | Sleek Dark Mode design preset | `npm install @katlux/preset-dark@alpha` |
111
- | `@katlux/block-charts` | `0.1.1-alpha.111` | Pre-built charting block components | `npm install @katlux/block-charts@alpha` |
112
- | `@katlux/block-ecommerce` | `0.1.1-alpha.111` | Pre-built eCommerce block components | `npm install @katlux/block-ecommerce@alpha` |
113
- | `@katlux/mcp` | `0.1.0-alpha.15` | Model Context Protocol server for AI assistant integration | `npm install @katlux/mcp@alpha` |
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` |
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.
@@ -7,6 +7,8 @@ description: Complete reference for the Katlux preset and theming system. Covers
7
7
 
8
8
  Katlux uses a unified **preset** system to allow full visual customization without forking components. Each component has a `*.global.vue` wrapper that delegates rendering to a preset-specific implementation via `usePresetComponent()`.
9
9
 
10
+ - [Step-by-step: Creating a Preset from Scratch](creating-a-preset.md)
11
+
10
12
  ## Unified Preset Architecture
11
13
 
12
14
  > [!IMPORTANT]