vlite3 1.5.25 → 1.5.28
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/Accordion/Accordion.vue.d.ts +8 -1
- package/components/Accordion/AccordionContent.vue.d.ts +8 -2
- package/components/Accordion/AccordionContent.vue.js +2 -2
- package/components/Accordion/AccordionContent2.vue.js +28 -40
- package/components/Accordion/AccordionItem.vue.d.ts +8 -1
- package/components/Accordion/AccordionItem.vue.js +86 -70
- package/components/Accordion/AccordionTrigger.vue.js +13 -12
- package/components/Badge.vue.d.ts +1 -1
- package/components/Beacon.vue.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
- package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +1 -1
- package/components/Button.vue.d.ts +1 -1
- package/components/Button.vue.js +2 -2
- package/components/Button2.vue.js +1 -1
- package/components/Carousel/Carousel.vue.d.ts +4 -4
- package/components/CategoryManager/CategoryManager2.vue.js +1 -1
- package/components/Chart/CircleChart.vue.d.ts +1 -1
- package/components/Chart/GaugeChart.vue.d.ts +1 -1
- package/components/Chart/SpeedometerChart.vue.d.ts +1 -1
- package/components/Chip/Chip.vue.d.ts +1 -1
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
- package/components/Clipboard.vue.d.ts +1 -1
- package/components/ColorPicker/ColorPicker.vue.d.ts +1 -1
- package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
- package/components/DataList/DataList.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.js +2 -2
- package/components/DataTable/DataTable2.vue.js +48 -50
- package/components/EditableTitle/EditableTitle.vue.d.ts +11 -11
- package/components/Empty/Empty.vue.d.ts +11 -2
- package/components/Empty/Empty.vue.js +57 -49
- package/components/Empty/index.d.ts +1 -1
- package/components/Empty/types.d.ts +13 -0
- package/components/Empty/types.js +8 -0
- package/components/Empty/variants/Variant1.vue.d.ts +4 -6
- package/components/Empty/variants/Variant1.vue.js +56 -20
- package/components/Empty/variants/Variant10.vue.d.ts +4 -6
- package/components/Empty/variants/Variant10.vue.js +68 -26
- package/components/Empty/variants/Variant11.vue.d.ts +4 -6
- package/components/Empty/variants/Variant11.vue.js +66 -18
- package/components/Empty/variants/Variant12.vue.d.ts +4 -6
- package/components/Empty/variants/Variant12.vue.js +67 -25
- package/components/Empty/variants/Variant2.vue.d.ts +4 -6
- package/components/Empty/variants/Variant2.vue.js +56 -20
- package/components/Empty/variants/Variant3.vue.d.ts +4 -6
- package/components/Empty/variants/Variant3.vue.js +41 -13
- package/components/Empty/variants/Variant4.vue.d.ts +4 -6
- package/components/Empty/variants/Variant4.vue.js +65 -21
- package/components/Empty/variants/Variant5.vue.d.ts +4 -6
- package/components/Empty/variants/Variant5.vue.js +55 -17
- package/components/Empty/variants/Variant6.vue.d.ts +4 -6
- package/components/Empty/variants/Variant6.vue.js +67 -23
- package/components/Empty/variants/Variant7.vue.d.ts +4 -6
- package/components/Empty/variants/Variant7.vue.js +81 -25
- package/components/Empty/variants/Variant8.vue.d.ts +4 -6
- package/components/Empty/variants/Variant8.vue.js +59 -23
- package/components/Empty/variants/Variant9.vue.d.ts +4 -6
- package/components/Empty/variants/Variant9.vue.js +64 -20
- package/components/FilePicker/index.vue.d.ts +1 -1
- package/components/FileTree/FileTree.vue.d.ts +2 -0
- package/components/FileTree/FileTree.vue.js +4 -4
- package/components/FileTree/FileTree2.vue.js +72 -66
- package/components/FileTree/FileTreeNode.vue.d.ts +9 -0
- package/components/FileTree/FileTreeNode.vue.js +100 -92
- package/components/FileTree/types.d.ts +12 -0
- package/components/Form/{AccordionView.vue.js → AccordionView2.vue.js} +1 -1
- package/components/Form/Form.vue.d.ts +1 -1
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Form/FormFields.vue.d.ts +1 -1
- package/components/Form/TableView.vue.d.ts +1 -1
- package/components/Form/index.vue.d.ts +1 -1
- package/components/Form/index2.vue.js +1 -1
- package/components/GoogleLogin.vue.d.ts +1 -1
- package/components/Input.vue.d.ts +1 -1
- package/components/Input.vue.js +2 -4
- package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
- package/components/Navbar/NavbarTabs.vue.d.ts +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/NumberInput.vue.d.ts +1 -1
- package/components/OTPInput/OTPInput.vue.d.ts +1 -1
- package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/Screen/components/ScreenEmptyState.vue.js +12 -12
- package/components/Slider.vue.d.ts +1 -1
- package/components/Spinner/Spinner.vue.d.ts +1 -1
- package/components/Splitter/Splitter.vue.d.ts +9 -16
- package/components/Splitter/Splitter.vue.js +72 -41
- package/components/Switch.vue.d.ts +1 -1
- package/components/Tabes/Tabes.vue.d.ts +1 -1
- package/components/TagInput/TagInput.vue.d.ts +6 -6
- package/components/Tooltip.vue.d.ts +1 -1
- package/core/config.d.ts +2 -2
- package/docs/components/accordion.md +35 -0
- package/docs/components/empty.md +38 -4
- package/docs/components/file-tree.md +67 -16
- package/docs-manifest.json +5 -5
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -48,8 +48,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
48
48
|
"onUpdate:modelValue"?: (value: string) => any;
|
|
49
49
|
"onUpdate:isOpen"?: (value: boolean) => any;
|
|
50
50
|
}>, {
|
|
51
|
-
variant: InputVariant;
|
|
52
51
|
size: InputSize;
|
|
52
|
+
variant: InputVariant;
|
|
53
53
|
rounded: InputRounded;
|
|
54
54
|
disabled: boolean;
|
|
55
55
|
modelValue: string;
|
|
@@ -4,7 +4,7 @@ import _ from "../Icon.vue.js";
|
|
|
4
4
|
import { $t as E } from "../../utils/i18n.js";
|
|
5
5
|
import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
|
|
6
6
|
import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
|
|
7
|
-
import ee from "./
|
|
7
|
+
import ee from "./CommandPaletteItem.vue.js";
|
|
8
8
|
const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
|
|
@@ -31,8 +31,8 @@ declare const __VLS_component: import('vue').DefineComponent<DataListProps, {},
|
|
|
31
31
|
}) => any;
|
|
32
32
|
}>, {
|
|
33
33
|
data: any[];
|
|
34
|
-
loading: boolean;
|
|
35
34
|
className: string;
|
|
35
|
+
loading: boolean;
|
|
36
36
|
emptyIcon: string;
|
|
37
37
|
paginationProps: import('./types').DataListMetaInfo;
|
|
38
38
|
itemProps: Record<string, any>;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
|
|
|
43
43
|
"onUpdate:selectedRows"?: (value: any[]) => any;
|
|
44
44
|
onColumnResize?: (payload: ColumnResizePayload) => any;
|
|
45
45
|
}>, {
|
|
46
|
-
variant: "default" | "raised";
|
|
47
46
|
size: "xs" | "sm" | "md" | "lg";
|
|
47
|
+
variant: "default" | "raised";
|
|
48
48
|
rounded: boolean;
|
|
49
49
|
compact: boolean;
|
|
50
50
|
loading: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataTable2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-477f11b0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as pt, computed as r, inject as yt, toRef as re, ref as L, watch as F, shallowRef as kt, onUnmounted as xt, openBlock as o, createElementBlock as d, createElementVNode as f, normalizeClass as I, Fragment as z, renderList as k, createCommentVNode as D, unref as a, isMemoSame as de, createBlock as
|
|
1
|
+
import { defineComponent as pt, computed as r, inject as yt, toRef as re, ref as L, watch as F, shallowRef as kt, onUnmounted as xt, openBlock as o, createElementBlock as d, createElementVNode as f, normalizeClass as I, Fragment as z, renderList as k, createCommentVNode as D, unref as a, isMemoSame as de, createBlock as ce, createSlots as q, withCtx as G, renderSlot as M, mergeProps as ue, createVNode as N, normalizeStyle as E, withModifiers as Le } from "vue";
|
|
2
2
|
import { useBreakpoints as zt, breakpointsTailwind as St } from "@vueuse/core";
|
|
3
3
|
import Rt from "../CheckBox.vue.js";
|
|
4
4
|
import Ct from "../ConfirmationModal.vue.js";
|
|
@@ -22,7 +22,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
22
22
|
}, At = { class: "flex flex-col gap-2.5 px-3 py-3" }, Ft = {
|
|
23
23
|
key: 2,
|
|
24
24
|
class: "border rounded-lg bg-background"
|
|
25
|
-
},
|
|
25
|
+
}, Nt = ["data-resizing"], Vt = ["data-vlite-resize-boundary", "data-active", "aria-label", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "onPointerdown", "onDblclick", "onKeydown"], Ot = { key: 0 }, Ut = ["data-vlite-col"], jt = { class: "hover:bg-transparent" }, Yt = {
|
|
26
26
|
key: 0,
|
|
27
27
|
scope: "col",
|
|
28
28
|
class: "w-[40px] px-0 text-center font-medium text-muted-foreground",
|
|
@@ -78,7 +78,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
78
78
|
const Fe = (e, l) => {
|
|
79
79
|
if (!(!e || !l))
|
|
80
80
|
return l.includes(".") ? l.split(".").reduce((t, i) => t?.[i], e) : e[l];
|
|
81
|
-
}, w = (e, l) => Fe(e, l),
|
|
81
|
+
}, w = (e, l) => Fe(e, l), Ne = (e, l) => {
|
|
82
82
|
const t = ["id", "_id"];
|
|
83
83
|
if (l && l !== "auto") return l;
|
|
84
84
|
if (e && e.length > 0) {
|
|
@@ -86,9 +86,9 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
86
86
|
if (i in e[0]) return i;
|
|
87
87
|
}
|
|
88
88
|
return "_id";
|
|
89
|
-
},
|
|
89
|
+
}, Ve = (e) => e.sortKey || e.field, s = n, me = zt(St).smaller("md"), V = r(() => s.responsive && me.value), Oe = r(() => Dt(s.headers)), J = r(
|
|
90
90
|
() => me.value ? s.headers.filter((e) => !e.hideOnMobile) : s.headers
|
|
91
|
-
), S = Ae, Q = yt($t, null), p = r(() => s.hideSelectable ? !1 : Q ? Q.forceSelectable : !0), b = r(() =>
|
|
91
|
+
), S = Ae, Q = yt($t, null), p = r(() => s.hideSelectable ? !1 : Q ? Q.forceSelectable : !0), b = r(() => Ne(s.rows, s.keyField)), y = (e) => s.isRowSelectable?.(e) !== !1, O = (e) => p.value && y(e), {
|
|
92
92
|
isTreeMode: g,
|
|
93
93
|
flattenVisibleRows: H,
|
|
94
94
|
allLoadedRows: R,
|
|
@@ -141,7 +141,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
141
141
|
const e = [], l = (t) => {
|
|
142
142
|
for (const i of t) {
|
|
143
143
|
y(i) && e.push(i);
|
|
144
|
-
for (const
|
|
144
|
+
for (const u of ge(i)) l([u]);
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
return l(s.rows), e;
|
|
@@ -152,16 +152,14 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
152
152
|
() => K.value.filter(
|
|
153
153
|
(e) => m.value.has(w(e, b.value))
|
|
154
154
|
).length
|
|
155
|
-
), he = r(
|
|
156
|
-
() => Ye.value > 0 && !ee.value
|
|
157
|
-
), Xe = r(() => {
|
|
155
|
+
), he = r(() => Ye.value > 0 && !ee.value), Xe = r(() => {
|
|
158
156
|
const e = new Map(R.value);
|
|
159
157
|
return (s.selectedRows || []).forEach((l) => e.set(w(l, b.value), l)), s.rows.forEach((l) => e.set(w(l, b.value), l)), Array.from(m.value).map((l) => e.get(l)).filter(Boolean);
|
|
160
158
|
}), Ze = (e) => {
|
|
161
159
|
if (!g.value) return !1;
|
|
162
160
|
const l = fe(e).filter((i) => {
|
|
163
|
-
const
|
|
164
|
-
return
|
|
161
|
+
const u = R.value.get(i);
|
|
162
|
+
return u && y(u);
|
|
165
163
|
});
|
|
166
164
|
if (!l.length) return !1;
|
|
167
165
|
let t = 0;
|
|
@@ -179,8 +177,8 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
179
177
|
for (; t != null; ) {
|
|
180
178
|
const i = R.value.get(t);
|
|
181
179
|
if (!i) break;
|
|
182
|
-
const
|
|
183
|
-
y(i) &&
|
|
180
|
+
const u = ge(i).filter(y).map((v) => w(v, b.value)), c = u.length > 0 && u.every((v) => l.has(v));
|
|
181
|
+
y(i) && c ? l.add(t) : l.delete(t), t = ve(t);
|
|
184
182
|
}
|
|
185
183
|
}, Ge = (e) => {
|
|
186
184
|
const l = new Set(m.value);
|
|
@@ -189,25 +187,25 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
189
187
|
e ? l.add(i) : l.delete(i);
|
|
190
188
|
}), m.value = l, te();
|
|
191
189
|
}, we = (e) => {
|
|
192
|
-
const l = R.value.get(e) || s.rows.find((
|
|
190
|
+
const l = R.value.get(e) || s.rows.find((u) => w(u, b.value) === e);
|
|
193
191
|
if (!l || !y(l)) return;
|
|
194
192
|
const t = new Set(m.value), i = !t.has(e);
|
|
195
193
|
if (g.value) {
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
194
|
+
const u = R.value.get(e);
|
|
195
|
+
if (u) {
|
|
196
|
+
const c = (v, x) => {
|
|
199
197
|
const h = R.value.get(v);
|
|
200
198
|
!h || !y(h) || (x ? t.add(v) : t.delete(v));
|
|
201
199
|
};
|
|
202
|
-
|
|
200
|
+
c(e, i), fe(u).forEach((v) => c(v, i)), qe(e, t), m.value = t, te();
|
|
203
201
|
return;
|
|
204
202
|
}
|
|
205
203
|
}
|
|
206
204
|
t.has(e) ? t.delete(e) : t.add(e), m.value = t, te();
|
|
207
205
|
}, te = () => {
|
|
208
206
|
const e = /* @__PURE__ */ new Set(), l = [], t = (i) => {
|
|
209
|
-
const
|
|
210
|
-
m.value.has(
|
|
207
|
+
const u = w(i, b.value);
|
|
208
|
+
m.value.has(u) && !e.has(u) && (l.push(i), e.add(u));
|
|
211
209
|
};
|
|
212
210
|
K.value.forEach(t), (s.selectedRows || []).forEach(t), S("select", {
|
|
213
211
|
selected: l,
|
|
@@ -215,7 +213,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
215
213
|
indeterminate: he.value
|
|
216
214
|
}), S("update:selectedRows", l);
|
|
217
215
|
}, Je = (e) => {
|
|
218
|
-
const l = s.headers.find((i) => i.field === e), t = l ?
|
|
216
|
+
const l = s.headers.find((i) => i.field === e), t = l ? Ve(l) : e;
|
|
219
217
|
B.value.field === t ? B.value.order = B.value.order === "asc" ? "desc" : "asc" : (B.value.field = t, B.value.order = "asc"), W.value = 1, le();
|
|
220
218
|
}, Qe = (e) => {
|
|
221
219
|
W.value = e, le();
|
|
@@ -253,9 +251,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
253
251
|
);
|
|
254
252
|
}
|
|
255
253
|
);
|
|
256
|
-
const ye = L(null), ke = L(null), tt = Et(), A = r(() => s.resizable && !
|
|
257
|
-
() => A.value && s.cellBordered
|
|
258
|
-
), {
|
|
254
|
+
const ye = L(null), ke = L(null), tt = Et(), A = r(() => s.resizable && !V.value), xe = r(() => A.value && s.cellBordered), {
|
|
259
255
|
isResizing: ze,
|
|
260
256
|
activeField: Se,
|
|
261
257
|
isApplyingWidths: C,
|
|
@@ -305,19 +301,19 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
305
301
|
}, dt = (e) => {
|
|
306
302
|
const l = ie.value.get(e);
|
|
307
303
|
return l ? Pe(l) : void 0;
|
|
308
|
-
},
|
|
304
|
+
}, ct = r(() => {
|
|
309
305
|
const e = s.variant === "raised", l = s.rounded ? e ? "rounded-lg" : "rounded" : "rounded-none";
|
|
310
306
|
return [
|
|
311
307
|
"w-full flex flex-col",
|
|
312
308
|
e ? `bg-background shadow-sm p-2 ${l}` : `bg-background ${l}`,
|
|
313
|
-
|
|
309
|
+
V.value ? "overflow-visible" : "overflow-hidden",
|
|
314
310
|
// Outer border stays on desktop table; stacked cards carry their own borders.
|
|
315
|
-
s.bordered && !
|
|
311
|
+
s.bordered && !V.value ? "border border-border" : "",
|
|
316
312
|
// Belt-and-braces with the body-level lock: no text selection mid-drag.
|
|
317
313
|
ze.value ? "select-none" : "",
|
|
318
314
|
s.class
|
|
319
315
|
].join(" ");
|
|
320
|
-
}),
|
|
316
|
+
}), ut = r(() => {
|
|
321
317
|
const e = s.cellBordered ? "[&_thead_th]:border-border [&_tbody_td]:border-border [&_tbody_th]:border-border [&_thead_th:not(:last-child)]:border-e [&_tbody_td:not(:last-child)]:border-e [&_tbody_th:not(:last-child)]:border-e [&_tbody_tr:not(:last-child)>td]:border-b [&_tbody_tr:not(:last-child)>th]:border-b" : "";
|
|
322
318
|
return [
|
|
323
319
|
"w-full caption-bottom -text-fs-1",
|
|
@@ -359,9 +355,9 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
359
355
|
});
|
|
360
356
|
return (e, l) => (o(), d("div", Lt, [
|
|
361
357
|
f("div", {
|
|
362
|
-
class: I(
|
|
358
|
+
class: I(ct.value)
|
|
363
359
|
}, [
|
|
364
|
-
|
|
360
|
+
V.value ? (o(), d("div", Mt, [
|
|
365
361
|
_.value ? (o(!0), d(z, { key: 0 }, k(Math.min($.value, 15), (t) => (o(), d("div", {
|
|
366
362
|
key: "skeleton-card-" + t,
|
|
367
363
|
class: "border rounded-lg overflow-hidden bg-background"
|
|
@@ -379,7 +375,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
379
375
|
f("div", { class: "h-4 w-20 rounded-md bg-muted animate-pulse" }, null, -1)
|
|
380
376
|
])]))), 128))
|
|
381
377
|
])
|
|
382
|
-
]))), 128)) : a(H).length > 0 ? (o(!0), d(z, { key: 1 }, k(a(H), (t, i,
|
|
378
|
+
]))), 128)) : a(H).length > 0 ? (o(!0), d(z, { key: 1 }, k(a(H), (t, i, u, c) => {
|
|
383
379
|
const v = [
|
|
384
380
|
t.row,
|
|
385
381
|
m.value.has(t.id),
|
|
@@ -401,8 +397,8 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
401
397
|
n.treeIndent,
|
|
402
398
|
!0
|
|
403
399
|
];
|
|
404
|
-
if (
|
|
405
|
-
const x = (o(),
|
|
400
|
+
if (c && c.el && c.key === t.id && de(c, v)) return c;
|
|
401
|
+
const x = (o(), ce(He, {
|
|
406
402
|
key: t.id,
|
|
407
403
|
stacked: "",
|
|
408
404
|
row: t.row,
|
|
@@ -433,18 +429,19 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
433
429
|
k(n.headers, (h) => ({
|
|
434
430
|
name: h.field,
|
|
435
431
|
fn: G((oe) => [
|
|
436
|
-
M(e.$slots, h.field,
|
|
432
|
+
M(e.$slots, h.field, ue({ ref_for: !0 }, oe), void 0, !0)
|
|
437
433
|
])
|
|
438
434
|
}))
|
|
439
435
|
]), 1032, ["row", "headers", "index", "key-field", "selectable", "selection-disabled", "is-selected", "is-indeterminate", "hoverable", "striped", "compact", "size", "cell-bordered", "tree-mode", "depth", "tree-indent", "expandable", "expanded", "tree-loading", "is-last-sibling", "ancestor-last-flags", "onToggleExpand"]));
|
|
440
436
|
return x.memo = v, x;
|
|
441
437
|
}, l, 0), 128)) : (o(), d("div", Ft, [
|
|
442
438
|
M(e.$slots, "empty", {}, () => [
|
|
443
|
-
|
|
439
|
+
N(a(Me), {
|
|
444
440
|
title: $e.value,
|
|
445
441
|
description: We.value,
|
|
446
442
|
icon: n.emptyIcon,
|
|
447
443
|
variant: "variant12",
|
|
444
|
+
className: "py-2! min-h-[400px]",
|
|
448
445
|
class: "bg-transparent! py-8!"
|
|
449
446
|
}, q({ _: 2 }, [
|
|
450
447
|
e.$slots["empty-action"] ? {
|
|
@@ -498,12 +495,12 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
498
495
|
class: "data-table__resize-boundary-line",
|
|
499
496
|
"aria-hidden": "true"
|
|
500
497
|
}, null, -1)
|
|
501
|
-
])], 44,
|
|
502
|
-
], 12,
|
|
498
|
+
])], 44, Vt))), 128))
|
|
499
|
+
], 12, Nt)) : D("", !0),
|
|
503
500
|
f("table", {
|
|
504
501
|
ref_key: "tableRef",
|
|
505
502
|
ref: ye,
|
|
506
|
-
class: I([
|
|
503
|
+
class: I([ut.value, "data-table"]),
|
|
507
504
|
style: E(mt.value)
|
|
508
505
|
}, [
|
|
509
506
|
it.value ? (o(), d("colgroup", Ot, [
|
|
@@ -528,7 +525,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
528
525
|
f("tr", jt, [
|
|
529
526
|
p.value ? (o(), d("th", Yt, [
|
|
530
527
|
f("div", Xt, [
|
|
531
|
-
|
|
528
|
+
N(Rt, {
|
|
532
529
|
"model-value": ee.value,
|
|
533
530
|
indeterminate: he.value,
|
|
534
531
|
disabled: !je.value,
|
|
@@ -537,7 +534,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
537
534
|
}, null, 8, ["model-value", "indeterminate", "disabled"])
|
|
538
535
|
])
|
|
539
536
|
])) : D("", !0),
|
|
540
|
-
(o(!0), d(z, null, k(n.headers, (t) => (o(),
|
|
537
|
+
(o(!0), d(z, null, k(n.headers, (t) => (o(), ce(Tt, {
|
|
541
538
|
key: t.field,
|
|
542
539
|
header: t,
|
|
543
540
|
"sort-config": B.value,
|
|
@@ -555,7 +552,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
555
552
|
"resize-label": Pe(t),
|
|
556
553
|
onSort: Je,
|
|
557
554
|
onResizeStart: (i) => De(t.field, i),
|
|
558
|
-
onResizeKeyboard: (i,
|
|
555
|
+
onResizeKeyboard: (i, u) => st(t.field, i, u),
|
|
559
556
|
onResizeReset: (i) => a(ae)(t.field),
|
|
560
557
|
class: I([
|
|
561
558
|
n.cellBordered ? "" : "last:pr-5!",
|
|
@@ -567,9 +564,9 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
567
564
|
])
|
|
568
565
|
], 2),
|
|
569
566
|
f("tbody", Zt, [
|
|
570
|
-
_.value ? (o(!0), d(z, { key: 0 }, k(Math.min($.value, 15), (t, i,
|
|
567
|
+
_.value ? (o(!0), d(z, { key: 0 }, k(Math.min($.value, 15), (t, i, u, c) => {
|
|
571
568
|
const v = [];
|
|
572
|
-
if (
|
|
569
|
+
if (c && c.el && c.key === "skeleton-" + t && de(c, v)) return c;
|
|
573
570
|
const x = (o(), d("tr", {
|
|
574
571
|
key: "skeleton-" + t,
|
|
575
572
|
class: "border-b border-border/70 bg-background transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted"
|
|
@@ -593,7 +590,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
593
590
|
], 2))), 128))
|
|
594
591
|
]));
|
|
595
592
|
return x.memo = v, x;
|
|
596
|
-
}, l, 3), 128)) : a(H).length > 0 ? (o(!0), d(z, { key: 1 }, k(a(H), (t, i,
|
|
593
|
+
}, l, 3), 128)) : a(H).length > 0 ? (o(!0), d(z, { key: 1 }, k(a(H), (t, i, u, c) => {
|
|
597
594
|
const v = [
|
|
598
595
|
t.row,
|
|
599
596
|
m.value.has(t.id),
|
|
@@ -617,8 +614,8 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
617
614
|
a(C),
|
|
618
615
|
A.value
|
|
619
616
|
];
|
|
620
|
-
if (
|
|
621
|
-
const x = (o(),
|
|
617
|
+
if (c && c.el && c.key === t.id && de(c, v)) return c;
|
|
618
|
+
const x = (o(), ce(He, {
|
|
622
619
|
key: t.id,
|
|
623
620
|
row: t.row,
|
|
624
621
|
headers: n.headers,
|
|
@@ -651,7 +648,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
651
648
|
k(n.headers, (h) => ({
|
|
652
649
|
name: h.field,
|
|
653
650
|
fn: G((oe) => [
|
|
654
|
-
M(e.$slots, h.field,
|
|
651
|
+
M(e.$slots, h.field, ue({ ref_for: !0 }, oe), void 0, !0)
|
|
655
652
|
])
|
|
656
653
|
}))
|
|
657
654
|
]), 1032, ["row", "headers", "index", "key-field", "selectable", "selection-disabled", "is-selected", "is-indeterminate", "hoverable", "striped", "compact", "size", "cell-bordered", "tree-mode", "depth", "tree-indent", "expandable", "expanded", "tree-loading", "is-last-sibling", "ancestor-last-flags", "columns-frozen", "column-resizing", "onToggleExpand", "class"]));
|
|
@@ -662,11 +659,12 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
662
659
|
class: "align-middle hover:bg-transparent"
|
|
663
660
|
}, [
|
|
664
661
|
M(e.$slots, "empty", {}, () => [
|
|
665
|
-
|
|
662
|
+
N(a(Me), {
|
|
666
663
|
title: $e.value,
|
|
667
664
|
description: We.value,
|
|
668
665
|
icon: n.emptyIcon,
|
|
669
666
|
variant: "variant12",
|
|
667
|
+
className: "py-2! min-h-[400px]",
|
|
670
668
|
class: "bg-transparent! py-8!"
|
|
671
669
|
}, q({ _: 2 }, [
|
|
672
670
|
e.$slots["empty-action"] ? {
|
|
@@ -685,7 +683,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
685
683
|
], 2))
|
|
686
684
|
], 2),
|
|
687
685
|
n.showPagination && n.pageInfo && n.pageInfo.totalPages > 1 ? (o(), d("div", Qt, [
|
|
688
|
-
|
|
686
|
+
N(a(It), ue({
|
|
689
687
|
"current-page": W.value,
|
|
690
688
|
"total-pages": n.pageInfo.totalPages,
|
|
691
689
|
"total-items": n.pageInfo.totalItems
|
|
@@ -694,7 +692,7 @@ const Lt = { class: "space-y-6.5" }, Mt = {
|
|
|
694
692
|
"onUpdate:itemsPerPage": _e
|
|
695
693
|
}), null, 16, ["current-page", "total-pages", "total-items"])
|
|
696
694
|
])) : D("", !0),
|
|
697
|
-
|
|
695
|
+
N(Ct, {
|
|
698
696
|
show: X.value,
|
|
699
697
|
"onUpdate:show": l[7] || (l[7] = (t) => X.value = t),
|
|
700
698
|
title: bt.value,
|
|
@@ -17,8 +17,8 @@ declare function __VLS_template(): {
|
|
|
17
17
|
$props: Partial<{
|
|
18
18
|
type: import('../../types').InputType;
|
|
19
19
|
class: string;
|
|
20
|
-
variant: import('../../types').InputVariant;
|
|
21
20
|
size: import('../../types').InputSize;
|
|
21
|
+
variant: import('../../types').InputVariant;
|
|
22
22
|
rounded: import('../../types').InputRounded;
|
|
23
23
|
loading: boolean;
|
|
24
24
|
readonly: boolean;
|
|
@@ -69,7 +69,7 @@ declare function __VLS_template(): {
|
|
|
69
69
|
readonly "onUpdate:modelValue"?: (value: string | number) => any;
|
|
70
70
|
readonly "onClick:icon"?: (event: MouseEvent) => any;
|
|
71
71
|
readonly "onClick:icon-right"?: (event: MouseEvent) => any;
|
|
72
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "class" | "
|
|
72
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "class" | "size" | "variant" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass">;
|
|
73
73
|
$attrs: import('vue').Attrs;
|
|
74
74
|
$refs: any;
|
|
75
75
|
$slots: Readonly<{
|
|
@@ -102,8 +102,8 @@ declare function __VLS_template(): {
|
|
|
102
102
|
}, string, {
|
|
103
103
|
type: import('../../types').InputType;
|
|
104
104
|
class: string;
|
|
105
|
-
variant: import('../../types').InputVariant;
|
|
106
105
|
size: import('../../types').InputSize;
|
|
106
|
+
variant: import('../../types').InputVariant;
|
|
107
107
|
rounded: import('../../types').InputRounded;
|
|
108
108
|
loading: boolean;
|
|
109
109
|
readonly: boolean;
|
|
@@ -140,8 +140,8 @@ declare function __VLS_template(): {
|
|
|
140
140
|
} & Readonly<{
|
|
141
141
|
type: import('../../types').InputType;
|
|
142
142
|
class: string;
|
|
143
|
-
variant: import('../../types').InputVariant;
|
|
144
143
|
size: import('../../types').InputSize;
|
|
144
|
+
variant: import('../../types').InputVariant;
|
|
145
145
|
rounded: import('../../types').InputRounded;
|
|
146
146
|
loading: boolean;
|
|
147
147
|
readonly: boolean;
|
|
@@ -162,7 +162,7 @@ declare function __VLS_template(): {
|
|
|
162
162
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
163
163
|
"onClick:icon"?: (event: MouseEvent) => any;
|
|
164
164
|
"onClick:icon-right"?: (event: MouseEvent) => any;
|
|
165
|
-
}>, "select" | "el" | "blur" | "focus" | ("type" | "class" | "
|
|
165
|
+
}>, "select" | "el" | "blur" | "focus" | ("type" | "class" | "size" | "variant" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass")> & {
|
|
166
166
|
focus: (options?: FocusOptions) => void;
|
|
167
167
|
select: () => void;
|
|
168
168
|
blur: () => void;
|
|
@@ -205,8 +205,8 @@ declare const __VLS_component: import('vue').DefineComponent<EditableTitleProps,
|
|
|
205
205
|
}>, {
|
|
206
206
|
icon: string;
|
|
207
207
|
class: any;
|
|
208
|
-
variant: EditableTitleVariant;
|
|
209
208
|
size: EditableTitleSize;
|
|
209
|
+
variant: EditableTitleVariant;
|
|
210
210
|
readonly: boolean;
|
|
211
211
|
placeholder: string;
|
|
212
212
|
disabled: boolean;
|
|
@@ -230,8 +230,8 @@ declare const __VLS_component: import('vue').DefineComponent<EditableTitleProps,
|
|
|
230
230
|
$props: Partial<{
|
|
231
231
|
type: import('../../types').InputType;
|
|
232
232
|
class: string;
|
|
233
|
-
variant: import('../../types').InputVariant;
|
|
234
233
|
size: import('../../types').InputSize;
|
|
234
|
+
variant: import('../../types').InputVariant;
|
|
235
235
|
rounded: import('../../types').InputRounded;
|
|
236
236
|
loading: boolean;
|
|
237
237
|
readonly: boolean;
|
|
@@ -282,7 +282,7 @@ declare const __VLS_component: import('vue').DefineComponent<EditableTitleProps,
|
|
|
282
282
|
readonly "onUpdate:modelValue"?: (value: string | number) => any;
|
|
283
283
|
readonly "onClick:icon"?: (event: MouseEvent) => any;
|
|
284
284
|
readonly "onClick:icon-right"?: (event: MouseEvent) => any;
|
|
285
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "class" | "
|
|
285
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "class" | "size" | "variant" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass">;
|
|
286
286
|
$attrs: import('vue').Attrs;
|
|
287
287
|
$refs: any;
|
|
288
288
|
$slots: Readonly<{
|
|
@@ -315,8 +315,8 @@ declare const __VLS_component: import('vue').DefineComponent<EditableTitleProps,
|
|
|
315
315
|
}, string, {
|
|
316
316
|
type: import('../../types').InputType;
|
|
317
317
|
class: string;
|
|
318
|
-
variant: import('../../types').InputVariant;
|
|
319
318
|
size: import('../../types').InputSize;
|
|
319
|
+
variant: import('../../types').InputVariant;
|
|
320
320
|
rounded: import('../../types').InputRounded;
|
|
321
321
|
loading: boolean;
|
|
322
322
|
readonly: boolean;
|
|
@@ -353,8 +353,8 @@ declare const __VLS_component: import('vue').DefineComponent<EditableTitleProps,
|
|
|
353
353
|
} & Readonly<{
|
|
354
354
|
type: import('../../types').InputType;
|
|
355
355
|
class: string;
|
|
356
|
-
variant: import('../../types').InputVariant;
|
|
357
356
|
size: import('../../types').InputSize;
|
|
357
|
+
variant: import('../../types').InputVariant;
|
|
358
358
|
rounded: import('../../types').InputRounded;
|
|
359
359
|
loading: boolean;
|
|
360
360
|
readonly: boolean;
|
|
@@ -375,7 +375,7 @@ declare const __VLS_component: import('vue').DefineComponent<EditableTitleProps,
|
|
|
375
375
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
376
376
|
"onClick:icon"?: (event: MouseEvent) => any;
|
|
377
377
|
"onClick:icon-right"?: (event: MouseEvent) => any;
|
|
378
|
-
}>, "select" | "el" | "blur" | "focus" | ("type" | "class" | "
|
|
378
|
+
}>, "select" | "el" | "blur" | "focus" | ("type" | "class" | "size" | "variant" | "rounded" | "loading" | "readonly" | "disabled" | "modelValue" | "rows" | "showClearButton" | "autofocus" | "inputClass" | "lazy" | "labelPosition" | "addonLeftClass" | "addonRightClass")> & {
|
|
379
379
|
focus: (options?: FocusOptions) => void;
|
|
380
380
|
select: () => void;
|
|
381
381
|
blur: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmptyVariant } from '
|
|
1
|
+
import { EmptyActionSlotProps, EmptySize, EmptyVariant } from './types';
|
|
2
2
|
interface Props {
|
|
3
3
|
title?: string;
|
|
4
4
|
titleI18n?: string;
|
|
@@ -6,16 +6,25 @@ interface Props {
|
|
|
6
6
|
descriptionI18n?: string;
|
|
7
7
|
icon?: string;
|
|
8
8
|
variant?: EmptyVariant;
|
|
9
|
+
size?: EmptySize;
|
|
10
|
+
className?: string;
|
|
9
11
|
}
|
|
10
12
|
declare function __VLS_template(): {
|
|
11
13
|
attrs: Partial<{}>;
|
|
12
|
-
slots:
|
|
14
|
+
slots: Readonly<{
|
|
15
|
+
action(props: EmptyActionSlotProps): any;
|
|
16
|
+
default(): any;
|
|
17
|
+
}> & {
|
|
18
|
+
action(props: EmptyActionSlotProps): any;
|
|
19
|
+
default(): any;
|
|
20
|
+
};
|
|
13
21
|
refs: {};
|
|
14
22
|
rootEl: HTMLDivElement;
|
|
15
23
|
};
|
|
16
24
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
25
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
26
|
icon: string;
|
|
27
|
+
size: EmptySize;
|
|
19
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
20
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
30
|
export default _default;
|