vlite3 1.4.40 → 1.5.0
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/AppShellLayoutClassic.vue.js +27 -28
- package/components/AppShell/AppShellLayoutDashboard.vue.js +48 -48
- package/components/AppShell/AppShellLayoutDock.vue.js +51 -51
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +69 -69
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.d.ts +2 -2
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +78 -78
- package/components/AppShell/AppShellLayoutStorefront.vue.js +14 -15
- package/components/AppShell/useAppShell.d.ts +4 -0
- package/components/AppShell/useAppShell.js +45 -40
- package/components/AsyncSelect/createAsyncSelect.js +10 -10
- package/components/AttachmentsList/AttachmentsList.vue.d.ts +50 -2
- package/components/AttachmentsList/AttachmentsList.vue.js +289 -272
- package/components/AttachmentsList/types.d.ts +37 -0
- package/components/BackButton.vue.js +2 -2
- package/components/Button.vue.d.ts +1 -0
- package/components/Button.vue.js +5 -241
- package/components/Button.vue2.js +245 -2
- package/components/ButtonGroup.vue.js +2 -2
- package/components/ButtonGroup.vue2.js +4 -1
- package/components/Calendar/Calendar.vue2.js +16 -16
- package/components/Cart/CartCouponInput.vue.js +24 -24
- package/components/Cart/CartEmptyState.vue.js +4 -4
- package/components/Cart/CartLineItem.vue.js +33 -33
- package/components/Cart/CartVariant1.vue.js +3 -3
- package/components/Cart/CartVariant2.vue.js +5 -5
- package/components/Cart/CartVariant3.vue.js +25 -25
- package/components/Cart/CartVariant4.vue.js +9 -9
- package/components/CategoryManager/CategoryManager.vue.d.ts +2 -2
- package/components/CategoryManager/CategoryManager.vue2.js +18 -18
- package/components/CategoryManager/CategoryNode.vue.js +4 -4
- package/components/CategoryMenu/CategoryMenu.vue.js +3 -2
- package/components/CategoryMenu/CategoryMenuVariant1.vue2.js +3 -2
- package/components/Chat/ChatInterface.vue.js +23 -23
- package/components/Clipboard.vue.d.ts +7 -1
- package/components/Clipboard.vue.js +19 -17
- package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +22 -22
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +8 -8
- package/components/Comment/CommentEditor.vue.js +14 -14
- package/components/Comment/CommentItem.vue2.js +6 -6
- package/components/Comment/CommentThread.vue.js +4 -4
- package/components/DataList/DataList.vue.js +7 -7
- package/components/DataTable/DataTable.vue.d.ts +9 -1
- package/components/DataTable/DataTable.vue.js +374 -263
- package/components/DataTable/DataTableRow.vue.d.ts +23 -2
- package/components/DataTable/DataTableRow.vue.js +5 -198
- package/components/DataTable/DataTableRow.vue2.js +360 -2
- package/components/DataTable/dataTableHeaders.d.ts +18 -0
- package/components/DataTable/dataTableHeaders.js +9 -0
- package/components/DataTable/types.d.ts +6 -0
- package/components/DatePicker.vue.js +8 -9
- package/components/DateRangePicker.vue2.js +34 -34
- package/components/Dropdown/Dropdown.vue.d.ts +7 -2
- package/components/Dropdown/Dropdown.vue.js +146 -139
- package/components/Dropdown/DropdownTrigger.vue.js +6 -6
- package/components/ExportData/ExportData.vue.js +15 -15
- package/components/FilePicker/FilePickerDropzone.vue.js +16 -16
- package/components/FilePicker/FilePickerInput.vue.js +3 -2
- package/components/FilePicker/FilePreview.vue.js +3 -3
- package/components/FileTree/FileTree.vue.js +4 -4
- package/components/FileTree/FileTree.vue2.js +9 -9
- package/components/FileTree/FileTreeNode.vue.js +76 -72
- package/components/Footer/Variant1.vue.js +48 -48
- package/components/Footer/Variant2.vue.js +42 -42
- package/components/Form/AccordionView.vue.d.ts +1 -1
- package/components/Form/AccordionView.vue.js +2 -2
- package/components/Form/AccordionView.vue3.js +61 -57
- package/components/Form/Form.vue2.js +41 -41
- package/components/Form/TableRow.vue.d.ts +7 -0
- package/components/Form/TableRow.vue.js +187 -41
- package/components/Form/TableView.vue.d.ts +11 -1
- package/components/Form/TableView.vue.js +71 -49
- package/components/Form/composables/useForm.js +146 -142
- package/components/Form/index.vue.d.ts +5 -1
- package/components/Form/index.vue.js +2 -2
- package/components/Form/index.vue2.js +44 -37
- package/components/Form/rowHelpers.d.ts +20 -0
- package/components/Form/rowHelpers.js +76 -28
- package/components/Form/types.d.ts +11 -0
- package/components/GoogleLogin.vue.js +4 -4
- package/components/IconPicker.vue.js +9 -9
- package/components/ImportData/ImportData.vue.js +11 -11
- package/components/ImportData/ImportStep1.vue.js +10 -10
- package/components/ImportData/ImportStep2.vue.js +15 -14
- package/components/Input.vue.js +133 -129
- package/components/Kanban/KanbanBoard.vue.js +1 -1
- package/components/Kanban/KanbanBoard.vue2.js +9 -9
- package/components/MultiSelect/MultiSelect.vue.js +3 -2
- package/components/Navbar/Navbar.vue.js +17 -17
- package/components/Navbar/NavbarGroup.vue.js +8 -7
- package/components/Navbar/NavbarItem.vue.js +40 -39
- package/components/Navbar/NavbarTabs.vue.js +6 -184
- package/components/Navbar/NavbarTabs.vue2.js +204 -0
- package/components/Navbar/useNavbar.js +3 -3
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/NumberInput.vue.js +2 -2
- package/components/NumberInput.vue2.js +81 -77
- package/components/OTPInput/OTPInput.vue.js +24 -23
- package/components/Pagination/Pagination.vue.d.ts +1 -1
- package/components/Pagination/Pagination.vue.js +5 -274
- package/components/Pagination/Pagination.vue2.js +283 -2
- package/components/PermissionMatrix/PermissionTopBar.vue.js +19 -18
- package/components/PricingPlan/PricingPlanItem.vue.js +7 -7
- package/components/Screen/Screen.vue.d.ts +1 -1
- package/components/Screen/Screen.vue.js +21 -21
- package/components/Screen/ScreenFilter.vue.js +5 -5
- package/components/Screen/components/ScreenAddAction.vue.js +3 -3
- package/components/Screen/components/ScreenEmptyState.vue.js +10 -10
- package/components/Screen/components/ScreenExportModal.vue.js +12 -12
- package/components/Screen/components/ScreenOptionsDropdown.vue.js +5 -5
- package/components/Screen/components/ScreenToolbar.vue.js +15 -15
- package/components/SidePanel.vue.js +2 -2
- package/components/SidePanel.vue2.js +6 -6
- package/components/SidebarMenu/SidebarMenu.vue.js +77 -72
- package/components/SidebarMenu/SidebarMenuItem.vue.js +172 -168
- package/components/Slider.vue.js +123 -108
- package/components/Tabes/Tabes.vue.d.ts +25 -4
- package/components/Tabes/Tabes.vue.js +3 -3
- package/components/Tabes/Tabes.vue2.js +274 -211
- package/components/Tabes/tabes.utils.d.ts +30 -0
- package/components/Tabes/tabes.utils.js +49 -18
- package/components/Tabes/types.d.ts +7 -0
- package/components/Textarea.vue.d.ts +2 -0
- package/components/Textarea.vue.js +19 -16
- package/components/ThemeToggle.vue.js +8 -8
- package/components/ToastNotification.vue2.js +10 -10
- package/components/TreeConnectors/TreeConnectors.vue.d.ts +1 -1
- package/components/TreeConnectors/TreeConnectors.vue.js +13 -8
- package/components/TreeConnectors/geometry.js +77 -69
- package/components/Workbook/WorkbookAddButton.vue.js +2 -2
- package/composables/useRtl.d.ts +14 -0
- package/composables/useRtl.js +33 -0
- package/index.js +470 -471
- package/package.json +5 -4
- package/style.css +86 -1
- package/types/button.d.ts +8 -0
- package/components/Navbar/NavbarTabs.vue3.js +0 -5
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { defineComponent as H, inject as L, ref as $, openBlock as a, createElementBlock as n, withDirectives as w, renderSlot as l, unref as e, vShow as C, createCommentVNode as b, createElementVNode as i, createVNode as
|
|
1
|
+
import { defineComponent as H, inject as L, ref as $, openBlock as a, createElementBlock as n, withDirectives as w, renderSlot as l, unref as e, vShow as C, createCommentVNode as b, createElementVNode as i, createVNode as m, Transition as A, withCtx as g, normalizeStyle as U, normalizeClass as d, Fragment as y, isRef as T, createBlock as D, createSlots as I, createTextVNode as Y } from "vue";
|
|
2
2
|
import { onClickOutside as j } from "@vueuse/core";
|
|
3
3
|
import S from "../Icon.vue.js";
|
|
4
4
|
import F from "../SidePanel.vue.js";
|
|
5
5
|
import K from "../Navbar/NavbarTabs.vue.js";
|
|
6
|
-
/* empty css */
|
|
7
6
|
import q from "../Breadcrumb/Breadcrumb.vue.js";
|
|
8
7
|
/* empty css */
|
|
9
8
|
import { APPSHELL_LAYOUT_KEY as G } from "./useAppShell.js";
|
|
@@ -26,7 +25,7 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
26
25
|
}, te = {
|
|
27
26
|
key: 2,
|
|
28
27
|
class: "mt-auto pt-2 border-t border-border px-3! py-2!"
|
|
29
|
-
},
|
|
28
|
+
}, pe = /* @__PURE__ */ H({
|
|
30
29
|
__name: "AppShellLayoutClassic",
|
|
31
30
|
setup(ae) {
|
|
32
31
|
const z = L(G), {
|
|
@@ -37,9 +36,9 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
37
36
|
toggleSidebar: x,
|
|
38
37
|
pageTitle: M,
|
|
39
38
|
breadcrumbData: c,
|
|
40
|
-
breakpointClasses:
|
|
41
|
-
containerClasses:
|
|
42
|
-
centerClasses:
|
|
39
|
+
breakpointClasses: u,
|
|
40
|
+
containerClasses: N,
|
|
41
|
+
centerClasses: O,
|
|
43
42
|
nestedTabsItems: h,
|
|
44
43
|
activeNestedTab: p,
|
|
45
44
|
handleNestedTabClick: P,
|
|
@@ -66,7 +65,7 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
66
65
|
[C, !e(o).hideHeader]
|
|
67
66
|
]) : b("", !0),
|
|
68
67
|
i("div", W, [
|
|
69
|
-
|
|
68
|
+
m(A, {
|
|
70
69
|
"enter-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
|
|
71
70
|
"leave-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
|
|
72
71
|
"enter-from-class": "opacity-0",
|
|
@@ -76,7 +75,7 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
76
75
|
}, {
|
|
77
76
|
default: g(() => [
|
|
78
77
|
w(i("nav", {
|
|
79
|
-
class: d(e(
|
|
78
|
+
class: d(e(N)),
|
|
80
79
|
role: "navigation",
|
|
81
80
|
style: U(e(o).sidebarToggle ? "transition: width 0.3s ease, opacity 0.3s ease;" : "")
|
|
82
81
|
}, [
|
|
@@ -90,10 +89,10 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
90
89
|
type: "button",
|
|
91
90
|
ref_key: "mobileTriggerRef",
|
|
92
91
|
ref: v,
|
|
93
|
-
class: d(["p-2 -
|
|
94
|
-
onClick: t[0] || (t[0] = (
|
|
92
|
+
class: d(["p-2 -ms-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [e(u).mobileTrigger, e(o).mobileTriggerClass]]),
|
|
93
|
+
onClick: t[0] || (t[0] = (f) => r.value = !e(r))
|
|
95
94
|
}, [
|
|
96
|
-
|
|
95
|
+
m(S, {
|
|
97
96
|
icon: "lucide:menu",
|
|
98
97
|
class: "w-5 h-5"
|
|
99
98
|
}),
|
|
@@ -102,21 +101,21 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
102
101
|
]),
|
|
103
102
|
s.$slots?.left ? (a(), n("div", {
|
|
104
103
|
key: 0,
|
|
105
|
-
class: d(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", e(
|
|
104
|
+
class: d(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", e(u).desktopContent])
|
|
106
105
|
}, [
|
|
107
106
|
l(s.$slots, "left")
|
|
108
107
|
], 2)) : b("", !0)
|
|
109
108
|
]),
|
|
110
109
|
s.$slots?.center ? (a(), n("div", {
|
|
111
110
|
key: 0,
|
|
112
|
-
class: d([e(
|
|
111
|
+
class: d([e(O), "max-w-full", e(o).contentClass])
|
|
113
112
|
}, [
|
|
114
113
|
l(s.$slots, "center")
|
|
115
114
|
], 2)) : b("", !0),
|
|
116
115
|
i("div", {
|
|
117
116
|
class: d(["flex items-center gap-2 shrink-0 max-w-[40%] z-10", [
|
|
118
117
|
{
|
|
119
|
-
"
|
|
118
|
+
"ms-auto": e(o).centerPosition === "left" || e(o).centerPosition === "center"
|
|
120
119
|
},
|
|
121
120
|
e(o).rightClass
|
|
122
121
|
]])
|
|
@@ -126,7 +125,7 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
126
125
|
], 64)) : (a(), n(y, { key: 1 }, [
|
|
127
126
|
s.$slots.header ? b("", !0) : (a(), n("div", {
|
|
128
127
|
key: 0,
|
|
129
|
-
class: d(e(
|
|
128
|
+
class: d(e(u).mobileHeader)
|
|
130
129
|
}, [
|
|
131
130
|
l(s.$slots, "mobile-trigger", {
|
|
132
131
|
isOpen: e(r),
|
|
@@ -136,10 +135,10 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
136
135
|
type: "button",
|
|
137
136
|
ref_key: "mobileTriggerRef",
|
|
138
137
|
ref: v,
|
|
139
|
-
class: d(["p-2 -
|
|
140
|
-
onClick: t[1] || (t[1] = (
|
|
138
|
+
class: d(["p-2 -me-2 text-muted-foreground hover:bg-accent rounded-md", e(o).mobileTriggerClass]),
|
|
139
|
+
onClick: t[1] || (t[1] = (f) => r.value = !e(r))
|
|
141
140
|
}, [
|
|
142
|
-
|
|
141
|
+
m(S, {
|
|
143
142
|
icon: "lucide:menu",
|
|
144
143
|
class: "w-5 h-5"
|
|
145
144
|
}),
|
|
@@ -148,7 +147,7 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
148
147
|
])
|
|
149
148
|
], 2)),
|
|
150
149
|
i("div", {
|
|
151
|
-
class: d(e(
|
|
150
|
+
class: d(e(u).desktopSidebar)
|
|
152
151
|
}, [
|
|
153
152
|
i("div", {
|
|
154
153
|
class: d(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin scrollbar-stable", e(o).contentClass]),
|
|
@@ -179,9 +178,9 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
179
178
|
class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col scrollbar-thin scrollbar-stable"
|
|
180
179
|
}, [
|
|
181
180
|
e(o).renderNestedTabs && e(h).length > 0 ? (a(), n("div", Z, [
|
|
182
|
-
|
|
181
|
+
m(K, {
|
|
183
182
|
modelValue: e(p),
|
|
184
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
183
|
+
"onUpdate:modelValue": t[2] || (t[2] = (f) => T(p) ? p.value = f : null),
|
|
185
184
|
onChange: e(P),
|
|
186
185
|
items: e(h)
|
|
187
186
|
}, null, 8, ["modelValue", "onChange", "items"])
|
|
@@ -190,7 +189,7 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
190
189
|
key: 1,
|
|
191
190
|
class: d(["shrink-0 w-full border-b border-border px-6 py-2", e(o).breadcrumbClass])
|
|
192
191
|
}, [
|
|
193
|
-
|
|
192
|
+
m(e(q), {
|
|
194
193
|
items: e(c).items.value,
|
|
195
194
|
variant: e(o).breadcrumbVariant,
|
|
196
195
|
separator: e(o).breadcrumbSeparator,
|
|
@@ -211,7 +210,7 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
211
210
|
key: 0,
|
|
212
211
|
ref_key: "mobileMenuRef",
|
|
213
212
|
ref: k,
|
|
214
|
-
class: d(["absolute top-[calc(100%_+_1px)]
|
|
213
|
+
class: d(["absolute top-[calc(100%_+_1px)] start-0 w-full bg-body border border-border shadow-xl z-50 flex flex-col transition-all duration-300 origin-top overflow-hidden will-change-transform", e(o).menuClass])
|
|
215
214
|
}, [
|
|
216
215
|
i("div", _, [
|
|
217
216
|
l(s.$slots, "mobile-menu", {}, () => [
|
|
@@ -228,12 +227,12 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
228
227
|
], 64)) : (a(), D(F, {
|
|
229
228
|
key: 2,
|
|
230
229
|
show: e(r),
|
|
231
|
-
"onUpdate:show": t[3] || (t[3] = (
|
|
230
|
+
"onUpdate:show": t[3] || (t[3] = (f) => T(r) ? r.value = f : null),
|
|
232
231
|
position: "left",
|
|
233
232
|
size: "sm",
|
|
234
|
-
triggerClass: e(
|
|
235
|
-
class: d(["z-60", e(
|
|
236
|
-
headerClass: "
|
|
233
|
+
triggerClass: e(u).mobileTrigger,
|
|
234
|
+
class: d(["z-60", e(u).mobileTrigger]),
|
|
235
|
+
headerClass: "ps-3! pe-4.5! py-3!",
|
|
237
236
|
bodyClass: "p-0!"
|
|
238
237
|
}, I({
|
|
239
238
|
default: g(() => [
|
|
@@ -277,5 +276,5 @@ const J = { class: "vlite-app-layout flex flex-col w-full h-full bg-body overflo
|
|
|
277
276
|
}
|
|
278
277
|
});
|
|
279
278
|
export {
|
|
280
|
-
|
|
279
|
+
pe as default
|
|
281
280
|
};
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import P from "../Breadcrumb/Breadcrumb.vue.js";
|
|
1
|
+
import { defineComponent as R, inject as _, openBlock as a, createElementBlock as o, createVNode as m, Transition as B, unref as e, withCtx as p, withDirectives as y, createElementVNode as n, normalizeClass as b, renderSlot as r, createCommentVNode as t, vShow as w, isRef as k, createSlots as E, createTextVNode as L } from "vue";
|
|
2
|
+
import M from "../SidePanel.vue.js";
|
|
3
|
+
import P from "../Navbar/NavbarTabs.vue.js";
|
|
4
|
+
import A from "../Breadcrumb/Breadcrumb.vue.js";
|
|
6
5
|
import "@iconify/vue";
|
|
7
6
|
/* empty css */
|
|
8
|
-
import { APPSHELL_LAYOUT_KEY as
|
|
9
|
-
const
|
|
7
|
+
import { APPSHELL_LAYOUT_KEY as D } from "./useAppShell.js";
|
|
8
|
+
const H = { class: "vlite-app-layout flex w-full h-full bg-muted/20 p-0 sm:p-2.5 gap-0 sm:gap-2.5 overflow-hidden" }, O = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "flex items-center"
|
|
12
|
-
},
|
|
11
|
+
}, U = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden bg-background rounded-xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm" }, I = {
|
|
13
12
|
key: 0,
|
|
14
13
|
class: "w-full shrink-0 z-20 bg-background border-b border-border"
|
|
15
|
-
},
|
|
14
|
+
}, Y = {
|
|
16
15
|
key: 0,
|
|
17
16
|
class: "shrink-0 w-full"
|
|
18
|
-
},
|
|
17
|
+
}, j = { class: "flex flex-col h-full" }, F = {
|
|
19
18
|
class: "flex-1 overflow-y-auto px-3.5 pt-4 scrollbar-thin scrollbar-stable",
|
|
20
19
|
style: { "will-change": "transform", contain: "layout style" }
|
|
21
20
|
}, K = {
|
|
22
21
|
key: 0,
|
|
23
22
|
class: "mt-auto"
|
|
24
|
-
}, se = /* @__PURE__ */
|
|
23
|
+
}, se = /* @__PURE__ */ R({
|
|
25
24
|
__name: "AppShellLayoutDashboard",
|
|
26
25
|
setup(q) {
|
|
27
|
-
const
|
|
26
|
+
const $ = _(D), {
|
|
28
27
|
props: l,
|
|
29
|
-
sidebarHidden:
|
|
28
|
+
sidebarHidden: C,
|
|
30
29
|
isMobileMenuOpen: i,
|
|
31
|
-
isSidebarVisible:
|
|
32
|
-
toggleSidebar:
|
|
33
|
-
pageTitle:
|
|
30
|
+
isSidebarVisible: S,
|
|
31
|
+
toggleSidebar: x,
|
|
32
|
+
pageTitle: T,
|
|
34
33
|
breadcrumbData: u,
|
|
35
34
|
breakpointClasses: f,
|
|
36
35
|
nestedTabsItems: v,
|
|
37
36
|
activeNestedTab: c,
|
|
38
|
-
handleNestedTabClick:
|
|
39
|
-
mainScrollRef:
|
|
40
|
-
layoutMainRef:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
handleNestedTabClick: V,
|
|
38
|
+
mainScrollRef: z,
|
|
39
|
+
layoutMainRef: N,
|
|
40
|
+
sidebarSlideFromClass: g
|
|
41
|
+
} = $;
|
|
42
|
+
return (s, d) => (a(), o("div", H, [
|
|
43
|
+
m(B, {
|
|
44
44
|
"enter-active-class": "transition-all duration-300 ease-in-out",
|
|
45
45
|
"leave-active-class": "transition-all duration-300 ease-in-out",
|
|
46
|
-
"enter-from-class":
|
|
46
|
+
"enter-from-class": e(g),
|
|
47
47
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
48
48
|
"leave-from-class": "opacity-100 translate-x-0",
|
|
49
|
-
"leave-to-class":
|
|
49
|
+
"leave-to-class": e(g)
|
|
50
50
|
}, {
|
|
51
51
|
default: p(() => [
|
|
52
|
-
|
|
52
|
+
y(n("nav", {
|
|
53
53
|
class: b([
|
|
54
54
|
"shrink-0 h-full flex flex-col bg-background rounded-xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm overflow-hidden z-30",
|
|
55
55
|
e(f).mobileTrigger === "md:hidden" ? "max-md:hidden" : "",
|
|
@@ -58,7 +58,7 @@ const D = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0
|
|
|
58
58
|
role: "navigation",
|
|
59
59
|
"aria-label": "Sidebar"
|
|
60
60
|
}, [
|
|
61
|
-
s.$slots["sidebar-header"] ? (a(), o("div",
|
|
61
|
+
s.$slots["sidebar-header"] ? (a(), o("div", O, [
|
|
62
62
|
r(s.$slots, "sidebar-header")
|
|
63
63
|
])) : t("", !0),
|
|
64
64
|
n("div", {
|
|
@@ -74,35 +74,35 @@ const D = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0
|
|
|
74
74
|
r(s.$slots, "sidebar-footer")
|
|
75
75
|
], 2)) : t("", !0)
|
|
76
76
|
], 2), [
|
|
77
|
-
[
|
|
77
|
+
[w, !e(C)]
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
80
80
|
_: 3
|
|
81
|
-
}),
|
|
82
|
-
n("div",
|
|
83
|
-
s.$slots.header ?
|
|
81
|
+
}, 8, ["enter-from-class", "leave-to-class"]),
|
|
82
|
+
n("div", U, [
|
|
83
|
+
s.$slots.header ? y((a(), o("header", I, [
|
|
84
84
|
r(s.$slots, "header", {
|
|
85
85
|
isOpen: e(i),
|
|
86
86
|
toggle: () => i.value = !e(i),
|
|
87
|
-
sidebarVisible: e(
|
|
88
|
-
toggleSidebar: e(
|
|
87
|
+
sidebarVisible: e(S),
|
|
88
|
+
toggleSidebar: e(x),
|
|
89
89
|
breadcrumbItems: e(u).items.value,
|
|
90
|
-
pageTitle: e(
|
|
90
|
+
pageTitle: e(T)
|
|
91
91
|
})
|
|
92
92
|
], 512)), [
|
|
93
|
-
[
|
|
93
|
+
[w, !e(l).hideHeader]
|
|
94
94
|
]) : t("", !0),
|
|
95
95
|
s.$slots.main ? (a(), o("main", {
|
|
96
96
|
key: 1,
|
|
97
97
|
ref_key: "layoutMainRef",
|
|
98
|
-
ref:
|
|
98
|
+
ref: N,
|
|
99
99
|
class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col min-h-0 scrollbar-thin scrollbar-stable"
|
|
100
100
|
}, [
|
|
101
|
-
e(l).renderNestedTabs && e(v).length > 0 ? (a(), o("div",
|
|
102
|
-
m(
|
|
101
|
+
e(l).renderNestedTabs && e(v).length > 0 ? (a(), o("div", Y, [
|
|
102
|
+
m(P, {
|
|
103
103
|
modelValue: e(c),
|
|
104
|
-
"onUpdate:modelValue": d[0] || (d[0] = (h) =>
|
|
105
|
-
onChange: e(
|
|
104
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => k(c) ? c.value = h : null),
|
|
105
|
+
onChange: e(V),
|
|
106
106
|
items: e(v)
|
|
107
107
|
}, null, 8, ["modelValue", "onChange", "items"])
|
|
108
108
|
])) : t("", !0),
|
|
@@ -110,7 +110,7 @@ const D = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0
|
|
|
110
110
|
key: 1,
|
|
111
111
|
class: b(["shrink-0 w-full px-6 py-2 border-b border-border", e(l).breadcrumbClass])
|
|
112
112
|
}, [
|
|
113
|
-
m(e(
|
|
113
|
+
m(e(A), {
|
|
114
114
|
items: e(u).items.value,
|
|
115
115
|
variant: e(l).breadcrumbVariant,
|
|
116
116
|
separator: e(l).breadcrumbSeparator,
|
|
@@ -119,7 +119,7 @@ const D = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0
|
|
|
119
119
|
], 2)) : t("", !0),
|
|
120
120
|
n("div", {
|
|
121
121
|
ref_key: "mainScrollRef",
|
|
122
|
-
ref:
|
|
122
|
+
ref: z,
|
|
123
123
|
style: { "will-change": "transform", contain: "layout style" },
|
|
124
124
|
class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable"
|
|
125
125
|
}, [
|
|
@@ -127,19 +127,19 @@ const D = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0
|
|
|
127
127
|
], 512)
|
|
128
128
|
], 512)) : t("", !0)
|
|
129
129
|
]),
|
|
130
|
-
m(
|
|
130
|
+
m(M, {
|
|
131
131
|
show: e(i),
|
|
132
|
-
"onUpdate:show": d[1] || (d[1] = (h) =>
|
|
132
|
+
"onUpdate:show": d[1] || (d[1] = (h) => k(i) ? i.value = h : null),
|
|
133
133
|
position: "left",
|
|
134
134
|
size: "sm",
|
|
135
135
|
triggerClass: e(f).mobileTrigger,
|
|
136
136
|
class: b(["z-60", e(f).mobileTrigger]),
|
|
137
|
-
headerClass: "
|
|
137
|
+
headerClass: "ps-3! pe-4.5! py-3!",
|
|
138
138
|
bodyClass: "p-0!"
|
|
139
|
-
},
|
|
139
|
+
}, E({
|
|
140
140
|
default: p(() => [
|
|
141
|
-
n("div",
|
|
142
|
-
n("div",
|
|
141
|
+
n("div", j, [
|
|
142
|
+
n("div", F, [
|
|
143
143
|
r(s.$slots, "mobile-sidebar", {}, () => [
|
|
144
144
|
r(s.$slots, "sidebar")
|
|
145
145
|
])
|
|
@@ -158,7 +158,7 @@ const D = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0
|
|
|
158
158
|
fn: p(() => [
|
|
159
159
|
r(s.$slots, "mobile-sidebar-header", {}, () => [
|
|
160
160
|
r(s.$slots, "sidebar-header", {}, () => [
|
|
161
|
-
d[2] || (d[2] =
|
|
161
|
+
d[2] || (d[2] = L("Brand", -1))
|
|
162
162
|
])
|
|
163
163
|
])
|
|
164
164
|
]),
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import M from "../Breadcrumb/Breadcrumb.vue.js";
|
|
1
|
+
import { defineComponent as _, inject as R, openBlock as a, createElementBlock as o, createVNode as m, Transition as B, unref as e, withCtx as h, withDirectives as y, createElementVNode as n, normalizeClass as b, renderSlot as l, createCommentVNode as t, vShow as w, isRef as k, createTextVNode as E } from "vue";
|
|
2
|
+
import L from "../SidePanel.vue.js";
|
|
3
|
+
import M from "../Navbar/NavbarTabs.vue.js";
|
|
4
|
+
import P from "../Breadcrumb/Breadcrumb.vue.js";
|
|
6
5
|
import "@iconify/vue";
|
|
7
6
|
/* empty css */
|
|
8
|
-
import { APPSHELL_LAYOUT_KEY as
|
|
9
|
-
const
|
|
7
|
+
import { APPSHELL_LAYOUT_KEY as A } from "./useAppShell.js";
|
|
8
|
+
const D = { class: "vlite-app-layout flex w-full h-full bg-background p-0 sm:p-2 gap-0 sm:gap-2 overflow-hidden items-stretch" }, H = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "flex items-center justify-center w-full"
|
|
12
|
-
},
|
|
11
|
+
}, O = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden bg-background rounded-xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm" }, U = {
|
|
13
12
|
key: 0,
|
|
14
13
|
class: "w-full shrink-0 z-20 bg-background border-b border-border"
|
|
15
|
-
},
|
|
14
|
+
}, j = {
|
|
16
15
|
key: 0,
|
|
17
16
|
class: "shrink-0 w-full border-b border-border"
|
|
18
|
-
},
|
|
17
|
+
}, I = { class: "flex flex-col h-full" }, Y = {
|
|
19
18
|
class: "flex-1 overflow-y-auto px-3.5 pt-4 scrollbar-thin scrollbar-stable",
|
|
20
19
|
style: { "will-change": "transform", contain: "layout style" }
|
|
21
|
-
},
|
|
20
|
+
}, F = {
|
|
22
21
|
key: 0,
|
|
23
22
|
class: "mt-auto pt-2 border-t border-border px-3 py-2"
|
|
24
|
-
}, ee = /* @__PURE__ */
|
|
23
|
+
}, ee = /* @__PURE__ */ _({
|
|
25
24
|
__name: "AppShellLayoutDock",
|
|
26
25
|
setup(K) {
|
|
27
|
-
const
|
|
26
|
+
const x = R(A), {
|
|
28
27
|
props: r,
|
|
29
|
-
sidebarHidden:
|
|
28
|
+
sidebarHidden: $,
|
|
30
29
|
isMobileMenuOpen: i,
|
|
31
|
-
isSidebarVisible:
|
|
32
|
-
toggleSidebar:
|
|
33
|
-
pageTitle:
|
|
30
|
+
isSidebarVisible: C,
|
|
31
|
+
toggleSidebar: S,
|
|
32
|
+
pageTitle: T,
|
|
34
33
|
breadcrumbData: u,
|
|
35
34
|
breakpointClasses: c,
|
|
36
|
-
nestedTabsItems:
|
|
35
|
+
nestedTabsItems: v,
|
|
37
36
|
activeNestedTab: f,
|
|
38
|
-
handleNestedTabClick:
|
|
39
|
-
mainScrollRef:
|
|
40
|
-
layoutMainRef:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
handleNestedTabClick: V,
|
|
38
|
+
mainScrollRef: z,
|
|
39
|
+
layoutMainRef: N,
|
|
40
|
+
sidebarSlideFromClass: g
|
|
41
|
+
} = x;
|
|
42
|
+
return (s, d) => (a(), o("div", D, [
|
|
43
|
+
m(B, {
|
|
44
44
|
"enter-active-class": "transition-all duration-300 ease-in-out",
|
|
45
45
|
"leave-active-class": "transition-all duration-300 ease-in-out",
|
|
46
|
-
"enter-from-class":
|
|
46
|
+
"enter-from-class": `${e(g)} scale-95`,
|
|
47
47
|
"enter-to-class": "opacity-100 translate-x-0 scale-100",
|
|
48
48
|
"leave-from-class": "opacity-100 translate-x-0 scale-100",
|
|
49
|
-
"leave-to-class":
|
|
49
|
+
"leave-to-class": `${e(g)} scale-95`
|
|
50
50
|
}, {
|
|
51
51
|
default: h(() => [
|
|
52
|
-
|
|
52
|
+
y(n("nav", {
|
|
53
53
|
class: b([
|
|
54
54
|
"shrink-0 self-center flex flex-col items-center bg-background rounded-2xl max-sm:rounded-none border border-border max-sm:border-0 shadow-sm overflow-hidden z-30 py-3 px-2 gap-0.5",
|
|
55
55
|
e(c).mobileTrigger === "md:hidden" ? "max-md:hidden" : "",
|
|
@@ -58,7 +58,7 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
|
|
|
58
58
|
role: "navigation",
|
|
59
59
|
"aria-label": "Sidebar dock"
|
|
60
60
|
}, [
|
|
61
|
-
s.$slots["sidebar-header"] ? (a(), o("div",
|
|
61
|
+
s.$slots["sidebar-header"] ? (a(), o("div", H, [
|
|
62
62
|
l(s.$slots, "sidebar-header")
|
|
63
63
|
])) : t("", !0),
|
|
64
64
|
n("div", {
|
|
@@ -73,43 +73,43 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
|
|
|
73
73
|
l(s.$slots, "sidebar-footer")
|
|
74
74
|
], 2)) : t("", !0)
|
|
75
75
|
], 2), [
|
|
76
|
-
[
|
|
76
|
+
[w, !e($)]
|
|
77
77
|
])
|
|
78
78
|
]),
|
|
79
79
|
_: 3
|
|
80
|
-
}),
|
|
81
|
-
n("div",
|
|
82
|
-
s.$slots.header ?
|
|
80
|
+
}, 8, ["enter-from-class", "leave-to-class"]),
|
|
81
|
+
n("div", O, [
|
|
82
|
+
s.$slots.header ? y((a(), o("header", U, [
|
|
83
83
|
l(s.$slots, "header", {
|
|
84
84
|
isOpen: e(i),
|
|
85
85
|
toggle: () => i.value = !e(i),
|
|
86
|
-
sidebarVisible: e(
|
|
87
|
-
toggleSidebar: e(
|
|
86
|
+
sidebarVisible: e(C),
|
|
87
|
+
toggleSidebar: e(S),
|
|
88
88
|
breadcrumbItems: e(u).items.value,
|
|
89
|
-
pageTitle: e(
|
|
89
|
+
pageTitle: e(T)
|
|
90
90
|
})
|
|
91
91
|
], 512)), [
|
|
92
|
-
[
|
|
92
|
+
[w, !e(r).hideHeader]
|
|
93
93
|
]) : t("", !0),
|
|
94
94
|
s.$slots.main ? (a(), o("main", {
|
|
95
95
|
key: 1,
|
|
96
96
|
ref_key: "layoutMainRef",
|
|
97
|
-
ref:
|
|
97
|
+
ref: N,
|
|
98
98
|
class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col min-h-0 scrollbar-thin scrollbar-stable"
|
|
99
99
|
}, [
|
|
100
|
-
e(r).renderNestedTabs && e(
|
|
101
|
-
m(
|
|
100
|
+
e(r).renderNestedTabs && e(v).length > 0 ? (a(), o("div", j, [
|
|
101
|
+
m(M, {
|
|
102
102
|
modelValue: e(f),
|
|
103
|
-
"onUpdate:modelValue": d[0] || (d[0] = (p) =>
|
|
104
|
-
onChange: e(
|
|
105
|
-
items: e(
|
|
103
|
+
"onUpdate:modelValue": d[0] || (d[0] = (p) => k(f) ? f.value = p : null),
|
|
104
|
+
onChange: e(V),
|
|
105
|
+
items: e(v)
|
|
106
106
|
}, null, 8, ["modelValue", "onChange", "items"])
|
|
107
107
|
])) : t("", !0),
|
|
108
108
|
e(r).breadcrumb && e(r).breadcrumbPosition === "main" && e(u).items.value.length > 1 ? (a(), o("div", {
|
|
109
109
|
key: 1,
|
|
110
110
|
class: b(["shrink-0 w-full px-6 py-2 border-b border-border", e(r).breadcrumbClass])
|
|
111
111
|
}, [
|
|
112
|
-
m(e(
|
|
112
|
+
m(e(P), {
|
|
113
113
|
items: e(u).items.value,
|
|
114
114
|
variant: e(r).breadcrumbVariant,
|
|
115
115
|
separator: e(r).breadcrumbSeparator,
|
|
@@ -118,7 +118,7 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
|
|
|
118
118
|
], 2)) : t("", !0),
|
|
119
119
|
n("div", {
|
|
120
120
|
ref_key: "mainScrollRef",
|
|
121
|
-
ref:
|
|
121
|
+
ref: z,
|
|
122
122
|
style: { "will-change": "transform", contain: "layout style" },
|
|
123
123
|
class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable"
|
|
124
124
|
}, [
|
|
@@ -126,31 +126,31 @@ const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p
|
|
|
126
126
|
], 512)
|
|
127
127
|
], 512)) : t("", !0)
|
|
128
128
|
]),
|
|
129
|
-
m(
|
|
129
|
+
m(L, {
|
|
130
130
|
show: e(i),
|
|
131
|
-
"onUpdate:show": d[1] || (d[1] = (p) =>
|
|
131
|
+
"onUpdate:show": d[1] || (d[1] = (p) => k(i) ? i.value = p : null),
|
|
132
132
|
position: "left",
|
|
133
133
|
size: "sm",
|
|
134
134
|
triggerClass: e(c).mobileTrigger,
|
|
135
135
|
class: b(["z-60", e(c).mobileTrigger]),
|
|
136
|
-
headerClass: "
|
|
136
|
+
headerClass: "ps-3! pe-4.5! py-3!",
|
|
137
137
|
bodyClass: "p-0!"
|
|
138
138
|
}, {
|
|
139
139
|
header: h(() => [
|
|
140
140
|
l(s.$slots, "mobile-sidebar-header", {}, () => [
|
|
141
141
|
l(s.$slots, "sidebar-header", {}, () => [
|
|
142
|
-
d[2] || (d[2] =
|
|
142
|
+
d[2] || (d[2] = E("Brand", -1))
|
|
143
143
|
])
|
|
144
144
|
])
|
|
145
145
|
]),
|
|
146
146
|
default: h(() => [
|
|
147
|
-
n("div",
|
|
148
|
-
n("div",
|
|
147
|
+
n("div", I, [
|
|
148
|
+
n("div", Y, [
|
|
149
149
|
l(s.$slots, "mobile-sidebar", {}, () => [
|
|
150
150
|
l(s.$slots, "sidebar")
|
|
151
151
|
])
|
|
152
152
|
]),
|
|
153
|
-
s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (a(), o("div",
|
|
153
|
+
s.$slots["mobile-sidebar-footer"] || s.$slots["sidebar-footer"] ? (a(), o("div", F, [
|
|
154
154
|
l(s.$slots, "mobile-sidebar-footer", {}, () => [
|
|
155
155
|
l(s.$slots, "sidebar-footer")
|
|
156
156
|
])
|