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