@ramathibodi/nuxt-commons 4.0.24 → 4.0.26

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 (111) hide show
  1. package/dist/module.json +2 -2
  2. package/dist/runtime/components/Calendar.d.vue.ts +18 -6
  3. package/dist/runtime/components/Calendar.vue +76 -15
  4. package/dist/runtime/components/Calendar.vue.d.ts +18 -6
  5. package/dist/runtime/components/ExportCSV.d.vue.ts +2 -2
  6. package/dist/runtime/components/ExportCSV.vue.d.ts +2 -2
  7. package/dist/runtime/components/FileBtn.d.vue.ts +4 -4
  8. package/dist/runtime/components/FileBtn.vue.d.ts +4 -4
  9. package/dist/runtime/components/ImportCSV.d.vue.ts +4 -4
  10. package/dist/runtime/components/ImportCSV.vue.d.ts +4 -4
  11. package/dist/runtime/components/SplitterPanel.d.vue.ts +3 -3
  12. package/dist/runtime/components/SplitterPanel.vue.d.ts +3 -3
  13. package/dist/runtime/components/TabsGroup.d.vue.ts +3 -3
  14. package/dist/runtime/components/TabsGroup.vue.d.ts +3 -3
  15. package/dist/runtime/components/device/IdCardButton.d.vue.ts +2 -2
  16. package/dist/runtime/components/device/IdCardButton.vue.d.ts +2 -2
  17. package/dist/runtime/components/dialog/Confirm.d.vue.ts +2 -2
  18. package/dist/runtime/components/dialog/Confirm.vue.d.ts +2 -2
  19. package/dist/runtime/components/dialog/ImportProgress.d.vue.ts +2 -2
  20. package/dist/runtime/components/dialog/ImportProgress.vue.d.ts +2 -2
  21. package/dist/runtime/components/dialog/Index.d.vue.ts +2 -2
  22. package/dist/runtime/components/dialog/Index.vue.d.ts +2 -2
  23. package/dist/runtime/components/dialog/Loading.d.vue.ts +2 -2
  24. package/dist/runtime/components/dialog/Loading.vue.d.ts +2 -2
  25. package/dist/runtime/components/dialog/default/Confirm.d.vue.ts +3 -3
  26. package/dist/runtime/components/dialog/default/Confirm.vue.d.ts +3 -3
  27. package/dist/runtime/components/dialog/default/Loading.d.vue.ts +3 -3
  28. package/dist/runtime/components/dialog/default/Loading.vue.d.ts +3 -3
  29. package/dist/runtime/components/dialog/default/Notify.d.vue.ts +1 -1
  30. package/dist/runtime/components/dialog/default/Notify.vue.d.ts +1 -1
  31. package/dist/runtime/components/dialog/default/Printing.d.vue.ts +2 -2
  32. package/dist/runtime/components/dialog/default/Printing.vue.d.ts +2 -2
  33. package/dist/runtime/components/dialog/default/VerifyUser.d.vue.ts +2 -2
  34. package/dist/runtime/components/dialog/default/VerifyUser.vue.d.ts +2 -2
  35. package/dist/runtime/components/document/TemplateBuilderLiveView.d.vue.ts +10 -10
  36. package/dist/runtime/components/document/TemplateBuilderLiveView.vue.d.ts +10 -10
  37. package/dist/runtime/components/document/TemplatePalette.d.vue.ts +2 -2
  38. package/dist/runtime/components/document/TemplatePalette.vue +11 -1
  39. package/dist/runtime/components/document/TemplatePalette.vue.d.ts +2 -2
  40. package/dist/runtime/components/form/ActionPad.d.vue.ts +9 -9
  41. package/dist/runtime/components/form/ActionPad.vue.d.ts +9 -9
  42. package/dist/runtime/components/form/Birthdate.d.vue.ts +1 -1
  43. package/dist/runtime/components/form/Birthdate.vue.d.ts +1 -1
  44. package/dist/runtime/components/form/CheckboxGroup.d.vue.ts +2 -2
  45. package/dist/runtime/components/form/CheckboxGroup.vue.d.ts +2 -2
  46. package/dist/runtime/components/form/CodeEditor.d.vue.ts +1 -1
  47. package/dist/runtime/components/form/CodeEditor.vue.d.ts +1 -1
  48. package/dist/runtime/components/form/Date.d.vue.ts +4 -4
  49. package/dist/runtime/components/form/Date.vue.d.ts +4 -4
  50. package/dist/runtime/components/form/DateTime.d.vue.ts +4 -4
  51. package/dist/runtime/components/form/DateTime.vue.d.ts +4 -4
  52. package/dist/runtime/components/form/Dialog.d.vue.ts +5 -5
  53. package/dist/runtime/components/form/Dialog.vue.d.ts +5 -5
  54. package/dist/runtime/components/form/EditPad.d.vue.ts +9 -9
  55. package/dist/runtime/components/form/EditPad.vue.d.ts +9 -9
  56. package/dist/runtime/components/form/File.d.vue.ts +4 -4
  57. package/dist/runtime/components/form/File.vue.d.ts +4 -4
  58. package/dist/runtime/components/form/Iterator.d.vue.ts +12 -12
  59. package/dist/runtime/components/form/Iterator.vue.d.ts +12 -12
  60. package/dist/runtime/components/form/Login.d.vue.ts +2 -2
  61. package/dist/runtime/components/form/Login.vue.d.ts +2 -2
  62. package/dist/runtime/components/form/Pad.d.vue.ts +5 -5
  63. package/dist/runtime/components/form/Pad.vue.d.ts +5 -5
  64. package/dist/runtime/components/form/SignPad.d.vue.ts +2 -2
  65. package/dist/runtime/components/form/SignPad.vue.d.ts +2 -2
  66. package/dist/runtime/components/form/System.d.vue.ts +2 -2
  67. package/dist/runtime/components/form/System.vue.d.ts +2 -2
  68. package/dist/runtime/components/form/Table.d.vue.ts +18 -18
  69. package/dist/runtime/components/form/Table.vue.d.ts +18 -18
  70. package/dist/runtime/components/form/TableData.d.vue.ts +9 -9
  71. package/dist/runtime/components/form/TableData.vue.d.ts +9 -9
  72. package/dist/runtime/components/form/Time.d.vue.ts +2 -2
  73. package/dist/runtime/components/form/Time.vue.d.ts +2 -2
  74. package/dist/runtime/components/form/images/Capture.d.vue.ts +2 -2
  75. package/dist/runtime/components/form/images/Capture.vue.d.ts +2 -2
  76. package/dist/runtime/components/label/Date.d.vue.ts +2 -2
  77. package/dist/runtime/components/label/Date.vue.d.ts +2 -2
  78. package/dist/runtime/components/label/Field.d.vue.ts +7 -5
  79. package/dist/runtime/components/label/Field.vue +4 -1
  80. package/dist/runtime/components/label/Field.vue.d.ts +7 -5
  81. package/dist/runtime/components/master/Autocomplete.d.vue.ts +2 -2
  82. package/dist/runtime/components/master/Autocomplete.vue.d.ts +2 -2
  83. package/dist/runtime/components/master/Combobox.d.vue.ts +2 -2
  84. package/dist/runtime/components/master/Combobox.vue.d.ts +2 -2
  85. package/dist/runtime/components/master/RadioGroup.d.vue.ts +2 -2
  86. package/dist/runtime/components/master/RadioGroup.vue.d.ts +2 -2
  87. package/dist/runtime/components/master/Select.d.vue.ts +2 -2
  88. package/dist/runtime/components/master/Select.vue.d.ts +2 -2
  89. package/dist/runtime/components/master/label.d.vue.ts +1 -1
  90. package/dist/runtime/components/master/label.vue.d.ts +1 -1
  91. package/dist/runtime/components/model/Autocomplete.d.vue.ts +2 -2
  92. package/dist/runtime/components/model/Autocomplete.vue.d.ts +2 -2
  93. package/dist/runtime/components/model/Combobox.d.vue.ts +2 -2
  94. package/dist/runtime/components/model/Combobox.vue.d.ts +2 -2
  95. package/dist/runtime/components/model/Pad.d.vue.ts +10 -10
  96. package/dist/runtime/components/model/Pad.vue.d.ts +10 -10
  97. package/dist/runtime/components/model/Select.d.vue.ts +2 -2
  98. package/dist/runtime/components/model/Select.vue.d.ts +2 -2
  99. package/dist/runtime/components/model/Table.d.vue.ts +21 -21
  100. package/dist/runtime/components/model/Table.vue.d.ts +21 -21
  101. package/dist/runtime/components/model/iterator.d.vue.ts +28 -28
  102. package/dist/runtime/components/model/iterator.vue.d.ts +28 -28
  103. package/dist/runtime/components/model/label.d.vue.ts +1 -1
  104. package/dist/runtime/components/model/label.vue.d.ts +1 -1
  105. package/dist/runtime/components/pdf/View.d.vue.ts +2 -2
  106. package/dist/runtime/components/pdf/View.vue.d.ts +2 -2
  107. package/dist/runtime/composables/document/template.js +3 -0
  108. package/dist/runtime/composables/document/templateInputTypes.js +3 -0
  109. package/dist/runtime/types/calendar.d.ts +11 -0
  110. package/dist/runtime/utils/datetime.d.ts +7 -7
  111. package/package.json +30 -30
@@ -45,7 +45,7 @@ interface Props extends /* @vue-ignore */ InstanceType<typeof VDataIterator['$pr
45
45
  */
46
46
  type __VLS_Props = Props & GraphqlModelProps;
47
47
  declare function openDialog(item?: object): void;
48
- declare var __VLS_15: {
48
+ declare var __VLS_14: {
49
49
  operation: {
50
50
  openDialog: typeof openDialog;
51
51
  createItem: ((item: Record<string, any>, callback?: import("../../types/formDialog.js").FormDialogCallback, importing?: boolean, idempotencySalt?: string | number) => Promise<void>) | ((item: Record<string, any>, callback?: import("../../types/formDialog.js").FormDialogCallback, importing?: boolean, idempotencySalt?: string | number) => Promise<any>);
@@ -98,7 +98,7 @@ declare var __VLS_15: {
98
98
  canDelete: boolean;
99
99
  autoRefresh: import("vue").Raw<import("../../composables/autoRefresh.js").UseAutoRefreshHandle>;
100
100
  };
101
- }, __VLS_62: {
101
+ }, __VLS_63: {
102
102
  item: any;
103
103
  operation: {
104
104
  openDialog: typeof openDialog;
@@ -115,10 +115,10 @@ declare var __VLS_15: {
115
115
  canDelete: boolean;
116
116
  autoRefresh: import("vue").Raw<import("../../composables/autoRefresh.js").UseAutoRefreshHandle>;
117
117
  };
118
- }, __VLS_65: {
118
+ }, __VLS_66: {
119
119
  color: string | undefined;
120
120
  isActive: boolean;
121
- }, __VLS_85: {}, __VLS_93: {
121
+ }, __VLS_87: {}, __VLS_95: {
122
122
  items: Record<string, any>[];
123
123
  operation: {
124
124
  openDialog: typeof openDialog;
@@ -154,9 +154,9 @@ declare var __VLS_15: {
154
154
  toggleGroup: ReturnType<typeof import("vuetify/lib/components/VDataTable/composables/group.mjs").provideGroupBy>["toggleGroup"];
155
155
  itemsCount: number;
156
156
  groupedItems: readonly (import("vuetify/lib/components/VDataIterator/composables/items.mjs").DataIteratorItem<Record<string, any>> | import("vuetify/lib/components/VDataTable/composables/group.mjs").Group<import("vuetify/lib/components/VDataIterator/composables/items.mjs").DataIteratorItem<Record<string, any>>> | import("vuetify/lib/components/VDataTable/composables/group.mjs").GroupSummary<import("vuetify/lib/components/VDataIterator/composables/items.mjs").DataIteratorItem<Record<string, any>>>)[];
157
- }, __VLS_119: {
157
+ }, __VLS_121: {
158
158
  reload: () => void;
159
- }, __VLS_129: {
159
+ }, __VLS_131: {
160
160
  enabled: import("vue").ComputedRef<boolean>;
161
161
  isActive: import("vue").ComputedRef<boolean>;
162
162
  isLoading: import("vue").ComputedRef<boolean>;
@@ -166,7 +166,7 @@ declare var __VLS_15: {
166
166
  togglePause: () => void;
167
167
  reset: () => void;
168
168
  reload: () => void | Promise<void>;
169
- }, __VLS_142: {
169
+ }, __VLS_144: {
170
170
  items: Record<string, any>[];
171
171
  operation: {
172
172
  openDialog: typeof openDialog;
@@ -183,7 +183,7 @@ declare var __VLS_15: {
183
183
  canDelete: boolean;
184
184
  autoRefresh: import("vue").Raw<import("../../composables/autoRefresh.js").UseAutoRefreshHandle>;
185
185
  };
186
- }, __VLS_155: {
186
+ }, __VLS_157: {
187
187
  items: Record<string, any>[];
188
188
  operation: {
189
189
  openDialog: typeof openDialog;
@@ -200,7 +200,7 @@ declare var __VLS_15: {
200
200
  canDelete: boolean;
201
201
  autoRefresh: import("vue").Raw<import("../../composables/autoRefresh.js").UseAutoRefreshHandle>;
202
202
  };
203
- }, __VLS_209: never, __VLS_210: {
203
+ }, __VLS_212: never, __VLS_213: {
204
204
  operation: {
205
205
  openDialog: typeof openDialog;
206
206
  createItem: ((item: Record<string, any>, callback?: import("../../types/formDialog.js").FormDialogCallback, importing?: boolean, idempotencySalt?: string | number) => Promise<void>) | ((item: Record<string, any>, callback?: import("../../types/formDialog.js").FormDialogCallback, importing?: boolean, idempotencySalt?: string | number) => Promise<any>);
@@ -216,7 +216,7 @@ declare var __VLS_15: {
216
216
  canDelete: boolean;
217
217
  autoRefresh: import("vue").Raw<import("../../composables/autoRefresh.js").UseAutoRefreshHandle>;
218
218
  };
219
- }, __VLS_235: never, __VLS_236: {
219
+ }, __VLS_239: never, __VLS_240: {
220
220
  operation: {
221
221
  openDialog: typeof openDialog;
222
222
  createItem: ((item: Record<string, any>, callback?: import("../../types/formDialog.js").FormDialogCallback, importing?: boolean, idempotencySalt?: string | number) => Promise<void>) | ((item: Record<string, any>, callback?: import("../../types/formDialog.js").FormDialogCallback, importing?: boolean, idempotencySalt?: string | number) => Promise<any>);
@@ -232,7 +232,7 @@ declare var __VLS_15: {
232
232
  canDelete: boolean;
233
233
  autoRefresh: import("vue").Raw<import("../../composables/autoRefresh.js").UseAutoRefreshHandle>;
234
234
  };
235
- }, __VLS_261: never, __VLS_262: {
235
+ }, __VLS_266: never, __VLS_267: {
236
236
  operation: {
237
237
  openDialog: typeof openDialog;
238
238
  createItem: ((item: Record<string, any>, callback?: import("../../types/formDialog.js").FormDialogCallback, importing?: boolean, idempotencySalt?: string | number) => Promise<void>) | ((item: Record<string, any>, callback?: import("../../types/formDialog.js").FormDialogCallback, importing?: boolean, idempotencySalt?: string | number) => Promise<any>);
@@ -248,7 +248,7 @@ declare var __VLS_15: {
248
248
  canDelete: boolean;
249
249
  autoRefresh: import("vue").Raw<import("../../composables/autoRefresh.js").UseAutoRefreshHandle>;
250
250
  };
251
- }, __VLS_330: any, __VLS_332: {
251
+ }, __VLS_335: any, __VLS_337: {
252
252
  isImporting: boolean;
253
253
  total: number;
254
254
  processed: number;
@@ -257,35 +257,35 @@ declare var __VLS_15: {
257
257
  percent: number;
258
258
  };
259
259
  type __VLS_Slots = {} & {
260
- [K in NonNullable<typeof __VLS_209>]?: (props: typeof __VLS_210) => any;
260
+ [K in NonNullable<typeof __VLS_212>]?: (props: typeof __VLS_213) => any;
261
261
  } & {
262
- [K in NonNullable<typeof __VLS_235>]?: (props: typeof __VLS_236) => any;
262
+ [K in NonNullable<typeof __VLS_239>]?: (props: typeof __VLS_240) => any;
263
263
  } & {
264
- [K in NonNullable<typeof __VLS_261>]?: (props: typeof __VLS_262) => any;
264
+ [K in NonNullable<typeof __VLS_266>]?: (props: typeof __VLS_267) => any;
265
265
  } & {
266
- default?: (props: typeof __VLS_15) => any;
266
+ default?: (props: typeof __VLS_14) => any;
267
267
  } & {
268
268
  item?: (props: typeof __VLS_35) => any;
269
269
  } & {
270
- item?: (props: typeof __VLS_62) => any;
270
+ item?: (props: typeof __VLS_63) => any;
271
271
  } & {
272
- loader?: (props: typeof __VLS_65) => any;
272
+ loader?: (props: typeof __VLS_66) => any;
273
273
  } & {
274
- loaderItem?: (props: typeof __VLS_85) => any;
274
+ loaderItem?: (props: typeof __VLS_87) => any;
275
275
  } & {
276
- header?: (props: typeof __VLS_93) => any;
276
+ header?: (props: typeof __VLS_95) => any;
277
277
  } & {
278
- title?: (props: typeof __VLS_119) => any;
278
+ title?: (props: typeof __VLS_121) => any;
279
279
  } & {
280
- autoRefreshControl?: (props: typeof __VLS_129) => any;
280
+ autoRefreshControl?: (props: typeof __VLS_131) => any;
281
281
  } & {
282
- search?: (props: typeof __VLS_142) => any;
282
+ search?: (props: typeof __VLS_144) => any;
283
283
  } & {
284
- toolbarItems?: (props: typeof __VLS_155) => any;
284
+ toolbarItems?: (props: typeof __VLS_157) => any;
285
285
  } & {
286
- form?: (props: typeof __VLS_330) => any;
286
+ form?: (props: typeof __VLS_335) => any;
287
287
  } & {
288
- importProgress?: (props: typeof __VLS_332) => any;
288
+ importProgress?: (props: typeof __VLS_337) => any;
289
289
  };
290
290
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
291
291
  noDataText: string;
@@ -433,7 +433,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
433
433
  declare const _default: typeof __VLS_export;
434
434
  export default _default;
435
435
  type __VLS_TypePropsToOption<T> = {
436
- [K in keyof T]-?: {} extends Pick<T, K> ? {
436
+ [K in keyof T & string]-?: {} extends Pick<T, K> ? {
437
437
  type: import('vue').PropType<Required<T>[K]>;
438
438
  } : {
439
439
  type: import('vue').PropType<T[K]>;
@@ -441,7 +441,7 @@ type __VLS_TypePropsToOption<T> = {
441
441
  };
442
442
  };
443
443
  type __VLS_WithDefaults<P, D> = {
444
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
444
+ [K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
445
445
  default: D[K];
446
446
  }> : P[K];
447
447
  };
@@ -15,7 +15,7 @@ type __VLS_Slots = {} & {
15
15
  default?: (props: typeof __VLS_1) => any;
16
16
  };
17
17
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
- cache: boolean | number;
18
+ cache: number | boolean;
19
19
  api: boolean;
20
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -15,7 +15,7 @@ type __VLS_Slots = {} & {
15
15
  default?: (props: typeof __VLS_1) => any;
16
16
  };
17
17
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
- cache: boolean | number;
18
+ cache: number | boolean;
19
19
  api: boolean;
20
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -33,7 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
33
33
  declare const _default: typeof __VLS_export;
34
34
  export default _default;
35
35
  type __VLS_TypePropsToOption<T> = {
36
- [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ [K in keyof T & string]-?: {} extends Pick<T, K> ? {
37
37
  type: import('vue').PropType<Required<T>[K]>;
38
38
  } : {
39
39
  type: import('vue').PropType<T[K]>;
@@ -41,7 +41,7 @@ type __VLS_TypePropsToOption<T> = {
41
41
  };
42
42
  };
43
43
  type __VLS_WithDefaults<P, D> = {
44
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
44
+ [K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
45
45
  default: D[K];
46
46
  }> : P[K];
47
47
  };
@@ -33,7 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
33
33
  declare const _default: typeof __VLS_export;
34
34
  export default _default;
35
35
  type __VLS_TypePropsToOption<T> = {
36
- [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ [K in keyof T & string]-?: {} extends Pick<T, K> ? {
37
37
  type: import('vue').PropType<Required<T>[K]>;
38
38
  } : {
39
39
  type: import('vue').PropType<T[K]>;
@@ -41,7 +41,7 @@ type __VLS_TypePropsToOption<T> = {
41
41
  };
42
42
  };
43
43
  type __VLS_WithDefaults<P, D> = {
44
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
44
+ [K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
45
45
  default: D[K];
46
46
  }> : P[K];
47
47
  };
@@ -78,6 +78,9 @@ export function templateItemToString(inputItem, parentTemplates, dataVariable =
78
78
  case "Separator":
79
79
  templateString = `</v-row><v-row density='compact'${item.customClass ? ` class="${item.customClass}"` : ""}${item.customStyle ? ` class="${item.customStyle}"` : ""}>`;
80
80
  break;
81
+ case "LabelField":
82
+ templateString = `<LabelField v-model="${dataVariable}.${item.variableName || ""}" label="${item.inputLabel || item.variableName || ""}"${item.inputAttributes ? " " + item.inputAttributes : ""}/>`;
83
+ break;
81
84
  case "Header":
82
85
  templateString = `<div class="${optionString || "text-h4 font-weight-medium"}">${item.inputLabel || item.variableName || ""}</div>`;
83
86
  break;
@@ -19,6 +19,9 @@ export const BUILT_IN_DOCUMENT_TEMPLATE_INPUT_TYPES = Object.freeze([
19
19
  { label: "Signature Pad", value: "FormSignPad" },
20
20
  { label: "Table", value: "FormTable", requiresOptions: true, hasSpecificOptionEditor: true },
21
21
  { label: "Table Data", value: "FormTableData", requiresOptions: true, hasSpecificOptionEditor: true },
22
+ // Read-only display of a bound value. Rendered by a dedicated arm in
23
+ // `template.ts` so the default `variant` / `:active` never reach LabelField's card.
24
+ { label: "Label Field", value: "LabelField", showsOptions: false, hidesValidationRules: true },
22
25
  {
23
26
  label: "[Decoration] Header",
24
27
  value: "Header",
@@ -16,6 +16,17 @@ export interface CalendarEvent {
16
16
  extendedProps?: Record<string, any> | null
17
17
  }
18
18
 
19
+ /** A drag (`move`) or edge-drag (`resize`) the user finished on an editable calendar. */
20
+ export interface CalendarEventChange {
21
+ kind: 'move' | 'resize'
22
+ /** The event with its new start/end. */
23
+ event: CalendarEvent
24
+ /** The event as it was before the gesture. */
25
+ oldEvent: CalendarEvent
26
+ /** Puts the event back where it was, e.g. when saving the change fails. */
27
+ revert: () => void
28
+ }
29
+
19
30
  export interface CalendarRange { start: Date, end: Date }
20
31
 
21
32
  export interface CalendarToolbar {
@@ -1,4 +1,4 @@
1
- import { type DateObjectUnits, DateTime, type DateTimeFormatOptions, type DateTimeMaybeValid } from 'luxon';
1
+ import { type DateObjectUnits, type DateTimeFormatOptions, type DateTimeMaybeValid } from 'luxon';
2
2
  export type supportedLocale = 'EN' | 'TH';
3
3
  export type dateFormat = 'tinyDate' | 'monthShortDate' | 'shortDate' | 'longDate';
4
4
  export type dateTimeFormat = 'tinyDateTime' | 'shortDateTime' | 'longDateTime';
@@ -10,7 +10,7 @@ export declare const Datetime: () => {
10
10
  fromStringTime: (time: string | null, formatTime?: string, locale?: supportedLocale) => /*elided*/ any;
11
11
  fromISO: (dateTime: string, locale?: supportedLocale) => /*elided*/ any;
12
12
  fromObject: (dateTime: DateObjectUnits, locale?: supportedLocale) => /*elided*/ any;
13
- setDateTime: (inputDate: DateTime, locale?: supportedLocale) => /*elided*/ any;
13
+ setDateTime: (inputDate: DateTimeMaybeValid, locale?: supportedLocale) => /*elided*/ any;
14
14
  toFormat: (format: string, locale?: supportedLocale) => string;
15
15
  toISO: () => string | null;
16
16
  toLocaleFormat: (locale: supportedLocale, format: DateTimeFormatOptions) => string;
@@ -36,7 +36,7 @@ export declare const Datetime: () => {
36
36
  fromStringTime: /*elided*/ any;
37
37
  fromISO: (dateTime: string, locale?: supportedLocale) => /*elided*/ any;
38
38
  fromObject: (dateTime: DateObjectUnits, locale?: supportedLocale) => /*elided*/ any;
39
- setDateTime: (inputDate: DateTime, locale?: supportedLocale) => /*elided*/ any;
39
+ setDateTime: (inputDate: DateTimeMaybeValid, locale?: supportedLocale) => /*elided*/ any;
40
40
  toFormat: (format: string, locale?: supportedLocale) => string;
41
41
  toISO: () => string | null;
42
42
  toLocaleFormat: (locale: supportedLocale, format: DateTimeFormatOptions) => string;
@@ -62,7 +62,7 @@ export declare const Datetime: () => {
62
62
  fromStringTime: (time: string | null, formatTime?: string, locale?: supportedLocale) => /*elided*/ any;
63
63
  fromISO: /*elided*/ any;
64
64
  fromObject: (dateTime: DateObjectUnits, locale?: supportedLocale) => /*elided*/ any;
65
- setDateTime: (inputDate: DateTime, locale?: supportedLocale) => /*elided*/ any;
65
+ setDateTime: (inputDate: DateTimeMaybeValid, locale?: supportedLocale) => /*elided*/ any;
66
66
  toFormat: (format: string, locale?: supportedLocale) => string;
67
67
  toISO: () => string | null;
68
68
  toLocaleFormat: (locale: supportedLocale, format: DateTimeFormatOptions) => string;
@@ -88,7 +88,7 @@ export declare const Datetime: () => {
88
88
  fromStringTime: (time: string | null, formatTime?: string, locale?: supportedLocale) => /*elided*/ any;
89
89
  fromISO: (dateTime: string, locale?: supportedLocale) => /*elided*/ any;
90
90
  fromObject: /*elided*/ any;
91
- setDateTime: (inputDate: DateTime, locale?: supportedLocale) => /*elided*/ any;
91
+ setDateTime: (inputDate: DateTimeMaybeValid, locale?: supportedLocale) => /*elided*/ any;
92
92
  toFormat: (format: string, locale?: supportedLocale) => string;
93
93
  toISO: () => string | null;
94
94
  toLocaleFormat: (locale: supportedLocale, format: DateTimeFormatOptions) => string;
@@ -108,7 +108,7 @@ export declare const Datetime: () => {
108
108
  isHappenDate: () => boolean;
109
109
  now: () => /*elided*/ any;
110
110
  };
111
- setDateTime: (inputDate: DateTime, locale?: supportedLocale) => {
111
+ setDateTime: (inputDate: DateTimeMaybeValid, locale?: supportedLocale) => {
112
112
  luxonDateTime: DateTimeMaybeValid;
113
113
  fromString: (dateTime: string | null, formatDate?: string, locale?: supportedLocale) => /*elided*/ any;
114
114
  fromStringTime: (time: string | null, formatTime?: string, locale?: supportedLocale) => /*elided*/ any;
@@ -157,7 +157,7 @@ export declare const Datetime: () => {
157
157
  fromStringTime: (time: string | null, formatTime?: string, locale?: supportedLocale) => /*elided*/ any;
158
158
  fromISO: (dateTime: string, locale?: supportedLocale) => /*elided*/ any;
159
159
  fromObject: (dateTime: DateObjectUnits, locale?: supportedLocale) => /*elided*/ any;
160
- setDateTime: (inputDate: DateTime, locale?: supportedLocale) => /*elided*/ any;
160
+ setDateTime: (inputDate: DateTimeMaybeValid, locale?: supportedLocale) => /*elided*/ any;
161
161
  toFormat: (format: string, locale?: supportedLocale) => string;
162
162
  toISO: () => string | null;
163
163
  toLocaleFormat: (locale: supportedLocale, format: DateTimeFormatOptions) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramathibodi/nuxt-commons",
3
- "version": "4.0.24",
3
+ "version": "4.0.26",
4
4
  "description": "Ramathibodi Nuxt modules for common components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -67,44 +67,44 @@
67
67
  "nuxt": "^4.3.1"
68
68
  },
69
69
  "dependencies": {
70
- "@codemirror/lang-html": "^6.4.11",
70
+ "@codemirror/lang-html": "^6.4.12",
71
71
  "@codemirror/lang-javascript": "^6.2.5",
72
72
  "@codemirror/lang-vue": "^0.1.3",
73
73
  "@codemirror/theme-one-dark": "^6.1.3",
74
74
  "@fortawesome/fontawesome-free": "^6.7.2",
75
75
  "@fullcalendar/vue3": "^7.1.0",
76
76
  "@graphql-codegen/add": "^5.0.3",
77
- "@graphql-codegen/cli": "^6.1.3",
78
- "@graphql-codegen/plugin-helpers": "^6.1.1",
79
- "@graphql-codegen/typescript": "^5.0.9",
77
+ "@graphql-codegen/cli": "^6.3.1",
78
+ "@graphql-codegen/plugin-helpers": "^6.3.0",
79
+ "@graphql-codegen/typescript": "^5.0.10",
80
80
  "@mdi/font": "^7.4.47",
81
81
  "@nuxt/kit": "^4.3.1",
82
82
  "@techstark/opencv-js": "4.11.0-release.1",
83
- "@thumbmarkjs/thumbmarkjs": "^1.7.4",
83
+ "@thumbmarkjs/thumbmarkjs": "^1.12.0",
84
84
  "@vue/apollo-composable": "^4.2.2",
85
85
  "@vuepic/vue-datepicker": "^12.1.0",
86
- "@vueuse/integrations": "^14.2.1",
86
+ "@vueuse/integrations": "^14.4.0",
87
87
  "@zxing/browser": "^0.1.5",
88
- "cropperjs": "^1.6.2",
88
+ "cropperjs": "^1.6.3",
89
89
  "currency.js": "^2.0.4",
90
90
  "exif-rotate-js": "^1.5.0",
91
- "fuse.js": "^7.1.0",
91
+ "fuse.js": "^7.5.0",
92
92
  "gql-query-builder": "^3.8.0",
93
- "graphql": "^16.13.1",
93
+ "graphql": "^16.14.2",
94
94
  "localstorage-slim": "^2.7.1",
95
- "lodash": "4.17.23",
95
+ "lodash": "4.18.1",
96
96
  "lodash-es": "^4.17.23",
97
97
  "luxon": "^3.7.2",
98
98
  "maska": "^2.1.11",
99
99
  "p-limit": "^6.2.0",
100
100
  "painterro": "^1.2.92",
101
101
  "pdf-vue3": "^1.0.12",
102
- "prettier": "3.3.2",
102
+ "prettier": "3.9.9",
103
103
  "print-js": "^1.6.0",
104
104
  "temporal-polyfill": "^1.0.5",
105
105
  "tesseract.js": "^6.0.1",
106
106
  "uid": "^2.0.2",
107
- "vue": "^3.5.30",
107
+ "vue": "^3.5.43",
108
108
  "vue-codemirror": "^6.1.1",
109
109
  "vue-json-pretty": "^2.6.0",
110
110
  "vue-signature-pad": "^3.0.2",
@@ -112,28 +112,28 @@
112
112
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
113
113
  },
114
114
  "devDependencies": {
115
- "@nuxt/devtools": "^3.2.3",
116
- "@nuxt/eslint-config": "^1.15.2",
117
- "@nuxt/module-builder": "^1.0.2",
118
- "@nuxt/schema": "^4.3.1",
119
- "@nuxt/test-utils": "^4.0.0",
115
+ "@nuxt/devtools": "^3.4.2",
116
+ "@nuxt/eslint-config": "^1.17.0",
117
+ "@nuxt/module-builder": "^1.0.3",
118
+ "@nuxt/schema": "^4.5.2",
119
+ "@nuxt/test-utils": "^4.3.2",
120
120
  "@types/crypto-js": "^4.2.2",
121
- "@types/lodash": "^4.17.24",
121
+ "@types/lodash": "^4.17.25",
122
122
  "@types/lodash-es": "^4.17.12",
123
- "@types/luxon": "^3.7.1",
123
+ "@types/luxon": "^3.7.6",
124
124
  "@types/node": "latest",
125
- "@vue/test-utils": "^2.4.6",
126
- "@vueuse/core": "^14.2.1",
127
- "@vueuse/nuxt": "^14.2.1",
125
+ "@vue/test-utils": "^2.5.1",
126
+ "@vueuse/core": "^14.4.0",
127
+ "@vueuse/nuxt": "^14.4.0",
128
128
  "changelogen": "^0.6.2",
129
- "eslint": "^10.0.3",
130
- "happy-dom": "^20.8.9",
131
- "nuxt": "^4.3.1",
132
- "sass": "^1.97.3",
133
- "typedoc": "^0.28.17",
129
+ "eslint": "^10.11.0",
130
+ "happy-dom": "^20.14.5",
131
+ "nuxt": "^4.5.2",
132
+ "sass": "^1.105.1",
133
+ "typedoc": "^0.28.20",
134
134
  "typescript": "^5.9.3",
135
- "vitest": "^4.0.18",
135
+ "vitest": "^4.1.11",
136
136
  "vue-docgen-cli": "^4.79.0",
137
- "vue-tsc": "^3.2.5"
137
+ "vue-tsc": "^3.3.11"
138
138
  }
139
139
  }