@farris/ui-vue 1.3.1 → 1.3.3

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 (259) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +301 -351
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +407 -396
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +266 -255
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +628 -641
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +379 -374
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +471 -471
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +155 -148
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +487 -478
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +330 -279
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1171 -1277
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +220 -204
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +4743 -4641
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +2916 -3019
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2375 -2590
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9518 -1198
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +149 -138
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1602 -1740
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +159 -151
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +311 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +533 -563
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2356 -2455
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3048 -3308
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10537 -3249
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +9781 -1327
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +353 -341
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +510 -827
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +278 -268
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +144 -136
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2139 -2237
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6414 -6367
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +5216 -5114
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +486 -984
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +446 -498
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +363 -388
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1050 -1308
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1072 -1082
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +412 -910
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +214 -203
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1361 -1536
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +650 -677
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12344 -5048
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1821 -565
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +251 -244
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +151 -140
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +707 -676
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +719 -740
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4977 -5249
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +145 -134
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +348 -337
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +141 -130
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +311 -301
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/step/index.esm.js +231 -220
  136. package/components/step/index.umd.cjs +1 -1
  137. package/components/switch/index.esm.js +385 -432
  138. package/components/switch/index.umd.cjs +1 -1
  139. package/components/tabs/index.esm.js +1932 -1914
  140. package/components/tabs/index.umd.cjs +1 -1
  141. package/components/tags/index.esm.js +351 -340
  142. package/components/tags/index.umd.cjs +1 -1
  143. package/components/text/index.esm.js +209 -199
  144. package/components/text/index.umd.cjs +1 -1
  145. package/components/textarea/index.esm.js +388 -415
  146. package/components/textarea/index.umd.cjs +1 -1
  147. package/components/time-picker/index.esm.js +619 -666
  148. package/components/time-picker/index.umd.cjs +1 -1
  149. package/components/transfer/index.esm.js +493 -486
  150. package/components/transfer/index.umd.cjs +1 -1
  151. package/components/tree-grid/index.esm.js +3169 -3278
  152. package/components/tree-grid/index.umd.cjs +1 -1
  153. package/components/tree-view/index.esm.js +2320 -2418
  154. package/components/tree-view/index.umd.cjs +1 -1
  155. package/components/uploader/index.esm.js +563 -554
  156. package/components/uploader/index.umd.cjs +2 -2
  157. package/components/verify-detail/index.esm.js +287 -276
  158. package/components/verify-detail/index.umd.cjs +1 -1
  159. package/components/video/index.esm.js +368 -324
  160. package/components/video/index.umd.cjs +1 -1
  161. package/components/weather/index.esm.js +498 -487
  162. package/components/weather/index.umd.cjs +5 -5
  163. package/farris.all.esm.js +51302 -47651
  164. package/farris.all.umd.cjs +14 -9
  165. package/index.css +1 -1
  166. package/package.json +1 -1
  167. package/types/binding-selector/index.d.ts +55 -0
  168. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  169. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  170. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  171. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  172. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  173. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  174. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  175. package/types/common/entity/entity-schema.d.ts +26 -11
  176. package/types/common/index.d.ts +1 -0
  177. package/types/common/types.d.ts +2 -2
  178. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  179. package/types/condition/src/types.d.ts +6 -6
  180. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  181. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  182. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  183. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  184. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  185. package/types/data-view/composition/types.d.ts +2 -2
  186. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  187. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  188. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  189. package/types/designer-canvas/index.d.ts +2 -1
  190. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  191. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +49 -40
  193. package/types/designer-canvas/src/types.d.ts +8 -20
  194. package/types/dynamic-form/index.d.ts +1 -1
  195. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  196. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  197. package/types/dynamic-form/src/types.d.ts +1 -1
  198. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
  199. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  200. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  201. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  202. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  203. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  204. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  205. package/types/event-parameter/index.d.ts +31 -0
  206. package/types/event-parameter/src/composition/type.d.ts +77 -0
  207. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  208. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  209. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  210. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  211. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  212. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  213. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  214. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  215. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  216. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  217. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  218. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  219. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  220. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  221. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  222. package/types/modal/src/composition/modal.service.d.ts +2 -1
  223. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  224. package/types/page-header/src/page-header.component.d.ts +1 -1
  225. package/types/property-panel/index.d.ts +2 -1
  226. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  227. package/types/property-panel/src/composition/type.d.ts +0 -13
  228. package/types/query-solution/src/composition/types.d.ts +35 -4
  229. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  230. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  231. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  232. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
  233. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  234. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
  235. package/types/query-solution/src/query-solution.d.ts +10 -2
  236. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  237. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  238. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  239. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  240. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  241. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  242. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  243. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  244. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  245. package/types/tabs/src/composition/types.d.ts +4 -1
  246. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  247. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  248. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  249. package/types/text/src/composition/types.d.ts +4 -4
  250. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  251. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  252. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  253. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  254. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  255. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  256. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  257. package/types/weather/src/composition/types.d.ts +0 -2
  258. /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
  259. /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
@@ -1,11 +1,11 @@
1
1
  var ie = Object.defineProperty;
2
- var ae = (o, t, e) => t in o ? ie(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
- var v = (o, t, e) => ae(o, typeof t != "symbol" ? t + "" : t, e);
4
- import { defineComponent as L, inject as P, ref as k, computed as x, watch as I, onMounted as G, createVNode as S, Fragment as le, provide as se } from "vue";
5
- import { isPlainObject as O, cloneDeep as z } from "lodash-es";
6
- import { CHECKBOX_CONTEXT as X, useCheck as ce } from "../common/index.esm.js";
7
- import { DgControl as q } from "../designer-canvas/index.esm.js";
8
- const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/check-box.schema.json", de = "check-box", me = "A Farris Input Component", fe = "object", he = {
2
+ var re = (n, t, e) => t in n ? ie(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var k = (n, t, e) => re(n, typeof t != "symbol" ? t + "" : t, e);
4
+ import { defineComponent as D, inject as I, ref as M, computed as x, watch as A, onMounted as N, createVNode as F, Fragment as ae, provide as le } from "vue";
5
+ import { isPlainObject as j, cloneDeep as z } from "lodash-es";
6
+ import { CHECKBOX_CONTEXT as X, useCheck as se } from "../common/index.esm.js";
7
+ import { DgControl as O } from "../designer-canvas/index.esm.js";
8
+ const ce = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-design.gitee.io/check-box.schema.json", de = "check-box", pe = "A Farris Input Component", me = "object", fe = {
9
9
  id: {
10
10
  description: "The unique identifier for a check box",
11
11
  type: "string"
@@ -62,11 +62,6 @@ const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-
62
62
  type: "boolean",
63
63
  default: !1
64
64
  },
65
- require: {
66
- description: "",
67
- type: "boolean",
68
- default: !1
69
- },
70
65
  tabindex: {
71
66
  description: "",
72
67
  type: "number",
@@ -80,111 +75,116 @@ const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-
80
75
  }, ye = [
81
76
  "id",
82
77
  "type"
83
- ], ge = [
78
+ ], he = [
84
79
  "id",
85
80
  "appearance",
86
- "binding"
87
- ], be = {
88
- $schema: ue,
89
- $id: pe,
81
+ "binding",
82
+ "visible"
83
+ ], ge = {
84
+ $schema: ce,
85
+ $id: ue,
90
86
  title: de,
91
- description: me,
92
- type: fe,
93
- properties: he,
87
+ description: pe,
88
+ type: me,
89
+ properties: fe,
94
90
  required: ye,
95
- ignore: ge
91
+ ignore: he
96
92
  }, _ = {}, H = {};
97
- function U(o) {
98
- const { properties: t, title: e, ignore: r } = o, i = r && Array.isArray(r), l = Object.keys(t).reduce((p, f) => ((!i || !r.find((m) => m == f)) && (p[f] = t[f].type === "object" && t[f].properties ? U(t[f]) : z(t[f].default)), p), {});
99
- return e && (!i || !r.find((p) => p == "id")) && (l.id = `${e}-${Date.now()}`), l;
93
+ function U(n) {
94
+ const { properties: t, title: e, ignore: i } = n, r = i && Array.isArray(i), a = Object.keys(t).reduce((u, y) => ((!r || !i.find((h) => h === y)) && (u[y] = t[y].type === "object" && t[y].properties ? U(t[y]) : z(t[y].default)), u), {});
95
+ if (e && (!r || !i.find((u) => u === "id"))) {
96
+ const u = e.toLowerCase().replace(/-/g, "_");
97
+ a.id = `${u}_${Math.random().toString().slice(2, 6)}`;
98
+ }
99
+ return a;
100
100
  }
101
- function J(o, t = {}, e) {
102
- const r = _[o];
103
- if (r) {
104
- let i = U(r);
105
- const l = H[o];
106
- return i = l ? l({ getSchemaByType: J }, i, t, e) : i, i;
101
+ function Q(n, t = {}, e) {
102
+ const i = _[n];
103
+ if (i) {
104
+ let r = U(i);
105
+ const a = H[n];
106
+ return r = a ? a({ getSchemaByType: Q }, r, t, e) : r, r;
107
107
  }
108
108
  return null;
109
109
  }
110
- function ve(o, t) {
110
+ function be(n, t) {
111
111
  const e = U(t);
112
- return Object.keys(o).reduce((r, i) => (r[i] && O(r[i]) && O(o[i]) ? Object.assign(r[i], o[i]) : r[i] = o[i], r), e), e;
112
+ return Object.keys(e).reduce((i, r) => (i[r] && j(i[r]) && j(n[r] || !n[r]) ? Object.assign(i[r], n[r] || {}) : i[r] = n[r], i), e), e;
113
113
  }
114
- function Ce(o, t) {
115
- return Object.keys(o).filter((r) => o[r] != null).reduce((r, i) => {
116
- if (t.has(i)) {
117
- const l = t.get(i);
118
- if (typeof l == "string")
119
- r[l] = o[i];
114
+ function ve(n, t) {
115
+ return Object.keys(n).filter((i) => n[i] != null).reduce((i, r) => {
116
+ if (t.has(r)) {
117
+ const a = t.get(r);
118
+ if (typeof a == "string")
119
+ i[a] = n[r];
120
120
  else {
121
- const p = l(i, o[i], o);
122
- Object.assign(r, p);
121
+ const u = a(r, n[r], n);
122
+ Object.assign(i, u);
123
123
  }
124
124
  } else
125
- r[i] = o[i];
126
- return r;
125
+ i[r] = n[r];
126
+ return i;
127
127
  }, {});
128
128
  }
129
- function ke(o, t, e = /* @__PURE__ */ new Map()) {
130
- const r = ve(o, t);
131
- return Ce(r, e);
129
+ function ke(n, t, e = /* @__PURE__ */ new Map()) {
130
+ const i = be(n, t);
131
+ return ve(i, e);
132
132
  }
133
- function Me(o = {}) {
134
- function t(a, d, n, c) {
135
- if (typeof n == "number")
136
- return c[a].length === n;
137
- if (typeof n == "object") {
138
- const s = Object.keys(n)[0], u = n[s];
133
+ function Ce(n = {}) {
134
+ function t(l, p, o, d) {
135
+ if (typeof o == "number")
136
+ return d[l].length === o;
137
+ if (typeof o == "object") {
138
+ const s = Object.keys(o)[0], c = o[s];
139
139
  if (s === "not")
140
- return Number(c[a].length) !== Number(u);
140
+ return Number(d[l].length) !== Number(c);
141
141
  if (s === "moreThan")
142
- return Number(c[a].length) >= Number(u);
142
+ return Number(d[l].length) >= Number(c);
143
143
  if (s === "lessThan")
144
- return Number(c[a].length) <= Number(u);
144
+ return Number(d[l].length) <= Number(c);
145
145
  }
146
146
  return !1;
147
147
  }
148
- function e(a, d, n, c) {
149
- return c[a] && c[a].propertyValue && String(c[a].propertyValue.value) === String(n);
148
+ function e(l, p, o, d) {
149
+ return d[l] && d[l].propertyValue && String(d[l].propertyValue.value) === String(o);
150
150
  }
151
- const r = /* @__PURE__ */ new Map([
151
+ const i = /* @__PURE__ */ new Map([
152
152
  ["length", t],
153
153
  ["getProperty", e]
154
154
  ]);
155
- Object.keys(o).reduce((a, d) => (a.set(d, o[d]), a), r);
156
- function i(a, d) {
157
- const n = a;
158
- return typeof d == "number" ? [{ target: n, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: n, operator: "getProperty", param: a, value: !!d }] : typeof d == "object" ? Object.keys(d).map((c) => {
159
- if (c === "length")
160
- return { target: n, operator: "length", param: null, value: d[c] };
161
- const s = c, u = d[c];
162
- return { target: n, operator: "getProperty", param: s, value: u };
155
+ Object.keys(n).reduce((l, p) => (l.set(p, n[p]), l), i);
156
+ function r(l, p) {
157
+ const o = l;
158
+ return typeof p == "number" ? [{ target: o, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: o, operator: "getProperty", param: l, value: !!p }] : typeof p == "object" ? Object.keys(p).map((d) => {
159
+ if (d === "length")
160
+ return { target: o, operator: "length", param: null, value: p[d] };
161
+ const s = d, c = p[d];
162
+ return { target: o, operator: "getProperty", param: s, value: c };
163
163
  }) : [];
164
164
  }
165
- function l(a) {
166
- return Object.keys(a).reduce((n, c) => {
167
- const s = i(c, a[c]);
168
- return n.push(...s), n;
165
+ function a(l) {
166
+ return Object.keys(l).reduce((o, d) => {
167
+ const s = r(d, l[d]);
168
+ return o.push(...s), o;
169
169
  }, []);
170
170
  }
171
- function p(a, d) {
172
- if (r.has(a.operator)) {
173
- const n = r.get(a.operator);
174
- return n && n(a.target, a.param, a.value, d) || !1;
171
+ function u(l, p) {
172
+ if (i.has(l.operator)) {
173
+ const o = i.get(l.operator);
174
+ return o && o(l.target, l.param, l.value, p) || !1;
175
175
  }
176
176
  return !1;
177
177
  }
178
- function f(a, d) {
179
- return l(a).reduce((s, u) => s && p(u, d), !0);
178
+ function y(l, p) {
179
+ return a(l).reduce((s, c) => s && u(c, p), !0);
180
180
  }
181
- function m(a, d) {
182
- const n = Object.keys(a), c = n.includes("allOf"), s = n.includes("anyOf"), u = c || s, g = (u ? a[u ? c ? "allOf" : "anyOf" : "allOf"] : [a]).map((F) => f(F, d));
183
- return c ? !g.includes(!1) : g.includes(!0);
181
+ function h(l, p) {
182
+ const o = Object.keys(l), d = o.includes("allOf"), s = o.includes("anyOf"), c = d || s, g = (c ? l[c ? d ? "allOf" : "anyOf" : "allOf"] : [l]).map((w) => y(w, p));
183
+ return d ? !g.includes(!1) : g.includes(!0);
184
184
  }
185
- return { parseValueSchema: m };
185
+ return { parseValueSchema: h };
186
186
  }
187
- const h = {
187
+ const m = {
188
188
  button: { type: "button", name: "按钮", icon: "Button" },
189
189
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
190
190
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -222,31 +222,36 @@ const h = {
222
222
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
223
223
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
224
224
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
225
- fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
226
- }, Se = {}, Fe = {};
227
- Me();
228
- function Q(o, t, e = /* @__PURE__ */ new Map(), r = (p, f, m) => f, i = {}, l = (p) => p) {
229
- return _[t.title] = t, H[t.title] = r, Se[t.title] = i, Fe[t.title] = l, (p = {}) => {
230
- const f = ke(p, t, e), m = Object.keys(o).reduce((a, d) => (a[d] = o[d].default, a), {});
231
- return Object.assign(m, f);
225
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
226
+ "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
227
+ }, Me = {}, Fe = {};
228
+ Ce();
229
+ function J(n, t, e = /* @__PURE__ */ new Map(), i = (u, y, h, l) => y, r = {}, a = (u) => u) {
230
+ return _[t.title] = t, H[t.title] = i, Me[t.title] = r, Fe[t.title] = a, (u = {}) => {
231
+ const y = ke(u, t, e), h = Object.keys(n).reduce((l, p) => (l[p] = n[p].default, l), {});
232
+ return Object.assign(h, y);
232
233
  };
233
234
  }
234
- function Te(o, t) {
235
+ function Se(n, t) {
235
236
  return { customClass: t.class, customStyle: t.style };
236
237
  }
237
238
  const Y = /* @__PURE__ */ new Map([
238
- ["appearance", Te]
239
+ ["appearance", Se]
239
240
  ]);
240
- function Z(o, t, e) {
241
+ function Z(n, t, e) {
241
242
  return t;
242
243
  }
243
- const W = {
244
+ const q = {
244
245
  /** 组件唯一标识 */
245
246
  id: { Type: String, default: "" },
246
247
  /** 自定义样式 */
247
248
  customClass: { Type: String, default: "" },
248
249
  /** 禁用状态 */
249
250
  disabled: { Type: Boolean, default: !1 },
251
+ /**
252
+ * 功能同disabled
253
+ */
254
+ readonly: { type: Boolean, default: !1 },
250
255
  /** 中间状态 */
251
256
  indeterminate: { Type: Boolean, default: !1 },
252
257
  /** 选择状态 */
@@ -263,68 +268,68 @@ const W = {
263
268
  label: { type: String, default: "" },
264
269
  /** 标识是否被选中 */
265
270
  checked: { type: Boolean, default: !1 }
266
- }, K = Q(W, be, Y, Z), $ = /* @__PURE__ */ L({
271
+ }, R = J(q, ge, Y, Z), G = /* @__PURE__ */ D({
267
272
  name: "FCheckBox",
268
- props: W,
273
+ props: q,
269
274
  emits: ["change", "changeValue", "update:modelValue", "update:checked"],
270
- setup(o, t) {
271
- const e = P(X, null), {
272
- buttonClass: r,
273
- disabled: i,
274
- name: l,
275
- shouldRenderButton: p,
276
- shouldRenderNative: f,
277
- shouldRenderTag: m,
278
- tagClass: a,
279
- checked: d,
280
- onClickCheckBox: n
281
- } = ce(o, t, e == null ? void 0 : e.parentProps, e == null ? void 0 : e.parentContext);
282
- k();
283
- const c = k(o.id), s = k(o.customClass), u = k(o.modelValue), y = k(o.indeterminate);
275
+ setup(n, t) {
276
+ const e = I(X, null), {
277
+ buttonClass: i,
278
+ disabled: r,
279
+ name: a,
280
+ shouldRenderButton: u,
281
+ shouldRenderNative: y,
282
+ shouldRenderTag: h,
283
+ tagClass: l,
284
+ checked: p,
285
+ onClickCheckBox: o
286
+ } = se(n, t, e == null ? void 0 : e.parentProps, e == null ? void 0 : e.parentContext);
287
+ M();
288
+ const d = M(n.id), s = M(n.customClass), c = M(n.modelValue), f = M(n.indeterminate);
284
289
  return x(() => {
285
- const b = {
290
+ const v = {
286
291
  "custom-control": !0,
287
292
  "custom-checkbox": !0
288
293
  };
289
- return s.value && s.value.split(" ").reduce((g, M) => (g[M] = !0, g), b), b;
290
- }), I(() => o.modelValue, (b) => {
291
- u.value = b;
292
- }), I(() => o.indeterminate, (b) => {
293
- y.value = b;
294
- }), G(() => {
294
+ return s.value && s.value.split(" ").reduce((g, C) => (g[C] = !0, g), v), v;
295
+ }), A(() => n.modelValue, (v) => {
296
+ c.value = v;
297
+ }), A(() => n.indeterminate, (v) => {
298
+ f.value = v;
299
+ }), N(() => {
295
300
  }), () => {
296
- var b, g, M, F, T, C;
297
- return S(le, null, [p.value && S("div", {
298
- class: r.value,
301
+ var v, g, C, w, V, b;
302
+ return F(ae, null, [u.value && F("div", {
303
+ class: i.value,
299
304
  style: "border-radius:0;border: 1px solid #E8EBF2;",
300
- onClick: n
301
- }, [(g = (b = t.slots).default) == null ? void 0 : g.call(b)]), m.value && S("div", {
302
- class: a.value,
303
- onClick: n
304
- }, [S("div", {
305
+ onClick: o
306
+ }, [(g = (v = t.slots).default) == null ? void 0 : g.call(v)]), h.value && F("div", {
307
+ class: l.value,
308
+ onClick: o
309
+ }, [F("div", {
305
310
  class: "title"
306
- }, [(F = (M = t.slots).default) == null ? void 0 : F.call(M)]), S("div", {
311
+ }, [(w = (C = t.slots).default) == null ? void 0 : w.call(C)]), F("div", {
307
312
  class: "tip"
308
- }, null), S("span", {
313
+ }, null), F("span", {
309
314
  class: "f-icon f-icon-check f-radio-icon"
310
- }, null)]), f.value && S("div", {
315
+ }, null)]), y.value && F("div", {
311
316
  class: "custom-control custom-checkbox",
312
- onClick: n
313
- }, [S("input", {
317
+ onClick: o
318
+ }, [F("input", {
314
319
  type: "checkbox",
315
320
  class: "custom-control-input",
316
- name: l.value,
317
- id: c,
318
- value: o.value,
319
- checked: d.value,
320
- indeterminate: y.value,
321
- disabled: i.value
322
- }, null), S("div", {
321
+ name: a.value,
322
+ id: d,
323
+ value: n.value,
324
+ checked: p.value,
325
+ indeterminate: f.value,
326
+ disabled: r.value
327
+ }, null), F("div", {
323
328
  class: "custom-control-label"
324
- }, [(C = (T = t.slots).default) == null ? void 0 : C.call(T)])])]);
329
+ }, [(b = (V = t.slots).default) == null ? void 0 : b.call(V)])])]);
325
330
  };
326
331
  }
327
- }), we = "https://json-schema.org/draft/2020-12/schema", De = "https://farris-design.gitee.io/check-box.schema.json", Be = "check-group", Ee = "A Farris Input Component", Ve = "object", Pe = {
332
+ }), Te = "https://json-schema.org/draft/2020-12/schema", we = "https://farris-design.gitee.io/check-box.schema.json", Ve = "check-group", Pe = "A Farris Input Component", Ee = "object", Be = {
328
333
  id: {
329
334
  description: "The unique identifier for a check box",
330
335
  type: "string"
@@ -367,7 +372,7 @@ const W = {
367
372
  type: "string",
368
373
  default: "value"
369
374
  },
370
- enumData: {
375
+ data: {
371
376
  description: "",
372
377
  type: "array"
373
378
  },
@@ -376,33 +381,44 @@ const W = {
376
381
  type: "boolean",
377
382
  default: !1
378
383
  },
379
- required: {
380
- description: "",
381
- type: "boolean",
382
- default: !1
383
- },
384
384
  tabindex: {
385
385
  description: "",
386
386
  type: "number",
387
387
  default: -1
388
388
  },
389
- visible: {
389
+ separator: {
390
+ description: "",
391
+ type: "string",
392
+ default: ","
393
+ },
394
+ name: {
395
+ description: "",
396
+ type: "string",
397
+ default: ""
398
+ },
399
+ horizontal: {
390
400
  description: "",
391
401
  type: "boolean",
392
- default: !0
402
+ default: !1
393
403
  }
394
404
  }, Ie = [
395
405
  "id",
396
406
  "type"
397
- ], Ae = {
398
- $schema: we,
399
- $id: De,
400
- title: Be,
401
- description: Ee,
402
- type: Ve,
403
- properties: Pe,
404
- required: Ie
405
- }, Le = {
407
+ ], Ae = [
408
+ "id",
409
+ "appearance",
410
+ "binding",
411
+ "visible"
412
+ ], Le = {
413
+ $schema: Te,
414
+ $id: we,
415
+ title: Ve,
416
+ description: Pe,
417
+ type: Ee,
418
+ properties: Be,
419
+ required: Ie,
420
+ ignore: Ae
421
+ }, De = {
406
422
  /**
407
423
  * 是否被选中
408
424
  */
@@ -419,8 +435,8 @@ const W = {
419
435
  * type为button或者tag时的尺寸
420
436
  */
421
437
  size: { type: String, default: "middle" }
422
- }, j = {
423
- ...Le,
438
+ }, W = {
439
+ ...De,
424
440
  /**
425
441
  * 组件标识
426
442
  */
@@ -430,13 +446,27 @@ const W = {
430
446
  */
431
447
  disabled: { type: Boolean, default: !1 },
432
448
  /**
433
- * 单选组枚举数组
449
+ * 同disabled
450
+ */
451
+ readonly: { type: Boolean, default: !1 },
452
+ /**
453
+ * 单选组枚举数组---废弃
434
454
  */
435
455
  enumData: {
436
456
  type: Array,
437
457
  default: [
438
- { name: "示例1", value: "example1" },
439
- { name: "示例2", value: "example2" }
458
+ { value: "example1", name: "示例一" },
459
+ { value: "example2", name: "示例二" }
460
+ ]
461
+ },
462
+ /**
463
+ * 单选组枚举数组
464
+ */
465
+ data: {
466
+ type: Array,
467
+ default: [
468
+ { value: "example1", name: "示例一" },
469
+ { value: "example2", name: "示例二" }
440
470
  ]
441
471
  },
442
472
  /**
@@ -476,234 +506,206 @@ const W = {
476
506
  * 枚举数组中枚举值的key值。
477
507
  */
478
508
  valueField: { type: String, default: "value" }
479
- }, R = Q(j, Ae, Y, Z);
480
- function ee(o, t, e) {
481
- const r = x(() => !o.disabled), i = k(o.enumData);
482
- function l(n) {
483
- return n[o.valueField];
484
- }
485
- function p(n) {
486
- return n[o.textField];
487
- }
488
- function f(n) {
489
- return n ? o.isStringValue ? n.split(o.separator) : n : [];
490
- }
491
- function m(n) {
492
- const s = i.value.map((u) => l(u)).filter((u) => n.some((y) => y === String(u)));
493
- return o.isStringValue ? s.join(o.separator) : s;
494
- }
495
- function a(n) {
496
- const c = String(l(n));
497
- return f(e.value).some((u) => u === c);
498
- }
499
- function d(n, c) {
500
- if (r.value) {
501
- let s = f(e.value) || [];
502
- const u = String(l(n));
503
- !s || !s.length ? s.push(u) : s.some((y) => y === u) ? s = s.filter((y) => y !== u) : s.push(u), e.value = m(s), t.emit("changeValue", e.value), t.emit("update:modelValue", e.value);
509
+ }, K = J(W, Le, Y, Z);
510
+ function ee(n, t, e) {
511
+ const i = x(() => !(n.readonly && n.disabled)), r = M(n.data || n.enumData);
512
+ function a(o) {
513
+ return o[n.valueField];
514
+ }
515
+ function u(o) {
516
+ return o[n.textField];
517
+ }
518
+ function y(o) {
519
+ return o ? n.isStringValue ? o.split(n.separator) : o : [];
520
+ }
521
+ function h(o) {
522
+ const s = r.value.map((c) => a(c)).filter((c) => o.some((f) => f === String(c)));
523
+ return n.isStringValue ? s.join(n.separator) : s;
524
+ }
525
+ function l(o) {
526
+ const d = String(a(o));
527
+ return y(e.value).some((c) => c === d);
528
+ }
529
+ function p(o, d) {
530
+ if (i.value) {
531
+ let s = y(e.value) || [];
532
+ const c = String(a(o));
533
+ !s || !s.length ? s.push(c) : s.some((f) => f === c) ? s = s.filter((f) => f !== c) : s.push(c), e.value = h(s), t.emit("changeValue", e.value), t.emit("update:modelValue", e.value);
504
534
  }
505
- c.stopPropagation();
535
+ d.stopPropagation();
506
536
  }
507
537
  return {
508
- enumData: i,
509
- getValue: l,
510
- getText: p,
511
- checked: a,
512
- onClickCheckbox: d
538
+ enumData: r,
539
+ getValue: a,
540
+ getText: u,
541
+ checked: l,
542
+ onClickCheckbox: p
513
543
  };
514
544
  }
515
- const V = /* @__PURE__ */ L({
545
+ const B = /* @__PURE__ */ D({
516
546
  name: "FCheckGroup",
517
- props: j,
547
+ props: W,
518
548
  emits: ["changeValue", "update:modelValue"],
519
- setup(o, t) {
520
- const e = k(o.modelValue), r = k(o.horizontal), i = k(o.tabIndex), l = k(o.name), {
521
- enumData: p,
522
- onClickCheckbox: f,
523
- getValue: m,
524
- getText: a,
525
- checked: d
526
- } = ee(o, t, e), n = x(() => ({
527
- "farris-checkradio-hor": r.value
549
+ setup(n, t) {
550
+ const e = M(n.modelValue), i = M(n.horizontal), r = M(n.tabIndex), a = M(n.name), {
551
+ enumData: u,
552
+ onClickCheckbox: y,
553
+ getValue: h,
554
+ getText: l,
555
+ checked: p
556
+ } = ee(n, t, e), o = x(() => ({
557
+ "farris-checkradio-hor": i.value
528
558
  }));
529
- I(() => o.modelValue, (s) => {
559
+ A(() => n.modelValue, (s) => {
530
560
  e.value = s;
531
561
  });
532
- const c = k([]);
533
- return se(X, {
534
- values: c,
535
- parentProps: o,
562
+ const d = M([]);
563
+ return le(X, {
564
+ values: d,
565
+ parentProps: n,
536
566
  parentContext: t
537
- }), () => S("div", {
538
- class: ["farris-input-wrap", n.value]
539
- }, [t.slots.default ? t.slots.default() : p.value.map((s, u) => {
540
- const y = "checkbox_" + l.value + u;
541
- return S("div", {
567
+ }), () => F("div", {
568
+ class: ["farris-input-wrap", o.value]
569
+ }, [t.slots.default ? t.slots.default() : u.value.map((s, c) => {
570
+ const f = "checkbox_" + a.value + c;
571
+ return F("div", {
542
572
  class: "custom-control custom-checkbox"
543
- }, [S("input", {
573
+ }, [F("input", {
544
574
  type: "checkbox",
545
575
  class: "custom-control-input",
546
- name: l.value,
547
- id: y,
548
- value: m(s),
549
- checked: d(s),
550
- disabled: o.disabled,
551
- tabindex: i.value,
552
- onClick: (b) => f(s, b)
553
- }, null), S("label", {
576
+ name: a.value,
577
+ id: f,
578
+ value: h(s),
579
+ checked: p(s),
580
+ disabled: n.readonly || n.disabled,
581
+ tabindex: r.value,
582
+ onClick: (v) => y(s, v)
583
+ }, null), F("label", {
554
584
  class: "custom-control-label",
555
- for: y,
556
- title: a(s)
557
- }, [a(s)])]);
585
+ for: f,
586
+ title: l(s)
587
+ }, [l(s)])]);
558
588
  })]);
559
589
  }
560
590
  });
561
- function te(o, t, e) {
562
- var T;
563
- function r() {
564
- e != null && e.resolveComponentContext && e.resolveComponentContext();
565
- }
566
- r();
567
- const i = e && e.getStyles && e.getStyles() || "", l = e && e.getDesignerClass && e.getDesignerClass() || "", p = k();
568
- function f() {
591
+ function te(n, t, e) {
592
+ var V;
593
+ const i = e && e.getStyles && e.getStyles() || "", r = e && e.getDesignerClass && e.getDesignerClass() || "", a = M();
594
+ function u() {
569
595
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
570
596
  }
571
- function m() {
597
+ function y() {
572
598
  return !1;
573
599
  }
574
- function a() {
600
+ function h() {
575
601
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
576
602
  }
577
- function d() {
603
+ function l() {
578
604
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
579
605
  }
580
- function n(C) {
581
- if (!C || !C.value)
606
+ function p(b) {
607
+ if (!b || !b.value)
582
608
  return null;
583
- if (C.value.schema && C.value.schema.type === "component")
584
- return C.value;
585
- const w = k(C == null ? void 0 : C.value.parent), D = n(w);
586
- return D || null;
609
+ if (b.value.schema && b.value.schema.type === "component")
610
+ return b.value;
611
+ const S = M(b == null ? void 0 : b.value.parent), T = p(S);
612
+ return T || null;
587
613
  }
588
- function c(C = t) {
589
- const { componentInstance: w, designerItemElementRef: D } = C;
590
- return !w || !w.value ? null : w.value.canMove ? D : c(C.parent);
614
+ function o(b = t) {
615
+ const { componentInstance: S, designerItemElementRef: T } = b;
616
+ return !S || !S.value ? null : S.value.canMove ? T : o(b.parent);
591
617
  }
592
- function s(C) {
593
- return !!e && e.canAccepts(C);
618
+ function d(b) {
619
+ return !!e && e.canAccepts(b);
594
620
  }
595
- function u() {
621
+ function s() {
596
622
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
597
623
  }
598
- function y() {
624
+ function c() {
599
625
  }
600
- function b(C, w) {
601
- w && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(w);
626
+ function f(b, S) {
627
+ S && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(S);
602
628
  }
603
- function g(C, w) {
604
- const { componentType: D } = C;
605
- let B = J(D, C, w);
606
- e && e.onResolveNewComponentSchema && (B = e.onResolveNewComponentSchema(C, B));
607
- const N = D.toLowerCase().replace("-", "_");
608
- return B && !B.id && B.type === D && (B.id = `${N}_${Math.random().toString().slice(2, 6)}`), B;
629
+ function v(b, S) {
630
+ const { componentType: T } = b;
631
+ let P = Q(T, b, S);
632
+ e && e.onResolveNewComponentSchema && (P = e.onResolveNewComponentSchema(b, P));
633
+ const $ = T.toLowerCase().replace(/-/g, "_");
634
+ return P && !P.id && P.type === T && (P.id = `${$}_${Math.random().toString().slice(2, 6)}`), P;
609
635
  }
610
- function M(C) {
636
+ function g(b) {
611
637
  }
612
- function F(...C) {
638
+ function C(...b) {
613
639
  if (e && e.getPropsConfig)
614
- return e.getPropsConfig(...C);
640
+ return e.getPropsConfig(...b);
641
+ }
642
+ function w() {
643
+ e && e.onRemoveComponent && e.onRemoveComponent(), t != null && t.schema.contents && t.schema.contents.map((b) => {
644
+ var P;
645
+ let S = b.id;
646
+ b.type === "component-ref" && (S = b.component);
647
+ const T = n.value.querySelector(`#${S}-design-item`);
648
+ (P = T == null ? void 0 : T.componentInstance) != null && P.value.onRemoveComponent && T.componentInstance.value.onRemoveComponent();
649
+ });
615
650
  }
616
- return p.value = {
617
- canMove: f(),
618
- canSelectParent: m(),
619
- canDelete: a(),
620
- canNested: !d(),
651
+ return a.value = {
652
+ canMove: u(),
653
+ canSelectParent: y(),
654
+ canDelete: h(),
655
+ canNested: !l(),
621
656
  contents: t == null ? void 0 : t.schema.contents,
622
- elementRef: o,
623
- parent: (T = t == null ? void 0 : t.parent) == null ? void 0 : T.componentInstance,
657
+ elementRef: n,
658
+ parent: (V = t == null ? void 0 : t.parent) == null ? void 0 : V.componentInstance,
624
659
  schema: t == null ? void 0 : t.schema,
625
660
  styles: i,
626
- designerClass: l,
627
- canAccepts: s,
628
- getBelongedComponentInstance: n,
629
- getDraggableDesignItemElement: c,
630
- getDraggingDisplayText: u,
631
- getPropConfig: F,
632
- getDragScopeElement: y,
633
- onAcceptMovedChildElement: b,
634
- onChildElementMovedOut: M,
635
- addNewChildComponentSchema: g,
636
- updateDragAndDropRules: r,
637
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || k(!1),
638
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || k(!1)
639
- }, p;
640
- }
641
- function ne(o, t) {
642
- o.schema;
643
- const e = k(!0), r = k(!0);
644
- function i(n) {
645
- return !1;
646
- }
647
- function l() {
648
- return !1;
649
- }
650
- function p() {
651
- return !1;
652
- }
653
- function f() {
654
- return !0;
655
- }
656
- function m(n) {
657
- }
658
- function a() {
659
- }
660
- function d(n) {
661
- return null;
662
- }
663
- return {
664
- canAccepts: i,
665
- checkCanDeleteComponent: l,
666
- checkCanMoveComponent: p,
667
- hideNestedPaddingInDesginerView: f,
668
- onAcceptMovedChildElement: m,
669
- resolveComponentContext: a,
670
- triggerBelongedComponentToMoveWhenMoved: e,
671
- triggerBelongedComponentToDeleteWhenDeleted: r,
672
- getPropsConfig: d
673
- };
661
+ designerClass: r,
662
+ canAccepts: d,
663
+ getBelongedComponentInstance: p,
664
+ getDraggableDesignItemElement: o,
665
+ getDraggingDisplayText: s,
666
+ getPropConfig: C,
667
+ getDragScopeElement: c,
668
+ onAcceptMovedChildElement: f,
669
+ onChildElementMovedOut: g,
670
+ addNewChildComponentSchema: v,
671
+ triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || M(!1),
672
+ triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || M(!1),
673
+ onRemoveComponent: w
674
+ }, a;
674
675
  }
675
676
  class xe {
676
677
  constructor(t, e) {
677
- v(this, "componentId");
678
- v(this, "viewModelId");
679
- v(this, "eventsEditorUtils");
680
- v(this, "formSchemaUtils");
681
- v(this, "formMetadataConverter");
682
- v(this, "designViewModelUtils");
683
- v(this, "designViewModelField");
684
- v(this, "controlCreatorUtils");
685
- v(this, "designerHostService");
686
- v(this, "schemaService", null);
687
- v(this, "metadataService", null);
688
- v(this, "propertyConfig", {
678
+ k(this, "componentId");
679
+ k(this, "viewModelId");
680
+ k(this, "eventsEditorUtils");
681
+ k(this, "formSchemaUtils");
682
+ k(this, "formMetadataConverter");
683
+ k(this, "designViewModelUtils");
684
+ k(this, "designViewModelField");
685
+ k(this, "controlCreatorUtils");
686
+ k(this, "designerHostService");
687
+ k(this, "schemaService", null);
688
+ k(this, "metadataService", null);
689
+ k(this, "propertyConfig", {
689
690
  type: "object",
690
691
  categories: {}
691
692
  });
692
- var r;
693
- this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
693
+ var i;
694
+ this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((i = this.formSchemaUtils) == null ? void 0 : i.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
694
695
  }
695
696
  getTableInfo() {
696
697
  var t;
697
698
  return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
698
699
  }
699
700
  setDesignViewModelField(t) {
701
+ var i;
700
702
  const e = t.binding && t.binding.type === "Form" && t.binding.field;
701
703
  if (e) {
702
704
  if (!this.designViewModelField) {
703
705
  const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
704
- this.designViewModelField = r.fields.find((i) => i.id === e);
706
+ this.designViewModelField = r.fields.find((a) => a.id === e);
705
707
  }
706
- t.updateOn = this.designViewModelField.updateOn;
708
+ t.updateOn = (i = this.designViewModelField) == null ? void 0 : i.updateOn;
707
709
  }
708
710
  }
709
711
  changeFieldEditorType(t, e) {
@@ -727,7 +729,7 @@ class xe {
727
729
  type: "combo-list",
728
730
  textField: "name",
729
731
  valueField: "value",
730
- data: [{ value: t.type, name: h[t.type].name }]
732
+ data: [{ value: t.type, name: m[t.type].name }]
731
733
  }
732
734
  }
733
735
  }
@@ -760,11 +762,11 @@ class xe {
760
762
  * @returns
761
763
  */
762
764
  updateElementByParentContainer(t, e) {
763
- const r = e && e.parent && e.parent.schema;
764
- if (!r)
765
+ const i = e && e.parent && e.parent.schema;
766
+ if (!i)
765
767
  return;
766
- const i = r.contents.findIndex((p) => p.id === t), l = z(r.contents[i]);
767
- r.contents.splice(i, 1), r.contents.splice(i, 0, l);
768
+ const r = i.contents.findIndex((u) => u.id === t), a = z(i.contents[r]);
769
+ i.contents.splice(r, 1), i.contents.splice(r, 0, a);
768
770
  }
769
771
  }
770
772
  const E = class E {
@@ -780,9 +782,9 @@ const E = class E {
780
782
  */
781
783
  static getAllInputTypes() {
782
784
  const t = [];
783
- for (let e in E.fieldControlTypeMapping)
784
- E.fieldControlTypeMapping[e].forEach((r) => {
785
- t.find((i) => i.key === r.key && i.value === r.value) || t.push({ key: r.key, value: r.value });
785
+ for (const e in E.fieldControlTypeMapping)
786
+ E.fieldControlTypeMapping[e].forEach((i) => {
787
+ t.find((r) => r.key === i.key && r.value === i.value) || t.push({ key: i.key, value: i.value });
786
788
  });
787
789
  return t;
788
790
  }
@@ -790,176 +792,174 @@ const E = class E {
790
792
  /**
791
793
  * <字段类型,可配置的控件类型列表>的映射
792
794
  */
793
- v(E, "fieldControlTypeMapping", {
795
+ k(E, "fieldControlTypeMapping", {
794
796
  String: [
795
- { key: h["input-group"].type, value: h["input-group"].name },
796
- { key: h.lookup.type, value: h.lookup.name },
797
- { key: h["date-picker"].type, value: h["date-picker"].name },
798
- { key: h["check-box"].type, value: h["check-box"].name },
799
- { key: h["check-group"].type, value: h["check-group"].name },
800
- { key: h["radio-group"].type, value: h["radio-group"].name },
801
- { key: h["combo-list"].type, value: h["combo-list"].name },
802
- { key: h.textarea.type, value: h.textarea.name }
797
+ { key: m["input-group"].type, value: m["input-group"].name },
798
+ { key: m.lookup.type, value: m.lookup.name },
799
+ { key: m["date-picker"].type, value: m["date-picker"].name },
800
+ { key: m["check-box"].type, value: m["check-box"].name },
801
+ { key: m["check-group"].type, value: m["check-group"].name },
802
+ { key: m["radio-group"].type, value: m["radio-group"].name },
803
+ { key: m["combo-list"].type, value: m["combo-list"].name },
804
+ { key: m.textarea.type, value: m.textarea.name }
803
805
  ],
804
806
  Text: [
805
- { key: h.textarea.type, value: h.textarea.name },
806
- { key: h.lookup.type, value: h.lookup.name }
807
+ { key: m.textarea.type, value: m.textarea.name },
808
+ { key: m.lookup.type, value: m.lookup.name }
807
809
  ],
808
810
  Decimal: [
809
- { key: h["number-spinner"].type, value: h["number-spinner"].name }
811
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
810
812
  ],
811
813
  Integer: [
812
- { key: h["number-spinner"].type, value: h["number-spinner"].name }
814
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
813
815
  ],
814
816
  Number: [
815
- { key: h["number-spinner"].type, value: h["number-spinner"].name }
817
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
816
818
  ],
817
819
  BigNumber: [
818
- { key: h["number-spinner"].type, value: h["number-spinner"].name }
820
+ { key: m["number-spinner"].type, value: m["number-spinner"].name }
819
821
  ],
820
822
  Date: [
821
- { key: h["date-picker"].type, value: h["date-picker"].name }
823
+ { key: m["date-picker"].type, value: m["date-picker"].name }
822
824
  ],
823
825
  DateTime: [
824
- { key: h["date-picker"].type, value: h["date-picker"].name }
826
+ { key: m["date-picker"].type, value: m["date-picker"].name }
825
827
  ],
826
828
  Boolean: [
827
- { key: h.switch.type, value: h.switch.name },
828
- { key: h["check-box"].type, value: h["check-box"].name }
829
+ { key: m.switch.type, value: m.switch.name },
830
+ { key: m["check-box"].type, value: m["check-box"].name }
829
831
  ],
830
832
  Enum: [
831
- { key: h["combo-list"].type, value: h["combo-list"].name },
832
- { key: h["radio-group"].type, value: h["radio-group"].name }
833
+ { key: m["combo-list"].type, value: m["combo-list"].name },
834
+ { key: m["radio-group"].type, value: m["radio-group"].name }
833
835
  ],
834
836
  Object: [
835
- { key: h.lookup.type, value: h.lookup.name },
836
- { key: h["combo-list"].type, value: h["combo-list"].name },
837
- { key: h["radio-group"].type, value: h["radio-group"].name }
837
+ { key: m.lookup.type, value: m.lookup.name },
838
+ { key: m["combo-list"].type, value: m["combo-list"].name },
839
+ { key: m["radio-group"].type, value: m["radio-group"].name }
838
840
  ]
839
841
  });
840
- let A = E;
841
- const Ne = k(0);
842
- class $e {
842
+ let L = E;
843
+ const $e = M(0);
844
+ class Ge {
843
845
  constructor() {
844
846
  /** 控件标题 */
845
- v(this, "label", "");
847
+ k(this, "label", "");
846
848
  /** 控件id */
847
- v(this, "id", "");
849
+ k(this, "id", "");
848
850
  /** 每个控件占用的栅格数 */
849
- v(this, "columnInSM", 12);
850
- v(this, "columnInMD", 6);
851
- v(this, "columnInLG", 3);
852
- v(this, "columnInEL", 2);
851
+ k(this, "columnInSM", 12);
852
+ k(this, "columnInMD", 6);
853
+ k(this, "columnInLG", 3);
854
+ k(this, "columnInEL", 2);
853
855
  /** 每个控件占用的列数 */
854
- v(this, "displayWidthInSM", 1);
855
- v(this, "displayWidthInMD", 1);
856
- v(this, "displayWidthInLG", 1);
857
- v(this, "displayWidthInEL", 1);
856
+ k(this, "displayWidthInSM", 1);
857
+ k(this, "displayWidthInMD", 1);
858
+ k(this, "displayWidthInLG", 1);
859
+ k(this, "displayWidthInEL", 1);
858
860
  /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
859
- v(this, "displayColumnCountAtBreakPoint", "md");
861
+ k(this, "displayColumnCountAtBreakPoint", "md");
860
862
  /** 控件所在行,传0即可-----编辑器内部使用 */
861
- v(this, "tagRow", 0);
863
+ k(this, "tagRow", 0);
862
864
  /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
863
- v(this, "showTopBorder", 0);
865
+ k(this, "showTopBorder", 0);
864
866
  /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
865
- v(this, "group", 1);
867
+ k(this, "group", 1);
866
868
  /** 控件是否符合标准的class配置(设计器用的) */
867
- v(this, "isSupportedClass", !0);
869
+ k(this, "isSupportedClass", !0);
868
870
  /** 控件所在分组id(设计器用的) */
869
- v(this, "fieldSetId", "");
871
+ k(this, "fieldSetId", "");
870
872
  }
871
873
  }
872
- function Ge(o) {
874
+ function Ne(n) {
873
875
  let t, e;
874
- const r = /* @__PURE__ */ new Map();
875
- let i = [];
876
- function l(d, n) {
877
- const s = d.split(" ").filter((M) => M.startsWith("col-"));
876
+ const i = /* @__PURE__ */ new Map();
877
+ let r = [];
878
+ function a(p, o) {
879
+ const s = p.split(" ").filter((C) => C.startsWith("col-"));
878
880
  if (s.length === 0) {
879
- n.isSupportedClass = !1;
881
+ o.isSupportedClass = !1;
880
882
  return;
881
883
  }
882
- let u = s.find((M) => /^col-([1-9]|10|11|12)$/.test(M)), y = s.find((M) => /^col-md-([1-9]|10|11|12)$/.test(M)), b = s.find((M) => /^col-xl-([1-9]|10|11|12)$/.test(M)), g = s.find((M) => /^col-el-([1-9]|10|11|12)$/.test(M));
883
- u = u || "col-12", n.columnInSM = parseInt(u.replace("col-", ""), 10), n.displayWidthInSM = n.columnInSM / 12, n.displayWidthInSM !== 1 && (n.isSupportedClass = !1), y = y || "col-md-" + n.columnInSM, n.columnInMD = parseInt(y.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), g = g || "col-el-" + n.columnInLG, n.columnInEL = parseInt(g.replace("col-el-", ""), 10), n.displayWidthInEL = n.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(n.displayWidthInEL) || (n.isSupportedClass = !1);
884
- }
885
- function p(d, n, c, s = !1) {
886
- let u = !1;
887
- d.contents.forEach((y) => {
888
- if (y.type === "fieldset") {
889
- c += 1, p(y, n, c, !0), u = !0;
884
+ let c = s.find((C) => /^col-([1-9]|10|11|12)$/.test(C)), f = s.find((C) => /^col-md-([1-9]|10|11|12)$/.test(C)), v = s.find((C) => /^col-xl-([1-9]|10|11|12)$/.test(C)), g = s.find((C) => /^col-el-([1-9]|10|11|12)$/.test(C));
885
+ c = c || "col-12", o.columnInSM = parseInt(c.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), f = f || "col-md-" + o.columnInSM, o.columnInMD = parseInt(f.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), v = v || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(v.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), g = g || "col-el-" + o.columnInLG, o.columnInEL = parseInt(g.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
886
+ }
887
+ function u(p, o, d, s = !1) {
888
+ let c = !1;
889
+ p.contents.forEach((f) => {
890
+ if (f.type === "fieldset") {
891
+ d += 1, u(f, o, d, !0), c = !0;
890
892
  return;
891
893
  }
892
- u && (c += 1, u = !1);
893
- const b = y.appearance && y.appearance.class, g = new $e();
894
- b ? l(b, g) : g.isSupportedClass = !1, g.label = y.label || y.id, g.id = y.id, g.group = c, s && (g.fieldSetId = d.id), e === y.id && (t = c), r.set(y.id, y), n.push(g);
894
+ c && (d += 1, c = !1);
895
+ const v = f.appearance && f.appearance.class, g = new Ge();
896
+ v ? a(v, g) : g.isSupportedClass = !1, g.label = f.label || f.id, g.id = f.id, g.group = d, s && (g.fieldSetId = p.id), e === f.id && (t = d), i.set(f.id, f), o.push(g);
895
897
  });
896
898
  }
897
- function f(d) {
898
- const n = o.getComponentById(d);
899
- if (!n || !n.componentType || !n.componentType.startsWith("form"))
899
+ function y(p) {
900
+ const o = n.getComponentById(p);
901
+ if (!o || !o.componentType || !o.componentType.startsWith("form"))
900
902
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
901
- const c = o.selectNode(n, (s) => s.type === q["response-form"].type);
902
- return !c || !c.contents || c.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: c };
903
- }
904
- function m(d, n) {
905
- n = n || d.id;
906
- const { result: c, message: s, formNode: u } = f(n);
907
- if (!c)
908
- return { result: c, message: s };
909
- e = d.id, i = [], r.clear();
910
- const y = u.contents[0].type === q.fieldset.type ? 0 : 1;
911
- p(u, i, y);
912
- const b = i.find((M) => !M.isSupportedClass);
903
+ const d = n.selectNode(o, (s) => s.type === O["response-form"].type);
904
+ return !d || !d.contents || d.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: d };
905
+ }
906
+ function h(p, o) {
907
+ o = o || p.id;
908
+ const { result: d, message: s, formNode: c } = y(o);
909
+ if (!d)
910
+ return { result: d, message: s };
911
+ e = p.id, r = [], i.clear();
912
+ const f = c.contents[0].type === O.fieldset.type ? 0 : 1;
913
+ u(c, r, f);
914
+ const v = r.find((C) => !C.isSupportedClass);
913
915
  return {
914
916
  defaultState: {
915
917
  defaultGroupNumber: t || 1,
916
- model: b ? "customize" : "standard"
918
+ model: v ? "customize" : "standard"
917
919
  },
918
- importData: i
920
+ importData: r
919
921
  };
920
922
  }
921
- function a(d, n) {
922
- n = n;
923
- const { result: c, formNode: s } = f(n);
924
- if (!c)
923
+ function l(p, o) {
924
+ o = o;
925
+ const { result: d, formNode: s } = y(o);
926
+ if (!d)
925
927
  return "";
926
- const u = [];
927
- return d.forEach((y) => {
928
- var M;
929
- const b = r.get(y.id), g = b.appearance && b.appearance.class;
928
+ const c = [];
929
+ return p.forEach((f) => {
930
+ var C;
931
+ const v = i.get(f.id), g = v.appearance && v.appearance.class;
930
932
  if (g) {
931
- const T = g.split(" ").filter((re) => !re.startsWith("col-")), C = "col-" + y.columnInSM, w = "col-md-" + y.columnInMD, D = "col-xl-" + y.columnInLG, B = "col-el-" + y.columnInEL, N = [C, w, D, B].concat(T);
932
- b.appearance.class = N.join(" ");
933
+ const V = g.split(" ").filter((oe) => !oe.startsWith("col-")), b = "col-" + f.columnInSM, S = "col-md-" + f.columnInMD, T = "col-xl-" + f.columnInLG, P = "col-el-" + f.columnInEL, $ = [b, S, T, P].concat(V);
934
+ v.appearance.class = $.join(" ");
933
935
  }
934
- if (y.fieldSetId) {
935
- const F = s.contents.find((C) => C.id === y.fieldSetId), T = u.find((C) => C.id === y.fieldSetId);
936
- T ? (M = T.contents) == null || M.push(b) : (u.push(F), F.contents = [b]);
936
+ if (f.fieldSetId) {
937
+ const w = s.contents.find((b) => b.id === f.fieldSetId), V = c.find((b) => b.id === f.fieldSetId);
938
+ V ? (C = V.contents) == null || C.push(v) : (c.push(w), w.contents = [v]);
937
939
  } else
938
- u.push(b);
939
- }), s.contents = u, s.id;
940
+ c.push(v);
941
+ }), s.contents = c, s.id;
940
942
  }
941
943
  return {
942
- checkCanFindFormNode: f,
943
- checkCanOpenLayoutEditor: m,
944
- changeFormControlsByResponseLayoutConfig: a,
945
- getResonseFormLayoutConfig: p
944
+ checkCanFindFormNode: y,
945
+ checkCanOpenLayoutEditor: h,
946
+ changeFormControlsByResponseLayoutConfig: l,
947
+ getResonseFormLayoutConfig: u
946
948
  };
947
949
  }
948
- class oe extends xe {
949
- constructor(e, r) {
950
- super(e, r);
951
- v(this, "responseLayoutEditorFunction");
952
- this.responseLayoutEditorFunction = Ge(this.formSchemaUtils);
953
- }
954
- getPropertyConfig(e, r) {
955
- return this.propertyConfig.categories.basic = this.getBasicProperties(e, r), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, r), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
956
- }
957
- getBasicProperties(e, r) {
958
- var f;
959
- var i = this;
960
- this.setDesignViewModelField(e);
961
- const l = this.formSchemaUtils.getFormMetadataBasicInfo(), p = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
962
- return {
950
+ class ne extends xe {
951
+ constructor(e, i) {
952
+ super(e, i);
953
+ k(this, "responseLayoutEditorFunction");
954
+ this.responseLayoutEditorFunction = Ne(this.formSchemaUtils);
955
+ }
956
+ getPropertyConfig(e, i) {
957
+ return this.propertyConfig.categories.basic = this.getBasicProperties(e, i), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, i), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
958
+ }
959
+ getBasicProperties(e, i) {
960
+ var a;
961
+ const r = this;
962
+ return this.setDesignViewModelField(e), this.formSchemaUtils.getFormMetadataBasicInfo(), {
963
963
  description: "Basic Information",
964
964
  title: "基本信息",
965
965
  properties: {
@@ -980,7 +980,7 @@ class oe extends xe {
980
980
  textField: "value",
981
981
  valueField: "key",
982
982
  editable: !1,
983
- data: i.designViewModelField ? A.getEditorTypesByMDataType((f = i.designViewModelField.type) == null ? void 0 : f.name) : A.getAllInputTypes()
983
+ data: r.designViewModelField ? L.getEditorTypesByMDataType((a = r.designViewModelField.type) == null ? void 0 : a.name) : L.getAllInputTypes()
984
984
  }
985
985
  },
986
986
  label: {
@@ -991,41 +991,37 @@ class oe extends xe {
991
991
  binding: {
992
992
  description: "绑定的表单字段",
993
993
  title: "绑定",
994
- $converter: "/converter/field-selector.converter",
995
994
  editor: {
996
- type: "field-selector",
995
+ type: "binding-selector",
997
996
  bindingType: { enable: !1 },
998
997
  editorParams: {
999
- propertyData: e,
1000
- formBasicInfo: l
998
+ componentSchema: e,
999
+ needSyncToViewModel: !0,
1000
+ viewModelId: this.viewModelId,
1001
+ designerHostService: this.designerHostService,
1002
+ disableOccupiedFields: !0
1001
1003
  },
1002
- columns: [
1003
- { field: "name", title: "字段名称" },
1004
- { field: "bindingField", title: "绑定字段" },
1005
- { field: "fieldType", title: "字段类型" }
1006
- ],
1007
- textField: "bindingField",
1008
- data: p
1004
+ textField: "bindingField"
1009
1005
  }
1010
1006
  }
1011
1007
  },
1012
- setPropertyRelates(m, a) {
1013
- if (m)
1014
- switch (m && m.propertyID) {
1008
+ setPropertyRelates(u, y) {
1009
+ if (u)
1010
+ switch (u && u.propertyID) {
1015
1011
  case "type": {
1016
- i.changeControlType(e, m, r);
1012
+ r.changeControlType(e, u, i);
1017
1013
  break;
1018
1014
  }
1019
1015
  case "label": {
1020
- m.needRefreshControlTree = !0;
1016
+ u.needRefreshControlTree = !0;
1021
1017
  break;
1022
1018
  }
1023
1019
  }
1024
1020
  }
1025
1021
  };
1026
1022
  }
1027
- getAppearanceProperties(e, r) {
1028
- var i = this;
1023
+ getAppearanceProperties(e, i) {
1024
+ const r = this;
1029
1025
  return {
1030
1026
  title: "样式",
1031
1027
  description: "Appearance",
@@ -1051,18 +1047,18 @@ class oe extends xe {
1051
1047
  refreshPanelAfterChanged: !0,
1052
1048
  editor: {
1053
1049
  type: "response-layout-editor-setting",
1054
- initialState: i.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, i.componentId)
1050
+ initialState: r.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, r.componentId)
1055
1051
  }
1056
1052
  }
1057
1053
  },
1058
- setPropertyRelates(l, p) {
1059
- if (l)
1060
- switch (l && l.propertyID) {
1054
+ setPropertyRelates(a, u) {
1055
+ if (a)
1056
+ switch (a && a.propertyID) {
1061
1057
  case "responseLayout":
1062
- i.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, i.componentId || e.id), i.updateUnifiedLayoutAfterResponseLayoutChanged(i.componentId), i.updateElementByParentContainer(e.id, r), delete e.responseLayout;
1058
+ r.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(a.propertyValue, r.componentId || e.id), r.updateUnifiedLayoutAfterResponseLayoutChanged(r.componentId), r.updateElementByParentContainer(e.id, i), delete e.responseLayout;
1063
1059
  break;
1064
1060
  case "class":
1065
- i.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), i.updateElementByParentContainer(e.id, r);
1061
+ r.updateUnifiedLayoutAfterControlChanged(a.propertyValue, e.id, this.componentId), r.updateElementByParentContainer(e.id, i);
1066
1062
  break;
1067
1063
  }
1068
1064
  }
@@ -1076,44 +1072,44 @@ class oe extends xe {
1076
1072
  * @param propertyData 控件DOM属性
1077
1073
  * @param newControlType 新控件类型
1078
1074
  */
1079
- changeControlType(e, r, i) {
1080
- var d, n, c, s;
1081
- const l = r.propertyValue, p = i && i.parent && i.parent.schema;
1082
- if (!p)
1075
+ changeControlType(e, i, r) {
1076
+ var p, o, d, s;
1077
+ const a = i.propertyValue, u = r && r.parent && r.parent.schema;
1078
+ if (!u)
1083
1079
  return;
1084
- const f = p.contents.findIndex((u) => u.id === e.id), m = p.contents[f];
1085
- let a;
1080
+ const y = u.contents.findIndex((c) => c.id === e.id), h = u.contents[y];
1081
+ let l;
1086
1082
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1087
1083
  editor: {
1088
- $type: l
1084
+ $type: a
1089
1085
  },
1090
1086
  name: this.designViewModelField.name,
1091
1087
  require: this.designViewModelField.require,
1092
1088
  readonly: this.designViewModelField.readonly
1093
- }, !1), a = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), a || (a = this.controlCreatorUtils.createFormGroupWithoutField(l)), Object.assign(a, {
1094
- id: m.id,
1095
- appearance: m.appearance,
1096
- size: m.size,
1097
- label: m.label,
1098
- binding: m.binding,
1099
- visible: m.visible
1100
- }), Object.assign(a.editor, {
1101
- isTextArea: a.isTextArea && m.isTextArea,
1102
- placeholder: (d = m.editor) == null ? void 0 : d.placeholder,
1103
- holdPlace: (n = m.editor) == null ? void 0 : n.holdPlace,
1104
- readonly: (c = m.editor) == null ? void 0 : c.readonly,
1105
- require: (s = m.editor) == null ? void 0 : s.require
1106
- }), p.contents.splice(f, 1), p.contents.splice(f, 0, a), i.schema = Object.assign(m, a), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1107
- (u) => u.classList.remove("dgComponentSelected")
1108
- ), Ne.value++;
1109
- }
1110
- getComponentConfig(e, r = {}, i = {}) {
1111
- const l = Object.assign({
1089
+ }, !1), l = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), l || (l = this.controlCreatorUtils.createFormGroupWithoutField(a)), Object.assign(l, {
1090
+ id: h.id,
1091
+ appearance: h.appearance,
1092
+ size: h.size,
1093
+ label: h.label,
1094
+ binding: h.binding,
1095
+ visible: h.visible
1096
+ }), Object.assign(l.editor, {
1097
+ isTextArea: l.isTextArea && h.isTextArea,
1098
+ placeholder: (p = h.editor) == null ? void 0 : p.placeholder,
1099
+ holdPlace: (o = h.editor) == null ? void 0 : o.holdPlace,
1100
+ readonly: (d = h.editor) == null ? void 0 : d.readonly,
1101
+ require: (s = h.editor) == null ? void 0 : s.require
1102
+ }), u.contents.splice(y, 1), u.contents.splice(y, 0, l), r.schema = Object.assign(h, l), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1103
+ (c) => c.classList.remove("dgComponentSelected")
1104
+ ), $e.value++;
1105
+ }
1106
+ getComponentConfig(e, i = {}, r = {}) {
1107
+ const a = Object.assign({
1112
1108
  description: "编辑器",
1113
1109
  title: "编辑器",
1114
1110
  type: "input-group",
1115
1111
  $converter: "/converter/property-editor.converter"
1116
- }, r), p = Object.assign({
1112
+ }, i), u = Object.assign({
1117
1113
  readonly: {
1118
1114
  description: "",
1119
1115
  title: "只读",
@@ -1134,8 +1130,8 @@ class oe extends xe {
1134
1130
  title: "提示文本",
1135
1131
  type: "string"
1136
1132
  }
1137
- }, i);
1138
- return { ...l, properties: { ...p } };
1133
+ }, r);
1134
+ return { ...a, properties: { ...u } };
1139
1135
  }
1140
1136
  /**
1141
1137
  * 修改某一输入控件的样式后更新Form的统一布局配置
@@ -1143,38 +1139,38 @@ class oe extends xe {
1143
1139
  * @param controlId 控件Id
1144
1140
  * @param componentId 控件所在组件id
1145
1141
  */
1146
- updateUnifiedLayoutAfterControlChanged(e, r, i) {
1147
- const l = e.split(" ");
1148
- let p = l.find((n) => /^col-([1-9]|10|11|12)$/.test(n)), f = l.find((n) => /^col-md-([1-9]|10|11|12)$/.test(n)), m = 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));
1149
- p = p || "col-12", f = f || "col-md-" + p.replace("col-", ""), m = m || "col-xl-" + f.replace("col-md-", ""), a = a || "col-el-" + m.replace("col-xl-", "");
1150
- const d = {
1151
- id: r,
1152
- columnInSM: parseInt(p.replace("col-", ""), 10),
1153
- columnInMD: parseInt(f.replace("col-md-", ""), 10),
1154
- columnInLG: parseInt(m.replace("col-xl-", ""), 10),
1155
- columnInEL: parseInt(a.replace("col-el-", ""), 10)
1142
+ updateUnifiedLayoutAfterControlChanged(e, i, r) {
1143
+ const a = e.split(" ");
1144
+ let u = a.find((o) => /^col-([1-9]|10|11|12)$/.test(o)), y = a.find((o) => /^col-md-([1-9]|10|11|12)$/.test(o)), h = a.find((o) => /^col-xl-([1-9]|10|11|12)$/.test(o)), l = a.find((o) => /^col-el-([1-9]|10|11|12)$/.test(o));
1145
+ u = u || "col-12", y = y || "col-md-" + u.replace("col-", ""), h = h || "col-xl-" + y.replace("col-md-", ""), l = l || "col-el-" + h.replace("col-xl-", "");
1146
+ const p = {
1147
+ id: i,
1148
+ columnInSM: parseInt(u.replace("col-", ""), 10),
1149
+ columnInMD: parseInt(y.replace("col-md-", ""), 10),
1150
+ columnInLG: parseInt(h.replace("col-xl-", ""), 10),
1151
+ columnInEL: parseInt(l.replace("col-el-", ""), 10)
1156
1152
  };
1157
- this.updateUnifiedLayoutAfterResponseLayoutChanged(i, d);
1153
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(r, p);
1158
1154
  }
1159
1155
  /**
1160
1156
  * 修改控件布局配置后更新Form统一布局配置
1161
1157
  * @param componentId 组件Id
1162
1158
  * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
1163
1159
  */
1164
- updateUnifiedLayoutAfterResponseLayoutChanged(e, r) {
1165
- const { formNode: i } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
1166
- if (!i || !i.unifiedLayout)
1160
+ updateUnifiedLayoutAfterResponseLayoutChanged(e, i) {
1161
+ const { formNode: r } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
1162
+ if (!r || !r.unifiedLayout)
1167
1163
  return;
1168
- const l = [];
1169
- if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(i, l, 1), r) {
1170
- const u = l.find((y) => y.id === r.id);
1171
- Object.assign(u || {}, r);
1164
+ const a = [];
1165
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(r, a, 1), i) {
1166
+ const c = a.find((f) => f.id === i.id);
1167
+ Object.assign(c || {}, i);
1172
1168
  }
1173
- const p = l.map((u) => u.columnInSM), f = l.map((u) => u.columnInMD), m = l.map((u) => u.columnInLG), a = l.map((u) => u.columnInEL), d = this.checkIsUniqueColumn(p) ? p[0] : null, n = this.checkIsUniqueColumn(f) ? f[0] : null, c = this.checkIsUniqueColumn(m) ? m[0] : null, s = this.checkIsUniqueColumn(a) ? a[0] : null;
1174
- Object.assign(i.unifiedLayout, {
1175
- uniqueColClassInSM: d,
1176
- uniqueColClassInMD: n,
1177
- uniqueColClassInLG: c,
1169
+ const u = a.map((c) => c.columnInSM), y = a.map((c) => c.columnInMD), h = a.map((c) => c.columnInLG), l = a.map((c) => c.columnInEL), p = this.checkIsUniqueColumn(u) ? u[0] : null, o = this.checkIsUniqueColumn(y) ? y[0] : null, d = this.checkIsUniqueColumn(h) ? h[0] : null, s = this.checkIsUniqueColumn(l) ? l[0] : null;
1170
+ Object.assign(r.unifiedLayout, {
1171
+ uniqueColClassInSM: p,
1172
+ uniqueColClassInMD: o,
1173
+ uniqueColClassInLG: d,
1178
1174
  uniqueColClassInEL: s
1179
1175
  });
1180
1176
  }
@@ -1182,19 +1178,22 @@ class oe extends xe {
1182
1178
  * 校验宽度样式值是否一致
1183
1179
  */
1184
1180
  checkIsUniqueColumn(e) {
1185
- const r = new Set(e);
1186
- return Array.from(r).length === 1;
1181
+ const i = new Set(e);
1182
+ return Array.from(i).length === 1;
1187
1183
  }
1188
1184
  }
1189
- class Ue extends oe {
1185
+ class Ue extends ne {
1190
1186
  constructor(t, e) {
1191
1187
  super(t, e);
1192
1188
  }
1193
1189
  getEditorProperties(t) {
1194
- return this.getComponentConfig(t, { type: "check-group" }, {
1190
+ const e = this.getComponentConfig(t, { type: "check-group" }, {
1195
1191
  placeholder: {
1196
1192
  visible: !1
1197
1193
  },
1194
+ disabled: {
1195
+ visible: !1
1196
+ },
1198
1197
  textField: {
1199
1198
  description: "",
1200
1199
  title: "文本字段",
@@ -1205,15 +1204,38 @@ class Ue extends oe {
1205
1204
  title: "值字段",
1206
1205
  type: "string"
1207
1206
  },
1208
- enumData: {
1209
- visible: !1,
1207
+ data: {
1210
1208
  description: "",
1211
- type: "array"
1209
+ title: "数据",
1210
+ type: "array",
1211
+ editor: {
1212
+ columns: [
1213
+ { field: t.editor.valueField, title: "值", dataType: "string" },
1214
+ { field: t.editor.textField, title: "名称", dataType: "string" },
1215
+ { field: "disabled", title: "禁用", visible: !1, dataType: "boolean", editor: { type: "switch" } }
1216
+ ],
1217
+ type: "item-collection-editor",
1218
+ valueField: t.editor.valueField,
1219
+ nameField: t.editor.textField,
1220
+ requiredFields: [t.editor.valueField, t.editor.textField],
1221
+ uniqueFields: [t.editor.valueField, t.editor.textField]
1222
+ },
1223
+ // 这个属性,标记当属性变更得时候触发重新更新属性
1224
+ refreshPanelAfterChanged: !0
1212
1225
  }
1213
1226
  });
1227
+ return e.setPropertyRelates = function(i) {
1228
+ if (i)
1229
+ switch (i.propertyID) {
1230
+ case "data": {
1231
+ i.propertyValue.parameters && (t.editor.valueField = i.propertyValue.parameters.valueField, t.editor.textField = i.propertyValue.parameters.nameField), t.editor.data = i.propertyValue.value;
1232
+ break;
1233
+ }
1234
+ }
1235
+ }, e;
1214
1236
  }
1215
1237
  }
1216
- class We extends oe {
1238
+ class qe extends ne {
1217
1239
  constructor(t, e) {
1218
1240
  super(t, e);
1219
1241
  }
@@ -1222,6 +1244,9 @@ class We extends oe {
1222
1244
  placeholder: {
1223
1245
  visible: !1
1224
1246
  },
1247
+ disabled: {
1248
+ visible: !1
1249
+ },
1225
1250
  text: {
1226
1251
  description: "",
1227
1252
  title: "显示文本",
@@ -1235,141 +1260,103 @@ class We extends oe {
1235
1260
  });
1236
1261
  }
1237
1262
  }
1238
- function je(o, t) {
1239
- const {
1240
- canAccepts: e,
1241
- checkCanDeleteComponent: r,
1242
- checkCanMoveComponent: i,
1243
- hideNestedPaddingInDesginerView: l,
1244
- onAcceptMovedChildElement: p,
1245
- resolveComponentContext: f,
1246
- triggerBelongedComponentToMoveWhenMoved: m,
1247
- triggerBelongedComponentToDeleteWhenDeleted: a
1248
- } = ne(o), d = o.schema;
1249
- function n(c, s) {
1250
- return new Ue(c, t).getPropertyConfig(d, s);
1263
+ function We(n, t) {
1264
+ const e = n.schema;
1265
+ function i(r, a) {
1266
+ return new Ue(r, t).getPropertyConfig(e, a);
1251
1267
  }
1252
- return {
1253
- canAccepts: e,
1254
- checkCanDeleteComponent: r,
1255
- checkCanMoveComponent: i,
1256
- hideNestedPaddingInDesginerView: l,
1257
- onAcceptMovedChildElement: p,
1258
- resolveComponentContext: f,
1259
- triggerBelongedComponentToMoveWhenMoved: m,
1260
- triggerBelongedComponentToDeleteWhenDeleted: a,
1261
- getPropsConfig: n
1262
- };
1268
+ return { getPropsConfig: i };
1263
1269
  }
1264
- function Oe(o, t) {
1265
- const {
1266
- canAccepts: e,
1267
- checkCanDeleteComponent: r,
1268
- checkCanMoveComponent: i,
1269
- hideNestedPaddingInDesginerView: l,
1270
- onAcceptMovedChildElement: p,
1271
- resolveComponentContext: f,
1272
- triggerBelongedComponentToMoveWhenMoved: m,
1273
- triggerBelongedComponentToDeleteWhenDeleted: a
1274
- } = ne(o), d = o.schema;
1275
- function n(c, s) {
1276
- return new We(c, t).getPropertyConfig(d, s);
1270
+ function je(n, t) {
1271
+ const e = n.schema;
1272
+ function i(r, a) {
1273
+ return new qe(r, t).getPropertyConfig(e, a);
1277
1274
  }
1278
- return {
1279
- canAccepts: e,
1280
- checkCanDeleteComponent: r,
1281
- checkCanMoveComponent: i,
1282
- hideNestedPaddingInDesginerView: l,
1283
- onAcceptMovedChildElement: p,
1284
- resolveComponentContext: f,
1285
- triggerBelongedComponentToMoveWhenMoved: m,
1286
- triggerBelongedComponentToDeleteWhenDeleted: a,
1287
- getPropsConfig: n
1288
- };
1275
+ return { getPropsConfig: i };
1289
1276
  }
1290
- const qe = /* @__PURE__ */ L({
1277
+ const Oe = /* @__PURE__ */ D({
1291
1278
  name: "FCheckboxGroupDesign",
1292
- props: j,
1279
+ props: W,
1293
1280
  emits: ["changeValue", "update:modelValue"],
1294
- setup(o, t) {
1295
- const e = k(o.modelValue), r = k(o.horizontal), i = k(o.tabIndex), l = k(o.name), p = x(() => ({
1296
- "farris-checkradio-hor": r.value
1281
+ setup(n, t) {
1282
+ const e = M(n.modelValue), i = M(n.horizontal), r = M(n.tabIndex), a = M(n.name), u = x(() => ({
1283
+ "farris-checkradio-hor": i.value
1297
1284
  })), {
1298
- enumData: f,
1299
- onClickCheckbox: m,
1300
- getValue: a,
1301
- getText: d,
1302
- checked: n
1303
- } = ee(o, t, e), c = k(), s = P("designer-host-service"), u = P("design-item-context"), y = je(u, s), b = te(c, u, y);
1304
- return G(() => {
1305
- c.value.componentInstance = b;
1306
- }), t.expose(b.value), I(() => o.modelValue, (g) => {
1285
+ enumData: y,
1286
+ onClickCheckbox: h,
1287
+ getValue: l,
1288
+ getText: p,
1289
+ checked: o
1290
+ } = ee(n, t, e), d = M(), s = I("designer-host-service"), c = I("design-item-context"), f = We(c, s), v = te(d, c, f);
1291
+ return N(() => {
1292
+ d.value.componentInstance = v;
1293
+ }), t.expose(v.value), A(() => n.modelValue, (g) => {
1307
1294
  e.value = g, t.emit("changeValue", e.value);
1308
- }), () => S("div", {
1309
- ref: c,
1310
- class: ["farris-input-wrap", p.value]
1311
- }, [f.value.map((g, M) => {
1312
- const F = "checkbox_" + l.value + M;
1313
- return S("div", {
1295
+ }), () => F("div", {
1296
+ ref: d,
1297
+ class: ["farris-input-wrap", u.value]
1298
+ }, [y.value.map((g, C) => {
1299
+ const w = "checkbox_" + a.value + C;
1300
+ return F("div", {
1314
1301
  class: "custom-control custom-checkbox"
1315
- }, [S("input", {
1302
+ }, [F("input", {
1316
1303
  type: "checkbox",
1317
1304
  class: "custom-control-input",
1318
- name: l.value,
1319
- id: F,
1320
- value: a(g),
1321
- checked: n(g),
1322
- disabled: o.disabled,
1323
- tabindex: i.value,
1324
- onClick: (T) => m(g, T)
1325
- }, null), S("label", {
1305
+ name: a.value,
1306
+ id: w,
1307
+ value: l(g),
1308
+ checked: o(g),
1309
+ disabled: n.readonly || n.disabled,
1310
+ tabindex: r.value,
1311
+ onClick: (V) => h(g, V)
1312
+ }, null), F("label", {
1326
1313
  class: "custom-control-label",
1327
- for: F,
1328
- title: d(g)
1329
- }, [d(g)])]);
1314
+ for: w,
1315
+ title: p(g)
1316
+ }, [p(g)])]);
1330
1317
  })]);
1331
1318
  }
1332
- }), ze = /* @__PURE__ */ L({
1319
+ }), ze = /* @__PURE__ */ D({
1333
1320
  name: "FCheckBoxDesign",
1334
- props: W,
1321
+ props: q,
1335
1322
  emits: [],
1336
- setup(o, t) {
1337
- const e = k(), r = k(o.id), i = k(o.indeterminate), l = P("designer-host-service"), p = P("design-item-context"), f = Oe(p, l), m = te(e, p, f);
1338
- return G(() => {
1339
- e.value.componentInstance = m;
1340
- }), I(() => o.indeterminate, (a) => {
1341
- i.value = a;
1342
- }), t.expose(m.value), () => S("div", {
1323
+ setup(n, t) {
1324
+ const e = M(), i = M(n.id), r = M(n.indeterminate), a = I("designer-host-service"), u = I("design-item-context"), y = je(u, a), h = te(e, u, y);
1325
+ return N(() => {
1326
+ e.value.componentInstance = h;
1327
+ }), A(() => n.indeterminate, (l) => {
1328
+ r.value = l;
1329
+ }), t.expose(h.value), () => F("div", {
1343
1330
  ref: e,
1344
- dragref: `${p.schema.id}-container`,
1331
+ dragref: `${u.schema.id}-container`,
1345
1332
  class: "drag-container custom-control custom-checkbox"
1346
- }, [S("input", {
1333
+ }, [F("input", {
1347
1334
  type: "checkbox",
1348
1335
  class: "custom-control-input",
1349
- id: r,
1350
- value: o.value,
1351
- checked: o.modelValue,
1352
- disabled: o.disabled
1353
- }, null), S("div", {
1336
+ id: i,
1337
+ value: n.value,
1338
+ checked: n.modelValue,
1339
+ disabled: n.readonly || n.disabled
1340
+ }, null), F("div", {
1354
1341
  class: "custom-control-label"
1355
1342
  }, null)]);
1356
1343
  }
1357
1344
  });
1358
- V.install = (o) => {
1359
- o.component(V.name, V), o.component($.name, $);
1345
+ B.install = (n) => {
1346
+ n.component(B.name, B), n.component(G.name, G);
1360
1347
  };
1361
- V.register = (o, t, e, r) => {
1362
- o["check-box"] = $, t["check-box"] = K, o["check-group"] = V, t["check-group"] = R;
1348
+ B.register = (n, t, e, i) => {
1349
+ n["check-box"] = G, t["check-box"] = R, n["check-group"] = B, t["check-group"] = K;
1363
1350
  };
1364
- V.registerDesigner = (o, t, e) => {
1365
- o["check-box"] = ze, t["check-box"] = K, o["check-group"] = qe, t["check-group"] = R;
1351
+ B.registerDesigner = (n, t, e) => {
1352
+ n["check-box"] = ze, t["check-box"] = R, n["check-group"] = Oe, t["check-group"] = K;
1366
1353
  };
1367
1354
  export {
1368
- $ as FCheckBox,
1369
- V as FCheckBoxGroup,
1370
- R as checkBoxGroupPropsResolver,
1371
- W as checkBoxProps,
1372
- K as checkBoxPropsResolver,
1373
- j as checkboxGroupProps,
1374
- V as default
1355
+ G as FCheckBox,
1356
+ B as FCheckBoxGroup,
1357
+ K as checkBoxGroupPropsResolver,
1358
+ q as checkBoxProps,
1359
+ R as checkBoxPropsResolver,
1360
+ W as checkboxGroupProps,
1361
+ B as default
1375
1362
  };