@farris/ui-vue 1.3.0 → 1.3.1

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 (201) hide show
  1. package/components/accordion/index.esm.js +1 -1
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +472 -366
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +1 -1
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +472 -480
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +225 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +615 -517
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +325 -333
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +578 -472
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +49 -49
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/common/index.esm.js +832 -722
  20. package/components/common/index.umd.cjs +1 -1
  21. package/components/component/index.esm.js +303 -981
  22. package/components/component/index.umd.cjs +1 -1
  23. package/components/condition/index.esm.js +8 -8
  24. package/components/condition/index.umd.cjs +1 -1
  25. package/components/content-container/index.esm.js +335 -1002
  26. package/components/content-container/index.umd.cjs +1 -1
  27. package/components/data-grid/index.esm.js +4429 -4312
  28. package/components/data-grid/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +3037 -3020
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +2216 -2119
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.css +1 -1
  34. package/components/designer-canvas/index.esm.js +914 -883
  35. package/components/designer-canvas/index.umd.cjs +1 -1
  36. package/components/dropdown/index.esm.js +223 -231
  37. package/components/dropdown/index.umd.cjs +2 -2
  38. package/components/dynamic-form/index.esm.js +1691 -2187
  39. package/components/dynamic-form/index.umd.cjs +1 -1
  40. package/components/dynamic-resolver/index.esm.js +143 -136
  41. package/components/dynamic-resolver/index.umd.cjs +1 -1
  42. package/components/events-editor/index.esm.js +250 -258
  43. package/components/events-editor/index.umd.cjs +1 -1
  44. package/components/expression-editor/index.esm.js +1 -1
  45. package/components/expression-editor/index.umd.cjs +1 -1
  46. package/components/external-container/index.esm.js +2672 -3438
  47. package/components/external-container/index.umd.cjs +1 -1
  48. package/components/field-selector/index.esm.js +2965 -2970
  49. package/components/field-selector/index.umd.cjs +1 -1
  50. package/components/filter-bar/index.esm.js +1650 -1602
  51. package/components/filter-bar/index.umd.cjs +1 -1
  52. package/components/flow-canvas/index.css +1 -1
  53. package/components/flow-canvas/index.esm.js +684 -675
  54. package/components/flow-canvas/index.umd.cjs +1 -1
  55. package/components/image-cropper/index.esm.js +453 -461
  56. package/components/image-cropper/index.umd.cjs +1 -1
  57. package/components/input-group/index.esm.js +604 -507
  58. package/components/input-group/index.umd.cjs +1 -1
  59. package/components/layout/index.esm.js +402 -378
  60. package/components/layout/index.umd.cjs +1 -1
  61. package/components/list-nav/index.esm.js +348 -1019
  62. package/components/list-nav/index.umd.cjs +1 -1
  63. package/components/list-view/index.esm.js +1658 -1666
  64. package/components/list-view/index.umd.cjs +1 -1
  65. package/components/lookup/index.esm.js +5209 -5088
  66. package/components/lookup/index.umd.cjs +1 -1
  67. package/components/mapping-editor/index.esm.js +4329 -4213
  68. package/components/mapping-editor/index.umd.cjs +1 -1
  69. package/components/nav/index.esm.js +905 -1357
  70. package/components/nav/index.umd.cjs +3 -3
  71. package/components/number-range/index.esm.js +517 -420
  72. package/components/number-range/index.umd.cjs +1 -1
  73. package/components/number-spinner/index.esm.js +588 -491
  74. package/components/number-spinner/index.umd.cjs +1 -1
  75. package/components/order/index.esm.js +1376 -1965
  76. package/components/order/index.umd.cjs +1 -1
  77. package/components/page-footer/index.esm.js +1 -1
  78. package/components/page-footer/index.umd.cjs +1 -1
  79. package/components/page-header/index.esm.js +1073 -1905
  80. package/components/page-header/index.umd.cjs +1 -1
  81. package/components/pagination/index.esm.js +809 -1237
  82. package/components/pagination/index.umd.cjs +1 -1
  83. package/components/progress/index.esm.js +198 -206
  84. package/components/progress/index.umd.cjs +3 -3
  85. package/components/property-editor/index.esm.js +1297 -1200
  86. package/components/property-editor/index.umd.cjs +2 -2
  87. package/components/property-panel/index.esm.js +609 -507
  88. package/components/property-panel/index.umd.cjs +1 -1
  89. package/components/query-solution/index.esm.js +3391 -3758
  90. package/components/query-solution/index.umd.cjs +1 -1
  91. package/components/radio-button/index.esm.js +1 -1
  92. package/components/radio-button/index.umd.cjs +1 -1
  93. package/components/radio-group/index.esm.js +544 -447
  94. package/components/radio-group/index.umd.cjs +1 -1
  95. package/components/rate/index.esm.js +247 -255
  96. package/components/rate/index.umd.cjs +1 -1
  97. package/components/response-layout/index.esm.js +146 -154
  98. package/components/response-layout/index.umd.cjs +1 -1
  99. package/components/response-layout-editor/index.esm.js +700 -675
  100. package/components/response-layout-editor/index.umd.cjs +1 -1
  101. package/components/response-toolbar/index.esm.js +956 -1786
  102. package/components/response-toolbar/index.umd.cjs +1 -1
  103. package/components/schema-selector/index.esm.js +4963 -5617
  104. package/components/schema-selector/index.umd.cjs +2 -2
  105. package/components/search-box/index.esm.js +158 -161
  106. package/components/search-box/index.umd.cjs +1 -1
  107. package/components/section/index.esm.js +436 -1124
  108. package/components/section/index.umd.cjs +1 -1
  109. package/components/smoke-detector/index.esm.js +92 -100
  110. package/components/smoke-detector/index.umd.cjs +1 -1
  111. package/components/splitter/index.esm.js +571 -1210
  112. package/components/splitter/index.umd.cjs +1 -1
  113. package/components/splitter/style.js +2 -0
  114. package/components/step/index.esm.js +239 -247
  115. package/components/step/index.umd.cjs +1 -1
  116. package/components/switch/index.esm.js +445 -348
  117. package/components/switch/index.umd.cjs +1 -1
  118. package/components/tabs/index.esm.js +2278 -3031
  119. package/components/tabs/index.umd.cjs +1 -1
  120. package/components/tags/index.esm.js +311 -319
  121. package/components/tags/index.umd.cjs +1 -1
  122. package/components/text/index.esm.js +215 -223
  123. package/components/text/index.umd.cjs +1 -1
  124. package/components/textarea/index.esm.js +468 -371
  125. package/components/textarea/index.umd.cjs +1 -1
  126. package/components/time-picker/index.esm.js +1271 -1174
  127. package/components/time-picker/index.umd.cjs +1 -1
  128. package/components/transfer/index.esm.js +469 -477
  129. package/components/transfer/index.umd.cjs +1 -1
  130. package/components/tree-grid/index.esm.js +3060 -3065
  131. package/components/tree-grid/index.umd.cjs +1 -1
  132. package/components/tree-view/index.esm.js +2476 -2481
  133. package/components/tree-view/index.umd.cjs +1 -1
  134. package/components/uploader/index.esm.js +374 -382
  135. package/components/uploader/index.umd.cjs +2 -2
  136. package/components/verify-detail/index.esm.js +248 -256
  137. package/components/verify-detail/index.umd.cjs +1 -1
  138. package/components/video/index.esm.js +414 -1093
  139. package/components/video/index.umd.cjs +1 -1
  140. package/components/weather/index.esm.js +498 -506
  141. package/components/weather/index.umd.cjs +5 -5
  142. package/farris.all.esm.js +20216 -21844
  143. package/farris.all.umd.cjs +9 -9
  144. package/index.css +1 -1
  145. package/package.json +1 -1
  146. package/types/common/directive/area-response.d.ts +10 -0
  147. package/types/common/index.d.ts +8 -0
  148. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  149. package/types/common/utils/resolve-field.d.ts +2 -0
  150. package/types/common/utils/use-class.d.ts +7 -0
  151. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  152. package/types/condition/src/types.d.ts +2 -1
  153. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  154. package/types/data-grid/index.d.ts +8 -5
  155. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  156. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  157. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  158. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  159. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  160. package/types/data-view/composition/types.d.ts +7 -9
  161. package/types/designer-canvas/index.d.ts +2 -1
  162. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  163. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  164. package/types/designer-canvas/src/composition/types.d.ts +1 -2
  165. package/types/designer-canvas/src/types.d.ts +2 -1
  166. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  167. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  168. package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
  169. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  170. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  171. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  172. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  173. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  174. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  175. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  176. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  177. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  178. package/types/property-panel/index.d.ts +2 -1
  179. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  180. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  182. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  183. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  184. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  185. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  186. package/types/query-solution/src/solutions.d.ts +108 -509
  187. package/types/response-layout-editor/index.d.ts +3 -1
  188. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  189. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  190. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  191. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  192. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  193. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  194. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  195. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  196. package/types/tree-grid/index.d.ts +3 -3
  197. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  198. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  199. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  200. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  201. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
@@ -1,109 +1,106 @@
1
- var Te = Object.defineProperty;
2
- var Oe = (e, t, n) => t in e ? Te(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var x = (e, t, n) => Oe(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as v, computed as V, createVNode as h, Fragment as K, watch as N, withModifiers as Pe, withDirectives as Ve, vModelText as Ae, defineComponent as R, Teleport as De, createApp as Le, onUnmounted as Ee, inject as q, nextTick as Z, onMounted as ee, mergeProps as $e } from "vue";
5
- import { isPlainObject as se, cloneDeep as fe } from "lodash-es";
6
- import { useIdentify as xe, useHierarchy as Re, useGroupData as Ne, usePagination as Ue, useDataView as qe, useSelection as He, useEdit as Ge, useVisualDataBound as We, useVisualDataCell as _e, useVisualDataRow as ze, useVisualGroupRow as Xe, useVisualSummaryRow as Je, useVisualData as Qe } from "../data-view/index.esm.js";
7
- import { FCheckBox as te } from "../checkbox/index.esm.js";
8
- import Ye from "../list-view/index.esm.js";
9
- import Ze from "../button-edit/index.esm.js";
10
- import { resolveAppearance as Ke, getSchemaByType as ce } from "../dynamic-resolver/index.esm.js";
11
- import { useDesignerComponent as me } from "../designer-canvas/index.esm.js";
12
- import { useResponseLayoutEditorSetting as ye } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
13
- import { BaseControlProperty as et } from "../property-panel/index.esm.js/src/composition/entity/base-property";
14
- import { DgControl as tt } from "../designer-canvas/index.esm.js/src/composition/dg-control";
15
- const ge = {}, he = {};
16
- function ne(e) {
17
- const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), r = Object.keys(t).reduce((s, f) => ((!a || !o.find((c) => c == f)) && (s[f] = t[f].type === "object" && t[f].properties ? ne(t[f]) : fe(t[f].default)), s), {});
18
- return (!a || !o.find((s) => s == "id")) && (r.id = `${n}-${Date.now()}`), r;
1
+ var be = Object.defineProperty;
2
+ var Se = (e, t, n) => t in e ? be(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var V = (e, t, n) => Se(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { ref as S, computed as B, createVNode as b, Fragment as Q, watch as G, withModifiers as we, withDirectives as ke, vModelText as Ie, defineComponent as R, Teleport as Fe, createApp as Me, onUnmounted as Be, inject as x, nextTick as X, onMounted as Y, mergeProps as Le } from "vue";
5
+ import { isPlainObject as le, cloneDeep as se } from "lodash-es";
6
+ import { useIdentify as Te, useHierarchy as Ve, useGroupData as De, usePagination as Oe, useDataView as Pe, useSelection as Ee, useEdit as Ae, useVisualDataBound as $e, useVisualDataCell as je, useVisualDataRow as Ne, useVisualGroupRow as Re, useVisualSummaryRow as Ge, useVisualData as Ue } from "../data-view/index.esm.js";
7
+ import { FCheckBox as Z } from "../checkbox/index.esm.js";
8
+ import xe from "../list-view/index.esm.js";
9
+ import qe from "../button-edit/index.esm.js";
10
+ import { resolveAppearance as We } from "../dynamic-resolver/index.esm.js";
11
+ import { useDesignerComponent as ce, DgControl as J } from "../designer-canvas/index.esm.js";
12
+ const ue = {}, de = {};
13
+ function K(e) {
14
+ const { properties: t, title: n, ignore: a } = e, i = a && Array.isArray(a), l = Object.keys(t).reduce((r, d) => ((!i || !a.find((u) => u == d)) && (r[d] = t[d].type === "object" && t[d].properties ? K(t[d]) : se(t[d].default)), r), {});
15
+ return n && (!i || !a.find((r) => r == "id")) && (l.id = `${n}-${Date.now()}`), l;
19
16
  }
20
- function H(e, t = {}, n) {
21
- const o = ge[e];
22
- if (o) {
23
- let a = ne(o);
24
- const r = he[e];
25
- return a = r ? r({ getSchemaByType: H }, a, t, n) : a, a;
17
+ function ee(e, t = {}, n) {
18
+ const a = ue[e];
19
+ if (a) {
20
+ let i = K(a);
21
+ const l = de[e];
22
+ return i = l ? l({ getSchemaByType: ee }, i, t, n) : i, i;
26
23
  }
27
24
  return null;
28
25
  }
29
- function nt(e, t) {
30
- const n = ne(t);
31
- return Object.keys(e).reduce((o, a) => (o[a] && se(o[a]) && se(e[a]) ? Object.assign(o[a], e[a]) : o[a] = e[a], o), n), n;
26
+ function He(e, t) {
27
+ const n = K(t);
28
+ return Object.keys(e).reduce((a, i) => (a[i] && le(a[i]) && le(e[i]) ? Object.assign(a[i], e[i]) : a[i] = e[i], a), n), n;
32
29
  }
33
- function ot(e, t) {
34
- return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
35
- if (t.has(a)) {
36
- const r = t.get(a);
37
- if (typeof r == "string")
38
- o[r] = e[a];
30
+ function _e(e, t) {
31
+ return Object.keys(e).filter((a) => e[a] != null).reduce((a, i) => {
32
+ if (t.has(i)) {
33
+ const l = t.get(i);
34
+ if (typeof l == "string")
35
+ a[l] = e[i];
39
36
  else {
40
- const s = r(a, e[a], e);
41
- Object.assign(o, s);
37
+ const r = l(i, e[i], e);
38
+ Object.assign(a, r);
42
39
  }
43
40
  } else
44
- o[a] = e[a];
45
- return o;
41
+ a[i] = e[i];
42
+ return a;
46
43
  }, {});
47
44
  }
48
- function at(e, t, n = /* @__PURE__ */ new Map()) {
49
- const o = nt(e, t);
50
- return ot(o, n);
45
+ function ze(e, t, n = /* @__PURE__ */ new Map()) {
46
+ const a = He(e, t);
47
+ return _e(a, n);
51
48
  }
52
- function rt(e = {}) {
53
- function t(l, g, i, d) {
54
- if (typeof i == "number")
55
- return d[l].length === i;
56
- if (typeof i == "object") {
57
- const C = Object.keys(i)[0], u = i[C];
58
- if (C === "not")
59
- return Number(d[l].length) !== Number(u);
60
- if (C === "moreThan")
61
- return Number(d[l].length) >= Number(u);
62
- if (C === "lessThan")
63
- return Number(d[l].length) <= Number(u);
49
+ function Xe(e = {}) {
50
+ function t(c, p, o, s) {
51
+ if (typeof o == "number")
52
+ return s[c].length === o;
53
+ if (typeof o == "object") {
54
+ const m = Object.keys(o)[0], y = o[m];
55
+ if (m === "not")
56
+ return Number(s[c].length) !== Number(y);
57
+ if (m === "moreThan")
58
+ return Number(s[c].length) >= Number(y);
59
+ if (m === "lessThan")
60
+ return Number(s[c].length) <= Number(y);
64
61
  }
65
62
  return !1;
66
63
  }
67
- function n(l, g, i, d) {
68
- return d[l] && d[l].propertyValue && String(d[l].propertyValue.value) === String(i);
64
+ function n(c, p, o, s) {
65
+ return s[c] && s[c].propertyValue && String(s[c].propertyValue.value) === String(o);
69
66
  }
70
- const o = /* @__PURE__ */ new Map([
67
+ const a = /* @__PURE__ */ new Map([
71
68
  ["length", t],
72
69
  ["getProperty", n]
73
70
  ]);
74
- Object.keys(e).reduce((l, g) => (l.set(g, e[g]), l), o);
75
- function a(l, g) {
76
- const i = l;
77
- return typeof g == "number" ? [{ target: i, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: i, operator: "getProperty", param: l, value: !!g }] : typeof g == "object" ? Object.keys(g).map((d) => {
78
- if (d === "length")
79
- return { target: i, operator: "length", param: null, value: g[d] };
80
- const C = d, u = g[d];
81
- return { target: i, operator: "getProperty", param: C, value: u };
71
+ Object.keys(e).reduce((c, p) => (c.set(p, e[p]), c), a);
72
+ function i(c, p) {
73
+ const o = c;
74
+ return typeof p == "number" ? [{ target: o, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: o, operator: "getProperty", param: c, value: !!p }] : typeof p == "object" ? Object.keys(p).map((s) => {
75
+ if (s === "length")
76
+ return { target: o, operator: "length", param: null, value: p[s] };
77
+ const m = s, y = p[s];
78
+ return { target: o, operator: "getProperty", param: m, value: y };
82
79
  }) : [];
83
80
  }
84
- function r(l) {
85
- return Object.keys(l).reduce((i, d) => {
86
- const C = a(d, l[d]);
87
- return i.push(...C), i;
81
+ function l(c) {
82
+ return Object.keys(c).reduce((o, s) => {
83
+ const m = i(s, c[s]);
84
+ return o.push(...m), o;
88
85
  }, []);
89
86
  }
90
- function s(l, g) {
91
- if (o.has(l.operator)) {
92
- const i = o.get(l.operator);
93
- return i && i(l.target, l.param, l.value, g) || !1;
87
+ function r(c, p) {
88
+ if (a.has(c.operator)) {
89
+ const o = a.get(c.operator);
90
+ return o && o(c.target, c.param, c.value, p) || !1;
94
91
  }
95
92
  return !1;
96
93
  }
97
- function f(l, g) {
98
- return r(l).reduce((C, u) => C && s(u, g), !0);
94
+ function d(c, p) {
95
+ return l(c).reduce((m, y) => m && r(y, p), !0);
99
96
  }
100
- function c(l, g) {
101
- const i = Object.keys(l), d = i.includes("allOf"), C = i.includes("anyOf"), u = d || C, y = (u ? l[u ? d ? "allOf" : "anyOf" : "allOf"] : [l]).map((k) => f(k, g));
102
- return d ? !y.includes(!1) : y.includes(!0);
97
+ function u(c, p) {
98
+ const o = Object.keys(c), s = o.includes("allOf"), m = o.includes("anyOf"), y = s || m, v = (y ? c[y ? s ? "allOf" : "anyOf" : "allOf"] : [c]).map((w) => d(w, p));
99
+ return s ? !v.includes(!1) : v.includes(!0);
103
100
  }
104
- return { parseValueSchema: c };
101
+ return { parseValueSchema: u };
105
102
  }
106
- const B = {
103
+ const F = {
107
104
  button: { type: "button", name: "按钮", icon: "Button" },
108
105
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
109
106
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -142,20 +139,20 @@ const B = {
142
139
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
143
140
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
144
141
  fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
145
- }, it = {}, lt = {};
146
- rt();
147
- function z(e, t, n = /* @__PURE__ */ new Map(), o = (s, f, c) => f, a = {}, r = (s) => s) {
148
- return ge[t.title] = t, he[t.title] = o, it[t.title] = a, lt[t.title] = r, (s = {}) => {
149
- const f = at(s, t, n), c = Object.keys(e).reduce((l, g) => (l[g] = e[g].default, l), {});
150
- return Object.assign(c, f);
142
+ }, Je = {}, Qe = {};
143
+ Xe();
144
+ function _(e, t, n = /* @__PURE__ */ new Map(), a = (r, d, u) => d, i = {}, l = (r) => r) {
145
+ return ue[t.title] = t, de[t.title] = a, Je[t.title] = i, Qe[t.title] = l, (r = {}) => {
146
+ const d = ze(r, t, n), u = Object.keys(e).reduce((c, p) => (c[p] = e[p].default, c), {});
147
+ return Object.assign(u, d);
151
148
  };
152
149
  }
153
- function oe(e, t) {
150
+ function te(e, t) {
154
151
  return { customClass: t.class, customStyle: t.style };
155
152
  }
156
- const st = /* @__PURE__ */ new Map([
157
- ["appearance", oe]
158
- ]), ct = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-design.gitee.io/order.schema.json", dt = "order", pt = "A Farris Component", ft = "object", mt = {
153
+ const Ye = /* @__PURE__ */ new Map([
154
+ ["appearance", te]
155
+ ]), Ze = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-design.gitee.io/order.schema.json", et = "order", tt = "A Farris Component", nt = "object", ot = {
159
156
  id: {
160
157
  description: "The unique identifier for a order",
161
158
  type: "string"
@@ -247,22 +244,22 @@ const st = /* @__PURE__ */ new Map([
247
244
  type: "sting",
248
245
  default: ""
249
246
  }
250
- }, yt = [
247
+ }, lt = [
251
248
  "id",
252
249
  "type"
253
- ], gt = {
254
- $schema: ct,
255
- $id: ut,
256
- title: dt,
257
- description: pt,
258
- type: ft,
259
- properties: mt,
260
- required: yt
250
+ ], at = {
251
+ $schema: Ze,
252
+ $id: Ke,
253
+ title: et,
254
+ description: tt,
255
+ type: nt,
256
+ properties: ot,
257
+ required: lt
261
258
  };
262
- function ht(e, t, n) {
259
+ function it(e, t, n) {
263
260
  return t;
264
261
  }
265
- const bt = "order", vt = "A Farris Component", Ct = "object", wt = {
262
+ const rt = "order", st = "A Farris Component", ct = "object", ut = {
266
263
  basic: {
267
264
  description: "Basic Infomation",
268
265
  title: "基本信息",
@@ -344,12 +341,12 @@ const bt = "order", vt = "A Farris Component", Ct = "object", wt = {
344
341
  }
345
342
  }
346
343
  }
347
- }, St = {
348
- title: bt,
349
- description: vt,
350
- type: Ct,
351
- categories: wt
352
- }, ae = {
344
+ }, dt = {
345
+ title: rt,
346
+ description: st,
347
+ type: ct,
348
+ categories: ut
349
+ }, ne = {
353
350
  dataSource: {
354
351
  type: Array,
355
352
  default: [
@@ -368,13 +365,13 @@ const bt = "order", vt = "A Farris Component", Ct = "object", wt = {
368
365
  { id: "3", name: "开票日期", order: "asc" }
369
366
  ]
370
367
  }
371
- }, ue = z(ae, gt, st, ht, St), kt = /* @__PURE__ */ new Map([
372
- ["appearance", oe]
368
+ }, ae = _(ne, at, Ye, it, dt), pt = /* @__PURE__ */ new Map([
369
+ ["appearance", te]
373
370
  ]);
374
- function Ft(e, t, n) {
371
+ function ft(e, t, n) {
375
372
  return t;
376
373
  }
377
- const It = "https://json-schema.org/draft/2020-12/schema", Mt = "https://farris-design.gitee.io/list-view.schema.json", jt = "list-view", Bt = "A Farris Component", Tt = "object", Ot = {
374
+ const mt = "https://json-schema.org/draft/2020-12/schema", yt = "https://farris-design.gitee.io/list-view.schema.json", ht = "list-view", gt = "A Farris Component", vt = "object", Ct = {
378
375
  id: {
379
376
  description: "The unique identifier for list-view",
380
377
  type: "string"
@@ -436,18 +433,18 @@ const It = "https://json-schema.org/draft/2020-12/schema", Mt = "https://farris-
436
433
  type: "boolean",
437
434
  default: !0
438
435
  }
439
- }, Pt = [
436
+ }, bt = [
440
437
  "id",
441
438
  "type"
442
- ], Vt = {
443
- $schema: It,
444
- $id: Mt,
445
- title: jt,
446
- description: Bt,
447
- type: Tt,
448
- properties: Ot,
449
- required: Pt
450
- }, At = "list-view", Dt = "A Farris Component", Lt = "object", Et = {
439
+ ], St = {
440
+ $schema: mt,
441
+ $id: yt,
442
+ title: ht,
443
+ description: gt,
444
+ type: vt,
445
+ properties: Ct,
446
+ required: bt
447
+ }, wt = "list-view", kt = "A Farris Component", It = "object", Ft = {
451
448
  basic: {
452
449
  description: "Basic Infomation",
453
450
  title: "基本信息",
@@ -469,12 +466,12 @@ const It = "https://json-schema.org/draft/2020-12/schema", Mt = "https://farris-
469
466
  }
470
467
  }
471
468
  }
472
- }, $t = {
473
- title: At,
474
- description: Dt,
475
- type: Lt,
476
- categories: Et
477
- }, be = {
469
+ }, Mt = {
470
+ title: wt,
471
+ description: kt,
472
+ type: It,
473
+ categories: Ft
474
+ }, pe = {
478
475
  /** 列集合 */
479
476
  columns: {
480
477
  type: Array,
@@ -516,497 +513,497 @@ const It = "https://json-schema.org/draft/2020-12/schema", Mt = "https://farris-
516
513
  // 搜索启用高亮
517
514
  enableHighlightSearch: { type: Boolean, default: !0 }
518
515
  };
519
- z(be, Vt, kt, Ft, $t);
520
- function xt(e, t) {
521
- function n(r) {
522
- const s = [];
523
- let f = r.nextNode();
524
- for (; f; )
525
- s.push(f), f = r.nextNode();
526
- return s;
527
- }
528
- function o(r, s) {
529
- const f = document.createTreeWalker(r, NodeFilter.SHOW_TEXT);
530
- return n(f).map((i) => ({ textNode: i, text: (i.textContent || "").toLocaleLowerCase() })).map(({ textNode: i, text: d }) => {
531
- const C = [];
532
- let u = 0;
533
- for (; u < d.length; ) {
534
- const m = d.indexOf(s, u);
535
- if (m === -1)
516
+ _(pe, St, pt, ft, Mt);
517
+ function Bt(e, t) {
518
+ function n(l) {
519
+ const r = [];
520
+ let d = l.nextNode();
521
+ for (; d; )
522
+ r.push(d), d = l.nextNode();
523
+ return r;
524
+ }
525
+ function a(l, r) {
526
+ const d = document.createTreeWalker(l, NodeFilter.SHOW_TEXT);
527
+ return n(d).map((o) => ({ textNode: o, text: (o.textContent || "").toLocaleLowerCase() })).map(({ textNode: o, text: s }) => {
528
+ const m = [];
529
+ let y = 0;
530
+ for (; y < s.length; ) {
531
+ const f = s.indexOf(r, y);
532
+ if (f === -1)
536
533
  break;
537
- C.push(m), u = m + s.length;
534
+ m.push(f), y = f + r.length;
538
535
  }
539
- return C.map((m) => {
540
- const p = new Range();
541
- return p.setStart(i, m), p.setEnd(i, m + s.length), p;
536
+ return m.map((f) => {
537
+ const g = new Range();
538
+ return g.setStart(o, f), g.setEnd(o, f + r.length), g;
542
539
  });
543
540
  }).flat();
544
541
  }
545
- function a(r) {
546
- if (!CSS.highlights || (CSS.highlights.clear(), !r || !t))
542
+ function i(l) {
543
+ if (!CSS.highlights || (CSS.highlights.clear(), !l || !t))
547
544
  return;
548
- const s = o(t.value, r.toLocaleLowerCase()), f = new Highlight(...s);
549
- CSS.highlights.set("search-result", f);
545
+ const r = a(t.value, l.toLocaleLowerCase()), d = new Highlight(...r);
546
+ CSS.highlights.set("search-result", d);
550
547
  }
551
- return { search: a };
548
+ return { search: i };
552
549
  }
553
- function de(e, t, n, o, a, r, s, f, c, l) {
554
- const g = v(e.size), i = v(e.textField), d = v(e.titleField), C = v(e.disableField), u = V(() => {
555
- var F, I;
556
- return ((F = e.selection) == null ? void 0 : F.multiSelect) && ((I = e.selection) == null ? void 0 : I.showCheckbox);
550
+ function ie(e, t, n, a, i, l, r, d, u, c) {
551
+ const p = S(e.size), o = S(e.textField), s = S(e.titleField), m = S(e.disableField), y = B(() => {
552
+ var I, O;
553
+ return ((I = e.selection) == null ? void 0 : I.multiSelect) && ((O = e.selection) == null ? void 0 : O.showCheckbox);
557
554
  }), {
558
- onMouseenterItem: m,
559
- onMouseoverItem: p,
560
- onMouseoutItem: y
561
- } = r, {
562
- getKey: S,
563
- listViewItemClass: k,
564
- onCheckItem: j,
565
- onClickItem: w
566
- } = s, b = V(() => ({
567
- margin: g.value === "small" ? "0.25rem 0" : "10px 0"
555
+ onMouseenterItem: f,
556
+ onMouseoverItem: g,
557
+ onMouseoutItem: v
558
+ } = l, {
559
+ getKey: C,
560
+ listViewItemClass: w,
561
+ onCheckItem: M,
562
+ onClickItem: h
563
+ } = r, k = B(() => ({
564
+ margin: p.value === "small" ? "0.25rem 0" : "10px 0"
568
565
  }));
569
- function T(F, I, O) {
570
- return F.checked = f.findIndexInSelectedItems(F) > -1, h("li", {
571
- class: k(F, I),
572
- id: S(F, I),
573
- key: S(F, I),
574
- onClick: (M) => w(M, F, I),
575
- onMouseenter: (M) => m(M, F, I),
576
- onMouseover: (M) => p(M, F, I),
577
- onMouseout: (M) => y(M, F, I)
578
- }, [u.value && h("div", {
566
+ function T(I, O, A) {
567
+ return I.checked = d.findIndexInSelectedItems(I) > -1, b("li", {
568
+ class: w(I, O),
569
+ id: C(I, O),
570
+ key: C(I, O),
571
+ onClick: (L) => h(L, I, O),
572
+ onMouseenter: (L) => f(L, I, O),
573
+ onMouseover: (L) => g(L, I, O),
574
+ onMouseout: (L) => v(L, I, O)
575
+ }, [y.value && b("div", {
579
576
  class: "f-list-select",
580
- onClick: (M) => M.stopPropagation()
581
- }, [h(te, {
582
- id: "list-" + S(F, I),
577
+ onClick: (L) => L.stopPropagation()
578
+ }, [b(Z, {
579
+ id: "list-" + C(I, O),
583
580
  customClass: "listview-checkbox",
584
- disabled: F[C.value],
585
- checked: F.checked,
586
- "onUpdate:checked": (M) => F.checked = M,
587
- onChange: (M) => {
588
- j(F, I, !M.checked);
581
+ disabled: I[m.value],
582
+ checked: I.checked,
583
+ "onUpdate:checked": (L) => I.checked = L,
584
+ onChange: (L) => {
585
+ M(I, O, !L.checked);
589
586
  }
590
- }, null)]), h("div", {
587
+ }, null)]), b("div", {
591
588
  class: "f-list-content"
592
- }, [h("div", {
593
- style: b.value,
594
- title: F.raw[d.value] || F.raw[i.value]
595
- }, [F.raw[i.value]])])]);
589
+ }, [b("div", {
590
+ style: k.value,
591
+ title: I.raw[s.value] || I.raw[o.value]
592
+ }, [I.raw[o.value]])])]);
596
593
  }
597
594
  return {
598
595
  renderItem: T
599
596
  };
600
597
  }
601
- function Rt(e, t, n, o, a, r, s, f, c, l) {
602
- const g = v(e.multiSelect), i = v(e.disableField), {
603
- onMouseenterItem: d,
604
- onMouseoverItem: C,
605
- onMouseoutItem: u
606
- } = r, {
607
- getKey: m,
608
- listViewItemClass: p,
609
- onCheckItem: y,
610
- onClickItem: S
611
- } = s;
612
- function k(w, b, T) {
613
- return t.slots.content ? h(K, null, [t.slots.content && t.slots.content({
614
- item: w.raw,
615
- index: b,
598
+ function Lt(e, t, n, a, i, l, r, d, u, c) {
599
+ const p = S(e.multiSelect), o = S(e.disableField), {
600
+ onMouseenterItem: s,
601
+ onMouseoverItem: m,
602
+ onMouseoutItem: y
603
+ } = l, {
604
+ getKey: f,
605
+ listViewItemClass: g,
606
+ onCheckItem: v,
607
+ onClickItem: C
608
+ } = r;
609
+ function w(h, k, T) {
610
+ return t.slots.content ? b(Q, null, [t.slots.content && t.slots.content({
611
+ item: h.raw,
612
+ index: k,
616
613
  selectedItem: T
617
- })]) : h("div", {
614
+ })]) : b("div", {
618
615
  style: "margin: 10px 0;"
619
- }, [w.raw.name]);
620
- }
621
- function j(w, b, T) {
622
- return h("li", {
623
- class: p(w, b),
624
- id: m(w, b),
625
- key: m(w, b),
626
- onClick: (F) => S(F, w, b),
627
- onMouseenter: (F) => d(F, w, b),
628
- onMouseover: (F) => C(F, w, b),
629
- onMouseout: (F) => u(F, w, b)
630
- }, [g.value && h("div", {
616
+ }, [h.raw.name]);
617
+ }
618
+ function M(h, k, T) {
619
+ return b("li", {
620
+ class: g(h, k),
621
+ id: f(h, k),
622
+ key: f(h, k),
623
+ onClick: (I) => C(I, h, k),
624
+ onMouseenter: (I) => s(I, h, k),
625
+ onMouseover: (I) => m(I, h, k),
626
+ onMouseout: (I) => y(I, h, k)
627
+ }, [p.value && b("div", {
631
628
  class: "f-list-select",
632
- onClick: (F) => F.stopPropagation()
633
- }, [h(te, {
634
- id: "list-" + m(w, b),
629
+ onClick: (I) => I.stopPropagation()
630
+ }, [b(Z, {
631
+ id: "list-" + f(h, k),
635
632
  customClass: "listview-checkbox",
636
- disabled: w[i.value] || !w.checked,
637
- checked: w.checked,
638
- "onUpdate:checked": (F) => w.checked = F,
639
- onChange: (F) => y(w, b, !F.checked)
640
- }, null)]), h("div", {
633
+ disabled: h[o.value] || !h.checked,
634
+ checked: h.checked,
635
+ "onUpdate:checked": (I) => h.checked = I,
636
+ onChange: (I) => v(h, k, !I.checked)
637
+ }, null)]), b("div", {
641
638
  class: "f-list-content"
642
- }, [k(w, b, T)])]);
639
+ }, [w(h, k, T)])]);
643
640
  }
644
641
  return {
645
- renderItem: j
642
+ renderItem: M
646
643
  };
647
644
  }
648
- function Nt(e, t, n, o, a, r, s, f, c, l) {
649
- const g = v(e.multiSelect), i = v(e.disableField), {
650
- onMouseenterItem: d,
651
- onMouseoverItem: C,
652
- onMouseoutItem: u
645
+ function Tt(e, t, n, a, i, l, r, d, u, c) {
646
+ const p = S(e.multiSelect), o = S(e.disableField), {
647
+ onMouseenterItem: s,
648
+ onMouseoverItem: m,
649
+ onMouseoutItem: y
650
+ } = l, {
651
+ getKey: f,
652
+ listViewItemClass: g,
653
+ onCheckItem: v,
654
+ onClickItem: C
653
655
  } = r, {
654
- getKey: m,
655
- listViewItemClass: p,
656
- onCheckItem: y,
657
- onClickItem: S
658
- } = s, {
659
- dragstart: k,
660
- dragenter: j,
661
- dragover: w,
662
- dragend: b
663
- } = o, {
656
+ dragstart: w,
657
+ dragenter: M,
658
+ dragover: h,
659
+ dragend: k
660
+ } = a, {
664
661
  removeItem: T
665
- } = c, F = V(() => ({
666
- margin: g.value ? "10px 0" : "10px 0px 10px 14px"
662
+ } = u, I = B(() => ({
663
+ margin: p.value ? "10px 0" : "10px 0px 10px 14px"
667
664
  }));
668
- function I(P) {
669
- return h("div", {
670
- style: F.value
671
- }, [P.raw.name]);
672
- }
673
- function O() {
674
- return t.slots.itemContent ? t.slots.itemContent : I;
675
- }
676
- const M = O();
677
- function D(P, L, E) {
678
- return h("li", {
679
- class: p(P, L),
680
- id: m(P, L),
681
- key: m(P, L),
682
- onClick: (A) => S(A, P, L),
683
- onMouseenter: (A) => d(A, P, L),
684
- onMouseover: (A) => C(A, P, L),
685
- onMouseout: (A) => u(A, P, L),
665
+ function O(D) {
666
+ return b("div", {
667
+ style: I.value
668
+ }, [D.raw.name]);
669
+ }
670
+ function A() {
671
+ return t.slots.itemContent ? t.slots.itemContent : O;
672
+ }
673
+ const L = A();
674
+ function $(D, E, N) {
675
+ return b("li", {
676
+ class: g(D, E),
677
+ id: f(D, E),
678
+ key: f(D, E),
679
+ onClick: (P) => C(P, D, E),
680
+ onMouseenter: (P) => s(P, D, E),
681
+ onMouseover: (P) => m(P, D, E),
682
+ onMouseout: (P) => y(P, D, E),
686
683
  draggable: "true",
687
- onDragstart: (A) => k(A, P, L),
688
- onDragenter: (A) => j(A, L),
689
- onDragend: (A) => b(A, P),
690
- onDragover: (A) => w(A, L)
691
- }, [g.value && h("div", {
684
+ onDragstart: (P) => w(P, D, E),
685
+ onDragenter: (P) => M(P, E),
686
+ onDragend: (P) => k(P, D),
687
+ onDragover: (P) => h(P, E)
688
+ }, [p.value && b("div", {
692
689
  class: "f-list-select",
693
- onClick: (A) => A.stopPropagation()
694
- }, [h(te, {
695
- id: "list-" + m(P, L),
690
+ onClick: (P) => P.stopPropagation()
691
+ }, [b(Z, {
692
+ id: "list-" + f(D, E),
696
693
  customClass: "listview-checkbox",
697
- disabled: P[i.value] || !P.checked,
698
- checked: P.checked,
699
- "onUpdate:checked": (A) => P.checked = A,
700
- onChange: (A) => y(P, L, !A.checked)
701
- }, null)]), h("div", {
694
+ disabled: D[o.value] || !D.checked,
695
+ checked: D.checked,
696
+ "onUpdate:checked": (P) => D.checked = P,
697
+ onChange: (P) => v(D, E, !P.checked)
698
+ }, null)]), b("div", {
702
699
  class: "f-list-content"
703
- }, [M(P)]), h("div", {
700
+ }, [L(D)]), b("div", {
704
701
  class: "f-list-remove",
705
- onClick: (A) => T(L)
706
- }, [h("div", {
702
+ onClick: (P) => T(E)
703
+ }, [b("div", {
707
704
  class: "f-list-remove-icon"
708
- }, [h("i", {
705
+ }, [b("i", {
709
706
  class: "f-icon f-icon-remove_face"
710
- }, null)])]), h("div", {
707
+ }, null)])]), b("div", {
711
708
  class: "f-list-handle"
712
- }, [h("div", null, [h("i", {
709
+ }, [b("div", null, [b("i", {
713
710
  class: "f-icon f-icon-drag-vertical"
714
711
  }, null)])])]);
715
712
  }
716
713
  return {
717
- renderItem: D
714
+ renderItem: $
718
715
  };
719
716
  }
720
- function Ut(e, t, n, o, a, r, s, f, c, l) {
721
- var m;
722
- const g = v(((m = e.group) == null ? void 0 : m.groupFields) || []), {
723
- collpaseGroupIconClass: i
724
- } = a, {
725
- toggleGroupRow: d
726
- } = l;
727
- function C(p, y) {
728
- y.collapse = !y.collapse, n.value = d(y.collapse ? "collapse" : "expand", y, n.value);
729
- }
730
- function u(p, y, S) {
731
- return p.layer > -1 && h("div", {
717
+ function Vt(e, t, n, a, i, l, r, d, u, c) {
718
+ var f;
719
+ const p = S(((f = e.group) == null ? void 0 : f.groupFields) || []), {
720
+ collpaseGroupIconClass: o
721
+ } = i, {
722
+ toggleGroupRow: s
723
+ } = c;
724
+ function m(g, v) {
725
+ v.collapse = !v.collapse, n.value = s(v.collapse ? "collapse" : "expand", v, n.value);
726
+ }
727
+ function y(g, v, C) {
728
+ return g.layer > -1 && b("div", {
732
729
  class: "f-navlookup-recentHeader",
733
- onClick: (k) => C(k, p)
734
- }, [h("div", {
730
+ onClick: (w) => m(w, g)
731
+ }, [b("div", {
735
732
  class: "fv-grid-group-row-icon"
736
- }, [h("span", {
737
- class: i(p)
738
- }, null)]), h("div", {
733
+ }, [b("span", {
734
+ class: o(g)
735
+ }, null)]), b("div", {
739
736
  class: "f-navlookup-recommandLabel"
740
- }, [p.raw[g.value[p.layer]]])]);
737
+ }, [g.raw[p.value[g.layer]]])]);
741
738
  }
742
739
  return {
743
- renderItem: u
740
+ renderItem: y
744
741
  };
745
742
  }
746
- function qt() {
747
- const e = v(-1), t = v(""), n = v(-1), o = v(!1);
748
- function a(l, g, i) {
749
- n.value = i;
743
+ function Dt() {
744
+ const e = S(-1), t = S(""), n = S(-1), a = S(!1);
745
+ function i(c, p, o) {
746
+ n.value = o;
750
747
  }
751
- function r(l, g, i) {
752
- o.value || (n.value = i);
748
+ function l(c, p, o) {
749
+ a.value || (n.value = o);
753
750
  }
754
- function s(l, g, i) {
751
+ function r(c, p, o) {
755
752
  n.value = -1;
756
753
  }
757
- function f() {
758
- o.value = !0;
754
+ function d() {
755
+ a.value = !0;
759
756
  }
760
- function c() {
761
- o.value = !1;
757
+ function u() {
758
+ a.value = !1;
762
759
  }
763
760
  return {
764
761
  activeIndex: e,
765
762
  focusedItemId: t,
766
763
  hoverIndex: n,
767
- onMouseenterItem: a,
768
- onMouseoverItem: r,
769
- onMouseoutItem: s,
770
- resumeHover: c,
771
- suspendHover: f
764
+ onMouseenterItem: i,
765
+ onMouseoverItem: l,
766
+ onMouseoutItem: r,
767
+ resumeHover: u,
768
+ suspendHover: d
772
769
  };
773
770
  }
774
- function Ht(e, t, n, o) {
775
- const a = v(e.idField), { dataView: r } = n, s = v(-1), f = v(!1), { activeIndex: c, focusedItemId: l, hoverIndex: g, resumeHover: i, suspendHover: d } = o;
776
- function C(y, S, k) {
777
- y.stopPropagation(), d(), S && setTimeout(() => {
778
- s.value = k, f.value = !0, S.moving = !0;
771
+ function Ot(e, t, n, a) {
772
+ const i = S(e.idField), { dataView: l } = n, r = S(-1), d = S(!1), { activeIndex: u, focusedItemId: c, hoverIndex: p, resumeHover: o, suspendHover: s } = a;
773
+ function m(v, C, w) {
774
+ v.stopPropagation(), s(), C && setTimeout(() => {
775
+ r.value = w, d.value = !0, C.moving = !0;
779
776
  });
780
777
  }
781
- function u(y, S) {
782
- if (y.preventDefault(), s.value !== S) {
783
- const k = r.value[s.value], j = r.value;
784
- j.splice(s.value, 1), j.splice(S, 0, k), s.value = S;
778
+ function y(v, C) {
779
+ if (v.preventDefault(), r.value !== C) {
780
+ const w = l.value[r.value], M = l.value;
781
+ M.splice(r.value, 1), M.splice(C, 0, w), r.value = C;
785
782
  }
786
783
  }
787
- function m(y, S) {
788
- y.preventDefault(), y.dataTransfer && (y.dataTransfer.dropEffect = "move");
784
+ function f(v, C) {
785
+ v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "move");
789
786
  }
790
- function p(y, S) {
791
- S && (S.moving = !1), r.value.forEach((k, j) => {
792
- k.__fv_index__ = j;
793
- }), f.value = !1, i(), g.value = S.raw.__fv_index__, c.value = S.raw.__fv_index__, l.value = S.raw[a.value], t.emit("change", r.value), t.emit("activeChange", S);
787
+ function g(v, C) {
788
+ C && (C.moving = !1), l.value.forEach((w, M) => {
789
+ w.__fv_index__ = M;
790
+ }), d.value = !1, o(), p.value = C.raw.__fv_index__, u.value = C.raw.__fv_index__, c.value = C.raw[i.value], t.emit("change", l.value), t.emit("activeChange", C);
794
791
  }
795
792
  return {
796
- dragstart: C,
797
- dragenter: u,
798
- dragover: m,
799
- dragend: p,
800
- isDragging: f
793
+ dragstart: m,
794
+ dragenter: y,
795
+ dragover: f,
796
+ dragend: g,
797
+ isDragging: d
801
798
  };
802
799
  }
803
- function Gt(e, t, n) {
804
- const { dataView: o } = n;
805
- function a(r) {
806
- if (r > -1 && r < o.value.length) {
807
- const s = o.value.splice(r, 1);
808
- t.emit("removeItem", s[0]);
800
+ function Pt(e, t, n) {
801
+ const { dataView: a } = n;
802
+ function i(l) {
803
+ if (l > -1 && l < a.value.length) {
804
+ const r = a.value.splice(l, 1);
805
+ t.emit("removeItem", r[0]);
809
806
  }
810
807
  }
811
- return { removeItem: a };
808
+ return { removeItem: i };
812
809
  }
813
- function Wt(e, t, n, o, a, r) {
814
- const s = v(e.idField), f = v(e.disableField), c = v(e.draggable), l = v(e.itemClass), g = v(e.selection.multiSelect ?? !1), i = v(e.selection.multiSelectMode), { isDragging: d } = o, { activeIndex: C, focusedItemId: u, hoverIndex: m } = a, { clearSelection: p, getSelectedItems: y, toggleSelectItem: S } = r, k = v(y());
815
- function j(M, D) {
816
- const P = {
810
+ function Et(e, t, n, a, i, l) {
811
+ const r = S(e.idField), d = S(e.disableField), u = S(e.draggable), c = S(e.itemClass), p = S(e.selection.multiSelect ?? !1), o = S(e.selection.multiSelectMode), { isDragging: s } = a, { activeIndex: m, focusedItemId: y, hoverIndex: f } = i, { clearSelection: g, getSelectedItems: v, toggleSelectItem: C } = l, w = S(v());
812
+ function M(L, $) {
813
+ const D = {
817
814
  "f-listview-item": !0,
818
815
  "f-list-view-group-item": !0,
819
- "f-list-view-draggable-item": c.value,
820
- "f-un-click": !M.checked,
821
- "f-un-select": !!M.raw[f.value],
816
+ "f-list-view-draggable-item": u.value,
817
+ "f-un-click": !L.checked,
818
+ "f-un-select": !!L.raw[d.value],
822
819
  // 'f-listview-active': item.raw.__fv_index__ === activeIndex.value,
823
820
  // 多选
824
- "f-listview-active": k.value.findIndex(
825
- (E) => E[s.value] === M.raw[s.value]
821
+ "f-listview-active": w.value.findIndex(
822
+ (N) => N[r.value] === L.raw[r.value]
826
823
  ) > -1,
827
- "f-listview-item-active": k.value.findIndex(
828
- (E) => E[s.value] === M.raw[s.value]
824
+ "f-listview-item-active": w.value.findIndex(
825
+ (N) => N[r.value] === L.raw[r.value]
829
826
  ) > -1,
830
- "f-listview-hover": !d.value && D === m.value,
831
- "f-listview-item-hover": !d.value && D === m.value,
832
- moving: !!M.moving
827
+ "f-listview-hover": !s.value && $ === f.value,
828
+ "f-listview-item-hover": !s.value && $ === f.value,
829
+ moving: !!L.moving
833
830
  };
834
- return l.value.split(" ").reduce((E, A) => (E[A] = !0, E), P), P;
831
+ return c.value.split(" ").reduce((N, P) => (N[P] = !0, N), D), D;
835
832
  }
836
- function w(M, D) {
837
- return M.raw[s.value] || "";
833
+ function h(L, $) {
834
+ return L.raw[r.value] || "";
838
835
  }
839
- const b = V(() => !g.value);
840
- function T(M, D, P) {
841
- M.checked = P, !M.raw[f.value] && (b.value && (u.value = M.raw[s.value]), S(M));
836
+ const k = B(() => !p.value);
837
+ function T(L, $, D) {
838
+ L.checked = D, !L.raw[d.value] && (k.value && (y.value = L.raw[r.value]), C(L));
842
839
  }
843
- const F = V(() => g.value && i.value === "OnCheckClearByClick"), I = V(() => !g.value || g.value && (i.value === "OnCheckAndClick" || i.value === "OnClick"));
844
- function O(M, D, P) {
845
- if (D.raw[f.value]) {
846
- M.preventDefault(), M.stopPropagation();
840
+ const I = B(() => p.value && o.value === "OnCheckClearByClick"), O = B(() => !p.value || p.value && (o.value === "OnCheckAndClick" || o.value === "OnClick"));
841
+ function A(L, $, D) {
842
+ if ($.raw[d.value]) {
843
+ L.preventDefault(), L.stopPropagation();
847
844
  return;
848
845
  }
849
- u.value = D.raw[s.value], C.value = P, F.value && p(n.value), I.value && (S(D), k.value = y()), t.emit("clickItem", { data: k.value, index: P }), t.emit("activeChange", k.value);
846
+ y.value = $.raw[r.value], m.value = D, I.value && g(n.value), O.value && (C($), w.value = v()), t.emit("clickItem", { data: w.value, index: D }), t.emit("activeChange", w.value);
850
847
  }
851
848
  return {
852
- getKey: w,
853
- listViewItemClass: j,
849
+ getKey: h,
850
+ listViewItemClass: M,
854
851
  onCheckItem: T,
855
- onClickItem: O
852
+ onClickItem: A
856
853
  };
857
854
  }
858
- function _t(e, t, n, o, a, r, s) {
859
- const f = v(e.view), c = v(e.view === "CardView"), l = v({}), g = v("暂无数据"), i = qt(), d = Ht(e, t, o, i), C = Gt(e, t, o), u = Wt(e, t, n, d, i, r), m = V(() => ({
855
+ function At(e, t, n, a, i, l, r) {
856
+ const d = S(e.view), u = S(e.view === "CardView"), c = S({}), p = S("暂无数据"), o = Dt(), s = Ot(e, t, a, o), m = Pt(e, t, a), y = Et(e, t, n, s, o, l), f = B(() => ({
860
857
  "f-list-view-group": !0,
861
- "d-flex": c.value,
862
- "flex-wrap": c.value
863
- })), p = V(() => !!n.value && n.value.length > 0), y = V(() => n.value.length === 0);
864
- V(() => y.value && !t.slots.empty);
865
- function S() {
866
- return f.value === "SingleView" ? de : f.value === "DraggableView" ? Nt : (f.value === "ContentView" || f.value === "CardView") && t.slots.content ? Rt : de;
867
- }
868
- const k = S(), {
869
- renderItem: j
870
- } = k(e, t, n, d, a, i, u, r, C, s), {
871
- renderItem: w
872
- } = Ut(e, t, n, d, a, i, u, r, C, s), b = [j, w];
858
+ "d-flex": u.value,
859
+ "flex-wrap": u.value
860
+ })), g = B(() => !!n.value && n.value.length > 0), v = B(() => n.value.length === 0);
861
+ B(() => v.value && !t.slots.empty);
862
+ function C() {
863
+ return d.value === "SingleView" ? ie : d.value === "DraggableView" ? Tt : (d.value === "ContentView" || d.value === "CardView") && t.slots.content ? Lt : ie;
864
+ }
865
+ const w = C(), {
866
+ renderItem: M
867
+ } = w(e, t, n, s, i, o, y, l, m, r), {
868
+ renderItem: h
869
+ } = Vt(e, t, n, s, i, o, y, l, m, r), k = [M, h];
873
870
  function T() {
874
- return n.value.filter((O) => O.visible !== !1).map((O, M) => b[O.type](O, M, l));
871
+ return n.value.filter((A) => A.visible !== !1).map((A, L) => k[A.type](A, L, c));
875
872
  }
876
- function F() {
877
- return h("div", {
873
+ function I() {
874
+ return b("div", {
878
875
  class: "f-list-view-emptydata"
879
- }, [h("p", {
876
+ }, [b("p", {
880
877
  class: "f-empty-title"
881
- }, [t.slots.empty ? t.slots.empty() : g.value])]);
878
+ }, [t.slots.empty ? t.slots.empty() : p.value])]);
882
879
  }
883
- function I() {
884
- return h("ul", {
885
- class: m.value,
880
+ function O() {
881
+ return b("ul", {
882
+ class: f.value,
886
883
  style: "list-style: none;"
887
- }, [p.value && T(), y.value && F()]);
884
+ }, [g.value && T(), v.value && I()]);
888
885
  }
889
886
  return {
890
- renderListArea: I
887
+ renderListArea: O
891
888
  };
892
889
  }
893
- function zt(e, t, n) {
894
- function o() {
895
- return t.slots.header && h("div", {
890
+ function $t(e, t, n) {
891
+ function a() {
892
+ return t.slots.header && b("div", {
896
893
  class: "f-list-view-header"
897
894
  }, [t.slots.header()]);
898
895
  }
899
896
  return {
900
- renderHeader: o
897
+ renderHeader: a
901
898
  };
902
899
  }
903
- function pe(e, t, n) {
904
- const o = v(e.headerClass), a = v(e.placeholder), r = v(""), s = V(() => !r.value), f = V(() => !!r.value);
905
- function c(d) {
906
- r.value = "";
900
+ function re(e, t, n) {
901
+ const a = S(e.headerClass), i = S(e.placeholder), l = S(""), r = B(() => !l.value), d = B(() => !!l.value);
902
+ function u(s) {
903
+ l.value = "";
907
904
  }
908
- N(r, (d) => {
909
- e.enableHighlightSearch && n.search(d), t.emit("afterSearch", d);
905
+ G(l, (s) => {
906
+ e.enableHighlightSearch && n.search(s), t.emit("afterSearch", s);
910
907
  });
911
- const l = V(() => {
912
- const d = {
908
+ const c = B(() => {
909
+ const s = {
913
910
  "form-group": !0,
914
911
  "farris-form-group": !0
915
912
  };
916
- return o.value && o.value.split(" ").reduce((u, m) => (u[m] = !0, u), d), d;
913
+ return a.value && a.value.split(" ").reduce((y, f) => (y[f] = !0, y), s), s;
917
914
  });
918
- function g(d) {
915
+ function p(s) {
919
916
  }
920
- function i() {
921
- return h("div", {
917
+ function o() {
918
+ return b("div", {
922
919
  class: "f-list-view-header",
923
- onClick: Pe(() => g, ["prevent", "stop"])
924
- }, [h("div", {
925
- class: l.value
926
- }, [h("div", {
920
+ onClick: we(() => p, ["prevent", "stop"])
921
+ }, [b("div", {
922
+ class: c.value
923
+ }, [b("div", {
927
924
  class: "farris-input-wrap"
928
- }, [h("div", {
925
+ }, [b("div", {
929
926
  class: "f-cmp-inputgroup"
930
- }, [h("div", {
927
+ }, [b("div", {
931
928
  class: "input-group f-state-editable"
932
- }, [Ve(h("input", {
929
+ }, [ke(b("input", {
933
930
  class: "form-control f-utils-fill text-left",
934
- "onUpdate:modelValue": (d) => r.value = d,
931
+ "onUpdate:modelValue": (s) => l.value = s,
935
932
  name: "input-group-value",
936
933
  type: "text",
937
- placeholder: a.value,
934
+ placeholder: i.value,
938
935
  autocomplete: "off"
939
- }, null), [[Ae, r.value]]), h("div", {
936
+ }, null), [[Ie, l.value]]), b("div", {
940
937
  class: "input-group-append"
941
- }, [f.value && h("span", {
938
+ }, [d.value && b("span", {
942
939
  class: "input-group-text input-group-clear",
943
- onClick: (d) => c()
944
- }, [h("i", {
940
+ onClick: (s) => u()
941
+ }, [b("i", {
945
942
  class: "f-icon f-icon-close-circle"
946
- }, null)]), s.value && h("span", {
943
+ }, null)]), r.value && b("span", {
947
944
  class: "input-group-text"
948
- }, [h("span", {
945
+ }, [b("span", {
949
946
  class: "f-icon f-icon-search"
950
947
  }, null)])])])])])])]);
951
948
  }
952
949
  return {
953
- renderHeader: i
950
+ renderHeader: o
954
951
  };
955
952
  }
956
- const ve = /* @__PURE__ */ R({
953
+ const fe = /* @__PURE__ */ R({
957
954
  name: "FListView",
958
- props: be,
955
+ props: pe,
959
956
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
960
957
  setup(e, t) {
961
- const n = v(), o = v(!0), a = v(!1), r = v([]), s = 0, f = v(e.columns), c = xe(e), l = Re(e), g = Ne(e, c), i = Ue(e), d = qe(e, /* @__PURE__ */ new Map(), l, c, i), C = He(e, d, c, r, t), u = xt(e, n), m = V(() => d.dataView.value.length), p = Ge(e, t, c), y = We(), S = _e(e, {}, y), k = ze(e, p, l, c, y, S), j = Xe(e, c, S, k), w = Je(e, c, S, k), b = Qe(e, f, d, m, s, k, j, w), {
958
+ const n = S(), a = S(!0), i = S(!1), l = S([]), r = 0, d = S(e.columns), u = Te(e), c = Ve(e), p = De(e, u), o = Oe(e), s = Pe(e, /* @__PURE__ */ new Map(), c, u, o), m = Ee(e, s, u, l, t), y = Bt(e, n), f = B(() => s.dataView.value.length), g = Ae(e, t, u), v = $e(), C = je(e, {}, v), w = Ne(e, g, c, u, v, C), M = Re(e, u, C, w), h = Ge(e, u, C, w), k = Ue(e, d, s, f, r, w, M, h), {
962
959
  getVisualData: T
963
- } = b;
964
- r.value = T(0, m.value + s - 1);
965
- const F = V(() => {
966
- const $ = {
960
+ } = k;
961
+ l.value = T(0, f.value + r - 1);
962
+ const I = B(() => {
963
+ const j = {
967
964
  "f-list-view": !0,
968
965
  "f-list-view-multiple": e.multiSelect
969
966
  };
970
- return e.size !== "default" && ($[`${e.size}-item`] = !0), $;
971
- }), I = V(() => !!t.slots.footer || o.value);
972
- function O() {
973
- return e.header === "SearchBar" ? pe : e.header === "ContentHeader" ? zt : pe;
967
+ return e.size !== "default" && (j[`${e.size}-item`] = !0), j;
968
+ }), O = B(() => !!t.slots.footer || a.value);
969
+ function A() {
970
+ return e.header === "SearchBar" ? re : e.header === "ContentHeader" ? $t : re;
974
971
  }
975
- const M = O(), {
976
- renderHeader: D
977
- } = M(e, t, u), {
978
- renderListArea: P
979
- } = _t(e, t, r, d, g, C, b);
980
- function L($) {
981
- u.search($);
972
+ const L = A(), {
973
+ renderHeader: $
974
+ } = L(e, t, y), {
975
+ renderListArea: D
976
+ } = At(e, t, l, s, p, m, k);
977
+ function E(j) {
978
+ y.search(j);
982
979
  }
983
- function E($) {
984
- $ && (d.load($), r.value = T(0, m.value + s - 1));
980
+ function N(j) {
981
+ j && (s.load(j), l.value = T(0, f.value + r - 1));
985
982
  }
986
983
  t.expose({
987
- search: L,
988
- updateDataSource: E
984
+ search: E,
985
+ updateDataSource: N
989
986
  });
990
- function A($) {
991
- e.multiSelect && ($.preventDefault(), $.stopPropagation());
987
+ function P(j) {
988
+ e.multiSelect && (j.preventDefault(), j.stopPropagation());
992
989
  }
993
- return () => h("div", {
994
- class: F.value,
995
- onClick: A
996
- }, [D(), h("div", {
990
+ return () => b("div", {
991
+ class: I.value,
992
+ onClick: P
993
+ }, [$(), b("div", {
997
994
  ref: n,
998
995
  class: "f-list-view-content",
999
996
  onMouseover: () => {
1000
- a.value = !0;
997
+ i.value = !0;
1001
998
  },
1002
999
  onMouseleave: () => {
1003
- a.value = !1;
1000
+ i.value = !1;
1004
1001
  }
1005
- }, [P()]), I.value && h("div", {
1002
+ }, [D()]), O.value && b("div", {
1006
1003
  class: "f-list-view-footer"
1007
1004
  }, [t.slots.footer && t.slots.footer()])]);
1008
1005
  }
1009
- }), Xt = {
1006
+ }), jt = {
1010
1007
  /**
1011
1008
  * 组件标识
1012
1009
  */
@@ -1032,58 +1029,58 @@ const ve = /* @__PURE__ */ R({
1032
1029
  */
1033
1030
  customClass: { type: Object, default: {} }
1034
1031
  };
1035
- function Jt(e, t) {
1036
- function n(o) {
1037
- o.stopPropagation(), e.disabled || t.emit("click", o);
1032
+ function Nt(e, t) {
1033
+ function n(a) {
1034
+ a.stopPropagation(), e.disabled || t.emit("click", a);
1038
1035
  }
1039
1036
  return {
1040
1037
  onClickButton: n
1041
1038
  };
1042
1039
  }
1043
- function Qt(e) {
1044
- const t = V(() => {
1045
- const o = {
1040
+ function Rt(e) {
1041
+ const t = B(() => {
1042
+ const a = {
1046
1043
  "f-icon": !0
1047
1044
  };
1048
1045
  if (e.icon) {
1049
- const a = e.icon.trim().split(" ");
1050
- a && a.length && a.reduce((r, s) => (r[s] = !0, r), o);
1046
+ const i = e.icon.trim().split(" ");
1047
+ i && i.length && i.reduce((l, r) => (l[r] = !0, l), a);
1051
1048
  }
1052
- return o;
1053
- }), n = V(() => !!(e.icon && e.icon.trim()));
1049
+ return a;
1050
+ }), n = B(() => !!(e.icon && e.icon.trim()));
1054
1051
  return { iconClass: t, shouldShowIcon: n };
1055
1052
  }
1056
- const Ce = /* @__PURE__ */ R({
1053
+ const me = /* @__PURE__ */ R({
1057
1054
  name: "FButton",
1058
- props: Xt,
1055
+ props: jt,
1059
1056
  emits: ["click"],
1060
1057
  setup(e, t) {
1061
1058
  const {
1062
1059
  onClickButton: n
1063
- } = Jt(e, t), {
1064
- iconClass: o,
1065
- shouldShowIcon: a
1066
- } = Qt(e), r = V(() => {
1067
- const s = {
1060
+ } = Nt(e, t), {
1061
+ iconClass: a,
1062
+ shouldShowIcon: i
1063
+ } = Rt(e), l = B(() => {
1064
+ const r = {
1068
1065
  btn: !0,
1069
1066
  "btn-lg": e.size === "large",
1070
1067
  "btn-md": e.size !== "large" && e.size !== "small",
1071
1068
  "btn-sm": e.size === "small",
1072
- "btn-icontext": a.value
1069
+ "btn-icontext": i.value
1073
1070
  };
1074
- return s[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((f, c) => (f[c] = e.customClass[c], f), s), s;
1071
+ return r[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((d, u) => (d[u] = e.customClass[u], d), r), r;
1075
1072
  });
1076
- return () => h("button", {
1077
- class: r.value,
1073
+ return () => b("button", {
1074
+ class: l.value,
1078
1075
  disabled: e.disabled,
1079
- onClick: (s) => n(s)
1080
- }, [a.value && h("i", {
1081
- class: o.value
1076
+ onClick: (r) => n(r)
1077
+ }, [i.value && b("i", {
1078
+ class: a.value
1082
1079
  }, null), t.slots.default && t.slots.default()]);
1083
1080
  }
1084
- }), Yt = /* @__PURE__ */ new Map([
1085
- ["appearance", oe]
1086
- ]), Zt = "https://json-schema.org/draft/2020-12/schema", Kt = "https://farris-design.gitee.io/combo-list.schema.json", en = "combo-list", tn = "A Farris Input Component", nn = "object", on = {
1081
+ }), Gt = /* @__PURE__ */ new Map([
1082
+ ["appearance", te]
1083
+ ]), Ut = "https://json-schema.org/draft/2020-12/schema", xt = "https://farris-design.gitee.io/combo-list.schema.json", qt = "combo-list", Wt = "A Farris Input Component", Ht = "object", _t = {
1087
1084
  id: {
1088
1085
  description: "The unique identifier for a combo list",
1089
1086
  type: "string"
@@ -1199,27 +1196,27 @@ const Ce = /* @__PURE__ */ R({
1199
1196
  type: "sting",
1200
1197
  default: ""
1201
1198
  }
1202
- }, an = [
1199
+ }, zt = [
1203
1200
  "id",
1204
1201
  "type"
1205
- ], rn = [
1202
+ ], Xt = [
1206
1203
  "id",
1207
1204
  "appearance",
1208
1205
  "binding"
1209
- ], ln = {
1210
- $schema: Zt,
1211
- $id: Kt,
1212
- title: en,
1213
- description: tn,
1214
- type: nn,
1215
- properties: on,
1216
- required: an,
1217
- ignore: rn
1206
+ ], Jt = {
1207
+ $schema: Ut,
1208
+ $id: xt,
1209
+ title: qt,
1210
+ description: Wt,
1211
+ type: Ht,
1212
+ properties: _t,
1213
+ required: zt,
1214
+ ignore: Xt
1218
1215
  };
1219
- function sn(e, t, n) {
1216
+ function Qt(e, t, n) {
1220
1217
  return t;
1221
1218
  }
1222
- const re = {
1219
+ const oe = {
1223
1220
  /**
1224
1221
  * 组件标识
1225
1222
  */
@@ -1385,7 +1382,7 @@ const re = {
1385
1382
  },
1386
1383
  // 搜索启用高亮
1387
1384
  enableHighlightSearch: { type: Boolean, default: !0 }
1388
- }, we = z(re, ln, Yt, sn), cn = {
1385
+ }, ye = _(oe, Jt, Gt, Qt), Yt = {
1389
1386
  dataSource: { type: Array, default: [] },
1390
1387
  enableSearch: { type: Boolean, default: !1 },
1391
1388
  idField: { type: String, default: "id" },
@@ -1406,196 +1403,196 @@ const re = {
1406
1403
  },
1407
1404
  // 搜索启用高亮
1408
1405
  enableHighlightSearch: { type: Boolean, default: !0 }
1409
- }, un = /* @__PURE__ */ R({
1406
+ }, Zt = /* @__PURE__ */ R({
1410
1407
  name: "FComboListContainer",
1411
- props: cn,
1408
+ props: Yt,
1412
1409
  emits: ["selectionChange"],
1413
1410
  setup(e, t) {
1414
- const n = v(), o = v(e.dataSource), a = v([]), r = v(e.separator), s = v(e.width), f = v(e.maxHeight), c = v(String(e.selectedValues).split(r.value)), l = V(() => e.multiSelect), g = V(() => ({
1411
+ const n = S(), a = S(e.dataSource), i = S([]), l = S(e.separator), r = S(e.width), d = S(e.maxHeight), u = S(String(e.selectedValues).split(l.value)), c = B(() => e.multiSelect), p = B(() => ({
1415
1412
  enableSelectRow: !0,
1416
1413
  multiSelect: e.multiSelect,
1417
1414
  multiSelectMode: "OnCheckAndClick",
1418
- showCheckbox: l.value,
1415
+ showCheckbox: c.value,
1419
1416
  showSelectAll: !1,
1420
1417
  showSelection: !0
1421
1418
  }));
1422
- N(e.dataSource, () => {
1423
- o.value = e.dataSource;
1419
+ G(e.dataSource, () => {
1420
+ a.value = e.dataSource;
1424
1421
  });
1425
- const i = V(() => e.enableSearch ? "SearchBar" : "ContentHeader"), d = V(() => {
1426
- const m = {};
1427
- return s.value !== void 0 && (m.width = `${s.value}px`), f.value !== void 0 && f.value > 0 && (m.maxHeight = `${f.value}px`), m;
1422
+ const o = B(() => e.enableSearch ? "SearchBar" : "ContentHeader"), s = B(() => {
1423
+ const f = {};
1424
+ return r.value !== void 0 && (f.width = `${r.value}px`), d.value !== void 0 && d.value > 0 && (f.maxHeight = `${d.value}px`), f;
1428
1425
  });
1429
- function C(m) {
1430
- a.value = m.map((p) => Object.assign({}, p)), c.value = m.map((p) => p[e.idField]), t.emit("selectionChange", a.value);
1426
+ function m(f) {
1427
+ i.value = f.map((g) => Object.assign({}, g)), u.value = f.map((g) => g[e.idField]), t.emit("selectionChange", i.value);
1431
1428
  }
1432
- function u(m) {
1429
+ function y(f) {
1433
1430
  if (e.enableHighlightSearch)
1434
1431
  return;
1435
- let p = [];
1436
- typeof e.searchOption == "function" ? p = o.value.filter((y) => e.searchOption(m, y)) : p = o.value.filter((y) => y[e.valueField].indexOf(m) > -1 || y[e.textField].indexOf(m) > -1), n.value.updateDataSource(p);
1432
+ let g = [];
1433
+ typeof e.searchOption == "function" ? g = a.value.filter((v) => e.searchOption(f, v)) : g = a.value.filter((v) => v[e.valueField].indexOf(f) > -1 || v[e.textField].indexOf(f) > -1), n.value.updateDataSource(g);
1437
1434
  }
1438
- return N([() => e.selectedValues], ([m]) => {
1439
- c.value = m.split(r.value);
1440
- }), () => h("div", {
1435
+ return G([() => e.selectedValues], ([f]) => {
1436
+ u.value = f.split(l.value);
1437
+ }), () => b("div", {
1441
1438
  class: "f-combo-list-container pl-1",
1442
- style: d.value
1443
- }, [h(Ye, {
1439
+ style: s.value
1440
+ }, [b(xe, {
1444
1441
  ref: n,
1445
1442
  size: "small",
1446
1443
  itemClass: "f-combo-list-item",
1447
- header: i.value,
1444
+ header: o.value,
1448
1445
  headerClass: "f-combo-list-search-box",
1449
- data: o.value,
1446
+ data: a.value,
1450
1447
  idField: e.idField,
1451
1448
  textField: e.textField,
1452
1449
  titleField: e.titleField,
1453
1450
  multiSelect: e.multiSelect,
1454
- selection: g.value,
1451
+ selection: p.value,
1455
1452
  enableHighlightSearch: e.enableHighlightSearch,
1456
- selectionValues: c.value,
1457
- onSelectionChange: C,
1458
- onAfterSearch: u
1453
+ selectionValues: u.value,
1454
+ onSelectionChange: m,
1455
+ onAfterSearch: y
1459
1456
  }, null)]);
1460
1457
  }
1461
1458
  });
1462
- function dn(e) {
1463
- const t = v(""), n = v(e.modelValue), o = v(e.data || []), a = v(e.editable);
1464
- function r(i) {
1465
- const d = String(i).split(e.separator), C = d.map((p) => [p, !0]), u = new Map(C);
1466
- return o.value.filter((p) => u.has(String(p[e.valueField]))).sort((p, y) => {
1467
- const S = d.indexOf(p[e.valueField]), k = d.indexOf(y[e.valueField]);
1468
- return S - k;
1459
+ function Kt(e) {
1460
+ const t = S(""), n = S(e.modelValue), a = S(e.data || []), i = S(e.editable);
1461
+ function l(o) {
1462
+ const s = String(o).split(e.separator), m = s.map((g) => [g, !0]), y = new Map(m);
1463
+ return a.value.filter((g) => y.has(String(g[e.valueField]))).sort((g, v) => {
1464
+ const C = s.indexOf(g[e.valueField]), w = s.indexOf(v[e.valueField]);
1465
+ return C - w;
1469
1466
  });
1470
1467
  }
1471
- function s(i) {
1472
- const d = r(i).map((C) => C[e.textField]).join(e.separator);
1473
- t.value = a.value ? d || i : d;
1474
- }
1475
- function f(i) {
1476
- const d = i.split(e.separator).map((u) => [u, !0]), C = new Map(d);
1477
- return o.value.filter((u) => C.has(u[e.textField]));
1478
- }
1479
- function c(i) {
1480
- const d = {};
1481
- return d[e.idField] = i, d[e.textField] = i, [d];
1482
- }
1483
- function l(i) {
1484
- let d = f(i);
1485
- const C = d && d.length > 0;
1486
- return a.value && !C && (d = c(i)), d;
1487
- }
1488
- function g() {
1489
- const { url: i, method: d = "GET", headers: C = {}, body: u = null } = e.remote, m = d.toLowerCase() == "get" ? { method: d, headers: C } : { method: d, headers: C, body: u };
1490
- let p = !1;
1491
- fetch(i, m).then((y) => {
1492
- var k, j;
1493
- if (y.status === 200)
1494
- return p = !!((j = (k = y.headers) == null ? void 0 : k.get("content-type")) != null && j.includes("application/json")), p ? y.text() : y.json();
1495
- throw new Error(y.statusText);
1496
- }).then((y) => {
1497
- o.value = p ? JSON.parse(y) : y;
1498
- }).catch((y) => {
1499
- console.error(y);
1468
+ function r(o) {
1469
+ const s = l(o).map((m) => m[e.textField]).join(e.separator);
1470
+ t.value = i.value ? s || o : s;
1471
+ }
1472
+ function d(o) {
1473
+ const s = o.split(e.separator).map((y) => [y, !0]), m = new Map(s);
1474
+ return a.value.filter((y) => m.has(y[e.textField]));
1475
+ }
1476
+ function u(o) {
1477
+ const s = {};
1478
+ return s[e.idField] = o, s[e.textField] = o, [s];
1479
+ }
1480
+ function c(o) {
1481
+ let s = d(o);
1482
+ const m = s && s.length > 0;
1483
+ return i.value && !m && (s = u(o)), s;
1484
+ }
1485
+ function p() {
1486
+ const { url: o, method: s = "GET", headers: m = {}, body: y = null } = e.remote, f = s.toLowerCase() == "get" ? { method: s, headers: m } : { method: s, headers: m, body: y };
1487
+ let g = !1;
1488
+ fetch(o, f).then((v) => {
1489
+ var w, M;
1490
+ if (v.status === 200)
1491
+ return g = !!((M = (w = v.headers) == null ? void 0 : w.get("content-type")) != null && M.includes("application/json")), g ? v.text() : v.json();
1492
+ throw new Error(v.statusText);
1493
+ }).then((v) => {
1494
+ a.value = g ? JSON.parse(v) : v;
1495
+ }).catch((v) => {
1496
+ console.error(v);
1500
1497
  });
1501
1498
  }
1502
- return e.remote && g(), N(() => e.data, () => {
1503
- o.value = e.data;
1504
- }), N([o], ([i]) => {
1499
+ return e.remote && p(), G(() => e.data, () => {
1500
+ a.value = e.data;
1501
+ }), G([a], ([o]) => {
1505
1502
  if (e.modelValue != null) {
1506
- const d = i.find((C) => C[e.valueField] === e.modelValue);
1507
- d && (t.value = d[e.textField]);
1503
+ const s = o.find((m) => m[e.valueField] === e.modelValue);
1504
+ s && (t.value = s[e.textField]);
1508
1505
  }
1509
- }), N(() => e.modelValue, (i) => {
1510
- n.value = i, s(i);
1511
- }), s(e.modelValue), { dataSource: o, displayText: t, editable: a, modelValue: n, getItemsByDisplayText: f, getItemsByValue: r, getSelectedItemsByDisplayText: l };
1506
+ }), G(() => e.modelValue, (o) => {
1507
+ n.value = o, r(o);
1508
+ }), r(e.modelValue), { dataSource: a, displayText: t, editable: i, modelValue: n, getItemsByDisplayText: d, getItemsByValue: l, getSelectedItemsByDisplayText: c };
1512
1509
  }
1513
- const G = /* @__PURE__ */ R({
1510
+ const q = /* @__PURE__ */ R({
1514
1511
  name: "FComboList",
1515
- props: re,
1512
+ props: oe,
1516
1513
  emits: ["clear", "update:modelValue", "change", "input"],
1517
1514
  setup(e, t) {
1518
- const n = v(), o = v(e.disabled), a = v(e.enableClear), r = v(e.enableSearch), s = v(e.readonly), {
1519
- dataSource: f,
1520
- displayText: c,
1521
- editable: l,
1522
- modelValue: g,
1523
- getSelectedItemsByDisplayText: i
1524
- } = dn(e), d = V(() => e.multiSelect), C = V(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1525
- function u() {
1526
- !d.value && n.value && n.value.hidePopup();
1515
+ const n = S(), a = S(e.disabled), i = S(e.enableClear), l = S(e.enableSearch), r = S(e.readonly), {
1516
+ dataSource: d,
1517
+ displayText: u,
1518
+ editable: c,
1519
+ modelValue: p,
1520
+ getSelectedItemsByDisplayText: o
1521
+ } = Kt(e), s = B(() => e.multiSelect), m = B(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1522
+ function y() {
1523
+ !s.value && n.value && n.value.hidePopup();
1527
1524
  }
1528
- function m(w) {
1529
- c.value = w.map((b) => b[e.textField]).join(e.separator), w.length === 1 ? g.value = w[0][e.valueField] : g.value = w.map((b) => b[e.valueField]).join(e.separator), t.emit("update:modelValue", g.value), t.emit("change", w, g.value), u();
1525
+ function f(h) {
1526
+ u.value = h.map((k) => k[e.textField]).join(e.separator), h.length === 1 ? p.value = h[0][e.valueField] : p.value = h.map((k) => k[e.valueField]).join(e.separator), t.emit("update:modelValue", p.value), t.emit("change", h, p.value), y();
1530
1527
  }
1531
- function p() {
1532
- s.value || n.value.togglePopup();
1528
+ function g() {
1529
+ r.value || n.value.togglePopup();
1533
1530
  }
1534
- function y(w) {
1535
- g.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1531
+ function v(h) {
1532
+ p.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1536
1533
  }
1537
- function S(w) {
1538
- const b = i(w);
1539
- m(b);
1534
+ function C(h) {
1535
+ const k = o(h);
1536
+ f(k);
1540
1537
  }
1541
- function k() {
1542
- return c.value;
1538
+ function w() {
1539
+ return u.value;
1543
1540
  }
1544
- function j(w) {
1545
- t.emit("input", w);
1541
+ function M(h) {
1542
+ t.emit("input", h);
1546
1543
  }
1547
1544
  return t.expose({
1548
- getDisplayText: k
1549
- }), N([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([w, b, T, F, I]) => {
1550
- o.value = w, l.value = b, a.value = T, r.value = F, s.value = I;
1551
- }), () => h(Ze, {
1545
+ getDisplayText: w
1546
+ }), G([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([h, k, T, I, O]) => {
1547
+ a.value = h, c.value = k, i.value = T, l.value = I, r.value = O;
1548
+ }), () => b(qe, {
1552
1549
  ref: n,
1553
1550
  id: e.id,
1554
- disable: o.value,
1555
- readonly: s.value,
1551
+ disable: a.value,
1552
+ readonly: r.value,
1556
1553
  forcePlaceholder: e.forcePlaceholder,
1557
- editable: l.value,
1554
+ editable: c.value,
1558
1555
  buttonContent: e.dropDownIcon,
1559
1556
  placeholder: e.placeholder,
1560
- enableClear: a.value,
1557
+ enableClear: i.value,
1561
1558
  maxLength: e.maxLength,
1562
1559
  tabIndex: e.tabIndex,
1563
1560
  enableTitle: e.enableTitle,
1564
1561
  multiSelect: e.multiSelect,
1565
1562
  inputType: e.multiSelect ? e.viewType : "text",
1566
- modelValue: c.value,
1567
- "onUpdate:modelValue": (w) => c.value = w,
1563
+ modelValue: u.value,
1564
+ "onUpdate:modelValue": (h) => u.value = h,
1568
1565
  focusOnCreated: e.focusOnCreated,
1569
1566
  selectOnCreated: e.selectOnCreated,
1570
- onClear: y,
1571
- onClick: p,
1572
- onChange: S,
1573
- onInput: j,
1567
+ onClear: v,
1568
+ onClick: g,
1569
+ onChange: C,
1570
+ onInput: M,
1574
1571
  beforeOpen: e.beforeOpen
1575
1572
  }, {
1576
- default: () => [h(un, {
1573
+ default: () => [b(Zt, {
1577
1574
  idField: e.idField,
1578
1575
  valueField: e.valueField,
1579
1576
  textField: e.textField,
1580
1577
  titleField: e.titleField,
1581
- dataSource: f.value,
1582
- selectedValues: g.value,
1578
+ dataSource: d.value,
1579
+ selectedValues: p.value,
1583
1580
  multiSelect: e.multiSelect,
1584
- enableSearch: r.value,
1581
+ enableSearch: l.value,
1585
1582
  maxHeight: e.maxHeight,
1586
1583
  enableHighlightSearch: e.enableHighlightSearch,
1587
- width: e.fitEditor ? C.value : void 0,
1588
- onSelectionChange: m
1584
+ width: e.fitEditor ? m.value : void 0,
1585
+ onSelectionChange: f
1589
1586
  }, null)]
1590
1587
  });
1591
1588
  }
1592
- }), pn = /* @__PURE__ */ new Map([
1593
- ["appearance", Ke]
1589
+ }), en = /* @__PURE__ */ new Map([
1590
+ ["appearance", We]
1594
1591
  ]);
1595
- function fn(e, t, n) {
1592
+ function tn(e, t, n) {
1596
1593
  return t;
1597
1594
  }
1598
- const mn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-design.gitee.io/button-edit.schema.json", gn = "button-edit", hn = "A Farris Input Component", bn = "object", vn = {
1595
+ const nn = "https://json-schema.org/draft/2020-12/schema", on = "https://farris-design.gitee.io/button-edit.schema.json", ln = "button-edit", an = "A Farris Input Component", rn = "object", sn = {
1599
1596
  id: {
1600
1597
  description: "The unique identifier for a Input Group",
1601
1598
  type: "string"
@@ -1779,18 +1776,18 @@ const mn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-
1779
1776
  type: "string",
1780
1777
  default: ""
1781
1778
  }
1782
- }, Cn = [
1779
+ }, cn = [
1783
1780
  "id",
1784
1781
  "type"
1785
- ], wn = {
1786
- $schema: mn,
1787
- $id: yn,
1788
- title: gn,
1789
- description: hn,
1790
- type: bn,
1791
- properties: vn,
1792
- required: Cn
1793
- }, Sn = "buttonEdit", kn = "A Farris Component", Fn = "object", In = {
1782
+ ], un = {
1783
+ $schema: nn,
1784
+ $id: on,
1785
+ title: ln,
1786
+ description: an,
1787
+ type: rn,
1788
+ properties: sn,
1789
+ required: cn
1790
+ }, dn = "buttonEdit", pn = "A Farris Component", fn = "object", mn = {
1794
1791
  basic: {
1795
1792
  description: "Basic Infomation",
1796
1793
  title: "基本信息",
@@ -1872,12 +1869,12 @@ const mn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-
1872
1869
  }
1873
1870
  }
1874
1871
  }
1875
- }, Mn = {
1876
- title: Sn,
1877
- description: kn,
1878
- type: Fn,
1879
- categories: In
1880
- }, Se = {
1872
+ }, yn = {
1873
+ title: dn,
1874
+ description: pn,
1875
+ type: fn,
1876
+ categories: mn
1877
+ }, he = {
1881
1878
  /**
1882
1879
  * 组件标识
1883
1880
  */
@@ -1986,282 +1983,282 @@ const mn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-
1986
1983
  /** 更新方式 blur | change */
1987
1984
  updateOn: { type: String, default: "change" }
1988
1985
  };
1989
- z(Se, wn, pn, fn, Mn);
1990
- const jn = {
1986
+ _(he, un, en, tn, yn);
1987
+ const hn = {
1991
1988
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
1992
1989
  host: { type: Object },
1993
1990
  backgroundColor: { type: String, default: "" }
1994
- }, Bn = /* @__PURE__ */ R({
1991
+ }, gn = /* @__PURE__ */ R({
1995
1992
  name: "FOverlay",
1996
- props: jn,
1993
+ props: hn,
1997
1994
  emits: ["click"],
1998
1995
  setup(e, t) {
1999
- const n = v(e.popupContentPosition), o = v(e.host), a = V(() => ({
1996
+ const n = S(e.popupContentPosition), a = S(e.host), i = B(() => ({
2000
1997
  backgroundColor: e.backgroundColor || "",
2001
1998
  pointerEvents: "auto"
2002
1999
  }));
2003
- function r(f) {
2004
- t.emit("click"), f.preventDefault(), f.stopPropagation();
2000
+ function l(d) {
2001
+ t.emit("click"), d.preventDefault(), d.stopPropagation();
2005
2002
  }
2006
- V(() => {
2007
- const f = o.value;
2008
- if (f) {
2009
- const c = f.getBoundingClientRect(), {
2010
- left: l,
2011
- top: g,
2012
- height: i
2013
- } = c;
2003
+ B(() => {
2004
+ const d = a.value;
2005
+ if (d) {
2006
+ const u = d.getBoundingClientRect(), {
2007
+ left: c,
2008
+ top: p,
2009
+ height: o
2010
+ } = u;
2014
2011
  return {
2015
- left: l,
2016
- top: g + i
2012
+ left: c,
2013
+ top: p + o
2017
2014
  };
2018
2015
  }
2019
2016
  return n.value;
2020
2017
  });
2021
- const s = V(() => ({
2018
+ const r = B(() => ({
2022
2019
  // position: 'relative',
2023
2020
  // left: `${position.value.left}px`,
2024
2021
  // top: `${position.value.top}px`
2025
2022
  }));
2026
- return () => h(De, {
2023
+ return () => b(Fe, {
2027
2024
  to: "body"
2028
2025
  }, {
2029
2026
  default: () => {
2030
- var f, c;
2031
- return [h("div", {
2027
+ var d, u;
2028
+ return [b("div", {
2032
2029
  class: "overlay-container",
2033
- onClick: (l) => r(l),
2034
- style: a.value
2035
- }, [h("div", {
2036
- style: s.value
2037
- }, [(c = (f = t.slots).default) == null ? void 0 : c.call(f)])])];
2030
+ onClick: (c) => l(c),
2031
+ style: i.value
2032
+ }, [b("div", {
2033
+ style: r.value
2034
+ }, [(u = (d = t.slots).default) == null ? void 0 : u.call(d)])])];
2038
2035
  }
2039
2036
  });
2040
2037
  }
2041
2038
  });
2042
- function Tn(e) {
2039
+ function vn(e) {
2043
2040
  if (e.content && e.content.render)
2044
2041
  return e.content.render;
2045
2042
  if (e.render && typeof e.render == "function")
2046
2043
  return e.render;
2047
2044
  }
2048
- function On(e) {
2045
+ function Cn(e) {
2049
2046
  const t = document.createElement("div");
2050
2047
  t.style.display = "contents";
2051
2048
  let n;
2052
- const o = e.onClickCallback || (() => {
2053
- }), a = () => {
2054
- o(), n && n.unmount();
2049
+ const a = e.onClickCallback || (() => {
2050
+ }), i = () => {
2051
+ a(), n && n.unmount();
2055
2052
  };
2056
- return n = Le({
2053
+ return n = Me({
2057
2054
  setup() {
2058
- Ee(() => {
2055
+ Be(() => {
2059
2056
  document.body.removeChild(t);
2060
2057
  });
2061
- const r = Tn(e);
2062
- return () => h(Bn, {
2058
+ const l = vn(e);
2059
+ return () => b(gn, {
2063
2060
  "popup-content-position": e.popupPosition,
2064
2061
  host: e.host,
2065
- onClick: a,
2062
+ onClick: i,
2066
2063
  backgroundColor: e.backgroundColor
2067
2064
  }, {
2068
- default: () => [r && r()]
2065
+ default: () => [l && l()]
2069
2066
  });
2070
2067
  }
2071
2068
  }), document.body.appendChild(t), n.mount(t), n;
2072
2069
  }
2073
- class Pn {
2070
+ class bn {
2074
2071
  static show(t) {
2075
- return On(t);
2072
+ return Cn(t);
2076
2073
  }
2077
2074
  }
2078
- const Vn = Symbol("FModalService");
2079
- function ke(e, t) {
2075
+ const Sn = Symbol("FModalService");
2076
+ function ge(e, t) {
2080
2077
  function n() {
2081
- const o = e.beforeOpen || e.beforeClickButton || null;
2082
- let a = Promise.resolve(!0);
2083
- if (o) {
2084
- const r = o(t.value);
2085
- if (typeof r > "u")
2086
- return a;
2087
- typeof r == "boolean" ? a = Promise.resolve(r) : a = r;
2078
+ const a = e.beforeOpen || e.beforeClickButton || null;
2079
+ let i = Promise.resolve(!0);
2080
+ if (a) {
2081
+ const l = a(t.value);
2082
+ if (typeof l > "u")
2083
+ return i;
2084
+ typeof l == "boolean" ? i = Promise.resolve(l) : i = l;
2088
2085
  }
2089
- return a;
2086
+ return i;
2090
2087
  }
2091
2088
  return { judgeCanOpen: n };
2092
2089
  }
2093
- function An(e, t, n, o, a) {
2094
- const r = v(e.buttonBehavior), s = v(e.popupOnInput), f = V(() => ({
2090
+ function wn(e, t, n, a, i) {
2091
+ const l = S(e.buttonBehavior), r = S(e.popupOnInput), d = B(() => ({
2095
2092
  "input-group-append": !0,
2096
2093
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
2097
- })), { judgeCanOpen: c } = ke(e, a), l = V(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), g = q(Vn, null), i = v();
2098
- async function d(m) {
2099
- if (await c() && l.value) {
2100
- const p = !!t.slots.default;
2101
- if (r.value === "Modal") {
2102
- const y = e.modalOptions, S = g == null ? void 0 : g.open({
2103
- ...y,
2094
+ })), { judgeCanOpen: u } = ge(e, i), c = B(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), p = x(Sn, null), o = S();
2095
+ async function s(f) {
2096
+ if (await u() && c.value) {
2097
+ const g = !!t.slots.default;
2098
+ if (l.value === "Modal") {
2099
+ const v = e.modalOptions, C = p == null ? void 0 : p.open({
2100
+ ...v,
2104
2101
  render: () => t.slots.default && t.slots.default()
2105
2102
  });
2106
- i.value = S == null ? void 0 : S.modalRef;
2103
+ o.value = C == null ? void 0 : C.modalRef;
2107
2104
  }
2108
- r.value === "Overlay" && Pn.show({
2105
+ l.value === "Overlay" && bn.show({
2109
2106
  // host: buttonEditRef.value,
2110
2107
  host: document.body,
2111
2108
  backgroundColor: "rgba(0,0,0,.15)",
2112
2109
  render: () => t.slots.default && t.slots.default()
2113
- }), p && r.value === "Popup" && o.togglePopup(!0), p && s.value && o.hidePopup(), t.emit("clickButton", { origin: m, value: e.modelValue });
2110
+ }), g && l.value === "Popup" && a.togglePopup(!0), g && r.value && a.hidePopup(), t.emit("clickButton", { origin: f, value: e.modelValue });
2114
2111
  }
2115
2112
  }
2116
- function C(m) {
2117
- t.emit("mouseEnterIcon", m);
2113
+ function m(f) {
2114
+ t.emit("mouseEnterIcon", f);
2118
2115
  }
2119
- function u(m) {
2120
- t.emit("mouseLeaveIcon", m);
2116
+ function y(f) {
2117
+ t.emit("mouseLeaveIcon", f);
2121
2118
  }
2122
2119
  return {
2123
- buttonGroupClass: f,
2124
- onClickButton: d,
2125
- onMouseEnterButton: C,
2126
- onMouseLeaveButton: u,
2127
- modalRef: i
2120
+ buttonGroupClass: d,
2121
+ onClickButton: s,
2122
+ onMouseEnterButton: m,
2123
+ onMouseLeaveButton: y,
2124
+ modalRef: o
2128
2125
  };
2129
2126
  }
2130
- function Dn(e, t, n, o) {
2131
- const a = v(), r = v(!1), { judgeCanOpen: s } = ke(e, o);
2132
- function f() {
2133
- const i = a.value;
2134
- i && i.show(n.value);
2127
+ function kn(e, t, n, a) {
2128
+ const i = S(), l = S(!1), { judgeCanOpen: r } = ge(e, a);
2129
+ function d() {
2130
+ const o = i.value;
2131
+ o && o.show(n.value);
2135
2132
  }
2136
- async function c(i = !1) {
2133
+ async function u(o = !1) {
2137
2134
  if (!!t.slots.default) {
2138
- if (!i && !r.value && !await s())
2135
+ if (!o && !l.value && !await r())
2139
2136
  return;
2140
- r.value = !r.value, await Z(), f();
2137
+ l.value = !l.value, await X(), d();
2141
2138
  }
2142
2139
  }
2143
- async function l(i = !1) {
2140
+ async function c(o = !1) {
2144
2141
  if (!!t.slots.default) {
2145
- if (!i && !await s())
2142
+ if (!o && !await r())
2146
2143
  return;
2147
- r.value = !0, await Z(), f();
2144
+ l.value = !0, await X(), d();
2148
2145
  }
2149
2146
  }
2150
- function g() {
2151
- r.value = !1;
2147
+ function p() {
2148
+ l.value = !1;
2152
2149
  }
2153
- return { hidePopup: g, popup: l, shouldPopupContent: r, togglePopup: c, popoverRef: a };
2150
+ return { hidePopup: p, popup: c, shouldPopupContent: l, togglePopup: u, popoverRef: i };
2154
2151
  }
2155
- function Ln(e, t, n) {
2152
+ function In(e, t, n) {
2156
2153
  const {
2157
- buttonGroupClass: o
2158
- } = n, a = v();
2154
+ buttonGroupClass: a
2155
+ } = n, i = S();
2159
2156
  return {
2160
- renderButtonGroup: () => h("div", {
2157
+ renderButtonGroup: () => b("div", {
2161
2158
  id: `${e.id}-button-group`,
2162
- class: o.value
2163
- }, [t.slots.buttonContent ? h("span", {
2159
+ class: a.value
2160
+ }, [t.slots.buttonContent ? b("span", {
2164
2161
  class: "input-group-text input-group-append-button"
2165
- }, [t.slots.buttonContent()]) : e.buttonContent ? h("span", {
2162
+ }, [t.slots.buttonContent()]) : e.buttonContent ? b("span", {
2166
2163
  class: "input-group-text input-group-append-button",
2167
2164
  innerHTML: e.buttonContent,
2168
- ref: a
2165
+ ref: i
2169
2166
  }, null) : null]),
2170
- buttonHandleElement: a
2167
+ buttonHandleElement: i
2171
2168
  };
2172
2169
  }
2173
- const En = /* @__PURE__ */ R({
2170
+ const Fn = /* @__PURE__ */ R({
2174
2171
  name: "FButtonEdit",
2175
- props: Se,
2172
+ props: he,
2176
2173
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
2177
2174
  setup(e, t) {
2178
- const n = v(), o = q("design-item-context"), a = me(n, o), r = v(e.customClass), s = v(e.modelValue), f = Dn(e, t, n, s), c = An(e, t, n, f, s), l = v(), g = V(() => ({
2175
+ const n = S(), a = x("design-item-context"), i = ce(n, a), l = S(e.customClass), r = S(e.modelValue), d = kn(e, t, n, r), u = wn(e, t, n, d, r), c = S(), p = B(() => ({
2179
2176
  "f-cmp-inputgroup": !0,
2180
2177
  "input-group": !0,
2181
2178
  "f-state-disable": !0,
2182
2179
  "f-state-editable": !1,
2183
2180
  "f-state-readonly": !0
2184
2181
  }));
2185
- ee(() => {
2186
- n.value.componentInstance = a;
2187
- }), t.expose(a.value);
2188
- const i = V(() => {
2189
- const C = {
2182
+ Y(() => {
2183
+ n.value.componentInstance = i;
2184
+ }), t.expose(i.value);
2185
+ const o = B(() => {
2186
+ const m = {
2190
2187
  "f-button-edit": !0,
2191
2188
  "f-cmp-inputgroup": !0,
2192
2189
  "f-button-edit-nowrap": !e.wrapText
2193
2190
  };
2194
- return r.value && r.value.split(" ").reduce((u, m) => (u[m] = !0, u), C), C;
2191
+ return l.value && l.value.split(" ").reduce((y, f) => (y[f] = !0, y), m), m;
2195
2192
  }), {
2196
- renderButtonGroup: d
2197
- } = Ln(e, t, c);
2198
- return () => h("div", $e(t.attrs, {
2193
+ renderButtonGroup: s
2194
+ } = In(e, t, u);
2195
+ return () => b("div", Le(t.attrs, {
2199
2196
  ref: n,
2200
- class: i.value,
2197
+ class: o.value,
2201
2198
  id: e.id
2202
- }), [h("div", {
2203
- class: g.value
2204
- }, [h("input", {
2205
- ref: l,
2199
+ }), [b("div", {
2200
+ class: p.value
2201
+ }, [b("input", {
2202
+ ref: c,
2206
2203
  class: "form-control",
2207
2204
  readonly: !0,
2208
2205
  placeholder: e.placeholder
2209
- }, null), d()])]);
2206
+ }, null), s()])]);
2210
2207
  }
2211
2208
  });
2212
- function $n(e, t) {
2209
+ function Mn(e, t) {
2213
2210
  e.schema;
2214
- const n = v(!0), o = v(!0);
2215
- function a(i) {
2211
+ const n = S(!0), a = S(!0);
2212
+ function i(o) {
2216
2213
  return !1;
2217
2214
  }
2218
- function r() {
2215
+ function l() {
2219
2216
  return !1;
2220
2217
  }
2221
- function s() {
2218
+ function r() {
2222
2219
  return !1;
2223
2220
  }
2224
- function f() {
2221
+ function d() {
2225
2222
  return !0;
2226
2223
  }
2227
- function c(i) {
2224
+ function u(o) {
2228
2225
  }
2229
- function l() {
2226
+ function c() {
2230
2227
  }
2231
- function g(i) {
2228
+ function p(o) {
2232
2229
  return null;
2233
2230
  }
2234
2231
  return {
2235
- canAccepts: a,
2236
- checkCanDeleteComponent: r,
2237
- checkCanMoveComponent: s,
2238
- hideNestedPaddingInDesginerView: f,
2239
- onAcceptMovedChildElement: c,
2240
- resolveComponentContext: l,
2232
+ canAccepts: i,
2233
+ checkCanDeleteComponent: l,
2234
+ checkCanMoveComponent: r,
2235
+ hideNestedPaddingInDesginerView: d,
2236
+ onAcceptMovedChildElement: u,
2237
+ resolveComponentContext: c,
2241
2238
  triggerBelongedComponentToMoveWhenMoved: n,
2242
- triggerBelongedComponentToDeleteWhenDeleted: o,
2243
- getPropsConfig: g
2239
+ triggerBelongedComponentToDeleteWhenDeleted: a,
2240
+ getPropsConfig: p
2244
2241
  };
2245
2242
  }
2246
- class xn {
2243
+ class ve {
2247
2244
  constructor(t, n) {
2248
- x(this, "componentId");
2249
- x(this, "viewModelId");
2250
- x(this, "eventsEditorUtils");
2251
- x(this, "formSchemaUtils");
2252
- x(this, "formMetadataConverter");
2253
- x(this, "designViewModelUtils");
2254
- x(this, "designViewModelField");
2255
- x(this, "controlCreatorUtils");
2256
- x(this, "designerHostService");
2257
- x(this, "schemaService", null);
2258
- x(this, "metadataService", null);
2259
- x(this, "propertyConfig", {
2245
+ V(this, "componentId");
2246
+ V(this, "viewModelId");
2247
+ V(this, "eventsEditorUtils");
2248
+ V(this, "formSchemaUtils");
2249
+ V(this, "formMetadataConverter");
2250
+ V(this, "designViewModelUtils");
2251
+ V(this, "designViewModelField");
2252
+ V(this, "controlCreatorUtils");
2253
+ V(this, "designerHostService");
2254
+ V(this, "schemaService", null);
2255
+ V(this, "metadataService", null);
2256
+ V(this, "propertyConfig", {
2260
2257
  type: "object",
2261
2258
  categories: {}
2262
2259
  });
2263
- var o;
2264
- this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
2260
+ var a;
2261
+ this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((a = this.formSchemaUtils) == null ? void 0 : a.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
2265
2262
  }
2266
2263
  getTableInfo() {
2267
2264
  var t;
@@ -2271,8 +2268,8 @@ class xn {
2271
2268
  const n = t.binding && t.binding.type === "Form" && t.binding.field;
2272
2269
  if (n) {
2273
2270
  if (!this.designViewModelField) {
2274
- const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
2275
- this.designViewModelField = o.fields.find((a) => a.id === n);
2271
+ const a = this.designViewModelUtils.getDgViewModel(this.viewModelId);
2272
+ this.designViewModelField = a.fields.find((i) => i.id === n);
2276
2273
  }
2277
2274
  t.updateOn = this.designViewModelField.updateOn;
2278
2275
  }
@@ -2298,7 +2295,7 @@ class xn {
2298
2295
  type: "combo-list",
2299
2296
  textField: "name",
2300
2297
  valueField: "value",
2301
- data: [{ value: t.type, name: B[t.type].name }]
2298
+ data: [{ value: t.type, name: F[t.type].name }]
2302
2299
  }
2303
2300
  }
2304
2301
  }
@@ -2331,11 +2328,11 @@ class xn {
2331
2328
  * @returns
2332
2329
  */
2333
2330
  updateElementByParentContainer(t, n) {
2334
- const o = n && n.parent && n.parent.schema;
2335
- if (!o)
2331
+ const a = n && n.parent && n.parent.schema;
2332
+ if (!a)
2336
2333
  return;
2337
- const a = o.contents.findIndex((s) => s.id === t), r = fe(o.contents[a]);
2338
- o.contents.splice(a, 1), o.contents.splice(a, 0, r);
2334
+ const i = a.contents.findIndex((r) => r.id === t), l = se(a.contents[i]);
2335
+ a.contents.splice(i, 1), a.contents.splice(i, 0, l);
2339
2336
  }
2340
2337
  }
2341
2338
  const U = class U {
@@ -2352,8 +2349,8 @@ const U = class U {
2352
2349
  static getAllInputTypes() {
2353
2350
  const t = [];
2354
2351
  for (let n in U.fieldControlTypeMapping)
2355
- U.fieldControlTypeMapping[n].forEach((o) => {
2356
- t.find((a) => a.key === o.key && a.value === o.value) || t.push({ key: o.key, value: o.value });
2352
+ U.fieldControlTypeMapping[n].forEach((a) => {
2353
+ t.find((i) => i.key === a.key && i.value === a.value) || t.push({ key: a.key, value: a.value });
2357
2354
  });
2358
2355
  return t;
2359
2356
  }
@@ -2361,68 +2358,175 @@ const U = class U {
2361
2358
  /**
2362
2359
  * <字段类型,可配置的控件类型列表>的映射
2363
2360
  */
2364
- x(U, "fieldControlTypeMapping", {
2361
+ V(U, "fieldControlTypeMapping", {
2365
2362
  String: [
2366
- { key: B["input-group"].type, value: B["input-group"].name },
2367
- { key: B.lookup.type, value: B.lookup.name },
2368
- { key: B["date-picker"].type, value: B["date-picker"].name },
2369
- { key: B["check-box"].type, value: B["check-box"].name },
2370
- { key: B["radio-group"].type, value: B["radio-group"].name },
2371
- { key: B["combo-list"].type, value: B["combo-list"].name },
2372
- { key: B.textarea.type, value: B.textarea.name }
2363
+ { key: F["input-group"].type, value: F["input-group"].name },
2364
+ { key: F.lookup.type, value: F.lookup.name },
2365
+ { key: F["date-picker"].type, value: F["date-picker"].name },
2366
+ { key: F["check-box"].type, value: F["check-box"].name },
2367
+ { key: F["check-group"].type, value: F["check-group"].name },
2368
+ { key: F["radio-group"].type, value: F["radio-group"].name },
2369
+ { key: F["combo-list"].type, value: F["combo-list"].name },
2370
+ { key: F.textarea.type, value: F.textarea.name }
2373
2371
  ],
2374
2372
  Text: [
2375
- { key: B.textarea.type, value: B.textarea.name },
2376
- { key: B.lookup.type, value: B.lookup.name }
2373
+ { key: F.textarea.type, value: F.textarea.name },
2374
+ { key: F.lookup.type, value: F.lookup.name }
2377
2375
  ],
2378
2376
  Decimal: [
2379
- { key: B["number-spinner"].type, value: B["number-spinner"].name }
2377
+ { key: F["number-spinner"].type, value: F["number-spinner"].name }
2380
2378
  ],
2381
2379
  Integer: [
2382
- { key: B["number-spinner"].type, value: B["number-spinner"].name }
2380
+ { key: F["number-spinner"].type, value: F["number-spinner"].name }
2383
2381
  ],
2384
2382
  Number: [
2385
- { key: B["number-spinner"].type, value: B["number-spinner"].name }
2383
+ { key: F["number-spinner"].type, value: F["number-spinner"].name }
2386
2384
  ],
2387
2385
  BigNumber: [
2388
- { key: B["number-spinner"].type, value: B["number-spinner"].name }
2386
+ { key: F["number-spinner"].type, value: F["number-spinner"].name }
2389
2387
  ],
2390
2388
  Date: [
2391
- { key: B["date-picker"].type, value: B["date-picker"].name }
2389
+ { key: F["date-picker"].type, value: F["date-picker"].name }
2392
2390
  ],
2393
2391
  DateTime: [
2394
- { key: B["date-picker"].type, value: B["date-picker"].name }
2392
+ { key: F["date-picker"].type, value: F["date-picker"].name }
2395
2393
  ],
2396
2394
  Boolean: [
2397
- { key: B.switch.type, value: B.switch.name },
2398
- { key: B["check-box"].type, value: B["check-box"].name }
2395
+ { key: F.switch.type, value: F.switch.name },
2396
+ { key: F["check-box"].type, value: F["check-box"].name }
2399
2397
  ],
2400
2398
  Enum: [
2401
- { key: B["combo-list"].type, value: B["combo-list"].name },
2402
- { key: B["radio-group"].type, value: B["radio-group"].name }
2399
+ { key: F["combo-list"].type, value: F["combo-list"].name },
2400
+ { key: F["radio-group"].type, value: F["radio-group"].name }
2403
2401
  ],
2404
2402
  Object: [
2405
- { key: B.lookup.type, value: B.lookup.name },
2406
- { key: B["combo-list"].type, value: B["combo-list"].name },
2407
- { key: B["radio-group"].type, value: B["radio-group"].name }
2403
+ { key: F.lookup.type, value: F.lookup.name },
2404
+ { key: F["combo-list"].type, value: F["combo-list"].name },
2405
+ { key: F["radio-group"].type, value: F["radio-group"].name }
2408
2406
  ]
2409
2407
  });
2410
2408
  let W = U;
2411
- const Rn = v(0);
2412
- class Nn extends xn {
2413
- constructor(n, o) {
2414
- super(n, o);
2415
- x(this, "responseLayoutEditorFunction");
2416
- this.responseLayoutEditorFunction = ye(this.formSchemaUtils);
2417
- }
2418
- getPropertyConfig(n, o) {
2419
- return this.propertyConfig.categories.basic = this.getBasicProperties(n, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(n, o), this.propertyConfig.categories.editor = this.getEditorProperties(n), this.propertyConfig;
2420
- }
2421
- getBasicProperties(n, o) {
2422
- var f;
2423
- var a = this;
2409
+ const Bn = S(0);
2410
+ class Ln {
2411
+ constructor() {
2412
+ /** 控件标题 */
2413
+ V(this, "label", "");
2414
+ /** 控件id */
2415
+ V(this, "id", "");
2416
+ /** 每个控件占用的栅格数 */
2417
+ V(this, "columnInSM", 12);
2418
+ V(this, "columnInMD", 6);
2419
+ V(this, "columnInLG", 3);
2420
+ V(this, "columnInEL", 2);
2421
+ /** 每个控件占用的列数 */
2422
+ V(this, "displayWidthInSM", 1);
2423
+ V(this, "displayWidthInMD", 1);
2424
+ V(this, "displayWidthInLG", 1);
2425
+ V(this, "displayWidthInEL", 1);
2426
+ /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
2427
+ V(this, "displayColumnCountAtBreakPoint", "md");
2428
+ /** 控件所在行,传0即可-----编辑器内部使用 */
2429
+ V(this, "tagRow", 0);
2430
+ /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
2431
+ V(this, "showTopBorder", 0);
2432
+ /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
2433
+ V(this, "group", 1);
2434
+ /** 控件是否符合标准的class配置(设计器用的) */
2435
+ V(this, "isSupportedClass", !0);
2436
+ /** 控件所在分组id(设计器用的) */
2437
+ V(this, "fieldSetId", "");
2438
+ }
2439
+ }
2440
+ function Ce(e) {
2441
+ let t, n;
2442
+ const a = /* @__PURE__ */ new Map();
2443
+ let i = [];
2444
+ function l(p, o) {
2445
+ const m = p.split(" ").filter((C) => C.startsWith("col-"));
2446
+ if (m.length === 0) {
2447
+ o.isSupportedClass = !1;
2448
+ return;
2449
+ }
2450
+ let y = m.find((C) => /^col-([1-9]|10|11|12)$/.test(C)), f = m.find((C) => /^col-md-([1-9]|10|11|12)$/.test(C)), g = m.find((C) => /^col-xl-([1-9]|10|11|12)$/.test(C)), v = m.find((C) => /^col-el-([1-9]|10|11|12)$/.test(C));
2451
+ y = y || "col-12", o.columnInSM = parseInt(y.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), f = f || "col-md-" + o.columnInSM, o.columnInMD = parseInt(f.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), g = g || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(g.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), v = v || "col-el-" + o.columnInLG, o.columnInEL = parseInt(v.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
2452
+ }
2453
+ function r(p, o, s, m = !1) {
2454
+ let y = !1;
2455
+ p.contents.forEach((f) => {
2456
+ if (f.type === "fieldset") {
2457
+ s += 1, r(f, o, s, !0), y = !0;
2458
+ return;
2459
+ }
2460
+ y && (s += 1, y = !1);
2461
+ const g = f.appearance && f.appearance.class, v = new Ln();
2462
+ g ? l(g, v) : v.isSupportedClass = !1, v.label = f.label || f.id, v.id = f.id, v.group = s, m && (v.fieldSetId = p.id), n === f.id && (t = s), a.set(f.id, f), o.push(v);
2463
+ });
2464
+ }
2465
+ function d(p) {
2466
+ const o = e.getComponentById(p);
2467
+ if (!o || !o.componentType || !o.componentType.startsWith("form"))
2468
+ return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
2469
+ const s = e.selectNode(o, (m) => m.type === J["response-form"].type);
2470
+ return !s || !s.contents || s.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: s };
2471
+ }
2472
+ function u(p, o) {
2473
+ o = o || p.id;
2474
+ const { result: s, message: m, formNode: y } = d(o);
2475
+ if (!s)
2476
+ return { result: s, message: m };
2477
+ n = p.id, i = [], a.clear();
2478
+ const f = y.contents[0].type === J.fieldset.type ? 0 : 1;
2479
+ r(y, i, f);
2480
+ const g = i.find((C) => !C.isSupportedClass);
2481
+ return {
2482
+ defaultState: {
2483
+ defaultGroupNumber: t || 1,
2484
+ model: g ? "customize" : "standard"
2485
+ },
2486
+ importData: i
2487
+ };
2488
+ }
2489
+ function c(p, o) {
2490
+ o = o;
2491
+ const { result: s, formNode: m } = d(o);
2492
+ if (!s)
2493
+ return "";
2494
+ const y = [];
2495
+ return p.forEach((f) => {
2496
+ var C;
2497
+ const g = a.get(f.id), v = g.appearance && g.appearance.class;
2498
+ if (v) {
2499
+ const M = v.split(" ").filter((A) => !A.startsWith("col-")), h = "col-" + f.columnInSM, k = "col-md-" + f.columnInMD, T = "col-xl-" + f.columnInLG, I = "col-el-" + f.columnInEL, O = [h, k, T, I].concat(M);
2500
+ g.appearance.class = O.join(" ");
2501
+ }
2502
+ if (f.fieldSetId) {
2503
+ const w = m.contents.find((h) => h.id === f.fieldSetId), M = y.find((h) => h.id === f.fieldSetId);
2504
+ M ? (C = M.contents) == null || C.push(g) : (y.push(w), w.contents = [g]);
2505
+ } else
2506
+ y.push(g);
2507
+ }), m.contents = y, m.id;
2508
+ }
2509
+ return {
2510
+ checkCanFindFormNode: d,
2511
+ checkCanOpenLayoutEditor: u,
2512
+ changeFormControlsByResponseLayoutConfig: c,
2513
+ getResonseFormLayoutConfig: r
2514
+ };
2515
+ }
2516
+ class Tn extends ve {
2517
+ constructor(n, a) {
2518
+ super(n, a);
2519
+ V(this, "responseLayoutEditorFunction");
2520
+ this.responseLayoutEditorFunction = Ce(this.formSchemaUtils);
2521
+ }
2522
+ getPropertyConfig(n, a) {
2523
+ return this.propertyConfig.categories.basic = this.getBasicProperties(n, a), this.propertyConfig.categories.appearance = this.getAppearanceProperties(n, a), this.propertyConfig.categories.editor = this.getEditorProperties(n), this.propertyConfig;
2524
+ }
2525
+ getBasicProperties(n, a) {
2526
+ var d;
2527
+ var i = this;
2424
2528
  this.setDesignViewModelField(n);
2425
- const r = this.formSchemaUtils.getFormMetadataBasicInfo(), s = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
2529
+ const l = this.formSchemaUtils.getFormMetadataBasicInfo(), r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
2426
2530
  return {
2427
2531
  description: "Basic Information",
2428
2532
  title: "基本信息",
@@ -2444,7 +2548,7 @@ class Nn extends xn {
2444
2548
  textField: "value",
2445
2549
  valueField: "key",
2446
2550
  editable: !1,
2447
- data: a.designViewModelField ? W.getEditorTypesByMDataType((f = a.designViewModelField.type) == null ? void 0 : f.name) : W.getAllInputTypes()
2551
+ data: i.designViewModelField ? W.getEditorTypesByMDataType((d = i.designViewModelField.type) == null ? void 0 : d.name) : W.getAllInputTypes()
2448
2552
  }
2449
2553
  },
2450
2554
  label: {
@@ -2461,7 +2565,7 @@ class Nn extends xn {
2461
2565
  bindingType: { enable: !1 },
2462
2566
  editorParams: {
2463
2567
  propertyData: n,
2464
- formBasicInfo: r
2568
+ formBasicInfo: l
2465
2569
  },
2466
2570
  columns: [
2467
2571
  { field: "name", title: "字段名称" },
@@ -2469,27 +2573,27 @@ class Nn extends xn {
2469
2573
  { field: "fieldType", title: "字段类型" }
2470
2574
  ],
2471
2575
  textField: "bindingField",
2472
- data: s
2576
+ data: r
2473
2577
  }
2474
2578
  }
2475
2579
  },
2476
- setPropertyRelates(c, l) {
2477
- if (c)
2478
- switch (c && c.propertyID) {
2580
+ setPropertyRelates(u, c) {
2581
+ if (u)
2582
+ switch (u && u.propertyID) {
2479
2583
  case "type": {
2480
- a.changeControlType(n, c, o);
2584
+ i.changeControlType(n, u, a);
2481
2585
  break;
2482
2586
  }
2483
2587
  case "label": {
2484
- c.needRefreshControlTree = !0;
2588
+ u.needRefreshControlTree = !0;
2485
2589
  break;
2486
2590
  }
2487
2591
  }
2488
2592
  }
2489
2593
  };
2490
2594
  }
2491
- getAppearanceProperties(n, o) {
2492
- var a = this;
2595
+ getAppearanceProperties(n, a) {
2596
+ var i = this;
2493
2597
  return {
2494
2598
  title: "样式",
2495
2599
  description: "Appearance",
@@ -2515,18 +2619,18 @@ class Nn extends xn {
2515
2619
  refreshPanelAfterChanged: !0,
2516
2620
  editor: {
2517
2621
  type: "response-layout-editor-setting",
2518
- initialState: a.responseLayoutEditorFunction.checkCanOpenLayoutEditor(n, a.componentId)
2622
+ initialState: i.responseLayoutEditorFunction.checkCanOpenLayoutEditor(n, i.componentId)
2519
2623
  }
2520
2624
  }
2521
2625
  },
2522
- setPropertyRelates(r, s) {
2523
- if (r)
2524
- switch (r && r.propertyID) {
2626
+ setPropertyRelates(l, r) {
2627
+ if (l)
2628
+ switch (l && l.propertyID) {
2525
2629
  case "responseLayout":
2526
- a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(r.propertyValue, a.componentId || n.id), a.updateUnifiedLayoutAfterResponseLayoutChanged(a.componentId), a.updateElementByParentContainer(n.id, o), delete n.responseLayout;
2630
+ i.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, i.componentId || n.id), i.updateUnifiedLayoutAfterResponseLayoutChanged(i.componentId), i.updateElementByParentContainer(n.id, a), delete n.responseLayout;
2527
2631
  break;
2528
2632
  case "class":
2529
- a.updateUnifiedLayoutAfterControlChanged(r.propertyValue, n.id, this.componentId), a.updateElementByParentContainer(n.id, o);
2633
+ i.updateUnifiedLayoutAfterControlChanged(l.propertyValue, n.id, this.componentId), i.updateElementByParentContainer(n.id, a);
2530
2634
  break;
2531
2635
  }
2532
2636
  }
@@ -2540,44 +2644,44 @@ class Nn extends xn {
2540
2644
  * @param propertyData 控件DOM属性
2541
2645
  * @param newControlType 新控件类型
2542
2646
  */
2543
- changeControlType(n, o, a) {
2544
- var g, i, d, C;
2545
- const r = o.propertyValue, s = a && a.parent && a.parent.schema;
2546
- if (!s)
2647
+ changeControlType(n, a, i) {
2648
+ var p, o, s, m;
2649
+ const l = a.propertyValue, r = i && i.parent && i.parent.schema;
2650
+ if (!r)
2547
2651
  return;
2548
- const f = s.contents.findIndex((u) => u.id === n.id), c = s.contents[f];
2549
- let l;
2652
+ const d = r.contents.findIndex((y) => y.id === n.id), u = r.contents[d];
2653
+ let c;
2550
2654
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
2551
2655
  editor: {
2552
- $type: r
2656
+ $type: l
2553
2657
  },
2554
2658
  name: this.designViewModelField.name,
2555
2659
  require: this.designViewModelField.require,
2556
2660
  readonly: this.designViewModelField.readonly
2557
- }, !1), l = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, r)), l || (l = ce("form-group") || {}, l.editor = ce(r) || {}, delete l.editor.id, delete l.editor.binding, delete l.editor.appearance), Object.assign(l, {
2558
- id: c.id,
2559
- appearance: c.appearance,
2560
- size: c.size,
2561
- label: c.label,
2562
- binding: c.binding,
2563
- visible: c.visible
2564
- }), Object.assign(l.editor, {
2565
- isTextArea: l.isTextArea && c.isTextArea,
2566
- placeholder: (g = c.editor) == null ? void 0 : g.placeholder,
2567
- holdPlace: (i = c.editor) == null ? void 0 : i.holdPlace,
2568
- readonly: (d = c.editor) == null ? void 0 : d.readonly,
2569
- require: (C = c.editor) == null ? void 0 : C.require
2570
- }), s.contents.splice(f, 1), s.contents.splice(f, 0, l), a.schema = Object.assign(c, l), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
2571
- (u) => u.classList.remove("dgComponentSelected")
2572
- ), Rn.value++;
2573
- }
2574
- getComponentConfig(n, o = {}, a = {}) {
2575
- const r = Object.assign({
2661
+ }, !1), c = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), c || (c = this.controlCreatorUtils.createFormGroupWithoutField(l)), Object.assign(c, {
2662
+ id: u.id,
2663
+ appearance: u.appearance,
2664
+ size: u.size,
2665
+ label: u.label,
2666
+ binding: u.binding,
2667
+ visible: u.visible
2668
+ }), Object.assign(c.editor, {
2669
+ isTextArea: c.isTextArea && u.isTextArea,
2670
+ placeholder: (p = u.editor) == null ? void 0 : p.placeholder,
2671
+ holdPlace: (o = u.editor) == null ? void 0 : o.holdPlace,
2672
+ readonly: (s = u.editor) == null ? void 0 : s.readonly,
2673
+ require: (m = u.editor) == null ? void 0 : m.require
2674
+ }), r.contents.splice(d, 1), r.contents.splice(d, 0, c), i.schema = Object.assign(u, c), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
2675
+ (y) => y.classList.remove("dgComponentSelected")
2676
+ ), Bn.value++;
2677
+ }
2678
+ getComponentConfig(n, a = {}, i = {}) {
2679
+ const l = Object.assign({
2576
2680
  description: "编辑器",
2577
2681
  title: "编辑器",
2578
2682
  type: "input-group",
2579
2683
  $converter: "/converter/property-editor.converter"
2580
- }, o), s = Object.assign({
2684
+ }, a), r = Object.assign({
2581
2685
  readonly: {
2582
2686
  description: "",
2583
2687
  title: "只读",
@@ -2598,8 +2702,8 @@ class Nn extends xn {
2598
2702
  title: "提示文本",
2599
2703
  type: "string"
2600
2704
  }
2601
- }, a);
2602
- return { ...r, properties: { ...s } };
2705
+ }, i);
2706
+ return { ...l, properties: { ...r } };
2603
2707
  }
2604
2708
  /**
2605
2709
  * 修改某一输入控件的样式后更新Form的统一布局配置
@@ -2607,50 +2711,50 @@ class Nn extends xn {
2607
2711
  * @param controlId 控件Id
2608
2712
  * @param componentId 控件所在组件id
2609
2713
  */
2610
- updateUnifiedLayoutAfterControlChanged(n, o, a) {
2611
- const r = n.split(" ");
2612
- let s = r.find((i) => /^col-([1-9]|10|11|12)$/.test(i)), f = r.find((i) => /^col-md-([1-9]|10|11|12)$/.test(i)), c = r.find((i) => /^col-xl-([1-9]|10|11|12)$/.test(i)), l = r.find((i) => /^col-el-([1-9]|10|11|12)$/.test(i));
2613
- s = s || "col-12", f = f || "col-md-" + s.replace("col-", ""), c = c || "col-xl-" + f.replace("col-md-", ""), l = l || "col-el-" + c.replace("col-xl-", "");
2614
- const g = {
2615
- id: o,
2616
- columnInSM: parseInt(s.replace("col-", ""), 10),
2617
- columnInMD: parseInt(f.replace("col-md-", ""), 10),
2618
- columnInLG: parseInt(c.replace("col-xl-", ""), 10),
2619
- columnInEL: parseInt(l.replace("col-el-", ""), 10)
2714
+ updateUnifiedLayoutAfterControlChanged(n, a, i) {
2715
+ const l = n.split(" ");
2716
+ let r = l.find((o) => /^col-([1-9]|10|11|12)$/.test(o)), d = l.find((o) => /^col-md-([1-9]|10|11|12)$/.test(o)), u = l.find((o) => /^col-xl-([1-9]|10|11|12)$/.test(o)), c = l.find((o) => /^col-el-([1-9]|10|11|12)$/.test(o));
2717
+ r = r || "col-12", d = d || "col-md-" + r.replace("col-", ""), u = u || "col-xl-" + d.replace("col-md-", ""), c = c || "col-el-" + u.replace("col-xl-", "");
2718
+ const p = {
2719
+ id: a,
2720
+ columnInSM: parseInt(r.replace("col-", ""), 10),
2721
+ columnInMD: parseInt(d.replace("col-md-", ""), 10),
2722
+ columnInLG: parseInt(u.replace("col-xl-", ""), 10),
2723
+ columnInEL: parseInt(c.replace("col-el-", ""), 10)
2620
2724
  };
2621
- this.updateUnifiedLayoutAfterResponseLayoutChanged(a, g);
2725
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(i, p);
2622
2726
  }
2623
2727
  /**
2624
2728
  * 修改控件布局配置后更新Form统一布局配置
2625
2729
  * @param componentId 组件Id
2626
2730
  * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
2627
2731
  */
2628
- updateUnifiedLayoutAfterResponseLayoutChanged(n, o) {
2629
- const { formNode: a } = this.responseLayoutEditorFunction.checkCanFindFormNode(n);
2630
- if (!a || !a.unifiedLayout)
2732
+ updateUnifiedLayoutAfterResponseLayoutChanged(n, a) {
2733
+ const { formNode: i } = this.responseLayoutEditorFunction.checkCanFindFormNode(n);
2734
+ if (!i || !i.unifiedLayout)
2631
2735
  return;
2632
- const r = [];
2633
- if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(a, r, 1), o) {
2634
- const u = r.find((m) => m.id === o.id);
2635
- Object.assign(u || {}, o);
2736
+ const l = [];
2737
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(i, l, 1), a) {
2738
+ const y = l.find((f) => f.id === a.id);
2739
+ Object.assign(y || {}, a);
2636
2740
  }
2637
- const s = r.map((u) => u.columnInSM), f = r.map((u) => u.columnInMD), c = r.map((u) => u.columnInLG), l = r.map((u) => u.columnInEL), g = this.checkIsUniqueColumn(s) ? s[0] : null, i = this.checkIsUniqueColumn(f) ? f[0] : null, d = this.checkIsUniqueColumn(c) ? c[0] : null, C = this.checkIsUniqueColumn(l) ? l[0] : null;
2638
- Object.assign(a.unifiedLayout, {
2639
- uniqueColClassInSM: g,
2640
- uniqueColClassInMD: i,
2641
- uniqueColClassInLG: d,
2642
- uniqueColClassInEL: C
2741
+ const r = l.map((y) => y.columnInSM), d = l.map((y) => y.columnInMD), u = l.map((y) => y.columnInLG), c = l.map((y) => y.columnInEL), p = this.checkIsUniqueColumn(r) ? r[0] : null, o = this.checkIsUniqueColumn(d) ? d[0] : null, s = this.checkIsUniqueColumn(u) ? u[0] : null, m = this.checkIsUniqueColumn(c) ? c[0] : null;
2742
+ Object.assign(i.unifiedLayout, {
2743
+ uniqueColClassInSM: p,
2744
+ uniqueColClassInMD: o,
2745
+ uniqueColClassInLG: s,
2746
+ uniqueColClassInEL: m
2643
2747
  });
2644
2748
  }
2645
2749
  /**
2646
2750
  * 校验宽度样式值是否一致
2647
2751
  */
2648
2752
  checkIsUniqueColumn(n) {
2649
- const o = new Set(n);
2650
- return Array.from(o).length === 1;
2753
+ const a = new Set(n);
2754
+ return Array.from(a).length === 1;
2651
2755
  }
2652
2756
  }
2653
- class Un extends Nn {
2757
+ class Vn extends Tn {
2654
2758
  constructor(t, n) {
2655
2759
  super(t, n);
2656
2760
  }
@@ -2674,41 +2778,41 @@ class Un extends Nn {
2674
2778
  });
2675
2779
  }
2676
2780
  }
2677
- function qn(e, t) {
2781
+ function Dn(e, t) {
2678
2782
  const {
2679
2783
  canAccepts: n,
2680
- checkCanDeleteComponent: o,
2681
- checkCanMoveComponent: a,
2682
- hideNestedPaddingInDesginerView: r,
2683
- onAcceptMovedChildElement: s,
2684
- resolveComponentContext: f,
2685
- triggerBelongedComponentToMoveWhenMoved: c,
2686
- triggerBelongedComponentToDeleteWhenDeleted: l
2687
- } = $n(e), g = e.schema;
2688
- function i(d, C) {
2689
- return new Un(d, t).getPropertyConfig(g, C);
2784
+ checkCanDeleteComponent: a,
2785
+ checkCanMoveComponent: i,
2786
+ hideNestedPaddingInDesginerView: l,
2787
+ onAcceptMovedChildElement: r,
2788
+ resolveComponentContext: d,
2789
+ triggerBelongedComponentToMoveWhenMoved: u,
2790
+ triggerBelongedComponentToDeleteWhenDeleted: c
2791
+ } = Mn(e), p = e.schema;
2792
+ function o(s, m) {
2793
+ return new Vn(s, t).getPropertyConfig(p, m);
2690
2794
  }
2691
2795
  return {
2692
2796
  canAccepts: n,
2693
- checkCanDeleteComponent: o,
2694
- checkCanMoveComponent: a,
2695
- hideNestedPaddingInDesginerView: r,
2696
- onAcceptMovedChildElement: s,
2697
- resolveComponentContext: f,
2698
- triggerBelongedComponentToMoveWhenMoved: c,
2699
- triggerBelongedComponentToDeleteWhenDeleted: l,
2700
- getPropsConfig: i
2797
+ checkCanDeleteComponent: a,
2798
+ checkCanMoveComponent: i,
2799
+ hideNestedPaddingInDesginerView: l,
2800
+ onAcceptMovedChildElement: r,
2801
+ resolveComponentContext: d,
2802
+ triggerBelongedComponentToMoveWhenMoved: u,
2803
+ triggerBelongedComponentToDeleteWhenDeleted: c,
2804
+ getPropsConfig: o
2701
2805
  };
2702
2806
  }
2703
- const Hn = /* @__PURE__ */ R({
2807
+ const On = /* @__PURE__ */ R({
2704
2808
  name: "FComboListDesign",
2705
- props: re,
2809
+ props: oe,
2706
2810
  emits: ["clear", "update:modelValue", "change"],
2707
2811
  setup(e, t) {
2708
- const n = v(), o = q("designer-host-service"), a = q("design-item-context"), r = qn(a, o), s = me(n, a, r);
2709
- return ee(() => {
2710
- n.value.componentInstance = s;
2711
- }), t.expose(s.value), () => h(En, {
2812
+ const n = S(), a = x("designer-host-service"), i = x("design-item-context"), l = Dn(i, a), r = ce(n, i, l);
2813
+ return Y(() => {
2814
+ n.value.componentInstance = r;
2815
+ }), t.expose(r.value), () => b(Fn, {
2712
2816
  ref: n,
2713
2817
  buttonContent: e.dropDownIcon,
2714
2818
  readonly: !0,
@@ -2718,1269 +2822,576 @@ const Hn = /* @__PURE__ */ R({
2718
2822
  enableClear: !0
2719
2823
  }, null);
2720
2824
  }
2721
- }), Gn = (e) => {
2825
+ }), Pn = (e) => {
2722
2826
  const t = e;
2723
2827
  return t.install = function(n) {
2724
2828
  n.component(t.name, e);
2725
2829
  }, e;
2726
2830
  };
2727
- G.register = (e, t, n, o) => {
2728
- e["combo-list"] = G, t["combo-list"] = we;
2831
+ q.register = (e, t, n, a) => {
2832
+ e["combo-list"] = q, t["combo-list"] = ye;
2729
2833
  };
2730
- G.registerDesigner = (e, t, n) => {
2731
- e["combo-list"] = Hn, t["combo-list"] = we;
2834
+ q.registerDesigner = (e, t, n) => {
2835
+ e["combo-list"] = On, t["combo-list"] = ye;
2732
2836
  };
2733
- const _ = Gn(G), Q = /* @__PURE__ */ R({
2837
+ const H = Pn(q), z = /* @__PURE__ */ R({
2734
2838
  name: "FOrder",
2735
- props: ae,
2839
+ props: ne,
2736
2840
  emits: ["change"],
2737
2841
  setup(e, t) {
2738
- const n = v(e.items), o = v("排序列"), a = v("排序方式"), r = v("添加排序列"), s = [{
2842
+ const n = S(e.items), a = S("排序列"), i = S("排序方式"), l = S("添加排序列"), r = [{
2739
2843
  id: "asc",
2740
2844
  name: "升序"
2741
2845
  }, {
2742
2846
  id: "desc",
2743
2847
  name: "降序"
2744
- }], f = v(/* @__PURE__ */ new Map());
2745
- function c() {
2746
- const p = n.value.map((y) => [y.id, !0]);
2747
- f.value = new Map(p);
2848
+ }], d = S(/* @__PURE__ */ new Map());
2849
+ function u() {
2850
+ const g = n.value.map((v) => [v.id, !0]);
2851
+ d.value = new Map(g);
2748
2852
  }
2749
- c();
2750
- const l = V(() => e.dataSource.map((p) => (p.disabled = f.value.has(p.id), p))), g = V(() => ({
2853
+ u();
2854
+ const c = B(() => e.dataSource.map((g) => (g.disabled = d.value.has(g.id), g))), p = B(() => ({
2751
2855
  "f-order": !0
2752
2856
  }));
2753
- function i(p) {
2754
- n.value = n.value.filter((y) => y.id !== p.id), c(), t.emit("change", n.value);
2857
+ function o(g) {
2858
+ n.value = n.value.filter((v) => v.id !== g.id), u(), t.emit("change", n.value);
2755
2859
  }
2756
- function d() {
2860
+ function s() {
2757
2861
  n.value = [...n.value, {
2758
2862
  id: Date.now().toString(),
2759
2863
  name: "",
2760
2864
  order: "asc"
2761
- }], c(), t.emit("change", n.value);
2865
+ }], u(), t.emit("change", n.value);
2762
2866
  }
2763
- function C(p) {
2764
- if (p && p.length === 1) {
2765
- const y = p[0], S = n.value.find((k) => k.id === y.id);
2766
- S && (S.name = y.name);
2867
+ function m(g) {
2868
+ if (g && g.length === 1) {
2869
+ const v = g[0], C = n.value.find((w) => w.id === v.id);
2870
+ C && (C.name = v.name);
2767
2871
  }
2768
- c(), t.emit("change", n.value);
2872
+ u(), t.emit("change", n.value);
2769
2873
  }
2770
- function u(p) {
2771
- if (p && p.length) {
2772
- const y = /* @__PURE__ */ new Map();
2773
- p.reduce((S, k) => (S.set(k.id, k), S), y), n.value = p.map((S) => y.get(S.id)), t.emit("change", n.value);
2874
+ function y(g) {
2875
+ if (g && g.length) {
2876
+ const v = /* @__PURE__ */ new Map();
2877
+ g.reduce((C, w) => (C.set(w.id, w), C), v), n.value = g.map((C) => v.get(C.id)), t.emit("change", n.value);
2774
2878
  }
2775
2879
  }
2776
- function m() {
2777
- return h(ve, {
2880
+ function f() {
2881
+ return b(fe, {
2778
2882
  style: "flex:1",
2779
2883
  data: n.value,
2780
2884
  draggable: !0,
2781
2885
  view: "DraggableView",
2782
2886
  "keep-order": !0,
2783
2887
  itemClass: "f-order-item",
2784
- onRemoveItem: i,
2785
- onChange: u
2888
+ onRemoveItem: o,
2889
+ onChange: y
2786
2890
  }, {
2787
- header: () => h("div", {
2891
+ header: () => b("div", {
2788
2892
  class: "f-order-header"
2789
- }, [h("span", {
2893
+ }, [b("span", {
2790
2894
  class: "f-order-header-order-field"
2791
- }, [o.value]), h("span", {
2895
+ }, [a.value]), b("span", {
2792
2896
  class: "f-order-header-order-type"
2793
- }, [a.value])]),
2794
- itemContent: (p) => h("div", {
2897
+ }, [i.value])]),
2898
+ itemContent: (g) => b("div", {
2795
2899
  class: "f-order-item-content"
2796
- }, [h(_, {
2900
+ }, [b(H, {
2797
2901
  class: "f-order-item-content-order-field",
2798
- data: l.value,
2902
+ data: c.value,
2799
2903
  valueField: "id",
2800
2904
  textField: "name",
2801
2905
  idField: "id",
2802
- modelValue: p.id,
2803
- "onUpdate:modelValue": (y) => p.id = y,
2804
- onChange: C,
2805
- onClear: C
2806
- }, null), h(_, {
2906
+ modelValue: g.id,
2907
+ "onUpdate:modelValue": (v) => g.id = v,
2908
+ onChange: m,
2909
+ onClear: m
2910
+ }, null), b(H, {
2807
2911
  class: "f-order-item-content-order-type",
2808
- data: s,
2912
+ data: r,
2809
2913
  valueField: "id",
2810
2914
  textField: "name",
2811
2915
  idField: "id",
2812
- modelValue: p.order,
2813
- "onUpdate:modelValue": (y) => p.order = y,
2814
- onChange: C
2916
+ modelValue: g.order,
2917
+ "onUpdate:modelValue": (v) => g.order = v,
2918
+ onChange: m
2815
2919
  }, null)]),
2816
- footer: () => h("div", {
2920
+ footer: () => b("div", {
2817
2921
  class: "f-order-footer"
2818
- }, [h(Ce, {
2922
+ }, [b(me, {
2819
2923
  type: "link",
2820
2924
  class: "f-order-add-button",
2821
- onClick: d
2925
+ onClick: s
2822
2926
  }, {
2823
- default: () => h(K, null, [h("span", {
2927
+ default: () => b(Q, null, [b("span", {
2824
2928
  class: "f-order-add-icon"
2825
- }, [h("i", {
2929
+ }, [b("i", {
2826
2930
  class: "f-icon f-icon-add"
2827
- }, null)]), r.value])
2931
+ }, null)]), l.value])
2828
2932
  })])
2829
2933
  });
2830
2934
  }
2831
- return () => h("div", {
2832
- class: g.value
2833
- }, [m()]);
2935
+ return () => b("div", {
2936
+ class: p.value
2937
+ }, [f()]);
2834
2938
  }
2835
2939
  });
2836
- function Wn(e, t, n) {
2837
- var w;
2838
- function o() {
2940
+ function En(e, t, n) {
2941
+ var M;
2942
+ function a() {
2839
2943
  n != null && n.resolveComponentContext && n.resolveComponentContext();
2840
2944
  }
2841
- o();
2842
- const a = n && n.getStyles && n.getStyles() || "", r = n && n.getDesignerClass && n.getDesignerClass() || "", s = v();
2843
- function f() {
2945
+ a();
2946
+ const i = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", r = S();
2947
+ function d() {
2844
2948
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
2845
2949
  }
2846
- function c() {
2950
+ function u() {
2847
2951
  return !1;
2848
2952
  }
2849
- function l() {
2953
+ function c() {
2850
2954
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
2851
2955
  }
2852
- function g() {
2956
+ function p() {
2853
2957
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
2854
2958
  }
2855
- function i(b) {
2856
- if (!b || !b.value)
2959
+ function o(h) {
2960
+ if (!h || !h.value)
2857
2961
  return null;
2858
- if (b.value.schema && b.value.schema.type === "component")
2859
- return b.value;
2860
- const T = v(b == null ? void 0 : b.value.parent), F = i(T);
2861
- return F || null;
2962
+ if (h.value.schema && h.value.schema.type === "component")
2963
+ return h.value;
2964
+ const k = S(h == null ? void 0 : h.value.parent), T = o(k);
2965
+ return T || null;
2862
2966
  }
2863
- function d(b = t) {
2864
- const { componentInstance: T, designerItemElementRef: F } = b;
2865
- return !T || !T.value ? null : T.value.canMove ? F : d(b.parent);
2967
+ function s(h = t) {
2968
+ const { componentInstance: k, designerItemElementRef: T } = h;
2969
+ return !k || !k.value ? null : k.value.canMove ? T : s(h.parent);
2866
2970
  }
2867
- function C(b) {
2868
- return !!n && n.canAccepts(b);
2971
+ function m(h) {
2972
+ return !!n && n.canAccepts(h);
2869
2973
  }
2870
- function u() {
2974
+ function y() {
2871
2975
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
2872
2976
  }
2873
- function m() {
2874
- }
2875
- function p(b, T) {
2876
- T && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(T);
2977
+ function f() {
2877
2978
  }
2878
- function y(b, T) {
2879
- const { componentType: F } = b;
2880
- let I = H(F, b, T);
2881
- n && n.onResolveNewComponentSchema && (I = n.onResolveNewComponentSchema(b, I));
2882
- const O = F.toLowerCase().replace("-", "_");
2883
- return I && !I.id && I.type === F && (I.id = `${O}_${Math.random().toString().slice(2, 6)}`), I;
2979
+ function g(h, k) {
2980
+ k && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(k);
2884
2981
  }
2885
- function S(b, T) {
2886
- const F = String(b.getAttribute("data-controltype")), I = b.getAttribute("data-feature"), O = I ? JSON.parse(I) : {};
2887
- O.parentComponentInstance = s.value;
2888
- let M = H(F, O);
2889
- n && n.onAcceptNewChildElement && (M = n.onAcceptNewChildElement(b, T, M));
2890
- const D = F.toLowerCase().replace("-", "_");
2891
- return M && !M.id && M.type === F && (M.id = `${D}_${Math.random().toString().slice(2, 6)}`), M;
2982
+ function v(h, k) {
2983
+ const { componentType: T } = h;
2984
+ let I = ee(T, h, k);
2985
+ n && n.onResolveNewComponentSchema && (I = n.onResolveNewComponentSchema(h, I));
2986
+ const O = T.toLowerCase().replace("-", "_");
2987
+ return I && !I.id && I.type === T && (I.id = `${O}_${Math.random().toString().slice(2, 6)}`), I;
2892
2988
  }
2893
- function k(b) {
2989
+ function C(h) {
2894
2990
  }
2895
- function j(...b) {
2991
+ function w(...h) {
2896
2992
  if (n && n.getPropsConfig)
2897
- return n.getPropsConfig(...b);
2993
+ return n.getPropsConfig(...h);
2898
2994
  }
2899
- return s.value = {
2900
- canMove: f(),
2901
- canSelectParent: c(),
2902
- canDelete: l(),
2903
- canNested: !g(),
2995
+ return r.value = {
2996
+ canMove: d(),
2997
+ canSelectParent: u(),
2998
+ canDelete: c(),
2999
+ canNested: !p(),
2904
3000
  contents: t == null ? void 0 : t.schema.contents,
2905
3001
  elementRef: e,
2906
- parent: (w = t == null ? void 0 : t.parent) == null ? void 0 : w.componentInstance,
3002
+ parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
2907
3003
  schema: t == null ? void 0 : t.schema,
2908
- styles: a,
2909
- designerClass: r,
2910
- canAccepts: C,
2911
- getBelongedComponentInstance: i,
2912
- getDraggableDesignItemElement: d,
2913
- getDraggingDisplayText: u,
2914
- getPropConfig: j,
2915
- getDragScopeElement: m,
2916
- onAcceptMovedChildElement: p,
2917
- onAcceptNewChildElement: S,
2918
- onChildElementMovedOut: k,
2919
- addNewChildComponentSchema: y,
2920
- updateDragAndDropRules: o,
2921
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || v(!1),
2922
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || v(!1)
2923
- }, s;
3004
+ styles: i,
3005
+ designerClass: l,
3006
+ canAccepts: m,
3007
+ getBelongedComponentInstance: o,
3008
+ getDraggableDesignItemElement: s,
3009
+ getDraggingDisplayText: y,
3010
+ getPropConfig: w,
3011
+ getDragScopeElement: f,
3012
+ onAcceptMovedChildElement: g,
3013
+ onChildElementMovedOut: C,
3014
+ addNewChildComponentSchema: v,
3015
+ updateDragAndDropRules: a,
3016
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || S(!1),
3017
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
3018
+ }, r;
2924
3019
  }
2925
- function _n() {
2926
- function e(t) {
2927
- var a, r;
3020
+ function An() {
3021
+ function e(t, n) {
3022
+ var r;
2928
3023
  if (!t)
2929
3024
  return !1;
2930
- const n = ((a = t.targetContainer) == null ? void 0 : a.componentInstance) && t.targetContainer.componentInstance.value;
2931
- if (!n)
3025
+ const a = ((r = t.targetContainer) == null ? void 0 : r.componentInstance) && t.targetContainer.componentInstance.value;
3026
+ if (!a)
2932
3027
  return !1;
2933
- const o = (r = n.schema.appearance) == null ? void 0 : r.class;
2934
- if (t.controlCategory === "input" || t.controlType === "form-group") {
2935
- const s = n.schema.type, f = (s === "response-form" || s === "content-container") && o && o.includes("farris-form");
2936
- if (n.schema.type !== "response-layout-item" && !f)
2937
- return !1;
2938
- }
2939
- return t.controlType !== "field-set";
3028
+ const i = a.schema.type, l = n == null ? void 0 : n.formSchemaUtils.getComponentById(a.belongedComponentId);
3029
+ return !((t.controlCategory === "input" || t.controlType === "form-group") && ![F["response-layout-item"].type, F["response-form"].type].includes(i) || (t.controlType === F.tabs.type || t.controlType === F.section.type) && ((l == null ? void 0 : l.componentType) !== "frame" || ![F["content-container"].type, F["splitter-pane"].type, F["response-layout-item"].type].includes(i)));
2940
3030
  }
2941
3031
  return {
2942
3032
  basalDragulaRuleForContainer: e
2943
3033
  };
2944
3034
  }
2945
- const zn = "https://json-schema.org/draft/2020-12/schema", Xn = "https://farris-design.gitee.io/dragging-rules.schema.json", Jn = "Dragging Rules", Qn = "The rules of designer canvas", Yn = "object", Zn = {
2946
- "f-page": {
2947
- description: "The root class of page designed by farris.",
2948
- type: "object",
2949
- properties: {
2950
- contents: {
2951
- type: "object",
2952
- properties: {
2953
- "f-page-header": {
2954
- description: "The class of page header designed by farris.",
2955
- type: "string"
2956
- },
2957
- "f-page-main": {
2958
- description: "The class of page body designed by farris.",
2959
- type: "object",
2960
- properties: {
2961
- contents: {
2962
- type: "object",
2963
- properties: {
2964
- "f-struct-like-card": {
2965
- description: "",
2966
- type: "object",
2967
- properties: {
2968
- contents: {
2969
- type: "object",
2970
- properties: {
2971
- "f-struct-form": {
2972
- description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
2973
- type: "object",
2974
- properties: {
2975
- contents: {
2976
- type: "object",
2977
- properties: {
2978
- "f-section-form": {
2979
- description: "The class of section which has wrapped a reponse-form component.",
2980
- type: "object",
2981
- properties: {
2982
- contents: {
2983
- type: "object",
2984
- properties: {
2985
- "f-form-layout": {
2986
- description: "The class of reponse form",
2987
- type: "object",
2988
- properties: {
2989
- rules: {
2990
- type: "object",
2991
- properties: {
2992
- canAccept: {
2993
- type: "boolean",
2994
- const: !0
2995
- },
2996
- fixed: {
2997
- type: "boolean",
2998
- const: !0
2999
- },
3000
- hidePadding: {
3001
- type: "boolean",
3002
- const: !1
3003
- }
3004
- }
3005
- }
3006
- }
3007
- }
3008
- }
3009
- },
3010
- rules: {
3011
- type: "object",
3012
- properties: {
3013
- canAccept: {
3014
- type: "boolean",
3015
- const: !1
3016
- },
3017
- fixed: {
3018
- type: "boolean",
3019
- const: !0
3020
- },
3021
- hidePadding: {
3022
- type: "boolean",
3023
- const: !0
3024
- }
3025
- }
3026
- }
3027
- }
3028
- }
3029
- }
3030
- },
3031
- rules: {
3032
- type: "object",
3033
- properties: {
3034
- canAccept: {
3035
- type: "boolean",
3036
- const: !1
3037
- },
3038
- fixed: {
3039
- type: "boolean",
3040
- const: !1
3041
- },
3042
- hidePadding: {
3043
- type: "boolean",
3044
- const: !0
3045
- }
3046
- }
3047
- }
3048
- }
3049
- },
3050
- "f-struct-wrapper": {
3051
- description: "",
3052
- type: "object",
3053
- properties: {
3054
- contents: {
3055
- type: "object",
3056
- properties: {
3057
- "f-section-tabs": {
3058
- description: "The class of section which has wrapped sub-grid tabs.",
3059
- type: "object",
3060
- properties: {
3061
- contents: {
3062
- type: "object",
3063
- properties: {
3064
- "f-tabs-in-card": {
3065
- description: "The class of tabs which contains sub-grid.",
3066
- type: "object",
3067
- properties: {
3068
- contents: {
3069
- type: "object",
3070
- properties: {
3071
- "f-struct-data-grid-in-card": {
3072
- description: "The class of sub-grid component",
3073
- type: "object",
3074
- properties: {
3075
- contents: {
3076
- type: "object",
3077
- properties: {
3078
- "f-grid-is-sub": {
3079
- description: "The class of sub-grid",
3080
- type: "object",
3081
- properties: {
3082
- rules: {
3083
- type: "object",
3084
- properties: {
3085
- canAccept: {
3086
- type: "boolean",
3087
- const: !0
3088
- },
3089
- fixed: {
3090
- type: "boolean",
3091
- const: !0
3092
- },
3093
- hidePadding: {
3094
- type: "boolean",
3095
- const: !1
3096
- }
3097
- }
3098
- }
3099
- }
3100
- }
3101
- }
3102
- },
3103
- rules: {
3104
- type: "object",
3105
- properties: {
3106
- canAccept: {
3107
- type: "boolean",
3108
- const: !1
3109
- },
3110
- fixed: {
3111
- type: "boolean",
3112
- const: !1
3113
- },
3114
- hidePadding: {
3115
- type: "boolean",
3116
- const: !0
3117
- }
3118
- }
3119
- }
3120
- }
3121
- }
3122
- }
3123
- },
3124
- rules: {
3125
- type: "object",
3126
- properties: {
3127
- canAccept: {
3128
- type: "boolean",
3129
- const: !1
3130
- },
3131
- fixed: {
3132
- type: "boolean",
3133
- const: !0
3134
- },
3135
- hidePadding: {
3136
- type: "boolean",
3137
- const: !0
3138
- }
3139
- }
3140
- }
3141
- }
3142
- }
3143
- }
3144
- },
3145
- rules: {
3146
- type: "object",
3147
- properties: {
3148
- canAccept: {
3149
- type: "boolean",
3150
- const: !1
3151
- },
3152
- fixed: {
3153
- type: "boolean",
3154
- const: !0
3155
- },
3156
- hidePadding: {
3157
- type: "boolean",
3158
- const: !0
3159
- }
3160
- }
3161
- }
3162
- }
3163
- },
3164
- "f-section-in-main": {
3165
- description: "The class of section which has wrapped a reponse-form component.",
3166
- type: "object",
3167
- properties: {
3168
- rules: {
3169
- type: "object",
3170
- properties: {
3171
- canAccept: {
3172
- type: "boolean",
3173
- const: !0
3174
- },
3175
- fixed: {
3176
- type: "boolean",
3177
- const: !0
3178
- },
3179
- hidePadding: {
3180
- type: "boolean",
3181
- const: !1
3182
- }
3183
- }
3184
- }
3185
- }
3186
- }
3187
- }
3188
- },
3189
- rules: {
3190
- type: "object",
3191
- properties: {
3192
- canAccept: {
3193
- type: "boolean",
3194
- const: !1
3195
- },
3196
- fixed: {
3197
- type: "boolean",
3198
- const: !1
3199
- },
3200
- hidePadding: {
3201
- type: "boolean",
3202
- const: !0
3203
- }
3204
- }
3205
- }
3206
- }
3207
- }
3208
- }
3209
- },
3210
- rules: {
3211
- type: "object",
3212
- properties: {
3213
- canAccept: {
3214
- type: "boolean",
3215
- const: !0
3216
- },
3217
- fixed: {
3218
- type: "boolean",
3219
- const: !0
3220
- },
3221
- hidePadding: {
3222
- type: "object",
3223
- const: {
3224
- allOf: [
3225
- {
3226
- sibling: 0,
3227
- parent: {
3228
- "f-page-main": !0
3229
- }
3230
- }
3231
- ]
3232
- }
3233
- }
3234
- }
3235
- }
3236
- }
3237
- },
3238
- "f-struct-data-grid": {
3239
- description: "",
3240
- type: "object",
3241
- properties: {
3242
- rules: {
3243
- type: "object",
3244
- properties: {
3245
- canAccept: {
3246
- type: "object",
3247
- const: !0
3248
- },
3249
- fixed: {
3250
- type: "boolean",
3251
- const: !0
3252
- },
3253
- hidePadding: {
3254
- type: "boolean",
3255
- const: !0
3256
- }
3257
- }
3258
- }
3259
- }
3260
- },
3261
- "f-page-main-content": {
3262
- description: "",
3263
- type: "object",
3264
- properties: {
3265
- contents: {
3266
- type: "object",
3267
- properties: {
3268
- "f-page-content-nav": {
3269
- description: "",
3270
- type: "object",
3271
- properties: {
3272
- contents: {
3273
- type: "object",
3274
- properties: {
3275
- "f-struct-data-grid-in-nav": {
3276
- description: "",
3277
- type: "object",
3278
- properties: {
3279
- contents: {
3280
- type: "object",
3281
- properties: {
3282
- "f-page-content-nav-extend": {
3283
- description: "",
3284
- type: "object"
3285
- },
3286
- "f-section-in-nav": {
3287
- description: "",
3288
- type: "object",
3289
- properties: {
3290
- rules: {
3291
- type: "object",
3292
- properties: {
3293
- canAccept: {
3294
- type: "boolean",
3295
- const: !1
3296
- },
3297
- fixed: {
3298
- type: "boolean",
3299
- const: !0
3300
- },
3301
- hidePadding: {
3302
- type: "boolean",
3303
- const: !1
3304
- }
3305
- }
3306
- }
3307
- }
3308
- }
3309
- }
3310
- },
3311
- rules: {
3312
- type: "object",
3313
- properties: {
3314
- canAccept: {
3315
- type: "boolean",
3316
- const: !0
3317
- },
3318
- fixed: {
3319
- type: "boolean",
3320
- const: !1
3321
- },
3322
- hidePadding: {
3323
- type: "boolean",
3324
- const: !0
3325
- }
3326
- }
3327
- }
3328
- }
3329
- }
3330
- }
3331
- }
3332
- }
3333
- },
3334
- "f-page-content-main": {
3335
- description: "",
3336
- type: "object",
3337
- properties: {}
3338
- }
3339
- }
3340
- }
3341
- }
3342
- },
3343
- "f-page-content": {
3344
- description: "",
3345
- type: "object",
3346
- properties: {
3347
- contents: {
3348
- type: "object",
3349
- properties: {
3350
- "f-page-content-nav": {
3351
- description: "",
3352
- type: "object",
3353
- properties: {
3354
- contents: {
3355
- type: "object",
3356
- properties: {
3357
- "f-list-nav": {
3358
- description: "",
3359
- type: "object"
3360
- },
3361
- "f-list-nav-left": {
3362
- description: "",
3363
- type: "object"
3364
- },
3365
- "f-struct-data-grid-in-nav": {
3366
- description: "",
3367
- type: "object",
3368
- properties: {
3369
- contents: {
3370
- type: "object",
3371
- properties: {
3372
- "f-section-form": {
3373
- description: "",
3374
- type: "object",
3375
- properties: {
3376
- rules: {
3377
- type: "object",
3378
- properties: {
3379
- canAccept: {
3380
- type: "boolean",
3381
- const: !1
3382
- },
3383
- fixed: {
3384
- type: "boolean",
3385
- const: !0
3386
- },
3387
- hidePadding: {
3388
- type: "boolean",
3389
- const: !0
3390
- }
3391
- }
3392
- }
3393
- }
3394
- },
3395
- "f-section-grid": {
3396
- description: "",
3397
- type: "object",
3398
- properties: {
3399
- rules: {
3400
- type: "object",
3401
- properties: {
3402
- canAccept: {
3403
- type: "boolean",
3404
- const: !1
3405
- },
3406
- fixed: {
3407
- type: "boolean",
3408
- const: !0
3409
- },
3410
- hidePadding: {
3411
- type: "boolean",
3412
- const: !0
3413
- }
3414
- }
3415
- }
3416
- }
3417
- }
3418
- }
3419
- },
3420
- rules: {
3421
- type: "object",
3422
- properties: {
3423
- canAccept: {
3424
- type: "boolean",
3425
- const: !1
3426
- },
3427
- fixed: {
3428
- type: "boolean",
3429
- const: !0
3430
- },
3431
- hidePadding: {
3432
- type: "boolean",
3433
- const: !0
3434
- }
3435
- }
3436
- }
3437
- }
3438
- }
3439
- }
3440
- }
3441
- },
3442
- rules: {
3443
- type: "object",
3444
- properties: {
3445
- canAccept: {
3446
- type: "boolean",
3447
- const: !1
3448
- },
3449
- fixed: {
3450
- type: "boolean",
3451
- const: !0
3452
- },
3453
- hidePadding: {
3454
- type: "boolean",
3455
- const: !0
3456
- }
3457
- }
3458
- }
3459
- },
3460
- "f-page-content-main": {
3461
- description: "",
3462
- type: "object",
3463
- properties: {
3464
- rules: {
3465
- type: "object",
3466
- properties: {
3467
- canAccept: {
3468
- type: "boolean",
3469
- const: !1
3470
- },
3471
- fixed: {
3472
- type: "boolean",
3473
- const: !1
3474
- },
3475
- hidePadding: {
3476
- type: "boolean",
3477
- const: !0
3478
- }
3479
- }
3480
- }
3481
- }
3482
- }
3483
- }
3484
- },
3485
- rules: {
3486
- type: "object",
3487
- properties: {
3488
- canAccept: {
3489
- type: "boolean",
3490
- const: !1
3491
- },
3492
- fixed: {
3493
- type: "boolean",
3494
- const: !0
3495
- },
3496
- hidePadding: {
3497
- type: "boolean",
3498
- const: !0
3499
- }
3500
- }
3501
- }
3502
- }
3503
- }
3504
- }
3505
- },
3506
- rules: {
3507
- type: "object",
3508
- properties: {
3509
- canAccept: {
3510
- type: "object",
3511
- const: {
3512
- anyOf: [
3513
- {
3514
- children: 0
3515
- },
3516
- {
3517
- children: {
3518
- length: {
3519
- not: 1
3520
- },
3521
- "f-struct-like-card": !0
3522
- }
3523
- },
3524
- {
3525
- children: {
3526
- "scroll-spy": !1,
3527
- "f-page-content": !1,
3528
- "f-struct-like-card": !1
3529
- }
3530
- }
3531
- ]
3532
- }
3533
- },
3534
- fixed: {
3535
- type: "boolean",
3536
- const: !0
3537
- },
3538
- hidePadding: {
3539
- type: "boolean",
3540
- const: !0
3541
- }
3542
- }
3543
- }
3544
- }
3545
- },
3546
- "f-page-footer": {
3547
- description: "The class of page footer designed by farris.",
3548
- type: "string"
3035
+ class $n {
3036
+ getTemplateRule(t, n) {
3037
+ const a = n == null ? void 0 : n.formSchemaUtils, i = a == null ? void 0 : a.getFormTemplateRule(), l = { canAccept: !0, canDelete: !0, canMove: !0 };
3038
+ if (!i)
3039
+ return l;
3040
+ const r = this.getComponentContext(t);
3041
+ return r.componentClassList.forEach((u) => {
3042
+ if (!u || !i[u])
3043
+ return;
3044
+ const { canMove: c, canDelete: p, canAccept: o } = i[u];
3045
+ l.canMove = l.canMove && this.resolveRuleValue(c, r), l.canDelete = l.canDelete && this.resolveRuleValue(p, r), l.canAccept = l.canAccept && this.resolveRuleValue(o, r);
3046
+ }), l;
3047
+ }
3048
+ resolveRuleValue(t, n) {
3049
+ return typeof t == "boolean" ? t : this.parseRuleValueSchema(t, n);
3050
+ }
3051
+ parseRuleValueSchema(t, n) {
3052
+ const a = t.invalidContext || [];
3053
+ let i = !0;
3054
+ for (const l of a) {
3055
+ if (l.firstLevelChild) {
3056
+ if (l.firstLevelChild.class) {
3057
+ const r = n.firstLevelChildClassList;
3058
+ if (r && !r.includes(l.firstLevelChild.class)) {
3059
+ i = !1;
3060
+ continue;
3549
3061
  }
3550
3062
  }
3551
- },
3552
- rules: {
3553
- type: "object",
3554
- properties: {
3555
- canAccept: {
3556
- type: "boolean",
3557
- const: !1
3558
- },
3559
- fixed: {
3560
- type: "boolean",
3561
- const: !0
3562
- },
3563
- hidePadding: {
3564
- type: "boolean",
3565
- const: !0
3063
+ if (l.firstLevelChild.type) {
3064
+ const r = n.firstLevelChildSchema;
3065
+ if (r && r.type !== l.firstLevelChild.type) {
3066
+ i = !1;
3067
+ continue;
3566
3068
  }
3567
3069
  }
3568
3070
  }
3071
+ if (l.secondLevelChild) {
3072
+ if (l.secondLevelChild.class) {
3073
+ const r = n.secondLevelChildClassList;
3074
+ if (r && !r.includes(l.secondLevelChild.class)) {
3075
+ i = !1;
3076
+ continue;
3077
+ }
3078
+ }
3079
+ if (l.secondLevelChild.type) {
3080
+ const r = n.secondLevelChildSchema;
3081
+ if (r && r.type !== l.secondLevelChild.type) {
3082
+ i = !1;
3083
+ continue;
3084
+ }
3085
+ }
3086
+ }
3087
+ if (l.parent) {
3088
+ if (l.parent.class) {
3089
+ const r = n.parentClassList;
3090
+ if (r && !r.includes(l.parent.class)) {
3091
+ i = !1;
3092
+ continue;
3093
+ }
3094
+ }
3095
+ if (l.parent.type) {
3096
+ const r = n.parentSchema;
3097
+ if (r && r.type !== l.parent.type) {
3098
+ i = !1;
3099
+ continue;
3100
+ }
3101
+ }
3102
+ }
3103
+ i = !0;
3104
+ break;
3569
3105
  }
3570
- },
3571
- "f-page-is-managelist": {
3572
- description: "The root class of mangement list page.",
3573
- type: "string"
3574
- },
3575
- "f-page-card": {
3576
- description: "",
3577
- type: "object"
3578
- },
3579
- "f-page-is-mainsubcard": {
3580
- description: "",
3581
- type: "object"
3582
- }
3583
- }, Kn = {
3584
- $schema: zn,
3585
- $id: Xn,
3586
- title: Jn,
3587
- description: Qn,
3588
- type: Yn,
3589
- properties: Zn
3590
- }, Y = /* @__PURE__ */ new Map();
3591
- function eo() {
3592
- function e(u, m, p, y) {
3593
- var S;
3594
- if (typeof p == "number")
3595
- return ((S = y[u]) == null ? void 0 : S.length) === p;
3596
- if (typeof p == "object") {
3597
- const k = Object.keys(p)[0], j = p[k];
3598
- if (k === "not")
3599
- return Number(y[u].length) !== Number(j);
3600
- if (k === "moreThan")
3601
- return Number(y[u].length) >= Number(j);
3602
- if (k === "lessThan")
3603
- return Number(y[u].length) <= Number(j);
3604
- }
3605
- return !1;
3606
- }
3607
- function t(u, m, p, y) {
3608
- return typeof p == "boolean" ? y.childrenClassList.includes(m) === !!p : !1;
3609
- }
3610
- function n(u, m, p, y) {
3611
- return typeof p == "boolean" ? y.parentClassList.includes(m) === !!p : !1;
3612
- }
3613
- function o(u, m, p, y) {
3614
- return typeof p == "boolean" ? y.parentClassList.includes(m) === !!p : !1;
3615
- }
3616
- const a = /* @__PURE__ */ new Map([
3617
- ["length", e],
3618
- ["hasChildren", t],
3619
- ["hasSibling", o],
3620
- ["hasParent", n]
3621
- ]);
3622
- function r(u, m) {
3623
- const p = u;
3624
- return typeof m == "number" ? [{ target: p, operator: "length", param: null, value: Number(m) }] : typeof m == "object" ? Object.keys(m).map((y) => {
3625
- if (y === "length")
3626
- return { target: p, operator: "length", param: null, value: m[y] };
3627
- const S = y, k = m[y];
3628
- return { target: p, operator: u === "children" ? "hasChildren" : u === "parent" ? "hasParent" : "hasSibling", param: S, value: k };
3629
- }) : [];
3630
- }
3631
- function s(u, m) {
3632
- if (a.has(u.operator)) {
3633
- const p = a.get(u.operator);
3634
- return p && p(u.target, u.param, u.value, m) || !1;
3635
- }
3636
- return !1;
3106
+ return !i;
3637
3107
  }
3638
- function f(u, m) {
3639
- return Object.keys(u).reduce((k, j) => {
3640
- const w = r(j, u[j]);
3641
- return k.push(...w), k;
3642
- }, []).reduce((k, j) => k && s(j, m), !0);
3643
- }
3644
- function c(u, m) {
3645
- const p = Object.keys(u), y = p.includes("allOf"), S = p.includes("anyOf"), k = y || S, b = (k ? u[k ? y ? "allOf" : "anyOf" : "allOf"] : [u]).map((F) => f(F, m));
3646
- return y ? !b.includes(!1) : b.includes(!0);
3647
- }
3648
- function l(u, m) {
3649
- const p = u.const;
3650
- return p ? typeof p == "boolean" ? p : typeof p == "object" ? c(p, m) : !1 : !1;
3651
- }
3652
- function g(u) {
3653
- return (m) => {
3654
- const p = { canAccept: !0, fixed: !1, hidePadding: !1 };
3655
- return u && u.properties && Object.keys(u.properties).reduce((y, S) => {
3656
- const k = u.properties[S];
3657
- return y[S] = l(k, m), y;
3658
- }, p), p;
3108
+ getComponentContext(t) {
3109
+ var f, g, v, C;
3110
+ const n = t.schema, a = n.appearance && n.appearance.class || "", i = a.split(" ") || [], l = n.contents || [], r = l.length ? l[0] : null, d = r && r.appearance ? r.appearance.class : "", u = d ? d.split(" ") : [], c = (f = r == null ? void 0 : r.contents) != null && f.length ? r == null ? void 0 : r.contents[0] : null, p = c && c.appearance ? c.appearance.class : "", o = p ? p.split(" ") : [], s = n.type === "component" ? (v = (g = t.parent) == null ? void 0 : g.parent) == null ? void 0 : v.schema : (C = t.parent) == null ? void 0 : C.schema, m = s && s.appearance && s.appearance.class || "", y = m ? m.split(" ") : [];
3111
+ return {
3112
+ componentClass: a,
3113
+ componentClassList: i,
3114
+ childContents: l,
3115
+ firstLevelChildSchema: r,
3116
+ firstLevelChildClass: d,
3117
+ firstLevelChildClassList: u,
3118
+ secondLevelChildSchema: c,
3119
+ secondLevelChildClass: p,
3120
+ secondLevelChildClassList: o,
3121
+ parentSchema: s,
3122
+ parentClass: m,
3123
+ parentClassList: y
3659
3124
  };
3660
3125
  }
3661
- function i(u, m, p) {
3662
- if (m.type === "object" && m.properties) {
3663
- const { rules: y, contents: S } = m.properties;
3664
- p.set(u, g(y)), S && Object.keys(S.properties).forEach(
3665
- (k) => i(k, S.properties[k], p)
3666
- );
3667
- }
3668
- }
3669
- function d() {
3670
- const { properties: u } = Kn;
3671
- Object.keys(u).forEach((m) => {
3672
- i(m, u[m], Y);
3673
- });
3674
- }
3675
- function C(u, m) {
3676
- const p = { canAccept: !0, fixed: !1, hidePadding: !0 };
3677
- return Y.has(u) ? Y.get(u)(m) : p;
3678
- }
3679
- return d(), { getRuleValue: C };
3680
3126
  }
3681
- function to(e, t) {
3682
- function n(c, l = null) {
3683
- if (l) return l;
3684
- const g = e.getComponentById(t);
3685
- return e.selectNode(g, (i) => i.id === c);
3686
- }
3687
- function o(c) {
3688
- const l = e.getComponentById(c);
3689
- return !(!l || !l.componentType || !l.componentType.startsWith("form"));
3690
- }
3691
- function a(c) {
3692
- const l = n(c.id), g = ye(e), i = [];
3693
- g.getResonseFormLayoutConfig(l, i, 1);
3694
- const d = i.map((j) => j.columnInSM), C = i.map((j) => j.columnInMD), u = i.map((j) => j.columnInLG), m = i.map((j) => j.columnInEL), p = r(d) ? d[0] : 0, y = r(C) ? C[0] : 0, S = r(u) ? u[0] : 0, k = r(m) ? m[0] : 0;
3127
+ function jn(e, t) {
3128
+ function n(u, c = null) {
3129
+ if (c) return c;
3130
+ const p = e.getComponentById(t);
3131
+ return e.selectNode(p, (o) => o.id === u);
3132
+ }
3133
+ function a(u) {
3134
+ const c = e.getComponentById(u);
3135
+ return !(!c || !c.componentType || !c.componentType.startsWith("form"));
3136
+ }
3137
+ function i(u) {
3138
+ const c = n(u.id), p = Ce(e), o = [];
3139
+ p.getResonseFormLayoutConfig(c, o, 1);
3140
+ const s = o.map((M) => M.columnInSM), m = o.map((M) => M.columnInMD), y = o.map((M) => M.columnInLG), f = o.map((M) => M.columnInEL), g = l(s) ? s[0] : 0, v = l(m) ? m[0] : 0, C = l(y) ? y[0] : 0, w = l(f) ? f[0] : 0;
3695
3141
  return {
3696
- uniqueColClassInSM: p,
3697
- uniqueColClassInMD: y,
3698
- uniqueColClassInLG: S,
3699
- uniqueColClassInEL: k
3142
+ uniqueColClassInSM: g,
3143
+ uniqueColClassInMD: v,
3144
+ uniqueColClassInLG: C,
3145
+ uniqueColClassInEL: w
3700
3146
  };
3701
3147
  }
3702
- function r(c) {
3703
- const l = new Set(c);
3704
- return Array.from(l).length === 1;
3148
+ function l(u) {
3149
+ const c = new Set(u);
3150
+ return Array.from(c).length === 1;
3705
3151
  }
3706
- function s(c, l, g) {
3707
- c = n(g, c), c.contents.forEach((i) => {
3708
- if (i.type === tt.fieldset.type) {
3709
- s(i, l, i.id);
3152
+ function r(u, c, p) {
3153
+ u = n(p, u), u.contents.forEach((o) => {
3154
+ if (o.type === J.fieldset.type) {
3155
+ r(o, c, o.id);
3710
3156
  return;
3711
3157
  }
3712
- i.appearance || (i.appearance = {});
3713
- const d = i.appearance.class;
3714
- i.appearance.class = f(d, l);
3158
+ o.appearance || (o.appearance = {});
3159
+ const s = o.appearance.class;
3160
+ o.appearance.class = d(s, c);
3715
3161
  });
3716
3162
  }
3717
- function f(c, l) {
3718
- let g, i, d, C, u = [];
3719
- if (c) {
3720
- const j = c.split(" "), w = j.filter((b) => b.startsWith("col-"));
3721
- g = w.find((b) => /^col-([1-9]|10|11|12)$/.test(b)), i = w.find((b) => /^col-md-([1-9]|10|11|12)$/.test(b)), d = w.find((b) => /^col-xl-([1-9]|10|11|12)$/.test(b)), C = w.find((b) => /^col-el-([1-9]|10|11|12)$/.test(b)), u = j.filter((b) => !b.startsWith("col-"));
3163
+ function d(u, c) {
3164
+ let p, o, s, m, y = [];
3165
+ if (u) {
3166
+ const M = u.split(" "), h = M.filter((k) => k.startsWith("col-"));
3167
+ p = h.find((k) => /^col-([1-9]|10|11|12)$/.test(k)), o = h.find((k) => /^col-md-([1-9]|10|11|12)$/.test(k)), s = h.find((k) => /^col-xl-([1-9]|10|11|12)$/.test(k)), m = h.find((k) => /^col-el-([1-9]|10|11|12)$/.test(k)), y = M.filter((k) => !k.startsWith("col-"));
3722
3168
  }
3723
- const m = l.uniqueColClassInSM ? "col-" + l.uniqueColClassInSM : g, p = l.uniqueColClassInMD ? "col-md-" + l.uniqueColClassInMD : i, y = l.uniqueColClassInLG ? "col-xl-" + l.uniqueColClassInLG : d, S = l.uniqueColClassInEL ? "col-el-" + l.uniqueColClassInEL : C;
3724
- return [m, p, y, S].concat(u).join(" ");
3169
+ const f = c.uniqueColClassInSM ? "col-" + c.uniqueColClassInSM : p, g = c.uniqueColClassInMD ? "col-md-" + c.uniqueColClassInMD : o, v = c.uniqueColClassInLG ? "col-xl-" + c.uniqueColClassInLG : s, C = c.uniqueColClassInEL ? "col-el-" + c.uniqueColClassInEL : m;
3170
+ return [f, g, v, C].concat(y).join(" ");
3725
3171
  }
3726
- return { checkIsInFormComponent: o, assembleUnifiedLayoutContext: a, changeFormControlsByUnifiedLayoutConfig: s };
3172
+ return { checkIsInFormComponent: a, assembleUnifiedLayoutContext: i, changeFormControlsByUnifiedLayoutConfig: r };
3727
3173
  }
3728
- class no extends et {
3174
+ class Nn extends ve {
3729
3175
  constructor(t, n) {
3730
3176
  super(t, n);
3731
3177
  }
3732
3178
  getPropertyConfig(t, n) {
3733
- var o = this;
3179
+ var a = this;
3734
3180
  this.propertyConfig.categories.basic = this.getBasicPropConfig(t);
3735
- const { checkIsInFormComponent: a, assembleUnifiedLayoutContext: r, changeFormControlsByUnifiedLayoutConfig: s } = to(this.formSchemaUtils, this.componentId), f = this.getAppearanceConfig(t);
3736
- return f.properties.unifiedLayout = {
3181
+ const { checkIsInFormComponent: i, assembleUnifiedLayoutContext: l, changeFormControlsByUnifiedLayoutConfig: r } = jn(this.formSchemaUtils, this.componentId), d = this.getAppearanceConfig(t);
3182
+ return d.properties.unifiedLayout = {
3737
3183
  title: "统一布局配置",
3738
3184
  description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
3739
- visible: a(this.componentId),
3185
+ visible: i(this.componentId),
3740
3186
  refreshPanelAfterChanged: !0,
3741
3187
  editor: {
3742
3188
  type: "response-form-layout-setting",
3743
- initialState: r(t)
3189
+ initialState: l(t)
3744
3190
  }
3745
- }, f.setPropertyRelates = function(c, l) {
3746
- if (c)
3747
- switch (c && c.propertyID) {
3191
+ }, d.setPropertyRelates = function(u, c) {
3192
+ if (u)
3193
+ switch (u && u.propertyID) {
3748
3194
  case "unifiedLayout": {
3749
- s(null, c.propertyValue, t.id), o.updateElementByParentContainer(t.id, n);
3195
+ r(null, u.propertyValue, t.id), a.updateElementByParentContainer(t.id, n);
3750
3196
  break;
3751
3197
  }
3752
3198
  }
3753
- }, this.propertyConfig.categories.appearance = f, this.propertyConfig;
3199
+ }, this.propertyConfig.categories.appearance = d, this.propertyConfig;
3754
3200
  }
3755
3201
  }
3756
- function oo(e, t) {
3757
- var F;
3758
- const n = e.schema, o = (F = e.parent) == null ? void 0 : F.schema, a = eo(), r = v(!1), s = v(!1);
3759
- let f = !0, c = !1, l, g = !1;
3760
- function i(I) {
3761
- return l && l.componentClassList && l.componentClassList.includes("f-form-layout") && l.componentClassList.includes("farris-form") ? I.sourceType === "control" && I.controlCategory === "input" || I.sourceType === "move" && I.controlType === "form-group" : !0;
3202
+ function Rn(e, t) {
3203
+ const n = e.schema, a = new $n(), { canMove: i, canAccept: l, canDelete: r } = a.getTemplateRule(e, t);
3204
+ function d(C) {
3205
+ const w = a.getComponentContext(e);
3206
+ return w && w.componentClassList && w.componentClassList.includes("f-form-layout") && w.componentClassList.includes("farris-form") ? C.sourceType === "control" && C.controlCategory === "input" || C.sourceType === "move" && C.controlType === "form-group" : !0;
3762
3207
  }
3763
- function d(I) {
3764
- return !(!_n().basalDragulaRuleForContainer(I) || !f || !i(I));
3208
+ function u(C) {
3209
+ return !(!An().basalDragulaRuleForContainer(C, t) || !l || !d(C));
3765
3210
  }
3766
- function C() {
3767
- r.value = !1, s.value = !1;
3768
- const I = n, O = I.appearance && I.appearance.class || "", M = O.split(" "), D = I.contents || [], P = D.length ? D[0] : null, L = P && P.appearance ? P.appearance.class : "", E = L ? L.split(" ") : [], A = D.length ? D.reduce((ie, J) => {
3769
- const le = J && J.appearance ? J.appearance.class : "", Be = le ? le.split(" ") : [];
3770
- return ie.push(...Be), ie;
3771
- }, []) : [], $ = o, X = $ && $.appearance && $.appearance.class || "", Fe = X ? X.split(" ") : [];
3772
- l = {
3773
- componentClass: O,
3774
- componentClassList: M,
3775
- childContents: D,
3776
- firstChildContent: P,
3777
- firstChildClass: L,
3778
- firstChildClassList: E,
3779
- parent: $,
3780
- parentClass: X,
3781
- parentClassList: Fe,
3782
- children: D,
3783
- childrenClassList: A
3784
- };
3785
- const { canAccept: Ie, fixed: Me, hidePadding: je } = a.getRuleValue(M[0], l);
3786
- return f = Ie, c = je, g = Me, !0;
3211
+ function c(C) {
3212
+ X();
3787
3213
  }
3788
- function u(I) {
3789
- Z();
3790
- }
3791
- function m() {
3214
+ function p() {
3792
3215
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
3793
3216
  }
3794
- function p(I, O) {
3217
+ function o(C, w) {
3795
3218
  const M = n;
3796
3219
  if ((M.appearance && M.appearance.class || "").split(" ").includes("f-form-layout")) {
3797
- const { label: L } = I, E = H("form-group");
3798
- return E.editor = O, E.label = L, y(E), delete E.editor.id, delete E.editor.binding, delete E.editor.appearance, delete E.editor.visible, E;
3220
+ const { label: T } = C, I = ee("form-group");
3221
+ return I.editor = w, I.label = T, s(I), delete I.editor.id, delete I.editor.binding, delete I.editor.appearance, delete I.editor.visible, I;
3799
3222
  }
3800
- return O;
3801
- }
3802
- function y(I) {
3803
- const O = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
3804
- if (O && O.schema && O.schema.componentType) {
3805
- const M = O.schema.formColumns;
3806
- let D = S(M);
3807
- D = t.formSchemaUtils.getControlClassByFormUnifiedLayout(D, "", e.schema), I.appearance || (I.appearance = {}), I.appearance.class = D;
3223
+ return w;
3224
+ }
3225
+ function s(C) {
3226
+ const w = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
3227
+ if (w && w.schema && w.schema.componentType) {
3228
+ const M = w.schema.formColumns;
3229
+ let h = m(M);
3230
+ h = t == null ? void 0 : t.formSchemaUtils.getControlClassByFormUnifiedLayout(h, "", e.schema), C.appearance || (C.appearance = {}), C.appearance.class = h;
3808
3231
  }
3809
3232
  }
3810
- function S(I) {
3811
- let O = "";
3812
- switch (I) {
3233
+ function m(C) {
3234
+ let w = "";
3235
+ switch (C) {
3813
3236
  case 1: {
3814
- O = "col-12 col-md-12 col-xl-12 col-el-12";
3237
+ w = "col-12";
3815
3238
  break;
3816
3239
  }
3817
3240
  case 2: {
3818
- O = "col-12 col-md-6 col-xl-6 col-el-6";
3241
+ w = "col-12 col-md-6 col-xl-6 col-el-6";
3819
3242
  break;
3820
3243
  }
3821
3244
  case 3: {
3822
- O = "col-12 col-md-6 col-xl-4 col-el-4";
3245
+ w = "col-12 col-md-6 col-xl-4 col-el-4";
3823
3246
  break;
3824
3247
  }
3825
3248
  case 4: {
3826
- O = "col-12 col-md-6 col-xl-3 col-el-2";
3249
+ w = "col-12 col-md-6 col-xl-3 col-el-2";
3827
3250
  break;
3828
3251
  }
3829
3252
  }
3830
- return O;
3253
+ return w;
3831
3254
  }
3832
- function k(I, O, M) {
3833
- const D = n;
3834
- if ((D.appearance && D.appearance.class || "").split(" ").includes("f-form-layout")) {
3835
- const E = String(I.innerText), A = H("form-group");
3836
- return A.editor = M, A.label = E, A;
3837
- }
3838
- return M;
3255
+ function y() {
3256
+ return i;
3839
3257
  }
3840
- function j() {
3841
- return !g;
3842
- }
3843
- function w() {
3844
- return !g;
3258
+ function f() {
3259
+ return r;
3845
3260
  }
3846
- function b() {
3847
- return c;
3261
+ function g() {
3262
+ return !1;
3848
3263
  }
3849
- function T(I) {
3850
- return new no(I, t).getPropertyConfig(n, e.componentInstance.value);
3264
+ function v(C) {
3265
+ return new Nn(C, t).getPropertyConfig(n, e.componentInstance.value);
3851
3266
  }
3852
3267
  return {
3853
- canAccepts: d,
3854
- checkCanDeleteComponent: w,
3855
- checkCanMoveComponent: j,
3856
- getStyles: m,
3857
- getPropsConfig: T,
3858
- hideNestedPaddingInDesginerView: b,
3859
- onAcceptNewChildElement: k,
3860
- onAcceptMovedChildElement: u,
3861
- resolveComponentContext: C,
3862
- onResolveNewComponentSchema: p,
3863
- triggerBelongedComponentToMoveWhenMoved: r,
3864
- triggerBelongedComponentToDeleteWhenDeleted: s
3268
+ canAccepts: u,
3269
+ checkCanDeleteComponent: f,
3270
+ checkCanMoveComponent: y,
3271
+ getStyles: p,
3272
+ getPropsConfig: v,
3273
+ hideNestedPaddingInDesginerView: g,
3274
+ onAcceptMovedChildElement: c,
3275
+ onResolveNewComponentSchema: o
3865
3276
  };
3866
3277
  }
3867
- const ao = /* @__PURE__ */ R({
3278
+ const Gn = /* @__PURE__ */ R({
3868
3279
  name: "FOrderDesign",
3869
- props: ae,
3280
+ props: ne,
3870
3281
  emits: ["change"],
3871
3282
  setup(e, t) {
3872
- var j;
3873
- const n = v(e.items), o = v("排序列"), a = v("排序方式"), r = v("添加排序列"), s = [{
3283
+ var M;
3284
+ const n = S(e.items), a = S("排序列"), i = S("排序方式"), l = S("添加排序列"), r = [{
3874
3285
  id: "asc",
3875
3286
  name: "升序"
3876
3287
  }, {
3877
3288
  id: "desc",
3878
3289
  name: "降序"
3879
- }], f = v(/* @__PURE__ */ new Map()), c = v(), l = q("design-item-context"), g = oo(l.schema, (j = l.parent) == null ? void 0 : j.schema), i = Wn(c, l, g);
3880
- ee(() => {
3881
- c.value.componentInstance = i;
3882
- }), t.expose(i.value);
3883
- function d() {
3884
- const w = n.value.map((b) => [b.id, !0]);
3885
- f.value = new Map(w);
3290
+ }], d = S(/* @__PURE__ */ new Map()), u = S(), c = x("design-item-context"), p = Rn(c.schema, (M = c.parent) == null ? void 0 : M.schema), o = En(u, c, p);
3291
+ Y(() => {
3292
+ u.value.componentInstance = o;
3293
+ }), t.expose(o.value);
3294
+ function s() {
3295
+ const h = n.value.map((k) => [k.id, !0]);
3296
+ d.value = new Map(h);
3886
3297
  }
3887
- d();
3888
- const C = V(() => e.dataSource.map((w) => (w.disabled = f.value.has(w.id), w))), u = V(() => ({
3298
+ s();
3299
+ const m = B(() => e.dataSource.map((h) => (h.disabled = d.value.has(h.id), h))), y = B(() => ({
3889
3300
  "f-order": !0
3890
3301
  }));
3891
- function m(w) {
3892
- n.value = n.value.filter((b) => b.id !== w.id), d(), t.emit("change", n.value);
3302
+ function f(h) {
3303
+ n.value = n.value.filter((k) => k.id !== h.id), s(), t.emit("change", n.value);
3893
3304
  }
3894
- function p() {
3305
+ function g() {
3895
3306
  n.value = [...n.value, {
3896
3307
  id: Date.now().toString(),
3897
3308
  name: "",
3898
3309
  order: "asc"
3899
- }], d(), t.emit("change", n.value);
3310
+ }], s(), t.emit("change", n.value);
3900
3311
  }
3901
- function y(w) {
3902
- d(), t.emit("change", n.value);
3312
+ function v(h) {
3313
+ s(), t.emit("change", n.value);
3903
3314
  }
3904
- function S(w) {
3905
- if (w && w.length) {
3906
- const b = /* @__PURE__ */ new Map();
3907
- w.reduce((T, F) => (T.set(F.id, F), T), b), n.value = w.map((T) => b.get(T.id)), t.emit("change", n.value);
3315
+ function C(h) {
3316
+ if (h && h.length) {
3317
+ const k = /* @__PURE__ */ new Map();
3318
+ h.reduce((T, I) => (T.set(I.id, I), T), k), n.value = h.map((T) => k.get(T.id)), t.emit("change", n.value);
3908
3319
  }
3909
3320
  }
3910
- function k() {
3911
- return h(ve, {
3321
+ function w() {
3322
+ return b(fe, {
3912
3323
  style: "flex:1",
3913
3324
  data: n.value,
3914
3325
  draggable: !0,
3915
3326
  view: "DraggableView",
3916
3327
  "keep-order": !0,
3917
3328
  itemClass: "f-order-item",
3918
- onRemoveItem: m,
3919
- onChange: S
3329
+ onRemoveItem: f,
3330
+ onChange: C
3920
3331
  }, {
3921
- header: () => h("div", {
3332
+ header: () => b("div", {
3922
3333
  class: "f-order-header"
3923
- }, [h("span", {
3334
+ }, [b("span", {
3924
3335
  class: "f-order-header-order-field"
3925
- }, [o.value]), h("span", {
3336
+ }, [a.value]), b("span", {
3926
3337
  class: "f-order-header-order-type"
3927
- }, [a.value])]),
3928
- itemContent: (w) => h("div", {
3338
+ }, [i.value])]),
3339
+ itemContent: (h) => b("div", {
3929
3340
  class: "f-order-item-content"
3930
- }, [h(_, {
3341
+ }, [b(H, {
3931
3342
  class: "f-order-item-content-order-field",
3932
- data: C.value,
3343
+ data: m.value,
3933
3344
  valueField: "id",
3934
3345
  textField: "name",
3935
3346
  idField: "id",
3936
- modelValue: w.id,
3937
- "onUpdate:modelValue": (b) => w.id = b,
3938
- onChange: y,
3939
- onClear: y
3940
- }, null), h(_, {
3347
+ modelValue: h.id,
3348
+ "onUpdate:modelValue": (k) => h.id = k,
3349
+ onChange: v,
3350
+ onClear: v
3351
+ }, null), b(H, {
3941
3352
  class: "f-order-item-content-order-type",
3942
- data: s,
3353
+ data: r,
3943
3354
  valueField: "id",
3944
3355
  textField: "name",
3945
3356
  idField: "id",
3946
- modelValue: w.order,
3947
- "onUpdate:modelValue": (b) => w.order = b,
3948
- onChange: y
3357
+ modelValue: h.order,
3358
+ "onUpdate:modelValue": (k) => h.order = k,
3359
+ onChange: v
3949
3360
  }, null)]),
3950
- footer: () => h("div", {
3361
+ footer: () => b("div", {
3951
3362
  class: "f-order-footer"
3952
- }, [h(Ce, {
3363
+ }, [b(me, {
3953
3364
  type: "link",
3954
3365
  class: "f-order-add-button",
3955
- onClick: p
3366
+ onClick: g
3956
3367
  }, {
3957
- default: () => h(K, null, [h("span", {
3368
+ default: () => b(Q, null, [b("span", {
3958
3369
  class: "f-order-add-icon"
3959
- }, [h("i", {
3370
+ }, [b("i", {
3960
3371
  class: "f-icon f-icon-add"
3961
- }, null)]), r.value])
3372
+ }, null)]), l.value])
3962
3373
  })])
3963
3374
  });
3964
3375
  }
3965
- return () => h("div", {
3966
- ref: c,
3967
- class: u.value
3968
- }, [k()]);
3376
+ return () => b("div", {
3377
+ ref: u,
3378
+ class: y.value
3379
+ }, [w()]);
3969
3380
  }
3970
- }), bo = {
3381
+ }), Qn = {
3971
3382
  install(e) {
3972
- e.component(Q.name, Q);
3383
+ e.component(z.name, z);
3973
3384
  },
3974
- register(e, t, n, o) {
3975
- e.order = Q, t.order = ue;
3385
+ register(e, t, n, a) {
3386
+ e.order = z, t.order = ae;
3976
3387
  },
3977
3388
  registerDesigner(e, t, n) {
3978
- e.order = ao, t.order = ue;
3389
+ e.order = Gn, t.order = ae;
3979
3390
  }
3980
3391
  };
3981
3392
  export {
3982
- Q as FOrder,
3983
- bo as default,
3984
- ae as orderProps,
3985
- ue as propsResolver
3393
+ z as FOrder,
3394
+ Qn as default,
3395
+ ne as orderProps,
3396
+ ae as propsResolver
3986
3397
  };