vlite3 0.8.11 → 0.9.2
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/AttachmentsList/AttachmentsList.vue.d.ts +6 -0
- package/components/AttachmentsList/AttachmentsList.vue.js +82 -0
- package/components/AttachmentsList/AttachmentsList.vue2.js +4 -0
- package/components/AttachmentsList/index.d.ts +2 -0
- package/components/AttachmentsList/types.d.ts +11 -0
- package/components/Button.vue.js +6 -6
- package/components/Chat/ChatBubble.vue.d.ts +18 -0
- package/components/Chat/ChatInterface.vue.d.ts +45 -0
- package/components/Chat/index.d.ts +2 -0
- package/components/DataList/DataList.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.d.ts +3 -3
- package/components/DataTable/DataTable.vue.js +22 -22
- package/components/DataTable/types.d.ts +1 -1
- package/components/DatePicker.vue.d.ts +3 -2
- package/components/DatePicker.vue.js +1 -1
- package/components/Dropdown/Dropdown.vue.d.ts +2 -0
- package/components/Dropdown/Dropdown.vue.js +106 -90
- package/components/Dropdown/DropdownItem.vue.js +8 -8
- package/components/Dropdown/DropdownMenu.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue2.js +1 -1
- package/components/ExportData/ExportData.vue.d.ts +1 -1
- package/components/FilePicker/FilePicker.vue.d.ts +4 -1
- package/components/FilePicker/FilePicker.vue.js +189 -139
- package/components/FilePreview/FilePreview.vue.d.ts +5 -0
- package/components/FilePreview/FilePreview.vue.js +27 -0
- package/components/FilePreview/FilePreview.vue2.js +4 -0
- package/components/FilePreview/index.d.ts +2 -0
- package/components/FilePreview/types.d.ts +5 -0
- package/components/Form/FormField.vue.js +3 -1
- package/components/Form/composables/useForm.js +50 -47
- package/components/Input.vue.d.ts +1 -0
- package/components/Input.vue.js +18 -15
- package/components/Modal.vue.js +2 -2
- package/components/Modal.vue2.js +31 -31
- package/components/MultiSelect/MultiSelect.vue.js +92 -84
- package/components/Navbar/Navbar.vue.js +61 -60
- package/components/Screen/Screen.vue.d.ts +200 -7
- package/components/Screen/Screen.vue.js +306 -502
- package/components/Screen/ScreenFilter.vue.js +45 -42
- package/components/Screen/components/ScreenAddAction.vue.d.ts +15 -0
- package/components/Screen/components/ScreenAddAction.vue.js +107 -0
- package/components/Screen/components/ScreenAddAction.vue2.js +4 -0
- package/components/Screen/components/ScreenEmptyState.vue.d.ts +14 -0
- package/components/Screen/components/ScreenEmptyState.vue.js +105 -0
- package/components/Screen/components/ScreenEmptyState.vue2.js +4 -0
- package/components/Screen/components/ScreenExportModal.vue.d.ts +49 -0
- package/components/Screen/components/ScreenExportModal.vue.js +83 -0
- package/components/Screen/components/ScreenExportModal.vue2.js +4 -0
- package/components/Screen/components/ScreenHeaderTitle.vue.d.ts +28 -0
- package/components/Screen/components/ScreenHeaderTitle.vue.js +57 -0
- package/components/Screen/components/ScreenHeaderTitle.vue2.js +4 -0
- package/components/Screen/components/ScreenOptionsDropdown.vue.d.ts +10 -0
- package/components/Screen/components/ScreenOptionsDropdown.vue.js +43 -0
- package/components/Screen/components/ScreenOptionsDropdown.vue2.js +4 -0
- package/components/Screen/components/ScreenQuickFilters.vue.d.ts +15 -0
- package/components/Screen/components/ScreenQuickFilters.vue.js +36 -0
- package/components/Screen/components/ScreenQuickFilters.vue2.js +4 -0
- package/components/Screen/components/ScreenViewToggle.vue.d.ts +9 -0
- package/components/Screen/components/ScreenViewToggle.vue.js +48 -0
- package/components/Screen/components/ScreenViewToggle.vue2.js +4 -0
- package/components/Screen/index.d.ts +1 -0
- package/components/Screen/types.d.ts +41 -2
- package/components/SidePanel.vue.js +1 -1
- package/components/SidePanel.vue2.js +7 -7
- package/components/SidebarMenu/SidebarMenu.vue.js +1 -1
- package/components/Stats/Stats.vue.js +50 -49
- package/components/StatusChip/StatusChip.vue.d.ts +2 -2
- package/components/StatusChip/StatusChip.vue.js +15 -14
- package/components/StatusChip/status-map.d.ts +2 -1
- package/components/StatusChip/status-map.js +16 -6
- package/components/Tabes/Tabes.vue.d.ts +1 -1
- package/components/Tabes/Tabes.vue.js +5 -143
- package/components/Tabes/Tabes.vue2.js +144 -2
- package/components/Timeline/TimelineIndicator.vue.js +6 -6
- package/components/Workbook/Sheet.vue.d.ts +1 -1
- package/core/config.d.ts +8 -0
- package/core/config.js +10 -6
- package/core/index.js +28 -20
- package/index.d.ts +2 -0
- package/index.js +209 -203
- package/package.json +3 -2
- package/style.css +80 -6
- package/types/config.type.d.ts +10 -0
- package/types/form.type.d.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as le, ref as i, computed as c, inject as ne, onMounted as oe, onUnmounted as ae, watch as P, provide as ie, reactive as se, toRefs as re, openBlock as x, createElementBlock as V, normalizeStyle as de, createVNode as M, unref as g, withCtx as f, renderSlot as m, createCommentVNode as R, createBlock as ue, normalizeClass as ce, createSlots as fe, normalizeProps as z, guardReactiveProps as E } from "vue";
|
|
2
2
|
import me from "v-tooltip-lite";
|
|
3
3
|
import "v-tooltip-lite/style.css";
|
|
4
4
|
import ve from "./DropdownMenu.vue.js";
|
|
@@ -6,8 +6,11 @@ import he from "./DropdownTrigger.vue.js";
|
|
|
6
6
|
import pe from "../ConfirmationModal.vue.js";
|
|
7
7
|
import { useDropdownIds as ge } from "./composables/useDropdownIds.js";
|
|
8
8
|
import { useDropdownSelection as ye } from "./composables/useDropdownSelection.js";
|
|
9
|
-
import { useDropdownHydration as
|
|
10
|
-
const
|
|
9
|
+
import { useDropdownHydration as be } from "./composables/useDropdownHydration.js";
|
|
10
|
+
const Ce = {
|
|
11
|
+
key: 0,
|
|
12
|
+
tabindex: "0"
|
|
13
|
+
}, Me = /* @__PURE__ */ le({
|
|
11
14
|
__name: "Dropdown",
|
|
12
15
|
props: {
|
|
13
16
|
selected: {},
|
|
@@ -43,93 +46,102 @@ const xe = /* @__PURE__ */ ee({
|
|
|
43
46
|
fetchSelected: {},
|
|
44
47
|
triggerProps: {},
|
|
45
48
|
direction: { default: "ltr" },
|
|
46
|
-
isNested: { type: Boolean, default: !1 }
|
|
49
|
+
isNested: { type: Boolean, default: !1 },
|
|
50
|
+
disabled: { type: Boolean, default: !1 }
|
|
47
51
|
},
|
|
48
52
|
emits: ["onSelect", "update:modelValue", "onOpen", "onClose", "update:isOpen", "load-more", "search"],
|
|
49
|
-
setup(l, { emit:
|
|
50
|
-
const o = l,
|
|
53
|
+
setup(l, { emit: j }) {
|
|
54
|
+
const o = l, v = j, y = i(!1), h = i(null), r = i({
|
|
51
55
|
title: "Confirm Selection",
|
|
52
56
|
description: "Are you sure you want to select this option?",
|
|
53
57
|
confirmText: "Confirm",
|
|
54
58
|
cancelText: "Cancel",
|
|
55
59
|
variant: "primary"
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
+
}), U = c(() => o.position ? o.position : o.direction === "rtl" ? "bottom-end" : "bottom-start"), q = c(() => o.nestedPosition ? o.nestedPosition : o.direction === "rtl" ? "left-start" : "right-start"), b = i(o.isOpen || !1), C = i(0), F = `dropdown-${Math.random().toString(36).substring(2, 9)}`, $ = c(() => o.menuId || F), p = i([]), s = ne("dropdown-context", null), G = (e) => {
|
|
61
|
+
p.value.includes(e) || p.value.push(e), s?.registerChildId?.(e);
|
|
62
|
+
}, J = (e) => {
|
|
63
|
+
p.value = p.value.filter((n) => n !== e), s?.unregisterChildId?.(e);
|
|
60
64
|
};
|
|
61
|
-
|
|
62
|
-
s?.registerChildId && s.registerChildId(`#${
|
|
63
|
-
}),
|
|
64
|
-
s?.unregisterChildId && s.unregisterChildId(`#${
|
|
65
|
+
oe(() => {
|
|
66
|
+
s?.registerChildId && s.registerChildId(`#${$.value}`);
|
|
67
|
+
}), ae(() => {
|
|
68
|
+
s?.unregisterChildId && s.unregisterChildId(`#${$.value}`);
|
|
65
69
|
}), P(
|
|
66
70
|
() => o.isOpen,
|
|
67
71
|
(e) => {
|
|
68
|
-
e !== void 0
|
|
72
|
+
if (e !== void 0) {
|
|
73
|
+
if (o.disabled && e) return;
|
|
74
|
+
b.value = e;
|
|
75
|
+
}
|
|
69
76
|
}
|
|
70
77
|
);
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
78
|
+
const N = (e) => {
|
|
79
|
+
if (o.disabled) {
|
|
80
|
+
b.value = !1, v("update:isOpen", !1);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
b.value = e, v("update:isOpen", e), v(e ? "onOpen" : "onClose"), s?.onChildToggle?.(e);
|
|
84
|
+
}, O = () => {
|
|
85
|
+
N(!1);
|
|
86
|
+
}, K = (e) => {
|
|
76
87
|
e ? C.value++ : C.value = Math.max(0, C.value - 1);
|
|
77
88
|
};
|
|
78
|
-
|
|
79
|
-
close:
|
|
89
|
+
ie("dropdown-context", {
|
|
90
|
+
close: O,
|
|
80
91
|
onChildToggle: (e) => {
|
|
81
|
-
|
|
92
|
+
K(e), s?.onChildToggle?.(e);
|
|
82
93
|
},
|
|
83
|
-
registerChildId:
|
|
84
|
-
unregisterChildId:
|
|
94
|
+
registerChildId: G,
|
|
95
|
+
unregisterChildId: J
|
|
85
96
|
});
|
|
86
|
-
const
|
|
97
|
+
const w = c(() => o.options ? o.options.map((e) => typeof e == "string" || typeof e == "number" ? { label: String(e), value: String(e) } : e) : []), S = i([]), A = i(!1), k = i(!1);
|
|
87
98
|
P(
|
|
88
|
-
|
|
99
|
+
w,
|
|
89
100
|
(e) => {
|
|
90
101
|
if (e) {
|
|
91
102
|
if (o.remote) {
|
|
92
|
-
const n = [...
|
|
103
|
+
const n = [...S.value];
|
|
93
104
|
e.forEach((t) => {
|
|
94
105
|
n.some((a) => a.value !== void 0 && t.value !== void 0 ? typeof a.value == "object" && a.key && t.key ? a.key === t.key && a.value[a.key] === t.value[t.key] : a.value === t.value : a.label === t.label) || n.push(t);
|
|
95
|
-
}),
|
|
106
|
+
}), S.value = n;
|
|
96
107
|
} else
|
|
97
|
-
|
|
98
|
-
!
|
|
99
|
-
k.value = !0,
|
|
108
|
+
S.value = e;
|
|
109
|
+
!A.value && e.length > 0 && (A.value = !0, setTimeout(() => {
|
|
110
|
+
k.value = !0, H(T.value);
|
|
100
111
|
}, 10));
|
|
101
112
|
}
|
|
102
113
|
},
|
|
103
114
|
{ immediate: !0 }
|
|
104
115
|
);
|
|
105
|
-
const
|
|
106
|
-
const e = [...
|
|
107
|
-
return I.value.forEach((t,
|
|
108
|
-
n.has(
|
|
116
|
+
const u = c(() => {
|
|
117
|
+
const e = [...S.value], n = new Set(e.map((t) => t.value ?? t.label));
|
|
118
|
+
return I.value.forEach((t, d) => {
|
|
119
|
+
n.has(d) || (e.unshift(t), n.add(d));
|
|
109
120
|
}), e;
|
|
110
|
-
}), { selectedBuffer: I, isHydrating:
|
|
121
|
+
}), { selectedBuffer: I, isHydrating: Q, hydrateSelected: H } = be({
|
|
111
122
|
fetchSelected: o.fetchSelected,
|
|
112
|
-
getAvailableOptions: () =>
|
|
123
|
+
getAvailableOptions: () => u.value,
|
|
113
124
|
isReady: () => k.value
|
|
114
|
-
}), { getAllRecursiveIds:
|
|
115
|
-
...
|
|
116
|
-
options:
|
|
117
|
-
}), { currentValue: T, selectedLabel:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
),
|
|
121
|
-
const e = o.ignoreClickOutside || [], n =
|
|
122
|
-
return [.../* @__PURE__ */ new Set([...e, ...n, ...
|
|
125
|
+
}), { getAllRecursiveIds: W } = ge(), X = se({
|
|
126
|
+
...re(o),
|
|
127
|
+
options: u
|
|
128
|
+
}), { currentValue: T, selectedLabel: D, selectOption: Y } = ye(
|
|
129
|
+
X,
|
|
130
|
+
v
|
|
131
|
+
), Z = c(() => {
|
|
132
|
+
const e = o.ignoreClickOutside || [], n = W(u.value);
|
|
133
|
+
return [.../* @__PURE__ */ new Set([...e, ...n, ...p.value])];
|
|
123
134
|
});
|
|
124
135
|
P(
|
|
125
136
|
() => T.value,
|
|
126
137
|
(e) => {
|
|
127
|
-
k.value &&
|
|
138
|
+
k.value && H(e);
|
|
128
139
|
},
|
|
129
140
|
{ deep: !0 }
|
|
130
141
|
);
|
|
131
|
-
const
|
|
132
|
-
o.
|
|
142
|
+
const _ = (e) => {
|
|
143
|
+
if (o.disabled || e.disabled) return;
|
|
144
|
+
o.doubleConfirmation || !!e.confirmation ? (h.value = e, typeof e.confirmation == "object" ? r.value = {
|
|
133
145
|
title: e.confirmation.title || "Confirm Selection",
|
|
134
146
|
description: e.confirmation.description || "Are you sure you want to select this option?",
|
|
135
147
|
confirmText: e.confirmation.confirmText || "Confirm",
|
|
@@ -141,87 +153,91 @@ const xe = /* @__PURE__ */ ee({
|
|
|
141
153
|
confirmText: "Confirm",
|
|
142
154
|
cancelText: "Cancel",
|
|
143
155
|
variant: "primary"
|
|
144
|
-
}, y.value = !0,
|
|
145
|
-
},
|
|
156
|
+
}, y.value = !0, O()) : (L(e), o.closeOnSelect && O());
|
|
157
|
+
}, L = (e) => {
|
|
158
|
+
if (o.disabled || e.disabled) return;
|
|
146
159
|
const n = e.value ?? e.label;
|
|
147
160
|
I.value.has(n) || I.value.set(n, e);
|
|
148
|
-
const t =
|
|
161
|
+
const t = Y(e);
|
|
149
162
|
if (!o.isNested) {
|
|
150
|
-
const
|
|
151
|
-
(e._path || [
|
|
163
|
+
const d = e._originalOption || e, a = d.value ?? d.label;
|
|
164
|
+
(e._path || [d]).forEach((B) => {
|
|
152
165
|
typeof B.onSelect == "function" && B.onSelect({
|
|
153
166
|
value: a,
|
|
154
167
|
option: B,
|
|
155
|
-
data:
|
|
168
|
+
data: u.value || [],
|
|
156
169
|
values: t
|
|
157
170
|
});
|
|
158
171
|
});
|
|
159
172
|
}
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
},
|
|
163
|
-
|
|
173
|
+
}, ee = () => {
|
|
174
|
+
h.value && (L(h.value), h.value = null, y.value = !1);
|
|
175
|
+
}, te = () => {
|
|
176
|
+
h.value = null, y.value = !1;
|
|
164
177
|
};
|
|
165
|
-
return (e, n) => (
|
|
178
|
+
return (e, n) => (x(), V("div", {
|
|
166
179
|
class: "relative inline-block text-left",
|
|
167
|
-
style:
|
|
180
|
+
style: de({ direction: l.direction })
|
|
168
181
|
}, [
|
|
169
|
-
|
|
182
|
+
M(g(me), {
|
|
170
183
|
content: "",
|
|
171
184
|
trigger: "click",
|
|
172
185
|
arrow: !1,
|
|
173
186
|
teleport: l.teleport,
|
|
174
187
|
offset: l.offset,
|
|
175
|
-
placement:
|
|
176
|
-
isOpen:
|
|
188
|
+
placement: U.value,
|
|
189
|
+
isOpen: b.value,
|
|
177
190
|
keepAlive: C.value > 0,
|
|
178
|
-
menuId:
|
|
179
|
-
ignoreClickOutside:
|
|
191
|
+
menuId: $.value,
|
|
192
|
+
ignoreClickOutside: Z.value,
|
|
180
193
|
class: "w-full",
|
|
181
194
|
className: "dropdown " + (l.className || ""),
|
|
182
195
|
onOnShow: n[2] || (n[2] = (t) => e.$emit("onOpen")),
|
|
183
196
|
onOnHide: n[3] || (n[3] = (t) => e.$emit("onClose")),
|
|
184
|
-
"onUpdate:isOpen":
|
|
197
|
+
"onUpdate:isOpen": N,
|
|
185
198
|
triggerClass: "w-full",
|
|
186
199
|
styles: { padding: "0" }
|
|
187
200
|
}, {
|
|
188
201
|
trigger: f(({ isOpen: t }) => [
|
|
189
|
-
m(e.$slots, "trigger",
|
|
190
|
-
|
|
191
|
-
"selected-label":
|
|
202
|
+
m(e.$slots, "trigger", z(E({ selectedLabel: g(D), isOpen: t })), () => [
|
|
203
|
+
M(he, {
|
|
204
|
+
"selected-label": g(D),
|
|
192
205
|
"is-open": t,
|
|
193
206
|
direction: l.direction,
|
|
207
|
+
disabled: l.disabled,
|
|
194
208
|
triggerProps: l.triggerProps,
|
|
195
209
|
class: "w-full"
|
|
196
|
-
}, null, 8, ["selected-label", "is-open", "direction", "triggerProps"])
|
|
210
|
+
}, null, 8, ["selected-label", "is-open", "direction", "disabled", "triggerProps"])
|
|
197
211
|
])
|
|
198
212
|
]),
|
|
199
213
|
default: f(() => [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
214
|
+
e.$slots?.default ? (x(), V("span", Ce, [
|
|
215
|
+
m(e.$slots, "default")
|
|
216
|
+
])) : R("", !0),
|
|
217
|
+
!l.disabled && (w.value.length || u.value.length || e.$slots.menu || e.$slots.item || l.remote || l.searchable) ? (x(), ue(ve, {
|
|
218
|
+
key: 1,
|
|
219
|
+
options: w.value,
|
|
220
|
+
cachedOptions: u.value,
|
|
221
|
+
class: ce(l.className),
|
|
222
|
+
selected: g(T),
|
|
207
223
|
selectedIndex: l.selectedIndex,
|
|
208
224
|
maxHeight: l.maxHeight,
|
|
209
|
-
nestedPosition:
|
|
225
|
+
nestedPosition: q.value,
|
|
210
226
|
nestedOffset: l.nestedOffset,
|
|
211
227
|
selectable: l.selectable,
|
|
212
228
|
direction: l.direction,
|
|
213
229
|
layout: l.layout,
|
|
214
230
|
columns: l.columns,
|
|
215
|
-
loading: l.loading ||
|
|
231
|
+
loading: l.loading || g(Q),
|
|
216
232
|
hasMore: l.hasMore,
|
|
217
233
|
searchable: l.searchable,
|
|
218
234
|
remote: l.remote,
|
|
219
235
|
debounceTime: l.debounceTime,
|
|
220
|
-
onSelect:
|
|
221
|
-
onClose:
|
|
236
|
+
onSelect: _,
|
|
237
|
+
onClose: O,
|
|
222
238
|
onLoadMore: n[0] || (n[0] = (t) => e.$emit("load-more")),
|
|
223
239
|
onSearch: n[1] || (n[1] = (t) => e.$emit("search", t))
|
|
224
|
-
},
|
|
240
|
+
}, fe({ _: 2 }, [
|
|
225
241
|
e.$slots.menu ? {
|
|
226
242
|
name: "menu",
|
|
227
243
|
fn: f(() => [
|
|
@@ -232,7 +248,7 @@ const xe = /* @__PURE__ */ ee({
|
|
|
232
248
|
e.$slots.item ? {
|
|
233
249
|
name: "item",
|
|
234
250
|
fn: f((t) => [
|
|
235
|
-
m(e.$slots, "item",
|
|
251
|
+
m(e.$slots, "item", z(E(t)))
|
|
236
252
|
]),
|
|
237
253
|
key: "1"
|
|
238
254
|
} : void 0,
|
|
@@ -250,23 +266,23 @@ const xe = /* @__PURE__ */ ee({
|
|
|
250
266
|
]),
|
|
251
267
|
key: "3"
|
|
252
268
|
} : void 0
|
|
253
|
-
]), 1032, ["options", "cachedOptions", "class", "selected", "selectedIndex", "maxHeight", "nestedPosition", "nestedOffset", "selectable", "direction", "layout", "columns", "loading", "hasMore", "searchable", "remote", "debounceTime"])) :
|
|
269
|
+
]), 1032, ["options", "cachedOptions", "class", "selected", "selectedIndex", "maxHeight", "nestedPosition", "nestedOffset", "selectable", "direction", "layout", "columns", "loading", "hasMore", "searchable", "remote", "debounceTime"])) : R("", !0)
|
|
254
270
|
]),
|
|
255
271
|
_: 3
|
|
256
272
|
}, 8, ["teleport", "offset", "placement", "isOpen", "keepAlive", "menuId", "ignoreClickOutside", "className"]),
|
|
257
|
-
|
|
273
|
+
M(pe, {
|
|
258
274
|
show: y.value,
|
|
259
275
|
title: r.value.title,
|
|
260
276
|
description: r.value.description,
|
|
261
277
|
"confirm-text": r.value.confirmText,
|
|
262
278
|
"cancel-text": r.value.cancelText,
|
|
263
279
|
variant: r.value.variant,
|
|
264
|
-
onConfirm:
|
|
265
|
-
onCancel:
|
|
280
|
+
onConfirm: ee,
|
|
281
|
+
onCancel: te
|
|
266
282
|
}, null, 8, ["show", "title", "description", "confirm-text", "cancel-text", "variant"])
|
|
267
283
|
], 4));
|
|
268
284
|
}
|
|
269
285
|
});
|
|
270
286
|
export {
|
|
271
|
-
|
|
287
|
+
Me as default
|
|
272
288
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as g, computed as s, openBlock as n, createElementBlock as l, withKeys as k, withModifiers as w, normalizeClass as h, renderSlot as I, normalizeProps as $, guardReactiveProps as B, createBlock as
|
|
1
|
+
import { defineComponent as g, computed as s, openBlock as n, createElementBlock as l, withKeys as k, withModifiers as w, normalizeClass as h, renderSlot as I, normalizeProps as $, guardReactiveProps as B, createBlock as p, createCommentVNode as i, createElementVNode as c, toDisplayString as a } from "vue";
|
|
2
2
|
import v from "../Icon.vue.js";
|
|
3
3
|
import { $t as d } from "../../utils/i18n.js";
|
|
4
|
-
const j = ["data-disabled"], C = { class: "flex flex-col flex-1 min-w-0" }, D = { class: "flex items-center justify-between gap-2" }, S = { class: "truncate font-medium" }, z = {
|
|
4
|
+
const j = ["tabindex", "data-disabled"], C = { class: "flex flex-col flex-1 min-w-0" }, D = { class: "flex items-center justify-between gap-2" }, S = { class: "truncate font-medium" }, z = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-xs text-muted-foreground whitespace-nowrap opacity-90"
|
|
7
7
|
}, E = {
|
|
@@ -26,7 +26,7 @@ const j = ["data-disabled"], C = { class: "flex flex-col flex-1 min-w-0" }, D =
|
|
|
26
26
|
() => t.option.descriptionI18n ? d(t.option.descriptionI18n) : t.option.description
|
|
27
27
|
);
|
|
28
28
|
return (f, o) => (n(), l("div", {
|
|
29
|
-
tabindex: 0,
|
|
29
|
+
tabindex: e.option.disabled ? -1 : 0,
|
|
30
30
|
"data-dropdown-item": "",
|
|
31
31
|
class: h(["relative w-full flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus-visible:bg-accent focus-visible:text-accent-foreground focus-visible:ring-1 focus-visible:ring-primary focus-visible:ring-offset-1 data-disabled:pointer-events-none data-disabled:opacity-50", [
|
|
32
32
|
e.selectable && e.selected && !e.option.children ? "bg-accent" : "",
|
|
@@ -35,12 +35,12 @@ const j = ["data-disabled"], C = { class: "flex flex-col flex-1 min-w-0" }, D =
|
|
|
35
35
|
e.option.class || ""
|
|
36
36
|
]]),
|
|
37
37
|
"data-disabled": e.option.disabled ? !0 : void 0,
|
|
38
|
-
onClick: o[0] || (o[0] = (
|
|
39
|
-
onKeydown: o[1] || (o[1] = k(w((
|
|
40
|
-
onMouseenter: o[2] || (o[2] = (
|
|
38
|
+
onClick: o[0] || (o[0] = (b) => r("click", e.option)),
|
|
39
|
+
onKeydown: o[1] || (o[1] = k(w((b) => r("click", e.option), ["prevent"]), ["enter"])),
|
|
40
|
+
onMouseenter: o[2] || (o[2] = (b) => f.$emit("mouseenter", e.index ?? -1))
|
|
41
41
|
}, [
|
|
42
42
|
I(f.$slots, "default", $(B({ option: e.option, index: e.index, selected: e.selected })), () => [
|
|
43
|
-
e.option.icon || e.option.emoji ? (n(),
|
|
43
|
+
e.option.icon || e.option.emoji ? (n(), p(v, {
|
|
44
44
|
key: 0,
|
|
45
45
|
icon: e.option.icon,
|
|
46
46
|
emoji: e.option.emoji,
|
|
@@ -53,7 +53,7 @@ const j = ["data-disabled"], C = { class: "flex flex-col flex-1 min-w-0" }, D =
|
|
|
53
53
|
]),
|
|
54
54
|
m.value ? (n(), l("span", E, a(m.value), 1)) : i("", !0)
|
|
55
55
|
]),
|
|
56
|
-
e.selectable && e.selected ? (n(),
|
|
56
|
+
e.selectable && e.selected ? (n(), p(v, {
|
|
57
57
|
key: 1,
|
|
58
58
|
icon: "lucide:check",
|
|
59
59
|
class: "ml-2 h-4 w-4 shrink-0 text-primary"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DropdownMenu.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-adc57063"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -152,7 +152,7 @@ const ve = ["dir"], ye = {
|
|
|
152
152
|
tabindex: "0",
|
|
153
153
|
role: "menu",
|
|
154
154
|
class: T([
|
|
155
|
-
"w-full p-1 space-y-0.5 overflow-y-auto overflow-x-hidden focus:outline-none flex-1",
|
|
155
|
+
"w-full p-1 space-y-0.5 overflow-y-auto overflow-x-hidden focus:outline-none flex-1 scrollbar-thin",
|
|
156
156
|
t.class
|
|
157
157
|
]),
|
|
158
158
|
style: se({ maxHeight: t.maxHeight }),
|
|
@@ -9,8 +9,8 @@ declare const _default: import('vue').DefineComponent<ExportDataProps, {
|
|
|
9
9
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExportDataProps> & Readonly<{}>, {
|
|
10
10
|
title: string;
|
|
11
11
|
mode: "frontend" | "backend";
|
|
12
|
-
formats: ExportFormat[];
|
|
13
12
|
buttonText: string;
|
|
14
13
|
buttonIcon: string;
|
|
14
|
+
formats: ExportFormat[];
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
16
|
export default _default;
|
|
@@ -3,8 +3,9 @@ export interface FilePickerValue {
|
|
|
3
3
|
fileName: string;
|
|
4
4
|
fileType: string;
|
|
5
5
|
fileSize: number;
|
|
6
|
-
file: File;
|
|
6
|
+
file: File | null;
|
|
7
7
|
base64: string;
|
|
8
|
+
isUrl?: boolean;
|
|
8
9
|
}
|
|
9
10
|
interface Props {
|
|
10
11
|
modelValue?: FilePickerValue | FilePickerValue[] | null;
|
|
@@ -21,6 +22,7 @@ interface Props {
|
|
|
21
22
|
textI18n?: string;
|
|
22
23
|
size?: InputSize;
|
|
23
24
|
rounded?: InputRounded;
|
|
25
|
+
allowRename?: boolean;
|
|
24
26
|
}
|
|
25
27
|
declare function __VLS_template(): {
|
|
26
28
|
attrs: Partial<{}>;
|
|
@@ -56,6 +58,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
56
58
|
modelValue: FilePickerValue | FilePickerValue[] | null;
|
|
57
59
|
fileTypes: string[];
|
|
58
60
|
returnFormat: "file" | "base64";
|
|
61
|
+
allowRename: boolean;
|
|
59
62
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
60
63
|
fileInput: HTMLInputElement;
|
|
61
64
|
}, HTMLDivElement>;
|