@wirecore/wirelayer-vue 0.12.2 → 0.13.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/dist/{Button-BpMOPs8b.js → Button-WA6BonwF.js} +1 -1
- package/dist/{Checkbox-DS2qfQK1.js → Checkbox-DILwucBG.js} +1 -1
- package/dist/{CopyButton-Cv9QfFfS.js → CopyButton-BVRwSCRj.js} +2 -2
- package/dist/{Field-Cqe2BG_x.js → Field-DuZfFNFT.js} +3 -3
- package/dist/{Highlight-uwptdaUw.js → Highlight-BM-J3Jj0.js} +1 -1
- package/dist/{Input-C5dyvZfJ.js → Input-CH-ntEjv.js} +10 -10
- package/dist/RecipesProvider-DDJst6Pj.js +2448 -0
- package/dist/{Select-q8FUIWLi.js → Select-B5c6Y3mf.js} +4 -4
- package/dist/{Slider-Cpv7Vj3B.js → Slider-Z-rsNeI1.js} +2 -2
- package/dist/Tree-C8vsEA6K.js +852 -0
- package/dist/chart.js +31 -31
- package/dist/code.js +7 -7
- package/dist/components/Confirm/ConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/Confirm/confirm.d.ts +5 -0
- package/dist/components/Confirm/confirm.d.ts.map +1 -1
- package/dist/components/Dialog/DialogContent.vue.d.ts +12 -2
- package/dist/components/Dialog/DialogContent.vue.d.ts.map +1 -1
- package/dist/components/DialogService/DialogHost.vue.d.ts.map +1 -1
- package/dist/components/DialogService/dialogs.d.ts +5 -0
- package/dist/components/DialogService/dialogs.d.ts.map +1 -1
- package/dist/components/Drawer/DrawerContent.vue.d.ts +10 -1
- package/dist/components/Drawer/DrawerContent.vue.d.ts.map +1 -1
- package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts +1 -0
- package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.vue.d.ts +8 -1
- package/dist/components/NotificationCenter/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/data-table/DataTable.vue.d.ts +25 -6
- package/dist/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/data-table/FilterMenu.vue.d.ts.map +1 -1
- package/dist/data-table/ValueInput.vue.d.ts +4 -0
- package/dist/data-table/ValueInput.vue.d.ts.map +1 -1
- package/dist/data-table/features.d.ts +10 -0
- package/dist/data-table/features.d.ts.map +1 -1
- package/dist/data-table/index.d.ts +1 -1
- package/dist/data-table/index.d.ts.map +1 -1
- package/dist/data-table/inputs.d.ts +5 -0
- package/dist/data-table/inputs.d.ts.map +1 -1
- package/dist/data-table/types.d.ts +2 -0
- package/dist/data-table/types.d.ts.map +1 -1
- package/dist/data-table.js +1697 -1575
- package/dist/editor.js +4 -4
- package/dist/form.js +35 -35
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4204 -4275
- package/dist/pdf.js +6 -6
- package/dist/{recipes-BlM9aKyt.js → recipes-CD2Ibsv9.js} +8 -1
- package/dist/recipes.d.ts +6 -0
- package/dist/recipes.d.ts.map +1 -1
- package/dist/sources/dateRangeInput.css +3 -0
- package/dist/{useTree-UhG1TMeM.js → useTree-DjkjHeoy.js} +114 -114
- package/dist/virtual.js +6 -6
- package/llms-full.txt +76 -15
- package/llms.txt +1 -0
- package/package.json +3 -3
- package/dist/ContextMenu-DC--vmIf.js +0 -2321
- package/dist/Tree-3o3OJASC.js +0 -840
|
@@ -0,0 +1,852 @@
|
|
|
1
|
+
import { n as e, o as t, r as n } from "./recipes-CD2Ibsv9.js";
|
|
2
|
+
import { t as r } from "./attrs-KNjeRUCf.js";
|
|
3
|
+
import { i, n as a, t as o } from "./InputStatus-Cgarj-yu.js";
|
|
4
|
+
import { a as s, i as c, n as l, r as u, t as d } from "./useTree-DjkjHeoy.js";
|
|
5
|
+
import { Fragment as f, Teleport as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as y, createTextVNode as b, createVNode as x, defineComponent as S, inject as C, mergeModels as w, mergeProps as T, normalizeClass as E, normalizeProps as D, onBeforeUnmount as O, onMounted as k, onUpdated as A, openBlock as j, provide as M, ref as N, renderList as P, renderSlot as F, resolveDynamicComponent as I, shallowRef as L, toDisplayString as R, toHandlers as z, toRef as B, unref as V, useAttrs as H, useId as U, useModel as ee, useSlots as te, useTemplateRef as W, watch as G, withCtx as K } from "vue";
|
|
6
|
+
import { Check as ne, ChevronLeft as re, ChevronRight as ie, Circle as ae, Eye as oe, EyeOff as se, Maximize2 as q, Minimize2 as ce, X as J } from "@lucide/vue";
|
|
7
|
+
import { autoselectElement as le, checkPasswordRequirements as ue, clampDialogOffset as de, closeTab as fe, controlIds as pe, dialog as me, dialogMoveForKey as he, dialogMoveKeys as ge, focusFirst as _e, passwordInput as ve, passwordStrength as ye, scrollEdges as be, setTextControlValue as xe, tabs as Y, tree as Se } from "@wirecore/wirelayer-recipes";
|
|
8
|
+
import { useFieldContext as Ce } from "@ark-ui/vue/field";
|
|
9
|
+
import { Tabs as X } from "@ark-ui/vue/tabs";
|
|
10
|
+
import { Dialog as Z, useDialogContext as we } from "@ark-ui/vue/dialog";
|
|
11
|
+
import { PasswordInput as Q } from "@ark-ui/vue/password-input";
|
|
12
|
+
import { TreeView as Te } from "@ark-ui/vue/tree-view";
|
|
13
|
+
//#region src/components/Tabs/context.ts
|
|
14
|
+
var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
15
|
+
inheritAttrs: !1,
|
|
16
|
+
__name: "Tabs",
|
|
17
|
+
props: {
|
|
18
|
+
modelValue: { default: void 0 },
|
|
19
|
+
defaultValue: { default: void 0 },
|
|
20
|
+
label: {},
|
|
21
|
+
orientation: { default: void 0 },
|
|
22
|
+
activationMode: { default: void 0 },
|
|
23
|
+
lazyMount: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
unmountOnExit: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
classes: {}
|
|
32
|
+
},
|
|
33
|
+
emits: ["update:modelValue"],
|
|
34
|
+
setup(t, { emit: n }) {
|
|
35
|
+
let r = t, i = e("tabs", Y, () => r.classes), a = n, o = H(), s = i(), c = m(() => r.modelValue);
|
|
36
|
+
return M(Ee, m(() => r.modelValue === null)), (e, n) => (j(), h(V(X).Root, T({
|
|
37
|
+
...V(o),
|
|
38
|
+
class: V(s).base({ class: E(V(o).class) })
|
|
39
|
+
}, {
|
|
40
|
+
"model-value": c.value,
|
|
41
|
+
"default-value": t.defaultValue,
|
|
42
|
+
orientation: t.orientation,
|
|
43
|
+
"activation-mode": t.activationMode,
|
|
44
|
+
"lazy-mount": t.lazyMount,
|
|
45
|
+
"unmount-on-exit": t.unmountOnExit,
|
|
46
|
+
translations: t.label ? { listLabel: t.label } : void 0,
|
|
47
|
+
"onUpdate:modelValue": n[0] ||= (e) => a("update:modelValue", e)
|
|
48
|
+
}), {
|
|
49
|
+
default: K(() => [F(e.$slots, "default")]),
|
|
50
|
+
_: 3
|
|
51
|
+
}, 16, [
|
|
52
|
+
"model-value",
|
|
53
|
+
"default-value",
|
|
54
|
+
"orientation",
|
|
55
|
+
"activation-mode",
|
|
56
|
+
"lazy-mount",
|
|
57
|
+
"unmount-on-exit",
|
|
58
|
+
"translations"
|
|
59
|
+
]));
|
|
60
|
+
}
|
|
61
|
+
}), Oe = /* @__PURE__ */ S({
|
|
62
|
+
inheritAttrs: !1,
|
|
63
|
+
__name: "TabsContent",
|
|
64
|
+
props: {
|
|
65
|
+
value: {},
|
|
66
|
+
classes: {}
|
|
67
|
+
},
|
|
68
|
+
setup(t) {
|
|
69
|
+
let n = t, r = e("tabs", Y, () => n.classes), i = H(), a = r();
|
|
70
|
+
return (e, n) => (j(), h(V(X).Content, T({
|
|
71
|
+
...V(i),
|
|
72
|
+
class: V(a).content({ class: E(V(i).class) })
|
|
73
|
+
}, { value: t.value }), {
|
|
74
|
+
default: K(() => [F(e.$slots, "default")]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 16, ["value"]));
|
|
77
|
+
}
|
|
78
|
+
}), ke = /* @__PURE__ */ S({
|
|
79
|
+
inheritAttrs: !1,
|
|
80
|
+
__name: "TabsList",
|
|
81
|
+
props: { scrollable: { type: Boolean } },
|
|
82
|
+
setup(t) {
|
|
83
|
+
let n = t, r = e("tabs", Y), i = H(), a = r(), o = W("list"), s = N({
|
|
84
|
+
start: !1,
|
|
85
|
+
end: !1
|
|
86
|
+
}), c = () => {
|
|
87
|
+
o.value?.$el && (s.value = be(o.value.$el));
|
|
88
|
+
}, l;
|
|
89
|
+
k(() => {
|
|
90
|
+
n.scrollable && o.value?.$el && (c(), l = new ResizeObserver(c), l.observe(o.value.$el));
|
|
91
|
+
}), O(() => l?.disconnect());
|
|
92
|
+
function u(e) {
|
|
93
|
+
let t = o.value?.$el;
|
|
94
|
+
if (!t) return;
|
|
95
|
+
let n = getComputedStyle(t).direction === "rtl", r = t.clientWidth * .8 * (e ? 1 : -1) * (n ? -1 : 1), i = !matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
96
|
+
t.scrollBy({
|
|
97
|
+
left: r,
|
|
98
|
+
behavior: i ? "smooth" : "auto"
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return (e, n) => t.scrollable ? (j(), _("div", {
|
|
102
|
+
key: 0,
|
|
103
|
+
class: E(V(a).scroller())
|
|
104
|
+
}, [
|
|
105
|
+
s.value.start ? (j(), _("button", {
|
|
106
|
+
key: 0,
|
|
107
|
+
type: "button",
|
|
108
|
+
tabindex: "-1",
|
|
109
|
+
"aria-hidden": "true",
|
|
110
|
+
"data-side": "start",
|
|
111
|
+
class: E(V(a).scrollButton()),
|
|
112
|
+
onClick: n[0] ||= (e) => u(!1)
|
|
113
|
+
}, [x(V(re), { class: E(V(a).scrollIcon()) }, null, 8, ["class"])], 2)) : g("", !0),
|
|
114
|
+
x(V(X).List, T({
|
|
115
|
+
ref_key: "list",
|
|
116
|
+
ref: o
|
|
117
|
+
}, {
|
|
118
|
+
...V(i),
|
|
119
|
+
class: V(a).list({ class: [V(a).scrollList(), E(V(i).class)] })
|
|
120
|
+
}, { onScroll: c }), {
|
|
121
|
+
default: K(() => [F(e.$slots, "default")]),
|
|
122
|
+
_: 3
|
|
123
|
+
}, 16),
|
|
124
|
+
s.value.end ? (j(), _("button", {
|
|
125
|
+
key: 1,
|
|
126
|
+
type: "button",
|
|
127
|
+
tabindex: "-1",
|
|
128
|
+
"aria-hidden": "true",
|
|
129
|
+
"data-side": "end",
|
|
130
|
+
class: E(V(a).scrollButton()),
|
|
131
|
+
onClick: n[1] ||= (e) => u(!0)
|
|
132
|
+
}, [x(V(ie), { class: E(V(a).scrollIcon()) }, null, 8, ["class"])], 2)) : g("", !0)
|
|
133
|
+
], 2)) : (j(), h(V(X).List, D(T({ key: 1 }, {
|
|
134
|
+
...V(i),
|
|
135
|
+
class: V(a).list({ class: E(V(i).class) })
|
|
136
|
+
})), {
|
|
137
|
+
default: K(() => [F(e.$slots, "default")]),
|
|
138
|
+
_: 3
|
|
139
|
+
}, 16));
|
|
140
|
+
}
|
|
141
|
+
}), Ae = ["disabled"], je = /* @__PURE__ */ S({
|
|
142
|
+
inheritAttrs: !1,
|
|
143
|
+
__name: "TabsTrigger",
|
|
144
|
+
props: {
|
|
145
|
+
value: {},
|
|
146
|
+
icon: {},
|
|
147
|
+
disabled: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
default: void 0
|
|
150
|
+
},
|
|
151
|
+
closable: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: !1
|
|
154
|
+
},
|
|
155
|
+
controls: { default: void 0 },
|
|
156
|
+
classes: {}
|
|
157
|
+
},
|
|
158
|
+
emits: ["close"],
|
|
159
|
+
setup(t, { emit: n }) {
|
|
160
|
+
let r = t, i = n, a = e("tabs", Y, () => r.classes), o = H(), s = m(() => a({ closable: r.closable })), c = C(Ee, null), l = W("trigger"), u = N(!1), d = () => {
|
|
161
|
+
let e = l.value?.$el;
|
|
162
|
+
u.value = !!e && e.closest("[role=tablist]")?.querySelector("[role=tab]:not([disabled])") === e;
|
|
163
|
+
};
|
|
164
|
+
k(d), A(d);
|
|
165
|
+
let f = m(() => ({
|
|
166
|
+
...r.controls === void 0 ? {} : { "aria-controls": r.controls },
|
|
167
|
+
...c?.value && u.value ? { tabIndex: 0 } : {}
|
|
168
|
+
}));
|
|
169
|
+
function p(e) {
|
|
170
|
+
!r.closable || e.key !== "Delete" || e.defaultPrevented || r.disabled || (e.preventDefault(), fe(e.currentTarget, () => i("close", r.value)));
|
|
171
|
+
}
|
|
172
|
+
function y(e) {
|
|
173
|
+
let t = e.currentTarget.parentElement?.querySelector("[role=tab]");
|
|
174
|
+
t && fe(t, () => i("close", r.value));
|
|
175
|
+
}
|
|
176
|
+
return (e, n) => t.closable ? (j(), _("span", {
|
|
177
|
+
key: 0,
|
|
178
|
+
role: "presentation",
|
|
179
|
+
class: E(s.value.tab())
|
|
180
|
+
}, [x(V(X).Trigger, T({
|
|
181
|
+
ref_key: "trigger",
|
|
182
|
+
ref: l
|
|
183
|
+
}, {
|
|
184
|
+
...V(o),
|
|
185
|
+
...f.value,
|
|
186
|
+
class: s.value.trigger({ class: E(V(o).class) })
|
|
187
|
+
}, {
|
|
188
|
+
value: t.value,
|
|
189
|
+
disabled: t.disabled,
|
|
190
|
+
"aria-keyshortcuts": "Delete",
|
|
191
|
+
onKeydown: p
|
|
192
|
+
}), {
|
|
193
|
+
default: K(() => [t.icon ? (j(), h(I(t.icon), {
|
|
194
|
+
key: 0,
|
|
195
|
+
class: E(s.value.icon()),
|
|
196
|
+
"aria-hidden": "true"
|
|
197
|
+
}, null, 8, ["class"])) : g("", !0), F(e.$slots, "default")]),
|
|
198
|
+
_: 3
|
|
199
|
+
}, 16, ["value", "disabled"]), v("button", {
|
|
200
|
+
type: "button",
|
|
201
|
+
tabindex: "-1",
|
|
202
|
+
"aria-hidden": "true",
|
|
203
|
+
class: E(s.value.close()),
|
|
204
|
+
disabled: t.disabled,
|
|
205
|
+
onClick: y
|
|
206
|
+
}, [x(V(J), { class: E(s.value.closeIcon()) }, null, 8, ["class"])], 10, Ae)], 2)) : (j(), h(V(X).Trigger, T({
|
|
207
|
+
key: 1,
|
|
208
|
+
ref_key: "trigger",
|
|
209
|
+
ref: l
|
|
210
|
+
}, {
|
|
211
|
+
...V(o),
|
|
212
|
+
...f.value,
|
|
213
|
+
class: s.value.trigger({ class: E(V(o).class) })
|
|
214
|
+
}, {
|
|
215
|
+
value: t.value,
|
|
216
|
+
disabled: t.disabled
|
|
217
|
+
}), {
|
|
218
|
+
default: K(() => [t.icon ? (j(), h(I(t.icon), {
|
|
219
|
+
key: 0,
|
|
220
|
+
class: E(s.value.icon()),
|
|
221
|
+
"aria-hidden": "true"
|
|
222
|
+
}, null, 8, ["class"])) : g("", !0), F(e.$slots, "default")]),
|
|
223
|
+
_: 3
|
|
224
|
+
}, 16, ["value", "disabled"]));
|
|
225
|
+
}
|
|
226
|
+
}), $ = Symbol("wirecore-dialog-root"), Me = Symbol("wirecore-dialog-content"), Ne = /* @__PURE__ */ S({
|
|
227
|
+
__name: "Dialog",
|
|
228
|
+
props: {
|
|
229
|
+
open: {
|
|
230
|
+
type: Boolean,
|
|
231
|
+
default: void 0
|
|
232
|
+
},
|
|
233
|
+
defaultOpen: {
|
|
234
|
+
type: Boolean,
|
|
235
|
+
default: void 0
|
|
236
|
+
},
|
|
237
|
+
role: { default: "dialog" },
|
|
238
|
+
modal: {
|
|
239
|
+
type: Boolean,
|
|
240
|
+
default: !0
|
|
241
|
+
},
|
|
242
|
+
closeOnEscape: {
|
|
243
|
+
type: Boolean,
|
|
244
|
+
default: !0
|
|
245
|
+
},
|
|
246
|
+
closeOnInteractOutside: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
default: void 0
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
emits: ["update:open"],
|
|
252
|
+
setup(e, { emit: t }) {
|
|
253
|
+
let n = e, r = t;
|
|
254
|
+
M($, m(() => ({ modal: n.modal })));
|
|
255
|
+
let i = L(null);
|
|
256
|
+
M(Me, i);
|
|
257
|
+
let a = () => le(i.value) ?? (n.role === "alertdialog" ? i.value?.querySelector("[data-part=close-trigger]") : null) ?? null;
|
|
258
|
+
return (t, n) => (j(), h(V(Z).Root, {
|
|
259
|
+
open: e.open,
|
|
260
|
+
"default-open": e.defaultOpen,
|
|
261
|
+
role: e.role,
|
|
262
|
+
modal: e.modal,
|
|
263
|
+
"close-on-escape": e.closeOnEscape,
|
|
264
|
+
"close-on-interact-outside": e.closeOnInteractOutside,
|
|
265
|
+
"initial-focus-el": a,
|
|
266
|
+
"lazy-mount": "",
|
|
267
|
+
"unmount-on-exit": "",
|
|
268
|
+
"onUpdate:open": n[0] ||= (e) => r("update:open", e)
|
|
269
|
+
}, {
|
|
270
|
+
default: K(() => [F(t.$slots, "default")]),
|
|
271
|
+
_: 3
|
|
272
|
+
}, 8, [
|
|
273
|
+
"open",
|
|
274
|
+
"default-open",
|
|
275
|
+
"role",
|
|
276
|
+
"modal",
|
|
277
|
+
"close-on-escape",
|
|
278
|
+
"close-on-interact-outside"
|
|
279
|
+
]));
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region src/components/Dialog/drag.ts
|
|
284
|
+
function Pe(e) {
|
|
285
|
+
let t = N({
|
|
286
|
+
x: 0,
|
|
287
|
+
y: 0
|
|
288
|
+
}), n = null, r = (e, n) => {
|
|
289
|
+
let r = n.getBoundingClientRect(), i = {
|
|
290
|
+
x: r.x - t.value.x,
|
|
291
|
+
y: r.y - t.value.y,
|
|
292
|
+
width: r.width,
|
|
293
|
+
height: r.height
|
|
294
|
+
};
|
|
295
|
+
t.value = de(e, i, {
|
|
296
|
+
width: innerWidth,
|
|
297
|
+
height: innerHeight
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
function i(r) {
|
|
301
|
+
let i = r.currentTarget;
|
|
302
|
+
if (!e() || r.button !== 0 || r.target.closest("button, a, input")) return;
|
|
303
|
+
let a = i.closest("[data-part=content]");
|
|
304
|
+
a && (n = {
|
|
305
|
+
id: r.pointerId,
|
|
306
|
+
x: r.clientX,
|
|
307
|
+
y: r.clientY,
|
|
308
|
+
origin: { ...t.value },
|
|
309
|
+
content: a
|
|
310
|
+
}, i.setPointerCapture?.(r.pointerId), r.preventDefault());
|
|
311
|
+
}
|
|
312
|
+
function a(e) {
|
|
313
|
+
n && e.pointerId === n.id && r({
|
|
314
|
+
x: n.origin.x + e.clientX - n.x,
|
|
315
|
+
y: n.origin.y + e.clientY - n.y
|
|
316
|
+
}, n.content);
|
|
317
|
+
}
|
|
318
|
+
function o() {
|
|
319
|
+
n = null;
|
|
320
|
+
}
|
|
321
|
+
function s(n) {
|
|
322
|
+
if (!e()) return;
|
|
323
|
+
let i = he(n);
|
|
324
|
+
i && (n.preventDefault(), r({
|
|
325
|
+
x: t.value.x + i.x,
|
|
326
|
+
y: t.value.y + i.y
|
|
327
|
+
}, n.currentTarget));
|
|
328
|
+
}
|
|
329
|
+
return {
|
|
330
|
+
style: m(() => e() && (t.value.x || t.value.y) ? { translate: `${t.value.x}px ${t.value.y}px` } : void 0),
|
|
331
|
+
reset: () => {
|
|
332
|
+
t.value = {
|
|
333
|
+
x: 0,
|
|
334
|
+
y: 0
|
|
335
|
+
};
|
|
336
|
+
},
|
|
337
|
+
header: {
|
|
338
|
+
pointerdown: i,
|
|
339
|
+
pointermove: a,
|
|
340
|
+
pointerup: o,
|
|
341
|
+
pointercancel: o
|
|
342
|
+
},
|
|
343
|
+
onKeyDown: s
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region src/components/Dialog/DialogContent.vue?vue&type=script&setup=true&lang.ts
|
|
348
|
+
var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
349
|
+
inheritAttrs: !1,
|
|
350
|
+
__name: "DialogContent",
|
|
351
|
+
props: {
|
|
352
|
+
title: {},
|
|
353
|
+
hideTitle: {
|
|
354
|
+
type: Boolean,
|
|
355
|
+
default: void 0
|
|
356
|
+
},
|
|
357
|
+
titlePosition: {},
|
|
358
|
+
description: {},
|
|
359
|
+
icon: {},
|
|
360
|
+
status: {},
|
|
361
|
+
size: {},
|
|
362
|
+
position: {},
|
|
363
|
+
fullscreen: { type: Boolean },
|
|
364
|
+
maximizable: { type: Boolean },
|
|
365
|
+
maximized: {
|
|
366
|
+
type: Boolean,
|
|
367
|
+
default: void 0
|
|
368
|
+
},
|
|
369
|
+
defaultMaximized: { type: Boolean },
|
|
370
|
+
draggable: { type: Boolean },
|
|
371
|
+
closable: {
|
|
372
|
+
type: Boolean,
|
|
373
|
+
default: !0
|
|
374
|
+
},
|
|
375
|
+
scrollBehavior: {},
|
|
376
|
+
responsive: {
|
|
377
|
+
type: Boolean,
|
|
378
|
+
default: !0
|
|
379
|
+
},
|
|
380
|
+
closeLabel: {},
|
|
381
|
+
maximizeLabel: {},
|
|
382
|
+
restoreLabel: {},
|
|
383
|
+
portalTarget: {},
|
|
384
|
+
classes: {}
|
|
385
|
+
},
|
|
386
|
+
emits: ["update:maximized"],
|
|
387
|
+
setup(r, { expose: i, emit: a }) {
|
|
388
|
+
let o = t(), s = r, c = a, l = te(), u = e("dialog", me, () => s.classes), d = n("dialog", me), f = m(() => s.titlePosition ?? (d().titleInHeader ? "header" : "body")), y = H(), S = C($, null), w = m(() => S?.value.modal ?? !0), D = C(Me, null), O = W("content");
|
|
389
|
+
G(() => O.value?.$el ?? null, (e) => {
|
|
390
|
+
D && (D.value = e);
|
|
391
|
+
}, {
|
|
392
|
+
immediate: !0,
|
|
393
|
+
flush: "sync"
|
|
394
|
+
}), i({ focusFirst: () => _e(O.value?.$el) });
|
|
395
|
+
let k = N(s.defaultMaximized ?? !1), A = m(() => s.maximized ?? k.value);
|
|
396
|
+
function M() {
|
|
397
|
+
let e = !A.value;
|
|
398
|
+
k.value = e, c("update:maximized", e);
|
|
399
|
+
}
|
|
400
|
+
let P = Pe(() => s.draggable && !A.value && !s.fullscreen), L = we();
|
|
401
|
+
G(() => L.value.open, (e) => !e && P.reset());
|
|
402
|
+
let B = m(() => u({
|
|
403
|
+
status: s.status,
|
|
404
|
+
size: s.size,
|
|
405
|
+
position: s.position,
|
|
406
|
+
scrollBehavior: s.scrollBehavior,
|
|
407
|
+
fullscreen: s.fullscreen || A.value,
|
|
408
|
+
responsive: s.responsive,
|
|
409
|
+
draggable: s.draggable && !A.value,
|
|
410
|
+
maximizable: s.maximizable,
|
|
411
|
+
hideTitle: s.hideTitle ?? !!l.header,
|
|
412
|
+
titleInHeader: f.value === "header"
|
|
413
|
+
}));
|
|
414
|
+
return (e, t) => (j(), h(p, { to: r.portalTarget ?? "body" }, [w.value ? (j(), h(V(Z).Backdrop, {
|
|
415
|
+
key: 0,
|
|
416
|
+
class: E(B.value.backdrop())
|
|
417
|
+
}, null, 8, ["class"])) : g("", !0), x(V(Z).Positioner, { class: E(B.value.positioner()) }, {
|
|
418
|
+
default: K(() => [x(V(Z).Content, T({
|
|
419
|
+
ref_key: "content",
|
|
420
|
+
ref: O
|
|
421
|
+
}, {
|
|
422
|
+
...V(y),
|
|
423
|
+
class: B.value.content({ class: E(V(y).class) }),
|
|
424
|
+
...V(P).style.value ? { style: [V(y).style, V(P).style.value] } : {},
|
|
425
|
+
...r.draggable ? { "aria-keyshortcuts": V(ge) } : {}
|
|
426
|
+
}, { onKeydown: t[0] ||= (e) => r.draggable && V(P).onKeyDown(e) }), {
|
|
427
|
+
default: K(() => [
|
|
428
|
+
v("div", T({ class: B.value.header() }, z(r.draggable ? V(P).header : {}, !0)), [
|
|
429
|
+
r.icon ? (j(), _("span", {
|
|
430
|
+
key: 0,
|
|
431
|
+
class: E(B.value.iconBox())
|
|
432
|
+
}, [(j(), h(I(r.icon), {
|
|
433
|
+
class: E(B.value.icon()),
|
|
434
|
+
"aria-hidden": "true"
|
|
435
|
+
}, null, 8, ["class"]))], 2)) : g("", !0),
|
|
436
|
+
e.$slots.header ? (j(), _("div", {
|
|
437
|
+
key: 1,
|
|
438
|
+
class: E(B.value.headerContent())
|
|
439
|
+
}, [F(e.$slots, "header"), f.value === "header" ? (j(), h(V(Z).Title, {
|
|
440
|
+
key: 0,
|
|
441
|
+
class: E(B.value.title())
|
|
442
|
+
}, {
|
|
443
|
+
default: K(() => [b(R(r.title), 1)]),
|
|
444
|
+
_: 1
|
|
445
|
+
}, 8, ["class"])) : g("", !0)], 2)) : f.value === "header" ? (j(), h(V(Z).Title, {
|
|
446
|
+
key: 2,
|
|
447
|
+
class: E(B.value.title())
|
|
448
|
+
}, {
|
|
449
|
+
default: K(() => [b(R(r.title), 1)]),
|
|
450
|
+
_: 1
|
|
451
|
+
}, 8, ["class"])) : g("", !0),
|
|
452
|
+
r.maximizable ? (j(), _("button", {
|
|
453
|
+
key: 3,
|
|
454
|
+
type: "button",
|
|
455
|
+
class: E(B.value.maximize()),
|
|
456
|
+
"aria-label": A.value ? r.restoreLabel ?? V(o).dialog.restore : r.maximizeLabel ?? V(o).dialog.maximize,
|
|
457
|
+
onClick: M
|
|
458
|
+
}, [(j(), h(I(A.value ? V(ce) : V(q)), {
|
|
459
|
+
class: E(B.value.maximizeIcon()),
|
|
460
|
+
"aria-hidden": "true"
|
|
461
|
+
}, null, 8, ["class"]))], 10, Fe)) : g("", !0),
|
|
462
|
+
r.closable ? (j(), h(V(Z).CloseTrigger, {
|
|
463
|
+
key: 4,
|
|
464
|
+
class: E(B.value.close()),
|
|
465
|
+
"aria-label": r.closeLabel ?? V(o).common.close
|
|
466
|
+
}, {
|
|
467
|
+
default: K(() => [x(V(J), {
|
|
468
|
+
class: E(B.value.closeIcon()),
|
|
469
|
+
"aria-hidden": "true"
|
|
470
|
+
}, null, 8, ["class"])]),
|
|
471
|
+
_: 1
|
|
472
|
+
}, 8, ["class", "aria-label"])) : g("", !0)
|
|
473
|
+
], 16),
|
|
474
|
+
v("div", { class: E(B.value.body()) }, [
|
|
475
|
+
f.value === "header" ? g("", !0) : (j(), h(V(Z).Title, {
|
|
476
|
+
key: 0,
|
|
477
|
+
class: E(B.value.title())
|
|
478
|
+
}, {
|
|
479
|
+
default: K(() => [b(R(r.title), 1)]),
|
|
480
|
+
_: 1
|
|
481
|
+
}, 8, ["class"])),
|
|
482
|
+
r.description ? (j(), h(V(Z).Description, {
|
|
483
|
+
key: 1,
|
|
484
|
+
class: E(B.value.description())
|
|
485
|
+
}, {
|
|
486
|
+
default: K(() => [b(R(r.description), 1)]),
|
|
487
|
+
_: 1
|
|
488
|
+
}, 8, ["class"])) : g("", !0),
|
|
489
|
+
F(e.$slots, "default")
|
|
490
|
+
], 2),
|
|
491
|
+
e.$slots.footer ? (j(), _("div", {
|
|
492
|
+
key: 0,
|
|
493
|
+
class: E(B.value.footer())
|
|
494
|
+
}, [F(e.$slots, "footer")], 2)) : g("", !0)
|
|
495
|
+
]),
|
|
496
|
+
_: 3
|
|
497
|
+
}, 16)]),
|
|
498
|
+
_: 3
|
|
499
|
+
}, 8, ["class"])], 8, ["to"]));
|
|
500
|
+
}
|
|
501
|
+
}), Le = ["data-level", "data-filled"], Re = ["id"], ze = ["id", "aria-label"], Be = ["data-met"], Ve = /* @__PURE__ */ S({
|
|
502
|
+
inheritAttrs: !1,
|
|
503
|
+
__name: "PasswordInput",
|
|
504
|
+
props: /*@__PURE__*/ w({
|
|
505
|
+
size: {},
|
|
506
|
+
invalid: {
|
|
507
|
+
type: Boolean,
|
|
508
|
+
default: void 0
|
|
509
|
+
},
|
|
510
|
+
success: {
|
|
511
|
+
type: Boolean,
|
|
512
|
+
default: void 0
|
|
513
|
+
},
|
|
514
|
+
disabled: {
|
|
515
|
+
type: Boolean,
|
|
516
|
+
default: void 0
|
|
517
|
+
},
|
|
518
|
+
readOnly: {
|
|
519
|
+
type: Boolean,
|
|
520
|
+
default: void 0
|
|
521
|
+
},
|
|
522
|
+
required: {
|
|
523
|
+
type: Boolean,
|
|
524
|
+
default: void 0
|
|
525
|
+
},
|
|
526
|
+
name: {},
|
|
527
|
+
defaultVisible: {
|
|
528
|
+
type: Boolean,
|
|
529
|
+
default: void 0
|
|
530
|
+
},
|
|
531
|
+
visible: {
|
|
532
|
+
type: Boolean,
|
|
533
|
+
default: void 0
|
|
534
|
+
},
|
|
535
|
+
autocomplete: { default: "current-password" },
|
|
536
|
+
strength: {
|
|
537
|
+
type: Boolean,
|
|
538
|
+
default: !1
|
|
539
|
+
},
|
|
540
|
+
requirements: { default: void 0 },
|
|
541
|
+
loading: { type: Boolean },
|
|
542
|
+
clearable: { type: Boolean },
|
|
543
|
+
clearLabel: {},
|
|
544
|
+
defaultValue: { default: void 0 },
|
|
545
|
+
id: {},
|
|
546
|
+
mono: { type: Boolean },
|
|
547
|
+
classes: {}
|
|
548
|
+
}, {
|
|
549
|
+
modelValue: {},
|
|
550
|
+
modelModifiers: {}
|
|
551
|
+
}),
|
|
552
|
+
emits: /*@__PURE__*/ w(["update:visible"], ["update:modelValue"]),
|
|
553
|
+
setup(n, { expose: s, emit: c }) {
|
|
554
|
+
let l = t(), u = n, d = c, p = e("passwordInput", ve, () => u.classes), y = ee(n, "modelValue"), S = H(), C = m(() => r(S)), w = Ce(), D = i(), O = m(() => !!u.invalid || !!w?.value.invalid), k = m(() => !O.value && (!!u.success || D.value.success)), A = m(() => p({
|
|
555
|
+
size: u.size,
|
|
556
|
+
success: k.value,
|
|
557
|
+
mono: u.mono
|
|
558
|
+
})), M = U(), F = N(u.defaultValue), I = m(() => y.value ?? F.value), L = m(() => ye(I.value ?? "")), z = m(() => I.value ? l.passwordStrength.levels[L.value] : ""), B = m(() => ue(I.value ?? "", u.requirements ?? []));
|
|
559
|
+
function te(e) {
|
|
560
|
+
F.value = e.target.value, y.value = F.value;
|
|
561
|
+
}
|
|
562
|
+
let G = m(() => u.strength || u.requirements?.length ? [
|
|
563
|
+
w?.value.ariaDescribedby,
|
|
564
|
+
u.strength && `${M}strength`,
|
|
565
|
+
u.requirements?.length && `${M}requirements`
|
|
566
|
+
].filter(Boolean).join(" ") : void 0), re = m(() => !!u.disabled || !!w?.value.disabled), ie = m(() => !!u.readOnly || !!w?.value.readOnly), q = W("control");
|
|
567
|
+
function ce() {
|
|
568
|
+
let e = q.value?.$el.querySelector("input");
|
|
569
|
+
e && (xe(e), e.focus());
|
|
570
|
+
}
|
|
571
|
+
s(a(() => q.value?.$el.querySelector("input")));
|
|
572
|
+
let J = m(() => u.autocomplete), le = m(() => pe(u.id, "input", { input: w?.value.ids.control }));
|
|
573
|
+
return (e, t) => (j(), h(V(Q).Root, T({
|
|
574
|
+
class: A.value.base({ class: C.value.className }),
|
|
575
|
+
style: C.value.style,
|
|
576
|
+
invalid: n.invalid,
|
|
577
|
+
disabled: n.disabled,
|
|
578
|
+
"read-only": n.readOnly,
|
|
579
|
+
required: n.required,
|
|
580
|
+
name: n.name,
|
|
581
|
+
"default-visible": n.defaultVisible,
|
|
582
|
+
visible: n.visible,
|
|
583
|
+
"auto-complete": J.value,
|
|
584
|
+
translations: V(l).passwordInput
|
|
585
|
+
}, le.value, { onVisibilityChange: t[0] ||= (e) => d("update:visible", e.visible) }), {
|
|
586
|
+
default: K(() => [
|
|
587
|
+
x(V(Q).Control, {
|
|
588
|
+
ref_key: "control",
|
|
589
|
+
ref: q,
|
|
590
|
+
class: E(A.value.control())
|
|
591
|
+
}, {
|
|
592
|
+
default: K(() => [
|
|
593
|
+
x(V(Q).Input, T(C.value.rest, {
|
|
594
|
+
"aria-describedby": G.value,
|
|
595
|
+
"aria-busy": n.loading || void 0,
|
|
596
|
+
value: I.value,
|
|
597
|
+
class: A.value.input(),
|
|
598
|
+
onInput: te
|
|
599
|
+
}), null, 16, [
|
|
600
|
+
"aria-describedby",
|
|
601
|
+
"aria-busy",
|
|
602
|
+
"value",
|
|
603
|
+
"class"
|
|
604
|
+
]),
|
|
605
|
+
n.loading || n.clearable || k.value ? (j(), h(o, {
|
|
606
|
+
key: 0,
|
|
607
|
+
loading: n.loading,
|
|
608
|
+
clear: n.clearable && !!I.value && !re.value && !ie.value,
|
|
609
|
+
"clear-label": n.clearLabel ?? V(l).field.clear,
|
|
610
|
+
success: k.value,
|
|
611
|
+
classes: {
|
|
612
|
+
spinner: A.value.spinner(),
|
|
613
|
+
clear: A.value.clear(),
|
|
614
|
+
clearIcon: A.value.clearIcon(),
|
|
615
|
+
statusIcon: A.value.statusIcon()
|
|
616
|
+
},
|
|
617
|
+
onClear: ce
|
|
618
|
+
}, null, 8, [
|
|
619
|
+
"loading",
|
|
620
|
+
"clear",
|
|
621
|
+
"clear-label",
|
|
622
|
+
"success",
|
|
623
|
+
"classes"
|
|
624
|
+
])) : g("", !0),
|
|
625
|
+
x(V(Q).VisibilityTrigger, { class: E(A.value.toggle()) }, {
|
|
626
|
+
default: K(() => [x(V(Q).Indicator, null, {
|
|
627
|
+
fallback: K(() => [x(V(oe), {
|
|
628
|
+
class: E(A.value.toggleIcon()),
|
|
629
|
+
"aria-hidden": "true"
|
|
630
|
+
}, null, 8, ["class"])]),
|
|
631
|
+
default: K(() => [x(V(se), {
|
|
632
|
+
class: E(A.value.toggleIcon()),
|
|
633
|
+
"aria-hidden": "true"
|
|
634
|
+
}, null, 8, ["class"])]),
|
|
635
|
+
_: 1
|
|
636
|
+
})]),
|
|
637
|
+
_: 1
|
|
638
|
+
}, 8, ["class"])
|
|
639
|
+
]),
|
|
640
|
+
_: 1
|
|
641
|
+
}, 8, ["class"]),
|
|
642
|
+
n.strength ? (j(), _("div", {
|
|
643
|
+
key: 0,
|
|
644
|
+
class: E(A.value.strength())
|
|
645
|
+
}, [v("div", {
|
|
646
|
+
class: E(A.value.meter()),
|
|
647
|
+
"aria-hidden": "true"
|
|
648
|
+
}, [(j(), _(f, null, P(4, (e) => v("span", {
|
|
649
|
+
key: e,
|
|
650
|
+
class: E(A.value.bar()),
|
|
651
|
+
"data-level": L.value,
|
|
652
|
+
"data-filled": e <= L.value || void 0
|
|
653
|
+
}, null, 10, Le)), 64))], 2), v("span", {
|
|
654
|
+
id: `${V(M)}strength`,
|
|
655
|
+
class: E(A.value.strengthText()),
|
|
656
|
+
"aria-live": "polite"
|
|
657
|
+
}, [z.value ? (j(), _(f, { key: 0 }, [b(R(V(l).passwordStrength.label(z.value)), 1)], 64)) : g("", !0)], 10, Re)], 2)) : g("", !0),
|
|
658
|
+
n.requirements?.length ? (j(), _("ul", {
|
|
659
|
+
key: 1,
|
|
660
|
+
id: `${V(M)}requirements`,
|
|
661
|
+
class: E(A.value.requirements()),
|
|
662
|
+
"aria-label": V(l).passwordRequirements.label
|
|
663
|
+
}, [(j(!0), _(f, null, P(n.requirements, (e, t) => (j(), _("li", {
|
|
664
|
+
key: e.label,
|
|
665
|
+
class: E(A.value.requirement()),
|
|
666
|
+
"data-met": B.value[t] || void 0
|
|
667
|
+
}, [
|
|
668
|
+
B.value[t] ? (j(), h(V(ne), {
|
|
669
|
+
key: 0,
|
|
670
|
+
class: E(A.value.requirementIcon()),
|
|
671
|
+
"aria-hidden": "true"
|
|
672
|
+
}, null, 8, ["class"])) : (j(), h(V(ae), {
|
|
673
|
+
key: 1,
|
|
674
|
+
class: E(A.value.requirementIcon()),
|
|
675
|
+
"aria-hidden": "true"
|
|
676
|
+
}, null, 8, ["class"])),
|
|
677
|
+
b(" " + R(e.label), 1),
|
|
678
|
+
v("span", { class: E(A.value.requirementState()) }, R(`: ${B.value[t] ? V(l).passwordRequirements.met : V(l).passwordRequirements.unmet}`), 3)
|
|
679
|
+
], 10, Be))), 128))], 10, ze)) : g("", !0)
|
|
680
|
+
]),
|
|
681
|
+
_: 1
|
|
682
|
+
}, 16, [
|
|
683
|
+
"class",
|
|
684
|
+
"style",
|
|
685
|
+
"invalid",
|
|
686
|
+
"disabled",
|
|
687
|
+
"read-only",
|
|
688
|
+
"required",
|
|
689
|
+
"name",
|
|
690
|
+
"default-visible",
|
|
691
|
+
"visible",
|
|
692
|
+
"auto-complete",
|
|
693
|
+
"translations"
|
|
694
|
+
]));
|
|
695
|
+
}
|
|
696
|
+
}), He = /* @__PURE__ */ S({
|
|
697
|
+
inheritAttrs: !1,
|
|
698
|
+
__name: "Tree",
|
|
699
|
+
props: {
|
|
700
|
+
items: {},
|
|
701
|
+
label: {},
|
|
702
|
+
selectionMode: { default: "single" },
|
|
703
|
+
selectedValue: { default: void 0 },
|
|
704
|
+
defaultSelectedValue: { default: void 0 },
|
|
705
|
+
expandedValue: { default: void 0 },
|
|
706
|
+
defaultExpandedValue: { default: void 0 },
|
|
707
|
+
checkable: {
|
|
708
|
+
type: Boolean,
|
|
709
|
+
default: !1
|
|
710
|
+
},
|
|
711
|
+
checkedValue: { default: void 0 },
|
|
712
|
+
defaultCheckedValue: { default: void 0 },
|
|
713
|
+
checkStrictly: {
|
|
714
|
+
type: Boolean,
|
|
715
|
+
default: !1
|
|
716
|
+
},
|
|
717
|
+
checkedStrategy: { default: void 0 },
|
|
718
|
+
reorderable: {
|
|
719
|
+
type: Boolean,
|
|
720
|
+
default: !1
|
|
721
|
+
},
|
|
722
|
+
allowDrop: {},
|
|
723
|
+
group: {},
|
|
724
|
+
name: {},
|
|
725
|
+
loadChildren: {},
|
|
726
|
+
dataSource: {},
|
|
727
|
+
filter: {
|
|
728
|
+
type: Boolean,
|
|
729
|
+
default: !1
|
|
730
|
+
},
|
|
731
|
+
filterValue: { default: void 0 },
|
|
732
|
+
filterMode: { default: "filter" },
|
|
733
|
+
expandControls: {
|
|
734
|
+
type: Boolean,
|
|
735
|
+
default: !1
|
|
736
|
+
},
|
|
737
|
+
showLines: {
|
|
738
|
+
type: Boolean,
|
|
739
|
+
default: !1
|
|
740
|
+
},
|
|
741
|
+
emptyText: {},
|
|
742
|
+
classes: {}
|
|
743
|
+
},
|
|
744
|
+
emits: [
|
|
745
|
+
"update:selectedValue",
|
|
746
|
+
"update:expandedValue",
|
|
747
|
+
"update:checkedValue",
|
|
748
|
+
"update:filterValue",
|
|
749
|
+
"move",
|
|
750
|
+
"transfer",
|
|
751
|
+
"loadChildren"
|
|
752
|
+
],
|
|
753
|
+
setup(n, { expose: r, emit: i }) {
|
|
754
|
+
let a = t(), o = n, p = e("tree", Se, () => o.classes), v = i, S = te(), C = H(), w = p(), D = a.tree, O = N(null), k = m(() => O.value?.$el ?? null), A = d(o, v, k);
|
|
755
|
+
M(c, A.drag), M(s, {
|
|
756
|
+
...A,
|
|
757
|
+
showLines: B(o, "showLines")
|
|
758
|
+
});
|
|
759
|
+
let I = m(() => o.label ?? C["aria-label"] ?? a.tree.treeLabel), L = m(() => o.filter || o.filterValue !== void 0), z = m(() => !A.view.value.length && (U.value !== void 0 || !!S.empty || o.group !== void 0)), U = m(() => o.emptyText ?? (A.query.value.trim() ? D.noMatches : o.group === void 0 ? void 0 : a.common.empty)), ee = m(() => o.reorderable || A.lazy.value || L.value || o.group !== void 0);
|
|
760
|
+
return r({
|
|
761
|
+
expandAll: A.expandAll,
|
|
762
|
+
collapseAll: A.collapseAll,
|
|
763
|
+
invalidate: A.invalidate,
|
|
764
|
+
focusNode: A.focusNode
|
|
765
|
+
}), (e, t) => (j(), h(V(Te).Root, T({
|
|
766
|
+
...V(C),
|
|
767
|
+
"aria-label": void 0,
|
|
768
|
+
...V(A).ownChecks.value ? {} : {
|
|
769
|
+
checkedValue: n.checkedValue,
|
|
770
|
+
defaultCheckedValue: n.defaultCheckedValue
|
|
771
|
+
},
|
|
772
|
+
...V(pe)(V(C).id, "root"),
|
|
773
|
+
class: V(w).base({ class: E(V(C).class) })
|
|
774
|
+
}, {
|
|
775
|
+
ref_key: "root",
|
|
776
|
+
ref: O,
|
|
777
|
+
collection: V(A).collection.value,
|
|
778
|
+
"selection-mode": n.selectionMode,
|
|
779
|
+
"selected-value": V(A).selected.value,
|
|
780
|
+
"expanded-value": V(A).expanded.value,
|
|
781
|
+
translations: { treeLabel: I.value },
|
|
782
|
+
onSelectionChange: t[2] ||= (e) => V(A).onSelectionChange(e.selectedValue),
|
|
783
|
+
onExpandedChange: t[3] ||= (e) => V(A).setExpanded(e.expandedValue),
|
|
784
|
+
onCheckedChange: t[4] ||= (e) => V(A).ownChecks.value || V(A).onArkCheckedChange(e.checkedValue),
|
|
785
|
+
onKeydownCapture: V(A).onKeydown
|
|
786
|
+
}), {
|
|
787
|
+
default: K(() => [
|
|
788
|
+
n.label ? (j(), h(V(Te).Label, {
|
|
789
|
+
key: 0,
|
|
790
|
+
class: E(V(w).label())
|
|
791
|
+
}, {
|
|
792
|
+
default: K(() => [b(R(n.label), 1)]),
|
|
793
|
+
_: 1
|
|
794
|
+
}, 8, ["class"])) : g("", !0),
|
|
795
|
+
x(l, {
|
|
796
|
+
model: V(A),
|
|
797
|
+
filter: n.filter,
|
|
798
|
+
"filter-mode": n.filterMode,
|
|
799
|
+
"expand-controls": n.expandControls,
|
|
800
|
+
classes: n.classes
|
|
801
|
+
}, null, 8, [
|
|
802
|
+
"model",
|
|
803
|
+
"filter",
|
|
804
|
+
"filter-mode",
|
|
805
|
+
"expand-controls",
|
|
806
|
+
"classes"
|
|
807
|
+
]),
|
|
808
|
+
x(V(Te).Tree, {
|
|
809
|
+
class: E(V(w).tree()),
|
|
810
|
+
hidden: z.value || void 0
|
|
811
|
+
}, {
|
|
812
|
+
default: K(() => [(j(!0), _(f, null, P(V(A).view.value, (t, r) => (j(), h(u, {
|
|
813
|
+
key: t.id,
|
|
814
|
+
node: t,
|
|
815
|
+
"index-path": [r],
|
|
816
|
+
checkable: n.checkable
|
|
817
|
+
}, y({ _: 2 }, [e.$slots.node ? {
|
|
818
|
+
name: "node",
|
|
819
|
+
fn: K((t) => [F(e.$slots, "node", T({ ref_for: !0 }, t))]),
|
|
820
|
+
key: "0"
|
|
821
|
+
} : void 0]), 1032, [
|
|
822
|
+
"node",
|
|
823
|
+
"index-path",
|
|
824
|
+
"checkable"
|
|
825
|
+
]))), 128))]),
|
|
826
|
+
_: 3
|
|
827
|
+
}, 8, ["class", "hidden"]),
|
|
828
|
+
z.value ? (j(), _("div", {
|
|
829
|
+
key: 1,
|
|
830
|
+
class: E(V(w).empty()),
|
|
831
|
+
onDragover: t[0] ||= (...e) => V(A).onEmptyDragOver && V(A).onEmptyDragOver(...e),
|
|
832
|
+
onDrop: t[1] ||= (...e) => V(A).onEmptyDrop && V(A).onEmptyDrop(...e)
|
|
833
|
+
}, [F(e.$slots, "empty", {}, () => [b(R(U.value), 1)])], 34)) : g("", !0),
|
|
834
|
+
ee.value ? (j(), _("p", {
|
|
835
|
+
key: 2,
|
|
836
|
+
role: "status",
|
|
837
|
+
class: E(V(w).status())
|
|
838
|
+
}, R(V(A).status.value), 3)) : g("", !0)
|
|
839
|
+
]),
|
|
840
|
+
_: 3
|
|
841
|
+
}, 16, [
|
|
842
|
+
"collection",
|
|
843
|
+
"selection-mode",
|
|
844
|
+
"selected-value",
|
|
845
|
+
"expanded-value",
|
|
846
|
+
"translations",
|
|
847
|
+
"onKeydownCapture"
|
|
848
|
+
]));
|
|
849
|
+
}
|
|
850
|
+
});
|
|
851
|
+
//#endregion
|
|
852
|
+
export { $ as a, Oe as c, Ne as i, De as l, Ve as n, je as o, Ie as r, ke as s, He as t };
|