@farris/ui-vue 1.2.9 → 1.3.0

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 (236) hide show
  1. package/components/accordion/index.esm.js +63 -63
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +402 -323
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +98 -96
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +66 -66
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +118 -118
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +539 -460
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +135 -135
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1007 -312
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +97 -97
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +778 -700
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +472 -329
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2231 -1055
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +79 -79
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6408 -5034
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4762 -3511
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3442 -2742
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-outline/index.esm.js +14 -13
  40. package/components/designer-outline/index.umd.cjs +1 -1
  41. package/components/dropdown/index.esm.js +73 -73
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.css +1 -0
  44. package/components/dynamic-form/index.esm.js +2597 -1141
  45. package/components/dynamic-form/index.umd.cjs +1 -1
  46. package/components/dynamic-resolver/index.esm.js +114 -71
  47. package/components/dynamic-resolver/index.umd.cjs +1 -1
  48. package/components/dynamic-view/index.esm.js +303 -290
  49. package/components/dynamic-view/index.umd.cjs +1 -1
  50. package/components/events-editor/index.esm.js +171 -171
  51. package/components/events-editor/index.umd.cjs +1 -1
  52. package/components/expression-editor/index.esm.js +65 -65
  53. package/components/expression-editor/index.umd.cjs +1 -1
  54. package/components/external-container/index.css +1 -1
  55. package/components/external-container/index.esm.js +3075 -2586
  56. package/components/external-container/index.umd.cjs +1 -1
  57. package/components/field-selector/index.css +1 -1
  58. package/components/field-selector/index.esm.js +5272 -8511
  59. package/components/field-selector/index.umd.cjs +1 -1
  60. package/components/filter-bar/index.css +1 -1
  61. package/components/filter-bar/index.esm.js +1726 -1822
  62. package/components/filter-bar/index.umd.cjs +1 -1
  63. package/components/image-cropper/index.esm.js +126 -126
  64. package/components/image-cropper/index.umd.cjs +1 -1
  65. package/components/input-group/index.esm.js +620 -540
  66. package/components/input-group/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +88 -88
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +71 -71
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.css +1 -1
  72. package/components/list-view/index.esm.js +3582 -2356
  73. package/components/list-view/index.umd.cjs +1 -1
  74. package/components/lookup/index.css +1 -1
  75. package/components/lookup/index.esm.js +10752 -8972
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.css +1 -1
  78. package/components/mapping-editor/index.esm.js +5601 -5329
  79. package/components/mapping-editor/index.umd.cjs +1 -1
  80. package/components/message-box/index.css +1 -1
  81. package/components/message-box/index.esm.js +511 -471
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.css +1 -1
  84. package/components/modal/index.esm.js +438 -398
  85. package/components/modal/index.umd.cjs +1 -1
  86. package/components/nav/index.esm.js +535 -452
  87. package/components/nav/index.umd.cjs +2 -2
  88. package/components/notify/index.esm.js +59 -53
  89. package/components/notify/index.umd.cjs +1 -1
  90. package/components/number-range/index.esm.js +556 -477
  91. package/components/number-range/index.umd.cjs +1 -1
  92. package/components/number-spinner/index.esm.js +504 -425
  93. package/components/number-spinner/index.umd.cjs +1 -1
  94. package/components/order/index.css +1 -1
  95. package/components/order/index.esm.js +1833 -1054
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +100 -100
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +899 -870
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +576 -487
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/popover/index.esm.js +71 -70
  104. package/components/popover/index.umd.cjs +1 -1
  105. package/components/progress/index.esm.js +73 -73
  106. package/components/progress/index.umd.cjs +2 -2
  107. package/components/property-editor/index.css +1 -1
  108. package/components/property-editor/index.esm.js +1916 -1220
  109. package/components/property-editor/index.umd.cjs +3 -3
  110. package/components/property-panel/index.esm.js +783 -886
  111. package/components/property-panel/index.umd.cjs +1 -1
  112. package/components/query-solution/index.css +1 -1
  113. package/components/query-solution/index.esm.js +3632 -2556
  114. package/components/query-solution/index.umd.cjs +1 -1
  115. package/components/radio-button/index.esm.js +72 -72
  116. package/components/radio-button/index.umd.cjs +1 -1
  117. package/components/radio-group/index.esm.js +484 -405
  118. package/components/radio-group/index.umd.cjs +1 -1
  119. package/components/rate/index.esm.js +152 -152
  120. package/components/rate/index.umd.cjs +1 -1
  121. package/components/response-layout/index.esm.js +73 -73
  122. package/components/response-layout/index.umd.cjs +1 -1
  123. package/components/response-layout-editor/index.css +1 -1
  124. package/components/response-layout-editor/index.esm.js +1081 -1043
  125. package/components/response-layout-editor/index.umd.cjs +1 -1
  126. package/components/response-toolbar/index.esm.js +753 -738
  127. package/components/response-toolbar/index.umd.cjs +1 -1
  128. package/components/schema-selector/index.css +1 -1
  129. package/components/schema-selector/index.esm.js +4418 -4177
  130. package/components/schema-selector/index.umd.cjs +2 -2
  131. package/components/search-box/index.esm.js +119 -119
  132. package/components/search-box/index.umd.cjs +1 -1
  133. package/components/section/index.esm.js +92 -91
  134. package/components/section/index.umd.cjs +1 -1
  135. package/components/smoke-detector/index.esm.js +59 -59
  136. package/components/smoke-detector/index.umd.cjs +1 -1
  137. package/components/splitter/index.esm.js +103 -103
  138. package/components/splitter/index.umd.cjs +1 -1
  139. package/components/step/index.esm.js +85 -85
  140. package/components/step/index.umd.cjs +1 -1
  141. package/components/switch/index.esm.js +457 -378
  142. package/components/switch/index.umd.cjs +1 -1
  143. package/components/tabs/index.css +1 -1
  144. package/components/tabs/index.esm.js +1696 -1617
  145. package/components/tabs/index.umd.cjs +1 -1
  146. package/components/tags/index.esm.js +53 -53
  147. package/components/tags/index.umd.cjs +1 -1
  148. package/components/text/index.esm.js +268 -268
  149. package/components/text/index.umd.cjs +1 -1
  150. package/components/textarea/index.esm.js +420 -341
  151. package/components/textarea/index.umd.cjs +1 -1
  152. package/components/time-picker/index.css +1 -1
  153. package/components/time-picker/index.esm.js +1062 -981
  154. package/components/time-picker/index.umd.cjs +1 -1
  155. package/components/transfer/index.css +1 -1
  156. package/components/transfer/index.esm.js +381 -379
  157. package/components/transfer/index.umd.cjs +1 -1
  158. package/components/tree-grid/index.css +1 -1
  159. package/components/tree-grid/index.esm.js +5252 -9560
  160. package/components/tree-grid/index.umd.cjs +1 -1
  161. package/components/tree-view/index.css +1 -0
  162. package/components/tree-view/index.esm.js +3920 -2692
  163. package/components/tree-view/index.umd.cjs +1 -1
  164. package/components/uploader/index.esm.js +373 -367
  165. package/components/uploader/index.umd.cjs +2 -2
  166. package/components/verify-detail/index.esm.js +92 -92
  167. package/components/verify-detail/index.umd.cjs +1 -1
  168. package/components/video/index.esm.js +597 -417
  169. package/components/video/index.umd.cjs +1 -1
  170. package/components/weather/index.esm.js +251 -251
  171. package/components/weather/index.umd.cjs +4 -4
  172. package/farris.all.esm.js +17125 -16176
  173. package/farris.all.umd.cjs +8 -8
  174. package/index.css +1 -1
  175. package/package.json +1 -1
  176. package/types/capsule/src/capsule.props.d.ts +2 -2
  177. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  178. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  179. package/types/common/index.d.ts +1 -0
  180. package/types/common/types.d.ts +1 -1
  181. package/types/common/utils/encrypt.d.ts +2 -0
  182. package/types/component/src/component.props.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +1 -1
  184. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  185. package/types/components.d.ts +1 -0
  186. package/types/data-grid/index.d.ts +5 -2
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  189. package/types/data-view/composition/types.d.ts +18 -1
  190. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  191. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  193. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  194. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  195. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  196. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  197. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  198. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  199. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  200. package/types/dynamic-form/src/types.d.ts +12 -1
  201. package/types/dynamic-resolver/index.d.ts +1 -0
  202. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  203. package/types/dynamic-resolver/src/types.d.ts +9 -0
  204. package/types/dynamic-view/index.d.ts +1 -0
  205. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  206. package/types/index.d.ts +2 -0
  207. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  208. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  209. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  210. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  211. package/types/lookup/src/composition/types.d.ts +8 -0
  212. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  213. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  214. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  215. package/types/lookup/src/composition/use-http.d.ts +9 -5
  216. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  217. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  218. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  219. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  220. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  221. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  222. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  223. package/types/modal/src/modal.component.d.ts +3 -0
  224. package/types/modal/src/modal.props.d.ts +4 -0
  225. package/types/page-header/src/page-header.props.d.ts +1 -0
  226. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  227. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  228. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  229. package/types/response-layout-editor/src/type.d.ts +21 -0
  230. package/types/tabs/src/tabs.props.d.ts +1 -0
  231. package/types/tree-grid/index.d.ts +8 -2
  232. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  233. package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
  234. package/types/modal/src/composition/use-esc.d.ts +0 -1
  235. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  236. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,107 +1,109 @@
1
- var we = Object.defineProperty;
2
- var Se = (e, t, n) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var E = (e, t, n) => Se(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as C, computed as B, createVNode as b, Fragment as Q, watch as N, withModifiers as ke, withDirectives as Fe, vModelText as je, defineComponent as H, inject as X, onMounted as ce, nextTick as Me } from "vue";
5
- import { cloneDeep as Te } from "lodash-es";
6
- import { useIdentify as Ve, useHierarchy as De, useGroupData as Oe, usePagination as Ie, useDataView as Pe, useSelection as Be, useEdit as Ae, useVisualDataBound as $e, useVisualDataCell as xe, useVisualDataRow as Le, useVisualGroupRow as Ee, useVisualSummaryRow as Ne, useVisualData as He } from "../data-view/index.esm.js";
7
- import { FCheckBox as Y } from "../checkbox/index.esm.js";
8
- import Re from "../list-view/index.esm.js";
9
- import Ue from "../button-edit/index.esm.js";
10
- import Ge from "../button-edit/index.esm.js/src/designer/button-edit.design.component";
11
- import { getSchemaByType as re } from "../dynamic-resolver/index.esm.js";
12
- import { useDesignerComponent as qe } from "../designer-canvas/index.esm.js";
13
- const ue = {}, de = {};
14
- function Z(e) {
15
- const { properties: t, title: n, ignore: o } = e, s = o && Array.isArray(o), c = Object.keys(t).reduce((i, p) => ((!s || !o.find((g) => g == p)) && (i[p] = t[p].type === "object" && t[p].properties ? Z(t[p]) : Te(t[p].default)), i), {});
16
- return (!s || !o.find((i) => i == "id")) && (c.id = `${n}-${Date.now()}`), c;
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;
17
19
  }
18
- function U(e, t = {}, n) {
19
- const o = ue[e];
20
+ function H(e, t = {}, n) {
21
+ const o = ge[e];
20
22
  if (o) {
21
- let s = Z(o);
22
- const c = de[e];
23
- return s = c ? c({ getSchemaByType: U }, s, t, n) : s, s;
23
+ let a = ne(o);
24
+ const r = he[e];
25
+ return a = r ? r({ getSchemaByType: H }, a, t, n) : a, a;
24
26
  }
25
27
  return null;
26
28
  }
27
- function _e(e, t) {
28
- const n = Z(t);
29
- return Object.keys(e).reduce((o, s) => (o[s] && typeof o[s] == "object" ? Object.assign(o[s], e[s]) : o[s] = e[s], o), n), n;
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;
30
32
  }
31
- function We(e, t) {
32
- return Object.keys(e).filter((o) => e[o] != null).reduce((o, s) => {
33
- if (t.has(s)) {
34
- const c = t.get(s);
35
- if (typeof c == "string")
36
- o[c] = e[s];
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];
37
39
  else {
38
- const i = c(s, e[s], e);
39
- Object.assign(o, i);
40
+ const s = r(a, e[a], e);
41
+ Object.assign(o, s);
40
42
  }
41
43
  } else
42
- o[s] = e[s];
44
+ o[a] = e[a];
43
45
  return o;
44
46
  }, {});
45
47
  }
46
- function ze(e, t, n = /* @__PURE__ */ new Map()) {
47
- const o = _e(e, t);
48
- return We(o, n);
48
+ function at(e, t, n = /* @__PURE__ */ new Map()) {
49
+ const o = nt(e, t);
50
+ return ot(o, n);
49
51
  }
50
- function Je(e = {}) {
51
- function t(y, h, l, r) {
52
- if (typeof l == "number")
53
- return r[y].length === l;
54
- if (typeof l == "object") {
55
- const S = Object.keys(l)[0], d = l[S];
56
- if (S === "not")
57
- return Number(r[y].length) !== Number(d);
58
- if (S === "moreThan")
59
- return Number(r[y].length) >= Number(d);
60
- if (S === "lessThan")
61
- return Number(r[y].length) <= Number(d);
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);
62
64
  }
63
65
  return !1;
64
66
  }
65
- function n(y, h, l, r) {
66
- return r[y] && r[y].propertyValue && String(r[y].propertyValue.value) === String(l);
67
+ function n(l, g, i, d) {
68
+ return d[l] && d[l].propertyValue && String(d[l].propertyValue.value) === String(i);
67
69
  }
68
70
  const o = /* @__PURE__ */ new Map([
69
71
  ["length", t],
70
72
  ["getProperty", n]
71
73
  ]);
72
- Object.keys(e).reduce((y, h) => (y.set(h, e[h]), y), o);
73
- function s(y, h) {
74
- const l = y;
75
- return typeof h == "number" ? [{ target: l, operator: "length", param: null, value: Number(h) }] : typeof h == "boolean" ? [{ target: l, operator: "getProperty", param: y, value: !!h }] : typeof h == "object" ? Object.keys(h).map((r) => {
76
- if (r === "length")
77
- return { target: l, operator: "length", param: null, value: h[r] };
78
- const S = r, d = h[r];
79
- return { target: l, operator: "getProperty", param: S, value: d };
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 };
80
82
  }) : [];
81
83
  }
82
- function c(y) {
83
- return Object.keys(y).reduce((l, r) => {
84
- const S = s(r, y[r]);
85
- return l.push(...S), l;
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;
86
88
  }, []);
87
89
  }
88
- function i(y, h) {
89
- if (o.has(y.operator)) {
90
- const l = o.get(y.operator);
91
- return l && l(y.target, y.param, y.value, h) || !1;
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;
92
94
  }
93
95
  return !1;
94
96
  }
95
- function p(y, h) {
96
- return c(y).reduce((S, d) => S && i(d, h), !0);
97
+ function f(l, g) {
98
+ return r(l).reduce((C, u) => C && s(u, g), !0);
97
99
  }
98
- function g(y, h) {
99
- const l = Object.keys(y), r = l.includes("allOf"), S = l.includes("anyOf"), d = r || S, u = (d ? y[d ? r ? "allOf" : "anyOf" : "allOf"] : [y]).map((F) => p(F, h));
100
- return r ? !u.includes(!1) : u.includes(!0);
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);
101
103
  }
102
- return { parseValueSchema: g };
104
+ return { parseValueSchema: c };
103
105
  }
104
- const T = {
106
+ const B = {
105
107
  button: { type: "button", name: "按钮", icon: "Button" },
106
108
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
107
109
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -138,21 +140,22 @@ const T = {
138
140
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
139
141
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
140
142
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
141
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
142
- }, Xe = {}, Qe = {};
143
- Je();
144
- function K(e, t, n = /* @__PURE__ */ new Map(), o = (i, p, g) => p, s = {}, c = (i) => i) {
145
- return ue[t.title] = t, de[t.title] = o, Xe[t.title] = s, Qe[t.title] = c, (i = {}) => {
146
- const p = ze(i, t, n), g = Object.keys(e).reduce((y, h) => (y[h] = e[h].default, y), {});
147
- return Object.assign(g, p);
143
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
144
+ 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);
148
151
  };
149
152
  }
150
- function ee(e, t) {
153
+ function oe(e, t) {
151
154
  return { customClass: t.class, customStyle: t.style };
152
155
  }
153
- const Ye = /* @__PURE__ */ new Map([
154
- ["appearance", ee]
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 = {
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 = {
156
159
  id: {
157
160
  description: "The unique identifier for a order",
158
161
  type: "string"
@@ -244,22 +247,22 @@ const Ye = /* @__PURE__ */ new Map([
244
247
  type: "sting",
245
248
  default: ""
246
249
  }
247
- }, at = [
250
+ }, yt = [
248
251
  "id",
249
252
  "type"
250
- ], rt = {
251
- $schema: Ze,
252
- $id: Ke,
253
- title: et,
254
- description: tt,
255
- type: nt,
256
- properties: ot,
257
- required: at
253
+ ], gt = {
254
+ $schema: ct,
255
+ $id: ut,
256
+ title: dt,
257
+ description: pt,
258
+ type: ft,
259
+ properties: mt,
260
+ required: yt
258
261
  };
259
- function it(e, t, n) {
262
+ function ht(e, t, n) {
260
263
  return t;
261
264
  }
262
- const lt = "order", st = "A Farris Component", ct = "object", ut = {
265
+ const bt = "order", vt = "A Farris Component", Ct = "object", wt = {
263
266
  basic: {
264
267
  description: "Basic Infomation",
265
268
  title: "基本信息",
@@ -341,12 +344,12 @@ const lt = "order", st = "A Farris Component", ct = "object", ut = {
341
344
  }
342
345
  }
343
346
  }
344
- }, dt = {
345
- title: lt,
346
- description: st,
347
- type: ct,
348
- categories: ut
349
- }, te = {
347
+ }, St = {
348
+ title: bt,
349
+ description: vt,
350
+ type: Ct,
351
+ categories: wt
352
+ }, ae = {
350
353
  dataSource: {
351
354
  type: Array,
352
355
  default: [
@@ -365,13 +368,13 @@ const lt = "order", st = "A Farris Component", ct = "object", ut = {
365
368
  { id: "3", name: "开票日期", order: "asc" }
366
369
  ]
367
370
  }
368
- }, ie = K(te, rt, Ye, it, dt), pt = /* @__PURE__ */ new Map([
369
- ["appearance", ee]
371
+ }, ue = z(ae, gt, st, ht, St), kt = /* @__PURE__ */ new Map([
372
+ ["appearance", oe]
370
373
  ]);
371
- function ft(e, t, n) {
374
+ function Ft(e, t, n) {
372
375
  return t;
373
376
  }
374
- const mt = "https://json-schema.org/draft/2020-12/schema", yt = "https://farris-design.gitee.io/list-view.schema.json", gt = "list-view", ht = "A Farris Component", bt = "object", vt = {
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 = {
375
378
  id: {
376
379
  description: "The unique identifier for list-view",
377
380
  type: "string"
@@ -433,18 +436,18 @@ const mt = "https://json-schema.org/draft/2020-12/schema", yt = "https://farris-
433
436
  type: "boolean",
434
437
  default: !0
435
438
  }
436
- }, Ct = [
439
+ }, Pt = [
437
440
  "id",
438
441
  "type"
439
- ], wt = {
440
- $schema: mt,
441
- $id: yt,
442
- title: gt,
443
- description: ht,
444
- type: bt,
445
- properties: vt,
446
- required: Ct
447
- }, St = "list-view", kt = "A Farris Component", Ft = "object", jt = {
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 = {
448
451
  basic: {
449
452
  description: "Basic Infomation",
450
453
  title: "基本信息",
@@ -466,12 +469,12 @@ const mt = "https://json-schema.org/draft/2020-12/schema", yt = "https://farris-
466
469
  }
467
470
  }
468
471
  }
469
- }, Mt = {
470
- title: St,
471
- description: kt,
472
- type: Ft,
473
- categories: jt
474
- }, pe = {
472
+ }, $t = {
473
+ title: At,
474
+ description: Dt,
475
+ type: Lt,
476
+ categories: Et
477
+ }, be = {
475
478
  /** 列集合 */
476
479
  columns: {
477
480
  type: Array,
@@ -513,381 +516,383 @@ const mt = "https://json-schema.org/draft/2020-12/schema", yt = "https://farris-
513
516
  // 搜索启用高亮
514
517
  enableHighlightSearch: { type: Boolean, default: !0 }
515
518
  };
516
- K(pe, wt, pt, ft, Mt);
517
- function Tt(e, t) {
518
- function n(c) {
519
- const i = [];
520
- let p = c.nextNode();
521
- for (; p; )
522
- i.push(p), p = c.nextNode();
523
- return i;
524
- }
525
- function o(c, i) {
526
- const p = document.createTreeWalker(c, NodeFilter.SHOW_TEXT);
527
- return n(p).map((l) => ({ textNode: l, text: (l.textContent || "").toLocaleLowerCase() })).map(({ textNode: l, text: r }) => {
528
- const S = [];
529
- let d = 0;
530
- for (; d < r.length; ) {
531
- const f = r.indexOf(i, d);
532
- if (f === -1)
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)
533
536
  break;
534
- S.push(f), d = f + i.length;
537
+ C.push(m), u = m + s.length;
535
538
  }
536
- return S.map((f) => {
537
- const a = new Range();
538
- return a.setStart(l, f), a.setEnd(l, f + i.length), a;
539
+ return C.map((m) => {
540
+ const p = new Range();
541
+ return p.setStart(i, m), p.setEnd(i, m + s.length), p;
539
542
  });
540
543
  }).flat();
541
544
  }
542
- function s(c) {
543
- if (!CSS.highlights || (CSS.highlights.clear(), !c || !t))
545
+ function a(r) {
546
+ if (!CSS.highlights || (CSS.highlights.clear(), !r || !t))
544
547
  return;
545
- const i = o(t.value, c.toLocaleLowerCase()), p = new Highlight(...i);
546
- CSS.highlights.set("search-result", p);
548
+ const s = o(t.value, r.toLocaleLowerCase()), f = new Highlight(...s);
549
+ CSS.highlights.set("search-result", f);
547
550
  }
548
- return { search: s };
551
+ return { search: a };
549
552
  }
550
- function le(e, t, n, o, s, c, i, p, g, y) {
551
- const h = C(e.size), l = C(e.textField), r = C(e.titleField), S = C(e.disableField), d = B(() => {
552
- var m, M;
553
- return ((m = e.selection) == null ? void 0 : m.multiSelect) && ((M = e.selection) == null ? void 0 : M.showCheckbox);
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);
554
557
  }), {
555
- onMouseenterItem: f,
556
- onMouseoverItem: a,
557
- onMouseoutItem: u
558
- } = c, {
559
- getKey: k,
560
- listViewItemClass: F,
561
- onCheckItem: V,
558
+ onMouseenterItem: m,
559
+ onMouseoverItem: p,
560
+ onMouseoutItem: y
561
+ } = r, {
562
+ getKey: S,
563
+ listViewItemClass: k,
564
+ onCheckItem: j,
562
565
  onClickItem: w
563
- } = i, v = B(() => ({
564
- margin: h.value === "small" ? "0.25rem 0" : "10px 0"
566
+ } = s, b = V(() => ({
567
+ margin: g.value === "small" ? "0.25rem 0" : "10px 0"
565
568
  }));
566
- function D(m, M, A) {
567
- return m.checked = p.findIndexInSelectedItems(m) > -1, b("li", {
568
- class: F(m, M),
569
- id: k(m, M),
570
- key: k(m, M),
571
- onClick: (j) => w(j, m, M),
572
- onMouseenter: (j) => f(j, m, M),
573
- onMouseover: (j) => a(j, m, M),
574
- onMouseout: (j) => u(j, m, M)
575
- }, [d.value && b("div", {
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", {
576
579
  class: "f-list-select",
577
- onClick: (j) => j.stopPropagation()
578
- }, [b(Y, {
579
- id: "list-" + k(m, M),
580
+ onClick: (M) => M.stopPropagation()
581
+ }, [h(te, {
582
+ id: "list-" + S(F, I),
580
583
  customClass: "listview-checkbox",
581
- disabled: m[S.value],
582
- checked: m.checked,
583
- "onUpdate:checked": (j) => m.checked = j,
584
- onChange: (j) => {
585
- V(m, M, !j.checked);
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);
586
589
  }
587
- }, null)]), b("div", {
590
+ }, null)]), h("div", {
588
591
  class: "f-list-content"
589
- }, [b("div", {
590
- style: v.value,
591
- title: m.raw[r.value] || m.raw[l.value]
592
- }, [m.raw[l.value]])])]);
592
+ }, [h("div", {
593
+ style: b.value,
594
+ title: F.raw[d.value] || F.raw[i.value]
595
+ }, [F.raw[i.value]])])]);
593
596
  }
594
597
  return {
595
- renderItem: D
598
+ renderItem: T
596
599
  };
597
600
  }
598
- function Vt(e, t, n, o, s, c, i, p, g, y) {
599
- const h = C(e.multiSelect), l = C(e.disableField), {
600
- onMouseenterItem: r,
601
- onMouseoverItem: S,
602
- onMouseoutItem: d
603
- } = c, {
604
- getKey: f,
605
- listViewItemClass: a,
606
- onCheckItem: u,
607
- onClickItem: k
608
- } = i;
609
- function F(w, v, D) {
610
- return t.slots.content ? b(Q, null, [t.slots.content && t.slots.content({
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({
611
614
  item: w.raw,
612
- index: v,
613
- selectedItem: D
614
- })]) : b("div", {
615
+ index: b,
616
+ selectedItem: T
617
+ })]) : h("div", {
615
618
  style: "margin: 10px 0;"
616
619
  }, [w.raw.name]);
617
620
  }
618
- function V(w, v, D) {
619
- return b("li", {
620
- class: a(w, v),
621
- id: f(w, v),
622
- key: f(w, v),
623
- onClick: (m) => k(m, w, v),
624
- onMouseenter: (m) => r(m, w, v),
625
- onMouseover: (m) => S(m, w, v),
626
- onMouseout: (m) => d(m, w, v)
627
- }, [h.value && b("div", {
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", {
628
631
  class: "f-list-select",
629
- onClick: (m) => m.stopPropagation()
630
- }, [b(Y, {
631
- id: "list-" + f(w, v),
632
+ onClick: (F) => F.stopPropagation()
633
+ }, [h(te, {
634
+ id: "list-" + m(w, b),
632
635
  customClass: "listview-checkbox",
633
- disabled: w[l.value] || !w.checked,
636
+ disabled: w[i.value] || !w.checked,
634
637
  checked: w.checked,
635
- "onUpdate:checked": (m) => w.checked = m,
636
- onChange: (m) => u(w, v, !m.checked)
637
- }, null)]), b("div", {
638
+ "onUpdate:checked": (F) => w.checked = F,
639
+ onChange: (F) => y(w, b, !F.checked)
640
+ }, null)]), h("div", {
638
641
  class: "f-list-content"
639
- }, [F(w, v, D)])]);
642
+ }, [k(w, b, T)])]);
640
643
  }
641
644
  return {
642
- renderItem: V
645
+ renderItem: j
643
646
  };
644
647
  }
645
- function Dt(e, t, n, o, s, c, i, p, g, y) {
646
- const h = C(e.multiSelect), l = C(e.disableField), {
647
- onMouseenterItem: r,
648
- onMouseoverItem: S,
649
- onMouseoutItem: d
650
- } = c, {
651
- getKey: f,
652
- listViewItemClass: a,
653
- onCheckItem: u,
654
- onClickItem: k
655
- } = i, {
656
- dragstart: F,
657
- dragenter: V,
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
653
+ } = r, {
654
+ getKey: m,
655
+ listViewItemClass: p,
656
+ onCheckItem: y,
657
+ onClickItem: S
658
+ } = s, {
659
+ dragstart: k,
660
+ dragenter: j,
658
661
  dragover: w,
659
- dragend: v
662
+ dragend: b
660
663
  } = o, {
661
- removeItem: D
662
- } = g, m = B(() => ({
663
- margin: h.value ? "10px 0" : "10px 0px 10px 14px"
664
+ removeItem: T
665
+ } = c, F = V(() => ({
666
+ margin: g.value ? "10px 0" : "10px 0px 10px 14px"
664
667
  }));
665
- function M(O) {
666
- return b("div", {
667
- style: m.value
668
- }, [O.raw.name]);
669
- }
670
- function A() {
671
- return t.slots.itemContent ? t.slots.itemContent : M;
672
- }
673
- const j = A();
674
- function $(O, P, x) {
675
- return b("li", {
676
- class: a(O, P),
677
- id: f(O, P),
678
- key: f(O, P),
679
- onClick: (I) => k(I, O, P),
680
- onMouseenter: (I) => r(I, O, P),
681
- onMouseover: (I) => S(I, O, P),
682
- onMouseout: (I) => d(I, O, P),
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),
683
686
  draggable: "true",
684
- onDragstart: (I) => F(I, O, P),
685
- onDragenter: (I) => V(I, P),
686
- onDragend: (I) => v(I, O),
687
- onDragover: (I) => w(I, P)
688
- }, [h.value && b("div", {
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", {
689
692
  class: "f-list-select",
690
- onClick: (I) => I.stopPropagation()
691
- }, [b(Y, {
692
- id: "list-" + f(O, P),
693
+ onClick: (A) => A.stopPropagation()
694
+ }, [h(te, {
695
+ id: "list-" + m(P, L),
693
696
  customClass: "listview-checkbox",
694
- disabled: O[l.value] || !O.checked,
695
- checked: O.checked,
696
- "onUpdate:checked": (I) => O.checked = I,
697
- onChange: (I) => u(O, P, !I.checked)
698
- }, null)]), b("div", {
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", {
699
702
  class: "f-list-content"
700
- }, [j(O)]), b("div", {
703
+ }, [M(P)]), h("div", {
701
704
  class: "f-list-remove",
702
- onClick: (I) => D(P)
703
- }, [b("div", {
705
+ onClick: (A) => T(L)
706
+ }, [h("div", {
704
707
  class: "f-list-remove-icon"
705
- }, [b("i", {
708
+ }, [h("i", {
706
709
  class: "f-icon f-icon-remove_face"
707
- }, null)])]), b("div", {
710
+ }, null)])]), h("div", {
708
711
  class: "f-list-handle"
709
- }, [b("div", null, [b("i", {
712
+ }, [h("div", null, [h("i", {
710
713
  class: "f-icon f-icon-drag-vertical"
711
714
  }, null)])])]);
712
715
  }
713
716
  return {
714
- renderItem: $
717
+ renderItem: D
715
718
  };
716
719
  }
717
- function Ot(e, t, n, o, s, c, i, p, g, y) {
718
- var f;
719
- const h = C(((f = e.group) == null ? void 0 : f.groupFields) || []), {
720
- collpaseGroupIconClass: l
721
- } = s, {
722
- toggleGroupRow: r
723
- } = y;
724
- function S(a, u) {
725
- u.collapse = !u.collapse, n.value = r(u.collapse ? "collapse" : "expand", u, n.value);
726
- }
727
- function d(a, u, k) {
728
- return a.layer > -1 && b("div", {
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", {
729
732
  class: "f-navlookup-recentHeader",
730
- onClick: (F) => S(F, a)
731
- }, [b("div", {
733
+ onClick: (k) => C(k, p)
734
+ }, [h("div", {
732
735
  class: "fv-grid-group-row-icon"
733
- }, [b("span", {
734
- class: l(a)
735
- }, null)]), b("div", {
736
+ }, [h("span", {
737
+ class: i(p)
738
+ }, null)]), h("div", {
736
739
  class: "f-navlookup-recommandLabel"
737
- }, [a.raw[h.value[a.layer]]])]);
740
+ }, [p.raw[g.value[p.layer]]])]);
738
741
  }
739
742
  return {
740
- renderItem: d
743
+ renderItem: u
741
744
  };
742
745
  }
743
- function It() {
744
- const e = C(-1), t = C(""), n = C(-1), o = C(!1);
745
- function s(y, h, l) {
746
- n.value = l;
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;
747
750
  }
748
- function c(y, h, l) {
749
- o.value || (n.value = l);
751
+ function r(l, g, i) {
752
+ o.value || (n.value = i);
750
753
  }
751
- function i(y, h, l) {
754
+ function s(l, g, i) {
752
755
  n.value = -1;
753
756
  }
754
- function p() {
757
+ function f() {
755
758
  o.value = !0;
756
759
  }
757
- function g() {
760
+ function c() {
758
761
  o.value = !1;
759
762
  }
760
763
  return {
761
764
  activeIndex: e,
762
765
  focusedItemId: t,
763
766
  hoverIndex: n,
764
- onMouseenterItem: s,
765
- onMouseoverItem: c,
766
- onMouseoutItem: i,
767
- resumeHover: g,
768
- suspendHover: p
767
+ onMouseenterItem: a,
768
+ onMouseoverItem: r,
769
+ onMouseoutItem: s,
770
+ resumeHover: c,
771
+ suspendHover: f
769
772
  };
770
773
  }
771
- function Pt(e, t, n, o) {
772
- const s = C(e.idField), { dataView: c } = n, i = C(-1), p = C(!1), { activeIndex: g, focusedItemId: y, hoverIndex: h, resumeHover: l, suspendHover: r } = o;
773
- function S(u, k, F) {
774
- u.stopPropagation(), r(), k && setTimeout(() => {
775
- i.value = F, p.value = !0, k.moving = !0;
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;
776
779
  });
777
780
  }
778
- function d(u, k) {
779
- if (u.preventDefault(), i.value !== k) {
780
- const F = c.value[i.value], V = c.value;
781
- V.splice(i.value, 1), V.splice(k, 0, F), i.value = k;
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;
782
785
  }
783
786
  }
784
- function f(u, k) {
785
- u.preventDefault(), u.dataTransfer && (u.dataTransfer.dropEffect = "move");
787
+ function m(y, S) {
788
+ y.preventDefault(), y.dataTransfer && (y.dataTransfer.dropEffect = "move");
786
789
  }
787
- function a(u, k) {
788
- k && (k.moving = !1), c.value.forEach((F, V) => {
789
- F.__fv_index__ = V;
790
- }), p.value = !1, l(), h.value = k.raw.__fv_index__, g.value = k.raw.__fv_index__, y.value = k.raw[s.value], t.emit("change", c.value), t.emit("activeChange", k);
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);
791
794
  }
792
795
  return {
793
- dragstart: S,
794
- dragenter: d,
795
- dragover: f,
796
- dragend: a,
797
- isDragging: p
796
+ dragstart: C,
797
+ dragenter: u,
798
+ dragover: m,
799
+ dragend: p,
800
+ isDragging: f
798
801
  };
799
802
  }
800
- function Bt(e, t, n) {
803
+ function Gt(e, t, n) {
801
804
  const { dataView: o } = n;
802
- function s(c) {
803
- if (c > -1 && c < o.value.length) {
804
- const i = o.value.splice(c, 1);
805
- t.emit("removeItem", i[0]);
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]);
806
809
  }
807
810
  }
808
- return { removeItem: s };
811
+ return { removeItem: a };
809
812
  }
810
- function At(e, t, n, o, s, c) {
811
- const i = C(e.idField), p = C(e.disableField), g = C(e.draggable), y = C(e.itemClass), h = C(e.selection.multiSelect ?? !1), l = C(e.selection.multiSelectMode), { isDragging: r } = o, { activeIndex: S, focusedItemId: d, hoverIndex: f } = s, { clearSelection: a, getSelectedItems: u, toggleSelectItem: k } = c, F = C(u());
812
- function V(j, $) {
813
- const O = {
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 = {
814
817
  "f-listview-item": !0,
815
818
  "f-list-view-group-item": !0,
816
- "f-list-view-draggable-item": g.value,
817
- "f-un-click": !j.checked,
818
- "f-un-select": !!j.raw[p.value],
819
+ "f-list-view-draggable-item": c.value,
820
+ "f-un-click": !M.checked,
821
+ "f-un-select": !!M.raw[f.value],
819
822
  // 'f-listview-active': item.raw.__fv_index__ === activeIndex.value,
820
823
  // 多选
821
- "f-listview-active": F.value.findIndex(
822
- (x) => x[i.value] === j.raw[i.value]
824
+ "f-listview-active": k.value.findIndex(
825
+ (E) => E[s.value] === M.raw[s.value]
823
826
  ) > -1,
824
- "f-listview-item-active": F.value.findIndex(
825
- (x) => x[i.value] === j.raw[i.value]
827
+ "f-listview-item-active": k.value.findIndex(
828
+ (E) => E[s.value] === M.raw[s.value]
826
829
  ) > -1,
827
- "f-listview-hover": !r.value && $ === f.value,
828
- moving: !!j.moving
830
+ "f-listview-hover": !d.value && D === m.value,
831
+ "f-listview-item-hover": !d.value && D === m.value,
832
+ moving: !!M.moving
829
833
  };
830
- return y.value.split(" ").reduce((x, I) => (x[I] = !0, x), O), O;
834
+ return l.value.split(" ").reduce((E, A) => (E[A] = !0, E), P), P;
831
835
  }
832
- function w(j, $) {
833
- return j.raw[i.value] || "";
836
+ function w(M, D) {
837
+ return M.raw[s.value] || "";
834
838
  }
835
- const v = B(() => !h.value);
836
- function D(j, $, O) {
837
- j.checked = O, !j.raw[p.value] && (v.value && (d.value = j.raw[i.value]), k(j));
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));
838
842
  }
839
- const m = B(() => h.value && l.value === "OnCheckClearByClick"), M = B(() => !h.value || h.value && (l.value === "OnCheckAndClick" || l.value === "OnClick"));
840
- function A(j, $, O) {
841
- if ($.raw[p.value]) {
842
- j.preventDefault(), j.stopPropagation();
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();
843
847
  return;
844
848
  }
845
- d.value = $.raw[i.value], S.value = O, m.value && a(n.value), M.value && (k($), F.value = u()), t.emit("clickItem", { data: F.value, index: O }), t.emit("activeChange", F.value);
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
850
  }
847
851
  return {
848
852
  getKey: w,
849
- listViewItemClass: V,
850
- onCheckItem: D,
851
- onClickItem: A
853
+ listViewItemClass: j,
854
+ onCheckItem: T,
855
+ onClickItem: O
852
856
  };
853
857
  }
854
- function $t(e, t, n, o, s, c, i) {
855
- const p = C(e.view), g = C(e.view === "CardView"), y = C({}), h = C("暂无数据"), l = It(), r = Pt(e, t, o, l), S = Bt(e, t, o), d = At(e, t, n, r, l, c), f = B(() => ({
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(() => ({
856
860
  "f-list-view-group": !0,
857
- "d-flex": g.value,
858
- "flex-wrap": g.value
859
- })), a = B(() => !!n.value && n.value.length > 0), u = B(() => n.value.length === 0), k = B(() => u.value && !t.slots.empty);
860
- function F() {
861
- return p.value === "SingleView" ? le : p.value === "DraggableView" ? Dt : (p.value === "ContentView" || p.value === "CardView") && t.slots.content ? Vt : le;
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;
862
867
  }
863
- const V = F(), {
868
+ const k = S(), {
869
+ renderItem: j
870
+ } = k(e, t, n, d, a, i, u, r, C, s), {
864
871
  renderItem: w
865
- } = V(e, t, n, r, s, l, d, c, S, i), {
866
- renderItem: v
867
- } = Ot(e, t, n, r, s, l, d, c, S, i), D = [w, v];
868
- function m() {
869
- return n.value.filter((j) => j.visible !== !1).map((j, $) => D[j.type](j, $, y));
872
+ } = Ut(e, t, n, d, a, i, u, r, C, s), b = [j, w];
873
+ function T() {
874
+ return n.value.filter((O) => O.visible !== !1).map((O, M) => b[O.type](O, M, l));
870
875
  }
871
- function M() {
872
- return b("div", {
876
+ function F() {
877
+ return h("div", {
873
878
  class: "f-list-view-emptydata"
874
- }, [b("p", {
879
+ }, [h("p", {
875
880
  class: "f-empty-title"
876
- }, [h.value])]);
881
+ }, [t.slots.empty ? t.slots.empty() : g.value])]);
877
882
  }
878
- function A() {
879
- return b("ul", {
880
- class: f.value,
883
+ function I() {
884
+ return h("ul", {
885
+ class: m.value,
881
886
  style: "list-style: none;"
882
- }, [a.value && m(), k.value && M(), t.slots.empty && t.slots.empty()]);
887
+ }, [p.value && T(), y.value && F()]);
883
888
  }
884
889
  return {
885
- renderListArea: A
890
+ renderListArea: I
886
891
  };
887
892
  }
888
- function xt(e, t, n) {
893
+ function zt(e, t, n) {
889
894
  function o() {
890
- return t.slots.header && b("div", {
895
+ return t.slots.header && h("div", {
891
896
  class: "f-list-view-header"
892
897
  }, [t.slots.header()]);
893
898
  }
@@ -895,113 +900,113 @@ function xt(e, t, n) {
895
900
  renderHeader: o
896
901
  };
897
902
  }
898
- function se(e, t, n) {
899
- const o = C(e.headerClass), s = C(e.placeholder), c = C(""), i = B(() => !c.value), p = B(() => !!c.value);
900
- function g(r) {
901
- c.value = "";
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 = "";
902
907
  }
903
- N(c, (r) => {
904
- e.enableHighlightSearch && n.search(r), t.emit("afterSearch", r);
908
+ N(r, (d) => {
909
+ e.enableHighlightSearch && n.search(d), t.emit("afterSearch", d);
905
910
  });
906
- const y = B(() => {
907
- const r = {
911
+ const l = V(() => {
912
+ const d = {
908
913
  "form-group": !0,
909
914
  "farris-form-group": !0
910
915
  };
911
- return o.value && o.value.split(" ").reduce((d, f) => (d[f] = !0, d), r), r;
916
+ return o.value && o.value.split(" ").reduce((u, m) => (u[m] = !0, u), d), d;
912
917
  });
913
- function h(r) {
918
+ function g(d) {
914
919
  }
915
- function l() {
916
- return b("div", {
920
+ function i() {
921
+ return h("div", {
917
922
  class: "f-list-view-header",
918
- onClick: ke(() => h, ["prevent", "stop"])
919
- }, [b("div", {
920
- class: y.value
921
- }, [b("div", {
923
+ onClick: Pe(() => g, ["prevent", "stop"])
924
+ }, [h("div", {
925
+ class: l.value
926
+ }, [h("div", {
922
927
  class: "farris-input-wrap"
923
- }, [b("div", {
928
+ }, [h("div", {
924
929
  class: "f-cmp-inputgroup"
925
- }, [b("div", {
930
+ }, [h("div", {
926
931
  class: "input-group f-state-editable"
927
- }, [Fe(b("input", {
932
+ }, [Ve(h("input", {
928
933
  class: "form-control f-utils-fill text-left",
929
- "onUpdate:modelValue": (r) => c.value = r,
934
+ "onUpdate:modelValue": (d) => r.value = d,
930
935
  name: "input-group-value",
931
936
  type: "text",
932
- placeholder: s.value,
937
+ placeholder: a.value,
933
938
  autocomplete: "off"
934
- }, null), [[je, c.value]]), b("div", {
939
+ }, null), [[Ae, r.value]]), h("div", {
935
940
  class: "input-group-append"
936
- }, [p.value && b("span", {
941
+ }, [f.value && h("span", {
937
942
  class: "input-group-text input-group-clear",
938
- onClick: (r) => g()
939
- }, [b("i", {
943
+ onClick: (d) => c()
944
+ }, [h("i", {
940
945
  class: "f-icon f-icon-close-circle"
941
- }, null)]), i.value && b("span", {
946
+ }, null)]), s.value && h("span", {
942
947
  class: "input-group-text"
943
- }, [b("span", {
948
+ }, [h("span", {
944
949
  class: "f-icon f-icon-search"
945
950
  }, null)])])])])])])]);
946
951
  }
947
952
  return {
948
- renderHeader: l
953
+ renderHeader: i
949
954
  };
950
955
  }
951
- const fe = /* @__PURE__ */ H({
956
+ const ve = /* @__PURE__ */ R({
952
957
  name: "FListView",
953
- props: pe,
958
+ props: be,
954
959
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
955
960
  setup(e, t) {
956
- const n = C(), o = C(!0), s = C(!1), c = C([]), i = 0, p = C(e.columns), g = Ve(e), y = De(e), h = Oe(e, g), l = Ie(e), r = Pe(e, /* @__PURE__ */ new Map(), y, g, l), S = Be(e, r, g, c, t), d = Tt(e, n), f = B(() => r.dataView.value.length), a = Ae(e, t, g), u = $e(), k = xe(e, {}, u), F = Le(e, a, y, g, u, k), V = Ee(e, g, k, F), w = Ne(e, g, k, F), v = He(e, p, r, f, i, F, V, w), {
957
- getVisualData: D
958
- } = v;
959
- c.value = D(0, f.value + i - 1);
960
- const m = B(() => {
961
- const L = {
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), {
962
+ getVisualData: T
963
+ } = b;
964
+ r.value = T(0, m.value + s - 1);
965
+ const F = V(() => {
966
+ const $ = {
962
967
  "f-list-view": !0,
963
968
  "f-list-view-multiple": e.multiSelect
964
969
  };
965
- return e.size !== "default" && (L[`${e.size}-item`] = !0), L;
966
- }), M = B(() => !!t.slots.footer || o.value);
967
- function A() {
968
- return e.header === "SearchBar" ? se : e.header === "ContentHeader" ? xt : se;
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;
969
974
  }
970
- const j = A(), {
971
- renderHeader: $
972
- } = j(e, t, d), {
973
- renderListArea: O
974
- } = $t(e, t, c, r, h, S, v);
975
- function P(L) {
976
- d.search(L);
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($);
977
982
  }
978
- function x(L) {
979
- L && (r.load(L), c.value = D(0, f.value + i - 1));
983
+ function E($) {
984
+ $ && (d.load($), r.value = T(0, m.value + s - 1));
980
985
  }
981
986
  t.expose({
982
- search: P,
983
- updateDataSource: x
987
+ search: L,
988
+ updateDataSource: E
984
989
  });
985
- function I(L) {
986
- e.multiSelect && (L.preventDefault(), L.stopPropagation());
990
+ function A($) {
991
+ e.multiSelect && ($.preventDefault(), $.stopPropagation());
987
992
  }
988
- return () => b("div", {
989
- class: m.value,
990
- onClick: I
991
- }, [$(), b("div", {
993
+ return () => h("div", {
994
+ class: F.value,
995
+ onClick: A
996
+ }, [D(), h("div", {
992
997
  ref: n,
993
998
  class: "f-list-view-content",
994
999
  onMouseover: () => {
995
- s.value = !0;
1000
+ a.value = !0;
996
1001
  },
997
1002
  onMouseleave: () => {
998
- s.value = !1;
1003
+ a.value = !1;
999
1004
  }
1000
- }, [O()]), M.value && b("div", {
1005
+ }, [P()]), I.value && h("div", {
1001
1006
  class: "f-list-view-footer"
1002
1007
  }, [t.slots.footer && t.slots.footer()])]);
1003
1008
  }
1004
- }), Lt = {
1009
+ }), Xt = {
1005
1010
  /**
1006
1011
  * 组件标识
1007
1012
  */
@@ -1027,7 +1032,7 @@ const fe = /* @__PURE__ */ H({
1027
1032
  */
1028
1033
  customClass: { type: Object, default: {} }
1029
1034
  };
1030
- function Et(e, t) {
1035
+ function Jt(e, t) {
1031
1036
  function n(o) {
1032
1037
  o.stopPropagation(), e.disabled || t.emit("click", o);
1033
1038
  }
@@ -1035,50 +1040,50 @@ function Et(e, t) {
1035
1040
  onClickButton: n
1036
1041
  };
1037
1042
  }
1038
- function Nt(e) {
1039
- const t = B(() => {
1043
+ function Qt(e) {
1044
+ const t = V(() => {
1040
1045
  const o = {
1041
1046
  "f-icon": !0
1042
1047
  };
1043
1048
  if (e.icon) {
1044
- const s = e.icon.trim().split(" ");
1045
- s && s.length && s.reduce((c, i) => (c[i] = !0, c), o);
1049
+ const a = e.icon.trim().split(" ");
1050
+ a && a.length && a.reduce((r, s) => (r[s] = !0, r), o);
1046
1051
  }
1047
1052
  return o;
1048
- }), n = B(() => !!(e.icon && e.icon.trim()));
1053
+ }), n = V(() => !!(e.icon && e.icon.trim()));
1049
1054
  return { iconClass: t, shouldShowIcon: n };
1050
1055
  }
1051
- const me = /* @__PURE__ */ H({
1056
+ const Ce = /* @__PURE__ */ R({
1052
1057
  name: "FButton",
1053
- props: Lt,
1058
+ props: Xt,
1054
1059
  emits: ["click"],
1055
1060
  setup(e, t) {
1056
1061
  const {
1057
1062
  onClickButton: n
1058
- } = Et(e, t), {
1063
+ } = Jt(e, t), {
1059
1064
  iconClass: o,
1060
- shouldShowIcon: s
1061
- } = Nt(e), c = B(() => {
1062
- const i = {
1065
+ shouldShowIcon: a
1066
+ } = Qt(e), r = V(() => {
1067
+ const s = {
1063
1068
  btn: !0,
1064
1069
  "btn-lg": e.size === "large",
1065
1070
  "btn-md": e.size !== "large" && e.size !== "small",
1066
1071
  "btn-sm": e.size === "small",
1067
- "btn-icontext": s.value
1072
+ "btn-icontext": a.value
1068
1073
  };
1069
- return i[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((p, g) => (p[g] = e.customClass[g], p), i), i;
1074
+ return s[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((f, c) => (f[c] = e.customClass[c], f), s), s;
1070
1075
  });
1071
- return () => b("button", {
1072
- class: c.value,
1076
+ return () => h("button", {
1077
+ class: r.value,
1073
1078
  disabled: e.disabled,
1074
- onClick: (i) => n(i)
1075
- }, [s.value && b("i", {
1079
+ onClick: (s) => n(s)
1080
+ }, [a.value && h("i", {
1076
1081
  class: o.value
1077
1082
  }, null), t.slots.default && t.slots.default()]);
1078
1083
  }
1079
- }), Ht = /* @__PURE__ */ new Map([
1080
- ["appearance", ee]
1081
- ]), Rt = "https://json-schema.org/draft/2020-12/schema", Ut = "https://farris-design.gitee.io/combo-list.schema.json", Gt = "combo-list", qt = "A Farris Input Component", _t = "object", Wt = {
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 = {
1082
1087
  id: {
1083
1088
  description: "The unique identifier for a combo list",
1084
1089
  type: "string"
@@ -1194,27 +1199,27 @@ const me = /* @__PURE__ */ H({
1194
1199
  type: "sting",
1195
1200
  default: ""
1196
1201
  }
1197
- }, zt = [
1202
+ }, an = [
1198
1203
  "id",
1199
1204
  "type"
1200
- ], Jt = [
1205
+ ], rn = [
1201
1206
  "id",
1202
1207
  "appearance",
1203
1208
  "binding"
1204
- ], Xt = {
1205
- $schema: Rt,
1206
- $id: Ut,
1207
- title: Gt,
1208
- description: qt,
1209
- type: _t,
1210
- properties: Wt,
1211
- required: zt,
1212
- ignore: Jt
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
1213
1218
  };
1214
- function Qt(e, t, n) {
1219
+ function sn(e, t, n) {
1215
1220
  return t;
1216
1221
  }
1217
- const ne = {
1222
+ const re = {
1218
1223
  /**
1219
1224
  * 组件标识
1220
1225
  */
@@ -1380,7 +1385,7 @@ const ne = {
1380
1385
  },
1381
1386
  // 搜索启用高亮
1382
1387
  enableHighlightSearch: { type: Boolean, default: !0 }
1383
- }, ye = K(ne, Xt, Ht, Qt), Yt = {
1388
+ }, we = z(re, ln, Yt, sn), cn = {
1384
1389
  dataSource: { type: Array, default: [] },
1385
1390
  enableSearch: { type: Boolean, default: !1 },
1386
1391
  idField: { type: String, default: "id" },
@@ -1400,241 +1405,858 @@ const ne = {
1400
1405
  default: !1
1401
1406
  },
1402
1407
  // 搜索启用高亮
1403
- enableHighlightSearch: { type: Boolean, default: !0 },
1404
- // 是否展示复选框
1405
- showCheckbox: { type: Boolean, default: !1 }
1406
- }, Zt = /* @__PURE__ */ H({
1408
+ enableHighlightSearch: { type: Boolean, default: !0 }
1409
+ }, un = /* @__PURE__ */ R({
1407
1410
  name: "FComboListContainer",
1408
- props: Yt,
1411
+ props: cn,
1409
1412
  emits: ["selectionChange"],
1410
1413
  setup(e, t) {
1411
- const n = C(), o = C(e.dataSource), s = C([]), c = C(e.separator), i = C(e.width), p = C(e.maxHeight), g = C(String(e.selectedValues).split(c.value)), y = B(() => e.multiSelect), h = B(() => ({
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(() => ({
1412
1415
  enableSelectRow: !0,
1413
1416
  multiSelect: e.multiSelect,
1414
1417
  multiSelectMode: "OnCheckAndClick",
1415
- showCheckbox: y.value,
1418
+ showCheckbox: l.value,
1416
1419
  showSelectAll: !1,
1417
1420
  showSelection: !0
1418
1421
  }));
1419
1422
  N(e.dataSource, () => {
1420
1423
  o.value = e.dataSource;
1421
1424
  });
1422
- const l = B(() => e.enableSearch ? "SearchBar" : "ContentHeader"), r = B(() => {
1423
- const f = {};
1424
- return i.value !== void 0 && (f.width = `${i.value}px`), p.value !== void 0 && p.value > 0 && (f.maxHeight = `${p.value}px`), f;
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;
1425
1428
  });
1426
- function S(f) {
1427
- s.value = f.map((a) => Object.assign({}, a)), g.value = f.map((a) => a[e.idField]), t.emit("selectionChange", s.value);
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);
1428
1431
  }
1429
- function d(f) {
1432
+ function u(m) {
1430
1433
  if (e.enableHighlightSearch)
1431
1434
  return;
1432
- let a = [];
1433
- typeof e.searchOption == "function" ? a = o.value.filter((u) => e.searchOption(f, u)) : a = o.value.filter((u) => u[e.valueField].indexOf(f) > -1 || u[e.textField].indexOf(f) > -1), n.value.updateDataSource(a);
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);
1434
1437
  }
1435
- return N([() => e.selectedValues], ([f]) => {
1436
- g.value = f.split(c.value);
1437
- }), () => b("div", {
1438
+ return N([() => e.selectedValues], ([m]) => {
1439
+ c.value = m.split(r.value);
1440
+ }), () => h("div", {
1438
1441
  class: "f-combo-list-container pl-1",
1439
- style: r.value
1440
- }, [b(Re, {
1442
+ style: d.value
1443
+ }, [h(Ye, {
1441
1444
  ref: n,
1442
1445
  size: "small",
1443
1446
  itemClass: "f-combo-list-item",
1444
- header: l.value,
1447
+ header: i.value,
1445
1448
  headerClass: "f-combo-list-search-box",
1446
1449
  data: o.value,
1447
1450
  idField: e.idField,
1448
1451
  textField: e.textField,
1449
1452
  titleField: e.titleField,
1450
1453
  multiSelect: e.multiSelect,
1451
- selection: h.value,
1454
+ selection: g.value,
1452
1455
  enableHighlightSearch: e.enableHighlightSearch,
1453
- selectionValues: g.value,
1454
- onSelectionChange: S,
1455
- onAfterSearch: d
1456
+ selectionValues: c.value,
1457
+ onSelectionChange: C,
1458
+ onAfterSearch: u
1456
1459
  }, null)]);
1457
1460
  }
1458
1461
  });
1459
- function Kt(e) {
1460
- const t = C(""), n = C(e.modelValue), o = C(e.data || []), s = C(e.editable);
1461
- function c(l) {
1462
- const r = String(l).split(e.separator), S = r.map((a) => [a, !0]), d = new Map(S);
1463
- return o.value.filter((a) => d.has(String(a[e.valueField]))).sort((a, u) => {
1464
- const k = r.indexOf(a[e.valueField]), F = r.indexOf(u[e.valueField]);
1465
- return k - F;
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;
1466
1469
  });
1467
1470
  }
1468
- function i(l) {
1469
- const r = c(l).map((S) => S[e.textField]).join(e.separator);
1470
- t.value = s.value ? r || l : r;
1471
- }
1472
- function p(l) {
1473
- const r = l.split(e.separator).map((d) => [d, !0]), S = new Map(r);
1474
- return o.value.filter((d) => S.has(d[e.textField]));
1475
- }
1476
- function g(l) {
1477
- const r = {};
1478
- return r[e.idField] = l, r[e.textField] = l, [r];
1479
- }
1480
- function y(l) {
1481
- let r = p(l);
1482
- const S = r && r.length > 0;
1483
- return s.value && !S && (r = g(l)), r;
1484
- }
1485
- function h() {
1486
- const { url: l, method: r = "GET", headers: S = {}, body: d = null } = e.remote, f = r.toLowerCase() == "get" ? { method: r, headers: S } : { method: r, headers: S, body: d };
1487
- let a = !1;
1488
- fetch(l, f).then((u) => {
1489
- var F, V;
1490
- if (u.status === 200)
1491
- return a = !!((V = (F = u.headers) == null ? void 0 : F.get("content-type")) != null && V.includes("application/json")), a ? u.text() : u.json();
1492
- throw new Error(u.statusText);
1493
- }).then((u) => {
1494
- o.value = a ? JSON.parse(u) : u;
1495
- }).catch((u) => {
1496
- console.error(u);
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);
1497
1500
  });
1498
1501
  }
1499
- return e.remote && h(), N(() => e.data, () => {
1502
+ return e.remote && g(), N(() => e.data, () => {
1500
1503
  o.value = e.data;
1501
- }), N([o], ([l]) => {
1502
- if (e.modelValue) {
1503
- const r = l.find((S) => S[e.valueField] === e.modelValue);
1504
- r && (t.value = r[e.textField]);
1504
+ }), N([o], ([i]) => {
1505
+ if (e.modelValue != null) {
1506
+ const d = i.find((C) => C[e.valueField] === e.modelValue);
1507
+ d && (t.value = d[e.textField]);
1505
1508
  }
1506
- }), N(() => e.modelValue, (l) => {
1507
- n.value = l, i(l);
1508
- }), i(e.modelValue), { dataSource: o, displayText: t, editable: s, modelValue: n, getItemsByDisplayText: p, getItemsByValue: c, getSelectedItemsByDisplayText: y };
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 };
1509
1512
  }
1510
- const G = /* @__PURE__ */ H({
1513
+ const G = /* @__PURE__ */ R({
1511
1514
  name: "FComboList",
1512
- props: ne,
1515
+ props: re,
1513
1516
  emits: ["clear", "update:modelValue", "change", "input"],
1514
1517
  setup(e, t) {
1515
- const n = C(), o = C(e.disabled), s = C(e.enableClear), c = C(e.enableSearch), i = C(e.readonly), {
1516
- dataSource: p,
1517
- displayText: g,
1518
- editable: y,
1519
- modelValue: h,
1520
- getSelectedItemsByDisplayText: l
1521
- } = Kt(e), r = B(() => e.multiSelect), S = B(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1522
- function d() {
1523
- !r.value && n.value && n.value.hidePopup();
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();
1524
1527
  }
1525
- function f(w) {
1526
- g.value = w.map((v) => v[e.textField]).join(e.separator), w.length === 1 ? h.value = w[0][e.valueField] : h.value = w.map((v) => v[e.valueField]).join(e.separator), t.emit("update:modelValue", h.value), t.emit("change", w, h.value), d();
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();
1527
1530
  }
1528
- function a() {
1529
- i.value || n.value.togglePopup();
1531
+ function p() {
1532
+ s.value || n.value.togglePopup();
1530
1533
  }
1531
- function u(w) {
1532
- h.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1534
+ function y(w) {
1535
+ g.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1533
1536
  }
1534
- function k(w) {
1535
- const v = l(w);
1536
- f(v);
1537
+ function S(w) {
1538
+ const b = i(w);
1539
+ m(b);
1537
1540
  }
1538
- function F() {
1539
- return g.value;
1541
+ function k() {
1542
+ return c.value;
1540
1543
  }
1541
- function V(w) {
1544
+ function j(w) {
1542
1545
  t.emit("input", w);
1543
1546
  }
1544
1547
  return t.expose({
1545
- getDisplayText: F
1546
- }), N([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([w, v, D, m, M]) => {
1547
- o.value = w, y.value = v, s.value = D, c.value = m, i.value = M;
1548
- }), () => b(Ue, {
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, {
1549
1552
  ref: n,
1550
1553
  id: e.id,
1551
1554
  disable: o.value,
1552
- readonly: i.value,
1555
+ readonly: s.value,
1553
1556
  forcePlaceholder: e.forcePlaceholder,
1554
- editable: y.value,
1557
+ editable: l.value,
1555
1558
  buttonContent: e.dropDownIcon,
1556
1559
  placeholder: e.placeholder,
1557
- enableClear: s.value,
1560
+ enableClear: a.value,
1558
1561
  maxLength: e.maxLength,
1559
1562
  tabIndex: e.tabIndex,
1560
1563
  enableTitle: e.enableTitle,
1561
1564
  multiSelect: e.multiSelect,
1562
1565
  inputType: e.multiSelect ? e.viewType : "text",
1563
- modelValue: g.value,
1564
- "onUpdate:modelValue": (w) => g.value = w,
1566
+ modelValue: c.value,
1567
+ "onUpdate:modelValue": (w) => c.value = w,
1565
1568
  focusOnCreated: e.focusOnCreated,
1566
1569
  selectOnCreated: e.selectOnCreated,
1567
- onClear: u,
1568
- onClick: a,
1569
- onChange: k,
1570
- onInput: V,
1570
+ onClear: y,
1571
+ onClick: p,
1572
+ onChange: S,
1573
+ onInput: j,
1571
1574
  beforeOpen: e.beforeOpen
1572
1575
  }, {
1573
- default: () => [b(Zt, {
1576
+ default: () => [h(un, {
1574
1577
  idField: e.idField,
1575
1578
  valueField: e.valueField,
1576
1579
  textField: e.textField,
1577
1580
  titleField: e.titleField,
1578
- dataSource: p.value,
1579
- selectedValues: h.value,
1581
+ dataSource: f.value,
1582
+ selectedValues: g.value,
1580
1583
  multiSelect: e.multiSelect,
1581
- enableSearch: c.value,
1584
+ enableSearch: r.value,
1582
1585
  maxHeight: e.maxHeight,
1583
1586
  enableHighlightSearch: e.enableHighlightSearch,
1584
- width: e.fitEditor ? S.value : void 0,
1585
- onSelectionChange: f
1587
+ width: e.fitEditor ? C.value : void 0,
1588
+ onSelectionChange: m
1586
1589
  }, null)]
1587
1590
  });
1588
1591
  }
1592
+ }), pn = /* @__PURE__ */ new Map([
1593
+ ["appearance", Ke]
1594
+ ]);
1595
+ function fn(e, t, n) {
1596
+ return t;
1597
+ }
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 = {
1599
+ id: {
1600
+ description: "The unique identifier for a Input Group",
1601
+ type: "string"
1602
+ },
1603
+ type: {
1604
+ description: "The type string of Input Group component",
1605
+ type: "string",
1606
+ default: "button-edit"
1607
+ },
1608
+ appearance: {
1609
+ description: "",
1610
+ type: "object",
1611
+ properties: {
1612
+ class: {
1613
+ type: "string"
1614
+ },
1615
+ style: {
1616
+ type: "string"
1617
+ }
1618
+ },
1619
+ default: {}
1620
+ },
1621
+ binding: {
1622
+ description: "",
1623
+ type: "object",
1624
+ default: {}
1625
+ },
1626
+ disable: {
1627
+ type: "string",
1628
+ default: !1
1629
+ },
1630
+ editable: {
1631
+ description: "",
1632
+ type: "boolean",
1633
+ default: !0
1634
+ },
1635
+ enableLinkLabel: {
1636
+ description: "",
1637
+ type: "boolean",
1638
+ default: !1
1639
+ },
1640
+ label: {
1641
+ description: "",
1642
+ type: "string",
1643
+ default: ""
1644
+ },
1645
+ lableWidth: {
1646
+ description: "",
1647
+ type: "number"
1648
+ },
1649
+ placeholder: {
1650
+ description: "",
1651
+ type: "string",
1652
+ default: ""
1653
+ },
1654
+ readonly: {
1655
+ description: "",
1656
+ type: "boolean",
1657
+ default: !1
1658
+ },
1659
+ require: {
1660
+ description: "",
1661
+ type: "boolean",
1662
+ default: !1
1663
+ },
1664
+ tabindex: {
1665
+ description: "",
1666
+ type: "number",
1667
+ default: -1
1668
+ },
1669
+ textAlign: {
1670
+ description: "",
1671
+ type: "string",
1672
+ enum: [
1673
+ "left",
1674
+ "middle",
1675
+ "right"
1676
+ ],
1677
+ default: "left"
1678
+ },
1679
+ visible: {
1680
+ description: "",
1681
+ type: "boolean",
1682
+ default: !0
1683
+ },
1684
+ onBlur: {
1685
+ description: "",
1686
+ type: "string",
1687
+ default: ""
1688
+ },
1689
+ onClickLinkLabel: {
1690
+ description: "",
1691
+ type: "sting",
1692
+ default: ""
1693
+ },
1694
+ autoComplete: {
1695
+ description: "",
1696
+ type: "boolean",
1697
+ default: !1
1698
+ },
1699
+ buttonContent: {
1700
+ description: "",
1701
+ type: "string",
1702
+ default: ""
1703
+ },
1704
+ enableClear: {
1705
+ description: "",
1706
+ type: "boolean",
1707
+ default: !0
1708
+ },
1709
+ inputType: {
1710
+ description: "",
1711
+ type: "string",
1712
+ enum: [
1713
+ "text",
1714
+ "tag"
1715
+ ],
1716
+ default: "text"
1717
+ },
1718
+ multiSelect: {
1719
+ description: "",
1720
+ type: "boolean",
1721
+ default: !1
1722
+ },
1723
+ popup: {
1724
+ description: "",
1725
+ type: "object",
1726
+ properties: {
1727
+ footerButtons: {
1728
+ type: "array",
1729
+ default: []
1730
+ },
1731
+ height: {
1732
+ type: "number",
1733
+ default: 600
1734
+ },
1735
+ dataMapping: {
1736
+ type: "object"
1737
+ },
1738
+ contents: {
1739
+ type: "array",
1740
+ default: []
1741
+ },
1742
+ showMaxButton: {
1743
+ type: "boolean",
1744
+ default: !0
1745
+ },
1746
+ showCloseButton: {
1747
+ type: "boolean",
1748
+ default: !0
1749
+ },
1750
+ showFooter: {
1751
+ type: "boolean",
1752
+ default: !0
1753
+ },
1754
+ title: {
1755
+ type: "string",
1756
+ default: ""
1757
+ },
1758
+ width: {
1759
+ type: "number",
1760
+ default: 800
1761
+ }
1762
+ }
1763
+ },
1764
+ separator: {
1765
+ type: "string",
1766
+ default: ","
1767
+ },
1768
+ showButtonWhenDisabled: {
1769
+ description: "",
1770
+ type: "boolean",
1771
+ default: !1
1772
+ },
1773
+ wrapText: {
1774
+ type: "boolean",
1775
+ default: !1
1776
+ },
1777
+ onClear: {
1778
+ description: "",
1779
+ type: "string",
1780
+ default: ""
1781
+ }
1782
+ }, Cn = [
1783
+ "id",
1784
+ "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 = {
1794
+ basic: {
1795
+ description: "Basic Infomation",
1796
+ title: "基本信息",
1797
+ properties: {
1798
+ id: {
1799
+ description: "组件标识",
1800
+ title: "标识",
1801
+ type: "string",
1802
+ readonly: !0
1803
+ },
1804
+ type: {
1805
+ description: "组件类型",
1806
+ title: "控件类型",
1807
+ type: "select",
1808
+ editor: {
1809
+ type: "waiting for modification",
1810
+ enum: []
1811
+ }
1812
+ }
1813
+ }
1814
+ },
1815
+ behavior: {
1816
+ description: "Basic Infomation",
1817
+ title: "行为",
1818
+ properties: {
1819
+ editable: {
1820
+ description: "",
1821
+ title: "允许编辑",
1822
+ type: "boolean"
1823
+ },
1824
+ readonly: {
1825
+ description: "",
1826
+ title: "只读",
1827
+ type: "string"
1828
+ },
1829
+ required: {
1830
+ description: "",
1831
+ title: "必填",
1832
+ type: "boolean"
1833
+ },
1834
+ visible: {
1835
+ description: "",
1836
+ title: "可见",
1837
+ type: "boolean"
1838
+ },
1839
+ placeholder: {
1840
+ description: "",
1841
+ title: "提示文本",
1842
+ type: "string"
1843
+ },
1844
+ tabindex: {
1845
+ description: "",
1846
+ title: "tab索引",
1847
+ type: "number"
1848
+ },
1849
+ textAlign: {
1850
+ description: "",
1851
+ title: "对齐方式",
1852
+ type: "enum",
1853
+ editor: {
1854
+ type: "combo-list",
1855
+ textField: "name",
1856
+ valueField: "value",
1857
+ data: [
1858
+ {
1859
+ value: "left",
1860
+ name: "左对齐"
1861
+ },
1862
+ {
1863
+ value: "center",
1864
+ name: "居中对齐"
1865
+ },
1866
+ {
1867
+ value: "right",
1868
+ name: "右对齐"
1869
+ }
1870
+ ]
1871
+ }
1872
+ }
1873
+ }
1874
+ }
1875
+ }, Mn = {
1876
+ title: Sn,
1877
+ description: kn,
1878
+ type: Fn,
1879
+ categories: In
1880
+ }, Se = {
1881
+ /**
1882
+ * 组件标识
1883
+ */
1884
+ id: String,
1885
+ /**
1886
+ * 扩展按钮显示内容,这是一段现在扩展按钮中的html标签
1887
+ */
1888
+ buttonContent: { type: String, default: '<i class="f-icon f-icon-lookup"></i>' },
1889
+ buttonBehavior: { type: String, default: "Popup" },
1890
+ /**
1891
+ * 启用输入框自动完成功能
1892
+ */
1893
+ autoComplete: { type: Boolean, default: !1 },
1894
+ /**
1895
+ * 组件自定义样式
1896
+ */
1897
+ customClass: { type: String, default: "" },
1898
+ /**
1899
+ * 禁用组件,既不允许在输入框中录入,也不允许点击扩展按钮。
1900
+ */
1901
+ disable: { type: Boolean, default: !1 },
1902
+ /**
1903
+ * 允许在输入框中录入文本。
1904
+ */
1905
+ editable: { type: Boolean, default: !0 },
1906
+ /**
1907
+ * 显示清空文本按钮
1908
+ */
1909
+ enableClear: { type: Boolean, default: !1 },
1910
+ /**
1911
+ * 组件值
1912
+ */
1913
+ modelValue: { type: String, default: "" },
1914
+ /**
1915
+ * 将组件设置为只读,既不允许在输入框中录入,也不允许点击扩展按钮,但是允许复制输入框中的内容。
1916
+ */
1917
+ readonly: { type: Boolean, default: !1 },
1918
+ /**
1919
+ * 禁用组件时,是否显示扩展按钮
1920
+ */
1921
+ showButtonWhenDisabled: { type: Boolean, default: !1 },
1922
+ /**
1923
+ * 显示输入框的标签
1924
+ */
1925
+ enableTitle: { type: Boolean, default: !1 },
1926
+ /**
1927
+ * 输入框类型
1928
+ */
1929
+ inputType: { type: String, default: "text" },
1930
+ /**
1931
+ * 显示输入框提示信息
1932
+ */
1933
+ forcePlaceholder: { type: Boolean, default: !1 },
1934
+ /**
1935
+ * 输入框提示文本
1936
+ */
1937
+ placeholder: { type: String, default: "" },
1938
+ /**
1939
+ * 输入框最小长度
1940
+ */
1941
+ minLength: Number,
1942
+ /**
1943
+ * 输入框最大长度
1944
+ */
1945
+ maxLength: Number,
1946
+ /**
1947
+ * 输入框Tab键索引
1948
+ */
1949
+ tabIndex: Number,
1950
+ popupHost: { type: Object },
1951
+ popupRightBoundary: { type: Object },
1952
+ popupOffsetX: { type: Object },
1953
+ popupOnInput: { type: Boolean, default: !1 },
1954
+ popupOnFocus: { type: Boolean, default: !1 },
1955
+ popupMinWidth: { type: Number, default: 160 },
1956
+ modalOptions: { type: Object, default: {} },
1957
+ wrapText: { type: Boolean, default: !1 },
1958
+ /**
1959
+ * 可选,是否支持多选
1960
+ * 默认`false`
1961
+ */
1962
+ multiSelect: { type: Boolean, default: !1 },
1963
+ /**
1964
+ * 可选,分隔符
1965
+ * 默认`,`
1966
+ */
1967
+ separator: { type: String, default: "," },
1968
+ /** 对齐方式 */
1969
+ textAlign: { type: String, default: "left" },
1970
+ /**
1971
+ * 废弃
1972
+ */
1973
+ beforeClickButton: { type: Function, default: null },
1974
+ /**
1975
+ * 作为内嵌编辑器被创建后默认获得焦点
1976
+ */
1977
+ focusOnCreated: { type: Boolean, default: !1 },
1978
+ /**
1979
+ * 作为内嵌编辑器被创建后默认选中文本
1980
+ */
1981
+ selectOnCreated: { type: Boolean, default: !1 },
1982
+ /**
1983
+ * 打开前
1984
+ */
1985
+ beforeOpen: { type: Function, default: null },
1986
+ /** 更新方式 blur | change */
1987
+ updateOn: { type: String, default: "change" }
1988
+ };
1989
+ z(Se, wn, pn, fn, Mn);
1990
+ const jn = {
1991
+ popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
1992
+ host: { type: Object },
1993
+ backgroundColor: { type: String, default: "" }
1994
+ }, Bn = /* @__PURE__ */ R({
1995
+ name: "FOverlay",
1996
+ props: jn,
1997
+ emits: ["click"],
1998
+ setup(e, t) {
1999
+ const n = v(e.popupContentPosition), o = v(e.host), a = V(() => ({
2000
+ backgroundColor: e.backgroundColor || "",
2001
+ pointerEvents: "auto"
2002
+ }));
2003
+ function r(f) {
2004
+ t.emit("click"), f.preventDefault(), f.stopPropagation();
2005
+ }
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;
2014
+ return {
2015
+ left: l,
2016
+ top: g + i
2017
+ };
2018
+ }
2019
+ return n.value;
2020
+ });
2021
+ const s = V(() => ({
2022
+ // position: 'relative',
2023
+ // left: `${position.value.left}px`,
2024
+ // top: `${position.value.top}px`
2025
+ }));
2026
+ return () => h(De, {
2027
+ to: "body"
2028
+ }, {
2029
+ default: () => {
2030
+ var f, c;
2031
+ return [h("div", {
2032
+ 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)])])];
2038
+ }
2039
+ });
2040
+ }
2041
+ });
2042
+ function Tn(e) {
2043
+ if (e.content && e.content.render)
2044
+ return e.content.render;
2045
+ if (e.render && typeof e.render == "function")
2046
+ return e.render;
2047
+ }
2048
+ function On(e) {
2049
+ const t = document.createElement("div");
2050
+ t.style.display = "contents";
2051
+ let n;
2052
+ const o = e.onClickCallback || (() => {
2053
+ }), a = () => {
2054
+ o(), n && n.unmount();
2055
+ };
2056
+ return n = Le({
2057
+ setup() {
2058
+ Ee(() => {
2059
+ document.body.removeChild(t);
2060
+ });
2061
+ const r = Tn(e);
2062
+ return () => h(Bn, {
2063
+ "popup-content-position": e.popupPosition,
2064
+ host: e.host,
2065
+ onClick: a,
2066
+ backgroundColor: e.backgroundColor
2067
+ }, {
2068
+ default: () => [r && r()]
2069
+ });
2070
+ }
2071
+ }), document.body.appendChild(t), n.mount(t), n;
2072
+ }
2073
+ class Pn {
2074
+ static show(t) {
2075
+ return On(t);
2076
+ }
2077
+ }
2078
+ const Vn = Symbol("FModalService");
2079
+ function ke(e, t) {
2080
+ 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;
2088
+ }
2089
+ return a;
2090
+ }
2091
+ return { judgeCanOpen: n };
2092
+ }
2093
+ function An(e, t, n, o, a) {
2094
+ const r = v(e.buttonBehavior), s = v(e.popupOnInput), f = V(() => ({
2095
+ "input-group-append": !0,
2096
+ "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,
2104
+ render: () => t.slots.default && t.slots.default()
2105
+ });
2106
+ i.value = S == null ? void 0 : S.modalRef;
2107
+ }
2108
+ r.value === "Overlay" && Pn.show({
2109
+ // host: buttonEditRef.value,
2110
+ host: document.body,
2111
+ backgroundColor: "rgba(0,0,0,.15)",
2112
+ 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 });
2114
+ }
2115
+ }
2116
+ function C(m) {
2117
+ t.emit("mouseEnterIcon", m);
2118
+ }
2119
+ function u(m) {
2120
+ t.emit("mouseLeaveIcon", m);
2121
+ }
2122
+ return {
2123
+ buttonGroupClass: f,
2124
+ onClickButton: d,
2125
+ onMouseEnterButton: C,
2126
+ onMouseLeaveButton: u,
2127
+ modalRef: i
2128
+ };
2129
+ }
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);
2135
+ }
2136
+ async function c(i = !1) {
2137
+ if (!!t.slots.default) {
2138
+ if (!i && !r.value && !await s())
2139
+ return;
2140
+ r.value = !r.value, await Z(), f();
2141
+ }
2142
+ }
2143
+ async function l(i = !1) {
2144
+ if (!!t.slots.default) {
2145
+ if (!i && !await s())
2146
+ return;
2147
+ r.value = !0, await Z(), f();
2148
+ }
2149
+ }
2150
+ function g() {
2151
+ r.value = !1;
2152
+ }
2153
+ return { hidePopup: g, popup: l, shouldPopupContent: r, togglePopup: c, popoverRef: a };
2154
+ }
2155
+ function Ln(e, t, n) {
2156
+ const {
2157
+ buttonGroupClass: o
2158
+ } = n, a = v();
2159
+ return {
2160
+ renderButtonGroup: () => h("div", {
2161
+ id: `${e.id}-button-group`,
2162
+ class: o.value
2163
+ }, [t.slots.buttonContent ? h("span", {
2164
+ class: "input-group-text input-group-append-button"
2165
+ }, [t.slots.buttonContent()]) : e.buttonContent ? h("span", {
2166
+ class: "input-group-text input-group-append-button",
2167
+ innerHTML: e.buttonContent,
2168
+ ref: a
2169
+ }, null) : null]),
2170
+ buttonHandleElement: a
2171
+ };
2172
+ }
2173
+ const En = /* @__PURE__ */ R({
2174
+ name: "FButtonEdit",
2175
+ props: Se,
2176
+ emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
2177
+ 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(() => ({
2179
+ "f-cmp-inputgroup": !0,
2180
+ "input-group": !0,
2181
+ "f-state-disable": !0,
2182
+ "f-state-editable": !1,
2183
+ "f-state-readonly": !0
2184
+ }));
2185
+ ee(() => {
2186
+ n.value.componentInstance = a;
2187
+ }), t.expose(a.value);
2188
+ const i = V(() => {
2189
+ const C = {
2190
+ "f-button-edit": !0,
2191
+ "f-cmp-inputgroup": !0,
2192
+ "f-button-edit-nowrap": !e.wrapText
2193
+ };
2194
+ return r.value && r.value.split(" ").reduce((u, m) => (u[m] = !0, u), C), C;
2195
+ }), {
2196
+ renderButtonGroup: d
2197
+ } = Ln(e, t, c);
2198
+ return () => h("div", $e(t.attrs, {
2199
+ ref: n,
2200
+ class: i.value,
2201
+ id: e.id
2202
+ }), [h("div", {
2203
+ class: g.value
2204
+ }, [h("input", {
2205
+ ref: l,
2206
+ class: "form-control",
2207
+ readonly: !0,
2208
+ placeholder: e.placeholder
2209
+ }, null), d()])]);
2210
+ }
1589
2211
  });
1590
- function en(e, t) {
2212
+ function $n(e, t) {
1591
2213
  e.schema;
1592
- const n = C(!0), o = C(!0);
1593
- function s(l) {
2214
+ const n = v(!0), o = v(!0);
2215
+ function a(i) {
1594
2216
  return !1;
1595
2217
  }
1596
- function c() {
2218
+ function r() {
1597
2219
  return !1;
1598
2220
  }
1599
- function i() {
2221
+ function s() {
1600
2222
  return !1;
1601
2223
  }
1602
- function p() {
2224
+ function f() {
1603
2225
  return !0;
1604
2226
  }
1605
- function g(l) {
2227
+ function c(i) {
1606
2228
  }
1607
- function y() {
2229
+ function l() {
1608
2230
  }
1609
- function h(l) {
2231
+ function g(i) {
1610
2232
  return null;
1611
2233
  }
1612
2234
  return {
1613
- canAccepts: s,
1614
- checkCanDeleteComponent: c,
1615
- checkCanMoveComponent: i,
1616
- hideNestedPaddingInDesginerView: p,
1617
- onAcceptMovedChildElement: g,
1618
- resolveComponentContext: y,
2235
+ canAccepts: a,
2236
+ checkCanDeleteComponent: r,
2237
+ checkCanMoveComponent: s,
2238
+ hideNestedPaddingInDesginerView: f,
2239
+ onAcceptMovedChildElement: c,
2240
+ resolveComponentContext: l,
1619
2241
  triggerBelongedComponentToMoveWhenMoved: n,
1620
2242
  triggerBelongedComponentToDeleteWhenDeleted: o,
1621
- getPropsConfig: h
2243
+ getPropsConfig: g
1622
2244
  };
1623
2245
  }
1624
- class tn {
2246
+ class xn {
1625
2247
  constructor(t, n) {
1626
- E(this, "componentId");
1627
- E(this, "viewModelId");
1628
- E(this, "eventsEditorUtils");
1629
- E(this, "formSchemaUtils");
1630
- E(this, "formMetadataConverter");
1631
- E(this, "designViewModelUtils");
1632
- E(this, "designViewModelField");
1633
- E(this, "controlCreatorUtils");
1634
- E(this, "designerHostService");
1635
- E(this, "schemaService", null);
1636
- E(this, "metadataService", null);
1637
- E(this, "propertyConfig", {
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", {
1638
2260
  type: "object",
1639
2261
  categories: {}
1640
2262
  });
@@ -1650,7 +2272,7 @@ class tn {
1650
2272
  if (n) {
1651
2273
  if (!this.designViewModelField) {
1652
2274
  const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1653
- this.designViewModelField = o.fields.find((s) => s.id === n);
2275
+ this.designViewModelField = o.fields.find((a) => a.id === n);
1654
2276
  }
1655
2277
  t.updateOn = this.designViewModelField.updateOn;
1656
2278
  }
@@ -1676,7 +2298,7 @@ class tn {
1676
2298
  type: "combo-list",
1677
2299
  textField: "name",
1678
2300
  valueField: "value",
1679
- data: [{ value: t.type, name: T[t.type].name }]
2301
+ data: [{ value: t.type, name: B[t.type].name }]
1680
2302
  }
1681
2303
  }
1682
2304
  }
@@ -1702,13 +2324,26 @@ class tn {
1702
2324
  }
1703
2325
  };
1704
2326
  }
2327
+ /**
2328
+ *
2329
+ * @param propertyId
2330
+ * @param componentInstance
2331
+ * @returns
2332
+ */
2333
+ updateElementByParentContainer(t, n) {
2334
+ const o = n && n.parent && n.parent.schema;
2335
+ if (!o)
2336
+ 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);
2339
+ }
1705
2340
  }
1706
- const R = class R {
2341
+ const U = class U {
1707
2342
  /**
1708
2343
  * 根据绑定字段类型获取可用的输入类控件
1709
2344
  */
1710
2345
  static getEditorTypesByMDataType(t) {
1711
- const n = R.fieldControlTypeMapping[t];
2346
+ const n = U.fieldControlTypeMapping[t];
1712
2347
  return n || [{ key: "", value: "" }];
1713
2348
  }
1714
2349
  /**
@@ -1716,9 +2351,9 @@ const R = class R {
1716
2351
  */
1717
2352
  static getAllInputTypes() {
1718
2353
  const t = [];
1719
- for (let n in R.fieldControlTypeMapping)
1720
- R.fieldControlTypeMapping[n].forEach((o) => {
1721
- t.find((s) => s.key === o.key && s.value === o.value) || t.push({ key: o.key, value: o.value });
2354
+ 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 });
1722
2357
  });
1723
2358
  return t;
1724
2359
  }
@@ -1726,66 +2361,68 @@ const R = class R {
1726
2361
  /**
1727
2362
  * <字段类型,可配置的控件类型列表>的映射
1728
2363
  */
1729
- E(R, "fieldControlTypeMapping", {
2364
+ x(U, "fieldControlTypeMapping", {
1730
2365
  String: [
1731
- { key: T["input-group"].type, value: T["input-group"].name },
1732
- { key: T.lookup.type, value: T.lookup.name },
1733
- { key: T["date-picker"].type, value: T["date-picker"].name },
1734
- { key: T["check-box"].type, value: T["check-box"].name },
1735
- { key: T["radio-group"].type, value: T["radio-group"].name },
1736
- { key: T["combo-list"].type, value: T["combo-list"].name },
1737
- { key: T.textarea.type, value: T.textarea.name }
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 }
1738
2373
  ],
1739
2374
  Text: [
1740
- { key: T.textarea.type, value: T.textarea.name },
1741
- { key: T.lookup.type, value: T.lookup.name }
2375
+ { key: B.textarea.type, value: B.textarea.name },
2376
+ { key: B.lookup.type, value: B.lookup.name }
1742
2377
  ],
1743
2378
  Decimal: [
1744
- { key: T["number-spinner"].type, value: T["number-spinner"].name }
2379
+ { key: B["number-spinner"].type, value: B["number-spinner"].name }
1745
2380
  ],
1746
2381
  Integer: [
1747
- { key: T["number-spinner"].type, value: T["number-spinner"].name }
2382
+ { key: B["number-spinner"].type, value: B["number-spinner"].name }
1748
2383
  ],
1749
2384
  Number: [
1750
- { key: T["number-spinner"].type, value: T["number-spinner"].name }
2385
+ { key: B["number-spinner"].type, value: B["number-spinner"].name }
1751
2386
  ],
1752
2387
  BigNumber: [
1753
- { key: T["number-spinner"].type, value: T["number-spinner"].name }
2388
+ { key: B["number-spinner"].type, value: B["number-spinner"].name }
1754
2389
  ],
1755
2390
  Date: [
1756
- { key: T["date-picker"].type, value: T["date-picker"].name }
2391
+ { key: B["date-picker"].type, value: B["date-picker"].name }
1757
2392
  ],
1758
2393
  DateTime: [
1759
- { key: T["date-picker"].type, value: T["date-picker"].name }
2394
+ { key: B["date-picker"].type, value: B["date-picker"].name }
1760
2395
  ],
1761
2396
  Boolean: [
1762
- { key: T.switch.type, value: T.switch.name },
1763
- { key: T["check-box"].type, value: T["check-box"].name }
2397
+ { key: B.switch.type, value: B.switch.name },
2398
+ { key: B["check-box"].type, value: B["check-box"].name }
1764
2399
  ],
1765
2400
  Enum: [
1766
- { key: T["combo-list"].type, value: T["combo-list"].name },
1767
- { key: T["radio-group"].type, value: T["radio-group"].name }
2401
+ { key: B["combo-list"].type, value: B["combo-list"].name },
2402
+ { key: B["radio-group"].type, value: B["radio-group"].name }
1768
2403
  ],
1769
2404
  Object: [
1770
- { key: T.lookup.type, value: T.lookup.name },
1771
- { key: T["combo-list"].type, value: T["combo-list"].name },
1772
- { key: T["radio-group"].type, value: T["radio-group"].name }
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 }
1773
2408
  ]
1774
2409
  });
1775
- let q = R;
1776
- const nn = C(0);
1777
- class on extends tn {
1778
- constructor(t, n) {
1779
- super(t, n);
1780
- }
1781
- getPropertyConfig(t, n) {
1782
- return this.propertyConfig.categories.basic = this.getBasicProperties(t, n), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
1783
- }
1784
- getBasicProperties(t, n) {
1785
- var i;
1786
- var o = this;
1787
- this.setDesignViewModelField(t);
1788
- const s = this.formSchemaUtils.getFormMetadataBasicInfo(), c = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
2410
+ 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;
2424
+ this.setDesignViewModelField(n);
2425
+ const r = this.formSchemaUtils.getFormMetadataBasicInfo(), s = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1789
2426
  return {
1790
2427
  description: "Basic Information",
1791
2428
  title: "基本信息",
@@ -1807,7 +2444,7 @@ class on extends tn {
1807
2444
  textField: "value",
1808
2445
  valueField: "key",
1809
2446
  editable: !1,
1810
- data: o.designViewModelField ? q.getEditorTypesByMDataType((i = o.designViewModelField.type) == null ? void 0 : i.name) : q.getAllInputTypes()
2447
+ data: a.designViewModelField ? W.getEditorTypesByMDataType((f = a.designViewModelField.type) == null ? void 0 : f.name) : W.getAllInputTypes()
1811
2448
  }
1812
2449
  },
1813
2450
  label: {
@@ -1823,8 +2460,8 @@ class on extends tn {
1823
2460
  type: "field-selector",
1824
2461
  bindingType: { enable: !1 },
1825
2462
  editorParams: {
1826
- propertyData: t,
1827
- formBasicInfo: s
2463
+ propertyData: n,
2464
+ formBasicInfo: r
1828
2465
  },
1829
2466
  columns: [
1830
2467
  { field: "name", title: "字段名称" },
@@ -1832,26 +2469,27 @@ class on extends tn {
1832
2469
  { field: "fieldType", title: "字段类型" }
1833
2470
  ],
1834
2471
  textField: "bindingField",
1835
- data: c
2472
+ data: s
1836
2473
  }
1837
2474
  }
1838
2475
  },
1839
- setPropertyRelates(p, g) {
1840
- if (p)
1841
- switch (p && p.propertyID) {
2476
+ setPropertyRelates(c, l) {
2477
+ if (c)
2478
+ switch (c && c.propertyID) {
1842
2479
  case "type": {
1843
- o.changeControlType(t, p, n);
2480
+ a.changeControlType(n, c, o);
1844
2481
  break;
1845
2482
  }
1846
2483
  case "label": {
1847
- p.needRefreshControlTree = !0;
2484
+ c.needRefreshControlTree = !0;
1848
2485
  break;
1849
2486
  }
1850
2487
  }
1851
2488
  }
1852
2489
  };
1853
2490
  }
1854
- getAppearanceProperties(t) {
2491
+ getAppearanceProperties(n, o) {
2492
+ var a = this;
1855
2493
  return {
1856
2494
  title: "样式",
1857
2495
  description: "Appearance",
@@ -1872,61 +2510,74 @@ class on extends tn {
1872
2510
  description: "响应式列宽",
1873
2511
  title: "响应式列宽",
1874
2512
  type: "boolean",
1875
- visible: !1,
2513
+ visible: !0,
2514
+ // 这个属性,标记当属性变更得时候触发重新更新属性
2515
+ refreshPanelAfterChanged: !0,
1876
2516
  editor: {
1877
- type: "response-layout-editor-setting"
1878
- },
1879
- $converter: "/converter/response-form-layout.converter"
2517
+ type: "response-layout-editor-setting",
2518
+ initialState: a.responseLayoutEditorFunction.checkCanOpenLayoutEditor(n, a.componentId)
2519
+ }
1880
2520
  }
2521
+ },
2522
+ setPropertyRelates(r, s) {
2523
+ if (r)
2524
+ switch (r && r.propertyID) {
2525
+ case "responseLayout":
2526
+ a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(r.propertyValue, a.componentId || n.id), a.updateUnifiedLayoutAfterResponseLayoutChanged(a.componentId), a.updateElementByParentContainer(n.id, o), delete n.responseLayout;
2527
+ break;
2528
+ case "class":
2529
+ a.updateUnifiedLayoutAfterControlChanged(r.propertyValue, n.id, this.componentId), a.updateElementByParentContainer(n.id, o);
2530
+ break;
2531
+ }
1881
2532
  }
1882
2533
  };
1883
2534
  }
1884
- getEditorProperties(t) {
1885
- return this.getComponentConfig(t);
2535
+ getEditorProperties(n) {
2536
+ return this.getComponentConfig(n);
1886
2537
  }
1887
2538
  /**
1888
2539
  * 卡片控件:切换控件类型后事件
1889
2540
  * @param propertyData 控件DOM属性
1890
2541
  * @param newControlType 新控件类型
1891
2542
  */
1892
- changeControlType(t, n, o) {
1893
- var y, h, l, r;
1894
- const s = n.propertyValue, c = o && o.parent && o.parent.schema;
1895
- if (!c)
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)
1896
2547
  return;
1897
- const i = c.contents.findIndex((S) => S.id === t.id), p = c.contents[i];
1898
- let g;
2548
+ const f = s.contents.findIndex((u) => u.id === n.id), c = s.contents[f];
2549
+ let l;
1899
2550
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1900
2551
  editor: {
1901
- $type: s
2552
+ $type: r
1902
2553
  },
1903
2554
  name: this.designViewModelField.name,
1904
2555
  require: this.designViewModelField.require,
1905
2556
  readonly: this.designViewModelField.readonly
1906
- }, !1), g = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, s)), g || (g = re("form-group") || {}, g.editor = re(s) || {}, delete g.editor.id, delete g.editor.binding, delete g.editor.appearance), Object.assign(g, {
1907
- id: p.id,
1908
- appearance: p.appearance,
1909
- size: p.size,
1910
- label: p.label,
1911
- binding: p.binding,
1912
- visible: p.visible
1913
- }), Object.assign(g.editor, {
1914
- isTextArea: g.isTextArea && p.isTextArea,
1915
- placeholder: (y = p.editor) == null ? void 0 : y.placeholder,
1916
- holdPlace: (h = p.editor) == null ? void 0 : h.holdPlace,
1917
- readonly: (l = p.editor) == null ? void 0 : l.readonly,
1918
- require: (r = p.editor) == null ? void 0 : r.require
1919
- }), c.contents.splice(i, 1), c.contents.splice(i, 0, g), o.schema = Object.assign(p, g), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1920
- (S) => S.classList.remove("dgComponentSelected")
1921
- ), nn.value++;
1922
- }
1923
- getComponentConfig(t, n = {}, o = {}) {
1924
- const s = Object.assign({
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({
1925
2576
  description: "编辑器",
1926
2577
  title: "编辑器",
1927
2578
  type: "input-group",
1928
2579
  $converter: "/converter/property-editor.converter"
1929
- }, n), c = Object.assign({
2580
+ }, o), s = Object.assign({
1930
2581
  readonly: {
1931
2582
  description: "",
1932
2583
  title: "只读",
@@ -1947,11 +2598,59 @@ class on extends tn {
1947
2598
  title: "提示文本",
1948
2599
  type: "string"
1949
2600
  }
1950
- }, o);
1951
- return { ...s, properties: { ...c } };
2601
+ }, a);
2602
+ return { ...r, properties: { ...s } };
2603
+ }
2604
+ /**
2605
+ * 修改某一输入控件的样式后更新Form的统一布局配置
2606
+ * @param controlClass 控件样式
2607
+ * @param controlId 控件Id
2608
+ * @param componentId 控件所在组件id
2609
+ */
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)
2620
+ };
2621
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(a, g);
2622
+ }
2623
+ /**
2624
+ * 修改控件布局配置后更新Form统一布局配置
2625
+ * @param componentId 组件Id
2626
+ * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
2627
+ */
2628
+ updateUnifiedLayoutAfterResponseLayoutChanged(n, o) {
2629
+ const { formNode: a } = this.responseLayoutEditorFunction.checkCanFindFormNode(n);
2630
+ if (!a || !a.unifiedLayout)
2631
+ 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);
2636
+ }
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
2643
+ });
2644
+ }
2645
+ /**
2646
+ * 校验宽度样式值是否一致
2647
+ */
2648
+ checkIsUniqueColumn(n) {
2649
+ const o = new Set(n);
2650
+ return Array.from(o).length === 1;
1952
2651
  }
1953
2652
  }
1954
- class an extends on {
2653
+ class Un extends Nn {
1955
2654
  constructor(t, n) {
1956
2655
  super(t, n);
1957
2656
  }
@@ -1975,41 +2674,41 @@ class an extends on {
1975
2674
  });
1976
2675
  }
1977
2676
  }
1978
- function rn(e, t) {
2677
+ function qn(e, t) {
1979
2678
  const {
1980
2679
  canAccepts: n,
1981
2680
  checkCanDeleteComponent: o,
1982
- checkCanMoveComponent: s,
1983
- hideNestedPaddingInDesginerView: c,
1984
- onAcceptMovedChildElement: i,
1985
- resolveComponentContext: p,
1986
- triggerBelongedComponentToMoveWhenMoved: g,
1987
- triggerBelongedComponentToDeleteWhenDeleted: y
1988
- } = en(e), h = e.schema;
1989
- function l(r, S) {
1990
- return new an(r, t).getPropertyConfig(h, S);
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);
1991
2690
  }
1992
2691
  return {
1993
2692
  canAccepts: n,
1994
2693
  checkCanDeleteComponent: o,
1995
- checkCanMoveComponent: s,
1996
- hideNestedPaddingInDesginerView: c,
1997
- onAcceptMovedChildElement: i,
1998
- resolveComponentContext: p,
1999
- triggerBelongedComponentToMoveWhenMoved: g,
2000
- triggerBelongedComponentToDeleteWhenDeleted: y,
2001
- getPropsConfig: l
2694
+ checkCanMoveComponent: a,
2695
+ hideNestedPaddingInDesginerView: r,
2696
+ onAcceptMovedChildElement: s,
2697
+ resolveComponentContext: f,
2698
+ triggerBelongedComponentToMoveWhenMoved: c,
2699
+ triggerBelongedComponentToDeleteWhenDeleted: l,
2700
+ getPropsConfig: i
2002
2701
  };
2003
2702
  }
2004
- const ln = /* @__PURE__ */ H({
2703
+ const Hn = /* @__PURE__ */ R({
2005
2704
  name: "FComboListDesign",
2006
- props: ne,
2705
+ props: re,
2007
2706
  emits: ["clear", "update:modelValue", "change"],
2008
2707
  setup(e, t) {
2009
- const n = C(), o = X("designer-host-service"), s = X("design-item-context"), c = rn(s, o), i = qe(n, s, c);
2010
- return ce(() => {
2011
- n.value.componentInstance = i;
2012
- }), t.expose(i.value), () => b(Ge, {
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, {
2013
2712
  ref: n,
2014
2713
  buttonContent: e.dropDownIcon,
2015
2714
  readonly: !0,
@@ -2019,222 +2718,222 @@ const ln = /* @__PURE__ */ H({
2019
2718
  enableClear: !0
2020
2719
  }, null);
2021
2720
  }
2022
- }), sn = (e) => {
2721
+ }), Gn = (e) => {
2023
2722
  const t = e;
2024
2723
  return t.install = function(n) {
2025
2724
  n.component(t.name, e);
2026
2725
  }, e;
2027
2726
  };
2028
2727
  G.register = (e, t, n, o) => {
2029
- e["combo-list"] = G, t["combo-list"] = ye;
2728
+ e["combo-list"] = G, t["combo-list"] = we;
2030
2729
  };
2031
2730
  G.registerDesigner = (e, t, n) => {
2032
- e["combo-list"] = ln, t["combo-list"] = ye;
2731
+ e["combo-list"] = Hn, t["combo-list"] = we;
2033
2732
  };
2034
- const _ = sn(G), z = /* @__PURE__ */ H({
2733
+ const _ = Gn(G), Q = /* @__PURE__ */ R({
2035
2734
  name: "FOrder",
2036
- props: te,
2735
+ props: ae,
2037
2736
  emits: ["change"],
2038
2737
  setup(e, t) {
2039
- const n = C(e.items), o = C("排序列"), s = C("排序方式"), c = C("添加排序列"), i = [{
2738
+ const n = v(e.items), o = v("排序列"), a = v("排序方式"), r = v("添加排序列"), s = [{
2040
2739
  id: "asc",
2041
2740
  name: "升序"
2042
2741
  }, {
2043
2742
  id: "desc",
2044
2743
  name: "降序"
2045
- }], p = C(/* @__PURE__ */ new Map());
2046
- function g() {
2047
- const a = n.value.map((u) => [u.id, !0]);
2048
- p.value = new Map(a);
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);
2049
2748
  }
2050
- g();
2051
- const y = B(() => e.dataSource.map((a) => (a.disabled = p.value.has(a.id), a))), h = B(() => ({
2749
+ c();
2750
+ const l = V(() => e.dataSource.map((p) => (p.disabled = f.value.has(p.id), p))), g = V(() => ({
2052
2751
  "f-order": !0
2053
2752
  }));
2054
- function l(a) {
2055
- n.value = n.value.filter((u) => u.id !== a.id), g(), t.emit("change", n.value);
2753
+ function i(p) {
2754
+ n.value = n.value.filter((y) => y.id !== p.id), c(), t.emit("change", n.value);
2056
2755
  }
2057
- function r() {
2756
+ function d() {
2058
2757
  n.value = [...n.value, {
2059
2758
  id: Date.now().toString(),
2060
2759
  name: "",
2061
2760
  order: "asc"
2062
- }], g(), t.emit("change", n.value);
2761
+ }], c(), t.emit("change", n.value);
2063
2762
  }
2064
- function S(a) {
2065
- if (a && a.length === 1) {
2066
- const u = a[0], k = n.value.find((F) => F.id === u.id);
2067
- k && (k.name = u.name);
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);
2068
2767
  }
2069
- g(), t.emit("change", n.value);
2768
+ c(), t.emit("change", n.value);
2070
2769
  }
2071
- function d(a) {
2072
- if (a && a.length) {
2073
- const u = /* @__PURE__ */ new Map();
2074
- a.reduce((k, F) => (k.set(F.id, F), k), u), n.value = a.map((k) => u.get(k.id)), t.emit("change", n.value);
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);
2075
2774
  }
2076
2775
  }
2077
- function f() {
2078
- return b(fe, {
2776
+ function m() {
2777
+ return h(ve, {
2079
2778
  style: "flex:1",
2080
2779
  data: n.value,
2081
2780
  draggable: !0,
2082
2781
  view: "DraggableView",
2083
2782
  "keep-order": !0,
2084
2783
  itemClass: "f-order-item",
2085
- onRemoveItem: l,
2086
- onChange: d
2784
+ onRemoveItem: i,
2785
+ onChange: u
2087
2786
  }, {
2088
- header: () => b("div", {
2787
+ header: () => h("div", {
2089
2788
  class: "f-order-header"
2090
- }, [b("span", {
2789
+ }, [h("span", {
2091
2790
  class: "f-order-header-order-field"
2092
- }, [o.value]), b("span", {
2791
+ }, [o.value]), h("span", {
2093
2792
  class: "f-order-header-order-type"
2094
- }, [s.value])]),
2095
- itemContent: (a) => b("div", {
2793
+ }, [a.value])]),
2794
+ itemContent: (p) => h("div", {
2096
2795
  class: "f-order-item-content"
2097
- }, [b(_, {
2796
+ }, [h(_, {
2098
2797
  class: "f-order-item-content-order-field",
2099
- data: y.value,
2798
+ data: l.value,
2100
2799
  valueField: "id",
2101
2800
  textField: "name",
2102
2801
  idField: "id",
2103
- modelValue: a.id,
2104
- "onUpdate:modelValue": (u) => a.id = u,
2105
- onChange: S,
2106
- onClear: S
2107
- }, null), b(_, {
2802
+ modelValue: p.id,
2803
+ "onUpdate:modelValue": (y) => p.id = y,
2804
+ onChange: C,
2805
+ onClear: C
2806
+ }, null), h(_, {
2108
2807
  class: "f-order-item-content-order-type",
2109
- data: i,
2808
+ data: s,
2110
2809
  valueField: "id",
2111
2810
  textField: "name",
2112
2811
  idField: "id",
2113
- modelValue: a.order,
2114
- "onUpdate:modelValue": (u) => a.order = u,
2115
- onChange: S
2812
+ modelValue: p.order,
2813
+ "onUpdate:modelValue": (y) => p.order = y,
2814
+ onChange: C
2116
2815
  }, null)]),
2117
- footer: () => b("div", {
2816
+ footer: () => h("div", {
2118
2817
  class: "f-order-footer"
2119
- }, [b(me, {
2818
+ }, [h(Ce, {
2120
2819
  type: "link",
2121
2820
  class: "f-order-add-button",
2122
- onClick: r
2821
+ onClick: d
2123
2822
  }, {
2124
- default: () => b(Q, null, [b("span", {
2823
+ default: () => h(K, null, [h("span", {
2125
2824
  class: "f-order-add-icon"
2126
- }, [b("i", {
2825
+ }, [h("i", {
2127
2826
  class: "f-icon f-icon-add"
2128
- }, null)]), c.value])
2827
+ }, null)]), r.value])
2129
2828
  })])
2130
2829
  });
2131
2830
  }
2132
- return () => b("div", {
2133
- class: h.value
2134
- }, [f()]);
2831
+ return () => h("div", {
2832
+ class: g.value
2833
+ }, [m()]);
2135
2834
  }
2136
2835
  });
2137
- function cn(e, t, n) {
2836
+ function Wn(e, t, n) {
2138
2837
  var w;
2139
2838
  function o() {
2140
2839
  n != null && n.resolveComponentContext && n.resolveComponentContext();
2141
2840
  }
2142
2841
  o();
2143
- const s = n && n.getStyles && n.getStyles() || "", c = n && n.getDesignerClass && n.getDesignerClass() || "", i = C();
2144
- function p() {
2842
+ const a = n && n.getStyles && n.getStyles() || "", r = n && n.getDesignerClass && n.getDesignerClass() || "", s = v();
2843
+ function f() {
2145
2844
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
2146
2845
  }
2147
- function g() {
2846
+ function c() {
2148
2847
  return !1;
2149
2848
  }
2150
- function y() {
2849
+ function l() {
2151
2850
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
2152
2851
  }
2153
- function h() {
2852
+ function g() {
2154
2853
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
2155
2854
  }
2156
- function l(v) {
2157
- if (!v || !v.value)
2855
+ function i(b) {
2856
+ if (!b || !b.value)
2158
2857
  return null;
2159
- if (v.value.schema && v.value.schema.type === "component")
2160
- return v.value;
2161
- const D = C(v == null ? void 0 : v.value.parent), m = l(D);
2162
- return m || 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;
2163
2862
  }
2164
- function r(v = t) {
2165
- const { componentInstance: D, designerItemElementRef: m } = v;
2166
- return !D || !D.value ? null : D.value.canMove ? m : r(v.parent);
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);
2167
2866
  }
2168
- function S(v) {
2169
- return !!n && n.canAccepts(v);
2867
+ function C(b) {
2868
+ return !!n && n.canAccepts(b);
2170
2869
  }
2171
- function d() {
2870
+ function u() {
2172
2871
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
2173
2872
  }
2174
- function f() {
2873
+ function m() {
2175
2874
  }
2176
- function a(v, D) {
2177
- D && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(D);
2875
+ function p(b, T) {
2876
+ T && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(T);
2178
2877
  }
2179
- function u(v, D) {
2180
- const { componentType: m } = v;
2181
- let M = U(m, v, D);
2182
- n && n.onResolveNewComponentSchema && (M = n.onResolveNewComponentSchema(v, M));
2183
- const A = m.toLowerCase().replace("-", "_");
2184
- return M && !M.id && M.type === m && (M.id = `${A}_${Math.random().toString().slice(2, 6)}`), M;
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;
2185
2884
  }
2186
- function k(v, D) {
2187
- const m = String(v.getAttribute("data-controltype")), M = v.getAttribute("data-feature"), A = M ? JSON.parse(M) : {};
2188
- A.parentComponentInstance = i.value;
2189
- let j = U(m, A);
2190
- n && n.onAcceptNewChildElement && (j = n.onAcceptNewChildElement(v, D, j));
2191
- const $ = m.toLowerCase().replace("-", "_");
2192
- return j && !j.id && j.type === m && (j.id = `${$}_${Math.random().toString().slice(2, 6)}`), j;
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;
2193
2892
  }
2194
- function F(v) {
2893
+ function k(b) {
2195
2894
  }
2196
- function V(...v) {
2895
+ function j(...b) {
2197
2896
  if (n && n.getPropsConfig)
2198
- return n.getPropsConfig(...v);
2897
+ return n.getPropsConfig(...b);
2199
2898
  }
2200
- return i.value = {
2201
- canMove: p(),
2202
- canSelectParent: g(),
2203
- canDelete: y(),
2204
- canNested: !h(),
2899
+ return s.value = {
2900
+ canMove: f(),
2901
+ canSelectParent: c(),
2902
+ canDelete: l(),
2903
+ canNested: !g(),
2205
2904
  contents: t == null ? void 0 : t.schema.contents,
2206
2905
  elementRef: e,
2207
2906
  parent: (w = t == null ? void 0 : t.parent) == null ? void 0 : w.componentInstance,
2208
2907
  schema: t == null ? void 0 : t.schema,
2209
- styles: s,
2210
- designerClass: c,
2211
- canAccepts: S,
2212
- getBelongedComponentInstance: l,
2213
- getDraggableDesignItemElement: r,
2214
- getDraggingDisplayText: d,
2215
- getPropConfig: V,
2216
- getDragScopeElement: f,
2217
- onAcceptMovedChildElement: a,
2218
- onAcceptNewChildElement: k,
2219
- onChildElementMovedOut: F,
2220
- addNewChildComponentSchema: u,
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,
2221
2920
  updateDragAndDropRules: o,
2222
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
2223
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1)
2224
- }, i;
2921
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || v(!1),
2922
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || v(!1)
2923
+ }, s;
2225
2924
  }
2226
- function un() {
2925
+ function _n() {
2227
2926
  function e(t) {
2228
- var s, c;
2927
+ var a, r;
2229
2928
  if (!t)
2230
2929
  return !1;
2231
- const n = ((s = t.targetContainer) == null ? void 0 : s.componentInstance) && t.targetContainer.componentInstance.value;
2930
+ const n = ((a = t.targetContainer) == null ? void 0 : a.componentInstance) && t.targetContainer.componentInstance.value;
2232
2931
  if (!n)
2233
2932
  return !1;
2234
- const o = (c = n.schema.appearance) == null ? void 0 : c.class;
2933
+ const o = (r = n.schema.appearance) == null ? void 0 : r.class;
2235
2934
  if (t.controlCategory === "input" || t.controlType === "form-group") {
2236
- const i = n.schema.type, p = (i === "response-form" || i === "content-container") && o && o.includes("farris-form");
2237
- if (n.schema.type !== "response-layout-item" && !p)
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)
2238
2937
  return !1;
2239
2938
  }
2240
2939
  return t.controlType !== "field-set";
@@ -2243,7 +2942,7 @@ function un() {
2243
2942
  basalDragulaRuleForContainer: e
2244
2943
  };
2245
2944
  }
2246
- const dn = "https://json-schema.org/draft/2020-12/schema", pn = "https://farris-design.gitee.io/dragging-rules.schema.json", fn = "Dragging Rules", mn = "The rules of designer canvas", yn = "object", gn = {
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 = {
2247
2946
  "f-page": {
2248
2947
  description: "The root class of page designed by farris.",
2249
2948
  type: "object",
@@ -2881,327 +3580,407 @@ const dn = "https://json-schema.org/draft/2020-12/schema", pn = "https://farris-
2881
3580
  description: "",
2882
3581
  type: "object"
2883
3582
  }
2884
- }, hn = {
2885
- $schema: dn,
2886
- $id: pn,
2887
- title: fn,
2888
- description: mn,
2889
- type: yn,
2890
- properties: gn
2891
- }, J = /* @__PURE__ */ new Map();
2892
- function bn() {
2893
- function e(d, f, a, u) {
2894
- var k;
2895
- if (typeof a == "number")
2896
- return ((k = u[d]) == null ? void 0 : k.length) === a;
2897
- if (typeof a == "object") {
2898
- const F = Object.keys(a)[0], V = a[F];
2899
- if (F === "not")
2900
- return Number(u[d].length) !== Number(V);
2901
- if (F === "moreThan")
2902
- return Number(u[d].length) >= Number(V);
2903
- if (F === "lessThan")
2904
- return Number(u[d].length) <= Number(V);
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);
2905
3604
  }
2906
3605
  return !1;
2907
3606
  }
2908
- function t(d, f, a, u) {
2909
- return typeof a == "boolean" ? u.childrenClassList.includes(f) === !!a : !1;
3607
+ function t(u, m, p, y) {
3608
+ return typeof p == "boolean" ? y.childrenClassList.includes(m) === !!p : !1;
2910
3609
  }
2911
- function n(d, f, a, u) {
2912
- return typeof a == "boolean" ? u.parentClassList.includes(f) === !!a : !1;
3610
+ function n(u, m, p, y) {
3611
+ return typeof p == "boolean" ? y.parentClassList.includes(m) === !!p : !1;
2913
3612
  }
2914
- function o(d, f, a, u) {
2915
- return typeof a == "boolean" ? u.parentClassList.includes(f) === !!a : !1;
3613
+ function o(u, m, p, y) {
3614
+ return typeof p == "boolean" ? y.parentClassList.includes(m) === !!p : !1;
2916
3615
  }
2917
- const s = /* @__PURE__ */ new Map([
3616
+ const a = /* @__PURE__ */ new Map([
2918
3617
  ["length", e],
2919
3618
  ["hasChildren", t],
2920
3619
  ["hasSibling", o],
2921
3620
  ["hasParent", n]
2922
3621
  ]);
2923
- function c(d, f) {
2924
- const a = d;
2925
- return typeof f == "number" ? [{ target: a, operator: "length", param: null, value: Number(f) }] : typeof f == "object" ? Object.keys(f).map((u) => {
2926
- if (u === "length")
2927
- return { target: a, operator: "length", param: null, value: f[u] };
2928
- const k = u, F = f[u];
2929
- return { target: a, operator: d === "children" ? "hasChildren" : d === "parent" ? "hasParent" : "hasSibling", param: k, value: F };
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 };
2930
3629
  }) : [];
2931
3630
  }
2932
- function i(d, f) {
2933
- if (s.has(d.operator)) {
2934
- const a = s.get(d.operator);
2935
- return a && a(d.target, d.param, d.value, f) || !1;
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;
2936
3635
  }
2937
3636
  return !1;
2938
3637
  }
2939
- function p(d, f) {
2940
- return Object.keys(d).reduce((F, V) => {
2941
- const w = c(V, d[V]);
2942
- return F.push(...w), F;
2943
- }, []).reduce((F, V) => F && i(V, f), !0);
2944
- }
2945
- function g(d, f) {
2946
- const a = Object.keys(d), u = a.includes("allOf"), k = a.includes("anyOf"), F = u || k, v = (F ? d[F ? u ? "allOf" : "anyOf" : "allOf"] : [d]).map((m) => p(m, f));
2947
- return u ? !v.includes(!1) : v.includes(!0);
2948
- }
2949
- function y(d, f) {
2950
- const a = d.const;
2951
- return a ? typeof a == "boolean" ? a : typeof a == "object" ? g(a, f) : !1 : !1;
2952
- }
2953
- function h(d) {
2954
- return (f) => {
2955
- const a = { canAccept: !0, fixed: !1, hidePadding: !1 };
2956
- return d && d.properties && Object.keys(d.properties).reduce((u, k) => {
2957
- const F = d.properties[k];
2958
- return u[k] = y(F, f), u;
2959
- }, a), a;
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;
2960
3659
  };
2961
3660
  }
2962
- function l(d, f, a) {
2963
- if (f.type === "object" && f.properties) {
2964
- const { rules: u, contents: k } = f.properties;
2965
- a.set(d, h(u)), k && Object.keys(k.properties).forEach(
2966
- (F) => l(F, k.properties[F], a)
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)
2967
3666
  );
2968
3667
  }
2969
3668
  }
2970
- function r() {
2971
- const { properties: d } = hn;
2972
- Object.keys(d).forEach((f) => {
2973
- l(f, d[f], J);
3669
+ function d() {
3670
+ const { properties: u } = Kn;
3671
+ Object.keys(u).forEach((m) => {
3672
+ i(m, u[m], Y);
2974
3673
  });
2975
3674
  }
2976
- function S(d, f) {
2977
- const a = { canAccept: !0, fixed: !1, hidePadding: !0 };
2978
- return J.has(d) ? J.get(d)(f) : a;
3675
+ function C(u, m) {
3676
+ const p = { canAccept: !0, fixed: !1, hidePadding: !0 };
3677
+ return Y.has(u) ? Y.get(u)(m) : p;
2979
3678
  }
2980
- return r(), { getRuleValue: S };
3679
+ return d(), { getRuleValue: C };
2981
3680
  }
2982
- function vn(e, t) {
2983
- var D;
2984
- const n = e.schema, o = (D = e.parent) == null ? void 0 : D.schema, s = bn(), c = C(!1), i = C(!1);
2985
- let p = !0, g = !1, y, h = !1;
2986
- function l(m) {
2987
- return y && y.componentClassList && y.componentClassList.includes("f-form-layout") && y.componentClassList.includes("farris-form") ? m.sourceType === "control" && m.controlCategory === "input" || m.sourceType === "move" && m.controlType === "form-group" : !0;
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;
3695
+ return {
3696
+ uniqueColClassInSM: p,
3697
+ uniqueColClassInMD: y,
3698
+ uniqueColClassInLG: S,
3699
+ uniqueColClassInEL: k
3700
+ };
2988
3701
  }
2989
- function r(m) {
2990
- return !(!un().basalDragulaRuleForContainer(m) || !p || !l(m));
3702
+ function r(c) {
3703
+ const l = new Set(c);
3704
+ return Array.from(l).length === 1;
2991
3705
  }
2992
- function S() {
2993
- c.value = !1, i.value = !1;
2994
- const m = n, M = m.appearance && m.appearance.class || "", A = M.split(" "), j = m.contents || [], $ = j.length ? j[0] : null, O = $ && $.appearance ? $.appearance.class : "", P = O ? O.split(" ") : [], x = j.length ? j.reduce((oe, W) => {
2995
- const ae = W && W.appearance ? W.appearance.class : "", Ce = ae ? ae.split(" ") : [];
2996
- return oe.push(...Ce), oe;
2997
- }, []) : [], I = o, L = I && I.appearance && I.appearance.class || "", ge = L ? L.split(" ") : [];
2998
- y = {
2999
- componentClass: M,
3000
- componentClassList: A,
3001
- childContents: j,
3002
- firstChildContent: $,
3003
- firstChildClass: O,
3004
- firstChildClassList: P,
3005
- parent: I,
3006
- parentClass: L,
3007
- parentClassList: ge,
3008
- children: j,
3009
- childrenClassList: x
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);
3710
+ return;
3711
+ }
3712
+ i.appearance || (i.appearance = {});
3713
+ const d = i.appearance.class;
3714
+ i.appearance.class = f(d, l);
3715
+ });
3716
+ }
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-"));
3722
+ }
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(" ");
3725
+ }
3726
+ return { checkIsInFormComponent: o, assembleUnifiedLayoutContext: a, changeFormControlsByUnifiedLayoutConfig: s };
3727
+ }
3728
+ class no extends et {
3729
+ constructor(t, n) {
3730
+ super(t, n);
3731
+ }
3732
+ getPropertyConfig(t, n) {
3733
+ var o = this;
3734
+ 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 = {
3737
+ title: "统一布局配置",
3738
+ description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
3739
+ visible: a(this.componentId),
3740
+ refreshPanelAfterChanged: !0,
3741
+ editor: {
3742
+ type: "response-form-layout-setting",
3743
+ initialState: r(t)
3744
+ }
3745
+ }, f.setPropertyRelates = function(c, l) {
3746
+ if (c)
3747
+ switch (c && c.propertyID) {
3748
+ case "unifiedLayout": {
3749
+ s(null, c.propertyValue, t.id), o.updateElementByParentContainer(t.id, n);
3750
+ break;
3751
+ }
3752
+ }
3753
+ }, this.propertyConfig.categories.appearance = f, this.propertyConfig;
3754
+ }
3755
+ }
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;
3762
+ }
3763
+ function d(I) {
3764
+ return !(!_n().basalDragulaRuleForContainer(I) || !f || !i(I));
3765
+ }
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
3010
3784
  };
3011
- const { canAccept: he, fixed: be, hidePadding: ve } = s.getRuleValue(A[0], y);
3012
- return p = he, g = ve, h = be, !0;
3785
+ const { canAccept: Ie, fixed: Me, hidePadding: je } = a.getRuleValue(M[0], l);
3786
+ return f = Ie, c = je, g = Me, !0;
3013
3787
  }
3014
- function d(m) {
3015
- Me();
3788
+ function u(I) {
3789
+ Z();
3016
3790
  }
3017
- function f() {
3791
+ function m() {
3018
3792
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
3019
3793
  }
3020
- function a(m, M) {
3021
- const A = n;
3022
- if ((A.appearance && A.appearance.class || "").split(" ").includes("f-form-layout")) {
3023
- const { label: O } = m, P = U("form-group");
3024
- return P.editor = M, P.label = O, u(P), delete P.editor.id, delete P.editor.binding, delete P.editor.appearance, delete P.editor.visible, P;
3794
+ function p(I, O) {
3795
+ const M = n;
3796
+ 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;
3025
3799
  }
3026
- return M;
3027
- }
3028
- function u(m) {
3029
- const M = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
3030
- if (M && M.schema && M.schema.componentType) {
3031
- const A = M.schema.formColumns, j = k(A);
3032
- m.appearance || (m.appearance = {}), m.appearance.class = j;
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;
3033
3808
  }
3034
3809
  }
3035
- function k(m) {
3036
- let M = "";
3037
- switch (m) {
3810
+ function S(I) {
3811
+ let O = "";
3812
+ switch (I) {
3038
3813
  case 1: {
3039
- M = "col-12 col-md-12 col-xl-12 col-el-12";
3814
+ O = "col-12 col-md-12 col-xl-12 col-el-12";
3040
3815
  break;
3041
3816
  }
3042
3817
  case 2: {
3043
- M = "col-12 col-md-6 col-xl-6 col-el-6";
3818
+ O = "col-12 col-md-6 col-xl-6 col-el-6";
3044
3819
  break;
3045
3820
  }
3046
3821
  case 3: {
3047
- M = "col-12 col-md-6 col-xl-4 col-el-4";
3822
+ O = "col-12 col-md-6 col-xl-4 col-el-4";
3048
3823
  break;
3049
3824
  }
3050
3825
  case 4: {
3051
- M = "col-12 col-md-6 col-xl-3 col-el-2";
3826
+ O = "col-12 col-md-6 col-xl-3 col-el-2";
3052
3827
  break;
3053
3828
  }
3054
3829
  }
3055
- return M;
3830
+ return O;
3056
3831
  }
3057
- function F(m, M, A) {
3058
- const j = n;
3059
- if ((j.appearance && j.appearance.class || "").split(" ").includes("f-form-layout")) {
3060
- const P = String(m.innerText), x = U("form-group");
3061
- return x.editor = A, x.label = P, x;
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;
3062
3837
  }
3063
- return A;
3838
+ return M;
3064
3839
  }
3065
- function V() {
3066
- return !h;
3840
+ function j() {
3841
+ return !g;
3067
3842
  }
3068
3843
  function w() {
3069
- return !h;
3844
+ return !g;
3845
+ }
3846
+ function b() {
3847
+ return c;
3070
3848
  }
3071
- function v() {
3072
- return g;
3849
+ function T(I) {
3850
+ return new no(I, t).getPropertyConfig(n, e.componentInstance.value);
3073
3851
  }
3074
3852
  return {
3075
- canAccepts: r,
3853
+ canAccepts: d,
3076
3854
  checkCanDeleteComponent: w,
3077
- checkCanMoveComponent: V,
3078
- getStyles: f,
3079
- hideNestedPaddingInDesginerView: v,
3080
- onAcceptNewChildElement: F,
3081
- onAcceptMovedChildElement: d,
3082
- resolveComponentContext: S,
3083
- onResolveNewComponentSchema: a,
3084
- triggerBelongedComponentToMoveWhenMoved: c,
3085
- triggerBelongedComponentToDeleteWhenDeleted: i
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
3086
3865
  };
3087
3866
  }
3088
- const Cn = /* @__PURE__ */ H({
3867
+ const ao = /* @__PURE__ */ R({
3089
3868
  name: "FOrderDesign",
3090
- props: te,
3869
+ props: ae,
3091
3870
  emits: ["change"],
3092
3871
  setup(e, t) {
3093
- var V;
3094
- const n = C(e.items), o = C("排序列"), s = C("排序方式"), c = C("添加排序列"), i = [{
3872
+ var j;
3873
+ const n = v(e.items), o = v("排序列"), a = v("排序方式"), r = v("添加排序列"), s = [{
3095
3874
  id: "asc",
3096
3875
  name: "升序"
3097
3876
  }, {
3098
3877
  id: "desc",
3099
3878
  name: "降序"
3100
- }], p = C(/* @__PURE__ */ new Map()), g = C(), y = X("design-item-context"), h = vn(y.schema, (V = y.parent) == null ? void 0 : V.schema), l = cn(g, y, h);
3101
- ce(() => {
3102
- g.value.componentInstance = l;
3103
- }), t.expose(l.value);
3104
- function r() {
3105
- const w = n.value.map((v) => [v.id, !0]);
3106
- p.value = new Map(w);
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);
3107
3886
  }
3108
- r();
3109
- const S = B(() => e.dataSource.map((w) => (w.disabled = p.value.has(w.id), w))), d = B(() => ({
3887
+ d();
3888
+ const C = V(() => e.dataSource.map((w) => (w.disabled = f.value.has(w.id), w))), u = V(() => ({
3110
3889
  "f-order": !0
3111
3890
  }));
3112
- function f(w) {
3113
- n.value = n.value.filter((v) => v.id !== w.id), r(), t.emit("change", n.value);
3891
+ function m(w) {
3892
+ n.value = n.value.filter((b) => b.id !== w.id), d(), t.emit("change", n.value);
3114
3893
  }
3115
- function a() {
3894
+ function p() {
3116
3895
  n.value = [...n.value, {
3117
3896
  id: Date.now().toString(),
3118
3897
  name: "",
3119
3898
  order: "asc"
3120
- }], r(), t.emit("change", n.value);
3899
+ }], d(), t.emit("change", n.value);
3121
3900
  }
3122
- function u(w) {
3123
- r(), t.emit("change", n.value);
3901
+ function y(w) {
3902
+ d(), t.emit("change", n.value);
3124
3903
  }
3125
- function k(w) {
3904
+ function S(w) {
3126
3905
  if (w && w.length) {
3127
- const v = /* @__PURE__ */ new Map();
3128
- w.reduce((D, m) => (D.set(m.id, m), D), v), n.value = w.map((D) => v.get(D.id)), t.emit("change", n.value);
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);
3129
3908
  }
3130
3909
  }
3131
- function F() {
3132
- return b(fe, {
3910
+ function k() {
3911
+ return h(ve, {
3133
3912
  style: "flex:1",
3134
3913
  data: n.value,
3135
3914
  draggable: !0,
3136
3915
  view: "DraggableView",
3137
3916
  "keep-order": !0,
3138
3917
  itemClass: "f-order-item",
3139
- onRemoveItem: f,
3140
- onChange: k
3918
+ onRemoveItem: m,
3919
+ onChange: S
3141
3920
  }, {
3142
- header: () => b("div", {
3921
+ header: () => h("div", {
3143
3922
  class: "f-order-header"
3144
- }, [b("span", {
3923
+ }, [h("span", {
3145
3924
  class: "f-order-header-order-field"
3146
- }, [o.value]), b("span", {
3925
+ }, [o.value]), h("span", {
3147
3926
  class: "f-order-header-order-type"
3148
- }, [s.value])]),
3149
- itemContent: (w) => b("div", {
3927
+ }, [a.value])]),
3928
+ itemContent: (w) => h("div", {
3150
3929
  class: "f-order-item-content"
3151
- }, [b(_, {
3930
+ }, [h(_, {
3152
3931
  class: "f-order-item-content-order-field",
3153
- data: S.value,
3932
+ data: C.value,
3154
3933
  valueField: "id",
3155
3934
  textField: "name",
3156
3935
  idField: "id",
3157
3936
  modelValue: w.id,
3158
- "onUpdate:modelValue": (v) => w.id = v,
3159
- onChange: u,
3160
- onClear: u
3161
- }, null), b(_, {
3937
+ "onUpdate:modelValue": (b) => w.id = b,
3938
+ onChange: y,
3939
+ onClear: y
3940
+ }, null), h(_, {
3162
3941
  class: "f-order-item-content-order-type",
3163
- data: i,
3942
+ data: s,
3164
3943
  valueField: "id",
3165
3944
  textField: "name",
3166
3945
  idField: "id",
3167
3946
  modelValue: w.order,
3168
- "onUpdate:modelValue": (v) => w.order = v,
3169
- onChange: u
3947
+ "onUpdate:modelValue": (b) => w.order = b,
3948
+ onChange: y
3170
3949
  }, null)]),
3171
- footer: () => b("div", {
3950
+ footer: () => h("div", {
3172
3951
  class: "f-order-footer"
3173
- }, [b(me, {
3952
+ }, [h(Ce, {
3174
3953
  type: "link",
3175
3954
  class: "f-order-add-button",
3176
- onClick: a
3955
+ onClick: p
3177
3956
  }, {
3178
- default: () => b(Q, null, [b("span", {
3957
+ default: () => h(K, null, [h("span", {
3179
3958
  class: "f-order-add-icon"
3180
- }, [b("i", {
3959
+ }, [h("i", {
3181
3960
  class: "f-icon f-icon-add"
3182
- }, null)]), c.value])
3961
+ }, null)]), r.value])
3183
3962
  })])
3184
3963
  });
3185
3964
  }
3186
- return () => b("div", {
3187
- ref: g,
3188
- class: d.value
3189
- }, [F()]);
3965
+ return () => h("div", {
3966
+ ref: c,
3967
+ class: u.value
3968
+ }, [k()]);
3190
3969
  }
3191
- }), In = {
3970
+ }), bo = {
3192
3971
  install(e) {
3193
- e.component(z.name, z);
3972
+ e.component(Q.name, Q);
3194
3973
  },
3195
3974
  register(e, t, n, o) {
3196
- e.order = z, t.order = ie;
3975
+ e.order = Q, t.order = ue;
3197
3976
  },
3198
3977
  registerDesigner(e, t, n) {
3199
- e.order = Cn, t.order = ie;
3978
+ e.order = ao, t.order = ue;
3200
3979
  }
3201
3980
  };
3202
3981
  export {
3203
- z as FOrder,
3204
- In as default,
3205
- te as orderProps,
3206
- ie as propsResolver
3982
+ Q as FOrder,
3983
+ bo as default,
3984
+ ae as orderProps,
3985
+ ue as propsResolver
3207
3986
  };