@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.
Files changed (109) hide show
  1. package/dist/module.json +2 -2
  2. package/dist/runtime/components/Calendar.d.vue.ts +7 -7
  3. package/dist/runtime/components/Calendar.vue.d.ts +7 -7
  4. package/dist/runtime/components/ExportCSV.d.vue.ts +2 -2
  5. package/dist/runtime/components/ExportCSV.vue.d.ts +2 -2
  6. package/dist/runtime/components/FileBtn.d.vue.ts +4 -4
  7. package/dist/runtime/components/FileBtn.vue.d.ts +4 -4
  8. package/dist/runtime/components/ImportCSV.d.vue.ts +4 -4
  9. package/dist/runtime/components/ImportCSV.vue.d.ts +4 -4
  10. package/dist/runtime/components/SplitterPanel.d.vue.ts +3 -3
  11. package/dist/runtime/components/SplitterPanel.vue.d.ts +3 -3
  12. package/dist/runtime/components/TabsGroup.d.vue.ts +3 -3
  13. package/dist/runtime/components/TabsGroup.vue.d.ts +3 -3
  14. package/dist/runtime/components/device/IdCardButton.d.vue.ts +2 -2
  15. package/dist/runtime/components/device/IdCardButton.vue.d.ts +2 -2
  16. package/dist/runtime/components/dialog/Confirm.d.vue.ts +2 -2
  17. package/dist/runtime/components/dialog/Confirm.vue.d.ts +2 -2
  18. package/dist/runtime/components/dialog/ImportProgress.d.vue.ts +2 -2
  19. package/dist/runtime/components/dialog/ImportProgress.vue.d.ts +2 -2
  20. package/dist/runtime/components/dialog/Index.d.vue.ts +2 -2
  21. package/dist/runtime/components/dialog/Index.vue.d.ts +2 -2
  22. package/dist/runtime/components/dialog/Loading.d.vue.ts +2 -2
  23. package/dist/runtime/components/dialog/Loading.vue.d.ts +2 -2
  24. package/dist/runtime/components/dialog/default/Confirm.d.vue.ts +3 -3
  25. package/dist/runtime/components/dialog/default/Confirm.vue.d.ts +3 -3
  26. package/dist/runtime/components/dialog/default/Loading.d.vue.ts +3 -3
  27. package/dist/runtime/components/dialog/default/Loading.vue.d.ts +3 -3
  28. package/dist/runtime/components/dialog/default/Notify.d.vue.ts +1 -1
  29. package/dist/runtime/components/dialog/default/Notify.vue.d.ts +1 -1
  30. package/dist/runtime/components/dialog/default/Printing.d.vue.ts +2 -2
  31. package/dist/runtime/components/dialog/default/Printing.vue.d.ts +2 -2
  32. package/dist/runtime/components/dialog/default/VerifyUser.d.vue.ts +2 -2
  33. package/dist/runtime/components/dialog/default/VerifyUser.vue.d.ts +2 -2
  34. package/dist/runtime/components/document/TemplateBuilderLiveView.d.vue.ts +10 -10
  35. package/dist/runtime/components/document/TemplateBuilderLiveView.vue.d.ts +10 -10
  36. package/dist/runtime/components/document/TemplatePalette.d.vue.ts +2 -2
  37. package/dist/runtime/components/document/TemplatePalette.vue +11 -1
  38. package/dist/runtime/components/document/TemplatePalette.vue.d.ts +2 -2
  39. package/dist/runtime/components/form/ActionPad.d.vue.ts +9 -9
  40. package/dist/runtime/components/form/ActionPad.vue.d.ts +9 -9
  41. package/dist/runtime/components/form/Birthdate.d.vue.ts +1 -1
  42. package/dist/runtime/components/form/Birthdate.vue.d.ts +1 -1
  43. package/dist/runtime/components/form/CheckboxGroup.d.vue.ts +2 -2
  44. package/dist/runtime/components/form/CheckboxGroup.vue.d.ts +2 -2
  45. package/dist/runtime/components/form/CodeEditor.d.vue.ts +1 -1
  46. package/dist/runtime/components/form/CodeEditor.vue.d.ts +1 -1
  47. package/dist/runtime/components/form/Date.d.vue.ts +4 -4
  48. package/dist/runtime/components/form/Date.vue.d.ts +4 -4
  49. package/dist/runtime/components/form/DateTime.d.vue.ts +4 -4
  50. package/dist/runtime/components/form/DateTime.vue.d.ts +4 -4
  51. package/dist/runtime/components/form/Dialog.d.vue.ts +6 -6
  52. package/dist/runtime/components/form/Dialog.vue.d.ts +6 -6
  53. package/dist/runtime/components/form/EditPad.d.vue.ts +9 -9
  54. package/dist/runtime/components/form/EditPad.vue.d.ts +9 -9
  55. package/dist/runtime/components/form/File.d.vue.ts +4 -4
  56. package/dist/runtime/components/form/File.vue.d.ts +4 -4
  57. package/dist/runtime/components/form/Iterator.d.vue.ts +12 -12
  58. package/dist/runtime/components/form/Iterator.vue.d.ts +12 -12
  59. package/dist/runtime/components/form/Login.d.vue.ts +2 -2
  60. package/dist/runtime/components/form/Login.vue.d.ts +2 -2
  61. package/dist/runtime/components/form/Pad.d.vue.ts +5 -5
  62. package/dist/runtime/components/form/Pad.vue.d.ts +5 -5
  63. package/dist/runtime/components/form/SignPad.d.vue.ts +2 -2
  64. package/dist/runtime/components/form/SignPad.vue.d.ts +2 -2
  65. package/dist/runtime/components/form/System.d.vue.ts +2 -2
  66. package/dist/runtime/components/form/System.vue.d.ts +2 -2
  67. package/dist/runtime/components/form/Table.d.vue.ts +18 -18
  68. package/dist/runtime/components/form/Table.vue.d.ts +18 -18
  69. package/dist/runtime/components/form/TableData.d.vue.ts +9 -9
  70. package/dist/runtime/components/form/TableData.vue.d.ts +9 -9
  71. package/dist/runtime/components/form/Time.d.vue.ts +2 -2
  72. package/dist/runtime/components/form/Time.vue.d.ts +2 -2
  73. package/dist/runtime/components/form/images/Capture.d.vue.ts +2 -2
  74. package/dist/runtime/components/form/images/Capture.vue.d.ts +2 -2
  75. package/dist/runtime/components/label/Date.d.vue.ts +2 -2
  76. package/dist/runtime/components/label/Date.vue.d.ts +2 -2
  77. package/dist/runtime/components/label/Field.d.vue.ts +7 -5
  78. package/dist/runtime/components/label/Field.vue +4 -1
  79. package/dist/runtime/components/label/Field.vue.d.ts +7 -5
  80. package/dist/runtime/components/master/Autocomplete.d.vue.ts +2 -2
  81. package/dist/runtime/components/master/Autocomplete.vue.d.ts +2 -2
  82. package/dist/runtime/components/master/Combobox.d.vue.ts +2 -2
  83. package/dist/runtime/components/master/Combobox.vue.d.ts +2 -2
  84. package/dist/runtime/components/master/RadioGroup.d.vue.ts +2 -2
  85. package/dist/runtime/components/master/RadioGroup.vue.d.ts +2 -2
  86. package/dist/runtime/components/master/Select.d.vue.ts +2 -2
  87. package/dist/runtime/components/master/Select.vue.d.ts +2 -2
  88. package/dist/runtime/components/master/label.d.vue.ts +1 -1
  89. package/dist/runtime/components/master/label.vue.d.ts +1 -1
  90. package/dist/runtime/components/model/Autocomplete.d.vue.ts +2 -2
  91. package/dist/runtime/components/model/Autocomplete.vue.d.ts +2 -2
  92. package/dist/runtime/components/model/Combobox.d.vue.ts +2 -2
  93. package/dist/runtime/components/model/Combobox.vue.d.ts +2 -2
  94. package/dist/runtime/components/model/Pad.d.vue.ts +10 -10
  95. package/dist/runtime/components/model/Pad.vue.d.ts +10 -10
  96. package/dist/runtime/components/model/Select.d.vue.ts +2 -2
  97. package/dist/runtime/components/model/Select.vue.d.ts +2 -2
  98. package/dist/runtime/components/model/Table.d.vue.ts +21 -21
  99. package/dist/runtime/components/model/Table.vue.d.ts +21 -21
  100. package/dist/runtime/components/model/iterator.d.vue.ts +28 -28
  101. package/dist/runtime/components/model/iterator.vue.d.ts +28 -28
  102. package/dist/runtime/components/model/label.d.vue.ts +1 -1
  103. package/dist/runtime/components/model/label.vue.d.ts +1 -1
  104. package/dist/runtime/components/pdf/View.d.vue.ts +2 -2
  105. package/dist/runtime/components/pdf/View.vue.d.ts +2 -2
  106. package/dist/runtime/composables/document/template.js +3 -0
  107. package/dist/runtime/composables/document/templateInputTypes.js +3 -0
  108. package/dist/runtime/utils/datetime.d.ts +7 -7
  109. 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 __VLS_22: {
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
- }, __VLS_48: {}, __VLS_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
- }, __VLS_69: {
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
- }, __VLS_99: never, __VLS_100: {
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
- }, __VLS_153: any, __VLS_156: any, __VLS_159: any, __VLS_161: {
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
- }, __VLS_181: any;
106
+ }, __VLS_178: any;
107
107
  type __VLS_Slots = {} & {
108
- [K in NonNullable<typeof __VLS_99>]?: (props: typeof __VLS_100) => any;
108
+ [K in NonNullable<typeof __VLS_98>]?: (props: typeof __VLS_99) => any;
109
109
  } & {
110
- header?: (props: typeof __VLS_22) => any;
110
+ header?: (props: typeof __VLS_20) => any;
111
111
  } & {
112
- title?: (props: typeof __VLS_48) => any;
112
+ title?: (props: typeof __VLS_46) => any;
113
113
  } & {
114
- search?: (props: typeof __VLS_56) => any;
114
+ search?: (props: typeof __VLS_54) => any;
115
115
  } & {
116
- toolbarItems?: (props: typeof __VLS_69) => any;
116
+ toolbarItems?: (props: typeof __VLS_67) => any;
117
117
  } & {
118
- form?: (props: typeof __VLS_153) => any;
118
+ form?: (props: typeof __VLS_152) => any;
119
119
  } & {
120
- formTitle?: (props: typeof __VLS_156) => any;
120
+ formTitle?: (props: typeof __VLS_155) => any;
121
121
  } & {
122
- formAction?: (props: typeof __VLS_159) => any;
122
+ formAction?: (props: typeof __VLS_158) => any;
123
123
  } & {
124
- inputPad?: (props: typeof __VLS_161) => any;
124
+ inputPad?: (props: typeof __VLS_160) => any;
125
125
  } & {
126
- form?: (props: typeof __VLS_181) => any;
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 __VLS_22: {
23
+ declare var __VLS_20: {
24
24
  items: Record<string, any>[];
25
25
  operation: {
26
26
  reset: () => void;
27
27
  };
28
- }, __VLS_48: {}, __VLS_56: {
28
+ }, __VLS_46: {}, __VLS_54: {
29
29
  items: Record<string, any>[];
30
30
  operation: {
31
31
  reset: () => void;
32
32
  };
33
- }, __VLS_73: never, __VLS_74: {
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 __VLS_73>]?: (props: typeof __VLS_74) => any;
41
+ [K in NonNullable<typeof __VLS_72>]?: (props: typeof __VLS_73) => any;
42
42
  } & {
43
- header?: (props: typeof __VLS_22) => any;
43
+ header?: (props: typeof __VLS_20) => any;
44
44
  } & {
45
- title?: (props: typeof __VLS_48) => any;
45
+ title?: (props: typeof __VLS_46) => any;
46
46
  } & {
47
- toolbarItems?: (props: typeof __VLS_56) => any;
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 __VLS_22: {
23
+ declare var __VLS_20: {
24
24
  items: Record<string, any>[];
25
25
  operation: {
26
26
  reset: () => void;
27
27
  };
28
- }, __VLS_48: {}, __VLS_56: {
28
+ }, __VLS_46: {}, __VLS_54: {
29
29
  items: Record<string, any>[];
30
30
  operation: {
31
31
  reset: () => void;
32
32
  };
33
- }, __VLS_73: never, __VLS_74: {
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 __VLS_73>]?: (props: typeof __VLS_74) => any;
41
+ [K in NonNullable<typeof __VLS_72>]?: (props: typeof __VLS_73) => any;
42
42
  } & {
43
- header?: (props: typeof __VLS_22) => any;
43
+ header?: (props: typeof __VLS_20) => any;
44
44
  } & {
45
- title?: (props: typeof __VLS_48) => any;
45
+ title?: (props: typeof __VLS_46) => any;
46
46
  } & {
47
- toolbarItems?: (props: typeof __VLS_56) => any;
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 __VLS_92: {
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 __VLS_92) => any;
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 __VLS_92: {
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 __VLS_92) => any;
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: "TH" | "EN";
10
- format: dateFormat | dateTimeFormat | string;
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: "TH" | "EN";
10
- format: dateFormat | dateTimeFormat | string;
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
- }, __VLS_25: {}, __VLS_33: {
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 __VLS_25) => any;
20
+ label?: (props: typeof __VLS_24) => any;
20
21
  } & {
21
- value?: (props: typeof __VLS_33) => any;
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
- return props.value ? props.value : props.notFoundText;
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
- }, __VLS_25: {}, __VLS_33: {
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 __VLS_25) => any;
20
+ label?: (props: typeof __VLS_24) => any;
20
21
  } & {
21
- value?: (props: typeof __VLS_33) => any;
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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: boolean | number;
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: boolean | number;
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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 Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
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
  };