@wirecore/wirelayer-vue 0.1.0 → 0.2.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/README.md +41 -0
- package/dist/chart/Chart.vue.d.ts.map +1 -1
- package/dist/chart/ChartCanvas.vue.d.ts.map +1 -1
- package/dist/chart/Sparkline.vue.d.ts.map +1 -1
- package/dist/chart.js +28 -28
- package/dist/components/EmojiPicker/EmojiPicker.vue.d.ts.map +1 -1
- package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts.map +1 -1
- package/dist/data-table/DataTable.vue.d.ts +11 -2
- package/dist/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/data-table/ValueInput.vue.d.ts.map +1 -1
- package/dist/data-table/features.d.ts +4 -0
- package/dist/data-table/features.d.ts.map +1 -1
- package/dist/data-table/index.d.ts +4 -1
- package/dist/data-table/index.d.ts.map +1 -1
- package/dist/data-table/inputs.d.ts +6 -0
- package/dist/data-table/inputs.d.ts.map +1 -0
- package/dist/data-table/types.d.ts +39 -1
- package/dist/data-table/types.d.ts.map +1 -1
- package/dist/data-table.js +1574 -1544
- package/dist/form/bind.d.ts +1 -1
- package/dist/form/bind.d.ts.map +1 -1
- package/dist/form.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/locale.d.ts +1 -1
- package/dist/locale.d.ts.map +1 -1
- package/dist/locales/de.d.ts +2 -0
- package/dist/locales/de.d.ts.map +1 -0
- package/dist/locales/de.js +1 -0
- package/dist/virtual/index.d.ts +3 -0
- package/dist/virtual/index.d.ts.map +1 -1
- package/dist/virtual/virtual-rows.d.ts +4 -0
- package/dist/virtual/virtual-rows.d.ts.map +1 -0
- package/dist/virtual.js +280 -280
- package/package.json +3 -3
package/dist/virtual.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as e, n as t } from "./recipes-CcZk3fPU.js";
|
|
2
2
|
import { t as n } from "./attrs-KNjeRUCf.js";
|
|
3
3
|
import { a as r, i, n as a, r as o } from "./Highlight-D9NePuM4.js";
|
|
4
|
-
import { a as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { Check as
|
|
7
|
-
import { flattenTree as
|
|
8
|
-
import { createListCollection as
|
|
9
|
-
import { Select as
|
|
10
|
-
import { TreeView as
|
|
11
|
-
import { defaultRangeExtractor as
|
|
4
|
+
import { a as ee, i as s, n as c, r as te, t as l } from "./useTree-DO_-mY9G.js";
|
|
5
|
+
import { Fragment as u, Teleport as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as v, createVNode as y, defineComponent as b, guardReactiveProps as x, mergeProps as ne, nextTick as S, normalizeClass as C, normalizeProps as w, normalizeStyle as T, onMounted as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, toDisplayString as N, unref as P, useAttrs as re, useId as F, useSlots as I, watch as L, withCtx as R } from "vue";
|
|
6
|
+
import { Check as z, ChevronDown as B, LoaderCircle as V, X as ie } from "@lucide/vue";
|
|
7
|
+
import { flattenTree as H, select as ae, tree as oe, virtualList as se, virtualListBox as U } from "@wirecore/wirelayer-recipes";
|
|
8
|
+
import { createListCollection as ce } from "@ark-ui/vue/collection";
|
|
9
|
+
import { Select as W } from "@ark-ui/vue/select";
|
|
10
|
+
import { TreeView as G, useTreeView as K } from "@ark-ui/vue/tree-view";
|
|
11
|
+
import { defaultRangeExtractor as le, useVirtualizer as q } from "@tanstack/vue-virtual";
|
|
12
12
|
//#region src/virtual/VirtualSelect.vue?vue&type=script&setup=true&lang.ts
|
|
13
13
|
var ue = ["aria-label", "onClick"], de = [
|
|
14
14
|
"aria-controls",
|
|
@@ -17,7 +17,7 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
17
17
|
"placeholder",
|
|
18
18
|
"value",
|
|
19
19
|
"onInput"
|
|
20
|
-
], J = /* @__PURE__ */
|
|
20
|
+
], J = /* @__PURE__ */ b({
|
|
21
21
|
inheritAttrs: !1,
|
|
22
22
|
__name: "VirtualSelect",
|
|
23
23
|
props: {
|
|
@@ -59,37 +59,37 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
59
59
|
"filterChange",
|
|
60
60
|
"loadMore"
|
|
61
61
|
],
|
|
62
|
-
setup(i, { emit:
|
|
63
|
-
let
|
|
64
|
-
size:
|
|
65
|
-
clearable:
|
|
66
|
-
})),
|
|
67
|
-
itemValue:
|
|
68
|
-
itemLabel:
|
|
69
|
-
itemDisabled:
|
|
62
|
+
setup(i, { emit: ee }) {
|
|
63
|
+
let s = e(), c = i, te = t("select", ae), l = t("virtualList", se), b = ee, O = re(), j = f(() => n(O)), I = f(() => te({
|
|
64
|
+
size: c.size,
|
|
65
|
+
clearable: c.clearable
|
|
66
|
+
})), H = l(), oe = s.select, U = f(() => ({
|
|
67
|
+
itemValue: c.itemValue,
|
|
68
|
+
itemLabel: c.itemLabel,
|
|
69
|
+
itemDisabled: c.itemDisabled,
|
|
70
70
|
itemGroup: () => void 0,
|
|
71
|
-
valueKey:
|
|
72
|
-
})),
|
|
73
|
-
items: () =>
|
|
74
|
-
source: () =>
|
|
75
|
-
accessors: () =>
|
|
76
|
-
pageSize: () =>
|
|
77
|
-
minSearchLength: () =>
|
|
78
|
-
}), { options:
|
|
71
|
+
valueKey: c.valueKey
|
|
72
|
+
})), G = k(""), K = r({
|
|
73
|
+
items: () => c.items,
|
|
74
|
+
source: () => c.dataSource,
|
|
75
|
+
accessors: () => U.value,
|
|
76
|
+
pageSize: () => c.pageSize,
|
|
77
|
+
minSearchLength: () => c.minSearchLength
|
|
78
|
+
}), { options: le, visible: J } = a(() => K.items.value, () => U.value, () => c.filter && !c.manualFilter && !c.dataSource ? G.value : ""), Y = f(() => [...le.value, ...K.resolvedOptions.value]), { selected: fe, keys: X, commit: pe, commitKeys: me } = o({
|
|
79
79
|
multiple: !1,
|
|
80
|
-
model: () =>
|
|
81
|
-
defaultValue:
|
|
82
|
-
accessors: () =>
|
|
80
|
+
model: () => c.modelValue,
|
|
81
|
+
defaultValue: c.defaultValue,
|
|
82
|
+
accessors: () => U.value,
|
|
83
83
|
items: Y,
|
|
84
|
-
emit: (e) =>
|
|
85
|
-
}), Z =
|
|
84
|
+
emit: (e) => b("update:modelValue", e)
|
|
85
|
+
}), Z = f(() => fe.value[0]), he = f(() => ce({
|
|
86
86
|
items: J.value,
|
|
87
87
|
itemToString: (e) => e.label,
|
|
88
88
|
itemToValue: (e) => e.key,
|
|
89
89
|
isItemDisabled: (e) => e.disabled
|
|
90
|
-
})), ge =
|
|
90
|
+
})), ge = F(), _e = k(null), ve = k(null), ye = (e) => e ? "$el" in e ? e.$el ?? null : e : null, Q = q(f(() => ({
|
|
91
91
|
count: J.value.length,
|
|
92
|
-
getScrollElement: () => ye(
|
|
92
|
+
getScrollElement: () => ye(c.filter ? ve.value : _e.value),
|
|
93
93
|
estimateSize: () => 36,
|
|
94
94
|
overscan: 8,
|
|
95
95
|
initialRect: {
|
|
@@ -97,21 +97,21 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
97
97
|
height: 288
|
|
98
98
|
}
|
|
99
99
|
})));
|
|
100
|
-
|
|
101
|
-
let $ =
|
|
102
|
-
|
|
100
|
+
E(() => K.resolve(X.value, Y.value)), L(X, (e) => K.resolve(e, Y.value));
|
|
101
|
+
let $ = f(() => c.loading || K.loading.value), be = f(() => c.hasMore || K.hasMore.value), xe = f(() => Q.value.getVirtualItems().at(-1)?.index ?? -1);
|
|
102
|
+
L([
|
|
103
103
|
xe,
|
|
104
104
|
() => J.value.length,
|
|
105
105
|
$,
|
|
106
106
|
be
|
|
107
107
|
], () => {
|
|
108
|
-
!be.value || $.value || !J.value.length || xe.value < J.value.length - 1 || (
|
|
108
|
+
!be.value || $.value || !J.value.length || xe.value < J.value.length - 1 || (c.dataSource ? K.loadMore() : b("loadMore"));
|
|
109
109
|
});
|
|
110
110
|
function Se(e) {
|
|
111
|
-
|
|
111
|
+
c.clearable && fe.value.length && (e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(), pe([]));
|
|
112
112
|
}
|
|
113
113
|
function Ce(e, t) {
|
|
114
|
-
|
|
114
|
+
G.value = t.target.value, b("filterChange", G.value), c.dataSource && K.search(G.value), !(c.manualFilter || c.dataSource) && S(() => {
|
|
115
115
|
let t = J.value.find((e) => !e.disabled);
|
|
116
116
|
t && e.setHighlightValue(t.key);
|
|
117
117
|
});
|
|
@@ -120,134 +120,134 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
120
120
|
(e.key === " " || e.key === "Home" || e.key === "End") && e.stopPropagation();
|
|
121
121
|
}
|
|
122
122
|
function Te(e) {
|
|
123
|
-
e &&
|
|
123
|
+
e && K.open(), !e && G.value && (G.value = "", b("filterChange", ""), c.dataSource && K.search(""));
|
|
124
124
|
}
|
|
125
125
|
let Ee = (e) => e.highlightedItem ? e.getItemProps({ item: e.highlightedItem }).id : void 0, De = {
|
|
126
126
|
sameWidth: !0,
|
|
127
127
|
gutter: 4
|
|
128
128
|
};
|
|
129
|
-
return (e, t) => (
|
|
130
|
-
class:
|
|
131
|
-
style:
|
|
129
|
+
return (e, t) => (D(), p(P(W).Root, {
|
|
130
|
+
class: C(I.value.base({ class: j.value.className })),
|
|
131
|
+
style: T(j.value.style),
|
|
132
132
|
collection: he.value,
|
|
133
|
-
"model-value":
|
|
133
|
+
"model-value": P(X),
|
|
134
134
|
disabled: i.disabled,
|
|
135
135
|
invalid: i.invalid,
|
|
136
136
|
required: i.required,
|
|
137
137
|
name: i.name,
|
|
138
138
|
positioning: De,
|
|
139
139
|
composite: !i.filter,
|
|
140
|
-
"scroll-to-index-fn": (e) =>
|
|
141
|
-
onValueChange: t[0] ||= (e) =>
|
|
140
|
+
"scroll-to-index-fn": (e) => P(Q).scrollToIndex(e.index, { align: "auto" }),
|
|
141
|
+
onValueChange: t[0] ||= (e) => P(me)(e.value, e.items),
|
|
142
142
|
onOpenChange: t[1] ||= (e) => Te(e.open)
|
|
143
143
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
146
|
-
default:
|
|
147
|
-
class:
|
|
144
|
+
default: R(() => [
|
|
145
|
+
y(P(W).Control, w(x(i.clearable ? { class: I.value.control() } : {})), {
|
|
146
|
+
default: R(() => [y(P(W).Trigger, ne(j.value.rest, {
|
|
147
|
+
class: I.value.trigger(),
|
|
148
148
|
"aria-busy": $.value || void 0,
|
|
149
149
|
onKeydown: Se
|
|
150
150
|
}), {
|
|
151
|
-
default:
|
|
151
|
+
default: R(() => [g("span", { class: C(I.value.value()) }, [Z.value?.icon ? (D(), p(M(Z.value.icon), {
|
|
152
152
|
key: 0,
|
|
153
|
-
class:
|
|
153
|
+
class: C(I.value.icon()),
|
|
154
154
|
"aria-hidden": "true"
|
|
155
|
-
}, null, 8, ["class"])) :
|
|
155
|
+
}, null, 8, ["class"])) : m("", !0), y(P(W).ValueText, { placeholder: i.placeholder ?? P(s).common.placeholder }, _({ _: 2 }, [Z.value ? {
|
|
156
156
|
name: "default",
|
|
157
|
-
fn:
|
|
157
|
+
fn: R(() => [v(N(Z.value.label), 1)]),
|
|
158
158
|
key: "0"
|
|
159
|
-
} : void 0]), 1032, ["placeholder"])], 2),
|
|
160
|
-
default:
|
|
159
|
+
} : void 0]), 1032, ["placeholder"])], 2), y(P(W).Indicator, { class: C(I.value.indicator()) }, {
|
|
160
|
+
default: R(() => [$.value ? (D(), p(P(V), {
|
|
161
161
|
key: 0,
|
|
162
|
-
class:
|
|
162
|
+
class: C(I.value.spinner()),
|
|
163
163
|
"aria-hidden": "true"
|
|
164
|
-
}, null, 8, ["class"])) : (
|
|
164
|
+
}, null, 8, ["class"])) : (D(), p(P(B), {
|
|
165
165
|
key: 1,
|
|
166
|
-
class:
|
|
166
|
+
class: C(I.value.indicatorIcon()),
|
|
167
167
|
"aria-hidden": "true"
|
|
168
168
|
}, null, 8, ["class"]))]),
|
|
169
169
|
_: 1
|
|
170
170
|
}, 8, ["class"])]),
|
|
171
171
|
_: 1
|
|
172
|
-
}, 16, ["class", "aria-busy"]), i.clearable ? (
|
|
173
|
-
default:
|
|
172
|
+
}, 16, ["class", "aria-busy"]), i.clearable ? (D(), p(P(W).Context, { key: 0 }, {
|
|
173
|
+
default: R((e) => [Z.value && !e.disabled ? (D(), h("button", {
|
|
174
174
|
key: 0,
|
|
175
175
|
type: "button",
|
|
176
176
|
tabindex: "-1",
|
|
177
|
-
class:
|
|
178
|
-
"aria-label":
|
|
177
|
+
class: C(I.value.clear()),
|
|
178
|
+
"aria-label": P(oe).clear,
|
|
179
179
|
onClick: (t) => {
|
|
180
|
-
|
|
180
|
+
P(pe)([]), e.focus();
|
|
181
181
|
}
|
|
182
|
-
}, [
|
|
183
|
-
class:
|
|
182
|
+
}, [y(P(ie), {
|
|
183
|
+
class: C(I.value.clearIcon()),
|
|
184
184
|
"aria-hidden": "true"
|
|
185
|
-
}, null, 8, ["class"])], 10, ue)) :
|
|
185
|
+
}, null, 8, ["class"])], 10, ue)) : m("", !0)]),
|
|
186
186
|
_: 1
|
|
187
|
-
})) :
|
|
187
|
+
})) : m("", !0)]),
|
|
188
188
|
_: 1
|
|
189
189
|
}, 16),
|
|
190
|
-
(
|
|
191
|
-
default:
|
|
190
|
+
(D(), p(d, { to: "body" }, [y(P(W).Positioner, null, {
|
|
191
|
+
default: R(() => [y(P(W).Content, {
|
|
192
192
|
ref_key: "content",
|
|
193
193
|
ref: _e,
|
|
194
|
-
class:
|
|
194
|
+
class: C(I.value.content()),
|
|
195
195
|
"aria-busy": $.value || void 0,
|
|
196
|
-
"aria-label": i.filter ?
|
|
196
|
+
"aria-label": i.filter ? j.value.rest["aria-label"] : void 0
|
|
197
197
|
}, {
|
|
198
|
-
default:
|
|
198
|
+
default: R(() => [i.filter ? (D(), h("div", {
|
|
199
199
|
key: 0,
|
|
200
|
-
class:
|
|
201
|
-
}, [
|
|
202
|
-
default:
|
|
200
|
+
class: C(I.value.header())
|
|
201
|
+
}, [y(P(W).Context, null, {
|
|
202
|
+
default: R((e) => [g("input", {
|
|
203
203
|
type: "text",
|
|
204
204
|
role: "combobox",
|
|
205
205
|
autocomplete: "off",
|
|
206
206
|
"aria-autocomplete": "list",
|
|
207
207
|
"aria-expanded": "true",
|
|
208
208
|
"data-autofocus": "",
|
|
209
|
-
"aria-controls":
|
|
209
|
+
"aria-controls": P(ge),
|
|
210
210
|
"aria-activedescendant": Ee(e),
|
|
211
|
-
"aria-label":
|
|
212
|
-
placeholder:
|
|
213
|
-
value:
|
|
214
|
-
class:
|
|
211
|
+
"aria-label": P(oe).filter,
|
|
212
|
+
placeholder: P(s).combobox.search,
|
|
213
|
+
value: G.value,
|
|
214
|
+
class: C(I.value.search()),
|
|
215
215
|
onInput: (t) => Ce(e, t),
|
|
216
216
|
onKeydown: we
|
|
217
217
|
}, null, 42, de)]),
|
|
218
218
|
_: 1
|
|
219
|
-
})], 2)) :
|
|
219
|
+
})], 2)) : m("", !0), i.filter ? (D(), p(P(W).List, {
|
|
220
220
|
key: 1,
|
|
221
|
-
id:
|
|
221
|
+
id: P(ge),
|
|
222
222
|
ref_key: "scroller",
|
|
223
223
|
ref: ve,
|
|
224
|
-
class:
|
|
224
|
+
class: C(I.value.list({ class: P(H).scroll() }))
|
|
225
225
|
}, {
|
|
226
|
-
default:
|
|
227
|
-
|
|
228
|
-
class:
|
|
229
|
-
style:
|
|
230
|
-
}, [(
|
|
226
|
+
default: R(() => [
|
|
227
|
+
g("div", {
|
|
228
|
+
class: C(P(H).spacer()),
|
|
229
|
+
style: T({ height: `${P(Q).getTotalSize()}px` })
|
|
230
|
+
}, [(D(!0), h(u, null, A(P(Q).getVirtualItems(), (e) => (D(), p(P(W).Item, {
|
|
231
231
|
key: String(e.key),
|
|
232
|
-
item:
|
|
233
|
-
class:
|
|
234
|
-
style:
|
|
235
|
-
"aria-setsize":
|
|
232
|
+
item: P(J)[e.index],
|
|
233
|
+
class: C(I.value.item({ class: P(H).item() })),
|
|
234
|
+
style: T({ transform: `translateY(${e.start}px)` }),
|
|
235
|
+
"aria-setsize": P(J).length,
|
|
236
236
|
"aria-posinset": e.index + 1
|
|
237
237
|
}, {
|
|
238
|
-
default:
|
|
239
|
-
|
|
238
|
+
default: R(() => [
|
|
239
|
+
P(J)[e.index].icon ? (D(), p(M(P(J)[e.index].icon), {
|
|
240
240
|
key: 0,
|
|
241
|
-
class:
|
|
241
|
+
class: C(I.value.icon()),
|
|
242
242
|
"aria-hidden": "true"
|
|
243
|
-
}, null, 8, ["class"])) :
|
|
244
|
-
|
|
245
|
-
default:
|
|
243
|
+
}, null, 8, ["class"])) : m("", !0),
|
|
244
|
+
y(P(W).ItemText, { class: C(I.value.itemText()) }, {
|
|
245
|
+
default: R(() => [v(N(P(J)[e.index].label), 1)]),
|
|
246
246
|
_: 2
|
|
247
247
|
}, 1032, ["class"]),
|
|
248
|
-
|
|
249
|
-
default:
|
|
250
|
-
class:
|
|
248
|
+
y(P(W).ItemIndicator, null, {
|
|
249
|
+
default: R(() => [y(P(z), {
|
|
250
|
+
class: C(I.value.itemIndicator()),
|
|
251
251
|
"aria-hidden": "true"
|
|
252
252
|
}, null, 8, ["class"])]),
|
|
253
253
|
_: 1
|
|
@@ -261,46 +261,46 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
261
261
|
"aria-setsize",
|
|
262
262
|
"aria-posinset"
|
|
263
263
|
]))), 128))], 6),
|
|
264
|
-
$.value ? (
|
|
264
|
+
$.value ? (D(), h("div", {
|
|
265
265
|
key: 0,
|
|
266
|
-
class:
|
|
267
|
-
}, [
|
|
268
|
-
class:
|
|
266
|
+
class: C(I.value.loading())
|
|
267
|
+
}, [y(P(V), {
|
|
268
|
+
class: C(I.value.loadingIcon()),
|
|
269
269
|
"aria-hidden": "true"
|
|
270
|
-
}, null, 8, ["class"]),
|
|
271
|
-
!
|
|
270
|
+
}, null, 8, ["class"]), v(" " + N(i.loadingText ?? P(s).common.loading), 1)], 2)) : m("", !0),
|
|
271
|
+
!P(J).length && !$.value ? (D(), h("div", {
|
|
272
272
|
key: 1,
|
|
273
273
|
role: "option",
|
|
274
274
|
"aria-disabled": "true",
|
|
275
|
-
class:
|
|
276
|
-
},
|
|
275
|
+
class: C(I.value.empty())
|
|
276
|
+
}, N(i.emptyText ?? P(K).emptyText.value ?? (G.value ? P(s).common.noResults : P(s).common.empty)), 3)) : m("", !0)
|
|
277
277
|
]),
|
|
278
278
|
_: 1
|
|
279
|
-
}, 8, ["id", "class"])) : (
|
|
280
|
-
|
|
281
|
-
class:
|
|
282
|
-
style:
|
|
283
|
-
}, [(
|
|
279
|
+
}, 8, ["id", "class"])) : (D(), h(u, { key: 2 }, [
|
|
280
|
+
g("div", {
|
|
281
|
+
class: C(P(H).spacer()),
|
|
282
|
+
style: T({ height: `${P(Q).getTotalSize()}px` })
|
|
283
|
+
}, [(D(!0), h(u, null, A(P(Q).getVirtualItems(), (e) => (D(), p(P(W).Item, {
|
|
284
284
|
key: String(e.key),
|
|
285
|
-
item:
|
|
286
|
-
class:
|
|
287
|
-
style:
|
|
288
|
-
"aria-setsize":
|
|
285
|
+
item: P(J)[e.index],
|
|
286
|
+
class: C(I.value.item({ class: P(H).item() })),
|
|
287
|
+
style: T({ transform: `translateY(${e.start}px)` }),
|
|
288
|
+
"aria-setsize": P(J).length,
|
|
289
289
|
"aria-posinset": e.index + 1
|
|
290
290
|
}, {
|
|
291
|
-
default:
|
|
292
|
-
|
|
291
|
+
default: R(() => [
|
|
292
|
+
P(J)[e.index].icon ? (D(), p(M(P(J)[e.index].icon), {
|
|
293
293
|
key: 0,
|
|
294
|
-
class:
|
|
294
|
+
class: C(I.value.icon()),
|
|
295
295
|
"aria-hidden": "true"
|
|
296
|
-
}, null, 8, ["class"])) :
|
|
297
|
-
|
|
298
|
-
default:
|
|
296
|
+
}, null, 8, ["class"])) : m("", !0),
|
|
297
|
+
y(P(W).ItemText, { class: C(I.value.itemText()) }, {
|
|
298
|
+
default: R(() => [v(N(P(J)[e.index].label), 1)]),
|
|
299
299
|
_: 2
|
|
300
300
|
}, 1032, ["class"]),
|
|
301
|
-
|
|
302
|
-
default:
|
|
303
|
-
class:
|
|
301
|
+
y(P(W).ItemIndicator, null, {
|
|
302
|
+
default: R(() => [y(P(z), {
|
|
303
|
+
class: C(I.value.itemIndicator()),
|
|
304
304
|
"aria-hidden": "true"
|
|
305
305
|
}, null, 8, ["class"])]),
|
|
306
306
|
_: 1
|
|
@@ -314,19 +314,19 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
314
314
|
"aria-setsize",
|
|
315
315
|
"aria-posinset"
|
|
316
316
|
]))), 128))], 6),
|
|
317
|
-
$.value ? (
|
|
317
|
+
$.value ? (D(), h("div", {
|
|
318
318
|
key: 0,
|
|
319
|
-
class:
|
|
320
|
-
}, [
|
|
321
|
-
class:
|
|
319
|
+
class: C(I.value.loading())
|
|
320
|
+
}, [y(P(V), {
|
|
321
|
+
class: C(I.value.loadingIcon()),
|
|
322
322
|
"aria-hidden": "true"
|
|
323
|
-
}, null, 8, ["class"]),
|
|
324
|
-
!
|
|
323
|
+
}, null, 8, ["class"]), v(" " + N(i.loadingText ?? P(s).common.loading), 1)], 2)) : m("", !0),
|
|
324
|
+
!P(J).length && !$.value ? (D(), h("div", {
|
|
325
325
|
key: 1,
|
|
326
326
|
role: "option",
|
|
327
327
|
"aria-disabled": "true",
|
|
328
|
-
class:
|
|
329
|
-
},
|
|
328
|
+
class: C(I.value.empty())
|
|
329
|
+
}, N(i.emptyText ?? P(K).emptyText.value ?? (G.value ? P(s).common.noResults : P(s).common.empty)), 3)) : m("", !0)
|
|
330
330
|
], 64))]),
|
|
331
331
|
_: 1
|
|
332
332
|
}, 8, [
|
|
@@ -336,12 +336,12 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
336
336
|
])]),
|
|
337
337
|
_: 1
|
|
338
338
|
})])),
|
|
339
|
-
|
|
340
|
-
i.dataSource ? (
|
|
339
|
+
y(P(W).HiddenSelect),
|
|
340
|
+
i.dataSource ? (D(), h("span", {
|
|
341
341
|
key: 0,
|
|
342
342
|
role: "status",
|
|
343
|
-
class:
|
|
344
|
-
}, P(
|
|
343
|
+
class: C(I.value.status())
|
|
344
|
+
}, N(P(K).announcement.value), 3)) : m("", !0)
|
|
345
345
|
]),
|
|
346
346
|
_: 1
|
|
347
347
|
}, 8, [
|
|
@@ -361,7 +361,7 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
361
361
|
"aria-posinset",
|
|
362
362
|
"aria-setsize",
|
|
363
363
|
"data-index"
|
|
364
|
-
], pe = /* @__PURE__ */
|
|
364
|
+
], pe = /* @__PURE__ */ b({
|
|
365
365
|
inheritAttrs: !1,
|
|
366
366
|
__name: "VirtualList",
|
|
367
367
|
props: {
|
|
@@ -390,7 +390,7 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
390
390
|
},
|
|
391
391
|
emits: ["loadMore", "endReached"],
|
|
392
392
|
setup(n, { expose: r, emit: a }) {
|
|
393
|
-
let o = n,
|
|
393
|
+
let o = n, ee = a, s = t("virtualListBox", U), c = re(), te = e(), l = s(), d = k(null), p = i({
|
|
394
394
|
source: () => o.dataSource,
|
|
395
395
|
pageSize: () => o.pageSize,
|
|
396
396
|
query: () => {
|
|
@@ -399,23 +399,23 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
399
399
|
return delete e.search, e;
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
|
-
|
|
403
|
-
o.dataSource &&
|
|
404
|
-
}),
|
|
405
|
-
o.dataSource &&
|
|
402
|
+
E(() => {
|
|
403
|
+
o.dataSource && p.search(o.query?.search ?? "", !1);
|
|
404
|
+
}), L(() => o.query?.search, (e) => {
|
|
405
|
+
o.dataSource && p.search(e ?? "");
|
|
406
406
|
});
|
|
407
|
-
let
|
|
407
|
+
let _ = f(() => o.dataSource ? p.state.value.items : o.items), b = f(() => o.dataSource ? p.state.value.hasMore : o.hasMore), x = f(() => o.dataSource ? p.state.value.status === "loading" : o.loading || o.loadingMore), ne = (e) => {
|
|
408
408
|
let t = o.itemGroup, n = typeof t == "function" ? t(e) : e?.[t];
|
|
409
409
|
return n == null || n === "" ? void 0 : String(n);
|
|
410
|
-
},
|
|
411
|
-
if (!o.itemGroup) return
|
|
410
|
+
}, S = f(() => {
|
|
411
|
+
if (!o.itemGroup) return _.value.map((e, t) => ({
|
|
412
412
|
kind: "item",
|
|
413
413
|
item: e,
|
|
414
414
|
index: t
|
|
415
415
|
}));
|
|
416
416
|
let e = [], t;
|
|
417
|
-
return
|
|
418
|
-
let i =
|
|
417
|
+
return _.value.forEach((n, r) => {
|
|
418
|
+
let i = ne(n);
|
|
419
419
|
i !== void 0 && i !== t && e.push({
|
|
420
420
|
kind: "header",
|
|
421
421
|
label: i
|
|
@@ -425,88 +425,88 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
425
425
|
index: r
|
|
426
426
|
});
|
|
427
427
|
}), e;
|
|
428
|
-
}),
|
|
429
|
-
count:
|
|
430
|
-
getScrollElement: () =>
|
|
428
|
+
}), w = f(() => S.value.flatMap((e, t) => e.kind === "header" ? [t] : [])), O = (e) => [...w.value].reverse().find((t) => e >= t) ?? -1, M = q(f(() => ({
|
|
429
|
+
count: S.value.length,
|
|
430
|
+
getScrollElement: () => d.value,
|
|
431
431
|
estimateSize: (e) => {
|
|
432
|
-
let t =
|
|
432
|
+
let t = S.value[e];
|
|
433
433
|
return t?.kind === "item" && o.estimateSize ? o.estimateSize(t.item, t.index) : o.itemHeight;
|
|
434
434
|
},
|
|
435
435
|
measureElement: (e) => e.getBoundingClientRect().height || o.itemHeight,
|
|
436
436
|
overscan: 6,
|
|
437
|
-
rangeExtractor:
|
|
438
|
-
let t =
|
|
437
|
+
rangeExtractor: w.value.length ? (e) => {
|
|
438
|
+
let t = O(e.startIndex), n = new Set(le(e));
|
|
439
439
|
return t >= 0 && n.add(t), [...n].sort((e, t) => e - t);
|
|
440
|
-
} :
|
|
440
|
+
} : le,
|
|
441
441
|
initialRect: {
|
|
442
442
|
width: 0,
|
|
443
443
|
height: 320
|
|
444
444
|
}
|
|
445
|
-
}))),
|
|
446
|
-
let e =
|
|
447
|
-
return
|
|
448
|
-
}),
|
|
449
|
-
function
|
|
450
|
-
let e =
|
|
451
|
-
e !== void 0 &&
|
|
445
|
+
}))), F = f(() => M.value.getVirtualItems()), I = f(() => {
|
|
446
|
+
let e = F.value.length ? M.value.range : null;
|
|
447
|
+
return w.value.length ? O(e?.startIndex ?? 0) : -1;
|
|
448
|
+
}), R = -1;
|
|
449
|
+
function z() {
|
|
450
|
+
let e = F.value.at(-1)?.index, t = S.value.length;
|
|
451
|
+
e !== void 0 && b.value && !x.value && R !== t && (e < t - 1 - o.endThreshold || (R = t, o.dataSource ? p.loadMore() : (ee("loadMore"), ee("endReached"))));
|
|
452
452
|
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
],
|
|
459
|
-
let
|
|
453
|
+
E(z), L(() => [
|
|
454
|
+
F.value.at(-1)?.index,
|
|
455
|
+
S.value.length,
|
|
456
|
+
b.value,
|
|
457
|
+
x.value
|
|
458
|
+
], z);
|
|
459
|
+
let B = f(() => !!o.dataSource || o.hasMore || o.loading || o.loadingMore);
|
|
460
460
|
return r({
|
|
461
461
|
scrollToIndex(e, t = {}) {
|
|
462
|
-
let n =
|
|
463
|
-
n >= 0 &&
|
|
462
|
+
let n = S.value.findIndex((t) => t.kind === "item" && t.index === e);
|
|
463
|
+
n >= 0 && M.value.scrollToIndex(n, { align: t.align ?? "auto" });
|
|
464
464
|
},
|
|
465
|
-
refresh: () =>
|
|
466
|
-
}), (e, t) => (
|
|
465
|
+
refresh: () => p.refresh()
|
|
466
|
+
}), (e, t) => (D(), h(u, null, [g("div", {
|
|
467
467
|
ref_key: "scrollElement",
|
|
468
|
-
ref:
|
|
468
|
+
ref: d,
|
|
469
469
|
role: "list",
|
|
470
470
|
"aria-label": n.label,
|
|
471
|
-
"aria-busy":
|
|
471
|
+
"aria-busy": B.value && x.value || void 0,
|
|
472
472
|
tabindex: "0",
|
|
473
|
-
class:
|
|
474
|
-
style:
|
|
475
|
-
}, [
|
|
476
|
-
class:
|
|
477
|
-
style:
|
|
478
|
-
}, [(
|
|
473
|
+
class: C(P(l).base({ class: C(P(c).class) })),
|
|
474
|
+
style: T([{ height: n.height }, P(c).style])
|
|
475
|
+
}, [g("div", {
|
|
476
|
+
class: C(P(l).spacer()),
|
|
477
|
+
style: T({ height: `${P(M).getTotalSize()}px` })
|
|
478
|
+
}, [(D(!0), h(u, null, A(F.value, (t) => (D(), h(u, { key: String(t.key) }, [S.value[t.index]?.kind === "header" ? (D(), h("div", {
|
|
479
479
|
key: 0,
|
|
480
480
|
ref_for: !0,
|
|
481
|
-
ref: (e) => e &&
|
|
481
|
+
ref: (e) => e && P(M).measureElement(e),
|
|
482
482
|
role: "presentation",
|
|
483
483
|
"data-index": t.index,
|
|
484
|
-
class:
|
|
485
|
-
style:
|
|
486
|
-
},
|
|
484
|
+
class: C(t.index === I.value ? P(l).groupHeader({ class: P(l).sticky() }) : P(l).item({ class: P(l).groupHeader() })),
|
|
485
|
+
style: T(t.index === I.value ? void 0 : { transform: `translateY(${t.start}px)` })
|
|
486
|
+
}, N(S.value[t.index].label), 15, fe)) : S.value[t.index] ? (D(), h("div", {
|
|
487
487
|
key: 1,
|
|
488
488
|
ref_for: !0,
|
|
489
|
-
ref: (e) => e &&
|
|
489
|
+
ref: (e) => e && P(M).measureElement(e),
|
|
490
490
|
role: "listitem",
|
|
491
|
-
"aria-posinset":
|
|
492
|
-
"aria-setsize":
|
|
491
|
+
"aria-posinset": S.value[t.index].index + 1,
|
|
492
|
+
"aria-setsize": _.value.length,
|
|
493
493
|
"data-index": t.index,
|
|
494
|
-
class:
|
|
495
|
-
style:
|
|
496
|
-
}, [
|
|
497
|
-
item:
|
|
498
|
-
index:
|
|
499
|
-
})], 14, X)) :
|
|
494
|
+
class: C(P(l).item()),
|
|
495
|
+
style: T({ transform: `translateY(${t.start}px)` })
|
|
496
|
+
}, [j(e.$slots, "default", {
|
|
497
|
+
item: S.value[t.index].item,
|
|
498
|
+
index: S.value[t.index].index
|
|
499
|
+
})], 14, X)) : m("", !0)], 64))), 128))], 6), B.value && x.value && _.value.length ? (D(), h("div", {
|
|
500
500
|
key: 0,
|
|
501
|
-
class:
|
|
501
|
+
class: C(P(l).loading()),
|
|
502
502
|
"aria-hidden": "true"
|
|
503
|
-
}, [
|
|
503
|
+
}, [y(P(V), { class: C(P(l).loadingIcon()) }, null, 8, ["class"]), v(" " + N(P(te).dataSource.loadingMore), 1)], 2)) : m("", !0)], 14, Y), n.dataSource ? (D(), h("p", {
|
|
504
504
|
key: 0,
|
|
505
505
|
role: "status",
|
|
506
|
-
class:
|
|
507
|
-
}, P(
|
|
506
|
+
class: C(P(l).status())
|
|
507
|
+
}, N(P(p).announcement.value), 3)) : m("", !0)], 64));
|
|
508
508
|
}
|
|
509
|
-
}), me = ["data-index"], Z = /* @__PURE__ */
|
|
509
|
+
}), me = ["data-index"], Z = /* @__PURE__ */ b({
|
|
510
510
|
inheritAttrs: !1,
|
|
511
511
|
__name: "VirtualTree",
|
|
512
512
|
props: {
|
|
@@ -562,88 +562,88 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
562
562
|
"loadChildren"
|
|
563
563
|
],
|
|
564
564
|
setup(n, { expose: r, emit: i }) {
|
|
565
|
-
let a = n, o = i,
|
|
566
|
-
|
|
567
|
-
...
|
|
568
|
-
showLines:
|
|
565
|
+
let a = n, o = i, d = I(), b = t("tree", oe, () => a.classes)(), x = re(), S = e(), w = S.tree, E = k(null), M = l(a, o, f(() => E.value?.$el ?? null));
|
|
566
|
+
O(s, M.drag), O(ee, {
|
|
567
|
+
...M,
|
|
568
|
+
showLines: f(() => !1)
|
|
569
569
|
});
|
|
570
|
-
let
|
|
570
|
+
let F = f(() => {
|
|
571
571
|
let e = [];
|
|
572
|
-
for (let t of
|
|
572
|
+
for (let t of H(M.view.value, M.expanded.value)) e.push({
|
|
573
573
|
...t,
|
|
574
574
|
kind: "node"
|
|
575
|
-
}), t.expanded &&
|
|
575
|
+
}), t.expanded && M.loadingOf(t.node) && e.push({
|
|
576
576
|
kind: "loading",
|
|
577
577
|
parentId: t.node.id,
|
|
578
578
|
level: t.level
|
|
579
579
|
});
|
|
580
580
|
return e;
|
|
581
|
-
}),
|
|
582
|
-
count:
|
|
583
|
-
getScrollElement: () =>
|
|
581
|
+
}), L = k(null), z = q(f(() => ({
|
|
582
|
+
count: F.value.length,
|
|
583
|
+
getScrollElement: () => L.value?.$el ?? null,
|
|
584
584
|
estimateSize: () => a.itemHeight,
|
|
585
585
|
measureElement: (e) => e.getBoundingClientRect().height || a.itemHeight,
|
|
586
586
|
overscan: 8,
|
|
587
587
|
getItemKey: (e) => {
|
|
588
|
-
let t =
|
|
588
|
+
let t = F.value[e];
|
|
589
589
|
return t.kind === "node" ? t.node.id : `${t.parentId}\u0000loading`;
|
|
590
590
|
},
|
|
591
591
|
initialRect: {
|
|
592
592
|
width: 0,
|
|
593
593
|
height: 320
|
|
594
594
|
}
|
|
595
|
-
}))),
|
|
596
|
-
function
|
|
595
|
+
}))), B = (e) => F.value.findIndex((t) => t.kind === "node" && t.node.id === e);
|
|
596
|
+
function ie(e, t = 6) {
|
|
597
597
|
requestAnimationFrame(() => {
|
|
598
598
|
let n = e();
|
|
599
|
-
n ? n.ownerDocument.activeElement !== n && n.focus() : t > 0 &&
|
|
599
|
+
n ? n.ownerDocument.activeElement !== n && n.focus() : t > 0 && ie(e, t - 1);
|
|
600
600
|
});
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
let t =
|
|
604
|
-
t < 0 || (
|
|
602
|
+
function ae(e) {
|
|
603
|
+
let t = B(e.node.id);
|
|
604
|
+
t < 0 || (z.value.scrollToIndex(t, { align: "auto" }), ie(e.getElement));
|
|
605
605
|
}
|
|
606
|
-
let
|
|
607
|
-
collection:
|
|
606
|
+
let se = f(() => a.label ?? x["aria-label"] ?? S.tree.treeLabel), U = K(f(() => ({
|
|
607
|
+
collection: M.collection.value,
|
|
608
608
|
selectionMode: a.selectionMode,
|
|
609
|
-
selectedValue:
|
|
610
|
-
expandedValue:
|
|
611
|
-
...
|
|
609
|
+
selectedValue: M.selected.value,
|
|
610
|
+
expandedValue: M.expanded.value,
|
|
611
|
+
...M.ownChecks.value ? {} : {
|
|
612
612
|
checkedValue: a.checkedValue,
|
|
613
613
|
defaultCheckedValue: a.defaultCheckedValue
|
|
614
614
|
},
|
|
615
|
-
translations: { treeLabel:
|
|
616
|
-
scrollToIndexFn:
|
|
617
|
-
onSelectionChange: (e) =>
|
|
618
|
-
onExpandedChange: (e) =>
|
|
619
|
-
onCheckedChange: (e) =>
|
|
620
|
-
}))),
|
|
615
|
+
translations: { treeLabel: se.value },
|
|
616
|
+
scrollToIndexFn: ae,
|
|
617
|
+
onSelectionChange: (e) => M.onSelectionChange(e.selectedValue),
|
|
618
|
+
onExpandedChange: (e) => M.setExpanded(e.expandedValue),
|
|
619
|
+
onCheckedChange: (e) => M.ownChecks.value || M.onArkCheckedChange(e.checkedValue)
|
|
620
|
+
}))), ce = f(() => a.emptyText ?? (M.query.value.trim() ? w.noMatches : a.group === void 0 ? void 0 : S.common.empty)), W = f(() => !M.view.value.length && (ce.value !== void 0 || !!d.empty || a.group !== void 0));
|
|
621
621
|
return r({
|
|
622
|
-
expandAll:
|
|
623
|
-
collapseAll:
|
|
624
|
-
invalidate:
|
|
622
|
+
expandAll: M.expandAll,
|
|
623
|
+
collapseAll: M.collapseAll,
|
|
624
|
+
invalidate: M.invalidate,
|
|
625
625
|
focusNode(e) {
|
|
626
|
-
let t =
|
|
627
|
-
t >= 0 &&
|
|
626
|
+
let t = B(e);
|
|
627
|
+
t >= 0 && z.value.scrollToIndex(t, { align: "auto" }), requestAnimationFrame(() => M.focusNode(e));
|
|
628
628
|
}
|
|
629
|
-
}), (e, t) => (
|
|
629
|
+
}), (e, t) => (D(), p(P(G).RootProvider, {
|
|
630
630
|
ref_key: "root",
|
|
631
|
-
ref:
|
|
632
|
-
value:
|
|
633
|
-
class:
|
|
634
|
-
style:
|
|
635
|
-
onKeydownCapture:
|
|
631
|
+
ref: E,
|
|
632
|
+
value: P(U),
|
|
633
|
+
class: C(P(b).base({ class: C(P(x).class) })),
|
|
634
|
+
style: T(P(x).style),
|
|
635
|
+
onKeydownCapture: P(M).onKeydown
|
|
636
636
|
}, {
|
|
637
|
-
default:
|
|
638
|
-
n.label ? (
|
|
637
|
+
default: R(() => [
|
|
638
|
+
n.label ? (D(), p(P(G).Label, {
|
|
639
639
|
key: 0,
|
|
640
|
-
class:
|
|
640
|
+
class: C(P(b).label())
|
|
641
641
|
}, {
|
|
642
|
-
default:
|
|
642
|
+
default: R(() => [v(N(n.label), 1)]),
|
|
643
643
|
_: 1
|
|
644
|
-
}, 8, ["class"])) :
|
|
645
|
-
|
|
646
|
-
model:
|
|
644
|
+
}, 8, ["class"])) : m("", !0),
|
|
645
|
+
y(c, {
|
|
646
|
+
model: P(M),
|
|
647
647
|
filter: n.filter,
|
|
648
648
|
"filter-mode": n.filterMode,
|
|
649
649
|
"expand-controls": n.expandControls,
|
|
@@ -655,34 +655,34 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
655
655
|
"expand-controls",
|
|
656
656
|
"classes"
|
|
657
657
|
]),
|
|
658
|
-
|
|
658
|
+
y(P(G).Tree, {
|
|
659
659
|
ref_key: "viewport",
|
|
660
|
-
ref:
|
|
661
|
-
class:
|
|
662
|
-
style:
|
|
663
|
-
hidden:
|
|
660
|
+
ref: L,
|
|
661
|
+
class: C(P(b).tree({ class: P(b).viewport() })),
|
|
662
|
+
style: T({ height: n.height }),
|
|
663
|
+
hidden: W.value || void 0
|
|
664
664
|
}, {
|
|
665
|
-
default:
|
|
666
|
-
class:
|
|
667
|
-
style:
|
|
668
|
-
}, [(
|
|
665
|
+
default: R(() => [g("div", {
|
|
666
|
+
class: C(P(b).spacer()),
|
|
667
|
+
style: T({ height: `${P(z).getTotalSize()}px` })
|
|
668
|
+
}, [(D(!0), h(u, null, A(P(z).getVirtualItems(), (t) => (D(), h("div", {
|
|
669
669
|
key: String(t.key),
|
|
670
670
|
ref_for: !0,
|
|
671
|
-
ref: (e) => e &&
|
|
671
|
+
ref: (e) => e && P(z).measureElement(e),
|
|
672
672
|
"data-index": t.index,
|
|
673
|
-
class:
|
|
674
|
-
style:
|
|
675
|
-
}, [
|
|
673
|
+
class: C(P(b).row()),
|
|
674
|
+
style: T({ transform: `translateY(${t.start}px)` })
|
|
675
|
+
}, [F.value[t.index].kind === "node" ? (D(), p(te, {
|
|
676
676
|
key: 0,
|
|
677
|
-
node:
|
|
678
|
-
"index-path":
|
|
677
|
+
node: F.value[t.index].node,
|
|
678
|
+
"index-path": F.value[t.index].indexPath,
|
|
679
679
|
checkable: n.checkable,
|
|
680
680
|
flat: "",
|
|
681
|
-
posinset:
|
|
682
|
-
setsize:
|
|
683
|
-
},
|
|
681
|
+
posinset: F.value[t.index].posinset,
|
|
682
|
+
setsize: F.value[t.index].setsize
|
|
683
|
+
}, _({ _: 2 }, [e.$slots.node ? {
|
|
684
684
|
name: "node",
|
|
685
|
-
fn:
|
|
685
|
+
fn: R((t) => [j(e.$slots, "node", ne({ ref_for: !0 }, t))]),
|
|
686
686
|
key: "0"
|
|
687
687
|
} : void 0]), 1032, [
|
|
688
688
|
"node",
|
|
@@ -690,28 +690,28 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
690
690
|
"checkable",
|
|
691
691
|
"posinset",
|
|
692
692
|
"setsize"
|
|
693
|
-
])) : (
|
|
693
|
+
])) : (D(), h("div", {
|
|
694
694
|
key: 1,
|
|
695
|
-
class:
|
|
696
|
-
style:
|
|
695
|
+
class: C(P(b).loadingRow()),
|
|
696
|
+
style: T({ "--depth": F.value[t.index].level }),
|
|
697
697
|
"aria-hidden": "true"
|
|
698
|
-
}, [
|
|
698
|
+
}, [y(P(V), { class: C(P(b).loadingIcon()) }, null, 8, ["class"]), v(" " + N(P(w).loadingRow), 1)], 6))], 14, me))), 128))], 6)]),
|
|
699
699
|
_: 3
|
|
700
700
|
}, 8, [
|
|
701
701
|
"class",
|
|
702
702
|
"style",
|
|
703
703
|
"hidden"
|
|
704
704
|
]),
|
|
705
|
-
|
|
705
|
+
W.value ? (D(), h("div", {
|
|
706
706
|
key: 1,
|
|
707
|
-
class:
|
|
708
|
-
onDragover: t[0] ||= (...e) =>
|
|
709
|
-
onDrop: t[1] ||= (...e) =>
|
|
710
|
-
}, [
|
|
711
|
-
|
|
707
|
+
class: C(P(b).empty()),
|
|
708
|
+
onDragover: t[0] ||= (...e) => P(M).onEmptyDragOver && P(M).onEmptyDragOver(...e),
|
|
709
|
+
onDrop: t[1] ||= (...e) => P(M).onEmptyDrop && P(M).onEmptyDrop(...e)
|
|
710
|
+
}, [j(e.$slots, "empty", {}, () => [v(N(ce.value), 1)])], 34)) : m("", !0),
|
|
711
|
+
g("p", {
|
|
712
712
|
role: "status",
|
|
713
|
-
class:
|
|
714
|
-
}, P(
|
|
713
|
+
class: C(P(b).status())
|
|
714
|
+
}, N(P(M).status.value), 3)
|
|
715
715
|
]),
|
|
716
716
|
_: 3
|
|
717
717
|
}, 8, [
|
|
@@ -721,6 +721,6 @@ var ue = ["aria-label", "onClick"], de = [
|
|
|
721
721
|
"onKeydownCapture"
|
|
722
722
|
]));
|
|
723
723
|
}
|
|
724
|
-
});
|
|
724
|
+
}), he = { useVirtualizer: q };
|
|
725
725
|
//#endregion
|
|
726
|
-
export { pe as VirtualList, J as VirtualSelect, Z as VirtualTree };
|
|
726
|
+
export { pe as VirtualList, J as VirtualSelect, Z as VirtualTree, he as virtualRows };
|