pukaad-ui-lib 1.271.2 → 1.271.3

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.271.2",
4
+ "version": "1.271.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -7,9 +7,9 @@ declare const __VLS_export: import("vue").DefineComponent<CardProfileAboutProps,
7
7
  onChat?: (() => any) | undefined;
8
8
  }>, {
9
9
  type: "article" | "media" | "sale-info";
10
+ preview: boolean;
10
11
  optionMenuButtonType: "solid" | "text";
11
12
  actionsHidden: boolean;
12
- preview: boolean;
13
13
  disabledPadding: boolean;
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  declare const _default: typeof __VLS_export;
@@ -7,9 +7,9 @@ declare const __VLS_export: import("vue").DefineComponent<CardProfileAboutProps,
7
7
  onChat?: (() => any) | undefined;
8
8
  }>, {
9
9
  type: "article" | "media" | "sale-info";
10
+ preview: boolean;
10
11
  optionMenuButtonType: "solid" | "text";
11
12
  actionsHidden: boolean;
12
- preview: boolean;
13
13
  disabledPadding: boolean;
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  declare const _default: typeof __VLS_export;
@@ -24,8 +24,8 @@ type __VLS_Props = {
24
24
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
25
  disabled: boolean;
26
26
  id: string;
27
- disabledPadding: boolean;
28
27
  state: string;
28
+ disabledPadding: boolean;
29
29
  itemCount: Count;
30
30
  itemActive: Reacted;
31
31
  padding: string | number;
@@ -24,8 +24,8 @@ type __VLS_Props = {
24
24
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
25
  disabled: boolean;
26
26
  id: string;
27
- disabledPadding: boolean;
28
27
  state: string;
28
+ disabledPadding: boolean;
29
29
  itemCount: Count;
30
30
  itemActive: Reacted;
31
31
  padding: string | number;
@@ -13,8 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
13
13
  "onSelect-image"?: ((item: CardReviewProps, index: number, liked: boolean) => any) | undefined;
14
14
  }>, {
15
15
  item: CardReviewProps;
16
- disabledMenu: boolean;
17
16
  isProfile: boolean;
17
+ disabledMenu: boolean;
18
18
  disabledLike: boolean;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const _default: typeof __VLS_export;
@@ -13,8 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
13
13
  "onSelect-image"?: ((item: CardReviewProps, index: number, liked: boolean) => any) | undefined;
14
14
  }>, {
15
15
  item: CardReviewProps;
16
- disabledMenu: boolean;
17
16
  isProfile: boolean;
17
+ disabledMenu: boolean;
18
18
  disabledLike: boolean;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const _default: typeof __VLS_export;
@@ -8,9 +8,9 @@ type __VLS_Props = {
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
9
  title: string;
10
10
  variant: "featured" | "album";
11
- state: "personal" | "office" | "business";
12
11
  photos: string[];
13
12
  videos: string[];
13
+ state: "personal" | "office" | "business";
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  export default _default;
@@ -8,9 +8,9 @@ type __VLS_Props = {
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
9
  title: string;
10
10
  variant: "featured" | "album";
11
- state: "personal" | "office" | "business";
12
11
  photos: string[];
13
12
  videos: string[];
13
+ state: "personal" | "office" | "business";
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  export default _default;
@@ -30,9 +30,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
30
30
  "onExplore-profiles"?: (() => any) | undefined;
31
31
  "onExplore-places"?: (() => any) | undefined;
32
32
  }>, {
33
- isMyProfile: boolean;
34
33
  profileId: string;
35
34
  defaultTab: "followers" | "following" | "favorites";
35
+ isMyProfile: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  export default _default;
@@ -30,9 +30,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
30
30
  "onExplore-profiles"?: (() => any) | undefined;
31
31
  "onExplore-places"?: (() => any) | undefined;
32
32
  }>, {
33
- isMyProfile: boolean;
34
33
  profileId: string;
35
34
  defaultTab: "followers" | "following" | "favorites";
35
+ isMyProfile: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  export default _default;
@@ -48,9 +48,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  pageSize: number;
49
49
  id: string;
50
50
  name: string;
51
- description: string;
52
- options: AutocompleteOption[] | string[] | number[];
53
51
  limit: number;
52
+ options: AutocompleteOption[] | string[] | number[];
53
+ description: string;
54
54
  placeholder: string;
55
55
  disabledErrorMessage: boolean;
56
56
  disabledBorder: boolean;
@@ -48,9 +48,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  pageSize: number;
49
49
  id: string;
50
50
  name: string;
51
- description: string;
52
- options: AutocompleteOption[] | string[] | number[];
53
51
  limit: number;
52
+ options: AutocompleteOption[] | string[] | number[];
53
+ description: string;
54
54
  placeholder: string;
55
55
  disabledErrorMessage: boolean;
56
56
  disabledBorder: boolean;
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
14
14
  title: string;
15
15
  items: string[];
16
16
  selectIndex: number;
17
- isProfile: boolean;
18
17
  review: import("../../../types/components/card/card-review.js").CardReviewProps;
18
+ isProfile: boolean;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  export default _default;
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
14
14
  title: string;
15
15
  items: string[];
16
16
  selectIndex: number;
17
- isProfile: boolean;
18
17
  review: import("../../../types/components/card/card-review.js").CardReviewProps;
18
+ isProfile: boolean;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import type { PickerOptionMenuUserProps } from "#pukaad-ui/types/components/picker/picker-option-menu/picker-option-menu-user";
2
2
  declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "profile-name-updated": (name: string) => any;
3
4
  "blog-edit": () => any;
4
5
  "report-announce": () => any;
5
6
  "blog-unpin": () => any;
@@ -17,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserPr
17
18
  "review-edit": () => any;
18
19
  "review-delete": () => any;
19
20
  archive: () => any;
20
- "profile-name-updated": (name: string) => any;
21
21
  }, string, import("vue").PublicProps, Readonly<PickerOptionMenuUserProps> & Readonly<{
22
+ "onProfile-name-updated"?: ((name: string) => any) | undefined;
22
23
  "onBlog-edit"?: (() => any) | undefined;
23
24
  "onReport-announce"?: (() => any) | undefined;
24
25
  "onBlog-unpin"?: (() => any) | undefined;
@@ -36,7 +37,6 @@ declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserPr
36
37
  "onReview-edit"?: (() => any) | undefined;
37
38
  "onReview-delete"?: (() => any) | undefined;
38
39
  onArchive?: (() => any) | undefined;
39
- "onProfile-name-updated"?: ((name: string) => any) | undefined;
40
40
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
41
  declare const _default: typeof __VLS_export;
42
42
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import type { PickerOptionMenuUserProps } from "#pukaad-ui/types/components/picker/picker-option-menu/picker-option-menu-user";
2
2
  declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "profile-name-updated": (name: string) => any;
3
4
  "blog-edit": () => any;
4
5
  "report-announce": () => any;
5
6
  "blog-unpin": () => any;
@@ -17,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserPr
17
18
  "review-edit": () => any;
18
19
  "review-delete": () => any;
19
20
  archive: () => any;
20
- "profile-name-updated": (name: string) => any;
21
21
  }, string, import("vue").PublicProps, Readonly<PickerOptionMenuUserProps> & Readonly<{
22
+ "onProfile-name-updated"?: ((name: string) => any) | undefined;
22
23
  "onBlog-edit"?: (() => any) | undefined;
23
24
  "onReport-announce"?: (() => any) | undefined;
24
25
  "onBlog-unpin"?: (() => any) | undefined;
@@ -36,7 +37,6 @@ declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserPr
36
37
  "onReview-edit"?: (() => any) | undefined;
37
38
  "onReview-delete"?: (() => any) | undefined;
38
39
  onArchive?: (() => any) | undefined;
39
- "onProfile-name-updated"?: ((name: string) => any) | undefined;
40
40
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
41
  declare const _default: typeof __VLS_export;
42
42
  export default _default;
@@ -29,7 +29,7 @@ const resolveProvinceIdByHost = async (host, baseURL) => {
29
29
  const activePromise = provinceIdByHostPromise.get(host);
30
30
  if (activePromise) return activePromise;
31
31
  const promise = (async () => {
32
- const response = await $fetch("/api/master/address/provinces", {
32
+ const response = await $fetch("/master/address/provinces", {
33
33
  baseURL,
34
34
  query: { page_size: 100 }
35
35
  });
@@ -11,19 +11,19 @@ const fetchList = async (path, query = {}) => {
11
11
  };
12
12
  const loadProvincesData = async () => {
13
13
  if (!provincesCache) {
14
- provincesCache = await fetchList("/api/master/address/provinces");
14
+ provincesCache = await fetchList("/master/address/provinces");
15
15
  }
16
16
  return provincesCache;
17
17
  };
18
18
  const loadAmphursByProvinceData = async (provinceId) => {
19
19
  if (amphursByProvinceCache.has(provinceId)) return amphursByProvinceCache.get(provinceId);
20
- const data = await fetchList("/api/master/address/amphurs", { province_id: provinceId });
20
+ const data = await fetchList("/master/address/amphurs", { province_id: provinceId });
21
21
  amphursByProvinceCache.set(provinceId, data);
22
22
  return data;
23
23
  };
24
24
  const loadTambonsByAmphurData = async (amphurId) => {
25
25
  if (tambonsByAmphurCache.has(amphurId)) return tambonsByAmphurCache.get(amphurId);
26
- const data = await fetchList("/api/master/address/tambons", { amphur_id: amphurId });
26
+ const data = await fetchList("/master/address/tambons", { amphur_id: amphurId });
27
27
  tambonsByAmphurCache.set(amphurId, data);
28
28
  return data;
29
29
  };
@@ -61,9 +61,9 @@ export function useThaiAddress() {
61
61
  const searchAddress = async (query) => {
62
62
  if (!query || query.length < 2) return [];
63
63
  const [provinces, amphurs, tambons] = await Promise.all([
64
- fetchList("/api/master/address/provinces", { q: query }),
65
- fetchList("/api/master/address/amphurs", { q: query }),
66
- fetchList("/api/master/address/tambons", { q: query })
64
+ fetchList("/master/address/provinces", { q: query }),
65
+ fetchList("/master/address/amphurs", { q: query }),
66
+ fetchList("/master/address/tambons", { q: query })
67
67
  ]);
68
68
  const results = [];
69
69
  const allProvinces = await loadProvincesData();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.271.2",
3
+ "version": "1.271.3",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",