sprintify-ui 0.10.68 → 0.10.70
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/sprintify-ui.es.js
CHANGED
|
@@ -11778,7 +11778,7 @@ const d0 = {
|
|
|
11778
11778
|
modelValue: { type: [Boolean, String, Number, null] }
|
|
11779
11779
|
},
|
|
11780
11780
|
setup(t) {
|
|
11781
|
-
const n = t, e = w(() => n.modelValue ? "text-white bg-green-500" : "text-
|
|
11781
|
+
const n = t, e = w(() => n.modelValue ? "text-white bg-green-500" : "text-slate-600 bg-slate-200");
|
|
11782
11782
|
return (o, r) => {
|
|
11783
11783
|
const a = St("BaseIcon");
|
|
11784
11784
|
return b(), z("div", {
|
|
@@ -24846,11 +24846,15 @@ const ew = ["onClick"], tw = { class: "px-2 flex items-center" }, nw = { class:
|
|
|
24846
24846
|
showRemove: {
|
|
24847
24847
|
default: !0,
|
|
24848
24848
|
type: Boolean
|
|
24849
|
+
},
|
|
24850
|
+
showLink: {
|
|
24851
|
+
default: !0,
|
|
24852
|
+
type: Boolean
|
|
24849
24853
|
}
|
|
24850
24854
|
},
|
|
24851
24855
|
emits: ["remove"],
|
|
24852
24856
|
setup(t) {
|
|
24853
|
-
const n = t, e = w(() => n.media.file_name), o = w(() => Za(n.media.size)), r = w(() => "url" in n.media ? n.media.url : null);
|
|
24857
|
+
const n = t, e = w(() => n.media.file_name), o = w(() => Za(n.media.size)), r = w(() => n.showLink && "url" in n.media ? n.media.url : null);
|
|
24854
24858
|
return (a, l) => (b(), z("div", Xw, [
|
|
24855
24859
|
B("div", Zw, [
|
|
24856
24860
|
B("div", Qw, [
|
|
@@ -10,6 +10,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
10
|
default: boolean;
|
|
11
11
|
type: BooleanConstructor;
|
|
12
12
|
};
|
|
13
|
+
showLink: {
|
|
14
|
+
default: boolean;
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
};
|
|
13
17
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
18
|
remove: (...args: any[]) => void;
|
|
15
19
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -21,9 +25,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
25
|
default: boolean;
|
|
22
26
|
type: BooleanConstructor;
|
|
23
27
|
};
|
|
28
|
+
showLink: {
|
|
29
|
+
default: boolean;
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
24
32
|
}>> & Readonly<{
|
|
25
33
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
26
34
|
}>, {
|
|
27
35
|
showRemove: boolean;
|
|
36
|
+
showLink: boolean;
|
|
28
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
38
|
export default _default;
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ for (let i = 0; i < 10; i++) {
|
|
|
33
33
|
|
|
34
34
|
items.push({
|
|
35
35
|
id: j + 1,
|
|
36
|
-
name: `Item ${j + 1}
|
|
36
|
+
name: `Item ${j + 1}` + (i == 0 ? " - Very long name to test overflow sdfg dsfg sdfg sdf gsdf g sdfg sdf gsdf g sdfg sdf gsdf gs dfg sdfg sdfg sdf gsdf sdfg dsfg sdfg sdf gsdf g sdfg sdf gsdf g sdfg sdf gsdf gs dfg sdfg sdfg sdf gsdf " : ""),
|
|
37
37
|
start: start.toISO(),
|
|
38
38
|
end: end.toISO(),
|
|
39
39
|
color: color,
|
|
@@ -60,6 +60,10 @@ const props = defineProps({
|
|
|
60
60
|
default: true,
|
|
61
61
|
type: Boolean,
|
|
62
62
|
},
|
|
63
|
+
showLink: {
|
|
64
|
+
default: true,
|
|
65
|
+
type: Boolean,
|
|
66
|
+
},
|
|
63
67
|
});
|
|
64
68
|
|
|
65
69
|
const name = computed(() => {
|
|
@@ -71,6 +75,11 @@ const size = computed(() => {
|
|
|
71
75
|
});
|
|
72
76
|
|
|
73
77
|
const url = computed(() => {
|
|
78
|
+
|
|
79
|
+
if (!props.showLink) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
|
|
74
83
|
if ('url' in props.media) {
|
|
75
84
|
return props.media.url;
|
|
76
85
|
}
|