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,6 +1,6 @@
1
- import { defineComponent as p, computed as m, openBlock as w, createBlock as $, unref as D, withCtx as h, createElementVNode as z, createVNode as g, renderSlot as L, mergeProps as x } from "vue";
1
+ import { defineComponent as z, computed as m, openBlock as w, createBlock as $, unref as D, withCtx as h, createElementVNode as p, createVNode as g, renderSlot as B, mergeProps as x } from "vue";
2
2
  import P from "./Button.vue.js";
3
- import B from "./Dropdown/Dropdown.vue.js";
3
+ import L from "./Dropdown/Dropdown.vue.js";
4
4
  import "@iconify/vue";
5
5
  import { $t as V } from "../utils/i18n.js";
6
6
  /* empty css */
@@ -8,7 +8,7 @@ import { $t as V } from "../utils/i18n.js";
8
8
  /* empty css */
9
9
  import U, { TimePicker as j } from "v-datepicker-lite";
10
10
  import "v-datepicker-lite/style.css";
11
- const C = { class: "overflow-hidden min-w-[300px]" }, J = /* @__PURE__ */ p({
11
+ const C = { class: "overflow-hidden min-w-[300px]" }, J = /* @__PURE__ */ z({
12
12
  __name: "DatePicker",
13
13
  props: {
14
14
  placeholder: {},
@@ -135,16 +135,15 @@ const C = { class: "overflow-hidden min-w-[300px]" }, J = /* @__PURE__ */ p({
135
135
  }
136
136
  a.value = e;
137
137
  }, T = m(() => r.mode === "week" && a.value && typeof a.value == "object" && (a.value.startDate || a.value.start) || a.value);
138
- return (e, n) => t.mode !== "time" ? (w(), $(D(B), {
138
+ return (e, n) => t.mode !== "time" ? (w(), $(D(L), {
139
139
  key: 0,
140
- position: "bottom-start",
141
140
  class: "w-full",
142
141
  maxHeight: "max-h-[500px]",
143
142
  teleport: t.teleport,
144
143
  disabled: t.disabled || t.readonly
145
144
  }, {
146
145
  trigger: h(() => [
147
- L(e.$slots, "default", {
146
+ B(e.$slots, "default", {
148
147
  value: a.value,
149
148
  displayValue: f.value
150
149
  }, () => [
@@ -155,13 +154,13 @@ const C = { class: "overflow-hidden min-w-[300px]" }, J = /* @__PURE__ */ p({
155
154
  icon: t.icon || "lucide:calendar",
156
155
  disabled: t.disabled
157
156
  }, t.btnProps, {
158
- class: "w-full justify-start text-left font-normal",
157
+ class: "w-full justify-start text-start font-normal",
159
158
  "data-testid": e.$attrs["data-testid"] || (e.$attrs.name ? `datepicker-${e.$attrs.name}` : "datepicker")
160
159
  }), null, 16, ["text", "variant", "size", "icon", "disabled", "data-testid"])
161
160
  ])
162
161
  ]),
163
162
  default: h(() => [
164
- z("div", C, [
163
+ p("div", C, [
165
164
  g(D(U), {
166
165
  value: T.value,
167
166
  mode: t.mode,
@@ -203,7 +202,7 @@ const C = { class: "overflow-hidden min-w-[300px]" }, J = /* @__PURE__ */ p({
203
202
  icon: t.icon || (t.mode === "time" ? "lucide:clock" : "lucide:calendar"),
204
203
  disabled: t.disabled
205
204
  }, t.btnProps, {
206
- class: "w-full justify-start text-left font-normal",
205
+ class: "w-full justify-start text-start font-normal",
207
206
  "data-testid": e.$attrs["data-testid"] || (e.$attrs.name ? `timepicker-${e.$attrs.name}` : "timepicker")
208
207
  }), null, 16, ["text", "variant", "size", "icon", "disabled", "data-testid"])
209
208
  ]),
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, ref as b, watch as F, computed as u, openBlock as d, createBlock as m, unref as v, withCtx as D, createElementVNode as i, createElementBlock as w, Fragment as L, renderList as T, createCommentVNode as z, createVNode as h, normalizeClass as y, toDisplayString as x, createTextVNode as B } from "vue";
1
+ import { defineComponent as $, ref as b, watch as B, computed as u, openBlock as d, createBlock as m, unref as v, withCtx as D, createElementVNode as i, createElementBlock as w, Fragment as L, renderList as T, createCommentVNode as _, createVNode as h, normalizeClass as y, toDisplayString as x, createTextVNode as z } from "vue";
2
2
  import E from "./Dropdown/Dropdown.vue.js";
3
3
  import R from "./Icon.vue.js";
4
4
  import { $t as l } from "../utils/i18n.js";
@@ -27,9 +27,9 @@ const j = { class: "flex items-center justify-start gap-2 w-full" }, H = { class
27
27
  triggerClass: {}
28
28
  },
29
29
  emits: ["update:modelValue", "change"],
30
- setup(s, { emit: M }) {
31
- const g = s, k = M, o = b(!1), c = b(0);
32
- F(o, (a) => {
30
+ setup(r, { emit: M }) {
31
+ const g = r, k = M, o = b(!1), c = b(0);
32
+ B(o, (a) => {
33
33
  a && c.value++;
34
34
  });
35
35
  const n = u({
@@ -113,66 +113,66 @@ const j = { class: "flex items-center justify-start gap-2 w-full" }, H = { class
113
113
  value: "last_year",
114
114
  icon: "lucide:history"
115
115
  }
116
- ]), _ = (a) => {
116
+ ]), F = (a) => {
117
117
  const e = /* @__PURE__ */ new Date();
118
- let t = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date();
119
- switch (e.setHours(0, 0, 0, 0), t.setHours(0, 0, 0, 0), r.setHours(0, 0, 0, 0), a.value) {
118
+ let t = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date();
119
+ switch (e.setHours(0, 0, 0, 0), t.setHours(0, 0, 0, 0), s.setHours(0, 0, 0, 0), a.value) {
120
120
  case "today":
121
- t = new Date(e), r = new Date(e);
121
+ t = new Date(e), s = new Date(e);
122
122
  break;
123
123
  case "yesterday":
124
- t = new Date(e), t.setDate(t.getDate() - 1), r = new Date(t);
124
+ t = new Date(e), t.setDate(t.getDate() - 1), s = new Date(t);
125
125
  break;
126
126
  case "last_7_days":
127
- t = new Date(e), t.setDate(t.getDate() - 6), r = new Date(e);
127
+ t = new Date(e), t.setDate(t.getDate() - 6), s = new Date(e);
128
128
  break;
129
129
  case "last_30_days":
130
- t = new Date(e), t.setDate(t.getDate() - 29), r = new Date(e);
130
+ t = new Date(e), t.setDate(t.getDate() - 29), s = new Date(e);
131
131
  break;
132
132
  case "this_month":
133
- t = new Date(e.getFullYear(), e.getMonth(), 1), r = new Date(e);
133
+ t = new Date(e.getFullYear(), e.getMonth(), 1), s = new Date(e);
134
134
  break;
135
135
  case "last_month":
136
- t = new Date(e.getFullYear(), e.getMonth() - 1, 1), r = new Date(e.getFullYear(), e.getMonth(), 0);
136
+ t = new Date(e.getFullYear(), e.getMonth() - 1, 1), s = new Date(e.getFullYear(), e.getMonth(), 0);
137
137
  break;
138
138
  case "last_6_months":
139
- t = new Date(e.getFullYear(), e.getMonth() - 5, 1), r = new Date(e);
139
+ t = new Date(e.getFullYear(), e.getMonth() - 5, 1), s = new Date(e);
140
140
  break;
141
141
  case "this_year":
142
- t = new Date(e.getFullYear(), 0, 1), r = new Date(e);
142
+ t = new Date(e.getFullYear(), 0, 1), s = new Date(e);
143
143
  break;
144
144
  case "last_year":
145
- t = new Date(e.getFullYear() - 1, 0, 1), r = new Date(e.getFullYear() - 1, 11, 31);
145
+ t = new Date(e.getFullYear() - 1, 0, 1), s = new Date(e.getFullYear() - 1, 11, 31);
146
146
  break;
147
147
  }
148
- n.value = { startDate: t, endDate: r }, c.value++, o.value = !1;
148
+ n.value = { startDate: t, endDate: s }, c.value++, o.value = !1;
149
149
  };
150
150
  return (a, e) => (d(), m(v(E), {
151
151
  isOpen: o.value,
152
152
  "onUpdate:isOpen": e[0] || (e[0] = (t) => o.value = t),
153
153
  position: "bottom-start",
154
- disabled: s.disabled || s.readonly,
154
+ disabled: r.disabled || r.readonly,
155
155
  class: "w-full sm:w-auto inline-block",
156
156
  maxHeight: "none"
157
157
  }, {
158
158
  trigger: D(({ isOpen: t }) => [
159
159
  h(P, {
160
160
  icon: "lucide:calendar",
161
- variant: s.variant || "outline",
162
- size: s.size || "md",
163
- disabled: s.disabled,
164
- class: y(["w-full justify-between text-left font-normal", [s.triggerClass, { "ring-1 ring-ring ring-offset-[1]": t }]]),
161
+ variant: r.variant || "outline",
162
+ size: r.size || "md",
163
+ disabled: r.disabled,
164
+ class: y(["w-full justify-between text-left font-normal", [r.triggerClass, { "ring-1 ring-ring ring-offset-[1]": t }]]),
165
165
  "data-testid": a.$attrs["data-testid"] || (a.$attrs.name ? `daterange-${a.$attrs.name}` : "daterange")
166
166
  }, {
167
167
  default: D(() => [
168
168
  i("div", j, [
169
169
  i("span", {
170
170
  class: y({ "text-muted-foreground": !n.value.startDate })
171
- }, x(n.value.startDate ? f(n.value.startDate) : s.placeholderStart), 3),
172
- e[1] || (e[1] = B(" — ", -1)),
171
+ }, x(n.value.startDate ? f(n.value.startDate) : r.placeholderStart), 3),
172
+ e[1] || (e[1] = z(" — ", -1)),
173
173
  i("span", {
174
174
  class: y({ "text-muted-foreground": !n.value.endDate })
175
- }, x(n.value.endDate ? f(n.value.endDate) : s.placeholderEnd), 3)
175
+ }, x(n.value.endDate ? f(n.value.endDate) : r.placeholderEnd), 3)
176
176
  ])
177
177
  ]),
178
178
  _: 1
@@ -180,7 +180,7 @@ const j = { class: "flex items-center justify-start gap-2 w-full" }, H = { class
180
180
  ]),
181
181
  menu: D(() => [
182
182
  i("div", H, [
183
- s.showQuickRanges ? (d(), w("div", Q, [
183
+ r.showQuickRanges ? (d(), w("div", Q, [
184
184
  e[2] || (e[2] = i("div", { class: "text-xs pl-2 pb-2 font-semibold text-muted-foreground uppercase tracking-wider" }, " Quick Ranges ", -1)),
185
185
  (d(!0), w(L, null, T(V.value, (t) => (d(), m(P, {
186
186
  key: t.value,
@@ -189,9 +189,9 @@ const j = { class: "flex items-center justify-start gap-2 w-full" }, H = { class
189
189
  variant: "ghost",
190
190
  size: "sm",
191
191
  class: "justify-start w-full font-normal",
192
- onClick: (r) => _(t)
192
+ onClick: (s) => F(t)
193
193
  }, null, 8, ["text", "icon", "onClick"]))), 128))
194
- ])) : z("", !0),
194
+ ])) : _("", !0),
195
195
  i("div", O, [
196
196
  i("div", I, [
197
197
  (d(), m(v(p), {
@@ -200,10 +200,10 @@ const j = { class: "flex items-center justify-start gap-2 w-full" }, H = { class
200
200
  onChange: Y,
201
201
  mode: "date",
202
202
  "max-date": C.value,
203
- "min-date": s.minDate,
204
- disabled: s.disabled,
203
+ "min-date": r.minDate,
204
+ disabled: r.disabled,
205
205
  class: "min-w-[270px]",
206
- readonly: s.readonly
206
+ readonly: r.readonly
207
207
  }, null, 8, ["value", "max-date", "min-date", "disabled", "readonly"]))
208
208
  ]),
209
209
  i("div", U, [
@@ -223,10 +223,10 @@ const j = { class: "flex items-center justify-start gap-2 w-full" }, H = { class
223
223
  onChange: S,
224
224
  mode: "date",
225
225
  "min-date": N.value,
226
- "max-date": s.maxDate,
226
+ "max-date": r.maxDate,
227
227
  class: "min-w-[270px]",
228
- disabled: s.disabled,
229
- readonly: s.readonly
228
+ disabled: r.disabled,
229
+ readonly: r.readonly
230
230
  }, null, 8, ["value", "min-date", "max-date", "disabled", "readonly"]))
231
231
  ])
232
232
  ])
@@ -1,5 +1,6 @@
1
1
  import { IDropdownOption, ButtonProps } from '../../types';
2
2
  import { TooltTipPlacement } from 'v-tooltip-lite/types';
3
+ export type DropdownDirection = 'ltr' | 'rtl' | 'auto';
3
4
  type __VLS_Props = {
4
5
  selected?: any;
5
6
  modelValue?: any;
@@ -37,7 +38,11 @@ type __VLS_Props = {
37
38
  debounceTime?: number;
38
39
  fetchSelected?: (ids: any[]) => Promise<IDropdownOption[]>;
39
40
  triggerProps?: ButtonProps;
40
- direction?: 'ltr' | 'rtl';
41
+ /**
42
+ * Text / layout direction for trigger + menu.
43
+ * `'auto'` follows the nearest ancestor `dir`, then `html[dir]`.
44
+ */
45
+ direction?: DropdownDirection;
41
46
  isNested?: boolean;
42
47
  disabled?: boolean;
43
48
  readonly?: boolean;
@@ -102,7 +107,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
102
107
  disabled: boolean;
103
108
  layout: "default" | "grouped";
104
109
  trigger: import('v-tooltip-lite/types').TooltTipTrigger;
105
- direction: "ltr" | "rtl";
110
+ direction: DropdownDirection;
106
111
  selectable: boolean;
107
112
  options: (IDropdownOption | string | number)[];
108
113
  selectedIndex: number | null;