@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,19 +1,19 @@
1
- import { ref as i, computed as L, createVNode as l, Fragment as N, watch as U, withModifiers as Fe, withDirectives as Te, vModelText as Re, defineComponent as Y, onMounted as se, inject as De, createTextVNode as te } from "vue";
2
- import Oe from "../tree-view/index.esm.js";
3
- import { LocaleService as K } from "../locale/index.esm.js";
4
- import { resolveAppearance as Me, createPropsResolver as xe } from "../dynamic-resolver/index.esm.js";
5
- import { getCustomStyle as ne, getCustomClass as X, withInstall as je } from "../common/index.esm.js";
6
- import { useFilter as Be, useIdentify as Le, useHierarchy as Ae, useGroupData as He, useDataView as Pe, useSelection as _e, usePagination as Ge, useRow as ze, useEdit as Ee, useVisualDataBound as Ne, useVisualDataCell as Ue, useVisualDataRow as $e, useVisualGroupRow as We, useVisualSummaryRow as qe, useVisualData as Ke, useSidebar as Xe, useColumn as Ye, useVirtualScroll as Je, getPagination as Qe } from "../data-view/index.esm.js";
7
- import { FCheckbox as J } from "../checkbox/index.esm.js";
8
- import { cloneDeep as le } from "lodash-es";
9
- import { useDesignerComponent as Ze } from "../designer-canvas/index.esm.js";
10
- const et = /* @__PURE__ */ new Map([
11
- ["appearance", Me]
1
+ import { ref as u, computed as L, createVNode as l, Fragment as E, watch as N, withModifiers as be, withDirectives as ke, vModelText as Ve, defineComponent as X, onMounted as ae, inject as Fe, createTextVNode as Z } from "vue";
2
+ import Te from "../tree-view/index.esm.js";
3
+ import { LocaleService as q } from "../locale/index.esm.js";
4
+ import { resolveAppearance as Re, createPropsResolver as De } from "../dynamic-resolver/index.esm.js";
5
+ import { getCustomStyle as ee, getCustomClass as K, withInstall as Me } from "../common/index.esm.js";
6
+ import { useFilter as Oe, useIdentify as xe, useHierarchy as je, useGroupData as Be, useDataView as Le, useSelection as Ae, usePagination as Pe, useRow as He, useEdit as _e, useVisualDataBound as Ge, useVisualDataCell as ze, useVisualDataRow as Ee, useVisualGroupRow as Ne, useVisualSummaryRow as Ue, useVisualData as $e, useSidebar as We, useColumn as qe, useVirtualScroll as Ke, getPagination as Xe } from "../data-view/index.esm.js";
7
+ import { FCheckbox as Y } from "../checkbox/index.esm.js";
8
+ import { cloneDeep as te } from "lodash-es";
9
+ import { useDesignerComponent as Ye } from "../designer-canvas/index.esm.js";
10
+ const Je = /* @__PURE__ */ new Map([
11
+ ["appearance", Re]
12
12
  ]);
13
- function tt(e, t, r) {
13
+ function Qe(e, t, d) {
14
14
  return t;
15
15
  }
16
- const nt = "transfer", lt = "A Farris Component", at = "object", ot = {
16
+ const Ze = "transfer", et = "A Farris Component", tt = "object", nt = {
17
17
  basic: {
18
18
  description: "Basic Infomation",
19
19
  title: "基本信息",
@@ -35,12 +35,12 @@ const nt = "transfer", lt = "A Farris Component", at = "object", ot = {
35
35
  }
36
36
  }
37
37
  }
38
- }, st = {
39
- title: nt,
40
- description: lt,
41
- type: at,
42
- categories: ot
43
- }, it = "https://json-schema.org/draft/2020-12/schema", ct = "https://farris-design.gitee.io/transfer.schema.json", ut = "transfer", rt = "A Farris Component", dt = "object", ft = {
38
+ }, lt = {
39
+ title: Ze,
40
+ description: et,
41
+ type: tt,
42
+ categories: nt
43
+ }, at = "https://json-schema.org/draft/2020-12/schema", st = "https://farris-design.gitee.io/transfer.schema.json", ot = "transfer", it = "A Farris Component", ct = "object", ut = {
44
44
  id: {
45
45
  description: "The unique identifier for transfer",
46
46
  type: "string"
@@ -102,18 +102,18 @@ const nt = "transfer", lt = "A Farris Component", at = "object", ot = {
102
102
  type: "boolean",
103
103
  default: !0
104
104
  }
105
- }, vt = [
105
+ }, rt = [
106
106
  "id",
107
107
  "type"
108
- ], mt = {
109
- $schema: it,
110
- $id: ct,
111
- title: ut,
112
- description: rt,
113
- type: dt,
114
- properties: ft,
115
- required: vt
116
- }, Q = {
108
+ ], dt = {
109
+ $schema: at,
110
+ $id: st,
111
+ title: ot,
112
+ description: it,
113
+ type: ct,
114
+ properties: ut,
115
+ required: rt
116
+ }, J = {
117
117
  dataSource: {
118
118
  type: Array,
119
119
  default: []
@@ -141,7 +141,7 @@ const nt = "transfer", lt = "A Farris Component", at = "object", ot = {
141
141
  default: "draggable-item--text-truncate",
142
142
  validator: (e) => typeof e == "string" || typeof e == "function"
143
143
  }
144
- }, ie = xe(Q, mt, et, tt, st), gt = {
144
+ }, se = De(J, dt, Je, Qe, lt), ft = {
145
145
  /** 列集合 */
146
146
  columns: {
147
147
  type: Array,
@@ -209,218 +209,218 @@ const nt = "transfer", lt = "A Farris Component", at = "object", ot = {
209
209
  /** 分页 */
210
210
  pagination: { type: Object, default: { enable: !1, size: 20 } }
211
211
  };
212
- function ht(e, t) {
213
- function r(f) {
214
- const d = [];
215
- let a = f.nextNode();
216
- for (; a; )
217
- d.push(a), a = f.nextNode();
218
- return d;
212
+ function vt(e, t) {
213
+ function d(i) {
214
+ const f = [];
215
+ let o = i.nextNode();
216
+ for (; o; )
217
+ f.push(o), o = i.nextNode();
218
+ return f;
219
219
  }
220
- function V(f, d) {
221
- const a = document.createTreeWalker(f, NodeFilter.SHOW_TEXT);
222
- return r(a).map((m) => ({ textNode: m, text: (m.textContent || "").toLocaleLowerCase() })).map(({ textNode: m, text: S }) => {
223
- const y = [];
224
- let C = 0;
225
- for (; C < S.length; ) {
226
- const I = S.indexOf(d, C);
227
- if (I === -1)
220
+ function T(i, f) {
221
+ const o = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
222
+ return d(o).map((b) => ({ textNode: b, text: (b.textContent || "").toLocaleLowerCase() })).map(({ textNode: b, text: m }) => {
223
+ const v = [];
224
+ let M = 0;
225
+ for (; M < m.length; ) {
226
+ const V = m.indexOf(f, M);
227
+ if (V === -1)
228
228
  break;
229
- y.push(I), C = I + d.length;
229
+ v.push(V), M = V + f.length;
230
230
  }
231
- return y.map((I) => {
232
- const F = new Range();
233
- return F.setStart(m, I), F.setEnd(m, I + d.length), F;
231
+ return v.map((V) => {
232
+ const k = new Range();
233
+ return k.setStart(b, V), k.setEnd(b, V + f.length), k;
234
234
  });
235
235
  }).flat();
236
236
  }
237
- function O(f) {
238
- if (!CSS.highlights || (CSS.highlights.clear(), !f || !t))
237
+ function R(i) {
238
+ if (!CSS.highlights || (CSS.highlights.clear(), !i || !t))
239
239
  return;
240
- const d = V(t.value, f.toLocaleLowerCase()), a = new Highlight(...d);
241
- CSS.highlights.set("search-result", a);
240
+ const f = T(t.value, i.toLocaleLowerCase()), o = new Highlight(...f);
241
+ CSS.highlights.set("search-result", o);
242
242
  }
243
- return { search: O };
243
+ return { search: R };
244
244
  }
245
- function ae(e, t, r, V, O, f, d, a, p, M) {
246
- const k = i(e.size), m = i(e.textField), S = i(e.titleField), y = i(e.disableField), C = L(() => {
247
- var n, v;
248
- return ((n = e.selection) == null ? void 0 : n.multiSelect) && ((v = e.selection) == null ? void 0 : v.showCheckbox);
245
+ function ne(e, t, d, T, R, i, f, o, y, C) {
246
+ const S = u(e.size), b = u(e.textField), m = u(e.titleField), v = u(e.disableField), M = L(() => {
247
+ var n, p;
248
+ return ((n = e.selection) == null ? void 0 : n.multiSelect) && ((p = e.selection) == null ? void 0 : p.showCheckbox);
249
249
  }), {
250
- onMouseenterItem: I,
251
- onMouseoverItem: F,
250
+ onMouseenterItem: V,
251
+ onMouseoverItem: k,
252
252
  onMouseoutItem: D
253
- } = f, {
254
- getKey: T,
255
- listViewItemClass: j,
253
+ } = i, {
254
+ getKey: O,
255
+ listViewItemClass: B,
256
256
  listViewItemStyle: A,
257
- onCheckItem: P,
258
- onClickItem: g
259
- } = d, w = L(() => {
257
+ onCheckItem: H,
258
+ onClickItem: h
259
+ } = f, w = L(() => {
260
260
  const n = {
261
261
  "text-overflow": "ellipsis",
262
262
  overflow: "hidden",
263
263
  "white-space": "nowrap"
264
264
  };
265
265
  return e.itemClass ? n : {
266
- margin: k.value === "small" ? "0.25rem 0" : "8px 0",
266
+ margin: S.value === "small" ? "0.25rem 0" : "8px 0",
267
267
  ...n
268
268
  };
269
269
  });
270
- function h(n, v, b) {
271
- return n.checked = a.findIndexInSelectedItems(n) > -1, l("li", {
272
- class: j(n, v),
273
- id: T(n, v),
274
- key: T(n, v),
275
- style: A(n, v),
276
- onClick: (R) => g(n, v, R),
277
- onMouseenter: (R) => I(R, n, v),
278
- onMouseover: (R) => F(R, n, v),
279
- onMouseout: (R) => D(R, n, v)
280
- }, [C.value && l("div", {
270
+ function g(n, p, I) {
271
+ return n.checked = o.findIndexInSelectedItems(n) > -1, l("li", {
272
+ class: B(n, p),
273
+ id: O(n, p),
274
+ key: O(n, p),
275
+ style: A(n, p),
276
+ onClick: (F) => h(n, p, F),
277
+ onMouseenter: (F) => V(F, n, p),
278
+ onMouseover: (F) => k(F, n, p),
279
+ onMouseout: (F) => D(F, n, p)
280
+ }, [M.value && l("div", {
281
281
  class: "f-list-select",
282
- onClick: (R) => R.stopPropagation()
283
- }, [l(J, {
284
- id: "list-" + T(n, v),
282
+ onClick: (F) => F.stopPropagation()
283
+ }, [l(Y, {
284
+ id: "list-" + O(n, p),
285
285
  customClass: "listview-checkbox float-left",
286
- disabled: n[y.value],
286
+ disabled: n[v.value],
287
287
  checked: n.checked,
288
- "onUpdate:checked": (R) => n.checked = R,
289
- onChange: (R) => {
290
- P(n, v, !R.checked);
288
+ "onUpdate:checked": (F) => n.checked = F,
289
+ onChange: (F) => {
290
+ H(n, p, !F.checked);
291
291
  }
292
292
  }, null)]), l("div", {
293
293
  class: "f-list-content"
294
294
  }, [l("div", {
295
295
  class: e.itemContentClass,
296
296
  style: w.value,
297
- title: n.raw[S.value] || n.raw[m.value]
298
- }, [n.raw[m.value]])])]);
297
+ title: n.raw[m.value] || n.raw[b.value]
298
+ }, [n.raw[b.value]])])]);
299
299
  }
300
300
  return {
301
- renderItem: h
301
+ renderItem: g
302
302
  };
303
303
  }
304
- function pt(e, t, r, V, O, f, d, a, p, M) {
305
- const k = i(e.multiSelect), m = i(e.disableField), S = i(e.textField), {
306
- onMouseenterItem: y,
307
- onMouseoverItem: C,
308
- onMouseoutItem: I
309
- } = f, {
310
- getKey: F,
304
+ function mt(e, t, d, T, R, i, f, o, y, C) {
305
+ const S = u(e.multiSelect), b = u(e.disableField), m = u(e.textField), {
306
+ onMouseenterItem: v,
307
+ onMouseoverItem: M,
308
+ onMouseoutItem: V
309
+ } = i, {
310
+ getKey: k,
311
311
  listViewItemClass: D,
312
- listViewItemStyle: T,
313
- onCheckItem: j,
312
+ listViewItemStyle: O,
313
+ onCheckItem: B,
314
314
  onClickItem: A,
315
- updateSelectedItems: P
316
- } = d;
317
- function g(h, n, v) {
318
- return e.contentTemplate ? l(N, null, [e.contentTemplate({
319
- item: h.raw,
315
+ updateSelectedItems: H
316
+ } = f;
317
+ function h(g, n, p) {
318
+ return e.contentTemplate ? l(E, null, [e.contentTemplate({
319
+ item: g.raw,
320
320
  index: n,
321
- selectedItem: v
322
- })]) : t.slots.content ? l(N, null, [t.slots.content && t.slots.content({
323
- item: h.raw,
321
+ selectedItem: p
322
+ })]) : t.slots.content ? l(E, null, [t.slots.content && t.slots.content({
323
+ item: g.raw,
324
324
  index: n,
325
- selectedItem: v
325
+ selectedItem: p
326
326
  })]) : l("div", {
327
327
  style: "margin: 10px 0;"
328
- }, [h.raw[S.value || "name"]]);
328
+ }, [g.raw[m.value || "name"]]);
329
329
  }
330
- function w(h, n, v) {
330
+ function w(g, n, p) {
331
331
  return l("li", {
332
- class: D(h, n),
333
- id: F(h, n),
334
- key: F(h, n),
335
- style: T(h, n),
336
- onClick: (b) => A(h, n, b),
337
- onMouseenter: (b) => y(b, h, n),
338
- onMouseover: (b) => C(b, h, n),
339
- onMouseout: (b) => I(b, h, n)
340
- }, [k.value && l("div", {
332
+ class: D(g, n),
333
+ id: k(g, n),
334
+ key: k(g, n),
335
+ style: O(g, n),
336
+ onClick: (I) => A(g, n, I),
337
+ onMouseenter: (I) => v(I, g, n),
338
+ onMouseover: (I) => M(I, g, n),
339
+ onMouseout: (I) => V(I, g, n)
340
+ }, [S.value && l("div", {
341
341
  class: "f-list-select",
342
- onClick: (b) => b.stopPropagation()
343
- }, [l(J, {
344
- id: "list-" + F(h, n),
342
+ onClick: (I) => I.stopPropagation()
343
+ }, [l(Y, {
344
+ id: "list-" + k(g, n),
345
345
  customClass: "listview-checkbox",
346
- disabled: h[m.value],
347
- checked: h.checked,
348
- "onUpdate:checked": (b) => h.checked = b,
349
- onChange: (b) => {
350
- j(h, n, !b.checked), P();
346
+ disabled: g[b.value],
347
+ checked: g.checked,
348
+ "onUpdate:checked": (I) => g.checked = I,
349
+ onChange: (I) => {
350
+ B(g, n, !I.checked), H();
351
351
  }
352
352
  }, null)]), l("div", {
353
353
  class: "f-list-content"
354
- }, [g(h, n, v)])]);
354
+ }, [h(g, n, p)])]);
355
355
  }
356
356
  return {
357
357
  renderItem: w
358
358
  };
359
359
  }
360
- function yt(e, t, r, V, O, f, d, a, p, M) {
361
- const k = i(e.multiSelect), m = i(e.disableField), S = i(e.textField), {
362
- onMouseenterItem: y,
363
- onMouseoverItem: C,
364
- onMouseoutItem: I
365
- } = f, {
366
- getKey: F,
360
+ function gt(e, t, d, T, R, i, f, o, y, C) {
361
+ const S = u(e.multiSelect), b = u(e.disableField), m = u(e.textField), {
362
+ onMouseenterItem: v,
363
+ onMouseoverItem: M,
364
+ onMouseoutItem: V
365
+ } = i, {
366
+ getKey: k,
367
367
  listViewItemClass: D,
368
- onCheckItem: T,
369
- onClickItem: j
370
- } = d, {
368
+ onCheckItem: O,
369
+ onClickItem: B
370
+ } = f, {
371
371
  dragstart: A,
372
- dragenter: P,
373
- dragover: g,
372
+ dragenter: H,
373
+ dragover: h,
374
374
  dragend: w
375
- } = V, {
376
- removeItem: h
377
- } = p, n = L(() => ({
378
- margin: k.value ? "10px 0" : "10px 0px 10px 14px"
375
+ } = T, {
376
+ removeItem: g
377
+ } = y, n = L(() => ({
378
+ margin: S.value ? "10px 0" : "10px 0px 10px 14px"
379
379
  }));
380
- function v(s, o = "") {
381
- const H = s.target;
382
- H.title = H.scrollWidth > H.clientWidth ? o : "";
380
+ function p(a, s = "") {
381
+ const P = a.target;
382
+ P.title = P.scrollWidth > P.clientWidth ? s : "";
383
383
  }
384
- function b(s) {
384
+ function I(a) {
385
385
  return l("div", {
386
386
  style: n.value,
387
- onMouseenter: (o) => v(o, s.raw[S.value || "name"])
388
- }, [s.raw[S.value || "name"]]);
387
+ onMouseenter: (s) => p(s, a.raw[m.value || "name"])
388
+ }, [a.raw[m.value || "name"]]);
389
389
  }
390
- function R() {
391
- return t.slots.itemContent ? t.slots.itemContent : b;
390
+ function F() {
391
+ return t.slots.itemContent ? t.slots.itemContent : I;
392
392
  }
393
- const c = R();
394
- function u(s, o, H) {
393
+ const c = F();
394
+ function r(a, s, P) {
395
395
  return l("li", {
396
- class: D(s, o),
397
- id: F(s, o),
398
- key: F(s, o),
399
- onClick: (x) => j(s, o, x),
400
- onMouseenter: (x) => y(x, s, o),
401
- onMouseover: (x) => C(x, s, o),
402
- onMouseout: (x) => I(x, s, o),
396
+ class: D(a, s),
397
+ id: k(a, s),
398
+ key: k(a, s),
399
+ onClick: (x) => B(a, s, x),
400
+ onMouseenter: (x) => v(x, a, s),
401
+ onMouseover: (x) => M(x, a, s),
402
+ onMouseout: (x) => V(x, a, s),
403
403
  draggable: "true",
404
- onDragstart: (x) => A(x, s, o),
405
- onDragenter: (x) => P(x, o),
406
- onDragend: (x) => w(x, s),
407
- onDragover: (x) => g(x)
408
- }, [k.value && l("div", {
404
+ onDragstart: (x) => A(x, a, s),
405
+ onDragenter: (x) => H(x, s),
406
+ onDragend: (x) => w(x, a),
407
+ onDragover: (x) => h(x)
408
+ }, [S.value && l("div", {
409
409
  class: "f-list-select",
410
410
  onClick: (x) => x.stopPropagation()
411
- }, [l(J, {
412
- id: "list-" + F(s, o),
411
+ }, [l(Y, {
412
+ id: "list-" + k(a, s),
413
413
  customClass: "listview-checkbox",
414
- disabled: s[m.value] || !s.checked,
415
- checked: s.checked,
416
- "onUpdate:checked": (x) => s.checked = x,
417
- onChange: (x) => T(s, o, !x.checked)
414
+ disabled: a[b.value] || !a.checked,
415
+ checked: a.checked,
416
+ "onUpdate:checked": (x) => a.checked = x,
417
+ onChange: (x) => O(a, s, !x.checked)
418
418
  }, null)]), l("div", {
419
419
  class: "f-list-content"
420
- }, [c(s)]), l("div", {
420
+ }, [c(a)]), l("div", {
421
421
  class: "f-list-remove",
422
422
  onClick: (x) => {
423
- x.stopPropagation(), h(o);
423
+ x.stopPropagation(), g(s);
424
424
  }
425
425
  }, [l("div", {
426
426
  class: "f-list-remove-icon"
@@ -433,72 +433,72 @@ function yt(e, t, r, V, O, f, d, a, p, M) {
433
433
  }, null)])])]);
434
434
  }
435
435
  return {
436
- renderItem: u
436
+ renderItem: r
437
437
  };
438
438
  }
439
- function Ct(e, t, r, V, O, f, d, a, p, M) {
440
- var F;
441
- const k = i(((F = e.group) == null ? void 0 : F.groupFields) || []), {
442
- collpaseGroupIconClass: m
443
- } = O, {
444
- toggleGroupRow: S
445
- } = M;
446
- function y(D, T) {
447
- T.collapse = !T.collapse, r.value = S(T.collapse ? "collapse" : "expand", T, r.value);
439
+ function pt(e, t, d, T, R, i, f, o, y, C) {
440
+ var k;
441
+ const S = u(((k = e.group) == null ? void 0 : k.groupFields) || []), {
442
+ collpaseGroupIconClass: b
443
+ } = R, {
444
+ toggleGroupRow: m
445
+ } = C;
446
+ function v(D, O) {
447
+ O.collapse = !O.collapse, d.value = m(O.collapse ? "collapse" : "expand", O, d.value);
448
448
  }
449
- function C(D, T, j) {
450
- return t.slots.group ? l(N, null, [t.slots.content && t.slots.group({
449
+ function M(D, O, B) {
450
+ return t.slots.group ? l(E, null, [t.slots.content && t.slots.group({
451
451
  item: D.raw,
452
- index: T,
453
- selectedItem: j
452
+ index: O,
453
+ selectedItem: B
454
454
  })]) : l("div", {
455
455
  class: "f-navlookup-recentHeader",
456
- onClick: (A) => y(A, D)
456
+ onClick: (A) => v(A, D)
457
457
  }, [l("div", {
458
458
  class: "fv-grid-group-row-icon"
459
459
  }, [l("span", {
460
- class: m(D)
460
+ class: b(D)
461
461
  }, null)]), l("div", {
462
462
  class: "f-navlookup-recommandLabel"
463
- }, [D.raw[k.value[D.layer]]])]);
463
+ }, [D.raw[S.value[D.layer]]])]);
464
464
  }
465
- function I(D, T, j) {
466
- return D.layer > -1 && C(D, T, j);
465
+ function V(D, O, B) {
466
+ return D.layer > -1 && M(D, O, B);
467
467
  }
468
468
  return {
469
- renderItem: I
469
+ renderItem: V
470
470
  };
471
471
  }
472
- function St(e, t, r, V) {
473
- const { dataView: O } = r, { updateSelectedItems: f } = V;
474
- function d(a) {
475
- if (a > -1 && a < O.value.length) {
476
- if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(O.value[a]))
472
+ function ht(e, t, d, T) {
473
+ const { dataView: R } = d, { updateSelectedItems: i } = T;
474
+ function f(o) {
475
+ if (o > -1 && o < R.value.length) {
476
+ if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(R.value[o]))
477
477
  return;
478
- const p = O.value.splice(a, 1);
479
- f(), t.emit("removeItem", p[0]);
478
+ const y = R.value.splice(o, 1);
479
+ i(), t.emit("removeItem", y[0]);
480
480
  }
481
481
  }
482
- return { removeItem: d };
482
+ return { removeItem: f };
483
483
  }
484
- function wt(e, t, r, V, O, f, d, a, p, M) {
485
- const k = i(e.view), m = i(e.view === "CardView"), S = i({}), y = St(e, t, V, p), C = L(() => ({
484
+ function yt(e, t, d, T, R, i, f, o, y, C) {
485
+ const S = u(e.view), b = u(e.view === "CardView"), m = u({}), v = ht(e, t, T, y), M = L(() => ({
486
486
  "f-list-view-group": !0,
487
487
  "f-list-view-group-multiselect": e.multiSelect,
488
- "d-flex": m.value,
489
- "flex-wrap": m.value
490
- })), I = L(() => !!r.value && r.value.length > 0), F = L(() => r.value.length === 0);
491
- L(() => F.value && !t.slots.empty);
488
+ "d-flex": b.value,
489
+ "flex-wrap": b.value
490
+ })), V = L(() => !!d.value && d.value.length > 0), k = L(() => d.value.length === 0);
491
+ L(() => k.value && !t.slots.empty);
492
492
  function D() {
493
- return k.value === "SingleView" ? ae : k.value === "DraggableView" ? yt : (k.value === "ContentView" || k.value === "CardView") && (e.contentTemplate || t.slots.content) ? pt : ae;
493
+ return S.value === "SingleView" ? ne : S.value === "DraggableView" ? gt : (S.value === "ContentView" || S.value === "CardView") && (e.contentTemplate || t.slots.content) ? mt : ne;
494
494
  }
495
- const T = D(), {
496
- renderItem: j
497
- } = T(e, t, r, M, O, f, p, d, y, a), {
495
+ const O = D(), {
496
+ renderItem: B
497
+ } = O(e, t, d, C, R, i, y, f, v, o), {
498
498
  renderItem: A
499
- } = Ct(e, t, r, M, O, f, p, d, y, a), P = [j, A];
500
- function g() {
501
- return r.value.filter((n) => n.visible !== !1).map((n, v) => P[n.type](n, v, S));
499
+ } = pt(e, t, d, C, R, i, y, f, v, o), H = [B, A];
500
+ function h() {
501
+ return d.value.filter((n) => n.visible !== !1).map((n, p) => H[n.type](n, p, m));
502
502
  }
503
503
  function w() {
504
504
  return l("div", {
@@ -506,126 +506,126 @@ function wt(e, t, r, V, O, f, d, a, p, M) {
506
506
  style: "margin: 0 auto;"
507
507
  }, [l("p", {
508
508
  class: "f-empty-title"
509
- }, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() : K.getLocaleValue("listView.emptyMessage")])]);
509
+ }, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() : q.getLocaleValue("listView.emptyMessage")])]);
510
510
  }
511
- function h() {
511
+ function g() {
512
512
  return l("ul", {
513
- class: C.value,
513
+ class: M.value,
514
514
  style: "list-style: none;"
515
- }, [I.value && g(), F.value && w()]);
515
+ }, [V.value && h(), k.value && w()]);
516
516
  }
517
517
  return {
518
- renderListArea: h
518
+ renderListArea: g
519
519
  };
520
520
  }
521
- function It(e, t, r) {
522
- function V() {
521
+ function Ct(e, t, d) {
522
+ function T() {
523
523
  return t.slots.header && l("div", {
524
524
  class: "f-list-view-header"
525
525
  }, [t.slots.header()]);
526
526
  }
527
527
  return {
528
- renderHeader: V
528
+ renderHeader: T
529
529
  };
530
530
  }
531
- function oe(e, t, r) {
532
- const V = i(e.headerClass), O = i(e.placeholder), f = i(""), d = L(() => !f.value), a = L(() => !!f.value);
533
- function p(S) {
534
- f.value = "";
531
+ function le(e, t, d) {
532
+ const T = u(e.headerClass), R = u(e.placeholder), i = u(""), f = L(() => !i.value), o = L(() => !!i.value);
533
+ function y(m) {
534
+ i.value = "";
535
535
  }
536
- U(f, (S) => {
537
- e.enableHighlightSearch && r.search(S), t.emit("afterSearch", S);
536
+ N(i, (m) => {
537
+ e.enableHighlightSearch && d.search(m), t.emit("afterSearch", m);
538
538
  });
539
- const M = L(() => {
540
- const S = {
539
+ const C = L(() => {
540
+ const m = {
541
541
  "form-group": !0,
542
542
  "farris-form-group": !0
543
543
  };
544
- return V.value && V.value.split(" ").reduce((C, I) => (C[I] = !0, C), S), S;
544
+ return T.value && T.value.split(" ").reduce((M, V) => (M[V] = !0, M), m), m;
545
545
  });
546
- function k(S) {
546
+ function S(m) {
547
547
  }
548
- function m() {
548
+ function b() {
549
549
  return l("div", {
550
550
  class: "f-list-view-header",
551
- onClick: Fe(() => k, ["prevent", "stop"])
551
+ onClick: be(() => S, ["prevent", "stop"])
552
552
  }, [l("div", {
553
- class: M.value
553
+ class: C.value
554
554
  }, [l("div", {
555
555
  class: "farris-input-wrap"
556
556
  }, [l("div", {
557
557
  class: "f-cmp-inputgroup"
558
558
  }, [l("div", {
559
559
  class: "input-group f-state-editable"
560
- }, [Te(l("input", {
560
+ }, [ke(l("input", {
561
561
  class: "form-control f-utils-fill text-left",
562
- "onUpdate:modelValue": (S) => f.value = S,
562
+ "onUpdate:modelValue": (m) => i.value = m,
563
563
  name: "input-group-value",
564
564
  type: "text",
565
- placeholder: O.value,
565
+ placeholder: R.value,
566
566
  autocomplete: "off"
567
- }, null), [[Re, f.value]]), l("div", {
567
+ }, null), [[Ve, i.value]]), l("div", {
568
568
  class: "input-group-append"
569
- }, [a.value && l("span", {
569
+ }, [o.value && l("span", {
570
570
  class: "input-group-text input-group-clear",
571
- onClick: (S) => p()
571
+ onClick: (m) => y()
572
572
  }, [l("i", {
573
573
  class: "f-icon f-icon-close-circle"
574
- }, null)]), d.value && l("span", {
574
+ }, null)]), f.value && l("span", {
575
575
  class: "input-group-text"
576
576
  }, [l("span", {
577
577
  class: "f-icon f-icon-search"
578
578
  }, null)])])])])])])]);
579
579
  }
580
580
  return {
581
- renderHeader: m
581
+ renderHeader: b
582
582
  };
583
583
  }
584
- function bt() {
585
- const e = i(""), t = i(-1), r = i(""), V = i(-1), O = i(!1);
586
- function f(m, S, y) {
587
- V.value = y;
584
+ function St() {
585
+ const e = u(""), t = u(-1), d = u(""), T = u(-1), R = u(!1);
586
+ function i(b, m, v) {
587
+ T.value = v;
588
588
  }
589
- function d(m, S, y) {
590
- O.value || (V.value = y);
589
+ function f(b, m, v) {
590
+ R.value || (T.value = v);
591
591
  }
592
- function a(m, S, y) {
593
- V.value = -1;
592
+ function o(b, m, v) {
593
+ T.value = -1;
594
594
  }
595
- function p() {
596
- O.value = !0;
595
+ function y() {
596
+ R.value = !0;
597
597
  }
598
- function M() {
599
- O.value = !1;
598
+ function C() {
599
+ R.value = !1;
600
600
  }
601
- function k() {
601
+ function S() {
602
602
  t.value = -1, e.value = "";
603
603
  }
604
604
  return {
605
605
  activeIndex: t,
606
- focusedItemId: r,
607
- hoverIndex: V,
608
- clearActiveItem: k,
609
- onMouseenterItem: f,
610
- onMouseoverItem: d,
611
- onMouseoutItem: a,
612
- resumeHover: M,
613
- suspendHover: p
606
+ focusedItemId: d,
607
+ hoverIndex: T,
608
+ clearActiveItem: S,
609
+ onMouseenterItem: i,
610
+ onMouseoverItem: f,
611
+ onMouseoutItem: o,
612
+ resumeHover: C,
613
+ suspendHover: y
614
614
  };
615
615
  }
616
- function kt(e, t, r, V) {
617
- const O = i(e.idField), { dataView: f } = r, d = i(-1), a = i(!1), { activeIndex: p, focusedItemId: M, hoverIndex: k, resumeHover: m, suspendHover: S } = V;
618
- let y, C = 0, I = 0;
619
- function F(g, w) {
620
- const h = g - C, n = w - I;
621
- y.style.left = parseInt(y.style.left) + h + "px", y.style.top = parseInt(y.style.top) + n + "px", C = g, I = w;
616
+ function wt(e, t, d, T) {
617
+ const R = u(e.idField), { dataView: i } = d, f = u(-1), o = u(!1), { activeIndex: y, focusedItemId: C, hoverIndex: S, resumeHover: b, suspendHover: m } = T;
618
+ let v, M = 0, V = 0;
619
+ function k(h, w) {
620
+ const g = h - M, n = w - V;
621
+ v.style.left = parseInt(v.style.left) + g + "px", v.style.top = parseInt(v.style.top) + n + "px", M = h, V = w;
622
622
  }
623
- function D(g) {
624
- const { left: w, top: h } = g.getBoundingClientRect(), n = g.cloneNode(!0);
623
+ function D(h) {
624
+ const { left: w, top: g } = h.getBoundingClientRect(), n = h.cloneNode(!0);
625
625
  return n.className = n.className + " f-listview-drag-moving", n.style.cssText = `
626
626
  position:absolute;
627
627
  left:${w}px;
628
- top:${document.documentElement.scrollTop ? h + document.documentElement.scrollTop : h}px;
628
+ top:${document.documentElement.scrollTop ? g + document.documentElement.scrollTop : g}px;
629
629
  z-index: 999999;
630
630
  pointer-events: none;
631
631
  border-radius: 10px;
@@ -634,261 +634,260 @@ function kt(e, t, r, V) {
634
634
  align-items: center;
635
635
  float: none;
636
636
  text-align: initial;
637
- width:${getComputedStyle(g).width};
638
- height:${getComputedStyle(g).height};
637
+ width:${getComputedStyle(h).width};
638
+ height:${getComputedStyle(h).height};
639
639
  `, n.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", n.children[0].children[0].style.cssText = `
640
640
  margin: 10px 0px 10px 14px;
641
641
  overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
642
642
  `, n.children[1].style.cssText = "width: 30px;padding: 0 14px 0 0", n.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(n), n;
643
643
  }
644
- function T(g, w, h) {
645
- if (g.stopPropagation(), S(), w) {
646
- if (y = D(g.target), g.dataTransfer) {
644
+ function O(h, w, g) {
645
+ if (h.stopPropagation(), m(), w) {
646
+ if (v = D(h.target), h.dataTransfer) {
647
647
  const n = new Image();
648
- n.src = "", g.dataTransfer.setDragImage(n, 0, 0);
648
+ n.src = "", h.dataTransfer.setDragImage(n, 0, 0);
649
649
  }
650
- C = g.pageX, I = g.pageY, setTimeout(() => {
651
- d.value = h, a.value = !0, w.moving = !0;
650
+ M = h.pageX, V = h.pageY, setTimeout(() => {
651
+ f.value = g, o.value = !0, w.moving = !0;
652
652
  });
653
653
  }
654
654
  }
655
- function j(g, w) {
656
- if (g.preventDefault(), d.value !== w) {
657
- const h = f.value[d.value], n = f.value;
658
- n.splice(d.value, 1), n.splice(w, 0, h), d.value = w, F(g.pageX, g.pageY);
655
+ function B(h, w) {
656
+ if (h.preventDefault(), f.value !== w) {
657
+ const g = i.value[f.value], n = i.value;
658
+ n.splice(f.value, 1), n.splice(w, 0, g), f.value = w, k(h.pageX, h.pageY);
659
659
  }
660
660
  }
661
- function A(g) {
662
- g.preventDefault(), g.dataTransfer && (g.dataTransfer.dropEffect = "move"), F(g.pageX, g.pageY);
661
+ function A(h) {
662
+ h.preventDefault(), h.dataTransfer && (h.dataTransfer.dropEffect = "move"), k(h.pageX, h.pageY);
663
663
  }
664
- function P(g, w) {
665
- w && (w.moving = !1, y && (document.body.removeChild(y), y = null)), f.value.forEach((h, n) => {
666
- h.__fv_index__ = n;
667
- }), a.value = !1, m(), k.value = w.raw.__fv_index__, p.value = w.raw.__fv_index__, M.value = w.raw[O.value], t.emit("change", f.value), t.emit("activeChange", [w.raw]);
664
+ function H(h, w) {
665
+ w && (w.moving = !1, v && (document.body.removeChild(v), v = null)), i.value.forEach((g, n) => {
666
+ g.__fv_index__ = n;
667
+ }), o.value = !1, b(), S.value = w.raw.__fv_index__, y.value = w.raw.__fv_index__, C.value = w.raw[R.value], t.emit("change", i.value), t.emit("activeChange", [w.raw]);
668
668
  }
669
669
  return {
670
- dragstart: T,
671
- dragenter: j,
670
+ dragstart: O,
671
+ dragenter: B,
672
672
  dragover: A,
673
- dragend: P,
674
- isDragging: a
673
+ dragend: H,
674
+ isDragging: o
675
675
  };
676
676
  }
677
- function Vt(e, t, r, V, O, f) {
678
- const d = i(e.idField), a = i(e.disableField), p = i(e.draggable);
679
- i(e.itemClass);
680
- const M = i(e.selection.multiSelect ?? !1), k = i(e.selection.multiSelectMode), { isDragging: m } = V, { activeIndex: S, focusedItemId: y, hoverIndex: C } = O, { clearSelection: I, getSelectedItems: F, toggleSelectItem: D, currentSelectedDataId: T } = f, j = i(F()), A = (u) => j.value.length === 0 ? !1 : j.value.some((s) => {
681
- let o = "";
682
- return s.data ? o = s.data[d.value] : o = s[d.value], o === u;
677
+ function It(e, t, d, T, R, i) {
678
+ const f = u(e.idField), o = u(e.disableField), y = u(e.draggable);
679
+ u(e.itemClass);
680
+ const C = u(e.selection.multiSelect ?? !1), S = u(e.selection.multiSelectMode), { isDragging: b } = T, { activeIndex: m, focusedItemId: v, hoverIndex: M } = R, { clearSelection: V, getSelectedItems: k, toggleSelectItem: D, currentSelectedDataId: O } = i, B = u(k()), A = (r) => B.value.length === 0 ? !1 : B.value.some((a) => {
681
+ let s = "";
682
+ return a.data ? s = a.data[f.value] : s = a[f.value], s === r;
683
683
  });
684
- function P() {
685
- j.value = F();
684
+ function H() {
685
+ B.value = k();
686
686
  }
687
- function g(u, s) {
688
- return u.raw[d.value] != null ? u.raw[d.value] : "";
687
+ function h(r, a) {
688
+ return r.raw[f.value] != null ? r.raw[f.value] : "";
689
689
  }
690
- function w(u, s) {
691
- const o = {
690
+ function w(r, a) {
691
+ const s = {
692
692
  "f-list-view-group-item": !0,
693
- "f-list-view-draggable-item": p.value,
694
- "f-un-click": !u.checked,
695
- "f-un-select": !!u.raw[a.value],
693
+ "f-list-view-draggable-item": y.value,
694
+ "f-un-click": !r.checked,
695
+ "f-un-select": !!r.raw[o.value],
696
696
  "f-listview-active": (
697
697
  // 多选
698
- M.value && A(g(u)) || // 单选
699
- !M.value && u.raw[d.value] === T.value
698
+ C.value && A(h(r)) || // 单选
699
+ !C.value && r.raw[f.value] === O.value
700
700
  ),
701
- "f-listview-hover": !m.value && s === C.value,
702
- moving: !!u.moving
701
+ "f-listview-hover": !b.value && a === M.value,
702
+ moving: !!r.moving
703
703
  };
704
704
  if (typeof e.itemClass == "string")
705
- return X(o, e.itemClass);
705
+ return K(s, e.itemClass);
706
706
  if (typeof e.itemClass == "function") {
707
- const H = e.itemClass(u);
708
- return X(o, H);
707
+ const P = e.itemClass(r);
708
+ return K(s, P);
709
709
  }
710
- return o;
710
+ return s;
711
711
  }
712
- function h(u, s) {
713
- const o = {};
712
+ function g(r, a) {
713
+ const s = {};
714
714
  if (typeof e.itemStyle == "string")
715
- return ne(o, e.itemStyle);
715
+ return ee(s, e.itemStyle);
716
716
  if (typeof e.itemStyle == "function") {
717
- const H = e.itemStyle(u);
718
- return ne(o, H);
717
+ const P = e.itemStyle(r);
718
+ return ee(s, P);
719
719
  }
720
- return o;
720
+ return s;
721
721
  }
722
- const n = L(() => !M.value);
723
- function v(u, s, o) {
724
- u.checked = o, !u.raw[a.value] && (n.value && (y.value = u.raw[d.value]), D(u));
722
+ const n = L(() => !C.value);
723
+ function p(r, a, s) {
724
+ r.checked = s, !r.raw[o.value] && (n.value && (v.value = r.raw[f.value]), D(r));
725
725
  }
726
- const b = L(() => M.value && k.value === "OnCheckClearByClick"), R = L(() => !M.value || M.value && (k.value === "OnCheckAndClick" || k.value === "OnClick"));
727
- function c(u, s, o) {
728
- if (u.raw[a.value]) {
729
- o == null || o.preventDefault(), o == null || o.stopPropagation();
726
+ const I = L(() => C.value && S.value === "OnCheckClearByClick"), F = L(() => !C.value || C.value && (S.value === "OnCheckAndClick" || S.value === "OnClick"));
727
+ function c(r, a, s) {
728
+ if (r.raw[o.value]) {
729
+ s == null || s.preventDefault(), s == null || s.stopPropagation();
730
730
  return;
731
731
  }
732
- T.value = u.raw[d.value], y.value = u.raw[d.value], S.value = s, b.value && I(), R.value && (D(u), P()), t.emit("clickItem", { data: j.value, index: s, dataItem: u.raw }), t.emit("activeChange", j.value);
732
+ O.value = r.raw[f.value], v.value = r.raw[f.value], m.value = a, I.value && V(), F.value && (D(r), H()), t.emit("clickItem", { data: B.value, index: a, dataItem: r.raw }), t.emit("activeChange", B.value);
733
733
  }
734
734
  return {
735
- getKey: g,
736
- selectedItems: j,
735
+ getKey: h,
736
+ selectedItems: B,
737
737
  listViewItemClass: w,
738
- listViewItemStyle: h,
739
- updateSelectedItems: P,
740
- onCheckItem: v,
738
+ listViewItemStyle: g,
739
+ updateSelectedItems: H,
740
+ onCheckItem: p,
741
741
  onClickItem: c
742
742
  };
743
743
  }
744
- const $ = /* @__PURE__ */ Y({
744
+ const U = /* @__PURE__ */ X({
745
745
  name: "FListView",
746
- props: gt,
746
+ props: ft,
747
747
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
748
748
  setup(e, t) {
749
- var ee;
750
- const r = i(!1), V = i(), O = i(!0), f = i(((ee = e.rowOption) == null ? void 0 : ee.rowHeight) || 28), d = i(!1), a = i([]), p = 0, M = i(e.columns), k = Be(e, t), m = Le(e), S = Ae(e), y = He(e, m), C = Pe(e, /* @__PURE__ */ new Map(), k, S, m), I = _e(e, C, m, a, t), F = ht(e, V), D = Ge(e, C), T = L(() => C.dataView.value.length), j = ze(e, t, I, m), A = Ee(e, t, m, j, a), P = Ne(e, C, f), g = Ue(e, {}, P), w = $e(e, C, A, S, m, P, g, f), h = We(e, m, g, w), n = qe(e, m, g, w), v = Ke(e, M, C, T, p, w, h, n), {
751
- getVisualData: b
752
- } = v;
753
- a.value = b(0, T.value + p - 1);
754
- const R = L(() => {
755
- const B = {
749
+ const d = u(), T = u(!0), R = u(!1), i = u([]), f = 0, o = u(e.columns), y = Oe(e, t), C = xe(e), S = je(e), b = Be(e, C), m = Le(e, /* @__PURE__ */ new Map(), y, S, C), v = Ae(e, m, C, i, t), M = vt(e, d), V = Pe(e, m), k = L(() => m.dataView.value.length), D = He(e, t, v, C), O = _e(e, t, C, D, i), B = Ge(e), A = ze(e, {}, B), H = Ee(e, m, O, S, C, B, A), h = Ne(e, C, A, H), w = Ue(e, C, A, H), g = $e(e, o, m, k, f, H, h, w), {
750
+ getVisualData: n
751
+ } = g;
752
+ i.value = n(0, k.value + f - 1);
753
+ const p = L(() => {
754
+ const j = {
756
755
  "f-list-view": !0,
757
756
  "f-list-view-multiple": e.multiSelect
758
757
  };
759
- return e.size !== "default" && (B[`${e.size}-item`] = !0), X(B, e.customClass);
760
- }), c = L(() => !!t.slots.footer || O.value);
761
- function u() {
762
- return e.header === "SearchBar" ? oe : e.header === "ContentHeader" ? It : oe;
758
+ return e.size !== "default" && (j[`${e.size}-item`] = !0), K(j, e.customClass);
759
+ }), I = L(() => !!t.slots.footer || T.value);
760
+ function F() {
761
+ return e.header === "SearchBar" ? le : e.header === "ContentHeader" ? Ct : le;
763
762
  }
764
- const s = u(), {
765
- renderHeader: o
766
- } = s(e, t, F), H = bt(), x = kt(e, t, C, H), G = Vt(e, t, a, x, H, I), {
767
- renderListArea: ce
768
- } = wt(e, t, a, C, y, H, I, v, G, x);
769
- function ue(B) {
770
- F.search(B);
763
+ const c = F(), {
764
+ renderHeader: r
765
+ } = c(e, t, M), a = St(), s = wt(e, t, m, a), P = It(e, t, i, s, a, v), {
766
+ renderListArea: x
767
+ } = yt(e, t, i, m, b, a, v, g, P, s);
768
+ function oe(j) {
769
+ M.search(j);
771
770
  }
772
- function re(B) {
773
- B && (C.load(B), a.value = b(0, T.value + p - 1));
771
+ function ie(j) {
772
+ j && (m.load(j), i.value = n(0, k.value + f - 1));
774
773
  }
775
- function de() {
776
- I.clearSelection(), H.clearActiveItem();
774
+ function ce() {
775
+ v.clearSelection(), a.clearActiveItem();
777
776
  }
778
- function fe() {
779
- return G.selectedItems.value;
777
+ function ue() {
778
+ return P.selectedItems.value;
780
779
  }
781
- function ve() {
782
- return G.selectedItems.value.map((B) => B[m.idField.value]);
780
+ function re() {
781
+ return P.selectedItems.value.map((j) => j[C.idField.value]);
783
782
  }
784
- function Z(B) {
785
- I.selectedValues.value = B, G.updateSelectedItems();
783
+ function Q(j) {
784
+ v.selectedValues.value = j, P.updateSelectedItems();
786
785
  }
787
- function me() {
788
- return I.currentSelectedDataId.value;
786
+ function de() {
787
+ return v.currentSelectedDataId.value;
789
788
  }
790
- function ge(B) {
791
- j.activeRowById(B);
789
+ function fe(j) {
790
+ D.activeRowById(j);
792
791
  }
793
- function he(B) {
794
- const _ = m.idField.value, z = a.value.find((q) => q.raw[_] === B), E = a.value.findIndex((q) => q.raw[_] === B);
795
- z && E > -1 && G.onClickItem(z, E);
792
+ function ve(j) {
793
+ const _ = C.idField.value, G = i.value.find((W) => W.raw[_] === j), z = i.value.findIndex((W) => W.raw[_] === j);
794
+ G && z > -1 && P.onClickItem(G, z);
796
795
  }
797
- function pe(B) {
798
- const _ = m.idField.value, z = a.value.find((E) => E.raw[_] === B);
799
- z && j.changeRow(z);
796
+ function me(j) {
797
+ const _ = C.idField.value, G = i.value.find((z) => z.raw[_] === j);
798
+ G && D.changeRow(G);
800
799
  }
801
- function ye(B) {
802
- D.updatePagination(B);
800
+ function ge(j) {
801
+ V.updatePagination(j);
803
802
  }
804
- function Ce(B) {
805
- return a.value.filter((_) => B.includes(_.raw[e.idField]));
803
+ function pe(j) {
804
+ return i.value.filter((_) => j.includes(_.raw[e.idField]));
806
805
  }
807
806
  t.expose({
808
- search: ue,
809
- updateDataSource: re,
810
- clearSelection: de,
811
- getSelections: fe,
812
- updateSelectionByIds: Z,
813
- getSelectionIds: ve,
814
- activeRowById: ge,
815
- getCurrentRowId: me,
816
- clickRowItemById: he,
817
- updatePagination: ye,
818
- getVisibleDataByIds: Ce,
819
- selectRowById: pe
807
+ search: oe,
808
+ updateDataSource: ie,
809
+ clearSelection: ce,
810
+ getSelections: ue,
811
+ updateSelectionByIds: Q,
812
+ getSelectionIds: re,
813
+ activeRowById: fe,
814
+ getCurrentRowId: de,
815
+ clickRowItemById: ve,
816
+ updatePagination: ge,
817
+ getVisibleDataByIds: pe,
818
+ selectRowById: me
820
819
  });
821
- function Se(B) {
822
- e.multiSelect && (B.preventDefault(), B.stopPropagation());
820
+ function he(j) {
821
+ e.multiSelect && (j.preventDefault(), j.stopPropagation());
823
822
  }
824
- U(() => e.selectionValues, (B, _) => {
825
- B !== _ && Z(B);
823
+ N(() => e.selectionValues, (j, _) => {
824
+ j !== _ && Q(j);
826
825
  });
827
- const we = Xe(e, I), {
828
- sidebarWidth: Ie,
829
- showSidebarCheckBox: Tt
830
- } = we, be = Ye(e, t), {
831
- applyColumnSorter: Rt,
832
- columnContext: ke,
833
- updateColumnRenderContext: Dt
834
- } = be, Ve = Je(e, C, a, ke, v, T, p, Ie, f, r, A), {
835
- shouldRenderPagination: Ot
836
- } = D, {
837
- renderDataGridPagination: Mt
838
- } = Qe(e, t, C, Ve, D, I);
826
+ const ye = We(e, v), {
827
+ sidebarWidth: Ce,
828
+ showSidebarCheckBox: kt
829
+ } = ye, Se = qe(e, t), {
830
+ applyColumnSorter: Vt,
831
+ columnContext: we,
832
+ updateColumnRenderContext: Ft
833
+ } = Se, Ie = Ke(e, m, i, we, g, k, f, Ce, O), {
834
+ shouldRenderPagination: Tt
835
+ } = V, {
836
+ renderDataGridPagination: Rt
837
+ } = Xe(e, t, m, Ie, V, v);
839
838
  return () => l("div", {
840
- class: R.value,
841
- onClick: Se
842
- }, [o(), l("div", {
843
- ref: V,
839
+ class: p.value,
840
+ onClick: he
841
+ }, [r(), l("div", {
842
+ ref: d,
844
843
  class: "f-list-view-content",
845
844
  onMouseover: () => {
846
- d.value = !0;
845
+ R.value = !0;
847
846
  },
848
847
  onMouseleave: () => {
849
- d.value = !1;
848
+ R.value = !1;
850
849
  }
851
- }, [ce()]), c.value && l("div", {
850
+ }, [x()]), I.value && l("div", {
852
851
  class: "f-list-view-footer"
853
852
  }, [e.footerTemplate ? e.footerTemplate() : t.slots.footer && t.slots.footer()])]);
854
853
  }
855
- }), W = /* @__PURE__ */ Y({
854
+ }), $ = /* @__PURE__ */ X({
856
855
  name: "FTransfer",
857
- props: Q,
856
+ props: J,
858
857
  emits: ["change", "activeChange", "selectItem", "unSelecteItem", "removeItem"],
859
858
  setup(e, t) {
860
- const r = i(e.identifyField), V = i(e.displayType), O = i(!1), f = i(e.dataSource), d = i(e.textField), a = i(e.selections || []), p = L(() => a.value.map((c) => c[r.value])), M = /* @__PURE__ */ new Map(), k = i(), m = i(), S = i();
861
- let y;
862
- function C() {
863
- const c = /* @__PURE__ */ new Map(), u = e.selectionValues || [];
864
- u.length && u.reduce((o, H) => (o.set(H, !0), o), c);
865
- const s = e.selections || [];
866
- s.length && (c.clear(), s.reduce((o, H) => (o.set(H[r.value], !0), o), c)), a.value.length || (a.value = f.value.filter((o) => c.has(o[r.value])).map((o) => Object.assign({}, o))), f.value.forEach((o) => {
867
- const H = o[r.value], x = c.has(H);
868
- o.checked = x, x && M.set(H, o);
859
+ const d = u(e.identifyField), T = u(e.displayType), R = u(!1), i = u(e.dataSource), f = u(e.textField), o = u(e.selections || []), y = L(() => o.value.map((c) => c[d.value])), C = /* @__PURE__ */ new Map(), S = u(), b = u(), m = u();
860
+ let v;
861
+ function M() {
862
+ const c = /* @__PURE__ */ new Map(), r = e.selectionValues || [];
863
+ r.length && r.reduce((s, P) => (s.set(P, !0), s), c);
864
+ const a = e.selections || [];
865
+ a.length && (c.clear(), a.reduce((s, P) => (s.set(P[d.value], !0), s), c)), o.value.length || (o.value = i.value.filter((s) => c.has(s[d.value])).map((s) => Object.assign({}, s))), i.value.forEach((s) => {
866
+ const P = s[d.value], x = c.has(P);
867
+ s.checked = x, x && C.set(P, s);
869
868
  });
870
869
  }
871
- C(), U(() => e.selections, (c) => {
872
- a.value = c, C();
870
+ M(), N(() => e.selections, (c) => {
871
+ o.value = c, M();
873
872
  });
874
- const I = L(() => V.value === "List"), F = L(() => V.value === "Tree");
873
+ const V = L(() => T.value === "List"), k = L(() => T.value === "Tree");
875
874
  function D(c) {
876
- const u = le(a.value);
877
- a.value = c.map((s) => Object.assign({}, s)), t.emit("change", a.value, u);
875
+ const r = te(o.value);
876
+ o.value = c.map((a) => Object.assign({}, a)), t.emit("change", o.value, r);
878
877
  }
879
- function T(c) {
878
+ function O(c) {
880
879
  t.emit("selectItem", c);
881
880
  }
882
- function j(c) {
881
+ function B(c) {
883
882
  t.emit("unSelectItem", c);
884
883
  }
885
884
  function A() {
886
- return l($, {
885
+ return l(U, {
887
886
  class: "f-utils-fill",
888
- data: f.value,
887
+ data: i.value,
889
888
  multiSelect: !0,
890
889
  itemClass: "f-transfer-list-item",
891
- textField: d.value,
890
+ textField: f.value,
892
891
  selection: {
893
892
  enableSelectRow: !0,
894
893
  multiSelect: !0,
@@ -900,18 +899,18 @@ const $ = /* @__PURE__ */ Y({
900
899
  draggable: !1,
901
900
  header: "Search",
902
901
  headerClass: "transfer-search-box",
903
- selectionValues: p.value,
902
+ selectionValues: y.value,
904
903
  onSelectionUpdate: D
905
904
  }, null);
906
905
  }
907
- function P() {
908
- return l(Oe, {
909
- ref: S,
910
- data: f.value,
906
+ function H() {
907
+ return l(Te, {
908
+ ref: m,
909
+ data: i.value,
911
910
  columns: e.columns,
912
911
  virtualized: e.virtualized,
913
912
  rowOption: e.rowOption,
914
- textField: d.value,
913
+ textField: f.value,
915
914
  selection: {
916
915
  enableSelectRow: !0,
917
916
  multiSelect: !0,
@@ -920,65 +919,65 @@ const $ = /* @__PURE__ */ Y({
920
919
  showSelectAll: !1,
921
920
  showSelection: !0
922
921
  },
923
- selectionValues: p.value,
922
+ selectionValues: y.value,
924
923
  onSelectionUpdate: D,
925
- onSelectItem: T,
926
- onUnSelectItem: j
924
+ onSelectItem: O,
925
+ onUnSelectItem: B
927
926
  }, null);
928
927
  }
929
- function g() {
928
+ function h() {
930
929
  return l("div", {
931
930
  class: "f-utils-fill option-pane d-flex flex-column"
932
931
  }, [l("div", {
933
932
  class: "f-utils-flex-column option-pane-content f-utils-fill"
934
933
  }, [l("div", {
935
934
  class: "container columns-box d-flex f-utils-fill"
936
- }, [I.value && A(), F.value && P()])])]);
935
+ }, [V.value && A(), k.value && H()])])]);
937
936
  }
938
937
  function w(c) {
939
- const u = c[r.value];
940
- if (u !== null || u !== void 0) {
941
- a.value = a.value.filter((o) => o[r.value] !== u);
942
- const s = M.get(u);
943
- s && (s.checked = !1, M.delete(u)), t.emit("change", a.value), t.emit("removeItem", c);
938
+ const r = c[d.value];
939
+ if (r !== null || r !== void 0) {
940
+ o.value = o.value.filter((s) => s[d.value] !== r);
941
+ const a = C.get(r);
942
+ a && (a.checked = !1, C.delete(r)), t.emit("change", o.value), t.emit("removeItem", c);
944
943
  }
945
944
  }
946
- U(a, (c) => {
947
- k.value.updateDataSource(le(c));
948
- const u = y == null ? void 0 : y[r.value], s = c.find((o) => u === o[r.value]);
949
- s ? k.value.activeRowById(s[r.value]) : (y = null, k.value.activeRowById(""));
945
+ N(o, (c) => {
946
+ S.value.updateDataSource(te(c));
947
+ const r = v == null ? void 0 : v[d.value], a = c.find((s) => r === s[d.value]);
948
+ a ? S.value.activeRowById(a[d.value]) : (v = null, S.value.activeRowById(""));
950
949
  });
951
- function h(c) {
952
- const u = /* @__PURE__ */ new Map();
953
- a.value.reduce((s, o) => (s.set(o[r.value], o), s), u), a.value = c.map((s) => u.get(s[r.value])), t.emit("change", a.value);
950
+ function g(c) {
951
+ const r = /* @__PURE__ */ new Map();
952
+ o.value.reduce((a, s) => (a.set(s[d.value], s), a), r), o.value = c.map((a) => r.get(a[d.value])), t.emit("change", o.value);
954
953
  }
955
954
  function n(c) {
956
- y = c[0], t.emit("activeChange", c);
955
+ v = c[0], t.emit("activeChange", c);
957
956
  }
958
- function v() {
957
+ function p() {
959
958
  var c;
960
- return l($, {
961
- ref: k,
959
+ return l(U, {
960
+ ref: S,
962
961
  columns: e.columns,
963
962
  style: "flex:1",
964
- data: a.value,
963
+ data: o.value,
965
964
  draggable: !0,
966
965
  view: "DraggableView",
967
966
  "keep-order": !0,
968
- textField: d.value,
967
+ textField: f.value,
969
968
  itemClass: e.selectedItemClass,
970
- onChange: h,
969
+ onChange: g,
971
970
  onRemoveItem: w,
972
971
  onActiveChange: n,
973
972
  checkBeforeRemoveItem: e.checkBeforeRemoveItem
974
973
  }, {
975
- itemContent: (c = t.slots) != null && c.text ? (u) => {
976
- var s;
977
- return ((s = t.slots) == null ? void 0 : s.text) && t.slots.text(u);
974
+ itemContent: (c = t.slots) != null && c.text ? (r) => {
975
+ var a;
976
+ return ((a = t.slots) == null ? void 0 : a.text) && t.slots.text(r);
978
977
  } : null
979
978
  });
980
979
  }
981
- function b() {
980
+ function I() {
982
981
  return l("div", {
983
982
  class: "f-utils-fill selection-pane d-flex flex-column"
984
983
  }, [l("div", {
@@ -987,65 +986,65 @@ const $ = /* @__PURE__ */ Y({
987
986
  class: "selection-pane-title"
988
987
  }, [l("span", {
989
988
  class: "selection-title"
990
- }, [K.getLocaleValue("transfer.selectedStart")]), l("span", {
989
+ }, [q.getLocaleValue("transfer.selectedStart")]), l("span", {
991
990
  class: "selection-count"
992
- }, [a.value && a.value.length]), l("span", {
991
+ }, [o.value && o.value.length]), l("span", {
993
992
  class: "selection-item-title"
994
- }, [K.getLocaleValue("transfer.selectedEnd")])]), l("div", {
993
+ }, [q.getLocaleValue("transfer.selectedEnd")])]), l("div", {
995
994
  class: "container columns-box f-utils-fill d-flex"
996
- }, [v()])])]);
995
+ }, [p()])])]);
997
996
  }
998
- const R = L(() => ({
997
+ const F = L(() => ({
999
998
  "f-transfer": !0,
1000
999
  row: !0,
1001
- "f-utils-fill": O.value
1000
+ "f-utils-fill": R.value
1002
1001
  }));
1003
- return se(() => {
1004
- m.value && m.value.parentElement && getComputedStyle(m.value.parentElement).display === "flex" && (O.value = !0);
1002
+ return ae(() => {
1003
+ b.value && b.value.parentElement && getComputedStyle(b.value.parentElement).display === "flex" && (R.value = !0);
1005
1004
  }), () => l("div", {
1006
- ref: m,
1007
- class: R.value,
1005
+ ref: b,
1006
+ class: F.value,
1008
1007
  style: "height:480px"
1009
1008
  }, [t.slots.children ? t.slots.children({
1010
- selections: a.value
1011
- }) : g(), b()]);
1009
+ selections: o.value
1010
+ }) : h(), I()]);
1012
1011
  }
1013
- }), Ft = /* @__PURE__ */ Y({
1012
+ }), bt = /* @__PURE__ */ X({
1014
1013
  name: "FTransferDesign",
1015
- props: Q,
1014
+ props: J,
1016
1015
  emits: ["change"],
1017
1016
  setup(e, t) {
1018
- const r = i(e.identifyField), V = i("已选:"), O = i("项数据"), f = i(e.displayType), d = i(!1), a = i(e.dataSource), p = i(e.selections || []), M = L(() => p.value.map((v) => v[r.value])), k = /* @__PURE__ */ new Map();
1019
- function m() {
1020
- const v = /* @__PURE__ */ new Map(), b = e.selectionValues || [];
1021
- b.length && b.reduce((c, u) => (c.set(u, !0), c), v);
1022
- const R = e.selections || [];
1023
- R.length && (v.clear(), R.reduce((c, u) => (c.set(u[r.value], !0), c), v)), p.value.length || (p.value = a.value.filter((c) => v.has(c[r.value])).map((c) => Object.assign({}, c))), a.value.forEach((c) => {
1024
- const u = c[r.value], s = v.has(u);
1025
- c.checked = s, s && k.set(u, c);
1017
+ const d = u(e.identifyField), T = u("已选:"), R = u("项数据"), i = u(e.displayType), f = u(!1), o = u(e.dataSource), y = u(e.selections || []), C = L(() => y.value.map((p) => p[d.value])), S = /* @__PURE__ */ new Map();
1018
+ function b() {
1019
+ const p = /* @__PURE__ */ new Map(), I = e.selectionValues || [];
1020
+ I.length && I.reduce((c, r) => (c.set(r, !0), c), p);
1021
+ const F = e.selections || [];
1022
+ F.length && (p.clear(), F.reduce((c, r) => (c.set(r[d.value], !0), c), p)), y.value.length || (y.value = o.value.filter((c) => p.has(c[d.value])).map((c) => Object.assign({}, c))), o.value.forEach((c) => {
1023
+ const r = c[d.value], a = p.has(r);
1024
+ c.checked = a, a && S.set(r, c);
1026
1025
  });
1027
1026
  }
1028
- m();
1029
- const S = L(() => f.value === "List"), y = L(() => f.value === "Tree");
1030
- function C(v) {
1031
- p.value = v.map((b) => Object.assign({}, b)), t.emit("change", p.value);
1027
+ b();
1028
+ const m = L(() => i.value === "List"), v = L(() => i.value === "Tree");
1029
+ function M(p) {
1030
+ y.value = p.map((I) => Object.assign({}, I)), t.emit("change", y.value);
1032
1031
  }
1033
- function I() {
1034
- return l($, {
1032
+ function V() {
1033
+ return l(U, {
1035
1034
  class: "f-utils-fill",
1036
- data: a.value,
1035
+ data: o.value,
1037
1036
  "multi-select": !0,
1038
1037
  draggable: !1,
1039
1038
  header: "Search",
1040
1039
  headerClass: "transfer-search-box",
1041
- "selection-values": M.value,
1042
- onSelectionChange: C
1040
+ "selection-values": C.value,
1041
+ onSelectionChange: M
1043
1042
  }, {
1044
- default: () => [te(" ")]
1043
+ default: () => [Z(" ")]
1045
1044
  });
1046
1045
  }
1047
- function F() {
1048
- return l(N, null, null);
1046
+ function k() {
1047
+ return l(E, null, null);
1049
1048
  }
1050
1049
  function D() {
1051
1050
  return l("div", {
@@ -1054,34 +1053,34 @@ const $ = /* @__PURE__ */ Y({
1054
1053
  class: "f-utils-flex-column option-pane-content f-utils-fill"
1055
1054
  }, [l("div", {
1056
1055
  class: "container columns-box d-flex f-utils-fill"
1057
- }, [S.value && I(), y.value && F()])])]);
1056
+ }, [m.value && V(), v.value && k()])])]);
1058
1057
  }
1059
- function T(v) {
1060
- const b = v[r.value];
1061
- if (b !== null || b !== void 0) {
1062
- p.value = p.value.filter((c) => c[r.value] !== b);
1063
- const R = k.get(b);
1064
- R && (R.checked = !1, k.delete(b)), t.emit("change", p.value);
1058
+ function O(p) {
1059
+ const I = p[d.value];
1060
+ if (I !== null || I !== void 0) {
1061
+ y.value = y.value.filter((c) => c[d.value] !== I);
1062
+ const F = S.get(I);
1063
+ F && (F.checked = !1, S.delete(I)), t.emit("change", y.value);
1065
1064
  }
1066
1065
  }
1067
- function j(v) {
1068
- const b = /* @__PURE__ */ new Map();
1069
- p.value.reduce((R, c) => (R.set(c[r.value], c), R), b), p.value = v.map((R) => b.get(R[r.value])), t.emit("change", p.value);
1066
+ function B(p) {
1067
+ const I = /* @__PURE__ */ new Map();
1068
+ y.value.reduce((F, c) => (F.set(c[d.value], c), F), I), y.value = p.map((F) => I.get(F[d.value])), t.emit("change", y.value);
1070
1069
  }
1071
1070
  function A() {
1072
- return l($, {
1071
+ return l(U, {
1073
1072
  style: "flex:1",
1074
- data: p.value,
1073
+ data: y.value,
1075
1074
  draggable: !0,
1076
1075
  view: "DraggableView",
1077
1076
  "keep-order": !0,
1078
- onChange: j,
1079
- onRemoveItem: T
1077
+ onChange: B,
1078
+ onRemoveItem: O
1080
1079
  }, {
1081
- default: () => [te(" ")]
1080
+ default: () => [Z(" ")]
1082
1081
  });
1083
1082
  }
1084
- function P() {
1083
+ function H() {
1085
1084
  return l("div", {
1086
1085
  class: "f-utils-fill selection-pane d-flex flex-column"
1087
1086
  }, [l("div", {
@@ -1090,38 +1089,38 @@ const $ = /* @__PURE__ */ Y({
1090
1089
  class: "selection-pane-title"
1091
1090
  }, [l("span", {
1092
1091
  class: "selection-title"
1093
- }, [V.value]), l("span", {
1092
+ }, [T.value]), l("span", {
1094
1093
  class: "selection-count"
1095
- }, [p.value && p.value.length]), l("span", {
1094
+ }, [y.value && y.value.length]), l("span", {
1096
1095
  class: "selection-item-title"
1097
- }, [O.value])]), l("div", {
1096
+ }, [R.value])]), l("div", {
1098
1097
  class: "container columns-box f-utils-fill d-flex"
1099
1098
  }, [A()])])]);
1100
1099
  }
1101
- const g = L(() => ({
1100
+ const h = L(() => ({
1102
1101
  transfer: !0,
1103
1102
  row: !0,
1104
- "f-utils-fill": d.value
1105
- })), w = i(), h = De("design-item-context"), n = Ze(w, h);
1106
- return se(() => {
1103
+ "f-utils-fill": f.value
1104
+ })), w = u(), g = Fe("design-item-context"), n = Ye(w, g);
1105
+ return ae(() => {
1107
1106
  w.value.componentInstance = n;
1108
1107
  }), t.expose(n.value), () => l("div", {
1109
1108
  ref: w,
1110
- class: g.value,
1109
+ class: h.value,
1111
1110
  style: "height:480px"
1112
- }, [D(), P()]);
1111
+ }, [D(), H()]);
1113
1112
  }
1114
1113
  });
1115
- W.register = (e, t, r) => {
1116
- e.transfer = W, t.transfer = ie;
1114
+ $.register = (e, t, d) => {
1115
+ e.transfer = $, t.transfer = se;
1117
1116
  };
1118
- W.registerDesigner = (e, t, r) => {
1119
- e.transfer = Ft, t.transfer = ie;
1117
+ $.registerDesigner = (e, t, d) => {
1118
+ e.transfer = bt, t.transfer = se;
1120
1119
  };
1121
- const zt = je(W);
1120
+ const Ht = Me($);
1122
1121
  export {
1123
- W as FTransfer,
1124
- zt as default,
1125
- ie as propsResolver,
1126
- Q as transferProps
1122
+ $ as FTransfer,
1123
+ Ht as default,
1124
+ se as propsResolver,
1125
+ J as transferProps
1127
1126
  };