vlite3 1.4.40 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AppShell/AppShellLayoutClassic.vue.js +27 -28
- package/components/AppShell/AppShellLayoutDashboard.vue.js +48 -48
- package/components/AppShell/AppShellLayoutDock.vue.js +51 -51
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +69 -69
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.d.ts +2 -2
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +78 -78
- package/components/AppShell/AppShellLayoutStorefront.vue.js +14 -15
- package/components/AppShell/useAppShell.d.ts +4 -0
- package/components/AppShell/useAppShell.js +45 -40
- package/components/AsyncSelect/createAsyncSelect.js +10 -10
- package/components/AttachmentsList/AttachmentsList.vue.d.ts +50 -2
- package/components/AttachmentsList/AttachmentsList.vue.js +289 -272
- package/components/AttachmentsList/types.d.ts +37 -0
- package/components/BackButton.vue.js +2 -2
- package/components/Button.vue.d.ts +1 -0
- package/components/Button.vue.js +5 -241
- package/components/Button.vue2.js +245 -2
- package/components/ButtonGroup.vue.js +2 -2
- package/components/ButtonGroup.vue2.js +4 -1
- package/components/Calendar/Calendar.vue2.js +16 -16
- package/components/Cart/CartCouponInput.vue.js +24 -24
- package/components/Cart/CartEmptyState.vue.js +4 -4
- package/components/Cart/CartLineItem.vue.js +33 -33
- package/components/Cart/CartVariant1.vue.js +3 -3
- package/components/Cart/CartVariant2.vue.js +5 -5
- package/components/Cart/CartVariant3.vue.js +25 -25
- package/components/Cart/CartVariant4.vue.js +9 -9
- package/components/CategoryManager/CategoryManager.vue.d.ts +2 -2
- package/components/CategoryManager/CategoryManager.vue2.js +18 -18
- package/components/CategoryManager/CategoryNode.vue.js +4 -4
- package/components/CategoryMenu/CategoryMenu.vue.js +3 -2
- package/components/CategoryMenu/CategoryMenuVariant1.vue2.js +3 -2
- package/components/Chat/ChatInterface.vue.js +23 -23
- package/components/Clipboard.vue.d.ts +7 -1
- package/components/Clipboard.vue.js +19 -17
- package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +22 -22
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +8 -8
- package/components/Comment/CommentEditor.vue.js +14 -14
- package/components/Comment/CommentItem.vue2.js +6 -6
- package/components/Comment/CommentThread.vue.js +4 -4
- package/components/DataList/DataList.vue.js +7 -7
- package/components/DataTable/DataTable.vue.d.ts +9 -1
- package/components/DataTable/DataTable.vue.js +374 -263
- package/components/DataTable/DataTableRow.vue.d.ts +23 -2
- package/components/DataTable/DataTableRow.vue.js +5 -198
- package/components/DataTable/DataTableRow.vue2.js +360 -2
- package/components/DataTable/dataTableHeaders.d.ts +18 -0
- package/components/DataTable/dataTableHeaders.js +9 -0
- package/components/DataTable/types.d.ts +6 -0
- package/components/DatePicker.vue.js +8 -9
- package/components/DateRangePicker.vue2.js +34 -34
- package/components/Dropdown/Dropdown.vue.d.ts +7 -2
- package/components/Dropdown/Dropdown.vue.js +146 -139
- package/components/Dropdown/DropdownTrigger.vue.js +6 -6
- package/components/ExportData/ExportData.vue.js +15 -15
- package/components/FilePicker/FilePickerDropzone.vue.js +16 -16
- package/components/FilePicker/FilePickerInput.vue.js +3 -2
- package/components/FilePicker/FilePreview.vue.js +3 -3
- package/components/FileTree/FileTree.vue.js +4 -4
- package/components/FileTree/FileTree.vue2.js +9 -9
- package/components/FileTree/FileTreeNode.vue.js +76 -72
- package/components/Footer/Variant1.vue.js +48 -48
- package/components/Footer/Variant2.vue.js +42 -42
- package/components/Form/AccordionView.vue.d.ts +1 -1
- package/components/Form/AccordionView.vue.js +2 -2
- package/components/Form/AccordionView.vue3.js +61 -57
- package/components/Form/Form.vue2.js +41 -41
- package/components/Form/TableRow.vue.d.ts +7 -0
- package/components/Form/TableRow.vue.js +187 -41
- package/components/Form/TableView.vue.d.ts +11 -1
- package/components/Form/TableView.vue.js +71 -49
- package/components/Form/composables/useForm.js +146 -142
- package/components/Form/index.vue.d.ts +5 -1
- package/components/Form/index.vue.js +2 -2
- package/components/Form/index.vue2.js +44 -37
- package/components/Form/rowHelpers.d.ts +20 -0
- package/components/Form/rowHelpers.js +76 -28
- package/components/Form/types.d.ts +11 -0
- package/components/GoogleLogin.vue.js +4 -4
- package/components/IconPicker.vue.js +9 -9
- package/components/ImportData/ImportData.vue.js +11 -11
- package/components/ImportData/ImportStep1.vue.js +10 -10
- package/components/ImportData/ImportStep2.vue.js +15 -14
- package/components/Input.vue.js +133 -129
- package/components/Kanban/KanbanBoard.vue.js +1 -1
- package/components/Kanban/KanbanBoard.vue2.js +9 -9
- package/components/MultiSelect/MultiSelect.vue.js +3 -2
- package/components/Navbar/Navbar.vue.js +17 -17
- package/components/Navbar/NavbarGroup.vue.js +8 -7
- package/components/Navbar/NavbarItem.vue.js +40 -39
- package/components/Navbar/NavbarTabs.vue.js +6 -184
- package/components/Navbar/NavbarTabs.vue2.js +204 -0
- package/components/Navbar/useNavbar.js +3 -3
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/NumberInput.vue.js +2 -2
- package/components/NumberInput.vue2.js +81 -77
- package/components/OTPInput/OTPInput.vue.js +24 -23
- package/components/Pagination/Pagination.vue.d.ts +1 -1
- package/components/Pagination/Pagination.vue.js +5 -274
- package/components/Pagination/Pagination.vue2.js +283 -2
- package/components/PermissionMatrix/PermissionTopBar.vue.js +19 -18
- package/components/PricingPlan/PricingPlanItem.vue.js +7 -7
- package/components/Screen/Screen.vue.d.ts +1 -1
- package/components/Screen/Screen.vue.js +21 -21
- package/components/Screen/ScreenFilter.vue.js +5 -5
- package/components/Screen/components/ScreenAddAction.vue.js +3 -3
- package/components/Screen/components/ScreenEmptyState.vue.js +10 -10
- package/components/Screen/components/ScreenExportModal.vue.js +12 -12
- package/components/Screen/components/ScreenOptionsDropdown.vue.js +5 -5
- package/components/Screen/components/ScreenToolbar.vue.js +15 -15
- package/components/SidePanel.vue.js +2 -2
- package/components/SidePanel.vue2.js +6 -6
- package/components/SidebarMenu/SidebarMenu.vue.js +77 -72
- package/components/SidebarMenu/SidebarMenuItem.vue.js +172 -168
- package/components/Slider.vue.js +123 -108
- package/components/Tabes/Tabes.vue.d.ts +25 -4
- package/components/Tabes/Tabes.vue.js +3 -3
- package/components/Tabes/Tabes.vue2.js +274 -211
- package/components/Tabes/tabes.utils.d.ts +30 -0
- package/components/Tabes/tabes.utils.js +49 -18
- package/components/Tabes/types.d.ts +7 -0
- package/components/Textarea.vue.d.ts +2 -0
- package/components/Textarea.vue.js +19 -16
- package/components/ThemeToggle.vue.js +8 -8
- package/components/ToastNotification.vue2.js +10 -10
- package/components/TreeConnectors/TreeConnectors.vue.d.ts +1 -1
- package/components/TreeConnectors/TreeConnectors.vue.js +13 -8
- package/components/TreeConnectors/geometry.js +77 -69
- package/components/Workbook/WorkbookAddButton.vue.js +2 -2
- package/composables/useRtl.d.ts +14 -0
- package/composables/useRtl.js +33 -0
- package/index.js +470 -471
- package/package.json +5 -4
- package/style.css +86 -1
- package/types/button.d.ts +8 -0
- package/components/Navbar/NavbarTabs.vue3.js +0 -5
package/components/Slider.vue.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { $t as
|
|
4
|
-
|
|
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
|
-
},
|
|
8
|
+
}, _ = {
|
|
8
9
|
key: 1,
|
|
9
10
|
class: "whitespace-nowrap cursor-pointer"
|
|
10
|
-
},
|
|
11
|
+
}, ee = {
|
|
11
12
|
key: 1,
|
|
12
13
|
class: "whitespace-nowrap cursor-pointer"
|
|
13
|
-
},
|
|
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(
|
|
35
|
-
const e =
|
|
36
|
-
|
|
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
|
|
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
|
-
}),
|
|
54
|
-
const a =
|
|
55
|
-
return `calc(${t}% + (${a}px - ${
|
|
56
|
-
},
|
|
57
|
-
if (
|
|
58
|
-
const t = Math.min(
|
|
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:
|
|
61
|
-
height: `calc(${
|
|
65
|
+
bottom: r,
|
|
66
|
+
height: `calc(${T} - ${r})`
|
|
62
67
|
} : {
|
|
63
|
-
left:
|
|
64
|
-
width: `calc(${
|
|
68
|
+
left: r,
|
|
69
|
+
width: `calc(${T} - ${r})`
|
|
65
70
|
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
}),
|
|
85
|
-
bottom:
|
|
96
|
+
}), F = l(() => e.orientation === "vertical" ? {
|
|
97
|
+
bottom: d(b.value)
|
|
86
98
|
} : {
|
|
87
|
-
left:
|
|
88
|
-
}),
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
},
|
|
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 =
|
|
95
|
-
o.value = t,
|
|
96
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
128
|
-
return (t, a) => (u(),
|
|
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":
|
|
131
|
-
e.orientation === "vertical" ? "flex-col items-center h-full py-2 gap-3" : e.variant === "two" ? "flex-col w-full gap-1" :
|
|
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] = (
|
|
134
|
-
onMouseleave: a[8] || (a[8] = (
|
|
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(),
|
|
137
|
-
|
|
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 ||
|
|
140
|
-
onClick: a[0] || (a[0] = (
|
|
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
|
-
|
|
158
|
+
n.icon ? (u(), O(j, {
|
|
144
159
|
key: 0,
|
|
145
|
-
icon:
|
|
160
|
+
icon: n.icon,
|
|
146
161
|
class: "h-4 w-4"
|
|
147
162
|
}, null, 8, ["icon"])) : c("", !0),
|
|
148
|
-
|
|
163
|
+
f.value ? (u(), v("label", _, k(f.value), 1)) : c("", !0)
|
|
149
164
|
], 2)) : c("", !0),
|
|
150
|
-
|
|
165
|
+
n.showValue ? (u(), v("span", {
|
|
151
166
|
key: 1,
|
|
152
|
-
onDblclick:
|
|
153
|
-
class: s(["font-mono tabular-nums text-
|
|
154
|
-
},
|
|
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") && (
|
|
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 ||
|
|
159
|
-
onClick: a[1] || (a[1] = (
|
|
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
|
-
|
|
177
|
+
n.icon ? (u(), O(j, {
|
|
163
178
|
key: 0,
|
|
164
|
-
icon:
|
|
179
|
+
icon: n.icon,
|
|
165
180
|
class: "h-4 w-4"
|
|
166
181
|
}, null, 8, ["icon"])) : c("", !0),
|
|
167
|
-
|
|
182
|
+
f.value ? (u(), v("label", ee, k(f.value), 1)) : c("", !0)
|
|
168
183
|
], 2)) : c("", !0),
|
|
169
|
-
|
|
184
|
+
g("div", {
|
|
170
185
|
class: s(["relative flex justify-center items-center group", [
|
|
171
|
-
|
|
186
|
+
h.value.wrapper,
|
|
172
187
|
e.orientation === "vertical" || e.variant !== "two" ? "flex-1" : ""
|
|
173
|
-
]])
|
|
188
|
+
]]),
|
|
189
|
+
dir: B.value
|
|
174
190
|
}, [
|
|
175
|
-
|
|
191
|
+
g("div", {
|
|
176
192
|
class: s(["absolute rounded-full", [
|
|
177
|
-
|
|
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
|
-
|
|
197
|
+
x.value ? (u(), v("div", {
|
|
182
198
|
key: 0,
|
|
183
199
|
class: s(["absolute bg-muted-foreground/30 rounded z-0", [
|
|
184
|
-
|
|
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:
|
|
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
|
-
|
|
205
|
+
g("div", {
|
|
192
206
|
class: s(["absolute bg-primary rounded-full will-change-transform", [
|
|
193
207
|
{
|
|
194
|
-
"bg-muted-foreground":
|
|
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
|
-
|
|
199
|
-
|
|
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:
|
|
216
|
+
style: V(L.value)
|
|
203
217
|
}, null, 6),
|
|
204
|
-
|
|
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":
|
|
211
|
-
"bg-muted-foreground":
|
|
224
|
+
"border-primary": q.value && e.thumbVariant !== "solid",
|
|
225
|
+
"bg-muted-foreground": n.disabled && e.thumbVariant === "solid"
|
|
212
226
|
},
|
|
213
|
-
|
|
214
|
-
e.orientation === "vertical" ? "left-1/2 transform -translate-x-1/2 translate-y-1/2" : "top-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:
|
|
230
|
+
style: V(F.value)
|
|
217
231
|
}, null, 6),
|
|
218
|
-
|
|
232
|
+
J(g("input", {
|
|
219
233
|
type: "range",
|
|
220
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
221
|
-
min:
|
|
222
|
-
max:
|
|
223
|
-
step:
|
|
224
|
-
disabled:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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:
|
|
248
|
+
style: V(
|
|
234
249
|
e.orientation === "vertical" ? "appearance: slider-vertical; -webkit-appearance: slider-vertical;" : ""
|
|
235
250
|
)
|
|
236
|
-
}, null, 44,
|
|
251
|
+
}, null, 44, ae), [
|
|
237
252
|
[
|
|
238
|
-
|
|
253
|
+
K,
|
|
239
254
|
o.value,
|
|
240
255
|
void 0,
|
|
241
256
|
{ number: !0 }
|
|
242
257
|
]
|
|
243
258
|
])
|
|
244
|
-
],
|
|
245
|
-
(e.variant !== "two" || e.orientation === "vertical") &&
|
|
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-
|
|
249
|
-
},
|
|
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
|
-
|
|
269
|
+
ie as default
|
|
255
270
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TabesMenuSelectPayload, TabesOption, TabesSize, TabesVariant } from './types';
|
|
1
|
+
import { TabesMenuSelectPayload, TabesOption, TabesReorderPayload, TabesSize, TabesVariant } from './types';
|
|
2
2
|
interface Props {
|
|
3
3
|
options: TabesOption[];
|
|
4
4
|
modelValue: string | number;
|
|
@@ -12,8 +12,23 @@ interface Props {
|
|
|
12
12
|
*/
|
|
13
13
|
wrap?: boolean;
|
|
14
14
|
tabClass?: string;
|
|
15
|
-
/**
|
|
16
|
-
|
|
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';
|
|
21
|
+
/**
|
|
22
|
+
* Opt-in: let the user drag tabs into a new order. Off by default.
|
|
23
|
+
* The new order is persisted to localStorage and restored on reload.
|
|
24
|
+
*/
|
|
25
|
+
sortable?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* localStorage slot for the persisted order (prefixed `builto-tabes-order-`).
|
|
28
|
+
* When omitted, a stable key is derived from the tab value set. Only used
|
|
29
|
+
* when `sortable` is on.
|
|
30
|
+
*/
|
|
31
|
+
storageKey?: string;
|
|
17
32
|
}
|
|
18
33
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
34
|
change: (value: string | number) => any;
|
|
@@ -21,19 +36,25 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
21
36
|
"menu-select": (payload: TabesMenuSelectPayload) => any;
|
|
22
37
|
"menu-open": (tab: TabesOption) => any;
|
|
23
38
|
"menu-close": (tab: TabesOption) => any;
|
|
39
|
+
reorder: (payload: TabesReorderPayload) => any;
|
|
40
|
+
"update:options": (options: TabesOption[]) => any;
|
|
24
41
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
25
42
|
onChange?: (value: string | number) => any;
|
|
26
43
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
27
44
|
"onMenu-select"?: (payload: TabesMenuSelectPayload) => any;
|
|
28
45
|
"onMenu-open"?: (tab: TabesOption) => any;
|
|
29
46
|
"onMenu-close"?: (tab: TabesOption) => any;
|
|
47
|
+
onReorder?: (payload: TabesReorderPayload) => any;
|
|
48
|
+
"onUpdate:options"?: (options: TabesOption[]) => any;
|
|
30
49
|
}>, {
|
|
31
50
|
variant: TabesVariant;
|
|
32
51
|
size: TabesSize;
|
|
33
52
|
block: boolean;
|
|
34
|
-
direction: "ltr" | "rtl";
|
|
53
|
+
direction: "ltr" | "rtl" | "auto";
|
|
35
54
|
wrap: boolean;
|
|
55
|
+
sortable: boolean;
|
|
36
56
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
57
|
+
rootRef: HTMLDivElement;
|
|
37
58
|
scrollRef: HTMLDivElement;
|
|
38
59
|
containerRef: HTMLDivElement;
|
|
39
60
|
}, HTMLDivElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Tabes.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-de4ab2fa"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|