vlite3 1.1.11 → 1.2.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/AppShell/AppShell.vue.js +76 -0
- package/components/AppShell/AppShell.vue2.js +4 -0
- package/components/AppShell/AppShellLayoutClassic.vue.js +279 -0
- package/components/AppShell/AppShellLayoutClassic.vue2.js +4 -0
- package/components/AppShell/AppShellLayoutDashboard.vue.js +171 -0
- package/components/AppShell/AppShellLayoutDashboard.vue2.js +4 -0
- package/components/AppShell/AppShellLayoutDock.vue.js +165 -0
- package/components/AppShell/AppShellLayoutDock.vue2.js +4 -0
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +173 -0
- package/components/AppShell/AppShellLayoutHeaderShell.vue2.js +4 -0
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +166 -0
- package/components/AppShell/AppShellLayoutSidebarFirst.vue2.js +4 -0
- package/components/AppShell/useAppShell.js +134 -0
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/DataTable/DataTable.vue.d.ts +3 -3
- package/components/DataTable/DataTableRow.vue.d.ts +1 -1
- package/components/Dropdown/Dropdown.vue.js +11 -11
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/CustomFields.vue2.js +15 -2
- package/components/Invoice/InvoiceVariant1.vue.js +225 -176
- package/components/Invoice/InvoiceVariant2.vue.js +174 -125
- package/components/Invoice/InvoiceVariant3.vue.js +186 -157
- package/components/Invoice/InvoiceVariant4.vue.js +200 -156
- package/components/Invoice/types.d.ts +10 -1
- package/components/List/ListFieldRow.vue.js +16 -16
- package/components/List/utils.d.ts +2 -2
- package/components/List/utils.js +6 -9
- package/components/NavbarCommandPalette.vue.js +2 -2
- package/components/Price/Price.vue.d.ts +2 -0
- package/components/Price/Price.vue.js +15 -12
- package/components/Screen/Screen.vue.d.ts +36 -10
- package/components/Screen/Screen.vue.js +398 -304
- package/components/Screen/components/ScreenToolbar.vue.d.ts +62 -0
- package/components/Screen/components/ScreenToolbar.vue.js +116 -0
- package/components/Screen/components/ScreenToolbar.vue2.js +4 -0
- package/components/Screen/types.d.ts +9 -0
- package/components/Stats/StatItem.vue.js +88 -87
- package/components/Stats/Stats.vue.js +20 -20
- package/components/Stats/types.d.ts +3 -1
- package/composables/useBreadcrumb.js +27 -0
- package/core/config.d.ts +10 -0
- package/core/config.js +11 -9
- package/index.d.ts +1 -0
- package/index.js +215 -213
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/appshell.type.d.ts +1 -1
- package/types/config.type.d.ts +2 -0
- package/types/list.type.d.ts +4 -0
- package/utils/functions.d.ts +9 -10
- package/utils/functions.js +78 -63
|
@@ -31,15 +31,15 @@ declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {},
|
|
|
31
31
|
}>, {
|
|
32
32
|
variant: "default" | "raised";
|
|
33
33
|
size: "xs" | "sm" | "md" | "lg";
|
|
34
|
+
compact: boolean;
|
|
34
35
|
loading: boolean;
|
|
35
36
|
striped: boolean;
|
|
36
|
-
compact: boolean;
|
|
37
37
|
rows: any[];
|
|
38
38
|
headers: TableHeader[];
|
|
39
39
|
emptyIcon: string;
|
|
40
|
-
paginationProps: import('./types').DataTablePaginationProps;
|
|
41
|
-
hideSelectable: boolean;
|
|
42
40
|
selectedRows: any[];
|
|
41
|
+
hideSelectable: boolean;
|
|
42
|
+
paginationProps: import('./types').DataTablePaginationProps;
|
|
43
43
|
showPagination: boolean;
|
|
44
44
|
cellBordered: boolean;
|
|
45
45
|
keyField: string;
|
|
@@ -38,8 +38,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
38
38
|
}) => any;
|
|
39
39
|
}>, {
|
|
40
40
|
size: "xs" | "sm" | "md" | "lg";
|
|
41
|
-
striped: boolean;
|
|
42
41
|
compact: boolean;
|
|
42
|
+
striped: boolean;
|
|
43
43
|
selectable: boolean;
|
|
44
44
|
isSelected: boolean;
|
|
45
45
|
keyField: string;
|
|
@@ -57,15 +57,15 @@ const Ne = /* @__PURE__ */ le({
|
|
|
57
57
|
confirmText: "Confirm",
|
|
58
58
|
cancelText: "Cancel",
|
|
59
59
|
variant: "primary"
|
|
60
|
-
}), U = f(() => l.position ? l.position : l.direction === "rtl" ? "bottom-end" : "bottom-start"), q = f(() => l.nestedPosition ? l.nestedPosition : l.direction === "rtl" ? "left-start" : "right-start"), C = i(l.isOpen || !1), b = i(0), F = `dropdown-${Math.random().toString(36).substring(2, 9)}`,
|
|
60
|
+
}), U = f(() => l.position ? l.position : l.direction === "rtl" ? "bottom-end" : "bottom-start"), q = f(() => l.nestedPosition ? l.nestedPosition : l.direction === "rtl" ? "left-start" : "right-start"), C = i(l.isOpen || !1), b = i(0), F = `dropdown-${Math.random().toString(36).substring(2, 9)}`, $ = f(() => l.menuId || F), g = i([]), s = ne("dropdown-context", null), G = (e) => {
|
|
61
61
|
g.value.includes(e) || g.value.push(e), s?.registerChildId?.(e);
|
|
62
62
|
}, J = (e) => {
|
|
63
63
|
g.value = g.value.filter((o) => o !== e), s?.unregisterChildId?.(e);
|
|
64
64
|
};
|
|
65
65
|
oe(() => {
|
|
66
|
-
s?.registerChildId && s.registerChildId(`#${
|
|
66
|
+
s?.registerChildId && s.registerChildId(`#${$.value}`);
|
|
67
67
|
}), ae(() => {
|
|
68
|
-
s?.unregisterChildId && s.unregisterChildId(`#${
|
|
68
|
+
s?.unregisterChildId && s.unregisterChildId(`#${$.value}`);
|
|
69
69
|
}), M(
|
|
70
70
|
() => l.isOpen,
|
|
71
71
|
(e) => {
|
|
@@ -94,9 +94,9 @@ const Ne = /* @__PURE__ */ le({
|
|
|
94
94
|
registerChildId: G,
|
|
95
95
|
unregisterChildId: J
|
|
96
96
|
}), L("modal-context", null);
|
|
97
|
-
const
|
|
97
|
+
const w = f(() => l.options ? l.options.map((e) => typeof e == "string" || typeof e == "number" ? { label: String(e), value: String(e) } : e) : []), S = i([]), x = i(!1), I = i(!1);
|
|
98
98
|
M(
|
|
99
|
-
|
|
99
|
+
w,
|
|
100
100
|
(e) => {
|
|
101
101
|
if (e) {
|
|
102
102
|
if (l.remote) {
|
|
@@ -107,7 +107,7 @@ const Ne = /* @__PURE__ */ le({
|
|
|
107
107
|
} else
|
|
108
108
|
S.value = e;
|
|
109
109
|
!x.value && e.length > 0 && (x.value = !0, setTimeout(() => {
|
|
110
|
-
|
|
110
|
+
I.value = !0, E(B.value);
|
|
111
111
|
}, 10));
|
|
112
112
|
}
|
|
113
113
|
},
|
|
@@ -121,7 +121,7 @@ const Ne = /* @__PURE__ */ le({
|
|
|
121
121
|
}), { selectedBuffer: k, isHydrating: Q, hydrateSelected: E } = be({
|
|
122
122
|
fetchSelected: l.fetchSelected,
|
|
123
123
|
getAvailableOptions: () => c.value,
|
|
124
|
-
isReady: () =>
|
|
124
|
+
isReady: () => I.value
|
|
125
125
|
}), { getAllRecursiveIds: W } = pe(), X = ie({
|
|
126
126
|
...se(l),
|
|
127
127
|
options: c
|
|
@@ -135,7 +135,7 @@ const Ne = /* @__PURE__ */ le({
|
|
|
135
135
|
M(
|
|
136
136
|
() => B.value,
|
|
137
137
|
(e) => {
|
|
138
|
-
|
|
138
|
+
I.value && E(e);
|
|
139
139
|
},
|
|
140
140
|
{ deep: !0 }
|
|
141
141
|
);
|
|
@@ -188,7 +188,7 @@ const Ne = /* @__PURE__ */ le({
|
|
|
188
188
|
placement: U.value,
|
|
189
189
|
isOpen: C.value,
|
|
190
190
|
keepAlive: b.value > 0,
|
|
191
|
-
menuId:
|
|
191
|
+
menuId: $.value,
|
|
192
192
|
ignoreClickOutside: Z.value,
|
|
193
193
|
class: "w-full",
|
|
194
194
|
className: "dropdown " + (t.className || ""),
|
|
@@ -217,9 +217,9 @@ const Ne = /* @__PURE__ */ le({
|
|
|
217
217
|
])
|
|
218
218
|
]),
|
|
219
219
|
default: m(() => [
|
|
220
|
-
!(t.disabled || t.readonly) && (
|
|
220
|
+
!(t.disabled || t.readonly) && (w.value.length || c.value.length || e.$slots.menu || e.$slots.item || e.$slots.default || t.remote || t.searchable) ? (V(), ue(ye, {
|
|
221
221
|
key: 0,
|
|
222
|
-
options:
|
|
222
|
+
options: w.value,
|
|
223
223
|
cachedOptions: c.value,
|
|
224
224
|
class: ce(t.className),
|
|
225
225
|
emptyMessage: t.emptyMessage,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CustomFields.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-30cab34f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -175,7 +175,17 @@ const ie = { class: "custom-fields-wrapper" }, ce = { class: "flex justify-betwe
|
|
|
175
175
|
}, {
|
|
176
176
|
default: N(() => [
|
|
177
177
|
(n(!0), d(V, null, C(s.value, (o, l, h, c) => {
|
|
178
|
-
const b = [
|
|
178
|
+
const b = [
|
|
179
|
+
o,
|
|
180
|
+
r.disabled,
|
|
181
|
+
r.readonly,
|
|
182
|
+
r.isUpdate,
|
|
183
|
+
r.showRowNumbers,
|
|
184
|
+
x.value,
|
|
185
|
+
r.draggable,
|
|
186
|
+
l,
|
|
187
|
+
Y(l)
|
|
188
|
+
];
|
|
179
189
|
if (c && c.key === o._id && re(c, b)) return c;
|
|
180
190
|
const f = (n(), d("div", {
|
|
181
191
|
key: o._id,
|
|
@@ -183,7 +193,10 @@ const ie = { class: "custom-fields-wrapper" }, ce = { class: "flex justify-betwe
|
|
|
183
193
|
}, [
|
|
184
194
|
r.draggable && !r.disabled && !r.readonly ? (n(), d("div", {
|
|
185
195
|
key: 0,
|
|
186
|
-
class: F([
|
|
196
|
+
class: F([
|
|
197
|
+
"w-10 flex-none flex items-center justify-center border-r border-border bg-muted/5 drag-handle transition-colors",
|
|
198
|
+
r.disabled ? "cursor-not-allowed opacity-50" : "cursor-grab active:cursor-grabbing hover:bg-muted/10 text-muted-foreground hover:text-foreground"
|
|
199
|
+
])
|
|
187
200
|
}, [
|
|
188
201
|
$(de, {
|
|
189
202
|
icon: "lucide:grip-vertical",
|