vlite3 1.1.1 → 1.1.2
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/components/AttachmentsList/AttachmentsList.vue.d.ts +1 -16
- package/components/AttachmentsList/AttachmentsList.vue.js +191 -167
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
- package/components/Button.vue.d.ts +1 -1
- package/components/Calendar/Calendar.vue.d.ts +6 -6
- package/components/Carousel/Carousel.vue.d.ts +2 -2
- package/components/CategoryManager/CategoryManager.vue.d.ts +2 -1
- package/components/CategoryManager/CategoryManager.vue.js +187 -147
- package/components/CategoryManager/types.d.ts +14 -0
- package/components/Chip/Chip.vue.d.ts +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 +2 -2
- package/components/CustomFieldsDisplay/CustomFieldsDisplay.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.d.ts +3 -3
- package/components/Dropdown/Dropdown.vue.d.ts +2 -2
- package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
- package/components/Dropdown/DropdownMenu.vue.d.ts +1 -1
- package/components/Dropdown/DropdownTrigger.vue.d.ts +1 -1
- package/components/FilePicker/FilePicker.vue.d.ts +1 -1
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +220 -232
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Input.vue.d.ts +3 -3
- package/components/Invoice/Invoice.vue.d.ts +1 -4
- package/components/Invoice/Invoice.vue.js +20 -13
- package/components/Invoice/InvoiceVariant1.vue.d.ts +3 -0
- package/components/Invoice/InvoiceVariant1.vue.js +302 -256
- package/components/Invoice/InvoiceVariant2.vue.d.ts +3 -0
- package/components/Invoice/InvoiceVariant2.vue.js +164 -168
- package/components/Invoice/InvoiceVariant3.vue.d.ts +3 -0
- package/components/Invoice/InvoiceVariant3.vue.js +213 -170
- package/components/Invoice/InvoiceVariant4.vue.d.ts +3 -0
- package/components/Invoice/InvoiceVariant4.vue.js +280 -227
- package/components/Invoice/types.d.ts +4 -0
- package/components/List/List.vue.d.ts +1 -9
- package/components/List/List.vue.js +166 -165
- package/components/List/ListFieldRow.vue.d.ts +2 -2
- package/components/List/ListFieldRow.vue.js +50 -50
- package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
- package/components/Navbar/NavbarItem.vue.d.ts +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/NumberInput.vue.d.ts +2 -2
- package/components/OTPInput/OTPInput.vue.d.ts +1 -1
- package/components/PricingPlan/PricingPlan.vue.d.ts +1 -1
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
- package/components/Stats/Stats.vue.d.ts +1 -1
- package/components/StatusChip/status-map.js +27 -7
- package/components/ThumbnailSelector/ThumbnailSelector.vue.d.ts +2 -2
- package/components/Workbook/Workbook.vue.d.ts +3 -3
- package/core/config.d.ts +76 -0
- package/core/index.js +17 -5
- package/index.js +264 -262
- package/package.json +1 -1
- package/style.css +2 -2
- package/types/config.type.d.ts +6 -0
- package/types/list.type.d.ts +6 -0
- package/utils/configUtils.d.ts +9 -0
- package/utils/configUtils.js +7 -0
- package/utils/index.d.ts +1 -0
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { $t as
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { defineComponent as X, computed as u, useSlots as Y, openBlock as r, createElementBlock as o, normalizeClass as C, renderSlot as x, createBlock as S, createCommentVNode as h, createElementVNode as d, toDisplayString as Z, Fragment as f, renderList as g, unref as L, isMemoSame as M, createSlots as R, withCtx as F, mergeProps as V } from "vue";
|
|
2
|
+
import ee from "../Icon.vue.js";
|
|
3
|
+
import D from "./ListFieldRow.vue.js";
|
|
4
|
+
import { $t as te } from "../../utils/i18n.js";
|
|
5
|
+
import { getComponentConfig as re } from "../../utils/configUtils.js";
|
|
6
|
+
import { getObjectValue as $ } from "./utils.js";
|
|
7
|
+
const le = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "px-3 py-2.5 border-b border-border/70 flex items-center gap-2 bg-muted/60"
|
|
9
|
-
},
|
|
10
|
+
}, oe = { class: "text-sm font-semibold text-gray-900 tracking-tight" }, se = { class: "sm:hidden" }, ne = { class: "hidden sm:block" }, ae = { class: "sm:hidden" }, ue = { class: "hidden sm:block" }, de = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "px-3 py-8 text-center text-sm text-muted-foreground"
|
|
12
|
-
},
|
|
13
|
+
}, ie = { key: 1 }, ve = { key: 2 }, me = {
|
|
13
14
|
key: 1,
|
|
14
15
|
class: "px-3 py-8 text-center text-sm text-muted-foreground"
|
|
15
|
-
},
|
|
16
|
+
}, ce = {
|
|
16
17
|
key: 3,
|
|
17
18
|
class: "border-t border-border/70 px-3 py-2.5"
|
|
18
|
-
},
|
|
19
|
+
}, pe = /* @__PURE__ */ X({
|
|
19
20
|
__name: "List",
|
|
20
21
|
props: {
|
|
21
22
|
fields: {},
|
|
@@ -23,42 +24,42 @@ const W = {
|
|
|
23
24
|
title: {},
|
|
24
25
|
titleI18n: {},
|
|
25
26
|
titleIcon: {},
|
|
26
|
-
columns: {
|
|
27
|
-
variant: {
|
|
28
|
-
class: {
|
|
29
|
-
showColon: { type: Boolean
|
|
30
|
-
loading: { type: Boolean
|
|
31
|
-
skeletonRows: {
|
|
32
|
-
stackedBorderStyle: {
|
|
27
|
+
columns: {},
|
|
28
|
+
variant: {},
|
|
29
|
+
class: {},
|
|
30
|
+
showColon: { type: Boolean },
|
|
31
|
+
loading: { type: Boolean },
|
|
32
|
+
skeletonRows: {},
|
|
33
|
+
stackedBorderStyle: {}
|
|
33
34
|
},
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
return l.whenTrue && !
|
|
38
|
-
})), i =
|
|
39
|
-
if (
|
|
40
|
-
return { left: [], right: [], full:
|
|
41
|
-
const l = [],
|
|
42
|
-
for (const
|
|
43
|
-
if (
|
|
44
|
-
t.push(
|
|
35
|
+
setup(B) {
|
|
36
|
+
const a = B, I = re("list") || {}, k = u(() => a.columns ?? I.columns ?? 2), y = u(() => a.variant ?? I.variant ?? "default"), J = u(() => a.class ?? I.class ?? ""), p = u(() => a.showColon ?? I.showColon ?? !0), K = u(() => a.skeletonRows ?? I.skeletonRows ?? 6), T = u(() => a.stackedBorderStyle ?? I.stackedBorderStyle ?? "none"), N = Y(), w = u(() => a.fields.filter((l) => {
|
|
37
|
+
const n = $(l.key, a.data);
|
|
38
|
+
return l.whenTrue && !n ? !1 : l.when ? l.when(n, a.data) : !0;
|
|
39
|
+
})), i = u(() => {
|
|
40
|
+
if (k.value === 1)
|
|
41
|
+
return { left: [], right: [], full: w.value };
|
|
42
|
+
const l = [], n = [], t = [];
|
|
43
|
+
for (const v of w.value) {
|
|
44
|
+
if (v.lineByLine) {
|
|
45
|
+
t.push(v);
|
|
45
46
|
continue;
|
|
46
47
|
}
|
|
47
|
-
l.length <=
|
|
48
|
+
l.length <= n.length ? l.push(v) : n.push(v);
|
|
48
49
|
}
|
|
49
|
-
const e = Math.abs(l.length -
|
|
50
|
+
const e = Math.abs(l.length - n.length);
|
|
50
51
|
if (e >= 2) {
|
|
51
|
-
const
|
|
52
|
-
t.unshift(...
|
|
52
|
+
const v = l.length > n.length ? l : n, s = v.splice(v.length - Math.floor(e / 2));
|
|
53
|
+
t.unshift(...s);
|
|
53
54
|
}
|
|
54
|
-
if (
|
|
55
|
-
const
|
|
56
|
-
t.unshift(
|
|
55
|
+
if (k.value === 2 && l.length === n.length + 1) {
|
|
56
|
+
const v = l.pop();
|
|
57
|
+
t.unshift(v);
|
|
57
58
|
}
|
|
58
|
-
return { left: l, right:
|
|
59
|
-
}),
|
|
59
|
+
return { left: l, right: n, full: t };
|
|
60
|
+
}), O = u(() => i.value.full.length > 0), Q = u(
|
|
60
61
|
() => i.value.left.length > 0 || i.value.right.length > 0
|
|
61
|
-
),
|
|
62
|
+
), z = u(() => a.titleI18n ? te(a.titleI18n) : a.title ?? ""), A = u(() => y.value === "stacked"), U = u(() => {
|
|
62
63
|
const l = {
|
|
63
64
|
default: "border border-border rounded",
|
|
64
65
|
card: "border border-border rounded bg-card shadow-sm",
|
|
@@ -70,230 +71,230 @@ const W = {
|
|
|
70
71
|
};
|
|
71
72
|
return [
|
|
72
73
|
"list-component w-full overflow-hidden",
|
|
73
|
-
l[
|
|
74
|
-
|
|
74
|
+
l[y.value] ?? l.default,
|
|
75
|
+
J.value
|
|
75
76
|
].join(" ");
|
|
76
|
-
}),
|
|
77
|
-
() => Object.keys(
|
|
78
|
-
),
|
|
79
|
-
function
|
|
80
|
-
return
|
|
77
|
+
}), G = u(() => k.value === 1 ? "grid grid-cols-1" : k.value === 3 ? "grid grid-cols-1 md:grid-cols-3" : "grid grid-cols-1 md:grid-cols-2"), P = u(() => k.value === 1 ? "" : "border-r border-border/70"), q = u(() => k.value === 1 ? 1 : k.value === 3 ? 3 : 2), H = u(() => k.value === 1 ? "grid grid-cols-1 pb-2.5 pt-1 px-1" : k.value === 3 ? "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 pb-2.5 pt-1 px-1" : "grid grid-cols-1 sm:grid-cols-2 pb-2.5 pt-1 px-1"), j = u(
|
|
78
|
+
() => Object.keys(N).filter((l) => !["title", "header", "footer"].includes(l))
|
|
79
|
+
), E = u(() => Array.from({ length: K.value }));
|
|
80
|
+
function W(l) {
|
|
81
|
+
return T.value === "divider" && l % q.value !== 0 ? "flex flex-col gap-1.5 py-2 border-l border-border pl-4 pr-3.5" : "flex flex-col gap-1.5 px-3.5 py-2";
|
|
81
82
|
}
|
|
82
|
-
return (l,
|
|
83
|
-
class: C(
|
|
83
|
+
return (l, n) => (r(), o("div", {
|
|
84
|
+
class: C(U.value),
|
|
84
85
|
role: "table",
|
|
85
86
|
"aria-label": "Information list"
|
|
86
87
|
}, [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
z.value || B.titleIcon || l.$slots.title ? (r(), o("div", le, [
|
|
89
|
+
x(l.$slots, "title", {}, () => [
|
|
90
|
+
B.titleIcon ? (r(), S(ee, {
|
|
90
91
|
key: 0,
|
|
91
|
-
icon:
|
|
92
|
+
icon: B.titleIcon,
|
|
92
93
|
class: "w-4 h-4 text-muted-foreground shrink-0"
|
|
93
|
-
}, null, 8, ["icon"])) :
|
|
94
|
-
d("h3",
|
|
94
|
+
}, null, 8, ["icon"])) : h("", !0),
|
|
95
|
+
d("h3", oe, Z(z.value), 1)
|
|
95
96
|
])
|
|
96
|
-
])) :
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
d("div",
|
|
100
|
-
(r(!0),
|
|
97
|
+
])) : h("", !0),
|
|
98
|
+
B.loading ? (r(), o(f, { key: 1 }, [
|
|
99
|
+
A.value ? (r(), o(f, { key: 0 }, [
|
|
100
|
+
d("div", se, [
|
|
101
|
+
(r(!0), o(f, null, g(E.value, (t, e) => (r(), o("div", {
|
|
101
102
|
key: "sk-sm-" + e,
|
|
102
103
|
class: "flex justify-between gap-3 px-3 py-2.5 border-b border-border/70 last:border-b-0"
|
|
103
|
-
}, [...
|
|
104
|
+
}, [...n[10] || (n[10] = [
|
|
104
105
|
d("div", { class: "h-4 w-1/3 rounded bg-muted animate-pulse" }, null, -1),
|
|
105
106
|
d("div", { class: "h-4 w-2/5 rounded bg-muted/60 animate-pulse" }, null, -1)
|
|
106
107
|
])]))), 128))
|
|
107
108
|
]),
|
|
108
|
-
d("div",
|
|
109
|
+
d("div", ne, [
|
|
109
110
|
d("div", {
|
|
110
|
-
class: C(
|
|
111
|
+
class: C(H.value)
|
|
111
112
|
}, [
|
|
112
|
-
(r(!0),
|
|
113
|
+
(r(!0), o(f, null, g(E.value, (t, e) => (r(), o("div", {
|
|
113
114
|
key: "sk-s-" + e,
|
|
114
|
-
class: C(
|
|
115
|
-
}, [...
|
|
115
|
+
class: C(W(e))
|
|
116
|
+
}, [...n[11] || (n[11] = [
|
|
116
117
|
d("div", { class: "h-3 w-1/3 rounded bg-muted/60 animate-pulse" }, null, -1),
|
|
117
118
|
d("div", { class: "h-4 w-2/3 rounded bg-muted animate-pulse" }, null, -1)
|
|
118
119
|
])], 2))), 128))
|
|
119
120
|
], 2)
|
|
120
121
|
])
|
|
121
|
-
], 64)) : (r(),
|
|
122
|
+
], 64)) : (r(), o("div", {
|
|
122
123
|
key: 1,
|
|
123
|
-
class: C(
|
|
124
|
+
class: C(G.value)
|
|
124
125
|
}, [
|
|
125
126
|
d("div", null, [
|
|
126
|
-
(r(!0),
|
|
127
|
+
(r(!0), o(f, null, g(E.value, (t, e) => (r(), o("div", {
|
|
127
128
|
key: "sk-l-" + e,
|
|
128
129
|
class: "flex justify-between gap-3 px-3 py-2.5 border-b border-border/70 last:border-b-0"
|
|
129
|
-
}, [...
|
|
130
|
+
}, [...n[12] || (n[12] = [
|
|
130
131
|
d("div", { class: "h-4 w-1/3 rounded bg-muted animate-pulse" }, null, -1),
|
|
131
132
|
d("div", { class: "h-4 w-2/5 rounded bg-muted/60 animate-pulse" }, null, -1)
|
|
132
133
|
])]))), 128))
|
|
133
134
|
]),
|
|
134
|
-
|
|
135
|
+
k.value !== 1 ? (r(), o("div", {
|
|
135
136
|
key: 0,
|
|
136
|
-
class: C(
|
|
137
|
+
class: C(P.value)
|
|
137
138
|
}, [
|
|
138
|
-
(r(!0),
|
|
139
|
+
(r(!0), o(f, null, g(E.value, (t, e) => (r(), o("div", {
|
|
139
140
|
key: "sk-r-" + e,
|
|
140
141
|
class: "flex justify-between gap-3 px-3 py-2.5 border-b border-border/70 last:border-b-0"
|
|
141
|
-
}, [...
|
|
142
|
+
}, [...n[13] || (n[13] = [
|
|
142
143
|
d("div", { class: "h-4 w-1/3 rounded bg-muted animate-pulse" }, null, -1),
|
|
143
144
|
d("div", { class: "h-4 w-2/5 rounded bg-muted/60 animate-pulse" }, null, -1)
|
|
144
145
|
])]))), 128))
|
|
145
|
-
], 2)) :
|
|
146
|
+
], 2)) : h("", !0)
|
|
146
147
|
], 2))
|
|
147
|
-
], 64)) : (r(),
|
|
148
|
-
|
|
149
|
-
d("div",
|
|
150
|
-
(r(!0),
|
|
151
|
-
const
|
|
152
|
-
if (
|
|
153
|
-
const c = (r(),
|
|
148
|
+
], 64)) : (r(), o(f, { key: 2 }, [
|
|
149
|
+
A.value ? (r(), o(f, { key: 0 }, [
|
|
150
|
+
d("div", ae, [
|
|
151
|
+
(r(!0), o(f, null, g(w.value, (t, e, v, s) => {
|
|
152
|
+
const m = [t, L($)(t.key, a.data), y.value, p.value];
|
|
153
|
+
if (s && s.key === "mob-" + t.key + e && M(s, m)) return s;
|
|
154
|
+
const c = (r(), S(D, {
|
|
154
155
|
key: "mob-" + t.key + e,
|
|
155
156
|
field: t,
|
|
156
|
-
data:
|
|
157
|
+
data: a.data,
|
|
157
158
|
index: e,
|
|
158
159
|
variant: "default",
|
|
159
|
-
"show-colon":
|
|
160
|
-
"is-last": e ===
|
|
161
|
-
"show-border-bottom": e <
|
|
162
|
-
},
|
|
163
|
-
g(
|
|
160
|
+
"show-colon": p.value,
|
|
161
|
+
"is-last": e === w.value.length - 1,
|
|
162
|
+
"show-border-bottom": e < w.value.length - 1
|
|
163
|
+
}, R({ _: 2 }, [
|
|
164
|
+
g(j.value, (b) => ({
|
|
164
165
|
name: b,
|
|
165
|
-
fn:
|
|
166
|
-
|
|
166
|
+
fn: F((_) => [
|
|
167
|
+
x(l.$slots, b, V({ ref_for: !0 }, _))
|
|
167
168
|
])
|
|
168
169
|
}))
|
|
169
170
|
]), 1032, ["field", "data", "index", "show-colon", "is-last", "show-border-bottom"]));
|
|
170
|
-
return c.memo =
|
|
171
|
-
},
|
|
171
|
+
return c.memo = m, c;
|
|
172
|
+
}, n, 0), 128))
|
|
172
173
|
]),
|
|
173
|
-
d("div",
|
|
174
|
+
d("div", ue, [
|
|
174
175
|
d("div", {
|
|
175
|
-
class: C(
|
|
176
|
+
class: C(H.value)
|
|
176
177
|
}, [
|
|
177
|
-
(r(!0),
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
180
|
-
const c = (r(),
|
|
178
|
+
(r(!0), o(f, null, g(w.value, (t, e, v, s) => {
|
|
179
|
+
const m = [t, L($)(t.key, a.data), y.value, p.value];
|
|
180
|
+
if (s && s.key === t.key + e && M(s, m)) return s;
|
|
181
|
+
const c = (r(), S(D, {
|
|
181
182
|
key: t.key + e,
|
|
182
183
|
field: t,
|
|
183
|
-
data:
|
|
184
|
+
data: a.data,
|
|
184
185
|
index: e,
|
|
185
|
-
variant:
|
|
186
|
+
variant: y.value,
|
|
186
187
|
"show-colon": !1,
|
|
187
|
-
"is-last": e ===
|
|
188
|
+
"is-last": e === w.value.length - 1,
|
|
188
189
|
"show-border-bottom": !1,
|
|
189
|
-
"stacked-col-index": e %
|
|
190
|
-
"stacked-border-style":
|
|
191
|
-
},
|
|
192
|
-
g(
|
|
190
|
+
"stacked-col-index": e % q.value,
|
|
191
|
+
"stacked-border-style": T.value
|
|
192
|
+
}, R({ _: 2 }, [
|
|
193
|
+
g(j.value, (b) => ({
|
|
193
194
|
name: b,
|
|
194
|
-
fn:
|
|
195
|
-
|
|
195
|
+
fn: F((_) => [
|
|
196
|
+
x(l.$slots, b, V({ ref_for: !0 }, _))
|
|
196
197
|
])
|
|
197
198
|
}))
|
|
198
199
|
]), 1032, ["field", "data", "index", "variant", "is-last", "stacked-col-index", "stacked-border-style"]));
|
|
199
|
-
return c.memo =
|
|
200
|
-
},
|
|
200
|
+
return c.memo = m, c;
|
|
201
|
+
}, n, 2), 128))
|
|
201
202
|
], 2)
|
|
202
203
|
]),
|
|
203
|
-
|
|
204
|
-
], 64)) : (r(),
|
|
204
|
+
w.value.length === 0 ? (r(), o("div", de, " No information to display. ")) : h("", !0)
|
|
205
|
+
], 64)) : (r(), o(f, { key: 1 }, [
|
|
205
206
|
d("div", {
|
|
206
|
-
class: C(
|
|
207
|
+
class: C(G.value)
|
|
207
208
|
}, [
|
|
208
|
-
i.value.left.length > 0 ? (r(),
|
|
209
|
+
i.value.left.length > 0 ? (r(), o("div", {
|
|
209
210
|
key: 0,
|
|
210
|
-
class: C(
|
|
211
|
+
class: C(P.value)
|
|
211
212
|
}, [
|
|
212
|
-
(r(!0),
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
const c = (r(),
|
|
213
|
+
(r(!0), o(f, null, g(i.value.left, (t, e, v, s) => {
|
|
214
|
+
const m = [t, L($)(t.key, a.data), y.value, p.value];
|
|
215
|
+
if (s && s.key === t.key + e && M(s, m)) return s;
|
|
216
|
+
const c = (r(), S(D, {
|
|
216
217
|
key: t.key + e,
|
|
217
218
|
field: t,
|
|
218
|
-
data:
|
|
219
|
+
data: a.data,
|
|
219
220
|
index: e,
|
|
220
|
-
variant:
|
|
221
|
-
"show-colon":
|
|
221
|
+
variant: y.value,
|
|
222
|
+
"show-colon": p.value,
|
|
222
223
|
"is-last": e === i.value.left.length - 1,
|
|
223
|
-
"show-border-bottom": e < i.value.left.length - 1 || e === i.value.left.length - 1 && !
|
|
224
|
-
},
|
|
225
|
-
g(
|
|
224
|
+
"show-border-bottom": e < i.value.left.length - 1 || e === i.value.left.length - 1 && !O.value
|
|
225
|
+
}, R({ _: 2 }, [
|
|
226
|
+
g(j.value, (b) => ({
|
|
226
227
|
name: b,
|
|
227
|
-
fn:
|
|
228
|
-
|
|
228
|
+
fn: F((_) => [
|
|
229
|
+
x(l.$slots, b, V({ ref_for: !0 }, _))
|
|
229
230
|
])
|
|
230
231
|
}))
|
|
231
232
|
]), 1032, ["field", "data", "index", "variant", "show-colon", "is-last", "show-border-bottom"]));
|
|
232
|
-
return c.memo =
|
|
233
|
-
},
|
|
234
|
-
], 2)) :
|
|
235
|
-
|
|
236
|
-
(r(!0),
|
|
237
|
-
const
|
|
238
|
-
if (
|
|
239
|
-
const c = (r(),
|
|
233
|
+
return c.memo = m, c;
|
|
234
|
+
}, n, 4), 128))
|
|
235
|
+
], 2)) : h("", !0),
|
|
236
|
+
k.value !== 1 && i.value.right.length > 0 ? (r(), o("div", ie, [
|
|
237
|
+
(r(!0), o(f, null, g(i.value.right, (t, e, v, s) => {
|
|
238
|
+
const m = [t, L($)(t.key, a.data), y.value, p.value];
|
|
239
|
+
if (s && s.key === t.key + e && M(s, m)) return s;
|
|
240
|
+
const c = (r(), S(D, {
|
|
240
241
|
key: t.key + e,
|
|
241
242
|
field: t,
|
|
242
|
-
data:
|
|
243
|
+
data: a.data,
|
|
243
244
|
index: e,
|
|
244
|
-
variant:
|
|
245
|
-
"show-colon":
|
|
245
|
+
variant: y.value,
|
|
246
|
+
"show-colon": p.value,
|
|
246
247
|
"is-last": e === i.value.right.length - 1,
|
|
247
|
-
"show-border-bottom": e < i.value.right.length - 1 || e === i.value.right.length - 1 && !
|
|
248
|
-
},
|
|
249
|
-
g(
|
|
248
|
+
"show-border-bottom": e < i.value.right.length - 1 || e === i.value.right.length - 1 && !O.value
|
|
249
|
+
}, R({ _: 2 }, [
|
|
250
|
+
g(j.value, (b) => ({
|
|
250
251
|
name: b,
|
|
251
|
-
fn:
|
|
252
|
-
|
|
252
|
+
fn: F((_) => [
|
|
253
|
+
x(l.$slots, b, V({ ref_for: !0 }, _))
|
|
253
254
|
])
|
|
254
255
|
}))
|
|
255
256
|
]), 1032, ["field", "data", "index", "variant", "show-colon", "is-last", "show-border-bottom"]));
|
|
256
|
-
return c.memo =
|
|
257
|
-
},
|
|
258
|
-
])) :
|
|
259
|
-
|
|
257
|
+
return c.memo = m, c;
|
|
258
|
+
}, n, 6), 128))
|
|
259
|
+
])) : h("", !0),
|
|
260
|
+
k.value === 3 ? (r(), o("div", ve)) : h("", !0)
|
|
260
261
|
], 2),
|
|
261
|
-
|
|
262
|
+
O.value ? (r(), o("div", {
|
|
262
263
|
key: 0,
|
|
263
|
-
class: C(
|
|
264
|
+
class: C(Q.value ? "border-t border-border" : "")
|
|
264
265
|
}, [
|
|
265
|
-
(r(!0),
|
|
266
|
-
const
|
|
267
|
-
if (
|
|
268
|
-
const c = (r(),
|
|
266
|
+
(r(!0), o(f, null, g(i.value.full, (t, e, v, s) => {
|
|
267
|
+
const m = [t, L($)(t.key, a.data), y.value, p.value];
|
|
268
|
+
if (s && s.key === t.key + e && M(s, m)) return s;
|
|
269
|
+
const c = (r(), S(D, {
|
|
269
270
|
key: t.key + e,
|
|
270
271
|
field: t,
|
|
271
|
-
data:
|
|
272
|
+
data: a.data,
|
|
272
273
|
index: e,
|
|
273
|
-
variant:
|
|
274
|
-
"show-colon":
|
|
274
|
+
variant: y.value,
|
|
275
|
+
"show-colon": p.value,
|
|
275
276
|
"is-last": e === i.value.full.length - 1,
|
|
276
277
|
"show-border-bottom": e < i.value.full.length - 1
|
|
277
|
-
},
|
|
278
|
-
g(
|
|
278
|
+
}, R({ _: 2 }, [
|
|
279
|
+
g(j.value, (b) => ({
|
|
279
280
|
name: b,
|
|
280
|
-
fn:
|
|
281
|
-
|
|
281
|
+
fn: F((_) => [
|
|
282
|
+
x(l.$slots, b, V({ ref_for: !0 }, _))
|
|
282
283
|
])
|
|
283
284
|
}))
|
|
284
285
|
]), 1032, ["field", "data", "index", "variant", "show-colon", "is-last", "show-border-bottom"]));
|
|
285
|
-
return c.memo =
|
|
286
|
-
},
|
|
287
|
-
], 2)) :
|
|
288
|
-
|
|
286
|
+
return c.memo = m, c;
|
|
287
|
+
}, n, 8), 128))
|
|
288
|
+
], 2)) : h("", !0),
|
|
289
|
+
w.value.length === 0 ? (r(), o("div", me, " No information to display. ")) : h("", !0)
|
|
289
290
|
], 64))
|
|
290
291
|
], 64)),
|
|
291
|
-
l.$slots.footer ? (r(),
|
|
292
|
-
|
|
293
|
-
])) :
|
|
292
|
+
l.$slots.footer ? (r(), o("div", ce, [
|
|
293
|
+
x(l.$slots, "footer")
|
|
294
|
+
])) : h("", !0)
|
|
294
295
|
], 2));
|
|
295
296
|
}
|
|
296
297
|
});
|
|
297
298
|
export {
|
|
298
|
-
|
|
299
|
+
pe as default
|
|
299
300
|
};
|
|
@@ -49,12 +49,12 @@ declare function __VLS_template(): {
|
|
|
49
49
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
50
50
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
51
51
|
variant: string;
|
|
52
|
+
showColon: boolean;
|
|
53
|
+
stackedBorderStyle: StackedBorderStyle;
|
|
52
54
|
index: number;
|
|
53
55
|
isLast: boolean;
|
|
54
56
|
showBorderBottom: boolean;
|
|
55
|
-
showColon: boolean;
|
|
56
57
|
stackedColIndex: number;
|
|
57
|
-
stackedBorderStyle: StackedBorderStyle;
|
|
58
58
|
autoLineByLineThreshold: number;
|
|
59
59
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
60
60
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|