@ramathibodi/nuxt-commons 4.0.19 → 4.0.20

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 (27) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/device/IdCardButton.d.vue.ts +2 -2
  3. package/dist/runtime/components/device/IdCardButton.vue.d.ts +2 -2
  4. package/dist/runtime/components/dialog/Confirm.d.vue.ts +1 -1
  5. package/dist/runtime/components/dialog/Confirm.vue.d.ts +1 -1
  6. package/dist/runtime/components/dialog/ImportResult.d.vue.ts +2 -2
  7. package/dist/runtime/components/dialog/ImportResult.vue.d.ts +2 -2
  8. package/dist/runtime/components/dialog/default/Confirm.d.vue.ts +2 -2
  9. package/dist/runtime/components/dialog/default/Confirm.vue.d.ts +2 -2
  10. package/dist/runtime/components/dialog/default/Notify.d.vue.ts +3 -3
  11. package/dist/runtime/components/dialog/default/Notify.vue.d.ts +3 -3
  12. package/dist/runtime/components/dialog/default/VerifyUser.d.vue.ts +2 -2
  13. package/dist/runtime/components/dialog/default/VerifyUser.vue.d.ts +2 -2
  14. package/dist/runtime/components/form/DateTime.d.vue.ts +1 -1
  15. package/dist/runtime/components/form/DateTime.vue.d.ts +1 -1
  16. package/dist/runtime/components/form/Login.d.vue.ts +1 -1
  17. package/dist/runtime/components/form/Login.vue.d.ts +1 -1
  18. package/dist/runtime/components/form/Pad.d.vue.ts +1 -1
  19. package/dist/runtime/components/form/Pad.vue.d.ts +1 -1
  20. package/dist/runtime/components/form/Time.vue +1 -2
  21. package/dist/runtime/components/form/images/Capture.d.vue.ts +1 -1
  22. package/dist/runtime/components/form/images/Capture.vue.d.ts +1 -1
  23. package/dist/runtime/components/label/Field.d.vue.ts +2 -2
  24. package/dist/runtime/components/label/Field.vue.d.ts +2 -2
  25. package/dist/runtime/labs/Calendar.d.vue.ts +4 -4
  26. package/dist/runtime/labs/Calendar.vue.d.ts +4 -4
  27. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.3.1"
6
6
  },
7
- "version": "4.0.19",
7
+ "version": "4.0.20",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -17,16 +17,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
17
17
  reader: null;
18
18
  disableWhileLoading: boolean;
19
19
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
- loading: (loading: boolean) => any;
21
20
  error: (err: unknown) => any;
21
+ loading: (loading: boolean) => any;
22
22
  read: (payload: PatientRegisterPayload) => any;
23
23
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
24
24
  withPhoto: boolean;
25
25
  reader: null;
26
26
  disableWhileLoading: boolean;
27
27
  }>>> & Readonly<{
28
- onLoading?: ((loading: boolean) => any) | undefined;
29
28
  onError?: ((err: unknown) => any) | undefined;
29
+ onLoading?: ((loading: boolean) => any) | undefined;
30
30
  onRead?: ((payload: PatientRegisterPayload) => any) | undefined;
31
31
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -17,16 +17,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
17
17
  reader: null;
18
18
  disableWhileLoading: boolean;
19
19
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
- loading: (loading: boolean) => any;
21
20
  error: (err: unknown) => any;
21
+ loading: (loading: boolean) => any;
22
22
  read: (payload: PatientRegisterPayload) => any;
23
23
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
24
24
  withPhoto: boolean;
25
25
  reader: null;
26
26
  disableWhileLoading: boolean;
27
27
  }>>> & Readonly<{
28
- onLoading?: ((loading: boolean) => any) | undefined;
29
28
  onError?: ((err: unknown) => any) | undefined;
29
+ onLoading?: ((loading: boolean) => any) | undefined;
30
30
  onRead?: ((payload: PatientRegisterPayload) => any) | undefined;
31
31
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,9 +21,9 @@ declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {},
21
21
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
22
22
  "onUpdate:result"?: ((value: boolean) => any) | undefined;
23
23
  }>, {
24
- title: string;
25
24
  message: string;
26
25
  width: string;
26
+ title: string;
27
27
  buttonTrueText: string;
28
28
  buttonFalseText: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -21,9 +21,9 @@ declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {},
21
21
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
22
22
  "onUpdate:result"?: ((value: boolean) => any) | undefined;
23
23
  }>, {
24
- title: string;
25
24
  message: string;
26
25
  width: string;
26
+ title: string;
27
27
  buttonTrueText: string;
28
28
  buttonFalseText: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -14,12 +14,12 @@ interface DialogImportResultProps {
14
14
  }
15
15
  declare const __VLS_export: import("vue").DefineComponent<DialogImportResultProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
16
  "update:modelValue": (value: boolean) => any;
17
- "retry-all": () => any;
18
17
  retry: (index: number) => any;
18
+ "retry-all": () => any;
19
19
  }, string, import("vue").PublicProps, Readonly<DialogImportResultProps> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
21
- "onRetry-all"?: (() => any) | undefined;
22
21
  onRetry?: ((index: number) => any) | undefined;
22
+ "onRetry-all"?: (() => any) | undefined;
23
23
  }>, {
24
24
  title: string;
25
25
  isImporting: boolean;
@@ -14,12 +14,12 @@ interface DialogImportResultProps {
14
14
  }
15
15
  declare const __VLS_export: import("vue").DefineComponent<DialogImportResultProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
16
  "update:modelValue": (value: boolean) => any;
17
- "retry-all": () => any;
18
17
  retry: (index: number) => any;
18
+ "retry-all": () => any;
19
19
  }, string, import("vue").PublicProps, Readonly<DialogImportResultProps> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
21
- "onRetry-all"?: (() => any) | undefined;
22
21
  onRetry?: ((index: number) => any) | undefined;
22
+ "onRetry-all"?: (() => any) | undefined;
23
23
  }>, {
24
24
  title: string;
25
25
  isImporting: boolean;
@@ -23,10 +23,10 @@ declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {},
23
23
  onResolve?: ((value: boolean) => any) | undefined;
24
24
  onReject?: ((value: any) => any) | undefined;
25
25
  }>, {
26
- title: string;
27
- type: "primary" | "success" | "warning" | "info" | "error";
28
26
  message: string;
29
27
  width: string;
28
+ title: string;
29
+ type: "primary" | "success" | "warning" | "info" | "error";
30
30
  buttonTrueText: string;
31
31
  buttonFalseText: string;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -23,10 +23,10 @@ declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {},
23
23
  onResolve?: ((value: boolean) => any) | undefined;
24
24
  onReject?: ((value: any) => any) | undefined;
25
25
  }>, {
26
- title: string;
27
- type: "primary" | "success" | "warning" | "info" | "error";
28
26
  message: string;
29
27
  width: string;
28
+ title: string;
29
+ type: "primary" | "success" | "warning" | "info" | "error";
30
30
  buttonTrueText: string;
31
31
  buttonFalseText: string;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -13,11 +13,11 @@ declare const __VLS_export: import("vue").DefineComponent<DialogProps, {}, {}, {
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
14
  onResolve?: ((value: boolean) => any) | undefined;
15
15
  }>, {
16
- title: string;
17
- buttonText: string;
18
- type: "primary" | "success" | "warning" | "info" | "error";
19
16
  message: string;
20
17
  width: string;
18
+ title: string;
19
+ type: "primary" | "success" | "warning" | "info" | "error";
20
+ buttonText: string;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
@@ -13,11 +13,11 @@ declare const __VLS_export: import("vue").DefineComponent<DialogProps, {}, {}, {
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
14
  onResolve?: ((value: boolean) => any) | undefined;
15
15
  }>, {
16
- title: string;
17
- buttonText: string;
18
- type: "primary" | "success" | "warning" | "info" | "error";
19
16
  message: string;
20
17
  width: string;
18
+ title: string;
19
+ type: "primary" | "success" | "warning" | "info" | "error";
20
+ buttonText: string;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
@@ -17,10 +17,10 @@ declare const __VLS_export: import("vue").DefineComponent<DialogProps, {}, {}, {
17
17
  onResolve?: ((value: string) => any) | undefined;
18
18
  onReject?: ((value: any) => any) | undefined;
19
19
  }>, {
20
- title: string;
21
- type: "primary" | "success" | "warning" | "info" | "error";
22
20
  message: string;
23
21
  width: string;
22
+ title: string;
23
+ type: "primary" | "success" | "warning" | "info" | "error";
24
24
  confirmButtonText: string;
25
25
  cancelButtonText: string;
26
26
  fixedUsername: boolean | string;
@@ -17,10 +17,10 @@ declare const __VLS_export: import("vue").DefineComponent<DialogProps, {}, {}, {
17
17
  onResolve?: ((value: string) => any) | undefined;
18
18
  onReject?: ((value: any) => any) | undefined;
19
19
  }>, {
20
- title: string;
21
- type: "primary" | "success" | "warning" | "info" | "error";
22
20
  message: string;
23
21
  width: string;
22
+ title: string;
23
+ type: "primary" | "success" | "warning" | "info" | "error";
24
24
  confirmButtonText: string;
25
25
  cancelButtonText: string;
26
26
  fixedUsername: boolean | string;
@@ -22,9 +22,9 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
22
22
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
23
23
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
24
24
  }>, {
25
+ readonly: boolean;
25
26
  locale: "TH" | "EN";
26
27
  format: dateFormat | string;
27
- readonly: boolean;
28
28
  dense: boolean;
29
29
  pickerOnly: boolean;
30
30
  defaultDate: boolean | string;
@@ -22,9 +22,9 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
22
22
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
23
23
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
24
24
  }>, {
25
+ readonly: boolean;
25
26
  locale: "TH" | "EN";
26
27
  format: dateFormat | string;
27
- readonly: boolean;
28
28
  dense: boolean;
29
29
  pickerOnly: boolean;
30
30
  defaultDate: boolean | string;
@@ -15,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
15
15
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
16
16
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
17
17
  }>, {
18
- title: string;
19
18
  loading: boolean;
19
+ title: string;
20
20
  errorMessages: string;
21
21
  hint: string;
22
22
  btnSubmit: string;
@@ -15,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
15
15
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
16
16
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
17
17
  }>, {
18
- title: string;
19
18
  loading: boolean;
19
+ title: string;
20
20
  errorMessages: string;
21
21
  hint: string;
22
22
  btnSubmit: string;
@@ -681,9 +681,9 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
681
681
  }>, {
682
682
  disabled: boolean;
683
683
  readonly: boolean;
684
+ parentTemplates: string | string[];
684
685
  isolated: boolean;
685
686
  decoration: object;
686
- parentTemplates: string | string[];
687
687
  dirtyClass: string;
688
688
  dirtyOnCreate: boolean;
689
689
  sanitizeDelay: number;
@@ -681,9 +681,9 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
681
681
  }>, {
682
682
  disabled: boolean;
683
683
  readonly: boolean;
684
+ parentTemplates: string | string[];
684
685
  isolated: boolean;
685
686
  decoration: object;
686
- parentTemplates: string | string[];
687
687
  dirtyClass: string;
688
688
  dirtyOnCreate: boolean;
689
689
  sanitizeDelay: number;
@@ -73,13 +73,12 @@ watchEffect(() => {
73
73
  }
74
74
  });
75
75
  watch(time, (newValue) => {
76
- if (!isMenuOpen.value) emit("update:modelValue", newValue);
76
+ emit("update:modelValue", newValue);
77
77
  });
78
78
  watch(isMenuOpen, () => {
79
79
  if (isMenuOpen.value && !time.value) {
80
80
  time.value = Datetime().now().toFormat(props.enableSeconds ? "HH:mm:ss" : "HH:mm:00");
81
81
  }
82
- if (!isMenuOpen.value) emit("update:modelValue", time.value);
83
82
  });
84
83
  watch(() => props.modelValue, () => {
85
84
  setTime(props.modelValue || null);
@@ -78,10 +78,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
78
78
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
79
79
  "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
80
80
  }>, {
81
- buttonText: string;
82
81
  disabled: boolean;
83
82
  maxWidth: string | number;
84
83
  readonly: boolean;
84
+ buttonText: string;
85
85
  imageFormat: ImageFormat;
86
86
  autoStart: boolean;
87
87
  fileOnly: boolean;
@@ -78,10 +78,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
78
78
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
79
79
  "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
80
80
  }>, {
81
- buttonText: string;
82
81
  disabled: boolean;
83
82
  maxWidth: string | number;
84
83
  readonly: boolean;
84
+ buttonText: string;
85
85
  imageFormat: ImageFormat;
86
86
  autoStart: boolean;
87
87
  fileOnly: boolean;
@@ -22,11 +22,11 @@ type __VLS_Slots = {} & {
22
22
  };
23
23
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
24
24
  value: string | null;
25
- label: string;
26
25
  size: "large" | "medium";
26
+ label: string;
27
27
  horizontal: boolean;
28
- notFoundText: string;
29
28
  truncate: boolean;
29
+ notFoundText: string;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
32
  declare const _default: typeof __VLS_export;
@@ -22,11 +22,11 @@ type __VLS_Slots = {} & {
22
22
  };
23
23
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
24
24
  value: string | null;
25
- label: string;
26
25
  size: "large" | "medium";
26
+ label: string;
27
27
  horizontal: boolean;
28
- notFoundText: string;
29
28
  truncate: boolean;
29
+ notFoundText: string;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
32
  declare const _default: typeof __VLS_export;
@@ -18,18 +18,18 @@ interface CalendarProps {
18
18
  mode: 'dayGridMonth' | 'timeGridDay';
19
19
  }
20
20
  declare const __VLS_export: import("vue").DefineComponent<CalendarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
- select: (...args: any[]) => void;
22
21
  dialog: (...args: any[]) => void;
22
+ select: (...args: any[]) => void;
23
23
  }, string, import("vue").PublicProps, Readonly<CalendarProps> & Readonly<{
24
- onSelect?: ((...args: any[]) => any) | undefined;
25
24
  onDialog?: ((...args: any[]) => any) | undefined;
25
+ onSelect?: ((...args: any[]) => any) | undefined;
26
26
  }>, {
27
+ height: string | number;
28
+ mode: "dayGridMonth" | "timeGridDay";
27
29
  locale: "th" | "en";
28
30
  toolBarLeft: string;
29
31
  toolBarCenter: string;
30
32
  toolBarRight: string;
31
- height: string | number;
32
- mode: "dayGridMonth" | "timeGridDay";
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const _default: typeof __VLS_export;
35
35
  export default _default;
@@ -18,18 +18,18 @@ interface CalendarProps {
18
18
  mode: 'dayGridMonth' | 'timeGridDay';
19
19
  }
20
20
  declare const __VLS_export: import("vue").DefineComponent<CalendarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
- select: (...args: any[]) => void;
22
21
  dialog: (...args: any[]) => void;
22
+ select: (...args: any[]) => void;
23
23
  }, string, import("vue").PublicProps, Readonly<CalendarProps> & Readonly<{
24
- onSelect?: ((...args: any[]) => any) | undefined;
25
24
  onDialog?: ((...args: any[]) => any) | undefined;
25
+ onSelect?: ((...args: any[]) => any) | undefined;
26
26
  }>, {
27
+ height: string | number;
28
+ mode: "dayGridMonth" | "timeGridDay";
27
29
  locale: "th" | "en";
28
30
  toolBarLeft: string;
29
31
  toolBarCenter: string;
30
32
  toolBarRight: string;
31
- height: string | number;
32
- mode: "dayGridMonth" | "timeGridDay";
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const _default: typeof __VLS_export;
35
35
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramathibodi/nuxt-commons",
3
- "version": "4.0.19",
3
+ "version": "4.0.20",
4
4
  "description": "Ramathibodi Nuxt modules for common components",
5
5
  "repository": {
6
6
  "type": "git",