pukaad-ui-lib 1.344.0 → 1.345.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.344.0",
4
+ "version": "1.345.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -11,7 +11,6 @@ type __VLS_Props = {
11
11
  };
12
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
13
  title: string;
14
- variant: "featured" | "album";
15
14
  state: "personal" | "office" | "business";
16
15
  photos: MediaItem[];
17
16
  videos: MediaItem[];
@@ -106,14 +106,14 @@ const { convertNumber } = useConvert();
106
106
  const props = defineProps({
107
107
  photos: { type: Array, required: false, default: () => [] },
108
108
  videos: { type: Array, required: false, default: () => [] },
109
- variant: { type: String, required: false, default: "featured" },
109
+ variant: { type: String, required: false },
110
110
  state: { type: String, required: false, default: "personal" },
111
111
  title: { type: String, required: false, default: "" }
112
112
  });
113
113
  const layoutMode = computed(() => {
114
+ if (props.variant) return props.variant;
114
115
  if (props.state === "office" || props.state === "business") return "album";
115
- if (props.state === "personal") return "featured";
116
- return props.variant;
116
+ return "featured";
117
117
  });
118
118
  const photos = computed(() => props.photos.filter((p) => !!p.url));
119
119
  const videos = computed(() => props.videos.filter((p) => !!p.url));
@@ -11,7 +11,6 @@ type __VLS_Props = {
11
11
  };
12
12
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
13
  title: string;
14
- variant: "featured" | "album";
15
14
  state: "personal" | "office" | "business";
16
15
  photos: MediaItem[];
17
16
  videos: MediaItem[];
@@ -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;
69
67
  responsive: boolean;
70
68
  restore: boolean;
71
69
  checkCrossOrigin: boolean;
72
70
  checkOrientation: boolean;
73
71
  crossorigin: "" | "anonymous" | "use-credentials";
72
+ modal: boolean;
74
73
  guides: boolean;
75
74
  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;
69
67
  responsive: boolean;
70
68
  restore: boolean;
71
69
  checkCrossOrigin: boolean;
72
70
  checkOrientation: boolean;
73
71
  crossorigin: "" | "anonymous" | "use-credentials";
72
+ modal: boolean;
74
73
  guides: boolean;
75
74
  highlight: boolean;
75
+ background: boolean;
76
76
  autoCrop: boolean;
77
77
  movable: boolean;
78
78
  rotatable: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.344.0",
3
+ "version": "1.345.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",