@farris/ui-vue 1.3.4 → 1.3.6

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 (145) hide show
  1. package/components/accordion/index.esm.js +16 -16
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +65 -65
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +13 -13
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +504 -490
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +247 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +356 -344
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +159 -145
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +127 -128
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +15 -15
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/component/index.esm.js +101 -87
  20. package/components/component/index.umd.cjs +1 -1
  21. package/components/condition/index.esm.js +9 -7
  22. package/components/condition/index.umd.cjs +1 -1
  23. package/components/content-container/index.esm.js +181 -167
  24. package/components/content-container/index.umd.cjs +1 -1
  25. package/components/data-grid/index.esm.js +746 -730
  26. package/components/data-grid/index.umd.cjs +1 -1
  27. package/components/data-view/index.esm.js +9 -7
  28. package/components/data-view/index.umd.cjs +1 -1
  29. package/components/date-picker/index.esm.js +789 -777
  30. package/components/date-picker/index.umd.cjs +1 -1
  31. package/components/designer-canvas/index.esm.js +3096 -3069
  32. package/components/designer-canvas/index.umd.cjs +1 -1
  33. package/components/dropdown/index.esm.js +257 -243
  34. package/components/dropdown/index.umd.cjs +2 -2
  35. package/components/dynamic-form/index.esm.js +322 -306
  36. package/components/dynamic-form/index.umd.cjs +1 -1
  37. package/components/dynamic-resolver/index.esm.js +177 -163
  38. package/components/dynamic-resolver/index.umd.cjs +1 -1
  39. package/components/event-parameter/index.esm.js +78 -82
  40. package/components/event-parameter/index.umd.cjs +1 -1
  41. package/components/events-editor/index.esm.js +501 -487
  42. package/components/events-editor/index.umd.cjs +1 -1
  43. package/components/expression-editor/index.esm.js +37 -37
  44. package/components/expression-editor/index.umd.cjs +1 -1
  45. package/components/external-container/index.esm.js +487 -472
  46. package/components/external-container/index.umd.cjs +1 -1
  47. package/components/field-selector/index.esm.js +440 -433
  48. package/components/field-selector/index.umd.cjs +1 -1
  49. package/components/filter-bar/index.esm.js +594 -587
  50. package/components/filter-bar/index.umd.cjs +1 -1
  51. package/components/flow-canvas/index.esm.js +2766 -2739
  52. package/components/flow-canvas/index.umd.cjs +1 -1
  53. package/components/image-cropper/index.esm.js +402 -388
  54. package/components/image-cropper/index.umd.cjs +1 -1
  55. package/components/input-group/index.esm.js +201 -202
  56. package/components/input-group/index.umd.cjs +1 -1
  57. package/components/layout/index.esm.js +264 -245
  58. package/components/layout/index.umd.cjs +1 -1
  59. package/components/list-nav/index.esm.js +157 -143
  60. package/components/list-nav/index.umd.cjs +1 -1
  61. package/components/list-view/index.esm.js +314 -298
  62. package/components/list-view/index.umd.cjs +1 -1
  63. package/components/lookup/index.esm.js +862 -843
  64. package/components/lookup/index.umd.cjs +1 -1
  65. package/components/mapping-editor/index.esm.js +1031 -1015
  66. package/components/mapping-editor/index.umd.cjs +1 -1
  67. package/components/nav/index.esm.js +169 -155
  68. package/components/nav/index.umd.cjs +2 -2
  69. package/components/number-range/index.esm.js +150 -137
  70. package/components/number-range/index.umd.cjs +1 -1
  71. package/components/number-spinner/index.esm.js +207 -194
  72. package/components/number-spinner/index.umd.cjs +1 -1
  73. package/components/order/index.esm.js +427 -414
  74. package/components/order/index.umd.cjs +1 -1
  75. package/components/page-footer/index.esm.js +22 -22
  76. package/components/page-footer/index.umd.cjs +1 -1
  77. package/components/page-header/index.esm.js +510 -492
  78. package/components/page-header/index.umd.cjs +1 -1
  79. package/components/pagination/index.esm.js +192 -178
  80. package/components/pagination/index.umd.cjs +1 -1
  81. package/components/progress/index.esm.js +234 -220
  82. package/components/progress/index.umd.cjs +3 -3
  83. package/components/property-editor/index.esm.js +288 -277
  84. package/components/property-editor/index.umd.cjs +2 -2
  85. package/components/property-panel/index.esm.js +62 -61
  86. package/components/property-panel/index.umd.cjs +1 -1
  87. package/components/query-solution/index.esm.js +776 -770
  88. package/components/query-solution/index.umd.cjs +6 -6
  89. package/components/radio-button/index.esm.js +64 -64
  90. package/components/radio-button/index.umd.cjs +1 -1
  91. package/components/radio-group/index.esm.js +296 -283
  92. package/components/radio-group/index.umd.cjs +1 -1
  93. package/components/rate/index.esm.js +222 -208
  94. package/components/rate/index.umd.cjs +1 -1
  95. package/components/response-layout/index.esm.js +187 -173
  96. package/components/response-layout/index.umd.cjs +1 -1
  97. package/components/response-layout-editor/index.esm.js +554 -542
  98. package/components/response-layout-editor/index.umd.cjs +1 -1
  99. package/components/response-toolbar/index.esm.js +483 -469
  100. package/components/response-toolbar/index.umd.cjs +1 -1
  101. package/components/schema-selector/index.esm.js +634 -619
  102. package/components/schema-selector/index.umd.cjs +2 -2
  103. package/components/search-box/index.esm.js +228 -214
  104. package/components/search-box/index.umd.cjs +1 -1
  105. package/components/section/index.esm.js +419 -406
  106. package/components/section/index.umd.cjs +1 -1
  107. package/components/smoke-detector/index.esm.js +162 -148
  108. package/components/smoke-detector/index.umd.cjs +1 -1
  109. package/components/splitter/index.esm.js +308 -284
  110. package/components/splitter/index.umd.cjs +1 -1
  111. package/components/step/index.esm.js +279 -265
  112. package/components/step/index.umd.cjs +1 -1
  113. package/components/switch/index.esm.js +183 -170
  114. package/components/switch/index.umd.cjs +1 -1
  115. package/components/tabs/index.esm.js +307 -294
  116. package/components/tabs/index.umd.cjs +1 -1
  117. package/components/tags/index.esm.js +320 -306
  118. package/components/tags/index.umd.cjs +1 -1
  119. package/components/text/index.esm.js +245 -231
  120. package/components/text/index.umd.cjs +1 -1
  121. package/components/textarea/index.esm.js +260 -247
  122. package/components/textarea/index.umd.cjs +1 -1
  123. package/components/time-picker/index.esm.js +409 -396
  124. package/components/time-picker/index.umd.cjs +1 -1
  125. package/components/transfer/index.esm.js +424 -410
  126. package/components/transfer/index.umd.cjs +1 -1
  127. package/components/tree-grid/index.esm.js +383 -376
  128. package/components/tree-grid/index.umd.cjs +1 -1
  129. package/components/tree-view/index.esm.js +595 -575
  130. package/components/tree-view/index.umd.cjs +1 -1
  131. package/components/uploader/index.esm.js +325 -311
  132. package/components/uploader/index.umd.cjs +2 -2
  133. package/components/verify-detail/index.esm.js +304 -290
  134. package/components/verify-detail/index.umd.cjs +1 -1
  135. package/components/video/index.esm.js +99 -85
  136. package/components/video/index.umd.cjs +1 -1
  137. package/components/weather/index.esm.js +947 -933
  138. package/components/weather/index.umd.cjs +4 -4
  139. package/farris.all.esm.js +5492 -5470
  140. package/farris.all.umd.cjs +13 -13
  141. package/index.css +1 -1
  142. package/package.json +1 -1
  143. package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
  144. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
  145. package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
@@ -2,7 +2,7 @@ var Qn = Object.defineProperty;
2
2
  var Zn = (e, t, n) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var q = (e, t, n) => Zn(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { ref as v, computed as V, createVNode as f, createTextVNode as Oe, defineComponent as ye, watch as te, inject as qe, onMounted as Ve, nextTick as Qe, reactive as We, withDirectives as ft, resolveDirective as eo, Fragment as Re, mergeProps as Ke, onBeforeMount as to, Teleport as Jt, createApp as Et, onUnmounted as nt, Transition as Qt, shallowRef as no, render as yt, h as oo, cloneVNode as lo, vShow as ao, vModelCheckbox as io, resolveComponent as ze, onBeforeUnmount as Zt, provide as ro, isVNode as so, withModifiers as uo, vModelText as co } from "vue";
5
- import { isPlainObject as At, cloneDeep as Ee } from "lodash-es";
5
+ import { isPlainObject as At, cloneDeep as Me } from "lodash-es";
6
6
  import { useTextBox as fo, useClear as po, useDateFormat as mo, useNumberFormat as vo, resolveField as lt, setFieldValue as Lt, CHECKBOX_CONTEXT as ho, useCheck as go, getCustomClass as bt, withInstall as yo } from "../common/index.esm.js";
7
7
  import bo, { useNumber as Co, useFormat as wo, useSpinner as So, useTextBox as xo } from "../number-spinner/index.esm.js";
8
8
  import _o from "../accordion/index.esm.js";
@@ -75,17 +75,31 @@ import "../condition/index.esm.js";
75
75
  import "../external-container/index.esm.js";
76
76
  const ct = {}, mn = {};
77
77
  function Vt(e) {
78
- const { properties: t, title: n, ignore: o } = e, l = o && Array.isArray(o), a = Object.keys(t).reduce((i, u) => ((!l || !o.find((r) => r === u)) && (i[u] = t[u].type === "object" && t[u].properties ? Vt(t[u]) : Ee(t[u].default)), i), {});
78
+ const { properties: t, title: n, ignore: o } = e, l = o && Array.isArray(o), a = Object.keys(t).reduce((i, u) => ((!l || !o.find((r) => r === u)) && (i[u] = t[u].type === "object" && t[u].properties ? Vt(t[u]) : Me(t[u].default)), i), {});
79
79
  if (n && (!l || !o.find((i) => i === "id"))) {
80
80
  const i = n.toLowerCase().replace(/-/g, "_");
81
81
  a.id = `${i}_${Math.random().toString().slice(2, 6)}`;
82
82
  }
83
83
  return a;
84
84
  }
85
+ function oa(e) {
86
+ const { properties: t, title: n, required: o } = e;
87
+ if (o && Array.isArray(o)) {
88
+ const l = o.reduce((a, i) => (a[i] = t[i].type === "object" && t[i].properties ? Vt(t[i]) : Me(t[i].default), a), {});
89
+ if (n && o.find((a) => a === "id")) {
90
+ const a = n.toLowerCase().replace(/-/g, "_");
91
+ l.id = `${a}_${Math.random().toString().slice(2, 6)}`;
92
+ }
93
+ return l;
94
+ }
95
+ return {
96
+ type: n
97
+ };
98
+ }
85
99
  function vn(e, t = {}, n) {
86
100
  const o = ct[e];
87
101
  if (o) {
88
- let l = Vt(o);
102
+ let l = oa(o);
89
103
  const a = mn[e];
90
104
  return l = a ? a({ getSchemaByType: vn }, l, t, n) : l, l;
91
105
  }
@@ -93,9 +107,9 @@ function vn(e, t = {}, n) {
93
107
  }
94
108
  function Ft(e, t) {
95
109
  const n = Vt(t);
96
- return Object.keys(n).reduce((o, l) => (o[l] && At(o[l]) && At(e[l] || !e[l]) ? Object.assign(o[l], e[l] || {}) : o[l] = e[l], o), n), n;
110
+ return Object.keys(n).reduce((o, l) => (Object.prototype.hasOwnProperty.call(e, l) && (o[l] && At(o[l]) && At(e[l] || !e[l]) ? Object.assign(o[l], e[l] || {}) : o[l] = e[l]), o), n), n;
97
111
  }
98
- function oa(e, t) {
112
+ function la(e, t) {
99
113
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, l) => {
100
114
  if (t.has(l)) {
101
115
  const a = t.get(l);
@@ -110,9 +124,9 @@ function oa(e, t) {
110
124
  return o;
111
125
  }, {});
112
126
  }
113
- function la(e, t, n = /* @__PURE__ */ new Map()) {
127
+ function aa(e, t, n = /* @__PURE__ */ new Map()) {
114
128
  const o = Ft(e, t);
115
- return oa(o, n);
129
+ return la(o, n);
116
130
  }
117
131
  function hn(e) {
118
132
  var n;
@@ -130,7 +144,7 @@ function hn(e) {
130
144
  }
131
145
  return e;
132
146
  }
133
- function aa(e = {}) {
147
+ function ia(e = {}) {
134
148
  function t(c, h, s, p) {
135
149
  if (typeof s == "number")
136
150
  return p[c].length === s;
@@ -184,14 +198,14 @@ function aa(e = {}) {
184
198
  }
185
199
  return { parseValueSchema: r };
186
200
  }
187
- const ia = {
201
+ const ra = {
188
202
  convertTo: (e, t, n, o) => {
189
203
  e.appearance || (e.appearance = {}), e.appearance[t] = n;
190
204
  },
191
205
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
192
- }, ra = {
193
- convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
194
206
  }, sa = {
207
+ convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
208
+ }, ua = {
195
209
  convertTo: (e, t, n, o) => {
196
210
  e.editor && (e.editor[t] = n);
197
211
  },
@@ -236,18 +250,18 @@ const ia = {
236
250
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
237
251
  fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
238
252
  "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
239
- }, ua = {
253
+ }, ca = {
240
254
  convertFrom: (e, t, n) => {
241
255
  var l;
242
256
  const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
243
257
  return ((l = oe[o]) == null ? void 0 : l.name) || o;
244
258
  }
245
- }, ca = {
259
+ }, da = {
246
260
  convertTo: (e, t, n, o) => {
247
261
  e[t] = e[t];
248
262
  },
249
263
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
250
- }, da = {
264
+ }, fa = {
251
265
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
252
266
  convertTo: (e, t, n) => {
253
267
  if (n && n.length > 0) {
@@ -255,35 +269,35 @@ const ia = {
255
269
  e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
256
270
  }
257
271
  }
258
- }, fa = {
272
+ }, pa = {
259
273
  convertTo: (e, t, n, o) => {
260
274
  e.pagination || (e.pagination = {}), e.pagination[t] = n;
261
275
  },
262
276
  convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
263
- }, pa = {
277
+ }, ma = {
264
278
  convertTo: (e, t, n, o) => {
265
279
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
266
280
  },
267
281
  convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
268
- }, ma = {
269
- convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
270
282
  }, va = {
283
+ convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
284
+ }, ha = {
271
285
  convertFrom: (e, t) => e[t] || "",
272
286
  convertTo: (e, t, n) => {
273
287
  e[t] = n;
274
288
  }
275
289
  }, Pt = {}, Tt = /* @__PURE__ */ new Map([
276
- ["/converter/appearance.converter", ia],
277
- ["/converter/buttons.converter", ra],
278
- ["/converter/property-editor.converter", sa],
279
- ["/converter/items-count.converter", ma],
280
- ["/converter/type.converter", ua],
281
- ["/converter/change-editor.converter", ca],
282
- ["/converter/form-group-label.converter", va],
283
- ["/converter/field-selector.converter", da],
284
- ["/converter/pagination.converter", fa],
285
- ["/converter/row-number.converter", pa]
286
- ]), ha = {}, ga = /* @__PURE__ */ new Map([
290
+ ["/converter/appearance.converter", ra],
291
+ ["/converter/buttons.converter", sa],
292
+ ["/converter/property-editor.converter", ua],
293
+ ["/converter/items-count.converter", va],
294
+ ["/converter/type.converter", ca],
295
+ ["/converter/change-editor.converter", da],
296
+ ["/converter/form-group-label.converter", ha],
297
+ ["/converter/field-selector.converter", fa],
298
+ ["/converter/pagination.converter", pa],
299
+ ["/converter/row-number.converter", ma]
300
+ ]), ga = {}, ya = /* @__PURE__ */ new Map([
287
301
  ["string", { type: "input-group", enableClear: !1 }],
288
302
  ["boolean", {
289
303
  type: "combo-list",
@@ -306,26 +320,26 @@ const ia = {
306
320
  ["array", { type: "button-edit" }],
307
321
  ["number", { type: "number-spinner" }],
308
322
  ["events-editor", { type: "events-editor", hide: !0 }]
309
- ]), ya = aa();
323
+ ]), ba = ia();
310
324
  function gn(e, t) {
311
- return () => ya.parseValueSchema(e, t);
325
+ return () => ba.parseValueSchema(e, t);
312
326
  }
313
- function ba(e, t, n) {
327
+ function Ca(e, t, n) {
314
328
  return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : gn(t.visible, n) : () => !0;
315
329
  }
316
- function Ca(e, t, n) {
330
+ function wa(e, t, n) {
317
331
  return e.includes("readonly") && t.readonly !== void 0 ? typeof t.readonly == "boolean" ? () => !!t.readonly : gn(t.readonly, n) : () => !1;
318
332
  }
319
- function wa(e, t) {
333
+ function Sa(e, t) {
320
334
  const n = e.$converter || t;
321
335
  return typeof n == "string" && n && Tt.has(n) ? Tt.get(n) || null : n || null;
322
336
  }
323
337
  function $t(e, t, n, o, l, a = "", i = "") {
324
338
  return Object.keys(e).map((r) => {
325
- const c = v(1), h = r, s = e[r], p = Object.keys(s), m = s.title, y = s.type, _ = ga.get(y) || { type: "input-group", enableClear: !1 }, T = s.editor ? Object.assign({}, _, s.editor) : Object.assign({}, _), w = ba(p, s, t), C = Ca(p, s, t);
339
+ const c = v(1), h = r, s = e[r], p = Object.keys(s), m = s.title, y = s.type, _ = ya.get(y) || { type: "input-group", enableClear: !1 }, T = s.editor ? Object.assign({}, _, s.editor) : Object.assign({}, _), w = Ca(p, s, t), C = wa(p, s, t);
326
340
  T.readonly = C();
327
341
  const g = s.type === "cascade" ? $t(s.properties, t, n, o, l, a, i) : [], x = !0;
328
- let S = wa(s, i);
342
+ let S = Sa(s, i);
329
343
  const k = V({
330
344
  get() {
331
345
  if (c.value) {
@@ -343,7 +357,7 @@ function $t(e, t, n, o, l, a = "", i = "") {
343
357
  return t[h] = b, b;
344
358
  });
345
359
  }
346
- function Sa(e, t, n, o, l = "") {
360
+ function xa(e, t, n, o, l = "") {
347
361
  const a = t.$ref.schema, i = t.$ref.converter, u = n[a], r = u.type, c = hn(u), h = {}, s = Pt[r];
348
362
  if (s && s.categories) {
349
363
  const p = s.categories[e], m = p == null ? void 0 : p.title;
@@ -363,7 +377,7 @@ function Ct(e, t, n, o, l) {
363
377
  return Object.keys(r.categories).map((h) => {
364
378
  const s = r.categories[h];
365
379
  if (s.$ref) {
366
- c.push(Sa(h, s, e, t, o));
380
+ c.push(xa(h, s, e, t, o));
367
381
  return;
368
382
  }
369
383
  const p = s == null ? void 0 : s.title, m = s == null ? void 0 : s.tabId, y = s == null ? void 0 : s.tabName, _ = s == null ? void 0 : s.hide, T = s == null ? void 0 : s.hideTitle, w = $t(s.properties || {}, u, i, e, t, o, s.$converter), { setPropertyRelates: C } = s;
@@ -373,15 +387,15 @@ function Ct(e, t, n, o, l) {
373
387
  return [];
374
388
  }
375
389
  function Ne(e, t, n = /* @__PURE__ */ new Map(), o = (i, u, r, c) => u, l = {}, a = (i) => i) {
376
- return ct[t.title] = t, mn[t.title] = o, Pt[t.title] = l, ha[t.title] = a, (i = {}) => {
377
- const u = la(i, t, n), r = Object.keys(e).reduce((c, h) => (c[h] = e[h].default, c), {});
390
+ return ct[t.title] = t, mn[t.title] = o, Pt[t.title] = l, ga[t.title] = a, (i = {}) => {
391
+ const u = aa(i, t, n), r = Object.keys(e).reduce((c, h) => (c[h] = e[h].default, c), {});
378
392
  return Object.assign(r, u);
379
393
  };
380
394
  }
381
395
  function Ue(e, t) {
382
396
  return { customClass: t.class, customStyle: t.style };
383
397
  }
384
- function xa() {
398
+ function _a() {
385
399
  function e(t, n) {
386
400
  const { dataSource: o } = t || {};
387
401
  return o === void 0 ? {} : {};
@@ -390,7 +404,7 @@ function xa() {
390
404
  resolve: e
391
405
  };
392
406
  }
393
- function _a() {
407
+ function ka() {
394
408
  function e(t, n) {
395
409
  return t.selectItemById(n);
396
410
  }
@@ -398,13 +412,13 @@ function _a() {
398
412
  selectItemById: e
399
413
  };
400
414
  }
401
- const ka = /* @__PURE__ */ new Map([
415
+ const Fa = /* @__PURE__ */ new Map([
402
416
  ["appearance", Ue]
403
417
  ]);
404
- function Fa(e, t, n) {
418
+ function Ta(e, t, n) {
405
419
  return t;
406
420
  }
407
- const Ta = "https://json-schema.org/draft/2020-12/schema", Ia = "https://farris-design.gitee.io/filter-bar.schema.json", Oa = "filter-bar", Ba = "A Farris Component", Ma = "object", Ea = {
421
+ const Ia = "https://json-schema.org/draft/2020-12/schema", Oa = "https://farris-design.gitee.io/filter-bar.schema.json", Ba = "filter-bar", Ma = "A Farris Component", Ea = "object", Va = {
408
422
  id: {
409
423
  description: "The unique identifier for filter-bar",
410
424
  type: "string"
@@ -466,18 +480,18 @@ const Ta = "https://json-schema.org/draft/2020-12/schema", Ia = "https://farris-
466
480
  type: "boolean",
467
481
  default: !0
468
482
  }
469
- }, Va = [
483
+ }, Pa = [
470
484
  "id",
471
485
  "type"
472
- ], Pa = {
473
- $schema: Ta,
474
- $id: Ia,
475
- title: Oa,
476
- description: Ba,
477
- type: Ma,
478
- properties: Ea,
479
- required: Va
480
- }, $a = "filter-bar", Ra = "A Farris Component", Na = "object", ja = {
486
+ ], $a = {
487
+ $schema: Ia,
488
+ $id: Oa,
489
+ title: Ba,
490
+ description: Ma,
491
+ type: Ea,
492
+ properties: Va,
493
+ required: Pa
494
+ }, Ra = "filter-bar", Na = "A Farris Component", ja = "object", Da = {
481
495
  basic: {
482
496
  description: "Basic Infomation",
483
497
  title: "基本信息",
@@ -669,11 +683,11 @@ const Ta = "https://json-schema.org/draft/2020-12/schema", Ia = "https://farris-
669
683
  }
670
684
  }
671
685
  }
672
- }, Da = {
673
- title: $a,
674
- description: Ra,
675
- type: Na,
676
- categories: ja
686
+ }, Ha = {
687
+ title: Ra,
688
+ description: Na,
689
+ type: ja,
690
+ categories: Da
677
691
  }, Rt = {
678
692
  /** 被绑定数据 */
679
693
  data: {
@@ -701,8 +715,8 @@ const Ta = "https://json-schema.org/draft/2020-12/schema", Ia = "https://farris-
701
715
  resetText: { type: String, default: "清空已选" },
702
716
  /** 是否显示重置 */
703
717
  showReset: { type: Boolean, default: !1 }
704
- }, Wt = Ne(Rt, Pa, ka, Fa, Da);
705
- class Ha {
718
+ }, Wt = Ne(Rt, $a, Fa, Ta, Ha);
719
+ class Aa {
706
720
  constructor(t = { value: [] }) {
707
721
  q(this, "editorType", "check-box");
708
722
  q(this, "value");
@@ -722,7 +736,7 @@ class Ha {
722
736
  return this.value.length === 0;
723
737
  }
724
738
  }
725
- class Aa {
739
+ class La {
726
740
  constructor(t = { textValue: "", value: "", valueField: "" }) {
727
741
  q(this, "editorType", "combo-lookup");
728
742
  q(this, "textValue");
@@ -742,11 +756,11 @@ class Aa {
742
756
  return t[n[0]];
743
757
  }
744
758
  getTextValue(t) {
745
- const n = t.split("."), o = this.value.split(",").map((l) => this.getPropValue(l, Ee(n)));
759
+ const n = t.split("."), o = this.value.split(",").map((l) => this.getPropValue(l, Me(n)));
746
760
  return o && o.length ? o.join(",") : "";
747
761
  }
748
762
  getValue() {
749
- const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, Ee(t)));
763
+ const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, Me(t)));
750
764
  return n && n.length ? n.join(",") : "";
751
765
  }
752
766
  setValue(t) {
@@ -756,7 +770,7 @@ class Aa {
756
770
  return !this.valueField;
757
771
  }
758
772
  }
759
- class La {
773
+ class Wa {
760
774
  constructor(t = { value: "" }) {
761
775
  q(this, "editorType", "date-picker");
762
776
  q(this, "value");
@@ -797,7 +811,7 @@ class Gt {
797
811
  return !this.begin || !this.end;
798
812
  }
799
813
  }
800
- class Wa {
814
+ class Ga {
801
815
  constructor(t = { value: "" }) {
802
816
  q(this, "editorType", "datetime-picker");
803
817
  q(this, "value");
@@ -817,7 +831,7 @@ class Wa {
817
831
  return !this.value;
818
832
  }
819
833
  }
820
- class Ga {
834
+ class za {
821
835
  // 旧结构无,新结构为选中的value值,多选是以,分割的字符串
822
836
  constructor(t = { value: "", dispalyText: "" }) {
823
837
  q(this, "editorType", "combo-list");
@@ -840,7 +854,7 @@ class Ga {
840
854
  return !this.displayText && !this.value;
841
855
  }
842
856
  }
843
- class za {
857
+ class qa {
844
858
  constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
845
859
  q(this, "editorType", "input-group");
846
860
  // 通过弹窗返回的若干个值对象构成的数组
@@ -865,21 +879,21 @@ class za {
865
879
  return t[n[0]];
866
880
  }
867
881
  getTextValue(t) {
868
- const n = t.split("."), o = this.value.map((l) => this.getPropValue(l, Ee(n)));
882
+ const n = t.split("."), o = this.value.map((l) => this.getPropValue(l, Me(n)));
869
883
  return o && o.length ? o.join(",") : "";
870
884
  }
871
885
  getValue() {
872
- const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, Ee(t)));
886
+ const t = this.valueField.split(".") || [], n = this.value.map((o) => this.getPropValue(o, Me(t)));
873
887
  return n && n.length ? n.join(",") : "";
874
888
  }
875
889
  setValue(t) {
876
890
  throw new Error("Method not implemented.");
877
891
  }
878
892
  isEmpty() {
879
- return !this.displayText && !this.value;
893
+ return !this.displayText && !this.value.length;
880
894
  }
881
895
  }
882
- class qa {
896
+ class Ua {
883
897
  constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
884
898
  q(this, "editorType", "lookup");
885
899
  q(this, "textValue");
@@ -915,7 +929,7 @@ class qa {
915
929
  return !this.value.length;
916
930
  }
917
931
  }
918
- class Ua {
932
+ class Xa {
919
933
  constructor(t = { value: "" }) {
920
934
  q(this, "editorType", "month-picker");
921
935
  q(this, "value");
@@ -935,7 +949,7 @@ class Ua {
935
949
  return !this.value;
936
950
  }
937
951
  }
938
- class Xa {
952
+ class Ya {
939
953
  constructor(t = { begin: "", end: "" }) {
940
954
  q(this, "editorType", "month-range");
941
955
  q(this, "begin");
@@ -956,7 +970,7 @@ class Xa {
956
970
  return !this.begin || !this.end;
957
971
  }
958
972
  }
959
- class Ya {
973
+ class Ka {
960
974
  constructor(t = { begin: null, end: null }) {
961
975
  q(this, "editorType", "number-range");
962
976
  q(this, "begin");
@@ -980,7 +994,7 @@ class Ya {
980
994
  return this.begin == null && this.end == null;
981
995
  }
982
996
  }
983
- class Ka {
997
+ class Ja {
984
998
  constructor(t = { value: "" }) {
985
999
  q(this, "editorType", "number-spinner");
986
1000
  q(this, "value");
@@ -997,10 +1011,10 @@ class Ka {
997
1011
  this.value = isNaN(parseFloat(t)) ? null : t;
998
1012
  }
999
1013
  isEmpty() {
1000
- return this.value == null;
1014
+ return this.value == null || isNaN(this.value);
1001
1015
  }
1002
1016
  }
1003
- class Ja {
1017
+ class Qa {
1004
1018
  constructor(t = { value: null }) {
1005
1019
  q(this, "editorType", "radio-group");
1006
1020
  q(this, "value");
@@ -1044,33 +1058,33 @@ function Nt() {
1044
1058
  function e(t, n) {
1045
1059
  switch (t) {
1046
1060
  case "check-box":
1047
- return new Ha(n);
1061
+ return new Aa(n);
1048
1062
  case "combo-list":
1049
- return new Ga(n);
1063
+ return new za(n);
1050
1064
  case "combo-lookup":
1051
- return new Aa(n);
1065
+ return new La(n);
1052
1066
  case "input-group":
1053
- return new za(n);
1067
+ return new qa(n);
1054
1068
  case "date-picker":
1055
- return new La(n);
1069
+ return new Wa(n);
1056
1070
  case "date-range":
1057
1071
  return new Gt(n);
1058
1072
  case "datetime-picker":
1059
- return new Wa(n);
1073
+ return new Ga(n);
1060
1074
  case "datetime-range":
1061
1075
  return new Gt(n);
1062
1076
  case "lookup":
1063
- return new qa(n);
1064
- case "month-picker":
1065
1077
  return new Ua(n);
1066
- case "month-range":
1078
+ case "month-picker":
1067
1079
  return new Xa(n);
1068
- case "number-range":
1080
+ case "month-range":
1069
1081
  return new Ya(n);
1070
- case "number-spinner":
1082
+ case "number-range":
1071
1083
  return new Ka(n);
1072
- case "radio-group":
1084
+ case "number-spinner":
1073
1085
  return new Ja(n);
1086
+ case "radio-group":
1087
+ return new Qa(n);
1074
1088
  default:
1075
1089
  return new yn(n);
1076
1090
  }
@@ -1329,7 +1343,7 @@ function xn(e, t, n) {
1329
1343
  onRemoveComponent: g
1330
1344
  }, a;
1331
1345
  }
1332
- const Qa = /* @__PURE__ */ ye({
1346
+ const Za = /* @__PURE__ */ ye({
1333
1347
  name: "FFilterBarDesign",
1334
1348
  props: Rt,
1335
1349
  emits: ["Clear", "Remove", "Reset"],
@@ -1368,7 +1382,7 @@ const Qa = /* @__PURE__ */ ye({
1368
1382
  class: "f-filter-list-wrapper"
1369
1383
  }, [T.value && C(), g.value && x(), S.value && k()])])])]);
1370
1384
  }
1371
- }), Za = "https://json-schema.org/draft/2020-12/schema", ei = "https://farris-design.gitee.io/query-solution-config.schema.json", ti = "query-solution-config", ni = "A Farris Container Component", oi = {
1385
+ }), ei = "https://json-schema.org/draft/2020-12/schema", ti = "https://farris-design.gitee.io/query-solution-config.schema.json", ni = "query-solution-config", oi = "A Farris Container Component", li = {
1372
1386
  fieldsConfig: {
1373
1387
  description: "筛选配置项",
1374
1388
  type: "array"
@@ -1393,17 +1407,17 @@ const Qa = /* @__PURE__ */ ye({
1393
1407
  description: "",
1394
1408
  type: "object"
1395
1409
  }
1396
- }, li = {
1397
- $schema: Za,
1398
- $id: ei,
1399
- title: ti,
1400
- description: ni,
1401
- properties: oi
1402
- }, ai = /* @__PURE__ */ new Map([
1410
+ }, ai = {
1411
+ $schema: ei,
1412
+ $id: ti,
1413
+ title: ni,
1414
+ description: oi,
1415
+ properties: li
1416
+ }, ii = /* @__PURE__ */ new Map([
1403
1417
  ["appearance", Ue]
1404
1418
  // ['preset', resolvePreset]
1405
1419
  ]);
1406
- function ii(e, t, n) {
1420
+ function ri(e, t, n) {
1407
1421
  return t;
1408
1422
  }
1409
1423
  const _n = {
@@ -1417,8 +1431,8 @@ const _n = {
1417
1431
  eventsEditorUtils: { type: Object, default: {} },
1418
1432
  viewModelId: { type: String, default: "" }
1419
1433
  };
1420
- Ne(_n, li, ai, ii);
1421
- const ri = {
1434
+ Ne(_n, ai, ii, ri);
1435
+ const si = {
1422
1436
  width: { type: String, default: "300px" },
1423
1437
  height: { type: Number, default: 10 },
1424
1438
  isWidePanel: { type: Boolean, default: !1 },
@@ -1446,7 +1460,7 @@ const ri = {
1446
1460
  schema: { type: Object, default: {} },
1447
1461
  /** 属性变更后事件 */
1448
1462
  propertyChanged: { type: Function }
1449
- }, si = {
1463
+ }, ui = {
1450
1464
  /** 某一分类下的属性配置 */
1451
1465
  // as PropType<ElementPropertyConfig>
1452
1466
  category: { type: Object, default: {} },
@@ -1455,12 +1469,12 @@ const ri = {
1455
1469
  propertyData: { type: Object, default: {} },
1456
1470
  valueChanged: { type: Function },
1457
1471
  triggerRefreshPanel: { type: Function }
1458
- }, ui = {
1472
+ }, ci = {
1459
1473
  elementConfig: { type: Object, default: {} },
1460
1474
  category: { type: Object, default: {} }
1461
1475
  }, jt = /* @__PURE__ */ new Map([
1462
1476
  ["appearance", Ue]
1463
- ]), ci = /* @__PURE__ */ new Map([]), di = "https://json-schema.org/draft/2020-12/schema", fi = "https://farris-design.gitee.io/form-group.schema.json", pi = "form-group", mi = "A Farris Input Component", vi = "object", hi = {
1477
+ ]), di = /* @__PURE__ */ new Map([]), fi = "https://json-schema.org/draft/2020-12/schema", pi = "https://farris-design.gitee.io/form-group.schema.json", mi = "form-group", vi = "A Farris Input Component", hi = "object", gi = {
1464
1478
  id: {
1465
1479
  description: "The unique identifier for a form group",
1466
1480
  type: "string"
@@ -1490,7 +1504,8 @@ const ri = {
1490
1504
  },
1491
1505
  editor: {
1492
1506
  description: "",
1493
- type: "obejct"
1507
+ type: "obejct",
1508
+ default: {}
1494
1509
  },
1495
1510
  label: {
1496
1511
  description: "",
@@ -1506,17 +1521,18 @@ const ri = {
1506
1521
  type: "object",
1507
1522
  default: {}
1508
1523
  }
1509
- }, gi = [
1524
+ }, yi = [
1510
1525
  "id",
1511
- "type"
1526
+ "type",
1527
+ "editor"
1512
1528
  ], kn = {
1513
- $schema: di,
1514
- $id: fi,
1515
- title: pi,
1516
- description: mi,
1517
- type: vi,
1518
- properties: hi,
1519
- required: gi
1529
+ $schema: fi,
1530
+ $id: pi,
1531
+ title: mi,
1532
+ description: vi,
1533
+ type: hi,
1534
+ properties: gi,
1535
+ required: yi
1520
1536
  }, Fn = {
1521
1537
  id: { type: String, default: "" },
1522
1538
  customClass: { type: String, default: "" },
@@ -1538,14 +1554,14 @@ Ne(
1538
1554
  jt,
1539
1555
  void 0
1540
1556
  );
1541
- const yi = {
1557
+ const bi = {
1542
1558
  id: { type: String },
1543
1559
  required: { type: Boolean, default: !1 },
1544
1560
  text: { type: String, default: "" },
1545
1561
  title: { type: String }
1546
- }, bi = /* @__PURE__ */ ye({
1562
+ }, Ci = /* @__PURE__ */ ye({
1547
1563
  name: "FDynamicFormLabel",
1548
- props: yi,
1564
+ props: bi,
1549
1565
  emits: [],
1550
1566
  setup(e, t) {
1551
1567
  const n = v(e.title || e.text), o = v(e.required), l = v(e.text);
@@ -1562,13 +1578,13 @@ const yi = {
1562
1578
  class: "farris-label-text"
1563
1579
  }, [l.value])]);
1564
1580
  }
1565
- }), Ci = /* @__PURE__ */ new Map([
1581
+ }), wi = /* @__PURE__ */ new Map([
1566
1582
  ["appearance", Ue]
1567
1583
  ]);
1568
- function wi(e, t, n) {
1584
+ function Si(e, t, n) {
1569
1585
  return t;
1570
1586
  }
1571
- const Si = "https://json-schema.org/draft/2020-12/schema", xi = "https://farris-design.gitee.io/input-group.schema.json", _i = "input-group", ki = "A Farris Input Component", Fi = "object", Ti = {
1587
+ const xi = "https://json-schema.org/draft/2020-12/schema", _i = "https://farris-design.gitee.io/input-group.schema.json", ki = "input-group", Fi = "A Farris Input Component", Ti = "object", Ii = {
1572
1588
  id: {
1573
1589
  description: "The unique identifier for a Input Group",
1574
1590
  type: "string"
@@ -1765,23 +1781,22 @@ const Si = "https://json-schema.org/draft/2020-12/schema", xi = "https://farris-
1765
1781
  type: "string",
1766
1782
  default: ""
1767
1783
  }
1768
- }, Ii = [
1769
- "id",
1784
+ }, Oi = [
1770
1785
  "type"
1771
- ], Oi = [
1786
+ ], Bi = [
1772
1787
  "id",
1773
1788
  "appearance",
1774
1789
  "binding",
1775
1790
  "visible"
1776
- ], Bi = {
1777
- $schema: Si,
1778
- $id: xi,
1779
- title: _i,
1780
- description: ki,
1781
- type: Fi,
1782
- properties: Ti,
1783
- required: Ii,
1784
- ignore: Oi
1791
+ ], Mi = {
1792
+ $schema: xi,
1793
+ $id: _i,
1794
+ title: ki,
1795
+ description: Fi,
1796
+ type: Ti,
1797
+ properties: Ii,
1798
+ required: Oi,
1799
+ ignore: Bi
1785
1800
  }, Tn = {
1786
1801
  id: { Type: String, default: "" },
1787
1802
  /** 是否自动完成 */
@@ -1850,15 +1865,15 @@ const Si = "https://json-schema.org/draft/2020-12/schema", xi = "https://farris-
1850
1865
  */
1851
1866
  updateOn: { type: String, default: "blur" }
1852
1867
  };
1853
- Ne(Tn, Bi, Ci, wi);
1854
- function Mi(e, t) {
1868
+ Ne(Tn, Mi, wi, Si);
1869
+ function Ei(e, t) {
1855
1870
  const n = v(e.groupText), o = V(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), l = V(() => e.enableClear || !!e.groupText);
1856
1871
  return { appendedButtonClass: V(() => ({
1857
1872
  "input-group-append": !0,
1858
1873
  "append-force-show": o.value
1859
1874
  })), appendedContent: n, shouldShowAppendedButton: l };
1860
1875
  }
1861
- function Ei(e, t, n, o) {
1876
+ function Vi(e, t, n, o) {
1862
1877
  const { appendedContent: l } = o, a = v(e.enableViewPassword), i = V(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', r = '<span class="f-icon f-icon-eye"></span>', c = v(!1);
1863
1878
  te(() => [e.readonly, e.disabled], ([p, m]) => {
1864
1879
  i.value && (n.value = p || m ? "password" : n.value, l.value = p || m ? r : l.value);
@@ -1871,7 +1886,7 @@ function Ei(e, t, n, o) {
1871
1886
  }
1872
1887
  return s(), { isPassword: i, onClickAppendedButton: h };
1873
1888
  }
1874
- function Vi(e, t, n) {
1889
+ function Pi(e, t, n) {
1875
1890
  const o = v(), {
1876
1891
  onBlurTextBox: l,
1877
1892
  onFocusTextBox: a,
@@ -1911,7 +1926,7 @@ function Vi(e, t, n) {
1911
1926
  onKeydown: u
1912
1927
  }, null);
1913
1928
  }
1914
- function Pi(e, t, n) {
1929
+ function $i(e, t, n) {
1915
1930
  const {
1916
1931
  canDownward: o,
1917
1932
  canUpward: l,
@@ -1952,12 +1967,12 @@ function Pi(e, t, n) {
1952
1967
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1953
1968
  }, null)])]);
1954
1969
  }
1955
- function $i(e, t) {
1956
- const n = Co(e, t), o = wo(e, t, n), l = So(e, t, o, n), a = xo(e, t, o, n, l), i = Pi(e, t, l), {
1970
+ function Ri(e, t) {
1971
+ const n = Co(e, t), o = wo(e, t, n), l = So(e, t, o, n), a = xo(e, t, o, n, l), i = $i(e, t, l), {
1957
1972
  displayValue: u,
1958
1973
  modelValue: r,
1959
1974
  getRealValue: c
1960
- } = n, h = Vi(e, t, a), {
1975
+ } = n, h = Pi(e, t, a), {
1961
1976
  format: s
1962
1977
  } = o, {
1963
1978
  isFocus: p
@@ -1976,7 +1991,7 @@ function $i(e, t) {
1976
1991
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1977
1992
  }, [h(), m.value && i()]);
1978
1993
  }
1979
- function Ri(e, t, n, o) {
1994
+ function Ni(e, t, n, o) {
1980
1995
  const l = v(), a = v(e.autocomplete), i = v(e.enableTitle), {
1981
1996
  isPassword: u
1982
1997
  } = n, r = v(e.minLength), c = v(e.maxLength), h = v(e.tabIndex), {
@@ -2022,7 +2037,7 @@ function Ri(e, t, n, o) {
2022
2037
  onMousedown: x
2023
2038
  }, null);
2024
2039
  }
2025
- function Ni(e, t) {
2040
+ function ji(e, t) {
2026
2041
  const n = V(() => e.useExtendInfo && !!e.extendInfo), o = We({
2027
2042
  content: e.extendInfo
2028
2043
  });
@@ -2038,7 +2053,7 @@ function Ni(e, t) {
2038
2053
  class: "tips-arrow"
2039
2054
  }, null)]), [[eo("tooltip"), o]]);
2040
2055
  }
2041
- function ji(e, t, n, o, l) {
2056
+ function Di(e, t, n, o, l) {
2042
2057
  const {
2043
2058
  appendedButtonClass: a,
2044
2059
  appendedContent: i
@@ -2090,7 +2105,7 @@ function ji(e, t, n, o, l) {
2090
2105
  class: a.value
2091
2106
  }, [m.value && y(), k && k()]);
2092
2107
  }
2093
- const Di = /* @__PURE__ */ ye({
2108
+ const Hi = /* @__PURE__ */ ye({
2094
2109
  name: "FInputGroup",
2095
2110
  props: Tn,
2096
2111
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
@@ -2099,12 +2114,12 @@ const Di = /* @__PURE__ */ ye({
2099
2114
  inputGroupClass: a,
2100
2115
  inputType: i,
2101
2116
  inputGroupStyle: u
2102
- } = l, r = Mi(e), {
2117
+ } = l, r = Ei(e), {
2103
2118
  shouldShowAppendedButton: c
2104
2119
  } = r, h = po(e, t, l), {
2105
2120
  onMouseEnter: s,
2106
2121
  onMouseLeave: p
2107
- } = h, m = Ei(e, t, i, r), y = $i(e, t), _ = Ri(e, t, m, l), T = ji(e, t, r, h, m), w = Ni(e, t), C = V(() => e.type === "number");
2122
+ } = h, m = Vi(e, t, i, r), y = Ri(e, t), _ = Ni(e, t, m, l), T = Di(e, t, r, h, m), w = ji(e, t), C = V(() => e.type === "number");
2108
2123
  te(() => [e.value], ([x]) => {
2109
2124
  n.value = x, o.value = x;
2110
2125
  }), te(() => [e.modelValue], ([x]) => {
@@ -2123,13 +2138,13 @@ const Di = /* @__PURE__ */ ye({
2123
2138
  }
2124
2139
  }), Y = {}, K = {}, Q = {}, Z = {};
2125
2140
  let zt = !1;
2126
- function Hi() {
2141
+ function Ai() {
2127
2142
  zt || (zt = !0, ko.register(Y, K, Q, Z), _o.register(Y, K, Q, Z), Fo.register(Y, K, Q, Z), To.register(Y, K, Q, Z), Io.register(Y, K, Q, Z), Oo.register(Y, K, Q, Z), Bo.register(Y, K, Q, Z), kt.register(Y, K, Q, Z), Mo.register(Y, K, Q, Z), Eo.register(Y, K, Q, Z), Po.register(Y, K, Q, Z), Vo.register(Y, K, Q, Z), $o.register(Y, K, Q, Z), Ro.register(Y, K, Q, Z), No.register(Y, K, Q, Z), jo.register(Y, K, Q, Z), Ao.register(Y, K, Q, Z), Lo.register(Y, K, Q, Z), Wo.register(Y, K, Q, Z), zo.register(Y, K, Q, Z), qo.register(Y, K, Q, Z), Uo.register(Y, K, Q, Z), Yo.register(Y, K, Q, Z), Xo.register(Y, K, Q, Z), Ko.register(Y, K, Q, Z), Jo.register(Y, K, Q, Z), Qo.register(Y, K, Q, Z), Zo.register(Y, K, Q, Z), bo.register(Y, K, Q, Z), el.register(Y, K, Q, Z), tl.register(Y, K, Q, Z), nl.register(Y, K, Q, Z), ol.register(Y, K, Q, Z), ll.register(Y, K, Q, Z), al.register(Y, K, Q, Z), il.register(Y, K, Q, Z), rl.register(Y, K, Q, Z), ul.register(Y, K, Q, Z), cl.register(Y, K, Q, Z), sl.register(Y, K, Q, Z), Tl.register(Y, K, Q), dl.register(Y, K, Q, Z), fl.register(Y, K, Q, Z), pl.register(Y, K, Q, Z), ml.register(Y, K, Q, Z), vl.register(Y, K, Q, Z), hl.register(Y, K, Q, Z), gl.register(Y, K, Q, Z), en.register(Y, K, Q, Z), yl.register(Y, K, Q, Z), bl.register(Y, K, Q, Z), Cl.register(Y, K, Q, Z), wl.register(Y, K, Q, Z), xl.register(Y, K, Q, Z), Sl.register(Y, K, Q, Z), _l.register(Y, K, Q, Z), kl.register(Y, K, Q, Z), Fl.register(Y, K, Q, Z), Il.register(Y, K, Q, Z), Go.register(Y, K, Q, Z), Ol.register(Y, K, Q, Z));
2128
2143
  }
2129
- function Ai() {
2130
- Hi();
2144
+ function Li() {
2145
+ Ai();
2131
2146
  function e(l) {
2132
- return Y[l] || Di;
2147
+ return Y[l] || Hi;
2133
2148
  }
2134
2149
  function t(l, a) {
2135
2150
  const i = K[l];
@@ -2221,7 +2236,7 @@ const In = /* @__PURE__ */ ye({
2221
2236
  resolveEditorType: m,
2222
2237
  getChangeFunctionName: y,
2223
2238
  getClearFunctionName: _
2224
- } = Ai(), T = V(() => ({
2239
+ } = Li(), T = V(() => ({
2225
2240
  "form-group": !0,
2226
2241
  "farris-form-group": !0,
2227
2242
  "common-group": !0,
@@ -2254,7 +2269,7 @@ const In = /* @__PURE__ */ ye({
2254
2269
  class: "farris-group-wrap"
2255
2270
  }, [f("div", {
2256
2271
  class: T.value
2257
- }, [c.value && f(bi, {
2272
+ }, [c.value && f(Ci, {
2258
2273
  id: `${n.value}-lable`,
2259
2274
  required: r.value,
2260
2275
  text: a.value,
@@ -2263,9 +2278,9 @@ const In = /* @__PURE__ */ ye({
2263
2278
  class: "farris-input-wrap"
2264
2279
  }, [g.value()])])])]);
2265
2280
  }
2266
- }), Li = /* @__PURE__ */ ye({
2281
+ }), Wi = /* @__PURE__ */ ye({
2267
2282
  name: "FPropertyPanelItem",
2268
- props: ui,
2283
+ props: ci,
2269
2284
  emits: ["propertyChange", "triggerRefreshPanel"],
2270
2285
  setup(e, t) {
2271
2286
  var r;
@@ -2305,9 +2320,9 @@ const In = /* @__PURE__ */ ye({
2305
2320
  editorParams: e.elementConfig.editorParams
2306
2321
  }, null)]);
2307
2322
  }
2308
- }), Wi = /* @__PURE__ */ ye({
2323
+ }), Gi = /* @__PURE__ */ ye({
2309
2324
  name: "FPropertyPanelItemList",
2310
- props: si,
2325
+ props: ui,
2311
2326
  emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
2312
2327
  setup(e, t) {
2313
2328
  const n = v(e.category);
@@ -2368,7 +2383,7 @@ const In = /* @__PURE__ */ ye({
2368
2383
  function h(m) {
2369
2384
  return f("div", {
2370
2385
  class: "px-2 mb-2"
2371
- }, [f(Li, {
2386
+ }, [f(Wi, {
2372
2387
  key: u(m),
2373
2388
  elementConfig: m,
2374
2389
  category: n.value,
@@ -2405,9 +2420,9 @@ const In = /* @__PURE__ */ ye({
2405
2420
  }
2406
2421
  return () => f(Re, null, [n.value.properties.map((m) => p(m)(m))]);
2407
2422
  }
2408
- }), Gi = /* @__PURE__ */ ye({
2423
+ }), zi = /* @__PURE__ */ ye({
2409
2424
  name: "FPropertyPanel",
2410
- props: ri,
2425
+ props: si,
2411
2426
  emits: ["propertyChanged"],
2412
2427
  setup(e, t) {
2413
2428
  const n = v(e.width), o = v(e.isWidePanel), l = v(e.enableSearch), a = v(e.mode), i = v(e.isPersitOpenState), u = v(e.isShowPanel), r = v(), c = v(), h = v(e.showCloseBtn), s = v(e.selectedTabId), p = v(!0), m = v(e.isWhiteTheme);
@@ -2624,7 +2639,7 @@ const In = /* @__PURE__ */ ye({
2624
2639
  }]
2625
2640
  }, null), z.categoryName]), f("div", {
2626
2641
  hidden: z.status === "closed"
2627
- }, [f(Wi, {
2642
+ }, [f(Gi, {
2628
2643
  key: `${z == null ? void 0 : z.categoryId}-${b.value}`,
2629
2644
  category: z,
2630
2645
  propertyData: c.value,
@@ -2696,7 +2711,7 @@ const In = /* @__PURE__ */ ye({
2696
2711
  }]
2697
2712
  }, [xe(), _e()]), Se(), me()]), X(), he()])]);
2698
2713
  }
2699
- }), zi = {
2714
+ }), qi = {
2700
2715
  class: {
2701
2716
  description: "样式",
2702
2717
  title: "样式",
@@ -2791,7 +2806,7 @@ const In = /* @__PURE__ */ ye({
2791
2806
  title: "面板宽度",
2792
2807
  type: "number"
2793
2808
  }
2794
- }, qi = {
2809
+ }, Ui = {
2795
2810
  class: {
2796
2811
  description: "样式",
2797
2812
  title: "样式",
@@ -2812,7 +2827,7 @@ const In = /* @__PURE__ */ ye({
2812
2827
  title: "显示格式",
2813
2828
  type: "string"
2814
2829
  }
2815
- }, Ui = {
2830
+ }, Xi = {
2816
2831
  "input-group": {
2817
2832
  class: {
2818
2833
  description: "样式",
@@ -2923,7 +2938,7 @@ const In = /* @__PURE__ */ ye({
2923
2938
  }
2924
2939
  }
2925
2940
  },
2926
- lookup: zi,
2941
+ lookup: qi,
2927
2942
  "combo-lookup": {
2928
2943
  class: {
2929
2944
  description: "样式",
@@ -3099,7 +3114,7 @@ const In = /* @__PURE__ */ ye({
3099
3114
  type: "string"
3100
3115
  }
3101
3116
  },
3102
- month: qi,
3117
+ month: Ui,
3103
3118
  "single-year": {
3104
3119
  class: {
3105
3120
  description: "样式",
@@ -3145,7 +3160,7 @@ const In = /* @__PURE__ */ ye({
3145
3160
  }
3146
3161
  }
3147
3162
  };
3148
- class Xi {
3163
+ class Yi {
3149
3164
  constructor(t, n) {
3150
3165
  q(this, "componentId");
3151
3166
  q(this, "viewModelId");
@@ -3237,7 +3252,7 @@ class Xi {
3237
3252
  const o = n && n.parent && n.parent.schema;
3238
3253
  if (!o)
3239
3254
  return;
3240
- const l = o.contents.findIndex((i) => i.id === t), a = Ee(o.contents[l]);
3255
+ const l = o.contents.findIndex((i) => i.id === t), a = Me(o.contents[l]);
3241
3256
  o.contents.splice(l, 1), o.contents.splice(l, 0, a);
3242
3257
  }
3243
3258
  }
@@ -3313,11 +3328,11 @@ q(tt, "fieldControlTypeMapping", {
3313
3328
  });
3314
3329
  let qt = tt;
3315
3330
  const St = v(0);
3316
- function Yi(e, t) {
3331
+ function Ki(e, t) {
3317
3332
  const n = t.getBoundingClientRect(), o = e.getBoundingClientRect(), l = o.top >= n.top, a = o.top <= n.bottom;
3318
3333
  return l && a;
3319
3334
  }
3320
- function Ki(e) {
3335
+ function Ji(e) {
3321
3336
  if (!e)
3322
3337
  return;
3323
3338
  let t;
@@ -3328,7 +3343,7 @@ function Ki(e) {
3328
3343
  return;
3329
3344
  const o = t.querySelector(".component-btn-group");
3330
3345
  if (o) {
3331
- if (!Yi(t, e)) {
3346
+ if (!Ki(t, e)) {
3332
3347
  o.style.display = "none";
3333
3348
  return;
3334
3349
  }
@@ -3340,13 +3355,13 @@ function Ki(e) {
3340
3355
  }
3341
3356
  }
3342
3357
  }
3343
- const Ji = /* @__PURE__ */ new Map([
3358
+ const Qi = /* @__PURE__ */ new Map([
3344
3359
  ["appearance", Bl]
3345
3360
  ]);
3346
- function Qi(e, t, n) {
3361
+ function Zi(e, t, n) {
3347
3362
  return t;
3348
3363
  }
3349
- const Zi = "https://json-schema.org/draft/2020-12/schema", er = "https://farris-design.gitee.io/button-edit.schema.json", tr = "button-edit", nr = "A Farris Input Component", or = "object", lr = {
3364
+ const er = "https://json-schema.org/draft/2020-12/schema", tr = "https://farris-design.gitee.io/button-edit.schema.json", nr = "button-edit", or = "A Farris Input Component", lr = "object", ar = {
3350
3365
  id: {
3351
3366
  description: "The unique identifier for a Input Group",
3352
3367
  type: "string"
@@ -3530,18 +3545,18 @@ const Zi = "https://json-schema.org/draft/2020-12/schema", er = "https://farris-
3530
3545
  type: "string",
3531
3546
  default: ""
3532
3547
  }
3533
- }, ar = [
3548
+ }, ir = [
3534
3549
  "id",
3535
3550
  "type"
3536
- ], ir = {
3537
- $schema: Zi,
3538
- $id: er,
3539
- title: tr,
3540
- description: nr,
3541
- type: or,
3542
- properties: lr,
3543
- required: ar
3544
- }, rr = "buttonEdit", sr = "A Farris Component", ur = "object", cr = {
3551
+ ], rr = {
3552
+ $schema: er,
3553
+ $id: tr,
3554
+ title: nr,
3555
+ description: or,
3556
+ type: lr,
3557
+ properties: ar,
3558
+ required: ir
3559
+ }, sr = "buttonEdit", ur = "A Farris Component", cr = "object", dr = {
3545
3560
  basic: {
3546
3561
  description: "Basic Infomation",
3547
3562
  title: "基本信息",
@@ -3623,11 +3638,11 @@ const Zi = "https://json-schema.org/draft/2020-12/schema", er = "https://farris-
3623
3638
  }
3624
3639
  }
3625
3640
  }
3626
- }, dr = {
3627
- title: rr,
3628
- description: sr,
3629
- type: ur,
3630
- categories: cr
3641
+ }, fr = {
3642
+ title: sr,
3643
+ description: ur,
3644
+ type: cr,
3645
+ categories: dr
3631
3646
  }, On = {
3632
3647
  /**
3633
3648
  * 组件标识
@@ -3737,14 +3752,14 @@ const Zi = "https://json-schema.org/draft/2020-12/schema", er = "https://farris-
3737
3752
  /** 更新方式 blur | change */
3738
3753
  updateOn: { type: String, default: "change" }
3739
3754
  };
3740
- Ne(On, ir, Ji, Qi, dr);
3741
- const fr = {
3755
+ Ne(On, rr, Qi, Zi, fr);
3756
+ const pr = {
3742
3757
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
3743
3758
  host: { type: Object },
3744
3759
  backgroundColor: { type: String, default: "" }
3745
- }, pr = /* @__PURE__ */ ye({
3760
+ }, mr = /* @__PURE__ */ ye({
3746
3761
  name: "FOverlay",
3747
- props: fr,
3762
+ props: pr,
3748
3763
  emits: ["click"],
3749
3764
  setup(e, t) {
3750
3765
  const n = v(e.popupContentPosition), o = v(e.host), l = V(() => ({
@@ -3790,13 +3805,13 @@ const fr = {
3790
3805
  });
3791
3806
  }
3792
3807
  });
3793
- function mr(e) {
3808
+ function vr(e) {
3794
3809
  if (e.content && e.content.render)
3795
3810
  return e.content.render;
3796
3811
  if (e.render && typeof e.render == "function")
3797
3812
  return e.render;
3798
3813
  }
3799
- function vr(e) {
3814
+ function hr(e) {
3800
3815
  const t = document.createElement("div");
3801
3816
  t.style.display = "contents";
3802
3817
  let n;
@@ -3809,8 +3824,8 @@ function vr(e) {
3809
3824
  nt(() => {
3810
3825
  document.body.removeChild(t);
3811
3826
  });
3812
- const a = mr(e);
3813
- return () => f(pr, {
3827
+ const a = vr(e);
3828
+ return () => f(mr, {
3814
3829
  "popup-content-position": e.popupPosition,
3815
3830
  host: e.host,
3816
3831
  onClick: l,
@@ -3821,12 +3836,12 @@ function vr(e) {
3821
3836
  }
3822
3837
  }), document.body.appendChild(t), n.mount(t), n;
3823
3838
  }
3824
- class hr {
3839
+ class gr {
3825
3840
  static show(t) {
3826
- return vr(t);
3841
+ return hr(t);
3827
3842
  }
3828
3843
  }
3829
- const gr = {
3844
+ const yr = {
3830
3845
  /**
3831
3846
  * 自定义类
3832
3847
  */
@@ -3970,7 +3985,7 @@ class Je {
3970
3985
  return this.width = t.width, this.height = t.height, this;
3971
3986
  }
3972
3987
  }
3973
- function yr(e, t) {
3988
+ function br(e, t) {
3974
3989
  const n = v(), o = v(), l = v(), a = v(), i = v(), u = v(), r = v(), c = v(), h = v(), s = v(), p = v(), m = v(), y = v(e.draggable), _ = v(!1);
3975
3990
  function T() {
3976
3991
  const P = o.value || document.body, N = window.getComputedStyle(P);
@@ -4155,7 +4170,7 @@ function yr(e, t) {
4155
4170
  unWindowResizeHandle: R
4156
4171
  };
4157
4172
  }
4158
- function br(e, t, n) {
4173
+ function Cr(e, t, n) {
4159
4174
  const o = v(), l = v(e.draggable), a = v(e.lockAxis), i = v(), u = v(), r = v(!1), c = v(new Te(0, 0)), h = v(new Te(0, 0)), s = v(new Te(0, 0)), p = v(new Te(0, 0));
4160
4175
  te(() => n.value, (F) => {
4161
4176
  i.value.style.cursor = F ? "move" : "default";
@@ -4245,7 +4260,7 @@ function Bn(e, t) {
4245
4260
  };
4246
4261
  }
4247
4262
  }
4248
- function Cr(e, t) {
4263
+ function wr(e, t) {
4249
4264
  const n = v(e.enableEsc);
4250
4265
  let o = null;
4251
4266
  return n.value ? (o = Bn("Escape", (l) => {
@@ -4254,7 +4269,7 @@ function Cr(e, t) {
4254
4269
  remove: o
4255
4270
  }) : null;
4256
4271
  }
4257
- function wr(e, t) {
4272
+ function Sr(e, t) {
4258
4273
  const n = v(e.enableEnter);
4259
4274
  let o = null;
4260
4275
  return n.value ? (o = Bn("Enter", (l) => {
@@ -4265,7 +4280,7 @@ function wr(e, t) {
4265
4280
  }
4266
4281
  const Mn = /* @__PURE__ */ ye({
4267
4282
  name: "FModal",
4268
- props: gr,
4283
+ props: yr,
4269
4284
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
4270
4285
  setup(e, t) {
4271
4286
  const n = v(e.width || 300), o = v(e.height || 200), l = v(e.modelValue), a = v(""), i = v(e.class), u = v(e.fitContent), r = v(e.showHeader), c = v(""), h = v(e.showCloseButton), s = v(e.showMaxButton), p = v(!1), m = v(""), y = v(""), _ = v(""), T = v(e.showButtons), w = v(e.title), C = v(e.reiszeable), g = v(e.containment || null), x = v();
@@ -4294,9 +4309,9 @@ const Mn = /* @__PURE__ */ ye({
4294
4309
  resizedEventParam: P,
4295
4310
  allowDrag: N,
4296
4311
  unWindowResizeHandle: D
4297
- } = yr(e), {
4312
+ } = br(e), {
4298
4313
  registerDraggle: j
4299
- } = br(e, t, N);
4314
+ } = Cr(e, t, N);
4300
4315
  te(() => e.title, (A, ie) => {
4301
4316
  A !== ie && (w.value = A);
4302
4317
  }), te(() => e.modelValue, (A, ie) => {
@@ -4375,7 +4390,7 @@ const Mn = /* @__PURE__ */ ye({
4375
4390
  }
4376
4391
  let xe = null, G = null;
4377
4392
  Ve(() => {
4378
- B.value && !g.value && (g.value = B.value.parentElement, R.value = g.value, j(I.value, B.value, R.value)), J.value && document.body.classList.add("modal-open"), xe = Cr(e, t), G = wr(e, t);
4393
+ B.value && !g.value && (g.value = B.value.parentElement, R.value = g.value, j(I.value, B.value, R.value)), J.value && document.body.classList.add("modal-open"), xe = wr(e, t), G = Sr(e, t);
4379
4394
  }), nt(() => {
4380
4395
  H(), D && D(), xe && xe.remove(), G && G.remove();
4381
4396
  }), t.expose({
@@ -4478,7 +4493,7 @@ function En(e) {
4478
4493
  if (e.render && typeof e.render == "function")
4479
4494
  return e.render;
4480
4495
  }
4481
- function Sr(e) {
4496
+ function xr(e) {
4482
4497
  const t = document.createElement("div");
4483
4498
  t.style.display = "contents";
4484
4499
  const n = Et({
@@ -4521,7 +4536,7 @@ function Sr(e) {
4521
4536
  });
4522
4537
  return document.body.appendChild(t), n.mount(t), n;
4523
4538
  }
4524
- class xr {
4539
+ class _r {
4525
4540
  constructor(t) {
4526
4541
  q(this, "appContext", null);
4527
4542
  q(this, "modalRef", v());
@@ -4540,7 +4555,7 @@ class xr {
4540
4555
  showButtons: !0,
4541
4556
  showHeader: !0
4542
4557
  }, t);
4543
- return Sr(n);
4558
+ return xr(n);
4544
4559
  }
4545
4560
  open(t) {
4546
4561
  const n = document.createDocumentFragment();
@@ -4604,7 +4619,7 @@ class xr {
4604
4619
  };
4605
4620
  }
4606
4621
  }
4607
- const _r = Symbol("FModalService");
4622
+ const kr = Symbol("FModalService");
4608
4623
  function Vn(e, t) {
4609
4624
  function n() {
4610
4625
  const o = e.beforeOpen || e.beforeClickButton || null;
@@ -4619,11 +4634,11 @@ function Vn(e, t) {
4619
4634
  }
4620
4635
  return { judgeCanOpen: n };
4621
4636
  }
4622
- function kr(e, t, n, o, l) {
4637
+ function Fr(e, t, n, o, l) {
4623
4638
  const a = v(e.buttonBehavior), i = v(e.popupOnInput), u = V(() => ({
4624
4639
  "input-group-append": !0,
4625
4640
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
4626
- })), { judgeCanOpen: r } = Vn(e, l), c = V(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), h = qe(_r, null), s = v();
4641
+ })), { judgeCanOpen: r } = Vn(e, l), c = V(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), h = qe(kr, null), s = v();
4627
4642
  async function p(_) {
4628
4643
  if (await r() && c.value) {
4629
4644
  const T = !!t.slots.default;
@@ -4634,7 +4649,7 @@ function kr(e, t, n, o, l) {
4634
4649
  });
4635
4650
  s.value = C == null ? void 0 : C.modalRef;
4636
4651
  }
4637
- a.value === "Overlay" && hr.show({
4652
+ a.value === "Overlay" && gr.show({
4638
4653
  // host: buttonEditRef.value,
4639
4654
  host: document.body,
4640
4655
  backgroundColor: "rgba(0,0,0,.15)",
@@ -4656,7 +4671,7 @@ function kr(e, t, n, o, l) {
4656
4671
  modalRef: s
4657
4672
  };
4658
4673
  }
4659
- function Fr(e, t, n, o, l, a) {
4674
+ function Tr(e, t, n, o, l, a) {
4660
4675
  const i = v(!1), u = V(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: r } = a;
4661
4676
  function c(m) {
4662
4677
  i.value = m;
@@ -4688,7 +4703,7 @@ function Fr(e, t, n, o, l, a) {
4688
4703
  onMouseLeaveTextBox: p
4689
4704
  };
4690
4705
  }
4691
- function Tr(e, t, n, o, l) {
4706
+ function Ir(e, t, n, o, l) {
4692
4707
  const a = V(() => e.popupOnInput), i = V(() => e.popupOnFocus), { shouldPopupContent: u } = l, r = V(() => e.enableTitle ? n.value : ""), c = V(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), h = V(() => e.readonly || !e.editable), s = v(!1), p = V(() => !e.disable && s.value), m = V(() => ({
4693
4708
  "text-left": e.textAlign === "left",
4694
4709
  "text-center": e.textAlign === "center",
@@ -4760,7 +4775,7 @@ function Tr(e, t, n, o, l) {
4760
4775
  onTextBoxValueChange: b
4761
4776
  };
4762
4777
  }
4763
- function Ir(e, t, n, o) {
4778
+ function Or(e, t, n, o) {
4764
4779
  const l = v(), a = v(!1), { judgeCanOpen: i } = Vn(e, o);
4765
4780
  function u() {
4766
4781
  const s = l.value;
@@ -4785,7 +4800,7 @@ function Ir(e, t, n, o) {
4785
4800
  }
4786
4801
  return { hidePopup: h, popup: c, shouldPopupContent: a, togglePopup: r, popoverRef: l };
4787
4802
  }
4788
- function Or(e, t, n) {
4803
+ function Br(e, t, n) {
4789
4804
  const o = v(), {
4790
4805
  isTextBoxReadonly: l,
4791
4806
  textBoxClass: a,
@@ -4827,7 +4842,7 @@ function Or(e, t, n) {
4827
4842
  onMousedown: y
4828
4843
  }, null);
4829
4844
  }
4830
- function Br(e, t, n) {
4845
+ function Mr(e, t, n) {
4831
4846
  const o = v(e.separator), {
4832
4847
  changeTextBoxValue: l
4833
4848
  } = n, a = V(() => t.value ? t.value.split(o.value).map((u) => ({
@@ -4846,7 +4861,7 @@ function Br(e, t, n) {
4846
4861
  onChange: i
4847
4862
  }, null);
4848
4863
  }
4849
- function Mr(e, t, n, o) {
4864
+ function Er(e, t, n, o) {
4850
4865
  const {
4851
4866
  buttonGroupClass: l,
4852
4867
  onClickButton: a,
@@ -4882,7 +4897,7 @@ function Mr(e, t, n, o) {
4882
4897
  buttonHandleElement: s
4883
4898
  };
4884
4899
  }
4885
- function Er(e, t, n) {
4900
+ function Vr(e, t, n) {
4886
4901
  const o = v(e.popupMinWidth), {
4887
4902
  hidePopup: l,
4888
4903
  popoverRef: a
@@ -4906,20 +4921,20 @@ function Er(e, t, n) {
4906
4921
  }
4907
4922
  });
4908
4923
  }
4909
- const Vr = /* @__PURE__ */ ye({
4924
+ const Pr = /* @__PURE__ */ ye({
4910
4925
  name: "FButtonEdit",
4911
4926
  props: On,
4912
4927
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
4913
4928
  setup(e, t) {
4914
- const n = v(), o = v(e.customClass), l = v(e.modelValue), a = Ir(e, t, n, l), {
4929
+ const n = v(), o = v(e.customClass), l = v(e.modelValue), a = Or(e, t, n, l), {
4915
4930
  shouldPopupContent: i,
4916
4931
  hidePopup: u,
4917
4932
  togglePopup: r
4918
- } = a, c = kr(e, t, n, a, l), h = v(""), s = Tr(e, t, l, h, a), {
4933
+ } = a, c = Fr(e, t, n, a, l), h = v(""), s = Ir(e, t, l, h, a), {
4919
4934
  hasFocusedTextBox: p,
4920
4935
  commitValue: m,
4921
4936
  inputGroupClass: y
4922
- } = s, _ = Fr(e, t, l, p, h, s), {
4937
+ } = s, _ = Tr(e, t, l, p, h, s), {
4923
4938
  onMouseEnterTextBox: T,
4924
4939
  onMouseLeaveTextBox: w
4925
4940
  } = _, C = V(() => {
@@ -4931,7 +4946,7 @@ const Vr = /* @__PURE__ */ ye({
4931
4946
  return o.value && o.value.split(" ").reduce((I, B) => (I[B] = !0, I), d), d;
4932
4947
  });
4933
4948
  function g() {
4934
- return e.multiSelect && e.inputType === "tag" ? Br(e, l, s) : Or(e, l, s);
4949
+ return e.multiSelect && e.inputType === "tag" ? Mr(e, l, s) : Br(e, l, s);
4935
4950
  }
4936
4951
  let x = g();
4937
4952
  te([() => e.multiSelect, () => e.inputType], () => {
@@ -4940,7 +4955,7 @@ const Vr = /* @__PURE__ */ ye({
4940
4955
  const {
4941
4956
  renderButtonGroup: S,
4942
4957
  buttonHandleElement: k
4943
- } = Mr(e, t, c, _), F = Er(e, t, a), b = {
4958
+ } = Er(e, t, c, _), F = Vr(e, t, a), b = {
4944
4959
  commitValue: m,
4945
4960
  elementRef: n,
4946
4961
  hidePopup: u,
@@ -4969,7 +4984,7 @@ const Vr = /* @__PURE__ */ ye({
4969
4984
  onMouseleave: w
4970
4985
  }, [x(), S()])]), i.value && F()]);
4971
4986
  }
4972
- }), Pr = "https://json-schema.org/draft/2020-12/schema", $r = "https://farris-design.gitee.io/field-selector.schema.json", Rr = "field-selector", Nr = "A Farris Input Component", jr = "object", Dr = {
4987
+ }), $r = "https://json-schema.org/draft/2020-12/schema", Rr = "https://farris-design.gitee.io/field-selector.schema.json", Nr = "field-selector", jr = "A Farris Input Component", Dr = "object", Hr = {
4973
4988
  disabled: {
4974
4989
  description: "",
4975
4990
  type: "boolean",
@@ -5060,24 +5075,24 @@ const Vr = /* @__PURE__ */ ye({
5060
5075
  type: "object",
5061
5076
  default: null
5062
5077
  }
5063
- }, Hr = {
5064
- $schema: Pr,
5065
- $id: $r,
5066
- title: Rr,
5067
- description: Nr,
5068
- type: jr,
5069
- properties: Dr
5070
- }, Ar = [
5078
+ }, Ar = {
5079
+ $schema: $r,
5080
+ $id: Rr,
5081
+ title: Nr,
5082
+ description: jr,
5083
+ type: Dr,
5084
+ properties: Hr
5085
+ }, Lr = [
5071
5086
  { field: "code", title: "绑定字段" },
5072
5087
  { field: "name", title: "名称" },
5073
5088
  { field: "fieldType", title: "字段类型" }
5074
- ], xt = Symbol("Field_Selector Component Repository Service Token"), Lr = {
5089
+ ], xt = Symbol("Field_Selector Component Repository Service Token"), Wr = {
5075
5090
  disabled: { type: Boolean, default: !1 },
5076
5091
  readonly: { type: Boolean, default: !1 },
5077
5092
  modelValue: { type: [String, Array], default: null },
5078
5093
  data: { type: Array, default: [] },
5079
5094
  idField: { type: String, default: "id" },
5080
- columns: { type: Array, default: Ar },
5095
+ columns: { type: Array, default: Lr },
5081
5096
  title: { type: String, default: "字段选择器" },
5082
5097
  modalWidth: { type: Number, default: 800 },
5083
5098
  modalHeight: { type: Number, default: 600 },
@@ -5095,12 +5110,12 @@ const Vr = /* @__PURE__ */ ye({
5095
5110
  onFieldSelected: { type: Function, default: null },
5096
5111
  repositoryToken: { type: Symbol, default: null }
5097
5112
  };
5098
- Ne(Lr, Hr);
5113
+ Ne(Wr, Ar);
5099
5114
  const Pn = /* @__PURE__ */ new Map([
5100
5115
  ["appearance", Ue],
5101
5116
  ["column", "columnOption"]
5102
5117
  ]);
5103
- function Wr(e, t, n) {
5118
+ function Gr(e, t, n) {
5104
5119
  var s;
5105
5120
  const o = n.parentComponentInstance, l = o.schema.type, a = String(((s = o.schema.appearance) == null ? void 0 : s.class) || "").split(" "), i = l === "section" || l === "tab-page", u = a.includes("f-page-content-nav"), r = a.includes("f-page-main"), c = e.getSchemaByType("component");
5106
5121
  c.id = `${t.id}-component`, c.componentType = "data-grid";
@@ -5109,23 +5124,23 @@ function Wr(e, t, n) {
5109
5124
  class: h
5110
5125
  }, c.contents = [t], c;
5111
5126
  }
5112
- function Gr(e, t, n) {
5127
+ function zr(e, t, n) {
5113
5128
  const o = n.parentComponentInstance, l = String(o.schema.appearance.class || "").split(" "), a = l.includes("f-page-content-nav"), i = l.includes("f-page-main"), u = e.getSchemaByType("section");
5114
5129
  u.id = `${t.id}-section`;
5115
5130
  let r = "";
5116
5131
  return r += a ? "f-section-in-nav " : "", r += i ? "f-section-in-managelist " : "", r += "f-section-grid", u.appearance = { class: r }, u.contents = [t], u;
5117
5132
  }
5118
- function zr(e, t, n) {
5133
+ function qr(e, t, n) {
5119
5134
  const o = e.getSchemaByType("content-container");
5120
5135
  return o.id = `${t.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [t], o;
5121
5136
  }
5122
5137
  function $n(e, t, n) {
5123
5138
  const l = n.parentComponentInstance.schema.type, a = l === "section" || l === "tab-page";
5124
5139
  t.appearance = { class: "f-component-grid" };
5125
- const u = (a ? zr : Gr)(e, t, n);
5126
- return Wr(e, u, n);
5140
+ const u = (a ? qr : zr)(e, t, n);
5141
+ return Gr(e, u, n);
5127
5142
  }
5128
- const qr = "https://json-schema.org/draft/2020-12/schema", Ur = "https://farris-design.gitee.io/tree-grid.schema.json", Xr = "tree-grid", Yr = "A Farris Data Grid Component", Kr = "object", Jr = {
5143
+ const Ur = "https://json-schema.org/draft/2020-12/schema", Xr = "https://farris-design.gitee.io/tree-grid.schema.json", Yr = "tree-grid", Kr = "A Farris Data Grid Component", Jr = "object", Qr = {
5129
5144
  id: {
5130
5145
  description: "The unique identifier for a Input Group",
5131
5146
  type: "string"
@@ -5898,17 +5913,18 @@ const qr = "https://json-schema.org/draft/2020-12/schema", Ur = "https://farris-
5898
5913
  type: "string",
5899
5914
  default: ""
5900
5915
  }
5901
- }, Qr = [
5916
+ }, Zr = [
5902
5917
  "id",
5903
- "type"
5918
+ "type",
5919
+ "columns"
5904
5920
  ], Rn = {
5905
- $schema: qr,
5906
- $id: Ur,
5907
- title: Xr,
5908
- description: Yr,
5909
- type: Kr,
5910
- properties: Jr,
5911
- required: Qr
5921
+ $schema: Ur,
5922
+ $id: Xr,
5923
+ title: Yr,
5924
+ description: Kr,
5925
+ type: Jr,
5926
+ properties: Qr,
5927
+ required: Zr
5912
5928
  }, Dt = {
5913
5929
  /** 列集合 */
5914
5930
  columns: { type: Array, default: [] },
@@ -6023,8 +6039,8 @@ const qr = "https://json-schema.org/draft/2020-12/schema", Ur = "https://farris-
6023
6039
  autoCheckChildren: { type: Boolean, default: !1 },
6024
6040
  /** 显示设置按钮 */
6025
6041
  showSetting: { type: Boolean, default: !1 }
6026
- }, Zr = Ne(Dt, Rn, Pn, $n), es = _a(), ts = xa(), Nn = Object.assign({}, Dt, { componentId: { type: String, default: "" } }), ns = Ne(Nn, Rn, Pn, $n);
6027
- var He = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(He || {}), Ge = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(Ge || {}), at = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(at || {}), Me = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.filterable = 1] = "filterable", e[e.sortable = 2] = "sortable", e[e.filtered = 4] = "filtered", e[e.sorted = 8] = "sorted", e[e.ascending = 16] = "ascending", e[e.descending = 32] = "descending", e))(Me || {}), It = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(It || {});
6042
+ }, es = Ne(Dt, Rn, Pn, $n), ts = ka(), ns = _a(), Nn = Object.assign({}, Dt, { componentId: { type: String, default: "" } }), os = Ne(Nn, Rn, Pn, $n);
6043
+ var He = /* @__PURE__ */ ((e) => (e[e.readonly = 0] = "readonly", e[e.editable = 1] = "editable", e[e.editing = 2] = "editing", e))(He || {}), Ge = /* @__PURE__ */ ((e) => (e[e.initial = 0] = "initial", e[e.editing = 1] = "editing", e))(Ge || {}), at = /* @__PURE__ */ ((e) => (e[e.data = 0] = "data", e[e.group = 1] = "group", e[e.summary = 2] = "summary", e))(at || {}), Ee = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.filterable = 1] = "filterable", e[e.sortable = 2] = "sortable", e[e.filtered = 4] = "filtered", e[e.sorted = 8] = "sorted", e[e.ascending = 16] = "ascending", e[e.descending = 32] = "descending", e))(Ee || {}), It = /* @__PURE__ */ ((e) => (e.NONE = "none", e.NUMBER = "number", e.DATE = "date", e.TEXT = "boolean", e.IMAGE = "boolean2", e.ENUM = "enum", e.CUSTOM = "custom", e))(It || {});
6028
6044
  function jn(e, t) {
6029
6045
  var m;
6030
6046
  const n = String(Date.now()), o = ((m = e.rowOption) == null ? void 0 : m.height) || 28, l = v(t.value.primaryColumnsWidth);
@@ -6101,7 +6117,7 @@ function jn(e, t) {
6101
6117
  summaryCellPosition: u
6102
6118
  };
6103
6119
  }
6104
- function os(e, t, n) {
6120
+ function ls(e, t, n) {
6105
6121
  const { hasChildrenField: o } = n, l = v("#9399a0"), a = v(28);
6106
6122
  function i() {
6107
6123
  return [].concat(
@@ -6140,7 +6156,7 @@ function os(e, t, n) {
6140
6156
  }
6141
6157
  return { hierarchyCellContentStyle: c, handleCollapsedPaddingBottom: r };
6142
6158
  }
6143
- function ls(e, t, n) {
6159
+ function as(e, t, n) {
6144
6160
  const o = v(e.iconField);
6145
6161
  function l(a, i) {
6146
6162
  if (o.value)
@@ -6167,7 +6183,7 @@ function Dn() {
6167
6183
  }
6168
6184
  return { updateRowPosition: e, updateVisualInfomation: t };
6169
6185
  }
6170
- function as(e, t, n, o, l, a) {
6186
+ function is(e, t, n, o, l, a) {
6171
6187
  const { dataView: i, fold: u, hasRealChildren: r, unFold: c } = o, { collapseField: h, hasChildrenField: s } = l, { updateRowPosition: p } = Dn();
6172
6188
  function m(T, w) {
6173
6189
  const C = w[T].layer;
@@ -6205,7 +6221,7 @@ function as(e, t, n, o, l, a) {
6205
6221
  }
6206
6222
  return { toggleTreeNode: _ };
6207
6223
  }
6208
- function is(e, t, n, o, l, a, i, u, r, c, h) {
6224
+ function rs(e, t, n, o, l, a, i, u, r, c, h) {
6209
6225
  const {
6210
6226
  onClickCell: s
6211
6227
  } = a, {
@@ -6231,7 +6247,7 @@ function is(e, t, n, o, l, a, i, u, r, c, h) {
6231
6247
  shouldShowIcon: M
6232
6248
  } = i, {
6233
6249
  toggleTreeNode: $
6234
- } = as(e, t, o, l, i), {
6250
+ } = is(e, t, o, l, i), {
6235
6251
  toggleSelectHierarchyItem: O
6236
6252
  } = c, {
6237
6253
  cellKey: E,
@@ -6240,9 +6256,9 @@ function is(e, t, n, o, l, a, i, u, r, c, h) {
6240
6256
  rowPosition: N
6241
6257
  } = jn(e, n), {
6242
6258
  hierarchyCellContentStyle: D
6243
- } = os(e, o, i), {
6259
+ } = ls(e, o, i), {
6244
6260
  treeNodeIconsClass: j
6245
- } = ls(e, d, I);
6261
+ } = as(e, d, I);
6246
6262
  function H(U, X) {
6247
6263
  const pe = U.raw[I.value];
6248
6264
  return {
@@ -6322,7 +6338,7 @@ function is(e, t, n, o, l, a, i, u, r, c, h) {
6322
6338
  renderDataRow: he
6323
6339
  };
6324
6340
  }
6325
- function rs(e, t, n) {
6341
+ function ss(e, t, n) {
6326
6342
  const {
6327
6343
  horizontalScrollThumbStyle: o,
6328
6344
  onMouseDownScrollThumb: l,
@@ -6341,7 +6357,7 @@ function rs(e, t, n) {
6341
6357
  renderHorizontalScrollbar: i
6342
6358
  };
6343
6359
  }
6344
- function ss(e, t, n, o, l) {
6360
+ function us(e, t, n, o, l) {
6345
6361
  const {
6346
6362
  isSelectingHirarchyItem: a,
6347
6363
  multiSelectOnClickRow: i,
@@ -6419,7 +6435,7 @@ function ss(e, t, n, o, l) {
6419
6435
  renderDataGridSidebar: F
6420
6436
  };
6421
6437
  }
6422
- function us(e, t, n) {
6438
+ function cs(e, t, n) {
6423
6439
  const {
6424
6440
  verticalScrollThumbStyle: o,
6425
6441
  onMouseDownScrollThumb: l,
@@ -6438,7 +6454,7 @@ function us(e, t, n) {
6438
6454
  renderVerticalScrollbar: i
6439
6455
  };
6440
6456
  }
6441
- function cs() {
6457
+ function ds() {
6442
6458
  function e(o, l) {
6443
6459
  switch (o.command) {
6444
6460
  case "edit":
@@ -6476,7 +6492,7 @@ function cs() {
6476
6492
  renderCommandColumn: n
6477
6493
  };
6478
6494
  }
6479
- function ds(e) {
6495
+ function fs(e) {
6480
6496
  function t() {
6481
6497
  return f("div", {
6482
6498
  class: "d-flex flex-column f-datagrid-norecords"
@@ -6489,7 +6505,7 @@ function ds(e) {
6489
6505
  renderEmpty: t
6490
6506
  };
6491
6507
  }
6492
- function fs(e) {
6508
+ function ps(e) {
6493
6509
  const t = v(e.minHeight), n = v(e.minWidth), o = v(e.height), l = v(e.width), a = V(() => o.value <= 0 ? 0 : Math.max(o.value, t.value)), i = V(() => l.value <= 0 ? 0 : Math.max(l.value, n.value));
6494
6510
  return te([
6495
6511
  () => e.height,
@@ -6503,7 +6519,7 @@ function fs(e) {
6503
6519
  width: i.value > 0 ? `${i.value}px` : e.fit ? "100%" : ""
6504
6520
  })) };
6505
6521
  }
6506
- function ps(e) {
6522
+ function ms(e) {
6507
6523
  const o = v({
6508
6524
  defaultColumnWidth: 120,
6509
6525
  headerDepth: 1,
@@ -6611,23 +6627,23 @@ function ps(e) {
6611
6627
  updateColumnSettingIcon: u
6612
6628
  };
6613
6629
  }
6614
- const ms = [{
6630
+ const vs = [{
6615
6631
  name: "是",
6616
6632
  value: !0
6617
6633
  }, {
6618
6634
  name: "否",
6619
6635
  value: !1
6620
6636
  }];
6621
- function vs(e) {
6637
+ function hs(e) {
6622
6638
  return e.filter = e.filter || function(t) {
6623
6639
  return String(e.filterValue).split(",").includes(String(t[e.field]));
6624
6640
  }, f("div", null, [f(ze("f-checkbox-group"), {
6625
6641
  modelValue: e.filterValue,
6626
6642
  "onUpdate:modelValue": (t) => e.filterValue = t,
6627
- "enum-data": ms
6643
+ "enum-data": vs
6628
6644
  }, null)]);
6629
6645
  }
6630
- const hs = v([{
6646
+ const gs = v([{
6631
6647
  name: "七天",
6632
6648
  selectable: !0
6633
6649
  }, {
@@ -6640,7 +6656,7 @@ const hs = v([{
6640
6656
  name: "半年",
6641
6657
  selectable: !0
6642
6658
  }]);
6643
- function gs(e) {
6659
+ function ys(e) {
6644
6660
  const t = v(!1);
6645
6661
  return e.filter = e.filter || function(n) {
6646
6662
  const o = new Date(new Date(e.filterValue).toLocaleDateString()).valueOf();
@@ -6660,12 +6676,12 @@ function gs(e) {
6660
6676
  "onUpdate:modelValue": (n) => e.filterValue = n
6661
6677
  }, null), f(ze("f-tags"), {
6662
6678
  style: "margin-top:10px",
6663
- data: hs.value,
6679
+ data: gs.value,
6664
6680
  selectable: !0,
6665
6681
  "tag-style": "capsule"
6666
6682
  }, null)]);
6667
6683
  }
6668
- function ys(e) {
6684
+ function bs(e) {
6669
6685
  e.filter = e.filter || function(n) {
6670
6686
  const o = Number.parseFloat(e.filterValue), l = Number.parseFloat(n[e.field]);
6671
6687
  return isNaN(o) ? isNaN(l) : o === l;
@@ -6680,7 +6696,7 @@ function ys(e) {
6680
6696
  onValueChange: t
6681
6697
  }, null)]);
6682
6698
  }
6683
- function bs(e, t, n, o, l, a) {
6699
+ function Cs(e, t, n, o, l, a) {
6684
6700
  e.filterHistory = e.filterHistory || l.getFilterHistory(e), e.filter = e.filter || function(p) {
6685
6701
  return (p[e.field] || "").startsWith(e.filterValue);
6686
6702
  };
@@ -6717,7 +6733,7 @@ function bs(e, t, n, o, l, a) {
6717
6733
  onChange: r
6718
6734
  }, null)]);
6719
6735
  }
6720
- function Cs(e, t, n, o, l, a) {
6736
+ function ws(e, t, n, o, l, a) {
6721
6737
  e.filter = e.filter || function(m) {
6722
6738
  return String(e.filterValue).split(",").includes(String(m[e.field]));
6723
6739
  };
@@ -6748,7 +6764,7 @@ function Cs(e, t, n, o, l, a) {
6748
6764
  default: () => [Oe(" ")]
6749
6765
  });
6750
6766
  }
6751
- function ws(e) {
6767
+ function Ss(e) {
6752
6768
  v("请输入关键词"), v('<i class="f-icon f-icon-search"></i>');
6753
6769
  const t = [{
6754
6770
  name: "发票类型",
@@ -6790,7 +6806,7 @@ function ws(e) {
6790
6806
  default: () => [Oe(" ")]
6791
6807
  });
6792
6808
  }
6793
- function Ss(e, t, n, o, l) {
6809
+ function xs(e, t, n, o, l) {
6794
6810
  const a = /* @__PURE__ */ new Map([
6795
6811
  ["boolean", "boolean-filter"],
6796
6812
  ["date", "date-filter"],
@@ -6801,12 +6817,12 @@ function Ss(e, t, n, o, l) {
6801
6817
  ["enum", "enum-filter"],
6802
6818
  ["reference", "list-filter"]
6803
6819
  ]), i = /* @__PURE__ */ new Map([
6804
- ["boolean-filter", vs],
6805
- ["date-filter", gs],
6806
- ["enum-filter", Cs],
6807
- ["list-filter", ws],
6808
- ["numeric-filter", ys],
6809
- ["text-filter", bs]
6820
+ ["boolean-filter", hs],
6821
+ ["date-filter", ys],
6822
+ ["enum-filter", ws],
6823
+ ["list-filter", Ss],
6824
+ ["numeric-filter", bs],
6825
+ ["text-filter", Cs]
6810
6826
  ]);
6811
6827
  function u(r) {
6812
6828
  var p, m;
@@ -6823,7 +6839,7 @@ function Ss(e, t, n, o, l) {
6823
6839
  }
6824
6840
  return { getFilterEditor: u };
6825
6841
  }
6826
- function xs(e) {
6842
+ function _s(e) {
6827
6843
  const n = v(e.commandOption.enable || !1), o = v(e.commandOption.commands || []);
6828
6844
  function l(a) {
6829
6845
  if (n.value && !(a.value.findIndex((u) => u.dataType === "commands") > -1)) {
@@ -6841,7 +6857,7 @@ function xs(e) {
6841
6857
  }
6842
6858
  return { applyCommands: l };
6843
6859
  }
6844
- function _s(e, t, n, o, l, a, i) {
6860
+ function ks(e, t, n, o, l, a, i) {
6845
6861
  const { columnContext: u } = n, { getGridHeaderCells: r } = l, { groupFields: c } = a, h = v(-1), s = v(!1), p = V(() => c.value && c.value.map((C) => {
6846
6862
  var g;
6847
6863
  return {
@@ -6892,7 +6908,7 @@ function _s(e, t, n, o, l, a, i) {
6892
6908
  groupColumnItems: p
6893
6909
  };
6894
6910
  }
6895
- function ks(e, t, n, o, l) {
6911
+ function Fs(e, t, n, o, l) {
6896
6912
  const { getGridHeaderCells: a } = l, i = 120, u = 50, r = V(() => {
6897
6913
  var b;
6898
6914
  return ((b = e.rowNumber) == null ? void 0 : b.enable) || !1;
@@ -7028,7 +7044,7 @@ function ks(e, t, n, o, l) {
7028
7044
  b !== d && s.value && F();
7029
7045
  }), { calculateColumnHeaders: x, calculateColumnsSize: F, calculateColumnsWidth: S };
7030
7046
  }
7031
- function Fs(e, t) {
7047
+ function Ts(e, t) {
7032
7048
  var c;
7033
7049
  const n = v((c = e.columnOption) == null ? void 0 : c.groups);
7034
7050
  function o(h, s, p, m, y) {
@@ -7042,7 +7058,7 @@ function Fs(e, t) {
7042
7058
  parent: p,
7043
7059
  resizable: !1,
7044
7060
  title: h.title || "",
7045
- status: Me.none,
7061
+ status: Ee.none,
7046
7062
  popoverRef: v(),
7047
7063
  showPopover: !1,
7048
7064
  column: null,
@@ -7098,8 +7114,8 @@ function Fs(e, t) {
7098
7114
  function r(h) {
7099
7115
  let s = /* @__PURE__ */ new Map(), p = 0;
7100
7116
  if (h.reduce((m, y) => {
7101
- let _ = Me.none;
7102
- _ = y.sortable ? _ | Me.sortable : _, _ = y.filterable ? _ | Me.filterable : _, _ = y.sort && y.sort !== "none" ? _ | Me.sorted | (y.sort === "asc" ? Me.ascending : Me.descending) : _;
7117
+ let _ = Ee.none;
7118
+ _ = y.sortable ? _ | Ee.sortable : _, _ = y.filterable ? _ | Ee.filterable : _, _ = y.sort && y.sort !== "none" ? _ | Ee.sorted | (y.sort === "asc" ? Ee.ascending : Ee.descending) : _;
7103
7119
  const T = y.binding && y.binding.field ? y.binding.field : y.field;
7104
7120
  return m.set(T, {
7105
7121
  actualWidth: y.actualWidth || 0,
@@ -7168,7 +7184,7 @@ function An(e, t) {
7168
7184
  }
7169
7185
  return { convertToSingleControl: u, fields: n, fieldMap: l, fieldConditions: o, loadFieldConfigs: r, initialConditionValue: c };
7170
7186
  }
7171
- function Ts(e, t, n) {
7187
+ function Is(e, t, n) {
7172
7188
  const o = v(null), l = v(n), a = v(0);
7173
7189
  function i(h, s) {
7174
7190
  let p = null;
@@ -7206,7 +7222,7 @@ const Ut = /* @__PURE__ */ ye({
7206
7222
  initialConditionValue: u,
7207
7223
  fieldMap: r,
7208
7224
  loadFieldConfigs: c
7209
- } = i, h = Ts(e, t, n), {
7225
+ } = i, h = Is(e, t, n), {
7210
7226
  conditionClass: s,
7211
7227
  resizeObserver: p
7212
7228
  } = h;
@@ -7248,8 +7264,8 @@ const Ut = /* @__PURE__ */ ye({
7248
7264
  }
7249
7265
  });
7250
7266
  var Ot = /* @__PURE__ */ ((e) => (e.String = "String", e.DateTime = "DateTime", e.Date = "Date", e.Enum = "Enum", e.Boolean = "Boolean", e.Number = "Number", e.Text = "Text", e.BigNumber = "BigNumber", e))(Ot || {});
7251
- const Is = "root-viewmodel";
7252
- class Os {
7267
+ const Os = "root-viewmodel";
7268
+ class Bs {
7253
7269
  constructor(t, n) {
7254
7270
  q(this, "formSchemaUtils");
7255
7271
  q(this, "controlCreatorUtils");
@@ -7306,7 +7322,7 @@ class Os {
7306
7322
  }), n.contents = [o];
7307
7323
  const { selectedFields: a } = t;
7308
7324
  a == null || a.forEach((u) => {
7309
- const r = Ee(u), c = this.resolveControlClassByFormColumns(t), h = this.controlCreatorUtils.setFormFieldProperty(r, "", c);
7325
+ const r = Me(u), c = this.resolveControlClassByFormColumns(t), h = this.controlCreatorUtils.setFormFieldProperty(r, "", c);
7310
7326
  h && l.push(h);
7311
7327
  });
7312
7328
  const { templateId: i } = this.formSchemaUtils.getFormSchema().module;
@@ -7343,7 +7359,7 @@ class Os {
7343
7359
  code: `${t.componentId}-component-viewmodel`,
7344
7360
  name: t.componentName,
7345
7361
  bindTo: t.bindTo,
7346
- parent: Is,
7362
+ parent: Os,
7347
7363
  fields: this.assembleViewModelFields(t),
7348
7364
  commands: [],
7349
7365
  states: [],
@@ -7370,7 +7386,7 @@ class Os {
7370
7386
  }), n;
7371
7387
  }
7372
7388
  }
7373
- function Bs(e, t, n, o) {
7389
+ function Ms(e, t, n, o) {
7374
7390
  var a, i, u, r, c;
7375
7391
  const l = n.parentComponentInstance;
7376
7392
  if (l && o) {
@@ -7383,14 +7399,14 @@ function Bs(e, t, n, o) {
7383
7399
  bindTo: ((r = n.bindingSourceContext) == null ? void 0 : r.bindTo) || "/",
7384
7400
  selectedFields: (c = n.bindingSourceContext) == null ? void 0 : c.bindingEntityFields
7385
7401
  };
7386
- return new Os(e, o).createComponent(p);
7402
+ return new Bs(e, o).createComponent(p);
7387
7403
  } else
7388
7404
  return t;
7389
7405
  }
7390
- function Ms(e, t, n) {
7406
+ function Es(e, t, n) {
7391
7407
  return t;
7392
7408
  }
7393
- const Es = "https://json-schema.org/draft/2020-12/schema", Vs = "https://farris-design.gitee.io/response-form.schema.json", Ps = "response-form", $s = "A Farris Data Collection Component", Rs = "object", Ns = {
7409
+ const Vs = "https://json-schema.org/draft/2020-12/schema", Ps = "https://farris-design.gitee.io/response-form.schema.json", $s = "response-form", Rs = "A Farris Data Collection Component", Ns = "object", js = {
7394
7410
  id: {
7395
7411
  description: "The unique identifier for a form group",
7396
7412
  type: "string"
@@ -7418,23 +7434,24 @@ const Es = "https://json-schema.org/draft/2020-12/schema", Vs = "https://farris-
7418
7434
  type: "array",
7419
7435
  default: []
7420
7436
  }
7421
- }, js = [
7437
+ }, Ds = [
7422
7438
  "id",
7423
- "type"
7424
- ], Ds = {
7425
- $schema: Es,
7426
- $id: Vs,
7427
- title: Ps,
7428
- description: $s,
7429
- type: Rs,
7430
- properties: Ns,
7431
- required: js
7432
- }, Hs = {
7439
+ "type",
7440
+ "contents"
7441
+ ], Hs = {
7442
+ $schema: Vs,
7443
+ $id: Ps,
7444
+ title: $s,
7445
+ description: Rs,
7446
+ type: Ns,
7447
+ properties: js,
7448
+ required: Ds
7449
+ }, As = {
7433
7450
  customClass: { type: String, default: "" },
7434
7451
  customStyle: { type: String, defaut: "" }
7435
7452
  };
7436
- Ne(Hs, Ds, jt, Bs);
7437
- const As = {}, Ls = {}, Ws = {
7453
+ Ne(As, Hs, jt, Ms);
7454
+ const Ls = {}, Ws = {}, Gs = {
7438
7455
  id: { type: String, default: "" },
7439
7456
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
7440
7457
  editor: { type: Object, default: {} },
@@ -7450,12 +7467,12 @@ const As = {}, Ls = {}, Ws = {
7450
7467
  selectOnCreated: { type: Boolean, default: !1 }
7451
7468
  };
7452
7469
  Ne(
7453
- Ws,
7470
+ Gs,
7454
7471
  kn,
7455
7472
  jt,
7456
7473
  void 0
7457
7474
  );
7458
- const Gs = "https://json-schema.org/draft/2020-12/schema", zs = "https://farris-design.gitee.io/grid-field-editor.schema.json", qs = "response-form-layout-setting", Us = "A Farris Data Grid Component", Xs = "object", Ys = {
7475
+ const zs = "https://json-schema.org/draft/2020-12/schema", qs = "https://farris-design.gitee.io/grid-field-editor.schema.json", Us = "response-form-layout-setting", Xs = "A Farris Data Grid Component", Ys = "object", Ks = {
7459
7476
  id: {
7460
7477
  description: "The unique identifier for a Input Group",
7461
7478
  type: "string"
@@ -7475,18 +7492,18 @@ const Gs = "https://json-schema.org/draft/2020-12/schema", zs = "https://farris-
7475
7492
  type: "Object",
7476
7493
  default: null
7477
7494
  }
7478
- }, Ks = [
7495
+ }, Js = [
7479
7496
  "id",
7480
7497
  "type"
7481
- ], Js = {
7482
- $schema: Gs,
7483
- $id: zs,
7484
- title: qs,
7485
- description: Us,
7486
- type: Xs,
7487
- properties: Ys,
7488
- required: Ks
7489
- }, Qs = {
7498
+ ], Qs = {
7499
+ $schema: zs,
7500
+ $id: qs,
7501
+ title: Us,
7502
+ description: Xs,
7503
+ type: Ys,
7504
+ properties: Ks,
7505
+ required: Js
7506
+ }, Zs = {
7490
7507
  initialState: {
7491
7508
  type: Object,
7492
7509
  default: {
@@ -7497,8 +7514,8 @@ const Gs = "https://json-schema.org/draft/2020-12/schema", zs = "https://farris-
7497
7514
  }
7498
7515
  }
7499
7516
  };
7500
- Ml(Qs, Js, ci, Ms);
7501
- const Zs = {
7517
+ Ml(Zs, Qs, di, Es);
7518
+ const eu = {
7502
7519
  width: { Type: Number, default: 400 },
7503
7520
  type: { Type: String, default: "info" },
7504
7521
  title: { Type: String, default: "" },
@@ -7511,12 +7528,12 @@ const Zs = {
7511
7528
  function Ht() {
7512
7529
  return new DOMException("The request is not allowed", "NotAllowedError");
7513
7530
  }
7514
- async function eu(e) {
7531
+ async function tu(e) {
7515
7532
  if (!navigator.clipboard)
7516
7533
  throw Ht();
7517
7534
  return navigator.clipboard.writeText(e);
7518
7535
  }
7519
- async function tu(e) {
7536
+ async function nu(e) {
7520
7537
  const t = document.createElement("span");
7521
7538
  t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
7522
7539
  const n = window.getSelection(), o = window.document.createRange();
@@ -7530,24 +7547,24 @@ async function tu(e) {
7530
7547
  if (!l)
7531
7548
  throw Ht();
7532
7549
  }
7533
- async function nu(e) {
7550
+ async function ou(e) {
7534
7551
  try {
7535
- await eu(e);
7552
+ await tu(e);
7536
7553
  } catch (t) {
7537
7554
  try {
7538
- await tu(e);
7555
+ await nu(e);
7539
7556
  } catch (n) {
7540
7557
  throw n || t || Ht();
7541
7558
  }
7542
7559
  }
7543
7560
  }
7544
- function ou() {
7561
+ function lu() {
7545
7562
  async function e(t) {
7546
- await nu(t);
7563
+ await ou(t);
7547
7564
  }
7548
7565
  return { onCopy: e };
7549
7566
  }
7550
- function lu(e, t, n, o) {
7567
+ function au(e, t, n, o) {
7551
7568
  const l = v(14), a = v(140), i = v(""), u = v(o.value.length), r = V(() => o.value), c = V(() => ({
7552
7569
  "font-size": `${l.value}px`,
7553
7570
  height: "100%"
@@ -7572,14 +7589,14 @@ function lu(e, t, n, o) {
7572
7589
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
7573
7590
  }, [u.value + " / " + a.value])]);
7574
7591
  }
7575
- function au(e, t, n, o) {
7576
- const l = lu(e, t, n, o), a = /* @__PURE__ */ new Map([["text-area", l]]);
7592
+ function iu(e, t, n, o) {
7593
+ const l = au(e, t, n, o), a = /* @__PURE__ */ new Map([["text-area", l]]);
7577
7594
  function i(u) {
7578
7595
  return a.get(u) || null;
7579
7596
  }
7580
7597
  return { getEditorRender: i };
7581
7598
  }
7582
- function iu() {
7599
+ function ru() {
7583
7600
  const e = v(!1), t = v("复制成功");
7584
7601
  return {
7585
7602
  feedbackStyle: V(() => {
@@ -7605,11 +7622,11 @@ function iu() {
7605
7622
  toShowFeedback: e
7606
7623
  };
7607
7624
  }
7608
- function ru(e, t) {
7625
+ function su(e, t) {
7609
7626
  const n = t.getEditorRender(e.promptEditorType);
7610
7627
  return () => n && n();
7611
7628
  }
7612
- function su(e) {
7629
+ function uu(e) {
7613
7630
  const t = v(3), n = v(480), o = V(() => !!e.value && !!e.value.date), l = V(() => `发生时间 : ${e.value && e.value.date || ""}`), a = V(() => !!e.value && !!e.value.detail), i = V(() => {
7614
7631
  const T = `${n.value}px`;
7615
7632
  return {
@@ -7654,13 +7671,13 @@ function su(e) {
7654
7671
  style: "cursor: pointer;"
7655
7672
  }, [h.value])])]);
7656
7673
  }
7657
- function uu(e) {
7674
+ function cu(e) {
7658
7675
  return () => f("p", {
7659
7676
  class: "toast-msg-detail",
7660
7677
  innerHTML: e.value
7661
7678
  }, null);
7662
7679
  }
7663
- function cu(e, t, n, o) {
7680
+ function du(e, t, n, o) {
7664
7681
  const l = v(e.exceptionInfo), a = V(() => {
7665
7682
  const p = {
7666
7683
  "f-icon": !0
@@ -7668,7 +7685,7 @@ function cu(e, t, n, o) {
7668
7685
  return p[m] = !0, p;
7669
7686
  }), i = V(() => n.value || l.value && l.value.message), u = V(() => o.value), r = V(() => !!o.value), c = V(() => !!l.value);
7670
7687
  function h() {
7671
- return c.value ? su(l) : r.value ? uu(u) : () => null;
7688
+ return c.value ? uu(l) : r.value ? cu(u) : () => null;
7672
7689
  }
7673
7690
  const s = h();
7674
7691
  return () => f(Re, null, [f("div", {
@@ -7682,7 +7699,7 @@ function cu(e, t, n, o) {
7682
7699
  innerHTML: i.value
7683
7700
  }, null), s()])]);
7684
7701
  }
7685
- function du(e, t, n) {
7702
+ function fu(e, t, n) {
7686
7703
  const {
7687
7704
  onCopy: o
7688
7705
  } = t, {
@@ -7708,8 +7725,8 @@ function du(e, t, n) {
7708
7725
  style: "cursor: pointer;"
7709
7726
  }, [i.value])]);
7710
7727
  }
7711
- function fu(e, t, n, o) {
7712
- const l = v(e.type), a = v([]), i = v(e.exceptionInfo), u = v(e.okButtonText), r = v(e.cancelButtonText), c = v(!0), h = v(!0), s = V(() => !!(a.value && a.value.length)), p = V(() => i.value && i.value.date && i.value.message && i.value.detail), m = V(() => !(a.value && a.value.length) && (u.value || r.value)), y = V(() => h.value && u.value), _ = V(() => c.value && r.value), T = du(e, n, o);
7728
+ function pu(e, t, n, o) {
7729
+ const l = v(e.type), a = v([]), i = v(e.exceptionInfo), u = v(e.okButtonText), r = v(e.cancelButtonText), c = v(!0), h = v(!0), s = V(() => !!(a.value && a.value.length)), p = V(() => i.value && i.value.date && i.value.message && i.value.detail), m = V(() => !(a.value && a.value.length) && (u.value || r.value)), y = V(() => h.value && u.value), _ = V(() => c.value && r.value), T = fu(e, n, o);
7713
7730
  function w(g) {
7714
7731
  l.value === "question" && t.emit("reject"), t.emit("close");
7715
7732
  }
@@ -7736,7 +7753,7 @@ function fu(e, t, n, o) {
7736
7753
  }
7737
7754
  const st = /* @__PURE__ */ ye({
7738
7755
  name: "FMessageBox",
7739
- props: Zs,
7756
+ props: eu,
7740
7757
  emits: ["accept", "reject", "close"],
7741
7758
  setup(e, t) {
7742
7759
  const n = v(e.type), o = v(e.title), l = v(e.detail), a = V(() => {
@@ -7749,7 +7766,7 @@ const st = /* @__PURE__ */ ye({
7749
7766
  }), i = V(() => {
7750
7767
  const T = {};
7751
7768
  return n.value === "prompt" ? T.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (T.padding = "0.5rem 1.5rem 1rem 1.5rem"), T;
7752
- }), u = ou(), r = au(e, n, o, l), c = iu(), {
7769
+ }), u = lu(), r = iu(e, n, o, l), c = ru(), {
7753
7770
  feedbackStyle: h,
7754
7771
  feedbackMessage: s
7755
7772
  } = c;
@@ -7761,12 +7778,12 @@ const st = /* @__PURE__ */ ye({
7761
7778
  function m() {
7762
7779
  switch (n.value) {
7763
7780
  case "prompt":
7764
- return ru(e, r);
7781
+ return su(e, r);
7765
7782
  default:
7766
- return cu(e, n, o, l);
7783
+ return du(e, n, o, l);
7767
7784
  }
7768
7785
  }
7769
- const y = m(), _ = fu(e, t, u, c);
7786
+ const y = m(), _ = pu(e, t, u, c);
7770
7787
  return () => f("div", {
7771
7788
  class: "farris-messager"
7772
7789
  }, [f("section", {
@@ -7782,7 +7799,7 @@ class Ye {
7782
7799
  }), o = !1, l = n.type === "error" || n.type === "prompt", a = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", i = n.acceptCallback || (() => {
7783
7800
  }), u = n.rejectCallback || (() => {
7784
7801
  });
7785
- let r = null, c = new xr(r);
7802
+ let r = null, c = new _r(r);
7786
7803
  const h = () => {
7787
7804
  r && (r == null || r.destroy(), c = null);
7788
7805
  };
@@ -7872,7 +7889,7 @@ st.install = (e) => {
7872
7889
  e.component(st.name, st), e.provide("FMessageBoxService", Ye);
7873
7890
  };
7874
7891
  var Ln = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(Ln || {}), Wn = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e))(Wn || {});
7875
- const pu = [
7892
+ const mu = [
7876
7893
  {
7877
7894
  value: "0",
7878
7895
  name: "等于"
@@ -7909,7 +7926,7 @@ const pu = [
7909
7926
  value: "8",
7910
7927
  name: "结束是"
7911
7928
  }
7912
- ], mu = {
7929
+ ], vu = {
7913
7930
  "button-edit": ["0", "1", " 6", "7", "8"],
7914
7931
  "check-box": ["0"],
7915
7932
  "combo-list": ["0", "1"],
@@ -7929,14 +7946,14 @@ const pu = [
7929
7946
  "radio-group": ["0"],
7930
7947
  text: ["0", "1", " 6", "7", "8"]
7931
7948
  };
7932
- function vu(e, t, n) {
7949
+ function hu(e, t, n) {
7933
7950
  const { fieldMap: o } = n;
7934
7951
  function l(a) {
7935
7952
  const i = o.get(a.fieldCode);
7936
7953
  if (!i)
7937
7954
  return [];
7938
- const u = i.editor.type, r = new Set(mu[u]);
7939
- return pu.filter((h) => r.has(h.value));
7955
+ const u = i.editor.type, r = new Set(vu[u]);
7956
+ return mu.filter((h) => r.has(h.value));
7940
7957
  }
7941
7958
  return { getCompareOperators: l };
7942
7959
  }
@@ -8109,7 +8126,7 @@ function Gn() {
8109
8126
  unGroup: g
8110
8127
  };
8111
8128
  }
8112
- function hu(e, t, n) {
8129
+ function gu(e, t, n) {
8113
8130
  const o = v(/* @__PURE__ */ new Set()), l = v(/* @__PURE__ */ new Set()), { conditionGroupMap: a, groupParentMap: i } = n;
8114
8131
  let u, r;
8115
8132
  function c(w) {
@@ -8176,12 +8193,12 @@ const _t = /* @__PURE__ */ ye({
8176
8193
  unGroup: g
8177
8194
  } = c, {
8178
8195
  createConditionValue: x
8179
- } = Nt(), S = hu(e, t, c), {
8196
+ } = Nt(), S = gu(e, t, c), {
8180
8197
  selectedItems: k,
8181
8198
  toggleSelect: F
8182
8199
  } = S, {
8183
8200
  getCompareOperators: b
8184
- } = vu(e, t, l);
8201
+ } = hu(e, t, l);
8185
8202
  r(!1), i.value = a(i.value), _(o.value);
8186
8203
  function d(N) {
8187
8204
  var j;
@@ -8312,7 +8329,7 @@ const _t = /* @__PURE__ */ ye({
8312
8329
  _t.install = (e) => {
8313
8330
  e.component(Ut.name, Ut).component(_t.name, _t);
8314
8331
  };
8315
- const gu = [
8332
+ const yu = [
8316
8333
  "equal",
8317
8334
  "notEqual",
8318
8335
  "greaterThan",
@@ -8322,16 +8339,16 @@ const gu = [
8322
8339
  "contain",
8323
8340
  "startWidth",
8324
8341
  "endWidth"
8325
- ], yu = {
8342
+ ], bu = {
8326
8343
  equal: (e, t, n) => e && e[t] === n,
8327
8344
  notEqual: (e, t, n) => e && e[t] !== n,
8328
8345
  contain: (e, t, n) => e ? (e[t] || "").indexOf(n) > -1 : !1,
8329
8346
  startWidth: (e, t, n) => e ? (e[t] || "").startsWith(n) : !1,
8330
8347
  endWidth: (e, t, n) => e ? (e[t] || "").endsWith(n) : !1
8331
- }, bu = {
8348
+ }, Cu = {
8332
8349
  equal: (e, t, n) => e && e[t] === n,
8333
8350
  notEqual: (e, t, n) => e && e[t] !== n
8334
- }, Cu = {
8351
+ }, wu = {
8335
8352
  equal: (e, t, n) => {
8336
8353
  if (e) {
8337
8354
  const o = new Date(new Date(n).toLocaleDateString()).valueOf();
@@ -8374,10 +8391,10 @@ const gu = [
8374
8391
  }
8375
8392
  return !1;
8376
8393
  }
8377
- }, wu = {
8394
+ }, Su = {
8378
8395
  equal: (e, t, n) => e ? String(n).split(",").includes(String(e[t])) : !1,
8379
8396
  notEqual: (e, t, n) => e ? String(n).split(",").findIndex((l) => l === String(e[t])) === -1 : !1
8380
- }, Su = {
8397
+ }, xu = {
8381
8398
  equal: (e, t, n) => {
8382
8399
  if (e) {
8383
8400
  const o = Number.parseFloat(String(n)), l = Number.parseFloat(String(e[t]));
@@ -8423,11 +8440,11 @@ const gu = [
8423
8440
  };
8424
8441
  function zn() {
8425
8442
  const e = v([]), t = /* @__PURE__ */ new Map(), { loadConditionGroup: n } = Gn(), o = /* @__PURE__ */ new Map([
8426
- ["boolean", bu],
8427
- ["datetime", Cu],
8428
- ["enum", wu],
8429
- ["number", Su],
8430
- ["text", yu]
8443
+ ["boolean", Cu],
8444
+ ["datetime", wu],
8445
+ ["enum", Su],
8446
+ ["number", xu],
8447
+ ["text", bu]
8431
8448
  ]);
8432
8449
  function l(s) {
8433
8450
  t.delete(s), e.value = Array.from(t.values());
@@ -8436,7 +8453,7 @@ function zn() {
8436
8453
  t.clear(), e.value = [];
8437
8454
  }
8438
8455
  function i(s) {
8439
- const { valueType: p } = s.value, m = s.compareType || "0", y = gu[Number(m)];
8456
+ const { valueType: p } = s.value, m = s.compareType || "0", y = yu[Number(m)];
8440
8457
  return o.get(p)[y];
8441
8458
  }
8442
8459
  function u(s) {
@@ -8551,7 +8568,7 @@ function qn(e, t) {
8551
8568
  }
8552
8569
  return { collpaseGroupIconClass: T, generateGroupData: _, groupFields: a, shouldGroupingData: i, showGroupPanel: u };
8553
8570
  }
8554
- function xu(e, t, n, o) {
8571
+ function _u(e, t, n, o) {
8555
8572
  const l = v(!!e.hierarchy), { idField: a } = o, { collapseField: i, hasChildrenField: u, parentIdField: r } = n, c = /* @__PURE__ */ new Map();
8556
8573
  function h(M, $) {
8557
8574
  const O = /* @__PURE__ */ new Map();
@@ -8695,7 +8712,7 @@ function xu(e, t, n, o) {
8695
8712
  }
8696
8713
  return { generateHierarchyData: b, hasRealChildren: k, insertSibling: d, insertChild: I, shouldStratifyData: l, trimmedOriginalData: B };
8697
8714
  }
8698
- const _u = {
8715
+ const ku = {
8699
8716
  showCloseButton: { type: Boolean, default: !0 },
8700
8717
  position: { type: String, default: "top-center" },
8701
8718
  timeout: { type: Number, default: 3e3 },
@@ -8707,13 +8724,13 @@ const _u = {
8707
8724
  id: { type: String },
8708
8725
  animate: { type: String, default: "fadeIn" },
8709
8726
  options: { type: Object }
8710
- }, ku = {
8727
+ }, Fu = {
8711
8728
  showCloseButton: { type: Boolean, default: !0 },
8712
8729
  animate: { type: String, default: "fadeIn" },
8713
8730
  options: { type: Object }
8714
8731
  }, Bt = /* @__PURE__ */ ye({
8715
8732
  name: "Toast",
8716
- props: ku,
8733
+ props: Fu,
8717
8734
  emits: ["close", "click"],
8718
8735
  setup: (e, t) => {
8719
8736
  const n = v(e.animate), o = "fadeOut", l = V(() => e.options), a = v(!1), i = V(() => {
@@ -8786,7 +8803,7 @@ const _u = {
8786
8803
  }
8787
8804
  }), ut = /* @__PURE__ */ ye({
8788
8805
  name: "Notify",
8789
- props: _u,
8806
+ props: ku,
8790
8807
  emits: ["close", "empty"],
8791
8808
  setup(e, t) {
8792
8809
  const n = V(() => ({
@@ -8942,22 +8959,22 @@ class Un {
8942
8959
  }), this.notifyRefs.length = 0;
8943
8960
  }
8944
8961
  }
8945
- const Fu = Symbol("NOTIFY_SERVICE_TOKEN");
8962
+ const Tu = Symbol("NOTIFY_SERVICE_TOKEN");
8946
8963
  ut.install = (e) => {
8947
8964
  e.component(ut.name, ut), e.component(Bt.name, Bt);
8948
8965
  const t = new Un();
8949
- e.provide(Fu, t), e.provide("FNotifyService", t);
8966
+ e.provide(Tu, t), e.provide("FNotifyService", t);
8950
8967
  };
8951
- function Tu(e, t, n, o, l) {
8968
+ function Iu(e, t, n, o, l) {
8952
8969
  var it;
8953
- const { pageSize: a, total: i, shouldRenderPagination: u, currentPage: r, mode: c } = l, h = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), _ = v([]), T = v([]), w = zn(), C = qn(e, o), { generateGroupData: g, groupFields: x, shouldGroupingData: S } = C, k = v(e.data), F = xu(e, k, n, o), {
8970
+ const { pageSize: a, total: i, shouldRenderPagination: u, currentPage: r, mode: c } = l, h = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), _ = v([]), T = v([]), w = zn(), C = qn(e, o), { generateGroupData: g, groupFields: x, shouldGroupingData: S } = C, k = v(e.data), F = _u(e, k, n, o), {
8954
8971
  generateHierarchyData: b,
8955
8972
  hasRealChildren: d,
8956
8973
  insertSibling: I,
8957
8974
  insertChild: B,
8958
8975
  shouldStratifyData: M,
8959
8976
  trimmedOriginalData: $
8960
- } = F, { idField: O, reviseIdentifyField: E } = o, R = v(e.newDataItem), P = v(e.data), N = v(e.data), { flatTreeData: D } = Qu(e);
8977
+ } = F, { idField: O, reviseIdentifyField: E } = o, R = v(e.newDataItem), P = v(e.data), N = v(e.data), { flatTreeData: D } = Zu(e);
8961
8978
  function j(W) {
8962
8979
  return D(W);
8963
8980
  }
@@ -8979,7 +8996,7 @@ function Tu(e, t, n, o, l) {
8979
8996
  });
8980
8997
  function we() {
8981
8998
  var $e, ue;
8982
- P.value = Ee(k.value), S.value && (P.value = g(x.value, k.value, t)), re = J.value.reduce((Pe, Ce) => (Pe.set(Ce, 0), Pe), re);
8999
+ P.value = Me(k.value), S.value && (P.value = g(x.value, k.value, t)), re = J.value.reduce((Pe, Ce) => (Pe.set(Ce, 0), Pe), re);
8983
9000
  const W = Se.value, ne = ge.value;
8984
9001
  let se = 0;
8985
9002
  const Ie = [];
@@ -9086,7 +9103,7 @@ function Tu(e, t, n, o, l) {
9086
9103
  (W - 1) * a.value <= fe.value && be();
9087
9104
  }
9088
9105
  function ae(W) {
9089
- k.value.push(Ee(W)), me.value = we();
9106
+ k.value.push(Me(W)), me.value = we();
9090
9107
  }
9091
9108
  function de(W = 0) {
9092
9109
  if (!(W > -1))
@@ -9173,7 +9190,7 @@ function Tu(e, t, n, o, l) {
9173
9190
  originalData: k
9174
9191
  };
9175
9192
  }
9176
- function Iu() {
9193
+ function Ou() {
9177
9194
  function t(i) {
9178
9195
  return i.field;
9179
9196
  }
@@ -9197,7 +9214,7 @@ function Iu() {
9197
9214
  }
9198
9215
  return { getFilterHistory: n, removeFilterHistory: a, setFilterHistory: o, updateFilterHistory: l };
9199
9216
  }
9200
- function Ou(e) {
9217
+ function Bu(e) {
9201
9218
  v(e.selection.showCheckbox || !1);
9202
9219
  const t = V(() => {
9203
9220
  var i;
@@ -9211,7 +9228,7 @@ function Ou(e) {
9211
9228
  }), l = V(() => e.hierarchy && e.selection.showCheckbox), a = V(() => (e.treeNodeIconsData.fold || e.iconField) && e.showTreeNodeIcons);
9212
9229
  return { collapseField: t, hasChildrenField: n, parentIdField: o, shouldShowCheckBox: l, shouldShowIcon: a };
9213
9230
  }
9214
- function Bu(e, t, n, o) {
9231
+ function Mu(e, t, n, o) {
9215
9232
  var _, T, w, C, g, x;
9216
9233
  const { idField: l } = n, a = v(((T = (_ = e.hierarchy) == null ? void 0 : _.cascadeOption) == null ? void 0 : T.autoCheckChildren) || !1), i = v(((C = (w = e.hierarchy) == null ? void 0 : w.cascadeOption) == null ? void 0 : C.autoCheckParent) || !1), u = v(((x = (g = e.hierarchy) == null ? void 0 : g.cascadeOption) == null ? void 0 : x.selectionRange) || "All");
9217
9234
  te(() => {
@@ -9254,8 +9271,8 @@ function Bu(e, t, n, o) {
9254
9271
  }
9255
9272
  return { autoCheckChildren: a, autoCheckParent: i, interactAfterCheckHierarchyItem: y };
9256
9273
  }
9257
- function Mu(e, t, n, o, l) {
9258
- const { select: a, unSelect: i, indeterminate: u, getSelectedItems: r, selectedValues: c, currentSelectedDataId: h } = o, { autoCheckChildren: s, autoCheckParent: p, interactAfterCheckHierarchyItem: m } = Bu(e, t, n), { idField: y } = n;
9274
+ function Eu(e, t, n, o, l) {
9275
+ const { select: a, unSelect: i, indeterminate: u, getSelectedItems: r, selectedValues: c, currentSelectedDataId: h } = o, { autoCheckChildren: s, autoCheckParent: p, interactAfterCheckHierarchyItem: m } = Mu(e, t, n), { idField: y } = n;
9259
9276
  function _() {
9260
9277
  return t.value.filter((b) => !!b.checked).map((b) => b.raw.__fv_index__);
9261
9278
  }
@@ -9305,7 +9322,7 @@ function Mu(e, t, n, o, l) {
9305
9322
  }
9306
9323
  return { getNextSelectableHierarchyItemId: F, toggleSelectHierarchyItem: x };
9307
9324
  }
9308
- function Eu(e, t, n, o, l, a, i, u) {
9325
+ function Vu(e, t, n, o, l, a, i, u) {
9309
9326
  var Le;
9310
9327
  const { dataView: r } = t, { getVisualData: c, maxVisibleRowIndex: h, minVisibleRowIndex: s } = l, p = v(o.value.primaryColumnsWidth), m = v(o.value.leftColumnsWidth), y = v(o.value.rightColumnsWidth), _ = ((Le = e.rowOption) == null ? void 0 : Le.height) || 28, T = v(0), w = v(0);
9311
9328
  let C = 0, g = a.value - 1;
@@ -9464,7 +9481,7 @@ function Eu(e, t, n, o, l, a, i, u) {
9464
9481
  offsetY: T
9465
9482
  };
9466
9483
  }
9467
- function Vu(e, t, n, o, l, a, i, u) {
9484
+ function Pu(e, t, n, o, l, a, i, u) {
9468
9485
  const r = v(o.value - 1 + l), c = v(0), { renderDataRow: h } = a, s = h, p = h;
9469
9486
  function m(T) {
9470
9487
  let w = h;
@@ -9489,7 +9506,7 @@ function Vu(e, t, n, o, l, a, i, u) {
9489
9506
  }
9490
9507
  return { getVisualData: y, maxVisibleRowIndex: r, minVisibleRowIndex: c, toggleGroupRow: _ };
9491
9508
  }
9492
- function Pu() {
9509
+ function $u() {
9493
9510
  function e(t, n) {
9494
9511
  const {
9495
9512
  formatter: o
@@ -9500,7 +9517,7 @@ function Pu() {
9500
9517
  renderEnumColumn: e
9501
9518
  };
9502
9519
  }
9503
- function $u() {
9520
+ function Ru() {
9504
9521
  function e(o, l) {
9505
9522
  return o ? f("span", {
9506
9523
  innerHTML: l.formatter.trueText
@@ -9525,7 +9542,7 @@ function $u() {
9525
9542
  renderBooleanColumn: n
9526
9543
  };
9527
9544
  }
9528
- function Ru() {
9545
+ function Nu() {
9529
9546
  const {
9530
9547
  formatTo: e
9531
9548
  } = mo();
@@ -9540,7 +9557,7 @@ function Ru() {
9540
9557
  renderDateColumn: n
9541
9558
  };
9542
9559
  }
9543
- function Nu() {
9560
+ function ju() {
9544
9561
  const {
9545
9562
  formatTo: e
9546
9563
  } = vo();
@@ -9564,16 +9581,16 @@ function Nu() {
9564
9581
  renderNumberColumn: n
9565
9582
  };
9566
9583
  }
9567
- function ju() {
9584
+ function Du() {
9568
9585
  const {
9569
9586
  renderBooleanColumn: e
9570
- } = $u(), {
9587
+ } = Ru(), {
9571
9588
  renderEnumColumn: t
9572
- } = Pu(), {
9589
+ } = $u(), {
9573
9590
  renderNumberColumn: n
9574
- } = Nu(), {
9591
+ } = ju(), {
9575
9592
  renderDateColumn: o
9576
- } = Ru();
9593
+ } = Nu();
9577
9594
  function l(u) {
9578
9595
  return u;
9579
9596
  }
@@ -9593,9 +9610,9 @@ function ju() {
9593
9610
  renderFormatColumn: i
9594
9611
  };
9595
9612
  }
9596
- function Du(e, t, n) {
9613
+ function Hu(e, t, n) {
9597
9614
  var T;
9598
- const o = v(e.mergeCell), a = ((T = v(e.rowOption).value) == null ? void 0 : T.wrapContent) || !1, { updateVisualInfomation: i } = n, { renderCommandColumn: u } = cs(), { renderFormatColumn: r } = ju();
9615
+ const o = v(e.mergeCell), a = ((T = v(e.rowOption).value) == null ? void 0 : T.wrapContent) || !1, { updateVisualInfomation: i } = n, { renderCommandColumn: u } = ds(), { renderFormatColumn: r } = Du();
9599
9616
  function c(w, C, g, x, S, k = 1) {
9600
9617
  const F = {
9601
9618
  colSpan: k,
@@ -9655,7 +9672,7 @@ function Du(e, t, n) {
9655
9672
  }
9656
9673
  return { createCellByColumn: _, createCellByField: c };
9657
9674
  }
9658
- function Hu(e, t, n, o, l, a) {
9675
+ function Au(e, t, n, o, l, a) {
9659
9676
  var w, C;
9660
9677
  const i = v(e.rowOption), u = ((w = i.value) == null ? void 0 : w.height) || 28, r = ((C = i.value) == null ? void 0 : C.wrapContent) || !1, { idField: c } = o, { collapseField: h } = n, { updateRowPosition: s } = l, { createCellByColumn: p } = a;
9661
9678
  function m(g, x, S, k, F, b, d) {
@@ -9713,7 +9730,7 @@ function Hu(e, t, n, o, l, a) {
9713
9730
  }
9714
9731
  return { createEmptyRow: m, createNewRowFromDataItem: y, renderDataRow: T };
9715
9732
  }
9716
- function Au(e, t, n) {
9733
+ function Lu(e, t, n) {
9717
9734
  var b;
9718
9735
  const {
9719
9736
  idField: o
@@ -9797,7 +9814,7 @@ function Au(e, t, n) {
9797
9814
  getEditor: F
9798
9815
  };
9799
9816
  }
9800
- function Lu(e) {
9817
+ function Wu(e) {
9801
9818
  const t = v(e.idField);
9802
9819
  function n(o) {
9803
9820
  if (o && o.length) {
@@ -9807,7 +9824,7 @@ function Lu(e) {
9807
9824
  }
9808
9825
  return { idField: t, reviseIdentifyField: n };
9809
9826
  }
9810
- function Wu(e, t, n, o) {
9827
+ function Gu(e, t, n, o) {
9811
9828
  const { idField: l } = o, {
9812
9829
  currentSelectedDataId: a,
9813
9830
  multiSelectOnClickRow: i,
@@ -9887,7 +9904,7 @@ function Wu(e, t, n, o) {
9887
9904
  onMouseoutRow: x
9888
9905
  };
9889
9906
  }
9890
- function Gu(e, t, n, o, l) {
9907
+ function zu(e, t, n, o, l) {
9891
9908
  const { idField: a } = n, i = v(""), u = V(() => e.selection.enableSelectRow), r = v(e.selection.multiSelect ?? !1), c = v(e.selection.multiSelectMode), h = v(e.selection.showCheckbox), s = v(e.selection.showSelectAll), p = v(e.selectionValues);
9892
9909
  te(() => e.selection.showSelectAll, (j, H) => {
9893
9910
  j !== H && (s.value = j);
@@ -10005,7 +10022,7 @@ function Gu(e, t, n, o, l) {
10005
10022
  unSelectAll: N
10006
10023
  };
10007
10024
  }
10008
- function zu(e, t) {
10025
+ function qu(e, t) {
10009
10026
  var T, w;
10010
10027
  const n = String(Date.now()), o = 50, { showCheckBox: l, showSelectAll: a } = t, i = v(((T = e.rowNumber) == null ? void 0 : T.enable) ?? !1), u = V(() => e.hierarchy && l.value && e.selection.enableSelectRow && e.selection.multiSelect ? !1 : l.value), r = v(i.value ? ((w = e.rowNumber) == null ? void 0 : w.width) ?? 32 : 0), c = v(u.value ? o : 0), h = V(() => {
10011
10028
  var C;
@@ -10032,10 +10049,10 @@ function zu(e, t) {
10032
10049
  }
10033
10050
  return { showRowNumer: i, showSidebarCheckBox: u, sidebarCellPosition: p, sidebarCornerCellStyle: m, sidebarTitle: h, sidebarWidth: s, rowKey: _, cellKey: y };
10034
10051
  }
10035
- const qu = {
10052
+ const Uu = {
10036
10053
  ascend: (e, t) => e === t ? 0 : e === !1 ? -1 : 1,
10037
10054
  decend: (e, t) => e === t ? 0 : e === !0 ? -1 : 1
10038
- }, Uu = {
10055
+ }, Xu = {
10039
10056
  ascend: (e, t) => {
10040
10057
  const n = new Date(new Date(e).toLocaleDateString()).valueOf(), o = new Date(new Date(t).toLocaleDateString()).valueOf();
10041
10058
  return n === o ? 0 : n < o ? -1 : 1;
@@ -10044,14 +10061,14 @@ const qu = {
10044
10061
  const n = new Date(new Date(e).toLocaleDateString()).valueOf(), o = new Date(new Date(t).toLocaleDateString()).valueOf();
10045
10062
  return n === o ? 0 : n < o ? 1 : -1;
10046
10063
  }
10047
- }, Xu = {
10064
+ }, Yu = {
10048
10065
  ascend: (e, t) => e === t ? 0 : e < t ? -1 : 1,
10049
10066
  decend: (e, t) => e === t ? 0 : e < t ? 1 : -1
10050
- }, Yu = {
10067
+ }, Ku = {
10051
10068
  ascend: (e, t) => e === t ? 0 : e < t ? -1 : 1,
10052
10069
  decend: (e, t) => e === t ? 0 : e < t ? 1 : -1
10053
10070
  };
10054
- function Ku(e) {
10071
+ function Ju(e) {
10055
10072
  const t = /* @__PURE__ */ new Map([
10056
10073
  ["boolean", "boolean-sorter"],
10057
10074
  ["date", "datetime-sorter"],
@@ -10062,10 +10079,10 @@ function Ku(e) {
10062
10079
  ["enum", "text-sorter"],
10063
10080
  ["reference", "text-sorter"]
10064
10081
  ]), n = /* @__PURE__ */ new Map([
10065
- ["boolean-sorter", qu],
10066
- ["datetime-sorter", Uu],
10067
- ["numeric-sorter", Xu],
10068
- ["text-sorter", Yu]
10082
+ ["boolean-sorter", Uu],
10083
+ ["datetime-sorter", Xu],
10084
+ ["numeric-sorter", Yu],
10085
+ ["text-sorter", Ku]
10069
10086
  ]);
10070
10087
  function o(i) {
10071
10088
  const u = (i == null ? void 0 : i.dataType) || "string", r = t.get(u) || "text-sorter";
@@ -10075,7 +10092,7 @@ function Ku(e) {
10075
10092
  return o(i.column);
10076
10093
  }
10077
10094
  function a(i, u) {
10078
- const r = l(i), c = (i.status & Me.sortable) === Me.sortable && (i.status & Me.sorted) === Me.sorted, h = (i.status & Me.ascending) === Me.ascending, s = (i.status & Me.descending) === Me.descending;
10095
+ const r = l(i), c = (i.status & Ee.sortable) === Ee.sortable && (i.status & Ee.sorted) === Ee.sorted, h = (i.status & Ee.ascending) === Ee.ascending, s = (i.status & Ee.descending) === Ee.descending;
10079
10096
  if (c && r) {
10080
10097
  const p = h ? r.ascend : s ? r.decend : void 0;
10081
10098
  p ? u.addSorter(i.field, { field: i.field, compare: p }) : u.removeSorter(i.field);
@@ -10087,7 +10104,7 @@ function Ku(e) {
10087
10104
  function Xe(e) {
10088
10105
  return typeof e > "u";
10089
10106
  }
10090
- function Ju(e) {
10107
+ function Qu(e) {
10091
10108
  var s, p, m, y, _, T, w, C;
10092
10109
  const t = v((s = e.pagination) == null ? void 0 : s.enable), n = v(((p = e.pagination) == null ? void 0 : p.index) || 1), o = v((m = e.pagination) == null ? void 0 : m.size), l = v((y = e.pagination) == null ? void 0 : y.sizeLimits), a = v((_ = e.pagination) == null ? void 0 : _.mode), i = v((T = e.pagination) == null ? void 0 : T.showIndex), u = v((w = e.pagination) == null ? void 0 : w.showLimits), r = v(((C = e.pagination) == null ? void 0 : C.total) || 0), c = v(r.value || e.data.length || 0);
10093
10110
  return te(() => {
@@ -10136,7 +10153,7 @@ function Ju(e) {
10136
10153
  }
10137
10154
  };
10138
10155
  }
10139
- function Qu(e) {
10156
+ function Zu(e) {
10140
10157
  const t = "parent", n = "layer", o = "hasChildren", l = (a, i = 1, u = [], r = null) => (a = a || [], a.reduce((c, h) => (h.id = h.id || h.data[e.idField], h[t] = r, h[n] = i, h[o] = !1, h = { ...h, ...h.data }, u.push(h), h.children && h.children.length && (h[o] = !0, l(h.children, i + 1, u, h.id)), c), u), u);
10141
10158
  return { flatTreeData: l };
10142
10159
  }
@@ -10153,7 +10170,7 @@ function Xn(e, t, n, o, l, a, i, u, r, c, h, s, p, m, y, _) {
10153
10170
  rightFixedGridDataStyle: k
10154
10171
  } = m, {
10155
10172
  renderDataRow: F
10156
- } = is(e, t, w, _, u, r, c, h, s, p), b = [F];
10173
+ } = rs(e, t, w, _, u, r, c, h, s, p), b = [F];
10157
10174
  function d(O, E) {
10158
10175
  const R = T(O);
10159
10176
  return _.value.filter((P) => P.visible !== !1).map((P) => b[P.type](P, R, E, O));
@@ -10333,7 +10350,7 @@ const dt = /* @__PURE__ */ ye({
10333
10350
  }
10334
10351
  }, [be(c), ce(), Le(), ee()]), ie(), e.disabled && je()]);
10335
10352
  }
10336
- }), Zu = "https://json-schema.org/draft/2020-12/schema", ec = "https://farris-design.gitee.io/check-box.schema.json", tc = "check-box", nc = "A Farris Input Component", oc = "object", lc = {
10353
+ }), ec = "https://json-schema.org/draft/2020-12/schema", tc = "https://farris-design.gitee.io/check-box.schema.json", nc = "check-box", oc = "A Farris Input Component", lc = "object", ac = {
10337
10354
  id: {
10338
10355
  description: "The unique identifier for a check box",
10339
10356
  type: "string"
@@ -10400,27 +10417,26 @@ const dt = /* @__PURE__ */ ye({
10400
10417
  type: "boolean",
10401
10418
  default: !0
10402
10419
  }
10403
- }, ac = [
10404
- "id",
10420
+ }, ic = [
10405
10421
  "type"
10406
- ], ic = [
10422
+ ], rc = [
10407
10423
  "id",
10408
10424
  "appearance",
10409
10425
  "binding",
10410
10426
  "visible"
10411
- ], rc = {
10412
- $schema: Zu,
10413
- $id: ec,
10414
- title: tc,
10415
- description: nc,
10416
- type: oc,
10417
- properties: lc,
10418
- required: ac,
10419
- ignore: ic
10420
- }, sc = /* @__PURE__ */ new Map([
10427
+ ], sc = {
10428
+ $schema: ec,
10429
+ $id: tc,
10430
+ title: nc,
10431
+ description: oc,
10432
+ type: lc,
10433
+ properties: ac,
10434
+ required: ic,
10435
+ ignore: rc
10436
+ }, uc = /* @__PURE__ */ new Map([
10421
10437
  ["appearance", Ue]
10422
10438
  ]);
10423
- function uc(e, t, n) {
10439
+ function cc(e, t, n) {
10424
10440
  return t;
10425
10441
  }
10426
10442
  const Yn = {
@@ -10451,8 +10467,8 @@ const Yn = {
10451
10467
  /** 标识是否被选中 */
10452
10468
  checked: { type: Boolean, default: !1 }
10453
10469
  };
10454
- Ne(Yn, rc, sc, uc);
10455
- const cc = /* @__PURE__ */ ye({
10470
+ Ne(Yn, sc, uc, cc);
10471
+ const dc = /* @__PURE__ */ ye({
10456
10472
  name: "FCheckBox",
10457
10473
  props: Yn,
10458
10474
  emits: ["change", "changeValue", "update:modelValue", "update:checked"],
@@ -10513,7 +10529,7 @@ const cc = /* @__PURE__ */ ye({
10513
10529
  }, [(S = (x = t.slots).default) == null ? void 0 : S.call(x)])])]);
10514
10530
  };
10515
10531
  }
10516
- }), dc = {
10532
+ }), fc = {
10517
10533
  id: { type: String, default: "" },
10518
10534
  componentId: { type: String, default: "" },
10519
10535
  type: { type: String, default: "" },
@@ -10528,11 +10544,11 @@ const cc = /* @__PURE__ */ ye({
10528
10544
  */
10529
10545
  modelValue: { type: Object },
10530
10546
  ignore: { type: Boolean, default: !1 }
10531
- }, fc = {
10547
+ }, pc = {
10532
10548
  id: { type: String }
10533
- }, pc = /* @__PURE__ */ ye({
10549
+ }, mc = /* @__PURE__ */ ye({
10534
10550
  name: "FDesignerPlaceholder",
10535
- props: fc,
10551
+ props: pc,
10536
10552
  emits: [],
10537
10553
  setup(e) {
10538
10554
  const t = V(() => ({
@@ -10561,12 +10577,12 @@ const cc = /* @__PURE__ */ ye({
10561
10577
  }, [Oe("拖拽组件到这里")]);
10562
10578
  }
10563
10579
  });
10564
- function mc(e) {
10580
+ function vc(e) {
10565
10581
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !so(e);
10566
10582
  }
10567
10583
  const Mt = /* @__PURE__ */ ye({
10568
10584
  name: "FDesignerItem",
10569
- props: dc,
10585
+ props: fc,
10570
10586
  emits: ["selectionChange"],
10571
10587
  setup(e, t) {
10572
10588
  const n = v(`${e.modelValue.id}-component`), o = v(e.canMove), l = v(e.canDelete), a = v(!1), i = v(e.modelValue), u = v(e.componentId || ""), r = v(""), c = v(""), h = v(e.customClass), s = v(), p = qe("canvas-dragula"), m = v(), y = qe("design-item-context"), _ = {
@@ -10663,12 +10679,12 @@ const Mt = /* @__PURE__ */ ye({
10663
10679
  }
10664
10680
  function d(O) {
10665
10681
  let E;
10666
- const R = O.type, P = As[R], N = Ls[R], D = N ? N(O) : {};
10682
+ const R = O.type, P = Ls[R], N = Ws[R], D = N ? N(O) : {};
10667
10683
  D.customClass = e.ignore ? D.customClass : "", D.componentId = u.value, D.id = O.id;
10668
10684
  const j = O.contents && O.contents.length === 0;
10669
10685
  return O.contents && !!O.contents.length && P ? f(P, Ke({
10670
10686
  ref: m
10671
- }, D), mc(E = O.contents.map((J) => f(Mt, {
10687
+ }, D), vc(E = O.contents.map((J) => f(Mt, {
10672
10688
  key: J.id,
10673
10689
  modelValue: J,
10674
10690
  "onUpdate:modelValue": (re) => J = re,
@@ -10679,7 +10695,7 @@ const Mt = /* @__PURE__ */ ye({
10679
10695
  }) : P ? j ? f(P, Ke({
10680
10696
  ref: m
10681
10697
  }, D), {
10682
- default: () => [f(pc, null, null)]
10698
+ default: () => [f(mc, null, null)]
10683
10699
  }) : f(P, Ke({
10684
10700
  ref: m
10685
10701
  }, D), null) : f("div", null, null);
@@ -10702,7 +10718,7 @@ const Mt = /* @__PURE__ */ ye({
10702
10718
  });
10703
10719
  function B(O) {
10704
10720
  const E = O == null ? void 0 : O.target;
10705
- Ki(E);
10721
+ Ji(E);
10706
10722
  }
10707
10723
  function M() {
10708
10724
  var O, E;
@@ -10738,7 +10754,7 @@ const Mt = /* @__PURE__ */ ye({
10738
10754
  }, [F(i.value), d(i.value)]);
10739
10755
  }
10740
10756
  });
10741
- function vc(e, t, n, o, l, a, i, u, r, c, h, s, p, m, y, _, T, w, C, g = "data-grid-column") {
10757
+ function hc(e, t, n, o, l, a, i, u, r, c, h, s, p, m, y, _, T, w, C, g = "data-grid-column") {
10742
10758
  const {
10743
10759
  showSelectAll: x,
10744
10760
  selectAll: S,
@@ -10843,7 +10859,7 @@ function vc(e, t, n, o, l, a, i, u, r, c, h, s, p, m, y, _, T, w, C, g = "data-g
10843
10859
  return f("div", {
10844
10860
  class: "fv-grid-header-corner d-flex",
10845
10861
  style: B.value
10846
- }, [x.value && f(cc, {
10862
+ }, [x.value && f(dc, {
10847
10863
  id: "checkbox_for_select_all",
10848
10864
  indeterminate: pe.value,
10849
10865
  modelValue: U.value,
@@ -10869,7 +10885,7 @@ function vc(e, t, n, o, l, a, i, u, r, c, h, s, p, m, y, _, T, w, C, g = "data-g
10869
10885
  renderGridHeader: G
10870
10886
  };
10871
10887
  }
10872
- class hc extends Xi {
10888
+ class gc extends Yi {
10873
10889
  constructor(t, n) {
10874
10890
  super(t, n);
10875
10891
  }
@@ -10943,19 +10959,6 @@ class hc extends Xi {
10943
10959
  type: "boolean",
10944
10960
  description: "是否显示设置按钮"
10945
10961
  }
10946
- // useBlankWhenDataIsEmpty: {
10947
- // title: '空数据表格显示空白行',
10948
- // description: '表格没有数据时是否显示空白行',
10949
- // type: 'boolean',
10950
- // refreshPanelAfterChanged: true
10951
- // },
10952
- // emptyDataHeight: {
10953
- // title: '空数据高度',
10954
- // type: 'number',
10955
- // description: '空数据行高度设置',
10956
- // min: 1,
10957
- // max: 1000
10958
- // },
10959
10962
  },
10960
10963
  setPropertyRelates(a, i) {
10961
10964
  switch (a && a.propertyID) {
@@ -11005,6 +11008,10 @@ class hc extends Xi {
11005
11008
  {
11006
11009
  label: "onSelectionChange",
11007
11010
  name: "行切换事件"
11011
+ },
11012
+ {
11013
+ label: "onClickRow",
11014
+ name: "行点击事件"
11008
11015
  }
11009
11016
  ], o = this, l = o.eventsEditorUtils.formProperties(t, o.viewModelId, n), a = {};
11010
11017
  a[o.viewModelId] = {
@@ -11027,7 +11034,7 @@ class hc extends Xi {
11027
11034
  };
11028
11035
  }
11029
11036
  }
11030
- function gc(e, t) {
11037
+ function yc(e, t) {
11031
11038
  const n = e.schema, o = v(!0), l = v(!0);
11032
11039
  function a(h) {
11033
11040
  return h && h.sourceType === "control" ? h.componentCategory === "input" : !1;
@@ -11042,7 +11049,7 @@ function gc(e, t) {
11042
11049
  return !0;
11043
11050
  }
11044
11051
  function c(h) {
11045
- return new hc(h, t).getPropertyConfig(n);
11052
+ return new gc(h, t).getPropertyConfig(n);
11046
11053
  }
11047
11054
  return {
11048
11055
  canAccepts: a,
@@ -11054,40 +11061,40 @@ function gc(e, t) {
11054
11061
  getPropsConfig: c
11055
11062
  };
11056
11063
  }
11057
- const yc = /* @__PURE__ */ ye({
11064
+ const bc = /* @__PURE__ */ ye({
11058
11065
  name: "FTreeGridDesign",
11059
11066
  props: Nn,
11060
11067
  emits: [],
11061
11068
  setup(e, t) {
11062
11069
  var ke;
11063
- const n = v(), o = 0, l = 100, a = v(), i = v(), u = v(), r = v(), c = v([]), h = v(!1), s = v(((ke = e.rowOption) == null ? void 0 : ke.wrapContent) || !1), p = qe("designer-host-service"), m = qe("design-item-context"), y = gc(m, p), _ = xn(n, m, y);
11070
+ const n = v(), o = 0, l = 100, a = v(), i = v(), u = v(), r = v(), c = v([]), h = v(!1), s = v(((ke = e.rowOption) == null ? void 0 : ke.wrapContent) || !1), p = qe("designer-host-service"), m = qe("design-item-context"), y = yc(m, p), _ = xn(n, m, y);
11064
11071
  _.value.designerClass = "f-utils-fill-flex-column";
11065
- const T = Lu(e), w = qn(e, T), C = zn(), g = Ou(e), x = Ju(e), S = Tu(e, /* @__PURE__ */ new Map(), g, T, x), k = Gu(e, S, T, c, t), F = Mu(e, c, T, k, t), b = V(() => Math.min(S.dataView.value.length, l)), {
11072
+ const T = Wu(e), w = qn(e, T), C = zn(), g = Bu(e), x = Qu(e), S = Iu(e, /* @__PURE__ */ new Map(), g, T, x), k = zu(e, S, T, c, t), F = Eu(e, c, T, k, t), b = V(() => Math.min(S.dataView.value.length, l)), {
11066
11073
  containerStyleObject: d
11067
- } = fs(e), I = xs(e), B = v(e.columns), {
11074
+ } = ps(e), I = _s(e), B = v(e.columns), {
11068
11075
  applyCommands: M
11069
11076
  } = I;
11070
11077
  M(B);
11071
- const $ = ps(e), O = Ku(), {
11078
+ const $ = ms(e), O = Ju(), {
11072
11079
  applyColumnSorter: E,
11073
11080
  columnContext: R,
11074
11081
  updateColumnRenderContext: P
11075
11082
  } = $;
11076
11083
  E(S, O);
11077
- const N = Fs(e, R), D = Au(e, t, T), j = Dn(), H = Du(e, D, j), J = Hu(e, D, g, T, j, H), re = Vu(e, B, S, b, o, J), {
11084
+ const N = Ts(e, R), D = Lu(e, t, T), j = Dn(), H = Hu(e, D, j), J = Au(e, D, g, T, j, H), re = Pu(e, B, S, b, o, J), {
11078
11085
  getVisualData: fe
11079
- } = re, _e = jn(e, R), ve = zu(e, k), {
11086
+ } = re, _e = jn(e, R), ve = qu(e, k), {
11080
11087
  sidebarWidth: Se
11081
11088
  } = ve;
11082
11089
  c.value = fe(0, b.value + o - 1);
11083
- const ge = Eu(e, S, c, R, re, b, o, Se), {
11090
+ const ge = Vu(e, S, c, R, re, b, o, Se), {
11084
11091
  onWheel: we,
11085
11092
  dataGridWidth: me,
11086
11093
  viewPortHeight: he,
11087
11094
  viewPortWidth: U
11088
- } = ge, X = ks(e, R, a, U, N), {
11095
+ } = ge, X = Fs(e, R, a, U, N), {
11089
11096
  calculateColumnsSize: pe
11090
- } = X, xe = Iu(), G = Ss(a, r, S, xe, ge), L = Wu(e, t, k, T), z = _s(e, t, $, S, N, w, ge), le = V(() => ({
11097
+ } = X, xe = Ou(), G = xs(a, r, S, xe, ge), L = Gu(e, t, k, T), z = ks(e, t, $, S, N, w, ge), le = V(() => ({
11091
11098
  "drag-container": !0,
11092
11099
  "fv-grid": !0,
11093
11100
  "fv-grid-bordered": e.showBorder,
@@ -11100,13 +11107,13 @@ const yc = /* @__PURE__ */ ye({
11100
11107
  renderDataArea: A
11101
11108
  } = Xn(e, t, i, u, r, _e, $, S, D, g, L, k, F, ge, re, c), {
11102
11109
  renderGridHeader: ie
11103
- } = vc(m, e, a, u, r, $, S, z, G, C, xe, X, N, k, ve, O, ge, U, c, "tree-grid-column"), {
11110
+ } = hc(m, e, a, u, r, $, S, z, G, C, xe, X, N, k, ve, O, ge, U, c, "tree-grid-column"), {
11104
11111
  renderDataGridSidebar: be
11105
- } = ss(e, L, k, ve, ge), {
11112
+ } = us(e, L, k, ve, ge), {
11106
11113
  renderHorizontalScrollbar: je
11107
- } = rs(e, a, ge), {
11114
+ } = ss(e, a, ge), {
11108
11115
  renderVerticalScrollbar: Le
11109
- } = us(e, a, ge);
11116
+ } = cs(e, a, ge);
11110
11117
  function ee() {
11111
11118
  var Be, De;
11112
11119
  he.value = ((Be = i.value) == null ? void 0 : Be.clientHeight) || 0, me.value = ((De = a.value) == null ? void 0 : De.clientWidth) || 0, pe();
@@ -11121,7 +11128,7 @@ const yc = /* @__PURE__ */ ye({
11121
11128
  });
11122
11129
  const ae = V(() => !c.value || !c.value.length), {
11123
11130
  renderEmpty: de
11124
- } = ds(t);
11131
+ } = fs(t);
11125
11132
  return t.expose(_.value), () => f("div", {
11126
11133
  ref: n,
11127
11134
  dragref: `${m.schema.id}-container`,
@@ -11141,19 +11148,19 @@ const yc = /* @__PURE__ */ ye({
11141
11148
  }
11142
11149
  });
11143
11150
  dt.register = (e, t, n, o) => {
11144
- e["tree-grid"] = dt, t["tree-grid"] = Zr, o["tree-grid"] = { bindingResolver: ts, selectionItemResolver: es };
11151
+ e["tree-grid"] = dt, t["tree-grid"] = es, o["tree-grid"] = { bindingResolver: ns, selectionItemResolver: ts };
11145
11152
  };
11146
11153
  dt.registerDesigner = (e, t, n) => {
11147
- e["tree-grid"] = yc, t["tree-grid"] = ns;
11154
+ e["tree-grid"] = bc, t["tree-grid"] = os;
11148
11155
  };
11149
11156
  yo(dt);
11150
- const bc = Symbol("schema_repository_token"), Cc = {
11157
+ const Cc = Symbol("schema_repository_token"), wc = {
11151
11158
  convertFrom: (e, t) => e[t],
11152
11159
  convertTo: (e, t, n) => {
11153
11160
  e[t] = n.value;
11154
11161
  }
11155
11162
  };
11156
- function wc(e, t) {
11163
+ function Sc(e, t) {
11157
11164
  const n = {
11158
11165
  "input-group": {
11159
11166
  key: "input-group",
@@ -11208,7 +11215,7 @@ function wc(e, t) {
11208
11215
  break;
11209
11216
  case "Date":
11210
11217
  case "DateTime":
11211
- y = [n["data-picker"]];
11218
+ y = [n["date-picker"]];
11212
11219
  break;
11213
11220
  }
11214
11221
  return y;
@@ -11292,7 +11299,7 @@ function wc(e, t) {
11292
11299
  },
11293
11300
  { id: "total", title: "全部", type: "List", dataSource: "Total" }
11294
11301
  ],
11295
- repositoryToken: bc,
11302
+ repositoryToken: Cc,
11296
11303
  onSubmitModal: (w) => {
11297
11304
  if (w) {
11298
11305
  const C = e.formSchemaUtils.getFormMetadataBasicInfo();
@@ -11393,14 +11400,14 @@ function wc(e, t) {
11393
11400
  requiredFields: ["value", "name"],
11394
11401
  uniqueFields: ["value", "name"]
11395
11402
  },
11396
- $converter: Cc
11403
+ $converter: wc
11397
11404
  } };
11398
11405
  }
11399
11406
  function r(p) {
11400
11407
  const { controlType: m } = p, y = {
11401
11408
  description: "",
11402
11409
  title: "控件",
11403
- properties: Ui[m]
11410
+ properties: Xi[m]
11404
11411
  };
11405
11412
  if (m === "lookup" || m === "combo-lookup") {
11406
11413
  const { helpId: _, textField: T, valueField: w, mappingFields: C } = i(p);
@@ -11479,10 +11486,10 @@ function wc(e, t) {
11479
11486
  getPropertyConfig: s
11480
11487
  };
11481
11488
  }
11482
- function Sc(e, t, n, o) {
11489
+ function xc(e, t, n, o) {
11483
11490
  const l = v(), a = v("query-solution-config"), i = v({}), u = v(), r = v(null), {
11484
11491
  getPropertyConfig: c
11485
- } = wc(e);
11492
+ } = Sc(e);
11486
11493
  te(() => {
11487
11494
  var _;
11488
11495
  return (_ = n.value) == null ? void 0 : _.id;
@@ -11679,7 +11686,7 @@ function Sc(e, t, n, o) {
11679
11686
  }
11680
11687
  });
11681
11688
  function y() {
11682
- return f(Gi, {
11689
+ return f(zi, {
11683
11690
  propertyConfig: u.value,
11684
11691
  ref: l,
11685
11692
  propertyName: a.value,
@@ -11693,13 +11700,13 @@ function Sc(e, t, n, o) {
11693
11700
  getExtendSchemaProerty: m
11694
11701
  };
11695
11702
  }
11696
- const xc = /* @__PURE__ */ new Map([
11703
+ const _c = /* @__PURE__ */ new Map([
11697
11704
  ["appearance", Ue]
11698
11705
  ]);
11699
- function _c(e, t, n) {
11706
+ function kc(e, t, n) {
11700
11707
  return t;
11701
11708
  }
11702
- const kc = "transfer", Fc = "A Farris Component", Tc = "object", Ic = {
11709
+ const Fc = "transfer", Tc = "A Farris Component", Ic = "object", Oc = {
11703
11710
  basic: {
11704
11711
  description: "Basic Infomation",
11705
11712
  title: "基本信息",
@@ -11721,12 +11728,12 @@ const kc = "transfer", Fc = "A Farris Component", Tc = "object", Ic = {
11721
11728
  }
11722
11729
  }
11723
11730
  }
11724
- }, Oc = {
11725
- title: kc,
11726
- description: Fc,
11727
- type: Tc,
11728
- categories: Ic
11729
- }, Bc = "https://json-schema.org/draft/2020-12/schema", Mc = "https://farris-design.gitee.io/transfer.schema.json", Ec = "transfer", Vc = "A Farris Component", Pc = "object", $c = {
11731
+ }, Bc = {
11732
+ title: Fc,
11733
+ description: Tc,
11734
+ type: Ic,
11735
+ categories: Oc
11736
+ }, Mc = "https://json-schema.org/draft/2020-12/schema", Ec = "https://farris-design.gitee.io/transfer.schema.json", Vc = "transfer", Pc = "A Farris Component", $c = "object", Rc = {
11730
11737
  id: {
11731
11738
  description: "The unique identifier for transfer",
11732
11739
  type: "string"
@@ -11788,17 +11795,17 @@ const kc = "transfer", Fc = "A Farris Component", Tc = "object", Ic = {
11788
11795
  type: "boolean",
11789
11796
  default: !0
11790
11797
  }
11791
- }, Rc = [
11798
+ }, Nc = [
11792
11799
  "id",
11793
11800
  "type"
11794
- ], Nc = {
11795
- $schema: Bc,
11796
- $id: Mc,
11797
- title: Ec,
11798
- description: Vc,
11799
- type: Pc,
11800
- properties: $c,
11801
- required: Rc
11801
+ ], jc = {
11802
+ $schema: Mc,
11803
+ $id: Ec,
11804
+ title: Vc,
11805
+ description: Pc,
11806
+ type: $c,
11807
+ properties: Rc,
11808
+ required: Nc
11802
11809
  }, Kn = {
11803
11810
  dataSource: {
11804
11811
  type: Array,
@@ -11812,14 +11819,14 @@ const kc = "transfer", Fc = "A Farris Component", Tc = "object", Ic = {
11812
11819
  selections: { type: Array, default: [] },
11813
11820
  selectionValues: { type: Array, default: [] }
11814
11821
  };
11815
- Ne(Kn, Nc, xc, _c, Oc);
11816
- const jc = /* @__PURE__ */ new Map([
11822
+ Ne(Kn, jc, _c, kc, Bc);
11823
+ const Dc = /* @__PURE__ */ new Map([
11817
11824
  ["appearance", Ue]
11818
11825
  ]);
11819
- function Dc(e, t, n) {
11826
+ function Hc(e, t, n) {
11820
11827
  return t;
11821
11828
  }
11822
- const Hc = "https://json-schema.org/draft/2020-12/schema", Ac = "https://farris-design.gitee.io/list-view.schema.json", Lc = "list-view", Wc = "A Farris Component", Gc = "object", zc = {
11829
+ const Ac = "https://json-schema.org/draft/2020-12/schema", Lc = "https://farris-design.gitee.io/list-view.schema.json", Wc = "list-view", Gc = "A Farris Component", zc = "object", qc = {
11823
11830
  id: {
11824
11831
  description: "The unique identifier for list-view",
11825
11832
  type: "string"
@@ -11881,18 +11888,18 @@ const Hc = "https://json-schema.org/draft/2020-12/schema", Ac = "https://farris-
11881
11888
  type: "boolean",
11882
11889
  default: !0
11883
11890
  }
11884
- }, qc = [
11891
+ }, Uc = [
11885
11892
  "id",
11886
11893
  "type"
11887
- ], Uc = {
11888
- $schema: Hc,
11889
- $id: Ac,
11890
- title: Lc,
11891
- description: Wc,
11892
- type: Gc,
11893
- properties: zc,
11894
- required: qc
11895
- }, Xc = "list-view", Yc = "A Farris Component", Kc = "object", Jc = {
11894
+ ], Xc = {
11895
+ $schema: Ac,
11896
+ $id: Lc,
11897
+ title: Wc,
11898
+ description: Gc,
11899
+ type: zc,
11900
+ properties: qc,
11901
+ required: Uc
11902
+ }, Yc = "list-view", Kc = "A Farris Component", Jc = "object", Qc = {
11896
11903
  basic: {
11897
11904
  description: "Basic Infomation",
11898
11905
  title: "基本信息",
@@ -11914,11 +11921,11 @@ const Hc = "https://json-schema.org/draft/2020-12/schema", Ac = "https://farris-
11914
11921
  }
11915
11922
  }
11916
11923
  }
11917
- }, Qc = {
11918
- title: Xc,
11919
- description: Yc,
11920
- type: Kc,
11921
- categories: Jc
11924
+ }, Zc = {
11925
+ title: Yc,
11926
+ description: Kc,
11927
+ type: Jc,
11928
+ categories: Qc
11922
11929
  }, Jn = {
11923
11930
  /** 列集合 */
11924
11931
  columns: {
@@ -11961,8 +11968,8 @@ const Hc = "https://json-schema.org/draft/2020-12/schema", Ac = "https://farris-
11961
11968
  // 搜索启用高亮
11962
11969
  enableHighlightSearch: { type: Boolean, default: !0 }
11963
11970
  };
11964
- Ne(Jn, Uc, jc, Dc, Qc);
11965
- function Zc(e, t) {
11971
+ Ne(Jn, Xc, Dc, Hc, Zc);
11972
+ function ed(e, t) {
11966
11973
  function n(a) {
11967
11974
  const i = [];
11968
11975
  let u = a.nextNode();
@@ -12043,7 +12050,7 @@ function Xt(e, t, n, o, l, a, i, u, r, c) {
12043
12050
  renderItem: F
12044
12051
  };
12045
12052
  }
12046
- function ed(e, t, n, o, l, a, i, u, r, c) {
12053
+ function td(e, t, n, o, l, a, i, u, r, c) {
12047
12054
  const h = v(e.multiSelect), s = v(e.disableField), {
12048
12055
  onMouseenterItem: p,
12049
12056
  onMouseoverItem: m,
@@ -12090,7 +12097,7 @@ function ed(e, t, n, o, l, a, i, u, r, c) {
12090
12097
  renderItem: x
12091
12098
  };
12092
12099
  }
12093
- function td(e, t, n, o, l, a, i, u, r, c) {
12100
+ function nd(e, t, n, o, l, a, i, u, r, c) {
12094
12101
  const h = v(e.multiSelect), s = v(e.disableField), {
12095
12102
  onMouseenterItem: p,
12096
12103
  onMouseoverItem: m,
@@ -12162,7 +12169,7 @@ function td(e, t, n, o, l, a, i, u, r, c) {
12162
12169
  renderItem: M
12163
12170
  };
12164
12171
  }
12165
- function nd(e, t, n, o, l, a, i, u, r, c) {
12172
+ function od(e, t, n, o, l, a, i, u, r, c) {
12166
12173
  var _;
12167
12174
  const h = v(((_ = e.group) == null ? void 0 : _.groupFields) || []), {
12168
12175
  collpaseGroupIconClass: s
@@ -12188,7 +12195,7 @@ function nd(e, t, n, o, l, a, i, u, r, c) {
12188
12195
  renderItem: y
12189
12196
  };
12190
12197
  }
12191
- function od() {
12198
+ function ld() {
12192
12199
  const e = v(-1), t = v(""), n = v(-1), o = v(!1);
12193
12200
  function l(c, h, s) {
12194
12201
  n.value = s;
@@ -12216,7 +12223,7 @@ function od() {
12216
12223
  suspendHover: u
12217
12224
  };
12218
12225
  }
12219
- function ld(e, t, n, o) {
12226
+ function ad(e, t, n, o) {
12220
12227
  const l = v(e.idField), { dataView: a } = n, i = v(-1), u = v(!1), { activeIndex: r, focusedItemId: c, hoverIndex: h, resumeHover: s, suspendHover: p } = o;
12221
12228
  function m(w, C, g) {
12222
12229
  w.stopPropagation(), p(), C && setTimeout(() => {
@@ -12245,7 +12252,7 @@ function ld(e, t, n, o) {
12245
12252
  isDragging: u
12246
12253
  };
12247
12254
  }
12248
- function ad(e, t, n) {
12255
+ function id(e, t, n) {
12249
12256
  const { dataView: o } = n;
12250
12257
  function l(a) {
12251
12258
  if (a > -1 && a < o.value.length) {
@@ -12255,7 +12262,7 @@ function ad(e, t, n) {
12255
12262
  }
12256
12263
  return { removeItem: l };
12257
12264
  }
12258
- function id(e, t, n, o, l, a) {
12265
+ function rd(e, t, n, o, l, a) {
12259
12266
  const i = v(e.idField), u = v(e.disableField), r = v(e.draggable), c = v(e.itemClass), h = v(e.selection.multiSelect ?? !1), s = v(e.selection.multiSelectMode), { isDragging: p } = o, { activeIndex: m, focusedItemId: y, hoverIndex: _ } = l, { clearSelection: T, getSelectedItems: w, toggleSelectItem: C } = a, g = v(w());
12260
12267
  function x(B, M) {
12261
12268
  const $ = {
@@ -12300,21 +12307,21 @@ function id(e, t, n, o, l, a) {
12300
12307
  onClickItem: I
12301
12308
  };
12302
12309
  }
12303
- function rd(e, t, n, o, l, a, i) {
12304
- const u = v(e.view), r = v(e.view === "CardView"), c = v({}), h = v("暂无数据"), s = od(), p = ld(e, t, o, s), m = ad(e, t, o), y = id(e, t, n, p, s, a), _ = V(() => ({
12310
+ function sd(e, t, n, o, l, a, i) {
12311
+ const u = v(e.view), r = v(e.view === "CardView"), c = v({}), h = v("暂无数据"), s = ld(), p = ad(e, t, o, s), m = id(e, t, o), y = rd(e, t, n, p, s, a), _ = V(() => ({
12305
12312
  "f-list-view-group": !0,
12306
12313
  "d-flex": r.value,
12307
12314
  "flex-wrap": r.value
12308
12315
  })), T = V(() => !!n.value && n.value.length > 0), w = V(() => n.value.length === 0);
12309
12316
  V(() => w.value && !t.slots.empty);
12310
12317
  function C() {
12311
- return u.value === "SingleView" ? Xt : u.value === "DraggableView" ? td : (u.value === "ContentView" || u.value === "CardView") && t.slots.content ? ed : Xt;
12318
+ return u.value === "SingleView" ? Xt : u.value === "DraggableView" ? nd : (u.value === "ContentView" || u.value === "CardView") && t.slots.content ? td : Xt;
12312
12319
  }
12313
12320
  const g = C(), {
12314
12321
  renderItem: x
12315
12322
  } = g(e, t, n, p, l, s, y, a, m, i), {
12316
12323
  renderItem: S
12317
- } = nd(e, t, n, p, l, s, y, a, m, i), k = [x, S];
12324
+ } = od(e, t, n, p, l, s, y, a, m, i), k = [x, S];
12318
12325
  function F() {
12319
12326
  return n.value.filter((I) => I.visible !== !1).map((I, B) => k[I.type](I, B, c));
12320
12327
  }
@@ -12335,7 +12342,7 @@ function rd(e, t, n, o, l, a, i) {
12335
12342
  renderListArea: d
12336
12343
  };
12337
12344
  }
12338
- function sd(e, t, n) {
12345
+ function ud(e, t, n) {
12339
12346
  function o() {
12340
12347
  return t.slots.header && f("div", {
12341
12348
  class: "f-list-view-header"
@@ -12403,7 +12410,7 @@ const Kt = /* @__PURE__ */ ye({
12403
12410
  props: Jn,
12404
12411
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
12405
12412
  setup(e, t) {
12406
- const n = v(), o = v(!0), l = v(!1), a = v([]), i = 0, u = v(e.columns), r = nn(e), c = ln(e), h = on(e, r), s = an(e), p = rn(e, /* @__PURE__ */ new Map(), c, r, s), m = sn(e, p, r, a, t), y = Zc(e, n), _ = V(() => p.dataView.value.length), T = un(e, t, r), w = cn(), C = dn(e, {}, w), g = fn(e, T, c, r, w, C), x = ta(e, r, C, g), S = na(e, r, C, g), k = pn(e, u, p, _, i, g, x, S), {
12413
+ const n = v(), o = v(!0), l = v(!1), a = v([]), i = 0, u = v(e.columns), r = nn(e), c = ln(e), h = on(e, r), s = an(e), p = rn(e, /* @__PURE__ */ new Map(), c, r, s), m = sn(e, p, r, a, t), y = ed(e, n), _ = V(() => p.dataView.value.length), T = un(e, t, r), w = cn(), C = dn(e, {}, w), g = fn(e, T, c, r, w, C), x = ta(e, r, C, g), S = na(e, r, C, g), k = pn(e, u, p, _, i, g, x, S), {
12407
12414
  getVisualData: F
12408
12415
  } = k;
12409
12416
  a.value = F(0, _.value + i - 1);
@@ -12415,13 +12422,13 @@ const Kt = /* @__PURE__ */ ye({
12415
12422
  return e.size !== "default" && (P[`${e.size}-item`] = !0), P;
12416
12423
  }), d = V(() => !!t.slots.footer || o.value);
12417
12424
  function I() {
12418
- return e.header === "SearchBar" ? Yt : e.header === "ContentHeader" ? sd : Yt;
12425
+ return e.header === "SearchBar" ? Yt : e.header === "ContentHeader" ? ud : Yt;
12419
12426
  }
12420
12427
  const B = I(), {
12421
12428
  renderHeader: M
12422
12429
  } = B(e, t, y), {
12423
12430
  renderListArea: $
12424
- } = rd(e, t, a, p, h, m, k);
12431
+ } = sd(e, t, a, p, h, m, k);
12425
12432
  function O(P) {
12426
12433
  y.search(P);
12427
12434
  }
@@ -12451,7 +12458,7 @@ const Kt = /* @__PURE__ */ ye({
12451
12458
  class: "f-list-view-footer"
12452
12459
  }, [t.slots.footer && t.slots.footer()])]);
12453
12460
  }
12454
- }), ud = /* @__PURE__ */ ye({
12461
+ }), cd = /* @__PURE__ */ ye({
12455
12462
  name: "FTransfer",
12456
12463
  props: Kn,
12457
12464
  emits: ["change", "activeChange"],
@@ -12564,7 +12571,7 @@ const Kt = /* @__PURE__ */ ye({
12564
12571
  }, [C(), F()]);
12565
12572
  }
12566
12573
  });
12567
- function cd(e, t, n, o, l) {
12574
+ function dd(e, t, n, o, l) {
12568
12575
  const a = v(!1), i = v(), u = v([]), r = v([]), c = v([]), {
12569
12576
  getExtendSchemaProerty: h
12570
12577
  } = l;
@@ -12590,12 +12597,12 @@ function cd(e, t, n, o, l) {
12590
12597
  case "Integer":
12591
12598
  case "Decimal":
12592
12599
  case "BigNumber": {
12593
- k = "number-range", F = m("number-range");
12600
+ k = "number-range", F = m("number-spinner");
12594
12601
  break;
12595
12602
  }
12596
12603
  case "Date":
12597
12604
  case "DateTime": {
12598
- k = "date-range", F = m("date-range");
12605
+ k = "date-picker", F = m("date-picker");
12599
12606
  break;
12600
12607
  }
12601
12608
  case "Enum":
@@ -12621,17 +12628,17 @@ function cd(e, t, n, o, l) {
12621
12628
  controlType: k,
12622
12629
  ...F
12623
12630
  };
12624
- return o.set(b.id, Ee(b)), b;
12631
+ return o.set(b.id, Me(b)), b;
12625
12632
  }
12626
12633
  function _() {
12627
- return Ee(e.fieldsConfig).map((F) => y(F));
12634
+ return Me(e.fieldsConfig).map((F) => y(F));
12628
12635
  }
12629
12636
  function T() {
12630
12637
  return _();
12631
12638
  }
12632
12639
  function w() {
12633
12640
  c.value = T();
12634
- const S = {}, k = Ee(e.modelValue) || [];
12641
+ const S = {}, k = Me(e.modelValue) || [];
12635
12642
  r.value = [], k.forEach((F) => {
12636
12643
  const b = c.value.find((d) => d.id === F.id);
12637
12644
  b && (S[F.id] = {
@@ -12641,8 +12648,8 @@ function cd(e, t, n, o, l) {
12641
12648
  labelCode: b.labelCode,
12642
12649
  name: F.name,
12643
12650
  controlType: F.controlType
12644
- }, delete S[F.id].type, r.value.push(S[F.id]), o.set(F.id, Ee(S[F.id])));
12645
- }), a.value = !0, i.value = Ee(S), u.value = Ee(r.value);
12651
+ }, delete S[F.id].type, r.value.push(S[F.id]), o.set(F.id, Me(S[F.id])));
12652
+ }), a.value = !0, i.value = Me(S), u.value = Me(r.value);
12646
12653
  }
12647
12654
  function C() {
12648
12655
  const S = [];
@@ -12669,10 +12676,10 @@ function cd(e, t, n, o, l) {
12669
12676
  }), t.emit("update:modelValue", S), e.onFieldsChanged && typeof e.onFieldsChanged == "function" && e.onFieldsChanged(S), a.value = !1, n.value = null;
12670
12677
  }
12671
12678
  function g() {
12672
- r.value = Ee(u.value), a.value = !1, n.value = null;
12679
+ r.value = Me(u.value), a.value = !1, n.value = null;
12673
12680
  }
12674
12681
  function x() {
12675
- return a.value ? f(ud, {
12682
+ return a.value ? f(cd, {
12676
12683
  selections: r.value,
12677
12684
  "data-source": c.value,
12678
12685
  class: "query-solution-config-transfer",
@@ -12688,19 +12695,19 @@ function cd(e, t, n, o, l) {
12688
12695
  cancel: g
12689
12696
  };
12690
12697
  }
12691
- const dd = /* @__PURE__ */ ye({
12698
+ const fd = /* @__PURE__ */ ye({
12692
12699
  name: "FQuerySolutionConfig",
12693
12700
  props: _n,
12694
12701
  emits: ["update:modelValue"],
12695
12702
  setup(e, t) {
12696
- const n = v(null), o = V(() => "共" + e.modelValue.length + "项"), l = /* @__PURE__ */ new Map(), a = Sc(e, t, n, l), {
12703
+ const n = v(null), o = V(() => "共" + e.modelValue.length + "项"), l = /* @__PURE__ */ new Map(), a = xc(e, t, n, l), {
12697
12704
  renderPanel: i
12698
12705
  } = a, {
12699
12706
  renderTransfer: u,
12700
12707
  initData: r,
12701
12708
  confirm: c,
12702
12709
  cancel: h
12703
- } = cd(e, t, n, l, a);
12710
+ } = dd(e, t, n, l, a);
12704
12711
  function s() {
12705
12712
  c();
12706
12713
  }
@@ -12718,7 +12725,7 @@ const dd = /* @__PURE__ */ ye({
12718
12725
  function y() {
12719
12726
  return f(Re, null, [u(), i()]);
12720
12727
  }
12721
- return () => f(Vr, {
12728
+ return () => f(Pr, {
12722
12729
  id: e.id,
12723
12730
  "button-behavior": "Modal",
12724
12731
  "modal-options": m,
@@ -12731,18 +12738,18 @@ const dd = /* @__PURE__ */ ye({
12731
12738
  }, [y()])]
12732
12739
  });
12733
12740
  }
12734
- }), fd = "https://json-schema.org/draft/2020-12/schema", pd = "https://farris-design.gitee.io/filter-bar-config.schema.json", md = "filter-bar-config", vd = "A Farris Container Component", hd = {
12741
+ }), pd = "https://json-schema.org/draft/2020-12/schema", md = "https://farris-design.gitee.io/filter-bar-config.schema.json", vd = "filter-bar-config", hd = "A Farris Container Component", gd = {
12735
12742
  fields: {
12736
12743
  description: "The unique identifier for a query solution",
12737
12744
  type: "array"
12738
12745
  }
12739
- }, gd = {
12740
- $schema: fd,
12741
- $id: pd,
12742
- title: md,
12743
- description: vd,
12744
- properties: hd
12745
- }, yd = "filter-bar-config", bd = "A Farris Component", Cd = "object", wd = {
12746
+ }, yd = {
12747
+ $schema: pd,
12748
+ $id: md,
12749
+ title: vd,
12750
+ description: hd,
12751
+ properties: gd
12752
+ }, bd = "filter-bar-config", Cd = "A Farris Component", wd = "object", Sd = {
12746
12753
  basic: {
12747
12754
  description: "Basic Infomation",
12748
12755
  title: "基本信息",
@@ -12826,35 +12833,35 @@ const dd = /* @__PURE__ */ ye({
12826
12833
  title: "控件",
12827
12834
  properties: {}
12828
12835
  }
12829
- }, Sd = {
12830
- title: yd,
12831
- description: bd,
12832
- type: Cd,
12833
- categories: wd
12834
- }, xd = /* @__PURE__ */ new Map([
12836
+ }, xd = {
12837
+ title: bd,
12838
+ description: Cd,
12839
+ type: wd,
12840
+ categories: Sd
12841
+ }, _d = /* @__PURE__ */ new Map([
12835
12842
  ["appearance", Ue]
12836
12843
  // ['preset', resolvePreset]
12837
12844
  ]);
12838
- function _d(e, t, n) {
12845
+ function kd(e, t, n) {
12839
12846
  return t;
12840
12847
  }
12841
- const kd = {
12848
+ const Fd = {
12842
12849
  fields: { type: Array, default: [] },
12843
12850
  modelValue: { type: Array, default: [] }
12844
- }, Fd = Ne(kd, gd, xd, _d, Sd), Uf = {
12851
+ }, Td = Ne(Fd, yd, _d, kd, xd), Xf = {
12845
12852
  install(e) {
12846
12853
  e.component(wt.name, wt);
12847
12854
  },
12848
12855
  register(e, t, n, o) {
12849
- e["filter-bar"] = wt, t["filter-bar"] = Wt, e["filter-bar-config"] = dd, t["filter-bar-config"] = Fd;
12856
+ e["filter-bar"] = wt, t["filter-bar"] = Wt, e["filter-bar-config"] = fd, t["filter-bar-config"] = Td;
12850
12857
  },
12851
12858
  registerDesigner(e, t, n) {
12852
- e["filter-bar"] = Qa, t["filter-bar"] = Wt;
12859
+ e["filter-bar"] = Za, t["filter-bar"] = Wt;
12853
12860
  }
12854
12861
  };
12855
12862
  export {
12856
12863
  wt as FFilterBar,
12857
- Uf as default,
12864
+ Xf as default,
12858
12865
  Rt as filterBarProps,
12859
12866
  Wt as propsResolver
12860
12867
  };