@fewangsit/wangsvue-gsts 1.0.0-alpha.29 → 1.0.0-alpha.30
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/badgegroup/index.es.js +14 -14
- package/package.json +1 -1
- package/stats.html +1 -1
- package/wangsvue-gsts.system.js +1 -1
package/badgegroup/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, shallowRef as k, computed as
|
|
1
|
+
import { defineComponent as b, shallowRef as k, computed as p, createElementBlock as i, openBlock as r, normalizeProps as h, mergeProps as v, createBlock as a, createCommentVNode as y, Fragment as d, renderList as m, unref as $, withCtx as L, renderSlot as c } from "vue";
|
|
2
2
|
import { s as w } from "../vendor/primevue/dialog/dialog.esm.es.js";
|
|
3
3
|
import { _ as f } from "../badge/index.es.js";
|
|
4
4
|
import { _ as x } from "../button/index.es.js";
|
|
@@ -17,24 +17,24 @@ const M = { key: 0 }, j = /* @__PURE__ */ b({
|
|
|
17
17
|
getSeverity: {}
|
|
18
18
|
},
|
|
19
19
|
setup(g) {
|
|
20
|
-
const t = g, l = k(!1), n =
|
|
20
|
+
const t = g, l = k(!1), n = p(() => t.labels.slice(0, t.limit)), u = p(
|
|
21
21
|
() => t.labels.length - n.value.length
|
|
22
22
|
);
|
|
23
|
-
return (o, s) =>
|
|
23
|
+
return (o, s) => n.value.length ? (r(), i("div", h(v({ key: 1 }, o.$preset.badgegroup.root)), [
|
|
24
24
|
(r(!0), i(d, null, m(n.value, (e) => (r(), a(f, {
|
|
25
25
|
key: typeof e == "string" ? e : e.text,
|
|
26
26
|
format: t.format,
|
|
27
27
|
label: typeof e == "string" ? e : e.text,
|
|
28
28
|
severity: typeof e == "string" ? t.severity : e.severity
|
|
29
29
|
}, null, 8, ["format", "label", "severity"]))), 128)),
|
|
30
|
-
|
|
30
|
+
u.value ? (r(), a(x, v({
|
|
31
31
|
key: 0,
|
|
32
|
-
label: `+${
|
|
32
|
+
label: `+${u.value} ${o.textMore}`
|
|
33
33
|
}, o.$preset.badgegroup.showmorebutton, {
|
|
34
34
|
severity: t.textMoreSeverity ?? "dark",
|
|
35
35
|
onClick: s[0] || (s[0] = (e) => l.value = !0),
|
|
36
36
|
text: ""
|
|
37
|
-
}), null, 16, ["label", "severity"])) :
|
|
37
|
+
}), null, 16, ["label", "severity"])) : y("", !0),
|
|
38
38
|
o.limit ? (r(), a($(w), {
|
|
39
39
|
key: 1,
|
|
40
40
|
visible: l.value,
|
|
@@ -57,8 +57,8 @@ const M = { key: 0 }, j = /* @__PURE__ */ b({
|
|
|
57
57
|
])
|
|
58
58
|
]),
|
|
59
59
|
_: 3
|
|
60
|
-
}, 8, ["visible", "header", "pt"])) :
|
|
61
|
-
], 16));
|
|
60
|
+
}, 8, ["visible", "header", "pt"])) : y("", !0)
|
|
61
|
+
], 16)) : (r(), i("span", M, " - "));
|
|
62
62
|
}
|
|
63
63
|
}), B = { key: 0 }, D = /* @__PURE__ */ b({
|
|
64
64
|
__name: "BadgeGroup",
|
|
@@ -75,10 +75,10 @@ const M = { key: 0 }, j = /* @__PURE__ */ b({
|
|
|
75
75
|
getSeverity: {}
|
|
76
76
|
},
|
|
77
77
|
setup(g) {
|
|
78
|
-
const t = g, l = k(!1), n =
|
|
78
|
+
const t = g, l = k(!1), n = p(() => t.labels.slice(0, t.limit)), u = p(
|
|
79
79
|
() => t.labels.length - n.value.length
|
|
80
80
|
);
|
|
81
|
-
return (o, s) => n.value.length ? (r(), i("div", h(
|
|
81
|
+
return (o, s) => n.value.length ? (r(), i("div", h(v({ key: 1 }, o.$preset.badgegroup.root)), [
|
|
82
82
|
(r(!0), i(d, null, m(n.value, (e) => (r(), a(f, {
|
|
83
83
|
key: typeof e == "string" ? e : e.text,
|
|
84
84
|
format: t.format,
|
|
@@ -86,14 +86,14 @@ const M = { key: 0 }, j = /* @__PURE__ */ b({
|
|
|
86
86
|
severity: typeof e == "string" ? t.severity : e.severity,
|
|
87
87
|
tooltip: typeof e == "object" && e.tooltip
|
|
88
88
|
}, null, 8, ["format", "label", "severity", "tooltip"]))), 128)),
|
|
89
|
-
|
|
89
|
+
u.value ? (r(), a(x, v({
|
|
90
90
|
key: 0,
|
|
91
|
-
label: `+${
|
|
91
|
+
label: `+${u.value} ${o.textMore}`
|
|
92
92
|
}, o.$preset.badgegroup.showmorebutton, {
|
|
93
93
|
severity: t.textMoreSeverity ?? "dark",
|
|
94
94
|
onClick: s[0] || (s[0] = (e) => l.value = !0),
|
|
95
95
|
text: ""
|
|
96
|
-
}), null, 16, ["label", "severity"])) :
|
|
96
|
+
}), null, 16, ["label", "severity"])) : y("", !0),
|
|
97
97
|
o.limit ? (r(), a($(w), {
|
|
98
98
|
key: 1,
|
|
99
99
|
visible: l.value,
|
|
@@ -117,7 +117,7 @@ const M = { key: 0 }, j = /* @__PURE__ */ b({
|
|
|
117
117
|
])
|
|
118
118
|
]),
|
|
119
119
|
_: 3
|
|
120
|
-
}, 8, ["visible", "header", "pt"])) :
|
|
120
|
+
}, 8, ["visible", "header", "pt"])) : y("", !0)
|
|
121
121
|
], 16)) : (r(), i("span", B, " - "));
|
|
122
122
|
}
|
|
123
123
|
});
|