@farris/ui-vue 1.3.0 → 1.3.1

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 (201) hide show
  1. package/components/accordion/index.esm.js +1 -1
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +472 -366
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +1 -1
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +472 -480
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +225 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +615 -517
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +325 -333
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +578 -472
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +49 -49
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/common/index.esm.js +832 -722
  20. package/components/common/index.umd.cjs +1 -1
  21. package/components/component/index.esm.js +303 -981
  22. package/components/component/index.umd.cjs +1 -1
  23. package/components/condition/index.esm.js +8 -8
  24. package/components/condition/index.umd.cjs +1 -1
  25. package/components/content-container/index.esm.js +335 -1002
  26. package/components/content-container/index.umd.cjs +1 -1
  27. package/components/data-grid/index.esm.js +4429 -4312
  28. package/components/data-grid/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +3037 -3020
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +2216 -2119
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.css +1 -1
  34. package/components/designer-canvas/index.esm.js +914 -883
  35. package/components/designer-canvas/index.umd.cjs +1 -1
  36. package/components/dropdown/index.esm.js +223 -231
  37. package/components/dropdown/index.umd.cjs +2 -2
  38. package/components/dynamic-form/index.esm.js +1691 -2187
  39. package/components/dynamic-form/index.umd.cjs +1 -1
  40. package/components/dynamic-resolver/index.esm.js +143 -136
  41. package/components/dynamic-resolver/index.umd.cjs +1 -1
  42. package/components/events-editor/index.esm.js +250 -258
  43. package/components/events-editor/index.umd.cjs +1 -1
  44. package/components/expression-editor/index.esm.js +1 -1
  45. package/components/expression-editor/index.umd.cjs +1 -1
  46. package/components/external-container/index.esm.js +2672 -3438
  47. package/components/external-container/index.umd.cjs +1 -1
  48. package/components/field-selector/index.esm.js +2965 -2970
  49. package/components/field-selector/index.umd.cjs +1 -1
  50. package/components/filter-bar/index.esm.js +1650 -1602
  51. package/components/filter-bar/index.umd.cjs +1 -1
  52. package/components/flow-canvas/index.css +1 -1
  53. package/components/flow-canvas/index.esm.js +684 -675
  54. package/components/flow-canvas/index.umd.cjs +1 -1
  55. package/components/image-cropper/index.esm.js +453 -461
  56. package/components/image-cropper/index.umd.cjs +1 -1
  57. package/components/input-group/index.esm.js +604 -507
  58. package/components/input-group/index.umd.cjs +1 -1
  59. package/components/layout/index.esm.js +402 -378
  60. package/components/layout/index.umd.cjs +1 -1
  61. package/components/list-nav/index.esm.js +348 -1019
  62. package/components/list-nav/index.umd.cjs +1 -1
  63. package/components/list-view/index.esm.js +1658 -1666
  64. package/components/list-view/index.umd.cjs +1 -1
  65. package/components/lookup/index.esm.js +5209 -5088
  66. package/components/lookup/index.umd.cjs +1 -1
  67. package/components/mapping-editor/index.esm.js +4329 -4213
  68. package/components/mapping-editor/index.umd.cjs +1 -1
  69. package/components/nav/index.esm.js +905 -1357
  70. package/components/nav/index.umd.cjs +3 -3
  71. package/components/number-range/index.esm.js +517 -420
  72. package/components/number-range/index.umd.cjs +1 -1
  73. package/components/number-spinner/index.esm.js +588 -491
  74. package/components/number-spinner/index.umd.cjs +1 -1
  75. package/components/order/index.esm.js +1376 -1965
  76. package/components/order/index.umd.cjs +1 -1
  77. package/components/page-footer/index.esm.js +1 -1
  78. package/components/page-footer/index.umd.cjs +1 -1
  79. package/components/page-header/index.esm.js +1073 -1905
  80. package/components/page-header/index.umd.cjs +1 -1
  81. package/components/pagination/index.esm.js +809 -1237
  82. package/components/pagination/index.umd.cjs +1 -1
  83. package/components/progress/index.esm.js +198 -206
  84. package/components/progress/index.umd.cjs +3 -3
  85. package/components/property-editor/index.esm.js +1297 -1200
  86. package/components/property-editor/index.umd.cjs +2 -2
  87. package/components/property-panel/index.esm.js +609 -507
  88. package/components/property-panel/index.umd.cjs +1 -1
  89. package/components/query-solution/index.esm.js +3391 -3758
  90. package/components/query-solution/index.umd.cjs +1 -1
  91. package/components/radio-button/index.esm.js +1 -1
  92. package/components/radio-button/index.umd.cjs +1 -1
  93. package/components/radio-group/index.esm.js +544 -447
  94. package/components/radio-group/index.umd.cjs +1 -1
  95. package/components/rate/index.esm.js +247 -255
  96. package/components/rate/index.umd.cjs +1 -1
  97. package/components/response-layout/index.esm.js +146 -154
  98. package/components/response-layout/index.umd.cjs +1 -1
  99. package/components/response-layout-editor/index.esm.js +700 -675
  100. package/components/response-layout-editor/index.umd.cjs +1 -1
  101. package/components/response-toolbar/index.esm.js +956 -1786
  102. package/components/response-toolbar/index.umd.cjs +1 -1
  103. package/components/schema-selector/index.esm.js +4963 -5617
  104. package/components/schema-selector/index.umd.cjs +2 -2
  105. package/components/search-box/index.esm.js +158 -161
  106. package/components/search-box/index.umd.cjs +1 -1
  107. package/components/section/index.esm.js +436 -1124
  108. package/components/section/index.umd.cjs +1 -1
  109. package/components/smoke-detector/index.esm.js +92 -100
  110. package/components/smoke-detector/index.umd.cjs +1 -1
  111. package/components/splitter/index.esm.js +571 -1210
  112. package/components/splitter/index.umd.cjs +1 -1
  113. package/components/splitter/style.js +2 -0
  114. package/components/step/index.esm.js +239 -247
  115. package/components/step/index.umd.cjs +1 -1
  116. package/components/switch/index.esm.js +445 -348
  117. package/components/switch/index.umd.cjs +1 -1
  118. package/components/tabs/index.esm.js +2278 -3031
  119. package/components/tabs/index.umd.cjs +1 -1
  120. package/components/tags/index.esm.js +311 -319
  121. package/components/tags/index.umd.cjs +1 -1
  122. package/components/text/index.esm.js +215 -223
  123. package/components/text/index.umd.cjs +1 -1
  124. package/components/textarea/index.esm.js +468 -371
  125. package/components/textarea/index.umd.cjs +1 -1
  126. package/components/time-picker/index.esm.js +1271 -1174
  127. package/components/time-picker/index.umd.cjs +1 -1
  128. package/components/transfer/index.esm.js +469 -477
  129. package/components/transfer/index.umd.cjs +1 -1
  130. package/components/tree-grid/index.esm.js +3060 -3065
  131. package/components/tree-grid/index.umd.cjs +1 -1
  132. package/components/tree-view/index.esm.js +2476 -2481
  133. package/components/tree-view/index.umd.cjs +1 -1
  134. package/components/uploader/index.esm.js +374 -382
  135. package/components/uploader/index.umd.cjs +2 -2
  136. package/components/verify-detail/index.esm.js +248 -256
  137. package/components/verify-detail/index.umd.cjs +1 -1
  138. package/components/video/index.esm.js +414 -1093
  139. package/components/video/index.umd.cjs +1 -1
  140. package/components/weather/index.esm.js +498 -506
  141. package/components/weather/index.umd.cjs +5 -5
  142. package/farris.all.esm.js +20216 -21844
  143. package/farris.all.umd.cjs +9 -9
  144. package/index.css +1 -1
  145. package/package.json +1 -1
  146. package/types/common/directive/area-response.d.ts +10 -0
  147. package/types/common/index.d.ts +8 -0
  148. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  149. package/types/common/utils/resolve-field.d.ts +2 -0
  150. package/types/common/utils/use-class.d.ts +7 -0
  151. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  152. package/types/condition/src/types.d.ts +2 -1
  153. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  154. package/types/data-grid/index.d.ts +8 -5
  155. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  156. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  157. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  158. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  159. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  160. package/types/data-view/composition/types.d.ts +7 -9
  161. package/types/designer-canvas/index.d.ts +2 -1
  162. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  163. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  164. package/types/designer-canvas/src/composition/types.d.ts +1 -2
  165. package/types/designer-canvas/src/types.d.ts +2 -1
  166. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  167. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  168. package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
  169. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  170. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  171. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  172. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  173. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  174. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  175. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  176. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  177. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  178. package/types/property-panel/index.d.ts +2 -1
  179. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  180. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  182. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  183. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  184. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  185. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  186. package/types/query-solution/src/solutions.d.ts +108 -509
  187. package/types/response-layout-editor/index.d.ts +3 -1
  188. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  189. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  190. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  191. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  192. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  193. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  194. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  195. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  196. package/types/tree-grid/index.d.ts +3 -3
  197. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  198. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  199. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  200. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  201. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
@@ -1,12 +1,11 @@
1
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 = {
2
+ var x = (i, t, e) => t in i ? H(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var g = (i, t, e) => x(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { defineComponent as N, inject as L, onMounted as j, createVNode as M, Fragment as R, computed as V, ref as F, provide as K } from "vue";
5
+ import { useCheck as ee } from "../common/index.esm.js";
6
+ import { isPlainObject as $, cloneDeep as q } from "lodash-es";
7
+ import { DgControl as W } from "../designer-canvas/index.esm.js";
8
+ const te = {
10
9
  value: { type: String, default: "" },
11
10
  /** 值 */
12
11
  modelValue: { type: String, default: "" },
@@ -16,150 +15,150 @@ const re = {
16
15
  label: { type: String, default: "" },
17
16
  /** 标识 */
18
17
  id: { type: String, default: "" }
19
- }, R = Symbol("radioGroupContext"), x = /* @__PURE__ */ N({
18
+ }, z = Symbol("radioGroupContext"), O = /* @__PURE__ */ N({
20
19
  name: "FRadio",
21
- props: re,
20
+ props: te,
22
21
  emits: ["update:value"],
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(() => {
22
+ setup(i, t) {
23
+ const e = L(z, null), {
24
+ buttonClass: o,
25
+ checked: r,
26
+ disabled: l,
27
+ name: d,
28
+ tagClass: f,
29
+ shouldRenderButton: p,
30
+ shouldRenderNative: a,
31
+ shouldRenderTag: s,
32
+ onClickRadio: n
33
+ } = ee(i, t, e == null ? void 0 : e.parentProps, e == null ? void 0 : e.parentContext);
34
+ return j(() => {
36
35
  }), () => {
37
- var m, y, f, k, T, F;
38
- return h(ee, null, [l.value && h("div", {
39
- class: n.value,
36
+ var c, y, u, h, b, C;
37
+ return M(R, null, [p.value && M("div", {
38
+ class: o.value,
40
39
  style: "border-radius:0;border: 1px solid #E8EBF2;",
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
45
- }, [h("div", {
40
+ onClick: n
41
+ }, [(y = (c = t.slots).default) == null ? void 0 : y.call(c)]), s.value && M("div", {
42
+ class: f.value,
43
+ onClick: n
44
+ }, [M("div", {
46
45
  class: "title"
47
- }, [(k = (f = t.slots).default) == null ? void 0 : k.call(f)]), h("div", {
46
+ }, [(h = (u = t.slots).default) == null ? void 0 : h.call(u)]), M("div", {
48
47
  class: "tip"
49
- }, null), h("span", {
48
+ }, null), M("span", {
50
49
  class: "f-icon f-icon-check f-radio-icon"
51
- }, null)]), i.value && h("div", {
50
+ }, null)]), a.value && M("div", {
52
51
  class: "custom-control custom-radio",
53
- onClick: s
54
- }, [h("input", {
52
+ onClick: n
53
+ }, [M("input", {
55
54
  type: "radio",
56
55
  class: "custom-control-input",
57
- name: c.value,
58
- id: r.id,
59
- value: r.value,
60
- checked: o.value,
61
- disabled: a.value
62
- }, null), h("div", {
56
+ name: d.value,
57
+ id: i.id,
58
+ value: i.value,
59
+ checked: r.value,
60
+ disabled: l.value
61
+ }, null), M("div", {
63
62
  class: "custom-control-label"
64
- }, [(F = (T = t.slots).default) == null ? void 0 : F.call(T)])])]);
63
+ }, [(C = (b = t.slots).default) == null ? void 0 : C.call(b)])])]);
65
64
  };
66
65
  }
67
66
  });
68
- function ie(r, t, e) {
67
+ function ne(i, t, e) {
69
68
  return t;
70
69
  }
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;
70
+ const X = {}, _ = {};
71
+ function U(i) {
72
+ const { properties: t, title: e, ignore: o } = i, r = o && Array.isArray(o), l = Object.keys(t).reduce((d, f) => ((!r || !o.find((p) => p == f)) && (d[f] = t[f].type === "object" && t[f].properties ? U(t[f]) : q(t[f].default)), d), {});
73
+ return e && (!r || !o.find((d) => d == "id")) && (l.id = `${e}-${Date.now()}`), l;
75
74
  }
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;
75
+ function J(i, t = {}, e) {
76
+ const o = X[i];
77
+ if (o) {
78
+ let r = U(o);
79
+ const l = _[i];
80
+ return r = l ? l({ getSchemaByType: J }, r, t, e) : r, r;
82
81
  }
83
82
  return null;
84
83
  }
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;
84
+ function oe(i, t) {
85
+ const e = U(t);
86
+ return Object.keys(i).reduce((o, r) => (o[r] && $(o[r]) && $(i[r]) ? Object.assign(o[r], i[r]) : o[r] = i[r], o), e), e;
88
87
  }
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];
88
+ function re(i, t) {
89
+ return Object.keys(i).filter((o) => i[o] != null).reduce((o, r) => {
90
+ if (t.has(r)) {
91
+ const l = t.get(r);
92
+ if (typeof l == "string")
93
+ o[l] = i[r];
95
94
  else {
96
- const c = a(o, r[o], r);
97
- Object.assign(n, c);
95
+ const d = l(r, i[r], i);
96
+ Object.assign(o, d);
98
97
  }
99
98
  } else
100
- n[o] = r[o];
101
- return n;
99
+ o[r] = i[r];
100
+ return o;
102
101
  }, {});
103
102
  }
104
- function se(r, t, e = /* @__PURE__ */ new Map()) {
105
- const n = ae(r, t);
106
- return le(n, e);
103
+ function ie(i, t, e = /* @__PURE__ */ new Map()) {
104
+ const o = oe(i, t);
105
+ return re(o, e);
107
106
  }
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];
107
+ function ae(i = {}) {
108
+ function t(a, s, n, c) {
109
+ if (typeof n == "number")
110
+ return c[a].length === n;
111
+ if (typeof n == "object") {
112
+ const y = Object.keys(n)[0], u = n[y];
114
113
  if (y === "not")
115
- return Number(m[i].length) !== Number(f);
114
+ return Number(c[a].length) !== Number(u);
116
115
  if (y === "moreThan")
117
- return Number(m[i].length) >= Number(f);
116
+ return Number(c[a].length) >= Number(u);
118
117
  if (y === "lessThan")
119
- return Number(m[i].length) <= Number(f);
118
+ return Number(c[a].length) <= Number(u);
120
119
  }
121
120
  return !1;
122
121
  }
123
- function e(i, p, s, m) {
124
- return m[i] && m[i].propertyValue && String(m[i].propertyValue.value) === String(s);
122
+ function e(a, s, n, c) {
123
+ return c[a] && c[a].propertyValue && String(c[a].propertyValue.value) === String(n);
125
124
  }
126
- const n = /* @__PURE__ */ new Map([
125
+ const o = /* @__PURE__ */ new Map([
127
126
  ["length", t],
128
127
  ["getProperty", e]
129
128
  ]);
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 };
129
+ Object.keys(i).reduce((a, s) => (a.set(s, i[s]), a), o);
130
+ function r(a, s) {
131
+ const n = a;
132
+ return typeof s == "number" ? [{ target: n, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: n, operator: "getProperty", param: a, value: !!s }] : typeof s == "object" ? Object.keys(s).map((c) => {
133
+ if (c === "length")
134
+ return { target: n, operator: "length", param: null, value: s[c] };
135
+ const y = c, u = s[c];
136
+ return { target: n, operator: "getProperty", param: y, value: u };
138
137
  }) : [];
139
138
  }
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;
139
+ function l(a) {
140
+ return Object.keys(a).reduce((n, c) => {
141
+ const y = r(c, a[c]);
142
+ return n.push(...y), n;
144
143
  }, []);
145
144
  }
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;
145
+ function d(a, s) {
146
+ if (o.has(a.operator)) {
147
+ const n = o.get(a.operator);
148
+ return n && n(a.target, a.param, a.value, s) || !1;
150
149
  }
151
150
  return !1;
152
151
  }
153
- function d(i, p) {
154
- return a(i).reduce((y, f) => y && c(f, p), !0);
152
+ function f(a, s) {
153
+ return l(a).reduce((y, u) => y && d(u, s), !0);
155
154
  }
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);
155
+ function p(a, s) {
156
+ const n = Object.keys(a), c = n.includes("allOf"), y = n.includes("anyOf"), u = c || y, C = (u ? a[u ? c ? "allOf" : "anyOf" : "allOf"] : [a]).map((E) => f(E, s));
157
+ return c ? !C.includes(!1) : C.includes(!0);
159
158
  }
160
- return { parseValueSchema: l };
159
+ return { parseValueSchema: p };
161
160
  }
162
- const u = {
161
+ const m = {
163
162
  button: { type: "button", name: "按钮", icon: "Button" },
164
163
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
165
164
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -198,20 +197,20 @@ const u = {
198
197
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
199
198
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
200
199
  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);
200
+ }, le = {}, se = {};
201
+ ae();
202
+ function ce(i, t, e = /* @__PURE__ */ new Map(), o = (d, f, p) => f, r = {}, l = (d) => d) {
203
+ return X[t.title] = t, _[t.title] = o, le[t.title] = r, se[t.title] = l, (d = {}) => {
204
+ const f = ie(d, t, e), p = Object.keys(i).reduce((a, s) => (a[s] = i[s].default, a), {});
205
+ return Object.assign(p, f);
207
206
  };
208
207
  }
209
- function me(r, t) {
208
+ function pe(i, t) {
210
209
  return { customClass: t.class, customStyle: t.style };
211
210
  }
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 = {
211
+ const de = /* @__PURE__ */ new Map([
212
+ ["appearance", pe]
213
+ ]), ue = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-design.gitee.io/radio-group.schema.json", fe = "radio-group", ye = "A Farris Input Component", he = "object", ge = {
215
214
  id: {
216
215
  description: "The unique identifier for a radio-group",
217
216
  type: "string"
@@ -292,23 +291,23 @@ const fe = /* @__PURE__ */ new Map([
292
291
  description: "",
293
292
  type: "array"
294
293
  }
295
- }, ke = [
294
+ }, ve = [
296
295
  "id",
297
296
  "type"
298
- ], Me = [
297
+ ], be = [
299
298
  "id",
300
299
  "appearance",
301
300
  "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 = {
301
+ ], Ce = {
302
+ $schema: ue,
303
+ $id: me,
304
+ title: fe,
305
+ description: ye,
306
+ type: he,
307
+ properties: ge,
308
+ required: ve,
309
+ ignore: be
310
+ }, ke = {
312
311
  /**
313
312
  * 是否被选中
314
313
  */
@@ -325,8 +324,8 @@ const fe = /* @__PURE__ */ new Map([
325
324
  * type为button或者tag时的尺寸
326
325
  */
327
326
  size: { type: String, default: "middle" }
328
- }, O = {
329
- ...Te,
327
+ }, G = {
328
+ ...ke,
330
329
  /**
331
330
  * 组件标识
332
331
  */
@@ -365,177 +364,168 @@ const fe = /* @__PURE__ */ new Map([
365
364
  * 枚举数组中枚举值的key值。
366
365
  */
367
366
  valueField: { type: String, default: "value" }
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));
367
+ }, Q = ce(G, Ce, de, ne);
368
+ function Y(i, t, e) {
369
+ const o = V(() => !i.disabled), r = V(() => i.enumData || []);
370
+ function l(p) {
371
+ return p[i.valueField];
372
+ }
373
+ function d(p) {
374
+ return p[i.textField];
375
+ }
376
+ function f(p, a) {
377
+ if (o.value) {
378
+ const s = l(p);
379
+ e.value !== s && (e.value = s, t.emit("changeValue", s), t.emit("update:modelValue", s));
381
380
  }
382
- i.stopPropagation();
381
+ a.stopPropagation();
383
382
  }
384
383
  return {
385
- enumData: o,
386
- getValue: a,
387
- getText: c,
388
- onClickRadio: d
384
+ enumData: r,
385
+ getValue: l,
386
+ getText: d,
387
+ onClickRadio: f
389
388
  };
390
389
  }
391
- const E = /* @__PURE__ */ N({
390
+ const I = /* @__PURE__ */ N({
392
391
  name: "FRadioGroup",
393
- props: O,
392
+ props: G,
394
393
  emits: ["changeValue", "update:modelValue"],
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,
394
+ setup(i, t) {
395
+ const e = F(i.modelValue), {
396
+ enumData: o,
397
+ onClickRadio: r,
398
+ getValue: l,
399
+ getText: d
400
+ } = Y(i, t, e), f = V(() => ({
401
+ "farris-checkradio-hor": i.direction === "horizontal"
402
+ })), p = F([]);
403
+ return K(z, {
404
+ radios: p,
405
+ parentProps: i,
407
406
  parentContext: t
408
- }), () => h("div", {
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];
412
- return h("div", {
407
+ }), () => M("div", {
408
+ class: ["farris-input-wrap", f.value]
409
+ }, [t.slots.default ? t.slots.default() : o.value.map((a, s) => {
410
+ const n = "radio_" + i.id + i.name + a[i.valueField];
411
+ return M("div", {
413
412
  class: "custom-control custom-radio"
414
- }, [h("input", {
413
+ }, [M("input", {
415
414
  type: "radio",
416
415
  class: "custom-control-input",
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)
424
- }, null), h("label", {
416
+ name: n,
417
+ id: n,
418
+ value: l(a),
419
+ checked: l(a) === e.value,
420
+ disabled: i.disabled,
421
+ tabindex: i.tabIndex,
422
+ onClick: (c) => r(a, c)
423
+ }, null), M("label", {
425
424
  class: "custom-control-label",
426
- for: s
427
- }, [c(i)])]);
425
+ for: n
426
+ }, [d(a)])]);
428
427
  })]);
429
428
  }
430
429
  });
431
- function Fe(r, t, e) {
432
- var I;
433
- function n() {
430
+ function Me(i, t, e) {
431
+ var D;
432
+ function o() {
434
433
  e != null && e.resolveComponentContext && e.resolveComponentContext();
435
434
  }
436
- n();
437
- const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", c = M();
438
- function d() {
435
+ o();
436
+ const r = e && e.getStyles && e.getStyles() || "", l = e && e.getDesignerClass && e.getDesignerClass() || "", d = F();
437
+ function f() {
439
438
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
440
439
  }
441
- function l() {
440
+ function p() {
442
441
  return !1;
443
442
  }
444
- function i() {
443
+ function a() {
445
444
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
446
445
  }
447
- function p() {
446
+ function s() {
448
447
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
449
448
  }
450
- function s(g) {
451
- if (!g || !g.value)
449
+ function n(v) {
450
+ if (!v || !v.value)
452
451
  return null;
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;
452
+ if (v.value.schema && v.value.schema.type === "component")
453
+ return v.value;
454
+ const S = F(v == null ? void 0 : v.value.parent), w = n(S);
455
+ return w || null;
457
456
  }
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);
457
+ function c(v = t) {
458
+ const { componentInstance: S, designerItemElementRef: w } = v;
459
+ return !S || !S.value ? null : S.value.canMove ? w : c(v.parent);
461
460
  }
462
- function y(g) {
463
- return !!e && e.canAccepts(g);
461
+ function y(v) {
462
+ return !!e && e.canAccepts(v);
464
463
  }
465
- function f() {
464
+ function u() {
466
465
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
467
466
  }
468
- function k() {
467
+ function h() {
469
468
  }
470
- function T(g, b) {
471
- b && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(b);
469
+ function b(v, S) {
470
+ S && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(S);
472
471
  }
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;
472
+ function C(v, S) {
473
+ const { componentType: w } = v;
474
+ let T = J(w, v, S);
475
+ e && e.onResolveNewComponentSchema && (T = e.onResolveNewComponentSchema(v, T));
476
+ const A = w.toLowerCase().replace("-", "_");
477
+ return T && !T.id && T.type === w && (T.id = `${A}_${Math.random().toString().slice(2, 6)}`), T;
479
478
  }
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;
479
+ function k(v) {
487
480
  }
488
- function A(g) {
489
- }
490
- function Y(...g) {
481
+ function E(...v) {
491
482
  if (e && e.getPropsConfig)
492
- return e.getPropsConfig(...g);
483
+ return e.getPropsConfig(...v);
493
484
  }
494
- return c.value = {
495
- canMove: d(),
496
- canSelectParent: l(),
497
- canDelete: i(),
498
- canNested: !p(),
485
+ return d.value = {
486
+ canMove: f(),
487
+ canSelectParent: p(),
488
+ canDelete: a(),
489
+ canNested: !s(),
499
490
  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,
491
+ elementRef: i,
492
+ parent: (D = t == null ? void 0 : t.parent) == null ? void 0 : D.componentInstance,
502
493
  schema: t == null ? void 0 : t.schema,
503
- styles: o,
504
- designerClass: a,
494
+ styles: r,
495
+ designerClass: l,
505
496
  canAccepts: y,
506
- getBelongedComponentInstance: s,
507
- getDraggableDesignItemElement: m,
508
- getDraggingDisplayText: f,
509
- getPropConfig: Y,
510
- getDragScopeElement: k,
511
- onAcceptMovedChildElement: T,
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;
497
+ getBelongedComponentInstance: n,
498
+ getDraggableDesignItemElement: c,
499
+ getDraggingDisplayText: u,
500
+ getPropConfig: E,
501
+ getDragScopeElement: h,
502
+ onAcceptMovedChildElement: b,
503
+ onChildElementMovedOut: k,
504
+ addNewChildComponentSchema: C,
505
+ updateDragAndDropRules: o,
506
+ triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || F(!1),
507
+ triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || F(!1)
508
+ }, d;
519
509
  }
520
510
  class Se {
521
511
  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", {
512
+ g(this, "componentId");
513
+ g(this, "viewModelId");
514
+ g(this, "eventsEditorUtils");
515
+ g(this, "formSchemaUtils");
516
+ g(this, "formMetadataConverter");
517
+ g(this, "designViewModelUtils");
518
+ g(this, "designViewModelField");
519
+ g(this, "controlCreatorUtils");
520
+ g(this, "designerHostService");
521
+ g(this, "schemaService", null);
522
+ g(this, "metadataService", null);
523
+ g(this, "propertyConfig", {
534
524
  type: "object",
535
525
  categories: {}
536
526
  });
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;
527
+ var o;
528
+ this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
539
529
  }
540
530
  getTableInfo() {
541
531
  var t;
@@ -545,8 +535,8 @@ class Se {
545
535
  const e = t.binding && t.binding.type === "Form" && t.binding.field;
546
536
  if (e) {
547
537
  if (!this.designViewModelField) {
548
- const n = this.designViewModelUtils.getDgViewModel(this.viewModelId);
549
- this.designViewModelField = n.fields.find((o) => o.id === e);
538
+ const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
539
+ this.designViewModelField = o.fields.find((r) => r.id === e);
550
540
  }
551
541
  t.updateOn = this.designViewModelField.updateOn;
552
542
  }
@@ -572,7 +562,7 @@ class Se {
572
562
  type: "combo-list",
573
563
  textField: "name",
574
564
  valueField: "value",
575
- data: [{ value: t.type, name: u[t.type].name }]
565
+ data: [{ value: t.type, name: m[t.type].name }]
576
566
  }
577
567
  }
578
568
  }
@@ -605,11 +595,11 @@ class Se {
605
595
  * @returns
606
596
  */
607
597
  updateElementByParentContainer(t, e) {
608
- const n = e && e.parent && e.parent.schema;
609
- if (!n)
598
+ const o = e && e.parent && e.parent.schema;
599
+ if (!o)
610
600
  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);
601
+ const r = o.contents.findIndex((d) => d.id === t), l = q(o.contents[r]);
602
+ o.contents.splice(r, 1), o.contents.splice(r, 0, l);
613
603
  }
614
604
  }
615
605
  const P = class P {
@@ -626,8 +616,8 @@ const P = class P {
626
616
  static getAllInputTypes() {
627
617
  const t = [];
628
618
  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 });
619
+ P.fieldControlTypeMapping[e].forEach((o) => {
620
+ t.find((r) => r.key === o.key && r.value === o.value) || t.push({ key: o.key, value: o.value });
631
621
  });
632
622
  return t;
633
623
  }
@@ -635,68 +625,175 @@ const P = class P {
635
625
  /**
636
626
  * <字段类型,可配置的控件类型列表>的映射
637
627
  */
638
- v(P, "fieldControlTypeMapping", {
628
+ g(P, "fieldControlTypeMapping", {
639
629
  String: [
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 }
630
+ { key: m["input-group"].type, value: m["input-group"].name },
631
+ { key: m.lookup.type, value: m.lookup.name },
632
+ { key: m["date-picker"].type, value: m["date-picker"].name },
633
+ { key: m["check-box"].type, value: m["check-box"].name },
634
+ { key: m["check-group"].type, value: m["check-group"].name },
635
+ { key: m["radio-group"].type, value: m["radio-group"].name },
636
+ { key: m["combo-list"].type, value: m["combo-list"].name },
637
+ { key: m.textarea.type, value: m.textarea.name }
647
638
  ],
648
639
  Text: [
649
- { key: u.textarea.type, value: u.textarea.name },
650
- { key: u.lookup.type, value: u.lookup.name }
640
+ { key: m.textarea.type, value: m.textarea.name },
641
+ { key: m.lookup.type, value: m.lookup.name }
651
642
  ],
652
643
  Decimal: [
653
- { key: u["number-spinner"].type, value: u["number-spinner"].name }
644
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
654
645
  ],
655
646
  Integer: [
656
- { key: u["number-spinner"].type, value: u["number-spinner"].name }
647
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
657
648
  ],
658
649
  Number: [
659
- { key: u["number-spinner"].type, value: u["number-spinner"].name }
650
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
660
651
  ],
661
652
  BigNumber: [
662
- { key: u["number-spinner"].type, value: u["number-spinner"].name }
653
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
663
654
  ],
664
655
  Date: [
665
- { key: u["date-picker"].type, value: u["date-picker"].name }
656
+ { key: m["date-picker"].type, value: m["date-picker"].name }
666
657
  ],
667
658
  DateTime: [
668
- { key: u["date-picker"].type, value: u["date-picker"].name }
659
+ { key: m["date-picker"].type, value: m["date-picker"].name }
669
660
  ],
670
661
  Boolean: [
671
- { key: u.switch.type, value: u.switch.name },
672
- { key: u["check-box"].type, value: u["check-box"].name }
662
+ { key: m.switch.type, value: m.switch.name },
663
+ { key: m["check-box"].type, value: m["check-box"].name }
673
664
  ],
674
665
  Enum: [
675
- { key: u["combo-list"].type, value: u["combo-list"].name },
676
- { key: u["radio-group"].type, value: u["radio-group"].name }
666
+ { key: m["combo-list"].type, value: m["combo-list"].name },
667
+ { key: m["radio-group"].type, value: m["radio-group"].name }
677
668
  ],
678
669
  Object: [
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 }
670
+ { key: m.lookup.type, value: m.lookup.name },
671
+ { key: m["combo-list"].type, value: m["combo-list"].name },
672
+ { key: m["radio-group"].type, value: m["radio-group"].name }
682
673
  ]
683
674
  });
684
- let D = P;
685
- const Pe = M(0);
675
+ let B = P;
676
+ const Fe = F(0);
677
+ class we {
678
+ constructor() {
679
+ /** 控件标题 */
680
+ g(this, "label", "");
681
+ /** 控件id */
682
+ g(this, "id", "");
683
+ /** 每个控件占用的栅格数 */
684
+ g(this, "columnInSM", 12);
685
+ g(this, "columnInMD", 6);
686
+ g(this, "columnInLG", 3);
687
+ g(this, "columnInEL", 2);
688
+ /** 每个控件占用的列数 */
689
+ g(this, "displayWidthInSM", 1);
690
+ g(this, "displayWidthInMD", 1);
691
+ g(this, "displayWidthInLG", 1);
692
+ g(this, "displayWidthInEL", 1);
693
+ /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
694
+ g(this, "displayColumnCountAtBreakPoint", "md");
695
+ /** 控件所在行,传0即可-----编辑器内部使用 */
696
+ g(this, "tagRow", 0);
697
+ /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
698
+ g(this, "showTopBorder", 0);
699
+ /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
700
+ g(this, "group", 1);
701
+ /** 控件是否符合标准的class配置(设计器用的) */
702
+ g(this, "isSupportedClass", !0);
703
+ /** 控件所在分组id(设计器用的) */
704
+ g(this, "fieldSetId", "");
705
+ }
706
+ }
707
+ function Te(i) {
708
+ let t, e;
709
+ const o = /* @__PURE__ */ new Map();
710
+ let r = [];
711
+ function l(s, n) {
712
+ const y = s.split(" ").filter((k) => k.startsWith("col-"));
713
+ if (y.length === 0) {
714
+ n.isSupportedClass = !1;
715
+ return;
716
+ }
717
+ let u = y.find((k) => /^col-([1-9]|10|11|12)$/.test(k)), h = y.find((k) => /^col-md-([1-9]|10|11|12)$/.test(k)), b = y.find((k) => /^col-xl-([1-9]|10|11|12)$/.test(k)), C = y.find((k) => /^col-el-([1-9]|10|11|12)$/.test(k));
718
+ u = u || "col-12", n.columnInSM = parseInt(u.replace("col-", ""), 10), n.displayWidthInSM = n.columnInSM / 12, n.displayWidthInSM !== 1 && (n.isSupportedClass = !1), h = h || "col-md-" + n.columnInSM, n.columnInMD = parseInt(h.replace("col-md-", ""), 10), n.displayWidthInMD = n.columnInMD / 6, [1, 2].includes(n.displayWidthInMD) || (n.isSupportedClass = !1), b = b || "col-xl-" + n.columnInMD, n.columnInLG = parseInt(b.replace("col-xl-", ""), 10), n.displayWidthInLG = n.columnInLG / 3, [1, 2, 3, 4].includes(n.displayWidthInLG) || (n.isSupportedClass = !1), C = C || "col-el-" + n.columnInLG, n.columnInEL = parseInt(C.replace("col-el-", ""), 10), n.displayWidthInEL = n.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(n.displayWidthInEL) || (n.isSupportedClass = !1);
719
+ }
720
+ function d(s, n, c, y = !1) {
721
+ let u = !1;
722
+ s.contents.forEach((h) => {
723
+ if (h.type === "fieldset") {
724
+ c += 1, d(h, n, c, !0), u = !0;
725
+ return;
726
+ }
727
+ u && (c += 1, u = !1);
728
+ const b = h.appearance && h.appearance.class, C = new we();
729
+ b ? l(b, C) : C.isSupportedClass = !1, C.label = h.label || h.id, C.id = h.id, C.group = c, y && (C.fieldSetId = s.id), e === h.id && (t = c), o.set(h.id, h), n.push(C);
730
+ });
731
+ }
732
+ function f(s) {
733
+ const n = i.getComponentById(s);
734
+ if (!n || !n.componentType || !n.componentType.startsWith("form"))
735
+ return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
736
+ const c = i.selectNode(n, (y) => y.type === W["response-form"].type);
737
+ return !c || !c.contents || c.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: c };
738
+ }
739
+ function p(s, n) {
740
+ n = n || s.id;
741
+ const { result: c, message: y, formNode: u } = f(n);
742
+ if (!c)
743
+ return { result: c, message: y };
744
+ e = s.id, r = [], o.clear();
745
+ const h = u.contents[0].type === W.fieldset.type ? 0 : 1;
746
+ d(u, r, h);
747
+ const b = r.find((k) => !k.isSupportedClass);
748
+ return {
749
+ defaultState: {
750
+ defaultGroupNumber: t || 1,
751
+ model: b ? "customize" : "standard"
752
+ },
753
+ importData: r
754
+ };
755
+ }
756
+ function a(s, n) {
757
+ n = n;
758
+ const { result: c, formNode: y } = f(n);
759
+ if (!c)
760
+ return "";
761
+ const u = [];
762
+ return s.forEach((h) => {
763
+ var k;
764
+ const b = o.get(h.id), C = b.appearance && b.appearance.class;
765
+ if (C) {
766
+ const D = C.split(" ").filter((Z) => !Z.startsWith("col-")), v = "col-" + h.columnInSM, S = "col-md-" + h.columnInMD, w = "col-xl-" + h.columnInLG, T = "col-el-" + h.columnInEL, A = [v, S, w, T].concat(D);
767
+ b.appearance.class = A.join(" ");
768
+ }
769
+ if (h.fieldSetId) {
770
+ const E = y.contents.find((v) => v.id === h.fieldSetId), D = u.find((v) => v.id === h.fieldSetId);
771
+ D ? (k = D.contents) == null || k.push(b) : (u.push(E), E.contents = [b]);
772
+ } else
773
+ u.push(b);
774
+ }), y.contents = u, y.id;
775
+ }
776
+ return {
777
+ checkCanFindFormNode: f,
778
+ checkCanOpenLayoutEditor: p,
779
+ changeFormControlsByResponseLayoutConfig: a,
780
+ getResonseFormLayoutConfig: d
781
+ };
782
+ }
686
783
  class Ee extends Se {
687
- constructor(e, n) {
688
- super(e, n);
689
- v(this, "responseLayoutEditorFunction");
690
- this.responseLayoutEditorFunction = oe(this.formSchemaUtils);
784
+ constructor(e, o) {
785
+ super(e, o);
786
+ g(this, "responseLayoutEditorFunction");
787
+ this.responseLayoutEditorFunction = Te(this.formSchemaUtils);
691
788
  }
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;
789
+ getPropertyConfig(e, o) {
790
+ return this.propertyConfig.categories.basic = this.getBasicProperties(e, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, o), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
694
791
  }
695
- getBasicProperties(e, n) {
696
- var d;
697
- var o = this;
792
+ getBasicProperties(e, o) {
793
+ var f;
794
+ var r = this;
698
795
  this.setDesignViewModelField(e);
699
- const a = this.formSchemaUtils.getFormMetadataBasicInfo(), c = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
796
+ const l = this.formSchemaUtils.getFormMetadataBasicInfo(), d = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
700
797
  return {
701
798
  description: "Basic Information",
702
799
  title: "基本信息",
@@ -718,7 +815,7 @@ class Ee extends Se {
718
815
  textField: "value",
719
816
  valueField: "key",
720
817
  editable: !1,
721
- data: o.designViewModelField ? D.getEditorTypesByMDataType((d = o.designViewModelField.type) == null ? void 0 : d.name) : D.getAllInputTypes()
818
+ data: r.designViewModelField ? B.getEditorTypesByMDataType((f = r.designViewModelField.type) == null ? void 0 : f.name) : B.getAllInputTypes()
722
819
  }
723
820
  },
724
821
  label: {
@@ -735,7 +832,7 @@ class Ee extends Se {
735
832
  bindingType: { enable: !1 },
736
833
  editorParams: {
737
834
  propertyData: e,
738
- formBasicInfo: a
835
+ formBasicInfo: l
739
836
  },
740
837
  columns: [
741
838
  { field: "name", title: "字段名称" },
@@ -743,27 +840,27 @@ class Ee extends Se {
743
840
  { field: "fieldType", title: "字段类型" }
744
841
  ],
745
842
  textField: "bindingField",
746
- data: c
843
+ data: d
747
844
  }
748
845
  }
749
846
  },
750
- setPropertyRelates(l, i) {
751
- if (l)
752
- switch (l && l.propertyID) {
847
+ setPropertyRelates(p, a) {
848
+ if (p)
849
+ switch (p && p.propertyID) {
753
850
  case "type": {
754
- o.changeControlType(e, l, n);
851
+ r.changeControlType(e, p, o);
755
852
  break;
756
853
  }
757
854
  case "label": {
758
- l.needRefreshControlTree = !0;
855
+ p.needRefreshControlTree = !0;
759
856
  break;
760
857
  }
761
858
  }
762
859
  }
763
860
  };
764
861
  }
765
- getAppearanceProperties(e, n) {
766
- var o = this;
862
+ getAppearanceProperties(e, o) {
863
+ var r = this;
767
864
  return {
768
865
  title: "样式",
769
866
  description: "Appearance",
@@ -789,18 +886,18 @@ class Ee extends Se {
789
886
  refreshPanelAfterChanged: !0,
790
887
  editor: {
791
888
  type: "response-layout-editor-setting",
792
- initialState: o.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, o.componentId)
889
+ initialState: r.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, r.componentId)
793
890
  }
794
891
  }
795
892
  },
796
- setPropertyRelates(a, c) {
797
- if (a)
798
- switch (a && a.propertyID) {
893
+ setPropertyRelates(l, d) {
894
+ if (l)
895
+ switch (l && l.propertyID) {
799
896
  case "responseLayout":
800
- o.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(a.propertyValue, o.componentId || e.id), o.updateUnifiedLayoutAfterResponseLayoutChanged(o.componentId), o.updateElementByParentContainer(e.id, n), delete e.responseLayout;
897
+ r.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, r.componentId || e.id), r.updateUnifiedLayoutAfterResponseLayoutChanged(r.componentId), r.updateElementByParentContainer(e.id, o), delete e.responseLayout;
801
898
  break;
802
899
  case "class":
803
- o.updateUnifiedLayoutAfterControlChanged(a.propertyValue, e.id, this.componentId), o.updateElementByParentContainer(e.id, n);
900
+ r.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), r.updateElementByParentContainer(e.id, o);
804
901
  break;
805
902
  }
806
903
  }
@@ -814,44 +911,44 @@ class Ee extends Se {
814
911
  * @param propertyData 控件DOM属性
815
912
  * @param newControlType 新控件类型
816
913
  */
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)
914
+ changeControlType(e, o, r) {
915
+ var s, n, c, y;
916
+ const l = o.propertyValue, d = r && r.parent && r.parent.schema;
917
+ if (!d)
821
918
  return;
822
- const d = c.contents.findIndex((f) => f.id === e.id), l = c.contents[d];
823
- let i;
919
+ const f = d.contents.findIndex((u) => u.id === e.id), p = d.contents[f];
920
+ let a;
824
921
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
825
922
  editor: {
826
- $type: a
923
+ $type: l
827
924
  },
828
925
  name: this.designViewModelField.name,
829
926
  require: this.designViewModelField.require,
830
927
  readonly: this.designViewModelField.readonly
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(
845
- (f) => f.classList.remove("dgComponentSelected")
846
- ), Pe.value++;
847
- }
848
- getComponentConfig(e, n = {}, o = {}) {
849
- const a = Object.assign({
928
+ }, !1), a = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), a || (a = this.controlCreatorUtils.createFormGroupWithoutField(l)), Object.assign(a, {
929
+ id: p.id,
930
+ appearance: p.appearance,
931
+ size: p.size,
932
+ label: p.label,
933
+ binding: p.binding,
934
+ visible: p.visible
935
+ }), Object.assign(a.editor, {
936
+ isTextArea: a.isTextArea && p.isTextArea,
937
+ placeholder: (s = p.editor) == null ? void 0 : s.placeholder,
938
+ holdPlace: (n = p.editor) == null ? void 0 : n.holdPlace,
939
+ readonly: (c = p.editor) == null ? void 0 : c.readonly,
940
+ require: (y = p.editor) == null ? void 0 : y.require
941
+ }), d.contents.splice(f, 1), d.contents.splice(f, 0, a), r.schema = Object.assign(p, a), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
942
+ (u) => u.classList.remove("dgComponentSelected")
943
+ ), Fe.value++;
944
+ }
945
+ getComponentConfig(e, o = {}, r = {}) {
946
+ const l = Object.assign({
850
947
  description: "编辑器",
851
948
  title: "编辑器",
852
949
  type: "input-group",
853
950
  $converter: "/converter/property-editor.converter"
854
- }, n), c = Object.assign({
951
+ }, o), d = Object.assign({
855
952
  readonly: {
856
953
  description: "",
857
954
  title: "只读",
@@ -872,8 +969,8 @@ class Ee extends Se {
872
969
  title: "提示文本",
873
970
  type: "string"
874
971
  }
875
- }, o);
876
- return { ...a, properties: { ...c } };
972
+ }, r);
973
+ return { ...l, properties: { ...d } };
877
974
  }
878
975
  /**
879
976
  * 修改某一输入控件的样式后更新Form的统一布局配置
@@ -881,38 +978,38 @@ class Ee extends Se {
881
978
  * @param controlId 控件Id
882
979
  * @param componentId 控件所在组件id
883
980
  */
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)
981
+ updateUnifiedLayoutAfterControlChanged(e, o, r) {
982
+ const l = e.split(" ");
983
+ let d = l.find((n) => /^col-([1-9]|10|11|12)$/.test(n)), f = l.find((n) => /^col-md-([1-9]|10|11|12)$/.test(n)), p = l.find((n) => /^col-xl-([1-9]|10|11|12)$/.test(n)), a = l.find((n) => /^col-el-([1-9]|10|11|12)$/.test(n));
984
+ d = d || "col-12", f = f || "col-md-" + d.replace("col-", ""), p = p || "col-xl-" + f.replace("col-md-", ""), a = a || "col-el-" + p.replace("col-xl-", "");
985
+ const s = {
986
+ id: o,
987
+ columnInSM: parseInt(d.replace("col-", ""), 10),
988
+ columnInMD: parseInt(f.replace("col-md-", ""), 10),
989
+ columnInLG: parseInt(p.replace("col-xl-", ""), 10),
990
+ columnInEL: parseInt(a.replace("col-el-", ""), 10)
894
991
  };
895
- this.updateUnifiedLayoutAfterResponseLayoutChanged(o, p);
992
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(r, s);
896
993
  }
897
994
  /**
898
995
  * 修改控件布局配置后更新Form统一布局配置
899
996
  * @param componentId 组件Id
900
997
  * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
901
998
  */
902
- updateUnifiedLayoutAfterResponseLayoutChanged(e, n) {
903
- const { formNode: o } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
904
- if (!o || !o.unifiedLayout)
999
+ updateUnifiedLayoutAfterResponseLayoutChanged(e, o) {
1000
+ const { formNode: r } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
1001
+ if (!r || !r.unifiedLayout)
905
1002
  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);
1003
+ const l = [];
1004
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(r, l, 1), o) {
1005
+ const u = l.find((h) => h.id === o.id);
1006
+ Object.assign(u || {}, o);
910
1007
  }
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,
1008
+ const d = l.map((u) => u.columnInSM), f = l.map((u) => u.columnInMD), p = l.map((u) => u.columnInLG), a = l.map((u) => u.columnInEL), s = this.checkIsUniqueColumn(d) ? d[0] : null, n = this.checkIsUniqueColumn(f) ? f[0] : null, c = this.checkIsUniqueColumn(p) ? p[0] : null, y = this.checkIsUniqueColumn(a) ? a[0] : null;
1009
+ Object.assign(r.unifiedLayout, {
1010
+ uniqueColClassInSM: s,
1011
+ uniqueColClassInMD: n,
1012
+ uniqueColClassInLG: c,
916
1013
  uniqueColClassInEL: y
917
1014
  });
918
1015
  }
@@ -920,11 +1017,11 @@ class Ee extends Se {
920
1017
  * 校验宽度样式值是否一致
921
1018
  */
922
1019
  checkIsUniqueColumn(e) {
923
- const n = new Set(e);
924
- return Array.from(n).length === 1;
1020
+ const o = new Set(e);
1021
+ return Array.from(o).length === 1;
925
1022
  }
926
1023
  }
927
- class Ve extends Ee {
1024
+ class De extends Ee {
928
1025
  constructor(t, e) {
929
1026
  super(t, e);
930
1027
  }
@@ -960,118 +1057,118 @@ class Ve extends Ee {
960
1057
  });
961
1058
  }
962
1059
  }
963
- function Be(r, t) {
964
- r.schema;
965
- const e = M(!0), n = M(!0);
966
- function o(s) {
1060
+ function Pe(i, t) {
1061
+ i.schema;
1062
+ const e = F(!0), o = F(!0);
1063
+ function r(n) {
967
1064
  return !1;
968
1065
  }
969
- function a() {
1066
+ function l() {
970
1067
  return !1;
971
1068
  }
972
- function c() {
1069
+ function d() {
973
1070
  return !1;
974
1071
  }
975
- function d() {
1072
+ function f() {
976
1073
  return !0;
977
1074
  }
978
- function l(s) {
1075
+ function p(n) {
979
1076
  }
980
- function i() {
1077
+ function a() {
981
1078
  }
982
- function p(s) {
1079
+ function s(n) {
983
1080
  return null;
984
1081
  }
985
1082
  return {
986
- canAccepts: o,
987
- checkCanDeleteComponent: a,
988
- checkCanMoveComponent: c,
989
- hideNestedPaddingInDesginerView: d,
990
- onAcceptMovedChildElement: l,
991
- resolveComponentContext: i,
1083
+ canAccepts: r,
1084
+ checkCanDeleteComponent: l,
1085
+ checkCanMoveComponent: d,
1086
+ hideNestedPaddingInDesginerView: f,
1087
+ onAcceptMovedChildElement: p,
1088
+ resolveComponentContext: a,
992
1089
  triggerBelongedComponentToMoveWhenMoved: e,
993
- triggerBelongedComponentToDeleteWhenDeleted: n,
994
- getPropsConfig: p
1090
+ triggerBelongedComponentToDeleteWhenDeleted: o,
1091
+ getPropsConfig: s
995
1092
  };
996
1093
  }
997
- function De(r, t) {
1094
+ function Ie(i, t) {
998
1095
  const {
999
1096
  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);
1097
+ checkCanDeleteComponent: o,
1098
+ checkCanMoveComponent: r,
1099
+ hideNestedPaddingInDesginerView: l,
1100
+ onAcceptMovedChildElement: d,
1101
+ resolveComponentContext: f,
1102
+ triggerBelongedComponentToMoveWhenMoved: p,
1103
+ triggerBelongedComponentToDeleteWhenDeleted: a
1104
+ } = Pe(i), s = i.schema;
1105
+ function n(c, y) {
1106
+ return new De(c, t).getPropertyConfig(s, y);
1010
1107
  }
1011
1108
  return {
1012
1109
  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
1110
+ checkCanDeleteComponent: o,
1111
+ checkCanMoveComponent: r,
1112
+ hideNestedPaddingInDesginerView: l,
1113
+ onAcceptMovedChildElement: d,
1114
+ resolveComponentContext: f,
1115
+ triggerBelongedComponentToMoveWhenMoved: p,
1116
+ triggerBelongedComponentToDeleteWhenDeleted: a,
1117
+ getPropsConfig: n
1021
1118
  };
1022
1119
  }
1023
- const Ae = /* @__PURE__ */ N({
1120
+ const Ve = /* @__PURE__ */ N({
1024
1121
  name: "FRadioGroupDesign",
1025
- props: O,
1122
+ props: G,
1026
1123
  emits: ["changeValue", "update:modelValue"],
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;
1043
- return h("div", {
1124
+ setup(i, t) {
1125
+ const e = F(i.modelValue), {
1126
+ enumData: o,
1127
+ onClickRadio: r,
1128
+ getValue: l,
1129
+ getText: d
1130
+ } = Y(i, t, e), f = V(() => ({
1131
+ "farris-checkradio-hor": i.horizontal
1132
+ })), p = F(), a = L("designer-host-service"), s = L("design-item-context"), n = Ie(s, a), c = Me(p, s, n);
1133
+ return j(() => {
1134
+ p.value.componentInstance = c;
1135
+ }), t.expose(c.value), () => M("div", {
1136
+ class: ["farris-input-wrap", f.value],
1137
+ ref: p
1138
+ }, [o.value.map((y, u) => {
1139
+ const h = "radio_" + i.name + u;
1140
+ return M("div", {
1044
1141
  class: "custom-control custom-radio"
1045
- }, [h("input", {
1142
+ }, [M("input", {
1046
1143
  type: "radio",
1047
1144
  class: "custom-control-input",
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)
1055
- }, null), h("label", {
1145
+ name: i.name,
1146
+ id: h,
1147
+ value: l(y),
1148
+ checked: l(y) === e.value,
1149
+ disabled: i.disabled,
1150
+ tabindex: i.tabIndex,
1151
+ onClick: (b) => r(y, b)
1152
+ }, null), M("label", {
1056
1153
  class: "custom-control-label",
1057
- for: k
1058
- }, [c(y)])]);
1154
+ for: h
1155
+ }, [d(y)])]);
1059
1156
  })]);
1060
1157
  }
1061
1158
  });
1062
- E.install = (r) => {
1063
- r.component(E.name, E), r.component(x.name, x);
1159
+ I.install = (i) => {
1160
+ i.component(I.name, I), i.component(O.name, O);
1064
1161
  };
1065
- E.register = (r, t, e, n) => {
1066
- r["radio-group"] = E, t["radio-group"] = J;
1162
+ I.register = (i, t, e, o) => {
1163
+ i["radio-group"] = I, t["radio-group"] = Q;
1067
1164
  };
1068
- E.registerDesigner = (r, t, e) => {
1069
- r["radio-group"] = Ae, t["radio-group"] = J;
1165
+ I.registerDesigner = (i, t, e) => {
1166
+ i["radio-group"] = Ve, t["radio-group"] = Q;
1070
1167
  };
1071
1168
  export {
1072
- E as RadioGroup,
1073
- E as default,
1074
- J as propsResolver,
1075
- O as radioGroupProps,
1076
- re as radioProps
1169
+ I as RadioGroup,
1170
+ I as default,
1171
+ Q as propsResolver,
1172
+ G as radioGroupProps,
1173
+ te as radioProps
1077
1174
  };