@farris/ui-vue 1.8.3 → 1.8.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 (40) hide show
  1. package/components/batch-editor/index.esm.js +7332 -7299
  2. package/components/batch-editor/index.umd.cjs +22 -22
  3. package/components/button/index.esm.js +7334 -7301
  4. package/components/button/index.umd.cjs +22 -22
  5. package/components/component/index.esm.js +880 -874
  6. package/components/component/index.umd.cjs +2 -2
  7. package/components/data-grid/index.esm.js +841 -835
  8. package/components/data-grid/index.umd.cjs +2 -2
  9. package/components/data-view/index.esm.js +14551 -14472
  10. package/components/data-view/index.umd.cjs +27 -27
  11. package/components/designer-canvas/index.esm.js +820 -814
  12. package/components/designer-canvas/index.umd.cjs +1 -1
  13. package/components/mapping-editor/index.esm.js +848 -842
  14. package/components/mapping-editor/index.umd.cjs +2 -2
  15. package/components/popover/index.esm.js +264 -243
  16. package/components/popover/index.umd.cjs +1 -1
  17. package/components/tree-grid/index.esm.js +315 -309
  18. package/components/tree-grid/index.umd.cjs +1 -1
  19. package/designer/data-grid/index.esm.js +8304 -8257
  20. package/designer/data-grid/index.umd.cjs +26 -26
  21. package/designer/farris-designer.all.esm.js +3235 -3223
  22. package/designer/farris-designer.all.umd.cjs +14 -14
  23. package/designer/radio-group/index.esm.js +80 -62
  24. package/designer/radio-group/index.umd.cjs +2 -2
  25. package/designer/tabs/index.esm.js +830 -824
  26. package/designer/tabs/index.umd.cjs +2 -2
  27. package/designer/tree-grid/index.esm.js +348 -342
  28. package/designer/tree-grid/index.umd.cjs +1 -1
  29. package/farris.all.esm.js +18917 -18820
  30. package/farris.all.umd.cjs +39 -39
  31. package/package.json +1 -1
  32. package/types/data-view/components/column-header/column-header.component.d.ts +2 -2
  33. package/types/data-view/composition/column/persist-column-widths.d.ts +15 -0
  34. package/types/data-view/composition/column/use-resize.d.ts +3 -2
  35. package/types/data-view/index.d.ts +1 -0
  36. package/types/popover/src/composition/measure-host.d.ts +10 -5
  37. package/types/popover/src/composition/types.d.ts +2 -2
  38. package/types/popover/src/composition/use-host.d.ts +1 -2
  39. package/types/radio-group/src/property-config/radio-group.property-config.d.ts +21 -0
  40. package/package.zip +0 -0
@@ -1,13 +1,13 @@
1
- import { getCustomClass as ul, withInstall as rl } from "../common/index.esm.js";
2
- import { createVNode as f, defineComponent as sl, ref as S, computed as w, onMounted as cl, nextTick as xe, onUnmounted as Ne, watch as _e, Fragment as dl, createTextVNode as fl } from "vue";
3
- import { useResizeObserver as vl } from "@vueuse/core";
4
- import { debounce as ml, isUndefined as V } from "lodash-es";
1
+ import { getCustomClass as sl, withInstall as cl } from "../common/index.esm.js";
2
+ import { createVNode as f, defineComponent as dl, ref as C, computed as b, onMounted as fl, nextTick as _e, onUnmounted as Me, watch as xe, Fragment as vl, createTextVNode as ml } from "vue";
3
+ import { useResizeObserver as yl } from "@vueuse/core";
4
+ import { debounce as hl, isUndefined as V } from "lodash-es";
5
5
  import { LocaleService as Y } from "../locale/index.esm.js";
6
- import { getHierarchyRow as yl, useIdentify as hl, useGroupData as gl, useFilter as pl, useHierarchy as Cl, useLoading as Sl, useDataView as wl, useSelection as bl, useSelectHierarchyItem as Il, usePagination as xl, useDataViewContainerStyle as _l, useCommandColumn as Fl, useSettingColumn as Bl, useColumn as Dl, useSort as Ol, useGroupColumn as Rl, useRow as Tl, useEdit as Vl, useVisualDataBound as Pl, useVisualDataCell as Ll, useVisualDataRow as kl, useVisualData as El, useCellPosition as Gl, useSidebar as Al, useVirtualScroll as Hl, useFitColumn as jl, useFilterHistory as Nl, useColumnFilter as Ml, useDragColumn as zl, getColumnHeader as Wl, getSidebar as Ul, getDisableMask as Yl, getHorizontalScrollbar as ql, getVerticalScrollbar as Kl, getEmpty as $l, getPagination as Xl, getSummary as Jl, ColumnSettingSolution as Ql, refreshScrollAfterDataSourceLoad as Zl, COMMAND_COLUMN_DATA_TYPE as Fe, SETTING_COLUMN_DATA_TYPE as Be } from "../data-view/index.esm.js";
7
- import { resolveField as ea } from "../common/index.esm.js/utils/resolve-field";
8
- import ta from "../input-group/index.esm.js";
6
+ import { getHierarchyRow as gl, useIdentify as pl, useGroupData as Cl, useFilter as Sl, useHierarchy as bl, useLoading as wl, useDataView as Il, useSelection as _l, useSelectHierarchyItem as xl, usePagination as Fl, useDataViewContainerStyle as Bl, useCommandColumn as Dl, useSettingColumn as Rl, useColumn as Ol, useSort as Tl, useGroupColumn as Vl, useRow as Pl, useEdit as Ll, useVisualDataBound as kl, useVisualDataCell as El, useVisualDataRow as Gl, useVisualData as Al, useCellPosition as Hl, useSidebar as jl, useVirtualScroll as Nl, useFitColumn as Ml, useFilterHistory as zl, useColumnFilter as Wl, useDragColumn as Ul, getColumnHeader as Yl, getSidebar as ql, getDisableMask as Kl, getHorizontalScrollbar as $l, getVerticalScrollbar as Xl, getEmpty as Jl, getPagination as Ql, getSummary as Zl, ColumnSettingSolution as ea, refreshScrollAfterDataSourceLoad as ta, COMMAND_COLUMN_DATA_TYPE as Fe, SETTING_COLUMN_DATA_TYPE as Be } from "../data-view/index.esm.js";
7
+ import { resolveField as la } from "../common/index.esm.js/utils/resolve-field";
8
+ import aa from "../input-group/index.esm.js";
9
9
  import ue from "../button/index.esm.js";
10
- const wa = {
10
+ const Ia = {
11
11
  /** 启用分页 */
12
12
  enable: { type: Boolean, default: !1 },
13
13
  /** 当前页码 */
@@ -30,7 +30,7 @@ const wa = {
30
30
  total: { type: Number, default: 0 },
31
31
  /** 禁用分页 */
32
32
  disabled: { type: Boolean, default: !1 }
33
- }, ba = {
33
+ }, _a = {
34
34
  /** 启用排序 */
35
35
  enable: { type: Boolean, default: !1 },
36
36
  /** 排序字段集合 */
@@ -39,7 +39,7 @@ const wa = {
39
39
  mode: { type: String, default: "client" },
40
40
  /** 多列排序 */
41
41
  multiSort: { type: Boolean, default: !1 }
42
- }, Ia = {
42
+ }, xa = {
43
43
  /** 自定义分组合计内容 */
44
44
  customGroupRow: { type: Function, default: () => {
45
45
  } },
@@ -63,7 +63,7 @@ const wa = {
63
63
  showSummary: { type: Boolean, default: !1 },
64
64
  /** 显示合计行位置; */
65
65
  summaryPosition: { type: String, default: "separate" }
66
- }, xa = {
66
+ }, Fa = {
67
67
  /** 启用筛选 */
68
68
  enable: { type: Boolean, default: !1 },
69
69
  /** DataGrid筛选风格 */
@@ -72,10 +72,10 @@ const wa = {
72
72
  mode: { type: String, default: "server" },
73
73
  /** 显示过滤条件工具条 */
74
74
  showSummary: { type: Boolean, default: !0 }
75
- }, _a = {
75
+ }, Ba = {
76
76
  /** 允许折行显示列标题 */
77
77
  wrapHeadings: { type: Boolean, default: !1 }
78
- }, Fa = {
78
+ }, Da = {
79
79
  /** 自定义行样式 */
80
80
  customRowStyle: { type: Function, default: () => {
81
81
  } },
@@ -90,7 +90,7 @@ const wa = {
90
90
  showHovering: { type: Boolean, default: !0 },
91
91
  /** 禁止数据折行 */
92
92
  wrapContent: { type: Boolean, default: !1 }
93
- }, Ba = {
93
+ }, Ra = {
94
94
  /** 显示合计信息 */
95
95
  enable: { type: Boolean, default: !1 },
96
96
  /** 合计行自定义样式,对启用合计行模板无效 */
@@ -102,7 +102,7 @@ const wa = {
102
102
  mode: { type: String, default: "client" },
103
103
  /** 合计行显示位置, top: 顶部 bottom: 底部, both: 顶部与底部同时显示 */
104
104
  position: { type: String, default: "bottom" }
105
- }, Da = {
105
+ }, Oa = {
106
106
  /** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
107
107
  fitColumns: { type: Boolean, default: !1 },
108
108
  /** 自动适配列宽度模式 */
@@ -114,17 +114,17 @@ const wa = {
114
114
  resizeColumn: { type: Boolean, default: !0 },
115
115
  /** 双击表头列自适应内容宽度 */
116
116
  resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
117
- }, Oa = {
117
+ }, Ta = {
118
118
  /** 编辑时选中文本 */
119
119
  selectOnEditing: { type: Boolean, default: !1 },
120
120
  /** 编辑模式; row:整行编辑,cell: 单元格编辑 */
121
121
  editMode: { type: String, default: "cell" }
122
- }, Ra = {
122
+ }, Va = {
123
123
  /** show loading */
124
124
  show: { type: Boolean, default: !1 },
125
125
  /** message on display when loading */
126
126
  message: { type: String, default: `${Y.getLocaleValue("datagrid.loadingMessage")}...` }
127
- }, la = {
127
+ }, na = {
128
128
  /**
129
129
  * 自定义样式
130
130
  */
@@ -397,37 +397,37 @@ const wa = {
397
397
  * 编辑单元格时默认获得焦点
398
398
  */
399
399
  focusOnEditingCell: { type: Boolean, default: !0 }
400
- }, aa = "enum", na = "boolean";
401
- function ia(l) {
400
+ }, ia = "enum", oa = "boolean";
401
+ function ua(l) {
402
402
  const { formatter: c } = l;
403
403
  return !c || typeof c == "function" ? null : c;
404
404
  }
405
- function oa(l, c) {
405
+ function ra(l, c) {
406
406
  const v = c.options || c, { data: h } = v;
407
407
  if (!h || !h.length)
408
408
  return "";
409
409
  const I = Object.prototype.hasOwnProperty.call(v, "valueField") && v.valueField || "value", F = Object.prototype.hasOwnProperty.call(v, "textField") && v.textField || "name";
410
410
  if (typeof l == "string" && l.includes(",")) {
411
- const G = l.split(","), L = h.reduce((m, _) => (m[_[I]] = _, m), {}), p = G.map((m) => {
412
- var _;
413
- return (_ = L[m]) == null ? void 0 : _[F];
411
+ const G = l.split(","), L = h.reduce((m, x) => (m[x[I]] = x, m), {}), p = G.map((m) => {
412
+ var x;
413
+ return (x = L[m]) == null ? void 0 : x[F];
414
414
  }).filter((m) => m != null);
415
415
  return p.length ? p.join(",") : "";
416
416
  }
417
417
  const P = h.find((G) => G[I] === l);
418
418
  return (P == null ? void 0 : P[F]) ?? (l == null ? "" : String(l));
419
419
  }
420
- function ua(l, c) {
420
+ function sa(l, c) {
421
421
  if (l == null)
422
422
  return "";
423
423
  const v = c.options || c, h = l ? v == null ? void 0 : v.trueText : v == null ? void 0 : v.falseText;
424
424
  return h == null ? "" : String(h);
425
425
  }
426
- function ra(l, c) {
427
- const v = ea(c, l.field), h = ia(l), I = h == null ? void 0 : h.type;
428
- return I === aa ? oa(v, h) : I === na || l.dataType === "boolean" ? ua(v, h || {}) : v == null ? "" : String(v);
426
+ function ca(l, c) {
427
+ const v = la(c, l.field), h = ua(l), I = h == null ? void 0 : h.type;
428
+ return I === ia ? ra(v, h) : I === oa || l.dataType === "boolean" ? sa(v, h || {}) : v == null ? "" : String(v);
429
429
  }
430
- function sa(l, c, v, h, I, F, P, G, L, p, m, _, J, s, k, Q, j, d, T) {
430
+ function da(l, c, v, h, I, F, P, G, L, p, m, x, J, s, k, Q, j, d, T) {
431
431
  const {
432
432
  calculateCellPositionInRow: re
433
433
  } = F, {
@@ -439,11 +439,11 @@ function sa(l, c, v, h, I, F, P, G, L, p, m, _, J, s, k, Q, j, d, T) {
439
439
  leftFixedGridDataStyle: se,
440
440
  rightFixedGridDataStyle: ce
441
441
  } = s, {
442
- renderDataRow: i
443
- } = yl(l, c, N, j, G, L, p, m, _, J, s, k, Q, d, T), de = [i];
442
+ renderDataRow: o
443
+ } = gl(l, c, N, j, G, L, p, m, x, J, s, k, Q, d, T), de = [o];
444
444
  function y(g, te) {
445
445
  const le = re(g);
446
- return j.value.filter((z) => z.visible !== !1).map((z, x) => de[z.type](z, le, te, x));
446
+ return j.value.filter((z) => z.visible !== !1).map((z, _) => de[z.type](z, le, te, _));
447
447
  }
448
448
  function M() {
449
449
  return f("div", {
@@ -480,435 +480,440 @@ function sa(l, c, v, h, I, F, P, G, L, p, m, _, J, s, k, Q, j, d, T) {
480
480
  renderDataArea: ve
481
481
  };
482
482
  }
483
- const ca = /* @__PURE__ */ sl({
483
+ const fa = /* @__PURE__ */ dl({
484
484
  name: "FTreeGrid",
485
- props: la,
485
+ props: na,
486
486
  emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "selectItem", "filterChanged", "unSelectAll", "selectAll", "sortChanged", "selectionUpdate", "beginEditCell", "endEditCell"],
487
487
  setup(l, c) {
488
- var He, je;
489
- const v = S(!1), h = S(!1), I = 0, F = S(((He = l.rowOption) == null ? void 0 : He.height) || 28);
488
+ var je, Ne;
489
+ const v = C(!1), h = C(!1), I = 0, F = C(((je = l.rowOption) == null ? void 0 : je.height) || 28);
490
490
  let P = [], G = [];
491
- const L = S(20), p = S(l.columns), m = hl(l), {
492
- idField: _
493
- } = m, J = S(), s = S(), k = S(), Q = S(), j = S(), d = S([]), T = S(!1), re = S(((je = l.rowOption) == null ? void 0 : je.wrapContent) || !1), N = gl(l, m), Z = pl(l, c), D = Cl(l), {
491
+ const L = C(20), p = C(l.columns), m = pl(l), {
492
+ idField: x
493
+ } = m, J = C(), s = C(), k = C(), Q = C(), j = C(), d = C([]), T = C(!1), re = C(((Ne = l.rowOption) == null ? void 0 : Ne.wrapContent) || !1), N = Cl(l, m), Z = Sl(l, c), D = bl(l), {
494
494
  collapseField: ee
495
495
  } = D, {
496
496
  showLoading: se,
497
497
  renderLoading: ce
498
- } = Sl(l, J), i = wl(l, /* @__PURE__ */ new Map(), Z, D, m), {
498
+ } = wl(l, J), o = Il(l, /* @__PURE__ */ new Map(), Z, D, m), {
499
499
  dataView: de
500
- } = i, y = bl(l, i, m, d, c), {
500
+ } = o, y = _l(l, o, m, d, c), {
501
501
  showSelection: M,
502
502
  selectedValues: fe
503
- } = y, A = Il(l, d, i, m, y, c), ve = w(() => l.disabled), g = w(() => l.virtualized ? Math.min(i.dataView.value.length, L.value) : i.dataView.value.length), te = xl(l, i), {
503
+ } = y, A = xl(l, d, o, m, y, c), ve = b(() => l.disabled), g = b(() => l.virtualized ? Math.min(o.dataView.value.length, L.value) : o.dataView.value.length), te = Fl(l, o), {
504
504
  shouldRenderPagination: le
505
505
  } = te, {
506
506
  containerStyleObject: z
507
- } = _l(l, d), x = S(""), b = S([]), Me = w(() => l.searchable || !1), O = S(0), De = w(() => b.value.length ? `${O.value + 1}/${b.value.length}` : ""), ze = w(() => Y.getRealPropertyValue(l.searchPlaceholder, "", "datagrid.search.placeholder")), We = w(() => Y.getLocaleValue("datagrid.search.search")), Ue = w(() => Y.getLocaleValue("datagrid.search.prev")), Ye = w(() => Y.getLocaleValue("datagrid.search.next")), qe = w(() => Y.getLocaleValue("datagrid.search.clear")), Ke = Fl(l), {
508
- applyCommands: Oe
509
- } = Ke;
510
- Oe(p);
507
+ } = Bl(l, d), _ = C(""), w = C([]), ze = b(() => l.searchable || !1), R = C(0), De = b(() => w.value.length ? `${R.value + 1}/${w.value.length}` : ""), We = b(() => Y.getRealPropertyValue(l.searchPlaceholder, "", "datagrid.search.placeholder")), Ue = b(() => Y.getLocaleValue("datagrid.search.search")), Ye = b(() => Y.getLocaleValue("datagrid.search.prev")), qe = b(() => Y.getLocaleValue("datagrid.search.next")), Ke = b(() => Y.getLocaleValue("datagrid.search.clear")), $e = Dl(l), {
508
+ applyCommands: Re
509
+ } = $e;
510
+ Re(p);
511
511
  const {
512
512
  applyColumnSetting: me,
513
- removeColumnSetting: $e
514
- } = Bl(l);
513
+ removeColumnSetting: Xe
514
+ } = Rl(l);
515
515
  l.showSetting && me(p);
516
- const q = Dl(l, c), ye = Ol(l), {
517
- applyColumnSorter: Re,
516
+ const q = Ol(l, c), ye = Tl(l), {
517
+ applyColumnSorter: Oe,
518
518
  columnContext: ae,
519
- updateColumnRenderContext: Xe
519
+ updateColumnRenderContext: Je
520
520
  } = q;
521
- Re(i, ye);
522
- const he = Rl(l, ae), W = Tl(l, c, y, m), H = Vl(l, c, m, W, d), ge = Pl(l, i, F), Je = Ll(l, H, ge), Qe = kl(l, i, H, D, m, ge, Je, F), pe = El(l, p, i, g, I, Qe), {
521
+ Oe(o, ye);
522
+ const he = Vl(l, ae), W = Pl(l, c, y, m), H = Ll(l, c, m, W, d), ge = kl(l, o, F), Qe = El(l, H, ge), Ze = Gl(l, o, H, D, m, ge, Qe, F), pe = Al(l, p, o, g, I, Ze), {
523
523
  getVisualData: ne
524
- } = pe, Ze = Gl(l, ae, F, v), Ce = Al(l, y), {
525
- sidebarWidth: et
526
- } = Ce, C = Hl(l, i, d, ae, pe, g, I, et, F, v), {
527
- onWheel: tt,
524
+ } = pe, et = Hl(l, ae, F, v), Ce = jl(l, y), {
525
+ sidebarWidth: tt
526
+ } = Ce, S = Nl(l, o, d, ae, pe, g, I, tt, F, v), {
527
+ onWheel: lt,
528
528
  dataGridWidth: Te,
529
529
  viewPortHeight: Ve,
530
530
  viewPortWidth: ie,
531
531
  resetScroll: Se,
532
- updateVisibleRowsOnLatestVisibleScope: lt
533
- } = C, Pe = jl(l, ae, s, ie, he), {
532
+ updateVisibleRowsOnLatestVisibleScope: at
533
+ } = S, Pe = Ml(l, ae, s, ie, he), {
534
534
  calculateColumnsSize: oe
535
- } = Pe, Le = Nl(), at = Ml(s, j, i, Le, C), nt = zl(l, c, q, i, he, N, C), it = w(() => {
535
+ } = Pe, Le = zl(), nt = Wl(s, j, o, Le, S), it = Ul(l, c, q, o, he, N, S), ot = b(() => {
536
536
  const e = {
537
537
  "fv-grid": !0,
538
538
  "fv-grid-bordered": l.showBorder,
539
539
  "fv-grid-horizontal-bordered": l.showHorizontalLines,
540
540
  "fv-datagrid-strip": l.showStripe
541
541
  };
542
- return ul(e, l.customClass);
543
- }), ot = w(() => ({
542
+ return sl(e, l.customClass);
543
+ }), ut = b(() => ({
544
544
  "fv-grid-content": !0,
545
545
  "fv-grid-content-hover": T.value,
546
546
  "fv-grid-wrap-content": re.value,
547
- "fv-grid-scrollbar-visible": C.shouldShowVirticalScrollbar.value && T.value
547
+ "fv-grid-scrollbar-visible": S.shouldShowVirticalScrollbar.value && T.value
548
548
  })), {
549
- renderDataArea: ut
550
- } = sa(l, c, k, Q, j, Ze, q, i, H, D, W, y, A, C, pe, ge, d, F, v), {
551
- renderGridHeader: rt,
552
- renderGridColumnResizeOverlay: st,
553
- shouldShowHeader: ct
554
- } = Wl(l, c, s, Q, j, q, i, nt, at, Z, Le, Pe, he, y, Ce, ye, C, ie, d, h), {
555
- renderDataGridSidebar: dt
556
- } = Ul(l, W, y, Ce, C), {
557
- renderDisableMask: ft
558
- } = Yl(), {
559
- renderHorizontalScrollbar: vt
560
- } = ql(l, s, C), {
561
- renderVerticalScrollbar: mt
562
- } = Kl(l, s, C);
549
+ renderDataArea: rt
550
+ } = da(l, c, k, Q, j, et, q, o, H, D, W, y, A, S, pe, ge, d, F, v), ke = C(null);
551
+ function st(e, t) {
552
+ var a, n;
553
+ l.enableColumnSettingSolution && ((n = (a = ke.value) == null ? void 0 : a.persistColumnWidths) == null || n.call(a, t));
554
+ }
555
+ const {
556
+ renderGridHeader: ct,
557
+ renderGridColumnResizeOverlay: dt,
558
+ shouldShowHeader: ft
559
+ } = Yl(l, c, s, Q, j, q, o, it, nt, Z, Le, Pe, he, y, Ce, ye, S, ie, d, h, st), {
560
+ renderDataGridSidebar: vt
561
+ } = ql(l, W, y, Ce, S), {
562
+ renderDisableMask: mt
563
+ } = Kl(), {
564
+ renderHorizontalScrollbar: yt
565
+ } = $l(l, s, S), {
566
+ renderVerticalScrollbar: ht
567
+ } = Xl(l, s, S);
563
568
  let U = null;
564
- function yt() {
569
+ function gt() {
565
570
  var e, t, a;
566
571
  if (s.value && s.value.clientHeight > 0 && ((e = s.value) == null ? void 0 : e.clientWidth) > 0) {
567
- const u = Math.ceil(s.value.clientHeight / F.value);
568
- u > L.value && (L.value = u, lt()), Ve.value = ((t = k.value) == null ? void 0 : t.clientHeight) || 0, Te.value = ((a = s.value) == null ? void 0 : a.clientWidth) || 0, k.value && (ie.value = k.value.clientWidth);
572
+ const n = Math.ceil(s.value.clientHeight / F.value);
573
+ n > L.value && (L.value = n, at()), Ve.value = ((t = k.value) == null ? void 0 : t.clientHeight) || 0, Te.value = ((a = s.value) == null ? void 0 : a.clientWidth) || 0, k.value && (ie.value = k.value.clientWidth);
569
574
  }
570
575
  s.value && (s.value.clientHeight > 0 || s.value.clientWidth > 0) && oe();
571
576
  }
572
- function ht() {
577
+ function pt() {
573
578
  U !== null && cancelAnimationFrame(U), U = requestAnimationFrame(() => {
574
- U = null, yt();
579
+ U = null, gt();
575
580
  });
576
581
  }
577
- cl(() => {
578
- s.value && (L.value = Math.max(Math.ceil(s.value.clientHeight / F.value), L.value), d.value = ne(0, g.value + I - 1), vl(s.value, ht), oe(), xe(() => {
582
+ fl(() => {
583
+ s.value && (L.value = Math.max(Math.ceil(s.value.clientHeight / F.value), L.value), d.value = ne(0, g.value + I - 1), yl(s.value, pt), oe(), _e(() => {
579
584
  s.value && (Te.value = s.value.clientWidth), k.value && (ie.value = k.value.clientWidth, Ve.value = k.value.clientHeight);
580
585
  })), se.value && ce();
581
- }), Ne(() => {
586
+ }), Me(() => {
582
587
  U !== null && cancelAnimationFrame(U);
583
588
  });
584
- function gt(e) {
585
- i.collapseTo(e), i.reOrderVisibleIndex(), Se();
589
+ function Ct(e) {
590
+ o.collapseTo(e), o.reOrderVisibleIndex(), Se();
586
591
  }
587
- function pt(e) {
588
- i.expandTo(e), i.reOrderVisibleIndex(), Se();
592
+ function St(e) {
593
+ o.expandTo(e), o.reOrderVisibleIndex(), Se();
589
594
  }
590
- function we() {
595
+ function be() {
591
596
  const e = y.getSelectionRow();
592
597
  return e ? e.dataIndex - 1 : -1;
593
598
  }
594
- function Ct(e) {
595
- const t = e !== void 0 ? e : we(), a = i.insertNewDataItem(t === -1 ? 0 : t);
599
+ function bt(e) {
600
+ const t = e !== void 0 ? e : be(), a = o.insertNewDataItem(t === -1 ? 0 : t);
596
601
  return d.value = ne(0, g.value + I - 1), a;
597
602
  }
598
- function St() {
599
- const e = we();
600
- i.insertNewChildDataItem(e), d.value = ne(0, g.value + I - 1);
603
+ function wt() {
604
+ const e = be();
605
+ o.insertNewChildDataItem(e), d.value = ne(0, g.value + I - 1);
601
606
  }
602
- function wt(e, t) {
603
- const a = d.value.find((o) => o.raw[_.value] === t), u = a ? a.dataIndex - 1 : -1;
604
- i.insertNewChildDataItems(e, u);
607
+ function It(e, t) {
608
+ const a = d.value.find((u) => u.raw[x.value] === t), n = a ? a.dataIndex - 1 : -1;
609
+ o.insertNewChildDataItems(e, n);
605
610
  }
606
- function bt() {
607
- const e = we(), t = A.getNextSelectableHierarchyItemId(e);
608
- i.removeHierarchyDataItem(e), d.value = ne(0, g.value + I - 1), t && A.selectItemById(t);
611
+ function _t() {
612
+ const e = be(), t = A.getNextSelectableHierarchyItemId(e);
613
+ o.removeHierarchyDataItem(e), d.value = ne(0, g.value + I - 1), t && A.selectItemById(t);
609
614
  }
610
- function It(e) {
615
+ function xt(e) {
611
616
  H.onEditingRow(e);
612
617
  }
613
- function xt(e) {
618
+ function Ft(e) {
614
619
  H.acceptEditingRow(e);
615
620
  }
616
- function _t(e) {
621
+ function Bt(e) {
617
622
  H.cancelEditingRow(e);
618
623
  }
619
624
  function K(e) {
620
- e && (p.value = e, Oe(p), l.showSetting && me(p), Xe(p.value), Re(i, ye), oe());
625
+ e && (p.value = e, Re(p), l.showSetting && me(p), Je(p.value), Oe(o, ye), oe());
621
626
  }
622
- _e(() => l.columns, (e) => {
627
+ xe(() => l.columns, (e) => {
623
628
  if (l.showSetting && l.enableColumnSettingSolution) {
624
629
  K(p.value);
625
630
  return;
626
631
  }
627
632
  K(e);
628
633
  });
629
- function Ft(e, t) {
634
+ function Dt(e, t) {
630
635
  if (e) {
631
- const a = !!(t != null && t.keepScrollTop || t != null && t.keepScrollPosition), u = a ? C.offsetY.value : 0;
632
- i.load(e), i.reOrderVisibleIndex(), Zl({
636
+ const a = !!(t != null && t.keepScrollTop || t != null && t.keepScrollPosition), n = a ? S.offsetY.value : 0;
637
+ o.load(e), o.reOrderVisibleIndex(), ta({
633
638
  keepScroll: a,
634
- savedOffsetY: u,
639
+ savedOffsetY: n,
635
640
  resetScroll: Se,
636
- scrollTo: C.scrollTo
641
+ scrollTo: S.scrollTo
637
642
  });
638
643
  }
639
644
  }
640
- function be(e) {
645
+ function we(e) {
641
646
  W.activeRowById(e);
642
647
  }
643
- function Bt(e, t = {
648
+ function Rt(e, t = {
644
649
  isCurrent: !0
645
650
  }) {
646
- t != null && t.isCurrent && be(e), A.selectItemById(e);
651
+ t != null && t.isCurrent && we(e), A.selectItemById(e);
647
652
  }
648
- function Dt(e) {
653
+ function Ot(e) {
649
654
  const t = d.value.find((a) => a.raw[m.idField.value] === e);
650
655
  t && W.clickRowItem(t);
651
656
  }
652
- function Ot(e) {
657
+ function Tt(e) {
653
658
  A.selectItemByIds(e);
654
659
  }
655
- function Rt() {
660
+ function Vt() {
656
661
  return y.getSelectedItems();
657
662
  }
658
- function ke() {
663
+ function Ee() {
659
664
  y.clearSelection();
660
665
  }
661
- function Tt() {
666
+ function Pt() {
662
667
  y.emptyCurrentRowId();
663
668
  }
664
- const Vt = w(() => !d.value || !d.value.length), {
665
- renderEmpty: Pt
666
- } = $l(l, c);
667
- function Lt() {
669
+ const Lt = b(() => !d.value || !d.value.length), {
670
+ renderEmpty: kt
671
+ } = Jl(l, c);
672
+ function Et() {
668
673
  return y.getSelectionRow();
669
674
  }
670
- function kt(e, t = {
675
+ function Gt(e, t = {
671
676
  clearCurrent: !0
672
677
  }) {
673
- t != null && t.clearCurrent && be(""), A.unSelectItemByIds(e);
678
+ t != null && t.clearCurrent && we(""), A.unSelectItemByIds(e);
674
679
  }
675
- function Et() {
680
+ function At() {
676
681
  return y.currentSelectedDataId.value;
677
682
  }
678
- function Gt(e, t, a) {
679
- const u = de.value.find((o) => o[_.value] === e);
680
- if (u) {
681
- if (Object.keys(u).forEach((r) => {
682
- Object.prototype.hasOwnProperty.call(t, r) && (u[r] = t[r]);
683
+ function Ht(e, t, a) {
684
+ const n = de.value.find((u) => u[x.value] === e);
685
+ if (n) {
686
+ if (Object.keys(n).forEach((r) => {
687
+ Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
683
688
  }), a) {
684
689
  const {
685
690
  collapseField: r,
686
691
  disabledField: B,
687
692
  checkedField: E,
688
- visibleField: R,
693
+ visibleField: O,
689
694
  hasChildren: X
690
695
  } = a;
691
- r && !V(t[r]) && (u.__fv_collapse__ = t[r]), E && !V(t[E]) && (u.__fv_checked__ = t[E]), B && !V(t[B]) && (u.__fv_disabled__ = t[B]), R && !V(t[R]) && (u.__fv_visible__ = t[R]), V(X) || (u.__fv_hasChildren__ = X);
696
+ r && !V(t[r]) && (n.__fv_collapse__ = t[r]), E && !V(t[E]) && (n.__fv_checked__ = t[E]), B && !V(t[B]) && (n.__fv_disabled__ = t[B]), O && !V(t[O]) && (n.__fv_visible__ = t[O]), V(X) || (n.__fv_hasChildren__ = X);
692
697
  }
693
- const o = d.value.find((r) => r.raw[_.value] === e), n = d.value.findIndex((r) => r.raw[_.value] === e);
694
- if (o) {
695
- if (o.raw = u, Object.keys(o.data).forEach((r) => {
696
- o.data[r].updateData(u);
698
+ const u = d.value.find((r) => r.raw[x.value] === e), i = d.value.findIndex((r) => r.raw[x.value] === e);
699
+ if (u) {
700
+ if (u.raw = n, Object.keys(u.data).forEach((r) => {
701
+ u.data[r].updateData(n);
697
702
  }), a) {
698
703
  const {
699
704
  collapseField: r,
700
705
  disabledField: B,
701
706
  checkedField: E,
702
- visibleField: R,
707
+ visibleField: O,
703
708
  hasChildren: X
704
709
  } = a;
705
- r && !V(t[r]) && (o.collapse = t[r]), E && !V(t[E]) && (o.checked = t[E]), B && !V(t[B]) && (o.disabled = t[B]), R && !V(t[R]) && (o.visible = t[R]), V(X) || (o.raw.__fv_hasChildren__ = X);
710
+ r && !V(t[r]) && (u.collapse = t[r]), E && !V(t[E]) && (u.checked = t[E]), B && !V(t[B]) && (u.disabled = t[B]), O && !V(t[O]) && (u.visible = t[O]), V(X) || (u.raw.__fv_hasChildren__ = X);
706
711
  }
707
- d.value = [...d.value.slice(0, n), o, ...d.value.slice(n + 1)], i.updateSummary();
712
+ d.value = [...d.value.slice(0, i), u, ...d.value.slice(i + 1)], o.updateSummary();
708
713
  }
709
714
  }
710
715
  }
711
- function At(e) {
712
- return Object.prototype.hasOwnProperty.call(e, "raw") ? i.hasRealChildren(e.raw) : i.hasRealChildren(e);
716
+ function jt(e) {
717
+ return Object.prototype.hasOwnProperty.call(e, "raw") ? o.hasRealChildren(e.raw) : o.hasRealChildren(e);
713
718
  }
714
- function Ht(e) {
715
- const t = i.dataView.value.find((a) => a[_.value] === e);
719
+ function Nt(e) {
720
+ const t = o.dataView.value.find((a) => a[x.value] === e);
716
721
  return t ? t[ee.value] : "";
717
722
  }
718
- function jt() {
723
+ function Mt() {
719
724
  return ee.value;
720
725
  }
721
- _e(() => l.showSetting, (e, t) => {
722
- e !== t && (e ? me(p) : $e(p), K(p.value));
726
+ xe(() => l.showSetting, (e, t) => {
727
+ e !== t && (e ? me(p) : Xe(p), K(p.value));
723
728
  });
724
- function Nt(e) {
729
+ function zt(e) {
725
730
  return d.value.filter((t) => e.includes(t.raw[l.idField]));
726
731
  }
727
- function Ee(e) {
728
- const t = m.idField.value, a = d.value.find((u) => u.raw[t] === e);
732
+ function Ge(e) {
733
+ const t = m.idField.value, a = d.value.find((n) => n.raw[t] === e);
729
734
  a && W.changeRow(a);
730
735
  }
731
- function Mt() {
732
- y.keepSelectingOnPaging.value || ke(), i.updateVisibleDataSummary(d.value);
736
+ function Wt() {
737
+ y.keepSelectingOnPaging.value || Ee(), o.updateVisibleDataSummary(d.value);
733
738
  }
734
- function zt() {
739
+ function Ut() {
735
740
  H.endEditCell();
736
741
  }
737
- function Wt(e) {
742
+ function Yt(e) {
738
743
  y.updateSelectedValues(e);
739
744
  }
740
- function Ut(e) {
745
+ function qt(e) {
741
746
  y.removeSelectedValues(e);
742
747
  }
743
- const Yt = 100;
744
- function qt(e, t) {
748
+ const Kt = 100;
749
+ function $t(e, t) {
745
750
  const a = t[e].__fv_layer__ || 0;
746
- let u = e + 1;
747
- for (; u < t.length && (t[u].__fv_layer__ || 0) > a; )
748
- u++;
749
- return u - 1;
751
+ let n = e + 1;
752
+ for (; n < t.length && (t[n].__fv_layer__ || 0) > a; )
753
+ n++;
754
+ return n - 1;
750
755
  }
751
- function Kt(e) {
752
- const t = i.dataView.value, a = D.collapseField.value, u = e.__fv_index__, o = e.__fv_layer__ || 0;
753
- if (typeof u != "number" || e.__fv_visible__ === !1 || e[a])
756
+ function Xt(e) {
757
+ const t = o.dataView.value, a = D.collapseField.value, n = e.__fv_index__, u = e.__fv_layer__ || 0;
758
+ if (typeof n != "number" || e.__fv_visible__ === !1 || e[a])
754
759
  return;
755
- let n = u + 1;
756
- for (; n < t.length; ) {
757
- const r = t[n];
758
- if ((r.__fv_layer__ || 0) <= o)
760
+ let i = n + 1;
761
+ for (; i < t.length; ) {
762
+ const r = t[i];
763
+ if ((r.__fv_layer__ || 0) <= u)
759
764
  break;
760
765
  if (r.__fv_visible__ = !0, r[a]) {
761
- n = qt(n, t) + 1;
766
+ i = $t(i, t) + 1;
762
767
  continue;
763
768
  }
764
- n++;
769
+ i++;
765
770
  }
766
771
  }
767
- function $t(e) {
772
+ function Jt(e) {
768
773
  let t = e;
769
774
  const a = [];
770
- let u = 0;
771
- for (; t && t[D.parentIdField.value] && u < Yt; ) {
772
- u++;
773
- const o = i.rawView.value.find((n) => n[m.idField.value] === t[D.parentIdField.value]);
774
- if (o)
775
- o[D.collapseField.value] && a.push(o), t = o;
775
+ let n = 0;
776
+ for (; t && t[D.parentIdField.value] && n < Kt; ) {
777
+ n++;
778
+ const u = o.rawView.value.find((i) => i[m.idField.value] === t[D.parentIdField.value]);
779
+ if (u)
780
+ u[D.collapseField.value] && a.push(u), t = u;
776
781
  else
777
782
  break;
778
783
  }
779
- a.reverse().forEach((o) => {
780
- o[D.collapseField.value] = !1, i.toggleChildrenVisibiltyByCollapseStatus(o), Kt(o);
784
+ a.reverse().forEach((u) => {
785
+ u[D.collapseField.value] = !1, o.toggleChildrenVisibiltyByCollapseStatus(u), Xt(u);
781
786
  });
782
787
  }
783
- function Xt(e, t) {
788
+ function Qt(e, t) {
784
789
  if (e.length !== t.length)
785
790
  return !1;
786
- const a = e.map((o) => o[m.idField.value]).sort(), u = t.map((o) => o[m.idField.value]).sort();
787
- return a.every((o, n) => o === u[n]);
791
+ const a = e.map((u) => u[m.idField.value]).sort(), n = t.map((u) => u[m.idField.value]).sort();
792
+ return a.every((u, i) => u === n[i]);
788
793
  }
789
794
  function Ie() {
790
- const e = b.value[O.value];
791
- e && ($t(e), xe(() => {
792
- i.reOrderVisibleIndex();
795
+ const e = w.value[R.value];
796
+ e && (Jt(e), _e(() => {
797
+ o.reOrderVisibleIndex();
793
798
  const t = e[m.idField.value], a = e.__fv_visible_index__;
794
- a !== void 0 && a !== "" && a >= 0 ? (C.scrollToRowByIndex(a), xe(() => {
795
- Ee(t);
799
+ a !== void 0 && a !== "" && a >= 0 ? (S.scrollToRowByIndex(a), _e(() => {
800
+ Ge(t);
796
801
  })) : console.warn("搜索结果的节点不在当前可见范围内,无法定位", t);
797
802
  }));
798
803
  }
799
- function Ge() {
800
- !x.value.trim() || !b.value.length || (O.value = (O.value + 1) % b.value.length, Ie());
804
+ function Ae() {
805
+ !_.value.trim() || !w.value.length || (R.value = (R.value + 1) % w.value.length, Ie());
801
806
  }
802
- function Jt() {
803
- if (!x.value.trim()) {
804
- b.value = [], O.value = 0;
807
+ function Zt() {
808
+ if (!_.value.trim()) {
809
+ w.value = [], R.value = 0;
805
810
  return;
806
811
  }
807
- const e = [], t = x.value.toLowerCase().trim();
808
- i.rawView.value.forEach((u) => {
809
- let o = !1;
810
- l.customSearch ? o = l.customSearch(t, u, l.columns) : l.columns.forEach((n) => {
811
- if (!o && n.field) {
812
- const r = ra(n, u);
813
- r && r.toLowerCase().includes(t) && (o = !0);
812
+ const e = [], t = _.value.toLowerCase().trim();
813
+ o.rawView.value.forEach((n) => {
814
+ let u = !1;
815
+ l.customSearch ? u = l.customSearch(t, n, l.columns) : l.columns.forEach((i) => {
816
+ if (!u && i.field) {
817
+ const r = ca(i, n);
818
+ r && r.toLowerCase().includes(t) && (u = !0);
814
819
  }
815
- }), o && e.push(u);
820
+ }), u && e.push(n);
816
821
  });
817
- const a = !Xt(e, b.value);
818
- e.length > 0 ? a ? (b.value = e, O.value = 0, Ie()) : Ge() : (b.value = [], O.value = 0);
822
+ const a = !Qt(e, w.value);
823
+ e.length > 0 ? a ? (w.value = e, R.value = 0, Ie()) : Ae() : (w.value = [], R.value = 0);
819
824
  }
820
- function Qt() {
821
- if (!x.value.trim() || !b.value.length)
825
+ function el() {
826
+ if (!_.value.trim() || !w.value.length)
822
827
  return;
823
- const e = b.value.length;
824
- O.value = (O.value - 1 + e) % e, Ie();
828
+ const e = w.value.length;
829
+ R.value = (R.value - 1 + e) % e, Ie();
825
830
  }
826
- const $ = ml(Jt, 300);
827
- function Ae() {
828
- $.cancel(), x.value = "", b.value = [], O.value = 0;
831
+ const $ = hl(Zt, 300);
832
+ function He() {
833
+ $.cancel(), _.value = "", w.value = [], R.value = 0;
829
834
  }
830
- _e(x, (e) => {
831
- e.trim() || ($.cancel(), b.value = [], O.value = 0);
832
- }), Ne(() => {
835
+ xe(_, (e) => {
836
+ e.trim() || ($.cancel(), w.value = [], R.value = 0);
837
+ }), Me(() => {
833
838
  $.cancel();
834
839
  });
835
- function Zt(e) {
840
+ function tl(e) {
836
841
  if (e.key === "Enter") {
837
- if (!x.value.trim())
842
+ if (!_.value.trim())
838
843
  return;
839
844
  $();
840
845
  }
841
846
  }
842
- function el() {
843
- x.value.trim() && $();
847
+ function ll() {
848
+ _.value.trim() && $();
844
849
  }
845
850
  c.expose({
846
- activeRowById: be,
847
- addNewDataItem: Ct,
848
- addNewChildDataItem: St,
849
- addChildrenToNode: wt,
850
- collapseTo: gt,
851
- expandTo: pt,
852
- removeDataItem: bt,
853
- editDataItem: It,
854
- acceptDataItem: xt,
855
- cancelDataItem: _t,
851
+ activeRowById: we,
852
+ addNewDataItem: bt,
853
+ addNewChildDataItem: wt,
854
+ addChildrenToNode: It,
855
+ collapseTo: Ct,
856
+ expandTo: St,
857
+ removeDataItem: _t,
858
+ editDataItem: xt,
859
+ acceptDataItem: Ft,
860
+ cancelDataItem: Bt,
856
861
  updateColumns: K,
857
- updateDataSource: Ft,
858
- selectItemById: Bt,
859
- selectItemByIds: Ot,
860
- getSelectedItems: Rt,
861
- clearSelection: ke,
862
- getSelectionRow: Lt,
863
- clickRowItemById: Dt,
864
- unSelectItemByIds: kt,
865
- getCurrentRowId: Et,
866
- reassignRowData: Gt,
867
- hasChildren: At,
868
- getCollapseField: jt,
869
- getCollapseStatusById: Ht,
870
- getVisibleDataByIds: Nt,
871
- selectRowById: Ee,
872
- updateDerivedData: Mt,
873
- emptyCurrentRowId: Tt,
862
+ updateDataSource: Dt,
863
+ selectItemById: Rt,
864
+ selectItemByIds: Tt,
865
+ getSelectedItems: Vt,
866
+ clearSelection: Ee,
867
+ getSelectionRow: Et,
868
+ clickRowItemById: Ot,
869
+ unSelectItemByIds: Gt,
870
+ getCurrentRowId: At,
871
+ reassignRowData: Ht,
872
+ hasChildren: jt,
873
+ getCollapseField: Mt,
874
+ getCollapseStatusById: Nt,
875
+ getVisibleDataByIds: zt,
876
+ selectRowById: Ge,
877
+ updateDerivedData: Wt,
878
+ emptyCurrentRowId: Pt,
874
879
  calculateColumnsSize: oe,
875
- endEditCell: zt,
876
- updateSelectedValues: Wt,
877
- removeSelectedValues: Ut
880
+ endEditCell: Ut,
881
+ updateSelectedValues: Yt,
882
+ removeSelectedValues: qt
878
883
  });
879
- const tl = w(() => {
884
+ const al = b(() => {
880
885
  const e = {};
881
- return C.shouldShowHorizontalScrollbar.value && T.value && (e.paddingBottom = "10px"), C.shouldShowVirticalScrollbar.value && T.value, e;
882
- }), ll = w(() => ({
886
+ return S.shouldShowHorizontalScrollbar.value && T.value && (e.paddingBottom = "10px"), S.shouldShowVirticalScrollbar.value && T.value, e;
887
+ }), nl = b(() => ({
883
888
  ...z.value,
884
889
  borderRadius: "5px"
885
890
  })), {
886
- renderDataGridPagination: da
887
- } = Xl(l, c, i, C, te, y), al = w(() => ({
891
+ renderDataGridPagination: va
892
+ } = Ql(l, c, o, S, te, y), il = b(() => ({
888
893
  "d-flex": !0,
889
894
  "justify-content-between": le.value && M.value,
890
895
  "justify-content-end": le.value && !M.value,
891
896
  "position-relative": !0
892
- })), nl = w(() => ({
897
+ })), ol = b(() => ({
893
898
  "d-flex": !0,
894
899
  "align-items-center": !0
895
900
  }));
896
- function il(e) {
897
- const t = e.map((n) => n.id), a = [...p.value, ...P, ...G];
898
- a.filter((n) => n.dataType !== Fe && n.dataType !== Be).forEach((n) => {
899
- const r = e.find((B) => B.id === n.id);
900
- r && (n.width = r.actualWidth || n.width || 120, r.actualWidth !== void 0 && (n.actualWidth = r.actualWidth), n.title = r.title, n.halign = r.halign, n.align = r.align, n.fixed = r.fixed);
901
- }), G = a.filter((n) => n.dataType === Fe || n.dataType === Be);
902
- const u = a.filter((n) => n.dataType !== Fe && n.dataType !== Be), o = u.filter((n) => t.includes(n.id));
903
- P = u.filter((n) => !t.includes(n.id)), o.sort((n, r) => {
904
- const B = e.findIndex((R) => R.id === n.id), E = e.findIndex((R) => R.id === r.id);
901
+ function ul(e) {
902
+ const t = e.map((i) => i.id), a = [...p.value, ...P, ...G];
903
+ a.filter((i) => i.dataType !== Fe && i.dataType !== Be).forEach((i) => {
904
+ const r = e.find((B) => B.id === i.id);
905
+ r && (i.width = r.actualWidth || i.width || 120, r.actualWidth !== void 0 && (i.actualWidth = r.actualWidth), i.title = r.title, i.halign = r.halign, i.align = r.align, i.fixed = r.fixed);
906
+ }), G = a.filter((i) => i.dataType === Fe || i.dataType === Be);
907
+ const n = a.filter((i) => i.dataType !== Fe && i.dataType !== Be), u = n.filter((i) => t.includes(i.id));
908
+ P = n.filter((i) => !t.includes(i.id)), u.sort((i, r) => {
909
+ const B = e.findIndex((O) => O.id === i.id), E = e.findIndex((O) => O.id === r.id);
905
910
  return B - E;
906
- }), K(o);
911
+ }), K(u);
907
912
  }
908
913
  const {
909
- renderDataGridSummary: ol
910
- } = Jl(l, i, q);
911
- return () => l.visible && f(dl, null, [Me.value && f("div", {
914
+ renderDataGridSummary: rl
915
+ } = Zl(l, o, q);
916
+ return () => l.visible && f(vl, null, [ze.value && f("div", {
912
917
  class: "fv-grid-search",
913
918
  style: {
914
919
  padding: "8px 12px",
@@ -921,13 +926,13 @@ const ca = /* @__PURE__ */ sl({
921
926
  display: "flex",
922
927
  alignItems: "center"
923
928
  }
924
- }, [f(ta, {
925
- value: x.value,
926
- onInput: (e) => x.value = e,
927
- "onUpdate:value": (e) => x.value = e || "",
928
- onClear: Ae,
929
- onKeydown: Zt,
930
- placeholder: ze.value,
929
+ }, [f(aa, {
930
+ value: _.value,
931
+ onInput: (e) => _.value = e,
932
+ "onUpdate:value": (e) => _.value = e || "",
933
+ onClear: He,
934
+ onKeydown: tl,
935
+ placeholder: We.value,
931
936
  style: {
932
937
  flex: 1
933
938
  }
@@ -941,9 +946,9 @@ const ca = /* @__PURE__ */ sl({
941
946
  }
942
947
  }, [De.value]), f(ue, {
943
948
  type: "link",
944
- title: Ue.value,
945
- disabled: !b.value.length,
946
- onClick: Qt,
949
+ title: Ye.value,
950
+ disabled: !w.value.length,
951
+ onClick: el,
947
952
  style: {
948
953
  cursor: "pointer",
949
954
  marginLeft: "4px"
@@ -954,9 +959,9 @@ const ca = /* @__PURE__ */ sl({
954
959
  }, null)]
955
960
  }), f(ue, {
956
961
  type: "link",
957
- title: Ye.value,
958
- disabled: !b.value.length,
959
- onClick: Ge,
962
+ title: qe.value,
963
+ disabled: !w.value.length,
964
+ onClick: Ae,
960
965
  style: {
961
966
  cursor: "pointer",
962
967
  marginLeft: "4px"
@@ -967,8 +972,8 @@ const ca = /* @__PURE__ */ sl({
967
972
  }, null)]
968
973
  }), f(ue, {
969
974
  type: "link",
970
- title: We.value,
971
- onClick: el,
975
+ title: Ue.value,
976
+ onClick: ll,
972
977
  style: {
973
978
  cursor: "pointer",
974
979
  marginLeft: "4px"
@@ -977,10 +982,10 @@ const ca = /* @__PURE__ */ sl({
977
982
  default: () => [f("i", {
978
983
  class: "f-icon f-icon-search"
979
984
  }, null)]
980
- }), x.value && f(ue, {
985
+ }), _.value && f(ue, {
981
986
  type: "link",
982
- title: qe.value,
983
- onClick: Ae,
987
+ title: Ke.value,
988
+ onClick: He,
984
989
  style: {
985
990
  cursor: "pointer",
986
991
  marginLeft: "4px"
@@ -991,46 +996,47 @@ const ca = /* @__PURE__ */ sl({
991
996
  }, null)]
992
997
  })])]), f("div", {
993
998
  ref: J,
994
- class: it.value,
995
- style: ll.value,
996
- onWheel: tt
997
- }, [s.value && ct.value && rt(), f("div", {
998
- ref: s,
999
999
  class: ot.value,
1000
+ style: nl.value,
1001
+ onWheel: lt
1002
+ }, [s.value && ft.value && ct(), f("div", {
1003
+ ref: s,
1004
+ class: ut.value,
1000
1005
  onMouseover: () => T.value = !0,
1001
1006
  onMouseleave: () => T.value = !1,
1002
1007
  onTouchstart: (e) => {
1003
- e.stopPropagation(), T.value = !0, C.onTouchstartScrollThumb(e, s);
1008
+ e.stopPropagation(), T.value = !0, S.onTouchstartScrollThumb(e, s);
1004
1009
  },
1005
1010
  onTouchend: (e) => {
1006
1011
  T.value = !1;
1007
1012
  },
1008
- style: tl.value
1009
- }, [s.value && dt(d), s.value && ut(), s.value && Vt.value && Pt(), s.value && vt(), s.value && mt()]), s.value && ol(), M.value && f("div", {
1010
- class: al.value
1013
+ style: al.value
1014
+ }, [s.value && vt(d), s.value && rt(), s.value && Lt.value && kt(), s.value && yt(), s.value && ht()]), s.value && rl(), M.value && f("div", {
1015
+ class: il.value
1011
1016
  }, [M.value && f("div", {
1012
- class: nl.value
1013
- }, [f("div", null, ["已选:" + fe.value.length, fl(" 条")])])]), st(), ve.value && ft()]), l.enableColumnSettingSolution && f(Ql, {
1017
+ class: ol.value
1018
+ }, [f("div", null, ["已选:" + fe.value.length, ml(" 条")])])]), dt(), ve.value && mt()]), l.enableColumnSettingSolution && f(ea, {
1019
+ ref: ke,
1014
1020
  columns: [...p.value, ...P],
1015
1021
  componentId: l.id,
1016
1022
  modelValue: h.value,
1017
1023
  "onUpdate:modelValue": (e) => h.value = e,
1018
- onChangeColumnSetting: il
1024
+ onChangeColumnSetting: ul
1019
1025
  }, null)]);
1020
1026
  }
1021
- }), Ta = rl(ca);
1027
+ }), Pa = cl(fa);
1022
1028
  export {
1023
- ca as FTreeGrid,
1024
- Da as columnOptions,
1025
- Ta as default,
1026
- Oa as editOptions,
1027
- xa as filterOptions,
1028
- Ia as groupOptions,
1029
- _a as headerOptions,
1030
- Ra as loadingOptions,
1031
- wa as paginationOptions,
1032
- Fa as rowOptions,
1033
- ba as sortOptions,
1034
- Ba as summaryOptions,
1035
- la as treeGridProps
1029
+ fa as FTreeGrid,
1030
+ Oa as columnOptions,
1031
+ Pa as default,
1032
+ Ta as editOptions,
1033
+ Fa as filterOptions,
1034
+ xa as groupOptions,
1035
+ Ba as headerOptions,
1036
+ Va as loadingOptions,
1037
+ Ia as paginationOptions,
1038
+ Da as rowOptions,
1039
+ _a as sortOptions,
1040
+ Ra as summaryOptions,
1041
+ na as treeGridProps
1036
1042
  };