@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.
- package/dist/module.json +2 -2
- package/dist/runtime/components/Calendar.d.vue.ts +18 -6
- package/dist/runtime/components/Calendar.vue +76 -15
- package/dist/runtime/components/Calendar.vue.d.ts +18 -6
- package/dist/runtime/components/ExportCSV.d.vue.ts +2 -2
- package/dist/runtime/components/ExportCSV.vue.d.ts +2 -2
- package/dist/runtime/components/FileBtn.d.vue.ts +4 -4
- package/dist/runtime/components/FileBtn.vue.d.ts +4 -4
- package/dist/runtime/components/ImportCSV.d.vue.ts +4 -4
- package/dist/runtime/components/ImportCSV.vue.d.ts +4 -4
- package/dist/runtime/components/SplitterPanel.d.vue.ts +3 -3
- package/dist/runtime/components/SplitterPanel.vue.d.ts +3 -3
- package/dist/runtime/components/TabsGroup.d.vue.ts +3 -3
- package/dist/runtime/components/TabsGroup.vue.d.ts +3 -3
- package/dist/runtime/components/device/IdCardButton.d.vue.ts +2 -2
- package/dist/runtime/components/device/IdCardButton.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/Confirm.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/Confirm.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/ImportProgress.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/ImportProgress.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/Index.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/Index.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/Loading.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/Loading.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/default/Confirm.d.vue.ts +3 -3
- package/dist/runtime/components/dialog/default/Confirm.vue.d.ts +3 -3
- package/dist/runtime/components/dialog/default/Loading.d.vue.ts +3 -3
- package/dist/runtime/components/dialog/default/Loading.vue.d.ts +3 -3
- package/dist/runtime/components/dialog/default/Notify.d.vue.ts +1 -1
- package/dist/runtime/components/dialog/default/Notify.vue.d.ts +1 -1
- package/dist/runtime/components/dialog/default/Printing.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/default/Printing.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/default/VerifyUser.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/default/VerifyUser.vue.d.ts +2 -2
- package/dist/runtime/components/document/TemplateBuilderLiveView.d.vue.ts +10 -10
- package/dist/runtime/components/document/TemplateBuilderLiveView.vue.d.ts +10 -10
- package/dist/runtime/components/document/TemplatePalette.d.vue.ts +2 -2
- package/dist/runtime/components/document/TemplatePalette.vue +11 -1
- package/dist/runtime/components/document/TemplatePalette.vue.d.ts +2 -2
- package/dist/runtime/components/form/ActionPad.d.vue.ts +9 -9
- package/dist/runtime/components/form/ActionPad.vue.d.ts +9 -9
- package/dist/runtime/components/form/Birthdate.d.vue.ts +1 -1
- package/dist/runtime/components/form/Birthdate.vue.d.ts +1 -1
- package/dist/runtime/components/form/CheckboxGroup.d.vue.ts +2 -2
- package/dist/runtime/components/form/CheckboxGroup.vue.d.ts +2 -2
- package/dist/runtime/components/form/CodeEditor.d.vue.ts +1 -1
- package/dist/runtime/components/form/CodeEditor.vue.d.ts +1 -1
- package/dist/runtime/components/form/Date.d.vue.ts +4 -4
- package/dist/runtime/components/form/Date.vue.d.ts +4 -4
- package/dist/runtime/components/form/DateTime.d.vue.ts +4 -4
- package/dist/runtime/components/form/DateTime.vue.d.ts +4 -4
- package/dist/runtime/components/form/Dialog.d.vue.ts +5 -5
- package/dist/runtime/components/form/Dialog.vue.d.ts +5 -5
- package/dist/runtime/components/form/EditPad.d.vue.ts +9 -9
- package/dist/runtime/components/form/EditPad.vue.d.ts +9 -9
- package/dist/runtime/components/form/File.d.vue.ts +4 -4
- package/dist/runtime/components/form/File.vue.d.ts +4 -4
- package/dist/runtime/components/form/Iterator.d.vue.ts +12 -12
- package/dist/runtime/components/form/Iterator.vue.d.ts +12 -12
- package/dist/runtime/components/form/Login.d.vue.ts +2 -2
- package/dist/runtime/components/form/Login.vue.d.ts +2 -2
- package/dist/runtime/components/form/Pad.d.vue.ts +5 -5
- package/dist/runtime/components/form/Pad.vue.d.ts +5 -5
- package/dist/runtime/components/form/SignPad.d.vue.ts +2 -2
- package/dist/runtime/components/form/SignPad.vue.d.ts +2 -2
- package/dist/runtime/components/form/System.d.vue.ts +2 -2
- package/dist/runtime/components/form/System.vue.d.ts +2 -2
- package/dist/runtime/components/form/Table.d.vue.ts +18 -18
- package/dist/runtime/components/form/Table.vue.d.ts +18 -18
- package/dist/runtime/components/form/TableData.d.vue.ts +9 -9
- package/dist/runtime/components/form/TableData.vue.d.ts +9 -9
- package/dist/runtime/components/form/Time.d.vue.ts +2 -2
- package/dist/runtime/components/form/Time.vue.d.ts +2 -2
- package/dist/runtime/components/form/images/Capture.d.vue.ts +2 -2
- package/dist/runtime/components/form/images/Capture.vue.d.ts +2 -2
- package/dist/runtime/components/label/Date.d.vue.ts +2 -2
- package/dist/runtime/components/label/Date.vue.d.ts +2 -2
- package/dist/runtime/components/label/Field.d.vue.ts +7 -5
- package/dist/runtime/components/label/Field.vue +4 -1
- package/dist/runtime/components/label/Field.vue.d.ts +7 -5
- package/dist/runtime/components/master/Autocomplete.d.vue.ts +2 -2
- package/dist/runtime/components/master/Autocomplete.vue.d.ts +2 -2
- package/dist/runtime/components/master/Combobox.d.vue.ts +2 -2
- package/dist/runtime/components/master/Combobox.vue.d.ts +2 -2
- package/dist/runtime/components/master/RadioGroup.d.vue.ts +2 -2
- package/dist/runtime/components/master/RadioGroup.vue.d.ts +2 -2
- package/dist/runtime/components/master/Select.d.vue.ts +2 -2
- package/dist/runtime/components/master/Select.vue.d.ts +2 -2
- package/dist/runtime/components/master/label.d.vue.ts +1 -1
- package/dist/runtime/components/master/label.vue.d.ts +1 -1
- package/dist/runtime/components/model/Autocomplete.d.vue.ts +2 -2
- package/dist/runtime/components/model/Autocomplete.vue.d.ts +2 -2
- package/dist/runtime/components/model/Combobox.d.vue.ts +2 -2
- package/dist/runtime/components/model/Combobox.vue.d.ts +2 -2
- package/dist/runtime/components/model/Pad.d.vue.ts +10 -10
- package/dist/runtime/components/model/Pad.vue.d.ts +10 -10
- package/dist/runtime/components/model/Select.d.vue.ts +2 -2
- package/dist/runtime/components/model/Select.vue.d.ts +2 -2
- package/dist/runtime/components/model/Table.d.vue.ts +21 -21
- package/dist/runtime/components/model/Table.vue.d.ts +21 -21
- package/dist/runtime/components/model/iterator.d.vue.ts +28 -28
- package/dist/runtime/components/model/iterator.vue.d.ts +28 -28
- package/dist/runtime/components/model/label.d.vue.ts +1 -1
- package/dist/runtime/components/model/label.vue.d.ts +1 -1
- package/dist/runtime/components/pdf/View.d.vue.ts +2 -2
- package/dist/runtime/components/pdf/View.vue.d.ts +2 -2
- package/dist/runtime/composables/document/template.js +3 -0
- package/dist/runtime/composables/document/templateInputTypes.js +3 -0
- package/dist/runtime/types/calendar.d.ts +11 -0
- package/dist/runtime/utils/datetime.d.ts +7 -7
- 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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
118
|
+
}, __VLS_66: {
|
|
119
119
|
color: string | undefined;
|
|
120
120
|
isActive: boolean;
|
|
121
|
-
},
|
|
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
|
-
},
|
|
157
|
+
}, __VLS_121: {
|
|
158
158
|
reload: () => void;
|
|
159
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
260
|
+
[K in NonNullable<typeof __VLS_212>]?: (props: typeof __VLS_213) => any;
|
|
261
261
|
} & {
|
|
262
|
-
[K in NonNullable<typeof
|
|
262
|
+
[K in NonNullable<typeof __VLS_239>]?: (props: typeof __VLS_240) => any;
|
|
263
263
|
} & {
|
|
264
|
-
[K in NonNullable<typeof
|
|
264
|
+
[K in NonNullable<typeof __VLS_266>]?: (props: typeof __VLS_267) => any;
|
|
265
265
|
} & {
|
|
266
|
-
default?: (props: typeof
|
|
266
|
+
default?: (props: typeof __VLS_14) => any;
|
|
267
267
|
} & {
|
|
268
268
|
item?: (props: typeof __VLS_35) => any;
|
|
269
269
|
} & {
|
|
270
|
-
item?: (props: typeof
|
|
270
|
+
item?: (props: typeof __VLS_63) => any;
|
|
271
271
|
} & {
|
|
272
|
-
loader?: (props: typeof
|
|
272
|
+
loader?: (props: typeof __VLS_66) => any;
|
|
273
273
|
} & {
|
|
274
|
-
loaderItem?: (props: typeof
|
|
274
|
+
loaderItem?: (props: typeof __VLS_87) => any;
|
|
275
275
|
} & {
|
|
276
|
-
header?: (props: typeof
|
|
276
|
+
header?: (props: typeof __VLS_95) => any;
|
|
277
277
|
} & {
|
|
278
|
-
title?: (props: typeof
|
|
278
|
+
title?: (props: typeof __VLS_121) => any;
|
|
279
279
|
} & {
|
|
280
|
-
autoRefreshControl?: (props: typeof
|
|
280
|
+
autoRefreshControl?: (props: typeof __VLS_131) => any;
|
|
281
281
|
} & {
|
|
282
|
-
search?: (props: typeof
|
|
282
|
+
search?: (props: typeof __VLS_144) => any;
|
|
283
283
|
} & {
|
|
284
|
-
toolbarItems?: (props: typeof
|
|
284
|
+
toolbarItems?: (props: typeof __VLS_157) => any;
|
|
285
285
|
} & {
|
|
286
|
-
form?: (props: typeof
|
|
286
|
+
form?: (props: typeof __VLS_335) => any;
|
|
287
287
|
} & {
|
|
288
|
-
importProgress?: (props: typeof
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|
|
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.
|
|
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
|
|
78
|
-
"@graphql-codegen/plugin-helpers": "^6.
|
|
79
|
-
"@graphql-codegen/typescript": "^5.0.
|
|
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.
|
|
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.
|
|
86
|
+
"@vueuse/integrations": "^14.4.0",
|
|
87
87
|
"@zxing/browser": "^0.1.5",
|
|
88
|
-
"cropperjs": "^1.6.
|
|
88
|
+
"cropperjs": "^1.6.3",
|
|
89
89
|
"currency.js": "^2.0.4",
|
|
90
90
|
"exif-rotate-js": "^1.5.0",
|
|
91
|
-
"fuse.js": "^7.
|
|
91
|
+
"fuse.js": "^7.5.0",
|
|
92
92
|
"gql-query-builder": "^3.8.0",
|
|
93
|
-
"graphql": "^16.
|
|
93
|
+
"graphql": "^16.14.2",
|
|
94
94
|
"localstorage-slim": "^2.7.1",
|
|
95
|
-
"lodash": "4.
|
|
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.
|
|
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.
|
|
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
|
|
116
|
-
"@nuxt/eslint-config": "^1.
|
|
117
|
-
"@nuxt/module-builder": "^1.0.
|
|
118
|
-
"@nuxt/schema": "^4.
|
|
119
|
-
"@nuxt/test-utils": "^4.
|
|
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.
|
|
121
|
+
"@types/lodash": "^4.17.25",
|
|
122
122
|
"@types/lodash-es": "^4.17.12",
|
|
123
|
-
"@types/luxon": "^3.7.
|
|
123
|
+
"@types/luxon": "^3.7.6",
|
|
124
124
|
"@types/node": "latest",
|
|
125
|
-
"@vue/test-utils": "^2.
|
|
126
|
-
"@vueuse/core": "^14.
|
|
127
|
-
"@vueuse/nuxt": "^14.
|
|
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
|
|
130
|
-
"happy-dom": "^20.
|
|
131
|
-
"nuxt": "^4.
|
|
132
|
-
"sass": "^1.
|
|
133
|
-
"typedoc": "^0.28.
|
|
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.
|
|
135
|
+
"vitest": "^4.1.11",
|
|
136
136
|
"vue-docgen-cli": "^4.79.0",
|
|
137
|
-
"vue-tsc": "^3.
|
|
137
|
+
"vue-tsc": "^3.3.11"
|
|
138
138
|
}
|
|
139
139
|
}
|