@farris/ui-vue 1.2.8 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,11 +1,12 @@
1
- var R = Object.defineProperty;
2
- var H = (n, e, t) => e in n ? R(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var C = (n, e, t) => H(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as O, inject as A, onMounted as W, createVNode as h, Fragment as I, computed as S, ref as k, provide as K } from "vue";
5
- import { useCheck as ee } from "../common/index.esm.js";
6
- import { cloneDeep as te } from "lodash-es";
7
- import { getSchemaByType as q } from "../dynamic-resolver/index.esm.js";
8
- const ne = {
1
+ var H = Object.defineProperty;
2
+ var K = (r, t, e) => t in r ? H(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var v = (r, t, e) => K(r, typeof t != "symbol" ? t + "" : t, e);
4
+ import { defineComponent as N, inject as L, onMounted as z, createVNode as h, Fragment as ee, computed as B, ref as M, provide as te } from "vue";
5
+ import { useCheck as ne } from "../common/index.esm.js";
6
+ import { isPlainObject as q, cloneDeep as W } from "lodash-es";
7
+ import { getSchemaByType as j } from "../dynamic-resolver/index.esm.js";
8
+ import { useResponseLayoutEditorSetting as oe } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
9
+ const re = {
9
10
  value: { type: String, default: "" },
10
11
  /** 值 */
11
12
  modelValue: { type: String, default: "" },
@@ -15,150 +16,150 @@ const ne = {
15
16
  label: { type: String, default: "" },
16
17
  /** 标识 */
17
18
  id: { type: String, default: "" }
18
- }, x = Symbol("radioGroupContext"), L = /* @__PURE__ */ O({
19
+ }, R = Symbol("radioGroupContext"), x = /* @__PURE__ */ N({
19
20
  name: "FRadio",
20
- props: ne,
21
+ props: re,
21
22
  emits: ["update:value"],
22
- setup(n, e) {
23
- const t = A(x, null), {
24
- buttonClass: o,
25
- checked: i,
26
- disabled: s,
27
- name: m,
28
- tagClass: u,
29
- shouldRenderButton: p,
30
- shouldRenderNative: r,
31
- shouldRenderTag: l,
32
- onClickRadio: c
33
- } = ee(n, e, t == null ? void 0 : t.parentProps, t == null ? void 0 : t.parentContext);
34
- return W(() => {
23
+ setup(r, t) {
24
+ const e = L(R, null), {
25
+ buttonClass: n,
26
+ checked: o,
27
+ disabled: a,
28
+ name: c,
29
+ tagClass: d,
30
+ shouldRenderButton: l,
31
+ shouldRenderNative: i,
32
+ shouldRenderTag: p,
33
+ onClickRadio: s
34
+ } = ne(r, t, e == null ? void 0 : e.parentProps, e == null ? void 0 : e.parentContext);
35
+ return z(() => {
35
36
  }), () => {
36
- var d, f, g, M, T, w;
37
- return h(I, null, [p.value && h("div", {
38
- class: o.value,
37
+ var m, y, f, k, T, F;
38
+ return h(ee, null, [l.value && h("div", {
39
+ class: n.value,
39
40
  style: "border-radius:0;border: 1px solid #E8EBF2;",
40
- onClick: c
41
- }, [(f = (d = e.slots).default) == null ? void 0 : f.call(d)]), l.value && h("div", {
42
- class: u.value,
43
- onClick: c
41
+ onClick: s
42
+ }, [(y = (m = t.slots).default) == null ? void 0 : y.call(m)]), p.value && h("div", {
43
+ class: d.value,
44
+ onClick: s
44
45
  }, [h("div", {
45
46
  class: "title"
46
- }, [(M = (g = e.slots).default) == null ? void 0 : M.call(g)]), h("div", {
47
+ }, [(k = (f = t.slots).default) == null ? void 0 : k.call(f)]), h("div", {
47
48
  class: "tip"
48
49
  }, null), h("span", {
49
50
  class: "f-icon f-icon-check f-radio-icon"
50
- }, null)]), r.value && h("div", {
51
+ }, null)]), i.value && h("div", {
51
52
  class: "custom-control custom-radio",
52
- onClick: c
53
+ onClick: s
53
54
  }, [h("input", {
54
55
  type: "radio",
55
56
  class: "custom-control-input",
56
- name: m.value,
57
- id: n.id,
58
- value: n.value,
59
- checked: i.value,
60
- disabled: s.value
57
+ name: c.value,
58
+ id: r.id,
59
+ value: r.value,
60
+ checked: o.value,
61
+ disabled: a.value
61
62
  }, null), h("div", {
62
63
  class: "custom-control-label"
63
- }, [(w = (T = e.slots).default) == null ? void 0 : w.call(T)])])]);
64
+ }, [(F = (T = t.slots).default) == null ? void 0 : F.call(T)])])]);
64
65
  };
65
66
  }
66
67
  });
67
- function oe(n, e, t) {
68
- return e;
68
+ function ie(r, t, e) {
69
+ return t;
69
70
  }
70
- const _ = {}, J = {};
71
- function $(n) {
72
- const { properties: e, title: t } = n, o = Object.keys(e).reduce((i, s) => (i[s] = e[s].type === "object" && e[s].properties ? $(e[s]) : te(e[s].default), i), {});
73
- return o.id = `${t}-${Date.now()}`, o;
71
+ const _ = {}, X = {};
72
+ function $(r) {
73
+ const { properties: t, title: e, ignore: n } = r, o = n && Array.isArray(n), a = Object.keys(t).reduce((c, d) => ((!o || !n.find((l) => l == d)) && (c[d] = t[d].type === "object" && t[d].properties ? $(t[d]) : W(t[d].default)), c), {});
74
+ return (!o || !n.find((c) => c == "id")) && (a.id = `${e}-${Date.now()}`), a;
74
75
  }
75
- function N(n, e = {}) {
76
- const t = _[n];
77
- if (t) {
78
- let o = $(t);
79
- const i = J[n];
80
- return o = i ? i({ getSchemaByType: N }, o, e) : o, o;
76
+ function U(r, t = {}, e) {
77
+ const n = _[r];
78
+ if (n) {
79
+ let o = $(n);
80
+ const a = X[r];
81
+ return o = a ? a({ getSchemaByType: U }, o, t, e) : o, o;
81
82
  }
82
83
  return null;
83
84
  }
84
- function re(n, e) {
85
- const t = $(e);
86
- return Object.keys(n).reduce((o, i) => (o[i] && typeof o[i] == "object" ? Object.assign(o[i], n[i]) : o[i] = n[i], o), t), t;
85
+ function ae(r, t) {
86
+ const e = $(t);
87
+ return Object.keys(r).reduce((n, o) => (n[o] && q(n[o]) && q(r[o]) ? Object.assign(n[o], r[o]) : n[o] = r[o], n), e), e;
87
88
  }
88
- function ie(n, e) {
89
- return Object.keys(n).filter((o) => n[o] != null).reduce((o, i) => {
90
- if (e.has(i)) {
91
- const s = e.get(i);
92
- if (typeof s == "string")
93
- o[s] = n[i];
89
+ function le(r, t) {
90
+ return Object.keys(r).filter((n) => r[n] != null).reduce((n, o) => {
91
+ if (t.has(o)) {
92
+ const a = t.get(o);
93
+ if (typeof a == "string")
94
+ n[a] = r[o];
94
95
  else {
95
- const m = s(i, n[i], n);
96
- Object.assign(o, m);
96
+ const c = a(o, r[o], r);
97
+ Object.assign(n, c);
97
98
  }
98
99
  } else
99
- o[i] = n[i];
100
- return o;
100
+ n[o] = r[o];
101
+ return n;
101
102
  }, {});
102
103
  }
103
- function ae(n, e, t = /* @__PURE__ */ new Map()) {
104
- const o = re(n, e);
105
- return ie(o, t);
104
+ function se(r, t, e = /* @__PURE__ */ new Map()) {
105
+ const n = ae(r, t);
106
+ return le(n, e);
106
107
  }
107
- function le(n = {}) {
108
- function e(r, l, c, d) {
109
- if (typeof c == "number")
110
- return d[r].length === c;
111
- if (typeof c == "object") {
112
- const f = Object.keys(c)[0], g = c[f];
113
- if (f === "not")
114
- return Number(d[r].length) !== Number(g);
115
- if (f === "moreThan")
116
- return Number(d[r].length) >= Number(g);
117
- if (f === "lessThan")
118
- return Number(d[r].length) <= Number(g);
108
+ function ce(r = {}) {
109
+ function t(i, p, s, m) {
110
+ if (typeof s == "number")
111
+ return m[i].length === s;
112
+ if (typeof s == "object") {
113
+ const y = Object.keys(s)[0], f = s[y];
114
+ if (y === "not")
115
+ return Number(m[i].length) !== Number(f);
116
+ if (y === "moreThan")
117
+ return Number(m[i].length) >= Number(f);
118
+ if (y === "lessThan")
119
+ return Number(m[i].length) <= Number(f);
119
120
  }
120
121
  return !1;
121
122
  }
122
- function t(r, l, c, d) {
123
- return d[r] && d[r].propertyValue && String(d[r].propertyValue.value) === String(c);
123
+ function e(i, p, s, m) {
124
+ return m[i] && m[i].propertyValue && String(m[i].propertyValue.value) === String(s);
124
125
  }
125
- const o = /* @__PURE__ */ new Map([
126
- ["length", e],
127
- ["getProperty", t]
126
+ const n = /* @__PURE__ */ new Map([
127
+ ["length", t],
128
+ ["getProperty", e]
128
129
  ]);
129
- Object.keys(n).reduce((r, l) => (r.set(l, n[l]), r), o);
130
- function i(r, l) {
131
- const c = r;
132
- return typeof l == "number" ? [{ target: c, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: c, operator: "getProperty", param: r, value: !!l }] : typeof l == "object" ? Object.keys(l).map((d) => {
133
- if (d === "length")
134
- return { target: c, operator: "length", param: null, value: l[d] };
135
- const f = d, g = l[d];
136
- return { target: c, operator: "getProperty", param: f, value: g };
130
+ Object.keys(r).reduce((i, p) => (i.set(p, r[p]), i), n);
131
+ function o(i, p) {
132
+ const s = i;
133
+ return typeof p == "number" ? [{ target: s, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: s, operator: "getProperty", param: i, value: !!p }] : typeof p == "object" ? Object.keys(p).map((m) => {
134
+ if (m === "length")
135
+ return { target: s, operator: "length", param: null, value: p[m] };
136
+ const y = m, f = p[m];
137
+ return { target: s, operator: "getProperty", param: y, value: f };
137
138
  }) : [];
138
139
  }
139
- function s(r) {
140
- return Object.keys(r).reduce((c, d) => {
141
- const f = i(d, r[d]);
142
- return c.push(...f), c;
140
+ function a(i) {
141
+ return Object.keys(i).reduce((s, m) => {
142
+ const y = o(m, i[m]);
143
+ return s.push(...y), s;
143
144
  }, []);
144
145
  }
145
- function m(r, l) {
146
- if (o.has(r.operator)) {
147
- const c = o.get(r.operator);
148
- return c && c(r.target, r.param, r.value, l) || !1;
146
+ function c(i, p) {
147
+ if (n.has(i.operator)) {
148
+ const s = n.get(i.operator);
149
+ return s && s(i.target, i.param, i.value, p) || !1;
149
150
  }
150
151
  return !1;
151
152
  }
152
- function u(r, l) {
153
- return s(r).reduce((f, g) => f && m(g, l), !0);
153
+ function d(i, p) {
154
+ return a(i).reduce((y, f) => y && c(f, p), !0);
154
155
  }
155
- function p(r, l) {
156
- const c = Object.keys(r), d = c.includes("allOf"), f = c.includes("anyOf"), g = d || f, w = (g ? r[g ? d ? "allOf" : "anyOf" : "allOf"] : [r]).map((E) => u(E, l));
157
- return d ? !w.includes(!1) : w.includes(!0);
156
+ function l(i, p) {
157
+ const s = Object.keys(i), m = s.includes("allOf"), y = s.includes("anyOf"), f = m || y, F = (f ? i[f ? m ? "allOf" : "anyOf" : "allOf"] : [i]).map((A) => d(A, p));
158
+ return m ? !F.includes(!1) : F.includes(!0);
158
159
  }
159
- return { parseValueSchema: p };
160
+ return { parseValueSchema: l };
160
161
  }
161
- const a = {
162
+ const u = {
162
163
  button: { type: "button", name: "按钮", icon: "Button" },
163
164
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
164
165
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -195,21 +196,22 @@ const a = {
195
196
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
196
197
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
197
198
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
198
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
199
- }, ce = {}, se = {};
200
- le();
201
- function pe(n, e, t = /* @__PURE__ */ new Map(), o = (m, u, p) => u, i = {}, s = (m) => m) {
202
- return _[e.title] = e, J[e.title] = o, ce[e.title] = i, se[e.title] = s, (m = {}) => {
203
- const u = ae(m, e, t), p = Object.keys(n).reduce((r, l) => (r[l] = n[l].default, r), {});
204
- return Object.assign(p, u);
199
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
200
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
201
+ }, pe = {}, ue = {};
202
+ ce();
203
+ function de(r, t, e = /* @__PURE__ */ new Map(), n = (c, d, l) => d, o = {}, a = (c) => c) {
204
+ return _[t.title] = t, X[t.title] = n, pe[t.title] = o, ue[t.title] = a, (c = {}) => {
205
+ const d = se(c, t, e), l = Object.keys(r).reduce((i, p) => (i[p] = r[p].default, i), {});
206
+ return Object.assign(l, d);
205
207
  };
206
208
  }
207
- function ue(n, e) {
208
- return { customClass: e.class, customStyle: e.style };
209
+ function me(r, t) {
210
+ return { customClass: t.class, customStyle: t.style };
209
211
  }
210
- const de = /* @__PURE__ */ new Map([
211
- ["appearance", ue]
212
- ]), me = "https://json-schema.org/draft/2020-12/schema", fe = "https://farris-design.gitee.io/radio-group.schema.json", ye = "radio-group", ge = "A Farris Input Component", he = "object", ve = {
212
+ const fe = /* @__PURE__ */ new Map([
213
+ ["appearance", me]
214
+ ]), ye = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-design.gitee.io/radio-group.schema.json", he = "radio-group", ve = "A Farris Input Component", be = "object", Ce = {
213
215
  id: {
214
216
  description: "The unique identifier for a radio-group",
215
217
  type: "string"
@@ -290,18 +292,23 @@ const de = /* @__PURE__ */ new Map([
290
292
  description: "",
291
293
  type: "array"
292
294
  }
293
- }, be = [
295
+ }, ke = [
294
296
  "id",
295
297
  "type"
296
- ], Ce = {
297
- $schema: me,
298
- $id: fe,
299
- title: ye,
300
- description: ge,
301
- type: he,
302
- properties: ve,
303
- required: be
304
- }, ke = {
298
+ ], Me = [
299
+ "id",
300
+ "appearance",
301
+ "binding"
302
+ ], we = {
303
+ $schema: ye,
304
+ $id: ge,
305
+ title: he,
306
+ description: ve,
307
+ type: be,
308
+ properties: Ce,
309
+ required: ke,
310
+ ignore: Me
311
+ }, Te = {
305
312
  /**
306
313
  * 是否被选中
307
314
  */
@@ -318,8 +325,8 @@ const de = /* @__PURE__ */ new Map([
318
325
  * type为button或者tag时的尺寸
319
326
  */
320
327
  size: { type: String, default: "middle" }
321
- }, U = {
322
- ...ke,
328
+ }, O = {
329
+ ...Te,
323
330
  /**
324
331
  * 组件标识
325
332
  */
@@ -358,195 +365,195 @@ const de = /* @__PURE__ */ new Map([
358
365
  * 枚举数组中枚举值的key值。
359
366
  */
360
367
  valueField: { type: String, default: "value" }
361
- }, X = pe(U, Ce, de, oe);
362
- function Q(n, e, t) {
363
- const o = S(() => !n.disabled), i = S(() => n.enumData || []);
364
- function s(p) {
365
- return p[n.valueField];
366
- }
367
- function m(p) {
368
- return p[n.textField];
369
- }
370
- function u(p, r) {
371
- if (o.value) {
372
- const l = s(p);
373
- t.value !== l && (t.value = l, e.emit("changeValue", l), e.emit("update:modelValue", l));
368
+ }, J = de(O, we, fe, ie);
369
+ function Q(r, t, e) {
370
+ const n = B(() => !r.disabled), o = B(() => r.enumData || []);
371
+ function a(l) {
372
+ return l[r.valueField];
373
+ }
374
+ function c(l) {
375
+ return l[r.textField];
376
+ }
377
+ function d(l, i) {
378
+ if (n.value) {
379
+ const p = a(l);
380
+ e.value !== p && (e.value = p, t.emit("changeValue", p), t.emit("update:modelValue", p));
374
381
  }
375
- r.stopPropagation();
382
+ i.stopPropagation();
376
383
  }
377
384
  return {
378
- enumData: i,
379
- getValue: s,
380
- getText: m,
381
- onClickRadio: u
385
+ enumData: o,
386
+ getValue: a,
387
+ getText: c,
388
+ onClickRadio: d
382
389
  };
383
390
  }
384
- const P = /* @__PURE__ */ O({
391
+ const E = /* @__PURE__ */ N({
385
392
  name: "FRadioGroup",
386
- props: U,
393
+ props: O,
387
394
  emits: ["changeValue", "update:modelValue"],
388
- setup(n, e) {
389
- const t = k(n.modelValue), {
390
- enumData: o,
391
- onClickRadio: i,
392
- getValue: s,
393
- getText: m
394
- } = Q(n, e, t), u = S(() => ({
395
- "farris-checkradio-hor": n.direction === "horizontal"
396
- })), p = k([]);
397
- return K(x, {
398
- radios: p,
399
- parentProps: n,
400
- parentContext: e
395
+ setup(r, t) {
396
+ const e = M(r.modelValue), {
397
+ enumData: n,
398
+ onClickRadio: o,
399
+ getValue: a,
400
+ getText: c
401
+ } = Q(r, t, e), d = B(() => ({
402
+ "farris-checkradio-hor": r.direction === "horizontal"
403
+ })), l = M([]);
404
+ return te(R, {
405
+ radios: l,
406
+ parentProps: r,
407
+ parentContext: t
401
408
  }), () => h("div", {
402
- class: ["farris-input-wrap", u.value]
403
- }, [e.slots.default ? e.slots.default() : o.value.map((r, l) => {
404
- const c = "radio_" + n.id + n.name + r[n.valueField];
409
+ class: ["farris-input-wrap", d.value]
410
+ }, [t.slots.default ? t.slots.default() : n.value.map((i, p) => {
411
+ const s = "radio_" + r.id + r.name + i[r.valueField];
405
412
  return h("div", {
406
413
  class: "custom-control custom-radio"
407
414
  }, [h("input", {
408
415
  type: "radio",
409
416
  class: "custom-control-input",
410
- name: c,
411
- id: c,
412
- value: s(r),
413
- checked: s(r) === t.value,
414
- disabled: n.disabled,
415
- tabindex: n.tabIndex,
416
- onClick: (d) => i(r, d)
417
+ name: s,
418
+ id: s,
419
+ value: a(i),
420
+ checked: a(i) === e.value,
421
+ disabled: r.disabled,
422
+ tabindex: r.tabIndex,
423
+ onClick: (m) => o(i, m)
417
424
  }, null), h("label", {
418
425
  class: "custom-control-label",
419
- for: c
420
- }, [m(r)])]);
426
+ for: s
427
+ }, [c(i)])]);
421
428
  })]);
422
429
  }
423
430
  });
424
- function Me(n, e, t) {
425
- var G;
426
- function o() {
427
- t != null && t.resolveComponentContext && t.resolveComponentContext();
431
+ function Fe(r, t, e) {
432
+ var I;
433
+ function n() {
434
+ e != null && e.resolveComponentContext && e.resolveComponentContext();
428
435
  }
429
- o();
430
- const i = t && t.getStyles && t.getStyles() || "", s = t && t.getDesignerClass && t.getDesignerClass() || "", m = k();
431
- function u() {
432
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
436
+ n();
437
+ const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", c = M();
438
+ function d() {
439
+ return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
433
440
  }
434
- function p() {
441
+ function l() {
435
442
  return !1;
436
443
  }
437
- function r() {
438
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
444
+ function i() {
445
+ return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
439
446
  }
440
- function l() {
441
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
447
+ function p() {
448
+ return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
442
449
  }
443
- function c(y) {
444
- if (!y || !y.value)
450
+ function s(g) {
451
+ if (!g || !g.value)
445
452
  return null;
446
- if (y.value.schema && y.value.schema.type === "component")
447
- return y.value;
448
- const b = k(y == null ? void 0 : y.value.parent), v = c(b);
449
- return v || null;
450
- }
451
- function d(y = e) {
452
- const { componentInstance: b, designerItemElementRef: v } = y;
453
- return !b || !b.value ? null : b.value.canMove ? v : d(y.parent);
454
- }
455
- function f(y) {
456
- return !!t && t.canAccepts(y);
457
- }
458
- function g() {
459
- return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
460
- }
461
- function M() {
462
- }
463
- function T(y, b) {
464
- b && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(b);
465
- }
466
- function w(y) {
467
- const { componentType: b } = y;
468
- let v = N(b, y);
469
- t && t.onResolveNewComponentSchema && (v = t.onResolveNewComponentSchema(y, v));
470
- const F = b.toLowerCase().replace("-", "_");
471
- return v && !v.id && v.type === b && (v.id = `${F}_${Math.random().toString().slice(2, 6)}`), v;
472
- }
473
- function j(y, b) {
474
- const v = String(y.getAttribute("data-controltype")), F = y.getAttribute("data-feature"), z = F ? JSON.parse(F) : {};
475
- z.parentComponentInstance = m.value;
476
- let V = N(v, z);
477
- t && t.onAcceptNewChildElement && (V = t.onAcceptNewChildElement(y, b, V));
478
- const Z = v.toLowerCase().replace("-", "_");
479
- return V && !V.id && V.type === v && (V.id = `${Z}_${Math.random().toString().slice(2, 6)}`), V;
480
- }
481
- function E(y) {
482
- }
483
- function Y(...y) {
484
- if (t && t.getPropsConfig)
485
- return t.getPropsConfig(...y);
486
- }
487
- return m.value = {
488
- canMove: u(),
489
- canSelectParent: p(),
490
- canDelete: r(),
491
- canNested: !l(),
492
- contents: e == null ? void 0 : e.schema.contents,
493
- elementRef: n,
494
- parent: (G = e == null ? void 0 : e.parent) == null ? void 0 : G.componentInstance,
495
- schema: e == null ? void 0 : e.schema,
496
- styles: i,
497
- designerClass: s,
498
- canAccepts: f,
499
- getBelongedComponentInstance: c,
500
- getDraggableDesignItemElement: d,
501
- getDraggingDisplayText: g,
453
+ if (g.value.schema && g.value.schema.type === "component")
454
+ return g.value;
455
+ const b = M(g == null ? void 0 : g.value.parent), C = s(b);
456
+ return C || null;
457
+ }
458
+ function m(g = t) {
459
+ const { componentInstance: b, designerItemElementRef: C } = g;
460
+ return !b || !b.value ? null : b.value.canMove ? C : m(g.parent);
461
+ }
462
+ function y(g) {
463
+ return !!e && e.canAccepts(g);
464
+ }
465
+ function f() {
466
+ return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
467
+ }
468
+ function k() {
469
+ }
470
+ function T(g, b) {
471
+ b && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(b);
472
+ }
473
+ function F(g, b) {
474
+ const { componentType: C } = g;
475
+ let w = U(C, g, b);
476
+ e && e.onResolveNewComponentSchema && (w = e.onResolveNewComponentSchema(g, w));
477
+ const V = C.toLowerCase().replace("-", "_");
478
+ return w && !w.id && w.type === C && (w.id = `${V}_${Math.random().toString().slice(2, 6)}`), w;
479
+ }
480
+ function G(g, b) {
481
+ const C = String(g.getAttribute("data-controltype")), w = g.getAttribute("data-feature"), V = w ? JSON.parse(w) : {};
482
+ V.parentComponentInstance = c.value;
483
+ let S = U(C, V);
484
+ e && e.onAcceptNewChildElement && (S = e.onAcceptNewChildElement(g, b, S));
485
+ const Z = C.toLowerCase().replace("-", "_");
486
+ return S && !S.id && S.type === C && (S.id = `${Z}_${Math.random().toString().slice(2, 6)}`), S;
487
+ }
488
+ function A(g) {
489
+ }
490
+ function Y(...g) {
491
+ if (e && e.getPropsConfig)
492
+ return e.getPropsConfig(...g);
493
+ }
494
+ return c.value = {
495
+ canMove: d(),
496
+ canSelectParent: l(),
497
+ canDelete: i(),
498
+ canNested: !p(),
499
+ contents: t == null ? void 0 : t.schema.contents,
500
+ elementRef: r,
501
+ parent: (I = t == null ? void 0 : t.parent) == null ? void 0 : I.componentInstance,
502
+ schema: t == null ? void 0 : t.schema,
503
+ styles: o,
504
+ designerClass: a,
505
+ canAccepts: y,
506
+ getBelongedComponentInstance: s,
507
+ getDraggableDesignItemElement: m,
508
+ getDraggingDisplayText: f,
502
509
  getPropConfig: Y,
503
- getDragScopeElement: M,
510
+ getDragScopeElement: k,
504
511
  onAcceptMovedChildElement: T,
505
- onAcceptNewChildElement: j,
506
- onChildElementMovedOut: E,
507
- addNewChildComponentSchema: w,
508
- updateDragAndDropRules: o,
509
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || k(!1),
510
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || k(!1)
511
- }, m;
512
+ onAcceptNewChildElement: G,
513
+ onChildElementMovedOut: A,
514
+ addNewChildComponentSchema: F,
515
+ updateDragAndDropRules: n,
516
+ triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || M(!1),
517
+ triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || M(!1)
518
+ }, c;
512
519
  }
513
- class Te {
514
- constructor(e, t) {
515
- C(this, "componentId");
516
- C(this, "viewModelId");
517
- C(this, "eventsEditorUtils");
518
- C(this, "formSchemaUtils");
519
- C(this, "formMetadataConverter");
520
- C(this, "designViewModelUtils");
521
- C(this, "designViewModelField");
522
- C(this, "controlCreatorUtils");
523
- C(this, "designerHostService");
524
- C(this, "schemaService", null);
525
- C(this, "metadataService", null);
526
- C(this, "propertyConfig", {
520
+ class Se {
521
+ constructor(t, e) {
522
+ v(this, "componentId");
523
+ v(this, "viewModelId");
524
+ v(this, "eventsEditorUtils");
525
+ v(this, "formSchemaUtils");
526
+ v(this, "formMetadataConverter");
527
+ v(this, "designViewModelUtils");
528
+ v(this, "designViewModelField");
529
+ v(this, "controlCreatorUtils");
530
+ v(this, "designerHostService");
531
+ v(this, "schemaService", null);
532
+ v(this, "metadataService", null);
533
+ v(this, "propertyConfig", {
527
534
  type: "object",
528
535
  categories: {}
529
536
  });
530
- var o;
531
- 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;
537
+ var n;
538
+ this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((n = this.formSchemaUtils) == null ? void 0 : n.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
532
539
  }
533
540
  getTableInfo() {
534
- var e;
535
- return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
541
+ var t;
542
+ return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
536
543
  }
537
- setDesignViewModelField(e) {
538
- const t = e.binding && e.binding.type === "Form" && e.binding.field;
539
- if (t) {
544
+ setDesignViewModelField(t) {
545
+ const e = t.binding && t.binding.type === "Form" && t.binding.field;
546
+ if (e) {
540
547
  if (!this.designViewModelField) {
541
- const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
542
- this.designViewModelField = o.fields.find((i) => i.id === t);
548
+ const n = this.designViewModelUtils.getDgViewModel(this.viewModelId);
549
+ this.designViewModelField = n.fields.find((o) => o.id === e);
543
550
  }
544
- e.updateOn = this.designViewModelField.updateOn;
551
+ t.updateOn = this.designViewModelField.updateOn;
545
552
  }
546
553
  }
547
- changeFieldEditorType(e, t) {
554
+ changeFieldEditorType(t, e) {
548
555
  }
549
- getBasicPropConfig(e) {
556
+ getBasicPropConfig(t) {
550
557
  return {
551
558
  description: "Basic Information",
552
559
  title: "基本信息",
@@ -565,13 +572,13 @@ class Te {
565
572
  type: "combo-list",
566
573
  textField: "name",
567
574
  valueField: "value",
568
- data: [{ value: e.type, name: a[e.type].name }]
575
+ data: [{ value: t.type, name: u[t.type].name }]
569
576
  }
570
577
  }
571
578
  }
572
579
  };
573
580
  }
574
- getAppearanceConfig(e = null) {
581
+ getAppearanceConfig(t = null) {
575
582
  return {
576
583
  title: "样式",
577
584
  description: "Appearance",
@@ -591,90 +598,105 @@ class Te {
591
598
  }
592
599
  };
593
600
  }
601
+ /**
602
+ *
603
+ * @param propertyId
604
+ * @param componentInstance
605
+ * @returns
606
+ */
607
+ updateElementByParentContainer(t, e) {
608
+ const n = e && e.parent && e.parent.schema;
609
+ if (!n)
610
+ return;
611
+ const o = n.contents.findIndex((c) => c.id === t), a = W(n.contents[o]);
612
+ n.contents.splice(o, 1), n.contents.splice(o, 0, a);
613
+ }
594
614
  }
595
- const D = class D {
615
+ const P = class P {
596
616
  /**
597
617
  * 根据绑定字段类型获取可用的输入类控件
598
618
  */
599
- static getEditorTypesByMDataType(e) {
600
- const t = D.fieldControlTypeMapping[e];
601
- return t || [{ key: "", value: "" }];
619
+ static getEditorTypesByMDataType(t) {
620
+ const e = P.fieldControlTypeMapping[t];
621
+ return e || [{ key: "", value: "" }];
602
622
  }
603
623
  /**
604
624
  * 获取所有输入类控件
605
625
  */
606
626
  static getAllInputTypes() {
607
- const e = [];
608
- for (let t in D.fieldControlTypeMapping)
609
- D.fieldControlTypeMapping[t].forEach((o) => {
610
- e.find((i) => i.key === o.key && i.value === o.value) || e.push({ key: o.key, value: o.value });
627
+ const t = [];
628
+ for (let e in P.fieldControlTypeMapping)
629
+ P.fieldControlTypeMapping[e].forEach((n) => {
630
+ t.find((o) => o.key === n.key && o.value === n.value) || t.push({ key: n.key, value: n.value });
611
631
  });
612
- return e;
632
+ return t;
613
633
  }
614
634
  };
615
635
  /**
616
636
  * <字段类型,可配置的控件类型列表>的映射
617
637
  */
618
- C(D, "fieldControlTypeMapping", {
638
+ v(P, "fieldControlTypeMapping", {
619
639
  String: [
620
- { key: a["input-group"].type, value: a["input-group"].name },
621
- { key: a.lookup.type, value: a.lookup.name },
622
- { key: a["date-picker"].type, value: a["date-picker"].name },
623
- { key: a["check-box"].type, value: a["check-box"].name },
624
- { key: a["radio-group"].type, value: a["radio-group"].name },
625
- { key: a["combo-list"].type, value: a["combo-list"].name },
626
- { key: a.textarea.type, value: a.textarea.name }
640
+ { key: u["input-group"].type, value: u["input-group"].name },
641
+ { key: u.lookup.type, value: u.lookup.name },
642
+ { key: u["date-picker"].type, value: u["date-picker"].name },
643
+ { key: u["check-box"].type, value: u["check-box"].name },
644
+ { key: u["radio-group"].type, value: u["radio-group"].name },
645
+ { key: u["combo-list"].type, value: u["combo-list"].name },
646
+ { key: u.textarea.type, value: u.textarea.name }
627
647
  ],
628
648
  Text: [
629
- { key: a.textarea.type, value: a.textarea.name },
630
- { key: a.lookup.type, value: a.lookup.name }
649
+ { key: u.textarea.type, value: u.textarea.name },
650
+ { key: u.lookup.type, value: u.lookup.name }
631
651
  ],
632
652
  Decimal: [
633
- { key: a["number-spinner"].type, value: a["number-spinner"].name }
653
+ { key: u["number-spinner"].type, value: u["number-spinner"].name }
634
654
  ],
635
655
  Integer: [
636
- { key: a["number-spinner"].type, value: a["number-spinner"].name }
656
+ { key: u["number-spinner"].type, value: u["number-spinner"].name }
637
657
  ],
638
658
  Number: [
639
- { key: a["number-spinner"].type, value: a["number-spinner"].name }
659
+ { key: u["number-spinner"].type, value: u["number-spinner"].name }
640
660
  ],
641
661
  BigNumber: [
642
- { key: a["number-spinner"].type, value: a["number-spinner"].name }
662
+ { key: u["number-spinner"].type, value: u["number-spinner"].name }
643
663
  ],
644
664
  Date: [
645
- { key: a["date-picker"].type, value: a["date-picker"].name }
665
+ { key: u["date-picker"].type, value: u["date-picker"].name }
646
666
  ],
647
667
  DateTime: [
648
- { key: a["date-picker"].type, value: a["date-picker"].name }
668
+ { key: u["date-picker"].type, value: u["date-picker"].name }
649
669
  ],
650
670
  Boolean: [
651
- { key: a.switch.type, value: a.switch.name },
652
- { key: a["check-box"].type, value: a["check-box"].name }
671
+ { key: u.switch.type, value: u.switch.name },
672
+ { key: u["check-box"].type, value: u["check-box"].name }
653
673
  ],
654
674
  Enum: [
655
- { key: a["combo-list"].type, value: a["combo-list"].name },
656
- { key: a["radio-group"].type, value: a["radio-group"].name }
675
+ { key: u["combo-list"].type, value: u["combo-list"].name },
676
+ { key: u["radio-group"].type, value: u["radio-group"].name }
657
677
  ],
658
678
  Object: [
659
- { key: a.lookup.type, value: a.lookup.name },
660
- { key: a["combo-list"].type, value: a["combo-list"].name },
661
- { key: a["radio-group"].type, value: a["radio-group"].name }
679
+ { key: u.lookup.type, value: u.lookup.name },
680
+ { key: u["combo-list"].type, value: u["combo-list"].name },
681
+ { key: u["radio-group"].type, value: u["radio-group"].name }
662
682
  ]
663
683
  });
664
- let B = D;
665
- const we = k(0);
666
- class Ve extends Te {
667
- constructor(e, t) {
668
- super(e, t);
684
+ let D = P;
685
+ const Pe = M(0);
686
+ class Ee extends Se {
687
+ constructor(e, n) {
688
+ super(e, n);
689
+ v(this, "responseLayoutEditorFunction");
690
+ this.responseLayoutEditorFunction = oe(this.formSchemaUtils);
669
691
  }
670
- getPropertyConfig(e, t) {
671
- return this.propertyConfig.categories.basic = this.getBasicProperties(e, t), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
692
+ getPropertyConfig(e, n) {
693
+ return this.propertyConfig.categories.basic = this.getBasicProperties(e, n), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, n), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
672
694
  }
673
- getBasicProperties(e, t) {
674
- var m;
695
+ getBasicProperties(e, n) {
696
+ var d;
675
697
  var o = this;
676
698
  this.setDesignViewModelField(e);
677
- const i = this.formSchemaUtils.getFormMetadataBasicInfo(), s = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
699
+ const a = this.formSchemaUtils.getFormMetadataBasicInfo(), c = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
678
700
  return {
679
701
  description: "Basic Information",
680
702
  title: "基本信息",
@@ -686,8 +708,8 @@ class Ve extends Te {
686
708
  readonly: !0
687
709
  },
688
710
  type: {
689
- description: "组件类型",
690
- title: "控件类型",
711
+ description: "编辑器类型",
712
+ title: "编辑器类型",
691
713
  type: "string",
692
714
  refreshPanelAfterChanged: !0,
693
715
  $converter: "/converter/change-editor.converter",
@@ -696,7 +718,7 @@ class Ve extends Te {
696
718
  textField: "value",
697
719
  valueField: "key",
698
720
  editable: !1,
699
- data: o.designViewModelField ? B.getEditorTypesByMDataType((m = o.designViewModelField.type) == null ? void 0 : m.name) : B.getAllInputTypes()
721
+ data: o.designViewModelField ? D.getEditorTypesByMDataType((d = o.designViewModelField.type) == null ? void 0 : d.name) : D.getAllInputTypes()
700
722
  }
701
723
  },
702
724
  label: {
@@ -713,7 +735,7 @@ class Ve extends Te {
713
735
  bindingType: { enable: !1 },
714
736
  editorParams: {
715
737
  propertyData: e,
716
- formBasicInfo: i
738
+ formBasicInfo: a
717
739
  },
718
740
  columns: [
719
741
  { field: "name", title: "字段名称" },
@@ -721,22 +743,27 @@ class Ve extends Te {
721
743
  { field: "fieldType", title: "字段类型" }
722
744
  ],
723
745
  textField: "bindingField",
724
- data: s
746
+ data: c
725
747
  }
726
748
  }
727
749
  },
728
- setPropertyRelates(u, p) {
729
- if (u)
730
- switch (u && u.propertyID) {
750
+ setPropertyRelates(l, i) {
751
+ if (l)
752
+ switch (l && l.propertyID) {
731
753
  case "type": {
732
- o.changeControlType(e, u, t);
754
+ o.changeControlType(e, l, n);
755
+ break;
756
+ }
757
+ case "label": {
758
+ l.needRefreshControlTree = !0;
733
759
  break;
734
760
  }
735
761
  }
736
762
  }
737
763
  };
738
764
  }
739
- getAppearanceProperties(e) {
765
+ getAppearanceProperties(e, n) {
766
+ var o = this;
740
767
  return {
741
768
  title: "样式",
742
769
  description: "Appearance",
@@ -757,12 +784,25 @@ class Ve extends Te {
757
784
  description: "响应式列宽",
758
785
  title: "响应式列宽",
759
786
  type: "boolean",
760
- visible: !1,
787
+ visible: !0,
788
+ // 这个属性,标记当属性变更得时候触发重新更新属性
789
+ refreshPanelAfterChanged: !0,
761
790
  editor: {
762
- type: "response-layout-editor-setting"
763
- },
764
- $converter: "/converter/response-form-layout.converter"
791
+ type: "response-layout-editor-setting",
792
+ initialState: o.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, o.componentId)
793
+ }
765
794
  }
795
+ },
796
+ setPropertyRelates(a, c) {
797
+ if (a)
798
+ switch (a && a.propertyID) {
799
+ case "responseLayout":
800
+ o.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(a.propertyValue, o.componentId || e.id), o.updateUnifiedLayoutAfterResponseLayoutChanged(o.componentId), o.updateElementByParentContainer(e.id, n), delete e.responseLayout;
801
+ break;
802
+ case "class":
803
+ o.updateUnifiedLayoutAfterControlChanged(a.propertyValue, e.id, this.componentId), o.updateElementByParentContainer(e.id, n);
804
+ break;
805
+ }
766
806
  }
767
807
  };
768
808
  }
@@ -774,44 +814,44 @@ class Ve extends Te {
774
814
  * @param propertyData 控件DOM属性
775
815
  * @param newControlType 新控件类型
776
816
  */
777
- changeControlType(e, t, o) {
778
- var r, l, c, d;
779
- const i = t.propertyValue, s = o && o.parent && o.parent.schema;
780
- if (!s)
817
+ changeControlType(e, n, o) {
818
+ var p, s, m, y;
819
+ const a = n.propertyValue, c = o && o.parent && o.parent.schema;
820
+ if (!c)
781
821
  return;
782
- const m = s.contents.findIndex((f) => f.id === e.id), u = s.contents[m];
783
- let p;
822
+ const d = c.contents.findIndex((f) => f.id === e.id), l = c.contents[d];
823
+ let i;
784
824
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
785
825
  editor: {
786
- $type: i
826
+ $type: a
787
827
  },
788
828
  name: this.designViewModelField.name,
789
829
  require: this.designViewModelField.require,
790
830
  readonly: this.designViewModelField.readonly
791
- }, !1), p = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, i)), p || (p = q("form-group") || {}, p.editor = q(i) || {}, delete p.editor.id, delete p.editor.binding, delete p.editor.appearance), Object.assign(p, {
792
- id: u.id,
793
- appearance: u.appearance,
794
- size: u.size,
795
- label: u.label,
796
- binding: u.binding,
797
- visible: u.visible
798
- }), Object.assign(p.editor, {
799
- isTextArea: p.isTextArea && u.isTextArea,
800
- placeholder: (r = u.editor) == null ? void 0 : r.placeholder,
801
- holdPlace: (l = u.editor) == null ? void 0 : l.holdPlace,
802
- readonly: (c = u.editor) == null ? void 0 : c.readonly,
803
- require: (d = u.editor) == null ? void 0 : d.require
804
- }), s.contents.splice(m, 1), s.contents.splice(m, 0, p), o.schema = Object.assign(u, p), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
831
+ }, !1), i = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), i || (i = j("form-group") || {}, i.editor = j(a) || {}, delete i.editor.id, delete i.editor.binding, delete i.editor.appearance), Object.assign(i, {
832
+ id: l.id,
833
+ appearance: l.appearance,
834
+ size: l.size,
835
+ label: l.label,
836
+ binding: l.binding,
837
+ visible: l.visible
838
+ }), Object.assign(i.editor, {
839
+ isTextArea: i.isTextArea && l.isTextArea,
840
+ placeholder: (p = l.editor) == null ? void 0 : p.placeholder,
841
+ holdPlace: (s = l.editor) == null ? void 0 : s.holdPlace,
842
+ readonly: (m = l.editor) == null ? void 0 : m.readonly,
843
+ require: (y = l.editor) == null ? void 0 : y.require
844
+ }), c.contents.splice(d, 1), c.contents.splice(d, 0, i), o.schema = Object.assign(l, i), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
805
845
  (f) => f.classList.remove("dgComponentSelected")
806
- ), we.value++;
846
+ ), Pe.value++;
807
847
  }
808
- getComponentConfig(e, t = {}, o = {}) {
809
- const i = Object.assign({
810
- description: "组件信息",
811
- title: "组件信息",
848
+ getComponentConfig(e, n = {}, o = {}) {
849
+ const a = Object.assign({
850
+ description: "编辑器",
851
+ title: "编辑器",
812
852
  type: "input-group",
813
853
  $converter: "/converter/property-editor.converter"
814
- }, t), s = Object.assign({
854
+ }, n), c = Object.assign({
815
855
  readonly: {
816
856
  description: "",
817
857
  title: "只读",
@@ -833,15 +873,63 @@ class Ve extends Te {
833
873
  type: "string"
834
874
  }
835
875
  }, o);
836
- return { ...i, properties: { ...s } };
876
+ return { ...a, properties: { ...c } };
877
+ }
878
+ /**
879
+ * 修改某一输入控件的样式后更新Form的统一布局配置
880
+ * @param controlClass 控件样式
881
+ * @param controlId 控件Id
882
+ * @param componentId 控件所在组件id
883
+ */
884
+ updateUnifiedLayoutAfterControlChanged(e, n, o) {
885
+ const a = e.split(" ");
886
+ let c = a.find((s) => /^col-([1-9]|10|11|12)$/.test(s)), d = a.find((s) => /^col-md-([1-9]|10|11|12)$/.test(s)), l = a.find((s) => /^col-xl-([1-9]|10|11|12)$/.test(s)), i = a.find((s) => /^col-el-([1-9]|10|11|12)$/.test(s));
887
+ c = c || "col-12", d = d || "col-md-" + c.replace("col-", ""), l = l || "col-xl-" + d.replace("col-md-", ""), i = i || "col-el-" + l.replace("col-xl-", "");
888
+ const p = {
889
+ id: n,
890
+ columnInSM: parseInt(c.replace("col-", ""), 10),
891
+ columnInMD: parseInt(d.replace("col-md-", ""), 10),
892
+ columnInLG: parseInt(l.replace("col-xl-", ""), 10),
893
+ columnInEL: parseInt(i.replace("col-el-", ""), 10)
894
+ };
895
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(o, p);
896
+ }
897
+ /**
898
+ * 修改控件布局配置后更新Form统一布局配置
899
+ * @param componentId 组件Id
900
+ * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
901
+ */
902
+ updateUnifiedLayoutAfterResponseLayoutChanged(e, n) {
903
+ const { formNode: o } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
904
+ if (!o || !o.unifiedLayout)
905
+ return;
906
+ const a = [];
907
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(o, a, 1), n) {
908
+ const f = a.find((k) => k.id === n.id);
909
+ Object.assign(f || {}, n);
910
+ }
911
+ const c = a.map((f) => f.columnInSM), d = a.map((f) => f.columnInMD), l = a.map((f) => f.columnInLG), i = a.map((f) => f.columnInEL), p = this.checkIsUniqueColumn(c) ? c[0] : null, s = this.checkIsUniqueColumn(d) ? d[0] : null, m = this.checkIsUniqueColumn(l) ? l[0] : null, y = this.checkIsUniqueColumn(i) ? i[0] : null;
912
+ Object.assign(o.unifiedLayout, {
913
+ uniqueColClassInSM: p,
914
+ uniqueColClassInMD: s,
915
+ uniqueColClassInLG: m,
916
+ uniqueColClassInEL: y
917
+ });
918
+ }
919
+ /**
920
+ * 校验宽度样式值是否一致
921
+ */
922
+ checkIsUniqueColumn(e) {
923
+ const n = new Set(e);
924
+ return Array.from(n).length === 1;
837
925
  }
838
926
  }
839
- class De extends Ve {
840
- constructor(e, t) {
841
- super(e, t);
927
+ class Ve extends Ee {
928
+ constructor(t, e) {
929
+ super(t, e);
842
930
  }
843
- getEditorProperties(e) {
844
- return this.getComponentConfig(e, { type: "number-spinner" }, {
931
+ getEditorProperties(t) {
932
+ return this.getComponentConfig(t, { type: "number-spinner" }, {
845
933
  readonly: {
846
934
  visible: !1
847
935
  },
@@ -872,118 +960,118 @@ class De extends Ve {
872
960
  });
873
961
  }
874
962
  }
875
- function Pe(n, e) {
876
- n.schema;
877
- const t = k(!0), o = k(!0);
878
- function i(c) {
963
+ function Be(r, t) {
964
+ r.schema;
965
+ const e = M(!0), n = M(!0);
966
+ function o(s) {
879
967
  return !1;
880
968
  }
881
- function s() {
969
+ function a() {
882
970
  return !1;
883
971
  }
884
- function m() {
972
+ function c() {
885
973
  return !1;
886
974
  }
887
- function u() {
975
+ function d() {
888
976
  return !0;
889
977
  }
890
- function p(c) {
978
+ function l(s) {
891
979
  }
892
- function r() {
980
+ function i() {
893
981
  }
894
- function l(c) {
982
+ function p(s) {
895
983
  return null;
896
984
  }
897
985
  return {
898
- canAccepts: i,
899
- checkCanDeleteComponent: s,
900
- checkCanMoveComponent: m,
901
- hideNestedPaddingInDesginerView: u,
902
- onAcceptMovedChildElement: p,
903
- resolveComponentContext: r,
904
- triggerBelongedComponentToMoveWhenMoved: t,
905
- triggerBelongedComponentToDeleteWhenDeleted: o,
906
- getPropsConfig: l
986
+ canAccepts: o,
987
+ checkCanDeleteComponent: a,
988
+ checkCanMoveComponent: c,
989
+ hideNestedPaddingInDesginerView: d,
990
+ onAcceptMovedChildElement: l,
991
+ resolveComponentContext: i,
992
+ triggerBelongedComponentToMoveWhenMoved: e,
993
+ triggerBelongedComponentToDeleteWhenDeleted: n,
994
+ getPropsConfig: p
907
995
  };
908
996
  }
909
- function Fe(n, e) {
997
+ function De(r, t) {
910
998
  const {
911
- canAccepts: t,
912
- checkCanDeleteComponent: o,
913
- checkCanMoveComponent: i,
914
- hideNestedPaddingInDesginerView: s,
915
- onAcceptMovedChildElement: m,
916
- resolveComponentContext: u,
917
- triggerBelongedComponentToMoveWhenMoved: p,
918
- triggerBelongedComponentToDeleteWhenDeleted: r
919
- } = Pe(n), l = n.schema;
920
- function c(d, f) {
921
- return new De(d, e).getPropertyConfig(l, f);
999
+ canAccepts: e,
1000
+ checkCanDeleteComponent: n,
1001
+ checkCanMoveComponent: o,
1002
+ hideNestedPaddingInDesginerView: a,
1003
+ onAcceptMovedChildElement: c,
1004
+ resolveComponentContext: d,
1005
+ triggerBelongedComponentToMoveWhenMoved: l,
1006
+ triggerBelongedComponentToDeleteWhenDeleted: i
1007
+ } = Be(r), p = r.schema;
1008
+ function s(m, y) {
1009
+ return new Ve(m, t).getPropertyConfig(p, y);
922
1010
  }
923
1011
  return {
924
- canAccepts: t,
925
- checkCanDeleteComponent: o,
926
- checkCanMoveComponent: i,
927
- hideNestedPaddingInDesginerView: s,
928
- onAcceptMovedChildElement: m,
929
- resolveComponentContext: u,
930
- triggerBelongedComponentToMoveWhenMoved: p,
931
- triggerBelongedComponentToDeleteWhenDeleted: r,
932
- getPropsConfig: c
1012
+ canAccepts: e,
1013
+ checkCanDeleteComponent: n,
1014
+ checkCanMoveComponent: o,
1015
+ hideNestedPaddingInDesginerView: a,
1016
+ onAcceptMovedChildElement: c,
1017
+ resolveComponentContext: d,
1018
+ triggerBelongedComponentToMoveWhenMoved: l,
1019
+ triggerBelongedComponentToDeleteWhenDeleted: i,
1020
+ getPropsConfig: s
933
1021
  };
934
1022
  }
935
- const Se = /* @__PURE__ */ O({
1023
+ const Ae = /* @__PURE__ */ N({
936
1024
  name: "FRadioGroupDesign",
937
- props: U,
1025
+ props: O,
938
1026
  emits: ["changeValue", "update:modelValue"],
939
- setup(n, e) {
940
- const t = k(n.modelValue), {
941
- enumData: o,
942
- onClickRadio: i,
943
- getValue: s,
944
- getText: m
945
- } = Q(n, e, t), u = S(() => ({
946
- "farris-checkradio-hor": n.horizontal
947
- })), p = k(), r = A("designer-host-service"), l = A("design-item-context"), c = Fe(l, r), d = Me(p, l, c);
948
- return W(() => {
949
- p.value.componentInstance = d;
950
- }), e.expose(d.value), () => h("div", {
951
- class: ["farris-input-wrap", u.value],
952
- ref: p
953
- }, [o.value.map((f, g) => {
954
- const M = "radio_" + n.name + g;
1027
+ setup(r, t) {
1028
+ const e = M(r.modelValue), {
1029
+ enumData: n,
1030
+ onClickRadio: o,
1031
+ getValue: a,
1032
+ getText: c
1033
+ } = Q(r, t, e), d = B(() => ({
1034
+ "farris-checkradio-hor": r.horizontal
1035
+ })), l = M(), i = L("designer-host-service"), p = L("design-item-context"), s = De(p, i), m = Fe(l, p, s);
1036
+ return z(() => {
1037
+ l.value.componentInstance = m;
1038
+ }), t.expose(m.value), () => h("div", {
1039
+ class: ["farris-input-wrap", d.value],
1040
+ ref: l
1041
+ }, [n.value.map((y, f) => {
1042
+ const k = "radio_" + r.name + f;
955
1043
  return h("div", {
956
1044
  class: "custom-control custom-radio"
957
1045
  }, [h("input", {
958
1046
  type: "radio",
959
1047
  class: "custom-control-input",
960
- name: n.name,
961
- id: M,
962
- value: s(f),
963
- checked: s(f) === t.value,
964
- disabled: n.disabled,
965
- tabindex: n.tabIndex,
966
- onClick: (T) => i(f, T)
1048
+ name: r.name,
1049
+ id: k,
1050
+ value: a(y),
1051
+ checked: a(y) === e.value,
1052
+ disabled: r.disabled,
1053
+ tabindex: r.tabIndex,
1054
+ onClick: (T) => o(y, T)
967
1055
  }, null), h("label", {
968
1056
  class: "custom-control-label",
969
- for: M
970
- }, [m(f)])]);
1057
+ for: k
1058
+ }, [c(y)])]);
971
1059
  })]);
972
1060
  }
973
1061
  });
974
- P.install = (n) => {
975
- n.component(P.name, P), n.component(L.name, L);
1062
+ E.install = (r) => {
1063
+ r.component(E.name, E), r.component(x.name, x);
976
1064
  };
977
- P.register = (n, e, t, o) => {
978
- n["radio-group"] = P, e["radio-group"] = X;
1065
+ E.register = (r, t, e, n) => {
1066
+ r["radio-group"] = E, t["radio-group"] = J;
979
1067
  };
980
- P.registerDesigner = (n, e, t) => {
981
- n["radio-group"] = Se, e["radio-group"] = X;
1068
+ E.registerDesigner = (r, t, e) => {
1069
+ r["radio-group"] = Ae, t["radio-group"] = J;
982
1070
  };
983
1071
  export {
984
- P as RadioGroup,
985
- P as default,
986
- X as propsResolver,
987
- U as radioGroupProps,
988
- ne as radioProps
1072
+ E as RadioGroup,
1073
+ E as default,
1074
+ J as propsResolver,
1075
+ O as radioGroupProps,
1076
+ re as radioProps
989
1077
  };