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