@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
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.137",
4
+ "version": "0.1.1-alpha.139",
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
- multiOpen: boolean;
31
30
  modelValue: string | number | string[] | number[];
31
+ multiOpen: boolean;
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
- multiOpen: boolean;
31
30
  modelValue: string | number | string[] | number[];
31
+ multiOpen: boolean;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
33
33
  declare const _default: typeof __VLS_export;
34
34
  export default _default;
@@ -55,7 +55,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
55
55
  onClick?: (() => any) | undefined;
56
56
  }>, {
57
57
  size: "small" | "large" | "medium" | undefined;
58
- type: "default" | "primary" | "danger" | "success" | "warning" | "info" | "light" | "dark" | undefined;
58
+ type: "default" | "info" | "success" | "warning" | "danger" | "primary" | "light" | "dark" | undefined;
59
59
  iconOnly: boolean;
60
60
  disabled: boolean;
61
61
  href: string;
@@ -55,7 +55,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
55
55
  onClick?: (() => any) | undefined;
56
56
  }>, {
57
57
  size: "small" | "large" | "medium" | undefined;
58
- type: "default" | "primary" | "danger" | "success" | "warning" | "info" | "light" | "dark" | undefined;
58
+ type: "default" | "info" | "success" | "warning" | "danger" | "primary" | "light" | "dark" | undefined;
59
59
  iconOnly: boolean;
60
60
  disabled: boolean;
61
61
  href: string;
@@ -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<("small" | "default" | "primary" | "danger" | "success" | "warning" | "info" | "light" | "dark" | "large" | "medium" | {
26
+ buttonClasses: import("vue").ComputedRef<("default" | "info" | "success" | "warning" | "danger" | "small" | "primary" | "light" | "dark" | "large" | "medium" | {
27
27
  disabled: boolean | undefined;
28
28
  'icon-only': boolean | undefined;
29
29
  })[]>;
@@ -77,11 +77,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
77
77
  }>, {
78
78
  label: string;
79
79
  disabled: boolean;
80
- value: any;
81
- validation: "error" | "success" | "warning" | null | undefined;
80
+ validation: "success" | "warning" | "error" | null | undefined;
82
81
  validationText: string;
83
82
  idKey: string;
84
83
  indeterminate: boolean;
84
+ value: any;
85
85
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
86
86
  declare const _default: typeof __VLS_export;
87
87
  export default _default;
@@ -77,11 +77,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
77
77
  }>, {
78
78
  label: string;
79
79
  disabled: boolean;
80
- value: any;
81
- validation: "error" | "success" | "warning" | null | undefined;
80
+ validation: "success" | "warning" | "error" | null | undefined;
82
81
  validationText: string;
83
82
  idKey: string;
84
83
  indeterminate: boolean;
84
+ value: any;
85
85
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
86
86
  declare const _default: typeof __VLS_export;
87
87
  export default _default;
@@ -225,7 +225,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
225
225
  modelValue: any;
226
226
  label: string;
227
227
  disabled: boolean;
228
- validation: "error" | "success" | "warning" | null | undefined;
228
+ validation: "success" | "warning" | "error" | null | undefined;
229
+ validationText: string;
229
230
  searchbox: boolean;
230
231
  searchtext: string;
231
232
  searchPlaceholder: string;
@@ -236,7 +237,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
236
237
  placeholder: string;
237
238
  teleportTo: string;
238
239
  fullWidth: boolean;
239
- validationText: string;
240
240
  maxHeight: number;
241
241
  closeOnSelect: boolean;
242
242
  multiSelect: boolean;
@@ -225,7 +225,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
225
225
  modelValue: any;
226
226
  label: string;
227
227
  disabled: boolean;
228
- validation: "error" | "success" | "warning" | null | undefined;
228
+ validation: "success" | "warning" | "error" | null | undefined;
229
+ validationText: string;
229
230
  searchbox: boolean;
230
231
  searchtext: string;
231
232
  searchPlaceholder: string;
@@ -236,7 +237,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
236
237
  placeholder: string;
237
238
  teleportTo: string;
238
239
  fullWidth: boolean;
239
- validationText: string;
240
240
  maxHeight: number;
241
241
  closeOnSelect: boolean;
242
242
  multiSelect: boolean;
@@ -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: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
8
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
9
9
  default: null;
10
10
  };
11
11
  inputValue: {
12
- type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
12
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
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: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
102
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
103
103
  default: null;
104
104
  };
105
105
  inputValue: {
106
- type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
106
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
107
107
  default: string;
108
108
  };
109
109
  modelValue: {
@@ -191,15 +191,15 @@ 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: "error" | "success" | "warning" | null | undefined;
194
+ validation: "success" | "warning" | "error" | null | undefined;
195
+ validationText: string;
195
196
  searchbox: boolean;
196
197
  labelField: string;
197
198
  placeholder: string;
198
199
  teleportTo: string;
199
- validationText: string;
200
200
  mask: string;
201
201
  valueField: string;
202
- inputType: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
202
+ inputType: "number" | "url" | "search" | "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: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
8
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
9
9
  default: null;
10
10
  };
11
11
  inputValue: {
12
- type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
12
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
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: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
102
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
103
103
  default: null;
104
104
  };
105
105
  inputValue: {
106
- type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
106
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
107
107
  default: string;
108
108
  };
109
109
  modelValue: {
@@ -191,15 +191,15 @@ 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: "error" | "success" | "warning" | null | undefined;
194
+ validation: "success" | "warning" | "error" | null | undefined;
195
+ validationText: string;
195
196
  searchbox: boolean;
196
197
  labelField: string;
197
198
  placeholder: string;
198
199
  teleportTo: string;
199
- validationText: string;
200
200
  mask: string;
201
201
  valueField: string;
202
- inputType: "number" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
202
+ inputType: "number" | "url" | "search" | "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: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
76
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
77
77
  default: null;
78
78
  };
79
79
  inputValue: {
80
- type: (StringConstructor | NumberConstructor | ArrayConstructor | ObjectConstructor)[];
80
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
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" | "search" | "url" | "text" | "password" | "email" | "tel" | undefined;
179
+ type: "number" | "url" | "search" | "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
- change: (value: string | Date) => any;
59
58
  blur: (event: FocusEvent) => any;
59
+ change: (value: string | Date) => 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
- onChange?: ((value: string | Date) => any) | undefined;
121
120
  onBlur?: ((event: FocusEvent) => any) | undefined;
121
+ onChange?: ((value: string | Date) => 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,10 +130,10 @@ 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: "error" | "success" | "warning" | null | undefined;
133
+ validation: "success" | "warning" | "error" | null | undefined;
134
+ validationText: string;
134
135
  placeholder: string;
135
136
  teleportTo: string;
136
- validationText: string;
137
137
  showClear: boolean;
138
138
  align: "left" | "right" | undefined;
139
139
  format: string;
@@ -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
- change: (value: string | Date) => any;
59
58
  blur: (event: FocusEvent) => any;
59
+ change: (value: string | Date) => 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
- onChange?: ((value: string | Date) => any) | undefined;
121
120
  onBlur?: ((event: FocusEvent) => any) | undefined;
121
+ onChange?: ((value: string | Date) => 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,10 +130,10 @@ 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: "error" | "success" | "warning" | null | undefined;
133
+ validation: "success" | "warning" | "error" | null | undefined;
134
+ validationText: string;
134
135
  placeholder: string;
135
136
  teleportTo: string;
136
- validationText: string;
137
137
  showClear: boolean;
138
138
  align: "left" | "right" | undefined;
139
139
  format: string;
@@ -132,10 +132,10 @@ 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: "error" | "success" | "warning" | null | undefined;
135
+ validation: "success" | "warning" | "error" | null | undefined;
136
+ validationText: string;
136
137
  placeholder: string;
137
138
  teleportTo: string;
138
- validationText: string;
139
139
  showClear: boolean;
140
140
  format: string;
141
141
  timeFormat: string;
@@ -132,10 +132,10 @@ 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: "error" | "success" | "warning" | null | undefined;
135
+ validation: "success" | "warning" | "error" | null | undefined;
136
+ validationText: string;
136
137
  placeholder: string;
137
138
  teleportTo: string;
138
- validationText: string;
139
139
  showClear: boolean;
140
140
  format: string;
141
141
  timeFormat: string;
@@ -59,6 +59,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
59
59
  type: StringConstructor;
60
60
  default: string;
61
61
  };
62
+ inclusiveEndDate: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
62
66
  cellSlots: {
63
67
  type: ObjectConstructor;
64
68
  default: () => {};
@@ -94,6 +98,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
94
98
  "task-contextmenu": (...args: any[]) => void;
95
99
  "task-rightclick": (...args: any[]) => void;
96
100
  "update:task": (...args: any[]) => void;
101
+ "task-change": (...args: any[]) => void;
97
102
  "update:startingPoint": (...args: any[]) => void;
98
103
  "update:endingPoint": (...args: any[]) => void;
99
104
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -157,6 +162,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
157
162
  type: StringConstructor;
158
163
  default: string;
159
164
  };
165
+ inclusiveEndDate: {
166
+ type: BooleanConstructor;
167
+ default: boolean;
168
+ };
160
169
  cellSlots: {
161
170
  type: ObjectConstructor;
162
171
  default: () => {};
@@ -189,6 +198,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
189
198
  "onTask-contextmenu"?: ((...args: any[]) => any) | undefined;
190
199
  "onTask-rightclick"?: ((...args: any[]) => any) | undefined;
191
200
  "onUpdate:task"?: ((...args: any[]) => any) | undefined;
201
+ "onTask-change"?: ((...args: any[]) => any) | undefined;
192
202
  "onUpdate:startingPoint"?: ((...args: any[]) => any) | undefined;
193
203
  "onUpdate:endingPoint"?: ((...args: any[]) => any) | undefined;
194
204
  }>, {
@@ -209,6 +219,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
209
219
  treeColumnIndex: number;
210
220
  taskTypeField: string;
211
221
  endingPoint: string | number | Date;
222
+ inclusiveEndDate: boolean;
212
223
  startingPoint: string | number | Date;
213
224
  taskMapping: Record<string, any>;
214
225
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -19,6 +19,7 @@ const emit = defineEmits([
19
19
  "update:startingPoint",
20
20
  "update:endingPoint",
21
21
  "update:task",
22
+ "task-change",
22
23
  "update:selectedRows",
23
24
  "update:selectAll",
24
25
  "task-click",
@@ -64,6 +65,7 @@ const templateProps = computed(() => ({
64
65
  startingPoint: props.startingPoint,
65
66
  endingPoint: props.endingPoint,
66
67
  mode: props.mode,
68
+ inclusiveEndDate: props.inclusiveEndDate,
67
69
  moveTime,
68
70
  zoom,
69
71
  selectedRows: selectedRows.value,
@@ -81,6 +83,7 @@ component(
81
83
  :is="presetComponent"
82
84
  v-bind="templateProps"
83
85
  @update:task="$emit('update:task', $event)"
86
+ @task-change="$emit('task-change', $event)"
84
87
  @update:selectedRows="$emit('update:selectedRows', $event)"
85
88
  @update:selectAll="$emit('update:selectAll', $event)"
86
89
  @task-click="$emit('task-click', $event)"
@@ -59,6 +59,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
59
59
  type: StringConstructor;
60
60
  default: string;
61
61
  };
62
+ inclusiveEndDate: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
62
66
  cellSlots: {
63
67
  type: ObjectConstructor;
64
68
  default: () => {};
@@ -94,6 +98,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
94
98
  "task-contextmenu": (...args: any[]) => void;
95
99
  "task-rightclick": (...args: any[]) => void;
96
100
  "update:task": (...args: any[]) => void;
101
+ "task-change": (...args: any[]) => void;
97
102
  "update:startingPoint": (...args: any[]) => void;
98
103
  "update:endingPoint": (...args: any[]) => void;
99
104
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -157,6 +162,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
157
162
  type: StringConstructor;
158
163
  default: string;
159
164
  };
165
+ inclusiveEndDate: {
166
+ type: BooleanConstructor;
167
+ default: boolean;
168
+ };
160
169
  cellSlots: {
161
170
  type: ObjectConstructor;
162
171
  default: () => {};
@@ -189,6 +198,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
189
198
  "onTask-contextmenu"?: ((...args: any[]) => any) | undefined;
190
199
  "onTask-rightclick"?: ((...args: any[]) => any) | undefined;
191
200
  "onUpdate:task"?: ((...args: any[]) => any) | undefined;
201
+ "onTask-change"?: ((...args: any[]) => any) | undefined;
192
202
  "onUpdate:startingPoint"?: ((...args: any[]) => any) | undefined;
193
203
  "onUpdate:endingPoint"?: ((...args: any[]) => any) | undefined;
194
204
  }>, {
@@ -209,6 +219,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
209
219
  treeColumnIndex: number;
210
220
  taskTypeField: string;
211
221
  endingPoint: string | number | Date;
222
+ inclusiveEndDate: boolean;
212
223
  startingPoint: string | number | Date;
213
224
  taskMapping: Record<string, any>;
214
225
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -58,6 +58,8 @@ export interface KGanttProps {
58
58
  taskTypeField?: string;
59
59
  /** 'date' (Standard calendar) or 'numeric' (Plain numbers) */
60
60
  mode?: 'date' | 'numeric';
61
+ /** When true in date mode, date-only string end dates span the full day (+24h) and single-day tasks remain visible */
62
+ inclusiveEndDate?: boolean;
61
63
  virtualScroll?: boolean;
62
64
  itemHeight?: number;
63
65
  viewportHeight?: number;
@@ -124,6 +126,10 @@ export declare const KGanttDefaultProps: {
124
126
  type: StringConstructor;
125
127
  default: string;
126
128
  };
129
+ inclusiveEndDate: {
130
+ type: BooleanConstructor;
131
+ default: boolean;
132
+ };
127
133
  cellSlots: {
128
134
  type: ObjectConstructor;
129
135
  default: () => {};
@@ -207,4 +213,4 @@ export declare function getGanttMarkers(start: number, end: number, mode?: 'date
207
213
  */
208
214
  export declare function calculateGanttMinWidth(startMs: number, endMs: number, minMarkerWidth?: number, mode?: 'date' | 'numeric'): string;
209
215
  export declare function getSnapMs(snapTo: string): number;
210
- export declare function isTaskOverlapping(task: any, tasks: any[], startDateField: string, endDateField: string): boolean;
216
+ export declare function isTaskOverlapping(task: any, tasks: any[], startDateField: string, endDateField: string, inclusiveEndDate?: boolean): boolean;
@@ -70,6 +70,10 @@ export const KGanttDefaultProps = {
70
70
  default: "date"
71
71
  // 'date' | 'numeric'
72
72
  },
73
+ inclusiveEndDate: {
74
+ type: Boolean,
75
+ default: true
76
+ },
73
77
  cellSlots: {
74
78
  type: Object,
75
79
  default: () => ({})
@@ -128,8 +132,15 @@ export function useKGanttLogic(props) {
128
132
  const getTaskStyle = (task) => {
129
133
  const m = resolvedMapping.value;
130
134
  const isDate = props.mode === "date";
131
- const startMs = isDate ? new Date(task[m.startDate]).getTime() : Number(task[m.startDate]);
132
- const endMs = isDate ? new Date(task[m.endDate]).getTime() : Number(task[m.endDate]);
135
+ const rawStart = task[m.startDate];
136
+ const rawEnd = task[m.endDate];
137
+ const startMs = isDate ? new Date(rawStart).getTime() : Number(rawStart);
138
+ let endMs = isDate ? new Date(rawEnd).getTime() : Number(rawEnd);
139
+ const isDateOnly = typeof rawEnd === "string" && /^\d{4}-\d{2}-\d{2}$/.test(rawEnd);
140
+ const inclusive = props.inclusiveEndDate !== false;
141
+ if (isDate && inclusive && (isDateOnly || endMs === startMs)) {
142
+ endMs += 24 * 60 * 60 * 1e3;
143
+ }
133
144
  const rangeStart = globalDateRange.value.start;
134
145
  const totalMs = totalDuration.value;
135
146
  if (totalMs <= 0) return { display: "none" };
@@ -310,13 +321,21 @@ export function getSnapMs(snapTo) {
310
321
  return 1;
311
322
  }
312
323
  }
313
- export function isTaskOverlapping(task, tasks, startDateField, endDateField) {
314
- const tStart = new Date(task[startDateField]).getTime();
315
- const tEnd = new Date(task[endDateField]).getTime();
324
+ export function isTaskOverlapping(task, tasks, startDateField, endDateField, inclusiveEndDate = false) {
325
+ const isDateOnly = (val) => typeof val === "string" && /^\d{4}-\d{2}-\d{2}$/.test(val);
326
+ const getMs = (val, isEnd) => {
327
+ const ms = new Date(val).getTime();
328
+ if (inclusiveEndDate && isEnd && isDateOnly(val)) {
329
+ return ms + 24 * 60 * 60 * 1e3;
330
+ }
331
+ return ms;
332
+ };
333
+ const tStart = getMs(task[startDateField], false);
334
+ const tEnd = getMs(task[endDateField], true);
316
335
  return tasks.some((other) => {
317
336
  if (other.id === task.id) return false;
318
- const oStart = new Date(other[startDateField]).getTime();
319
- const oEnd = new Date(other[endDateField]).getTime();
337
+ const oStart = getMs(other[startDateField], false);
338
+ const oEnd = getMs(other[endDateField], true);
320
339
  return tStart < oEnd && tEnd > oStart;
321
340
  });
322
341
  }
@@ -110,9 +110,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
110
110
  isOpen: boolean;
111
111
  label: string;
112
112
  disabled: boolean;
113
- validation: "error" | "success" | "warning" | null | undefined;
114
- placeholder: string;
113
+ validation: "success" | "warning" | "error" | null | undefined;
115
114
  validationText: string;
115
+ placeholder: string;
116
116
  showClear: boolean;
117
117
  format: string;
118
118
  step: number;
@@ -110,9 +110,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
110
110
  isOpen: boolean;
111
111
  label: string;
112
112
  disabled: boolean;
113
- validation: "error" | "success" | "warning" | null | undefined;
114
- placeholder: string;
113
+ validation: "success" | "warning" | "error" | null | undefined;
115
114
  validationText: string;
115
+ placeholder: string;
116
116
  showClear: boolean;
117
117
  format: string;
118
118
  step: number;
@@ -66,9 +66,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
66
66
  }>, {
67
67
  modelValue: string;
68
68
  label: string;
69
- validation: "error" | "success" | "warning" | null | undefined;
70
- placeholder: string;
69
+ validation: "success" | "warning" | "error" | null | undefined;
71
70
  validationText: string;
71
+ placeholder: string;
72
72
  showClear: boolean;
73
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
74
74
  declare const _default: typeof __VLS_export;
@@ -66,9 +66,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
66
66
  }>, {
67
67
  modelValue: string;
68
68
  label: string;
69
- validation: "error" | "success" | "warning" | null | undefined;
70
- placeholder: string;
69
+ validation: "success" | "warning" | "error" | null | undefined;
71
70
  validationText: string;
71
+ placeholder: string;
72
72
  showClear: boolean;
73
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
74
74
  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: "error" | "success" | "warning" | null | undefined;
54
+ validation: "success" | "warning" | "error" | 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: "error" | "success" | "warning" | null | undefined;
54
+ validation: "success" | "warning" | "error" | null | undefined;
55
55
  validationText: string;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
57
57
  declare const _default: typeof __VLS_export;
@@ -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;