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,16 +1,17 @@
1
- import { defineComponent as F, ref as V, watch as H, computed as r, openBlock as u, createElementBlock as d, normalizeClass as s, createBlock as I, createCommentVNode as c, toDisplayString as y, createElementVNode as h, normalizeStyle as k, withDirectives as U, vModelText as W } from "vue";
2
- import P from "./Icon.vue.js";
3
- import { $t as q } from "../utils/i18n.js";
4
- const A = {
1
+ import { defineComponent as A, ref as $, watch as G, computed as l, openBlock as u, createElementBlock as v, normalizeClass as s, createBlock as O, createCommentVNode as c, toDisplayString as k, createElementVNode as g, normalizeStyle as V, withDirectives as J, vModelText as K } from "vue";
2
+ import j from "./Icon.vue.js";
3
+ import { $t as Q } from "../utils/i18n.js";
4
+ import { useRtl as X } from "../composables/useRtl.js";
5
+ const Y = {
5
6
  key: 0,
6
7
  class: "flex justify-between items-end w-full"
7
- }, G = {
8
+ }, _ = {
8
9
  key: 1,
9
10
  class: "whitespace-nowrap cursor-pointer"
10
- }, J = {
11
+ }, ee = {
11
12
  key: 1,
12
13
  class: "whitespace-nowrap cursor-pointer"
13
- }, K = ["min", "max", "step", "disabled", "orient"], Z = /* @__PURE__ */ F({
14
+ }, te = ["dir"], ae = ["min", "max", "step", "disabled", "dir", "orient"], ie = /* @__PURE__ */ A({
14
15
  __name: "Slider",
15
16
  props: {
16
17
  min: { default: 0 },
@@ -31,15 +32,19 @@ const A = {
31
32
  thumbVariant: { default: "default" }
32
33
  },
33
34
  emits: ["update:modelValue", "change", "iconClick"],
34
- setup(l, { emit: O }) {
35
- const e = l, v = O, i = V(!1), x = V(!1), o = V(e.modelValue);
36
- H(
35
+ setup(n, { emit: E }) {
36
+ const e = n, m = E, H = X(), i = $(!1), w = $(!1), o = $(e.modelValue);
37
+ G(
37
38
  () => e.modelValue,
38
39
  (t) => {
39
40
  o.value = t;
40
41
  }
41
42
  );
42
- const w = r(() => e.centerOrigin !== void 0 ? e.centerOrigin : e.min < 0 && e.max > 0), C = r(() => e.max - e.min), f = r(() => (o.value - e.min) / C.value * 100), g = r(() => (0 - e.min) / C.value * 100), z = r(() => {
43
+ const x = l(() => e.centerOrigin !== void 0 ? e.centerOrigin : e.min < 0 && e.max > 0), p = l(() => H.value && e.orientation !== "vertical"), M = l(() => e.max - e.min), b = l(() => (o.value - e.min) / M.value * 100), C = l(() => (0 - e.min) / M.value * 100), y = l(
44
+ () => p.value ? 100 - b.value : b.value
45
+ ), z = l(
46
+ () => p.value ? 100 - C.value : C.value
47
+ ), D = l(() => {
43
48
  switch (e.size) {
44
49
  case "xs":
45
50
  return 12;
@@ -50,53 +55,60 @@ const A = {
50
55
  default:
51
56
  return 14;
52
57
  }
53
- }), m = (t) => {
54
- const a = z.value / 2, n = z.value;
55
- return `calc(${t}% + (${a}px - ${n * (t / 100)}px))`;
56
- }, T = r(() => {
57
- if (w.value) {
58
- const t = Math.min(f.value, g.value), a = Math.max(f.value, g.value), n = m(t), S = m(a);
58
+ }), d = (t) => {
59
+ const a = D.value / 2, r = D.value;
60
+ return `calc(${t}% + (${a}px - ${r * (t / 100)}px))`;
61
+ }, L = l(() => {
62
+ if (x.value) {
63
+ const t = Math.min(y.value, z.value), a = Math.max(y.value, z.value), r = d(t), T = d(a);
59
64
  return e.orientation === "vertical" ? {
60
- bottom: n,
61
- height: `calc(${S} - ${n})`
65
+ bottom: r,
66
+ height: `calc(${T} - ${r})`
62
67
  } : {
63
- left: n,
64
- width: `calc(${S} - ${n})`
68
+ left: r,
69
+ width: `calc(${T} - ${r})`
65
70
  };
66
- } else
67
- return e.orientation === "vertical" ? {
68
- bottom: "0%",
69
- height: m(f.value)
70
- } : {
71
- left: "0%",
72
- width: m(f.value)
73
- };
74
- }), j = r(() => {
75
- if (!w.value) return "";
71
+ }
72
+ return e.orientation === "vertical" ? {
73
+ bottom: "0%",
74
+ height: d(b.value)
75
+ } : p.value ? {
76
+ left: d(y.value),
77
+ right: "0%",
78
+ width: "auto"
79
+ } : {
80
+ left: "0%",
81
+ width: d(b.value)
82
+ };
83
+ }), N = l(() => {
84
+ if (!x.value) return "";
76
85
  if (e.orientation === "vertical") {
77
86
  if (o.value < 0) return "rounded-t-none";
78
87
  if (o.value > 0) return "rounded-b-none";
88
+ } else if (p.value) {
89
+ if (o.value < 0) return "rounded-l-none";
90
+ if (o.value > 0) return "rounded-r-none";
79
91
  } else {
80
92
  if (o.value < 0) return "rounded-r-none";
81
93
  if (o.value > 0) return "rounded-l-none";
82
94
  }
83
95
  return "";
84
- }), E = r(() => e.orientation === "vertical" ? {
85
- bottom: m(f.value)
96
+ }), F = l(() => e.orientation === "vertical" ? {
97
+ bottom: d(b.value)
86
98
  } : {
87
- left: m(f.value)
88
- }), L = () => {
89
- v("update:modelValue", o.value);
90
- }, N = () => {
91
- v("change", o.value), i.value = !1;
92
- }, R = r(() => Math.abs(e.modelValue) > 1e-3), $ = () => {
99
+ left: d(y.value)
100
+ }), U = l(() => e.orientation === "vertical" ? { bottom: d(C.value) } : { left: d(z.value) }), B = l(() => p.value ? "rtl" : "ltr"), W = () => {
101
+ m("update:modelValue", o.value);
102
+ }, Z = () => {
103
+ m("change", o.value), i.value = !1;
104
+ }, q = l(() => Math.abs(e.modelValue) > 1e-3), S = () => {
93
105
  if (e.disabled) return;
94
- const t = w.value ? 0 : e.min;
95
- o.value = t, v("update:modelValue", t), v("change", t);
96
- }, M = r(() => {
106
+ const t = x.value ? 0 : e.min;
107
+ o.value = t, m("update:modelValue", t), m("change", t);
108
+ }, P = l(() => {
97
109
  const t = e.step.toString().split(".")[1]?.length || 0;
98
110
  return o.value.toFixed(t);
99
- }), b = r(() => {
111
+ }), h = l(() => {
100
112
  const t = e.orientation === "vertical";
101
113
  return {
102
114
  xs: {
@@ -124,132 +136,135 @@ const A = {
124
136
  tick: t ? "w-4 h-[2px]" : "h-4 w-[2px]"
125
137
  }
126
138
  }[e.size];
127
- }), p = r(() => e.labelI18n ? q(e.labelI18n) : e.label), B = r(() => e.labelClass ? e.labelClass : e.size === "xs" || e.size === "sm" ? "text-muted-foreground text-xs font-normal" : "text-muted-foreground text-sm font-medium"), D = r(() => e.valueClass ? e.valueClass : e.size === "xs" || e.size === "sm" ? "text-muted-foreground text-xs font-normal" : "text-muted-foreground text-sm");
128
- return (t, a) => (u(), d("div", {
139
+ }), f = l(() => e.labelI18n ? Q(e.labelI18n) : e.label), I = l(() => e.labelClass ? e.labelClass : e.size === "xs" || e.size === "sm" ? "text-muted-foreground text-xs font-normal" : "text-muted-foreground text-sm font-medium"), R = l(() => e.valueClass ? e.valueClass : e.size === "xs" || e.size === "sm" ? "text-muted-foreground text-xs font-normal" : "text-muted-foreground text-sm");
140
+ return (t, a) => (u(), v("div", {
129
141
  class: s(["slider-wrapper flex select-none touch-none", [
130
- { "opacity-50 pointer-events-none": l.disabled },
131
- e.orientation === "vertical" ? "flex-col items-center h-full py-2 gap-3" : e.variant === "two" ? "flex-col w-full gap-1" : "w-full flex-row items-center gap-3"
142
+ { "opacity-50 pointer-events-none": n.disabled },
143
+ e.orientation === "vertical" ? "flex-col items-center h-full py-2 gap-3" : e.variant === "two" ? "flex-col w-full gap-1" : (
144
+ // bare `flex` (not flex-row): under dir=rtl label → inline-start, value → inline-end
145
+ "w-full items-center gap-3"
146
+ )
132
147
  ]]),
133
- onMouseenter: a[7] || (a[7] = (n) => x.value = !0),
134
- onMouseleave: a[8] || (a[8] = (n) => x.value = !1)
148
+ onMouseenter: a[7] || (a[7] = (r) => w.value = !0),
149
+ onMouseleave: a[8] || (a[8] = (r) => w.value = !1)
135
150
  }, [
136
- e.variant === "two" && e.orientation !== "vertical" ? (u(), d("div", A, [
137
- p.value || l.icon ? (u(), d("div", {
151
+ e.variant === "two" && e.orientation !== "vertical" ? (u(), v("div", Y, [
152
+ f.value || n.icon ? (u(), v("div", {
138
153
  key: 0,
139
- class: s(["flex items-center gap-2 cursor-pointer transition-colors", [{ "text-primary": i.value || x.value }, B.value]]),
140
- onClick: a[0] || (a[0] = (n) => v("iconClick")),
154
+ class: s(["flex items-center gap-2 cursor-pointer transition-colors", [{ "text-primary": i.value || w.value }, I.value]]),
155
+ onClick: a[0] || (a[0] = (r) => m("iconClick")),
141
156
  title: "Double-click to reset"
142
157
  }, [
143
- l.icon ? (u(), I(P, {
158
+ n.icon ? (u(), O(j, {
144
159
  key: 0,
145
- icon: l.icon,
160
+ icon: n.icon,
146
161
  class: "h-4 w-4"
147
162
  }, null, 8, ["icon"])) : c("", !0),
148
- p.value ? (u(), d("label", G, y(p.value), 1)) : c("", !0)
163
+ f.value ? (u(), v("label", _, k(f.value), 1)) : c("", !0)
149
164
  ], 2)) : c("", !0),
150
- l.showValue ? (u(), d("span", {
165
+ n.showValue ? (u(), v("span", {
151
166
  key: 1,
152
- onDblclick: $,
153
- class: s(["font-mono tabular-nums text-right min-w-6", D.value])
154
- }, y(M.value), 35)) : c("", !0)
167
+ onDblclick: S,
168
+ class: s(["font-mono tabular-nums text-end min-w-6", R.value])
169
+ }, k(P.value), 35)) : c("", !0)
155
170
  ])) : c("", !0),
156
- (e.variant !== "two" || e.orientation === "vertical") && (p.value || l.icon) ? (u(), d("div", {
171
+ (e.variant !== "two" || e.orientation === "vertical") && (f.value || n.icon) ? (u(), v("div", {
157
172
  key: 1,
158
- class: s(["flex items-center gap-2 min-w-fit cursor-pointer transition-colors", [{ "text-primary": i.value || x.value }, B.value]]),
159
- onClick: a[1] || (a[1] = (n) => v("iconClick")),
173
+ class: s(["flex items-center gap-2 min-w-fit cursor-pointer transition-colors", [{ "text-primary": i.value || w.value }, I.value]]),
174
+ onClick: a[1] || (a[1] = (r) => m("iconClick")),
160
175
  title: "Double-click to reset"
161
176
  }, [
162
- l.icon ? (u(), I(P, {
177
+ n.icon ? (u(), O(j, {
163
178
  key: 0,
164
- icon: l.icon,
179
+ icon: n.icon,
165
180
  class: "h-4 w-4"
166
181
  }, null, 8, ["icon"])) : c("", !0),
167
- p.value ? (u(), d("label", J, y(p.value), 1)) : c("", !0)
182
+ f.value ? (u(), v("label", ee, k(f.value), 1)) : c("", !0)
168
183
  ], 2)) : c("", !0),
169
- h("div", {
184
+ g("div", {
170
185
  class: s(["relative flex justify-center items-center group", [
171
- b.value.wrapper,
186
+ h.value.wrapper,
172
187
  e.orientation === "vertical" || e.variant !== "two" ? "flex-1" : ""
173
- ]])
188
+ ]]),
189
+ dir: B.value
174
190
  }, [
175
- h("div", {
191
+ g("div", {
176
192
  class: s(["absolute rounded-full", [
177
- b.value.track,
193
+ h.value.track,
178
194
  e.orientation === "vertical" ? "h-full left-1/2 transform -translate-x-1/2" : "w-full top-1/2 transform -translate-y-1/2"
179
195
  ]])
180
196
  }, null, 2),
181
- w.value ? (u(), d("div", {
197
+ x.value ? (u(), v("div", {
182
198
  key: 0,
183
199
  class: s(["absolute bg-muted-foreground/30 rounded z-0", [
184
- b.value.tick,
200
+ h.value.tick,
185
201
  e.orientation === "vertical" ? "left-1/2 transform -translate-x-1/2" : "top-1/2 transform -translate-y-1/2"
186
202
  ]]),
187
- style: k(
188
- e.orientation === "vertical" ? { bottom: m(g.value) } : { left: m(g.value) }
189
- )
203
+ style: V(U.value)
190
204
  }, null, 6)) : c("", !0),
191
- h("div", {
205
+ g("div", {
192
206
  class: s(["absolute bg-primary rounded-full will-change-transform", [
193
207
  {
194
- "bg-muted-foreground": l.disabled,
208
+ "bg-muted-foreground": n.disabled,
195
209
  "transition-all duration-75 ease-out": !i.value,
196
210
  "duration-0": i.value
197
211
  },
198
- b.value.track,
199
- j.value,
212
+ h.value.track,
213
+ N.value,
200
214
  e.orientation === "vertical" ? "left-1/2 transform -translate-x-1/2" : "top-1/2 transform -translate-y-1/2"
201
215
  ]]),
202
- style: k(T.value)
216
+ style: V(L.value)
203
217
  }, null, 6),
204
- h("div", {
218
+ g("div", {
205
219
  class: s(["absolute rounded-full pointer-events-none transition-transform duration-100 ease-out z-10", [
206
220
  e.thumbVariant === "solid" ? "bg-primary" : "bg-background border border-gray-400/90 shadow-sm",
207
221
  {
208
222
  "border-primary shadow-md scale-110": i.value && e.thumbVariant !== "solid",
209
223
  "scale-110": i.value && e.thumbVariant === "solid",
210
- "border-primary": R.value && e.thumbVariant !== "solid",
211
- "bg-muted-foreground": l.disabled && e.thumbVariant === "solid"
224
+ "border-primary": q.value && e.thumbVariant !== "solid",
225
+ "bg-muted-foreground": n.disabled && e.thumbVariant === "solid"
212
226
  },
213
- b.value.thumb,
214
- e.orientation === "vertical" ? "left-1/2 transform -translate-x-1/2 translate-y-1/2" : "top-1/2 -ml-px transform -translate-y-1/2 -translate-x-1/2"
227
+ h.value.thumb,
228
+ e.orientation === "vertical" ? "left-1/2 transform -translate-x-1/2 translate-y-1/2" : "top-1/2 -ms-px transform -translate-y-1/2 -translate-x-1/2"
215
229
  ]]),
216
- style: k(E.value)
230
+ style: V(F.value)
217
231
  }, null, 6),
218
- U(h("input", {
232
+ J(g("input", {
219
233
  type: "range",
220
- "onUpdate:modelValue": a[2] || (a[2] = (n) => o.value = n),
221
- min: l.min,
222
- max: l.max,
223
- step: l.step,
224
- disabled: l.disabled,
225
- onInput: L,
226
- onChange: N,
227
- onMousedown: a[3] || (a[3] = (n) => i.value = !0),
228
- onTouchstart: a[4] || (a[4] = (n) => i.value = !0),
229
- onMouseup: a[5] || (a[5] = (n) => i.value = !1),
230
- onTouchend: a[6] || (a[6] = (n) => i.value = !1),
234
+ "onUpdate:modelValue": a[2] || (a[2] = (r) => o.value = r),
235
+ min: n.min,
236
+ max: n.max,
237
+ step: n.step,
238
+ disabled: n.disabled,
239
+ dir: B.value,
240
+ onInput: W,
241
+ onChange: Z,
242
+ onMousedown: a[3] || (a[3] = (r) => i.value = !0),
243
+ onTouchstart: a[4] || (a[4] = (r) => i.value = !0),
244
+ onMouseup: a[5] || (a[5] = (r) => i.value = !1),
245
+ onTouchend: a[6] || (a[6] = (r) => i.value = !1),
231
246
  class: "slider-input absolute inset-0 w-full h-full opacity-0 cursor-pointer z-20 m-0 p-0",
232
247
  orient: e.orientation === "vertical" ? "vertical" : void 0,
233
- style: k(
248
+ style: V(
234
249
  e.orientation === "vertical" ? "appearance: slider-vertical; -webkit-appearance: slider-vertical;" : ""
235
250
  )
236
- }, null, 44, K), [
251
+ }, null, 44, ae), [
237
252
  [
238
- W,
253
+ K,
239
254
  o.value,
240
255
  void 0,
241
256
  { number: !0 }
242
257
  ]
243
258
  ])
244
- ], 2),
245
- (e.variant !== "two" || e.orientation === "vertical") && l.showValue ? (u(), d("span", {
259
+ ], 10, te),
260
+ (e.variant !== "two" || e.orientation === "vertical") && n.showValue ? (u(), v("span", {
246
261
  key: 2,
247
- onDblclick: $,
248
- class: s(["font-mono tabular-nums text-right min-w-6", D.value])
249
- }, y(M.value), 35)) : c("", !0)
262
+ onDblclick: S,
263
+ class: s(["font-mono tabular-nums text-end min-w-6", R.value])
264
+ }, k(P.value), 35)) : c("", !0)
250
265
  ], 34));
251
266
  }
252
267
  });
253
268
  export {
254
- Z as default
269
+ ie as default
255
270
  };
@@ -12,8 +12,12 @@ interface Props {
12
12
  */
13
13
  wrap?: boolean;
14
14
  tabClass?: string;
15
- /** Text direction forwarded to menu dropdowns (LTR/RTL). */
16
- direction?: 'ltr' | 'rtl';
15
+ /**
16
+ * Text / layout direction for the tab row, scroll affordances, and menus.
17
+ * `'auto'` (default) follows the nearest ancestor `dir`, then `html[dir]`
18
+ * — matching Dropdown — instead of pinning LTR.
19
+ */
20
+ direction?: 'ltr' | 'rtl' | 'auto';
17
21
  }
18
22
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
23
  change: (value: string | number) => any;
@@ -31,9 +35,10 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
31
35
  variant: TabesVariant;
32
36
  size: TabesSize;
33
37
  block: boolean;
34
- direction: "ltr" | "rtl";
38
+ direction: "ltr" | "rtl" | "auto";
35
39
  wrap: boolean;
36
40
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
41
+ rootRef: HTMLDivElement;
37
42
  scrollRef: HTMLDivElement;
38
43
  containerRef: HTMLDivElement;
39
44
  }, HTMLDivElement>;
@@ -1,7 +1,7 @@
1
1
  import o from "./Tabes.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-813948ec"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7f8e99f2"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };