pukaad-ui-lib 1.418.0 → 1.419.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.418.0",
4
+ "version": "1.419.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -35,9 +35,24 @@ const onActionClick = (action) => {
35
35
  };
36
36
  const isPinned = computed(() => props.item?.pinned ?? props.isPinned);
37
37
  const isHidden = computed(() => props.item?.hidden ?? props.isHidden);
38
- const isBookmarked = computed(() => props.item?.bookmarked ?? props.isBookmarked);
38
+ const isBookmarked = computed(
39
+ () => props.item?.bookmarked ?? props.isBookmarked
40
+ );
39
41
  const actions = computed(() => {
40
42
  if (props.state === "my-content") {
43
+ const pinAction = props.hidePin ? [] : [{ name: "pin", icon: "lucide:pin", isActive: isPinned.value }];
44
+ return [
45
+ ...pinAction,
46
+ ...props.hidePreview ? [] : [{ name: "preview", icon: "lucide:tv-minimal-play" }],
47
+ {
48
+ name: "delete",
49
+ icon: "lucide:trash-2",
50
+ variant: "default",
51
+ color: "destructive"
52
+ }
53
+ ];
54
+ }
55
+ if (props.state === "business") {
41
56
  const result = [];
42
57
  if (!props.hidePin && !isHidden.value) {
43
58
  result.push({
@@ -93,6 +108,24 @@ const actions = computed(() => {
93
108
  }
94
109
  return result;
95
110
  }
111
+ if (props.state === "draft") {
112
+ return [
113
+ {
114
+ name: "preview",
115
+ icon: "lucide:tv-minimal-play"
116
+ },
117
+ {
118
+ name: "edit",
119
+ icon: "lucide:square-pen"
120
+ },
121
+ {
122
+ name: "delete",
123
+ icon: "lucide:trash-2",
124
+ variant: "default",
125
+ color: "destructive"
126
+ }
127
+ ];
128
+ }
96
129
  return [];
97
130
  });
98
131
  const visibleActions = computed(
@@ -64,11 +64,11 @@ 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
- crossorigin: "" | "anonymous" | "use-credentials";
68
67
  responsive: boolean;
69
68
  restore: boolean;
70
69
  checkCrossOrigin: boolean;
71
70
  checkOrientation: boolean;
71
+ crossorigin: "" | "anonymous" | "use-credentials";
72
72
  modal: boolean;
73
73
  guides: boolean;
74
74
  highlight: boolean;
@@ -64,11 +64,11 @@ 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
- crossorigin: "" | "anonymous" | "use-credentials";
68
67
  responsive: boolean;
69
68
  restore: boolean;
70
69
  checkCrossOrigin: boolean;
71
70
  checkOrientation: boolean;
71
+ crossorigin: "" | "anonymous" | "use-credentials";
72
72
  modal: boolean;
73
73
  guides: boolean;
74
74
  highlight: boolean;
@@ -59,8 +59,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
59
59
  id: string;
60
60
  name: string;
61
61
  required: boolean;
62
- limit: number;
63
62
  readonly: boolean;
63
+ limit: number;
64
64
  disabledErrorMessage: boolean;
65
65
  disabledBorder: boolean;
66
66
  showCounter: boolean;
@@ -59,8 +59,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
59
59
  id: string;
60
60
  name: string;
61
61
  required: boolean;
62
- limit: number;
63
62
  readonly: boolean;
63
+ limit: number;
64
64
  disabledErrorMessage: boolean;
65
65
  disabledBorder: boolean;
66
66
  showCounter: boolean;
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
47
47
  fullHeight: boolean;
48
48
  fullWidth: boolean;
49
49
  rows: number;
50
- limit: number;
51
50
  readonly: boolean;
51
+ limit: number;
52
52
  disabledErrorMessage: boolean;
53
53
  disabledBorder: boolean;
54
54
  showCounter: boolean;
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
47
47
  fullHeight: boolean;
48
48
  fullWidth: boolean;
49
49
  rows: number;
50
- limit: number;
51
50
  readonly: boolean;
51
+ limit: number;
52
52
  disabledErrorMessage: boolean;
53
53
  disabledBorder: boolean;
54
54
  showCounter: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.418.0",
3
+ "version": "1.419.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",