@farris/ui-vue 1.7.2-beta.1 → 1.7.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/components/avatar/index.esm.js +155 -148
  2. package/components/avatar/index.umd.cjs +1 -1
  3. package/components/button-edit/index.esm.js +1 -1
  4. package/components/button-edit/index.umd.cjs +1 -1
  5. package/components/calendar/index.esm.js +226 -224
  6. package/components/calendar/index.umd.cjs +3 -3
  7. package/components/collection-property-editor/index.esm.js +225 -223
  8. package/components/collection-property-editor/index.umd.cjs +2 -2
  9. package/components/combo-list/index.esm.js +76 -71
  10. package/components/combo-list/index.umd.cjs +1 -1
  11. package/components/comment/index.esm.js +169 -167
  12. package/components/comment/index.umd.cjs +6 -6
  13. package/components/component/index.esm.js +3691 -3043
  14. package/components/component/index.umd.cjs +2 -2
  15. package/components/condition/index.esm.js +2015 -1352
  16. package/components/condition/index.umd.cjs +2 -2
  17. package/components/data-grid/index.esm.js +407 -430
  18. package/components/data-grid/index.umd.cjs +1 -1
  19. package/components/data-view/index.esm.js +3082 -3196
  20. package/components/data-view/index.umd.cjs +1 -1
  21. package/components/designer-canvas/index.esm.js +3364 -2713
  22. package/components/designer-canvas/index.umd.cjs +1 -1
  23. package/components/drawer/index.esm.js +66 -64
  24. package/components/drawer/index.umd.cjs +2 -2
  25. package/components/dynamic-form/index.esm.js +1176 -524
  26. package/components/dynamic-form/index.umd.cjs +1 -1
  27. package/components/dynamic-resolver/index.esm.js +182 -180
  28. package/components/dynamic-resolver/index.umd.cjs +2 -2
  29. package/components/dynamic-view/index.esm.js +531 -455
  30. package/components/dynamic-view/index.umd.cjs +1 -1
  31. package/components/events-editor/index.esm.js +2352 -1700
  32. package/components/events-editor/index.umd.cjs +3 -3
  33. package/components/expression-editor/index.esm.js +8 -3
  34. package/components/expression-editor/index.umd.cjs +2 -2
  35. package/components/filter-bar/index.esm.js +422 -413
  36. package/components/filter-bar/index.umd.cjs +2 -2
  37. package/components/filter-condition-editor/index.esm.js +8 -3
  38. package/components/filter-condition-editor/index.umd.cjs +1 -1
  39. package/components/image/index.esm.js +363 -354
  40. package/components/image/index.umd.cjs +2 -2
  41. package/components/language-textbox/index.esm.js +189 -187
  42. package/components/language-textbox/index.umd.cjs +2 -2
  43. package/components/list-view/index.esm.js +388 -389
  44. package/components/list-view/index.umd.cjs +5 -5
  45. package/components/mapping-editor/index.esm.js +1465 -1488
  46. package/components/mapping-editor/index.umd.cjs +1 -1
  47. package/components/number-range/index.esm.js +180 -173
  48. package/components/number-range/index.umd.cjs +1 -1
  49. package/components/order/index.esm.js +815 -811
  50. package/components/order/index.umd.cjs +5 -5
  51. package/components/property-panel/index.esm.js +429 -420
  52. package/components/property-panel/index.umd.cjs +3 -3
  53. package/components/query-solution/index.esm.js +4746 -4085
  54. package/components/query-solution/index.umd.cjs +7 -7
  55. package/components/schema-selector/index.esm.js +1401 -1402
  56. package/components/schema-selector/index.umd.cjs +5 -5
  57. package/components/section/index.esm.js +102 -100
  58. package/components/section/index.umd.cjs +2 -2
  59. package/components/sort-condition-editor/index.esm.js +8 -3
  60. package/components/sort-condition-editor/index.umd.cjs +1 -1
  61. package/components/transfer/index.esm.js +537 -538
  62. package/components/transfer/index.umd.cjs +5 -5
  63. package/components/tree-grid/index.esm.js +280 -283
  64. package/components/tree-grid/index.umd.cjs +1 -1
  65. package/components/tree-view/index.esm.js +200 -202
  66. package/components/tree-view/index.umd.cjs +1 -1
  67. package/components/uploader/index.esm.js +533 -519
  68. package/components/uploader/index.umd.cjs +2 -2
  69. package/designer/data-grid/index.esm.js +3806 -3905
  70. package/designer/data-grid/index.umd.cjs +9 -9
  71. package/designer/drawer/index.esm.js +188 -186
  72. package/designer/drawer/index.umd.cjs +2 -2
  73. package/designer/dynamic-form/index.esm.js +1562 -1073
  74. package/designer/dynamic-form/index.umd.cjs +2 -2
  75. package/designer/farris-designer.all.esm.js +9793 -8613
  76. package/designer/farris-designer.all.umd.cjs +8 -8
  77. package/designer/list-view/index.esm.js +564 -564
  78. package/designer/list-view/index.umd.cjs +6 -6
  79. package/designer/radio-group/index.esm.js +236 -229
  80. package/designer/radio-group/index.umd.cjs +1 -1
  81. package/designer/response-layout-editor/index.esm.js +178 -171
  82. package/designer/response-layout-editor/index.umd.cjs +1 -1
  83. package/designer/tabs/index.esm.js +3154 -2508
  84. package/designer/tabs/index.umd.cjs +2 -2
  85. package/designer/time-picker/index.esm.js +193 -186
  86. package/designer/time-picker/index.umd.cjs +1 -1
  87. package/designer/tree-grid/index.esm.js +444 -447
  88. package/designer/tree-grid/index.umd.cjs +1 -1
  89. package/farris.all.esm.js +60126 -59649
  90. package/farris.all.umd.cjs +30 -30
  91. package/index.css +1 -1
  92. package/package.json +1 -1
  93. package/types/components.d.ts +1 -1
  94. package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
  95. package/types/data-grid/index.d.ts +2 -5
  96. package/types/data-grid/src/data-grid.component.d.ts +1 -2
  97. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  98. package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
  99. package/types/data-view/composition/types.d.ts +0 -4
  100. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
  101. package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +2 -3
  102. package/types/data-view/composition/visualization/use-visual-data-row.d.ts +1 -2
  103. package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
  104. package/types/dynamic-form/designer.d.ts +0 -1
  105. package/types/dynamic-form/index.d.ts +4 -3
  106. package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
  107. package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
  108. package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
  109. package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
  110. package/types/dynamic-form/src/response-form.props.d.ts +13 -1
  111. package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
  112. package/types/dynamic-form/src/types.d.ts +1 -0
  113. package/types/dynamic-resolver/src/types.d.ts +1 -0
  114. package/types/dynamic-view/index.d.ts +43 -3
  115. package/types/dynamic-view/src/components/maps.d.ts +6 -6
  116. package/types/dynamic-view/src/composition/index.d.ts +5 -0
  117. package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
  118. package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
  119. package/types/language-textbox/index.d.ts +3 -3
  120. package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
  121. package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
  122. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
  123. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  124. package/types/property-panel/src/property-panel.component.d.ts +3 -3
  125. package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
  126. package/types/tree-grid/src/tree-grid.props.d.ts +0 -1
  127. package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
  128. package/types/tree-view/src/tree-view.props.d.ts +0 -1
@@ -1,9 +1,9 @@
1
- import { ref as r, computed as P, createVNode as n, Fragment as z, watch as te, withModifiers as Se, withDirectives as ke, vModelText as be, defineComponent as ne, createTextVNode as q } from "vue";
2
- import { getCustomStyle as J, getCustomClass as K } from "../common/index.esm.js";
3
- import { useFilter as Ve, useIdentify as Fe, useHierarchy as De, useGroupData as Me, useDataView as Oe, useSelection as Re, usePagination as Te, useRow as Be, useEdit as He, useVisualDataBound as Pe, useVisualDataCell as xe, useVisualDataRow as je, useVisualGroupRow as Le, useVisualSummaryRow as _e, useVisualData as Ge, useSidebar as Ae, useColumn as Ee, useVirtualScroll as Ne, getPagination as ze } from "../data-view/index.esm.js";
4
- import { LocaleService as Ue } from "../locale/index.esm.js";
5
- import { FCheckbox as X } from "../checkbox/index.esm.js";
6
- const le = {
1
+ import { ref as f, computed as x, createVNode as n, Fragment as N, watch as Z, withModifiers as we, withDirectives as ye, vModelText as Ie, defineComponent as ee, createTextVNode as Y } from "vue";
2
+ import { getCustomStyle as $, getCustomClass as W } from "../common/index.esm.js";
3
+ import { useFilter as Se, useIdentify as ke, useHierarchy as be, useGroupData as Ve, useDataView as Fe, useSelection as De, usePagination as Me, useRow as Re, useEdit as Te, useVisualDataBound as Oe, useVisualDataCell as Be, useVisualDataRow as He, useVisualGroupRow as Pe, useVisualSummaryRow as xe, useVisualData as je, useSidebar as Le, useColumn as _e, useVirtualScroll as Ge, getPagination as Ae } from "../data-view/index.esm.js";
4
+ import { LocaleService as Ee } from "../locale/index.esm.js";
5
+ import { FCheckbox as K } from "../checkbox/index.esm.js";
6
+ const te = {
7
7
  /** 列集合 */
8
8
  columns: {
9
9
  type: Array,
@@ -71,218 +71,218 @@ const le = {
71
71
  /** 分页 */
72
72
  pagination: { type: Object, default: { enable: !1, size: 20 } }
73
73
  };
74
- function We(e, l) {
75
- function I(a) {
76
- const s = [];
77
- let o = a.nextNode();
78
- for (; o; )
79
- s.push(o), o = a.nextNode();
80
- return s;
81
- }
82
- function p(a, s) {
83
- const o = document.createTreeWalker(a, NodeFilter.SHOW_TEXT);
84
- return I(o).map((d) => ({ textNode: d, text: (d.textContent || "").toLocaleLowerCase() })).map(({ textNode: d, text: v }) => {
85
- const g = [];
86
- let m = 0;
87
- for (; m < v.length; ) {
88
- const h = v.indexOf(s, m);
89
- if (h === -1)
74
+ function Ne(e, l) {
75
+ function p(a) {
76
+ const o = [];
77
+ let v = a.nextNode();
78
+ for (; v; )
79
+ o.push(v), v = a.nextNode();
80
+ return o;
81
+ }
82
+ function w(a, o) {
83
+ const v = document.createTreeWalker(a, NodeFilter.SHOW_TEXT);
84
+ return p(v).map((y) => ({ textNode: y, text: (y.textContent || "").toLocaleLowerCase() })).map(({ textNode: y, text: s }) => {
85
+ const u = [];
86
+ let M = 0;
87
+ for (; M < s.length; ) {
88
+ const I = s.indexOf(o, M);
89
+ if (I === -1)
90
90
  break;
91
- g.push(h), m = h + s.length;
91
+ u.push(I), M = I + o.length;
92
92
  }
93
- return g.map((h) => {
94
- const S = new Range();
95
- return S.setStart(d, h), S.setEnd(d, h + s.length), S;
93
+ return u.map((I) => {
94
+ const h = new Range();
95
+ return h.setStart(y, I), h.setEnd(y, I + o.length), h;
96
96
  });
97
97
  }).flat();
98
98
  }
99
- function w(a) {
99
+ function g(a) {
100
100
  if (!CSS.highlights || (CSS.highlights.clear(), !a || !l))
101
101
  return;
102
- const s = p(l.value, a.toLocaleLowerCase()), o = new Highlight(...s);
103
- CSS.highlights.set("search-result", o);
102
+ const o = w(l.value, a.toLocaleLowerCase()), v = new Highlight(...o);
103
+ CSS.highlights.set("search-result", v);
104
104
  }
105
- return { search: w };
105
+ return { search: g };
106
106
  }
107
- function Q(e, l, I, p, w, a, s, o, O, T) {
108
- const F = r(e.size), d = r(e.textField), v = r(e.titleField), g = r(e.disableField), m = P(() => {
109
- var t, y;
110
- return ((t = e.selection) == null ? void 0 : t.multiSelect) && ((y = e.selection) == null ? void 0 : y.showCheckbox);
107
+ function q(e, l, p, w, g, a, o, v, O, m) {
108
+ const b = f(e.size), y = f(e.textField), s = f(e.titleField), u = f(e.disableField), M = x(() => {
109
+ var t, V;
110
+ return ((t = e.selection) == null ? void 0 : t.multiSelect) && ((V = e.selection) == null ? void 0 : V.showCheckbox);
111
111
  }), {
112
- onMouseenterItem: h,
113
- onMouseoverItem: S,
114
- onMouseoutItem: D
112
+ onMouseenterItem: I,
113
+ onMouseoverItem: h,
114
+ onMouseoutItem: F
115
115
  } = a, {
116
- getKey: k,
117
- listViewItemClass: R,
118
- listViewItemStyle: x,
116
+ getKey: D,
117
+ listViewItemClass: T,
118
+ listViewItemStyle: P,
119
119
  onCheckItem: j,
120
- onClickItem: i
121
- } = s, C = P(() => {
120
+ onClickItem: d
121
+ } = o, C = x(() => {
122
122
  const t = {
123
123
  "text-overflow": "ellipsis",
124
124
  overflow: "hidden",
125
125
  "white-space": "nowrap"
126
126
  };
127
127
  return e.itemClass ? t : {
128
- margin: F.value === "small" ? "0.25rem 0" : "8px 0",
128
+ margin: b.value === "small" ? "0.25rem 0" : "8px 0",
129
129
  ...t
130
130
  };
131
131
  });
132
- function u(t, y, B) {
133
- return t.checked = o.findIndexInSelectedItems(t) > -1, n("li", {
134
- class: R(t, y),
135
- id: k(t, y),
136
- key: k(t, y),
137
- style: x(t, y),
138
- onClick: (H) => i(t, y, H),
139
- onMouseenter: (H) => h(H, t, y),
140
- onMouseover: (H) => S(H, t, y),
141
- onMouseout: (H) => D(H, t, y)
142
- }, [m.value && n("div", {
132
+ function i(t, V, B) {
133
+ return t.checked = v.findIndexInSelectedItems(t) > -1, n("li", {
134
+ class: T(t, V),
135
+ id: D(t, V),
136
+ key: D(t, V),
137
+ style: P(t, V),
138
+ onClick: (H) => d(t, V, H),
139
+ onMouseenter: (H) => I(H, t, V),
140
+ onMouseover: (H) => h(H, t, V),
141
+ onMouseout: (H) => F(H, t, V)
142
+ }, [M.value && n("div", {
143
143
  class: "f-list-select",
144
144
  onClick: (H) => H.stopPropagation()
145
- }, [n(X, {
146
- id: "list-" + k(t, y),
145
+ }, [n(K, {
146
+ id: "list-" + D(t, V),
147
147
  customClass: "listview-checkbox float-left",
148
- disabled: t[g.value],
148
+ disabled: t[u.value],
149
149
  checked: t.checked,
150
150
  "onUpdate:checked": (H) => t.checked = H,
151
151
  onChange: (H) => {
152
- j(t, y, !H.checked);
152
+ j(t, V, !H.checked);
153
153
  }
154
154
  }, null)]), n("div", {
155
155
  class: "f-list-content"
156
156
  }, [n("div", {
157
157
  class: e.itemContentClass,
158
158
  style: C.value,
159
- title: t.raw[v.value] || t.raw[d.value]
160
- }, [t.raw[d.value]])])]);
159
+ title: t.raw[s.value] || t.raw[y.value]
160
+ }, [t.raw[y.value]])])]);
161
161
  }
162
162
  return {
163
- renderItem: u
163
+ renderItem: i
164
164
  };
165
165
  }
166
- function Ke(e, l, I, p, w, a, s, o, O, T) {
167
- const F = r(e.multiSelect), d = r(e.disableField), v = r(e.textField), {
168
- onMouseenterItem: g,
169
- onMouseoverItem: m,
170
- onMouseoutItem: h
166
+ function ze(e, l, p, w, g, a, o, v, O, m) {
167
+ const b = f(e.multiSelect), y = f(e.disableField), s = f(e.textField), {
168
+ onMouseenterItem: u,
169
+ onMouseoverItem: M,
170
+ onMouseoutItem: I
171
171
  } = a, {
172
- getKey: S,
173
- listViewItemClass: D,
174
- listViewItemStyle: k,
175
- onCheckItem: R,
176
- onClickItem: x,
172
+ getKey: h,
173
+ listViewItemClass: F,
174
+ listViewItemStyle: D,
175
+ onCheckItem: T,
176
+ onClickItem: P,
177
177
  updateSelectedItems: j
178
- } = s;
179
- function i(u, t, y) {
180
- return e.contentTemplate ? n(z, null, [e.contentTemplate({
181
- item: u.raw,
178
+ } = o;
179
+ function d(i, t, V) {
180
+ return e.contentTemplate ? n(N, null, [e.contentTemplate({
181
+ item: i.raw,
182
182
  index: t,
183
- selectedItem: y
184
- })]) : l.slots.content ? n(z, null, [l.slots.content && l.slots.content({
185
- item: u.raw,
183
+ selectedItem: V
184
+ })]) : l.slots.content ? n(N, null, [l.slots.content && l.slots.content({
185
+ item: i.raw,
186
186
  index: t,
187
- selectedItem: y
187
+ selectedItem: V
188
188
  })]) : n("div", {
189
189
  style: "margin: 10px 0;"
190
- }, [u.raw[v.value || "name"]]);
190
+ }, [i.raw[s.value || "name"]]);
191
191
  }
192
- function C(u, t, y) {
192
+ function C(i, t, V) {
193
193
  return n("li", {
194
- class: D(u, t),
195
- id: S(u, t),
196
- key: S(u, t),
197
- style: k(u, t),
198
- onClick: (B) => x(u, t, B),
199
- onMouseenter: (B) => g(B, u, t),
200
- onMouseover: (B) => m(B, u, t),
201
- onMouseout: (B) => h(B, u, t)
202
- }, [F.value && n("div", {
194
+ class: F(i, t),
195
+ id: h(i, t),
196
+ key: h(i, t),
197
+ style: D(i, t),
198
+ onClick: (B) => P(i, t, B),
199
+ onMouseenter: (B) => u(B, i, t),
200
+ onMouseover: (B) => M(B, i, t),
201
+ onMouseout: (B) => I(B, i, t)
202
+ }, [b.value && n("div", {
203
203
  class: "f-list-select",
204
204
  onClick: (B) => B.stopPropagation()
205
- }, [n(X, {
206
- id: "list-" + S(u, t),
205
+ }, [n(K, {
206
+ id: "list-" + h(i, t),
207
207
  customClass: "listview-checkbox",
208
- disabled: u[d.value],
209
- checked: u.checked,
210
- "onUpdate:checked": (B) => u.checked = B,
208
+ disabled: i[y.value],
209
+ checked: i.checked,
210
+ "onUpdate:checked": (B) => i.checked = B,
211
211
  onChange: (B) => {
212
- R(u, t, !B.checked), j();
212
+ T(i, t, !B.checked), j();
213
213
  }
214
214
  }, null)]), n("div", {
215
215
  class: "f-list-content"
216
- }, [i(u, t, y)])]);
216
+ }, [d(i, t, V)])]);
217
217
  }
218
218
  return {
219
219
  renderItem: C
220
220
  };
221
221
  }
222
- function Xe(e, l, I, p, w, a, s, o, O, T) {
223
- const F = r(e.multiSelect), d = r(e.disableField), v = r(e.textField), {
224
- onMouseenterItem: g,
225
- onMouseoverItem: m,
226
- onMouseoutItem: h
222
+ function Ue(e, l, p, w, g, a, o, v, O, m) {
223
+ const b = f(e.multiSelect), y = f(e.disableField), s = f(e.textField), {
224
+ onMouseenterItem: u,
225
+ onMouseoverItem: M,
226
+ onMouseoutItem: I
227
227
  } = a, {
228
- getKey: S,
229
- listViewItemClass: D,
230
- onCheckItem: k,
231
- onClickItem: R
232
- } = s, {
233
- dragstart: x,
228
+ getKey: h,
229
+ listViewItemClass: F,
230
+ onCheckItem: D,
231
+ onClickItem: T
232
+ } = o, {
233
+ dragstart: P,
234
234
  dragenter: j,
235
- dragover: i,
235
+ dragover: d,
236
236
  dragend: C
237
- } = p, {
238
- removeItem: u
239
- } = O, t = P(() => ({
240
- margin: F.value ? "10px 0" : "10px 0px 10px 14px"
237
+ } = w, {
238
+ removeItem: i
239
+ } = O, t = x(() => ({
240
+ margin: b.value ? "10px 0" : "10px 0px 10px 14px"
241
241
  }));
242
- function y(f, c = "") {
243
- const L = f.target;
242
+ function V(r, c = "") {
243
+ const L = r.target;
244
244
  L.title = L.scrollWidth > L.clientWidth ? c : "";
245
245
  }
246
- function B(f) {
246
+ function B(r) {
247
247
  return n("div", {
248
248
  style: t.value,
249
- onMouseenter: (c) => y(c, f.raw[v.value || "name"])
250
- }, [f.raw[v.value || "name"]]);
249
+ onMouseenter: (c) => V(c, r.raw[s.value || "name"])
250
+ }, [r.raw[s.value || "name"]]);
251
251
  }
252
252
  function H() {
253
253
  return l.slots.itemContent ? l.slots.itemContent : B;
254
254
  }
255
255
  const G = H();
256
- function b(f, c, L) {
256
+ function S(r, c, L) {
257
257
  return n("li", {
258
- class: D(f, c),
259
- id: S(f, c),
260
- key: S(f, c),
261
- onClick: (M) => R(f, c, M),
262
- onMouseenter: (M) => g(M, f, c),
263
- onMouseover: (M) => m(M, f, c),
264
- onMouseout: (M) => h(M, f, c),
258
+ class: F(r, c),
259
+ id: h(r, c),
260
+ key: h(r, c),
261
+ onClick: (R) => T(r, c, R),
262
+ onMouseenter: (R) => u(R, r, c),
263
+ onMouseover: (R) => M(R, r, c),
264
+ onMouseout: (R) => I(R, r, c),
265
265
  draggable: "true",
266
- onDragstart: (M) => x(M, f, c),
267
- onDragenter: (M) => j(M, c),
268
- onDragend: (M) => C(M, f),
269
- onDragover: (M) => i(M)
270
- }, [F.value && n("div", {
266
+ onDragstart: (R) => P(R, r, c),
267
+ onDragenter: (R) => j(R, c),
268
+ onDragend: (R) => C(R, r),
269
+ onDragover: (R) => d(R)
270
+ }, [b.value && n("div", {
271
271
  class: "f-list-select",
272
- onClick: (M) => M.stopPropagation()
273
- }, [n(X, {
274
- id: "list-" + S(f, c),
272
+ onClick: (R) => R.stopPropagation()
273
+ }, [n(K, {
274
+ id: "list-" + h(r, c),
275
275
  customClass: "listview-checkbox",
276
- disabled: f[d.value] || !f.checked,
277
- checked: f.checked,
278
- "onUpdate:checked": (M) => f.checked = M,
279
- onChange: (M) => k(f, c, !M.checked)
276
+ disabled: r[y.value] || !r.checked,
277
+ checked: r.checked,
278
+ "onUpdate:checked": (R) => r.checked = R,
279
+ onChange: (R) => D(r, c, !R.checked)
280
280
  }, null)]), n("div", {
281
281
  class: "f-list-content"
282
- }, [G(f)]), n("div", {
282
+ }, [G(r)]), n("div", {
283
283
  class: "f-list-remove",
284
- onClick: (M) => {
285
- M.stopPropagation(), u(c);
284
+ onClick: (R) => {
285
+ R.stopPropagation(), i(c);
286
286
  }
287
287
  }, [n("div", {
288
288
  class: "f-list-remove-icon"
@@ -295,72 +295,72 @@ function Xe(e, l, I, p, w, a, s, o, O, T) {
295
295
  }, null)])])]);
296
296
  }
297
297
  return {
298
- renderItem: b
298
+ renderItem: S
299
299
  };
300
300
  }
301
- function Ye(e, l, I, p, w, a, s, o, O, T) {
302
- var S;
303
- const F = r(((S = e.group) == null ? void 0 : S.groupFields) || []), {
304
- collpaseGroupIconClass: d
305
- } = w, {
306
- toggleGroupRow: v
307
- } = T;
308
- function g(D, k) {
309
- k.collapse = !k.collapse, I.value = v(k.collapse ? "collapse" : "expand", k, I.value);
310
- }
311
- function m(D, k, R) {
312
- return l.slots.group ? n(z, null, [l.slots.content && l.slots.group({
313
- item: D.raw,
314
- index: k,
315
- selectedItem: R
301
+ function We(e, l, p, w, g, a, o, v, O, m) {
302
+ var h;
303
+ const b = f(((h = e.group) == null ? void 0 : h.groupFields) || []), {
304
+ collpaseGroupIconClass: y
305
+ } = g, {
306
+ toggleGroupRow: s
307
+ } = m;
308
+ function u(F, D) {
309
+ D.collapse = !D.collapse, p.value = s(D.collapse ? "collapse" : "expand", D, p.value);
310
+ }
311
+ function M(F, D, T) {
312
+ return l.slots.group ? n(N, null, [l.slots.content && l.slots.group({
313
+ item: F.raw,
314
+ index: D,
315
+ selectedItem: T
316
316
  })]) : n("div", {
317
317
  class: "f-navlookup-recentHeader",
318
- onClick: (x) => g(x, D)
318
+ onClick: (P) => u(P, F)
319
319
  }, [n("div", {
320
320
  class: "fv-grid-group-row-icon"
321
321
  }, [n("span", {
322
- class: d(D)
322
+ class: y(F)
323
323
  }, null)]), n("div", {
324
324
  class: "f-navlookup-recommandLabel"
325
- }, [D.raw[F.value[D.layer]]])]);
325
+ }, [F.raw[b.value[F.layer]]])]);
326
326
  }
327
- function h(D, k, R) {
328
- return D.layer > -1 && m(D, k, R);
327
+ function I(F, D, T) {
328
+ return F.layer > -1 && M(F, D, T);
329
329
  }
330
330
  return {
331
- renderItem: h
331
+ renderItem: I
332
332
  };
333
333
  }
334
- function $e(e, l, I, p) {
335
- const { dataView: w } = I, { updateSelectedItems: a } = p;
336
- function s(o) {
337
- if (o > -1 && o < w.value.length) {
338
- if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(w.value[o]))
334
+ function Ke(e, l, p, w) {
335
+ const { dataView: g } = p, { updateSelectedItems: a } = w;
336
+ function o(v) {
337
+ if (v > -1 && v < g.value.length) {
338
+ if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(g.value[v]))
339
339
  return;
340
- const O = w.value.splice(o, 1);
340
+ const O = g.value.splice(v, 1);
341
341
  a(), l.emit("removeItem", O[0]);
342
342
  }
343
343
  }
344
- return { removeItem: s };
344
+ return { removeItem: o };
345
345
  }
346
- function qe(e, l, I, p, w, a, s, o, O, T) {
347
- const F = r(e.view), d = r(e.view === "CardView"), v = r({}), g = $e(e, l, p, O), m = P(() => ({
346
+ function Xe(e, l, p, w, g, a, o, v, O, m) {
347
+ const b = f(e.view), y = f(e.view === "CardView"), s = f({}), u = Ke(e, l, w, O), M = x(() => ({
348
348
  "f-list-view-group": !0,
349
349
  "f-list-view-group-multiselect": e.multiSelect,
350
- "d-flex": d.value,
351
- "flex-wrap": d.value
352
- })), h = P(() => !!I.value && I.value.length > 0), S = P(() => I.value.length === 0);
353
- P(() => S.value && !l.slots.empty);
354
- function D() {
355
- return F.value === "SingleView" ? Q : F.value === "DraggableView" ? Xe : (F.value === "ContentView" || F.value === "CardView") && (e.contentTemplate || l.slots.content) ? Ke : Q;
356
- }
357
- const k = D(), {
358
- renderItem: R
359
- } = k(e, l, I, T, w, a, O, s, g, o), {
360
- renderItem: x
361
- } = Ye(e, l, I, T, w, a, O, s, g, o), j = [R, x];
362
- function i() {
363
- return I.value.filter((t) => t.visible !== !1).map((t, y) => j[t.type](t, y, v));
350
+ "d-flex": y.value,
351
+ "flex-wrap": y.value
352
+ })), I = x(() => !!p.value && p.value.length > 0), h = x(() => p.value.length === 0);
353
+ x(() => h.value && !l.slots.empty);
354
+ function F() {
355
+ return b.value === "SingleView" ? q : b.value === "DraggableView" ? Ue : (b.value === "ContentView" || b.value === "CardView") && (e.contentTemplate || l.slots.content) ? ze : q;
356
+ }
357
+ const D = F(), {
358
+ renderItem: T
359
+ } = D(e, l, p, m, g, a, O, o, u, v), {
360
+ renderItem: P
361
+ } = We(e, l, p, m, g, a, O, o, u, v), j = [T, P];
362
+ function d() {
363
+ return p.value.filter((t) => t.visible !== !1).map((t, V) => j[t.type](t, V, s));
364
364
  }
365
365
  function C() {
366
366
  return n("div", {
@@ -368,126 +368,126 @@ function qe(e, l, I, p, w, a, s, o, O, T) {
368
368
  style: "margin: 0 auto;"
369
369
  }, [n("p", {
370
370
  class: "f-empty-title"
371
- }, [e.emptyTemplate ? e.emptyTemplate() : l.slots.empty ? l.slots.empty() : Ue.getLocaleValue("listView.emptyMessage")])]);
371
+ }, [e.emptyTemplate ? e.emptyTemplate() : l.slots.empty ? l.slots.empty() : Ee.getLocaleValue("listView.emptyMessage")])]);
372
372
  }
373
- function u() {
373
+ function i() {
374
374
  return n("ul", {
375
- class: m.value,
375
+ class: M.value,
376
376
  style: "list-style: none;"
377
- }, [h.value && i(), S.value && C()]);
377
+ }, [I.value && d(), h.value && C()]);
378
378
  }
379
379
  return {
380
- renderListArea: u
380
+ renderListArea: i
381
381
  };
382
382
  }
383
- function Je(e, l, I) {
384
- function p() {
383
+ function Ye(e, l, p) {
384
+ function w() {
385
385
  return l.slots.header && n("div", {
386
386
  class: "f-list-view-header"
387
387
  }, [l.slots.header()]);
388
388
  }
389
389
  return {
390
- renderHeader: p
390
+ renderHeader: w
391
391
  };
392
392
  }
393
- function Z(e, l, I) {
394
- const p = r(e.headerClass), w = r(e.placeholder), a = r(""), s = P(() => !a.value), o = P(() => !!a.value);
395
- function O(v) {
393
+ function J(e, l, p) {
394
+ const w = f(e.headerClass), g = f(e.placeholder), a = f(""), o = x(() => !a.value), v = x(() => !!a.value);
395
+ function O(s) {
396
396
  a.value = "";
397
397
  }
398
- te(a, (v) => {
399
- e.enableHighlightSearch && I.search(v), l.emit("afterSearch", v);
398
+ Z(a, (s) => {
399
+ e.enableHighlightSearch && p.search(s), l.emit("afterSearch", s);
400
400
  });
401
- const T = P(() => {
402
- const v = {
401
+ const m = x(() => {
402
+ const s = {
403
403
  "form-group": !0,
404
404
  "farris-form-group": !0
405
405
  };
406
- return p.value && p.value.split(" ").reduce((m, h) => (m[h] = !0, m), v), v;
406
+ return w.value && w.value.split(" ").reduce((M, I) => (M[I] = !0, M), s), s;
407
407
  });
408
- function F(v) {
408
+ function b(s) {
409
409
  }
410
- function d() {
410
+ function y() {
411
411
  return n("div", {
412
412
  class: "f-list-view-header",
413
- onClick: Se(() => F, ["prevent", "stop"])
413
+ onClick: we(() => b, ["prevent", "stop"])
414
414
  }, [n("div", {
415
- class: T.value
415
+ class: m.value
416
416
  }, [n("div", {
417
417
  class: "farris-input-wrap"
418
418
  }, [n("div", {
419
419
  class: "f-cmp-inputgroup"
420
420
  }, [n("div", {
421
421
  class: "input-group f-state-editable"
422
- }, [ke(n("input", {
422
+ }, [ye(n("input", {
423
423
  class: "form-control f-utils-fill text-left",
424
- "onUpdate:modelValue": (v) => a.value = v,
424
+ "onUpdate:modelValue": (s) => a.value = s,
425
425
  name: "input-group-value",
426
426
  type: "text",
427
- placeholder: w.value,
427
+ placeholder: g.value,
428
428
  autocomplete: "off"
429
- }, null), [[be, a.value]]), n("div", {
429
+ }, null), [[Ie, a.value]]), n("div", {
430
430
  class: "input-group-append"
431
- }, [o.value && n("span", {
431
+ }, [v.value && n("span", {
432
432
  class: "input-group-text input-group-clear",
433
- onClick: (v) => O()
433
+ onClick: (s) => O()
434
434
  }, [n("i", {
435
435
  class: "f-icon f-icon-close-circle"
436
- }, null)]), s.value && n("span", {
436
+ }, null)]), o.value && n("span", {
437
437
  class: "input-group-text"
438
438
  }, [n("span", {
439
439
  class: "f-icon f-icon-search"
440
440
  }, null)])])])])])])]);
441
441
  }
442
442
  return {
443
- renderHeader: d
443
+ renderHeader: y
444
444
  };
445
445
  }
446
- function Qe() {
447
- const e = r(""), l = r(-1), I = r(""), p = r(-1), w = r(!1);
448
- function a(d, v, g) {
449
- p.value = g;
446
+ function $e() {
447
+ const e = f(""), l = f(-1), p = f(""), w = f(-1), g = f(!1);
448
+ function a(y, s, u) {
449
+ w.value = u;
450
450
  }
451
- function s(d, v, g) {
452
- w.value || (p.value = g);
451
+ function o(y, s, u) {
452
+ g.value || (w.value = u);
453
453
  }
454
- function o(d, v, g) {
455
- p.value = -1;
454
+ function v(y, s, u) {
455
+ w.value = -1;
456
456
  }
457
457
  function O() {
458
- w.value = !0;
458
+ g.value = !0;
459
459
  }
460
- function T() {
461
- w.value = !1;
460
+ function m() {
461
+ g.value = !1;
462
462
  }
463
- function F() {
463
+ function b() {
464
464
  l.value = -1, e.value = "";
465
465
  }
466
466
  return {
467
467
  activeIndex: l,
468
- focusedItemId: I,
469
- hoverIndex: p,
470
- clearActiveItem: F,
468
+ focusedItemId: p,
469
+ hoverIndex: w,
470
+ clearActiveItem: b,
471
471
  onMouseenterItem: a,
472
- onMouseoverItem: s,
473
- onMouseoutItem: o,
474
- resumeHover: T,
472
+ onMouseoverItem: o,
473
+ onMouseoutItem: v,
474
+ resumeHover: m,
475
475
  suspendHover: O
476
476
  };
477
477
  }
478
- function Ze(e, l, I, p) {
479
- const w = r(e.idField), { dataView: a } = I, s = r(-1), o = r(!1), { activeIndex: O, focusedItemId: T, hoverIndex: F, resumeHover: d, suspendHover: v } = p;
480
- let g, m = 0, h = 0;
481
- function S(i, C) {
482
- const u = i - m, t = C - h;
483
- g.style.left = parseInt(g.style.left) + u + "px", g.style.top = parseInt(g.style.top) + t + "px", m = i, h = C;
484
- }
485
- function D(i) {
486
- const { left: C, top: u } = i.getBoundingClientRect(), t = i.cloneNode(!0);
478
+ function qe(e, l, p, w) {
479
+ const g = f(e.idField), { dataView: a } = p, o = f(-1), v = f(!1), { activeIndex: O, focusedItemId: m, hoverIndex: b, resumeHover: y, suspendHover: s } = w;
480
+ let u, M = 0, I = 0;
481
+ function h(d, C) {
482
+ const i = d - M, t = C - I;
483
+ u.style.left = parseInt(u.style.left) + i + "px", u.style.top = parseInt(u.style.top) + t + "px", M = d, I = C;
484
+ }
485
+ function F(d) {
486
+ const { left: C, top: i } = d.getBoundingClientRect(), t = d.cloneNode(!0);
487
487
  return t.className = t.className + " f-listview-drag-moving", t.style.cssText = `
488
488
  position:absolute;
489
489
  left:${C}px;
490
- top:${document.documentElement.scrollTop ? u + document.documentElement.scrollTop : u}px;
490
+ top:${document.documentElement.scrollTop ? i + document.documentElement.scrollTop : i}px;
491
491
  z-index: 999999;
492
492
  pointer-events: none;
493
493
  border-radius: 10px;
@@ -496,230 +496,229 @@ function Ze(e, l, I, p) {
496
496
  align-items: center;
497
497
  float: none;
498
498
  text-align: initial;
499
- width:${getComputedStyle(i).width};
500
- height:${getComputedStyle(i).height};
499
+ width:${getComputedStyle(d).width};
500
+ height:${getComputedStyle(d).height};
501
501
  `, t.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", t.children[0].children[0].style.cssText = `
502
502
  margin: 10px 0px 10px 14px;
503
503
  overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
504
504
  `, t.children[1].style.cssText = "width: 30px;padding: 0 14px 0 0", t.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(t), t;
505
505
  }
506
- function k(i, C, u) {
507
- if (i.stopPropagation(), v(), C) {
508
- if (g = D(i.target), i.dataTransfer) {
506
+ function D(d, C, i) {
507
+ if (d.stopPropagation(), s(), C) {
508
+ if (u = F(d.target), d.dataTransfer) {
509
509
  const t = new Image();
510
- t.src = "", i.dataTransfer.setDragImage(t, 0, 0);
510
+ t.src = "", d.dataTransfer.setDragImage(t, 0, 0);
511
511
  }
512
- m = i.pageX, h = i.pageY, setTimeout(() => {
513
- s.value = u, o.value = !0, C.moving = !0;
512
+ M = d.pageX, I = d.pageY, setTimeout(() => {
513
+ o.value = i, v.value = !0, C.moving = !0;
514
514
  });
515
515
  }
516
516
  }
517
- function R(i, C) {
518
- if (i.preventDefault(), s.value !== C) {
519
- const u = a.value[s.value], t = a.value;
520
- t.splice(s.value, 1), t.splice(C, 0, u), s.value = C, S(i.pageX, i.pageY);
517
+ function T(d, C) {
518
+ if (d.preventDefault(), o.value !== C) {
519
+ const i = a.value[o.value], t = a.value;
520
+ t.splice(o.value, 1), t.splice(C, 0, i), o.value = C, h(d.pageX, d.pageY);
521
521
  }
522
522
  }
523
- function x(i) {
524
- i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "move"), S(i.pageX, i.pageY);
523
+ function P(d) {
524
+ d.preventDefault(), d.dataTransfer && (d.dataTransfer.dropEffect = "move"), h(d.pageX, d.pageY);
525
525
  }
526
- function j(i, C) {
527
- C && (C.moving = !1, g && (document.body.removeChild(g), g = null)), a.value.forEach((u, t) => {
528
- u.__fv_index__ = t;
529
- }), o.value = !1, d(), F.value = C.raw.__fv_index__, O.value = C.raw.__fv_index__, T.value = C.raw[w.value], l.emit("change", a.value), l.emit("activeChange", [C.raw]);
526
+ function j(d, C) {
527
+ C && (C.moving = !1, u && (document.body.removeChild(u), u = null)), a.value.forEach((i, t) => {
528
+ i.__fv_index__ = t;
529
+ }), v.value = !1, y(), b.value = C.raw.__fv_index__, O.value = C.raw.__fv_index__, m.value = C.raw[g.value], l.emit("change", a.value), l.emit("activeChange", [C.raw]);
530
530
  }
531
531
  return {
532
- dragstart: k,
533
- dragenter: R,
534
- dragover: x,
532
+ dragstart: D,
533
+ dragenter: T,
534
+ dragover: P,
535
535
  dragend: j,
536
- isDragging: o
536
+ isDragging: v
537
537
  };
538
538
  }
539
- function et(e, l, I, p, w, a) {
540
- const s = r(e.idField), o = r(e.disableField), O = r(e.draggable);
541
- r(e.itemClass);
542
- const T = r(e.selection.multiSelect ?? !1), F = r(e.selection.multiSelectMode), { isDragging: d } = p, { activeIndex: v, focusedItemId: g, hoverIndex: m } = w, { clearSelection: h, getSelectedItems: S, toggleSelectItem: D, currentSelectedDataId: k } = a, R = r(S()), x = (b) => R.value.length === 0 ? !1 : R.value.some((f) => {
539
+ function Je(e, l, p, w, g, a) {
540
+ const o = f(e.idField), v = f(e.disableField), O = f(e.draggable);
541
+ f(e.itemClass);
542
+ const m = f(e.selection.multiSelect ?? !1), b = f(e.selection.multiSelectMode), { isDragging: y } = w, { activeIndex: s, focusedItemId: u, hoverIndex: M } = g, { clearSelection: I, getSelectedItems: h, toggleSelectItem: F, currentSelectedDataId: D } = a, T = f(h()), P = (S) => T.value.length === 0 ? !1 : T.value.some((r) => {
543
543
  let c = "";
544
- return f.data ? c = f.data[s.value] : c = f[s.value], c === b;
544
+ return r.data ? c = r.data[o.value] : c = r[o.value], c === S;
545
545
  });
546
546
  function j() {
547
- R.value = S();
547
+ T.value = h();
548
548
  }
549
- function i(b, f) {
550
- return b.raw[s.value] != null ? b.raw[s.value] : "";
549
+ function d(S, r) {
550
+ return S.raw[o.value] != null ? S.raw[o.value] : "";
551
551
  }
552
- function C(b, f) {
552
+ function C(S, r) {
553
553
  const c = {
554
554
  "f-list-view-group-item": !0,
555
555
  "f-list-view-draggable-item": O.value,
556
- "f-un-click": !b.checked,
557
- "f-un-select": !!b.raw[o.value],
556
+ "f-un-click": !S.checked,
557
+ "f-un-select": !!S.raw[v.value],
558
558
  "f-listview-active": (
559
559
  // 多选
560
- T.value && x(i(b)) || // 单选
561
- !T.value && b.raw[s.value] === k.value
560
+ m.value && P(d(S)) || // 单选
561
+ !m.value && S.raw[o.value] === D.value
562
562
  ),
563
- "f-listview-hover": !d.value && f === m.value,
564
- moving: !!b.moving
563
+ "f-listview-hover": !y.value && r === M.value,
564
+ moving: !!S.moving
565
565
  };
566
566
  if (typeof e.itemClass == "string")
567
- return K(c, e.itemClass);
567
+ return W(c, e.itemClass);
568
568
  if (typeof e.itemClass == "function") {
569
- const L = e.itemClass(b);
570
- return K(c, L);
569
+ const L = e.itemClass(S);
570
+ return W(c, L);
571
571
  }
572
572
  return c;
573
573
  }
574
- function u(b, f) {
574
+ function i(S, r) {
575
575
  const c = {};
576
576
  if (typeof e.itemStyle == "string")
577
- return J(c, e.itemStyle);
577
+ return $(c, e.itemStyle);
578
578
  if (typeof e.itemStyle == "function") {
579
- const L = e.itemStyle(b);
580
- return J(c, L);
579
+ const L = e.itemStyle(S);
580
+ return $(c, L);
581
581
  }
582
582
  return c;
583
583
  }
584
- const t = P(() => !T.value);
585
- function y(b, f, c) {
586
- b.checked = c, !b.raw[o.value] && (t.value && (g.value = b.raw[s.value]), D(b));
584
+ const t = x(() => !m.value);
585
+ function V(S, r, c) {
586
+ S.checked = c, !S.raw[v.value] && (t.value && (u.value = S.raw[o.value]), F(S));
587
587
  }
588
- const B = P(() => T.value && F.value === "OnCheckClearByClick"), H = P(() => !T.value || T.value && (F.value === "OnCheckAndClick" || F.value === "OnClick"));
589
- function G(b, f, c) {
590
- if (b.raw[o.value]) {
588
+ const B = x(() => m.value && b.value === "OnCheckClearByClick"), H = x(() => !m.value || m.value && (b.value === "OnCheckAndClick" || b.value === "OnClick"));
589
+ function G(S, r, c) {
590
+ if (S.raw[v.value]) {
591
591
  c == null || c.preventDefault(), c == null || c.stopPropagation();
592
592
  return;
593
593
  }
594
- k.value = b.raw[s.value], g.value = b.raw[s.value], v.value = f, B.value && h(), H.value && (D(b), j()), l.emit("clickItem", { data: R.value, index: f, dataItem: b.raw }), l.emit("activeChange", R.value);
594
+ D.value = S.raw[o.value], u.value = S.raw[o.value], s.value = r, B.value && I(), H.value && (F(S), j()), l.emit("clickItem", { data: T.value, index: r, dataItem: S.raw }), l.emit("activeChange", T.value);
595
595
  }
596
596
  return {
597
- getKey: i,
598
- selectedItems: R,
597
+ getKey: d,
598
+ selectedItems: T,
599
599
  listViewItemClass: C,
600
- listViewItemStyle: u,
600
+ listViewItemStyle: i,
601
601
  updateSelectedItems: j,
602
- onCheckItem: y,
602
+ onCheckItem: V,
603
603
  onClickItem: G
604
604
  };
605
605
  }
606
- const W = /* @__PURE__ */ ne({
606
+ const U = /* @__PURE__ */ ee({
607
607
  name: "FListView",
608
- props: le,
608
+ props: te,
609
609
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
610
610
  setup(e, l) {
611
- var $;
612
- const I = r(!1), p = r(), w = r(!0), a = r((($ = e.rowOption) == null ? void 0 : $.rowHeight) || 28), s = r(!1), o = r([]), O = 0, T = r(e.columns), F = Ve(e, l), d = Fe(e), v = De(e), g = Me(e, d), m = Oe(e, /* @__PURE__ */ new Map(), F, v, d), h = Re(e, m, d, o, l), S = We(e, p), D = Te(e, m), k = P(() => m.dataView.value.length), R = Be(e, l, h, d), x = He(e, l, d, R, o), j = Pe(e, m, a), i = xe(e, {}, j), C = je(e, m, x, v, d, j, i, a), u = Le(e, d, i, C), t = _e(e, d, i, C), y = Ge(e, T, m, k, O, C, u, t), {
613
- getVisualData: B
614
- } = y;
615
- o.value = B(0, k.value + O - 1);
616
- const H = P(() => {
617
- const V = {
611
+ const p = f(), w = f(!0), g = f(!1), a = f([]), o = 0, v = f(e.columns), O = Se(e, l), m = ke(e), b = be(e), y = Ve(e, m), s = Fe(e, /* @__PURE__ */ new Map(), O, b, m), u = De(e, s, m, a, l), M = Ne(e, p), I = Me(e, s), h = x(() => s.dataView.value.length), F = Re(e, l, u, m), D = Te(e, l, m, F, a), T = Oe(e), P = Be(e, {}, T), j = He(e, s, D, b, m, T, P), d = Pe(e, m, P, j), C = xe(e, m, P, j), i = je(e, v, s, h, o, j, d, C), {
612
+ getVisualData: t
613
+ } = i;
614
+ a.value = t(0, h.value + o - 1);
615
+ const V = x(() => {
616
+ const k = {
618
617
  "f-list-view": !0,
619
618
  "f-list-view-multiple": e.multiSelect
620
619
  };
621
- return e.size !== "default" && (V[`${e.size}-item`] = !0), K(V, e.customClass);
622
- }), G = P(() => !!l.slots.footer || w.value);
623
- function b() {
624
- return e.header === "SearchBar" ? Z : e.header === "ContentHeader" ? Je : Z;
620
+ return e.size !== "default" && (k[`${e.size}-item`] = !0), W(k, e.customClass);
621
+ }), B = x(() => !!l.slots.footer || w.value);
622
+ function H() {
623
+ return e.header === "SearchBar" ? J : e.header === "ContentHeader" ? Ye : J;
625
624
  }
626
- const f = b(), {
627
- renderHeader: c
628
- } = f(e, l, S), L = Qe(), M = Ze(e, l, m, L), A = et(e, l, o, M, L, h), {
629
- renderListArea: ae
630
- } = qe(e, l, o, m, g, L, h, y, A, M);
631
- function oe(V) {
632
- S.search(V);
625
+ const G = H(), {
626
+ renderHeader: S
627
+ } = G(e, l, M), r = $e(), c = qe(e, l, s, r), L = Je(e, l, a, c, r, u), {
628
+ renderListArea: R
629
+ } = Xe(e, l, a, s, y, r, u, i, L, c);
630
+ function ne(k) {
631
+ M.search(k);
633
632
  }
634
- function se(V) {
635
- V && (m.load(V), o.value = B(0, k.value + O - 1));
633
+ function le(k) {
634
+ k && (s.load(k), a.value = t(0, h.value + o - 1));
636
635
  }
637
- function ie() {
638
- h.clearSelection(), L.clearActiveItem();
636
+ function ae() {
637
+ u.clearSelection(), r.clearActiveItem();
639
638
  }
640
- function ue() {
641
- return A.selectedItems.value;
639
+ function oe() {
640
+ return L.selectedItems.value;
642
641
  }
643
- function ce() {
644
- return A.selectedItems.value.map((V) => V[d.idField.value]);
642
+ function se() {
643
+ return L.selectedItems.value.map((k) => k[m.idField.value]);
645
644
  }
646
- function Y(V) {
647
- h.selectedValues.value = V, A.updateSelectedItems();
645
+ function X(k) {
646
+ u.selectedValues.value = k, L.updateSelectedItems();
648
647
  }
649
- function re() {
650
- return h.currentSelectedDataId.value;
648
+ function ie() {
649
+ return u.currentSelectedDataId.value;
651
650
  }
652
- function de(V) {
653
- R.activeRowById(V);
651
+ function ue(k) {
652
+ F.activeRowById(k);
654
653
  }
655
- function fe(V) {
656
- const _ = d.idField.value, E = o.value.find((U) => U.raw[_] === V), N = o.value.findIndex((U) => U.raw[_] === V);
657
- E && N > -1 && A.onClickItem(E, N);
654
+ function ce(k) {
655
+ const _ = m.idField.value, A = a.value.find((z) => z.raw[_] === k), E = a.value.findIndex((z) => z.raw[_] === k);
656
+ A && E > -1 && L.onClickItem(A, E);
658
657
  }
659
- function ve(V) {
660
- const _ = d.idField.value, E = o.value.find((N) => N.raw[_] === V);
661
- E && R.changeRow(E);
658
+ function re(k) {
659
+ const _ = m.idField.value, A = a.value.find((E) => E.raw[_] === k);
660
+ A && F.changeRow(A);
662
661
  }
663
- function me(V) {
664
- D.updatePagination(V);
662
+ function de(k) {
663
+ I.updatePagination(k);
665
664
  }
666
- function ge(V) {
667
- return o.value.filter((_) => V.includes(_.raw[e.idField]));
665
+ function fe(k) {
666
+ return a.value.filter((_) => k.includes(_.raw[e.idField]));
668
667
  }
669
668
  l.expose({
670
- search: oe,
671
- updateDataSource: se,
672
- clearSelection: ie,
673
- getSelections: ue,
674
- updateSelectionByIds: Y,
675
- getSelectionIds: ce,
676
- activeRowById: de,
677
- getCurrentRowId: re,
678
- clickRowItemById: fe,
679
- updatePagination: me,
680
- getVisibleDataByIds: ge,
681
- selectRowById: ve
669
+ search: ne,
670
+ updateDataSource: le,
671
+ clearSelection: ae,
672
+ getSelections: oe,
673
+ updateSelectionByIds: X,
674
+ getSelectionIds: se,
675
+ activeRowById: ue,
676
+ getCurrentRowId: ie,
677
+ clickRowItemById: ce,
678
+ updatePagination: de,
679
+ getVisibleDataByIds: fe,
680
+ selectRowById: re
682
681
  });
683
- function he(V) {
684
- e.multiSelect && (V.preventDefault(), V.stopPropagation());
682
+ function ve(k) {
683
+ e.multiSelect && (k.preventDefault(), k.stopPropagation());
685
684
  }
686
- te(() => e.selectionValues, (V, _) => {
687
- V !== _ && Y(V);
685
+ Z(() => e.selectionValues, (k, _) => {
686
+ k !== _ && X(k);
688
687
  });
689
- const Ce = Ae(e, h), {
690
- sidebarWidth: pe,
691
- showSidebarCheckBox: tt
692
- } = Ce, we = Ee(e, l), {
693
- applyColumnSorter: nt,
694
- columnContext: ye,
695
- updateColumnRenderContext: lt
696
- } = we, Ie = Ne(e, m, o, ye, y, k, O, pe, a, I, x), {
697
- shouldRenderPagination: at
698
- } = D, {
699
- renderDataGridPagination: ot
700
- } = ze(e, l, m, Ie, D, h);
688
+ const me = Le(e, u), {
689
+ sidebarWidth: ge,
690
+ showSidebarCheckBox: Qe
691
+ } = me, he = _e(e, l), {
692
+ applyColumnSorter: Ze,
693
+ columnContext: Ce,
694
+ updateColumnRenderContext: et
695
+ } = he, pe = Ge(e, s, a, Ce, i, h, o, ge, D), {
696
+ shouldRenderPagination: tt
697
+ } = I, {
698
+ renderDataGridPagination: nt
699
+ } = Ae(e, l, s, pe, I, u);
701
700
  return () => n("div", {
702
- class: H.value,
703
- onClick: he
704
- }, [c(), n("div", {
701
+ class: V.value,
702
+ onClick: ve
703
+ }, [S(), n("div", {
705
704
  ref: p,
706
705
  class: "f-list-view-content",
707
706
  onMouseover: () => {
708
- s.value = !0;
707
+ g.value = !0;
709
708
  },
710
709
  onMouseleave: () => {
711
- s.value = !1;
710
+ g.value = !1;
712
711
  }
713
- }, [ae()]), G.value && n("div", {
712
+ }, [R()]), B.value && n("div", {
714
713
  class: "f-list-view-footer"
715
714
  }, [e.footerTemplate ? e.footerTemplate() : l.slots.footer && l.slots.footer()])]);
716
715
  }
717
- }), ee = /* @__PURE__ */ ne({
716
+ }), Q = /* @__PURE__ */ ee({
718
717
  name: "FListViewTable",
719
- props: le,
718
+ props: te,
720
719
  emits: ["outputValue", "currentEvent", "selectionChanged"],
721
720
  setup(e, l) {
722
- const I = [{
721
+ const p = [{
723
722
  name: "任芳",
724
723
  code: "1.PO20198989001",
725
724
  date: "2024-02-19",
@@ -754,10 +753,10 @@ const W = /* @__PURE__ */ ne({
754
753
  desc: "导游5",
755
754
  amount: 84.13,
756
755
  avatar: "./assets/avatar5.png"
757
- }], p = P(() => e.data.length > 0 ? e.data : I);
756
+ }], w = x(() => e.data.length > 0 ? e.data : p);
758
757
  return () => {
759
- var w;
760
- return n(z, null, [(w = p.value) == null ? void 0 : w.map((a) => n("div", {
758
+ var g;
759
+ return n(N, null, [(g = w.value) == null ? void 0 : g.map((a) => n("div", {
761
760
  class: "f-template-listview-row"
762
761
  }, [n("div", {
763
762
  class: "list-view-item-title"
@@ -779,22 +778,22 @@ const W = /* @__PURE__ */ ne({
779
778
  class: "content-message"
780
779
  }, [n("div", {
781
780
  class: "ower"
782
- }, [n("p", null, [q("创建人")]), n("p", {
781
+ }, [n("p", null, [Y("创建人")]), n("p", {
783
782
  class: "con"
784
783
  }, [a.name])]), n("div", {
785
784
  class: "date"
786
- }, [n("p", null, [q("创建时间")]), n("p", {
785
+ }, [n("p", null, [Y("创建时间")]), n("p", {
787
786
  class: "con"
788
787
  }, [a.date])])])])]))]);
789
788
  };
790
789
  }
791
790
  });
792
- W.install = (e) => {
793
- e.component(W.name, W), e.component(ee.name, ee);
791
+ U.install = (e) => {
792
+ e.component(U.name, U), e.component(Q.name, Q);
794
793
  };
795
794
  export {
796
- W as FListView,
797
- ee as FListViewTable,
798
- W as default,
799
- le as listViewProps
795
+ U as FListView,
796
+ Q as FListViewTable,
797
+ U as default,
798
+ te as listViewProps
800
799
  };