@farris/ui-vue 1.7.0-beta.3 → 1.7.0-beta.4

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 (99) hide show
  1. package/components/avatar/index.esm.js +10 -1
  2. package/components/avatar/index.umd.cjs +1 -1
  3. package/components/calendar/index.esm.js +178 -176
  4. package/components/calendar/index.umd.cjs +2 -2
  5. package/components/collection-property-editor/index.esm.js +48 -46
  6. package/components/collection-property-editor/index.umd.cjs +2 -2
  7. package/components/combo-list/index.esm.js +319 -300
  8. package/components/combo-list/index.umd.cjs +1 -1
  9. package/components/comment/index.esm.js +2287 -1161
  10. package/components/comment/index.umd.cjs +7 -7
  11. package/components/component/index.esm.js +3 -1
  12. package/components/component/index.umd.cjs +2 -2
  13. package/components/condition/index.esm.js +926 -901
  14. package/components/condition/index.umd.cjs +2 -2
  15. package/components/data-view/index.esm.js +898 -899
  16. package/components/data-view/index.umd.cjs +1 -1
  17. package/components/drawer/index.esm.js +3 -1
  18. package/components/drawer/index.umd.cjs +2 -2
  19. package/components/dynamic-form/index.esm.js +239 -221
  20. package/components/dynamic-form/index.umd.cjs +1 -1
  21. package/components/dynamic-resolver/index.esm.js +11 -9
  22. package/components/dynamic-resolver/index.umd.cjs +2 -2
  23. package/components/expression-editor/index.esm.js +1299 -1279
  24. package/components/expression-editor/index.umd.cjs +4 -4
  25. package/components/filter-bar/index.esm.js +731 -678
  26. package/components/filter-bar/index.umd.cjs +2 -2
  27. package/components/filter-condition-editor/index.esm.js +1792 -1772
  28. package/components/filter-condition-editor/index.umd.cjs +4 -4
  29. package/components/image/index.esm.js +246 -240
  30. package/components/image/index.umd.cjs +2 -2
  31. package/components/language-textbox/index.esm.js +9 -7
  32. package/components/language-textbox/index.umd.cjs +2 -2
  33. package/components/list-view/index.esm.js +1 -1
  34. package/components/list-view/index.umd.cjs +1 -1
  35. package/components/locale/index.esm.js +2009 -886
  36. package/components/locale/index.umd.cjs +6 -6
  37. package/components/number-range/index.esm.js +190 -181
  38. package/components/number-range/index.umd.cjs +1 -1
  39. package/components/order/index.esm.js +734 -714
  40. package/components/order/index.umd.cjs +5 -5
  41. package/components/property-panel/index.esm.js +60 -49
  42. package/components/property-panel/index.umd.cjs +3 -3
  43. package/components/query-solution/index.esm.js +2461 -2500
  44. package/components/query-solution/index.umd.cjs +6 -6
  45. package/components/radio-group/index.esm.js +30 -30
  46. package/components/radio-group/index.umd.cjs +1 -1
  47. package/components/schema-selector/index.esm.js +238 -238
  48. package/components/schema-selector/index.umd.cjs +4 -4
  49. package/components/section/index.esm.js +217 -302
  50. package/components/section/index.umd.cjs +2 -2
  51. package/components/sort-condition-editor/index.esm.js +1793 -1773
  52. package/components/sort-condition-editor/index.umd.cjs +4 -4
  53. package/components/transfer/index.esm.js +155 -155
  54. package/components/transfer/index.umd.cjs +3 -3
  55. package/designer/data-grid/index.esm.js +895 -867
  56. package/designer/data-grid/index.umd.cjs +5 -5
  57. package/designer/data-view/index.esm.js +145 -144
  58. package/designer/data-view/index.umd.cjs +2 -2
  59. package/designer/drawer/index.esm.js +73 -71
  60. package/designer/drawer/index.umd.cjs +2 -2
  61. package/designer/dynamic-form/index.esm.js +87 -65
  62. package/designer/dynamic-form/index.umd.cjs +2 -2
  63. package/designer/farris-designer.all.esm.js +14 -3
  64. package/designer/farris-designer.all.umd.cjs +3 -3
  65. package/designer/input-group/index.esm.js +34 -14
  66. package/designer/input-group/index.umd.cjs +1 -1
  67. package/designer/list-view/index.esm.js +1 -1
  68. package/designer/list-view/index.umd.cjs +1 -1
  69. package/designer/radio-group/index.esm.js +15 -2
  70. package/designer/radio-group/index.umd.cjs +1 -1
  71. package/designer/section/index.esm.js +129 -119
  72. package/designer/section/index.umd.cjs +1 -1
  73. package/designer/time-picker/index.esm.js +140 -131
  74. package/designer/time-picker/index.umd.cjs +1 -1
  75. package/farris.all.esm.js +13578 -12394
  76. package/farris.all.umd.cjs +26 -26
  77. package/index.css +1 -1
  78. package/locales/data-grid/ui/en.json +2 -1
  79. package/locales/data-grid/ui/zh-CHS.json +2 -1
  80. package/locales/data-grid/ui/zh-CHT.json +2 -1
  81. package/locales/designer/en.json +12 -10
  82. package/locales/designer/zh-CHS.json +19 -17
  83. package/locales/designer/zh-CHT.json +19 -17
  84. package/locales/ui/en.json +4 -2
  85. package/locales/ui/zh-CHS.json +11 -9
  86. package/locales/ui/zh-CHT.json +11 -9
  87. package/package.json +1 -1
  88. package/package.zip +0 -0
  89. package/types/combo-list/src/composition/types.d.ts +1 -0
  90. package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +1 -1
  91. package/types/condition/src/composition/use-field-config.d.ts +1 -1
  92. package/types/condition/src/condition.props.d.ts +1 -1
  93. package/types/data-view/designer/property-config/use-command-option.d.ts +12 -0
  94. package/types/image/src/property-config/image.property-config.d.ts +5 -5
  95. package/types/locale/src/lib/locale.service.d.ts +2 -2
  96. package/types/property-panel/src/composition/entity/input-base-property.d.ts +7 -0
  97. package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +0 -20
  98. package/types/section/src/designer/section.design.props.d.ts +17 -0
  99. package/types/section/src/section.props.d.ts +0 -25
@@ -1,4 +1,4 @@
1
- import { ref as d, computed as L, createVNode as n, Fragment as E, watch as N, withModifiers as be, withDirectives as ke, vModelText as Ve, defineComponent as X, onMounted as ae, inject as Fe, createTextVNode as Z } from "vue";
1
+ import { ref as r, computed as L, createVNode as n, Fragment as E, watch as N, withModifiers as be, withDirectives as ke, vModelText as Ve, defineComponent as X, onMounted as ae, inject as Fe, createTextVNode as Z } from "vue";
2
2
  import Te from "../tree-view/index.esm.js";
3
3
  import { LocaleService as q } from "../locale/index.esm.js";
4
4
  import { resolveAppearance as Re, createPropsResolver as De } from "../dynamic-resolver/index.esm.js";
@@ -219,11 +219,11 @@ function vt(e, t) {
219
219
  }
220
220
  function F(i, m) {
221
221
  const s = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
222
- return v(s).map((I) => ({ textNode: I, text: (I.textContent || "").toLocaleLowerCase() })).map(({ textNode: I, text: h }) => {
222
+ return v(s).map((I) => ({ textNode: I, text: (I.textContent || "").toLocaleLowerCase() })).map(({ textNode: I, text: p }) => {
223
223
  const g = [];
224
224
  let D = 0;
225
- for (; D < h.length; ) {
226
- const k = h.indexOf(m, D);
225
+ for (; D < p.length; ) {
226
+ const k = p.indexOf(m, D);
227
227
  if (k === -1)
228
228
  break;
229
229
  g.push(k), D = k + m.length;
@@ -243,7 +243,7 @@ function vt(e, t) {
243
243
  return { search: T };
244
244
  }
245
245
  function ne(e, t, v, F, T, i, m, s, S, y) {
246
- const w = d(e.size), I = d(e.textField), h = d(e.titleField), g = d(e.disableField), D = L(() => {
246
+ const w = r(e.size), I = r(e.textField), p = r(e.titleField), g = r(e.disableField), D = L(() => {
247
247
  var l, f;
248
248
  return ((l = e.selection) == null ? void 0 : l.multiSelect) && ((f = e.selection) == null ? void 0 : f.showCheckbox);
249
249
  }), {
@@ -255,8 +255,8 @@ function ne(e, t, v, F, T, i, m, s, S, y) {
255
255
  listViewItemClass: j,
256
256
  listViewItemStyle: A,
257
257
  onCheckItem: H,
258
- onClickItem: p
259
- } = m, u = L(() => {
258
+ onClickItem: h
259
+ } = m, d = L(() => {
260
260
  const l = {
261
261
  "text-overflow": "ellipsis",
262
262
  overflow: "hidden",
@@ -273,7 +273,7 @@ function ne(e, t, v, F, T, i, m, s, S, y) {
273
273
  id: M(l, f),
274
274
  key: M(l, f),
275
275
  style: A(l, f),
276
- onClick: (V) => p(l, f, V),
276
+ onClick: (V) => h(l, f, V),
277
277
  onMouseenter: (V) => k(V, l, f),
278
278
  onMouseover: (V) => b(V, l, f),
279
279
  onMouseout: (V) => R(V, l, f)
@@ -293,8 +293,8 @@ function ne(e, t, v, F, T, i, m, s, S, y) {
293
293
  class: "f-list-content"
294
294
  }, [n("div", {
295
295
  class: e.itemContentClass,
296
- style: u.value,
297
- title: l.raw[h.value] || l.raw[I.value]
296
+ style: d.value,
297
+ title: l.raw[p.value] || l.raw[I.value]
298
298
  }, [l.raw[I.value]])])]);
299
299
  }
300
300
  return {
@@ -302,7 +302,7 @@ function ne(e, t, v, F, T, i, m, s, S, y) {
302
302
  };
303
303
  }
304
304
  function mt(e, t, v, F, T, i, m, s, S, y) {
305
- const w = d(e.multiSelect), I = d(e.disableField), h = d(e.textField), {
305
+ const w = r(e.multiSelect), I = r(e.disableField), p = r(e.textField), {
306
306
  onMouseenterItem: g,
307
307
  onMouseoverItem: D,
308
308
  onMouseoutItem: k
@@ -313,49 +313,49 @@ function mt(e, t, v, F, T, i, m, s, S, y) {
313
313
  onCheckItem: j,
314
314
  onClickItem: A
315
315
  } = m;
316
- function H(u, C, l) {
316
+ function H(d, C, l) {
317
317
  return e.contentTemplate ? n(E, null, [e.contentTemplate({
318
- item: u.raw,
318
+ item: d.raw,
319
319
  index: C,
320
320
  selectedItem: l
321
321
  })]) : t.slots.content ? n(E, null, [t.slots.content && t.slots.content({
322
- item: u.raw,
322
+ item: d.raw,
323
323
  index: C,
324
324
  selectedItem: l
325
325
  })]) : n("div", {
326
326
  style: "margin: 10px 0;"
327
- }, [u.raw[h.value || "name"]]);
327
+ }, [d.raw[p.value || "name"]]);
328
328
  }
329
- function p(u, C, l) {
329
+ function h(d, C, l) {
330
330
  return n("li", {
331
- class: R(u, C),
332
- id: b(u, C),
333
- key: b(u, C),
334
- style: M(u, C),
335
- onClick: (f) => A(u, C, f),
336
- onMouseenter: (f) => g(f, u, C),
337
- onMouseover: (f) => D(f, u, C),
338
- onMouseout: (f) => k(f, u, C)
331
+ class: R(d, C),
332
+ id: b(d, C),
333
+ key: b(d, C),
334
+ style: M(d, C),
335
+ onClick: (f) => A(d, C, f),
336
+ onMouseenter: (f) => g(f, d, C),
337
+ onMouseover: (f) => D(f, d, C),
338
+ onMouseout: (f) => k(f, d, C)
339
339
  }, [w.value && n("div", {
340
340
  class: "f-list-select",
341
341
  onClick: (f) => f.stopPropagation()
342
342
  }, [n(Y, {
343
- id: "list-" + b(u, C),
343
+ id: "list-" + b(d, C),
344
344
  customClass: "listview-checkbox",
345
- disabled: u[I.value] || !u.checked,
346
- checked: u.checked,
347
- "onUpdate:checked": (f) => u.checked = f,
348
- onChange: (f) => j(u, C, !f.checked)
345
+ disabled: d[I.value],
346
+ checked: d.checked,
347
+ "onUpdate:checked": (f) => d.checked = f,
348
+ onChange: (f) => j(d, C, !f.checked)
349
349
  }, null)]), n("div", {
350
350
  class: "f-list-content"
351
- }, [H(u, C, l)])]);
351
+ }, [H(d, C, l)])]);
352
352
  }
353
353
  return {
354
- renderItem: p
354
+ renderItem: h
355
355
  };
356
356
  }
357
357
  function gt(e, t, v, F, T, i, m, s, S, y) {
358
- const w = d(e.multiSelect), I = d(e.disableField), h = d(e.textField), {
358
+ const w = r(e.multiSelect), I = r(e.disableField), p = r(e.textField), {
359
359
  onMouseenterItem: g,
360
360
  onMouseoverItem: D,
361
361
  onMouseoutItem: k
@@ -367,8 +367,8 @@ function gt(e, t, v, F, T, i, m, s, S, y) {
367
367
  } = m, {
368
368
  dragstart: A,
369
369
  dragenter: H,
370
- dragover: p,
371
- dragend: u
370
+ dragover: h,
371
+ dragend: d
372
372
  } = F, {
373
373
  removeItem: C
374
374
  } = S, l = L(() => ({
@@ -381,14 +381,14 @@ function gt(e, t, v, F, T, i, m, s, S, y) {
381
381
  function P(a) {
382
382
  return n("div", {
383
383
  style: l.value,
384
- onMouseenter: (o) => f(o, a.raw[h.value || "name"])
385
- }, [a.raw[h.value || "name"]]);
384
+ onMouseenter: (o) => f(o, a.raw[p.value || "name"])
385
+ }, [a.raw[p.value || "name"]]);
386
386
  }
387
387
  function V() {
388
388
  return t.slots.itemContent ? t.slots.itemContent : P;
389
389
  }
390
390
  const c = V();
391
- function r(a, o, B) {
391
+ function u(a, o, B) {
392
392
  return n("li", {
393
393
  class: R(a, o),
394
394
  id: b(a, o),
@@ -400,8 +400,8 @@ function gt(e, t, v, F, T, i, m, s, S, y) {
400
400
  draggable: "true",
401
401
  onDragstart: (O) => A(O, a, o),
402
402
  onDragenter: (O) => H(O, o),
403
- onDragend: (O) => u(O, a),
404
- onDragover: (O) => p(O)
403
+ onDragend: (O) => d(O, a),
404
+ onDragover: (O) => h(O)
405
405
  }, [w.value && n("div", {
406
406
  class: "f-list-select",
407
407
  onClick: (O) => O.stopPropagation()
@@ -430,18 +430,18 @@ function gt(e, t, v, F, T, i, m, s, S, y) {
430
430
  }, null)])])]);
431
431
  }
432
432
  return {
433
- renderItem: r
433
+ renderItem: u
434
434
  };
435
435
  }
436
- function ht(e, t, v, F, T, i, m, s, S, y) {
436
+ function pt(e, t, v, F, T, i, m, s, S, y) {
437
437
  var b;
438
- const w = d(((b = e.group) == null ? void 0 : b.groupFields) || []), {
438
+ const w = r(((b = e.group) == null ? void 0 : b.groupFields) || []), {
439
439
  collpaseGroupIconClass: I
440
440
  } = T, {
441
- toggleGroupRow: h
441
+ toggleGroupRow: p
442
442
  } = y;
443
443
  function g(R, M) {
444
- M.collapse = !M.collapse, v.value = h(M.collapse ? "collapse" : "expand", M, v.value);
444
+ M.collapse = !M.collapse, v.value = p(M.collapse ? "collapse" : "expand", M, v.value);
445
445
  }
446
446
  function D(R, M, j) {
447
447
  return t.slots.group ? n(E, null, [t.slots.content && t.slots.group({
@@ -466,7 +466,7 @@ function ht(e, t, v, F, T, i, m, s, S, y) {
466
466
  renderItem: k
467
467
  };
468
468
  }
469
- function pt(e, t, v, F) {
469
+ function ht(e, t, v, F) {
470
470
  const { dataView: T } = v, { updateSelectedItems: i } = F;
471
471
  function m(s) {
472
472
  if (s > -1 && s < T.value.length) {
@@ -479,7 +479,7 @@ function pt(e, t, v, F) {
479
479
  return { removeItem: m };
480
480
  }
481
481
  function yt(e, t, v, F, T, i, m, s, S, y) {
482
- const w = d(e.view), I = d(e.view === "CardView"), h = d({}), g = pt(e, t, F, S), D = L(() => ({
482
+ const w = r(e.view), I = r(e.view === "CardView"), p = r({}), g = ht(e, t, F, S), D = L(() => ({
483
483
  "f-list-view-group": !0,
484
484
  "f-list-view-group-multiselect": e.multiSelect,
485
485
  "d-flex": I.value,
@@ -493,11 +493,11 @@ function yt(e, t, v, F, T, i, m, s, S, y) {
493
493
  renderItem: j
494
494
  } = M(e, t, v, y, T, i, S, m, g, s), {
495
495
  renderItem: A
496
- } = ht(e, t, v, y, T, i, S, m, g, s), H = [j, A];
497
- function p() {
498
- return v.value.filter((l) => l.visible !== !1).map((l, f) => H[l.type](l, f, h));
496
+ } = pt(e, t, v, y, T, i, S, m, g, s), H = [j, A];
497
+ function h() {
498
+ return v.value.filter((l) => l.visible !== !1).map((l, f) => H[l.type](l, f, p));
499
499
  }
500
- function u() {
500
+ function d() {
501
501
  return n("div", {
502
502
  class: "f-list-view-emptydata",
503
503
  style: "margin: 0 auto;"
@@ -509,7 +509,7 @@ function yt(e, t, v, F, T, i, m, s, S, y) {
509
509
  return n("ul", {
510
510
  class: D.value,
511
511
  style: "list-style: none;"
512
- }, [k.value && p(), b.value && u()]);
512
+ }, [k.value && h(), b.value && d()]);
513
513
  }
514
514
  return {
515
515
  renderListArea: C
@@ -526,21 +526,21 @@ function Ct(e, t, v) {
526
526
  };
527
527
  }
528
528
  function le(e, t, v) {
529
- const F = d(e.headerClass), T = d(e.placeholder), i = d(""), m = L(() => !i.value), s = L(() => !!i.value);
530
- function S(h) {
529
+ const F = r(e.headerClass), T = r(e.placeholder), i = r(""), m = L(() => !i.value), s = L(() => !!i.value);
530
+ function S(p) {
531
531
  i.value = "";
532
532
  }
533
- N(i, (h) => {
534
- e.enableHighlightSearch && v.search(h), t.emit("afterSearch", h);
533
+ N(i, (p) => {
534
+ e.enableHighlightSearch && v.search(p), t.emit("afterSearch", p);
535
535
  });
536
536
  const y = L(() => {
537
- const h = {
537
+ const p = {
538
538
  "form-group": !0,
539
539
  "farris-form-group": !0
540
540
  };
541
- return F.value && F.value.split(" ").reduce((D, k) => (D[k] = !0, D), h), h;
541
+ return F.value && F.value.split(" ").reduce((D, k) => (D[k] = !0, D), p), p;
542
542
  });
543
- function w(h) {
543
+ function w(p) {
544
544
  }
545
545
  function I() {
546
546
  return n("div", {
@@ -556,7 +556,7 @@ function le(e, t, v) {
556
556
  class: "input-group f-state-editable"
557
557
  }, [ke(n("input", {
558
558
  class: "form-control f-utils-fill text-left",
559
- "onUpdate:modelValue": (h) => i.value = h,
559
+ "onUpdate:modelValue": (p) => i.value = p,
560
560
  name: "input-group-value",
561
561
  type: "text",
562
562
  placeholder: T.value,
@@ -565,7 +565,7 @@ function le(e, t, v) {
565
565
  class: "input-group-append"
566
566
  }, [s.value && n("span", {
567
567
  class: "input-group-text input-group-clear",
568
- onClick: (h) => S()
568
+ onClick: (p) => S()
569
569
  }, [n("i", {
570
570
  class: "f-icon f-icon-close-circle"
571
571
  }, null)]), m.value && n("span", {
@@ -579,14 +579,14 @@ function le(e, t, v) {
579
579
  };
580
580
  }
581
581
  function St() {
582
- const e = d(""), t = d(-1), v = d(""), F = d(-1), T = d(!1);
583
- function i(I, h, g) {
582
+ const e = r(""), t = r(-1), v = r(""), F = r(-1), T = r(!1);
583
+ function i(I, p, g) {
584
584
  F.value = g;
585
585
  }
586
- function m(I, h, g) {
586
+ function m(I, p, g) {
587
587
  T.value || (F.value = g);
588
588
  }
589
- function s(I, h, g) {
589
+ function s(I, p, g) {
590
590
  F.value = -1;
591
591
  }
592
592
  function S() {
@@ -611,17 +611,17 @@ function St() {
611
611
  };
612
612
  }
613
613
  function wt(e, t, v, F) {
614
- const T = d(e.idField), { dataView: i } = v, m = d(-1), s = d(!1), { activeIndex: S, focusedItemId: y, hoverIndex: w, resumeHover: I, suspendHover: h } = F;
614
+ const T = r(e.idField), { dataView: i } = v, m = r(-1), s = r(!1), { activeIndex: S, focusedItemId: y, hoverIndex: w, resumeHover: I, suspendHover: p } = F;
615
615
  let g, D = 0, k = 0;
616
- function b(p, u) {
617
- const C = p - D, l = u - k;
618
- g.style.left = parseInt(g.style.left) + C + "px", g.style.top = parseInt(g.style.top) + l + "px", D = p, k = u;
616
+ function b(h, d) {
617
+ const C = h - D, l = d - k;
618
+ g.style.left = parseInt(g.style.left) + C + "px", g.style.top = parseInt(g.style.top) + l + "px", D = h, k = d;
619
619
  }
620
- function R(p) {
621
- const { left: u, top: C } = p.getBoundingClientRect(), l = p.cloneNode(!0);
620
+ function R(h) {
621
+ const { left: d, top: C } = h.getBoundingClientRect(), l = h.cloneNode(!0);
622
622
  return l.style.cssText = `
623
623
  position:absolute;
624
- left:${u}px;
624
+ left:${d}px;
625
625
  top:${document.documentElement.scrollTop ? C + document.documentElement.scrollTop : C}px;
626
626
  z-index: 999999;
627
627
  border: 1px solid #e2e3e5;
@@ -633,37 +633,37 @@ function wt(e, t, v, F) {
633
633
  align-items: center;
634
634
  float: none;
635
635
  text-align: initial;
636
- width:${getComputedStyle(p).width};
637
- height:${getComputedStyle(p).height};
636
+ width:${getComputedStyle(h).width};
637
+ height:${getComputedStyle(h).height};
638
638
  `, l.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", l.children[0].children[0].style.cssText = `
639
639
  margin: 10px 0px 10px 14px;
640
640
  overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
641
641
  `, l.children[1].style.cssText = "width: 30px;color: #f4625f;padding: 0 14px 0 0", l.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(l), l;
642
642
  }
643
- function M(p, u, C) {
644
- if (p.stopPropagation(), h(), u) {
645
- if (g = R(p.target), p.dataTransfer) {
643
+ function M(h, d, C) {
644
+ if (h.stopPropagation(), p(), d) {
645
+ if (g = R(h.target), h.dataTransfer) {
646
646
  const l = new Image();
647
- l.src = "", p.dataTransfer.setDragImage(l, 0, 0);
647
+ l.src = "", h.dataTransfer.setDragImage(l, 0, 0);
648
648
  }
649
- D = p.pageX, k = p.pageY, setTimeout(() => {
650
- m.value = C, s.value = !0, u.moving = !0;
649
+ D = h.pageX, k = h.pageY, setTimeout(() => {
650
+ m.value = C, s.value = !0, d.moving = !0;
651
651
  });
652
652
  }
653
653
  }
654
- function j(p, u) {
655
- if (p.preventDefault(), m.value !== u) {
654
+ function j(h, d) {
655
+ if (h.preventDefault(), m.value !== d) {
656
656
  const C = i.value[m.value], l = i.value;
657
- l.splice(m.value, 1), l.splice(u, 0, C), m.value = u, b(p.pageX, p.pageY);
657
+ l.splice(m.value, 1), l.splice(d, 0, C), m.value = d, b(h.pageX, h.pageY);
658
658
  }
659
659
  }
660
- function A(p) {
661
- p.preventDefault(), p.dataTransfer && (p.dataTransfer.dropEffect = "move"), b(p.pageX, p.pageY);
660
+ function A(h) {
661
+ h.preventDefault(), h.dataTransfer && (h.dataTransfer.dropEffect = "move"), b(h.pageX, h.pageY);
662
662
  }
663
- function H(p, u) {
664
- u && (u.moving = !1, g && (document.body.removeChild(g), g = null)), i.value.forEach((C, l) => {
663
+ function H(h, d) {
664
+ d && (d.moving = !1, g && (document.body.removeChild(g), g = null)), i.value.forEach((C, l) => {
665
665
  C.__fv_index__ = l;
666
- }), s.value = !1, I(), w.value = u.raw.__fv_index__, S.value = u.raw.__fv_index__, y.value = u.raw[T.value], t.emit("change", i.value), t.emit("activeChange", [u.raw]);
666
+ }), s.value = !1, I(), w.value = d.raw.__fv_index__, S.value = d.raw.__fv_index__, y.value = d.raw[T.value], t.emit("change", i.value), t.emit("activeChange", [d.raw]);
667
667
  }
668
668
  return {
669
669
  dragstart: M,
@@ -674,70 +674,70 @@ function wt(e, t, v, F) {
674
674
  };
675
675
  }
676
676
  function It(e, t, v, F, T, i) {
677
- const m = d(e.idField), s = d(e.disableField), S = d(e.draggable);
678
- d(e.itemClass);
679
- const y = d(e.selection.multiSelect ?? !1), w = d(e.selection.multiSelectMode), { isDragging: I } = F, { activeIndex: h, focusedItemId: g, hoverIndex: D } = T, { clearSelection: k, getSelectedItems: b, toggleSelectItem: R, currentSelectedDataId: M } = i, j = d(b()), A = (r) => j.value.length === 0 ? !1 : j.value.some((a) => {
677
+ const m = r(e.idField), s = r(e.disableField), S = r(e.draggable);
678
+ r(e.itemClass);
679
+ const y = r(e.selection.multiSelect ?? !1), w = r(e.selection.multiSelectMode), { isDragging: I } = F, { activeIndex: p, focusedItemId: g, hoverIndex: D } = T, { clearSelection: k, getSelectedItems: b, toggleSelectItem: R, currentSelectedDataId: M } = i, j = r(b()), A = (u) => j.value.length === 0 ? !1 : j.value.some((a) => {
680
680
  let o = "";
681
- return a.data ? o = a.data[m.value] : o = a[m.value], o === r;
681
+ return a.data ? o = a.data[m.value] : o = a[m.value], o === u;
682
682
  });
683
683
  function H() {
684
684
  j.value = b();
685
685
  }
686
- function p(r, a) {
687
- return r.raw[m.value] != null ? r.raw[m.value] : "";
686
+ function h(u, a) {
687
+ return u.raw[m.value] != null ? u.raw[m.value] : "";
688
688
  }
689
- function u(r, a) {
689
+ function d(u, a) {
690
690
  const o = {
691
691
  "f-list-view-group-item": !0,
692
692
  "f-list-view-draggable-item": S.value,
693
- "f-un-click": !r.checked,
694
- "f-un-select": !!r.raw[s.value],
693
+ "f-un-click": !u.checked,
694
+ "f-un-select": !!u.raw[s.value],
695
695
  "f-listview-active": (
696
696
  // 多选
697
- y.value && A(p(r)) || // 单选
698
- !y.value && r.raw[m.value] === M.value
697
+ y.value && A(h(u)) || // 单选
698
+ !y.value && u.raw[m.value] === M.value
699
699
  ),
700
700
  "f-listview-hover": !I.value && a === D.value,
701
- moving: !!r.moving
701
+ moving: !!u.moving
702
702
  };
703
703
  if (typeof e.itemClass == "string")
704
704
  return K(o, e.itemClass);
705
705
  if (typeof e.itemClass == "function") {
706
- const B = e.itemClass(r);
706
+ const B = e.itemClass(u);
707
707
  return K(o, B);
708
708
  }
709
709
  return o;
710
710
  }
711
- function C(r, a) {
711
+ function C(u, a) {
712
712
  const o = (
713
713
  // 多选
714
- y.value && A(p(r)) || // 单选
715
- !y.value && r.raw[m.value] === M.value
714
+ y.value && A(h(u)) || // 单选
715
+ !y.value && u.raw[m.value] === M.value
716
716
  ), B = {};
717
717
  if (o && (B.backgroundColor = "#dae9ff"), typeof e.itemStyle == "string")
718
718
  return ee(B, e.itemStyle);
719
719
  if (typeof e.itemStyle == "function") {
720
- const O = e.itemStyle(r);
720
+ const O = e.itemStyle(u);
721
721
  return ee(B, O);
722
722
  }
723
723
  return B;
724
724
  }
725
725
  const l = L(() => !y.value);
726
- function f(r, a, o) {
727
- r.checked = o, !r.raw[s.value] && (l.value && (g.value = r.raw[m.value]), R(r));
726
+ function f(u, a, o) {
727
+ u.checked = o, !u.raw[s.value] && (l.value && (g.value = u.raw[m.value]), R(u));
728
728
  }
729
729
  const P = L(() => y.value && w.value === "OnCheckClearByClick"), V = L(() => !y.value || y.value && (w.value === "OnCheckAndClick" || w.value === "OnClick"));
730
- function c(r, a, o) {
731
- if (r.raw[s.value]) {
730
+ function c(u, a, o) {
731
+ if (u.raw[s.value]) {
732
732
  o == null || o.preventDefault(), o == null || o.stopPropagation();
733
733
  return;
734
734
  }
735
- g.value = r.raw[m.value], h.value = a, P.value && k(), V.value && (R(r), H()), t.emit("clickItem", { data: j.value, index: a, dataItem: r.raw }), t.emit("activeChange", j.value);
735
+ g.value = u.raw[m.value], p.value = a, P.value && k(), V.value && (R(u), H()), t.emit("clickItem", { data: j.value, index: a, dataItem: u.raw }), t.emit("activeChange", j.value);
736
736
  }
737
737
  return {
738
- getKey: p,
738
+ getKey: h,
739
739
  selectedItems: j,
740
- listViewItemClass: u,
740
+ listViewItemClass: d,
741
741
  listViewItemStyle: C,
742
742
  updateSelectedItems: H,
743
743
  onCheckItem: f,
@@ -749,7 +749,7 @@ const U = /* @__PURE__ */ X({
749
749
  props: ft,
750
750
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
751
751
  setup(e, t) {
752
- const v = d(), F = d(!0), T = d(!1), i = d([]), m = 0, s = d(e.columns), S = Oe(e, t), y = xe(e), w = je(e), I = Be(e, y), h = Le(e, /* @__PURE__ */ new Map(), S, w, y), g = Ae(e, h, y, i, t), D = vt(e, v), k = Pe(e, h), b = L(() => h.dataView.value.length), R = He(e, t, g, y), M = _e(e, t, y, R, i), j = Ge(e), A = ze(e, {}, j), H = Ee(e, h, M, w, y, j, A), p = Ne(e, y, A, H), u = Ue(e, y, A, H), C = $e(e, s, h, b, m, H, p, u), {
752
+ const v = r(), F = r(!0), T = r(!1), i = r([]), m = 0, s = r(e.columns), S = Oe(e, t), y = xe(e), w = je(e), I = Be(e, y), p = Le(e, /* @__PURE__ */ new Map(), S, w, y), g = Ae(e, p, y, i, t), D = vt(e, v), k = Pe(e, p), b = L(() => p.dataView.value.length), R = He(e, t, g, y), M = _e(e, t, y, R, i), j = Ge(e), A = ze(e, {}, j), H = Ee(e, p, M, w, y, j, A), h = Ne(e, y, A, H), d = Ue(e, y, A, H), C = $e(e, s, p, b, m, H, h, d), {
753
753
  getVisualData: l
754
754
  } = C;
755
755
  i.value = l(0, b.value + m - 1);
@@ -764,15 +764,15 @@ const U = /* @__PURE__ */ X({
764
764
  return e.header === "SearchBar" ? le : e.header === "ContentHeader" ? Ct : le;
765
765
  }
766
766
  const c = V(), {
767
- renderHeader: r
768
- } = c(e, t, D), a = St(), o = wt(e, t, h, a), B = It(e, t, i, o, a, g), {
767
+ renderHeader: u
768
+ } = c(e, t, D), a = St(), o = wt(e, t, p, a), B = It(e, t, i, o, a, g), {
769
769
  renderListArea: O
770
- } = yt(e, t, i, h, I, a, g, C, B, o);
770
+ } = yt(e, t, i, p, I, a, g, C, B, o);
771
771
  function se(x) {
772
772
  D.search(x);
773
773
  }
774
774
  function ie(x) {
775
- x && (h.load(x), i.value = l(0, b.value + m - 1));
775
+ x && (p.load(x), i.value = l(0, b.value + m - 1));
776
776
  }
777
777
  function ce() {
778
778
  g.clearSelection(), a.clearActiveItem();
@@ -803,7 +803,7 @@ const U = /* @__PURE__ */ X({
803
803
  function ge(x) {
804
804
  k.updatePagination(x);
805
805
  }
806
- function he(x) {
806
+ function pe(x) {
807
807
  return i.value.filter((_) => x.includes(_.raw[e.idField]));
808
808
  }
809
809
  t.expose({
@@ -817,10 +817,10 @@ const U = /* @__PURE__ */ X({
817
817
  getCurrentRowId: de,
818
818
  clickRowItemById: ve,
819
819
  updatePagination: ge,
820
- getVisibleDataByIds: he,
820
+ getVisibleDataByIds: pe,
821
821
  selectRowById: me
822
822
  });
823
- function pe(x) {
823
+ function he(x) {
824
824
  e.multiSelect && (x.preventDefault(), x.stopPropagation());
825
825
  }
826
826
  N(() => e.selectionValues, (x, _) => {
@@ -833,15 +833,15 @@ const U = /* @__PURE__ */ X({
833
833
  applyColumnSorter: Vt,
834
834
  columnContext: we,
835
835
  updateColumnRenderContext: Ft
836
- } = Se, Ie = Ke(e, h, i, we, C, b, m, Ce, M), {
836
+ } = Se, Ie = Ke(e, p, i, we, C, b, m, Ce, M), {
837
837
  shouldRenderPagination: Tt
838
838
  } = k, {
839
839
  renderDataGridPagination: Rt
840
- } = Xe(e, t, h, Ie, k, g);
840
+ } = Xe(e, t, p, Ie, k, g);
841
841
  return () => n("div", {
842
842
  class: f.value,
843
- onClick: pe
844
- }, [r(), n("div", {
843
+ onClick: he
844
+ }, [u(), n("div", {
845
845
  ref: v,
846
846
  class: "f-list-view-content",
847
847
  onMouseover: () => {
@@ -859,11 +859,11 @@ const U = /* @__PURE__ */ X({
859
859
  props: J,
860
860
  emits: ["change", "activeChange", "selectItem", "unSelecteItem", "removeItem"],
861
861
  setup(e, t) {
862
- const v = d(e.identifyField), F = d(e.displayType), T = d(!1), i = d(e.dataSource), m = d(e.textField), s = d(e.selections || []), S = L(() => s.value.map((c) => c[v.value])), y = /* @__PURE__ */ new Map(), w = d(), I = d(), h = d();
862
+ const v = r(e.identifyField), F = r(e.displayType), T = r(!1), i = r(e.dataSource), m = r(e.textField), s = r(e.selections || []), S = L(() => s.value.map((c) => c[v.value])), y = /* @__PURE__ */ new Map(), w = r(), I = r(), p = r();
863
863
  let g;
864
864
  function D() {
865
- const c = /* @__PURE__ */ new Map(), r = e.selectionValues || [];
866
- r.length && r.reduce((o, B) => (o.set(B, !0), o), c);
865
+ const c = /* @__PURE__ */ new Map(), u = e.selectionValues || [];
866
+ u.length && u.reduce((o, B) => (o.set(B, !0), o), c);
867
867
  const a = e.selections || [];
868
868
  a.length && (c.clear(), a.reduce((o, B) => (o.set(B[v.value], !0), o), c)), s.value.length || (s.value = i.value.filter((o) => c.has(o[v.value])).map((o) => Object.assign({}, o))), i.value.forEach((o) => {
869
869
  const B = o[v.value], O = c.has(B);
@@ -875,8 +875,8 @@ const U = /* @__PURE__ */ X({
875
875
  });
876
876
  const k = L(() => F.value === "List"), b = L(() => F.value === "Tree");
877
877
  function R(c) {
878
- const r = te(s.value);
879
- s.value = c.map((a) => Object.assign({}, a)), t.emit("change", s.value, r);
878
+ const u = te(s.value);
879
+ s.value = c.map((a) => Object.assign({}, a)), t.emit("change", s.value, u);
880
880
  }
881
881
  function M(c) {
882
882
  t.emit("selectItem", c);
@@ -908,7 +908,7 @@ const U = /* @__PURE__ */ X({
908
908
  }
909
909
  function H() {
910
910
  return n(Te, {
911
- ref: h,
911
+ ref: p,
912
912
  data: i.value,
913
913
  columns: e.columns,
914
914
  virtualized: e.virtualized,
@@ -928,7 +928,7 @@ const U = /* @__PURE__ */ X({
928
928
  onUnSelectItem: j
929
929
  }, null);
930
930
  }
931
- function p() {
931
+ function h() {
932
932
  return n("div", {
933
933
  class: "f-utils-fill option-pane d-flex flex-column"
934
934
  }, [n("div", {
@@ -937,22 +937,22 @@ const U = /* @__PURE__ */ X({
937
937
  class: "container columns-box d-flex f-utils-fill"
938
938
  }, [k.value && A(), b.value && H()])])]);
939
939
  }
940
- function u(c) {
941
- const r = c[v.value];
942
- if (r !== null || r !== void 0) {
943
- s.value = s.value.filter((o) => o[v.value] !== r);
944
- const a = y.get(r);
945
- a && (a.checked = !1, y.delete(r)), t.emit("change", s.value), t.emit("removeItem", c);
940
+ function d(c) {
941
+ const u = c[v.value];
942
+ if (u !== null || u !== void 0) {
943
+ s.value = s.value.filter((o) => o[v.value] !== u);
944
+ const a = y.get(u);
945
+ a && (a.checked = !1, y.delete(u)), t.emit("change", s.value), t.emit("removeItem", c);
946
946
  }
947
947
  }
948
948
  N(s, (c) => {
949
949
  w.value.updateDataSource(te(c));
950
- const r = g == null ? void 0 : g[v.value], a = c.find((o) => r === o[v.value]);
950
+ const u = g == null ? void 0 : g[v.value], a = c.find((o) => u === o[v.value]);
951
951
  a ? w.value.activeRowById(a[v.value]) : (g = null, w.value.activeRowById(""));
952
952
  });
953
953
  function C(c) {
954
- const r = /* @__PURE__ */ new Map();
955
- s.value.reduce((a, o) => (a.set(o[v.value], o), a), r), s.value = c.map((a) => r.get(a[v.value])), t.emit("change", s.value);
954
+ const u = /* @__PURE__ */ new Map();
955
+ s.value.reduce((a, o) => (a.set(o[v.value], o), a), u), s.value = c.map((a) => u.get(a[v.value])), t.emit("change", s.value);
956
956
  }
957
957
  function l(c) {
958
958
  g = c[0], t.emit("activeChange", c);
@@ -970,13 +970,13 @@ const U = /* @__PURE__ */ X({
970
970
  textField: m.value,
971
971
  itemClass: e.selectedItemClass,
972
972
  onChange: C,
973
- onRemoveItem: u,
973
+ onRemoveItem: d,
974
974
  onActiveChange: l,
975
975
  checkBeforeRemoveItem: e.checkBeforeRemoveItem
976
976
  }, {
977
- itemContent: (c = t.slots) != null && c.text ? (r) => {
977
+ itemContent: (c = t.slots) != null && c.text ? (u) => {
978
978
  var a;
979
- return ((a = t.slots) == null ? void 0 : a.text) && t.slots.text(r);
979
+ return ((a = t.slots) == null ? void 0 : a.text) && t.slots.text(u);
980
980
  } : null
981
981
  });
982
982
  }
@@ -1010,25 +1010,25 @@ const U = /* @__PURE__ */ X({
1010
1010
  style: "height:480px"
1011
1011
  }, [t.slots.children ? t.slots.children({
1012
1012
  selections: s.value
1013
- }) : p(), P()]);
1013
+ }) : h(), P()]);
1014
1014
  }
1015
1015
  }), bt = /* @__PURE__ */ X({
1016
1016
  name: "FTransferDesign",
1017
1017
  props: J,
1018
1018
  emits: ["change"],
1019
1019
  setup(e, t) {
1020
- const v = d(e.identifyField), F = d("已选:"), T = d("项数据"), i = d(e.displayType), m = d(!1), s = d(e.dataSource), S = d(e.selections || []), y = L(() => S.value.map((f) => f[v.value])), w = /* @__PURE__ */ new Map();
1020
+ const v = r(e.identifyField), F = r("已选:"), T = r("项数据"), i = r(e.displayType), m = r(!1), s = r(e.dataSource), S = r(e.selections || []), y = L(() => S.value.map((f) => f[v.value])), w = /* @__PURE__ */ new Map();
1021
1021
  function I() {
1022
1022
  const f = /* @__PURE__ */ new Map(), P = e.selectionValues || [];
1023
- P.length && P.reduce((c, r) => (c.set(r, !0), c), f);
1023
+ P.length && P.reduce((c, u) => (c.set(u, !0), c), f);
1024
1024
  const V = e.selections || [];
1025
- V.length && (f.clear(), V.reduce((c, r) => (c.set(r[v.value], !0), c), f)), S.value.length || (S.value = s.value.filter((c) => f.has(c[v.value])).map((c) => Object.assign({}, c))), s.value.forEach((c) => {
1026
- const r = c[v.value], a = f.has(r);
1027
- c.checked = a, a && w.set(r, c);
1025
+ V.length && (f.clear(), V.reduce((c, u) => (c.set(u[v.value], !0), c), f)), S.value.length || (S.value = s.value.filter((c) => f.has(c[v.value])).map((c) => Object.assign({}, c))), s.value.forEach((c) => {
1026
+ const u = c[v.value], a = f.has(u);
1027
+ c.checked = a, a && w.set(u, c);
1028
1028
  });
1029
1029
  }
1030
1030
  I();
1031
- const h = L(() => i.value === "List"), g = L(() => i.value === "Tree");
1031
+ const p = L(() => i.value === "List"), g = L(() => i.value === "Tree");
1032
1032
  function D(f) {
1033
1033
  S.value = f.map((P) => Object.assign({}, P)), t.emit("change", S.value);
1034
1034
  }
@@ -1056,7 +1056,7 @@ const U = /* @__PURE__ */ X({
1056
1056
  class: "f-utils-flex-column option-pane-content f-utils-fill"
1057
1057
  }, [n("div", {
1058
1058
  class: "container columns-box d-flex f-utils-fill"
1059
- }, [h.value && k(), g.value && b()])])]);
1059
+ }, [p.value && k(), g.value && b()])])]);
1060
1060
  }
1061
1061
  function M(f) {
1062
1062
  const P = f[v.value];
@@ -1100,16 +1100,16 @@ const U = /* @__PURE__ */ X({
1100
1100
  class: "container columns-box f-utils-fill d-flex"
1101
1101
  }, [A()])])]);
1102
1102
  }
1103
- const p = L(() => ({
1103
+ const h = L(() => ({
1104
1104
  transfer: !0,
1105
1105
  row: !0,
1106
1106
  "f-utils-fill": m.value
1107
- })), u = d(), C = Fe("design-item-context"), l = Ye(u, C);
1107
+ })), d = r(), C = Fe("design-item-context"), l = Ye(d, C);
1108
1108
  return ae(() => {
1109
- u.value.componentInstance = l;
1109
+ d.value.componentInstance = l;
1110
1110
  }), t.expose(l.value), () => n("div", {
1111
- ref: u,
1112
- class: p.value,
1111
+ ref: d,
1112
+ class: h.value,
1113
1113
  style: "height:480px"
1114
1114
  }, [R(), H()]);
1115
1115
  }