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,36 +1,39 @@
1
- import { computed as t, shallowRef as $, ref as i, provide as C, onMounted as z, onUnmounted as R, watch as S, nextTick as A } from "vue";
2
- import { useRoute as I } from "vue-router";
3
- import { useLocalStorage as P, useBreakpoints as Y, breakpointsTailwind as D } from "@vueuse/core";
4
- import { useBreadcrumb as U } from "../../composables/useBreadcrumb.js";
5
- const _ = /* @__PURE__ */ Symbol("appshell-layout-ctx");
6
- function G(e, v) {
7
- const p = e.breadcrumb ? U({
1
+ import { computed as t, shallowRef as A, ref as i, provide as S, onMounted as I, onUnmounted as P, watch as p, nextTick as Y } from "vue";
2
+ import { useRoute as D } from "vue-router";
3
+ import { useLocalStorage as U, useBreakpoints as _, breakpointsTailwind as F } from "@vueuse/core";
4
+ import { useBreadcrumb as K } from "../../composables/useBreadcrumb.js";
5
+ import { useRtl as V } from "../../composables/useRtl.js";
6
+ const W = /* @__PURE__ */ Symbol("appshell-layout-ctx");
7
+ function ee(e, v) {
8
+ const L = e.breadcrumb ? K({
8
9
  homeIcon: e.breadcrumbHomeIcon,
9
10
  labelMap: e.breadcrumbLabels || {}
10
- }) : { items: t(() => []) }, c = $([]), m = i("");
11
- C("navbar-context", {
11
+ }) : { items: t(() => []) }, c = A([]), m = i("");
12
+ S("navbar-context", {
12
13
  compact: t(() => e.compact),
13
14
  renderNestedTabs: t(() => e.renderNestedTabs),
14
15
  setNestedTabs: (l, n) => {
15
16
  c.value = l, m.value = n;
16
17
  }
17
18
  });
18
- const u = i(!1), o = i(!1), a = i(null), f = i(null), d = P("vlite-appshell-sidebar-visible", !0), L = t(() => e.sidebarToggle && v), E = () => {
19
+ const u = i(!1), o = i(!1), a = i(null), f = i(null), E = V(), w = t(() => E.value), N = t(
20
+ () => w.value ? "opacity-0 translate-x-2" : "opacity-0 -translate-x-2"
21
+ ), d = U("vlite-appshell-sidebar-visible", !0), R = t(() => e.sidebarToggle && v), j = () => {
19
22
  d.value = !d.value;
20
- }, N = t(() => e.hideSidebar || L.value && !d.value), j = (l) => {
23
+ }, B = t(() => e.hideSidebar || R.value && !d.value), H = (l) => {
21
24
  c.value.find((s) => s.value === l) && (typeof l == "string" && l.startsWith("/") ? import("vue-router").then(({ useRouter: s }) => {
22
25
  s().push(l).catch(() => {
23
26
  });
24
27
  }) : m.value = l);
25
- }, w = () => {
28
+ }, k = () => {
26
29
  o.value = window.scrollY > 10;
27
30
  };
28
- z(() => {
29
- window.addEventListener("scroll", w, { passive: !0 });
30
- }), R(() => {
31
- window.removeEventListener("scroll", w);
31
+ I(() => {
32
+ window.addEventListener("scroll", k, { passive: !0 });
33
+ }), P(() => {
34
+ window.removeEventListener("scroll", k);
32
35
  });
33
- const k = t(() => {
36
+ const y = t(() => {
34
37
  const l = e.mobileBreakpoint || "md", n = {
35
38
  sm: "sm:hidden",
36
39
  md: "md:hidden",
@@ -51,7 +54,7 @@ function G(e, v) {
51
54
  md: "md:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
52
55
  lg: "lg:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background",
53
56
  xl: "xl:hidden flex items-center justify-between px-4 py-3 shrink-0 bg-background"
54
- }, T = {
57
+ }, C = {
55
58
  sm: "hidden sm:flex flex-col h-full w-full overflow-hidden",
56
59
  md: "hidden md:flex flex-col h-full w-full overflow-hidden",
57
60
  lg: "hidden lg:flex flex-col h-full w-full overflow-hidden",
@@ -67,10 +70,10 @@ function G(e, v) {
67
70
  desktopContent: s[l],
68
71
  sidebarLayout: r[l],
69
72
  mobileHeader: h[l],
70
- desktopSidebar: T[l],
73
+ desktopSidebar: C[l],
71
74
  desktopOnly: x[l]
72
75
  };
73
- }), B = t(() => {
76
+ }), M = t(() => {
74
77
  const l = e.variant === "sidebar", n = {
75
78
  fixed: "relative z-40",
76
79
  sticky: "relative z-40",
@@ -78,7 +81,7 @@ function G(e, v) {
78
81
  absolute: "relative z-40"
79
82
  }, s = "bg-body", r = [
80
83
  e.glass && (o.value || l || e.floating) ? "bg-background/95" : "bg-background",
81
- e.border && !e.floating ? l ? "border-r border-border" : "border-b border-border" : "",
84
+ e.border && !e.floating ? l ? "border-e border-border" : "border-b border-border" : "",
82
85
  e.floating ? "m-4 rounded shadow-lg border border-border/50" : "",
83
86
  o.value && !e.floating && !l && e.position === "sticky" ? "shadow-sm" : ""
84
87
  ], h = e.mobileBreakpoint || "md", x = l ? {
@@ -88,47 +91,49 @@ function G(e, v) {
88
91
  xl: "max-xl:hidden"
89
92
  }[h] : "";
90
93
  let g = "";
91
- return l ? g = k.value.sidebarLayout : g = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${e.height}`, [s, n[e.position], ...r, g, x, e.class].filter(Boolean).join(" ");
92
- }), H = t(() => {
94
+ return l ? g = y.value.sidebarLayout : g = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${e.height}`, [s, n[e.position], ...r, g, x, e.class].filter(Boolean).join(" ");
95
+ }), O = t(() => {
93
96
  if (e.variant === "sidebar")
94
97
  return "flex-1 py-4 overflow-y-auto scrollbar-thin scrollbar-stable";
95
98
  if (e.centerPosition === "left")
96
99
  return "flex items-center justify-start";
97
- }), b = I();
98
- S(
100
+ }), b = D();
101
+ p(
99
102
  () => b.path,
100
103
  () => {
101
- u.value = !1, A(() => {
104
+ u.value = !1, Y(() => {
102
105
  a.value && (a.value.scrollTop = 0, a.value.firstElementChild && (a.value.firstElementChild.scrollTop = 0)), f.value && (f.value.scrollTop = 0);
103
106
  });
104
107
  }
105
108
  );
106
- const M = Y(D).greater(e.mobileBreakpoint);
107
- S(M, (l) => {
109
+ const $ = _(F).greater(e.mobileBreakpoint);
110
+ p($, (l) => {
108
111
  l && (u.value = !1);
109
112
  });
110
- const O = t(() => b.meta?.title || b.name || ""), y = {
113
+ const z = t(() => b.meta?.title || b.name || ""), T = {
111
114
  props: e,
112
115
  isLayoutMode: v,
113
116
  isMobileMenuOpen: u,
114
117
  isSidebarVisible: d,
115
- sidebarHidden: N,
116
- pageTitle: O,
118
+ sidebarHidden: B,
119
+ pageTitle: z,
117
120
  isScrolled: o,
121
+ isRtl: w,
122
+ sidebarSlideFromClass: N,
118
123
  mainScrollRef: a,
119
124
  layoutMainRef: f,
120
- toggleSidebar: E,
121
- handleNestedTabClick: j,
122
- breakpointClasses: k,
123
- containerClasses: B,
124
- centerClasses: H,
125
- breadcrumbData: p,
125
+ toggleSidebar: j,
126
+ handleNestedTabClick: H,
127
+ breakpointClasses: y,
128
+ containerClasses: M,
129
+ centerClasses: O,
130
+ breadcrumbData: L,
126
131
  nestedTabsItems: c,
127
132
  activeNestedTab: m
128
133
  };
129
- return C(_, y), y;
134
+ return S(W, T), T;
130
135
  }
131
136
  export {
132
- _ as APPSHELL_LAYOUT_KEY,
133
- G as useAppShell
137
+ W as APPSHELL_LAYOUT_KEY,
138
+ ee as useAppShell
134
139
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, ref as y, computed as i, watch as I, createVNode as d, mergeProps as _, nextTick as H, isVNode as L } from "vue";
1
+ import { defineComponent as E, ref as y, computed as i, watch as I, createVNode as d, mergeProps as j, nextTick as H, isVNode as L } from "vue";
2
2
  import Q from "../Dropdown/Dropdown.vue.js";
3
3
  import "@iconify/vue";
4
4
  import "../../core/config.js";
@@ -8,7 +8,7 @@ import "../../core/config.js";
8
8
  import R from "../Button.vue.js";
9
9
  import T from "../MultiSelect/MultiSelect.vue.js";
10
10
  import U from "../Modal.vue.js";
11
- function j(t) {
11
+ function M(t) {
12
12
  return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !L(t);
13
13
  }
14
14
  const re = (t) => /* @__PURE__ */ E({
@@ -56,10 +56,10 @@ const re = (t) => /* @__PURE__ */ E({
56
56
  },
57
57
  emits: ["onChange", "update:modelValue", "change"],
58
58
  setup(l, {
59
- attrs: M,
59
+ attrs: B,
60
60
  emit: m
61
61
  }) {
62
- const c = y([]), s = y(1), b = y(""), B = 20, h = i(() => l.value !== void 0 ? l.value : l.modelValue), g = i(() => l.optionsMapper || t.optionsMapper), N = (e, a) => {
62
+ const c = y([]), s = y(1), b = y(""), _ = 20, h = i(() => l.value !== void 0 ? l.value : l.modelValue), g = i(() => l.optionsMapper || t.optionsMapper), N = (e, a) => {
63
63
  const r = l.filter;
64
64
  if (typeof r != "function")
65
65
  return r || {};
@@ -83,7 +83,7 @@ const re = (t) => /* @__PURE__ */ E({
83
83
  const q = i(() => ({
84
84
  pagination: {
85
85
  page: s.value,
86
- limit: B
86
+ limit: _
87
87
  },
88
88
  search: b.value || void 0,
89
89
  filter: {
@@ -194,20 +194,20 @@ const re = (t) => /* @__PURE__ */ E({
194
194
  fetchSelected: z,
195
195
  onSearch: J,
196
196
  onLoadMore: $,
197
- ...M
197
+ ...B
198
198
  }, a = {};
199
- return l.addNewConfig && (a.footer = () => k()), l.multiple ? d(T, _(e, {
199
+ return l.addNewConfig && (a.footer = () => k()), l.multiple ? d(T, j(e, {
200
200
  modelValue: h.value,
201
201
  "onUpdate:modelValue": (r) => v(r),
202
202
  onChange: (r) => v(r)
203
- }), j(a) ? a : {
203
+ }), M(a) ? a : {
204
204
  default: () => [a]
205
- }) : d(Q, _(e, {
205
+ }) : d(Q, j(e, {
206
206
  showSelectedIcon: !0,
207
207
  emptyMessage: "Data not found",
208
208
  modelValue: h.value,
209
209
  onOnSelect: (r) => v(r.value, r.data)
210
- }), j(a) ? a : {
210
+ }), M(a) ? a : {
211
211
  default: () => [a]
212
212
  });
213
213
  };
@@ -1,8 +1,56 @@
1
- import { AttachmentsListProps } from './';
2
- declare const _default: import('vue').DefineComponent<AttachmentsListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AttachmentsListProps> & Readonly<{}>, {
1
+ import { AttachmentsListProps, AttachmentItem } from './';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ item?(_: {
6
+ file: AttachmentItem;
7
+ index: number;
8
+ variant: "default" | "list" | "inline" | "card";
9
+ size: "sm" | "md" | "lg";
10
+ canView: boolean;
11
+ canDownload: boolean;
12
+ clickToPreview: boolean;
13
+ showDownloadInList: boolean;
14
+ isDownloading: boolean;
15
+ isPreviewable: boolean;
16
+ isImage: boolean;
17
+ formattedSize: string;
18
+ icon: string;
19
+ preview: () => void | Promise<void>;
20
+ download: () => Promise<void>;
21
+ }): any;
22
+ item?(_: {
23
+ file: AttachmentItem;
24
+ index: number;
25
+ variant: "default" | "list" | "inline" | "card";
26
+ size: "sm" | "md" | "lg";
27
+ canView: boolean;
28
+ canDownload: boolean;
29
+ clickToPreview: boolean;
30
+ showDownloadInList: boolean;
31
+ isDownloading: boolean;
32
+ isPreviewable: boolean;
33
+ isImage: boolean;
34
+ formattedSize: string;
35
+ icon: string;
36
+ preview: () => void | Promise<void>;
37
+ download: () => Promise<void>;
38
+ }): any;
39
+ };
40
+ refs: {};
41
+ rootEl: HTMLDivElement;
42
+ };
43
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
44
+ declare const __VLS_component: import('vue').DefineComponent<AttachmentsListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AttachmentsListProps> & Readonly<{}>, {
3
45
  canView: boolean;
4
46
  canDownload: boolean;
5
47
  clickToPreview: boolean;
6
48
  showDownloadInList: boolean;
7
49
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
50
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
51
  export default _default;
52
+ type __VLS_WithTemplateSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };