@pantograph/vue 0.23.2 → 0.23.3

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.
@@ -1,696 +0,0 @@
1
- import { defineComponent as ae, computed as g, h as i, createElementBlock as Te, openBlock as _e, normalizeClass as Ie, unref as pe, renderSlot as Be, ref as me, watch as ze, useSlots as we, useAttrs as ke, createBlock as De, normalizeProps as ve, guardReactiveProps as Ce, withCtx as ye, createVNode as Ae, createSlots as Fe, renderList as We } from "vue";
2
- import { createContext as Pe, SelectTrigger as $e, Primitive as Ge, SelectItem as Ne, SelectItemIndicator as Re, injectSelectRootContext as Ee, SelectPortal as je, SelectContent as Ke, useEmitAsProps as Me, SelectRoot as qe } from "reka-ui";
3
- import { g as re, t as J, x as oe, r as Se, h as ne, f as ue, u as Ue, o as he, w as be, q as He, j as Ve, s as Je } from "./Icon.vue_vue_type_style_index_0_lang-Kn_r4tp8.js";
4
- import { a as ce, g as Qe } from "./options-D4et5euX.js";
5
- import { _ as Xe } from "./ChipGroup.vue_vue_type_style_index_0_lang-Bln1W3La.js";
6
- import { _ as Ye } from "./Chip.vue_vue_type_style_index_0_lang-Ci2Oqnfd.js";
7
- import { getBemBlock as Ze, getBemElement as m, generateVariantClassList as $ } from "@pantograph/utils";
8
- import { g as et, b as tt, c as ot } from "./Popover.vue_vue_type_style_index_0_lang-B-MX4Q7D.js";
9
- import { cva as ge } from "class-variance-authority";
10
- import { b as l, d as Oe } from "./element-BfQuKSll.js";
11
- import { _ as nt } from "./Empty.vue_vue_type_style_index_0_lang-C4a5JepF.js";
12
- import { _ as rt } from "./Skeleton.vue_vue_type_style_index_0_lang-Xi8CteLp.js";
13
- import { _ as Le } from "./Divider.vue_vue_type_style_index_0_lang-B6fQsp1Y.js";
14
- import { u as at } from "./useInputDataStates-BVOCxFWp.js";
15
- import { u as it } from "./useLazyLoading-Zo-PEp2E.js";
16
- import { _ as lt } from "./ScrollContainer.vue_vue_type_style_index_0_lang-CZgFGbH_.js";
17
- const [xe, pt] = Pe("Select"), [st, ut] = Pe("_Select"), k = Ze("select"), de = ["sm", "md", "lg"], ct = ["error", "warning", "success"], gt = /* @__PURE__ */ ae({
18
- name: ce("SelectTrigger"),
19
- props: {
20
- getOptionSlot: {
21
- type: Function,
22
- required: !0
23
- }
24
- },
25
- setup(u, {
26
- slots: t,
27
- attrs: o
28
- }) {
29
- const B = et(), e = xe(), D = ({
30
- value: a
31
- }, h) => {
32
- if (h.stopPropagation(), a && oe(e.modelValue.value) && !e.getDisabled.value) {
33
- const W = e.modelValue.value.filter((H) => H !== a);
34
- e.modelValue.value = W, e.emit("update:modelValue", W);
35
- }
36
- }, p = m(k, "trigger"), U = ge(p, {
37
- variants: {
38
- size: $(de, p),
39
- status: $(ct, p),
40
- bordered: $("bordered", p),
41
- multiple: $("multiple", p),
42
- contentFit: $("content-fit", p),
43
- wrapped: $("wrapped", p),
44
- filled: $("filled", p)
45
- }
46
- }), x = g(() => {
47
- switch (e.getSize.value) {
48
- case "sm":
49
- return "xsm";
50
- case "lg":
51
- return "md";
52
- case "md":
53
- default:
54
- return "sm";
55
- }
56
- }), Q = g(() => {
57
- switch (e.getSize.value) {
58
- case "sm":
59
- return "2xsm";
60
- case "md":
61
- default:
62
- return "xsm";
63
- }
64
- }), G = g(() => {
65
- if (!e.props.multiple && re(e.modelValue.value) && !J(e.modelValue.value))
66
- return e.getOptionByValue(e.modelValue.value);
67
- }), N = (a = G.value) => {
68
- if (e.props.selectedItemIconAsTrailingIcon && ne(a) && "icon" in a)
69
- return a.icon;
70
- }, y = g(() => N()), S = g(() => {
71
- if (!e.props.noTrailing)
72
- return e.props.trailingIcon;
73
- }), R = g(() => !J(e.modelValue.value) && e.props.multiple && oe(e.modelValue.value)), A = g(() => ({
74
- modelValue: Se(e.modelValue.value),
75
- open: Se(e.open.value)
76
- })), z = (a) => ({
77
- ...A.value,
78
- option: e.getOptionByValue(a)
79
- }), X = g(() => ({
80
- disabled: e.getDisabled.value,
81
- reference: e.props.reference,
82
- tabindex: e.getDisabled.value ? void 0 : 0,
83
- asChild: B.value,
84
- as: "div",
85
- class: [U({
86
- size: e.getSize.value,
87
- status: e.getStatus.value === "success" && J(e.modelValue.value) ? void 0 : e.getStatus.value,
88
- bordered: e.props.bordered,
89
- multiple: e.props.multiple,
90
- contentFit: e.props.contentFit,
91
- wrapped: e.props.wrapped,
92
- filled: !J(e.modelValue.value)
93
- }), e.props.triggerCls],
94
- ...o
95
- })), F = (a, h = Q.value) => i(ue, {
96
- icon: a,
97
- size: h
98
- }), E = () => {
99
- var W;
100
- let a;
101
- const h = (W = t.triggerTrailing) == null ? void 0 : W.call(t, A.value);
102
- if (l(h) ? S.value && (a = F(S.value)) : a = h, a)
103
- return i("div", {
104
- class: [m(p, "trailing"), e.props.triggerTrailingCls]
105
- }, a);
106
- };
107
- return () => i($e, X.value, {
108
- default: () => {
109
- var Z;
110
- const a = (Z = t.triggerLeading) == null ? void 0 : Z.call(t, A.value), h = !l(a), W = () => {
111
- var j;
112
- if (!e.props.multiple && !oe(e.modelValue.value)) {
113
- const K = (j = u.getOptionSlot("leading", e.modelValue.value)) == null ? void 0 : j();
114
- if (h || K || y.value || e.props.leadingIcon) {
115
- let O;
116
- return l(K) ? y.value ? O = F(y.value) : h ? O = a : e.props.leadingIcon && (O = F(e.props.leadingIcon)) : O = K, i("div", {
117
- class: [m(p, "leading"), e.props.triggerLeadingCls]
118
- }, O);
119
- }
120
- }
121
- }, H = () => {
122
- const j = [];
123
- if (J(e.modelValue.value)) {
124
- if (e.props.placeholder && !e.props.multiple) {
125
- const K = () => {
126
- var M;
127
- const O = (M = t.placeholder) == null ? void 0 : M.call(t, A.value);
128
- return l(O) ? e.props.placeholder : O;
129
- };
130
- j.push(K());
131
- }
132
- } else {
133
- const O = (() => {
134
- var M, le;
135
- if (e.props.multiple && oe(e.modelValue.value))
136
- return i(Xe, {
137
- maxCount: e.props.maxCount,
138
- size: x.value,
139
- color: "primary",
140
- closeable: !e.getDisabled.value,
141
- noPopover: !0,
142
- noWrap: !e.props.wrapped,
143
- class: [m(p, "tag_list"), e.props.tagListCls],
144
- onClose: D
145
- }, () => e.modelValue.value.map((n) => {
146
- var P;
147
- const b = (C) => {
148
- var T;
149
- const _ = (T = t.tagClose) == null ? void 0 : T.call(t, {
150
- ...z(n),
151
- onClose: C
152
- });
153
- return l(_) ? null : _;
154
- }, L = (P = u.getOptionSlot("default", n)) == null ? void 0 : P(), d = () => {
155
- var T, q;
156
- const C = (T = u.getOptionSlot("text", n)) == null ? void 0 : T(), _ = (q = t.tagText) == null ? void 0 : q.call(t, z(n));
157
- return l(_) ? l(L) ? l(C) ? e.getLabelByValue(n) : C : L : _;
158
- }, c = ({
159
- size: C
160
- }) => {
161
- var te, r;
162
- if (!l(L)) return null;
163
- const _ = (te = u.getOptionSlot("leading", n)) == null ? void 0 : te(), T = (r = t.tagLeading) == null ? void 0 : r.call(t, z(n)), q = N(e.getOptionByValue(n)) ?? e.props.leadingIcon;
164
- return l(T) ? l(_) ? q ? F(q, C) : l(a) ? null : a : _ : T;
165
- }, w = () => {
166
- var _;
167
- const C = (_ = t.tagTrailing) == null ? void 0 : _.call(t, z(n));
168
- return l(C) ? null : C;
169
- };
170
- return i(Ye, {
171
- value: n,
172
- class: [m(p, "tag"), e.props.tagCls],
173
- closeIconCls: m(p, "tag__close")
174
- }, {
175
- text: d,
176
- leading: c,
177
- trailing: w,
178
- close: b
179
- });
180
- }));
181
- if (!oe(e.modelValue.value)) {
182
- const n = (M = u.getOptionSlot("default", e.modelValue.value)) == null ? void 0 : M(), b = (le = u.getOptionSlot("text", e.modelValue.value)) == null ? void 0 : le();
183
- return l(n) ? l(b) ? re(e.modelValue.value) ? e.getLabelByValue(e.modelValue.value) : e.modelValue.value : b : n;
184
- }
185
- })();
186
- O && j.push(O);
187
- }
188
- return j;
189
- }, Y = [], ee = W();
190
- l(ee) || Y.push(ee), Y.push(i(Ge, {
191
- class: [m(p, "content"), e.props.triggerContentCls, J(e.modelValue.value) ? e.props.triggerContentPlaceholderCls : e.props.triggerContentValueCls],
192
- as: "div",
193
- key: String(R.value),
194
- asChild: R.value
195
- }, {
196
- default: H
197
- }));
198
- const ie = E();
199
- return l(ie) || Y.push(ie), Y;
200
- }
201
- });
202
- }
203
- }), se = /* @__PURE__ */ ae({
204
- name: ce("SelectOption"),
205
- props: {
206
- option: {
207
- type: [Object, String],
208
- required: !0
209
- }
210
- },
211
- slots: Object,
212
- setup(u, {
213
- slots: t
214
- }) {
215
- const o = xe(), B = g(() => {
216
- switch (o.getSize.value) {
217
- case "sm":
218
- return "2xsm";
219
- case "lg":
220
- return "sm";
221
- case "md":
222
- default:
223
- return "xsm";
224
- }
225
- }), e = g(() => o.getOptionValue(u.option)), D = g(() => o.getOptionLabel(u.option)), p = g(() => o.getOptionIcon(u.option)), U = g(() => o.getOptionDisabled(u.option)), x = m(k, "option"), Q = ge(x, {
226
- variants: {
227
- size: $(de, x)
228
- }
229
- });
230
- if (!u.option) throw new Error("option is required");
231
- const G = () => {
232
- var S;
233
- const y = (S = t.indicator) == null ? void 0 : S.call(t, {
234
- option: u.option
235
- });
236
- return l(y) ? i(Re, {
237
- asChild: !0
238
- }, () => i(ue, {
239
- icon: o.props.indicatorIcon,
240
- size: B.value
241
- })) : y;
242
- }, N = () => {
243
- var R, A, z;
244
- const y = (R = t.default) == null ? void 0 : R.call(t, {
245
- option: u.option
246
- }), S = [];
247
- if (!l(y)) S.push(y);
248
- else {
249
- const X = (A = t.leading) == null ? void 0 : A.call(t, {
250
- option: u.option
251
- }), F = !l(X);
252
- if (p.value || F) {
253
- let h;
254
- F ? h = X : h = i(ue, {
255
- icon: p.value,
256
- size: B.value
257
- }), S.push(i("div", {
258
- class: [m(x, "leading"), o.props.itemLeadingCls]
259
- }, h));
260
- }
261
- let E;
262
- const a = (z = t.text) == null ? void 0 : z.call(t, {
263
- option: u.option
264
- });
265
- l(a) ? E = D.value : E = a, S.push(i("div", {
266
- class: [m(x, "text"), o.props.optionTextCls]
267
- }, E));
268
- }
269
- return i("div", {
270
- class: [m(x, "content"), o.props.optionContentCls]
271
- }, S);
272
- };
273
- return () => i(Ne, {
274
- value: e.value,
275
- textValue: D.value,
276
- disabled: U.value,
277
- class: [Q({
278
- size: o.getSize.value
279
- }), o.props.optionCls]
280
- }, () => [N(), G()]);
281
- }
282
- }), dt = /* @__PURE__ */ ae({
283
- __name: "SelectLabel",
284
- setup(u) {
285
- return (t, o) => (_e(), Te("div", {
286
- class: Ie(pe(m)(pe(k), "label"))
287
- }, [
288
- Be(t.$slots, "default")
289
- ], 2));
290
- }
291
- }), ft = /* @__PURE__ */ ae({
292
- name: ce("SelectWrapper"),
293
- setup(u, {
294
- slots: t
295
- }) {
296
- const o = st(), B = Ee(), e = me();
297
- it({
298
- target: e
299
- });
300
- const D = me(), p = tt({
301
- triggerRef: D,
302
- props: o.props
303
- }), {
304
- getFlipOnDir: U,
305
- getDir: x
306
- } = Ue(), Q = U("reversePlacementOnDir"), G = x(), N = ot({
307
- props: o.props,
308
- flip: Q,
309
- emitsAsProps: o.emitsAsProps,
310
- _dir: G,
311
- controlAutoFocus: !1,
312
- extraPropNames: ["bodyLock", "position"]
313
- }), y = ({
314
- key: n,
315
- getterKey: b,
316
- defaultValue: L,
317
- noReturnOption: d
318
- }) => (c) => {
319
- const w = be(L) ? L(c) : L;
320
- if (ne(c)) {
321
- const P = c[n] ?? w, C = b && o.props[b];
322
- if (C) {
323
- if (re(C))
324
- return c[C] ?? P;
325
- if (be(C)) return C(c) ?? P;
326
- }
327
- return P;
328
- }
329
- return re(c) && !d ? c ?? w : w;
330
- }, S = y({
331
- getterKey: "getValue",
332
- key: "value"
333
- }), R = y({
334
- getterKey: "getLabel",
335
- key: "label",
336
- defaultValue: S
337
- }), A = y({
338
- getterKey: "getIcon",
339
- key: "icon",
340
- noReturnOption: !0
341
- }), z = (n) => {
342
- var b;
343
- if ((b = o.props.options) != null && b.length)
344
- for (const L of o.props.options) {
345
- if (S(L) === n) return L;
346
- const d = a(L);
347
- if (d != null && d.length) {
348
- for (const c of d)
349
- if (S(c) === n) return c;
350
- }
351
- }
352
- return n;
353
- }, X = (n) => {
354
- const b = z(n);
355
- return b ? R(b) ?? n : n;
356
- }, F = y({
357
- getterKey: "getDisabled",
358
- key: "disabled",
359
- defaultValue: !1,
360
- noReturnOption: !0
361
- }), E = y({
362
- getterKey: "getGroupLabel",
363
- key: "label",
364
- noReturnOption: !0
365
- }), a = y({
366
- getterKey: "getGroupOptions",
367
- key: "options",
368
- noReturnOption: !0
369
- }), {
370
- getDisabled: h,
371
- getStatus: W,
372
- getSize: H
373
- } = at({
374
- getDisabled: () => o.props.disabled,
375
- getSize: () => o.props.size,
376
- getStatus: () => o.props.status
377
- });
378
- pt({
379
- props: o.props,
380
- attrs: o.attrs,
381
- emit: o.emit,
382
- getOptionValue: S,
383
- getOptionLabel: R,
384
- getOptionDisabled: F,
385
- getOptionIcon: A,
386
- getOptionGroupLabel: E,
387
- getOptionGroupOptions: a,
388
- getOptionByValue: z,
389
- getLabelByValue: X,
390
- getDisabled: h,
391
- getStatus: W,
392
- getSize: H,
393
- ...B,
394
- modelValue: B.modelValue
395
- }), ze(() => [o.props.clearOnChangeMultiple, o.props.multiple], () => {
396
- o.props.clearOnChangeMultiple && (B.modelValue.value = void 0, o.emit("update:modelValue", void 0));
397
- });
398
- const Y = g(() => {
399
- const n = o.props.scrollContainerProps ?? {};
400
- return {
401
- ...n,
402
- areaCls: [m(k, "scroll_area"), n == null ? void 0 : n.class, n == null ? void 0 : n.areaCls]
403
- };
404
- }), ee = m(k, "popup"), ie = ge(ee, {
405
- variants: {
406
- size: $(de, ee)
407
- }
408
- }), Z = (n) => {
409
- if (Number(n) > 0)
410
- return `${n}px`;
411
- if (typeof n == "string")
412
- return n;
413
- }, j = g(() => Z(o.props.popupWidth)), K = g(() => Z(o.props.popupHeight)), O = g(() => Z(o.props.minWidth)), M = g(() => ({
414
- type: H.value === "sm" ? "simple" : "advance",
415
- ...he(o.props.emptyProps ?? {}, "class")
416
- })), le = g(() => he(o.props.skeletonProps ?? {}, "class"));
417
- return () => {
418
- var T, q, te;
419
- const n = (r) => {
420
- var s;
421
- if ((s = o.props.options) != null && s.length && r > 0)
422
- return !!o.props.options[r - 1];
423
- }, b = (r) => {
424
- var s, I;
425
- if ((s = o.props.options) != null && s.length && r > 0) {
426
- const f = o.props.options[r - 1];
427
- return !!(f && ((I = a(f)) != null && I.length));
428
- }
429
- }, L = (T = t.default) == null ? void 0 : T.call(t, {}), d = (q = Oe(L, se)) == null ? void 0 : q.filter((r) => {
430
- var s;
431
- return ne(r == null ? void 0 : r.props) && ((s = r == null ? void 0 : r.props) == null ? void 0 : s.option);
432
- }), c = [];
433
- (o.props.options ?? []).forEach((r, s) => {
434
- const I = (V) => i(se, {
435
- option: V
436
- }, {
437
- default: () => {
438
- var v;
439
- return (v = t.option) == null ? void 0 : v.call(t, {
440
- option: V
441
- });
442
- },
443
- leading: () => {
444
- var v;
445
- return (v = t.optionLeading) == null ? void 0 : v.call(t, {
446
- option: V
447
- });
448
- },
449
- indicator: () => {
450
- var v;
451
- return (v = t.optionIndicator) == null ? void 0 : v.call(t, {
452
- option: V
453
- });
454
- },
455
- text: () => {
456
- var v;
457
- return (v = t.optionText) == null ? void 0 : v.call(t, {
458
- option: V
459
- });
460
- }
461
- }), f = a(r);
462
- if (f != null && f.length) {
463
- n(s) && c.push(i(Le));
464
- const V = E(r);
465
- V && c.push(i(dt, {
466
- class: o.props.labelCls
467
- }, () => V)), f.forEach((v) => {
468
- c.push(I(v));
469
- });
470
- } else b(s) ? c.push(i(Le)) : c.push(I(r));
471
- });
472
- const w = Oe(c, se).filter((r) => {
473
- var s;
474
- return ne(r == null ? void 0 : r.props) && ((s = r == null ? void 0 : r.props) == null ? void 0 : s.option);
475
- }), P = !!(w != null && w.length || d != null && d.length), C = (r, s) => {
476
- var I;
477
- if (P && !J(s) && re(s)) {
478
- const f = d != null && d.length ? d : w;
479
- if (f.length) {
480
- const V = f.find((v) => {
481
- var fe;
482
- return ne(v.props) && S((fe = v.props) == null ? void 0 : fe.option) === s;
483
- });
484
- return (I = V == null ? void 0 : V.children) == null ? void 0 : I[r];
485
- }
486
- }
487
- }, _ = () => {
488
- var s, I;
489
- const r = [];
490
- if (P || o.props.loading) {
491
- const f = [];
492
- if (P && (d != null && d.length ? f.push(L) : f.push(...c)), o.props.loading) {
493
- const V = (s = t.loading) == null ? void 0 : s.call(t, {});
494
- if (!l(V)) f.push(V);
495
- else {
496
- const v = new Array(P ? 2 : o.props.loadingRowCount).fill(1);
497
- f.push(...v.map(() => i(rt, {
498
- size: H.value,
499
- class: [m(k, "skeleton"), o.props.skeletonCls],
500
- ...le.value
501
- })));
502
- }
503
- }
504
- r.push(i("div", {
505
- class: [m(k, "options"), o.props.optionsCls]
506
- }, f));
507
- } else if (!P) {
508
- const f = (I = t.empty) == null ? void 0 : I.call(t, M.value);
509
- l(f) ? r.push(i(nt, {
510
- class: [m(k, "empty"), o.props.emptyCls],
511
- ...M.value
512
- }, {
513
- title: t.emptyTitle,
514
- description: t.emptyDescription,
515
- actions: t.emptyActions,
516
- image: t.emptyImage
517
- })) : r.push(f);
518
- }
519
- return o.props.lazyLoading && r.push(i("div", {
520
- class: m(k, "lazy_loading")
521
- }, i("div", {
522
- class: m(k, "lazy_loading_trigger"),
523
- ref: e
524
- }))), r;
525
- };
526
- return [i(gt, {
527
- getOptionSlot: C,
528
- ref: D,
529
- ...o.attrs,
530
- style: {
531
- ...((te = o.attrs) == null ? void 0 : te.style) ?? {},
532
- "--ptc-select-trigger-min-w": O.value
533
- }
534
- }, {
535
- triggerLeading: t.triggerLeading,
536
- placeholder: t.placeholder,
537
- triggerValue: t.triggerValue,
538
- triggerTrailing: t.triggerTrailing,
539
- tagClose: t.tagClose,
540
- tagTrailing: t.tagTrailing,
541
- tagLeading: t.tagLeading,
542
- tagText: t.tagText
543
- }), i(je, p.value, () => i(Ke, {
544
- ...N.value,
545
- vShow: B.open.value,
546
- class: [ie(o.props), o.props.popupCls],
547
- style: {
548
- "--ptc-select-popup-width": o.props.samePopupWidth ? void 0 : j.value,
549
- "--ptc-select-popup-height": K.value,
550
- "--ptc-select-trigger-min-w": O.value
551
- }
552
- }, () => i(lt, Y.value, _)))];
553
- };
554
- }
555
- }), zt = /* @__PURE__ */ ae({
556
- ...Qe("Select"),
557
- __name: "Select",
558
- props: {
559
- status: {},
560
- size: { default: "md" },
561
- multiple: { type: Boolean, default: void 0 },
562
- contentFit: { type: Boolean },
563
- wrapped: { type: Boolean },
564
- noTrailing: { type: Boolean },
565
- leadingIcon: {},
566
- trailingIcon: { default: "tabler:chevron-down" },
567
- selectedItemIconAsTrailingIcon: { type: Boolean, default: !0 },
568
- maxCount: {},
569
- to: {},
570
- placeholder: {},
571
- indicatorIcon: { default: "tabler:check" },
572
- options: {},
573
- getDisabled: {},
574
- getLabel: {},
575
- getValue: {},
576
- getGroupOptions: {},
577
- getGroupLabel: {},
578
- getIcon: {},
579
- placement: { default: "bottom" },
580
- reversePlacementOnDir: {},
581
- loading: { type: Boolean },
582
- skeletonProps: {},
583
- loadingRowCount: { default: 10 },
584
- lazyLoading: { type: Boolean },
585
- bordered: { type: Boolean, default: !0 },
586
- clearOnChangeMultiple: { type: Boolean, default: !0 },
587
- triggerCls: {},
588
- triggerLeadingCls: {},
589
- triggerContentCls: {},
590
- triggerContentPlaceholderCls: {},
591
- triggerContentValueCls: {},
592
- triggerTrailingCls: {},
593
- itemLeadingCls: {},
594
- optionCls: {},
595
- tagListCls: {},
596
- tagCls: {},
597
- popupCls: {},
598
- labelCls: {},
599
- optionsCls: {},
600
- optionTextCls: {},
601
- optionContentCls: {},
602
- emptyCls: {},
603
- skeletonCls: {},
604
- scrollContainerProps: {},
605
- emptyProps: {},
606
- samePopupWidth: { type: Boolean, default: !0 },
607
- popupHeight: { default: 384 },
608
- popupWidth: {},
609
- minWidth: {},
610
- open: { type: Boolean, default: void 0 },
611
- defaultOpen: { type: Boolean, default: void 0 },
612
- defaultValue: {},
613
- modelValue: {},
614
- by: {},
615
- dir: {},
616
- autocomplete: {},
617
- disabled: { type: Boolean, default: void 0 },
618
- name: {},
619
- required: { type: Boolean },
620
- reference: {},
621
- forceMount: { type: Boolean, default: void 0 },
622
- position: { default: "popper" },
623
- bodyLock: { type: Boolean },
624
- side: {},
625
- sideOffset: { default: 4 },
626
- align: {},
627
- alignOffset: {},
628
- avoidCollisions: { type: Boolean, default: void 0 },
629
- collisionBoundary: {},
630
- collisionPadding: { default: 4 },
631
- arrowPadding: {},
632
- sticky: {},
633
- hideWhenDetached: { type: Boolean, default: void 0 },
634
- positionStrategy: { default: "fixed" },
635
- updatePositionStrategy: {},
636
- disableUpdateOnLayoutShift: { type: Boolean, default: void 0 },
637
- prioritizePosition: { type: Boolean, default: void 0 },
638
- asChild: { type: Boolean },
639
- as: {},
640
- defer: { type: Boolean }
641
- },
642
- emits: ["update:modelValue", "update:open", "closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
643
- setup(u, { emit: t }) {
644
- const o = u, B = t, e = Me(B), D = g(
645
- () => He(
646
- {
647
- ...Ve(
648
- o,
649
- "open",
650
- "defaultOpen",
651
- "defaultValue",
652
- "modelValue",
653
- "by",
654
- "dir",
655
- "multiple",
656
- "autocomplete",
657
- "disabled"
658
- ),
659
- ...Ve(
660
- e,
661
- "onUpdate:modelValue",
662
- "onUpdate:open"
663
- )
664
- },
665
- Je
666
- )
667
- ), p = we(), U = ke();
668
- return ut({
669
- attrs: U,
670
- props: o,
671
- emit: B,
672
- emitsAsProps: e
673
- }), (x, Q) => (_e(), De(pe(qe), ve(Ce(D.value)), {
674
- default: ye(() => [
675
- Ae(pe(ft), null, Fe({ _: 2 }, [
676
- We(Object.keys(p), (G) => ({
677
- name: G,
678
- fn: ye((N) => [
679
- Be(x.$slots, G, ve(Ce(N)))
680
- ])
681
- }))
682
- ]), 1024)
683
- ]),
684
- _: 3
685
- }, 16));
686
- }
687
- });
688
- export {
689
- se as S,
690
- zt as _,
691
- dt as a,
692
- de as b,
693
- ct as c,
694
- xe as i,
695
- pt as p
696
- };