pukaad-ui-lib 1.92.0 → 1.94.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 (28) 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-autocomplete.d.vue.ts +1 -1
  7. package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
  8. package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
  9. package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
  10. package/dist/runtime/components/input/input-text-field.d.vue.ts +1 -1
  11. package/dist/runtime/components/input/input-text-field.vue.d.ts +1 -1
  12. package/dist/runtime/components/input/input-textarea.d.vue.ts +1 -1
  13. package/dist/runtime/components/input/input-textarea.vue.d.ts +1 -1
  14. package/dist/runtime/components/modal/modal-account-disabled-alert.d.vue.ts +2 -2
  15. package/dist/runtime/components/modal/modal-account-disabled-alert.vue.d.ts +2 -2
  16. package/dist/runtime/components/modal/modal-account-disabled-confirmed.d.vue.ts +2 -2
  17. package/dist/runtime/components/modal/modal-account-disabled-confirmed.vue.d.ts +2 -2
  18. package/dist/runtime/components/modal/modal-account-disabled-reason.d.vue.ts +2 -2
  19. package/dist/runtime/components/modal/modal-account-disabled-reason.vue.d.ts +2 -2
  20. package/dist/runtime/components/modal/modal-password-confirmed.d.vue.ts +2 -2
  21. package/dist/runtime/components/modal/modal-password-confirmed.vue.d.ts +2 -2
  22. package/dist/runtime/components/modal/modal-password-new.d.vue.ts +2 -2
  23. package/dist/runtime/components/modal/modal-password-new.vue.d.ts +2 -2
  24. package/dist/runtime/components/modal/modal-phone-OTP.d.vue.ts +2 -2
  25. package/dist/runtime/components/modal/modal-phone-OTP.vue.d.ts +2 -2
  26. package/dist/runtime/composables/useConvert.d.ts +0 -20
  27. package/dist/runtime/composables/useConvert.js +0 -42
  28. 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.92.0",
4
+ "version": "1.94.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;
@@ -38,10 +38,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
38
38
  description: string;
39
39
  options: AutocompleteOption[] | string[] | number[];
40
40
  placeholder: string;
41
- limit: number;
42
41
  disabledErrorMessage: boolean;
43
42
  disabledBorder: boolean;
44
43
  showCounter: boolean;
44
+ limit: number;
45
45
  returnObject: boolean;
46
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
47
  declare const _default: typeof __VLS_export;
@@ -38,10 +38,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
38
38
  description: string;
39
39
  options: AutocompleteOption[] | string[] | number[];
40
40
  placeholder: string;
41
- limit: number;
42
41
  disabledErrorMessage: boolean;
43
42
  disabledBorder: boolean;
44
43
  showCounter: boolean;
44
+ limit: number;
45
45
  returnObject: boolean;
46
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
47
  declare const _default: typeof __VLS_export;
@@ -26,8 +26,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
26
26
  fullHeight: boolean;
27
27
  label: string;
28
28
  name: string;
29
- limit: number;
30
29
  disabledErrorMessage: boolean;
30
+ limit: number;
31
31
  accept: string;
32
32
  labelIcon: string;
33
33
  disabledDrop: boolean;
@@ -26,8 +26,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
26
26
  fullHeight: boolean;
27
27
  label: string;
28
28
  name: string;
29
- limit: number;
30
29
  disabledErrorMessage: boolean;
30
+ limit: number;
31
31
  accept: string;
32
32
  labelIcon: string;
33
33
  disabledDrop: boolean;
@@ -59,10 +59,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
59
59
  id: string;
60
60
  name: string;
61
61
  disabled: boolean;
62
- limit: number;
63
62
  disabledErrorMessage: boolean;
64
63
  disabledBorder: boolean;
65
64
  showCounter: boolean;
65
+ limit: number;
66
66
  readonly: boolean;
67
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
68
68
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -59,10 +59,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
59
59
  id: string;
60
60
  name: string;
61
61
  disabled: boolean;
62
- limit: number;
63
62
  disabledErrorMessage: boolean;
64
63
  disabledBorder: boolean;
65
64
  showCounter: boolean;
65
+ limit: number;
66
66
  readonly: boolean;
67
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
68
68
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -44,10 +44,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
44
44
  id: string;
45
45
  name: string;
46
46
  disabled: boolean;
47
- limit: number;
48
47
  disabledErrorMessage: boolean;
49
48
  disabledBorder: boolean;
50
49
  showCounter: boolean;
50
+ limit: number;
51
51
  readonly: boolean;
52
52
  resize: "none" | "both" | "horizontal" | "vertical";
53
53
  rows: number;
@@ -44,10 +44,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
44
44
  id: string;
45
45
  name: string;
46
46
  disabled: boolean;
47
- limit: number;
48
47
  disabledErrorMessage: boolean;
49
48
  disabledBorder: boolean;
50
49
  showCounter: boolean;
50
+ limit: number;
51
51
  readonly: boolean;
52
52
  resize: "none" | "both" | "horizontal" | "vertical";
53
53
  rows: number;
@@ -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;
@@ -1,24 +1,4 @@
1
1
  export declare class Convert {
2
- /**
3
- * Convert date to Thai Buddhist Era
4
- * @example convertDate("2026-01-20") => "20 มกราคม 2569"
5
- */
6
- convertDate(date: string | Date | null | undefined): string;
7
- /**
8
- * Convert datetime to Thai Buddhist Era with comma separator
9
- * @example convertDateTime("2026-01-20T13:30:00") => "20 มกราคม 2569, 13:30 น."
10
- */
11
- convertDateTime(date: string | Date | null | undefined): string;
12
- /**
13
- * Convert date to short format
14
- * @example convertShortDate("2026-01-20") => "20/01/69"
15
- */
16
- convertShortDate(date: string | Date | null | undefined): string;
17
- /**
18
- * Convert time only
19
- * @example convertTime("2026-01-20T13:30:00") => "13:30 น."
20
- */
21
- convertTime(date: string | Date | null | undefined): string;
22
2
  /**
23
3
  * Convert number to Thai format
24
4
  * @example convertNumber(1500000) => "1.5 ล้าน"
@@ -1,46 +1,4 @@
1
- import dayjs from "#dayjs";
2
- const djs = dayjs;
3
1
  export class Convert {
4
- /**
5
- * Convert date to Thai Buddhist Era
6
- * @example convertDate("2026-01-20") => "20 มกราคม 2569"
7
- */
8
- convertDate(date) {
9
- if (!date) return "-";
10
- const d = djs(date);
11
- if (!d.isValid()) return "-";
12
- return d.format("D MMMM BBBB");
13
- }
14
- /**
15
- * Convert datetime to Thai Buddhist Era with comma separator
16
- * @example convertDateTime("2026-01-20T13:30:00") => "20 มกราคม 2569, 13:30 น."
17
- */
18
- convertDateTime(date) {
19
- if (!date) return "-";
20
- const d = djs(date);
21
- if (!d.isValid()) return "-";
22
- return d.format("D MMMM BBBB, HH:mm \u0E19.");
23
- }
24
- /**
25
- * Convert date to short format
26
- * @example convertShortDate("2026-01-20") => "20/01/69"
27
- */
28
- convertShortDate(date) {
29
- if (!date) return "-";
30
- const d = djs(date);
31
- if (!d.isValid()) return "-";
32
- return d.format("DD/MM/BB");
33
- }
34
- /**
35
- * Convert time only
36
- * @example convertTime("2026-01-20T13:30:00") => "13:30 น."
37
- */
38
- convertTime(date) {
39
- if (!date) return "-";
40
- const d = djs(date);
41
- if (!d.isValid()) return "-";
42
- return d.format("HH:mm \u0E19.");
43
- }
44
2
  /**
45
3
  * Convert number to Thai format
46
4
  * @example convertNumber(1500000) => "1.5 ล้าน"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.92.0",
3
+ "version": "1.94.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",