@farris/ui-vue 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/accordion/package.json +1 -1
  2. package/avatar/package.json +1 -1
  3. package/button/package.json +1 -1
  4. package/button-edit/package.json +1 -1
  5. package/calculator/package.json +1 -1
  6. package/calendar/package.json +1 -1
  7. package/capsule/package.json +1 -1
  8. package/checkbox/package.json +1 -1
  9. package/color-picker/package.json +1 -1
  10. package/combo-list/index.esm.js +808 -802
  11. package/combo-list/index.umd.js +1 -1
  12. package/combo-list/package.json +1 -1
  13. package/combo-list/style.css +1 -1
  14. package/component/package.json +1 -1
  15. package/condition/index.esm.js +2656 -2650
  16. package/condition/index.umd.js +1 -1
  17. package/condition/package.json +1 -1
  18. package/condition/style.css +1 -1
  19. package/content-container/package.json +1 -1
  20. package/data-grid/index.esm.js +2298 -2292
  21. package/data-grid/index.umd.js +1 -1
  22. package/data-grid/package.json +1 -1
  23. package/data-grid/style.css +1 -1
  24. package/date-picker/package.json +1 -1
  25. package/designer-canvas/index.esm.js +2632 -2626
  26. package/designer-canvas/index.umd.js +1 -1
  27. package/designer-canvas/package.json +1 -1
  28. package/designer-canvas/style.css +1 -1
  29. package/discussion-editor/package.json +1 -1
  30. package/discussion-list/package.json +1 -1
  31. package/dropdown/package.json +1 -1
  32. package/dynamic-form/index.esm.js +2656 -2650
  33. package/dynamic-form/index.umd.js +1 -1
  34. package/dynamic-form/package.json +1 -1
  35. package/dynamic-form/style.css +1 -1
  36. package/dynamic-resolver/package.json +1 -1
  37. package/dynamic-view/index.esm.js +1735 -1729
  38. package/dynamic-view/index.umd.js +1 -1
  39. package/dynamic-view/package.json +1 -1
  40. package/dynamic-view/style.css +1 -1
  41. package/farris.all.esm.js +3064 -3058
  42. package/farris.all.umd.js +5 -5
  43. package/filter-bar/package.json +1 -1
  44. package/image-cropper/package.json +1 -1
  45. package/input-group/package.json +1 -1
  46. package/list-nav/package.json +1 -1
  47. package/list-view/package.json +1 -1
  48. package/loading/package.json +1 -1
  49. package/locale/package.json +1 -1
  50. package/message-box/package.json +1 -1
  51. package/modal/package.json +1 -1
  52. package/nav/package.json +1 -1
  53. package/notify/package.json +1 -1
  54. package/order/index.esm.js +759 -753
  55. package/order/index.umd.js +1 -1
  56. package/order/package.json +1 -1
  57. package/order/style.css +1 -1
  58. package/package.json +1 -1
  59. package/page-footer/package.json +1 -1
  60. package/page-header/package.json +1 -1
  61. package/pagination/package.json +1 -1
  62. package/popover/package.json +1 -1
  63. package/propress/package.json +1 -1
  64. package/radio-group/package.json +1 -1
  65. package/rate/package.json +1 -1
  66. package/response-toolbar/package.json +1 -1
  67. package/search-box/package.json +1 -1
  68. package/section/package.json +1 -1
  69. package/splitter/package.json +1 -1
  70. package/step/package.json +1 -1
  71. package/style.css +1 -1
  72. package/switch/package.json +1 -1
  73. package/tabs/package.json +1 -1
  74. package/tags/package.json +1 -1
  75. package/text/package.json +1 -1
  76. package/time-picker/package.json +1 -1
  77. package/tooltip/package.json +1 -1
  78. package/transfer/package.json +1 -1
  79. package/tree-view/package.json +1 -1
  80. package/types/combo-list/src/components/list-container.props.d.ts +3 -1
  81. package/types/combo-list/src/composition/types.d.ts +1 -0
  82. package/uploader/package.json +1 -1
  83. package/verify-detail/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { ref as a, computed as I, watch as W, defineComponent as G, createVNode as p, withDirectives as Q, vModelCheckbox as Me, Fragment as re, withModifiers as Fe, vModelText as Oe, Teleport as de, createApp as Ve, onUnmounted as fe, nextTick as K, vShow as ve, onMounted as ne, mergeProps as Le, inject as De } from "vue";
1
+ import { ref as a, computed as B, watch as W, defineComponent as G, createVNode as v, withDirectives as Q, vModelCheckbox as Me, Fragment as re, withModifiers as Fe, vModelText as Oe, Teleport as de, createApp as Le, onUnmounted as fe, nextTick as K, vShow as ve, onMounted as ne, mergeProps as Ve, inject as De } from "vue";
2
2
  const pe = {};
3
3
  function oe(e) {
4
4
  const { properties: t } = e;
@@ -15,11 +15,11 @@ function Re(e, t) {
15
15
  function Ae(e, t) {
16
16
  return Object.keys(e).filter((l) => e[l] != null).reduce((l, n) => {
17
17
  if (t.has(n)) {
18
- const i = t.get(n);
19
- if (typeof i == "string")
20
- l[i] = e[n];
18
+ const s = t.get(n);
19
+ if (typeof s == "string")
20
+ l[s] = e[n];
21
21
  else {
22
- const u = i(n, e[n]);
22
+ const u = s(n, e[n]);
23
23
  Object.assign(l, u);
24
24
  }
25
25
  } else
@@ -33,8 +33,8 @@ function Ee(e, t, o = /* @__PURE__ */ new Map()) {
33
33
  }
34
34
  function ge(e, t, o = /* @__PURE__ */ new Map()) {
35
35
  return pe[t.title] = t, (l) => {
36
- const n = Ee(l, t, o), i = Object.keys(e).reduce((u, c) => (u[c] = e[c].default, u), {});
37
- return Object.assign(i, n);
36
+ const n = Ee(l, t, o), s = Object.keys(e).reduce((u, r) => (u[r] = e[r].default, u), {});
37
+ return Object.assign(s, n);
38
38
  };
39
39
  }
40
40
  function me(e, t) {
@@ -287,7 +287,8 @@ const ae = {
287
287
  selectedValues: { type: String, default: "" },
288
288
  separator: { type: String, default: "," },
289
289
  textField: { type: String, default: "name" },
290
- width: { type: Number, default: 300 },
290
+ width: { type: Number },
291
+ height: { type: Number },
291
292
  valueField: { type: String, default: "id" }
292
293
  }, Qe = {
293
294
  data: { type: Array, default: [] },
@@ -308,99 +309,99 @@ const ae = {
308
309
  disableField: { type: String, default: "disabled" }
309
310
  };
310
311
  function Ye(e, t, o, l, n) {
311
- const i = a(e.idField), u = a(e.disableField), c = a(e.draggable), h = a(e.itemClass), s = a(e.multiSelect), r = a(e.multiSelectMode);
312
+ const s = a(e.idField), u = a(e.disableField), r = a(e.draggable), y = a(e.itemClass), d = a(e.multiSelect), f = a(e.multiSelectMode);
312
313
  a(!0);
313
- const { isDragging: d } = o, { activeIndex: f, focusedItemId: C, hoverIndex: m } = l, { clearSelection: y, selectedItems: O, toggleSelectItem: P } = n;
314
- function x(w, j) {
315
- const V = {
314
+ const { isDragging: i } = o, { activeIndex: c, focusedItemId: m, hoverIndex: p } = l, { clearSelection: b, selectedItems: M, toggleSelectItem: P } = n;
315
+ function S(C, j) {
316
+ const L = {
316
317
  "f-list-view-group-item": !0,
317
- "f-list-view-draggable-item": c.value,
318
- "f-un-click": !!w.unClick,
319
- "f-un-select": !!w[u.value],
320
- "f-listview-active": w.__fv_index__ === f.value,
321
- "f-listview-hover": !d.value && j === m.value,
322
- moving: !!w.moving
318
+ "f-list-view-draggable-item": r.value,
319
+ "f-un-click": !!C.unClick,
320
+ "f-un-select": !!C[u.value],
321
+ "f-listview-active": C.__fv_index__ === c.value,
322
+ "f-listview-hover": !i.value && j === p.value,
323
+ moving: !!C.moving
323
324
  };
324
- return h.value.split(" ").reduce((z, D) => (z[D] = !0, z), V), V;
325
+ return y.value.split(" ").reduce((z, D) => (z[D] = !0, z), L), L;
325
326
  }
326
- function v(w, j) {
327
- return w[i.value] || "";
327
+ function h(C, j) {
328
+ return C[s.value] || "";
328
329
  }
329
- const b = I(() => !s.value);
330
- function B(w, j) {
331
- w.unClick || w[u.value] || (b.value && (C.value = w[i.value]), P(w, j));
330
+ const T = B(() => !d.value);
331
+ function k(C, j) {
332
+ C.unClick || C[u.value] || (T.value && (m.value = C[s.value]), P(C, j));
332
333
  }
333
- const k = I(() => s.value && r.value === "OnCheckClearByClick"), E = I(() => !s.value || s.value && (r.value === "OnCheckAndClick" || r.value === "OnClick"));
334
- function L(w, j, V) {
334
+ const x = B(() => d.value && f.value === "OnCheckClearByClick"), E = B(() => !d.value || d.value && (f.value === "OnCheckAndClick" || f.value === "OnClick"));
335
+ function V(C, j, L) {
335
336
  if (j.unClick || j[u.value]) {
336
- w.preventDefault(), w.stopPropagation();
337
+ C.preventDefault(), C.stopPropagation();
337
338
  return;
338
339
  }
339
- C.value = j[i.value], f.value = V, k.value && y(), E.value && P(j, V), t.emit("clickItem", { data: O.value, index: V });
340
+ m.value = j[s.value], c.value = L, x.value && b(), E.value && P(j, L), t.emit("clickItem", { data: M.value, index: L });
340
341
  }
341
342
  return {
342
- getKey: v,
343
- listViewItemClass: x,
344
- onCheckItem: B,
345
- onClickItem: L
343
+ getKey: h,
344
+ listViewItemClass: S,
345
+ onCheckItem: k,
346
+ onClickItem: V
346
347
  };
347
348
  }
348
349
  function Ze(e, t, o) {
349
350
  const l = a(e.idField), n = a(e.multiSelect);
350
351
  a(e.multiSelectMode);
351
- const { getSelectionItems: i } = o, u = a(i(e.selectionValues));
352
- W(() => e.selectionValues, (f) => {
353
- u.value = a(i(f)).value;
352
+ const { getSelectionItems: s } = o, u = a(s(e.selectionValues));
353
+ W(() => e.selectionValues, (c) => {
354
+ u.value = a(s(c)).value;
354
355
  });
355
- const c = I(() => !n.value);
356
- function h(f) {
357
- return f[l.value] || "";
356
+ const r = B(() => !n.value);
357
+ function y(c) {
358
+ return c[l.value] || "";
358
359
  }
359
- function s(f) {
360
- return u.value.findIndex((m) => h(m) === h(f));
360
+ function d(c) {
361
+ return u.value.findIndex((p) => y(p) === y(c));
361
362
  }
362
- function r() {
363
- u.value.forEach((f) => {
364
- f.checked = !1;
363
+ function f() {
364
+ u.value.forEach((c) => {
365
+ c.checked = !1;
365
366
  }), u.value = [];
366
367
  }
367
- function d(f, C) {
368
- c.value && r();
369
- const m = s(f);
370
- m > -1 ? (u.value.splice(m, 1), f.checked = !1) : (u.value.push(f), f.checked = !0), t.emit("selectionChange", u.value);
368
+ function i(c, m) {
369
+ r.value && f();
370
+ const p = d(c);
371
+ p > -1 ? (u.value.splice(p, 1), c.checked = !1) : (u.value.push(c), c.checked = !0), t.emit("selectionChange", u.value);
371
372
  }
372
- return { clearSelection: r, findIndexInSelectedItems: s, selectedItems: u, toggleSelectItem: d };
373
+ return { clearSelection: f, findIndexInSelectedItems: d, selectedItems: u, toggleSelectItem: i };
373
374
  }
374
375
  function et(e, t) {
375
- function o(i) {
376
+ function o(s) {
376
377
  const u = [];
377
- let c = i.nextNode();
378
- for (; c; )
379
- u.push(c), c = i.nextNode();
378
+ let r = s.nextNode();
379
+ for (; r; )
380
+ u.push(r), r = s.nextNode();
380
381
  return u;
381
382
  }
382
- function l(i, u) {
383
- const c = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
384
- return o(c).map((d) => ({ textNode: d, text: (d.textContent || "").toLocaleLowerCase() })).map(({ textNode: d, text: f }) => {
385
- const C = [];
386
- let m = 0;
387
- for (; m < f.length; ) {
388
- const y = f.indexOf(u, m);
389
- if (y === -1)
383
+ function l(s, u) {
384
+ const r = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
385
+ return o(r).map((i) => ({ textNode: i, text: (i.textContent || "").toLocaleLowerCase() })).map(({ textNode: i, text: c }) => {
386
+ const m = [];
387
+ let p = 0;
388
+ for (; p < c.length; ) {
389
+ const b = c.indexOf(u, p);
390
+ if (b === -1)
390
391
  break;
391
- C.push(y), m = y + u.length;
392
+ m.push(b), p = b + u.length;
392
393
  }
393
- return C.map((y) => {
394
- const O = new Range();
395
- return O.setStart(d, y), O.setEnd(d, y + u.length), O;
394
+ return m.map((b) => {
395
+ const M = new Range();
396
+ return M.setStart(i, b), M.setEnd(i, b + u.length), M;
396
397
  });
397
398
  }).flat();
398
399
  }
399
- function n(i) {
400
- if (!CSS.highlights || (CSS.highlights.clear(), !i || !t))
400
+ function n(s) {
401
+ if (!CSS.highlights || (CSS.highlights.clear(), !s || !t))
401
402
  return;
402
- const u = l(t.value, i.toLocaleLowerCase()), c = new Highlight(...u);
403
- CSS.highlights.set("search-result", c);
403
+ const u = l(t.value, s.toLocaleLowerCase()), r = new Highlight(...u);
404
+ CSS.highlights.set("search-result", r);
404
405
  }
405
406
  return { search: n };
406
407
  }
@@ -418,7 +419,7 @@ const tt = {
418
419
  emits: ["change", "update:modelValue"],
419
420
  setup(e, t) {
420
421
  const o = a(e.checked), l = a(e.disabled), n = a(e.id);
421
- function i(u) {
422
+ function s(u) {
422
423
  u.stopPropagation(), u.preventDefault(), l.value || (o.value = !o.value, t.emit("change", {
423
424
  originalEvent: u,
424
425
  checked: o.value
@@ -426,170 +427,170 @@ const tt = {
426
427
  }
427
428
  return W(() => e.checked, (u) => {
428
429
  o.value = u;
429
- }), () => p("div", {
430
+ }), () => v("div", {
430
431
  class: "custom-control custom-checkbox custom-control-inline listview-checkbox"
431
- }, [Q(p("input", {
432
+ }, [Q(v("input", {
432
433
  id: n.value,
433
434
  title: n.value,
434
435
  type: "checkbox",
435
436
  class: "custom-control-input",
436
437
  "onUpdate:modelValue": (u) => o.value = u,
437
438
  onChange: (u) => console.log(u)
438
- }, null), [[Me, o.value]]), p("label", {
439
+ }, null), [[Me, o.value]]), v("label", {
439
440
  for: n.value,
440
441
  class: "custom-control-label",
441
- onClick: (u) => i(u)
442
+ onClick: (u) => s(u)
442
443
  }, null)]);
443
444
  }
444
445
  });
445
- function se(e, t, o, l, n, i, u, c) {
446
- const h = a(e.size), s = a(e.textField), r = a(e.multiSelect), d = a(e.disableField), {
447
- onMouseenterItem: f,
448
- onMouseoverItem: C,
449
- onMouseoutItem: m
446
+ function se(e, t, o, l, n, s, u, r) {
447
+ const y = a(e.size), d = a(e.textField), f = a(e.multiSelect), i = a(e.disableField), {
448
+ onMouseenterItem: c,
449
+ onMouseoverItem: m,
450
+ onMouseoutItem: p
450
451
  } = n, {
451
- getKey: y,
452
- listViewItemClass: O,
452
+ getKey: b,
453
+ listViewItemClass: M,
453
454
  onCheckItem: P,
454
- onClickItem: x
455
- } = i, v = I(() => ({
456
- margin: h.value === "small" ? "0.25rem 0" : "10px 0"
455
+ onClickItem: S
456
+ } = s, h = B(() => ({
457
+ margin: y.value === "small" ? "0.25rem 0" : "10px 0"
457
458
  }));
458
- function b(B, k, E) {
459
- return B.checked = u.findIndexInSelectedItems(B) > -1, p("li", {
460
- class: O(B, k),
461
- id: y(B, k),
462
- key: y(B, k),
463
- onClick: (L) => x(L, B, k),
464
- onMouseenter: (L) => f(L, B, k),
465
- onMouseover: (L) => C(L, B, k),
466
- onMouseout: (L) => m(L, B, k)
467
- }, [r.value && p("div", {
459
+ function T(k, x, E) {
460
+ return k.checked = u.findIndexInSelectedItems(k) > -1, v("li", {
461
+ class: M(k, x),
462
+ id: b(k, x),
463
+ key: b(k, x),
464
+ onClick: (V) => S(V, k, x),
465
+ onMouseenter: (V) => c(V, k, x),
466
+ onMouseover: (V) => m(V, k, x),
467
+ onMouseout: (V) => p(V, k, x)
468
+ }, [f.value && v("div", {
468
469
  class: "f-list-select",
469
- onClick: (L) => L.stopPropagation()
470
- }, [p(le, {
471
- id: "list-" + y(B, k),
472
- disabled: B[d.value] || B.unClick,
473
- checked: B.checked,
474
- onChange: (L) => P(B, k)
475
- }, null)]), p("div", {
470
+ onClick: (V) => V.stopPropagation()
471
+ }, [v(le, {
472
+ id: "list-" + b(k, x),
473
+ disabled: k[i.value] || k.unClick,
474
+ checked: k.checked,
475
+ onChange: (V) => P(k, x)
476
+ }, null)]), v("div", {
476
477
  class: "f-list-content"
477
- }, [p("div", {
478
- style: v.value
479
- }, [B[s.value]])])]);
478
+ }, [v("div", {
479
+ style: h.value
480
+ }, [k[d.value]])])]);
480
481
  }
481
482
  return {
482
- renderItem: b
483
+ renderItem: T
483
484
  };
484
485
  }
485
- function nt(e, t, o, l, n, i, u, c) {
486
- const h = a(e.multiSelect), s = a(e.disableField), {
487
- onMouseenterItem: r,
488
- onMouseoverItem: d,
489
- onMouseoutItem: f
486
+ function nt(e, t, o, l, n, s, u, r) {
487
+ const y = a(e.multiSelect), d = a(e.disableField), {
488
+ onMouseenterItem: f,
489
+ onMouseoverItem: i,
490
+ onMouseoutItem: c
490
491
  } = n, {
491
- getKey: C,
492
- listViewItemClass: m,
493
- onCheckItem: y,
494
- onClickItem: O
495
- } = i;
496
- function P(v, b, B) {
497
- return t.slots.content ? p(re, null, [t.slots.content && t.slots.content({
498
- item: v,
499
- index: b,
500
- selectedItem: B
501
- })]) : p("div", {
492
+ getKey: m,
493
+ listViewItemClass: p,
494
+ onCheckItem: b,
495
+ onClickItem: M
496
+ } = s;
497
+ function P(h, T, k) {
498
+ return t.slots.content ? v(re, null, [t.slots.content && t.slots.content({
499
+ item: h,
500
+ index: T,
501
+ selectedItem: k
502
+ })]) : v("div", {
502
503
  style: "margin: 10px 0;"
503
- }, [v.name]);
504
- }
505
- function x(v, b, B) {
506
- return p("li", {
507
- class: m(v, b),
508
- id: C(v, b),
509
- key: C(v, b),
510
- onClick: (k) => O(k, v, b),
511
- onMouseenter: (k) => r(k, v, b),
512
- onMouseover: (k) => d(k, v, b),
513
- onMouseout: (k) => f(k, v, b)
514
- }, [h.value && p("div", {
504
+ }, [h.name]);
505
+ }
506
+ function S(h, T, k) {
507
+ return v("li", {
508
+ class: p(h, T),
509
+ id: m(h, T),
510
+ key: m(h, T),
511
+ onClick: (x) => M(x, h, T),
512
+ onMouseenter: (x) => f(x, h, T),
513
+ onMouseover: (x) => i(x, h, T),
514
+ onMouseout: (x) => c(x, h, T)
515
+ }, [y.value && v("div", {
515
516
  class: "f-list-select",
516
- onClick: (k) => k.stopPropagation()
517
- }, [p(le, {
518
- id: "list-" + C(v, b),
519
- disabled: v[s.value] || v.unClick,
520
- checked: v.checked,
521
- onChange: (k) => y(v, b)
522
- }, null)]), p("div", {
517
+ onClick: (x) => x.stopPropagation()
518
+ }, [v(le, {
519
+ id: "list-" + m(h, T),
520
+ disabled: h[d.value] || h.unClick,
521
+ checked: h.checked,
522
+ onChange: (x) => b(h, T)
523
+ }, null)]), v("div", {
523
524
  class: "f-list-content"
524
- }, [P(v, b, B)])]);
525
+ }, [P(h, T, k)])]);
525
526
  }
526
527
  return {
527
- renderItem: x
528
+ renderItem: S
528
529
  };
529
530
  }
530
- function ot(e, t, o, l, n, i, u, c) {
531
- const h = a(e.multiSelect), s = a(e.disableField), {
532
- onMouseenterItem: r,
533
- onMouseoverItem: d,
534
- onMouseoutItem: f
531
+ function ot(e, t, o, l, n, s, u, r) {
532
+ const y = a(e.multiSelect), d = a(e.disableField), {
533
+ onMouseenterItem: f,
534
+ onMouseoverItem: i,
535
+ onMouseoutItem: c
535
536
  } = n, {
536
- getKey: C,
537
- listViewItemClass: m,
538
- onCheckItem: y,
539
- onClickItem: O
540
- } = i, {
537
+ getKey: m,
538
+ listViewItemClass: p,
539
+ onCheckItem: b,
540
+ onClickItem: M
541
+ } = s, {
541
542
  dragstart: P,
542
- dragenter: x,
543
- dragover: v,
544
- dragend: b
543
+ dragenter: S,
544
+ dragover: h,
545
+ dragend: T
545
546
  } = l, {
546
- removeItem: B
547
- } = c, k = I(() => ({
548
- margin: h.value ? "10px 0" : "10px 0px 10px 14px"
547
+ removeItem: k
548
+ } = r, x = B(() => ({
549
+ margin: y.value ? "10px 0" : "10px 0px 10px 14px"
549
550
  }));
550
- function E(V) {
551
- return p("div", {
552
- style: k.value
553
- }, [V.name]);
551
+ function E(L) {
552
+ return v("div", {
553
+ style: x.value
554
+ }, [L.name]);
554
555
  }
555
- function L() {
556
+ function V() {
556
557
  return t.slots.itemContent ? t.slots.itemContent : E;
557
558
  }
558
- const w = L();
559
- function j(V, R, z) {
560
- return p("li", {
561
- class: m(V, R),
562
- id: C(V, R),
563
- key: C(V, R),
564
- onClick: (D) => O(D, V, R),
565
- onMouseenter: (D) => r(D, V, R),
566
- onMouseover: (D) => d(D, V, R),
567
- onMouseout: (D) => f(D, V, R),
559
+ const C = V();
560
+ function j(L, R, z) {
561
+ return v("li", {
562
+ class: p(L, R),
563
+ id: m(L, R),
564
+ key: m(L, R),
565
+ onClick: (D) => M(D, L, R),
566
+ onMouseenter: (D) => f(D, L, R),
567
+ onMouseover: (D) => i(D, L, R),
568
+ onMouseout: (D) => c(D, L, R),
568
569
  draggable: "true",
569
- onDragstart: (D) => P(D, V, R),
570
- onDragenter: (D) => x(D, R),
571
- onDragend: (D) => b(D, V),
572
- onDragover: (D) => v(D, R)
573
- }, [h.value && p("div", {
570
+ onDragstart: (D) => P(D, L, R),
571
+ onDragenter: (D) => S(D, R),
572
+ onDragend: (D) => T(D, L),
573
+ onDragover: (D) => h(D, R)
574
+ }, [y.value && v("div", {
574
575
  class: "f-list-select",
575
576
  onClick: (D) => D.stopPropagation()
576
- }, [p(le, {
577
- id: "list-" + C(V, R),
578
- disabled: V[s.value] || V.unClick,
579
- checked: V.checked,
580
- onChange: (D) => y(V, R)
581
- }, null)]), p("div", {
577
+ }, [v(le, {
578
+ id: "list-" + m(L, R),
579
+ disabled: L[d.value] || L.unClick,
580
+ checked: L.checked,
581
+ onChange: (D) => b(L, R)
582
+ }, null)]), v("div", {
582
583
  class: "f-list-content"
583
- }, [w(V)]), p("div", {
584
+ }, [C(L)]), v("div", {
584
585
  class: "f-list-remove",
585
- onClick: (D) => B(R)
586
- }, [p("div", {
586
+ onClick: (D) => k(R)
587
+ }, [v("div", {
587
588
  class: "f-list-remove-icon"
588
- }, [p("i", {
589
+ }, [v("i", {
589
590
  class: "f-icon f-icon-remove_face"
590
- }, null)])]), p("div", {
591
+ }, null)])]), v("div", {
591
592
  class: "f-list-handle"
592
- }, [p("div", null, [p("i", {
593
+ }, [v("div", null, [v("i", {
593
594
  class: "f-icon f-icon-drag-vertical"
594
595
  }, null)])])]);
595
596
  }
@@ -599,7 +600,7 @@ function ot(e, t, o, l, n, i, u, c) {
599
600
  }
600
601
  function at(e, t, o) {
601
602
  function l() {
602
- return t.slots.header && p("div", {
603
+ return t.slots.header && v("div", {
603
604
  class: "f-list-view-header"
604
605
  }, [t.slots.header()]);
605
606
  }
@@ -608,121 +609,121 @@ function at(e, t, o) {
608
609
  };
609
610
  }
610
611
  function ce(e, t, o) {
611
- const l = a(e.headerClass), n = a(e.placeholder), i = a(""), u = I(() => !i.value), c = I(() => !!i.value);
612
- function h(f) {
613
- i.value = "";
612
+ const l = a(e.headerClass), n = a(e.placeholder), s = a(""), u = B(() => !s.value), r = B(() => !!s.value);
613
+ function y(c) {
614
+ s.value = "";
614
615
  }
615
- W(i, (f) => {
616
- o.search(f);
616
+ W(s, (c) => {
617
+ o.search(c);
617
618
  });
618
- const s = I(() => {
619
- const f = {
619
+ const d = B(() => {
620
+ const c = {
620
621
  "form-group": !0,
621
622
  "farris-form-group": !0
622
623
  };
623
- return l.value && l.value.split(" ").reduce((m, y) => (m[y] = !0, m), f), f;
624
+ return l.value && l.value.split(" ").reduce((p, b) => (p[b] = !0, p), c), c;
624
625
  });
625
- function r(f) {
626
+ function f(c) {
626
627
  }
627
- function d() {
628
- return p("div", {
628
+ function i() {
629
+ return v("div", {
629
630
  class: "f-list-view-header",
630
- onClick: Fe(r, ["prevent", "stop"])
631
- }, [p("div", {
632
- class: s.value
633
- }, [p("div", {
631
+ onClick: Fe(f, ["prevent", "stop"])
632
+ }, [v("div", {
633
+ class: d.value
634
+ }, [v("div", {
634
635
  class: "farris-input-wrap"
635
- }, [p("div", {
636
+ }, [v("div", {
636
637
  class: "f-cmp-inputgroup"
637
- }, [p("div", {
638
+ }, [v("div", {
638
639
  class: "input-group f-state-editable"
639
- }, [Q(p("input", {
640
+ }, [Q(v("input", {
640
641
  class: "form-control f-utils-fill text-left",
641
- "onUpdate:modelValue": (f) => i.value = f,
642
+ "onUpdate:modelValue": (c) => s.value = c,
642
643
  name: "input-group-value",
643
644
  type: "text",
644
645
  placeholder: n.value,
645
646
  autocomplete: "off"
646
- }, null), [[Oe, i.value]]), p("div", {
647
+ }, null), [[Oe, s.value]]), v("div", {
647
648
  class: "input-group-append"
648
- }, [c.value && p("span", {
649
+ }, [r.value && v("span", {
649
650
  class: "input-group-text input-group-clear",
650
- onClick: (f) => h()
651
- }, [p("i", {
651
+ onClick: (c) => y()
652
+ }, [v("i", {
652
653
  class: "f-icon f-icon-close-circle"
653
- }, null)]), u.value && p("span", {
654
+ }, null)]), u.value && v("span", {
654
655
  class: "input-group-text"
655
- }, [p("span", {
656
+ }, [v("span", {
656
657
  class: "f-icon f-icon-search"
657
658
  }, null)])])])])])])]);
658
659
  }
659
660
  return {
660
- renderHeader: d
661
+ renderHeader: i
661
662
  };
662
663
  }
663
664
  function lt(e, t) {
664
- const o = a(e.idField), l = a(e.data), n = a(e.data), i = a(e.keepOrder);
665
+ const o = a(e.idField), l = a(e.data), n = a(e.data), s = a(e.keepOrder);
665
666
  function u() {
666
- const s = l.value.map((r, d) => typeof r != "object" ? { __fv_index__: d, name: r } : (r.__fv_index__ = d, r));
667
- return n.value = s, s;
667
+ const d = l.value.map((f, i) => typeof f != "object" ? { __fv_index__: i, name: f } : (f.__fv_index__ = i, f));
668
+ return n.value = d, d;
668
669
  }
669
- const c = a(u());
670
+ const r = a(u());
670
671
  W(
671
672
  () => e.data,
672
- (s) => {
673
- if (i.value) {
674
- const r = s.reduce((m, y) => (m.set(y.id, !0), m), /* @__PURE__ */ new Map()), d = l.value.reduce((m, y) => (m.set(y.id, !0), m), /* @__PURE__ */ new Map()), f = c.value.filter((m) => r.has(m.id)), C = s.filter((m) => !d.has(m.id));
675
- l.value = [...f, ...C];
673
+ (d) => {
674
+ if (s.value) {
675
+ const f = d.reduce((p, b) => (p.set(b.id, !0), p), /* @__PURE__ */ new Map()), i = l.value.reduce((p, b) => (p.set(b.id, !0), p), /* @__PURE__ */ new Map()), c = r.value.filter((p) => f.has(p.id)), m = d.filter((p) => !i.has(p.id));
676
+ l.value = [...c, ...m];
676
677
  } else
677
- l.value = s;
678
- c.value = u();
678
+ l.value = d;
679
+ r.value = u();
679
680
  }
680
681
  );
681
- function h(s) {
682
- return s.map((d) => {
683
- const f = n.value.findIndex((C) => C[o.value] === d);
684
- return f > -1 ? n.value[f] : null;
685
- }).filter((d) => d != null);
682
+ function y(d) {
683
+ return d.map((i) => {
684
+ const c = n.value.findIndex((m) => m[o.value] === i);
685
+ return c > -1 ? n.value[c] : null;
686
+ }).filter((i) => i != null);
686
687
  }
687
688
  return {
688
- dataView: c,
689
- getSelectionItems: h
689
+ dataView: r,
690
+ getSelectionItems: y
690
691
  };
691
692
  }
692
693
  function ut(e, t, o, l) {
693
- const n = a(e.idField), { dataView: i } = o, u = a(-1), c = a(!1), { activeIndex: h, focusedItemId: s, hoverIndex: r, resumeHover: d, suspendHover: f } = l;
694
- function C(P, x, v) {
695
- P.stopPropagation(), f(), x && setTimeout(() => {
696
- u.value = v, c.value = !0, x.moving = !0;
694
+ const n = a(e.idField), { dataView: s } = o, u = a(-1), r = a(!1), { activeIndex: y, focusedItemId: d, hoverIndex: f, resumeHover: i, suspendHover: c } = l;
695
+ function m(P, S, h) {
696
+ P.stopPropagation(), c(), S && setTimeout(() => {
697
+ u.value = h, r.value = !0, S.moving = !0;
697
698
  });
698
699
  }
699
- function m(P, x) {
700
- if (P.preventDefault(), u.value !== x) {
701
- const v = i.value[u.value], b = i.value;
702
- b.splice(u.value, 1), b.splice(x, 0, v), u.value = x;
700
+ function p(P, S) {
701
+ if (P.preventDefault(), u.value !== S) {
702
+ const h = s.value[u.value], T = s.value;
703
+ T.splice(u.value, 1), T.splice(S, 0, h), u.value = S;
703
704
  }
704
705
  }
705
- function y(P, x) {
706
+ function b(P, S) {
706
707
  P.preventDefault(), P.dataTransfer && (P.dataTransfer.dropEffect = "move");
707
708
  }
708
- function O(P, x) {
709
- x && (x.moving = !1), i.value.forEach((v, b) => {
710
- v.__fv_index__ = b;
711
- }), c.value = !1, d(), r.value = x.__fv_index__, h.value = x.__fv_index__, s.value = x[n.value], t.emit("change", i.value);
709
+ function M(P, S) {
710
+ S && (S.moving = !1), s.value.forEach((h, T) => {
711
+ h.__fv_index__ = T;
712
+ }), r.value = !1, i(), f.value = S.__fv_index__, y.value = S.__fv_index__, d.value = S[n.value], t.emit("change", s.value);
712
713
  }
713
714
  return {
714
- dragstart: C,
715
- dragenter: m,
716
- dragover: y,
717
- dragend: O,
718
- isDragging: c
715
+ dragstart: m,
716
+ dragenter: p,
717
+ dragover: b,
718
+ dragend: M,
719
+ isDragging: r
719
720
  };
720
721
  }
721
722
  function it(e, t, o) {
722
723
  const { dataView: l } = o;
723
- function n(i) {
724
- if (i > -1 && i < l.value.length) {
725
- const u = l.value.splice(i, 1);
724
+ function n(s) {
725
+ if (s > -1 && s < l.value.length) {
726
+ const u = l.value.splice(s, 1);
726
727
  t.emit("removeItem", u[0]);
727
728
  }
728
729
  }
@@ -730,19 +731,19 @@ function it(e, t, o) {
730
731
  }
731
732
  function st() {
732
733
  const e = a(-1), t = a(""), o = a(-1), l = a(!1);
733
- function n(s, r, d) {
734
- o.value = d;
734
+ function n(d, f, i) {
735
+ o.value = i;
735
736
  }
736
- function i(s, r, d) {
737
- l.value || (o.value = d);
737
+ function s(d, f, i) {
738
+ l.value || (o.value = i);
738
739
  }
739
- function u(s, r, d) {
740
+ function u(d, f, i) {
740
741
  o.value = -1;
741
742
  }
742
- function c() {
743
+ function r() {
743
744
  l.value = !0;
744
745
  }
745
- function h() {
746
+ function y() {
746
747
  l.value = !1;
747
748
  }
748
749
  return {
@@ -750,10 +751,10 @@ function st() {
750
751
  focusedItemId: t,
751
752
  hoverIndex: o,
752
753
  onMouseenterItem: n,
753
- onMouseoverItem: i,
754
+ onMouseoverItem: s,
754
755
  onMouseoutItem: u,
755
- resumeHover: h,
756
- suspendHover: c
756
+ resumeHover: y,
757
+ suspendHover: r
757
758
  };
758
759
  }
759
760
  const ct = /* @__PURE__ */ G({
@@ -761,56 +762,56 @@ const ct = /* @__PURE__ */ G({
761
762
  props: Qe,
762
763
  emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
763
764
  setup(e, t) {
764
- const o = a(), l = a(e.view), n = a(e.header), i = a(e.multiSelect), u = a(e.view === "CardView"), c = a(!0), h = a({}), s = a("暂无数据");
765
+ const o = a(), l = a(e.view), n = a(e.header), s = a(e.multiSelect), u = a(e.view === "CardView"), r = a(!0), y = a({}), d = a("暂无数据");
765
766
  a(!0), a(!1), a("id");
766
- const r = lt(e), {
767
- dataView: d
768
- } = r, f = I(() => {
769
- const M = {
767
+ const f = lt(e), {
768
+ dataView: i
769
+ } = f, c = B(() => {
770
+ const F = {
770
771
  "f-list-view": !0,
771
- "f-list-view-multiple": i.value
772
+ "f-list-view-multiple": s.value
772
773
  };
773
- return e.size !== "default" && (M[`${e.size}-item`] = !0), M;
774
- }), C = I(() => ({
774
+ return e.size !== "default" && (F[`${e.size}-item`] = !0), F;
775
+ }), m = B(() => ({
775
776
  "f-list-view-group": !0,
776
777
  "d-flex": u.value,
777
778
  "flex-wrap": u.value
778
- })), m = I(() => !!d.value && d.value.length > 0), y = st(), O = Ze(e, t, r), P = ut(e, t, r, y), x = it(e, t, r), v = Ye(e, t, P, y, O), b = et(e, o), B = I(() => d.value.length === 0), k = I(() => B.value && !t.slots.empty), E = I(() => !!t.slots.footer || c.value);
779
- function L() {
779
+ })), p = B(() => !!i.value && i.value.length > 0), b = st(), M = Ze(e, t, f), P = ut(e, t, f, b), S = it(e, t, f), h = Ye(e, t, P, b, M), T = et(e, o), k = B(() => i.value.length === 0), x = B(() => k.value && !t.slots.empty), E = B(() => !!t.slots.footer || r.value);
780
+ function V() {
780
781
  return l.value === "SingleView" ? se : l.value === "DraggableView" ? ot : l.value === "ContentView" && t.slots.content ? nt : se;
781
782
  }
782
- const w = L(), {
783
+ const C = V(), {
783
784
  renderItem: j
784
- } = w(e, t, r, P, y, v, O, x);
785
- function V() {
785
+ } = C(e, t, f, P, b, h, M, S);
786
+ function L() {
786
787
  return n.value === "SearchBar" ? ce : n.value === "ContentHeader" ? at : ce;
787
788
  }
788
- const R = V(), {
789
+ const R = L(), {
789
790
  renderHeader: z
790
- } = R(e, t, b);
791
- function D(M) {
792
- b.search(M);
791
+ } = R(e, t, T);
792
+ function D(F) {
793
+ T.search(F);
793
794
  }
794
795
  t.expose({
795
796
  search: D
796
797
  });
797
- function F(M) {
798
- i.value && (M.preventDefault(), M.stopPropagation());
798
+ function O(F) {
799
+ s.value && (F.preventDefault(), F.stopPropagation());
799
800
  }
800
- return () => p("div", {
801
- class: f.value,
802
- onClick: F
803
- }, [z(), p("div", {
801
+ return () => v("div", {
802
+ class: c.value,
803
+ onClick: O
804
+ }, [z(), v("div", {
804
805
  ref: o,
805
806
  class: "f-list-view-content"
806
- }, [p("ul", {
807
- class: C.value,
807
+ }, [v("ul", {
808
+ class: m.value,
808
809
  style: "list-style: none;"
809
- }, [m.value && d.value.map((M, A) => j(M, A, h)), k.value && p("div", {
810
+ }, [p.value && i.value.map((F, A) => j(F, A, y)), x.value && v("div", {
810
811
  class: "f-list-view-emptydata"
811
- }, [p("p", {
812
+ }, [v("p", {
812
813
  class: "f-empty-title"
813
- }, [s.value])]), t.slots.empty && t.slots.empty()])]), E.value && p("div", {
814
+ }, [d.value])]), t.slots.empty && t.slots.empty()])]), E.value && v("div", {
814
815
  class: "f-list-view-footer"
815
816
  }, [t.slots.footer && t.slots.footer()])]);
816
817
  }
@@ -819,28 +820,32 @@ const ct = /* @__PURE__ */ G({
819
820
  props: Je,
820
821
  emits: ["selectionChange"],
821
822
  setup(e, t) {
822
- const o = a(e.dataSource), l = a([]), n = a(e.separator), i = a(e.selectedValues.split(n.value));
823
+ const o = a(e.dataSource), l = a([]), n = a(e.separator), s = a(e.width), u = a(e.height), r = a(e.selectedValues.split(n.value));
823
824
  W(e.dataSource, () => {
824
825
  o.value = e.dataSource;
825
826
  });
826
- const u = I(() => e.enableSearch ? "SearchBar" : "ContentHeader");
827
- function c(h) {
828
- l.value = h.map((s) => Object.assign({}, s)), i.value = h.map((s) => s[e.idField]), t.emit("selectionChange", l.value);
827
+ const y = B(() => e.enableSearch ? "SearchBar" : "ContentHeader"), d = B(() => {
828
+ const i = {};
829
+ return s.value !== void 0 && (i.width = `${s.value}px`), u.value !== void 0 && (i.height = `${u.value}px`), i;
830
+ });
831
+ function f(i) {
832
+ l.value = i.map((c) => Object.assign({}, c)), r.value = i.map((c) => c[e.idField]), t.emit("selectionChange", l.value);
829
833
  }
830
- return () => p("div", {
831
- class: "f-combo-list-container"
832
- }, [p(ct, {
834
+ return () => v("div", {
835
+ class: "f-combo-list-container",
836
+ style: d.value
837
+ }, [v(ct, {
833
838
  size: "small",
834
839
  itemClass: "f-combo-list-item",
835
- header: u.value,
840
+ header: y.value,
836
841
  headerClass: "f-combo-list-search-box",
837
842
  data: o.value,
838
843
  idField: e.idField,
839
844
  textField: e.textField,
840
845
  multiSelect: e.multiSelect,
841
846
  multiSelectMode: "OnCheckAndClick",
842
- "selection-values": i.value,
843
- onSelectionChange: c
847
+ "selection-values": r.value,
848
+ onSelectionChange: f
844
849
  }, null)]);
845
850
  }
846
851
  }), dt = /* @__PURE__ */ new Map([
@@ -1142,40 +1147,40 @@ const Ct = {
1142
1147
  emits: ["click"],
1143
1148
  setup(e, t) {
1144
1149
  const o = a(e.popupContentPosition), l = a(e.host);
1145
- function n(c) {
1146
- t.emit("click"), c.preventDefault(), c.stopPropagation();
1150
+ function n(r) {
1151
+ t.emit("click"), r.preventDefault(), r.stopPropagation();
1147
1152
  }
1148
- const i = I(() => {
1149
- const c = l.value;
1150
- if (c) {
1151
- const h = c.getBoundingClientRect(), {
1152
- left: s,
1153
- top: r,
1154
- height: d
1155
- } = h;
1153
+ const s = B(() => {
1154
+ const r = l.value;
1155
+ if (r) {
1156
+ const y = r.getBoundingClientRect(), {
1157
+ left: d,
1158
+ top: f,
1159
+ height: i
1160
+ } = y;
1156
1161
  return {
1157
- left: s,
1158
- top: r + d
1162
+ left: d,
1163
+ top: f + i
1159
1164
  };
1160
1165
  }
1161
1166
  return o.value;
1162
- }), u = I(() => ({
1167
+ }), u = B(() => ({
1163
1168
  position: "relative",
1164
- left: `${i.value.left}px`,
1165
- top: `${i.value.top}px`
1169
+ left: `${s.value.left}px`,
1170
+ top: `${s.value.top}px`
1166
1171
  }));
1167
- return () => p(de, {
1172
+ return () => v(de, {
1168
1173
  to: "body"
1169
1174
  }, {
1170
1175
  default: () => {
1171
- var c, h;
1172
- return [p("div", {
1176
+ var r, y;
1177
+ return [v("div", {
1173
1178
  class: "overlay-container",
1174
1179
  style: "pointer-events: auto;",
1175
- onClick: (s) => n(s)
1176
- }, [p("div", {
1180
+ onClick: (d) => n(d)
1181
+ }, [v("div", {
1177
1182
  style: u.value
1178
- }, [(h = (c = t.slots).default) == null ? void 0 : h.call(c)])])];
1183
+ }, [(y = (r = t.slots).default) == null ? void 0 : y.call(r)])])];
1179
1184
  }
1180
1185
  });
1181
1186
  }
@@ -1194,225 +1199,225 @@ function Tt(e) {
1194
1199
  }), n = () => {
1195
1200
  l(), o && o.unmount();
1196
1201
  };
1197
- return o = Ve({
1202
+ return o = Le({
1198
1203
  setup() {
1199
1204
  fe(() => {
1200
1205
  document.body.removeChild(t);
1201
1206
  });
1202
- const i = St(e);
1203
- return () => p(wt, {
1207
+ const s = St(e);
1208
+ return () => v(wt, {
1204
1209
  "popup-content-position": e.popupPosition,
1205
1210
  host: e.host,
1206
1211
  onClick: n
1207
1212
  }, {
1208
- default: () => [i && i()]
1213
+ default: () => [s && s()]
1209
1214
  });
1210
1215
  }
1211
1216
  }), document.body.appendChild(t), o.mount(t), o;
1212
1217
  }
1213
- class Bt {
1218
+ class It {
1214
1219
  static show(t) {
1215
1220
  return Tt(t);
1216
1221
  }
1217
1222
  }
1218
- function It(e, t, o, l) {
1219
- const n = a(e.buttonBehavior), i = a(e.popupOnInput), u = I(() => ({
1223
+ function Bt(e, t, o, l) {
1224
+ const n = a(e.buttonBehavior), s = a(e.popupOnInput), u = B(() => ({
1220
1225
  "input-group-append": !0,
1221
1226
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
1222
- })), c = I(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable);
1223
- async function h(f) {
1224
- if (c.value) {
1225
- const C = !!t.slots.default;
1226
- n.value === "Overlay" && Bt.show({
1227
+ })), r = B(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable);
1228
+ async function y(c) {
1229
+ if (r.value) {
1230
+ const m = !!t.slots.default;
1231
+ n.value === "Overlay" && It.show({
1227
1232
  host: o.value,
1228
1233
  render: () => {
1229
1234
  if (t.slots.default)
1230
1235
  return t.slots.default();
1231
1236
  }
1232
- }), C && n.value === "Popup" && l.togglePopup(), C && i.value && l.hidePopup(), t.emit("clickButton", { origin: f, value: e.modelValue });
1237
+ }), m && n.value === "Popup" && l.togglePopup(), m && s.value && l.hidePopup(), t.emit("clickButton", { origin: c, value: e.modelValue });
1233
1238
  }
1234
- f.stopPropagation();
1239
+ c.stopPropagation();
1235
1240
  }
1236
- function s(f) {
1237
- t.emit("mouseEnterIcon", f);
1241
+ function d(c) {
1242
+ t.emit("mouseEnterIcon", c);
1238
1243
  }
1239
- function r(f) {
1240
- t.emit("mouseLeaveIcon", f);
1244
+ function f(c) {
1245
+ t.emit("mouseLeaveIcon", c);
1241
1246
  }
1242
- function d() {
1247
+ function i() {
1243
1248
  t.emit("mouseOverButton");
1244
1249
  }
1245
1250
  return {
1246
1251
  buttonClass: u,
1247
- onClickButton: h,
1248
- onMouseEnterButton: s,
1249
- onMouseLeaveButton: r,
1250
- onMouseOverButton: d
1252
+ onClickButton: y,
1253
+ onMouseEnterButton: d,
1254
+ onMouseLeaveButton: f,
1255
+ onMouseOverButton: i
1251
1256
  };
1252
1257
  }
1253
- function kt(e, t, o, l, n, i) {
1254
- const u = a(!1), c = I(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: h } = i;
1255
- function s(C) {
1256
- u.value = C;
1258
+ function kt(e, t, o, l, n, s) {
1259
+ const u = a(!1), r = B(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: y } = s;
1260
+ function d(m) {
1261
+ u.value = m;
1257
1262
  }
1258
1263
  W(n, () => {
1259
- l.value ? s(!!n.value) : s(!1);
1264
+ l.value ? d(!!n.value) : d(!1);
1260
1265
  });
1261
- function r(C) {
1262
- const m = !e.readonly && !e.disable && e.editable, y = !e.editable;
1263
- C.stopPropagation(), (m || y) && (h("", !1), s(!u.value), t.emit("clear"));
1266
+ function f(m) {
1267
+ const p = !e.readonly && !e.disable && e.editable, b = !e.editable;
1268
+ m.stopPropagation(), (p || b) && (y("", !1), d(!u.value), t.emit("clear"));
1264
1269
  }
1265
- function d(C) {
1266
- if (c.value) {
1270
+ function i(m) {
1271
+ if (r.value) {
1267
1272
  if (!o.value) {
1268
- s(!1);
1273
+ d(!1);
1269
1274
  return;
1270
1275
  }
1271
- (!e.editable || !e.readonly) && !e.disable && s(!0);
1276
+ (!e.editable || !e.readonly) && !e.disable && d(!0);
1272
1277
  }
1273
1278
  }
1274
- function f(C) {
1275
- c.value && s(!1);
1279
+ function c(m) {
1280
+ r.value && d(!1);
1276
1281
  }
1277
1282
  return {
1278
- enableClearButton: c,
1283
+ enableClearButton: r,
1279
1284
  showClearButton: u,
1280
- onClearValue: r,
1281
- onMouseEnterTextBox: d,
1282
- onMouseLeaveTextBox: f
1285
+ onClearValue: f,
1286
+ onMouseEnterTextBox: i,
1287
+ onMouseLeaveTextBox: c
1283
1288
  };
1284
1289
  }
1285
1290
  function xt(e, t, o, l, n) {
1286
- const i = a(e.popupOnInput), u = a(e.popupOnFocus), { shouldPopupContent: c } = n, h = I(() => e.enableTitle ? o.value : ""), s = I(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), r = I(() => e.readonly || !e.editable);
1287
- let d = !1;
1288
- const f = I(() => !e.disable && d), C = I(() => ({
1291
+ const s = a(e.popupOnInput), u = a(e.popupOnFocus), { shouldPopupContent: r } = n, y = B(() => e.enableTitle ? o.value : ""), d = B(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = B(() => e.readonly || !e.editable);
1292
+ let i = !1;
1293
+ const c = B(() => !e.disable && i), m = B(() => ({
1289
1294
  "text-left": e.textAlign === "left",
1290
1295
  "text-center": e.textAlign === "center",
1291
1296
  "text-right": e.textAlign === "right",
1292
1297
  "form-control": !0,
1293
1298
  "f-utils-fill": !0
1294
- })), m = I(() => ({
1299
+ })), p = B(() => ({
1295
1300
  "input-group": !0,
1296
1301
  "f-state-disable": e.disable,
1297
1302
  "f-state-editable": e.editable && !e.disable && !e.readonly,
1298
1303
  "f-state-readonly": e.readonly && !e.disable,
1299
- "f-state-focus": f.value
1304
+ "f-state-focus": c.value
1300
1305
  }));
1301
- function y(w, j = !0) {
1302
- o.value !== w && (o.value = w, j && t.emit("change", w), t.emit("update:modelValue", w));
1306
+ function b(C, j = !0) {
1307
+ o.value !== C && (o.value = C, j && t.emit("change", C), t.emit("update:modelValue", C));
1303
1308
  }
1304
- function O(w) {
1305
- c.value = !1, y(w, !0);
1309
+ function M(C) {
1310
+ r.value = !1, b(C, !0);
1306
1311
  }
1307
1312
  W(
1308
1313
  () => e.modelValue,
1309
- (w) => {
1310
- o.value = w, t.emit("change", w);
1314
+ (C) => {
1315
+ o.value = C, t.emit("change", C);
1311
1316
  }
1312
1317
  );
1313
- function P(w) {
1314
- d = !1, t.emit("blur", w), w.stopPropagation();
1318
+ function P(C) {
1319
+ i = !1, t.emit("blur", C), C.stopPropagation();
1315
1320
  }
1316
- function x(w) {
1317
- t.emit("click", w);
1321
+ function S(C) {
1322
+ t.emit("click", C);
1318
1323
  }
1319
- function v(w) {
1324
+ function h(C) {
1320
1325
  if (e.disable) {
1321
- d = !0;
1326
+ i = !0;
1322
1327
  return;
1323
1328
  }
1324
- d = !0, r.value || (t.emit("focus", w), u.value && !c.value && n.popup());
1329
+ i = !0, f.value || (t.emit("focus", C), u.value && !r.value && n.popup());
1325
1330
  }
1326
- function b(w) {
1327
- t.emit("input", w.target.value);
1328
- const j = w.target.value;
1329
- l.value = j, o.value !== j && y(j, !1), i.value && !c.value && n.popup();
1331
+ function T(C) {
1332
+ t.emit("input", C.target.value);
1333
+ const j = C.target.value;
1334
+ l.value = j, o.value !== j && b(j, !1), s.value && !r.value && n.popup();
1330
1335
  }
1331
- function B(w) {
1332
- w.target.tagName !== "INPUT" && w.preventDefault(), w.stopPropagation();
1336
+ function k(C) {
1337
+ C.target.tagName !== "INPUT" && C.preventDefault(), C.stopPropagation();
1333
1338
  }
1334
- function k(w) {
1335
- t.emit("keydown", w);
1339
+ function x(C) {
1340
+ t.emit("keydown", C);
1336
1341
  }
1337
- function E(w) {
1338
- w.key === "Enter" && (i.value || u.value) && n.hidePopup(), t.emit("keyup", w);
1342
+ function E(C) {
1343
+ C.key === "Enter" && (s.value || u.value) && n.hidePopup(), t.emit("keyup", C);
1339
1344
  }
1340
- function L(w) {
1341
- const j = w.target.value;
1342
- w.stopPropagation(), y(j);
1345
+ function V(C) {
1346
+ const j = C.target.value;
1347
+ C.stopPropagation(), b(j);
1343
1348
  }
1344
1349
  return {
1345
- hasFocusedTextBox: f,
1346
- isTextBoxReadonly: r,
1347
- textBoxClass: C,
1348
- textBoxPlaceholder: s,
1349
- textBoxTitle: h,
1350
- inputGroupClass: m,
1351
- changeTextBoxValue: y,
1352
- commitValue: O,
1350
+ hasFocusedTextBox: c,
1351
+ isTextBoxReadonly: f,
1352
+ textBoxClass: m,
1353
+ textBoxPlaceholder: d,
1354
+ textBoxTitle: y,
1355
+ inputGroupClass: p,
1356
+ changeTextBoxValue: b,
1357
+ commitValue: M,
1353
1358
  onBlurTextBox: P,
1354
- onClickTextBox: x,
1355
- onFocusTextBox: v,
1356
- onInput: b,
1357
- onKeyDownTextBox: k,
1359
+ onClickTextBox: S,
1360
+ onFocusTextBox: h,
1361
+ onInput: T,
1362
+ onKeyDownTextBox: x,
1358
1363
  onKeyUpTextBox: E,
1359
- onMouseDownTextBox: B,
1360
- onTextBoxValueChange: L
1364
+ onMouseDownTextBox: k,
1365
+ onTextBoxValueChange: V
1361
1366
  };
1362
1367
  }
1363
1368
  function Pt(e, t, o) {
1364
1369
  const l = a(), n = a(!1);
1365
- function i() {
1366
- const s = l.value;
1367
- s && s.show(o.value);
1370
+ function s() {
1371
+ const d = l.value;
1372
+ d && d.show(o.value);
1368
1373
  }
1369
1374
  async function u() {
1370
- !!t.slots.default && (n.value = !n.value, await K(), i());
1375
+ !!t.slots.default && (n.value = !n.value, await K(), s());
1371
1376
  }
1372
- async function c() {
1373
- !!t.slots.default && (n.value = !0, await K(), i());
1377
+ async function r() {
1378
+ !!t.slots.default && (n.value = !0, await K(), s());
1374
1379
  }
1375
- function h() {
1380
+ function y() {
1376
1381
  n.value = !1;
1377
1382
  }
1378
- return { hidePopup: h, popup: c, shouldPopupContent: n, togglePopup: u, popoverRef: l };
1383
+ return { hidePopup: y, popup: r, shouldPopupContent: n, togglePopup: u, popoverRef: l };
1379
1384
  }
1380
1385
  function Mt(e, t, o) {
1381
1386
  const {
1382
1387
  isTextBoxReadonly: l,
1383
1388
  textBoxClass: n,
1384
- textBoxPlaceholder: i,
1389
+ textBoxPlaceholder: s,
1385
1390
  textBoxTitle: u,
1386
- onBlurTextBox: c,
1387
- onClickTextBox: h,
1388
- onFocusTextBox: s,
1389
- onInput: r,
1390
- onKeyDownTextBox: d,
1391
- onKeyUpTextBox: f,
1392
- onMouseDownTextBox: C,
1393
- onTextBoxValueChange: m
1391
+ onBlurTextBox: r,
1392
+ onClickTextBox: y,
1393
+ onFocusTextBox: d,
1394
+ onInput: f,
1395
+ onKeyDownTextBox: i,
1396
+ onKeyUpTextBox: c,
1397
+ onMouseDownTextBox: m,
1398
+ onTextBoxValueChange: p
1394
1399
  } = o;
1395
- return () => p("input", {
1400
+ return () => v("input", {
1396
1401
  name: "input-group-value",
1397
1402
  autocomplete: e.autoComplete ? "on" : "off",
1398
1403
  class: n.value,
1399
1404
  disabled: e.disable,
1400
1405
  maxlength: e.maxLength,
1401
1406
  minlength: e.minLength,
1402
- placeholder: i.value,
1407
+ placeholder: s.value,
1403
1408
  readonly: l.value,
1404
1409
  tabindex: e.tabIndex,
1405
1410
  title: u.value,
1406
1411
  type: e.inputType,
1407
1412
  value: t.value,
1408
- onBlur: c,
1409
- onChange: m,
1410
- onClick: h,
1411
- onFocus: s,
1412
- onInput: r,
1413
- onKeydown: d,
1414
- onKeyup: f,
1415
- onMousedown: C
1413
+ onBlur: r,
1414
+ onChange: p,
1415
+ onClick: y,
1416
+ onFocus: d,
1417
+ onInput: f,
1418
+ onKeydown: i,
1419
+ onKeyup: c,
1420
+ onMousedown: m
1416
1421
  }, null);
1417
1422
  }
1418
1423
  const Ft = {
@@ -1434,157 +1439,157 @@ const Ft = {
1434
1439
  draggable: { Type: Boolean, default: !1 }
1435
1440
  };
1436
1441
  function Ot(e, t, o, l) {
1437
- const n = a(-1), i = a(!1);
1438
- function u(r, d, f) {
1439
- r.stopPropagation(), d && setTimeout(() => {
1440
- n.value = f, i.value = !0, d.moving = !0;
1442
+ const n = a(-1), s = a(!1);
1443
+ function u(f, i, c) {
1444
+ f.stopPropagation(), i && setTimeout(() => {
1445
+ n.value = c, s.value = !0, i.moving = !0;
1441
1446
  });
1442
1447
  }
1443
- function c(r, d) {
1444
- if (r.preventDefault(), n.value !== d) {
1445
- const f = l.value[n.value], C = l.value;
1446
- C.splice(n.value, 1), C.splice(d, 0, f), n.value = d;
1448
+ function r(f, i) {
1449
+ if (f.preventDefault(), n.value !== i) {
1450
+ const c = l.value[n.value], m = l.value;
1451
+ m.splice(n.value, 1), m.splice(i, 0, c), n.value = i;
1447
1452
  }
1448
1453
  }
1449
- function h(r, d) {
1450
- r.preventDefault(), r.dataTransfer && (r.dataTransfer.dropEffect = "move");
1454
+ function y(f, i) {
1455
+ f.preventDefault(), f.dataTransfer && (f.dataTransfer.dropEffect = "move");
1451
1456
  }
1452
- function s(r, d) {
1453
- d && (d.moving = !1), o.value = l.value.filter((f) => f.type === "Tag").map((f) => f.payload), i.value = !1, t.emit("change", o.value);
1457
+ function d(f, i) {
1458
+ i && (i.moving = !1), o.value = l.value.filter((c) => c.type === "Tag").map((c) => c.payload), s.value = !1, t.emit("change", o.value);
1454
1459
  }
1455
1460
  return {
1456
1461
  dragstart: u,
1457
- dragenter: c,
1458
- dragover: h,
1459
- dragend: s,
1460
- isDragging: i
1462
+ dragenter: r,
1463
+ dragover: y,
1464
+ dragend: d,
1465
+ isDragging: s
1461
1466
  };
1462
1467
  }
1463
- const Vt = /* @__PURE__ */ G({
1468
+ const Lt = /* @__PURE__ */ G({
1464
1469
  name: "FTags",
1465
1470
  props: Ft,
1466
1471
  emits: ["remove", "selectionChange", "change"],
1467
1472
  setup(e, t) {
1468
- const o = a(e.selectable), l = a(e.customClass), n = a(e.data), i = a(e.tagType), u = a(e.tagStyle), c = a(e.showColor), h = a(e.activeTag), s = a(e.customStyle), r = a(e.showClose), d = a(e.showAddButton), f = a(e.showInput), C = a(e.addButtonText), m = a(e.enableAddButton);
1473
+ const o = a(e.selectable), l = a(e.customClass), n = a(e.data), s = a(e.tagType), u = a(e.tagStyle), r = a(e.showColor), y = a(e.activeTag), d = a(e.customStyle), f = a(e.showClose), i = a(e.showAddButton), c = a(e.showInput), m = a(e.addButtonText), p = a(e.enableAddButton);
1469
1474
  a(e.placeholder), a(""), a();
1470
- const y = a(), O = a(e.wrapText), P = a();
1471
- function x() {
1472
- const g = n.value.map((S) => ({
1475
+ const b = a(), M = a(e.wrapText), P = a();
1476
+ function S() {
1477
+ const g = n.value.map((w) => ({
1473
1478
  type: "Tag",
1474
- payload: S
1479
+ payload: w
1475
1480
  }));
1476
- return d.value && g.push({
1481
+ return i.value && g.push({
1477
1482
  type: "AddButton"
1478
1483
  }), g;
1479
1484
  }
1480
- const v = a(x());
1481
- function b(g) {
1482
- n.value = g, v.value = x();
1485
+ const h = a(S());
1486
+ function T(g) {
1487
+ n.value = g, h.value = S();
1483
1488
  }
1484
- const B = I(() => v.value.findIndex((g) => g.type === "Input")), k = Ot(e, t, n, v), {
1489
+ const k = B(() => h.value.findIndex((g) => g.type === "Input")), x = Ot(e, t, n, h), {
1485
1490
  dragstart: E,
1486
- dragenter: L,
1487
- dragover: w,
1491
+ dragenter: V,
1492
+ dragover: C,
1488
1493
  dragend: j
1489
- } = k;
1490
- W(() => e.data, (g) => b(g));
1491
- const V = I(() => {
1494
+ } = x;
1495
+ W(() => e.data, (g) => T(g));
1496
+ const L = B(() => {
1492
1497
  const g = {
1493
1498
  "farris-tags": !0,
1494
1499
  "farris-tags-checkable": o.value,
1495
- "farris-tags-nowrap": !O.value
1500
+ "farris-tags-nowrap": !M.value
1496
1501
  };
1497
- return l.value.split(" ").reduce((S, T) => (S[T] = !0, S), g), g;
1502
+ return l.value.split(" ").reduce((w, I) => (w[I] = !0, w), g), g;
1498
1503
  });
1499
1504
  function R(g) {
1500
- const S = {
1505
+ const w = {
1501
1506
  "farris-tag-item": !0,
1502
1507
  "farris-tag-item-checked": o.value && g.checked,
1503
1508
  "farris-tag-item-checkable": o.value,
1504
- "farris-tag-item-has-color": c.value,
1505
- "farris-tag-item-actived": h.value === g.name
1509
+ "farris-tag-item-has-color": r.value,
1510
+ "farris-tag-item-actived": y.value === g.name
1506
1511
  };
1507
- if (i.value) {
1508
- const T = `farris-tag-item-${i.value}`;
1509
- S[T] = !0;
1512
+ if (s.value) {
1513
+ const I = `farris-tag-item-${s.value}`;
1514
+ w[I] = !0;
1510
1515
  }
1511
- return S;
1516
+ return w;
1512
1517
  }
1513
- const z = I(() => {
1518
+ const z = B(() => {
1514
1519
  const g = {};
1515
- return s.value && s.value.split(";").reduce((S, T) => {
1516
- const H = T.split(":");
1517
- return S[H[0]] = H[1], S;
1520
+ return d.value && d.value.split(";").reduce((w, I) => {
1521
+ const H = I.split(":");
1522
+ return w[H[0]] = H[1], w;
1518
1523
  }, g), g;
1519
1524
  });
1520
- function D(g, S) {
1521
- o.value && S.selectable && (S.checked = !S.checked, h.value = S.checked ? S.name : "", S.checked && n.value.filter((T) => T.name !== S.name).forEach((T) => {
1522
- T.checked = !S.checked;
1523
- }), t.emit("change", n.value), t.emit("selectionChange", S));
1525
+ function D(g, w) {
1526
+ o.value && w.selectable && (w.checked = !w.checked, y.value = w.checked ? w.name : "", w.checked && n.value.filter((I) => I.name !== w.name).forEach((I) => {
1527
+ I.checked = !w.checked;
1528
+ }), t.emit("change", n.value), t.emit("selectionChange", w));
1524
1529
  }
1525
- function F(g, S) {
1526
- let T;
1530
+ function O(g, w) {
1531
+ let I;
1527
1532
  switch (g.key) {
1528
1533
  case "Backspace":
1529
- n.value = n.value.filter((H) => H.name !== S.name), t.emit("change", n.value);
1534
+ n.value = n.value.filter((H) => H.name !== w.name), t.emit("change", n.value);
1530
1535
  break;
1531
1536
  case "ArrowLeft":
1532
- T = Math.max(y.value.scrollLeft + 20, 0), y.value.scrollLeft = T;
1537
+ I = Math.max(b.value.scrollLeft + 20, 0), b.value.scrollLeft = I;
1533
1538
  break;
1534
1539
  case "ArrowRight":
1535
- T = Math.max(y.value.scrollLeft - 20, 0), y.value.scrollLeft = T;
1540
+ I = Math.max(b.value.scrollLeft - 20, 0), b.value.scrollLeft = I;
1536
1541
  }
1537
1542
  }
1538
- function M(g, S) {
1539
- const T = n.value.findIndex((H) => H.name === S.name);
1540
- if (T > -1) {
1541
- const [H] = n.value.splice(T, 1);
1542
- v.value = x(), t.emit("change", n.value), t.emit("remove", n.value, H, T);
1543
+ function F(g, w) {
1544
+ const I = n.value.findIndex((H) => H.name === w.name);
1545
+ if (I > -1) {
1546
+ const [H] = n.value.splice(I, 1);
1547
+ h.value = S(), t.emit("change", n.value), t.emit("remove", n.value, H, I);
1543
1548
  }
1544
1549
  g.stopPropagation();
1545
1550
  }
1546
- const A = I(() => ({
1551
+ const A = B(() => ({
1547
1552
  "farris-tag-item": !0,
1548
1553
  "farris-tag-add-button": !0,
1549
- "farris-tag-add-button-disabled": !m.value
1554
+ "farris-tag-add-button-disabled": !p.value
1550
1555
  }));
1551
1556
  function $(g) {
1552
1557
  }
1553
1558
  function _() {
1554
- return p("li", {
1559
+ return v("li", {
1555
1560
  class: A.value,
1556
1561
  onClick: (g) => void 0
1557
- }, [p("span", {
1562
+ }, [v("span", {
1558
1563
  class: "f-icon f-icon-amplification"
1559
- }, null), p("span", {
1564
+ }, null), v("span", {
1560
1565
  class: "farris-tag-add-text"
1561
- }, [C.value])]);
1566
+ }, [m.value])]);
1562
1567
  }
1563
1568
  function N(g) {
1564
1569
  if (g && !g.innerText) {
1565
- const S = B.value;
1566
- if (S > 0) {
1567
- const [T] = n.value.splice(S - 1, 1);
1568
- v.value.splice(S - 1, 1), t.emit("remove", n.value, T, S - 1);
1570
+ const w = k.value;
1571
+ if (w > 0) {
1572
+ const [I] = n.value.splice(w - 1, 1);
1573
+ h.value.splice(w - 1, 1), t.emit("remove", n.value, I, w - 1);
1569
1574
  }
1570
1575
  }
1571
1576
  }
1572
- function U(g, S, T) {
1577
+ function U(g, w, I) {
1573
1578
  g > -1 && (n.value.splice(g, 0, {
1574
- name: S,
1575
- value: T,
1579
+ name: w,
1580
+ value: I,
1576
1581
  selectable: o.value
1577
- }), v.value = x(), t.emit("change", n.value));
1582
+ }), h.value = S(), t.emit("change", n.value));
1578
1583
  }
1579
1584
  function J(g) {
1580
1585
  if (g && g.innerText) {
1581
- const S = g.innerText, T = B.value;
1582
- U(T, S, S), g.innerText = "";
1586
+ const w = g.innerText, I = k.value;
1587
+ U(I, w, w), g.innerText = "";
1583
1588
  }
1584
1589
  }
1585
1590
  function Y(g) {
1586
- const S = g.target;
1587
- S && (S.innerText ? J(S) : t.emit("change", n.value));
1591
+ const w = g.target;
1592
+ w && (w.innerText ? J(w) : t.emit("change", n.value));
1588
1593
  }
1589
1594
  function be(g) {
1590
1595
  g.key === "Enter" && J(g.target), g.key === "Backspace" && (N(g.target), K(() => {
@@ -1592,9 +1597,9 @@ const Vt = /* @__PURE__ */ G({
1592
1597
  }));
1593
1598
  }
1594
1599
  function Ce() {
1595
- return p("li", {
1600
+ return v("li", {
1596
1601
  class: "farris-tag-input-box"
1597
- }, [p("div", {
1602
+ }, [v("div", {
1598
1603
  ref: P,
1599
1604
  class: "form-control",
1600
1605
  contenteditable: "true",
@@ -1602,35 +1607,35 @@ const Vt = /* @__PURE__ */ G({
1602
1607
  onBlur: Y
1603
1608
  }, null)]);
1604
1609
  }
1605
- function we(g, S) {
1606
- return p("li", {
1610
+ function we(g, w) {
1611
+ return v("li", {
1607
1612
  class: R(g),
1608
1613
  style: z.value,
1609
1614
  tabindex: 0,
1610
1615
  id: g.name,
1611
1616
  key: g.name,
1612
- onClick: (T) => D(T, g),
1613
- onKeydown: (T) => F(T, g),
1617
+ onClick: (I) => D(I, g),
1618
+ onKeydown: (I) => O(I, g),
1614
1619
  draggable: "true",
1615
- onDragstart: (T) => E(T, g, S),
1616
- onDragenter: (T) => L(T, S),
1617
- onDragend: (T) => j(T, g),
1618
- onDragover: (T) => w(T, S)
1619
- }, [p("div", {
1620
+ onDragstart: (I) => E(I, g, w),
1621
+ onDragenter: (I) => V(I, w),
1622
+ onDragend: (I) => j(I, g),
1623
+ onDragover: (I) => C(I, w)
1624
+ }, [v("div", {
1620
1625
  title: g.name,
1621
1626
  class: "tag-box"
1622
- }, [g.name]), r.value && p("span", {
1627
+ }, [g.name]), f.value && v("span", {
1623
1628
  class: "tag-delete"
1624
- }, [p("i", {
1629
+ }, [v("i", {
1625
1630
  class: "f-icon f-icon-close",
1626
- onClick: (T) => M(T, g)
1631
+ onClick: (I) => F(I, g)
1627
1632
  }, null)])]);
1628
1633
  }
1629
1634
  function Se() {
1630
- return v.value.map((g, S) => {
1635
+ return h.value.map((g, w) => {
1631
1636
  switch (g.type) {
1632
1637
  case "Tag":
1633
- return we(g.payload, S);
1638
+ return we(g.payload, w);
1634
1639
  case "AddButton":
1635
1640
  return _();
1636
1641
  case "Input":
@@ -1638,73 +1643,73 @@ const Vt = /* @__PURE__ */ G({
1638
1643
  }
1639
1644
  });
1640
1645
  }
1641
- const Te = I(() => ({
1646
+ const Te = B(() => ({
1642
1647
  "farris-tags-item-container": !0,
1643
1648
  "farris-tag-item-capsule": u.value === "capsule"
1644
1649
  }));
1645
- function Be(g) {
1646
- const S = Math.max(y.value.scrollLeft - g.deltaX, 0);
1647
- y.value.scrollLeft = S;
1648
- }
1649
1650
  function Ie(g) {
1650
- const S = y.value, T = n.value.length - 1;
1651
- if (S) {
1652
- const H = Array.from(S.children).filter((X) => X.className.indexOf("farris-tag-item") > -1).findIndex((X) => {
1651
+ const w = Math.max(b.value.scrollLeft - g.deltaX, 0);
1652
+ b.value.scrollLeft = w;
1653
+ }
1654
+ function Be(g) {
1655
+ const w = b.value, I = n.value.length - 1;
1656
+ if (w) {
1657
+ const H = Array.from(w.children).filter((X) => X.className.indexOf("farris-tag-item") > -1).findIndex((X) => {
1653
1658
  const q = X.getBoundingClientRect(), Z = window.getComputedStyle(X), ue = parseInt(Z["margin-left"], 10) + q.width + parseInt(Z["margin-right"], 10);
1654
1659
  return q.left + ue > g;
1655
1660
  });
1656
1661
  if (H > -1)
1657
1662
  return H;
1658
1663
  }
1659
- return T;
1664
+ return I;
1660
1665
  }
1661
1666
  function ke(g) {
1662
- if (f.value) {
1663
- const T = Ie(g.clientX) + 1, X = v.value.filter((q) => q.type !== "Input");
1664
- X.splice(T, 0, {
1667
+ if (c.value) {
1668
+ const I = Be(g.clientX) + 1, X = h.value.filter((q) => q.type !== "Input");
1669
+ X.splice(I, 0, {
1665
1670
  type: "Input"
1666
- }), v.value = X, K(() => {
1671
+ }), h.value = X, K(() => {
1667
1672
  P.value && P.value.focus();
1668
1673
  });
1669
1674
  }
1670
1675
  }
1671
1676
  function xe(g) {
1672
- var T;
1677
+ var I;
1673
1678
  g.preventDefault(), g.stopPropagation();
1674
- const S = (T = g.dataTransfer) == null ? void 0 : T.getData("Text");
1675
- if (S) {
1676
- const H = S.split(":"), X = H[0], q = H[1];
1679
+ const w = (I = g.dataTransfer) == null ? void 0 : I.getData("Text");
1680
+ if (w) {
1681
+ const H = w.split(":"), X = H[0], q = H[1];
1677
1682
  [...n.value].findIndex((ee) => (console.log(`${ee.value} === ${q} is ${ee.value === q}`), ee.value === q)) > -1 || U(n.value.length, X, q);
1678
1683
  }
1679
1684
  }
1680
1685
  function Pe(g) {
1681
1686
  g.preventDefault();
1682
1687
  }
1683
- return () => p("div", {
1684
- class: V.value,
1688
+ return () => v("div", {
1689
+ class: L.value,
1685
1690
  onClick: ke,
1686
1691
  onDrop: xe,
1687
1692
  onDragover: Pe
1688
- }, [p("ul", {
1689
- ref: y,
1693
+ }, [v("ul", {
1694
+ ref: b,
1690
1695
  class: Te.value,
1691
- onWheel: (g) => Be(g)
1696
+ onWheel: (g) => Ie(g)
1692
1697
  }, [Se()])]);
1693
1698
  }
1694
1699
  });
1695
- function Lt(e, t, o) {
1700
+ function Vt(e, t, o) {
1696
1701
  const l = a(e.separator), {
1697
1702
  changeTextBoxValue: n
1698
- } = o, i = I(() => t.value ? t.value.split(l.value).map((c) => ({
1699
- name: c,
1703
+ } = o, s = B(() => t.value ? t.value.split(l.value).map((r) => ({
1704
+ name: r,
1700
1705
  selectable: !0
1701
1706
  })) : []);
1702
- function u(c) {
1703
- n(c.map((h) => h.name).join(l.value), !0);
1707
+ function u(r) {
1708
+ n(r.map((y) => y.name).join(l.value), !0);
1704
1709
  }
1705
- return () => p(Vt, {
1710
+ return () => v(Lt, {
1706
1711
  class: "form-control",
1707
- data: i.value,
1712
+ data: s.value,
1708
1713
  showClose: !0,
1709
1714
  showInput: !0,
1710
1715
  onChange: u
@@ -1714,25 +1719,25 @@ function Dt(e, t, o) {
1714
1719
  const {
1715
1720
  buttonClass: l,
1716
1721
  onClickButton: n,
1717
- onMouseEnterButton: i,
1722
+ onMouseEnterButton: s,
1718
1723
  onMouseLeaveButton: u
1719
1724
  } = t, {
1720
- enableClearButton: c,
1721
- showClearButton: h,
1722
- onClearValue: s
1725
+ enableClearButton: r,
1726
+ showClearButton: y,
1727
+ onClearValue: d
1723
1728
  } = o;
1724
- return () => p("div", {
1729
+ return () => v("div", {
1725
1730
  class: l.value
1726
- }, [c.value && Q(p("span", {
1731
+ }, [r.value && Q(v("span", {
1727
1732
  class: "input-group-text input-group-clear",
1728
- onClick: s
1729
- }, [p("i", {
1733
+ onClick: d
1734
+ }, [v("i", {
1730
1735
  class: "f-icon modal_close"
1731
- }, null)]), [[ve, h.value]]), e.buttonContent && p("span", {
1736
+ }, null)]), [[ve, y.value]]), e.buttonContent && v("span", {
1732
1737
  class: "input-group-text input-group-append-button",
1733
1738
  innerHTML: e.buttonContent,
1734
1739
  onClick: n,
1735
- onMouseenter: i,
1740
+ onMouseenter: s,
1736
1741
  onMouseleave: u
1737
1742
  }, null)]);
1738
1743
  }
@@ -1760,170 +1765,170 @@ const jt = {
1760
1765
  minWidth: { type: Number, default: -1 }
1761
1766
  };
1762
1767
  function Rt(e) {
1763
- const t = e.host ? e.host : "body", o = I(() => t === "body" ? 0 : t ? t.getBoundingClientRect().top : 0), l = I(() => t === "body" ? 0 : t ? t.getBoundingClientRect().left : 0), n = I(() => t === "body" ? document.body.getBoundingClientRect().width : t ? t.getBoundingClientRect().width - (e.rightBoundary ? e.rightBoundary.getBoundingClientRect().width : 0) : document.body.getBoundingClientRect().width);
1768
+ const t = e.host ? e.host : "body", o = B(() => t === "body" ? 0 : t ? t.getBoundingClientRect().top : 0), l = B(() => t === "body" ? 0 : t ? t.getBoundingClientRect().left : 0), n = B(() => t === "body" ? document.body.getBoundingClientRect().width : t ? t.getBoundingClientRect().width - (e.rightBoundary ? e.rightBoundary.getBoundingClientRect().width : 0) : document.body.getBoundingClientRect().width);
1764
1769
  return { host: t, hostLeft: l, hostTop: o, hostWidth: n };
1765
1770
  }
1766
1771
  function At(e, t, o, l) {
1767
1772
  var D;
1768
- const n = a(0), i = a(((D = e.offsetX) == null ? void 0 : D.value) || 0), u = a(-1), c = a(-1), h = a(-1), s = a(e.placement), r = a(0), d = a(0), f = a(0), C = a(document.documentElement.scrollLeft), m = a(document.documentElement.scrollTop), { hostLeft: y, hostTop: O, hostWidth: P } = l;
1769
- W(e.offsetX, (F) => {
1770
- n.value = F - i.value;
1773
+ const n = a(0), s = a(((D = e.offsetX) == null ? void 0 : D.value) || 0), u = a(-1), r = a(-1), y = a(-1), d = a(e.placement), f = a(0), i = a(0), c = a(0), m = a(document.documentElement.scrollLeft), p = a(document.documentElement.scrollTop), { hostLeft: b, hostTop: M, hostWidth: P } = l;
1774
+ W(e.offsetX, (O) => {
1775
+ n.value = O - s.value;
1771
1776
  });
1772
- const x = I(() => {
1773
- const F = {
1774
- left: `${d.value}px`,
1775
- top: `${f.value}px`,
1777
+ const S = B(() => {
1778
+ const O = {
1779
+ left: `${i.value}px`,
1780
+ top: `${c.value}px`,
1776
1781
  transform: `translateX(${n.value}px)`
1777
1782
  };
1778
- return e.zIndex !== -1 && (F["z-index"] = e.zIndex), u.value !== -1 && (F.width = `${u.value}px`), F;
1779
- }), v = I(() => ({
1780
- left: `${r.value}px`
1783
+ return e.zIndex !== -1 && (O["z-index"] = e.zIndex), u.value !== -1 && (O.width = `${u.value}px`), O;
1784
+ }), h = B(() => ({
1785
+ left: `${f.value}px`
1781
1786
  }));
1782
- function b(F) {
1783
- if (F && e.keepWidthWithReference) {
1784
- const M = F.getBoundingClientRect();
1785
- u.value = Math.max(e.minWidth, M.width);
1787
+ function T(O) {
1788
+ if (O && e.keepWidthWithReference) {
1789
+ const F = O.getBoundingClientRect();
1790
+ u.value = Math.max(e.minWidth, F.width);
1786
1791
  }
1787
1792
  }
1788
- function B(F, M) {
1789
- const A = P.value - F.width - 4;
1790
- return A > 0 ? A : M;
1793
+ function k(O, F) {
1794
+ const A = P.value - O.width - 4;
1795
+ return A > 0 ? A : F;
1791
1796
  }
1792
- function k(F, M, A) {
1793
- const $ = r.value, _ = M.left - y.value + M.width / 2 + C.value, N = M.top - O.value - (F.height + A.height) + m.value;
1797
+ function x(O, F, A) {
1798
+ const $ = f.value, _ = F.left - b.value + F.width / 2 + m.value, N = F.top - M.value - (O.height + A.height) + p.value;
1794
1799
  return { popoverLeft: _, popoverTop: N, arrowLeft: $ };
1795
1800
  }
1796
- function E(F, M, A) {
1797
- return M.top - O.value + (M.height + A.height) + m.value;
1801
+ function E(O, F, A) {
1802
+ return F.top - M.value + (F.height + A.height) + p.value;
1798
1803
  }
1799
- function L(F, M) {
1800
- const A = B(M, F), $ = F <= A ? r.value : F - A;
1801
- return { popoverLeft: Math.min(F, A), arrowLeft: $ };
1804
+ function V(O, F) {
1805
+ const A = k(F, O), $ = O <= A ? f.value : O - A;
1806
+ return { popoverLeft: Math.min(O, A), arrowLeft: $ };
1802
1807
  }
1803
- function w(F, M, A) {
1804
- const $ = M.left - y.value + M.width / 2 - (A.width / 2 - (F.left - y.value)) + C.value, { arrowLeft: _, popoverLeft: N } = L($, F), U = E(F, M, A);
1808
+ function C(O, F, A) {
1809
+ const $ = F.left - b.value + F.width / 2 - (A.width / 2 - (O.left - b.value)) + m.value, { arrowLeft: _, popoverLeft: N } = V($, O), U = E(O, F, A);
1805
1810
  return { popoverLeft: N, popoverTop: U, arrowLeft: _ };
1806
1811
  }
1807
- function j(F, M, A) {
1808
- const $ = M.left - y.value + C.value, { arrowLeft: _, popoverLeft: N } = L($, F), U = E(F, M, A);
1812
+ function j(O, F, A) {
1813
+ const $ = F.left - b.value + m.value, { arrowLeft: _, popoverLeft: N } = V($, O), U = E(O, F, A);
1809
1814
  return { popoverLeft: N, popoverTop: U, arrowLeft: _ };
1810
1815
  }
1811
- const V = /* @__PURE__ */ new Map([
1812
- ["top", k],
1813
- ["bottom", w],
1816
+ const L = /* @__PURE__ */ new Map([
1817
+ ["top", x],
1818
+ ["bottom", C],
1814
1819
  ["bottom-left", j]
1815
1820
  ]);
1816
- function R(F) {
1821
+ function R(O) {
1817
1822
  var N;
1818
- const M = F.getBoundingClientRect();
1819
- c.value = M.top, h.value = M.left;
1820
- const A = t.value.getBoundingClientRect(), $ = (N = o.value) == null ? void 0 : N.getBoundingClientRect(), _ = V.get(s.value);
1823
+ const F = O.getBoundingClientRect();
1824
+ r.value = F.top, y.value = F.left;
1825
+ const A = t.value.getBoundingClientRect(), $ = (N = o.value) == null ? void 0 : N.getBoundingClientRect(), _ = L.get(d.value);
1821
1826
  if (_) {
1822
- const { arrowLeft: U, popoverLeft: J, popoverTop: Y } = _($, M, A);
1823
- r.value = U, d.value = J, f.value = Y;
1827
+ const { arrowLeft: U, popoverLeft: J, popoverTop: Y } = _($, F, A);
1828
+ f.value = U, i.value = J, c.value = Y;
1824
1829
  }
1825
- e.keepWidthWithReference && b(F);
1830
+ e.keepWidthWithReference && T(O);
1826
1831
  }
1827
- function z(F) {
1828
- if (F) {
1829
- const M = F.getBoundingClientRect();
1830
- (M.left !== h.value || M.top !== c.value) && R(F);
1832
+ function z(O) {
1833
+ if (O) {
1834
+ const F = O.getBoundingClientRect();
1835
+ (F.left !== y.value || F.top !== r.value) && R(O);
1831
1836
  }
1832
1837
  }
1833
1838
  return {
1834
- arrowStyle: v,
1835
- popoverStyle: x,
1836
- position: s,
1839
+ arrowStyle: h,
1840
+ popoverStyle: S,
1841
+ position: d,
1837
1842
  popoverWidth: u,
1838
- fitToReference: b,
1843
+ fitToReference: T,
1839
1844
  followToReferencePosition: z,
1840
1845
  locateToReference: R
1841
1846
  };
1842
1847
  }
1843
- function Et(e, t, o, l, n, i, u) {
1844
- const c = a(e.visible), h = I(() => c.value), { fitToReference: s, locateToReference: r } = u;
1845
- let d;
1846
- function f() {
1847
- c.value = !1, document.body.removeEventListener("click", d), t.emit("hidden");
1848
+ function Et(e, t, o, l, n, s, u) {
1849
+ const r = a(e.visible), y = B(() => r.value), { fitToReference: d, locateToReference: f } = u;
1850
+ let i;
1851
+ function c() {
1852
+ r.value = !1, document.body.removeEventListener("click", i), t.emit("hidden");
1848
1853
  }
1849
- d = (m) => {
1850
- if (!n.value.contains(m.target)) {
1851
- const y = n.value.closest(".popover");
1852
- y && y.removeEventListener("click", d), f();
1854
+ i = (p) => {
1855
+ if (!n.value.contains(p.target)) {
1856
+ const b = n.value.closest(".popover");
1857
+ b && b.removeEventListener("click", i), c();
1853
1858
  }
1854
1859
  };
1855
- async function C(m) {
1856
- if (l.value && o.value && m) {
1857
- c.value = !0, n.value = m, await K(), r(m), i.value && s(m), document.body.addEventListener("click", d);
1858
- const y = m.closest(".popover");
1859
- y && y.addEventListener("click", d), t.emit("shown");
1860
+ async function m(p) {
1861
+ if (l.value && o.value && p) {
1862
+ r.value = !0, n.value = p, await K(), f(p), s.value && d(p), document.body.addEventListener("click", i);
1863
+ const b = p.closest(".popover");
1864
+ b && b.addEventListener("click", i), t.emit("shown");
1860
1865
  }
1861
1866
  }
1862
- return t.expose({ hide: f, show: C, shown: h }), { showPopover: c, hidePopverOnClickBodyHandler: d };
1867
+ return t.expose({ hide: c, show: m, shown: y }), { showPopover: r, hidePopverOnClickBodyHandler: i };
1863
1868
  }
1864
1869
  function Ht(e, t, o, l, n) {
1865
- const { popoverWidth: i, fitToReference: u, followToReferencePosition: c } = n;
1866
- function h() {
1870
+ const { popoverWidth: s, fitToReference: u, followToReferencePosition: r } = n;
1871
+ function y() {
1867
1872
  if (o.value) {
1868
- c(o.value);
1869
- const s = o.value.getBoundingClientRect();
1870
- l.value && s.width !== i.value && u(o.value);
1873
+ r(o.value);
1874
+ const d = o.value.getBoundingClientRect();
1875
+ l.value && d.width !== s.value && u(o.value);
1871
1876
  }
1872
1877
  }
1873
- return { onResize: h };
1878
+ return { onResize: y };
1874
1879
  }
1875
1880
  const Wt = /* @__PURE__ */ G({
1876
1881
  name: "FPopover",
1877
1882
  props: jt,
1878
1883
  emits: ["shown", "hidden"],
1879
1884
  setup(e, t) {
1880
- const o = a(), l = a(), n = a(e.reference), i = a(e.keepWidthWithReference), u = I(() => !!e.title), c = Rt(e), {
1881
- host: h
1882
- } = c, s = At(e, o, l, c), {
1883
- position: r,
1884
- arrowStyle: d,
1885
- popoverStyle: f,
1886
- fitToReference: C,
1887
- locateToReference: m
1888
- } = s, {
1889
- showPopover: y,
1890
- hidePopverOnClickBodyHandler: O
1891
- } = Et(e, t, o, l, n, i, s), {
1885
+ const o = a(), l = a(), n = a(e.reference), s = a(e.keepWidthWithReference), u = B(() => !!e.title), r = Rt(e), {
1886
+ host: y
1887
+ } = r, d = At(e, o, l, r), {
1888
+ position: f,
1889
+ arrowStyle: i,
1890
+ popoverStyle: c,
1891
+ fitToReference: m,
1892
+ locateToReference: p
1893
+ } = d, {
1894
+ showPopover: b,
1895
+ hidePopverOnClickBodyHandler: M
1896
+ } = Et(e, t, o, l, n, s, d), {
1892
1897
  onResize: P
1893
- } = Ht(e, t, n, i, s), x = I(() => {
1894
- const b = `popover in popover-${r.value}`, B = `bs-popover-${r.value}`, k = {
1898
+ } = Ht(e, t, n, s, d), S = B(() => {
1899
+ const T = `popover in popover-${f.value}`, k = `bs-popover-${f.value}`, x = {
1895
1900
  "popover-fitcontent": e.fitContent
1896
1901
  };
1897
- return k[b] = !0, k[B] = !0, (e.class || "").split(" ").reduce((L, w) => (L[w] = !0, L), k), k;
1898
- }), v = I(() => ({
1902
+ return x[T] = !0, x[k] = !0, (e.class || "").split(" ").reduce((V, C) => (V[C] = !0, V), x), x;
1903
+ }), h = B(() => ({
1899
1904
  "popover-content": !0,
1900
1905
  "popover-body": !0
1901
1906
  }));
1902
1907
  return ne(() => {
1903
- e.reference && m(n.value), i.value && C(n.value), window.addEventListener("resize", P);
1908
+ e.reference && p(n.value), s.value && m(n.value), window.addEventListener("resize", P);
1904
1909
  }), fe(() => {
1905
- document.body.removeEventListener("click", O), window.removeEventListener("resize", P);
1906
- }), () => p(de, {
1907
- to: h
1910
+ document.body.removeEventListener("click", M), window.removeEventListener("resize", P);
1911
+ }), () => v(de, {
1912
+ to: y
1908
1913
  }, {
1909
1914
  default: () => {
1910
- var b;
1911
- return [Q(p("div", {
1915
+ var T;
1916
+ return [Q(v("div", {
1912
1917
  ref: l,
1913
- class: x.value,
1914
- style: f.value,
1915
- onClick: (B) => {
1916
- B.stopPropagation();
1918
+ class: S.value,
1919
+ style: c.value,
1920
+ onClick: (k) => {
1921
+ k.stopPropagation();
1917
1922
  }
1918
- }, [p("div", {
1923
+ }, [v("div", {
1919
1924
  ref: o,
1920
1925
  class: "popover-arrow arrow",
1921
- style: d.value
1922
- }, null), u.value && p("h3", {
1926
+ style: i.value
1927
+ }, null), u.value && v("h3", {
1923
1928
  class: "popover-title popover-header"
1924
- }, [e.title]), p("div", {
1925
- class: v.value
1926
- }, [t.slots.default && ((b = t.slots) == null ? void 0 : b.default())])]), [[ve, y.value]])];
1929
+ }, [e.title]), v("div", {
1930
+ class: h.value
1931
+ }, [t.slots.default && ((T = t.slots) == null ? void 0 : T.default())])]), [[ve, b.value]])];
1927
1932
  }
1928
1933
  });
1929
1934
  }
@@ -1931,10 +1936,10 @@ const Wt = /* @__PURE__ */ G({
1931
1936
  function _t(e, t, o) {
1932
1937
  const l = a(e.popupMinWidth), {
1933
1938
  hidePopup: n,
1934
- popoverRef: i
1939
+ popoverRef: s
1935
1940
  } = o;
1936
- return () => p(Wt, {
1937
- ref: i,
1941
+ return () => v(Wt, {
1942
+ ref: s,
1938
1943
  visible: !0,
1939
1944
  placement: "bottom-left",
1940
1945
  host: e.popupHost,
@@ -1946,8 +1951,8 @@ function _t(e, t, o) {
1946
1951
  onHidden: n
1947
1952
  }, {
1948
1953
  default: () => {
1949
- var u, c;
1950
- return [(c = (u = t.slots).default) == null ? void 0 : c.call(u)];
1954
+ var u, r;
1955
+ return [(r = (u = t.slots).default) == null ? void 0 : r.call(u)];
1951
1956
  }
1952
1957
  });
1953
1958
  }
@@ -1956,134 +1961,134 @@ const ye = /* @__PURE__ */ G({
1956
1961
  props: he,
1957
1962
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
1958
1963
  setup(e, t) {
1959
- const o = a(), l = a(e.customClass), n = a(e.modelValue), i = Pt(e, t, o), {
1964
+ const o = a(), l = a(e.customClass), n = a(e.modelValue), s = Pt(e, t, o), {
1960
1965
  shouldPopupContent: u,
1961
- hidePopup: c
1962
- } = i, h = It(e, t, o, i), s = a(""), r = xt(e, t, n, s, i), {
1963
- hasFocusedTextBox: d,
1964
- commitValue: f,
1965
- inputGroupClass: C
1966
- } = r, m = kt(e, t, n, d, s, r), {
1967
- onMouseEnterTextBox: y,
1968
- onMouseLeaveTextBox: O
1969
- } = m, P = I(() => {
1966
+ hidePopup: r
1967
+ } = s, y = Bt(e, t, o, s), d = a(""), f = xt(e, t, n, d, s), {
1968
+ hasFocusedTextBox: i,
1969
+ commitValue: c,
1970
+ inputGroupClass: m
1971
+ } = f, p = kt(e, t, n, i, d, f), {
1972
+ onMouseEnterTextBox: b,
1973
+ onMouseLeaveTextBox: M
1974
+ } = p, P = B(() => {
1970
1975
  const E = {
1971
1976
  "f-button-edit": !0,
1972
1977
  "f-cmp-inputgroup": !0,
1973
1978
  "f-button-edit-nowrap": !e.wrapText
1974
1979
  };
1975
- return l.value && l.value.split(" ").reduce((L, w) => (L[w] = !0, L), E), E;
1980
+ return l.value && l.value.split(" ").reduce((V, C) => (V[C] = !0, V), E), E;
1976
1981
  });
1977
- function x() {
1978
- return e.multiSelect && e.inputType === "tag" ? Lt(e, n, r) : Mt(e, n, r);
1982
+ function S() {
1983
+ return e.multiSelect && e.inputType === "tag" ? Vt(e, n, f) : Mt(e, n, f);
1979
1984
  }
1980
- let v = x();
1985
+ let h = S();
1981
1986
  W([() => e.multiSelect, () => e.inputType], () => {
1982
- v = x();
1987
+ h = S();
1983
1988
  });
1984
- const b = Dt(e, h, m), B = _t(e, t, i), k = {
1985
- commitValue: f,
1989
+ const T = Dt(e, y, p), k = _t(e, t, s), x = {
1990
+ commitValue: c,
1986
1991
  elementRef: o,
1987
- hidePopup: c
1992
+ hidePopup: r
1988
1993
  };
1989
1994
  return ne(() => {
1990
- o.value.componentInstance = k;
1991
- }), t.expose(k), () => p(re, null, [p("div", Le(t.attrs, {
1995
+ o.value.componentInstance = x;
1996
+ }), t.expose(x), () => v(re, null, [v("div", Ve(t.attrs, {
1992
1997
  ref: o,
1993
1998
  class: P.value,
1994
1999
  id: e.id
1995
- }), [p("div", {
1996
- class: C.value,
1997
- onMouseenter: y,
1998
- onMouseleave: O
1999
- }, [v(), b()])]), u.value && B()]);
2000
+ }), [v("div", {
2001
+ class: m.value,
2002
+ onMouseenter: b,
2003
+ onMouseleave: M
2004
+ }, [h(), T()])]), u.value && k()]);
2000
2005
  }
2001
2006
  });
2002
2007
  function $t(e) {
2003
2008
  const t = a(""), o = a(e.modelValue), l = a(e.data || []), n = a(e.editable);
2004
- function i(s) {
2005
- const r = s.split(e.separator).map((f) => [f, !0]), d = new Map(r);
2006
- return l.value.filter((f) => d.has(f[e.valueField]));
2007
- }
2008
- function u(s) {
2009
- const r = i(s).map((d) => d[e.textField]).join(e.separator);
2010
- t.value = n.value ? r || s : r;
2011
- }
2012
- function c(s) {
2013
- const r = s.split(e.separator).map((f) => [f, !0]), d = new Map(r);
2014
- return l.value.filter((f) => d.has(f[e.textField]));
2015
- }
2016
- function h() {
2017
- const { url: s, method: r = "GET", headers: d = {}, body: f = null } = e.remote;
2018
- fetch(s, { method: r, headers: d, body: f }).then((m) => {
2019
- if (m.status === 200)
2020
- return m.json();
2021
- throw new Error(m.statusText);
2022
- }).then((m) => {
2023
- l.value = m;
2024
- }).catch((m) => {
2025
- console.error(m);
2009
+ function s(i) {
2010
+ const c = i.split(e.separator).map((p) => [p, !0]), m = new Map(c);
2011
+ return l.value.filter((p) => m.has(p[e.valueField]));
2012
+ }
2013
+ function u(i) {
2014
+ const c = s(i).map((m) => m[e.textField]).join(e.separator);
2015
+ t.value = n.value ? c || i : c;
2016
+ }
2017
+ function r(i) {
2018
+ const c = i.split(e.separator).map((p) => [p, !0]), m = new Map(c);
2019
+ return l.value.filter((p) => m.has(p[e.textField]));
2020
+ }
2021
+ function y(i) {
2022
+ const c = {};
2023
+ return c[e.idField] = i, c[e.textField] = i, [c];
2024
+ }
2025
+ function d(i) {
2026
+ let c = r(i);
2027
+ const m = c && c.length > 0;
2028
+ return n.value && !m && (c = y(i)), c;
2029
+ }
2030
+ function f() {
2031
+ const { url: i, method: c = "GET", headers: m = {}, body: p = null } = e.remote;
2032
+ fetch(i, { method: c, headers: m, body: p }).then((M) => {
2033
+ if (M.status === 200)
2034
+ return M.json();
2035
+ throw new Error(M.statusText);
2036
+ }).then((M) => {
2037
+ l.value = M;
2038
+ }).catch((M) => {
2039
+ console.error(M);
2026
2040
  });
2027
2041
  }
2028
- return e.remote && h(), W(() => e.data, () => {
2042
+ return e.remote && f(), W(() => e.data, () => {
2029
2043
  l.value = e.data;
2030
- }), W([l], ([s]) => {
2044
+ }), W([l], ([i]) => {
2031
2045
  if (e.modelValue) {
2032
- const r = s.find((d) => d[e.valueField] === e.modelValue);
2033
- r && (t.value = r[e.textField]);
2046
+ const c = i.find((m) => m[e.valueField] === e.modelValue);
2047
+ c && (t.value = c[e.textField]);
2034
2048
  }
2035
- }), W(() => e.modelValue, (s) => {
2036
- o.value = s, u(s);
2037
- }), u(e.modelValue), { dataSource: l, displayText: t, editable: n, modelValue: o, getItemsByDisplayText: c, getItemsByValue: i };
2049
+ }), W(() => e.modelValue, (i) => {
2050
+ o.value = i, u(i);
2051
+ }), u(e.modelValue), { dataSource: l, displayText: t, editable: n, modelValue: o, getItemsByDisplayText: r, getItemsByValue: s, getSelectedItemsByDisplayText: d };
2038
2052
  }
2039
2053
  const te = /* @__PURE__ */ G({
2040
2054
  name: "FComboList",
2041
2055
  props: ae,
2042
2056
  emits: ["clear", "update:modelValue", "change"],
2043
2057
  setup(e, t) {
2044
- const o = a(), l = a(e.disabled), n = a(e.enableClear), i = a(e.enableSearch), u = a(e.readonly), {
2045
- dataSource: c,
2046
- displayText: h,
2047
- editable: s,
2048
- modelValue: r,
2049
- getItemsByDisplayText: d
2050
- } = $t(e), f = I(() => e.multiSelect);
2051
- function C() {
2052
- !f.value && o.value && o.value.hidePopup();
2053
- }
2054
- function m(v) {
2055
- h.value = v.map((b) => b[e.textField]).join(e.separator), r.value = v.map((b) => b[e.valueField]).join(e.separator), t.emit("update:modelValue", r.value), t.emit("change", v), C();
2058
+ const o = a(), l = a(e.disabled), n = a(e.enableClear), s = a(e.enableSearch), u = a(e.readonly), {
2059
+ dataSource: r,
2060
+ displayText: y,
2061
+ editable: d,
2062
+ modelValue: f,
2063
+ getSelectedItemsByDisplayText: i
2064
+ } = $t(e), c = B(() => e.multiSelect);
2065
+ function m() {
2066
+ !c.value && o.value && o.value.hidePopup();
2056
2067
  }
2057
- function y(v) {
2058
- r.value = "", t.emit("update:modelValue", ""), t.emit("clear");
2068
+ function p(S) {
2069
+ y.value = S.map((h) => h[e.textField]).join(e.separator), f.value = S.map((h) => h[e.valueField]).join(e.separator), t.emit("update:modelValue", f.value), t.emit("change", S), m();
2059
2070
  }
2060
- function O(v) {
2061
- r.value = v, t.emit("update:modelValue", r.value);
2062
- const b = {};
2063
- b[e.idField] = v, b[e.textField] = v, t.emit("change", [b]);
2071
+ function b(S) {
2072
+ f.value = "", t.emit("update:modelValue", ""), t.emit("clear");
2064
2073
  }
2065
- function P(v) {
2066
- if (s.value) {
2067
- O(v);
2068
- return;
2069
- }
2070
- const b = d(v);
2071
- m(b);
2074
+ function M(S) {
2075
+ const h = i(S);
2076
+ p(h);
2072
2077
  }
2073
- function x() {
2074
- return h.value;
2078
+ function P() {
2079
+ return y.value;
2075
2080
  }
2076
2081
  return t.expose({
2077
- getDisplayText: x
2078
- }), W([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([v, b, B, k, E]) => {
2079
- l.value = v, s.value = b, n.value = B, i.value = k, u.value = E;
2080
- }), () => p(ye, {
2082
+ getDisplayText: P
2083
+ }), W([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, h, T, k, x]) => {
2084
+ l.value = S, d.value = h, n.value = T, s.value = k, u.value = x;
2085
+ }), () => v(ye, {
2081
2086
  ref: o,
2082
2087
  id: e.id,
2083
2088
  disable: l.value,
2084
2089
  readonly: u.value,
2085
2090
  forcePlaceholder: e.forcePlaceholder,
2086
- editable: s.value,
2091
+ editable: d.value,
2087
2092
  buttonContent: e.dropDownIcon,
2088
2093
  placeholder: e.placeholder,
2089
2094
  enableClear: n.value,
@@ -2092,85 +2097,86 @@ const te = /* @__PURE__ */ G({
2092
2097
  enableTitle: e.enableTitle,
2093
2098
  multiSelect: e.multiSelect,
2094
2099
  inputType: e.multiSelect ? "tag" : "text",
2095
- modelValue: h.value,
2096
- "onUpdate:modelValue": (v) => h.value = v,
2097
- onClear: y,
2098
- onChange: P
2100
+ modelValue: y.value,
2101
+ "onUpdate:modelValue": (S) => y.value = S,
2102
+ onClear: b,
2103
+ onChange: M
2099
2104
  }, {
2100
- default: () => [p(rt, {
2105
+ default: () => [v(rt, {
2101
2106
  idField: e.idField,
2102
2107
  valueField: e.valueField,
2103
2108
  textField: e.textField,
2104
- dataSource: c.value,
2105
- selectedValues: r.value,
2109
+ dataSource: r.value,
2110
+ selectedValues: f.value,
2106
2111
  multiSelect: e.multiSelect,
2107
- enableSearch: i.value,
2108
- onSelectionChange: m
2112
+ enableSearch: s.value,
2113
+ height: e.maxHeight,
2114
+ onSelectionChange: p
2109
2115
  }, null)]
2110
2116
  });
2111
2117
  }
2112
2118
  });
2113
2119
  function Nt(e, t, o) {
2114
- var x;
2120
+ var S;
2115
2121
  const l = o == null ? void 0 : o.checkIsInFixedContextRules(), n = o && o.getStyles && o.getStyles() || "";
2116
- function i() {
2122
+ function s() {
2117
2123
  return !(t.schema.componentType || l);
2118
2124
  }
2119
2125
  function u() {
2120
2126
  return !1;
2121
2127
  }
2122
- function c() {
2128
+ function r() {
2123
2129
  return !(t.schema.componentType || l);
2124
2130
  }
2125
- function h() {
2131
+ function y() {
2126
2132
  return !!l;
2127
2133
  }
2128
- function s(v) {
2129
- if (!v)
2134
+ function d(h) {
2135
+ if (!h)
2130
2136
  return null;
2131
- if (v.schema.type === "Component")
2132
- return v;
2133
- const b = s(v.parent);
2134
- return b || null;
2137
+ if (h.schema.type === "Component")
2138
+ return h;
2139
+ const T = d(h.parent);
2140
+ return T || null;
2135
2141
  }
2136
- function r(v, b, B) {
2142
+ function f(h, T, k) {
2137
2143
  return !!o && o.canAccepts();
2138
2144
  }
2139
- function d() {
2145
+ function i() {
2140
2146
  return t.schema.label || t.schema.title || t.schema.name;
2141
2147
  }
2142
- function f() {
2148
+ function c() {
2143
2149
  }
2144
- function C(v, b) {
2145
- b && (o == null || o.onAcceptMovedChildElement(b));
2150
+ function m(h, T) {
2151
+ T && (o == null || o.onAcceptMovedChildElement(T));
2146
2152
  }
2147
- function m(v, b) {
2148
- const B = String(v.getAttribute("data-controltype"));
2149
- return je(B);
2153
+ function p(h, T) {
2154
+ const k = String(h.getAttribute("data-controltype"));
2155
+ return je(k);
2150
2156
  }
2151
- function y(v) {
2152
- return v.contents ? v.contents.length : -1;
2157
+ function b(h) {
2158
+ return h.contents ? h.contents.length : -1;
2153
2159
  }
2154
- function O(v) {
2160
+ function M(h) {
2155
2161
  }
2156
2162
  const P = {
2157
- canMove: i(),
2163
+ canMove: s(),
2158
2164
  canSelectParent: u(),
2159
- canDelete: c(),
2160
- canNested: !h(),
2165
+ canDelete: r(),
2166
+ canNested: !y(),
2161
2167
  contents: t.schema.contents,
2162
2168
  elementRef: e,
2163
- parent: (x = t.parent) == null ? void 0 : x.componentInstance.value,
2169
+ parent: (S = t.parent) == null ? void 0 : S.componentInstance.value,
2164
2170
  schema: t.schema,
2165
2171
  styles: n,
2166
- canAccepts: r,
2167
- getBelongedComponentInstance: s,
2168
- getDraggingDisplayText: d,
2169
- getDragScopeElement: f,
2170
- onAcceptMovedChildElement: C,
2171
- onAcceptNewChildElement: m,
2172
- onAddNewChildElement: y,
2173
- onChildElementMovedOut: O,
2172
+ canAccepts: f,
2173
+ getBelongedComponentInstance: d,
2174
+ getDraggingDisplayText: i,
2175
+ getDragScopeElement: c,
2176
+ onAcceptMovedChildElement: m,
2177
+ onAcceptNewChildElement: p,
2178
+ onAddNewChildElement: b,
2179
+ onChildElementMovedOut: M,
2174
2180
  triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved
2175
2181
  };
2176
2182
  return a(P);
@@ -2183,7 +2189,7 @@ const zt = /* @__PURE__ */ G({
2183
2189
  const o = a(), l = De("design-item-context"), n = Nt(o, l);
2184
2190
  return ne(() => {
2185
2191
  o.value.componentInstance = n;
2186
- }), t.expose(n.value), () => p(ye, {
2192
+ }), t.expose(n.value), () => v(ye, {
2187
2193
  ref: o,
2188
2194
  id: e.id,
2189
2195
  disable: e.disabled,