vlite3 1.5.5 → 1.5.7
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/README.md +34 -0
- package/VLiteIconsVite.d.ts +36 -0
- package/components/AppShell/AppShell.vue.d.ts +1 -1
- package/components/AppShell/AppShellLayoutDashboard.vue.js +3 -2
- package/components/AppShell/AppShellLayoutDock.vue.js +3 -2
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +28 -27
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +3 -2
- package/components/AsyncSelect/createAsyncSelect.d.ts +4 -4
- package/components/AsyncSelect/createAsyncSelect.js +3 -2
- package/components/BackButton.vue.d.ts +1 -1
- package/components/ButtonGroup.vue.js +2 -2
- package/components/CategoryManager/CategoryManager.vue2.js +15 -15
- package/components/CategoryManager/CategoryNode.vue.js +16 -16
- package/components/CategoryMenu/CategoryMenu.vue.js +9 -8
- package/components/Chart/BarChart.vue.d.ts +1 -1
- package/components/Chart/GanttChart.vue.d.ts +1 -1
- package/components/Chart/LineChart.vue.d.ts +1 -1
- package/components/Chart/TimelineChart.vue.d.ts +1 -1
- package/components/Chip/Chip.vue.d.ts +1 -0
- package/components/Chip/Chip.vue.js +67 -36
- package/components/Chip/types.d.ts +5 -1
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/ConfirmationModal.vue.d.ts +4 -0
- package/components/ConfirmationModal.vue.js +47 -39
- package/components/DataTable/DataTable.vue.d.ts +12 -3
- package/components/DataTable/DataTable.vue.js +5 -561
- package/components/DataTable/DataTable.vue2.js +711 -2
- package/components/DataTable/DataTableHeader.vue.d.ts +22 -0
- package/components/DataTable/DataTableHeader.vue.js +5 -58
- package/components/DataTable/DataTableHeader.vue2.js +106 -2
- package/components/DataTable/DataTableRow.vue.d.ts +15 -0
- package/components/DataTable/DataTableRow.vue.js +3 -3
- package/components/DataTable/DataTableRow.vue2.js +131 -118
- package/components/DataTable/dataTableColumnWidths.d.ts +91 -0
- package/components/DataTable/dataTableColumnWidths.js +82 -0
- package/components/DataTable/types.d.ts +50 -0
- package/components/DataTable/useDataTableColumnResize.d.ts +52 -0
- package/components/DataTable/useDataTableColumnResize.js +328 -0
- package/components/DatePicker.vue.js +5 -4
- package/components/Empty/Empty.vue.js +3 -2
- package/components/ExportData/ExportData.vue.d.ts +1 -1
- package/components/Form/{AccordionView.vue.js → AccordionView.vue2.js} +1 -1
- package/components/Form/Form.vue2.js +44 -43
- package/components/Form/FormField.vue.js +24 -24
- package/components/Form/index.vue2.js +1 -1
- package/components/Heatmap/Heatmap.vue2.js +3 -2
- package/components/Icon.vue.d.ts +3 -2
- package/components/Icon.vue.js +22 -12
- package/components/IconPicker.vue.js +5 -133
- package/components/IconPicker.vue2.js +218 -2
- package/components/ImportData/ImportData.vue.js +3 -2
- package/components/ImportData/ImportStep2.vue.js +3 -2
- package/components/Kanban/KanbanBoard.vue2.js +4 -2
- package/components/List/utils.js +5 -4
- package/components/Masonry/Masonry.vue2.js +14 -13
- package/components/Navbar/Navbar.vue.d.ts +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +1 -1
- package/components/Price/Price.vue.js +13 -12
- package/components/Rating/Rating.vue.js +2 -2
- package/components/Rating/Rating.vue2.js +41 -41
- package/components/Rating/ReviewSummary.vue.js +20 -20
- package/components/Screen/ScreenFilter.vue.js +6 -4
- package/components/Screen/components/ScreenExportModal.vue.d.ts +2 -2
- package/components/Stats/StatItem.vue.js +3 -2
- package/components/StatusChip/StatusChip.vue.d.ts +6 -0
- package/components/StatusChip/StatusChip.vue.js +14 -11
- package/components/Tabes/Tabes.vue.js +3 -3
- package/components/Tabes/Tabes.vue2.js +241 -220
- package/components/Tabes/types.d.ts +3 -1
- package/components/Workbook/Sheet.vue.js +11 -11
- package/core/config.d.ts +28 -0
- package/core/config.js +23 -21
- package/core/index.js +18 -17
- package/icons/IconRegistry.d.ts +38 -0
- package/icons/IconRegistry.js +166 -0
- package/icons/IconTypes.d.ts +37 -0
- package/index.d.ts +2 -0
- package/index.js +473 -457
- package/package.json +15 -3
- package/style.css +17 -3
- package/types/config.type.d.ts +8 -1
- package/utils/functions.js +44 -43
- package/utils/index.d.ts +1 -0
- package/utils/usePersistentState.d.ts +4 -1
- package/utils/usePersistentState.js +4 -3
- package/vite.d.ts +6 -0
- package/vite.js +223 -0
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as k, ref as M, computed as z, openBlock as c, createElementBlock as r, normalizeClass as d, Fragment as N, renderList as S, createVNode as h, createElementVNode as x, normalizeStyle as T, renderSlot as $, createTextVNode as I, toDisplayString as y, createCommentVNode as A } from "vue";
|
|
2
|
+
import g from "../Icon.vue.js";
|
|
3
|
+
const E = ["onMousemove", "onClick"], F = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "ml-2 text-sm text-foreground/80 font-medium whitespace-nowrap"
|
|
6
|
-
},
|
|
6
|
+
}, H = { class: "text-xs text-muted-foreground font-normal" }, p = /* @__PURE__ */ k({
|
|
7
7
|
__name: "Rating",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: { default: 0 },
|
|
@@ -22,71 +22,71 @@ const F = ["onMousemove", "onClick"], H = {
|
|
|
22
22
|
class: {}
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:modelValue", "change", "hover"],
|
|
25
|
-
setup(t, { emit:
|
|
26
|
-
const
|
|
25
|
+
setup(t, { emit: w }) {
|
|
26
|
+
const a = t, s = w, n = M(0), u = z(() => n.value > 0 ? n.value : a.modelValue), m = {
|
|
27
27
|
sm: "w-4 h-4",
|
|
28
28
|
md: "w-5 h-5",
|
|
29
29
|
lg: "w-6 h-6",
|
|
30
30
|
xl: "w-8 h-8"
|
|
31
31
|
}, v = (o, e) => {
|
|
32
|
-
const
|
|
33
|
-
return Array.isArray(
|
|
34
|
-
},
|
|
35
|
-
if (!(
|
|
36
|
-
if (
|
|
32
|
+
const l = e === "active" ? a.activeIcon : a.icon;
|
|
33
|
+
return Array.isArray(l) ? l[Math.min(o - 1, l.length - 1)] : l;
|
|
34
|
+
}, C = (o, e) => {
|
|
35
|
+
if (!(a.readonly || a.disabled))
|
|
36
|
+
if (a.allowHalf) {
|
|
37
37
|
const i = o.currentTarget.getBoundingClientRect(), f = o.clientX - i.left < i.width / 2 ? e - 0.5 : e;
|
|
38
38
|
n.value !== f && (n.value = f, s("hover", f));
|
|
39
39
|
} else
|
|
40
40
|
n.value !== e && (n.value = e, s("hover", e));
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
if (
|
|
41
|
+
}, V = () => {
|
|
42
|
+
a.readonly || a.disabled || (n.value = 0, s("hover", 0));
|
|
43
|
+
}, b = (o) => {
|
|
44
|
+
if (a.readonly || a.disabled) return;
|
|
45
45
|
let e = n.value || o;
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
const e =
|
|
46
|
+
a.clearable && a.modelValue === e && (e = 0), s("update:modelValue", e), s("change", e);
|
|
47
|
+
}, B = (o) => {
|
|
48
|
+
const e = u.value - o + 1;
|
|
49
49
|
return e >= 1 ? 100 : e > 0 ? e * 100 : 0;
|
|
50
50
|
};
|
|
51
|
-
return (o, e) => (
|
|
52
|
-
class:
|
|
53
|
-
onMouseleave:
|
|
51
|
+
return (o, e) => (c(), r("div", {
|
|
52
|
+
class: d(["inline-flex items-center gap-1.5", [a.class, { "opacity-50 cursor-not-allowed": t.disabled }]]),
|
|
53
|
+
onMouseleave: V
|
|
54
54
|
}, [
|
|
55
|
-
(
|
|
56
|
-
key:
|
|
57
|
-
class:
|
|
55
|
+
(c(!0), r(N, null, S(t.max, (l) => (c(), r("div", {
|
|
56
|
+
key: l,
|
|
57
|
+
class: d(["relative flex items-center justify-center isolate transition-transform", {
|
|
58
58
|
"cursor-pointer hover:scale-110 active:scale-95": !t.readonly && !t.disabled,
|
|
59
59
|
"cursor-default pointer-events-none": t.readonly || t.disabled
|
|
60
60
|
}]),
|
|
61
|
-
onMousemove: (i) =>
|
|
62
|
-
onClick: (i) =>
|
|
61
|
+
onMousemove: (i) => C(i, l),
|
|
62
|
+
onClick: (i) => b(l)
|
|
63
63
|
}, [
|
|
64
|
-
h(
|
|
65
|
-
icon: v(
|
|
66
|
-
class:
|
|
64
|
+
h(g, {
|
|
65
|
+
icon: v(l, "inactive"),
|
|
66
|
+
class: d([m[t.size], t.inactiveColor])
|
|
67
67
|
}, null, 8, ["icon", "class"]),
|
|
68
|
-
|
|
68
|
+
x("div", {
|
|
69
69
|
class: "absolute inset-0 overflow-hidden",
|
|
70
|
-
style: T({ width: `${
|
|
70
|
+
style: T({ width: `${B(l)}%` })
|
|
71
71
|
}, [
|
|
72
|
-
h(
|
|
73
|
-
icon: v(
|
|
74
|
-
class:
|
|
72
|
+
h(g, {
|
|
73
|
+
icon: v(l, "active"),
|
|
74
|
+
class: d([m[t.size], t.activeColor, { "is-solid": t.solid }])
|
|
75
75
|
}, null, 8, ["icon", "class"])
|
|
76
76
|
], 4)
|
|
77
|
-
], 42,
|
|
77
|
+
], 42, E))), 128)),
|
|
78
78
|
$(o.$slots, "text", {
|
|
79
|
-
value:
|
|
79
|
+
value: u.value,
|
|
80
80
|
max: t.max
|
|
81
81
|
}, () => [
|
|
82
|
-
t.showText ? (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
])) :
|
|
82
|
+
t.showText ? (c(), r("span", F, [
|
|
83
|
+
I(y(u.value) + " ", 1),
|
|
84
|
+
x("span", H, "/ " + y(t.max), 1)
|
|
85
|
+
])) : A("", !0)
|
|
86
86
|
], !0)
|
|
87
87
|
], 34));
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
p as default
|
|
92
92
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as h, computed as u, openBlock as l, createElementBlock as i, normalizeClass as d, createElementVNode as r, toDisplayString as s, Fragment as m, renderList as f, createVNode as g, createCommentVNode as w, createTextVNode as _, normalizeStyle as b } from "vue";
|
|
2
|
+
import x from "../Icon.vue.js";
|
|
3
|
+
const y = { class: "flex flex-col items-center justify-center py-4 sm:w-1/3 w-full shrink-0" }, k = { class: "text-5xl font-bold tracking-tighter text-foreground" }, R = { class: "flex items-center gap-1 mt-3 text-amber-400" }, D = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "text-sm text-muted-foreground mt-2 font-medium"
|
|
6
|
-
},
|
|
6
|
+
}, N = { class: "flex flex-col gap-2 w-full flex-grow" }, B = { class: "flex items-center gap-1 text-sm font-medium text-foreground min-w-[70px]" }, C = { class: "h-3.5 bg-muted rounded-full w-full overflow-hidden flex-grow shrink-0 relative shadow-inner" }, T = { class: "text-sm font-medium text-muted-foreground text-right min-w-[36px]" }, z = /* @__PURE__ */ h({
|
|
7
7
|
__name: "ReviewSummary",
|
|
8
8
|
props: {
|
|
9
9
|
ratingDistribution: {},
|
|
@@ -13,21 +13,21 @@ const k = { class: "flex flex-col items-center justify-center py-4 sm:w-1/3 w-fu
|
|
|
13
13
|
class: {}
|
|
14
14
|
},
|
|
15
15
|
setup(c) {
|
|
16
|
-
const e = c,
|
|
16
|
+
const e = c, v = u(() => [...e.ratingDistribution].sort((n, o) => o.rating - n.rating)), a = u(() => {
|
|
17
17
|
if (e.averageRating !== void 0) return e.averageRating;
|
|
18
18
|
if (e.ratingDistribution.length === 0) return 0;
|
|
19
19
|
let n = 0, o = 0;
|
|
20
20
|
for (const t of e.ratingDistribution)
|
|
21
21
|
t.count !== void 0 && (n += t.rating * t.count, o += t.count);
|
|
22
22
|
return o > 0 ? Number((n / o).toFixed(1)) : 0;
|
|
23
|
-
}),
|
|
23
|
+
}), p = u(() => e.totalReviews !== void 0 ? e.totalReviews : e.ratingDistribution.reduce((n, o) => n + (o.count || 0), 0));
|
|
24
24
|
return (n, o) => (l(), i("div", {
|
|
25
25
|
class: d(["flex flex-col sm:flex-row gap-6 md:gap-10 items-start w-full", e.class])
|
|
26
26
|
}, [
|
|
27
|
-
r("div",
|
|
28
|
-
r("div",
|
|
29
|
-
r("div",
|
|
30
|
-
(l(), i(m, null, f(5, (t) => g(x
|
|
27
|
+
r("div", y, [
|
|
28
|
+
r("div", k, s(a.value), 1),
|
|
29
|
+
r("div", R, [
|
|
30
|
+
(l(), i(m, null, f(5, (t) => g(x, {
|
|
31
31
|
key: t,
|
|
32
32
|
icon: "lucide:star",
|
|
33
33
|
class: d(["w-5 h-5 transition-all", {
|
|
@@ -36,32 +36,32 @@ const k = { class: "flex flex-col items-center justify-center py-4 sm:w-1/3 w-fu
|
|
|
36
36
|
}])
|
|
37
37
|
}, null, 8, ["class"])), 64))
|
|
38
38
|
]),
|
|
39
|
-
c.showTotal ? (l(), i("p",
|
|
39
|
+
c.showTotal ? (l(), i("p", D, " Based on " + s(p.value) + " global ratings ", 1)) : w("", !0)
|
|
40
40
|
]),
|
|
41
|
-
r("div",
|
|
42
|
-
(l(!0), i(m, null, f(
|
|
41
|
+
r("div", N, [
|
|
42
|
+
(l(!0), i(m, null, f(v.value, (t) => (l(), i("div", {
|
|
43
43
|
key: t.rating,
|
|
44
44
|
class: "flex items-center gap-3 w-full"
|
|
45
45
|
}, [
|
|
46
|
-
r("div",
|
|
47
|
-
|
|
48
|
-
g(x
|
|
46
|
+
r("div", B, [
|
|
47
|
+
_(s(t.rating) + " ", 1),
|
|
48
|
+
g(x, {
|
|
49
49
|
icon: "lucide:star",
|
|
50
50
|
class: "w-4 h-4 text-amber-400 fill-amber-400"
|
|
51
51
|
})
|
|
52
52
|
]),
|
|
53
|
-
r("div",
|
|
53
|
+
r("div", C, [
|
|
54
54
|
r("div", {
|
|
55
55
|
class: "h-full bg-amber-400 rounded-full transition-all duration-1000 ease-out",
|
|
56
|
-
style:
|
|
56
|
+
style: b({ width: `${t.percentage}%` })
|
|
57
57
|
}, null, 4)
|
|
58
58
|
]),
|
|
59
|
-
r("div",
|
|
59
|
+
r("div", T, s(t.percentage) + "% ", 1)
|
|
60
60
|
]))), 128))
|
|
61
61
|
])
|
|
62
62
|
], 2));
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
z as default
|
|
67
67
|
};
|
|
@@ -17,11 +17,13 @@ import "v-datepicker-lite/style.css";
|
|
|
17
17
|
/* empty css */
|
|
18
18
|
import "@jaames/iro";
|
|
19
19
|
import "@vueuse/core";
|
|
20
|
-
/* empty css
|
|
20
|
+
/* empty css */
|
|
21
21
|
import "iconify-icon-picker";
|
|
22
22
|
import "iconify-icon-picker/style.css";
|
|
23
|
+
import "../../icons/IconRegistry.js";
|
|
24
|
+
/* empty css */
|
|
23
25
|
/* empty css */
|
|
24
|
-
/* empty css
|
|
26
|
+
/* empty css */
|
|
25
27
|
/* empty css */
|
|
26
28
|
/* empty css */
|
|
27
29
|
/* empty css */
|
|
@@ -32,7 +34,7 @@ import "../../core/config.js";
|
|
|
32
34
|
const N = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }, A = { style: { "will-change": "transform", contain: "layout style" } }, E = {
|
|
33
35
|
class: "pt-2 px-2 min-w-[295px]",
|
|
34
36
|
style: { "will-change": "transform", contain: "layout style" }
|
|
35
|
-
},
|
|
37
|
+
}, fe = /* @__PURE__ */ $({
|
|
36
38
|
__name: "ScreenFilter",
|
|
37
39
|
props: {
|
|
38
40
|
schema: {},
|
|
@@ -195,5 +197,5 @@ const N = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
195
197
|
}
|
|
196
198
|
});
|
|
197
199
|
export {
|
|
198
|
-
|
|
200
|
+
fe as default
|
|
199
201
|
};
|
|
@@ -19,8 +19,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
19
19
|
icon: string;
|
|
20
20
|
}[]>;
|
|
21
21
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
22
|
-
title: string;
|
|
23
22
|
mode: "frontend" | "backend";
|
|
23
|
+
title: string;
|
|
24
24
|
buttonText: string;
|
|
25
25
|
buttonIcon: string;
|
|
26
26
|
formats: import('../../ExportData').ExportFormat[];
|
|
@@ -39,8 +39,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
39
39
|
icon: string;
|
|
40
40
|
}[]>;
|
|
41
41
|
}, {}, {}, {}, {
|
|
42
|
-
title: string;
|
|
43
42
|
mode: "frontend" | "backend";
|
|
43
|
+
title: string;
|
|
44
44
|
buttonText: string;
|
|
45
45
|
buttonIcon: string;
|
|
46
46
|
formats: import('../../ExportData').ExportFormat[];
|
|
@@ -6,6 +6,7 @@ import z from "./components/StatIconBox.vue.js";
|
|
|
6
6
|
import S from "../Tooltip.vue.js";
|
|
7
7
|
import E from "../Chart/LineChart.vue.js";
|
|
8
8
|
import { configState as L } from "../../core/config.js";
|
|
9
|
+
import "../../icons/IconRegistry.js";
|
|
9
10
|
import { resolveColor as q } from "../Chart/utils.js";
|
|
10
11
|
const A = { class: "flex items-start gap-3 w-full" }, G = { class: "flex-1 min-w-0" }, J = {
|
|
11
12
|
key: 0,
|
|
@@ -37,7 +38,7 @@ const A = { class: "flex items-start gap-3 w-full" }, G = { class: "flex-1 min-w
|
|
|
37
38
|
}, p = { class: "flex-1 flex flex-col justify-center min-w-0" }, _ = { class: "flex items-baseline gap-2 mt-1" }, tt = {
|
|
38
39
|
key: 0,
|
|
39
40
|
class: "h-8 w-24 bg-gray-50 animate-pulse rounded-md"
|
|
40
|
-
},
|
|
41
|
+
}, mt = /* @__PURE__ */ M({
|
|
41
42
|
__name: "StatItem",
|
|
42
43
|
props: {
|
|
43
44
|
item: {},
|
|
@@ -415,5 +416,5 @@ const A = { class: "flex items-start gap-3 w-full" }, G = { class: "flex-1 min-w
|
|
|
415
416
|
}
|
|
416
417
|
});
|
|
417
418
|
export {
|
|
418
|
-
|
|
419
|
+
mt as default
|
|
419
420
|
};
|
|
@@ -10,6 +10,11 @@ interface Props {
|
|
|
10
10
|
hideIcon?: boolean | null;
|
|
11
11
|
/** Override chip size */
|
|
12
12
|
size?: ChipProps['size'];
|
|
13
|
+
/**
|
|
14
|
+
* Surface style passed to Chip.
|
|
15
|
+
* `transparent` keeps the resolved semantic text/icon color with no background or border.
|
|
16
|
+
*/
|
|
17
|
+
appearance?: ChipProps['appearance'];
|
|
13
18
|
/** Extra classes */
|
|
14
19
|
class?: string;
|
|
15
20
|
}
|
|
@@ -17,5 +22,6 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
17
22
|
class: string;
|
|
18
23
|
size: ChipProps["size"];
|
|
19
24
|
hideIcon: boolean | null;
|
|
25
|
+
appearance: ChipProps["appearance"];
|
|
20
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
27
|
export default _default;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, computed as t, openBlock as u, createBlock as p, unref as f, normalizeClass as m } from "vue";
|
|
2
2
|
import d from "../Chip/Chip.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { resolveStatus as v } from "./status-map.js";
|
|
5
5
|
import { $t as b } from "../../utils/i18n.js";
|
|
6
6
|
import { useVLiteConfig as h } from "../../core/config.js";
|
|
7
|
-
|
|
7
|
+
import "../../icons/IconRegistry.js";
|
|
8
|
+
const k = /* @__PURE__ */ c({
|
|
8
9
|
__name: "StatusChip",
|
|
9
10
|
props: {
|
|
10
11
|
status: {},
|
|
@@ -12,19 +13,21 @@ const S = /* @__PURE__ */ u({
|
|
|
12
13
|
labelI18n: {},
|
|
13
14
|
hideIcon: { type: [Boolean, null], default: null },
|
|
14
15
|
size: { default: "small" },
|
|
16
|
+
appearance: { default: "filled" },
|
|
15
17
|
class: { default: "" }
|
|
16
18
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const e =
|
|
19
|
-
return (o, I) => (
|
|
20
|
-
text:
|
|
21
|
-
variant:
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
setup(l) {
|
|
20
|
+
const e = l, s = h(), n = t(() => s?.components?.statusChip), r = t(() => e.hideIcon !== null ? e.hideIcon : n.value?.hideIcon ?? !1), a = t(() => v(e.status, n.value?.customStatuses)), i = t(() => e.labelI18n ? b(e.labelI18n) : a.value.label ? a.value.label : e.label ? e.label : e.status.replace(/[_\-]+/g, " ").replace(/\b\w/g, (o) => o.toUpperCase()));
|
|
21
|
+
return (o, I) => (u(), p(f(d), {
|
|
22
|
+
text: i.value,
|
|
23
|
+
variant: a.value.variant,
|
|
24
|
+
appearance: l.appearance,
|
|
25
|
+
icon: r.value ? void 0 : a.value.icon,
|
|
26
|
+
size: l.size,
|
|
24
27
|
class: m(["status-chip", "scrollbar-hide", e.class].filter(Boolean).join(" "))
|
|
25
|
-
}, null, 8, ["text", "variant", "icon", "size", "class"]));
|
|
28
|
+
}, null, 8, ["text", "variant", "appearance", "icon", "size", "class"]));
|
|
26
29
|
}
|
|
27
30
|
});
|
|
28
31
|
export {
|
|
29
|
-
|
|
32
|
+
k as default
|
|
30
33
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Tabes.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e5574264"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|