@farris/ui-vue 1.2.4 → 1.2.5

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 (70) hide show
  1. package/components/accordion/index.esm.js +58 -58
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/capsule/index.esm.js +1 -1
  4. package/components/capsule/index.umd.cjs +1 -1
  5. package/components/common/index.esm.js +2 -2
  6. package/components/common/index.umd.cjs +1 -1
  7. package/components/condition/index.esm.js +137 -135
  8. package/components/condition/index.umd.cjs +1 -1
  9. package/components/data-grid/index.esm.js +2316 -2299
  10. package/components/data-grid/index.umd.cjs +1 -1
  11. package/components/data-view/index.esm.js +1929 -1920
  12. package/components/data-view/index.umd.cjs +1 -1
  13. package/components/designer-canvas/index.esm.js +1 -1
  14. package/components/designer-canvas/index.umd.cjs +1 -1
  15. package/components/designer-canvas/style.css +1 -1
  16. package/components/designer-outline/index.esm.js +44 -42
  17. package/components/designer-outline/index.umd.cjs +1 -1
  18. package/components/designer-toolbox/index.esm.js +28 -467
  19. package/components/designer-toolbox/index.umd.cjs +1 -1
  20. package/components/dynamic-form/index.esm.js +836 -790
  21. package/components/dynamic-form/index.umd.cjs +1 -1
  22. package/components/external-container/index.esm.js +382 -378
  23. package/components/external-container/index.umd.cjs +1 -1
  24. package/components/field-selector/index.esm.js +1167 -1150
  25. package/components/field-selector/index.umd.cjs +1 -1
  26. package/components/filter-bar/index.esm.js +131 -127
  27. package/components/filter-bar/index.umd.cjs +1 -1
  28. package/components/flow-canvas/index.esm.js +1 -1
  29. package/components/flow-canvas/index.umd.cjs +1 -1
  30. package/components/flow-canvas/style.css +1 -1
  31. package/components/list-view/index.esm.js +128 -124
  32. package/components/list-view/index.umd.cjs +1 -1
  33. package/components/lookup/index.esm.js +2156 -2139
  34. package/components/lookup/index.umd.cjs +1 -1
  35. package/components/mapping-editor/index.esm.js +3137 -3120
  36. package/components/mapping-editor/index.umd.cjs +1 -1
  37. package/components/nav/index.esm.js +511 -469
  38. package/components/nav/index.umd.cjs +2 -2
  39. package/components/order/index.esm.js +859 -815
  40. package/components/order/index.umd.cjs +1 -1
  41. package/components/pagination/index.esm.js +491 -449
  42. package/components/pagination/index.umd.cjs +1 -1
  43. package/components/property-panel/index.esm.js +75 -73
  44. package/components/property-panel/index.umd.cjs +1 -1
  45. package/components/response-layout-editor/index.esm.js +63 -61
  46. package/components/response-layout-editor/index.umd.cjs +1 -1
  47. package/components/schema-selector/index.esm.js +2002 -1956
  48. package/components/schema-selector/index.umd.cjs +1 -1
  49. package/components/switch/index.esm.js +165 -192
  50. package/components/switch/index.umd.cjs +1 -1
  51. package/components/tabs/index.esm.js +2 -2
  52. package/components/tabs/index.umd.cjs +1 -1
  53. package/components/transfer/index.esm.js +95 -93
  54. package/components/transfer/index.umd.cjs +1 -1
  55. package/components/tree-grid/index.esm.js +2316 -2299
  56. package/components/tree-grid/index.umd.cjs +1 -1
  57. package/components/tree-view/index.esm.js +296 -295
  58. package/components/tree-view/index.umd.cjs +1 -1
  59. package/farris.all.esm.js +2517 -2483
  60. package/farris.all.umd.cjs +7 -7
  61. package/package.json +1 -1
  62. package/style.css +1 -1
  63. package/types/condition/index.d.ts +60 -1
  64. package/types/data-view/components/column-setting/column-setting.component.d.ts +2 -1
  65. package/types/data-view/composition/types.d.ts +2 -0
  66. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +3 -3
  67. package/types/list-view/src/composition/types.d.ts +1 -1
  68. package/types/message-box/index.d.ts +84 -1
  69. package/types/notify/index.d.ts +84 -1
  70. package/types/tree-grid/src/schema/column-resolver.d.ts +3 -0
@@ -1,7 +1,7 @@
1
1
  var qt = Object.defineProperty;
2
2
  var zt = (e, t, n) => t in e ? qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var H = (e, t, n) => zt(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as w, computed as M, createVNode as v, Fragment as me, watch as Q, withModifiers as Wt, withDirectives as We, vModelText as Ut, defineComponent as oe, resolveComponent as Kt, createTextVNode as le, onBeforeUnmount as Qt, onMounted as fe, nextTick as je, reactive as Ue, resolveDirective as Yt, mergeProps as Ne, createApp as Jt, onUnmounted as Xt, inject as Ke } from "vue";
4
+ import { ref as w, computed as M, createVNode as v, Fragment as me, watch as Q, withModifiers as Wt, withDirectives as We, vModelText as Ut, defineComponent as oe, resolveComponent as Kt, createTextVNode as ue, onBeforeUnmount as Qt, onMounted as pe, nextTick as je, reactive as Ue, resolveDirective as Yt, mergeProps as Ne, createApp as Jt, onUnmounted as Xt, inject as Ke } from "vue";
5
5
  import { cloneDeep as he } from "lodash-es";
6
6
  import { useIdentify as Zt, useHierarchy as en, useGroupData as tn, usePagination as nn, useDataView as on, useSelection as an, useEdit as rn, useVisualDataBound as sn, useVisualDataCell as ln, useVisualDataRow as un, useVisualGroupRow as cn, useVisualSummaryRow as dn, useVisualData as fn } from "@farris/ui-vue/components/data-view";
7
7
  import pn, { FCheckBox as Be } from "@farris/ui-vue/components/checkbox";
@@ -377,7 +377,9 @@ function Ge(e, t, n, o, a, r, s, f, g, p) {
377
377
  disabled: E[k.value],
378
378
  checked: E.checked,
379
379
  "onUpdate:checked": (T) => E.checked = T,
380
- onChange: (T) => V(E, h)
380
+ onChange: (T) => {
381
+ V(E, h, !T.checked);
382
+ }
381
383
  }, null)]), v("div", {
382
384
  class: "f-list-content"
383
385
  }, [v("div", {
@@ -427,7 +429,7 @@ function Lo(e, t, n, o, a, r, s, f, g, p) {
427
429
  disabled: c[l.value] || !c.checked,
428
430
  checked: c.checked,
429
431
  "onUpdate:checked": (E) => c.checked = E,
430
- onChange: (E) => y(c, b)
432
+ onChange: (E) => y(c, b, !E.checked)
431
433
  }, null)]), v("div", {
432
434
  class: "f-list-content"
433
435
  }, [F(c, b, D)])]);
@@ -488,7 +490,7 @@ function jo(e, t, n, o, a, r, s, f, g, p) {
488
490
  disabled: u[l.value] || !u.checked,
489
491
  checked: u.checked,
490
492
  "onUpdate:checked": (R) => u.checked = R,
491
- onChange: (R) => y(u, _)
493
+ onChange: (R) => y(u, _, !R.checked)
492
494
  }, null)]), v("div", {
493
495
  class: "f-list-content"
494
496
  }, [T(u)]), v("div", {
@@ -621,8 +623,8 @@ function Wo(e, t, n, o, a, r) {
621
623
  return T.raw[s.value] || "";
622
624
  }
623
625
  const b = M(() => !d.value);
624
- function D(T, S) {
625
- !T.checked || T.raw[f.value] || (b.value && (k.value = T.raw[s.value]), C(T));
626
+ function D(T, S, u) {
627
+ T.checked = u, !T.raw[f.value] && (b.value && (k.value = T.raw[s.value]), C(T));
626
628
  }
627
629
  const E = M(() => d.value && l.value === "OnCheckClearByClick"), h = M(() => !d.value || d.value && (l.value === "OnCheckAndClick" || l.value === "OnClick"));
628
630
  function O(T, S, u) {
@@ -872,7 +874,7 @@ function ot(e, t, n) {
872
874
  triggerBelongedComponentToDeleteWhenDeleted: w(!1)
873
875
  }, s;
874
876
  }
875
- var Z = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(Z || {}), se = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(se || {}), Se = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(Se || {});
877
+ var Z = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(Z || {}), le = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(le || {}), Se = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(Se || {});
876
878
  function Uo() {
877
879
  function e(n, o) {
878
880
  const a = n.pre;
@@ -895,10 +897,10 @@ function Ko() {
895
897
  switch (o.command) {
896
898
  case "edit":
897
899
  case "remove":
898
- return a.status === se.initial;
900
+ return a.status === le.initial;
899
901
  case "accept":
900
902
  case "cancel":
901
- return a.status === se.editing;
903
+ return a.status === le.editing;
902
904
  default:
903
905
  return !o.hidden;
904
906
  }
@@ -906,11 +908,11 @@ function Ko() {
906
908
  function t(o, a, r) {
907
909
  switch (o.onClick(a, r.dataIndex, r), o.command) {
908
910
  case "edit":
909
- r.status, se.editing;
911
+ r.status, le.editing;
910
912
  break;
911
913
  case "accept":
912
914
  case "cancel":
913
- r.status, se.initial;
915
+ r.status, le.initial;
914
916
  break;
915
917
  }
916
918
  }
@@ -921,7 +923,7 @@ function Ko() {
921
923
  size: r.size || "small",
922
924
  onClick: (s) => t(r, s, a)
923
925
  }, {
924
- default: () => [le(" "), r.text, le(" ")]
926
+ default: () => [ue(" "), r.text, ue(" ")]
925
927
  }))]);
926
928
  }
927
929
  return {
@@ -1614,7 +1616,7 @@ const Na = {
1614
1616
  title: n.value
1615
1617
  }, [o.value && v("span", {
1616
1618
  class: "farris-label-info text-danger"
1617
- }, [le("*")]), v("span", {
1619
+ }, [ue("*")]), v("span", {
1618
1620
  class: "farris-label-text"
1619
1621
  }, [a.value])]);
1620
1622
  }
@@ -2075,7 +2077,7 @@ function Ja(e, t, n) {
2075
2077
  async function k(m) {
2076
2078
  r(m), await je, I();
2077
2079
  }
2078
- return fe(async () => {
2080
+ return pe(async () => {
2079
2081
  await je, I();
2080
2082
  }), () => v("input", {
2081
2083
  ref: o,
@@ -2144,7 +2146,7 @@ function Za(e, t) {
2144
2146
  } = o, {
2145
2147
  isFocus: i
2146
2148
  } = r, I = M(() => !e.disabled && !e.readonly);
2147
- return fe(() => {
2149
+ return pe(() => {
2148
2150
  const k = p(e.modelValue);
2149
2151
  f.value = l(k);
2150
2152
  }), Q(() => [e.value], ([k]) => {
@@ -2178,7 +2180,7 @@ function er(e, t, n, o) {
2178
2180
  textBoxClass: E,
2179
2181
  textBoxTitle: h
2180
2182
  } = o;
2181
- return fe(() => {
2183
+ return pe(() => {
2182
2184
  e.selectOnCreated, e.focusOnCreated;
2183
2185
  }), () => v("input", {
2184
2186
  ref: a,
@@ -2291,7 +2293,7 @@ const or = /* @__PURE__ */ oe({
2291
2293
  n.value = V, o.value = V;
2292
2294
  }), Q(() => [e.modelValue], ([V]) => {
2293
2295
  n.value = V, o.value = V;
2294
- }), fe(() => {
2296
+ }), pe(() => {
2295
2297
  e.value && (n.value = e.value, o.value = e.value);
2296
2298
  });
2297
2299
  const F = () => v(me, null, [v("div", {
@@ -2321,6 +2323,8 @@ function dt() {
2321
2323
  switch (a) {
2322
2324
  case "check-box":
2323
2325
  return "onChangeValue";
2326
+ case "switch":
2327
+ return "onModelValueChanged";
2324
2328
  case "check-group":
2325
2329
  return "onChangeValue";
2326
2330
  case "combo-list":
@@ -2823,8 +2827,8 @@ const Ve = /* @__PURE__ */ oe({
2823
2827
  "id-field": "id",
2824
2828
  data: s.value,
2825
2829
  modelValue: B.fieldCode,
2826
- "onUpdate:modelValue": (U) => B.fieldCode = U,
2827
- onChange: (U) => h(B)
2830
+ "onUpdate:modelValue": (W) => B.fieldCode = W,
2831
+ onChange: (W) => h(B)
2828
2832
  }, null)]), v("div", {
2829
2833
  class: "condition-list-item-compare mr-3"
2830
2834
  }, [v(Ie, {
@@ -2833,17 +2837,17 @@ const Ve = /* @__PURE__ */ oe({
2833
2837
  "id-field": "id",
2834
2838
  data: E(B),
2835
2839
  modelValue: B.compareType,
2836
- "onUpdate:modelValue": (U) => B.compareType = U,
2837
- onChange: (U) => O(U, B)
2840
+ "onUpdate:modelValue": (W) => B.compareType = W,
2841
+ onChange: (W) => O(W, B)
2838
2842
  }, null)]), v("div", {
2839
2843
  class: "condition-list-item-control mr-3"
2840
2844
  }, [v(rr, {
2841
2845
  editor: (L = f.get(B.fieldCode)) == null ? void 0 : L.editor,
2842
2846
  showLabel: !1,
2843
2847
  modelValue: B.value.value,
2844
- "onUpdate:modelValue": (U) => B.value.value = U,
2845
- onChange: (U) => {
2846
- S(U, B);
2848
+ "onUpdate:modelValue": (W) => B.value.value = W,
2849
+ onChange: (W) => {
2850
+ S(W, B);
2847
2851
  }
2848
2852
  }, null)]), v("div", {
2849
2853
  class: "condition-list-item-extend"
@@ -2897,17 +2901,17 @@ const Ve = /* @__PURE__ */ oe({
2897
2901
  class: "f-icon f-icon-filter-add"
2898
2902
  }, null), v("span", {
2899
2903
  class: "ml-1"
2900
- }, [le("添加条件")])]), v("div", {
2904
+ }, [ue("添加条件")])]), v("div", {
2901
2905
  class: "add-condition-btn mb-1",
2902
2906
  onClick: R
2903
2907
  }, [v("span", {
2904
2908
  class: "f-icon f-icon-filter-grouping"
2905
2909
  }, null), v("span", {
2906
2910
  class: "ml-1"
2907
- }, [le("生成条件组")])]), v("div", {
2911
+ }, [ue("生成条件组")])]), v("div", {
2908
2912
  class: "condition-list-reset add-condition-btn",
2909
2913
  onClick: T
2910
- }, [le("重置")])]);
2914
+ }, [ue("重置")])]);
2911
2915
  }
2912
2916
  return () => v("div", {
2913
2917
  class: "condition-list",
@@ -3259,7 +3263,7 @@ function yr(e, t, n, o) {
3259
3263
  const u = l(S), _ = d(S, u);
3260
3264
  return S.forEach((N, R) => {
3261
3265
  var L;
3262
- const A = N[r.value], P = _.has(A) ? (L = _.get(A)) == null ? void 0 : L.map((U) => U.__fv_index__) : [], B = x(A, R);
3266
+ const A = N[r.value], P = _.has(A) ? (L = _.get(A)) == null ? void 0 : L.map((W) => W.__fv_index__) : [], B = x(A, R);
3263
3267
  N.__fv_graph_node__ = B, N.__fv_children_index__ = P, N.__fv_descendant_index__ = [...P], N.__fv_parents__ = /* @__PURE__ */ new Map(), D(N) && (N[s.value] = !0);
3264
3268
  }), i(S), k(S, u), e.showLines && m(S), S;
3265
3269
  }
@@ -3272,10 +3276,10 @@ function yr(e, t, n, o) {
3272
3276
  const L = Array.from(P.children.keys()).indexOf(A.id);
3273
3277
  if (L === P.children.size - 1) {
3274
3278
  const J = Array.from(P.descendant.values())[P.descendant.size - 1];
3275
- B = _.value.findIndex((pe) => pe[r.value] === J.id) + 1;
3279
+ B = _.value.findIndex((ce) => ce[r.value] === J.id) + 1;
3276
3280
  } else {
3277
3281
  const J = Array.from(P.children.values())[L + 1];
3278
- B = _.value.findIndex((pe) => pe[r.value] === J.id);
3282
+ B = _.value.findIndex((ce) => ce[r.value] === J.id);
3279
3283
  }
3280
3284
  u[f.value] = !1, u[g.value] = P.id, _.value.splice(B, 0, u);
3281
3285
  }
@@ -3467,7 +3471,7 @@ class gt {
3467
3471
  }
3468
3472
  return Xt(() => {
3469
3473
  document.body.removeChild(r);
3470
- }), fe(() => {
3474
+ }), pe(() => {
3471
3475
  n.updateNotifyPositionForCreate(a, f);
3472
3476
  }), () => v(be, Ne({
3473
3477
  ref: f
@@ -3561,63 +3565,63 @@ function wr(e, t, n, o, a) {
3561
3565
  const $ = Ae(e.data);
3562
3566
  b.value = $, A.value = $, P.value = $;
3563
3567
  }
3564
- const L = w(e.summary), U = M(() => {
3568
+ const L = w(e.summary), W = M(() => {
3565
3569
  const $ = L.value;
3566
3570
  return ($ == null ? void 0 : $.groupFields) || [];
3567
3571
  });
3568
3572
  let J = /* @__PURE__ */ new Map();
3569
- const ue = M(() => A.value.length), pe = w(e.pagination), bt = new gt(), Fe = M(() => f.value ? p.value === "server" ? 0 : (g.value - 1) * r.value : 0), $e = M(() => f.value ? p.value === "server" ? Math.min(r.value, s.value, ue.value) : Math.min(Fe.value + r.value, s.value, ue.value) : ue.value);
3573
+ const re = M(() => A.value.length), ce = w(e.pagination), bt = new gt(), Fe = M(() => f.value ? p.value === "server" ? 0 : (g.value - 1) * r.value : 0), $e = M(() => f.value ? p.value === "server" ? Math.min(r.value, s.value, re.value) : Math.min(Fe.value + r.value, s.value, re.value) : re.value);
3570
3574
  function Ae($) {
3571
3575
  return B($);
3572
3576
  }
3573
3577
  function ye() {
3574
- A.value = b.value, c.value && (A.value = F(V.value, b.value, t)), J = U.value.reduce((te, ae) => (te.set(ae, 0), te), J);
3575
- const $ = Fe.value, W = $e.value;
3578
+ A.value = b.value, c.value && (A.value = F(V.value, b.value, t)), J = W.value.reduce((te, ae) => (te.set(ae, 0), te), J);
3579
+ const $ = Fe.value, U = $e.value;
3576
3580
  let K = 0;
3577
3581
  const X = [];
3578
3582
  if (A.value.length) {
3579
3583
  N(A.value);
3580
3584
  const te = _.value !== e.idField;
3581
- for (let ae = $; ae < W; ae++) {
3585
+ for (let ae = $; ae < U; ae++) {
3582
3586
  const ee = A.value[ae];
3583
- ee.__fv_data_grid_group_row__ ? (K = 0, ee.__fv_data_index__ = "") : ee.__fv_data_grid_group_summary__ ? ee.__fv_data_index__ = "" : (K++, f.value ? ee.__fv_data_index__ = K + (g.value - 1) * r.value : ee.__fv_data_index__ = K), ee.__fv_index__ = ae, te && (ee[_.value] = ae), U.value.forEach((Y) => {
3584
- const ce = J.get(Y) || 0;
3585
- J.set(Y, ce + ee[Y]);
3587
+ ee.__fv_data_grid_group_row__ ? (K = 0, ee.__fv_data_index__ = "") : ee.__fv_data_grid_group_summary__ ? ee.__fv_data_index__ = "" : (K++, f.value ? ee.__fv_data_index__ = K + (g.value - 1) * r.value : ee.__fv_data_index__ = K), ee.__fv_index__ = ae, te && (ee[_.value] = ae), W.value.forEach((Y) => {
3588
+ const de = J.get(Y) || 0;
3589
+ J.set(Y, de + ee[Y]);
3586
3590
  }), X.push(ee);
3587
3591
  }
3588
3592
  }
3589
3593
  return S.value && E(X), P.value = [...X], X;
3590
3594
  }
3591
- const re = w(ye());
3592
- function ne($, W, K = !1) {
3593
- const te = (K ? ye() : [...P.value]).filter((Y) => y.apply(Y)), ae = $ && $.length ? te.filter((Y) => $.reduce((ce, de) => ce && de.filter(Y), !0)) : te, ee = W && W.length ? ae.sort((Y, ce) => {
3594
- const de = [...W], Te = de.shift();
3595
- let ke = Te.compare(Y[Te.field], ce[Te.field]);
3596
- for (; ke === 0 && de.length !== 0; ) {
3597
- const _e = de.shift();
3598
- _e && (ke = _e.compare(Y[_e.field], ce[_e.field]));
3595
+ const ie = w(ye());
3596
+ function ne($, U, K = !1) {
3597
+ const te = (K ? ye() : [...P.value]).filter((Y) => y.apply(Y)), ae = $ && $.length ? te.filter((Y) => $.reduce((de, fe) => de && fe.filter(Y), !0)) : te, ee = U && U.length ? ae.sort((Y, de) => {
3598
+ const fe = [...U], Te = fe.shift();
3599
+ let ke = Te.compare(Y[Te.field], de[Te.field]);
3600
+ for (; ke === 0 && fe.length !== 0; ) {
3601
+ const _e = fe.shift();
3602
+ _e && (ke = _e.compare(Y[_e.field], de[_e.field]));
3599
3603
  }
3600
3604
  return ke;
3601
3605
  }) : ae;
3602
- return re.value = ee.map((Y, ce) => {
3606
+ return ie.value = ee.map((Y, de) => {
3603
3607
  if (Y.__fv_data_grid_group_row__) {
3604
- const de = `group_of_${Y.__fv_data_grid_group_field__}_${Y.__fv_data_grid_group_value__}`;
3605
- Y.__fv_data_grid_group_collapse__ = !!d.get(de);
3608
+ const fe = `group_of_${Y.__fv_data_grid_group_field__}_${Y.__fv_data_grid_group_value__}`;
3609
+ Y.__fv_data_grid_group_collapse__ = !!d.get(fe);
3606
3610
  }
3607
- return Y.__fv_index__ = ce, Y;
3608
- }), re.value;
3611
+ return Y.__fv_index__ = de, Y;
3612
+ }), ie.value;
3609
3613
  }
3610
3614
  function Ct($) {
3611
- return k.clear(), x.value = $, x.value.reduce((W, K) => (W.set(K.field, K), W), k), ne([], x.value);
3615
+ return k.clear(), x.value = $, x.value.reduce((U, K) => (U.set(K.field, K), U), k), ne([], x.value);
3612
3616
  }
3613
- function wt($, W) {
3614
- return k.set($, W), x.value = Array.from(k.values()), ne([], x.value);
3617
+ function wt($, U) {
3618
+ return k.set($, U), x.value = Array.from(k.values()), ne([], x.value);
3615
3619
  }
3616
3620
  function St($) {
3617
3621
  return k.delete($), x.value = Array.from(k.values()), ne([], x.value);
3618
3622
  }
3619
- function Ft($, W) {
3620
- return l.set($, W), m.value = Array.from(l.values()), ne([], Array.from(k.values()));
3623
+ function Ft($, U) {
3624
+ return l.set($, U), m.value = Array.from(l.values()), ne([], Array.from(k.values()));
3621
3625
  }
3622
3626
  function Tt($) {
3623
3627
  return l.delete($), m.value = Array.from(l.values()), ne([], Array.from(k.values()), !0);
@@ -3625,97 +3629,97 @@ function wr(e, t, n, o, a) {
3625
3629
  function kt() {
3626
3630
  return l.clear(), m.value = [], ne([], Array.from(k.values()), !0);
3627
3631
  }
3628
- function Vt($, W) {
3629
- const K = `group_of_${$}_${W}`;
3632
+ function Vt($, U) {
3633
+ const K = `group_of_${$}_${U}`;
3630
3634
  d.set(K, !0);
3631
- const X = (te) => te[$] !== W;
3632
- return i.set(`collapse_${$}_${W}`, {
3635
+ const X = (te) => te[$] !== U;
3636
+ return i.set(`collapse_${$}_${U}`, {
3633
3637
  field: $,
3634
3638
  fieldName: $,
3635
3639
  fieldType: "string",
3636
- filterValue: W,
3640
+ filterValue: U,
3637
3641
  filter: X
3638
3642
  }), ne(Array.from(i.values()), Array.from(k.values()));
3639
3643
  }
3640
- function It($, W) {
3641
- const K = `group_of_${$}_${W}`;
3642
- return d.set(K, !1), i.delete(`collapse_${$}_${W}`), ne(Array.from(i.values()), Array.from(k.values()), !0);
3644
+ function It($, U) {
3645
+ const K = `group_of_${$}_${U}`;
3646
+ return d.set(K, !1), i.delete(`collapse_${$}_${U}`), ne(Array.from(i.values()), Array.from(k.values()), !0);
3643
3647
  }
3644
3648
  function xt($) {
3645
- const W = $.raw[_.value], K = (X) => !X.__fv_parents__.has(W);
3646
- I.set(`fold_${W}`, {
3649
+ const U = $.raw[_.value], K = (X) => !X.__fv_parents__.has(U);
3650
+ I.set(`fold_${U}`, {
3647
3651
  field: "id",
3648
3652
  fieldName: "id",
3649
3653
  fieldType: "string",
3650
- filterValue: String(W),
3654
+ filterValue: String(U),
3651
3655
  filter: K
3652
- }), ne(Array.from(I.values()), Array.from(k.values())), E(re.value);
3656
+ }), ne(Array.from(I.values()), Array.from(k.values())), E(ie.value);
3653
3657
  }
3654
3658
  function Pe($) {
3655
- const W = $[_.value];
3656
- I.delete(`fold_${W}`);
3659
+ const U = $[_.value];
3660
+ I.delete(`fold_${U}`);
3657
3661
  }
3658
3662
  function Et($) {
3659
- Pe($.raw), ne(Array.from(I.values()), Array.from(k.values()), !0), E(re.value);
3663
+ Pe($.raw), ne(Array.from(I.values()), Array.from(k.values()), !0), E(ie.value);
3660
3664
  }
3661
- function ie() {
3665
+ function se() {
3662
3666
  const $ = ye();
3663
- re.value = $, e.hierarchy && (ne(Array.from(I.values()), Array.from(k.values())), E(re.value));
3667
+ ie.value = $, e.hierarchy && (ne(Array.from(I.values()), Array.from(k.values())), E(ie.value));
3664
3668
  }
3665
3669
  function Ot($) {
3666
- var W;
3667
- if ($ && ((W = $[0]) != null && W.children)) {
3670
+ var U;
3671
+ if ($ && ((U = $[0]) != null && U.children)) {
3668
3672
  const K = Ae($);
3669
3673
  b.value = K, A.value = K, P.value = K;
3670
3674
  } else
3671
3675
  b.value = $, A.value = $, P.value = $;
3672
- ie();
3676
+ se();
3673
3677
  }
3674
- function Nt($, W, K) {
3675
- return ($ && $.length ? re.value.filter((te, ae) => $.reduce((ee, Y) => ee && Y.filter(te), !0)) : re.value).slice(W, K);
3678
+ function Nt($, U, K) {
3679
+ return ($ && $.length ? ie.value.filter((te, ae) => $.reduce((ee, Y) => ee && Y.filter(te), !0)) : ie.value).slice(U, K);
3676
3680
  }
3677
3681
  function Bt($) {
3678
- ($ - 1) * r.value <= ue.value && ie();
3682
+ ($ - 1) * r.value <= re.value && se();
3679
3683
  }
3680
3684
  function Dt($) {
3681
- b.value.push(he($)), re.value = ye();
3685
+ b.value.push(he($)), ie.value = ye();
3682
3686
  }
3683
3687
  function Rt($ = 0) {
3684
3688
  if (!($ > -1))
3685
3689
  return !1;
3686
3690
  const K = R.value();
3687
- e.hierarchy ? O($, K, b) : b.value.splice($, 0, K), ie();
3691
+ e.hierarchy ? O($, K, b) : b.value.splice($, 0, K), se();
3688
3692
  }
3689
3693
  function Mt($ = 0) {
3690
3694
  if (!($ > -1 && e.hierarchy))
3691
3695
  return !1;
3692
3696
  const K = R.value(), X = b.value[$];
3693
- Pe(X), T($, K, b), ie();
3697
+ Pe(X), T($, K, b), se();
3694
3698
  }
3695
3699
  function $t($) {
3696
- const W = $ ? $ - 1 : 0;
3697
- b.value.splice(W, 1), ie();
3700
+ const U = $ ? $ - 1 : 0;
3701
+ b.value.splice(U, 1), se();
3698
3702
  }
3699
3703
  function At($) {
3700
- const W = b.value.findIndex((K) => K[_.value] === $);
3701
- W !== -1 && (b.value.splice(W, 1), ie());
3704
+ const U = b.value.findIndex((K) => K[_.value] === $);
3705
+ U !== -1 && (b.value.splice(U, 1), se());
3702
3706
  }
3703
3707
  function Pt($) {
3704
- const W = $ > -1 ? b.value[$] : null;
3705
- if (!(W && W.deletable !== !1))
3708
+ const U = $ > -1 ? b.value[$] : null;
3709
+ if (!(U && U.deletable !== !1))
3706
3710
  return !1;
3707
- b.value = u(W, b.value), ie();
3711
+ b.value = u(U, b.value), se();
3708
3712
  }
3709
3713
  function Lt() {
3710
3714
  const $ = i.size > 0 ? Array.from(i.values()) : [];
3711
3715
  return ne($, Array.from(k.values()));
3712
3716
  }
3713
3717
  function jt($) {
3714
- pe.value && (pe.value.size = $, ie());
3718
+ ce.value && (ce.value.size = $, se());
3715
3719
  }
3716
- function Gt($, W) {
3720
+ function Gt($, U) {
3717
3721
  const K = b.value[Number($) - 1];
3718
- K.editable !== !1 ? (K.name = W, ie()) : bt.show({
3722
+ K.editable !== !1 ? (K.name = U, se()) : bt.show({
3719
3723
  showCloseButton: !1,
3720
3724
  timeout: 3e3,
3721
3725
  animate: "fadeIn",
@@ -3734,7 +3738,7 @@ function wr(e, t, n, o, a) {
3734
3738
  addSorter: wt,
3735
3739
  changePageSizeTo: jt,
3736
3740
  collapse: Vt,
3737
- dataView: re,
3741
+ dataView: ie,
3738
3742
  editDataItem: Gt,
3739
3743
  expand: It,
3740
3744
  filters: m,
@@ -3745,7 +3749,7 @@ function wr(e, t, n, o, a) {
3745
3749
  load: Ot,
3746
3750
  navigatePageTo: Bt,
3747
3751
  summaries: J,
3748
- totalItems: ue,
3752
+ totalItems: re,
3749
3753
  insertNewDataItem: Rt,
3750
3754
  insertNewChildDataItem: Mt,
3751
3755
  removeAllFilter: kt,
@@ -3758,7 +3762,7 @@ function wr(e, t, n, o, a) {
3758
3762
  refresh: Lt,
3759
3763
  setSorters: Ct,
3760
3764
  sorters: x,
3761
- updateDataView: ie,
3765
+ updateDataView: se,
3762
3766
  unFold: Et,
3763
3767
  startIndex: Fe,
3764
3768
  endIndex: $e,
@@ -3864,12 +3868,12 @@ function kr(e, t, n, o, a, r) {
3864
3868
  var y, C;
3865
3869
  const s = w(e.rowOption), f = ((y = s.value) == null ? void 0 : y.height) || 28, g = ((C = s.value) == null ? void 0 : C.wrapContent) || !1, { idField: p } = o, { collapseField: d } = n, { updateRowPosition: l } = a, { createCellByColumn: i } = r;
3866
3870
  function I(F, V, c, b, D, E) {
3867
- var J;
3871
+ var J, re;
3868
3872
  const {
3869
3873
  __fv_data_grid_group_field__: h,
3870
3874
  __fv_data_grid_group_value__: O,
3871
3875
  __fv_data_index__: T
3872
- } = c, S = c.__fv_data_grid_group_layer__ || c.__fv_parents__ ? (J = c.__fv_parents__) == null ? void 0 : J.size : 0, u = typeof c.parent == "number" ? Number(c.parent) : -1, _ = c.__fv_data_grid_group_collapse__ || c[d.value], N = c.__fv_visible__ === void 0 ? !0 : c.__fv_visible__, R = c.__fv_checked__, A = c.__fv_indeterminate__, P = b && b[p.value] === c.parent, B = b && b.parent === c.parent, L = P && D && (D.collapse || !D.visible) || B && D && !D.visible, U = {
3876
+ } = c, S = c.__fv_data_grid_group_layer__ || c.__fv_parents__ ? (J = c.__fv_parents__) == null ? void 0 : J.size : 0, u = typeof c.parent == "number" ? Number(c.parent) : -1, _ = c.__fv_data_grid_group_collapse__ || c[d.value], N = c.__fv_visible__ === void 0 ? !0 : c.__fv_visible__, R = c.__fv_checked__, A = c.__fv_indeterminate__, P = b && b[p.value] === c.parent, B = b && b.parent === c.parent, L = P && D && (D.collapse || !D.visible) || B && D && !D.visible, W = {
3873
3877
  collapse: _,
3874
3878
  data: {},
3875
3879
  dataIndex: T,
@@ -3884,13 +3888,13 @@ function kr(e, t, n, o, a, r) {
3884
3888
  raw: c,
3885
3889
  checked: R,
3886
3890
  indeterminate: A,
3887
- setRef: (ue) => {
3888
- U.ref = ue;
3891
+ setRef: (ce) => {
3892
+ W.ref = ce;
3889
3893
  },
3890
3894
  visible: N && !L,
3891
- status: se.initial
3895
+ status: le.initial
3892
3896
  };
3893
- return b || (c.__fv_data_position__ = 0), g || (U.height = f, c.__fv_data_height__ = U.height, l(U, c)), U;
3897
+ return b || (c.__fv_data_position__ = 0), g || (W.height = f, c.__fv_data_height__ = W.height, l(W, c)), (re = s.value) != null && re.customRowStatus && (s.value.customRowStatus(W), c.__fv_collapse__ = W.collapse, c.__fv_visible__ = W.visible), W;
3894
3898
  }
3895
3899
  function k(F, V, c, b, D, E) {
3896
3900
  const h = I(Se.data, D, V, c, b, E);
@@ -3976,21 +3980,21 @@ function xr(e, t) {
3976
3980
  function k(c) {
3977
3981
  Object.values(c.data).filter((b) => b.mode === Z.editable && b.field !== "__commands__").forEach((b) => {
3978
3982
  b.mode = Z.editing;
3979
- }), c.status = se.editing, g = c;
3983
+ }), c.status = le.editing, g = c;
3980
3984
  }
3981
3985
  function m(c, b) {
3982
3986
  Object.values(c.data).filter((D) => D.mode === Z.editing).forEach((D) => {
3983
3987
  b ? D.accept() : D.cancel(), D.mode = Z.editable;
3984
- }), c.status = se.initial, g === c && (g = null);
3988
+ }), c.status = le.initial, g === c && (g = null);
3985
3989
  }
3986
3990
  function x(c) {
3987
3991
  o.value && a.value.editMode === "row" && g !== c && (g && m(g, !1), k(c));
3988
3992
  }
3989
3993
  function y(c) {
3990
- m(c, !0), c.status = se.initial;
3994
+ m(c, !0), c.status = le.initial;
3991
3995
  }
3992
3996
  function C(c) {
3993
- m(c, !1), c.status = se.initial;
3997
+ m(c, !1), c.status = le.initial;
3994
3998
  }
3995
3999
  function F(c, b, D) {
3996
4000
  const E = b.dataType, h = b.editor || {
@@ -4032,8 +4036,8 @@ function Or(e, t, n, o, a) {
4032
4036
  return t.getSelectionItems(i.value);
4033
4037
  }
4034
4038
  function k() {
4035
- const B = o.value.reduce((U, J) => (U.set(J.raw[r.value], J), U), /* @__PURE__ */ new Map());
4036
- return i.value.map((U) => B.get(U)).filter((U) => !!U);
4039
+ const B = o.value.reduce((W, J) => (W.set(J.raw[r.value], J), W), /* @__PURE__ */ new Map());
4040
+ return i.value.map((W) => B.get(W)).filter((W) => !!W);
4037
4041
  }
4038
4042
  M(() => f.value && !g.value);
4039
4043
  const m = M(() => f.value && g.value), x = M(() => !!e.hierarchy), y = M(() => {
@@ -4064,28 +4068,28 @@ function Or(e, t, n, o, a) {
4064
4068
  return B.raw[r.value] || "";
4065
4069
  }
4066
4070
  function E(B) {
4067
- return i.value.findIndex((U) => U === D(B));
4071
+ return i.value.findIndex((W) => W === D(B));
4068
4072
  }
4069
4073
  function h() {
4070
- k().forEach((U) => {
4071
- U.checked = !1;
4072
- }), t.getSelectionItems(i.value).forEach((U) => {
4073
- U.__fv_checked__ = !1;
4074
+ k().forEach((W) => {
4075
+ W.checked = !1;
4076
+ }), t.getSelectionItems(i.value).forEach((W) => {
4077
+ W.__fv_checked__ = !1;
4074
4078
  }), i.value = [];
4075
4079
  }
4076
4080
  function O(B) {
4077
4081
  const L = B.raw;
4078
4082
  L.__fv_checked__ = !0, L.__fv_indeterminate__ = !1;
4079
- const U = new Set(i.value);
4080
- U.add(L[r.value]), i.value = Array.from(U.values()), B.checked = !0, B.indeterminate = !1, s.value = B.raw[r.value];
4083
+ const W = new Set(i.value);
4084
+ W.add(L[r.value]), i.value = Array.from(W.values()), B.checked = !0, B.indeterminate = !1, s.value = B.raw[r.value];
4081
4085
  }
4082
4086
  function T(B) {
4083
4087
  const L = B.raw;
4084
- L.__fv_checked__ = !1, L.__fv_indeterminate__ = !1, i.value = i.value.filter((U) => U !== L[r.value]), B.checked = !1, B.indeterminate = !1, s.value = "";
4088
+ L.__fv_checked__ = !1, L.__fv_indeterminate__ = !1, i.value = i.value.filter((W) => W !== L[r.value]), B.checked = !1, B.indeterminate = !1, s.value = "";
4085
4089
  }
4086
4090
  function S(B) {
4087
4091
  const L = B.raw;
4088
- L.__fv_checked__ = !1, L.__fv_indeterminate__ = !0, i.value = i.value.filter((U) => U !== L[r.value]), B.checked = !1, B.indeterminate = !0;
4092
+ L.__fv_checked__ = !1, L.__fv_indeterminate__ = !0, i.value = i.value.filter((W) => W !== L[r.value]), B.checked = !1, B.indeterminate = !0;
4089
4093
  }
4090
4094
  function u(B) {
4091
4095
  b.value && h(), B.checked ? T(B) : O(B), V();
@@ -4094,7 +4098,7 @@ function Or(e, t, n, o, a) {
4094
4098
  B.raw[r.value] !== s.value && (h(), O(B), V());
4095
4099
  }
4096
4100
  function N(B) {
4097
- const L = o.value.find((U) => U.raw[r.value] === B);
4101
+ const L = o.value.find((W) => W.raw[r.value] === B);
4098
4102
  L && _(L);
4099
4103
  }
4100
4104
  function R() {
@@ -4173,7 +4177,7 @@ const Dr = /* @__PURE__ */ oe({
4173
4177
  const n = w(), o = w(!0), a = w(!1), r = w([]), s = 0, f = w(e.columns), g = Er(e), p = Sr(e), d = ht(e, g), l = Nr(e), i = wr(e, /* @__PURE__ */ new Map(), p, g, l), I = Or(e, i, g, r, t), k = et(e, n), m = w(), x = Ke("design-item-context"), y = ot(m, x), C = M(() => i.dataView.value.length), F = xr(e, g), V = Uo(), c = Tr(e, {}, V), b = kr(e, F, p, g, V, c), D = Vr(e, g, c, b), E = Ir(e, g, c, b), h = Fr(e, f, i, C, s, b, D, E), {
4174
4178
  getVisualData: O
4175
4179
  } = h;
4176
- r.value = O(0, C.value + s - 1), fe(() => {
4180
+ r.value = O(0, C.value + s - 1), pe(() => {
4177
4181
  m.value.componentInstance = y;
4178
4182
  }), t.expose(y.value);
4179
4183
  const T = M(() => {
@@ -4275,11 +4279,11 @@ const Dr = /* @__PURE__ */ oe({
4275
4279
  class: "content-message"
4276
4280
  }, [v("div", {
4277
4281
  class: "ower"
4278
- }, [v("p", null, [le("创建人")]), v("p", {
4282
+ }, [v("p", null, [ue("创建人")]), v("p", {
4279
4283
  class: "con"
4280
4284
  }, [r.name])]), v("div", {
4281
4285
  class: "date"
4282
- }, [v("p", null, [le("创建时间")]), v("p", {
4286
+ }, [v("p", null, [ue("创建时间")]), v("p", {
4283
4287
  class: "con"
4284
4288
  }, [r.date])])])])]))]);
4285
4289
  };
@@ -4441,7 +4445,7 @@ const Dr = /* @__PURE__ */ oe({
4441
4445
  amount: 84.13,
4442
4446
  avatar: "./assets/avatar7.png"
4443
4447
  }], o = M(() => e.data.length > 0 ? e.data : n), a = w(), r = Ke("design-item-context"), s = ot(a, r);
4444
- return fe(() => {
4448
+ return pe(() => {
4445
4449
  a.value.componentInstance = s;
4446
4450
  }), t.expose(s.value), () => {
4447
4451
  var f;
@@ -4469,11 +4473,11 @@ const Dr = /* @__PURE__ */ oe({
4469
4473
  class: "content-message"
4470
4474
  }, [v("div", {
4471
4475
  class: "ower"
4472
- }, [v("p", null, [le("负责人")]), v("p", {
4476
+ }, [v("p", null, [ue("负责人")]), v("p", {
4473
4477
  class: "con"
4474
4478
  }, [g.name])]), v("div", {
4475
4479
  class: "date"
4476
- }, [v("p", null, [le("预约时间")]), v("p", {
4480
+ }, [v("p", null, [ue("预约时间")]), v("p", {
4477
4481
  class: "con"
4478
4482
  }, [g.date])])])]), v("div", {
4479
4483
  class: "list-view-item-operate"