@farris/ui-vue 1.2.5 → 1.2.7

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 (261) hide show
  1. package/components/accordion/index.esm.js +147 -139
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/accordion/package.json +1 -1
  4. package/components/avatar/index.esm.js +122 -131
  5. package/components/avatar/index.umd.cjs +1 -1
  6. package/components/avatar/package.json +1 -1
  7. package/components/border-editor/package.json +1 -1
  8. package/components/button/package.json +1 -1
  9. package/components/button-edit/index.css +1 -0
  10. package/components/button-edit/package.json +1 -1
  11. package/components/button-group/package.json +1 -1
  12. package/components/calculator/package.json +1 -1
  13. package/components/calendar/package.json +1 -1
  14. package/components/capsule/package.json +1 -1
  15. package/components/checkbox/index.esm.js +216 -223
  16. package/components/checkbox/index.umd.cjs +1 -1
  17. package/components/checkbox/package.json +1 -1
  18. package/components/color-picker/package.json +1 -1
  19. package/components/combo-list/index.esm.js +201 -181
  20. package/components/combo-list/index.umd.cjs +1 -1
  21. package/components/combo-list/package.json +1 -1
  22. package/components/combo-tree/index.esm.js +340 -107
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/combo-tree/package.json +1 -1
  25. package/components/common/package.json +1 -1
  26. package/components/component/index.esm.js +36 -29
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/component/package.json +1 -1
  29. package/components/condition/index.esm.js +341 -338
  30. package/components/condition/index.umd.cjs +1 -1
  31. package/components/condition/package.json +1 -1
  32. package/components/content-container/index.esm.js +9 -13
  33. package/components/content-container/index.umd.cjs +1 -1
  34. package/components/content-container/package.json +1 -1
  35. package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
  36. package/components/data-grid/index.esm.js +3415 -3295
  37. package/components/data-grid/index.umd.cjs +1 -1
  38. package/components/data-grid/package.json +1 -1
  39. package/components/data-view/index.esm.js +2719 -2717
  40. package/components/data-view/index.umd.cjs +1 -1
  41. package/components/data-view/package.json +1 -1
  42. package/components/date-picker/index.esm.js +31 -40
  43. package/components/date-picker/index.umd.cjs +1 -1
  44. package/components/date-picker/package.json +1 -1
  45. package/components/designer-canvas/index.esm.js +23 -20
  46. package/components/designer-canvas/index.umd.cjs +1 -1
  47. package/components/designer-canvas/package.json +1 -1
  48. package/components/designer-outline/package.json +1 -1
  49. package/components/designer-toolbox/package.json +1 -1
  50. package/components/discussion-editor/package.json +1 -1
  51. package/components/discussion-list/package.json +1 -1
  52. package/components/drawer/package.json +1 -1
  53. package/components/dropdown/index.esm.js +86 -86
  54. package/components/dropdown/index.umd.cjs +1 -1
  55. package/components/dropdown/package.json +1 -1
  56. package/components/dynamic-form/index.esm.js +578 -584
  57. package/components/dynamic-form/index.umd.cjs +1 -1
  58. package/components/dynamic-form/package.json +1 -1
  59. package/components/dynamic-resolver/index.esm.js +56 -47
  60. package/components/dynamic-resolver/index.umd.cjs +1 -1
  61. package/components/dynamic-resolver/package.json +1 -1
  62. package/components/dynamic-view/index.esm.js +287 -278
  63. package/components/dynamic-view/index.umd.cjs +1 -1
  64. package/components/dynamic-view/package.json +1 -1
  65. package/components/enum-editor/package.json +1 -1
  66. package/components/events-editor/package.json +1 -1
  67. package/components/expression-editor/package.json +1 -1
  68. package/components/external-container/index.css +1 -0
  69. package/components/external-container/index.esm.js +1923 -1908
  70. package/components/external-container/index.umd.cjs +1 -1
  71. package/components/external-container/package.json +1 -1
  72. package/components/field-selector/index.css +1 -0
  73. package/components/field-selector/index.esm.js +3719 -3604
  74. package/components/field-selector/index.umd.cjs +1 -1
  75. package/components/field-selector/package.json +1 -1
  76. package/components/filter-bar/{style.css → index.css} +1 -1
  77. package/components/filter-bar/index.esm.js +483 -470
  78. package/components/filter-bar/index.umd.cjs +1 -1
  79. package/components/filter-bar/package.json +1 -1
  80. package/components/flow-canvas/index.esm.js +37 -34
  81. package/components/flow-canvas/index.umd.cjs +1 -1
  82. package/components/flow-canvas/package.json +1 -1
  83. package/components/image-cropper/package.json +1 -1
  84. package/components/input-group/index.esm.js +258 -267
  85. package/components/input-group/index.umd.cjs +1 -1
  86. package/components/input-group/package.json +1 -1
  87. package/components/layout/package.json +1 -1
  88. package/components/list-nav/package.json +1 -1
  89. package/components/list-view/index.esm.js +1452 -1450
  90. package/components/list-view/index.umd.cjs +1 -1
  91. package/components/list-view/package.json +1 -1
  92. package/components/loading/package.json +1 -1
  93. package/components/locale/package.json +1 -1
  94. package/components/lookup/index.css +1 -0
  95. package/components/lookup/index.esm.js +4860 -4657
  96. package/components/lookup/index.umd.cjs +1 -1
  97. package/components/lookup/package.json +1 -1
  98. package/components/mapping-editor/index.css +1 -0
  99. package/components/mapping-editor/index.esm.js +4411 -4259
  100. package/components/mapping-editor/index.umd.cjs +1 -1
  101. package/components/mapping-editor/package.json +1 -1
  102. package/components/message-box/index.css +1 -0
  103. package/components/message-box/index.esm.js +397 -386
  104. package/components/message-box/index.umd.cjs +1 -1
  105. package/components/message-box/package.json +1 -1
  106. package/components/modal/index.css +1 -0
  107. package/components/modal/index.esm.js +308 -297
  108. package/components/modal/index.umd.cjs +1 -1
  109. package/components/modal/package.json +1 -1
  110. package/components/nav/package.json +1 -1
  111. package/components/notify/package.json +1 -1
  112. package/components/order/index.esm.js +763 -741
  113. package/components/order/index.umd.cjs +1 -1
  114. package/components/order/package.json +1 -1
  115. package/components/page-footer/package.json +1 -1
  116. package/components/page-header/index.esm.js +948 -945
  117. package/components/page-header/index.umd.cjs +1 -1
  118. package/components/page-header/package.json +1 -1
  119. package/components/pagination/package.json +1 -1
  120. package/components/popover/package.json +1 -1
  121. package/components/progress/package.json +1 -1
  122. package/components/property-editor/index.esm.js +485 -466
  123. package/components/property-editor/index.umd.cjs +2 -2
  124. package/components/property-editor/package.json +1 -1
  125. package/components/property-panel/index.esm.js +437 -426
  126. package/components/property-panel/index.umd.cjs +1 -1
  127. package/components/property-panel/package.json +1 -1
  128. package/components/radio-button/package.json +1 -1
  129. package/components/radio-group/index.esm.js +98 -107
  130. package/components/radio-group/index.umd.cjs +1 -1
  131. package/components/radio-group/package.json +1 -1
  132. package/components/rate/package.json +1 -1
  133. package/components/response-layout/package.json +1 -1
  134. package/components/response-layout-editor/{style.css → index.css} +1 -1
  135. package/components/response-layout-editor/index.esm.js +840 -800
  136. package/components/response-layout-editor/index.umd.cjs +1 -1
  137. package/components/response-layout-editor/package.json +1 -1
  138. package/components/response-toolbar/index.esm.js +757 -760
  139. package/components/response-toolbar/index.umd.cjs +1 -1
  140. package/components/response-toolbar/package.json +1 -1
  141. package/components/schema-selector/index.css +1 -0
  142. package/components/schema-selector/index.esm.js +3659 -3432
  143. package/components/schema-selector/index.umd.cjs +8 -1
  144. package/components/schema-selector/package.json +1 -1
  145. package/components/search-box/package.json +1 -1
  146. package/components/section/index.esm.js +21 -14
  147. package/components/section/index.umd.cjs +1 -1
  148. package/components/section/package.json +1 -1
  149. package/components/smoke-detector/package.json +1 -1
  150. package/components/spacing-editor/package.json +1 -1
  151. package/components/splitter/package.json +1 -1
  152. package/components/step/package.json +1 -1
  153. package/components/switch/index.esm.js +126 -135
  154. package/components/switch/index.umd.cjs +1 -1
  155. package/components/switch/package.json +1 -1
  156. package/components/tabs/index.css +1 -0
  157. package/components/tabs/index.esm.js +1400 -1379
  158. package/components/tabs/index.umd.cjs +1 -1
  159. package/components/tabs/package.json +1 -1
  160. package/components/tags/package.json +1 -1
  161. package/components/text/package.json +1 -1
  162. package/components/textarea/index.esm.js +97 -106
  163. package/components/textarea/index.umd.cjs +1 -1
  164. package/components/textarea/package.json +1 -1
  165. package/components/time-picker/index.css +1 -0
  166. package/components/time-picker/index.esm.js +393 -402
  167. package/components/time-picker/index.umd.cjs +1 -1
  168. package/components/time-picker/package.json +1 -1
  169. package/components/tooltip/package.json +1 -1
  170. package/components/transfer/index.esm.js +124 -122
  171. package/components/transfer/index.umd.cjs +1 -1
  172. package/components/transfer/package.json +1 -1
  173. package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
  174. package/components/tree-grid/index.esm.js +3531 -3412
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-grid/package.json +1 -1
  177. package/components/tree-view/index.esm.js +2046 -2044
  178. package/components/tree-view/index.umd.cjs +1 -1
  179. package/components/tree-view/package.json +1 -1
  180. package/components/uploader/package.json +1 -1
  181. package/components/verify-detail/package.json +1 -1
  182. package/components/video/package.json +1 -1
  183. package/components/weather/package.json +1 -1
  184. package/farris.all.esm.js +12370 -11917
  185. package/farris.all.umd.cjs +9 -9
  186. package/index.css +1 -0
  187. package/package.json +2 -2
  188. package/types/combo-list/src/components/list-container.component.d.ts +6 -0
  189. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  190. package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
  191. package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
  192. package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
  193. package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
  194. package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
  195. package/types/components.d.ts +1 -0
  196. package/types/data-grid/index.d.ts +5 -5
  197. package/types/data-grid/src/data-grid.component.d.ts +2 -2
  198. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  199. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  200. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
  201. package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
  202. package/types/designer-canvas/src/composition/types.d.ts +1 -0
  203. package/types/dynamic-form/src/types.d.ts +1 -1
  204. package/types/dynamic-resolver/index.d.ts +1 -0
  205. package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
  206. package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
  207. package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
  208. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +7 -3
  209. package/types/lookup/src/property-config/lookup.property-config.d.ts +31 -27
  210. package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
  211. package/types/modal/src/modal.component.d.ts +3 -3
  212. package/types/modal/src/modal.props.d.ts +3 -5
  213. package/types/page-header/src/page-header.props.d.ts +7 -0
  214. package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
  215. package/types/property-panel/src/composition/entity/base-property.d.ts +2 -16
  216. package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
  217. package/types/response-toolbar/index.d.ts +9 -3
  218. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
  219. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
  220. package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
  221. package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
  222. package/types/schema-selector/src/composition/types.d.ts +3 -1
  223. package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
  224. package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
  225. package/types/tabs/src/tabs.props.d.ts +8 -0
  226. package/components/button-edit/style.css +0 -1
  227. package/components/external-container/style.css +0 -1
  228. package/components/field-selector/style.css +0 -1
  229. package/components/lookup/style.css +0 -1
  230. package/components/mapping-editor/style.css +0 -1
  231. package/components/message-box/style.css +0 -1
  232. package/components/modal/style.css +0 -1
  233. package/components/schema-selector/style.css +0 -1
  234. package/components/tabs/style.css +0 -1
  235. package/components/time-picker/style.css +0 -1
  236. package/style.css +0 -1
  237. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
  238. /package/components/border-editor/{style.css → index.css} +0 -0
  239. /package/components/checkbox/{style.css → index.css} +0 -0
  240. /package/components/date-picker/{style.css → index.css} +0 -0
  241. /package/components/designer-canvas/{style.css → index.css} +0 -0
  242. /package/components/designer-outline/{style.css → index.css} +0 -0
  243. /package/components/designer-toolbox/{style.css → index.css} +0 -0
  244. /package/components/discussion-editor/{style.css → index.css} +0 -0
  245. /package/components/discussion-list/{style.css → index.css} +0 -0
  246. /package/components/drawer/{style.css → index.css} +0 -0
  247. /package/components/events-editor/{style.css → index.css} +0 -0
  248. /package/components/flow-canvas/{style.css → index.css} +0 -0
  249. /package/components/list-view/{style.css → index.css} +0 -0
  250. /package/components/order/{style.css → index.css} +0 -0
  251. /package/components/property-editor/{style.css → index.css} +0 -0
  252. /package/components/property-panel/{style.css → index.css} +0 -0
  253. /package/components/radio-button/{style.css → index.css} +0 -0
  254. /package/components/radio-group/{style.css → index.css} +0 -0
  255. /package/components/smoke-detector/{style.css → index.css} +0 -0
  256. /package/components/spacing-editor/{style.css → index.css} +0 -0
  257. /package/components/splitter/{style.css → index.css} +0 -0
  258. /package/components/switch/{style.css → index.css} +0 -0
  259. /package/components/transfer/{style.css → index.css} +0 -0
  260. /package/components/uploader/{style.css → index.css} +0 -0
  261. /package/components/weather/{style.css → index.css} +0 -0
@@ -1,16 +1,16 @@
1
1
  var Ce = Object.defineProperty;
2
2
  var Se = (e, t, n) => t in e ? Ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var $ = (e, t, n) => Se(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as b, computed as O, createVNode as h, Fragment as Q, watch as N, withModifiers as we, withDirectives as Fe, vModelText as Te, defineComponent as H, inject as q, onMounted as ie, nextTick as ke } from "vue";
4
+ import { ref as C, computed as B, createVNode as v, Fragment as Q, watch as H, withModifiers as we, withDirectives as Fe, vModelText as ke, defineComponent as N, inject as q, onMounted as ie, nextTick as Te } from "vue";
5
5
  import { cloneDeep as Me } from "lodash-es";
6
- import { useIdentify as Ve, useHierarchy as De, useGroupData as je, usePagination as Ie, useDataView as Pe, useSelection as Be, useEdit as Oe, useVisualDataBound as Ae, useVisualDataCell as xe, useVisualDataRow as Le, useVisualGroupRow as $e, useVisualSummaryRow as Ee, useVisualData as Ne } from "@farris/ui-vue/components/data-view";
6
+ import { useIdentify as Ve, useHierarchy as De, useGroupData as je, usePagination as Ie, useDataView as Oe, useSelection as Pe, useEdit as Be, useVisualDataBound as Ae, useVisualDataCell as xe, useVisualDataRow as Le, useVisualGroupRow as $e, useVisualSummaryRow as Ee, useVisualData as He } from "@farris/ui-vue/components/data-view";
7
7
  import { FCheckBox as X } from "@farris/ui-vue/components/checkbox";
8
- import He from "@farris/ui-vue/components/list-view";
8
+ import Ne from "@farris/ui-vue/components/list-view";
9
9
  import le from "@farris/ui-vue/components/button-edit";
10
10
  import { useDesignerComponent as Re } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
11
11
  const se = {}, ce = {};
12
12
  function Y(e) {
13
- const { properties: t, title: n } = e, o = Object.keys(t).reduce((c, s) => (c[s] = t[s].type === "object" && t[s].properties ? Y(t[s]) : Me(t[s].default), c), {});
13
+ const { properties: t, title: n } = e, o = Object.keys(t).reduce((c, r) => (c[r] = t[r].type === "object" && t[r].properties ? Y(t[r]) : Me(t[r].default), c), {});
14
14
  return o.id = `${n}-${Date.now()}`, o;
15
15
  }
16
16
  function R(e, t = {}) {
@@ -29,11 +29,11 @@ function Ue(e, t) {
29
29
  function ze(e, t) {
30
30
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, c) => {
31
31
  if (t.has(c)) {
32
- const s = t.get(c);
33
- if (typeof s == "string")
34
- o[s] = e[c];
32
+ const r = t.get(c);
33
+ if (typeof r == "string")
34
+ o[r] = e[c];
35
35
  else {
36
- const d = s(c, e[c], e);
36
+ const d = r(c, e[c], e);
37
37
  Object.assign(o, d);
38
38
  }
39
39
  } else
@@ -46,65 +46,65 @@ function Ge(e, t, n = /* @__PURE__ */ new Map()) {
46
46
  return ze(o, n);
47
47
  }
48
48
  function _e(e = {}) {
49
- function t(f, y, a, r) {
50
- if (typeof a == "number")
51
- return r[f].length === a;
52
- if (typeof a == "object") {
53
- const w = Object.keys(a)[0], l = a[w];
54
- if (w === "not")
55
- return Number(r[f].length) !== Number(l);
56
- if (w === "moreThan")
57
- return Number(r[f].length) >= Number(l);
58
- if (w === "lessThan")
59
- return Number(r[f].length) <= Number(l);
49
+ function t(m, g, l, i) {
50
+ if (typeof l == "number")
51
+ return i[m].length === l;
52
+ if (typeof l == "object") {
53
+ const h = Object.keys(l)[0], a = l[h];
54
+ if (h === "not")
55
+ return Number(i[m].length) !== Number(a);
56
+ if (h === "moreThan")
57
+ return Number(i[m].length) >= Number(a);
58
+ if (h === "lessThan")
59
+ return Number(i[m].length) <= Number(a);
60
60
  }
61
61
  return !1;
62
62
  }
63
- function n(f, y, a, r) {
64
- return r[f] && r[f].propertyValue && String(r[f].propertyValue.value) === String(a);
63
+ function n(m, g, l, i) {
64
+ return i[m] && i[m].propertyValue && String(i[m].propertyValue.value) === String(l);
65
65
  }
66
66
  const o = /* @__PURE__ */ new Map([
67
67
  ["length", t],
68
68
  ["getProperty", n]
69
69
  ]);
70
- Object.keys(e).reduce((f, y) => (f.set(y, e[y]), f), o);
71
- function c(f, y) {
72
- const a = f;
73
- return typeof y == "number" ? [{ target: a, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: a, operator: "getProperty", param: f, value: !!y }] : typeof y == "object" ? Object.keys(y).map((r) => {
74
- if (r === "length")
75
- return { target: a, operator: "length", param: null, value: y[r] };
76
- const w = r, l = y[r];
77
- return { target: a, operator: "getProperty", param: w, value: l };
70
+ Object.keys(e).reduce((m, g) => (m.set(g, e[g]), m), o);
71
+ function c(m, g) {
72
+ const l = m;
73
+ return typeof g == "number" ? [{ target: l, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: l, operator: "getProperty", param: m, value: !!g }] : typeof g == "object" ? Object.keys(g).map((i) => {
74
+ if (i === "length")
75
+ return { target: l, operator: "length", param: null, value: g[i] };
76
+ const h = i, a = g[i];
77
+ return { target: l, operator: "getProperty", param: h, value: a };
78
78
  }) : [];
79
79
  }
80
- function s(f) {
81
- return Object.keys(f).reduce((a, r) => {
82
- const w = c(r, f[r]);
83
- return a.push(...w), a;
80
+ function r(m) {
81
+ return Object.keys(m).reduce((l, i) => {
82
+ const h = c(i, m[i]);
83
+ return l.push(...h), l;
84
84
  }, []);
85
85
  }
86
- function d(f, y) {
87
- if (o.has(f.operator)) {
88
- const a = o.get(f.operator);
89
- return a && a(f.target, f.param, f.value, y) || !1;
86
+ function d(m, g) {
87
+ if (o.has(m.operator)) {
88
+ const l = o.get(m.operator);
89
+ return l && l(m.target, m.param, m.value, g) || !1;
90
90
  }
91
91
  return !1;
92
92
  }
93
- function m(f, y) {
94
- return s(f).reduce((w, l) => w && d(l, y), !0);
93
+ function y(m, g) {
94
+ return r(m).reduce((h, a) => h && d(a, g), !0);
95
95
  }
96
- function S(f, y) {
97
- const a = Object.keys(f), r = a.includes("allOf"), w = a.includes("anyOf"), l = r || w, u = (l ? f[l ? r ? "allOf" : "anyOf" : "allOf"] : [f]).map((T) => m(T, y));
98
- return r ? !u.includes(!1) : u.includes(!0);
96
+ function w(m, g) {
97
+ const l = Object.keys(m), i = l.includes("allOf"), h = l.includes("anyOf"), a = i || h, u = (a ? m[a ? i ? "allOf" : "anyOf" : "allOf"] : [m]).map((k) => y(k, g));
98
+ return i ? !u.includes(!1) : u.includes(!0);
99
99
  }
100
- return { parseValueSchema: S };
100
+ return { parseValueSchema: w };
101
101
  }
102
102
  const M = {
103
103
  Button: { type: "Button", name: "按钮", icon: "Button" },
104
104
  ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
105
- ToolBar: { type: "ToolBar", name: "工具栏", icon: "ButtonGroup" },
106
- ToolBarItem: { type: "ToolBarItem", name: "工具栏项", icon: "Button" },
107
- ContentContainer: { type: "ContentContainer", name: "容器", icon: "ContentContainer" },
105
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
106
+ "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
107
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
108
108
  DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
109
109
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
110
110
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
@@ -131,15 +131,15 @@ const M = {
131
131
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
132
132
  Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
133
133
  Module: { type: "Module", name: "模块", icon: "Module" },
134
- Component: { type: "Component", name: "组件", icon: "Component" },
134
+ component: { type: "component", name: "组件", icon: "Component" },
135
135
  ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
136
136
  Image: { type: "Image", name: "图像", icon: "Image" },
137
137
  ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
138
138
  HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
139
139
  ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
140
140
  RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
141
- Tab: { type: "Tab", name: "标签页", icon: "Tab" },
142
- TabPage: { type: "TabPage", name: "标签页项", dependentParentControl: "Tab" },
141
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
142
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
143
143
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
144
144
  Tag: { type: "Tag", name: "Tag", icon: "Tag" },
145
145
  Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
@@ -148,7 +148,7 @@ const M = {
148
148
  RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
149
149
  TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
150
150
  TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
151
- Section: { type: "Section", name: "分组面板", icon: "Section" },
151
+ section: { type: "section", name: "分组面板", icon: "Section" },
152
152
  SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
153
153
  SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
154
154
  QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
@@ -178,7 +178,7 @@ const M = {
178
178
  NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
179
179
  Tags: { type: "Tags", name: "标记组", icon: "Tags" },
180
180
  Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
181
- Header: { type: "Header", name: "页头", icon: "Header" },
181
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
182
182
  ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
183
183
  ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
184
184
  PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
@@ -212,10 +212,10 @@ const M = {
212
212
  /** 审批类 end */
213
213
  }, We = {}, qe = {};
214
214
  _e();
215
- function Z(e, t, n = /* @__PURE__ */ new Map(), o = (d, m, S) => m, c = {}, s = (d) => d) {
216
- return se[t.title] = t, ce[t.title] = o, We[t.title] = c, qe[t.title] = s, (d = {}) => {
217
- const m = Ge(d, t, n), S = Object.keys(e).reduce((f, y) => (f[y] = e[y].default, f), {});
218
- return Object.assign(S, m);
215
+ function Z(e, t, n = /* @__PURE__ */ new Map(), o = (d, y, w) => y, c = {}, r = (d) => d) {
216
+ return se[t.title] = t, ce[t.title] = o, We[t.title] = c, qe[t.title] = r, (d = {}) => {
217
+ const y = Ge(d, t, n), w = Object.keys(e).reduce((m, g) => (m[g] = e[g].default, m), {});
218
+ return Object.assign(w, y);
219
219
  };
220
220
  }
221
221
  function J(e, t) {
@@ -580,199 +580,201 @@ const dt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-
580
580
  }
581
581
  },
582
582
  keepOrder: { type: Boolean, default: !1 },
583
- disableField: { type: String, default: "disabled" }
583
+ disableField: { type: String, default: "disabled" },
584
+ // 搜索启用高亮
585
+ enableHighlightSearch: { type: Boolean, default: !0 }
584
586
  };
585
587
  Z(ue, vt, ct, ut, Ft);
586
- function Tt(e, t) {
587
- function n(s) {
588
+ function kt(e, t) {
589
+ function n(r) {
588
590
  const d = [];
589
- let m = s.nextNode();
590
- for (; m; )
591
- d.push(m), m = s.nextNode();
591
+ let y = r.nextNode();
592
+ for (; y; )
593
+ d.push(y), y = r.nextNode();
592
594
  return d;
593
595
  }
594
- function o(s, d) {
595
- const m = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
596
- return n(m).map((a) => ({ textNode: a, text: (a.textContent || "").toLocaleLowerCase() })).map(({ textNode: a, text: r }) => {
597
- const w = [];
598
- let l = 0;
599
- for (; l < r.length; ) {
600
- const g = r.indexOf(d, l);
601
- if (g === -1)
596
+ function o(r, d) {
597
+ const y = document.createTreeWalker(r, NodeFilter.SHOW_TEXT);
598
+ return n(y).map((l) => ({ textNode: l, text: (l.textContent || "").toLocaleLowerCase() })).map(({ textNode: l, text: i }) => {
599
+ const h = [];
600
+ let a = 0;
601
+ for (; a < i.length; ) {
602
+ const f = i.indexOf(d, a);
603
+ if (f === -1)
602
604
  break;
603
- w.push(g), l = g + d.length;
605
+ h.push(f), a = f + d.length;
604
606
  }
605
- return w.map((g) => {
606
- const i = new Range();
607
- return i.setStart(a, g), i.setEnd(a, g + d.length), i;
607
+ return h.map((f) => {
608
+ const s = new Range();
609
+ return s.setStart(l, f), s.setEnd(l, f + d.length), s;
608
610
  });
609
611
  }).flat();
610
612
  }
611
- function c(s) {
612
- if (!CSS.highlights || (CSS.highlights.clear(), !s || !t))
613
+ function c(r) {
614
+ if (!CSS.highlights || (CSS.highlights.clear(), !r || !t))
613
615
  return;
614
- const d = o(t.value, s.toLocaleLowerCase()), m = new Highlight(...d);
615
- CSS.highlights.set("search-result", m);
616
+ const d = o(t.value, r.toLocaleLowerCase()), y = new Highlight(...d);
617
+ CSS.highlights.set("search-result", y);
616
618
  }
617
619
  return { search: c };
618
620
  }
619
- function ae(e, t, n, o, c, s, d, m, S, f) {
620
- const y = b(e.size), a = b(e.textField), r = b(e.titleField), w = b(e.multiSelect), l = b(e.disableField), {
621
- onMouseenterItem: g,
622
- onMouseoverItem: i,
621
+ function ae(e, t, n, o, c, r, d, y, w, m) {
622
+ const g = C(e.size), l = C(e.textField), i = C(e.titleField), h = C(e.multiSelect), a = C(e.disableField), {
623
+ onMouseenterItem: f,
624
+ onMouseoverItem: s,
623
625
  onMouseoutItem: u
624
- } = s, {
626
+ } = r, {
625
627
  getKey: F,
626
- listViewItemClass: T,
628
+ listViewItemClass: k,
627
629
  onCheckItem: j,
628
- onClickItem: C
629
- } = d, v = O(() => ({
630
- margin: y.value === "small" ? "0.25rem 0" : "10px 0"
630
+ onClickItem: S
631
+ } = d, b = B(() => ({
632
+ margin: g.value === "small" ? "0.25rem 0" : "10px 0"
631
633
  }));
632
634
  function D(p, V, A) {
633
- return p.checked = m.findIndexInSelectedItems(p) > -1, h("li", {
634
- class: T(p, V),
635
+ return p.checked = y.findIndexInSelectedItems(p) > -1, v("li", {
636
+ class: k(p, V),
635
637
  id: F(p, V),
636
638
  key: F(p, V),
637
- onClick: (k) => C(k, p, V),
638
- onMouseenter: (k) => g(k, p, V),
639
- onMouseover: (k) => i(k, p, V),
640
- onMouseout: (k) => u(k, p, V)
641
- }, [w.value && h("div", {
639
+ onClick: (T) => S(T, p, V),
640
+ onMouseenter: (T) => f(T, p, V),
641
+ onMouseover: (T) => s(T, p, V),
642
+ onMouseout: (T) => u(T, p, V)
643
+ }, [h.value && v("div", {
642
644
  class: "f-list-select",
643
- onClick: (k) => k.stopPropagation()
644
- }, [h(X, {
645
+ onClick: (T) => T.stopPropagation()
646
+ }, [v(X, {
645
647
  id: "list-" + F(p, V),
646
648
  customClass: "listview-checkbox",
647
- disabled: p[l.value],
649
+ disabled: p[a.value],
648
650
  checked: p.checked,
649
- "onUpdate:checked": (k) => p.checked = k,
650
- onChange: (k) => {
651
- j(p, V, !k.checked);
651
+ "onUpdate:checked": (T) => p.checked = T,
652
+ onChange: (T) => {
653
+ j(p, V, !T.checked);
652
654
  }
653
- }, null)]), h("div", {
655
+ }, null)]), v("div", {
654
656
  class: "f-list-content"
655
- }, [h("div", {
656
- style: v.value,
657
- title: p.raw[r.value] || p.raw[a.value]
658
- }, [p.raw[a.value]])])]);
657
+ }, [v("div", {
658
+ style: b.value,
659
+ title: p.raw[i.value] || p.raw[l.value]
660
+ }, [p.raw[l.value]])])]);
659
661
  }
660
662
  return {
661
663
  renderItem: D
662
664
  };
663
665
  }
664
- function kt(e, t, n, o, c, s, d, m, S, f) {
665
- const y = b(e.multiSelect), a = b(e.disableField), {
666
- onMouseenterItem: r,
667
- onMouseoverItem: w,
668
- onMouseoutItem: l
669
- } = s, {
670
- getKey: g,
671
- listViewItemClass: i,
666
+ function Tt(e, t, n, o, c, r, d, y, w, m) {
667
+ const g = C(e.multiSelect), l = C(e.disableField), {
668
+ onMouseenterItem: i,
669
+ onMouseoverItem: h,
670
+ onMouseoutItem: a
671
+ } = r, {
672
+ getKey: f,
673
+ listViewItemClass: s,
672
674
  onCheckItem: u,
673
675
  onClickItem: F
674
676
  } = d;
675
- function T(C, v, D) {
676
- return t.slots.content ? h(Q, null, [t.slots.content && t.slots.content({
677
- item: C.raw,
678
- index: v,
677
+ function k(S, b, D) {
678
+ return t.slots.content ? v(Q, null, [t.slots.content && t.slots.content({
679
+ item: S.raw,
680
+ index: b,
679
681
  selectedItem: D
680
- })]) : h("div", {
682
+ })]) : v("div", {
681
683
  style: "margin: 10px 0;"
682
- }, [C.raw.name]);
683
- }
684
- function j(C, v, D) {
685
- return h("li", {
686
- class: i(C, v),
687
- id: g(C, v),
688
- key: g(C, v),
689
- onClick: (p) => F(p, C, v),
690
- onMouseenter: (p) => r(p, C, v),
691
- onMouseover: (p) => w(p, C, v),
692
- onMouseout: (p) => l(p, C, v)
693
- }, [y.value && h("div", {
684
+ }, [S.raw.name]);
685
+ }
686
+ function j(S, b, D) {
687
+ return v("li", {
688
+ class: s(S, b),
689
+ id: f(S, b),
690
+ key: f(S, b),
691
+ onClick: (p) => F(p, S, b),
692
+ onMouseenter: (p) => i(p, S, b),
693
+ onMouseover: (p) => h(p, S, b),
694
+ onMouseout: (p) => a(p, S, b)
695
+ }, [g.value && v("div", {
694
696
  class: "f-list-select",
695
697
  onClick: (p) => p.stopPropagation()
696
- }, [h(X, {
697
- id: "list-" + g(C, v),
698
+ }, [v(X, {
699
+ id: "list-" + f(S, b),
698
700
  customClass: "listview-checkbox",
699
- disabled: C[a.value] || !C.checked,
700
- checked: C.checked,
701
- "onUpdate:checked": (p) => C.checked = p,
702
- onChange: (p) => u(C, v, !p.checked)
703
- }, null)]), h("div", {
701
+ disabled: S[l.value] || !S.checked,
702
+ checked: S.checked,
703
+ "onUpdate:checked": (p) => S.checked = p,
704
+ onChange: (p) => u(S, b, !p.checked)
705
+ }, null)]), v("div", {
704
706
  class: "f-list-content"
705
- }, [T(C, v, D)])]);
707
+ }, [k(S, b, D)])]);
706
708
  }
707
709
  return {
708
710
  renderItem: j
709
711
  };
710
712
  }
711
- function Mt(e, t, n, o, c, s, d, m, S, f) {
712
- const y = b(e.multiSelect), a = b(e.disableField), {
713
- onMouseenterItem: r,
714
- onMouseoverItem: w,
715
- onMouseoutItem: l
716
- } = s, {
717
- getKey: g,
718
- listViewItemClass: i,
713
+ function Mt(e, t, n, o, c, r, d, y, w, m) {
714
+ const g = C(e.multiSelect), l = C(e.disableField), {
715
+ onMouseenterItem: i,
716
+ onMouseoverItem: h,
717
+ onMouseoutItem: a
718
+ } = r, {
719
+ getKey: f,
720
+ listViewItemClass: s,
719
721
  onCheckItem: u,
720
722
  onClickItem: F
721
723
  } = d, {
722
- dragstart: T,
724
+ dragstart: k,
723
725
  dragenter: j,
724
- dragover: C,
725
- dragend: v
726
+ dragover: S,
727
+ dragend: b
726
728
  } = o, {
727
729
  removeItem: D
728
- } = S, p = O(() => ({
729
- margin: y.value ? "10px 0" : "10px 0px 10px 14px"
730
+ } = w, p = B(() => ({
731
+ margin: g.value ? "10px 0" : "10px 0px 10px 14px"
730
732
  }));
731
733
  function V(I) {
732
- return h("div", {
734
+ return v("div", {
733
735
  style: p.value
734
736
  }, [I.raw.name]);
735
737
  }
736
738
  function A() {
737
739
  return t.slots.itemContent ? t.slots.itemContent : V;
738
740
  }
739
- const k = A();
740
- function x(I, B, E) {
741
- return h("li", {
742
- class: i(I, B),
743
- id: g(I, B),
744
- key: g(I, B),
745
- onClick: (P) => F(P, I, B),
746
- onMouseenter: (P) => r(P, I, B),
747
- onMouseover: (P) => w(P, I, B),
748
- onMouseout: (P) => l(P, I, B),
741
+ const T = A();
742
+ function x(I, P, E) {
743
+ return v("li", {
744
+ class: s(I, P),
745
+ id: f(I, P),
746
+ key: f(I, P),
747
+ onClick: (O) => F(O, I, P),
748
+ onMouseenter: (O) => i(O, I, P),
749
+ onMouseover: (O) => h(O, I, P),
750
+ onMouseout: (O) => a(O, I, P),
749
751
  draggable: "true",
750
- onDragstart: (P) => T(P, I, B),
751
- onDragenter: (P) => j(P, B),
752
- onDragend: (P) => v(P, I),
753
- onDragover: (P) => C(P, B)
754
- }, [y.value && h("div", {
752
+ onDragstart: (O) => k(O, I, P),
753
+ onDragenter: (O) => j(O, P),
754
+ onDragend: (O) => b(O, I),
755
+ onDragover: (O) => S(O, P)
756
+ }, [g.value && v("div", {
755
757
  class: "f-list-select",
756
- onClick: (P) => P.stopPropagation()
757
- }, [h(X, {
758
- id: "list-" + g(I, B),
758
+ onClick: (O) => O.stopPropagation()
759
+ }, [v(X, {
760
+ id: "list-" + f(I, P),
759
761
  customClass: "listview-checkbox",
760
- disabled: I[a.value] || !I.checked,
762
+ disabled: I[l.value] || !I.checked,
761
763
  checked: I.checked,
762
- "onUpdate:checked": (P) => I.checked = P,
763
- onChange: (P) => u(I, B, !P.checked)
764
- }, null)]), h("div", {
764
+ "onUpdate:checked": (O) => I.checked = O,
765
+ onChange: (O) => u(I, P, !O.checked)
766
+ }, null)]), v("div", {
765
767
  class: "f-list-content"
766
- }, [k(I)]), h("div", {
768
+ }, [T(I)]), v("div", {
767
769
  class: "f-list-remove",
768
- onClick: (P) => D(B)
769
- }, [h("div", {
770
+ onClick: (O) => D(P)
771
+ }, [v("div", {
770
772
  class: "f-list-remove-icon"
771
- }, [h("i", {
773
+ }, [v("i", {
772
774
  class: "f-icon f-icon-remove_face"
773
- }, null)])]), h("div", {
775
+ }, null)])]), v("div", {
774
776
  class: "f-list-handle"
775
- }, [h("div", null, [h("i", {
777
+ }, [v("div", null, [v("i", {
776
778
  class: "f-icon f-icon-drag-vertical"
777
779
  }, null)])])]);
778
780
  }
@@ -780,47 +782,47 @@ function Mt(e, t, n, o, c, s, d, m, S, f) {
780
782
  renderItem: x
781
783
  };
782
784
  }
783
- function Vt(e, t, n, o, c, s, d, m, S, f) {
784
- var g;
785
- const y = b(((g = e.group) == null ? void 0 : g.groupFields) || []), {
786
- collpaseGroupIconClass: a
785
+ function Vt(e, t, n, o, c, r, d, y, w, m) {
786
+ var f;
787
+ const g = C(((f = e.group) == null ? void 0 : f.groupFields) || []), {
788
+ collpaseGroupIconClass: l
787
789
  } = c, {
788
- toggleGroupRow: r
789
- } = f;
790
- function w(i, u) {
791
- u.collapse = !u.collapse, n.value = r(u.collapse ? "collapse" : "expand", u, n.value);
790
+ toggleGroupRow: i
791
+ } = m;
792
+ function h(s, u) {
793
+ u.collapse = !u.collapse, n.value = i(u.collapse ? "collapse" : "expand", u, n.value);
792
794
  }
793
- function l(i, u, F) {
794
- return i.layer > -1 && h("div", {
795
+ function a(s, u, F) {
796
+ return s.layer > -1 && v("div", {
795
797
  class: "f-navlookup-recentHeader",
796
- onClick: (T) => w(T, i)
797
- }, [h("div", {
798
+ onClick: (k) => h(k, s)
799
+ }, [v("div", {
798
800
  class: "fv-grid-group-row-icon"
799
- }, [h("span", {
800
- class: a(i)
801
- }, null)]), h("div", {
801
+ }, [v("span", {
802
+ class: l(s)
803
+ }, null)]), v("div", {
802
804
  class: "f-navlookup-recommandLabel"
803
- }, [i.raw[y.value[i.layer]]])]);
805
+ }, [s.raw[g.value[s.layer]]])]);
804
806
  }
805
807
  return {
806
- renderItem: l
808
+ renderItem: a
807
809
  };
808
810
  }
809
811
  function Dt() {
810
- const e = b(-1), t = b(""), n = b(-1), o = b(!1);
811
- function c(f, y, a) {
812
- n.value = a;
812
+ const e = C(-1), t = C(""), n = C(-1), o = C(!1);
813
+ function c(m, g, l) {
814
+ n.value = l;
813
815
  }
814
- function s(f, y, a) {
815
- o.value || (n.value = a);
816
+ function r(m, g, l) {
817
+ o.value || (n.value = l);
816
818
  }
817
- function d(f, y, a) {
819
+ function d(m, g, l) {
818
820
  n.value = -1;
819
821
  }
820
- function m() {
822
+ function y() {
821
823
  o.value = !0;
822
824
  }
823
- function S() {
825
+ function w() {
824
826
  o.value = !1;
825
827
  }
826
828
  return {
@@ -828,126 +830,126 @@ function Dt() {
828
830
  focusedItemId: t,
829
831
  hoverIndex: n,
830
832
  onMouseenterItem: c,
831
- onMouseoverItem: s,
833
+ onMouseoverItem: r,
832
834
  onMouseoutItem: d,
833
- resumeHover: S,
834
- suspendHover: m
835
+ resumeHover: w,
836
+ suspendHover: y
835
837
  };
836
838
  }
837
839
  function jt(e, t, n, o) {
838
- const c = b(e.idField), { dataView: s } = n, d = b(-1), m = b(!1), { activeIndex: S, focusedItemId: f, hoverIndex: y, resumeHover: a, suspendHover: r } = o;
839
- function w(u, F, T) {
840
- u.stopPropagation(), r(), F && setTimeout(() => {
841
- d.value = T, m.value = !0, F.moving = !0;
840
+ const c = C(e.idField), { dataView: r } = n, d = C(-1), y = C(!1), { activeIndex: w, focusedItemId: m, hoverIndex: g, resumeHover: l, suspendHover: i } = o;
841
+ function h(u, F, k) {
842
+ u.stopPropagation(), i(), F && setTimeout(() => {
843
+ d.value = k, y.value = !0, F.moving = !0;
842
844
  });
843
845
  }
844
- function l(u, F) {
846
+ function a(u, F) {
845
847
  if (u.preventDefault(), d.value !== F) {
846
- const T = s.value[d.value], j = s.value;
847
- j.splice(d.value, 1), j.splice(F, 0, T), d.value = F;
848
+ const k = r.value[d.value], j = r.value;
849
+ j.splice(d.value, 1), j.splice(F, 0, k), d.value = F;
848
850
  }
849
851
  }
850
- function g(u, F) {
852
+ function f(u, F) {
851
853
  u.preventDefault(), u.dataTransfer && (u.dataTransfer.dropEffect = "move");
852
854
  }
853
- function i(u, F) {
854
- F && (F.moving = !1), s.value.forEach((T, j) => {
855
- T.__fv_index__ = j;
856
- }), m.value = !1, a(), y.value = F.raw.__fv_index__, S.value = F.raw.__fv_index__, f.value = F.raw[c.value], t.emit("change", s.value), t.emit("activeChange", F);
855
+ function s(u, F) {
856
+ F && (F.moving = !1), r.value.forEach((k, j) => {
857
+ k.__fv_index__ = j;
858
+ }), y.value = !1, l(), g.value = F.raw.__fv_index__, w.value = F.raw.__fv_index__, m.value = F.raw[c.value], t.emit("change", r.value), t.emit("activeChange", F);
857
859
  }
858
860
  return {
859
- dragstart: w,
860
- dragenter: l,
861
- dragover: g,
862
- dragend: i,
863
- isDragging: m
861
+ dragstart: h,
862
+ dragenter: a,
863
+ dragover: f,
864
+ dragend: s,
865
+ isDragging: y
864
866
  };
865
867
  }
866
868
  function It(e, t, n) {
867
869
  const { dataView: o } = n;
868
- function c(s) {
869
- if (s > -1 && s < o.value.length) {
870
- const d = o.value.splice(s, 1);
870
+ function c(r) {
871
+ if (r > -1 && r < o.value.length) {
872
+ const d = o.value.splice(r, 1);
871
873
  t.emit("removeItem", d[0]);
872
874
  }
873
875
  }
874
876
  return { removeItem: c };
875
877
  }
876
- function Pt(e, t, n, o, c, s) {
877
- const d = b(e.idField), m = b(e.disableField), S = b(e.draggable), f = b(e.itemClass), y = b(e.selection.multiSelect ?? !1), a = b(e.selection.multiSelectMode);
878
- b(!0);
879
- const { isDragging: r } = o, { activeIndex: w, focusedItemId: l, hoverIndex: g } = c, { clearSelection: i, getSelectedItems: u, toggleSelectItem: F } = s, T = b(u());
880
- function j(k, x) {
878
+ function Ot(e, t, n, o, c, r) {
879
+ const d = C(e.idField), y = C(e.disableField), w = C(e.draggable), m = C(e.itemClass), g = C(e.selection.multiSelect ?? !1), l = C(e.selection.multiSelectMode);
880
+ C(!0);
881
+ const { isDragging: i } = o, { activeIndex: h, focusedItemId: a, hoverIndex: f } = c, { clearSelection: s, getSelectedItems: u, toggleSelectItem: F } = r, k = C(u());
882
+ function j(T, x) {
881
883
  const I = {
882
884
  "f-list-view-group-item": !0,
883
- "f-list-view-draggable-item": S.value,
884
- "f-un-click": !k.checked,
885
- "f-un-select": !!k.raw[m.value],
886
- "f-listview-active": k.raw.__fv_index__ === w.value,
887
- "f-listview-hover": !r.value && x === g.value,
888
- moving: !!k.moving
885
+ "f-list-view-draggable-item": w.value,
886
+ "f-un-click": !T.checked,
887
+ "f-un-select": !!T.raw[y.value],
888
+ "f-listview-active": T.raw.__fv_index__ === h.value,
889
+ "f-listview-hover": !i.value && x === f.value,
890
+ moving: !!T.moving
889
891
  };
890
- return f.value.split(" ").reduce((E, P) => (E[P] = !0, E), I), I;
892
+ return m.value.split(" ").reduce((E, O) => (E[O] = !0, E), I), I;
891
893
  }
892
- function C(k, x) {
893
- return k.raw[d.value] || "";
894
+ function S(T, x) {
895
+ return T.raw[d.value] || "";
894
896
  }
895
- const v = O(() => !y.value);
896
- function D(k, x, I) {
897
- k.checked = I, !k.raw[m.value] && (v.value && (l.value = k.raw[d.value]), F(k));
897
+ const b = B(() => !g.value);
898
+ function D(T, x, I) {
899
+ T.checked = I, !T.raw[y.value] && (b.value && (a.value = T.raw[d.value]), F(T));
898
900
  }
899
- const p = O(() => y.value && a.value === "OnCheckClearByClick"), V = O(() => !y.value || y.value && (a.value === "OnCheckAndClick" || a.value === "OnClick"));
900
- function A(k, x, I) {
901
- if (x.raw[m.value]) {
902
- k.preventDefault(), k.stopPropagation();
901
+ const p = B(() => g.value && l.value === "OnCheckClearByClick"), V = B(() => !g.value || g.value && (l.value === "OnCheckAndClick" || l.value === "OnClick"));
902
+ function A(T, x, I) {
903
+ if (x.raw[y.value]) {
904
+ T.preventDefault(), T.stopPropagation();
903
905
  return;
904
906
  }
905
- l.value = x.raw[d.value], w.value = I, p.value && i(n.value), V.value && (F(x), T.value = u()), t.emit("clickItem", { data: T.value, index: I }), t.emit("activeChange", T.value);
907
+ a.value = x.raw[d.value], h.value = I, p.value && s(n.value), V.value && (F(x), k.value = u()), t.emit("clickItem", { data: k.value, index: I }), t.emit("activeChange", k.value);
906
908
  }
907
909
  return {
908
- getKey: C,
910
+ getKey: S,
909
911
  listViewItemClass: j,
910
912
  onCheckItem: D,
911
913
  onClickItem: A
912
914
  };
913
915
  }
914
- function Bt(e, t, n, o, c, s, d) {
915
- const m = b(e.view), S = b(e.view === "CardView"), f = b({}), y = b("暂无数据"), a = Dt(), r = jt(e, t, o, a), w = It(e, t, o), l = Pt(e, t, n, r, a, s), g = O(() => ({
916
+ function Pt(e, t, n, o, c, r, d) {
917
+ const y = C(e.view), w = C(e.view === "CardView"), m = C({}), g = C("暂无数据"), l = Dt(), i = jt(e, t, o, l), h = It(e, t, o), a = Ot(e, t, n, i, l, r), f = B(() => ({
916
918
  "f-list-view-group": !0,
917
- "d-flex": S.value,
918
- "flex-wrap": S.value
919
- })), i = O(() => !!n.value && n.value.length > 0), u = O(() => n.value.length === 0), F = O(() => u.value && !t.slots.empty);
920
- function T() {
921
- return m.value === "SingleView" ? ae : m.value === "DraggableView" ? Mt : (m.value === "ContentView" || m.value === "CardView") && t.slots.content ? kt : ae;
922
- }
923
- const j = T(), {
924
- renderItem: C
925
- } = j(e, t, n, r, c, a, l, s, w, d), {
926
- renderItem: v
927
- } = Vt(e, t, n, r, c, a, l, s, w, d), D = [C, v];
919
+ "d-flex": w.value,
920
+ "flex-wrap": w.value
921
+ })), s = B(() => !!n.value && n.value.length > 0), u = B(() => n.value.length === 0), F = B(() => u.value && !t.slots.empty);
922
+ function k() {
923
+ return y.value === "SingleView" ? ae : y.value === "DraggableView" ? Mt : (y.value === "ContentView" || y.value === "CardView") && t.slots.content ? Tt : ae;
924
+ }
925
+ const j = k(), {
926
+ renderItem: S
927
+ } = j(e, t, n, i, c, l, a, r, h, d), {
928
+ renderItem: b
929
+ } = Vt(e, t, n, i, c, l, a, r, h, d), D = [S, b];
928
930
  function p() {
929
- return n.value.filter((k) => k.visible !== !1).map((k, x) => D[k.type](k, x, f));
931
+ return n.value.filter((T) => T.visible !== !1).map((T, x) => D[T.type](T, x, m));
930
932
  }
931
933
  function V() {
932
- return h("div", {
934
+ return v("div", {
933
935
  class: "f-list-view-emptydata"
934
- }, [h("p", {
936
+ }, [v("p", {
935
937
  class: "f-empty-title"
936
- }, [y.value])]);
938
+ }, [g.value])]);
937
939
  }
938
940
  function A() {
939
- return h("ul", {
940
- class: g.value,
941
+ return v("ul", {
942
+ class: f.value,
941
943
  style: "list-style: none;"
942
- }, [i.value && p(), F.value && V(), t.slots.empty && t.slots.empty()]);
944
+ }, [s.value && p(), F.value && V(), t.slots.empty && t.slots.empty()]);
943
945
  }
944
946
  return {
945
947
  renderListArea: A
946
948
  };
947
949
  }
948
- function Ot(e, t, n) {
950
+ function Bt(e, t, n) {
949
951
  function o() {
950
- return t.slots.header && h("div", {
952
+ return t.slots.header && v("div", {
951
953
  class: "f-list-view-header"
952
954
  }, [t.slots.header()]);
953
955
  }
@@ -956,99 +958,99 @@ function Ot(e, t, n) {
956
958
  };
957
959
  }
958
960
  function re(e, t, n) {
959
- const o = b(e.headerClass), c = b(e.placeholder), s = b(""), d = O(() => !s.value), m = O(() => !!s.value);
960
- function S(r) {
961
- s.value = "";
961
+ const o = C(e.headerClass), c = C(e.placeholder), r = C(""), d = B(() => !r.value), y = B(() => !!r.value);
962
+ function w(i) {
963
+ r.value = "";
962
964
  }
963
- N(s, (r) => {
964
- n.search(r);
965
+ H(r, (i) => {
966
+ e.enableHighlightSearch && n.search(i), t.emit("afterSearch", i);
965
967
  });
966
- const f = O(() => {
967
- const r = {
968
+ const m = B(() => {
969
+ const i = {
968
970
  "form-group": !0,
969
971
  "farris-form-group": !0
970
972
  };
971
- return o.value && o.value.split(" ").reduce((l, g) => (l[g] = !0, l), r), r;
973
+ return o.value && o.value.split(" ").reduce((a, f) => (a[f] = !0, a), i), i;
972
974
  });
973
- function y(r) {
975
+ function g(i) {
974
976
  }
975
- function a() {
976
- return h("div", {
977
+ function l() {
978
+ return v("div", {
977
979
  class: "f-list-view-header",
978
- onClick: we(() => y, ["prevent", "stop"])
979
- }, [h("div", {
980
- class: f.value
981
- }, [h("div", {
980
+ onClick: we(() => g, ["prevent", "stop"])
981
+ }, [v("div", {
982
+ class: m.value
983
+ }, [v("div", {
982
984
  class: "farris-input-wrap"
983
- }, [h("div", {
985
+ }, [v("div", {
984
986
  class: "f-cmp-inputgroup"
985
- }, [h("div", {
987
+ }, [v("div", {
986
988
  class: "input-group f-state-editable"
987
- }, [Fe(h("input", {
989
+ }, [Fe(v("input", {
988
990
  class: "form-control f-utils-fill text-left",
989
- "onUpdate:modelValue": (r) => s.value = r,
991
+ "onUpdate:modelValue": (i) => r.value = i,
990
992
  name: "input-group-value",
991
993
  type: "text",
992
994
  placeholder: c.value,
993
995
  autocomplete: "off"
994
- }, null), [[Te, s.value]]), h("div", {
996
+ }, null), [[ke, r.value]]), v("div", {
995
997
  class: "input-group-append"
996
- }, [m.value && h("span", {
998
+ }, [y.value && v("span", {
997
999
  class: "input-group-text input-group-clear",
998
- onClick: (r) => S()
999
- }, [h("i", {
1000
+ onClick: (i) => w()
1001
+ }, [v("i", {
1000
1002
  class: "f-icon f-icon-close-circle"
1001
- }, null)]), d.value && h("span", {
1003
+ }, null)]), d.value && v("span", {
1002
1004
  class: "input-group-text"
1003
- }, [h("span", {
1005
+ }, [v("span", {
1004
1006
  class: "f-icon f-icon-search"
1005
1007
  }, null)])])])])])])]);
1006
1008
  }
1007
1009
  return {
1008
- renderHeader: a
1010
+ renderHeader: l
1009
1011
  };
1010
1012
  }
1011
- const de = /* @__PURE__ */ H({
1013
+ const de = /* @__PURE__ */ N({
1012
1014
  name: "FListView",
1013
1015
  props: ue,
1014
- emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
1016
+ emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
1015
1017
  setup(e, t) {
1016
- const n = b(), o = b(!0), c = b(!1), s = b([]), d = 0, m = b(e.columns), S = Ve(e), f = De(e), y = je(e, S), a = Ie(e), r = Pe(e, /* @__PURE__ */ new Map(), f, S, a), w = Be(e, r, S, s, t), l = Tt(e, n), g = O(() => r.dataView.value.length), i = Oe(e, S), u = Ae(), F = xe(e, {}, u), T = Le(e, i, f, S, u, F), j = $e(e, S, F, T), C = Ee(e, S, F, T), v = Ne(e, m, r, g, d, T, j, C), {
1018
+ const n = C(), o = C(!0), c = C(!1), r = C([]), d = 0, y = C(e.columns), w = Ve(e), m = De(e), g = je(e, w), l = Ie(e), i = Oe(e, /* @__PURE__ */ new Map(), m, w, l), h = Pe(e, i, w, r, t), a = kt(e, n), f = B(() => i.dataView.value.length), s = Be(e, w), u = Ae(), F = xe(e, {}, u), k = Le(e, s, m, w, u, F), j = $e(e, w, F, k), S = Ee(e, w, F, k), b = He(e, y, i, f, d, k, j, S), {
1017
1019
  getVisualData: D
1018
- } = v;
1019
- s.value = D(0, g.value + d - 1);
1020
- const p = O(() => {
1020
+ } = b;
1021
+ r.value = D(0, f.value + d - 1);
1022
+ const p = B(() => {
1021
1023
  const L = {
1022
1024
  "f-list-view": !0,
1023
1025
  "f-list-view-multiple": e.multiSelect
1024
1026
  };
1025
1027
  return e.size !== "default" && (L[`${e.size}-item`] = !0), L;
1026
- }), V = O(() => !!t.slots.footer || o.value);
1028
+ }), V = B(() => !!t.slots.footer || o.value);
1027
1029
  function A() {
1028
- return e.header === "SearchBar" ? re : e.header === "ContentHeader" ? Ot : re;
1030
+ return e.header === "SearchBar" ? re : e.header === "ContentHeader" ? Bt : re;
1029
1031
  }
1030
- const k = A(), {
1032
+ const T = A(), {
1031
1033
  renderHeader: x
1032
- } = k(e, t, l), {
1034
+ } = T(e, t, a), {
1033
1035
  renderListArea: I
1034
- } = Bt(e, t, s, r, y, w, v);
1035
- function B(L) {
1036
- l.search(L);
1036
+ } = Pt(e, t, r, i, g, h, b);
1037
+ function P(L) {
1038
+ a.search(L);
1037
1039
  }
1038
1040
  function E(L) {
1039
- L && (r.load(L), s.value = D(0, g.value + d - 1));
1041
+ L && (i.load(L), r.value = D(0, f.value + d - 1));
1040
1042
  }
1041
1043
  t.expose({
1042
- search: B,
1044
+ search: P,
1043
1045
  updateDataSource: E
1044
1046
  });
1045
- function P(L) {
1047
+ function O(L) {
1046
1048
  e.multiSelect && (L.preventDefault(), L.stopPropagation());
1047
1049
  }
1048
- return () => h("div", {
1050
+ return () => v("div", {
1049
1051
  class: p.value,
1050
- onClick: P
1051
- }, [x(), h("div", {
1052
+ onClick: O
1053
+ }, [x(), v("div", {
1052
1054
  ref: n,
1053
1055
  class: "f-list-view-content",
1054
1056
  onMouseover: () => {
@@ -1057,7 +1059,7 @@ const de = /* @__PURE__ */ H({
1057
1059
  onMouseleave: () => {
1058
1060
  c.value = !1;
1059
1061
  }
1060
- }, [I()]), V.value && h("div", {
1062
+ }, [I()]), V.value && v("div", {
1061
1063
  class: "f-list-view-footer"
1062
1064
  }, [t.slots.footer && t.slots.footer()])]);
1063
1065
  }
@@ -1096,19 +1098,19 @@ function xt(e, t) {
1096
1098
  };
1097
1099
  }
1098
1100
  function Lt(e) {
1099
- const t = O(() => {
1101
+ const t = B(() => {
1100
1102
  const o = {
1101
1103
  "f-icon": !0
1102
1104
  };
1103
1105
  if (e.icon) {
1104
1106
  const c = e.icon.trim().split(" ");
1105
- c && c.length && c.reduce((s, d) => (s[d] = !0, s), o);
1107
+ c && c.length && c.reduce((r, d) => (r[d] = !0, r), o);
1106
1108
  }
1107
1109
  return o;
1108
- }), n = O(() => !!(e.icon && e.icon.trim()));
1110
+ }), n = B(() => !!(e.icon && e.icon.trim()));
1109
1111
  return { iconClass: t, shouldShowIcon: n };
1110
1112
  }
1111
- const pe = /* @__PURE__ */ H({
1113
+ const pe = /* @__PURE__ */ N({
1112
1114
  name: "FButton",
1113
1115
  props: At,
1114
1116
  emits: ["click"],
@@ -1118,7 +1120,7 @@ const pe = /* @__PURE__ */ H({
1118
1120
  } = xt(e, t), {
1119
1121
  iconClass: o,
1120
1122
  shouldShowIcon: c
1121
- } = Lt(e), s = O(() => {
1123
+ } = Lt(e), r = B(() => {
1122
1124
  const d = {
1123
1125
  btn: !0,
1124
1126
  "btn-lg": e.size === "large",
@@ -1126,19 +1128,19 @@ const pe = /* @__PURE__ */ H({
1126
1128
  "btn-sm": e.size === "small",
1127
1129
  "btn-icontext": c.value
1128
1130
  };
1129
- return d[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((m, S) => (m[S] = e.customClass[S], m), d), d;
1131
+ return d[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((y, w) => (y[w] = e.customClass[w], y), d), d;
1130
1132
  });
1131
- return () => h("button", {
1132
- class: s.value,
1133
+ return () => v("button", {
1134
+ class: r.value,
1133
1135
  disabled: e.disabled,
1134
1136
  onClick: (d) => n(d)
1135
- }, [c.value && h("i", {
1137
+ }, [c.value && v("i", {
1136
1138
  class: o.value
1137
1139
  }, null), t.slots.default && t.slots.default()]);
1138
1140
  }
1139
1141
  }), $t = /* @__PURE__ */ new Map([
1140
1142
  ["appearance", J]
1141
- ]), Et = "https://json-schema.org/draft/2020-12/schema", Nt = "https://farris-design.gitee.io/combo-list.schema.json", Ht = "combo-list", Rt = "A Farris Input Component", Ut = "object", zt = {
1143
+ ]), Et = "https://json-schema.org/draft/2020-12/schema", Ht = "https://farris-design.gitee.io/combo-list.schema.json", Nt = "combo-list", Rt = "A Farris Input Component", Ut = "object", zt = {
1142
1144
  id: {
1143
1145
  description: "The unique identifier for a combo list",
1144
1146
  type: "string"
@@ -1193,7 +1195,7 @@ const pe = /* @__PURE__ */ H({
1193
1195
  valueField: {
1194
1196
  description: "",
1195
1197
  type: "string",
1196
- default: "id"
1198
+ default: "value"
1197
1199
  },
1198
1200
  titleField: {
1199
1201
  description: "",
@@ -1254,8 +1256,8 @@ const pe = /* @__PURE__ */ H({
1254
1256
  "type"
1255
1257
  ], _t = {
1256
1258
  $schema: Et,
1257
- $id: Nt,
1258
- title: Ht,
1259
+ $id: Ht,
1260
+ title: Nt,
1259
1261
  description: Rt,
1260
1262
  type: Ut,
1261
1263
  properties: zt,
@@ -1423,7 +1425,13 @@ const ee = {
1423
1425
  /**
1424
1426
  * 打开前
1425
1427
  */
1426
- beforeOpen: { type: Function, default: null }
1428
+ beforeOpen: { type: Function, default: null },
1429
+ searchOption: {
1430
+ type: Object,
1431
+ default: !1
1432
+ },
1433
+ // 搜索启用高亮
1434
+ enableHighlightSearch: { type: Boolean, default: !0 }
1427
1435
  }, fe = Z(ee, _t, $t, Wt), qt = {
1428
1436
  dataSource: { type: Array, default: [] },
1429
1437
  enableSearch: { type: Boolean, default: !1 },
@@ -1438,137 +1446,159 @@ const ee = {
1438
1446
  valueField: { type: String, default: "id" },
1439
1447
  /** 值变化事件 */
1440
1448
  onSelectionChange: { type: Function, default: () => {
1441
- } }
1442
- }, Qt = /* @__PURE__ */ H({
1449
+ } },
1450
+ searchOption: {
1451
+ type: Object,
1452
+ default: !1
1453
+ },
1454
+ // 搜索启用高亮
1455
+ enableHighlightSearch: { type: Boolean, default: !0 }
1456
+ }, Qt = /* @__PURE__ */ N({
1443
1457
  name: "FComboListContainer",
1444
1458
  props: qt,
1445
1459
  emits: ["selectionChange"],
1446
1460
  setup(e, t) {
1447
- const n = b(e.dataSource), o = b([]), c = b(e.separator), s = b(e.width), d = b(e.maxHeight), m = b(String(e.selectedValues).split(c.value));
1448
- N(e.dataSource, () => {
1449
- n.value = e.dataSource;
1461
+ const n = C(), o = C(e.dataSource), c = C([]), r = C(e.separator), d = C(e.width), y = C(e.maxHeight), w = C(String(e.selectedValues).split(r.value));
1462
+ H(e.dataSource, () => {
1463
+ o.value = e.dataSource;
1450
1464
  });
1451
- const S = O(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = O(() => {
1452
- const a = {};
1453
- return s.value !== void 0 && (a.width = `${s.value}px`), d.value !== void 0 && d.value > 0 && (a.maxHeight = `${d.value}px`), a;
1465
+ const m = B(() => e.enableSearch ? "SearchBar" : "ContentHeader"), g = B(() => {
1466
+ const h = {};
1467
+ return d.value !== void 0 && (h.width = `${d.value}px`), y.value !== void 0 && y.value > 0 && (h.maxHeight = `${y.value}px`), h;
1454
1468
  });
1455
- function y(a) {
1456
- o.value = a.map((r) => Object.assign({}, r)), m.value = a.map((r) => r[e.idField]), t.emit("selectionChange", o.value);
1469
+ function l(h) {
1470
+ c.value = h.map((a) => Object.assign({}, a)), w.value = h.map((a) => a[e.idField]), t.emit("selectionChange", c.value);
1471
+ }
1472
+ function i(h) {
1473
+ if (e.enableHighlightSearch)
1474
+ return;
1475
+ let a = [];
1476
+ typeof e.searchOption == "function" ? a = o.value.filter((f) => e.searchOption(h, f)) : a = o.value.filter((f) => f[e.valueField].indexOf(h) > -1 || f[e.textField].indexOf(h) > -1), n.value.updateDataSource(a);
1457
1477
  }
1458
- return N([() => e.selectedValues], ([a]) => {
1459
- m.value = a.split(c.value);
1460
- }), () => h("div", {
1478
+ return H([() => e.selectedValues], ([h]) => {
1479
+ w.value = h.split(r.value);
1480
+ }), () => v("div", {
1461
1481
  class: "f-combo-list-container pl-3",
1462
- style: f.value
1463
- }, [h(He, {
1482
+ style: g.value
1483
+ }, [v(Ne, {
1484
+ ref: n,
1464
1485
  size: "small",
1465
1486
  itemClass: "f-combo-list-item",
1466
- header: S.value,
1487
+ header: m.value,
1467
1488
  headerClass: "f-combo-list-search-box",
1468
- data: n.value,
1489
+ data: o.value,
1469
1490
  idField: e.idField,
1470
1491
  textField: e.textField,
1471
1492
  titleField: e.titleField,
1472
1493
  multiSelect: e.multiSelect,
1473
- multiSelectMode: "OnCheckAndClick",
1474
- selectionValues: m.value,
1475
- onSelectionChange: y
1494
+ selection: {
1495
+ enableSelectRow: !0,
1496
+ multiSelect: !0,
1497
+ multiSelectMode: "OnCheckAndClick",
1498
+ showCheckbox: !0,
1499
+ showSelectAll: !1,
1500
+ showSelection: !0
1501
+ },
1502
+ enableHighlightSearch: e.enableHighlightSearch,
1503
+ selectionValues: w.value,
1504
+ onSelectionChange: l,
1505
+ onAfterSearch: i
1476
1506
  }, null)]);
1477
1507
  }
1478
1508
  });
1479
1509
  function Xt(e) {
1480
- const t = b(""), n = b(e.modelValue), o = b(e.data || []), c = b(e.editable);
1481
- function s(a) {
1482
- const r = String(a).split(e.separator).map((l) => [l, !0]), w = new Map(r);
1483
- return o.value.filter((l) => w.has(String(l[e.valueField])));
1510
+ const t = C(""), n = C(e.modelValue), o = C(e.data || []), c = C(e.editable);
1511
+ function r(l) {
1512
+ const i = String(l).split(e.separator).map((a) => [a, !0]), h = new Map(i);
1513
+ return o.value.filter((a) => h.has(String(a[e.valueField])));
1484
1514
  }
1485
- function d(a) {
1486
- const r = s(a).map((w) => w[e.textField]).join(e.separator);
1487
- t.value = c.value ? r || a : r;
1515
+ function d(l) {
1516
+ const i = r(l).map((h) => h[e.textField]).join(e.separator);
1517
+ t.value = c.value ? i || l : i;
1488
1518
  }
1489
- function m(a) {
1490
- const r = a.split(e.separator).map((l) => [l, !0]), w = new Map(r);
1491
- return o.value.filter((l) => w.has(l[e.textField]));
1519
+ function y(l) {
1520
+ const i = l.split(e.separator).map((a) => [a, !0]), h = new Map(i);
1521
+ return o.value.filter((a) => h.has(a[e.textField]));
1492
1522
  }
1493
- function S(a) {
1494
- const r = {};
1495
- return r[e.idField] = a, r[e.textField] = a, [r];
1523
+ function w(l) {
1524
+ const i = {};
1525
+ return i[e.idField] = l, i[e.textField] = l, [i];
1496
1526
  }
1497
- function f(a) {
1498
- let r = m(a);
1499
- const w = r && r.length > 0;
1500
- return c.value && !w && (r = S(a)), r;
1527
+ function m(l) {
1528
+ let i = y(l);
1529
+ const h = i && i.length > 0;
1530
+ return c.value && !h && (i = w(l)), i;
1501
1531
  }
1502
- function y() {
1503
- const { url: a, method: r = "GET", headers: w = {}, body: l = null } = e.remote, g = r.toLowerCase() == "get" ? { method: r, headers: w } : { method: r, headers: w, body: l };
1504
- let i = !1;
1505
- fetch(a, g).then((u) => {
1506
- var T, j;
1532
+ function g() {
1533
+ const { url: l, method: i = "GET", headers: h = {}, body: a = null } = e.remote, f = i.toLowerCase() == "get" ? { method: i, headers: h } : { method: i, headers: h, body: a };
1534
+ let s = !1;
1535
+ fetch(l, f).then((u) => {
1536
+ var k, j;
1507
1537
  if (u.status === 200)
1508
- return i = !!((j = (T = u.headers) == null ? void 0 : T.get("content-type")) != null && j.includes("application/json")), i ? u.text() : u.json();
1538
+ return s = !!((j = (k = u.headers) == null ? void 0 : k.get("content-type")) != null && j.includes("application/json")), s ? u.text() : u.json();
1509
1539
  throw new Error(u.statusText);
1510
1540
  }).then((u) => {
1511
- o.value = i ? JSON.parse(u) : u;
1541
+ o.value = s ? JSON.parse(u) : u;
1512
1542
  }).catch((u) => {
1513
1543
  console.error(u);
1514
1544
  });
1515
1545
  }
1516
- return e.remote && y(), N(() => e.data, () => {
1546
+ return e.remote && g(), H(() => e.data, () => {
1517
1547
  o.value = e.data;
1518
- }), N([o], ([a]) => {
1548
+ }), H([o], ([l]) => {
1519
1549
  if (e.modelValue) {
1520
- const r = a.find((w) => w[e.valueField] === e.modelValue);
1521
- r && (t.value = r[e.textField]);
1550
+ const i = l.find((h) => h[e.valueField] === e.modelValue);
1551
+ i && (t.value = i[e.textField]);
1522
1552
  }
1523
- }), N(() => e.modelValue, (a) => {
1524
- n.value = a, d(a);
1525
- }), d(e.modelValue), { dataSource: o, displayText: t, editable: c, modelValue: n, getItemsByDisplayText: m, getItemsByValue: s, getSelectedItemsByDisplayText: f };
1553
+ }), H(() => e.modelValue, (l) => {
1554
+ n.value = l, d(l);
1555
+ }), d(e.modelValue), { dataSource: o, displayText: t, editable: c, modelValue: n, getItemsByDisplayText: y, getItemsByValue: r, getSelectedItemsByDisplayText: m };
1526
1556
  }
1527
- const U = /* @__PURE__ */ H({
1557
+ const U = /* @__PURE__ */ N({
1528
1558
  name: "FComboList",
1529
1559
  props: ee,
1530
1560
  emits: ["clear", "update:modelValue", "change", "input"],
1531
1561
  setup(e, t) {
1532
- const n = b(), o = b(e.disabled), c = b(e.enableClear), s = b(e.enableSearch), d = b(e.readonly), {
1533
- dataSource: m,
1534
- displayText: S,
1535
- editable: f,
1536
- modelValue: y,
1537
- getSelectedItemsByDisplayText: a
1538
- } = Xt(e), r = O(() => e.multiSelect), w = O(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1539
- function l() {
1540
- !r.value && n.value && n.value.hidePopup();
1562
+ const n = C(), o = C(e.disabled), c = C(e.enableClear), r = C(e.enableSearch), d = C(e.readonly), {
1563
+ dataSource: y,
1564
+ displayText: w,
1565
+ editable: m,
1566
+ modelValue: g,
1567
+ getSelectedItemsByDisplayText: l
1568
+ } = Xt(e), i = B(() => e.multiSelect), h = B(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1569
+ function a() {
1570
+ !i.value && n.value && n.value.hidePopup();
1541
1571
  }
1542
- function g(C) {
1543
- S.value = C.map((v) => v[e.textField]).join(e.separator), C.length === 1 ? y.value = C[0][e.valueField] : y.value = C.map((v) => v[e.valueField]).join(e.separator), t.emit("update:modelValue", y.value), t.emit("change", C, y.value), l();
1572
+ function f(S) {
1573
+ w.value = S.map((b) => b[e.textField]).join(e.separator), S.length === 1 ? g.value = S[0][e.valueField] : g.value = S.map((b) => b[e.valueField]).join(e.separator), t.emit("update:modelValue", g.value), t.emit("change", S, g.value), a();
1544
1574
  }
1545
- function i() {
1575
+ function s() {
1546
1576
  d.value || n.value.togglePopup();
1547
1577
  }
1548
- function u(C) {
1549
- y.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1578
+ function u(S) {
1579
+ g.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1550
1580
  }
1551
- function F(C) {
1552
- const v = a(C);
1553
- g(v);
1581
+ function F(S) {
1582
+ const b = l(S);
1583
+ f(b);
1554
1584
  }
1555
- function T() {
1556
- return S.value;
1585
+ function k() {
1586
+ return w.value;
1557
1587
  }
1558
- function j(C) {
1559
- t.emit("input", C);
1588
+ function j(S) {
1589
+ t.emit("input", S);
1560
1590
  }
1561
1591
  return t.expose({
1562
- getDisplayText: T
1563
- }), N([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([C, v, D, p, V]) => {
1564
- o.value = C, f.value = v, c.value = D, s.value = p, d.value = V;
1565
- }), () => h(le, {
1592
+ getDisplayText: k
1593
+ }), H([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, b, D, p, V]) => {
1594
+ o.value = S, m.value = b, c.value = D, r.value = p, d.value = V;
1595
+ }), () => v(le, {
1566
1596
  ref: n,
1567
1597
  id: e.id,
1568
1598
  disable: o.value,
1569
1599
  readonly: d.value,
1570
1600
  forcePlaceholder: e.forcePlaceholder,
1571
- editable: f.value,
1601
+ editable: m.value,
1572
1602
  buttonContent: e.dropDownIcon,
1573
1603
  placeholder: e.placeholder,
1574
1604
  enableClear: c.value,
@@ -1577,69 +1607,71 @@ const U = /* @__PURE__ */ H({
1577
1607
  enableTitle: e.enableTitle,
1578
1608
  multiSelect: e.multiSelect,
1579
1609
  inputType: e.multiSelect ? e.viewType : "text",
1580
- modelValue: S.value,
1581
- "onUpdate:modelValue": (C) => S.value = C,
1610
+ modelValue: w.value,
1611
+ "onUpdate:modelValue": (S) => w.value = S,
1582
1612
  focusOnCreated: e.focusOnCreated,
1583
1613
  selectOnCreated: e.selectOnCreated,
1584
1614
  onClear: u,
1585
- onClick: i,
1615
+ onClick: s,
1586
1616
  onChange: F,
1587
1617
  onInput: j,
1588
1618
  beforeOpen: e.beforeOpen
1589
1619
  }, {
1590
- default: () => [h(Qt, {
1620
+ default: () => [v(Qt, {
1591
1621
  idField: e.idField,
1592
1622
  valueField: e.valueField,
1593
1623
  textField: e.textField,
1594
1624
  titleField: e.titleField,
1595
- dataSource: m.value,
1596
- selectedValues: y.value,
1625
+ dataSource: y.value,
1626
+ selectedValues: g.value,
1597
1627
  multiSelect: e.multiSelect,
1598
- enableSearch: s.value,
1628
+ enableSearch: r.value,
1599
1629
  maxHeight: e.maxHeight,
1600
- width: e.fitEditor ? w.value : void 0,
1601
- onSelectionChange: g
1630
+ enableHighlightSearch: e.enableHighlightSearch,
1631
+ width: e.fitEditor ? h.value : void 0,
1632
+ onSelectionChange: f
1602
1633
  }, null)]
1603
1634
  });
1604
1635
  }
1605
1636
  });
1606
1637
  function Yt(e, t) {
1607
1638
  e.schema;
1608
- const n = b(!0), o = b(!0);
1609
- function c(a) {
1639
+ const n = C(!0), o = C(!0);
1640
+ function c(l) {
1610
1641
  return !1;
1611
1642
  }
1612
- function s() {
1643
+ function r() {
1613
1644
  return !1;
1614
1645
  }
1615
1646
  function d() {
1616
1647
  return !1;
1617
1648
  }
1618
- function m() {
1649
+ function y() {
1619
1650
  return !0;
1620
1651
  }
1621
- function S(a) {
1652
+ function w(l) {
1622
1653
  }
1623
- function f() {
1654
+ function m() {
1624
1655
  }
1625
- function y(a) {
1656
+ function g(l) {
1626
1657
  return null;
1627
1658
  }
1628
1659
  return {
1629
1660
  canAccepts: c,
1630
- checkCanDeleteComponent: s,
1661
+ checkCanDeleteComponent: r,
1631
1662
  checkCanMoveComponent: d,
1632
- hideNestedPaddingInDesginerView: m,
1633
- onAcceptMovedChildElement: S,
1634
- resolveComponentContext: f,
1663
+ hideNestedPaddingInDesginerView: y,
1664
+ onAcceptMovedChildElement: w,
1665
+ resolveComponentContext: m,
1635
1666
  triggerBelongedComponentToMoveWhenMoved: n,
1636
1667
  triggerBelongedComponentToDeleteWhenDeleted: o,
1637
- getPropsConfig: y
1668
+ getPropsConfig: g
1638
1669
  };
1639
1670
  }
1640
1671
  class me {
1641
1672
  static getEditorTypesByMDataType(t) {
1642
- return this.fieldControlTypeMapping[t];
1673
+ const n = this.fieldControlTypeMapping[t];
1674
+ return n || [{ key: "", value: "" }];
1643
1675
  }
1644
1676
  }
1645
1677
  /**
@@ -1711,13 +1743,18 @@ class Zt {
1711
1743
  $(this, "designViewModelField");
1712
1744
  $(this, "controlCreatorUtils");
1713
1745
  $(this, "designerHostService");
1746
+ $(this, "schemaService", null);
1714
1747
  $(this, "metadataService", null);
1715
1748
  $(this, "propertyConfig", {
1716
1749
  type: "object",
1717
1750
  categories: {}
1718
1751
  });
1719
1752
  var o;
1720
- this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService;
1753
+ this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
1754
+ }
1755
+ getTableInfo() {
1756
+ var t;
1757
+ return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
1721
1758
  }
1722
1759
  setDesignViewModelField(t) {
1723
1760
  const n = t.binding && t.binding.type === "Form" && t.binding.field;
@@ -1732,6 +1769,7 @@ class Zt {
1732
1769
  changeFieldEditorType(t, n) {
1733
1770
  }
1734
1771
  getBasicPropConfig(t) {
1772
+ var o, c;
1735
1773
  var n = this;
1736
1774
  return this.setDesignViewModelField(t), {
1737
1775
  description: "Basic Information",
@@ -1753,7 +1791,8 @@ class Zt {
1753
1791
  type: "combo-list",
1754
1792
  textField: "value",
1755
1793
  valueField: "key",
1756
- data: me.getEditorTypesByMDataType(n.designViewModelField.type.name)
1794
+ data: me.getEditorTypesByMDataType(((c = (o = n.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : c.name) || ""),
1795
+ editable: !1
1757
1796
  }
1758
1797
  },
1759
1798
  label: {
@@ -1762,11 +1801,11 @@ class Zt {
1762
1801
  $converter: "/converter/form-group-label.converter"
1763
1802
  }
1764
1803
  },
1765
- setPropertyRelates(o, c) {
1766
- if (o)
1767
- switch (o && o.propertyID) {
1804
+ setPropertyRelates(r, d) {
1805
+ if (r)
1806
+ switch (r && r.propertyID) {
1768
1807
  case "type": {
1769
- n.changeControlType(t, o);
1808
+ n.changeControlType(t, r);
1770
1809
  break;
1771
1810
  }
1772
1811
  }
@@ -1779,13 +1818,13 @@ class Zt {
1779
1818
  * @param newControlType 新控件类型
1780
1819
  */
1781
1820
  changeControlType(t, n) {
1782
- var f, y, a, r, w;
1821
+ var m, g, l, i, h;
1783
1822
  const o = n.propertyValue, c = this.formSchemaUtils.getComponentById(this.componentId);
1784
- let s = this.getControlParentContainer(t.id, c);
1785
- if (!s)
1823
+ let r = this.getControlParentContainer(t.id, c);
1824
+ if (!r)
1786
1825
  return;
1787
- const d = s.contents.findIndex((l) => l.id === t.id), m = s.contents[d];
1788
- let S;
1826
+ const d = r.contents.findIndex((a) => a.id === t.id), y = r.contents[d];
1827
+ let w;
1789
1828
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1790
1829
  editor: {
1791
1830
  $type: o
@@ -1793,20 +1832,20 @@ class Zt {
1793
1832
  name: this.designViewModelField.name,
1794
1833
  require: this.designViewModelField.require,
1795
1834
  readonly: this.designViewModelField.readonly
1796
- }, !1), S = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(S, {
1797
- id: m.id,
1798
- appearance: m.appearance,
1799
- size: m.size,
1800
- label: m.label
1801
- }), Object.assign(S.editor, {
1802
- isTextArea: S.isTextArea && m.isTextArea,
1835
+ }, !1), w = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(w, {
1836
+ id: y.id,
1837
+ appearance: y.appearance,
1838
+ size: y.size,
1839
+ label: y.label
1840
+ }), Object.assign(w.editor, {
1841
+ isTextArea: w.isTextArea && y.isTextArea,
1803
1842
  type: o || "",
1804
- placeHolder: (f = m.editor) == null ? void 0 : f.placeHolder,
1805
- holdPlace: (y = m.editor) == null ? void 0 : y.holdPlace,
1806
- readonly: (a = m.editor) == null ? void 0 : a.readonly,
1807
- require: (r = m.editor) == null ? void 0 : r.require,
1808
- visible: (w = m.editor) == null ? void 0 : w.visible
1809
- }), s.contents.splice(d, 1, S);
1843
+ placeHolder: (m = y.editor) == null ? void 0 : m.placeHolder,
1844
+ holdPlace: (g = y.editor) == null ? void 0 : g.holdPlace,
1845
+ readonly: (l = y.editor) == null ? void 0 : l.readonly,
1846
+ require: (i = y.editor) == null ? void 0 : i.require,
1847
+ visible: (h = y.editor) == null ? void 0 : h.visible
1848
+ }), r.contents.splice(d, 1, w);
1810
1849
  }
1811
1850
  getAppearanceConfig(t = null) {
1812
1851
  return {
@@ -1854,27 +1893,6 @@ class Zt {
1854
1893
  return o;
1855
1894
  }
1856
1895
  }
1857
- getBindingFieldEditorOptions(t) {
1858
- const n = this.formSchemaUtils.getFormMetadataBasicInfo();
1859
- return {
1860
- type: "field-selector",
1861
- bindingType: { enable: !1 },
1862
- editorParams: {
1863
- propertyData: t,
1864
- formBasicInfo: n
1865
- },
1866
- columns: [
1867
- { field: "name", title: "字段名称" },
1868
- { field: "bindingField", title: "绑定字段" },
1869
- { field: "fieldType", title: "字段类型" }
1870
- ],
1871
- beforeOpenDialog: (o) => {
1872
- const c = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1873
- o.instance.loadData(c);
1874
- },
1875
- textField: "bindingField"
1876
- };
1877
- }
1878
1896
  }
1879
1897
  class Jt extends Zt {
1880
1898
  constructor(t, n) {
@@ -1911,17 +1929,21 @@ class Jt extends Zt {
1911
1929
  { field: "bindingField", title: "绑定字段" },
1912
1930
  { field: "fieldType", title: "字段类型" }
1913
1931
  ],
1932
+ textField: "bindingField",
1914
1933
  data: o
1915
1934
  }
1916
1935
  };
1917
1936
  }
1937
+ getBindingOtions(t) {
1938
+ return this.getFieldSelectorOptions(t);
1939
+ }
1918
1940
  getComponentConfig(t, n = {}, o = {}) {
1919
1941
  const c = Object.assign({
1920
1942
  description: "组件信息",
1921
1943
  title: "组件信息",
1922
1944
  type: "input-group",
1923
1945
  $converter: "/converter/property-editor.converter"
1924
- }, n), s = Object.assign({
1946
+ }, n), r = Object.assign({
1925
1947
  readonly: {
1926
1948
  description: "",
1927
1949
  title: "只读",
@@ -1943,7 +1965,7 @@ class Jt extends Zt {
1943
1965
  type: "string"
1944
1966
  }
1945
1967
  }, o);
1946
- return { ...c, properties: { ...s } };
1968
+ return { ...c, properties: { ...r } };
1947
1969
  }
1948
1970
  }
1949
1971
  class Kt extends Jt {
@@ -1975,36 +1997,36 @@ function en(e, t) {
1975
1997
  canAccepts: n,
1976
1998
  checkCanDeleteComponent: o,
1977
1999
  checkCanMoveComponent: c,
1978
- hideNestedPaddingInDesginerView: s,
2000
+ hideNestedPaddingInDesginerView: r,
1979
2001
  onAcceptMovedChildElement: d,
1980
- resolveComponentContext: m,
1981
- triggerBelongedComponentToMoveWhenMoved: S,
1982
- triggerBelongedComponentToDeleteWhenDeleted: f
1983
- } = Yt(e), y = e.schema;
1984
- function a(r) {
1985
- return new Kt(r, t).getPropertyConfig(y);
2002
+ resolveComponentContext: y,
2003
+ triggerBelongedComponentToMoveWhenMoved: w,
2004
+ triggerBelongedComponentToDeleteWhenDeleted: m
2005
+ } = Yt(e), g = e.schema;
2006
+ function l(i) {
2007
+ return new Kt(i, t).getPropertyConfig(g);
1986
2008
  }
1987
2009
  return {
1988
2010
  canAccepts: n,
1989
2011
  checkCanDeleteComponent: o,
1990
2012
  checkCanMoveComponent: c,
1991
- hideNestedPaddingInDesginerView: s,
2013
+ hideNestedPaddingInDesginerView: r,
1992
2014
  onAcceptMovedChildElement: d,
1993
- resolveComponentContext: m,
1994
- triggerBelongedComponentToMoveWhenMoved: S,
1995
- triggerBelongedComponentToDeleteWhenDeleted: f,
1996
- getPropsConfig: a
2015
+ resolveComponentContext: y,
2016
+ triggerBelongedComponentToMoveWhenMoved: w,
2017
+ triggerBelongedComponentToDeleteWhenDeleted: m,
2018
+ getPropsConfig: l
1997
2019
  };
1998
2020
  }
1999
- const tn = /* @__PURE__ */ H({
2021
+ const tn = /* @__PURE__ */ N({
2000
2022
  name: "FComboListDesign",
2001
2023
  props: ee,
2002
2024
  emits: ["clear", "update:modelValue", "change"],
2003
2025
  setup(e, t) {
2004
- const n = b(), o = q("designer-host-service"), c = q("design-item-context"), s = en(c, o), d = Re(n, c, s);
2026
+ const n = C(), o = q("designer-host-service"), c = q("design-item-context"), r = en(c, o), d = Re(n, c, r);
2005
2027
  return ie(() => {
2006
2028
  n.value.componentInstance = d;
2007
- }), t.expose(d.value), () => h(le, {
2029
+ }), t.expose(d.value), () => v(le, {
2008
2030
  ref: n,
2009
2031
  id: e.id,
2010
2032
  disable: e.disabled,
@@ -2033,210 +2055,210 @@ U.register = (e, t, n, o) => {
2033
2055
  U.registerDesigner = (e, t, n) => {
2034
2056
  e["combo-list"] = tn, t["combo-list"] = fe;
2035
2057
  };
2036
- const z = nn(U), _ = /* @__PURE__ */ H({
2058
+ const z = nn(U), _ = /* @__PURE__ */ N({
2037
2059
  name: "FOrder",
2038
2060
  props: K,
2039
2061
  emits: ["change"],
2040
2062
  setup(e, t) {
2041
- const n = b(e.items), o = b("排序列"), c = b("排序方式"), s = b("添加排序列"), d = [{
2063
+ const n = C(e.items), o = C("排序列"), c = C("排序方式"), r = C("添加排序列"), d = [{
2042
2064
  id: "asc",
2043
2065
  name: "升序"
2044
2066
  }, {
2045
2067
  id: "desc",
2046
2068
  name: "降序"
2047
- }], m = b(/* @__PURE__ */ new Map());
2048
- function S() {
2049
- const i = n.value.map((u) => [u.id, !0]);
2050
- m.value = new Map(i);
2069
+ }], y = C(/* @__PURE__ */ new Map());
2070
+ function w() {
2071
+ const s = n.value.map((u) => [u.id, !0]);
2072
+ y.value = new Map(s);
2051
2073
  }
2052
- S();
2053
- const f = O(() => e.dataSource.map((i) => (i.disabled = m.value.has(i.id), i))), y = O(() => ({
2074
+ w();
2075
+ const m = B(() => e.dataSource.map((s) => (s.disabled = y.value.has(s.id), s))), g = B(() => ({
2054
2076
  "f-order": !0
2055
2077
  }));
2056
- function a(i) {
2057
- n.value = n.value.filter((u) => u.id !== i.id), S(), t.emit("change", n.value);
2078
+ function l(s) {
2079
+ n.value = n.value.filter((u) => u.id !== s.id), w(), t.emit("change", n.value);
2058
2080
  }
2059
- function r() {
2081
+ function i() {
2060
2082
  n.value = [...n.value, {
2061
2083
  id: Date.now().toString(),
2062
2084
  name: "",
2063
2085
  order: "asc"
2064
- }], S(), t.emit("change", n.value);
2086
+ }], w(), t.emit("change", n.value);
2065
2087
  }
2066
- function w(i) {
2067
- if (i && i.length === 1) {
2068
- const u = i[0], F = n.value.find((T) => T.id === u.id);
2088
+ function h(s) {
2089
+ if (s && s.length === 1) {
2090
+ const u = s[0], F = n.value.find((k) => k.id === u.id);
2069
2091
  F && (F.name = u.name);
2070
2092
  }
2071
- S(), t.emit("change", n.value);
2093
+ w(), t.emit("change", n.value);
2072
2094
  }
2073
- function l(i) {
2074
- if (i && i.length) {
2095
+ function a(s) {
2096
+ if (s && s.length) {
2075
2097
  const u = /* @__PURE__ */ new Map();
2076
- i.reduce((F, T) => (F.set(T.id, T), F), u), n.value = i.map((F) => u.get(F.id)), t.emit("change", n.value);
2098
+ s.reduce((F, k) => (F.set(k.id, k), F), u), n.value = s.map((F) => u.get(F.id)), t.emit("change", n.value);
2077
2099
  }
2078
2100
  }
2079
- function g() {
2080
- return h(de, {
2101
+ function f() {
2102
+ return v(de, {
2081
2103
  style: "flex:1",
2082
2104
  data: n.value,
2083
2105
  draggable: !0,
2084
2106
  view: "DraggableView",
2085
2107
  "keep-order": !0,
2086
2108
  itemClass: "f-order-item",
2087
- onRemoveItem: a,
2088
- onChange: l
2109
+ onRemoveItem: l,
2110
+ onChange: a
2089
2111
  }, {
2090
- header: () => h("div", {
2112
+ header: () => v("div", {
2091
2113
  class: "f-order-header"
2092
- }, [h("span", {
2114
+ }, [v("span", {
2093
2115
  class: "f-order-header-order-field"
2094
- }, [o.value]), h("span", {
2116
+ }, [o.value]), v("span", {
2095
2117
  class: "f-order-header-order-type"
2096
2118
  }, [c.value])]),
2097
- itemContent: (i) => h("div", {
2119
+ itemContent: (s) => v("div", {
2098
2120
  class: "f-order-item-content"
2099
- }, [h(z, {
2121
+ }, [v(z, {
2100
2122
  class: "f-order-item-content-order-field",
2101
- data: f.value,
2123
+ data: m.value,
2102
2124
  valueField: "id",
2103
2125
  textField: "name",
2104
2126
  idField: "id",
2105
- modelValue: i.id,
2106
- "onUpdate:modelValue": (u) => i.id = u,
2107
- onChange: w,
2108
- onClear: w
2109
- }, null), h(z, {
2127
+ modelValue: s.id,
2128
+ "onUpdate:modelValue": (u) => s.id = u,
2129
+ onChange: h,
2130
+ onClear: h
2131
+ }, null), v(z, {
2110
2132
  class: "f-order-item-content-order-type",
2111
2133
  data: d,
2112
2134
  valueField: "id",
2113
2135
  textField: "name",
2114
2136
  idField: "id",
2115
- modelValue: i.order,
2116
- "onUpdate:modelValue": (u) => i.order = u,
2117
- onChange: w
2137
+ modelValue: s.order,
2138
+ "onUpdate:modelValue": (u) => s.order = u,
2139
+ onChange: h
2118
2140
  }, null)]),
2119
- footer: () => h("div", {
2141
+ footer: () => v("div", {
2120
2142
  class: "f-order-footer"
2121
- }, [h(pe, {
2143
+ }, [v(pe, {
2122
2144
  type: "link",
2123
2145
  class: "f-order-add-button",
2124
- onClick: r
2146
+ onClick: i
2125
2147
  }, {
2126
- default: () => h(Q, null, [h("span", {
2148
+ default: () => v(Q, null, [v("span", {
2127
2149
  class: "f-order-add-icon"
2128
- }, [h("i", {
2150
+ }, [v("i", {
2129
2151
  class: "f-icon f-icon-add"
2130
- }, null)]), s.value])
2152
+ }, null)]), r.value])
2131
2153
  })])
2132
2154
  });
2133
2155
  }
2134
- return () => h("div", {
2135
- class: y.value
2136
- }, [g()]);
2156
+ return () => v("div", {
2157
+ class: g.value
2158
+ }, [f()]);
2137
2159
  }
2138
2160
  });
2139
2161
  function on(e, t, n) {
2140
- var C;
2162
+ var S;
2141
2163
  function o() {
2142
2164
  n != null && n.resolveComponentContext && n.resolveComponentContext();
2143
2165
  }
2144
2166
  o();
2145
- const c = n && n.getStyles && n.getStyles() || "", s = n && n.getDesignerClass && n.getDesignerClass() || "", d = b();
2146
- function m() {
2167
+ const c = n && n.getStyles && n.getStyles() || "", r = n && n.getDesignerClass && n.getDesignerClass() || "", d = C();
2168
+ function y() {
2147
2169
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
2148
2170
  }
2149
- function S() {
2171
+ function w() {
2150
2172
  return !1;
2151
2173
  }
2152
- function f() {
2174
+ function m() {
2153
2175
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
2154
2176
  }
2155
- function y() {
2177
+ function g() {
2156
2178
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
2157
2179
  }
2158
- function a(v) {
2159
- if (!v || !v.value)
2180
+ function l(b) {
2181
+ if (!b || !b.value)
2160
2182
  return null;
2161
- if (v.value.schema && v.value.schema.type === "component")
2162
- return v.value;
2163
- const D = b(v == null ? void 0 : v.value.parent), p = a(D);
2183
+ if (b.value.schema && b.value.schema.type === "component")
2184
+ return b.value;
2185
+ const D = C(b == null ? void 0 : b.value.parent), p = l(D);
2164
2186
  return p || null;
2165
2187
  }
2166
- function r(v = t) {
2167
- const { componentInstance: D, designerItemElementRef: p } = v;
2168
- return !D || !D.value ? null : D.value.canMove ? p : r(v.parent);
2188
+ function i(b = t) {
2189
+ const { componentInstance: D, designerItemElementRef: p } = b;
2190
+ return !D || !D.value ? null : D.value.canMove ? p : i(b.parent);
2169
2191
  }
2170
- function w(v) {
2171
- return !!n && n.canAccepts(v);
2192
+ function h(b) {
2193
+ return !!n && n.canAccepts(b);
2172
2194
  }
2173
- function l() {
2195
+ function a() {
2174
2196
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
2175
2197
  }
2176
- function g() {
2198
+ function f() {
2177
2199
  }
2178
- function i(v, D) {
2200
+ function s(b, D) {
2179
2201
  D && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(D);
2180
2202
  }
2181
- function u(v) {
2182
- const { componentType: D } = v;
2183
- let p = R(D, v);
2184
- n && n.onResolveNewComponentSchema && (p = n.onResolveNewComponentSchema(v, p));
2203
+ function u(b) {
2204
+ const { componentType: D } = b;
2205
+ let p = R(D, b);
2206
+ n && n.onResolveNewComponentSchema && (p = n.onResolveNewComponentSchema(b, p));
2185
2207
  const V = D.toLowerCase().replace("-", "_");
2186
2208
  return p && !p.id && p.type === D && (p.id = `${V}_${Math.random().toString().slice(2, 6)}`), p;
2187
2209
  }
2188
- function F(v, D) {
2189
- const p = String(v.getAttribute("data-controltype")), V = v.getAttribute("data-feature"), A = V ? JSON.parse(V) : {};
2210
+ function F(b, D) {
2211
+ const p = String(b.getAttribute("data-controltype")), V = b.getAttribute("data-feature"), A = V ? JSON.parse(V) : {};
2190
2212
  A.parentComponentInstance = d.value;
2191
- let k = R(p, A);
2192
- n && n.onAcceptNewChildElement && (k = n.onAcceptNewChildElement(v, D, k));
2213
+ let T = R(p, A);
2214
+ n && n.onAcceptNewChildElement && (T = n.onAcceptNewChildElement(b, D, T));
2193
2215
  const x = p.toLowerCase().replace("-", "_");
2194
- return k && !k.id && k.type === p && (k.id = `${x}_${Math.random().toString().slice(2, 6)}`), k;
2216
+ return T && !T.id && T.type === p && (T.id = `${x}_${Math.random().toString().slice(2, 6)}`), T;
2195
2217
  }
2196
- function T(v) {
2218
+ function k(b) {
2197
2219
  }
2198
- function j(...v) {
2220
+ function j(...b) {
2199
2221
  if (n && n.getPropsConfig)
2200
- return n.getPropsConfig(...v);
2222
+ return n.getPropsConfig(...b);
2201
2223
  }
2202
2224
  return d.value = {
2203
- canMove: m(),
2204
- canSelectParent: S(),
2205
- canDelete: f(),
2206
- canNested: !y(),
2225
+ canMove: y(),
2226
+ canSelectParent: w(),
2227
+ canDelete: m(),
2228
+ canNested: !g(),
2207
2229
  contents: t == null ? void 0 : t.schema.contents,
2208
2230
  elementRef: e,
2209
- parent: (C = t == null ? void 0 : t.parent) == null ? void 0 : C.componentInstance,
2231
+ parent: (S = t == null ? void 0 : t.parent) == null ? void 0 : S.componentInstance,
2210
2232
  schema: t == null ? void 0 : t.schema,
2211
2233
  styles: c,
2212
- designerClass: s,
2213
- canAccepts: w,
2214
- getBelongedComponentInstance: a,
2215
- getDraggableDesignItemElement: r,
2216
- getDraggingDisplayText: l,
2234
+ designerClass: r,
2235
+ canAccepts: h,
2236
+ getBelongedComponentInstance: l,
2237
+ getDraggableDesignItemElement: i,
2238
+ getDraggingDisplayText: a,
2217
2239
  getPropConfig: j,
2218
- getDragScopeElement: g,
2219
- onAcceptMovedChildElement: i,
2240
+ getDragScopeElement: f,
2241
+ onAcceptMovedChildElement: s,
2220
2242
  onAcceptNewChildElement: F,
2221
- onChildElementMovedOut: T,
2243
+ onChildElementMovedOut: k,
2222
2244
  addNewChildComponentSchema: u,
2223
2245
  updateDragAndDropRules: o,
2224
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
2225
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
2246
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
2247
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1)
2226
2248
  }, d;
2227
2249
  }
2228
2250
  function an() {
2229
2251
  function e(t) {
2230
- var c, s;
2252
+ var c, r;
2231
2253
  if (!t)
2232
2254
  return !1;
2233
2255
  const n = ((c = t.targetContainer) == null ? void 0 : c.componentInstance) && t.targetContainer.componentInstance.value;
2234
2256
  if (!n)
2235
2257
  return !1;
2236
- const o = (s = n.schema.appearance) == null ? void 0 : s.class;
2258
+ const o = (r = n.schema.appearance) == null ? void 0 : r.class;
2237
2259
  if (t.controlCategory === "input" || t.controlType === "form-group") {
2238
- const d = n.schema.type, m = (d === "response-form" || d === "content-container") && o && o.includes("farris-form");
2239
- if (n.schema.type !== "response-layout-item" && !m)
2260
+ const d = n.schema.type, y = (d === "response-form" || d === "content-container") && o && o.includes("farris-form");
2261
+ if (n.schema.type !== "response-layout-item" && !y)
2240
2262
  return !1;
2241
2263
  }
2242
2264
  return t.controlType !== "field-set";
@@ -2819,29 +2841,29 @@ const rn = "https://json-schema.org/draft/2020-12/schema", ln = "https://farris-
2819
2841
  required: pn
2820
2842
  }, W = /* @__PURE__ */ new Map();
2821
2843
  function mn() {
2822
- function e(l, g, i, u) {
2844
+ function e(a, f, s, u) {
2823
2845
  var F;
2824
- if (typeof i == "number")
2825
- return ((F = u[l]) == null ? void 0 : F.length) === i;
2826
- if (typeof i == "object") {
2827
- const T = Object.keys(i)[0], j = i[T];
2828
- if (T === "not")
2829
- return Number(u[l].length) !== Number(j);
2830
- if (T === "moreThan")
2831
- return Number(u[l].length) >= Number(j);
2832
- if (T === "lessThan")
2833
- return Number(u[l].length) <= Number(j);
2846
+ if (typeof s == "number")
2847
+ return ((F = u[a]) == null ? void 0 : F.length) === s;
2848
+ if (typeof s == "object") {
2849
+ const k = Object.keys(s)[0], j = s[k];
2850
+ if (k === "not")
2851
+ return Number(u[a].length) !== Number(j);
2852
+ if (k === "moreThan")
2853
+ return Number(u[a].length) >= Number(j);
2854
+ if (k === "lessThan")
2855
+ return Number(u[a].length) <= Number(j);
2834
2856
  }
2835
2857
  return !1;
2836
2858
  }
2837
- function t(l, g, i, u) {
2838
- return typeof i == "boolean" ? u.childrenClassList.includes(g) === !!i : !1;
2859
+ function t(a, f, s, u) {
2860
+ return typeof s == "boolean" ? u.childrenClassList.includes(f) === !!s : !1;
2839
2861
  }
2840
- function n(l, g, i, u) {
2841
- return typeof i == "boolean" ? u.parentClassList.includes(g) === !!i : !1;
2862
+ function n(a, f, s, u) {
2863
+ return typeof s == "boolean" ? u.parentClassList.includes(f) === !!s : !1;
2842
2864
  }
2843
- function o(l, g, i, u) {
2844
- return typeof i == "boolean" ? u.parentClassList.includes(g) === !!i : !1;
2865
+ function o(a, f, s, u) {
2866
+ return typeof s == "boolean" ? u.parentClassList.includes(f) === !!s : !1;
2845
2867
  }
2846
2868
  const c = /* @__PURE__ */ new Map([
2847
2869
  ["length", e],
@@ -2849,116 +2871,116 @@ function mn() {
2849
2871
  ["hasSibling", o],
2850
2872
  ["hasParent", n]
2851
2873
  ]);
2852
- function s(l, g) {
2853
- const i = l;
2854
- return typeof g == "number" ? [{ target: i, operator: "length", param: null, value: Number(g) }] : typeof g == "object" ? Object.keys(g).map((u) => {
2874
+ function r(a, f) {
2875
+ const s = a;
2876
+ return typeof f == "number" ? [{ target: s, operator: "length", param: null, value: Number(f) }] : typeof f == "object" ? Object.keys(f).map((u) => {
2855
2877
  if (u === "length")
2856
- return { target: i, operator: "length", param: null, value: g[u] };
2857
- const F = u, T = g[u];
2858
- return { target: i, operator: l === "children" ? "hasChildren" : l === "parent" ? "hasParent" : "hasSibling", param: F, value: T };
2878
+ return { target: s, operator: "length", param: null, value: f[u] };
2879
+ const F = u, k = f[u];
2880
+ return { target: s, operator: a === "children" ? "hasChildren" : a === "parent" ? "hasParent" : "hasSibling", param: F, value: k };
2859
2881
  }) : [];
2860
2882
  }
2861
- function d(l, g) {
2862
- if (c.has(l.operator)) {
2863
- const i = c.get(l.operator);
2864
- return i && i(l.target, l.param, l.value, g) || !1;
2883
+ function d(a, f) {
2884
+ if (c.has(a.operator)) {
2885
+ const s = c.get(a.operator);
2886
+ return s && s(a.target, a.param, a.value, f) || !1;
2865
2887
  }
2866
2888
  return !1;
2867
2889
  }
2868
- function m(l, g) {
2869
- return Object.keys(l).reduce((T, j) => {
2870
- const C = s(j, l[j]);
2871
- return T.push(...C), T;
2872
- }, []).reduce((T, j) => T && d(j, g), !0);
2873
- }
2874
- function S(l, g) {
2875
- const i = Object.keys(l), u = i.includes("allOf"), F = i.includes("anyOf"), T = u || F, v = (T ? l[T ? u ? "allOf" : "anyOf" : "allOf"] : [l]).map((p) => m(p, g));
2876
- return u ? !v.includes(!1) : v.includes(!0);
2877
- }
2878
- function f(l, g) {
2879
- const i = l.const;
2880
- return i ? typeof i == "boolean" ? i : typeof i == "object" ? S(i, g) : !1 : !1;
2881
- }
2882
- function y(l) {
2883
- return (g) => {
2884
- const i = { canAccept: !0, fixed: !1, hidePadding: !1 };
2885
- return l && l.properties && Object.keys(l.properties).reduce((u, F) => {
2886
- const T = l.properties[F];
2887
- return u[F] = f(T, g), u;
2888
- }, i), i;
2890
+ function y(a, f) {
2891
+ return Object.keys(a).reduce((k, j) => {
2892
+ const S = r(j, a[j]);
2893
+ return k.push(...S), k;
2894
+ }, []).reduce((k, j) => k && d(j, f), !0);
2895
+ }
2896
+ function w(a, f) {
2897
+ const s = Object.keys(a), u = s.includes("allOf"), F = s.includes("anyOf"), k = u || F, b = (k ? a[k ? u ? "allOf" : "anyOf" : "allOf"] : [a]).map((p) => y(p, f));
2898
+ return u ? !b.includes(!1) : b.includes(!0);
2899
+ }
2900
+ function m(a, f) {
2901
+ const s = a.const;
2902
+ return s ? typeof s == "boolean" ? s : typeof s == "object" ? w(s, f) : !1 : !1;
2903
+ }
2904
+ function g(a) {
2905
+ return (f) => {
2906
+ const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
2907
+ return a && a.properties && Object.keys(a.properties).reduce((u, F) => {
2908
+ const k = a.properties[F];
2909
+ return u[F] = m(k, f), u;
2910
+ }, s), s;
2889
2911
  };
2890
2912
  }
2891
- function a(l, g, i) {
2892
- if (g.type === "object" && g.properties) {
2893
- const { rules: u, contents: F } = g.properties;
2894
- i.set(l, y(u)), F && Object.keys(F.properties).forEach(
2895
- (T) => a(T, F.properties[T], i)
2913
+ function l(a, f, s) {
2914
+ if (f.type === "object" && f.properties) {
2915
+ const { rules: u, contents: F } = f.properties;
2916
+ s.set(a, g(u)), F && Object.keys(F.properties).forEach(
2917
+ (k) => l(k, F.properties[k], s)
2896
2918
  );
2897
2919
  }
2898
2920
  }
2899
- function r() {
2900
- const { properties: l } = fn;
2901
- Object.keys(l).forEach((g) => {
2902
- a(g, l[g], W);
2921
+ function i() {
2922
+ const { properties: a } = fn;
2923
+ Object.keys(a).forEach((f) => {
2924
+ l(f, a[f], W);
2903
2925
  });
2904
2926
  }
2905
- function w(l, g) {
2906
- const i = { canAccept: !0, fixed: !1, hidePadding: !0 };
2907
- return W.has(l) ? W.get(l)(g) : i;
2927
+ function h(a, f) {
2928
+ const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
2929
+ return W.has(a) ? W.get(a)(f) : s;
2908
2930
  }
2909
- return r(), { getRuleValue: w };
2931
+ return i(), { getRuleValue: h };
2910
2932
  }
2911
2933
  function yn(e, t) {
2912
2934
  var D;
2913
- const n = e.schema, o = (D = e.parent) == null ? void 0 : D.schema, c = mn(), s = b(!1), d = b(!1);
2914
- let m = !0, S = !1, f, y = !1;
2915
- function a(p) {
2916
- return f && f.componentClassList && f.componentClassList.includes("f-form-layout") && f.componentClassList.includes("farris-form") ? p.sourceType === "control" && p.controlCategory === "input" || p.sourceType === "move" && p.controlType === "form-group" : !0;
2935
+ const n = e.schema, o = (D = e.parent) == null ? void 0 : D.schema, c = mn(), r = C(!1), d = C(!1);
2936
+ let y = !0, w = !1, m, g = !1;
2937
+ function l(p) {
2938
+ return m && m.componentClassList && m.componentClassList.includes("f-form-layout") && m.componentClassList.includes("farris-form") ? p.sourceType === "control" && p.controlCategory === "input" || p.sourceType === "move" && p.controlType === "form-group" : !0;
2917
2939
  }
2918
- function r(p) {
2919
- return !(!an().basalDragulaRuleForContainer(p) || !m || !a(p));
2940
+ function i(p) {
2941
+ return !(!an().basalDragulaRuleForContainer(p) || !y || !l(p));
2920
2942
  }
2921
- function w() {
2922
- s.value = !1, d.value = !1;
2923
- const p = n, V = p.appearance && p.appearance.class || "", A = V.split(" "), k = p.contents || [], x = k.length ? k[0] : null, I = x && x.appearance ? x.appearance.class : "", B = I ? I.split(" ") : [], E = k.length ? k.reduce((te, G) => {
2943
+ function h() {
2944
+ r.value = !1, d.value = !1;
2945
+ const p = n, V = p.appearance && p.appearance.class || "", A = V.split(" "), T = p.contents || [], x = T.length ? T[0] : null, I = x && x.appearance ? x.appearance.class : "", P = I ? I.split(" ") : [], E = T.length ? T.reduce((te, G) => {
2924
2946
  const ne = G && G.appearance ? G.appearance.class : "", be = ne ? ne.split(" ") : [];
2925
2947
  return te.push(...be), te;
2926
- }, []) : [], P = o, L = P && P.appearance && P.appearance.class || "", ye = L ? L.split(" ") : [];
2927
- f = {
2948
+ }, []) : [], O = o, L = O && O.appearance && O.appearance.class || "", ye = L ? L.split(" ") : [];
2949
+ m = {
2928
2950
  componentClass: V,
2929
2951
  componentClassList: A,
2930
- childContents: k,
2952
+ childContents: T,
2931
2953
  firstChildContent: x,
2932
2954
  firstChildClass: I,
2933
- firstChildClassList: B,
2934
- parent: P,
2955
+ firstChildClassList: P,
2956
+ parent: O,
2935
2957
  parentClass: L,
2936
2958
  parentClassList: ye,
2937
- children: k,
2959
+ children: T,
2938
2960
  childrenClassList: E
2939
2961
  };
2940
- const { canAccept: ge, fixed: he, hidePadding: ve } = c.getRuleValue(A[0], f);
2941
- return m = ge, S = ve, y = he, !0;
2962
+ const { canAccept: ge, fixed: he, hidePadding: ve } = c.getRuleValue(A[0], m);
2963
+ return y = ge, w = ve, g = he, !0;
2942
2964
  }
2943
- function l(p) {
2944
- ke();
2965
+ function a(p) {
2966
+ Te();
2945
2967
  }
2946
- function g() {
2968
+ function f() {
2947
2969
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
2948
2970
  }
2949
- function i(p, V) {
2971
+ function s(p, V) {
2950
2972
  const A = n;
2951
2973
  if ((A.appearance && A.appearance.class || "").split(" ").includes("f-form-layout")) {
2952
- const { label: I } = p, B = R("form-group");
2953
- return B.editor = V, B.label = I, u(B), delete B.editor.id, delete B.editor.binding, delete B.editor.appearance, delete B.editor.visible, B;
2974
+ const { label: I } = p, P = R("form-group");
2975
+ return P.editor = V, P.label = I, u(P), delete P.editor.id, delete P.editor.binding, delete P.editor.appearance, delete P.editor.visible, P;
2954
2976
  }
2955
2977
  return V;
2956
2978
  }
2957
2979
  function u(p) {
2958
2980
  const V = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
2959
2981
  if (V && V.schema && V.schema.componentType) {
2960
- const A = V.schema.componentType, k = F(A);
2961
- p.appearance || (p.appearance = {}), p.appearance.class = k;
2982
+ const A = V.schema.componentType, T = F(A);
2983
+ p.appearance || (p.appearance = {}), p.appearance.class = T;
2962
2984
  }
2963
2985
  }
2964
2986
  function F(p) {
@@ -2995,141 +3017,141 @@ function yn(e, t) {
2995
3017
  }
2996
3018
  return V;
2997
3019
  }
2998
- function T(p, V, A) {
2999
- const k = n;
3000
- if ((k.appearance && k.appearance.class || "").split(" ").includes("f-form-layout")) {
3001
- const B = String(p.innerText), E = R("form-group");
3002
- return E.editor = A, E.label = B, E;
3020
+ function k(p, V, A) {
3021
+ const T = n;
3022
+ if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
3023
+ const P = String(p.innerText), E = R("form-group");
3024
+ return E.editor = A, E.label = P, E;
3003
3025
  }
3004
3026
  return A;
3005
3027
  }
3006
3028
  function j() {
3007
- return !y;
3029
+ return !g;
3008
3030
  }
3009
- function C() {
3010
- return !y;
3031
+ function S() {
3032
+ return !g;
3011
3033
  }
3012
- function v() {
3013
- return S;
3034
+ function b() {
3035
+ return w;
3014
3036
  }
3015
3037
  return {
3016
- canAccepts: r,
3017
- checkCanDeleteComponent: C,
3038
+ canAccepts: i,
3039
+ checkCanDeleteComponent: S,
3018
3040
  checkCanMoveComponent: j,
3019
- getStyles: g,
3020
- hideNestedPaddingInDesginerView: v,
3021
- onAcceptNewChildElement: T,
3022
- onAcceptMovedChildElement: l,
3023
- resolveComponentContext: w,
3024
- onResolveNewComponentSchema: i,
3025
- triggerBelongedComponentToMoveWhenMoved: s,
3041
+ getStyles: f,
3042
+ hideNestedPaddingInDesginerView: b,
3043
+ onAcceptNewChildElement: k,
3044
+ onAcceptMovedChildElement: a,
3045
+ resolveComponentContext: h,
3046
+ onResolveNewComponentSchema: s,
3047
+ triggerBelongedComponentToMoveWhenMoved: r,
3026
3048
  triggerBelongedComponentToDeleteWhenDeleted: d
3027
3049
  };
3028
3050
  }
3029
- const gn = /* @__PURE__ */ H({
3051
+ const gn = /* @__PURE__ */ N({
3030
3052
  name: "FOrderDesign",
3031
3053
  props: K,
3032
3054
  emits: ["change"],
3033
3055
  setup(e, t) {
3034
3056
  var j;
3035
- const n = b(e.items), o = b("排序列"), c = b("排序方式"), s = b("添加排序列"), d = [{
3057
+ const n = C(e.items), o = C("排序列"), c = C("排序方式"), r = C("添加排序列"), d = [{
3036
3058
  id: "asc",
3037
3059
  name: "升序"
3038
3060
  }, {
3039
3061
  id: "desc",
3040
3062
  name: "降序"
3041
- }], m = b(/* @__PURE__ */ new Map()), S = b(), f = q("design-item-context"), y = yn(f.schema, (j = f.parent) == null ? void 0 : j.schema), a = on(S, f, y);
3063
+ }], y = C(/* @__PURE__ */ new Map()), w = C(), m = q("design-item-context"), g = yn(m.schema, (j = m.parent) == null ? void 0 : j.schema), l = on(w, m, g);
3042
3064
  ie(() => {
3043
- S.value.componentInstance = a;
3044
- }), t.expose(a.value);
3045
- function r() {
3046
- const C = n.value.map((v) => [v.id, !0]);
3047
- m.value = new Map(C);
3065
+ w.value.componentInstance = l;
3066
+ }), t.expose(l.value);
3067
+ function i() {
3068
+ const S = n.value.map((b) => [b.id, !0]);
3069
+ y.value = new Map(S);
3048
3070
  }
3049
- r();
3050
- const w = O(() => e.dataSource.map((C) => (C.disabled = m.value.has(C.id), C))), l = O(() => ({
3071
+ i();
3072
+ const h = B(() => e.dataSource.map((S) => (S.disabled = y.value.has(S.id), S))), a = B(() => ({
3051
3073
  "f-order": !0
3052
3074
  }));
3053
- function g(C) {
3054
- n.value = n.value.filter((v) => v.id !== C.id), r(), t.emit("change", n.value);
3075
+ function f(S) {
3076
+ n.value = n.value.filter((b) => b.id !== S.id), i(), t.emit("change", n.value);
3055
3077
  }
3056
- function i() {
3078
+ function s() {
3057
3079
  n.value = [...n.value, {
3058
3080
  id: Date.now().toString(),
3059
3081
  name: "",
3060
3082
  order: "asc"
3061
- }], r(), t.emit("change", n.value);
3083
+ }], i(), t.emit("change", n.value);
3062
3084
  }
3063
- function u(C) {
3064
- r(), t.emit("change", n.value);
3085
+ function u(S) {
3086
+ i(), t.emit("change", n.value);
3065
3087
  }
3066
- function F(C) {
3067
- if (C && C.length) {
3068
- const v = /* @__PURE__ */ new Map();
3069
- C.reduce((D, p) => (D.set(p.id, p), D), v), n.value = C.map((D) => v.get(D.id)), t.emit("change", n.value);
3088
+ function F(S) {
3089
+ if (S && S.length) {
3090
+ const b = /* @__PURE__ */ new Map();
3091
+ S.reduce((D, p) => (D.set(p.id, p), D), b), n.value = S.map((D) => b.get(D.id)), t.emit("change", n.value);
3070
3092
  }
3071
3093
  }
3072
- function T() {
3073
- return h(de, {
3094
+ function k() {
3095
+ return v(de, {
3074
3096
  style: "flex:1",
3075
3097
  data: n.value,
3076
3098
  draggable: !0,
3077
3099
  view: "DraggableView",
3078
3100
  "keep-order": !0,
3079
3101
  itemClass: "f-order-item",
3080
- onRemoveItem: g,
3102
+ onRemoveItem: f,
3081
3103
  onChange: F
3082
3104
  }, {
3083
- header: () => h("div", {
3105
+ header: () => v("div", {
3084
3106
  class: "f-order-header"
3085
- }, [h("span", {
3107
+ }, [v("span", {
3086
3108
  class: "f-order-header-order-field"
3087
- }, [o.value]), h("span", {
3109
+ }, [o.value]), v("span", {
3088
3110
  class: "f-order-header-order-type"
3089
3111
  }, [c.value])]),
3090
- itemContent: (C) => h("div", {
3112
+ itemContent: (S) => v("div", {
3091
3113
  class: "f-order-item-content"
3092
- }, [h(z, {
3114
+ }, [v(z, {
3093
3115
  class: "f-order-item-content-order-field",
3094
- data: w.value,
3116
+ data: h.value,
3095
3117
  valueField: "id",
3096
3118
  textField: "name",
3097
3119
  idField: "id",
3098
- modelValue: C.id,
3099
- "onUpdate:modelValue": (v) => C.id = v,
3120
+ modelValue: S.id,
3121
+ "onUpdate:modelValue": (b) => S.id = b,
3100
3122
  onChange: u,
3101
3123
  onClear: u
3102
- }, null), h(z, {
3124
+ }, null), v(z, {
3103
3125
  class: "f-order-item-content-order-type",
3104
3126
  data: d,
3105
3127
  valueField: "id",
3106
3128
  textField: "name",
3107
3129
  idField: "id",
3108
- modelValue: C.order,
3109
- "onUpdate:modelValue": (v) => C.order = v,
3130
+ modelValue: S.order,
3131
+ "onUpdate:modelValue": (b) => S.order = b,
3110
3132
  onChange: u
3111
3133
  }, null)]),
3112
- footer: () => h("div", {
3134
+ footer: () => v("div", {
3113
3135
  class: "f-order-footer"
3114
- }, [h(pe, {
3136
+ }, [v(pe, {
3115
3137
  type: "link",
3116
3138
  class: "f-order-add-button",
3117
- onClick: i
3139
+ onClick: s
3118
3140
  }, {
3119
- default: () => h(Q, null, [h("span", {
3141
+ default: () => v(Q, null, [v("span", {
3120
3142
  class: "f-order-add-icon"
3121
- }, [h("i", {
3143
+ }, [v("i", {
3122
3144
  class: "f-icon f-icon-add"
3123
- }, null)]), s.value])
3145
+ }, null)]), r.value])
3124
3146
  })])
3125
3147
  });
3126
3148
  }
3127
- return () => h("div", {
3128
- ref: S,
3129
- class: l.value
3130
- }, [T()]);
3149
+ return () => v("div", {
3150
+ ref: w,
3151
+ class: a.value
3152
+ }, [k()]);
3131
3153
  }
3132
- }), kn = {
3154
+ }), Tn = {
3133
3155
  install(e) {
3134
3156
  e.component(_.name, _);
3135
3157
  },
@@ -3142,7 +3164,7 @@ const gn = /* @__PURE__ */ H({
3142
3164
  };
3143
3165
  export {
3144
3166
  _ as FOrder,
3145
- kn as default,
3167
+ Tn as default,
3146
3168
  K as orderProps,
3147
3169
  oe as propsResolver
3148
3170
  };