vlite3 1.4.39 → 1.4.41

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.
Files changed (135) hide show
  1. package/components/AppShell/AppShellLayoutClassic.vue.js +27 -28
  2. package/components/AppShell/AppShellLayoutDashboard.vue.js +48 -48
  3. package/components/AppShell/AppShellLayoutDock.vue.js +51 -51
  4. package/components/AppShell/AppShellLayoutHeaderShell.vue.js +69 -69
  5. package/components/AppShell/AppShellLayoutSidebarFirst.vue.d.ts +2 -2
  6. package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +78 -78
  7. package/components/AppShell/AppShellLayoutStorefront.vue.js +14 -15
  8. package/components/AppShell/useAppShell.d.ts +4 -0
  9. package/components/AppShell/useAppShell.js +45 -40
  10. package/components/AsyncSelect/createAsyncSelect.js +10 -10
  11. package/components/AttachmentsList/AttachmentsList.vue.d.ts +50 -2
  12. package/components/AttachmentsList/AttachmentsList.vue.js +289 -272
  13. package/components/AttachmentsList/types.d.ts +37 -0
  14. package/components/BackButton.vue.js +2 -2
  15. package/components/Button.vue.d.ts +1 -0
  16. package/components/Button.vue.js +5 -241
  17. package/components/Button.vue2.js +245 -2
  18. package/components/ButtonGroup.vue.js +2 -2
  19. package/components/ButtonGroup.vue2.js +4 -1
  20. package/components/Calendar/Calendar.vue2.js +16 -16
  21. package/components/Cart/CartCouponInput.vue.js +24 -24
  22. package/components/Cart/CartEmptyState.vue.js +4 -4
  23. package/components/Cart/CartLineItem.vue.js +33 -33
  24. package/components/Cart/CartVariant1.vue.js +3 -3
  25. package/components/Cart/CartVariant2.vue.js +5 -5
  26. package/components/Cart/CartVariant3.vue.js +25 -25
  27. package/components/Cart/CartVariant4.vue.js +9 -9
  28. package/components/CategoryManager/CategoryManager.vue2.js +18 -18
  29. package/components/CategoryManager/CategoryNode.vue.js +4 -4
  30. package/components/CategoryMenu/CategoryMenu.vue.js +3 -2
  31. package/components/CategoryMenu/CategoryMenuVariant1.vue2.js +3 -2
  32. package/components/Chat/ChatInterface.vue.js +23 -23
  33. package/components/Clipboard.vue.d.ts +7 -1
  34. package/components/Clipboard.vue.js +19 -17
  35. package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +22 -22
  36. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  37. package/components/ColorPicker/ColorPicker.vue.js +8 -8
  38. package/components/Comment/CommentEditor.vue.js +14 -14
  39. package/components/Comment/CommentItem.vue2.js +6 -6
  40. package/components/Comment/CommentThread.vue.js +4 -4
  41. package/components/DataList/DataList.vue.js +7 -7
  42. package/components/DataTable/DataTable.vue.d.ts +9 -0
  43. package/components/DataTable/DataTable.vue.js +380 -265
  44. package/components/DataTable/DataTableRow.vue.d.ts +23 -2
  45. package/components/DataTable/DataTableRow.vue.js +5 -198
  46. package/components/DataTable/DataTableRow.vue2.js +360 -2
  47. package/components/DataTable/dataTableHeaders.d.ts +18 -0
  48. package/components/DataTable/dataTableHeaders.js +9 -0
  49. package/components/DataTable/types.d.ts +11 -0
  50. package/components/DatePicker.vue.js +8 -9
  51. package/components/DateRangePicker.vue2.js +34 -34
  52. package/components/Dropdown/Dropdown.vue.d.ts +7 -2
  53. package/components/Dropdown/Dropdown.vue.js +146 -139
  54. package/components/Dropdown/DropdownTrigger.vue.js +6 -6
  55. package/components/ExportData/ExportData.vue.js +15 -15
  56. package/components/FilePicker/FilePickerDropzone.vue.js +16 -16
  57. package/components/FilePicker/FilePickerInput.vue.js +3 -2
  58. package/components/FilePicker/FilePreview.vue.js +3 -3
  59. package/components/FileTree/FileTree.vue.js +4 -4
  60. package/components/FileTree/FileTree.vue2.js +9 -9
  61. package/components/FileTree/FileTreeNode.vue.js +76 -72
  62. package/components/Footer/Variant1.vue.js +48 -48
  63. package/components/Footer/Variant2.vue.js +42 -42
  64. package/components/Form/AccordionView.vue.d.ts +1 -1
  65. package/components/Form/AccordionView.vue2.js +2 -2
  66. package/components/Form/AccordionView.vue3.js +61 -57
  67. package/components/Form/Form.vue2.js +41 -41
  68. package/components/Form/TableRow.vue.d.ts +7 -0
  69. package/components/Form/TableRow.vue.js +187 -41
  70. package/components/Form/TableView.vue.d.ts +11 -1
  71. package/components/Form/TableView.vue.js +71 -49
  72. package/components/Form/composables/useForm.js +146 -142
  73. package/components/Form/index.vue.d.ts +5 -1
  74. package/components/Form/index.vue.js +2 -2
  75. package/components/Form/index.vue2.js +44 -37
  76. package/components/Form/rowHelpers.d.ts +20 -0
  77. package/components/Form/rowHelpers.js +76 -28
  78. package/components/Form/types.d.ts +11 -0
  79. package/components/GoogleLogin.vue.js +4 -4
  80. package/components/IconPicker.vue.js +9 -9
  81. package/components/ImportData/ImportData.vue.js +11 -11
  82. package/components/ImportData/ImportStep1.vue.js +10 -10
  83. package/components/ImportData/ImportStep2.vue.js +15 -14
  84. package/components/Input.vue.js +133 -129
  85. package/components/Kanban/KanbanBoard.vue.js +1 -1
  86. package/components/Kanban/KanbanBoard.vue2.js +9 -9
  87. package/components/MultiSelect/MultiSelect.vue.js +3 -2
  88. package/components/Navbar/Navbar.vue.js +17 -17
  89. package/components/Navbar/NavbarGroup.vue.js +8 -7
  90. package/components/Navbar/NavbarItem.vue.js +40 -39
  91. package/components/Navbar/NavbarTabs.vue.js +6 -184
  92. package/components/Navbar/NavbarTabs.vue2.js +204 -0
  93. package/components/Navbar/useNavbar.js +3 -3
  94. package/components/NavbarCommandPalette.vue.js +1 -1
  95. package/components/NumberInput.vue.js +2 -2
  96. package/components/NumberInput.vue2.js +81 -77
  97. package/components/OTPInput/OTPInput.vue.js +24 -23
  98. package/components/Pagination/Pagination.vue.d.ts +1 -1
  99. package/components/Pagination/Pagination.vue.js +5 -274
  100. package/components/Pagination/Pagination.vue2.js +283 -2
  101. package/components/PermissionMatrix/PermissionTopBar.vue.js +19 -18
  102. package/components/PricingPlan/PricingPlanItem.vue.js +7 -7
  103. package/components/Screen/Screen.vue.d.ts +1 -1
  104. package/components/Screen/Screen.vue.js +21 -21
  105. package/components/Screen/ScreenFilter.vue.js +5 -5
  106. package/components/Screen/components/ScreenAddAction.vue.js +3 -3
  107. package/components/Screen/components/ScreenEmptyState.vue.js +10 -10
  108. package/components/Screen/components/ScreenExportModal.vue.js +12 -12
  109. package/components/Screen/components/ScreenOptionsDropdown.vue.js +5 -5
  110. package/components/Screen/components/ScreenToolbar.vue.js +15 -15
  111. package/components/SidePanel.vue.js +2 -2
  112. package/components/SidePanel.vue2.js +6 -6
  113. package/components/SidebarMenu/SidebarMenu.vue.js +77 -72
  114. package/components/SidebarMenu/SidebarMenuItem.vue.js +172 -168
  115. package/components/Slider.vue.js +123 -108
  116. package/components/Tabes/Tabes.vue.d.ts +8 -3
  117. package/components/Tabes/Tabes.vue.js +2 -2
  118. package/components/Tabes/Tabes.vue2.js +209 -200
  119. package/components/Tabes/tabes.utils.d.ts +23 -0
  120. package/components/Tabes/tabes.utils.js +39 -16
  121. package/components/Textarea.vue.d.ts +2 -0
  122. package/components/Textarea.vue.js +19 -16
  123. package/components/ThemeToggle.vue.js +8 -8
  124. package/components/ToastNotification.vue2.js +10 -10
  125. package/components/TreeConnectors/TreeConnectors.vue.d.ts +1 -1
  126. package/components/TreeConnectors/TreeConnectors.vue.js +13 -8
  127. package/components/TreeConnectors/geometry.js +77 -69
  128. package/components/Workbook/WorkbookAddButton.vue.js +2 -2
  129. package/composables/useRtl.d.ts +14 -0
  130. package/composables/useRtl.js +33 -0
  131. package/index.js +470 -471
  132. package/package.json +1 -1
  133. package/style.css +86 -1
  134. package/types/button.d.ts +8 -0
  135. 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 u, 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";
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
- }, ve = /* @__PURE__ */ H({
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: f,
41
- containerClasses: O,
42
- centerClasses: N,
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
- u(A, {
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(O)),
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 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [e(f).mobileTrigger, e(o).mobileTriggerClass]]),
94
- onClick: t[0] || (t[0] = (m) => r.value = !e(r))
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
- u(S, {
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(f).desktopContent])
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(N), "max-w-full", e(o).contentClass])
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
- "ml-auto": e(o).centerPosition === "left" || e(o).centerPosition === "center"
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(f).mobileHeader)
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 -mr-2 text-muted-foreground hover:bg-accent rounded-md", e(o).mobileTriggerClass]),
140
- onClick: t[1] || (t[1] = (m) => r.value = !e(r))
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
- u(S, {
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(f).desktopSidebar)
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
- u(K, {
181
+ m(K, {
183
182
  modelValue: e(p),
184
- "onUpdate:modelValue": t[2] || (t[2] = (m) => T(p) ? p.value = m : null),
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
- u(e(q), {
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)] left-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])
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] = (m) => T(r) ? r.value = m : null),
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(f).mobileTrigger,
235
- class: d(["z-60", e(f).mobileTrigger]),
236
- headerClass: "pl-3! pr-4.5! py-3!",
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
- ve as default
279
+ pe as default
281
280
  };
@@ -1,55 +1,55 @@
1
- import { defineComponent as N, inject as _, openBlock as a, createElementBlock as o, createVNode as m, Transition as R, withCtx as p, withDirectives as g, createElementVNode as n, normalizeClass as b, unref as e, renderSlot as r, createCommentVNode as t, vShow as y, isRef as w, createSlots as B, createTextVNode as E } from "vue";
2
- import L from "../SidePanel.vue.js";
3
- import M from "../Navbar/NavbarTabs.vue.js";
4
- /* empty css */
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 A } from "./useAppShell.js";
9
- const D = { class: "vlite-app-layout flex flex-row w-full h-full bg-muted/20 p-0 sm:p-2.5 gap-0 sm:gap-2.5 overflow-hidden" }, H = {
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
- }, 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 = {
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
- }, I = {
14
+ }, Y = {
16
15
  key: 0,
17
16
  class: "shrink-0 w-full"
18
- }, Y = { class: "flex flex-col h-full" }, j = {
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__ */ N({
23
+ }, se = /* @__PURE__ */ R({
25
24
  __name: "AppShellLayoutDashboard",
26
25
  setup(q) {
27
- const k = _(A), {
26
+ const $ = _(D), {
28
27
  props: l,
29
- sidebarHidden: $,
28
+ sidebarHidden: C,
30
29
  isMobileMenuOpen: i,
31
- isSidebarVisible: x,
32
- toggleSidebar: C,
33
- pageTitle: S,
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: T,
39
- mainScrollRef: V,
40
- layoutMainRef: z
41
- } = k;
42
- return (s, d) => (a(), o("div", D, [
43
- m(R, {
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": "opacity-0 -translate-x-2",
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": "opacity-0 -translate-x-2"
49
+ "leave-to-class": e(g)
50
50
  }, {
51
51
  default: p(() => [
52
- g(n("nav", {
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", H, [
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
- [y, !e($)]
77
+ [w, !e(C)]
78
78
  ])
79
79
  ]),
80
80
  _: 3
81
- }),
82
- n("div", O, [
83
- s.$slots.header ? g((a(), o("header", U, [
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(x),
88
- toggleSidebar: e(C),
87
+ sidebarVisible: e(S),
88
+ toggleSidebar: e(x),
89
89
  breadcrumbItems: e(u).items.value,
90
- pageTitle: e(S)
90
+ pageTitle: e(T)
91
91
  })
92
92
  ], 512)), [
93
- [y, !e(l).hideHeader]
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: z,
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", I, [
102
- m(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) => w(c) ? c.value = h : null),
105
- onChange: e(T),
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(P), {
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: V,
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(L, {
130
+ m(M, {
131
131
  show: e(i),
132
- "onUpdate:show": d[1] || (d[1] = (h) => w(i) ? i.value = h : null),
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: "pl-3! pr-4.5! py-3!",
137
+ headerClass: "ps-3! pe-4.5! py-3!",
138
138
  bodyClass: "p-0!"
139
- }, B({
139
+ }, E({
140
140
  default: p(() => [
141
- n("div", Y, [
142
- n("div", j, [
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] = E("Brand", -1))
161
+ d[2] || (d[2] = L("Brand", -1))
162
162
  ])
163
163
  ])
164
164
  ]),
@@ -1,55 +1,55 @@
1
- import { defineComponent as z, inject as N, openBlock as a, createElementBlock as o, createVNode as m, Transition as R, withCtx as h, withDirectives as v, createElementVNode as n, normalizeClass as b, unref as e, renderSlot as l, createCommentVNode as t, vShow as y, isRef as w, createTextVNode as B } from "vue";
2
- import E from "../SidePanel.vue.js";
3
- import L from "../Navbar/NavbarTabs.vue.js";
4
- /* empty css */
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 P } from "./useAppShell.js";
9
- const A = { class: "vlite-app-layout flex flex-row w-full h-full bg-background p-0 sm:p-2 gap-0 sm:gap-2 overflow-hidden items-stretch" }, D = {
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
- }, H = { 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" }, O = {
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
- }, U = {
14
+ }, j = {
16
15
  key: 0,
17
16
  class: "shrink-0 w-full border-b border-border"
18
- }, j = { class: "flex flex-col h-full" }, I = {
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
- }, Y = {
20
+ }, F = {
22
21
  key: 0,
23
22
  class: "mt-auto pt-2 border-t border-border px-3 py-2"
24
- }, ee = /* @__PURE__ */ z({
23
+ }, ee = /* @__PURE__ */ _({
25
24
  __name: "AppShellLayoutDock",
26
25
  setup(K) {
27
- const k = N(P), {
26
+ const x = R(A), {
28
27
  props: r,
29
- sidebarHidden: x,
28
+ sidebarHidden: $,
30
29
  isMobileMenuOpen: i,
31
- isSidebarVisible: $,
32
- toggleSidebar: C,
33
- pageTitle: S,
30
+ isSidebarVisible: C,
31
+ toggleSidebar: S,
32
+ pageTitle: T,
34
33
  breadcrumbData: u,
35
34
  breakpointClasses: c,
36
- nestedTabsItems: g,
35
+ nestedTabsItems: v,
37
36
  activeNestedTab: f,
38
- handleNestedTabClick: T,
39
- mainScrollRef: V,
40
- layoutMainRef: _
41
- } = k;
42
- return (s, d) => (a(), o("div", A, [
43
- m(R, {
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": "opacity-0 -translate-x-2 scale-95",
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": "opacity-0 -translate-x-2 scale-95"
49
+ "leave-to-class": `${e(g)} scale-95`
50
50
  }, {
51
51
  default: h(() => [
52
- v(n("nav", {
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", D, [
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
- [y, !e(x)]
76
+ [w, !e($)]
77
77
  ])
78
78
  ]),
79
79
  _: 3
80
- }),
81
- n("div", H, [
82
- s.$slots.header ? v((a(), o("header", O, [
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(C),
86
+ sidebarVisible: e(C),
87
+ toggleSidebar: e(S),
88
88
  breadcrumbItems: e(u).items.value,
89
- pageTitle: e(S)
89
+ pageTitle: e(T)
90
90
  })
91
91
  ], 512)), [
92
- [y, !e(r).hideHeader]
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(g).length > 0 ? (a(), o("div", U, [
101
- m(L, {
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) => w(f) ? f.value = p : null),
104
- onChange: e(T),
105
- items: e(g)
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(M), {
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: V,
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(E, {
129
+ m(L, {
130
130
  show: e(i),
131
- "onUpdate:show": d[1] || (d[1] = (p) => w(i) ? i.value = p : null),
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: "pl-3! pr-4.5! py-3!",
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] = B("Brand", -1))
142
+ d[2] || (d[2] = E("Brand", -1))
143
143
  ])
144
144
  ])
145
145
  ]),
146
146
  default: h(() => [
147
- n("div", j, [
148
- n("div", I, [
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", Y, [
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
  ])