pukaad-ui-lib 1.301.0 → 1.302.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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.301.0",
4
+ "version": "1.302.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -9,9 +9,11 @@
9
9
  >
10
10
  <div class="flex flex-col gap-[16px]">
11
11
  <div class="flex gap-[16px]">
12
- <div class="w-[178px] h-[100px] rounded-[8px] overflow-hidden flex-shrink-0">
12
+ <div
13
+ v-if="form.coverImage"
14
+ class="w-[178px] h-[100px] rounded-[8px] overflow-hidden flex-shrink-0"
15
+ >
13
16
  <Image
14
- v-if="form.coverImage"
15
17
  :src="form.coverImage"
16
18
  width="auto"
17
19
  height="auto"
@@ -57,7 +59,9 @@
57
59
 
58
60
  <template #footer>
59
61
  <div class="flex justify-end gap-[16px] items-center">
60
- <Button variant="outline" @click="onClose" :disabled="isSubmitting">ยกเลิก</Button>
62
+ <Button variant="outline" @click="onClose" :disabled="isSubmitting"
63
+ >ยกเลิก</Button
64
+ >
61
65
  <Button
62
66
  type="submit"
63
67
  color="primary"
@@ -114,7 +118,9 @@ watch(isOpen, (newVal) => {
114
118
  }
115
119
  });
116
120
  const isEdit = computed(() => (props.item?.rating ?? 0) > 0);
117
- const drawerTitle = computed(() => isEdit.value ? "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E23\u0E35\u0E27\u0E34\u0E27" : "\u0E40\u0E02\u0E35\u0E22\u0E19\u0E23\u0E35\u0E27\u0E34\u0E27");
121
+ const drawerTitle = computed(
122
+ () => isEdit.value ? "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E23\u0E35\u0E27\u0E34\u0E27" : "\u0E40\u0E02\u0E35\u0E22\u0E19\u0E23\u0E35\u0E27\u0E34\u0E27"
123
+ );
118
124
  const hasChanges = () => {
119
125
  const orig = props.item;
120
126
  if (form.value.rating !== orig.rating) return true;
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
64
64
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
65
65
  src: string;
66
66
  center: boolean;
67
+ background: boolean;
68
+ modal: boolean;
67
69
  responsive: boolean;
68
70
  restore: boolean;
69
71
  checkCrossOrigin: boolean;
70
72
  checkOrientation: boolean;
71
73
  crossorigin: "" | "anonymous" | "use-credentials";
72
- modal: boolean;
73
74
  guides: boolean;
74
75
  highlight: boolean;
75
- background: boolean;
76
76
  autoCrop: boolean;
77
77
  movable: boolean;
78
78
  rotatable: boolean;
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
64
64
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
65
65
  src: string;
66
66
  center: boolean;
67
+ background: boolean;
68
+ modal: boolean;
67
69
  responsive: boolean;
68
70
  restore: boolean;
69
71
  checkCrossOrigin: boolean;
70
72
  checkOrientation: boolean;
71
73
  crossorigin: "" | "anonymous" | "use-credentials";
72
- modal: boolean;
73
74
  guides: boolean;
74
75
  highlight: boolean;
75
- background: boolean;
76
76
  autoCrop: boolean;
77
77
  movable: boolean;
78
78
  rotatable: boolean;
@@ -49,11 +49,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
49
49
  label: string;
50
50
  required: boolean;
51
51
  name: string;
52
- gap: string;
53
52
  placeholder: string;
54
53
  labelDetail: string;
55
54
  placeholderDetail: string;
56
55
  requiredDetail: boolean;
56
+ gap: string;
57
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
58
58
  declare const _default: typeof __VLS_export;
59
59
  export default _default;
@@ -49,11 +49,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
49
49
  label: string;
50
50
  required: boolean;
51
51
  name: string;
52
- gap: string;
53
52
  placeholder: string;
54
53
  labelDetail: string;
55
54
  placeholderDetail: string;
56
55
  requiredDetail: boolean;
56
+ gap: string;
57
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
58
58
  declare const _default: typeof __VLS_export;
59
59
  export default _default;
@@ -51,10 +51,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
51
51
  options: AutocompleteOption[] | string[] | number[];
52
52
  description: string;
53
53
  placeholder: string;
54
- limit: number;
55
54
  disabledErrorMessage: boolean;
56
55
  disabledBorder: boolean;
57
56
  showCounter: boolean;
57
+ limit: number;
58
58
  returnObject: boolean;
59
59
  freeText: boolean;
60
60
  valueKey: string;
@@ -51,10 +51,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
51
51
  options: AutocompleteOption[] | string[] | number[];
52
52
  description: string;
53
53
  placeholder: string;
54
- limit: number;
55
54
  disabledErrorMessage: boolean;
56
55
  disabledBorder: boolean;
57
56
  showCounter: boolean;
57
+ limit: number;
58
58
  returnObject: boolean;
59
59
  freeText: boolean;
60
60
  valueKey: string;
@@ -34,9 +34,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
34
34
  fullWidth: boolean;
35
35
  fullHeight: boolean;
36
36
  name: string;
37
- accept: string;
38
- limit: number;
39
37
  disabledErrorMessage: boolean;
38
+ limit: number;
39
+ accept: string;
40
40
  labelIcon: string;
41
41
  disabledDrop: boolean;
42
42
  column: boolean;
@@ -34,9 +34,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
34
34
  fullWidth: boolean;
35
35
  fullHeight: boolean;
36
36
  name: string;
37
- accept: string;
38
- limit: number;
39
37
  disabledErrorMessage: boolean;
38
+ limit: number;
39
+ accept: string;
40
40
  labelIcon: string;
41
41
  disabledDrop: boolean;
42
42
  column: boolean;
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
22
22
  }>, {
23
23
  id: string;
24
24
  name: string;
25
- disabledForgotPassword: boolean;
26
25
  new: boolean;
26
+ disabledForgotPassword: boolean;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  export default _default;
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
22
22
  }>, {
23
23
  id: string;
24
24
  name: string;
25
- disabledForgotPassword: boolean;
26
25
  new: boolean;
26
+ disabledForgotPassword: boolean;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  export default _default;
@@ -59,10 +59,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
59
59
  required: boolean;
60
60
  id: string;
61
61
  name: string;
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
  required: boolean;
60
60
  id: string;
61
61
  name: string;
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>;
@@ -46,10 +46,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
46
46
  id: string;
47
47
  name: string;
48
48
  resize: "none" | "both" | "horizontal" | "vertical";
49
- limit: number;
50
49
  disabledErrorMessage: boolean;
51
50
  disabledBorder: boolean;
52
51
  showCounter: boolean;
52
+ limit: number;
53
53
  readonly: boolean;
54
54
  rows: number;
55
55
  heightScroll: boolean;
@@ -46,10 +46,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
46
46
  id: string;
47
47
  name: string;
48
48
  resize: "none" | "both" | "horizontal" | "vertical";
49
- limit: number;
50
49
  disabledErrorMessage: boolean;
51
50
  disabledBorder: boolean;
52
51
  showCounter: boolean;
52
+ limit: number;
53
53
  readonly: boolean;
54
54
  rows: number;
55
55
  heightScroll: boolean;
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
24
24
  }) => any) | undefined;
25
25
  }>, {
26
26
  title: string;
27
- confirmText: string;
28
27
  disabledForgotPassword: boolean;
28
+ confirmText: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const _default: typeof __VLS_export;
31
31
  export default _default;
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
24
24
  }) => any) | undefined;
25
25
  }>, {
26
26
  title: string;
27
- confirmText: string;
28
27
  disabledForgotPassword: boolean;
28
+ confirmText: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const _default: typeof __VLS_export;
31
31
  export default _default;
@@ -32,8 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
32
32
  }>, {
33
33
  title: string;
34
34
  mode: "login" | "secure";
35
- confirmText: string;
36
35
  disabledForgotPassword: boolean;
36
+ confirmText: string;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
38
  declare const _default: typeof __VLS_export;
39
39
  export default _default;
@@ -32,8 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
32
32
  }>, {
33
33
  title: string;
34
34
  mode: "login" | "secure";
35
- confirmText: string;
36
35
  disabledForgotPassword: boolean;
36
+ confirmText: string;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
38
  declare const _default: typeof __VLS_export;
39
39
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.301.0",
3
+ "version": "1.302.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",