vlite3 0.4.8 → 0.5.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/README.md +201 -100
- package/_virtual/Barcode.js +4 -0
- package/_virtual/CODE128.js +4 -0
- package/_virtual/CODE128A.js +4 -0
- package/_virtual/CODE128B.js +4 -0
- package/_virtual/CODE128C.js +4 -0
- package/_virtual/CODE128_AUTO.js +4 -0
- package/_virtual/CODE93.js +4 -0
- package/_virtual/CODE93FullASCII.js +4 -0
- package/_virtual/EAN.js +4 -0
- package/_virtual/EAN13.js +4 -0
- package/_virtual/EAN2.js +4 -0
- package/_virtual/EAN5.js +4 -0
- package/_virtual/EAN8.js +4 -0
- package/_virtual/ErrorHandler.js +4 -0
- package/_virtual/FileSaver.min.js +5 -0
- package/_virtual/FileSaver.min2.js +4 -0
- package/_virtual/ITF.js +4 -0
- package/_virtual/ITF14.js +4 -0
- package/_virtual/JsBarcode.js +7 -0
- package/_virtual/MSI.js +4 -0
- package/_virtual/MSI10.js +4 -0
- package/_virtual/MSI1010.js +4 -0
- package/_virtual/MSI11.js +4 -0
- package/_virtual/MSI1110.js +4 -0
- package/_virtual/UPC.js +4 -0
- package/_virtual/UPCE.js +4 -0
- package/_virtual/_commonjsHelpers.js +8 -0
- package/_virtual/alignment-pattern.js +4 -0
- package/_virtual/auto.js +4 -0
- package/_virtual/browser.js +7 -0
- package/_virtual/browser2.js +4 -0
- package/_virtual/canvas.js +4 -0
- package/_virtual/canvas2.js +4 -0
- package/_virtual/checksums.js +4 -0
- package/_virtual/constants.js +4 -0
- package/_virtual/constants2.js +4 -0
- package/_virtual/constants3.js +4 -0
- package/_virtual/constants4.js +4 -0
- package/_virtual/defaults.js +4 -0
- package/_virtual/dijkstra.js +4 -0
- package/_virtual/encoder.js +4 -0
- package/_virtual/error-correction-code.js +4 -0
- package/_virtual/error-correction-level.js +4 -0
- package/_virtual/exceptions.js +4 -0
- package/_virtual/finder-pattern.js +4 -0
- package/_virtual/fixOptions.js +4 -0
- package/_virtual/format-info.js +4 -0
- package/_virtual/galois-field.js +4 -0
- package/_virtual/getOptionsFromElement.js +4 -0
- package/_virtual/getRenderProperties.js +4 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index10.js +4 -0
- package/_virtual/index11.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/index4.js +4 -0
- package/_virtual/index5.js +4 -0
- package/_virtual/index6.js +4 -0
- package/_virtual/index7.js +4 -0
- package/_virtual/index8.js +4 -0
- package/_virtual/index9.js +4 -0
- package/_virtual/linearizeEncodings.js +4 -0
- package/_virtual/mask-pattern.js +4 -0
- package/_virtual/merge.js +4 -0
- package/_virtual/mode.js +4 -0
- package/_virtual/object.js +4 -0
- package/_virtual/optionsFromStrings.js +4 -0
- package/_virtual/papaparse.min.js +7 -0
- package/_virtual/papaparse.min2.js +4 -0
- package/_virtual/polynomial.js +4 -0
- package/_virtual/qrcode.js +4 -0
- package/_virtual/regex.js +4 -0
- package/_virtual/segments.js +4 -0
- package/_virtual/shared.js +4 -0
- package/_virtual/svg-tag.js +4 -0
- package/_virtual/svg.js +4 -0
- package/_virtual/utils.js +4 -0
- package/_virtual/utils2.js +4 -0
- package/_virtual/version-check.js +4 -0
- package/_virtual/version.js +4 -0
- package/components/Accordion/Accordion.vue.d.ts +7 -7
- package/components/Accordion/AccordionItem.vue.d.ts +4 -4
- package/components/Accordion/AccordionTrigger.vue.d.ts +2 -2
- package/components/Alert.vue.d.ts +1 -1
- package/components/Avatar.vue.d.ts +2 -2
- package/components/Avatar.vue.js +2 -2
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +5 -5
- package/components/Badge.vue.d.ts +1 -1
- package/components/Barcode/Barcode.vue.d.ts +22 -0
- package/components/Barcode/Barcode.vue.js +58 -0
- package/components/Barcode/Barcode.vue2.js +4 -0
- package/components/Barcode/index.d.ts +2 -0
- package/components/Barcode/types.d.ts +5 -0
- package/components/Barcode/types.js +15 -0
- package/components/Breadcrumb/Breadcrumb.vue.d.ts +23 -0
- package/components/Breadcrumb/Breadcrumb.vue.js +7 -0
- package/components/Breadcrumb/Breadcrumb.vue2.js +84 -0
- package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +27 -0
- package/components/Breadcrumb/BreadcrumbItem.vue.js +7 -0
- package/components/Breadcrumb/BreadcrumbItem.vue2.js +50 -0
- package/components/Breadcrumb/index.d.ts +3 -0
- package/components/Breadcrumb/types.d.ts +19 -0
- package/components/Button.vue.d.ts +4 -4
- package/components/Button.vue.js +32 -29
- package/components/ButtonGroup.vue.d.ts +1 -1
- package/components/Carousel/Carousel.vue.d.ts +58 -58
- package/components/CheckBox.vue.d.ts +2 -2
- package/components/Chip/Chip.vue.d.ts +3 -3
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +4 -4
- package/components/ColorPicker/ColorPicker.vue.d.ts +3 -3
- package/components/ColorPicker/index.d.ts +1 -0
- package/components/CommandPaletteContent.vue.d.ts +15 -0
- package/components/CommandPaletteContent.vue.js +7 -0
- package/components/CommandPaletteContent.vue2.js +287 -0
- package/components/ConfirmationModal.vue.js +12 -10
- package/components/DataList/DataList.vue.d.ts +2 -2
- package/components/DataTable/DataTable.vue.d.ts +6 -6
- package/components/DataTable/DataTableRow.vue.d.ts +3 -3
- package/components/DatePicker.vue.d.ts +2 -2
- package/components/DatePicker.vue.js +7 -7
- package/components/DateRangePicker.vue.d.ts +29 -0
- package/components/DateRangePicker.vue.js +231 -0
- package/components/DateRangePicker.vue2.js +4 -0
- package/components/Dropdown/Dropdown.vue.d.ts +11 -6
- package/components/Dropdown/Dropdown.vue.js +147 -109
- package/components/Dropdown/DropdownBooleanItem.vue.js +9 -8
- package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
- package/components/Dropdown/DropdownGroupedLayout.vue.js +35 -34
- package/components/Dropdown/DropdownItem.vue.js +11 -10
- package/components/Dropdown/DropdownMenu.vue.d.ts +5 -3
- package/components/Dropdown/DropdownMenu.vue.js +114 -111
- package/components/Dropdown/DropdownTrigger.vue.d.ts +2 -0
- package/components/Dropdown/DropdownTrigger.vue.js +9 -7
- package/components/ExportData/ExportData.vue.d.ts +16 -0
- package/components/ExportData/ExportData.vue.js +135 -0
- package/components/ExportData/ExportData.vue2.js +4 -0
- package/components/ExportData/index.d.ts +2 -0
- package/components/ExportData/types.d.ts +17 -0
- package/components/FilePicker/FilePicker.vue.d.ts +5 -5
- package/components/Form/CustomFields.vue.d.ts +6 -6
- package/components/Form/CustomFields.vue.js +1 -1
- package/components/Form/Form.vue.d.ts +4 -5
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +221 -178
- package/components/Form/FormField.vue.d.ts +4 -3
- package/components/Form/FormField.vue.js +70 -62
- package/components/Form/FormFields.vue.d.ts +3 -1
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +105 -59
- package/components/GoogleLogin.vue.d.ts +2 -2
- package/components/Icon.vue.d.ts +2 -0
- package/components/Icon.vue.js +12 -11
- package/components/ImportData/ImportData.vue.d.ts +31 -0
- package/components/ImportData/ImportData.vue.js +242 -0
- package/components/ImportData/ImportData.vue2.js +4 -0
- package/components/ImportData/ImportStep1.vue.d.ts +23 -0
- package/components/ImportData/ImportStep1.vue.js +162 -0
- package/components/ImportData/ImportStep1.vue2.js +4 -0
- package/components/ImportData/ImportStep2.vue.d.ts +20 -0
- package/components/ImportData/ImportStep2.vue.js +98 -0
- package/components/ImportData/ImportStep2.vue2.js +4 -0
- package/components/ImportData/ImportStep3.vue.d.ts +6 -0
- package/components/ImportData/ImportStep3.vue.js +98 -0
- package/components/ImportData/ImportStep3.vue2.js +4 -0
- package/components/ImportData/ImportStep4.vue.d.ts +6 -0
- package/components/ImportData/ImportStep4.vue.js +139 -0
- package/components/ImportData/ImportStep4.vue2.js +4 -0
- package/components/ImportData/index.d.ts +2 -0
- package/components/ImportData/types.d.ts +51 -0
- package/components/Input.vue.d.ts +9 -9
- package/components/Input.vue.js +137 -120
- package/components/List/List.vue.d.ts +18 -0
- package/components/List/List.vue.js +189 -0
- package/components/List/List.vue2.js +4 -0
- package/components/List/ListFieldRow.vue.d.ts +35 -0
- package/components/List/ListFieldRow.vue.js +119 -0
- package/components/List/ListFieldRow.vue2.js +4 -0
- package/components/List/index.d.ts +4 -0
- package/components/List/types.d.ts +1 -0
- package/components/List/utils.d.ts +9 -0
- package/components/List/utils.js +64 -0
- package/components/Masonry/Masonry.vue.d.ts +2 -2
- package/components/Modal.vue.js +5 -122
- package/components/Modal.vue2.js +133 -2
- package/components/MultiSelect/MultiSelect.vue.d.ts +12 -9
- package/components/MultiSelect/MultiSelect.vue.js +101 -64
- package/components/Navbar/Navbar.vue.d.ts +48 -9
- package/components/Navbar/Navbar.vue.js +418 -146
- package/components/Navbar/NavbarItem.vue.d.ts +2 -2
- package/components/Navbar/NavbarTabs.vue.d.ts +21 -0
- package/components/Navbar/NavbarTabs.vue.js +179 -0
- package/components/Navbar/NavbarTabs.vue3.js +5 -0
- package/components/Navbar/index.d.ts +3 -0
- package/components/NavbarCommandPalette.vue.d.ts +48 -0
- package/components/NumberInput.vue.d.ts +8 -8
- package/components/OTPInput/OTPInput.vue.d.ts +7 -7
- package/components/Pagination/Pagination.vue.d.ts +1 -1
- package/components/PermissionMatrix/PermissionEditor.vue.d.ts +36 -0
- package/components/PermissionMatrix/PermissionEditor.vue.js +323 -0
- package/components/PermissionMatrix/PermissionEditor.vue2.js +4 -0
- package/components/PermissionMatrix/PermissionMatrix.vue.d.ts +15 -0
- package/components/PermissionMatrix/PermissionMatrix.vue.js +7 -0
- package/components/PermissionMatrix/PermissionMatrix.vue2.js +245 -0
- package/components/PermissionMatrix/index.d.ts +3 -0
- package/components/PermissionMatrix/types.d.ts +59 -0
- package/components/PricingPlan/PricingPlan.vue.d.ts +3 -3
- package/components/ProgressBar/ProgressBar.vue.d.ts +3 -3
- package/components/QRCode/QRCode.vue.d.ts +15 -0
- package/components/QRCode/QRCode.vue.js +38 -0
- package/components/QRCode/QRCode.vue2.js +4 -0
- package/components/QRCode/index.d.ts +1 -0
- package/components/Screen/Screen.vue.d.ts +232 -5
- package/components/Screen/Screen.vue.js +423 -271
- package/components/Screen/ScreenFilter.vue.d.ts +2 -2
- package/components/Screen/ScreenFilter.vue.js +9 -9
- package/components/Screen/types.d.ts +12 -0
- package/components/SidePanel.vue.d.ts +2 -2
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +15 -2
- package/components/SidebarMenu/SidebarMenu.vue.js +117 -47
- package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +2 -0
- package/components/SidebarMenu/SidebarMenuItem.vue.js +192 -175
- package/components/SidebarMenu/types.d.ts +32 -5
- package/components/Slider.vue.d.ts +2 -2
- package/components/Spinner/Spinner.vue.d.ts +2 -2
- package/components/Stats/Stats.vue.d.ts +14 -0
- package/components/Stats/Stats.vue.js +307 -0
- package/components/Stats/Stats.vue2.js +4 -0
- package/components/Stats/index.d.ts +2 -0
- package/components/Stats/types.d.ts +32 -0
- package/components/Switch.vue.d.ts +2 -1
- package/components/Switch.vue.js +4 -2
- package/components/Tabes/Tabes.vue.d.ts +3 -3
- package/components/Tabes/Tabes.vue.js +60 -57
- package/components/Tabes/types.d.ts +5 -0
- package/components/Textarea.vue.d.ts +3 -3
- package/components/{Timeline.vue.d.ts → Timeline/Timeline.vue.d.ts} +23 -2
- package/components/Timeline/Timeline.vue.js +92 -0
- package/components/Timeline/TimelineIndicator.vue.d.ts +9 -0
- package/components/Timeline/TimelineIndicator.vue.js +68 -0
- package/components/Timeline/TimelineIndicator.vue2.js +4 -0
- package/components/Timeline/TimelineItem.vue.d.ts +56 -0
- package/components/Timeline/TimelineItem.vue.js +173 -0
- package/components/Timeline/TimelineItem.vue2.js +4 -0
- package/components/Timeline/index.d.ts +3 -0
- package/components/Tooltip.vue.d.ts +2 -2
- package/components/Workbook/Sheet.vue.d.ts +2 -2
- package/components/Workbook/Workbook.vue.d.ts +3 -3
- package/components/index.d.ts +62 -0
- package/composables/useBreadcrumb.d.ts +17 -0
- package/composables/useBreadcrumb.js +27 -0
- package/core/config.d.ts +34 -0
- package/core/config.js +10 -7
- package/core/index.js +15 -8
- package/index.d.ts +55 -44
- package/index.js +243 -200
- package/package.json +12 -2
- package/router.d.ts +2 -0
- package/style.css +7 -5
- package/types/button.d.ts +1 -1
- package/types/config.type.d.ts +35 -0
- package/types/form.type.d.ts +3 -1
- package/types/index.d.ts +2 -1
- package/types/list.type.d.ts +57 -0
- package/types/navbar.type.d.ts +38 -1
- package/types/timeline.type.d.ts +14 -4
- package/components/Timeline.vue.js +0 -160
- /package/components/{Timeline.vue2.js → Timeline/Timeline.vue2.js} +0 -0
|
@@ -1,19 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import { onClickOutside as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
1
|
+
import { defineComponent as Q, computed as b, ref as p, provide as X, useSlots as Z, onMounted as _, onUnmounted as ee, watch as D, openBlock as t, createElementBlock as r, renderSlot as o, unref as x, createCommentVNode as d, createElementVNode as a, createVNode as c, Transition as le, withCtx as g, withDirectives as se, normalizeStyle as oe, normalizeClass as n, Fragment as h, createBlock as y, resolveDynamicComponent as E, toDisplayString as I, vShow as te, createTextVNode as U } from "vue";
|
|
2
|
+
import { useRoute as ae } from "vue-router";
|
|
3
|
+
import { useLocalStorage as re, onClickOutside as ie, useBreakpoints as ne, breakpointsTailwind as de } from "@vueuse/core";
|
|
4
|
+
import z from "../Icon.vue.js";
|
|
5
|
+
import F from "../SidePanel.vue.js";
|
|
6
|
+
import W from "../Logo.vue.js";
|
|
7
|
+
import ue from "./NavbarTabs.vue.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import fe from "../Breadcrumb/Breadcrumb.vue.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import { useBreadcrumb as me } from "../../composables/useBreadcrumb.js";
|
|
12
|
+
const be = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "vlite-app-layout flex flex-col w-full h-full bg-body overflow-hidden"
|
|
15
|
+
}, ce = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "w-full shrink-0 z-50 flex flex-col relative"
|
|
18
|
+
}, ge = { class: "flex flex-1 w-full overflow-hidden relative" }, ve = { class: "flex items-center gap-4 shrink-0 z-10" }, pe = { key: 1 }, he = { key: 2 }, ye = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col"
|
|
21
|
+
}, ke = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "shrink-0 w-full"
|
|
24
|
+
}, xe = { class: "flex-1 overflow-y-auto w-full relative h-full" }, we = { class: "flex flex-col max-h-[80vh] overflow-y-auto" }, $e = { class: "space-y-1 p-2" }, Ce = { class: "space-y-1 p-2" }, Te = { class: "flex flex-col space-y-6 pt-4 h-full" }, ze = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "flex flex-col space-y-1"
|
|
27
|
+
}, Be = {
|
|
28
|
+
key: 1,
|
|
29
|
+
class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5!"
|
|
30
|
+
}, Se = {
|
|
31
|
+
key: 2,
|
|
32
|
+
class: "mt-auto pt-2 border-t border-border px-3! py-2!"
|
|
33
|
+
}, Me = { class: "flex items-center gap-4 shrink-0 z-10" }, Oe = { key: 1 }, Ve = { key: 2 }, Ne = { class: "flex flex-col max-h-[80vh] overflow-y-auto" }, Le = { class: "space-y-1 p-2" }, Re = { class: "space-y-1 p-2" }, Pe = { class: "flex flex-col space-y-6 pt-4 h-full" }, He = {
|
|
8
34
|
key: 0,
|
|
9
35
|
class: "flex flex-col space-y-1"
|
|
10
|
-
},
|
|
36
|
+
}, je = {
|
|
11
37
|
key: 1,
|
|
12
38
|
class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5!"
|
|
13
|
-
},
|
|
39
|
+
}, Ae = {
|
|
14
40
|
key: 2,
|
|
15
41
|
class: "mt-auto pt-2 border-t border-border px-3! py-2!"
|
|
16
|
-
},
|
|
42
|
+
}, Ze = /* @__PURE__ */ Q({
|
|
17
43
|
__name: "Navbar",
|
|
18
44
|
props: {
|
|
19
45
|
variant: { default: "header" },
|
|
@@ -24,8 +50,8 @@ const I = { class: "flex items-center gap-4 shrink-0 z-10" }, J = { key: 1 }, K
|
|
|
24
50
|
floating: { type: Boolean, default: !1 },
|
|
25
51
|
class: { default: "" },
|
|
26
52
|
height: { default: "h-16" },
|
|
27
|
-
width: { default: "w-64" },
|
|
28
53
|
compact: { type: Boolean, default: !1 },
|
|
54
|
+
renderNestedTabs: { type: Boolean, default: !1 },
|
|
29
55
|
logo: {},
|
|
30
56
|
logoAlt: {},
|
|
31
57
|
mobileBreakpoint: { default: "md" },
|
|
@@ -34,278 +60,524 @@ const I = { class: "flex items-center gap-4 shrink-0 z-10" }, J = { key: 1 }, K
|
|
|
34
60
|
menuClass: { default: "" },
|
|
35
61
|
rightClass: { default: "" },
|
|
36
62
|
mobileTriggerClass: { default: "" },
|
|
37
|
-
mobileMenuVariant: { default: "sidepanel" }
|
|
63
|
+
mobileMenuVariant: { default: "sidepanel" },
|
|
64
|
+
sidebarToggle: { type: Boolean, default: !1 },
|
|
65
|
+
breadcrumb: { type: Boolean, default: !1 },
|
|
66
|
+
breadcrumbPosition: { default: "header" },
|
|
67
|
+
breadcrumbVariant: { default: "default" },
|
|
68
|
+
breadcrumbSeparator: { default: "chevron" },
|
|
69
|
+
breadcrumbSize: { default: "sm" },
|
|
70
|
+
breadcrumbLabels: {},
|
|
71
|
+
breadcrumbHomeIcon: { default: "lucide:home" },
|
|
72
|
+
breadcrumbClass: { default: "" }
|
|
38
73
|
},
|
|
39
74
|
emits: ["toggle-mobile"],
|
|
40
|
-
setup(m, { emit:
|
|
41
|
-
const l = m,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
75
|
+
setup(m, { emit: De }) {
|
|
76
|
+
const l = m, B = l.breadcrumb ? me({
|
|
77
|
+
homeIcon: l.breadcrumbHomeIcon,
|
|
78
|
+
labelMap: l.breadcrumbLabels || {}
|
|
79
|
+
}) : { items: b(() => []) }, w = p([]), $ = p("");
|
|
80
|
+
X("navbar-context", {
|
|
81
|
+
compact: b(() => l.compact),
|
|
82
|
+
renderNestedTabs: b(() => l.renderNestedTabs),
|
|
83
|
+
setNestedTabs: (e, s) => {
|
|
84
|
+
w.value = e, $.value = s;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
const i = p(!1), S = p(!1), R = Z(), M = p(null), k = p(null), C = re("vlite-navbar-sidebar-visible", !0), Y = (e) => {
|
|
88
|
+
w.value.find((u) => u.value === e) && (typeof e == "string" && e.startsWith("/") ? import("vue-router").then(({ useRouter: u }) => {
|
|
89
|
+
u().push(e).catch(() => {
|
|
90
|
+
});
|
|
91
|
+
}) : $.value = e);
|
|
92
|
+
}, v = b(() => !!(R.header || R.main)), P = b(() => l.sidebarToggle && v.value), q = () => {
|
|
93
|
+
C.value = !C.value;
|
|
94
|
+
};
|
|
95
|
+
ie(
|
|
96
|
+
M,
|
|
46
97
|
() => {
|
|
47
|
-
|
|
98
|
+
i.value = !1;
|
|
48
99
|
},
|
|
49
|
-
{ ignore: [
|
|
100
|
+
{ ignore: [k] }
|
|
50
101
|
);
|
|
51
|
-
const
|
|
52
|
-
|
|
102
|
+
const H = () => {
|
|
103
|
+
S.value = window.scrollY > 10;
|
|
53
104
|
};
|
|
54
|
-
|
|
55
|
-
window.addEventListener("scroll",
|
|
56
|
-
}),
|
|
57
|
-
window.removeEventListener("scroll",
|
|
105
|
+
_(() => {
|
|
106
|
+
window.addEventListener("scroll", H, { passive: !0 });
|
|
107
|
+
}), ee(() => {
|
|
108
|
+
window.removeEventListener("scroll", H);
|
|
58
109
|
});
|
|
59
|
-
const
|
|
110
|
+
const j = b(() => {
|
|
60
111
|
const e = l.variant === "sidebar", s = {
|
|
61
|
-
fixed: "fixed top-0 left-0 z-40",
|
|
62
|
-
sticky: "sticky top-0 z-40",
|
|
112
|
+
fixed: v.value ? "relative z-40" : "fixed top-0 left-0 z-40",
|
|
113
|
+
sticky: v.value ? "relative z-40" : "sticky top-0 z-40",
|
|
63
114
|
relative: "relative z-10",
|
|
64
|
-
absolute: "absolute top-0 left-0 w-full z-40"
|
|
65
|
-
},
|
|
66
|
-
l.glass && (
|
|
115
|
+
absolute: v.value ? "relative z-40" : "absolute top-0 left-0 w-full z-40"
|
|
116
|
+
}, u = "bg-body", T = [
|
|
117
|
+
l.glass && (S.value || e || l.floating) ? "backdrop-blur-md bg-background/80 supports-[backdrop-filter]:bg-background/60" : "bg-background",
|
|
67
118
|
l.border && !l.floating ? e ? "border-r border-border" : "border-b border-border" : "",
|
|
68
119
|
l.floating ? "m-4 rounded shadow-lg border border-border/50" : "",
|
|
69
|
-
|
|
70
|
-
]
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
120
|
+
S.value && !l.floating && !e && l.position === "sticky" ? "shadow-sm" : ""
|
|
121
|
+
], O = l.mobileBreakpoint || "md", V = {
|
|
122
|
+
sm: "max-sm:hidden",
|
|
123
|
+
md: "max-md:hidden",
|
|
124
|
+
lg: "max-lg:hidden",
|
|
125
|
+
xl: "max-xl:hidden"
|
|
126
|
+
}, N = v.value && e ? V[O] : "";
|
|
127
|
+
let L = "";
|
|
128
|
+
return e ? L = f.value.sidebarLayout : L = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${l.height}`, [u, s[l.position], ...T, L, N, l.class].filter(Boolean).join(" ");
|
|
129
|
+
}), f = b(() => {
|
|
74
130
|
const e = l.mobileBreakpoint || "md", s = {
|
|
75
131
|
sm: "sm:hidden",
|
|
76
132
|
md: "md:hidden",
|
|
77
133
|
lg: "lg:hidden",
|
|
78
134
|
xl: "xl:hidden"
|
|
79
|
-
},
|
|
135
|
+
}, u = {
|
|
80
136
|
sm: "hidden sm:flex",
|
|
81
137
|
md: "hidden md:flex",
|
|
82
138
|
lg: "hidden lg:flex",
|
|
83
139
|
xl: "hidden xl:flex"
|
|
84
|
-
},
|
|
85
|
-
sm: `flex flex-col max-sm:w-full ${l.compact ? "w-20" :
|
|
86
|
-
md: `flex flex-col max-md:w-full ${l.compact ? "w-20" :
|
|
87
|
-
lg: `flex flex-col max-lg:w-full ${l.compact ? "w-20" :
|
|
88
|
-
xl: `flex flex-col max-xl:w-full ${l.compact ? "w-20" :
|
|
89
|
-
},
|
|
140
|
+
}, T = {
|
|
141
|
+
sm: `flex flex-col max-sm:w-full ${l.compact ? "w-20" : ""} h-auto sm:h-full sm:max-h-screen shrink-0`,
|
|
142
|
+
md: `flex flex-col max-md:w-full ${l.compact ? "w-20" : ""} h-auto md:h-full md:max-h-screen shrink-0`,
|
|
143
|
+
lg: `flex flex-col max-lg:w-full ${l.compact ? "w-20" : ""} h-auto lg:h-full lg:max-h-screen shrink-0`,
|
|
144
|
+
xl: `flex flex-col max-xl:w-full ${l.compact ? "w-20" : ""} h-auto xl:h-full xl:max-h-screen shrink-0`
|
|
145
|
+
}, O = {
|
|
90
146
|
sm: "sm:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
|
|
91
147
|
md: "md:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
|
|
92
148
|
lg: "lg:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
|
|
93
149
|
xl: "xl:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background"
|
|
94
|
-
},
|
|
150
|
+
}, V = {
|
|
95
151
|
sm: "hidden sm:flex flex-col h-full w-full overflow-hidden",
|
|
96
152
|
md: "hidden md:flex flex-col h-full w-full overflow-hidden",
|
|
97
153
|
lg: "hidden lg:flex flex-col h-full w-full overflow-hidden",
|
|
98
154
|
xl: "hidden xl:flex flex-col h-full w-full overflow-hidden"
|
|
155
|
+
}, N = {
|
|
156
|
+
sm: "hidden sm:flex",
|
|
157
|
+
md: "hidden md:flex",
|
|
158
|
+
lg: "hidden lg:flex",
|
|
159
|
+
xl: "hidden xl:flex"
|
|
99
160
|
};
|
|
100
161
|
return {
|
|
101
162
|
mobileTrigger: s[e],
|
|
102
|
-
desktopContent:
|
|
103
|
-
sidebarLayout:
|
|
104
|
-
mobileHeader:
|
|
105
|
-
desktopSidebar:
|
|
163
|
+
desktopContent: u[e],
|
|
164
|
+
sidebarLayout: T[e],
|
|
165
|
+
mobileHeader: O[e],
|
|
166
|
+
desktopSidebar: V[e],
|
|
167
|
+
desktopOnly: N[e]
|
|
106
168
|
};
|
|
107
|
-
}),
|
|
169
|
+
}), A = b(() => {
|
|
108
170
|
if (l.variant === "sidebar") return "flex-1 py-4 overflow-y-auto";
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
default:
|
|
115
|
-
return `${u.value.desktopContent} items-center justify-center mx-auto`;
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
E("navbar-context", {
|
|
119
|
-
compact: p(() => l.compact)
|
|
120
|
-
});
|
|
121
|
-
const S = H();
|
|
122
|
-
C(
|
|
123
|
-
() => S.path,
|
|
171
|
+
if (l.centerPosition === "left")
|
|
172
|
+
return "flex items-center justify-start";
|
|
173
|
+
}), G = ae();
|
|
174
|
+
D(
|
|
175
|
+
() => G.path,
|
|
124
176
|
() => {
|
|
125
|
-
|
|
177
|
+
i.value = !1;
|
|
126
178
|
}
|
|
127
179
|
);
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
e && (
|
|
131
|
-
})
|
|
132
|
-
|
|
180
|
+
const J = ne(de).greater(l.mobileBreakpoint);
|
|
181
|
+
D(J, (e) => {
|
|
182
|
+
e && (i.value = !1);
|
|
183
|
+
});
|
|
184
|
+
const K = b(() => P.value && !C.value);
|
|
185
|
+
return (e, s) => v.value ? (t(), r("div", be, [
|
|
186
|
+
e.$slots.header ? (t(), r("header", ce, [
|
|
187
|
+
o(e.$slots, "header", {
|
|
188
|
+
isOpen: i.value,
|
|
189
|
+
toggle: () => i.value = !i.value,
|
|
190
|
+
sidebarVisible: x(C),
|
|
191
|
+
toggleSidebar: q,
|
|
192
|
+
breadcrumbItems: x(B).items.value
|
|
193
|
+
})
|
|
194
|
+
])) : d("", !0),
|
|
195
|
+
a("div", ge, [
|
|
196
|
+
c(le, {
|
|
197
|
+
"enter-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
|
|
198
|
+
"leave-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
|
|
199
|
+
"enter-from-class": "opacity-0",
|
|
200
|
+
"enter-to-class": "opacity-100",
|
|
201
|
+
"leave-from-class": "opacity-100",
|
|
202
|
+
"leave-to-class": "opacity-0"
|
|
203
|
+
}, {
|
|
204
|
+
default: g(() => [
|
|
205
|
+
se(a("nav", {
|
|
206
|
+
class: n(j.value),
|
|
207
|
+
role: "navigation",
|
|
208
|
+
style: oe(P.value ? "transition: width 0.3s ease, opacity 0.3s ease;" : "")
|
|
209
|
+
}, [
|
|
210
|
+
m.variant === "header" ? (t(), r(h, { key: 0 }, [
|
|
211
|
+
a("div", ve, [
|
|
212
|
+
o(e.$slots, "mobile-trigger", {
|
|
213
|
+
isOpen: i.value,
|
|
214
|
+
toggle: () => i.value = !i.value
|
|
215
|
+
}, () => [
|
|
216
|
+
a("button", {
|
|
217
|
+
type: "button",
|
|
218
|
+
ref_key: "mobileTriggerRef",
|
|
219
|
+
ref: k,
|
|
220
|
+
class: n(["p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [f.value.mobileTrigger, l.mobileTriggerClass]]),
|
|
221
|
+
onClick: s[0] || (s[0] = (u) => i.value = !i.value)
|
|
222
|
+
}, [
|
|
223
|
+
c(z, {
|
|
224
|
+
icon: "lucide:menu",
|
|
225
|
+
class: "w-5 h-5"
|
|
226
|
+
}),
|
|
227
|
+
s[7] || (s[7] = a("span", { class: "sr-only" }, "Open Menu", -1))
|
|
228
|
+
], 2)
|
|
229
|
+
]),
|
|
230
|
+
e.$slots?.logo ? (t(), r("div", {
|
|
231
|
+
key: 0,
|
|
232
|
+
class: n(["shrink-0", l.logoClass])
|
|
233
|
+
}, [
|
|
234
|
+
o(e.$slots, "logo", {}, () => [
|
|
235
|
+
(t(), y(E(l.logo ? "img" : "div"), {
|
|
236
|
+
src: l.logo,
|
|
237
|
+
class: "h-8 w-auto font-bold text-xl flex items-center gap-2"
|
|
238
|
+
}, {
|
|
239
|
+
default: g(() => [
|
|
240
|
+
l.logo ? d("", !0) : (t(), y(W, {
|
|
241
|
+
key: 0,
|
|
242
|
+
class: "h-6 w-6"
|
|
243
|
+
})),
|
|
244
|
+
!l.logo && l.logoAlt ? (t(), r("span", pe, I(l.logoAlt), 1)) : l.logo ? d("", !0) : (t(), r("span", he, "Brand"))
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
}, 8, ["src"]))
|
|
248
|
+
])
|
|
249
|
+
], 2)) : d("", !0),
|
|
250
|
+
e.$slots?.left ? (t(), r("div", {
|
|
251
|
+
key: 1,
|
|
252
|
+
class: n(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", f.value.desktopContent])
|
|
253
|
+
}, [
|
|
254
|
+
o(e.$slots, "left")
|
|
255
|
+
], 2)) : d("", !0)
|
|
256
|
+
]),
|
|
257
|
+
e.$slots?.center ? (t(), r("div", {
|
|
258
|
+
key: 0,
|
|
259
|
+
class: n([A.value, "max-w-full", l.contentClass])
|
|
260
|
+
}, [
|
|
261
|
+
o(e.$slots, "center")
|
|
262
|
+
], 2)) : d("", !0),
|
|
263
|
+
a("div", {
|
|
264
|
+
class: n(["flex items-center gap-2 shrink-0 max-w-[40%] z-10", [
|
|
265
|
+
{
|
|
266
|
+
"ml-auto": m.centerPosition === "left" || m.centerPosition === "center"
|
|
267
|
+
},
|
|
268
|
+
l.rightClass
|
|
269
|
+
]])
|
|
270
|
+
}, [
|
|
271
|
+
o(e.$slots, "right")
|
|
272
|
+
], 2)
|
|
273
|
+
], 64)) : (t(), r(h, { key: 1 }, [
|
|
274
|
+
e.$slots.header ? d("", !0) : (t(), r("div", {
|
|
275
|
+
key: 0,
|
|
276
|
+
class: n(f.value.mobileHeader)
|
|
277
|
+
}, [
|
|
278
|
+
e.$slots?.logo ? o(e.$slots, "logo", { key: 0 }, () => [
|
|
279
|
+
s[8] || (s[8] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
|
|
280
|
+
]) : d("", !0),
|
|
281
|
+
o(e.$slots, "mobile-trigger", {
|
|
282
|
+
isOpen: i.value,
|
|
283
|
+
toggle: () => i.value = !i.value
|
|
284
|
+
}, () => [
|
|
285
|
+
a("button", {
|
|
286
|
+
type: "button",
|
|
287
|
+
ref_key: "mobileTriggerRef",
|
|
288
|
+
ref: k,
|
|
289
|
+
class: n(["p-2 -mr-2 text-muted-foreground hover:bg-accent rounded-md", l.mobileTriggerClass]),
|
|
290
|
+
onClick: s[1] || (s[1] = (u) => i.value = !i.value)
|
|
291
|
+
}, [
|
|
292
|
+
c(z, {
|
|
293
|
+
icon: "lucide:menu",
|
|
294
|
+
class: "w-5 h-5"
|
|
295
|
+
}),
|
|
296
|
+
s[9] || (s[9] = a("span", { class: "sr-only" }, "Open Menu", -1))
|
|
297
|
+
], 2)
|
|
298
|
+
])
|
|
299
|
+
], 2)),
|
|
300
|
+
a("div", {
|
|
301
|
+
class: n(f.value.desktopSidebar)
|
|
302
|
+
}, [
|
|
303
|
+
e.$slots?.logo ? (t(), r("div", {
|
|
304
|
+
key: 0,
|
|
305
|
+
class: n(["py-4.5 flex items-center px-4.5 z-10", l.logoClass])
|
|
306
|
+
}, [
|
|
307
|
+
o(e.$slots, "logo", {}, () => [
|
|
308
|
+
s[10] || (s[10] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
|
|
309
|
+
])
|
|
310
|
+
], 2)) : d("", !0),
|
|
311
|
+
a("div", {
|
|
312
|
+
class: n(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin", l.contentClass])
|
|
313
|
+
}, [
|
|
314
|
+
o(e.$slots, "left"),
|
|
315
|
+
o(e.$slots, "default"),
|
|
316
|
+
o(e.$slots, "center")
|
|
317
|
+
], 2),
|
|
318
|
+
e.$slots?.right ? (t(), r("div", {
|
|
319
|
+
key: 1,
|
|
320
|
+
class: n(["p-2 border-t border-border shrink-0 bg-background mt-auto", l.rightClass])
|
|
321
|
+
}, [
|
|
322
|
+
o(e.$slots, "right")
|
|
323
|
+
], 2)) : d("", !0)
|
|
324
|
+
], 2)
|
|
325
|
+
], 64))
|
|
326
|
+
], 6), [
|
|
327
|
+
[te, !K.value]
|
|
328
|
+
])
|
|
329
|
+
]),
|
|
330
|
+
_: 3
|
|
331
|
+
}),
|
|
332
|
+
e.$slots.main ? (t(), r("main", ye, [
|
|
333
|
+
l.renderNestedTabs && w.value.length > 0 ? (t(), r("div", ke, [
|
|
334
|
+
c(ue, {
|
|
335
|
+
modelValue: $.value,
|
|
336
|
+
"onUpdate:modelValue": s[2] || (s[2] = (u) => $.value = u),
|
|
337
|
+
onChange: Y,
|
|
338
|
+
items: w.value
|
|
339
|
+
}, null, 8, ["modelValue", "items"])
|
|
340
|
+
])) : d("", !0),
|
|
341
|
+
l.breadcrumb && l.breadcrumbPosition === "main" && x(B).items.value.length > 1 ? (t(), r("div", {
|
|
342
|
+
key: 1,
|
|
343
|
+
class: n(["shrink-0 w-full border-b border-border px-6 py-2", l.breadcrumbClass])
|
|
344
|
+
}, [
|
|
345
|
+
c(x(fe), {
|
|
346
|
+
items: x(B).items.value,
|
|
347
|
+
variant: l.breadcrumbVariant,
|
|
348
|
+
separator: l.breadcrumbSeparator,
|
|
349
|
+
size: l.breadcrumbSize
|
|
350
|
+
}, null, 8, ["items", "variant", "separator", "size"])
|
|
351
|
+
], 2)) : d("", !0),
|
|
352
|
+
a("div", xe, [
|
|
353
|
+
o(e.$slots, "main")
|
|
354
|
+
])
|
|
355
|
+
])) : d("", !0),
|
|
356
|
+
l.mobileMenuVariant === "dropdown" ? (t(), r(h, { key: 1 }, [
|
|
357
|
+
i.value ? (t(), r("div", {
|
|
358
|
+
key: 0,
|
|
359
|
+
ref_key: "mobileMenuRef",
|
|
360
|
+
ref: M,
|
|
361
|
+
class: n(["absolute top-[calc(100%_+_1px)] left-0 w-full bg-body border border-border/50 shadow-xl z-50 flex flex-col transition-all duration-300 origin-top overflow-hidden will-change-transform", l.menuClass])
|
|
362
|
+
}, [
|
|
363
|
+
a("div", we, [
|
|
364
|
+
o(e.$slots, "mobile-menu", {}, () => [
|
|
365
|
+
a("div", $e, [
|
|
366
|
+
o(e.$slots, "left")
|
|
367
|
+
]),
|
|
368
|
+
s[11] || (s[11] = a("div", { class: "h-px bg-border/50 my-1 mx-2" }, null, -1)),
|
|
369
|
+
a("div", Ce, [
|
|
370
|
+
o(e.$slots, "center")
|
|
371
|
+
])
|
|
372
|
+
])
|
|
373
|
+
])
|
|
374
|
+
], 2)) : d("", !0)
|
|
375
|
+
], 64)) : (t(), y(F, {
|
|
376
|
+
key: 2,
|
|
377
|
+
show: i.value,
|
|
378
|
+
"onUpdate:show": s[3] || (s[3] = (u) => i.value = u),
|
|
379
|
+
position: "left",
|
|
380
|
+
size: "sm",
|
|
381
|
+
triggerClass: f.value.mobileTrigger,
|
|
382
|
+
class: n(["z-60", f.value.mobileTrigger]),
|
|
383
|
+
headerClass: "pl-3! pr-4.5! py-3!",
|
|
384
|
+
bodyClass: "p-0!"
|
|
385
|
+
}, {
|
|
386
|
+
header: g(() => [
|
|
387
|
+
o(e.$slots, "logo", {}, () => [
|
|
388
|
+
s[12] || (s[12] = U("Brand", -1))
|
|
389
|
+
])
|
|
390
|
+
]),
|
|
391
|
+
default: g(() => [
|
|
392
|
+
a("div", Te, [
|
|
393
|
+
m.variant === "header" ? (t(), r("div", ze, [
|
|
394
|
+
o(e.$slots, "mobile-menu", {}, () => [
|
|
395
|
+
o(e.$slots, "left"),
|
|
396
|
+
s[13] || (s[13] = a("div", { class: "h-px bg-border my-2" }, null, -1)),
|
|
397
|
+
o(e.$slots, "center")
|
|
398
|
+
])
|
|
399
|
+
])) : (t(), r("div", Be, [
|
|
400
|
+
o(e.$slots, "left"),
|
|
401
|
+
o(e.$slots, "default"),
|
|
402
|
+
o(e.$slots, "center")
|
|
403
|
+
])),
|
|
404
|
+
e.$slots?.right ? (t(), r("div", Se, [
|
|
405
|
+
o(e.$slots, "right")
|
|
406
|
+
])) : d("", !0)
|
|
407
|
+
])
|
|
408
|
+
]),
|
|
409
|
+
_: 3
|
|
410
|
+
}, 8, ["show", "triggerClass", "class"]))
|
|
411
|
+
])
|
|
412
|
+
])) : (t(), r("nav", {
|
|
413
|
+
key: 1,
|
|
414
|
+
class: n(j.value),
|
|
133
415
|
role: "navigation"
|
|
134
416
|
}, [
|
|
135
|
-
m.variant === "header" ? (t(),
|
|
136
|
-
|
|
417
|
+
m.variant === "header" ? (t(), r(h, { key: 0 }, [
|
|
418
|
+
a("div", Me, [
|
|
137
419
|
o(e.$slots, "mobile-trigger", {
|
|
138
|
-
isOpen:
|
|
139
|
-
toggle: () =>
|
|
420
|
+
isOpen: i.value,
|
|
421
|
+
toggle: () => i.value = !i.value
|
|
140
422
|
}, () => [
|
|
141
|
-
|
|
423
|
+
a("button", {
|
|
142
424
|
type: "button",
|
|
143
425
|
ref_key: "mobileTriggerRef",
|
|
144
|
-
ref:
|
|
145
|
-
class:
|
|
146
|
-
onClick: s[
|
|
426
|
+
ref: k,
|
|
427
|
+
class: n(["p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [f.value.mobileTrigger, l.mobileTriggerClass]]),
|
|
428
|
+
onClick: s[4] || (s[4] = (u) => i.value = !i.value)
|
|
147
429
|
}, [
|
|
148
|
-
|
|
430
|
+
c(z, {
|
|
149
431
|
icon: "lucide:menu",
|
|
150
432
|
class: "w-5 h-5"
|
|
151
433
|
}),
|
|
152
|
-
s[
|
|
434
|
+
s[14] || (s[14] = a("span", { class: "sr-only" }, "Open Menu", -1))
|
|
153
435
|
], 2)
|
|
154
436
|
]),
|
|
155
|
-
e.$slots?.logo ? (t(),
|
|
437
|
+
e.$slots?.logo ? (t(), r("div", {
|
|
156
438
|
key: 0,
|
|
157
|
-
class:
|
|
439
|
+
class: n(["shrink-0", l.logoClass])
|
|
158
440
|
}, [
|
|
159
441
|
o(e.$slots, "logo", {}, () => [
|
|
160
|
-
(t(), y(
|
|
442
|
+
(t(), y(E(l.logo ? "img" : "div"), {
|
|
161
443
|
src: l.logo,
|
|
162
444
|
class: "h-8 w-auto font-bold text-xl flex items-center gap-2"
|
|
163
445
|
}, {
|
|
164
|
-
default:
|
|
165
|
-
l.logo ? d("", !0) : (t(), y(
|
|
446
|
+
default: g(() => [
|
|
447
|
+
l.logo ? d("", !0) : (t(), y(W, {
|
|
166
448
|
key: 0,
|
|
167
449
|
class: "h-6 w-6"
|
|
168
450
|
})),
|
|
169
|
-
!l.logo && l.logoAlt ? (t(),
|
|
451
|
+
!l.logo && l.logoAlt ? (t(), r("span", Oe, I(l.logoAlt), 1)) : l.logo ? d("", !0) : (t(), r("span", Ve, "Brand"))
|
|
170
452
|
]),
|
|
171
453
|
_: 1
|
|
172
454
|
}, 8, ["src"]))
|
|
173
455
|
])
|
|
174
456
|
], 2)) : d("", !0),
|
|
175
|
-
e.$slots?.left ? (t(),
|
|
457
|
+
e.$slots?.left ? (t(), r("div", {
|
|
176
458
|
key: 1,
|
|
177
|
-
class:
|
|
459
|
+
class: n(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", f.value.desktopContent])
|
|
178
460
|
}, [
|
|
179
461
|
o(e.$slots, "left")
|
|
180
462
|
], 2)) : d("", !0)
|
|
181
463
|
]),
|
|
182
|
-
e.$slots?.center ? (t(),
|
|
464
|
+
e.$slots?.center ? (t(), r("div", {
|
|
183
465
|
key: 0,
|
|
184
|
-
class:
|
|
185
|
-
M.value,
|
|
186
|
-
// Width constraint to ensure it doesn't crush others, but allows simple resizing
|
|
187
|
-
"max-w-full",
|
|
188
|
-
l.contentClass
|
|
189
|
-
])
|
|
466
|
+
class: n([A.value, "max-w-full", l.contentClass])
|
|
190
467
|
}, [
|
|
191
468
|
o(e.$slots, "center")
|
|
192
469
|
], 2)) : d("", !0),
|
|
193
|
-
|
|
194
|
-
class:
|
|
470
|
+
a("div", {
|
|
471
|
+
class: n(["flex items-center gap-2 shrink-0 max-w-[40%] z-10", [
|
|
195
472
|
{
|
|
196
|
-
// Always push to end unless Center is pushing it.
|
|
197
|
-
// If Center is 'center' (mx-auto) or 'right' (ml-auto), this naturally falls to end.
|
|
198
|
-
// If Center is 'left', we MUST have ml-auto here.
|
|
199
473
|
"ml-auto": m.centerPosition === "left" || m.centerPosition === "center"
|
|
200
|
-
// If center is 'right', Center has ml-auto. Right just sits next to it.
|
|
201
|
-
// But if we add ml-auto here too, they might split space? No, flexbox parses strictly.
|
|
202
474
|
},
|
|
203
475
|
l.rightClass
|
|
204
476
|
]])
|
|
205
477
|
}, [
|
|
206
478
|
o(e.$slots, "right")
|
|
207
479
|
], 2)
|
|
208
|
-
], 64)) : (t(),
|
|
209
|
-
|
|
210
|
-
class:
|
|
480
|
+
], 64)) : (t(), r(h, { key: 1 }, [
|
|
481
|
+
a("div", {
|
|
482
|
+
class: n(f.value.mobileHeader)
|
|
211
483
|
}, [
|
|
212
484
|
e.$slots?.logo ? o(e.$slots, "logo", { key: 0 }, () => [
|
|
213
|
-
s[
|
|
485
|
+
s[15] || (s[15] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
|
|
214
486
|
]) : d("", !0),
|
|
215
487
|
o(e.$slots, "mobile-trigger", {
|
|
216
|
-
isOpen:
|
|
217
|
-
toggle: () =>
|
|
488
|
+
isOpen: i.value,
|
|
489
|
+
toggle: () => i.value = !i.value
|
|
218
490
|
}, () => [
|
|
219
|
-
|
|
491
|
+
a("button", {
|
|
220
492
|
type: "button",
|
|
221
493
|
ref_key: "mobileTriggerRef",
|
|
222
|
-
ref:
|
|
223
|
-
class:
|
|
224
|
-
onClick: s[
|
|
494
|
+
ref: k,
|
|
495
|
+
class: n(["p-2 -mr-2 text-muted-foreground hover:bg-accent rounded-md", l.mobileTriggerClass]),
|
|
496
|
+
onClick: s[5] || (s[5] = (u) => i.value = !i.value)
|
|
225
497
|
}, [
|
|
226
|
-
|
|
498
|
+
c(z, {
|
|
227
499
|
icon: "lucide:menu",
|
|
228
500
|
class: "w-5 h-5"
|
|
229
501
|
}),
|
|
230
|
-
s[
|
|
502
|
+
s[16] || (s[16] = a("span", { class: "sr-only" }, "Open Menu", -1))
|
|
231
503
|
], 2)
|
|
232
504
|
])
|
|
233
505
|
], 2),
|
|
234
|
-
|
|
235
|
-
class:
|
|
506
|
+
a("div", {
|
|
507
|
+
class: n(f.value.desktopSidebar)
|
|
236
508
|
}, [
|
|
237
|
-
e.$slots?.logo ? (t(),
|
|
509
|
+
e.$slots?.logo ? (t(), r("div", {
|
|
238
510
|
key: 0,
|
|
239
|
-
class:
|
|
511
|
+
class: n(["py-4.5 flex items-center px-4.5 z-10", l.logoClass])
|
|
240
512
|
}, [
|
|
241
513
|
o(e.$slots, "logo", {}, () => [
|
|
242
|
-
s[
|
|
514
|
+
s[17] || (s[17] = a("div", { class: "font-bold text-xl truncate" }, "Brand", -1))
|
|
243
515
|
])
|
|
244
516
|
], 2)) : d("", !0),
|
|
245
|
-
|
|
246
|
-
class:
|
|
517
|
+
a("div", {
|
|
518
|
+
class: n(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin", l.contentClass])
|
|
247
519
|
}, [
|
|
248
520
|
o(e.$slots, "left"),
|
|
249
521
|
o(e.$slots, "default"),
|
|
250
522
|
o(e.$slots, "center")
|
|
251
523
|
], 2),
|
|
252
|
-
e.$slots?.right ? (t(),
|
|
524
|
+
e.$slots?.right ? (t(), r("div", {
|
|
253
525
|
key: 1,
|
|
254
|
-
class:
|
|
526
|
+
class: n(["p-2 border-t border-border shrink-0 bg-background mt-auto", l.rightClass])
|
|
255
527
|
}, [
|
|
256
528
|
o(e.$slots, "right")
|
|
257
529
|
], 2)) : d("", !0)
|
|
258
530
|
], 2)
|
|
259
531
|
], 64)),
|
|
260
|
-
l.mobileMenuVariant === "dropdown" ? (t(),
|
|
261
|
-
|
|
532
|
+
l.mobileMenuVariant === "dropdown" ? (t(), r(h, { key: 2 }, [
|
|
533
|
+
i.value ? (t(), r("div", {
|
|
262
534
|
key: 0,
|
|
263
535
|
ref_key: "mobileMenuRef",
|
|
264
|
-
ref:
|
|
265
|
-
class:
|
|
536
|
+
ref: M,
|
|
537
|
+
class: n(["absolute top-[calc(100%_+_1px)] left-0 w-full bg-body border border-border/50 shadow-xl z-50 flex flex-col transition-all duration-300 origin-top overflow-hidden will-change-transform", l.menuClass])
|
|
266
538
|
}, [
|
|
267
|
-
|
|
539
|
+
a("div", Ne, [
|
|
268
540
|
o(e.$slots, "mobile-menu", {}, () => [
|
|
269
|
-
|
|
541
|
+
a("div", Le, [
|
|
270
542
|
o(e.$slots, "left")
|
|
271
543
|
]),
|
|
272
|
-
s[
|
|
273
|
-
|
|
544
|
+
s[18] || (s[18] = a("div", { class: "h-px bg-border/50 my-1 mx-2" }, null, -1)),
|
|
545
|
+
a("div", Re, [
|
|
274
546
|
o(e.$slots, "center")
|
|
275
547
|
])
|
|
276
548
|
])
|
|
277
549
|
])
|
|
278
550
|
], 2)) : d("", !0)
|
|
279
|
-
], 64)) : (t(), y(
|
|
551
|
+
], 64)) : (t(), y(F, {
|
|
280
552
|
key: 3,
|
|
281
|
-
show:
|
|
282
|
-
"onUpdate:show": s[
|
|
553
|
+
show: i.value,
|
|
554
|
+
"onUpdate:show": s[6] || (s[6] = (u) => i.value = u),
|
|
283
555
|
position: "left",
|
|
284
556
|
size: "sm",
|
|
285
|
-
triggerClass:
|
|
286
|
-
class:
|
|
557
|
+
triggerClass: f.value.mobileTrigger,
|
|
558
|
+
class: n(["z-60", f.value.mobileTrigger]),
|
|
287
559
|
headerClass: "pl-3! pr-4.5! py-3!",
|
|
288
560
|
bodyClass: "p-0!"
|
|
289
561
|
}, {
|
|
290
|
-
header:
|
|
562
|
+
header: g(() => [
|
|
291
563
|
o(e.$slots, "logo", {}, () => [
|
|
292
|
-
s[
|
|
564
|
+
s[19] || (s[19] = U("Brand", -1))
|
|
293
565
|
])
|
|
294
566
|
]),
|
|
295
|
-
default:
|
|
296
|
-
|
|
297
|
-
m.variant === "header" ? (t(),
|
|
567
|
+
default: g(() => [
|
|
568
|
+
a("div", Pe, [
|
|
569
|
+
m.variant === "header" ? (t(), r("div", He, [
|
|
298
570
|
o(e.$slots, "mobile-menu", {}, () => [
|
|
299
571
|
o(e.$slots, "left"),
|
|
300
|
-
s[
|
|
572
|
+
s[20] || (s[20] = a("div", { class: "h-px bg-border my-2" }, null, -1)),
|
|
301
573
|
o(e.$slots, "center")
|
|
302
574
|
])
|
|
303
|
-
])) : (t(),
|
|
575
|
+
])) : (t(), r("div", je, [
|
|
304
576
|
o(e.$slots, "left"),
|
|
305
577
|
o(e.$slots, "default"),
|
|
306
578
|
o(e.$slots, "center")
|
|
307
579
|
])),
|
|
308
|
-
e.$slots?.right ? (t(),
|
|
580
|
+
e.$slots?.right ? (t(), r("div", Ae, [
|
|
309
581
|
o(e.$slots, "right")
|
|
310
582
|
])) : d("", !0)
|
|
311
583
|
])
|
|
@@ -316,5 +588,5 @@ const I = { class: "flex items-center gap-4 shrink-0 z-10" }, J = { key: 1 }, K
|
|
|
316
588
|
}
|
|
317
589
|
});
|
|
318
590
|
export {
|
|
319
|
-
|
|
591
|
+
Ze as default
|
|
320
592
|
};
|