pukaad-ui-lib 1.102.0 → 1.104.0

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 (26) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/dialog/dialog-email-OTP.d.vue.ts +2 -2
  3. package/dist/runtime/components/dialog/dialog-email-OTP.vue.d.ts +2 -2
  4. package/dist/runtime/components/dialog/dialog-phone-OTP.d.vue.ts +2 -2
  5. package/dist/runtime/components/dialog/dialog-phone-OTP.vue.d.ts +2 -2
  6. package/dist/runtime/components/input/input-address.d.vue.ts +1 -1
  7. package/dist/runtime/components/input/input-address.vue.d.ts +1 -1
  8. package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
  9. package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
  10. package/dist/runtime/components/input/input-content.vue +4 -2
  11. package/dist/runtime/components/input/input-tag.d.vue.ts +1 -1
  12. package/dist/runtime/components/input/input-tag.vue.d.ts +1 -1
  13. package/dist/runtime/components/modal/modal-account-disabled-alert.d.vue.ts +2 -2
  14. package/dist/runtime/components/modal/modal-account-disabled-alert.vue.d.ts +2 -2
  15. package/dist/runtime/components/modal/modal-account-disabled-confirmed.d.vue.ts +2 -2
  16. package/dist/runtime/components/modal/modal-account-disabled-confirmed.vue.d.ts +2 -2
  17. package/dist/runtime/components/modal/modal-account-disabled-reason.d.vue.ts +2 -2
  18. package/dist/runtime/components/modal/modal-account-disabled-reason.vue.d.ts +2 -2
  19. package/dist/runtime/components/modal/modal-password-confirmed.d.vue.ts +2 -2
  20. package/dist/runtime/components/modal/modal-password-confirmed.vue.d.ts +2 -2
  21. package/dist/runtime/components/modal/modal-password-new.d.vue.ts +2 -2
  22. package/dist/runtime/components/modal/modal-password-new.vue.d.ts +2 -2
  23. package/dist/runtime/components/modal/modal-phone-OTP.d.vue.ts +2 -2
  24. package/dist/runtime/components/modal/modal-phone-OTP.vue.d.ts +2 -2
  25. package/dist/runtime/composables/useConvert.js +1 -1
  26. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.102.0",
4
+ "version": "1.104.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- complete: () => any;
11
10
  close: () => any;
11
+ complete: () => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- onComplete?: (() => any) | undefined;
15
14
  onClose?: (() => any) | undefined;
15
+ onComplete?: (() => any) | undefined;
16
16
  }>, {
17
17
  confirmedText: string;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- complete: () => any;
11
10
  close: () => any;
11
+ complete: () => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- onComplete?: (() => any) | undefined;
15
14
  onClose?: (() => any) | undefined;
15
+ onComplete?: (() => any) | undefined;
16
16
  }>, {
17
17
  confirmedText: string;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- complete: (value: string) => any;
11
10
  close: () => any;
11
+ complete: (value: string) => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- onComplete?: ((value: string) => any) | undefined;
15
14
  onClose?: (() => any) | undefined;
15
+ onComplete?: ((value: string) => any) | undefined;
16
16
  }>, {
17
17
  phone: string;
18
18
  confirmedText: string;
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- complete: (value: string) => any;
11
10
  close: () => any;
11
+ complete: (value: string) => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- onComplete?: ((value: string) => any) | undefined;
15
14
  onClose?: (() => any) | undefined;
15
+ onComplete?: ((value: string) => any) | undefined;
16
16
  }>, {
17
17
  phone: string;
18
18
  confirmedText: string;
@@ -48,11 +48,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  label: string;
49
49
  required: boolean;
50
50
  name: string;
51
- gap: string;
52
51
  placeholder: string;
53
52
  labelDetail: string;
54
53
  placeholderDetail: string;
55
54
  requiredDetail: boolean;
55
+ gap: string;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
57
57
  declare const _default: typeof __VLS_export;
58
58
  export default _default;
@@ -48,11 +48,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  label: string;
49
49
  required: boolean;
50
50
  name: string;
51
- gap: string;
52
51
  placeholder: string;
53
52
  labelDetail: string;
54
53
  placeholderDetail: string;
55
54
  requiredDetail: boolean;
55
+ gap: string;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
57
57
  declare const _default: typeof __VLS_export;
58
58
  export default _default;
@@ -36,9 +36,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
36
36
  id: string;
37
37
  name: string;
38
38
  description: string;
39
+ limit: number;
39
40
  options: AutocompleteOption[] | string[] | number[];
40
41
  placeholder: string;
41
- limit: number;
42
42
  disabledErrorMessage: boolean;
43
43
  disabledBorder: boolean;
44
44
  showCounter: boolean;
@@ -36,9 +36,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
36
36
  id: string;
37
37
  name: string;
38
38
  description: string;
39
+ limit: number;
39
40
  options: AutocompleteOption[] | string[] | number[];
40
41
  placeholder: string;
41
- limit: number;
42
42
  disabledErrorMessage: boolean;
43
43
  disabledBorder: boolean;
44
44
  showCounter: boolean;
@@ -89,9 +89,11 @@ onMounted(() => {
89
89
  if (filteredOps.length !== currentDeltaJson.ops.length) {
90
90
  quillEditor.setContents({ ops: filteredOps });
91
91
  }
92
- modelValue.value = { ops: filteredOps };
92
+ const text = quillEditor.getText();
93
+ modelValue.value = text.trim().length === 0 ? void 0 : { ops: filteredOps };
93
94
  } else {
94
- modelValue.value = currentDeltaJson;
95
+ const text = quillEditor.getText();
96
+ modelValue.value = text.trim().length === 0 ? void 0 : currentDeltaJson;
95
97
  }
96
98
  }
97
99
  });
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
18
18
  "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
19
19
  }>, {
20
20
  name: string;
21
- placeholder: string;
22
21
  limit: number;
22
+ placeholder: string;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  export default _default;
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
18
18
  "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
19
19
  }>, {
20
20
  name: string;
21
- placeholder: string;
22
21
  limit: number;
22
+ placeholder: string;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  export default _default;
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (value: boolean) => any;
10
10
  } & {
11
- complete: () => any;
12
11
  close: () => any;
12
+ complete: () => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
15
- onComplete?: (() => any) | undefined;
16
15
  onClose?: (() => any) | undefined;
16
+ onComplete?: (() => any) | undefined;
17
17
  }>, {
18
18
  confirmedText: string;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (value: boolean) => any;
10
10
  } & {
11
- complete: () => any;
12
11
  close: () => any;
12
+ complete: () => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
15
- onComplete?: (() => any) | undefined;
16
15
  onClose?: (() => any) | undefined;
16
+ onComplete?: (() => any) | undefined;
17
17
  }>, {
18
18
  confirmedText: string;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (value: boolean) => any;
10
10
  } & {
11
- complete: () => any;
12
11
  close: () => any;
12
+ complete: () => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
15
- onComplete?: (() => any) | undefined;
16
15
  onClose?: (() => any) | undefined;
16
+ onComplete?: (() => any) | undefined;
17
17
  }>, {
18
18
  confirmedText: string;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (value: boolean) => any;
10
10
  } & {
11
- complete: () => any;
12
11
  close: () => any;
12
+ complete: () => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
15
- onComplete?: (() => any) | undefined;
16
15
  onClose?: (() => any) | undefined;
16
+ onComplete?: (() => any) | undefined;
17
17
  }>, {
18
18
  confirmedText: string;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (value: boolean) => any;
10
10
  } & {
11
- complete: () => any;
12
11
  close: () => any;
12
+ complete: () => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
15
- onComplete?: (() => any) | undefined;
16
15
  onClose?: (() => any) | undefined;
16
+ onComplete?: (() => any) | undefined;
17
17
  }>, {
18
18
  confirmedText: string;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (value: boolean) => any;
10
10
  } & {
11
- complete: () => any;
12
11
  close: () => any;
12
+ complete: () => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
15
- onComplete?: (() => any) | undefined;
16
15
  onClose?: (() => any) | undefined;
16
+ onComplete?: (() => any) | undefined;
17
17
  }>, {
18
18
  confirmedText: string;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -12,16 +12,16 @@ type __VLS_ModelProps = {
12
12
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  "update:modelValue": (value: boolean) => any;
15
+ close: () => any;
15
16
  complete: (data: {
16
17
  secId: string;
17
18
  }) => any;
18
- close: () => any;
19
19
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
21
+ onClose?: (() => any) | undefined;
21
22
  onComplete?: ((data: {
22
23
  secId: string;
23
24
  }) => any) | undefined;
24
- onClose?: (() => any) | undefined;
25
25
  }>, {
26
26
  title: string;
27
27
  disabledForgotPassword: boolean;
@@ -12,16 +12,16 @@ type __VLS_ModelProps = {
12
12
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  "update:modelValue": (value: boolean) => any;
15
+ close: () => any;
15
16
  complete: (data: {
16
17
  secId: string;
17
18
  }) => any;
18
- close: () => any;
19
19
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
21
+ onClose?: (() => any) | undefined;
21
22
  onComplete?: ((data: {
22
23
  secId: string;
23
24
  }) => any) | undefined;
24
- onClose?: (() => any) | undefined;
25
25
  }>, {
26
26
  title: string;
27
27
  disabledForgotPassword: boolean;
@@ -11,16 +11,16 @@ type __VLS_ModelProps = {
11
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
13
  "update:modelValue": (value: boolean) => any;
14
+ close: () => any;
14
15
  complete: (data: {
15
16
  secId: string;
16
17
  }) => any;
17
- close: () => any;
18
18
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
+ onClose?: (() => any) | undefined;
20
21
  onComplete?: ((data: {
21
22
  secId: string;
22
23
  }) => any) | undefined;
23
- onClose?: (() => any) | undefined;
24
24
  }>, {
25
25
  title: string;
26
26
  confirmText: string;
@@ -11,16 +11,16 @@ type __VLS_ModelProps = {
11
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
13
  "update:modelValue": (value: boolean) => any;
14
+ close: () => any;
14
15
  complete: (data: {
15
16
  secId: string;
16
17
  }) => any;
17
- close: () => any;
18
18
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
+ onClose?: (() => any) | undefined;
20
21
  onComplete?: ((data: {
21
22
  secId: string;
22
23
  }) => any) | undefined;
23
- onClose?: (() => any) | undefined;
24
24
  }>, {
25
25
  title: string;
26
26
  confirmText: string;
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- complete: (value: string) => any;
11
10
  close: () => any;
11
+ complete: (value: string) => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- onComplete?: ((value: string) => any) | undefined;
15
14
  onClose?: (() => any) | undefined;
15
+ onComplete?: ((value: string) => any) | undefined;
16
16
  }>, {
17
17
  phone: string;
18
18
  confirmedText: string;
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: boolean) => any;
9
9
  } & {
10
- complete: (value: string) => any;
11
10
  close: () => any;
11
+ complete: (value: string) => any;
12
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
13
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
- onComplete?: ((value: string) => any) | undefined;
15
14
  onClose?: (() => any) | undefined;
15
+ onComplete?: ((value: string) => any) | undefined;
16
16
  }>, {
17
17
  phone: string;
18
18
  confirmedText: string;
@@ -35,7 +35,7 @@ export class Convert {
35
35
  * Convert date time to Thai format
36
36
  * @example convertDateTime("2024-01-01 12:00") => "1 ม.ค. 2567 12:00"
37
37
  */
38
- convertDateTime(date, format = "D MMM BBBB HH:mm") {
38
+ convertDateTime(date, format = "D MMM BBBB, HH:mm") {
39
39
  if (!date) return "-";
40
40
  return dayjs(date).format(format);
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.102.0",
3
+ "version": "1.104.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",