@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,9 +1,9 @@
1
1
  var oe = Object.defineProperty;
2
2
  var ae = (n, e, t) => e in n ? oe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var F = (n, e, t) => ae(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as O, inject as x, ref as h, computed as N, watch as E, onMounted as U, createVNode as v, Fragment as ie, provide as re } from "vue";
4
+ import { defineComponent as O, inject as x, ref as g, computed as N, watch as E, onMounted as z, createVNode as v, Fragment as re, provide as ie } from "vue";
5
5
  import { cloneDeep as le } from "lodash-es";
6
- import { CHECKBOX_CONTEXT as H, useCheck as ce } from "@farris/ui-vue/components/common";
6
+ import { CHECKBOX_CONTEXT as W, useCheck as ce } from "@farris/ui-vue/components/common";
7
7
  const se = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/check-box.schema.json", ue = "check-box", de = "A Farris Input Component", me = "object", ye = {
8
8
  id: {
9
9
  description: "The unique identifier for a check box",
@@ -79,7 +79,7 @@ const se = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-
79
79
  }, fe = [
80
80
  "id",
81
81
  "type"
82
- ], ge = {
82
+ ], he = {
83
83
  $schema: se,
84
84
  $id: pe,
85
85
  title: ue,
@@ -87,103 +87,103 @@ const se = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-
87
87
  type: me,
88
88
  properties: ye,
89
89
  required: fe
90
- }, W = {}, q = {};
91
- function z(n) {
92
- const { properties: e, title: t } = n, o = Object.keys(e).reduce((r, p) => (r[p] = e[p].type === "object" && e[p].properties ? z(e[p]) : le(e[p].default), r), {});
90
+ }, H = {}, q = {};
91
+ function U(n) {
92
+ const { properties: e, title: t } = n, o = Object.keys(e).reduce((i, c) => (i[c] = e[c].type === "object" && e[c].properties ? U(e[c]) : le(e[c].default), i), {});
93
93
  return o.id = `${t}-${Date.now()}`, o;
94
94
  }
95
95
  function L(n, e = {}) {
96
- const t = W[n];
96
+ const t = H[n];
97
97
  if (t) {
98
- let o = z(t);
99
- const r = q[n];
100
- return o = r ? r({ getSchemaByType: L }, o, e) : o, o;
98
+ let o = U(t);
99
+ const i = q[n];
100
+ return o = i ? i({ getSchemaByType: L }, o, e) : o, o;
101
101
  }
102
102
  return null;
103
103
  }
104
- function he(n, e) {
105
- const t = z(e);
106
- return Object.keys(n).reduce((o, r) => (o[r] = n[r], o), t), t;
104
+ function ge(n, e) {
105
+ const t = U(e);
106
+ return Object.keys(n).reduce((o, i) => (o[i] = n[i], o), t), t;
107
107
  }
108
108
  function ve(n, e) {
109
- return Object.keys(n).filter((o) => n[o] != null).reduce((o, r) => {
110
- if (e.has(r)) {
111
- const p = e.get(r);
112
- if (typeof p == "string")
113
- o[p] = n[r];
109
+ return Object.keys(n).filter((o) => n[o] != null).reduce((o, i) => {
110
+ if (e.has(i)) {
111
+ const c = e.get(i);
112
+ if (typeof c == "string")
113
+ o[c] = n[i];
114
114
  else {
115
- const m = p(r, n[r], n);
115
+ const m = c(i, n[i], n);
116
116
  Object.assign(o, m);
117
117
  }
118
118
  } else
119
- o[r] = n[r];
119
+ o[i] = n[i];
120
120
  return o;
121
121
  }, {});
122
122
  }
123
123
  function be(n, e, t = /* @__PURE__ */ new Map()) {
124
- const o = he(n, e);
124
+ const o = ge(n, e);
125
125
  return ve(o, t);
126
126
  }
127
127
  function Ce(n = {}) {
128
- function e(i, u, a, s) {
128
+ function e(r, u, a, p) {
129
129
  if (typeof a == "number")
130
- return s[i].length === a;
130
+ return p[r].length === a;
131
131
  if (typeof a == "object") {
132
- const c = Object.keys(a)[0], y = a[c];
133
- if (c === "not")
134
- return Number(s[i].length) !== Number(y);
135
- if (c === "moreThan")
136
- return Number(s[i].length) >= Number(y);
137
- if (c === "lessThan")
138
- return Number(s[i].length) <= Number(y);
132
+ const s = Object.keys(a)[0], y = a[s];
133
+ if (s === "not")
134
+ return Number(p[r].length) !== Number(y);
135
+ if (s === "moreThan")
136
+ return Number(p[r].length) >= Number(y);
137
+ if (s === "lessThan")
138
+ return Number(p[r].length) <= Number(y);
139
139
  }
140
140
  return !1;
141
141
  }
142
- function t(i, u, a, s) {
143
- return s[i] && s[i].propertyValue && String(s[i].propertyValue.value) === String(a);
142
+ function t(r, u, a, p) {
143
+ return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(a);
144
144
  }
145
145
  const o = /* @__PURE__ */ new Map([
146
146
  ["length", e],
147
147
  ["getProperty", t]
148
148
  ]);
149
- Object.keys(n).reduce((i, u) => (i.set(u, n[u]), i), o);
150
- function r(i, u) {
151
- const a = i;
152
- return typeof u == "number" ? [{ target: a, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: a, operator: "getProperty", param: i, value: !!u }] : typeof u == "object" ? Object.keys(u).map((s) => {
153
- if (s === "length")
154
- return { target: a, operator: "length", param: null, value: u[s] };
155
- const c = s, y = u[s];
156
- return { target: a, operator: "getProperty", param: c, value: y };
149
+ Object.keys(n).reduce((r, u) => (r.set(u, n[u]), r), o);
150
+ function i(r, u) {
151
+ const a = r;
152
+ return typeof u == "number" ? [{ target: a, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: a, operator: "getProperty", param: r, value: !!u }] : typeof u == "object" ? Object.keys(u).map((p) => {
153
+ if (p === "length")
154
+ return { target: a, operator: "length", param: null, value: u[p] };
155
+ const s = p, y = u[p];
156
+ return { target: a, operator: "getProperty", param: s, value: y };
157
157
  }) : [];
158
158
  }
159
- function p(i) {
160
- return Object.keys(i).reduce((a, s) => {
161
- const c = r(s, i[s]);
162
- return a.push(...c), a;
159
+ function c(r) {
160
+ return Object.keys(r).reduce((a, p) => {
161
+ const s = i(p, r[p]);
162
+ return a.push(...s), a;
163
163
  }, []);
164
164
  }
165
- function m(i, u) {
166
- if (o.has(i.operator)) {
167
- const a = o.get(i.operator);
168
- return a && a(i.target, i.param, i.value, u) || !1;
165
+ function m(r, u) {
166
+ if (o.has(r.operator)) {
167
+ const a = o.get(r.operator);
168
+ return a && a(r.target, r.param, r.value, u) || !1;
169
169
  }
170
170
  return !1;
171
171
  }
172
- function d(i, u) {
173
- return p(i).reduce((c, y) => c && m(y, u), !0);
172
+ function d(r, u) {
173
+ return c(r).reduce((s, y) => s && m(y, u), !0);
174
174
  }
175
- function f(i, u) {
176
- const a = Object.keys(i), s = a.includes("allOf"), c = a.includes("anyOf"), y = s || c, b = (y ? i[y ? s ? "allOf" : "anyOf" : "allOf"] : [i]).map((B) => d(B, u));
177
- return s ? !b.includes(!1) : b.includes(!0);
175
+ function f(r, u) {
176
+ const a = Object.keys(r), p = a.includes("allOf"), s = a.includes("anyOf"), y = p || s, b = (y ? r[y ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((B) => d(B, u));
177
+ return p ? !b.includes(!1) : b.includes(!0);
178
178
  }
179
179
  return { parseValueSchema: f };
180
180
  }
181
181
  const l = {
182
182
  Button: { type: "Button", name: "按钮", icon: "Button" },
183
183
  ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
184
- ToolBar: { type: "ToolBar", name: "工具栏", icon: "ButtonGroup" },
185
- ToolBarItem: { type: "ToolBarItem", name: "工具栏项", icon: "Button" },
186
- ContentContainer: { type: "ContentContainer", name: "容器", icon: "ContentContainer" },
184
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
185
+ "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
186
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
187
187
  DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
188
188
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
189
189
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
@@ -210,15 +210,15 @@ const l = {
210
210
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
211
211
  Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
212
212
  Module: { type: "Module", name: "模块", icon: "Module" },
213
- Component: { type: "Component", name: "组件", icon: "Component" },
213
+ component: { type: "component", name: "组件", icon: "Component" },
214
214
  ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
215
215
  Image: { type: "Image", name: "图像", icon: "Image" },
216
216
  ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
217
217
  HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
218
218
  ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
219
219
  RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
220
- Tab: { type: "Tab", name: "标签页", icon: "Tab" },
221
- TabPage: { type: "TabPage", name: "标签页项", dependentParentControl: "Tab" },
220
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
221
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
222
222
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
223
223
  Tag: { type: "Tag", name: "Tag", icon: "Tag" },
224
224
  Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
@@ -227,7 +227,7 @@ const l = {
227
227
  RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
228
228
  TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
229
229
  TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
230
- Section: { type: "Section", name: "分组面板", icon: "Section" },
230
+ section: { type: "section", name: "分组面板", icon: "Section" },
231
231
  SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
232
232
  SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
233
233
  QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
@@ -257,7 +257,7 @@ const l = {
257
257
  NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
258
258
  Tags: { type: "Tags", name: "标记组", icon: "Tags" },
259
259
  Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
260
- Header: { type: "Header", name: "页头", icon: "Header" },
260
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
261
261
  ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
262
262
  ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
263
263
  PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
@@ -291,9 +291,9 @@ const l = {
291
291
  /** 审批类 end */
292
292
  }, ke = {}, Te = {};
293
293
  Ce();
294
- function Q(n, e, t = /* @__PURE__ */ new Map(), o = (m, d, f) => d, r = {}, p = (m) => m) {
295
- return W[e.title] = e, q[e.title] = o, ke[e.title] = r, Te[e.title] = p, (m = {}) => {
296
- const d = be(m, e, t), f = Object.keys(n).reduce((i, u) => (i[u] = n[u].default, i), {});
294
+ function Q(n, e, t = /* @__PURE__ */ new Map(), o = (m, d, f) => d, i = {}, c = (m) => m) {
295
+ return H[e.title] = e, q[e.title] = o, ke[e.title] = i, Te[e.title] = c, (m = {}) => {
296
+ const d = be(m, e, t), f = Object.keys(n).reduce((r, u) => (r[u] = n[u].default, r), {});
297
297
  return Object.assign(f, d);
298
298
  };
299
299
  }
@@ -329,43 +329,43 @@ const G = {
329
329
  label: { type: String, default: "" },
330
330
  /** 标识是否被选中 */
331
331
  checked: { type: Boolean, default: !1 }
332
- }, R = Q(G, ge, _, X), $ = /* @__PURE__ */ O({
332
+ }, R = Q(G, he, _, X), $ = /* @__PURE__ */ O({
333
333
  name: "FCheckBox",
334
334
  props: G,
335
335
  emits: ["change", "changeValue", "update:modelValue", "update:checked"],
336
336
  setup(n, e) {
337
- const t = x(H, null), {
337
+ const t = x(W, null), {
338
338
  buttonClass: o,
339
- disabled: r,
340
- name: p,
339
+ disabled: i,
340
+ name: c,
341
341
  shouldRenderButton: m,
342
342
  shouldRenderNative: d,
343
343
  shouldRenderTag: f,
344
- tagClass: i,
344
+ tagClass: r,
345
345
  checked: u,
346
346
  onClickCheckBox: a
347
347
  } = ce(n, e, t == null ? void 0 : t.parentProps, t == null ? void 0 : t.parentContext);
348
- h();
349
- const s = h(n.id), c = h(n.customClass), y = h(n.modelValue), k = h(n.indeterminate);
348
+ g();
349
+ const p = g(n.id), s = g(n.customClass), y = g(n.modelValue), k = g(n.indeterminate);
350
350
  return N(() => {
351
351
  const C = {
352
352
  "custom-control": !0,
353
353
  "custom-checkbox": !0
354
354
  };
355
- return c.value && c.value.split(" ").reduce((b, M) => (b[M] = !0, b), C), C;
355
+ return s.value && s.value.split(" ").reduce((b, M) => (b[M] = !0, b), C), C;
356
356
  }), E(() => n.modelValue, (C) => {
357
357
  y.value = C;
358
358
  }), E(() => n.indeterminate, (C) => {
359
359
  k.value = C;
360
- }), U(() => {
360
+ }), z(() => {
361
361
  }), () => {
362
362
  var C, b, M, B, P, V;
363
- return v(ie, null, [m.value && v("div", {
363
+ return v(re, null, [m.value && v("div", {
364
364
  class: o.value,
365
365
  style: "border-radius:0;border: 1px solid #E8EBF2;",
366
366
  onClick: a
367
367
  }, [(b = (C = e.slots).default) == null ? void 0 : b.call(C)]), f.value && v("div", {
368
- class: i.value,
368
+ class: r.value,
369
369
  onClick: a
370
370
  }, [v("div", {
371
371
  class: "title"
@@ -379,11 +379,11 @@ const G = {
379
379
  }, [v("input", {
380
380
  type: "checkbox",
381
381
  class: "custom-control-input",
382
- name: p.value,
383
- id: s,
382
+ name: c.value,
383
+ id: p,
384
384
  value: n.value,
385
385
  checked: u.value,
386
- disabled: r.value
386
+ disabled: i.value
387
387
  }, null), v("div", {
388
388
  class: "custom-control-label"
389
389
  }, [(V = (P = e.slots).default) == null ? void 0 : V.call(P)])])]);
@@ -543,8 +543,8 @@ const G = {
543
543
  valueField: { type: String, default: "value" }
544
544
  }, Y = Q(j, xe, _, X);
545
545
  function Z(n, e, t) {
546
- const o = N(() => !n.disabled), r = h(n.enumData);
547
- function p(a) {
546
+ const o = N(() => !n.disabled), i = g(n.enumData);
547
+ function c(a) {
548
548
  return a[n.valueField];
549
549
  }
550
550
  function m(a) {
@@ -554,26 +554,26 @@ function Z(n, e, t) {
554
554
  return a ? n.isStringValue ? a.split(n.separator) : a : [];
555
555
  }
556
556
  function f(a) {
557
- const c = r.value.map((y) => p(y)).filter((y) => a.some((k) => k === String(y)));
558
- return n.isStringValue ? c.join(n.separator) : c;
557
+ const s = i.value.map((y) => c(y)).filter((y) => a.some((k) => k === String(y)));
558
+ return n.isStringValue ? s.join(n.separator) : s;
559
559
  }
560
- function i(a) {
561
- const s = String(p(a));
562
- return d(t.value).some((y) => y === s);
560
+ function r(a) {
561
+ const p = String(c(a));
562
+ return d(t.value).some((y) => y === p);
563
563
  }
564
- function u(a, s) {
564
+ function u(a, p) {
565
565
  if (o.value) {
566
- let c = d(t.value) || [];
567
- const y = String(p(a));
568
- !c || !c.length ? c.push(y) : c.some((k) => k === y) ? c = c.filter((k) => k !== y) : c.push(y), t.value = f(c), e.emit("changeValue", t.value), e.emit("update:modelValue", t.value);
566
+ let s = d(t.value) || [];
567
+ const y = String(c(a));
568
+ !s || !s.length ? s.push(y) : s.some((k) => k === y) ? s = s.filter((k) => k !== y) : s.push(y), t.value = f(s), e.emit("changeValue", t.value), e.emit("update:modelValue", t.value);
569
569
  }
570
- s.stopPropagation();
570
+ p.stopPropagation();
571
571
  }
572
572
  return {
573
- enumData: r,
574
- getValue: p,
573
+ enumData: i,
574
+ getValue: c,
575
575
  getText: m,
576
- checked: i,
576
+ checked: r,
577
577
  onClickCheckbox: u
578
578
  };
579
579
  }
@@ -582,44 +582,44 @@ const D = /* @__PURE__ */ O({
582
582
  props: j,
583
583
  emits: ["changeValue", "update:modelValue"],
584
584
  setup(n, e) {
585
- const t = h(n.modelValue), o = h(n.horizontal), r = h(n.tabIndex), p = h(n.name), {
585
+ const t = g(n.modelValue), o = g(n.horizontal), i = g(n.tabIndex), c = g(n.name), {
586
586
  enumData: m,
587
587
  onClickCheckbox: d,
588
588
  getValue: f,
589
- getText: i,
589
+ getText: r,
590
590
  checked: u
591
591
  } = Z(n, e, t), a = N(() => ({
592
592
  "farris-checkradio-hor": o.value
593
593
  }));
594
- E(() => n.modelValue, (c) => {
595
- t.value = c;
594
+ E(() => n.modelValue, (s) => {
595
+ t.value = s;
596
596
  });
597
- const s = h([]);
598
- return re(H, {
599
- values: s,
597
+ const p = g([]);
598
+ return ie(W, {
599
+ values: p,
600
600
  parentProps: n,
601
601
  parentContext: e
602
602
  }), () => v("div", {
603
603
  class: ["farris-input-wrap", a.value]
604
- }, [e.slots.default ? e.slots.default() : m.value.map((c, y) => {
605
- const k = "checkbox_" + p.value + y;
604
+ }, [e.slots.default ? e.slots.default() : m.value.map((s, y) => {
605
+ const k = "checkbox_" + c.value + y;
606
606
  return v("div", {
607
607
  class: "custom-control custom-checkbox"
608
608
  }, [v("input", {
609
609
  type: "checkbox",
610
610
  class: "custom-control-input",
611
- name: p.value,
611
+ name: c.value,
612
612
  id: k,
613
- value: f(c),
614
- checked: u(c),
613
+ value: f(s),
614
+ checked: u(s),
615
615
  disabled: n.disabled,
616
- tabindex: r.value,
617
- onClick: (C) => d(c, C)
616
+ tabindex: i.value,
617
+ onClick: (C) => d(s, C)
618
618
  }, null), v("label", {
619
619
  class: "custom-control-label",
620
620
  for: k,
621
- title: i(c)
622
- }, [i(c)])]);
621
+ title: r(s)
622
+ }, [r(s)])]);
623
623
  })]);
624
624
  }
625
625
  });
@@ -629,77 +629,77 @@ function J(n, e, t) {
629
629
  t != null && t.resolveComponentContext && t.resolveComponentContext();
630
630
  }
631
631
  o();
632
- const r = t && t.getStyles && t.getStyles() || "", p = t && t.getDesignerClass && t.getDesignerClass() || "", m = h();
632
+ const i = t && t.getStyles && t.getStyles() || "", c = t && t.getDesignerClass && t.getDesignerClass() || "", m = g();
633
633
  function d() {
634
634
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
635
635
  }
636
636
  function f() {
637
637
  return !1;
638
638
  }
639
- function i() {
639
+ function r() {
640
640
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
641
641
  }
642
642
  function u() {
643
643
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
644
644
  }
645
- function a(g) {
646
- if (!g || !g.value)
645
+ function a(h) {
646
+ if (!h || !h.value)
647
647
  return null;
648
- if (g.value.schema && g.value.schema.type === "component")
649
- return g.value;
650
- const S = h(g == null ? void 0 : g.value.parent), T = a(S);
648
+ if (h.value.schema && h.value.schema.type === "component")
649
+ return h.value;
650
+ const S = g(h == null ? void 0 : h.value.parent), T = a(S);
651
651
  return T || null;
652
652
  }
653
- function s(g = e) {
654
- const { componentInstance: S, designerItemElementRef: T } = g;
655
- return !S || !S.value ? null : S.value.canMove ? T : s(g.parent);
653
+ function p(h = e) {
654
+ const { componentInstance: S, designerItemElementRef: T } = h;
655
+ return !S || !S.value ? null : S.value.canMove ? T : p(h.parent);
656
656
  }
657
- function c(g) {
658
- return !!t && t.canAccepts(g);
657
+ function s(h) {
658
+ return !!t && t.canAccepts(h);
659
659
  }
660
660
  function y() {
661
661
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
662
662
  }
663
663
  function k() {
664
664
  }
665
- function C(g, S) {
665
+ function C(h, S) {
666
666
  S && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(S);
667
667
  }
668
- function b(g) {
669
- const { componentType: S } = g;
670
- let T = L(S, g);
671
- t && t.onResolveNewComponentSchema && (T = t.onResolveNewComponentSchema(g, T));
668
+ function b(h) {
669
+ const { componentType: S } = h;
670
+ let T = L(S, h);
671
+ t && t.onResolveNewComponentSchema && (T = t.onResolveNewComponentSchema(h, T));
672
672
  const A = S.toLowerCase().replace("-", "_");
673
673
  return T && !T.id && T.type === S && (T.id = `${A}_${Math.random().toString().slice(2, 6)}`), T;
674
674
  }
675
- function M(g, S) {
676
- const T = String(g.getAttribute("data-controltype")), A = g.getAttribute("data-feature"), I = A ? JSON.parse(A) : {};
675
+ function M(h, S) {
676
+ const T = String(h.getAttribute("data-controltype")), A = h.getAttribute("data-feature"), I = A ? JSON.parse(A) : {};
677
677
  I.parentComponentInstance = m.value;
678
678
  let w = L(T, I);
679
- t && t.onAcceptNewChildElement && (w = t.onAcceptNewChildElement(g, S, w));
679
+ t && t.onAcceptNewChildElement && (w = t.onAcceptNewChildElement(h, S, w));
680
680
  const ne = T.toLowerCase().replace("-", "_");
681
681
  return w && !w.id && w.type === T && (w.id = `${ne}_${Math.random().toString().slice(2, 6)}`), w;
682
682
  }
683
- function B(g) {
683
+ function B(h) {
684
684
  }
685
- function P(...g) {
685
+ function P(...h) {
686
686
  if (t && t.getPropsConfig)
687
- return t.getPropsConfig(...g);
687
+ return t.getPropsConfig(...h);
688
688
  }
689
689
  return m.value = {
690
690
  canMove: d(),
691
691
  canSelectParent: f(),
692
- canDelete: i(),
692
+ canDelete: r(),
693
693
  canNested: !u(),
694
694
  contents: e == null ? void 0 : e.schema.contents,
695
695
  elementRef: n,
696
696
  parent: (V = e == null ? void 0 : e.parent) == null ? void 0 : V.componentInstance,
697
697
  schema: e == null ? void 0 : e.schema,
698
- styles: r,
699
- designerClass: p,
700
- canAccepts: c,
698
+ styles: i,
699
+ designerClass: c,
700
+ canAccepts: s,
701
701
  getBelongedComponentInstance: a,
702
- getDraggableDesignItemElement: s,
702
+ getDraggableDesignItemElement: p,
703
703
  getDraggingDisplayText: y,
704
704
  getPropConfig: P,
705
705
  getDragScopeElement: k,
@@ -708,17 +708,17 @@ function J(n, e, t) {
708
708
  onChildElementMovedOut: B,
709
709
  addNewChildComponentSchema: b,
710
710
  updateDragAndDropRules: o,
711
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || h(!1),
712
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || h(!1)
711
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || g(!1),
712
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || g(!1)
713
713
  }, m;
714
714
  }
715
715
  function K(n, e) {
716
716
  n.schema;
717
- const t = h(!0), o = h(!0);
718
- function r(a) {
717
+ const t = g(!0), o = g(!0);
718
+ function i(a) {
719
719
  return !1;
720
720
  }
721
- function p() {
721
+ function c() {
722
722
  return !1;
723
723
  }
724
724
  function m() {
@@ -729,18 +729,18 @@ function K(n, e) {
729
729
  }
730
730
  function f(a) {
731
731
  }
732
- function i() {
732
+ function r() {
733
733
  }
734
734
  function u(a) {
735
735
  return null;
736
736
  }
737
737
  return {
738
- canAccepts: r,
739
- checkCanDeleteComponent: p,
738
+ canAccepts: i,
739
+ checkCanDeleteComponent: c,
740
740
  checkCanMoveComponent: m,
741
741
  hideNestedPaddingInDesginerView: d,
742
742
  onAcceptMovedChildElement: f,
743
- resolveComponentContext: i,
743
+ resolveComponentContext: r,
744
744
  triggerBelongedComponentToMoveWhenMoved: t,
745
745
  triggerBelongedComponentToDeleteWhenDeleted: o,
746
746
  getPropsConfig: u
@@ -748,7 +748,8 @@ function K(n, e) {
748
748
  }
749
749
  class ee {
750
750
  static getEditorTypesByMDataType(e) {
751
- return this.fieldControlTypeMapping[e];
751
+ const t = this.fieldControlTypeMapping[e];
752
+ return t || [{ key: "", value: "" }];
752
753
  }
753
754
  }
754
755
  /**
@@ -820,20 +821,25 @@ class Ae {
820
821
  F(this, "designViewModelField");
821
822
  F(this, "controlCreatorUtils");
822
823
  F(this, "designerHostService");
824
+ F(this, "schemaService", null);
823
825
  F(this, "metadataService", null);
824
826
  F(this, "propertyConfig", {
825
827
  type: "object",
826
828
  categories: {}
827
829
  });
828
830
  var o;
829
- this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService;
831
+ this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
832
+ }
833
+ getTableInfo() {
834
+ var e;
835
+ return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
830
836
  }
831
837
  setDesignViewModelField(e) {
832
838
  const t = e.binding && e.binding.type === "Form" && e.binding.field;
833
839
  if (t) {
834
840
  if (!this.designViewModelField) {
835
841
  const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
836
- this.designViewModelField = o.fields.find((r) => r.id === t);
842
+ this.designViewModelField = o.fields.find((i) => i.id === t);
837
843
  }
838
844
  e.updateOn = this.designViewModelField.updateOn;
839
845
  }
@@ -841,6 +847,7 @@ class Ae {
841
847
  changeFieldEditorType(e, t) {
842
848
  }
843
849
  getBasicPropConfig(e) {
850
+ var o, i;
844
851
  var t = this;
845
852
  return this.setDesignViewModelField(e), {
846
853
  description: "Basic Information",
@@ -862,7 +869,8 @@ class Ae {
862
869
  type: "combo-list",
863
870
  textField: "value",
864
871
  valueField: "key",
865
- data: ee.getEditorTypesByMDataType(t.designViewModelField.type.name)
872
+ data: ee.getEditorTypesByMDataType(((i = (o = t.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : i.name) || ""),
873
+ editable: !1
866
874
  }
867
875
  },
868
876
  label: {
@@ -871,11 +879,11 @@ class Ae {
871
879
  $converter: "/converter/form-group-label.converter"
872
880
  }
873
881
  },
874
- setPropertyRelates(o, r) {
875
- if (o)
876
- switch (o && o.propertyID) {
882
+ setPropertyRelates(c, m) {
883
+ if (c)
884
+ switch (c && c.propertyID) {
877
885
  case "type": {
878
- t.changeControlType(e, o);
886
+ t.changeControlType(e, c);
879
887
  break;
880
888
  }
881
889
  }
@@ -888,12 +896,12 @@ class Ae {
888
896
  * @param newControlType 新控件类型
889
897
  */
890
898
  changeControlType(e, t) {
891
- var i, u, a, s, c;
892
- const o = t.propertyValue, r = this.formSchemaUtils.getComponentById(this.componentId);
893
- let p = this.getControlParentContainer(e.id, r);
894
- if (!p)
899
+ var r, u, a, p, s;
900
+ const o = t.propertyValue, i = this.formSchemaUtils.getComponentById(this.componentId);
901
+ let c = this.getControlParentContainer(e.id, i);
902
+ if (!c)
895
903
  return;
896
- const m = p.contents.findIndex((y) => y.id === e.id), d = p.contents[m];
904
+ const m = c.contents.findIndex((y) => y.id === e.id), d = c.contents[m];
897
905
  let f;
898
906
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
899
907
  editor: {
@@ -910,12 +918,12 @@ class Ae {
910
918
  }), Object.assign(f.editor, {
911
919
  isTextArea: f.isTextArea && d.isTextArea,
912
920
  type: o || "",
913
- placeHolder: (i = d.editor) == null ? void 0 : i.placeHolder,
921
+ placeHolder: (r = d.editor) == null ? void 0 : r.placeHolder,
914
922
  holdPlace: (u = d.editor) == null ? void 0 : u.holdPlace,
915
923
  readonly: (a = d.editor) == null ? void 0 : a.readonly,
916
- require: (s = d.editor) == null ? void 0 : s.require,
917
- visible: (c = d.editor) == null ? void 0 : c.visible
918
- }), p.contents.splice(m, 1, f);
924
+ require: (p = d.editor) == null ? void 0 : p.require,
925
+ visible: (s = d.editor) == null ? void 0 : s.visible
926
+ }), c.contents.splice(m, 1, f);
919
927
  }
920
928
  getAppearanceConfig(e = null) {
921
929
  return {
@@ -956,34 +964,13 @@ class Ae {
956
964
  let o;
957
965
  if (!t || !t.contents || t.contents.length === 0)
958
966
  return null;
959
- for (const r of t.contents) {
960
- if (r.id === e)
967
+ for (const i of t.contents) {
968
+ if (i.id === e)
961
969
  return o = t, t;
962
- if (o = this.getControlParentContainer(e, r), o)
970
+ if (o = this.getControlParentContainer(e, i), o)
963
971
  return o;
964
972
  }
965
973
  }
966
- getBindingFieldEditorOptions(e) {
967
- const t = this.formSchemaUtils.getFormMetadataBasicInfo();
968
- return {
969
- type: "field-selector",
970
- bindingType: { enable: !1 },
971
- editorParams: {
972
- propertyData: e,
973
- formBasicInfo: t
974
- },
975
- columns: [
976
- { field: "name", title: "字段名称" },
977
- { field: "bindingField", title: "绑定字段" },
978
- { field: "fieldType", title: "字段类型" }
979
- ],
980
- beforeOpenDialog: (o) => {
981
- const r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
982
- o.instance.loadData(r);
983
- },
984
- textField: "bindingField"
985
- };
986
- }
987
974
  }
988
975
  class te extends Ae {
989
976
  constructor(e, t) {
@@ -1020,17 +1007,21 @@ class te extends Ae {
1020
1007
  { field: "bindingField", title: "绑定字段" },
1021
1008
  { field: "fieldType", title: "字段类型" }
1022
1009
  ],
1010
+ textField: "bindingField",
1023
1011
  data: o
1024
1012
  }
1025
1013
  };
1026
1014
  }
1015
+ getBindingOtions(e) {
1016
+ return this.getFieldSelectorOptions(e);
1017
+ }
1027
1018
  getComponentConfig(e, t = {}, o = {}) {
1028
- const r = Object.assign({
1019
+ const i = Object.assign({
1029
1020
  description: "组件信息",
1030
1021
  title: "组件信息",
1031
1022
  type: "input-group",
1032
1023
  $converter: "/converter/property-editor.converter"
1033
- }, t), p = Object.assign({
1024
+ }, t), c = Object.assign({
1034
1025
  readonly: {
1035
1026
  description: "",
1036
1027
  title: "只读",
@@ -1052,7 +1043,7 @@ class te extends Ae {
1052
1043
  type: "string"
1053
1044
  }
1054
1045
  }, o);
1055
- return { ...r, properties: { ...p } };
1046
+ return { ...i, properties: { ...c } };
1056
1047
  }
1057
1048
  }
1058
1049
  class Oe extends te {
@@ -1108,25 +1099,25 @@ function Le(n, e) {
1108
1099
  const {
1109
1100
  canAccepts: t,
1110
1101
  checkCanDeleteComponent: o,
1111
- checkCanMoveComponent: r,
1112
- hideNestedPaddingInDesginerView: p,
1102
+ checkCanMoveComponent: i,
1103
+ hideNestedPaddingInDesginerView: c,
1113
1104
  onAcceptMovedChildElement: m,
1114
1105
  resolveComponentContext: d,
1115
1106
  triggerBelongedComponentToMoveWhenMoved: f,
1116
- triggerBelongedComponentToDeleteWhenDeleted: i
1107
+ triggerBelongedComponentToDeleteWhenDeleted: r
1117
1108
  } = K(n), u = n.schema;
1118
- function a(s) {
1119
- return new Oe(s, e).getPropertyConfig(u);
1109
+ function a(p) {
1110
+ return new Oe(p, e).getPropertyConfig(u);
1120
1111
  }
1121
1112
  return {
1122
1113
  canAccepts: t,
1123
1114
  checkCanDeleteComponent: o,
1124
- checkCanMoveComponent: r,
1125
- hideNestedPaddingInDesginerView: p,
1115
+ checkCanMoveComponent: i,
1116
+ hideNestedPaddingInDesginerView: c,
1126
1117
  onAcceptMovedChildElement: m,
1127
1118
  resolveComponentContext: d,
1128
1119
  triggerBelongedComponentToMoveWhenMoved: f,
1129
- triggerBelongedComponentToDeleteWhenDeleted: i,
1120
+ triggerBelongedComponentToDeleteWhenDeleted: r,
1130
1121
  getPropsConfig: a
1131
1122
  };
1132
1123
  }
@@ -1134,62 +1125,62 @@ function $e(n, e) {
1134
1125
  const {
1135
1126
  canAccepts: t,
1136
1127
  checkCanDeleteComponent: o,
1137
- checkCanMoveComponent: r,
1138
- hideNestedPaddingInDesginerView: p,
1128
+ checkCanMoveComponent: i,
1129
+ hideNestedPaddingInDesginerView: c,
1139
1130
  onAcceptMovedChildElement: m,
1140
1131
  resolveComponentContext: d,
1141
1132
  triggerBelongedComponentToMoveWhenMoved: f,
1142
- triggerBelongedComponentToDeleteWhenDeleted: i
1133
+ triggerBelongedComponentToDeleteWhenDeleted: r
1143
1134
  } = K(n), u = n.schema;
1144
- function a(s) {
1145
- return new Ne(s, e).getPropertyConfig(u);
1135
+ function a(p) {
1136
+ return new Ne(p, e).getPropertyConfig(u);
1146
1137
  }
1147
1138
  return {
1148
1139
  canAccepts: t,
1149
1140
  checkCanDeleteComponent: o,
1150
- checkCanMoveComponent: r,
1151
- hideNestedPaddingInDesginerView: p,
1141
+ checkCanMoveComponent: i,
1142
+ hideNestedPaddingInDesginerView: c,
1152
1143
  onAcceptMovedChildElement: m,
1153
1144
  resolveComponentContext: d,
1154
1145
  triggerBelongedComponentToMoveWhenMoved: f,
1155
- triggerBelongedComponentToDeleteWhenDeleted: i,
1146
+ triggerBelongedComponentToDeleteWhenDeleted: r,
1156
1147
  getPropsConfig: a
1157
1148
  };
1158
1149
  }
1159
- const Ue = /* @__PURE__ */ O({
1150
+ const ze = /* @__PURE__ */ O({
1160
1151
  name: "FCheckboxGroupDesign",
1161
1152
  props: j,
1162
1153
  emits: ["changeValue", "update:modelValue"],
1163
1154
  setup(n, e) {
1164
- const t = h(n.modelValue), o = h(n.horizontal), r = h(n.tabIndex), p = h(n.name), m = N(() => ({
1155
+ const t = g(n.modelValue), o = g(n.horizontal), i = g(n.tabIndex), c = g(n.name), m = N(() => ({
1165
1156
  "farris-checkradio-hor": o.value
1166
1157
  })), {
1167
1158
  enumData: d,
1168
1159
  onClickCheckbox: f,
1169
- getValue: i,
1160
+ getValue: r,
1170
1161
  getText: u,
1171
1162
  checked: a
1172
- } = Z(n, e, t), s = h(), c = x("designer-host-service"), y = x("design-item-context"), k = Le(y, c), C = J(s, y, k);
1173
- return U(() => {
1174
- s.value.componentInstance = C;
1163
+ } = Z(n, e, t), p = g(), s = x("designer-host-service"), y = x("design-item-context"), k = Le(y, s), C = J(p, y, k);
1164
+ return z(() => {
1165
+ p.value.componentInstance = C;
1175
1166
  }), e.expose(C.value), E(() => n.modelValue, (b) => {
1176
1167
  t.value = b, e.emit("changeValue", t.value);
1177
1168
  }), () => v("div", {
1178
- ref: s,
1169
+ ref: p,
1179
1170
  class: ["farris-input-wrap", m.value]
1180
1171
  }, [d.value.map((b, M) => {
1181
- const B = "checkbox_" + p.value + M;
1172
+ const B = "checkbox_" + c.value + M;
1182
1173
  return v("div", {
1183
1174
  class: "custom-control custom-checkbox"
1184
1175
  }, [v("input", {
1185
1176
  type: "checkbox",
1186
1177
  class: "custom-control-input",
1187
- name: p.value,
1178
+ name: c.value,
1188
1179
  id: B,
1189
- value: i(b),
1180
+ value: r(b),
1190
1181
  checked: a(b),
1191
1182
  disabled: n.disabled,
1192
- tabindex: r.value,
1183
+ tabindex: i.value,
1193
1184
  onClick: (P) => f(b, P)
1194
1185
  }, null), v("label", {
1195
1186
  class: "custom-control-label",
@@ -1198,16 +1189,16 @@ const Ue = /* @__PURE__ */ O({
1198
1189
  }, [u(b)])]);
1199
1190
  })]);
1200
1191
  }
1201
- }), ze = /* @__PURE__ */ O({
1192
+ }), Ue = /* @__PURE__ */ O({
1202
1193
  name: "FCheckBoxDesign",
1203
1194
  props: G,
1204
1195
  emits: [],
1205
1196
  setup(n, e) {
1206
- const t = h(), o = h(n.id), r = h(n.indeterminate), p = x("designer-host-service"), m = x("design-item-context"), d = $e(m, p), f = J(t, m, d);
1207
- return U(() => {
1197
+ const t = g(), o = g(n.id), i = g(n.indeterminate), c = x("designer-host-service"), m = x("design-item-context"), d = $e(m, c), f = J(t, m, d);
1198
+ return z(() => {
1208
1199
  t.value.componentInstance = f;
1209
- }), E(() => n.indeterminate, (i) => {
1210
- r.value = i;
1200
+ }), E(() => n.indeterminate, (r) => {
1201
+ i.value = r;
1211
1202
  }), e.expose(f.value), () => v("div", {
1212
1203
  ref: t,
1213
1204
  dragref: `${m.schema.id}-container`,
@@ -1219,6 +1210,8 @@ const Ue = /* @__PURE__ */ O({
1219
1210
  value: n.value,
1220
1211
  checked: n.modelValue,
1221
1212
  disabled: n.disabled
1213
+ }, null), v("div", {
1214
+ class: "custom-control-label"
1222
1215
  }, null)]);
1223
1216
  }
1224
1217
  });
@@ -1229,7 +1222,7 @@ D.register = (n, e, t, o) => {
1229
1222
  n["check-box"] = $, e["check-box"] = R, n["check-group"] = D, e["check-group"] = Y;
1230
1223
  };
1231
1224
  D.registerDesigner = (n, e, t) => {
1232
- n["check-box"] = ze, e["check-box"] = R, n["check-group"] = Ue, e["check-group"] = Y;
1225
+ n["check-box"] = Ue, e["check-box"] = R, n["check-group"] = ze, e["check-group"] = Y;
1233
1226
  };
1234
1227
  export {
1235
1228
  $ as FCheckBox,