@ramathibodi/nuxt-commons 4.0.25 → 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 +7 -7
- package/dist/runtime/components/Calendar.vue.d.ts +7 -7
- 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 +6 -6
- package/dist/runtime/components/form/Dialog.vue.d.ts +6 -6
- 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/utils/datetime.d.ts +7 -7
- package/package.json +30 -30
|
@@ -41,7 +41,7 @@ declare function moveDownItem(currentItem: Record<string, any>, callback?: FormD
|
|
|
41
41
|
declare function moveToItem(currentItem: Record<string, any>, callback?: FormDialogCallback): void;
|
|
42
42
|
declare function deleteItem(deleteItem: Record<string, any>, callback?: FormDialogCallback): Promise<void>;
|
|
43
43
|
declare function openDialog(item?: object): void;
|
|
44
|
-
declare var
|
|
44
|
+
declare var __VLS_20: {
|
|
45
45
|
items: Record<string, any>[];
|
|
46
46
|
operation: {
|
|
47
47
|
openDialog: typeof openDialog;
|
|
@@ -53,7 +53,7 @@ declare var __VLS_22: {
|
|
|
53
53
|
moveToItem: typeof moveToItem;
|
|
54
54
|
setSearch: typeof setSearch;
|
|
55
55
|
};
|
|
56
|
-
},
|
|
56
|
+
}, __VLS_46: {}, __VLS_54: {
|
|
57
57
|
items: Record<string, any>[];
|
|
58
58
|
operation: {
|
|
59
59
|
openDialog: typeof openDialog;
|
|
@@ -65,7 +65,7 @@ declare var __VLS_22: {
|
|
|
65
65
|
moveToItem: typeof moveToItem;
|
|
66
66
|
setSearch: typeof setSearch;
|
|
67
67
|
};
|
|
68
|
-
},
|
|
68
|
+
}, __VLS_67: {
|
|
69
69
|
items: Record<string, any>[];
|
|
70
70
|
operation: {
|
|
71
71
|
openDialog: typeof openDialog;
|
|
@@ -77,7 +77,7 @@ declare var __VLS_22: {
|
|
|
77
77
|
moveToItem: typeof moveToItem;
|
|
78
78
|
setSearch: typeof setSearch;
|
|
79
79
|
};
|
|
80
|
-
},
|
|
80
|
+
}, __VLS_98: never, __VLS_99: {
|
|
81
81
|
operation: {
|
|
82
82
|
openDialog: typeof openDialog;
|
|
83
83
|
createItem: typeof createItem;
|
|
@@ -90,7 +90,7 @@ declare var __VLS_22: {
|
|
|
90
90
|
};
|
|
91
91
|
isReadonly: import("vue").ComputedRef<boolean>;
|
|
92
92
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
93
|
-
},
|
|
93
|
+
}, __VLS_152: any, __VLS_155: any, __VLS_158: any, __VLS_160: {
|
|
94
94
|
operation: {
|
|
95
95
|
openDialog: typeof openDialog;
|
|
96
96
|
createItem: typeof createItem;
|
|
@@ -103,27 +103,27 @@ declare var __VLS_22: {
|
|
|
103
103
|
};
|
|
104
104
|
isReadonly: import("vue").ComputedRef<boolean>;
|
|
105
105
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
106
|
-
},
|
|
106
|
+
}, __VLS_178: any;
|
|
107
107
|
type __VLS_Slots = {} & {
|
|
108
|
-
[K in NonNullable<typeof
|
|
108
|
+
[K in NonNullable<typeof __VLS_98>]?: (props: typeof __VLS_99) => any;
|
|
109
109
|
} & {
|
|
110
|
-
header?: (props: typeof
|
|
110
|
+
header?: (props: typeof __VLS_20) => any;
|
|
111
111
|
} & {
|
|
112
|
-
title?: (props: typeof
|
|
112
|
+
title?: (props: typeof __VLS_46) => any;
|
|
113
113
|
} & {
|
|
114
|
-
search?: (props: typeof
|
|
114
|
+
search?: (props: typeof __VLS_54) => any;
|
|
115
115
|
} & {
|
|
116
|
-
toolbarItems?: (props: typeof
|
|
116
|
+
toolbarItems?: (props: typeof __VLS_67) => any;
|
|
117
117
|
} & {
|
|
118
|
-
form?: (props: typeof
|
|
118
|
+
form?: (props: typeof __VLS_152) => any;
|
|
119
119
|
} & {
|
|
120
|
-
formTitle?: (props: typeof
|
|
120
|
+
formTitle?: (props: typeof __VLS_155) => any;
|
|
121
121
|
} & {
|
|
122
|
-
formAction?: (props: typeof
|
|
122
|
+
formAction?: (props: typeof __VLS_158) => any;
|
|
123
123
|
} & {
|
|
124
|
-
inputPad?: (props: typeof
|
|
124
|
+
inputPad?: (props: typeof __VLS_160) => any;
|
|
125
125
|
} & {
|
|
126
|
-
form?: (props: typeof
|
|
126
|
+
form?: (props: typeof __VLS_178) => any;
|
|
127
127
|
};
|
|
128
128
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
129
129
|
noDataText: string;
|
|
@@ -201,7 +201,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
201
201
|
declare const _default: typeof __VLS_export;
|
|
202
202
|
export default _default;
|
|
203
203
|
type __VLS_TypePropsToOption<T> = {
|
|
204
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
204
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
205
205
|
type: import('vue').PropType<Required<T>[K]>;
|
|
206
206
|
} : {
|
|
207
207
|
type: import('vue').PropType<T[K]>;
|
|
@@ -209,7 +209,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
211
|
type __VLS_WithDefaults<P, D> = {
|
|
212
|
-
[K in keyof
|
|
212
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
213
213
|
default: D[K];
|
|
214
214
|
}> : P[K];
|
|
215
215
|
};
|
|
@@ -20,17 +20,17 @@ interface Props extends /* @vue-ignore */ InstanceType<typeof VDataTable['$props
|
|
|
20
20
|
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
21
21
|
*/
|
|
22
22
|
type __VLS_Props = Props & PersistSlimProps;
|
|
23
|
-
declare var
|
|
23
|
+
declare var __VLS_20: {
|
|
24
24
|
items: Record<string, any>[];
|
|
25
25
|
operation: {
|
|
26
26
|
reset: () => void;
|
|
27
27
|
};
|
|
28
|
-
},
|
|
28
|
+
}, __VLS_46: {}, __VLS_54: {
|
|
29
29
|
items: Record<string, any>[];
|
|
30
30
|
operation: {
|
|
31
31
|
reset: () => void;
|
|
32
32
|
};
|
|
33
|
-
},
|
|
33
|
+
}, __VLS_72: never, __VLS_73: {
|
|
34
34
|
operation: {
|
|
35
35
|
reset: () => void;
|
|
36
36
|
};
|
|
@@ -38,13 +38,13 @@ declare var __VLS_22: {
|
|
|
38
38
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
39
39
|
};
|
|
40
40
|
type __VLS_Slots = {} & {
|
|
41
|
-
[K in NonNullable<typeof
|
|
41
|
+
[K in NonNullable<typeof __VLS_72>]?: (props: typeof __VLS_73) => any;
|
|
42
42
|
} & {
|
|
43
|
-
header?: (props: typeof
|
|
43
|
+
header?: (props: typeof __VLS_20) => any;
|
|
44
44
|
} & {
|
|
45
|
-
title?: (props: typeof
|
|
45
|
+
title?: (props: typeof __VLS_46) => any;
|
|
46
46
|
} & {
|
|
47
|
-
toolbarItems?: (props: typeof
|
|
47
|
+
toolbarItems?: (props: typeof __VLS_54) => any;
|
|
48
48
|
};
|
|
49
49
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
50
50
|
noDataText: string;
|
|
@@ -78,7 +78,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
78
78
|
declare const _default: typeof __VLS_export;
|
|
79
79
|
export default _default;
|
|
80
80
|
type __VLS_TypePropsToOption<T> = {
|
|
81
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
81
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
82
82
|
type: import('vue').PropType<Required<T>[K]>;
|
|
83
83
|
} : {
|
|
84
84
|
type: import('vue').PropType<T[K]>;
|
|
@@ -86,7 +86,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
type __VLS_WithDefaults<P, D> = {
|
|
89
|
-
[K in keyof
|
|
89
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
90
90
|
default: D[K];
|
|
91
91
|
}> : P[K];
|
|
92
92
|
};
|
|
@@ -20,17 +20,17 @@ interface Props extends /* @vue-ignore */ InstanceType<typeof VDataTable['$props
|
|
|
20
20
|
* Document each prop field with intent, defaults, and side effects for clear generated docs.
|
|
21
21
|
*/
|
|
22
22
|
type __VLS_Props = Props & PersistSlimProps;
|
|
23
|
-
declare var
|
|
23
|
+
declare var __VLS_20: {
|
|
24
24
|
items: Record<string, any>[];
|
|
25
25
|
operation: {
|
|
26
26
|
reset: () => void;
|
|
27
27
|
};
|
|
28
|
-
},
|
|
28
|
+
}, __VLS_46: {}, __VLS_54: {
|
|
29
29
|
items: Record<string, any>[];
|
|
30
30
|
operation: {
|
|
31
31
|
reset: () => void;
|
|
32
32
|
};
|
|
33
|
-
},
|
|
33
|
+
}, __VLS_72: never, __VLS_73: {
|
|
34
34
|
operation: {
|
|
35
35
|
reset: () => void;
|
|
36
36
|
};
|
|
@@ -38,13 +38,13 @@ declare var __VLS_22: {
|
|
|
38
38
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
39
39
|
};
|
|
40
40
|
type __VLS_Slots = {} & {
|
|
41
|
-
[K in NonNullable<typeof
|
|
41
|
+
[K in NonNullable<typeof __VLS_72>]?: (props: typeof __VLS_73) => any;
|
|
42
42
|
} & {
|
|
43
|
-
header?: (props: typeof
|
|
43
|
+
header?: (props: typeof __VLS_20) => any;
|
|
44
44
|
} & {
|
|
45
|
-
title?: (props: typeof
|
|
45
|
+
title?: (props: typeof __VLS_46) => any;
|
|
46
46
|
} & {
|
|
47
|
-
toolbarItems?: (props: typeof
|
|
47
|
+
toolbarItems?: (props: typeof __VLS_54) => any;
|
|
48
48
|
};
|
|
49
49
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
50
50
|
noDataText: string;
|
|
@@ -78,7 +78,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
78
78
|
declare const _default: typeof __VLS_export;
|
|
79
79
|
export default _default;
|
|
80
80
|
type __VLS_TypePropsToOption<T> = {
|
|
81
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
81
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
82
82
|
type: import('vue').PropType<Required<T>[K]>;
|
|
83
83
|
} : {
|
|
84
84
|
type: import('vue').PropType<T[K]>;
|
|
@@ -86,7 +86,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
type __VLS_WithDefaults<P, D> = {
|
|
89
|
-
[K in keyof
|
|
89
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
90
90
|
default: D[K];
|
|
91
91
|
}> : P[K];
|
|
92
92
|
};
|
|
@@ -30,7 +30,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
32
32
|
type __VLS_TypePropsToOption<T> = {
|
|
33
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
34
34
|
type: import('vue').PropType<Required<T>[K]>;
|
|
35
35
|
} : {
|
|
36
36
|
type: import('vue').PropType<T[K]>;
|
|
@@ -38,7 +38,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
type __VLS_WithDefaults<P, D> = {
|
|
41
|
-
[K in keyof
|
|
41
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
42
42
|
default: D[K];
|
|
43
43
|
}> : P[K];
|
|
44
44
|
};
|
|
@@ -30,7 +30,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
32
32
|
type __VLS_TypePropsToOption<T> = {
|
|
33
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
34
34
|
type: import('vue').PropType<Required<T>[K]>;
|
|
35
35
|
} : {
|
|
36
36
|
type: import('vue').PropType<T[K]>;
|
|
@@ -38,7 +38,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
type __VLS_WithDefaults<P, D> = {
|
|
41
|
-
[K in keyof
|
|
41
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
42
42
|
default: D[K];
|
|
43
43
|
}> : P[K];
|
|
44
44
|
};
|
|
@@ -24,7 +24,7 @@ type __VLS_ModelProps = {
|
|
|
24
24
|
modelValue?: string;
|
|
25
25
|
};
|
|
26
26
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
27
|
-
declare var
|
|
27
|
+
declare var __VLS_90: {
|
|
28
28
|
operation: {
|
|
29
29
|
startCamera: typeof startCamera;
|
|
30
30
|
stopCamera: typeof stopCamera;
|
|
@@ -37,7 +37,7 @@ declare var __VLS_92: {
|
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
type __VLS_Slots = {} & {
|
|
40
|
-
actions?: (props: typeof
|
|
40
|
+
actions?: (props: typeof __VLS_90) => any;
|
|
41
41
|
};
|
|
42
42
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
43
43
|
errorMessages: import("vue").ComputedRef<(string & string[]) | (readonly string[] & string[]) | undefined>;
|
|
@@ -24,7 +24,7 @@ type __VLS_ModelProps = {
|
|
|
24
24
|
modelValue?: string;
|
|
25
25
|
};
|
|
26
26
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
27
|
-
declare var
|
|
27
|
+
declare var __VLS_90: {
|
|
28
28
|
operation: {
|
|
29
29
|
startCamera: typeof startCamera;
|
|
30
30
|
stopCamera: typeof stopCamera;
|
|
@@ -37,7 +37,7 @@ declare var __VLS_92: {
|
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
type __VLS_Slots = {} & {
|
|
40
|
-
actions?: (props: typeof
|
|
40
|
+
actions?: (props: typeof __VLS_90) => any;
|
|
41
41
|
};
|
|
42
42
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
43
43
|
errorMessages: import("vue").ComputedRef<(string & string[]) | (readonly string[] & string[]) | undefined>;
|
|
@@ -6,8 +6,8 @@ interface Props {
|
|
|
6
6
|
format?: dateFormat | dateTimeFormat | string;
|
|
7
7
|
}
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
-
locale: "
|
|
10
|
-
format:
|
|
9
|
+
locale: "EN" | "TH";
|
|
10
|
+
format: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
13
13
|
export default _default;
|
|
@@ -6,8 +6,8 @@ interface Props {
|
|
|
6
6
|
format?: dateFormat | dateTimeFormat | string;
|
|
7
7
|
}
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
-
locale: "
|
|
10
|
-
format:
|
|
9
|
+
locale: "EN" | "TH";
|
|
10
|
+
format: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
13
13
|
export default _default;
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
label: string;
|
|
3
3
|
value?: string | null;
|
|
4
|
+
modelValue?: string | number | null;
|
|
4
5
|
horizontal?: boolean;
|
|
5
6
|
size?: 'large' | 'medium';
|
|
6
7
|
truncate?: boolean;
|
|
7
8
|
notFoundText?: string;
|
|
8
9
|
}
|
|
9
10
|
declare var __VLS_1: {}, __VLS_3: {
|
|
10
|
-
value: string;
|
|
11
|
-
},
|
|
12
|
-
value: string;
|
|
11
|
+
value: string | number;
|
|
12
|
+
}, __VLS_24: {}, __VLS_32: {
|
|
13
|
+
value: string | number;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_Slots = {} & {
|
|
15
16
|
label?: (props: typeof __VLS_1) => any;
|
|
16
17
|
} & {
|
|
17
18
|
value?: (props: typeof __VLS_3) => any;
|
|
18
19
|
} & {
|
|
19
|
-
label?: (props: typeof
|
|
20
|
+
label?: (props: typeof __VLS_24) => any;
|
|
20
21
|
} & {
|
|
21
|
-
value?: (props: typeof
|
|
22
|
+
value?: (props: typeof __VLS_32) => any;
|
|
22
23
|
};
|
|
23
24
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
25
|
+
modelValue: string | number | null;
|
|
24
26
|
value: string | null;
|
|
25
27
|
size: "large" | "medium";
|
|
26
28
|
label: string;
|
|
@@ -3,6 +3,7 @@ import { computed, ref } from "vue";
|
|
|
3
3
|
const props = defineProps({
|
|
4
4
|
label: { type: String, required: true, default: "" },
|
|
5
5
|
value: { type: [String, null], required: false, default: "" },
|
|
6
|
+
modelValue: { type: [String, Number, null], required: false, default: void 0 },
|
|
6
7
|
horizontal: { type: Boolean, required: false, default: false },
|
|
7
8
|
size: { type: String, required: false, default: "large" },
|
|
8
9
|
truncate: { type: Boolean, required: false, default: false },
|
|
@@ -17,7 +18,9 @@ const setTruncate = (event) => {
|
|
|
17
18
|
isTooltip.value = target.offsetWidth < target.scrollWidth;
|
|
18
19
|
};
|
|
19
20
|
const valueData = computed(() => {
|
|
20
|
-
|
|
21
|
+
if (props.value) return props.value;
|
|
22
|
+
const modelValue = props.modelValue;
|
|
23
|
+
return modelValue === null || modelValue === void 0 || modelValue === "" ? props.notFoundText : modelValue;
|
|
21
24
|
});
|
|
22
25
|
</script>
|
|
23
26
|
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
label: string;
|
|
3
3
|
value?: string | null;
|
|
4
|
+
modelValue?: string | number | null;
|
|
4
5
|
horizontal?: boolean;
|
|
5
6
|
size?: 'large' | 'medium';
|
|
6
7
|
truncate?: boolean;
|
|
7
8
|
notFoundText?: string;
|
|
8
9
|
}
|
|
9
10
|
declare var __VLS_1: {}, __VLS_3: {
|
|
10
|
-
value: string;
|
|
11
|
-
},
|
|
12
|
-
value: string;
|
|
11
|
+
value: string | number;
|
|
12
|
+
}, __VLS_24: {}, __VLS_32: {
|
|
13
|
+
value: string | number;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_Slots = {} & {
|
|
15
16
|
label?: (props: typeof __VLS_1) => any;
|
|
16
17
|
} & {
|
|
17
18
|
value?: (props: typeof __VLS_3) => any;
|
|
18
19
|
} & {
|
|
19
|
-
label?: (props: typeof
|
|
20
|
+
label?: (props: typeof __VLS_24) => any;
|
|
20
21
|
} & {
|
|
21
|
-
value?: (props: typeof
|
|
22
|
+
value?: (props: typeof __VLS_32) => any;
|
|
22
23
|
};
|
|
23
24
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
25
|
+
modelValue: string | number | null;
|
|
24
26
|
value: string | null;
|
|
25
27
|
size: "large" | "medium";
|
|
26
28
|
label: string;
|
|
@@ -46,7 +46,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
46
46
|
declare const _default: typeof __VLS_export;
|
|
47
47
|
export default _default;
|
|
48
48
|
type __VLS_TypePropsToOption<T> = {
|
|
49
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
50
50
|
type: import('vue').PropType<Required<T>[K]>;
|
|
51
51
|
} : {
|
|
52
52
|
type: import('vue').PropType<T[K]>;
|
|
@@ -54,7 +54,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
type __VLS_WithDefaults<P, D> = {
|
|
57
|
-
[K in keyof
|
|
57
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
58
58
|
default: D[K];
|
|
59
59
|
}> : P[K];
|
|
60
60
|
};
|
|
@@ -46,7 +46,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
46
46
|
declare const _default: typeof __VLS_export;
|
|
47
47
|
export default _default;
|
|
48
48
|
type __VLS_TypePropsToOption<T> = {
|
|
49
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
50
50
|
type: import('vue').PropType<Required<T>[K]>;
|
|
51
51
|
} : {
|
|
52
52
|
type: import('vue').PropType<T[K]>;
|
|
@@ -54,7 +54,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
type __VLS_WithDefaults<P, D> = {
|
|
57
|
-
[K in keyof
|
|
57
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
58
58
|
default: D[K];
|
|
59
59
|
}> : P[K];
|
|
60
60
|
};
|
|
@@ -46,7 +46,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
46
46
|
declare const _default: typeof __VLS_export;
|
|
47
47
|
export default _default;
|
|
48
48
|
type __VLS_TypePropsToOption<T> = {
|
|
49
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
50
50
|
type: import('vue').PropType<Required<T>[K]>;
|
|
51
51
|
} : {
|
|
52
52
|
type: import('vue').PropType<T[K]>;
|
|
@@ -54,7 +54,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
type __VLS_WithDefaults<P, D> = {
|
|
57
|
-
[K in keyof
|
|
57
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
58
58
|
default: D[K];
|
|
59
59
|
}> : P[K];
|
|
60
60
|
};
|
|
@@ -46,7 +46,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
46
46
|
declare const _default: typeof __VLS_export;
|
|
47
47
|
export default _default;
|
|
48
48
|
type __VLS_TypePropsToOption<T> = {
|
|
49
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
50
50
|
type: import('vue').PropType<Required<T>[K]>;
|
|
51
51
|
} : {
|
|
52
52
|
type: import('vue').PropType<T[K]>;
|
|
@@ -54,7 +54,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
type __VLS_WithDefaults<P, D> = {
|
|
57
|
-
[K in keyof
|
|
57
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
58
58
|
default: D[K];
|
|
59
59
|
}> : P[K];
|
|
60
60
|
};
|
|
@@ -27,7 +27,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
29
29
|
type __VLS_TypePropsToOption<T> = {
|
|
30
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
31
31
|
type: import('vue').PropType<Required<T>[K]>;
|
|
32
32
|
} : {
|
|
33
33
|
type: import('vue').PropType<T[K]>;
|
|
@@ -35,7 +35,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
type __VLS_WithDefaults<P, D> = {
|
|
38
|
-
[K in keyof
|
|
38
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
39
39
|
default: D[K];
|
|
40
40
|
}> : P[K];
|
|
41
41
|
};
|
|
@@ -27,7 +27,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
29
29
|
type __VLS_TypePropsToOption<T> = {
|
|
30
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
31
31
|
type: import('vue').PropType<Required<T>[K]>;
|
|
32
32
|
} : {
|
|
33
33
|
type: import('vue').PropType<T[K]>;
|
|
@@ -35,7 +35,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
type __VLS_WithDefaults<P, D> = {
|
|
38
|
-
[K in keyof
|
|
38
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
39
39
|
default: D[K];
|
|
40
40
|
}> : P[K];
|
|
41
41
|
};
|
|
@@ -44,7 +44,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
45
45
|
export default _default;
|
|
46
46
|
type __VLS_TypePropsToOption<T> = {
|
|
47
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
48
48
|
type: import('vue').PropType<Required<T>[K]>;
|
|
49
49
|
} : {
|
|
50
50
|
type: import('vue').PropType<T[K]>;
|
|
@@ -52,7 +52,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
type __VLS_WithDefaults<P, D> = {
|
|
55
|
-
[K in keyof
|
|
55
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
56
56
|
default: D[K];
|
|
57
57
|
}> : P[K];
|
|
58
58
|
};
|
|
@@ -44,7 +44,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
45
45
|
export default _default;
|
|
46
46
|
type __VLS_TypePropsToOption<T> = {
|
|
47
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
48
48
|
type: import('vue').PropType<Required<T>[K]>;
|
|
49
49
|
} : {
|
|
50
50
|
type: import('vue').PropType<T[K]>;
|
|
@@ -52,7 +52,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
type __VLS_WithDefaults<P, D> = {
|
|
55
|
-
[K in keyof
|
|
55
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
56
56
|
default: D[K];
|
|
57
57
|
}> : P[K];
|
|
58
58
|
};
|
|
@@ -12,7 +12,7 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
14
|
locale: string;
|
|
15
|
-
cache:
|
|
15
|
+
cache: number | boolean;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -12,7 +12,7 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
14
|
locale: string;
|
|
15
|
-
cache:
|
|
15
|
+
cache: number | boolean;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -63,7 +63,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
63
63
|
declare const _default: typeof __VLS_export;
|
|
64
64
|
export default _default;
|
|
65
65
|
type __VLS_TypePropsToOption<T> = {
|
|
66
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
66
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
67
67
|
type: import('vue').PropType<Required<T>[K]>;
|
|
68
68
|
} : {
|
|
69
69
|
type: import('vue').PropType<T[K]>;
|
|
@@ -71,7 +71,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
type __VLS_WithDefaults<P, D> = {
|
|
74
|
-
[K in keyof
|
|
74
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
75
75
|
default: D[K];
|
|
76
76
|
}> : P[K];
|
|
77
77
|
};
|
|
@@ -63,7 +63,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
63
63
|
declare const _default: typeof __VLS_export;
|
|
64
64
|
export default _default;
|
|
65
65
|
type __VLS_TypePropsToOption<T> = {
|
|
66
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
66
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
67
67
|
type: import('vue').PropType<Required<T>[K]>;
|
|
68
68
|
} : {
|
|
69
69
|
type: import('vue').PropType<T[K]>;
|
|
@@ -71,7 +71,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
type __VLS_WithDefaults<P, D> = {
|
|
74
|
-
[K in keyof
|
|
74
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
75
75
|
default: D[K];
|
|
76
76
|
}> : P[K];
|
|
77
77
|
};
|
|
@@ -63,7 +63,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
63
63
|
declare const _default: typeof __VLS_export;
|
|
64
64
|
export default _default;
|
|
65
65
|
type __VLS_TypePropsToOption<T> = {
|
|
66
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
66
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
67
67
|
type: import('vue').PropType<Required<T>[K]>;
|
|
68
68
|
} : {
|
|
69
69
|
type: import('vue').PropType<T[K]>;
|
|
@@ -71,7 +71,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
type __VLS_WithDefaults<P, D> = {
|
|
74
|
-
[K in keyof
|
|
74
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
75
75
|
default: D[K];
|
|
76
76
|
}> : P[K];
|
|
77
77
|
};
|
|
@@ -63,7 +63,7 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
|
63
63
|
declare const _default: typeof __VLS_export;
|
|
64
64
|
export default _default;
|
|
65
65
|
type __VLS_TypePropsToOption<T> = {
|
|
66
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
66
|
+
[K in keyof T & string]-?: {} extends Pick<T, K> ? {
|
|
67
67
|
type: import('vue').PropType<Required<T>[K]>;
|
|
68
68
|
} : {
|
|
69
69
|
type: import('vue').PropType<T[K]>;
|
|
@@ -71,7 +71,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
type __VLS_WithDefaults<P, D> = {
|
|
74
|
-
[K in keyof
|
|
74
|
+
[K in keyof P & string]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
75
75
|
default: D[K];
|
|
76
76
|
}> : P[K];
|
|
77
77
|
};
|