@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,7 +1,7 @@
1
1
  var _ = Object.defineProperty;
2
2
  var X = (n, e, t) => e in n ? _(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var b = (n, e, t) => X(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as E, inject as V, onMounted as G, createVNode as h, Fragment as Y, computed as P, ref as T, provide as Z } from "vue";
3
+ var C = (n, e, t) => X(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { defineComponent as E, inject as V, onMounted as G, createVNode as h, Fragment as Y, computed as P, ref as S, provide as Z } from "vue";
5
5
  import { useCheck as J } from "@farris/ui-vue/components/common";
6
6
  import { cloneDeep as K } from "lodash-es";
7
7
  const ee = {
@@ -14,7 +14,7 @@ const ee = {
14
14
  label: { type: String, default: "" },
15
15
  /** 标识 */
16
16
  id: { type: String, default: "" }
17
- }, $ = Symbol("radioGroupContext"), z = /* @__PURE__ */ E({
17
+ }, $ = Symbol("radioGroupContext"), U = /* @__PURE__ */ E({
18
18
  name: "FRadio",
19
19
  props: ee,
20
20
  emits: ["update:value"],
@@ -32,7 +32,7 @@ const ee = {
32
32
  } = J(n, e, t == null ? void 0 : t.parentProps, t == null ? void 0 : t.parentContext);
33
33
  return G(() => {
34
34
  }), () => {
35
- var s, y, g, S, M, F;
35
+ var s, y, g, T, M, k;
36
36
  return h(Y, null, [u.value && h("div", {
37
37
  class: o.value,
38
38
  style: "border-radius:0;border: 1px solid #E8EBF2;",
@@ -42,7 +42,7 @@ const ee = {
42
42
  onClick: c
43
43
  }, [h("div", {
44
44
  class: "title"
45
- }, [(S = (g = e.slots).default) == null ? void 0 : S.call(g)]), h("div", {
45
+ }, [(T = (g = e.slots).default) == null ? void 0 : T.call(g)]), h("div", {
46
46
  class: "tip"
47
47
  }, null), h("span", {
48
48
  class: "f-icon f-icon-check f-radio-icon"
@@ -59,14 +59,14 @@ const ee = {
59
59
  disabled: p.value
60
60
  }, null), h("div", {
61
61
  class: "custom-control-label"
62
- }, [(F = (M = e.slots).default) == null ? void 0 : F.call(M)])])]);
62
+ }, [(k = (M = e.slots).default) == null ? void 0 : k.call(M)])])]);
63
63
  };
64
64
  }
65
65
  });
66
66
  function te(n, e, t) {
67
67
  return e;
68
68
  }
69
- const j = {}, H = {};
69
+ const j = {}, W = {};
70
70
  function O(n) {
71
71
  const { properties: e, title: t } = n, o = Object.keys(e).reduce((r, p) => (r[p] = e[p].type === "object" && e[p].properties ? O(e[p]) : K(e[p].default), r), {});
72
72
  return o.id = `${t}-${Date.now()}`, o;
@@ -75,7 +75,7 @@ function A(n, e = {}) {
75
75
  const t = j[n];
76
76
  if (t) {
77
77
  let o = O(t);
78
- const r = H[n];
78
+ const r = W[n];
79
79
  return o = r ? r({ getSchemaByType: A }, o, e) : o, o;
80
80
  }
81
81
  return null;
@@ -152,17 +152,17 @@ function ie(n = {}) {
152
152
  return p(a).reduce((y, g) => y && m(g, l), !0);
153
153
  }
154
154
  function u(a, l) {
155
- const c = Object.keys(a), s = c.includes("allOf"), y = c.includes("anyOf"), g = s || y, F = (g ? a[g ? s ? "allOf" : "anyOf" : "allOf"] : [a]).map((D) => d(D, l));
156
- return s ? !F.includes(!1) : F.includes(!0);
155
+ const c = Object.keys(a), s = c.includes("allOf"), y = c.includes("anyOf"), g = s || y, k = (g ? a[g ? s ? "allOf" : "anyOf" : "allOf"] : [a]).map((B) => d(B, l));
156
+ return s ? !k.includes(!1) : k.includes(!0);
157
157
  }
158
158
  return { parseValueSchema: u };
159
159
  }
160
160
  const i = {
161
161
  Button: { type: "Button", name: "按钮", icon: "Button" },
162
162
  ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
163
- ToolBar: { type: "ToolBar", name: "工具栏", icon: "ButtonGroup" },
164
- ToolBarItem: { type: "ToolBarItem", name: "工具栏项", icon: "Button" },
165
- ContentContainer: { type: "ContentContainer", name: "容器", icon: "ContentContainer" },
163
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
164
+ "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
165
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
166
166
  DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
167
167
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
168
168
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
@@ -189,15 +189,15 @@ const i = {
189
189
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
190
190
  Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
191
191
  Module: { type: "Module", name: "模块", icon: "Module" },
192
- Component: { type: "Component", name: "组件", icon: "Component" },
192
+ component: { type: "component", name: "组件", icon: "Component" },
193
193
  ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
194
194
  Image: { type: "Image", name: "图像", icon: "Image" },
195
195
  ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
196
196
  HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
197
197
  ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
198
198
  RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
199
- Tab: { type: "Tab", name: "标签页", icon: "Tab" },
200
- TabPage: { type: "TabPage", name: "标签页项", dependentParentControl: "Tab" },
199
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
200
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
201
201
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
202
202
  Tag: { type: "Tag", name: "Tag", icon: "Tag" },
203
203
  Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
@@ -206,7 +206,7 @@ const i = {
206
206
  RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
207
207
  TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
208
208
  TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
209
- Section: { type: "Section", name: "分组面板", icon: "Section" },
209
+ section: { type: "section", name: "分组面板", icon: "Section" },
210
210
  SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
211
211
  SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
212
212
  QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
@@ -236,7 +236,7 @@ const i = {
236
236
  NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
237
237
  Tags: { type: "Tags", name: "标记组", icon: "Tags" },
238
238
  Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
239
- Header: { type: "Header", name: "页头", icon: "Header" },
239
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
240
240
  ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
241
241
  ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
242
242
  PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
@@ -271,7 +271,7 @@ const i = {
271
271
  }, re = {}, le = {};
272
272
  ie();
273
273
  function ce(n, e, t = /* @__PURE__ */ new Map(), o = (m, d, u) => d, r = {}, p = (m) => m) {
274
- return j[e.title] = e, H[e.title] = o, re[e.title] = r, le[e.title] = p, (m = {}) => {
274
+ return j[e.title] = e, W[e.title] = o, re[e.title] = r, le[e.title] = p, (m = {}) => {
275
275
  const d = ae(m, e, t), u = Object.keys(n).reduce((a, l) => (a[l] = n[l].default, a), {});
276
276
  return Object.assign(u, d);
277
277
  };
@@ -373,7 +373,7 @@ const se = /* @__PURE__ */ new Map([
373
373
  type: fe,
374
374
  properties: ge,
375
375
  required: he
376
- }, Ce = {
376
+ }, be = {
377
377
  /**
378
378
  * 是否被选中
379
379
  */
@@ -391,7 +391,7 @@ const se = /* @__PURE__ */ new Map([
391
391
  */
392
392
  size: { type: String, default: "middle" }
393
393
  }, N = {
394
- ...Ce,
394
+ ...be,
395
395
  /**
396
396
  * 组件标识
397
397
  */
@@ -431,7 +431,7 @@ const se = /* @__PURE__ */ new Map([
431
431
  */
432
432
  valueField: { type: String, default: "value" }
433
433
  }, I = ce(N, ve, se, te);
434
- function W(n, e, t) {
434
+ function R(n, e, t) {
435
435
  const o = P(() => !n.disabled), r = P(() => n.enumData || []);
436
436
  function p(u) {
437
437
  return u[n.valueField];
@@ -458,14 +458,14 @@ const w = /* @__PURE__ */ E({
458
458
  props: N,
459
459
  emits: ["changeValue", "update:modelValue"],
460
460
  setup(n, e) {
461
- const t = T(n.modelValue), {
461
+ const t = S(n.modelValue), {
462
462
  enumData: o,
463
463
  onClickRadio: r,
464
464
  getValue: p,
465
465
  getText: m
466
- } = W(n, e, t), d = P(() => ({
466
+ } = R(n, e, t), d = P(() => ({
467
467
  "farris-checkradio-hor": n.direction === "horizontal"
468
- })), u = T([]);
468
+ })), u = S([]);
469
469
  return Z($, {
470
470
  radios: u,
471
471
  parentProps: n,
@@ -493,13 +493,13 @@ const w = /* @__PURE__ */ E({
493
493
  })]);
494
494
  }
495
495
  });
496
- function be(n, e, t) {
497
- var U;
496
+ function Ce(n, e, t) {
497
+ var x;
498
498
  function o() {
499
499
  t != null && t.resolveComponentContext && t.resolveComponentContext();
500
500
  }
501
501
  o();
502
- const r = t && t.getStyles && t.getStyles() || "", p = t && t.getDesignerClass && t.getDesignerClass() || "", m = T();
502
+ const r = t && t.getStyles && t.getStyles() || "", p = t && t.getDesignerClass && t.getDesignerClass() || "", m = S();
503
503
  function d() {
504
504
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
505
505
  }
@@ -517,12 +517,12 @@ function be(n, e, t) {
517
517
  return null;
518
518
  if (f.value.schema && f.value.schema.type === "component")
519
519
  return f.value;
520
- const C = T(f == null ? void 0 : f.value.parent), v = c(C);
520
+ const b = S(f == null ? void 0 : f.value.parent), v = c(b);
521
521
  return v || null;
522
522
  }
523
523
  function s(f = e) {
524
- const { componentInstance: C, designerItemElementRef: v } = f;
525
- return !C || !C.value ? null : C.value.canMove ? v : s(f.parent);
524
+ const { componentInstance: b, designerItemElementRef: v } = f;
525
+ return !b || !b.value ? null : b.value.canMove ? v : s(f.parent);
526
526
  }
527
527
  function y(f) {
528
528
  return !!t && t.canAccepts(f);
@@ -530,27 +530,27 @@ function be(n, e, t) {
530
530
  function g() {
531
531
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
532
532
  }
533
- function S() {
533
+ function T() {
534
534
  }
535
- function M(f, C) {
536
- C && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(C);
535
+ function M(f, b) {
536
+ b && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(b);
537
537
  }
538
- function F(f) {
539
- const { componentType: C } = f;
540
- let v = A(C, f);
538
+ function k(f) {
539
+ const { componentType: b } = f;
540
+ let v = A(b, f);
541
541
  t && t.onResolveNewComponentSchema && (v = t.onResolveNewComponentSchema(f, v));
542
- const B = C.toLowerCase().replace("-", "_");
543
- return v && !v.id && v.type === C && (v.id = `${B}_${Math.random().toString().slice(2, 6)}`), v;
542
+ const D = b.toLowerCase().replace("-", "_");
543
+ return v && !v.id && v.type === b && (v.id = `${D}_${Math.random().toString().slice(2, 6)}`), v;
544
544
  }
545
- function L(f, C) {
546
- const v = String(f.getAttribute("data-controltype")), B = f.getAttribute("data-feature"), x = B ? JSON.parse(B) : {};
547
- x.parentComponentInstance = m.value;
548
- let k = A(v, x);
549
- t && t.onAcceptNewChildElement && (k = t.onAcceptNewChildElement(f, C, k));
545
+ function L(f, b) {
546
+ const v = String(f.getAttribute("data-controltype")), D = f.getAttribute("data-feature"), z = D ? JSON.parse(D) : {};
547
+ z.parentComponentInstance = m.value;
548
+ let F = A(v, z);
549
+ t && t.onAcceptNewChildElement && (F = t.onAcceptNewChildElement(f, b, F));
550
550
  const q = v.toLowerCase().replace("-", "_");
551
- return k && !k.id && k.type === v && (k.id = `${q}_${Math.random().toString().slice(2, 6)}`), k;
551
+ return F && !F.id && F.type === v && (F.id = `${q}_${Math.random().toString().slice(2, 6)}`), F;
552
552
  }
553
- function D(f) {
553
+ function B(f) {
554
554
  }
555
555
  function Q(...f) {
556
556
  if (t && t.getPropsConfig)
@@ -563,7 +563,7 @@ function be(n, e, t) {
563
563
  canNested: !l(),
564
564
  contents: e == null ? void 0 : e.schema.contents,
565
565
  elementRef: n,
566
- parent: (U = e == null ? void 0 : e.parent) == null ? void 0 : U.componentInstance,
566
+ parent: (x = e == null ? void 0 : e.parent) == null ? void 0 : x.componentInstance,
567
567
  schema: e == null ? void 0 : e.schema,
568
568
  styles: r,
569
569
  designerClass: p,
@@ -572,25 +572,26 @@ function be(n, e, t) {
572
572
  getDraggableDesignItemElement: s,
573
573
  getDraggingDisplayText: g,
574
574
  getPropConfig: Q,
575
- getDragScopeElement: S,
575
+ getDragScopeElement: T,
576
576
  onAcceptMovedChildElement: M,
577
577
  onAcceptNewChildElement: L,
578
- onChildElementMovedOut: D,
579
- addNewChildComponentSchema: F,
578
+ onChildElementMovedOut: B,
579
+ addNewChildComponentSchema: k,
580
580
  updateDragAndDropRules: o,
581
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || T(!1),
582
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || T(!1)
581
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || S(!1),
582
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
583
583
  }, m;
584
584
  }
585
- class R {
585
+ class H {
586
586
  static getEditorTypesByMDataType(e) {
587
- return this.fieldControlTypeMapping[e];
587
+ const t = this.fieldControlTypeMapping[e];
588
+ return t || [{ key: "", value: "" }];
588
589
  }
589
590
  }
590
591
  /**
591
592
  * <字段类型,可配置的控件类型列表>的映射
592
593
  */
593
- b(R, "fieldControlTypeMapping", {
594
+ C(H, "fieldControlTypeMapping", {
594
595
  String: [
595
596
  { key: i["input-group"].type, value: i["input-group"].name },
596
597
  { key: i.lookup.type, value: i.lookup.name },
@@ -645,24 +646,29 @@ b(R, "fieldControlTypeMapping", {
645
646
  { key: i.AdminOrganizationSelector.type, value: i.AdminOrganizationSelector.name }
646
647
  ]
647
648
  });
648
- class Te {
649
+ class Se {
649
650
  constructor(e, t) {
650
- b(this, "componentId");
651
- b(this, "viewModelId");
652
- b(this, "eventsEditorUtils");
653
- b(this, "formSchemaUtils");
654
- b(this, "formMetadataConverter");
655
- b(this, "designViewModelUtils");
656
- b(this, "designViewModelField");
657
- b(this, "controlCreatorUtils");
658
- b(this, "designerHostService");
659
- b(this, "metadataService", null);
660
- b(this, "propertyConfig", {
651
+ C(this, "componentId");
652
+ C(this, "viewModelId");
653
+ C(this, "eventsEditorUtils");
654
+ C(this, "formSchemaUtils");
655
+ C(this, "formMetadataConverter");
656
+ C(this, "designViewModelUtils");
657
+ C(this, "designViewModelField");
658
+ C(this, "controlCreatorUtils");
659
+ C(this, "designerHostService");
660
+ C(this, "schemaService", null);
661
+ C(this, "metadataService", null);
662
+ C(this, "propertyConfig", {
661
663
  type: "object",
662
664
  categories: {}
663
665
  });
664
666
  var o;
665
- 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;
667
+ 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;
668
+ }
669
+ getTableInfo() {
670
+ var e;
671
+ return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
666
672
  }
667
673
  setDesignViewModelField(e) {
668
674
  const t = e.binding && e.binding.type === "Form" && e.binding.field;
@@ -677,6 +683,7 @@ class Te {
677
683
  changeFieldEditorType(e, t) {
678
684
  }
679
685
  getBasicPropConfig(e) {
686
+ var o, r;
680
687
  var t = this;
681
688
  return this.setDesignViewModelField(e), {
682
689
  description: "Basic Information",
@@ -698,7 +705,8 @@ class Te {
698
705
  type: "combo-list",
699
706
  textField: "value",
700
707
  valueField: "key",
701
- data: R.getEditorTypesByMDataType(t.designViewModelField.type.name)
708
+ data: H.getEditorTypesByMDataType(((r = (o = t.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : r.name) || ""),
709
+ editable: !1
702
710
  }
703
711
  },
704
712
  label: {
@@ -707,11 +715,11 @@ class Te {
707
715
  $converter: "/converter/form-group-label.converter"
708
716
  }
709
717
  },
710
- setPropertyRelates(o, r) {
711
- if (o)
712
- switch (o && o.propertyID) {
718
+ setPropertyRelates(p, m) {
719
+ if (p)
720
+ switch (p && p.propertyID) {
713
721
  case "type": {
714
- t.changeControlType(e, o);
722
+ t.changeControlType(e, p);
715
723
  break;
716
724
  }
717
725
  }
@@ -799,29 +807,8 @@ class Te {
799
807
  return o;
800
808
  }
801
809
  }
802
- getBindingFieldEditorOptions(e) {
803
- const t = this.formSchemaUtils.getFormMetadataBasicInfo();
804
- return {
805
- type: "field-selector",
806
- bindingType: { enable: !1 },
807
- editorParams: {
808
- propertyData: e,
809
- formBasicInfo: t
810
- },
811
- columns: [
812
- { field: "name", title: "字段名称" },
813
- { field: "bindingField", title: "绑定字段" },
814
- { field: "fieldType", title: "字段类型" }
815
- ],
816
- beforeOpenDialog: (o) => {
817
- const r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
818
- o.instance.loadData(r);
819
- },
820
- textField: "bindingField"
821
- };
822
- }
823
810
  }
824
- class Se extends Te {
811
+ class Te extends Se {
825
812
  constructor(e, t) {
826
813
  super(e, t);
827
814
  }
@@ -856,10 +843,14 @@ class Se extends Te {
856
843
  { field: "bindingField", title: "绑定字段" },
857
844
  { field: "fieldType", title: "字段类型" }
858
845
  ],
846
+ textField: "bindingField",
859
847
  data: o
860
848
  }
861
849
  };
862
850
  }
851
+ getBindingOtions(e) {
852
+ return this.getFieldSelectorOptions(e);
853
+ }
863
854
  getComponentConfig(e, t = {}, o = {}) {
864
855
  const r = Object.assign({
865
856
  description: "组件信息",
@@ -891,7 +882,7 @@ class Se extends Te {
891
882
  return { ...r, properties: { ...p } };
892
883
  }
893
884
  }
894
- class Me extends Se {
885
+ class Me extends Te {
895
886
  constructor(e, t) {
896
887
  super(e, t);
897
888
  }
@@ -927,9 +918,9 @@ class Me extends Se {
927
918
  });
928
919
  }
929
920
  }
930
- function Fe(n, e) {
921
+ function ke(n, e) {
931
922
  n.schema;
932
- const t = T(!0), o = T(!0);
923
+ const t = S(!0), o = S(!0);
933
924
  function r(c) {
934
925
  return !1;
935
926
  }
@@ -961,7 +952,7 @@ function Fe(n, e) {
961
952
  getPropsConfig: l
962
953
  };
963
954
  }
964
- function ke(n, e) {
955
+ function Fe(n, e) {
965
956
  const {
966
957
  canAccepts: t,
967
958
  checkCanDeleteComponent: o,
@@ -971,7 +962,7 @@ function ke(n, e) {
971
962
  resolveComponentContext: d,
972
963
  triggerBelongedComponentToMoveWhenMoved: u,
973
964
  triggerBelongedComponentToDeleteWhenDeleted: a
974
- } = Fe(n), l = n.schema;
965
+ } = ke(n), l = n.schema;
975
966
  function c(s) {
976
967
  return new Me(s, e).getPropertyConfig(l);
977
968
  }
@@ -992,28 +983,28 @@ const we = /* @__PURE__ */ E({
992
983
  props: N,
993
984
  emits: ["changeValue", "update:modelValue"],
994
985
  setup(n, e) {
995
- const t = T(n.modelValue), {
986
+ const t = S(n.modelValue), {
996
987
  enumData: o,
997
988
  onClickRadio: r,
998
989
  getValue: p,
999
990
  getText: m
1000
- } = W(n, e, t), d = P(() => ({
991
+ } = R(n, e, t), d = P(() => ({
1001
992
  "farris-checkradio-hor": n.horizontal
1002
- })), u = T(), a = V("designer-host-service"), l = V("design-item-context"), c = ke(l, a), s = be(u, l, c);
993
+ })), u = S(), a = V("designer-host-service"), l = V("design-item-context"), c = Fe(l, a), s = Ce(u, l, c);
1003
994
  return G(() => {
1004
995
  u.value.componentInstance = s;
1005
996
  }), e.expose(s.value), () => h("div", {
1006
997
  class: ["farris-input-wrap", d.value],
1007
998
  ref: u
1008
999
  }, [o.value.map((y, g) => {
1009
- const S = "radio_" + n.name + g;
1000
+ const T = "radio_" + n.name + g;
1010
1001
  return h("div", {
1011
1002
  class: "custom-control custom-radio"
1012
1003
  }, [h("input", {
1013
1004
  type: "radio",
1014
1005
  class: "custom-control-input",
1015
1006
  name: n.name,
1016
- id: S,
1007
+ id: T,
1017
1008
  value: p(y),
1018
1009
  checked: p(y) === t.value,
1019
1010
  disabled: n.disabled,
@@ -1021,13 +1012,13 @@ const we = /* @__PURE__ */ E({
1021
1012
  onClick: (M) => r(y, M)
1022
1013
  }, null), h("label", {
1023
1014
  class: "custom-control-label",
1024
- for: S
1015
+ for: T
1025
1016
  }, [m(y)])]);
1026
1017
  })]);
1027
1018
  }
1028
1019
  });
1029
1020
  w.install = (n) => {
1030
- n.component(w.name, w), n.component(z.name, z);
1021
+ n.component(w.name, w), n.component(U.name, U);
1031
1022
  };
1032
1023
  w.register = (n, e, t, o) => {
1033
1024
  n["radio-group"] = w, e["radio-group"] = I;