@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,104 +1,98 @@
1
- var ie = Object.defineProperty;
2
- var le = (e, n, t) => n in e ? ie(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var x = (e, n, t) => le(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { ref as h, computed as g, watch as D, onMounted as N, nextTick as z, createVNode as B, reactive as se, withDirectives as ue, resolveDirective as ce, defineComponent as _, Fragment as R, inject as J } from "vue";
5
- import { isPlainObject as X, cloneDeep as Q } from "lodash-es";
6
- import "bignumber.js";
7
- import { useNumber as de, useFormat as pe, useSpinner as fe, useTextBox as me } from "../number-spinner/index.esm.js";
8
- import { getSchemaByType as Z } from "../dynamic-resolver/index.esm.js";
9
- import { useResponseLayoutEditorSetting as ye } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
10
- const Y = {}, K = {};
11
- function q(e) {
12
- const { properties: n, title: t, ignore: o } = e, a = o && Array.isArray(o), l = Object.keys(n).reduce((u, c) => ((!a || !o.find((i) => i == c)) && (u[c] = n[c].type === "object" && n[c].properties ? q(n[c]) : Q(n[c].default)), u), {});
13
- return (!a || !o.find((u) => u == "id")) && (l.id = `${t}-${Date.now()}`), l;
1
+ var Y = Object.defineProperty;
2
+ var _ = (e, n, t) => n in e ? Y(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var h = (e, n, t) => _(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { ref as B, computed as T, watch as F, onMounted as L, nextTick as N, createVNode as w, reactive as K, withDirectives as ee, resolveDirective as te, defineComponent as W, Fragment as D, inject as U } from "vue";
5
+ import { isPlainObject as j, cloneDeep as q } from "lodash-es";
6
+ import { useTextBox as ne, useClear as R, useTextBoxDesign as oe, withInstall as ie } from "../common/index.esm.js";
7
+ import { useNumber as se, useFormat as le, useSpinner as re, useTextBox as ae } from "../number-spinner/index.esm.js";
8
+ import { DgControl as $, useDesignerComponent as ue } from "../designer-canvas/index.esm.js";
9
+ const ce = {}, de = {};
10
+ function H(e) {
11
+ const { properties: n, title: t, ignore: s } = e, i = s && Array.isArray(s), a = Object.keys(n).reduce((r, f) => ((!i || !s.find((p) => p === f)) && (r[f] = n[f].type === "object" && n[f].properties ? H(n[f]) : q(n[f].default)), r), {});
12
+ if (t && (!i || !s.find((r) => r === "id"))) {
13
+ const r = t.toLowerCase().replace(/-/g, "_");
14
+ a.id = `${r}_${Math.random().toString().slice(2, 6)}`;
15
+ }
16
+ return a;
14
17
  }
15
- function $(e, n = {}, t) {
16
- const o = Y[e];
17
- if (o) {
18
- let a = q(o);
19
- const l = K[e];
20
- return a = l ? l({ getSchemaByType: $ }, a, n, t) : a, a;
21
- }
22
- return null;
23
- }
24
- function ge(e, n) {
25
- const t = q(n);
26
- return Object.keys(e).reduce((o, a) => (o[a] && X(o[a]) && X(e[a]) ? Object.assign(o[a], e[a]) : o[a] = e[a], o), t), t;
18
+ function pe(e, n) {
19
+ const t = H(n);
20
+ return Object.keys(t).reduce((s, i) => (s[i] && j(s[i]) && j(e[i] || !e[i]) ? Object.assign(s[i], e[i] || {}) : s[i] = e[i], s), t), t;
27
21
  }
28
- function ve(e, n) {
29
- return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
30
- if (n.has(a)) {
31
- const l = n.get(a);
32
- if (typeof l == "string")
33
- o[l] = e[a];
22
+ function me(e, n) {
23
+ return Object.keys(e).filter((s) => e[s] != null).reduce((s, i) => {
24
+ if (n.has(i)) {
25
+ const a = n.get(i);
26
+ if (typeof a == "string")
27
+ s[a] = e[i];
34
28
  else {
35
- const u = l(a, e[a], e);
36
- Object.assign(o, u);
29
+ const r = a(i, e[i], e);
30
+ Object.assign(s, r);
37
31
  }
38
32
  } else
39
- o[a] = e[a];
40
- return o;
33
+ s[i] = e[i];
34
+ return s;
41
35
  }, {});
42
36
  }
43
- function he(e, n, t = /* @__PURE__ */ new Map()) {
44
- const o = ge(e, n);
45
- return ve(o, t);
37
+ function fe(e, n, t = /* @__PURE__ */ new Map()) {
38
+ const s = pe(e, n);
39
+ return me(s, t);
46
40
  }
47
- function be(e = {}) {
48
- function n(r, d, s, p) {
49
- if (typeof s == "number")
50
- return p[r].length === s;
51
- if (typeof s == "object") {
52
- const y = Object.keys(s)[0], f = s[y];
53
- if (y === "not")
54
- return Number(p[r].length) !== Number(f);
55
- if (y === "moreThan")
56
- return Number(p[r].length) >= Number(f);
57
- if (y === "lessThan")
58
- return Number(p[r].length) <= Number(f);
41
+ function ye(e = {}) {
42
+ function n(l, c, o, d) {
43
+ if (typeof o == "number")
44
+ return d[l].length === o;
45
+ if (typeof o == "object") {
46
+ const m = Object.keys(o)[0], u = o[m];
47
+ if (m === "not")
48
+ return Number(d[l].length) !== Number(u);
49
+ if (m === "moreThan")
50
+ return Number(d[l].length) >= Number(u);
51
+ if (m === "lessThan")
52
+ return Number(d[l].length) <= Number(u);
59
53
  }
60
54
  return !1;
61
55
  }
62
- function t(r, d, s, p) {
63
- return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(s);
56
+ function t(l, c, o, d) {
57
+ return d[l] && d[l].propertyValue && String(d[l].propertyValue.value) === String(o);
64
58
  }
65
- const o = /* @__PURE__ */ new Map([
59
+ const s = /* @__PURE__ */ new Map([
66
60
  ["length", n],
67
61
  ["getProperty", t]
68
62
  ]);
69
- Object.keys(e).reduce((r, d) => (r.set(d, e[d]), r), o);
70
- function a(r, d) {
71
- const s = r;
72
- return typeof d == "number" ? [{ target: s, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: s, operator: "getProperty", param: r, value: !!d }] : typeof d == "object" ? Object.keys(d).map((p) => {
73
- if (p === "length")
74
- return { target: s, operator: "length", param: null, value: d[p] };
75
- const y = p, f = d[p];
76
- return { target: s, operator: "getProperty", param: y, value: f };
63
+ Object.keys(e).reduce((l, c) => (l.set(c, e[c]), l), s);
64
+ function i(l, c) {
65
+ const o = l;
66
+ return typeof c == "number" ? [{ target: o, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: o, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((d) => {
67
+ if (d === "length")
68
+ return { target: o, operator: "length", param: null, value: c[d] };
69
+ const m = d, u = c[d];
70
+ return { target: o, operator: "getProperty", param: m, value: u };
77
71
  }) : [];
78
72
  }
79
- function l(r) {
80
- return Object.keys(r).reduce((s, p) => {
81
- const y = a(p, r[p]);
82
- return s.push(...y), s;
73
+ function a(l) {
74
+ return Object.keys(l).reduce((o, d) => {
75
+ const m = i(d, l[d]);
76
+ return o.push(...m), o;
83
77
  }, []);
84
78
  }
85
- function u(r, d) {
86
- if (o.has(r.operator)) {
87
- const s = o.get(r.operator);
88
- return s && s(r.target, r.param, r.value, d) || !1;
79
+ function r(l, c) {
80
+ if (s.has(l.operator)) {
81
+ const o = s.get(l.operator);
82
+ return o && o(l.target, l.param, l.value, c) || !1;
89
83
  }
90
84
  return !1;
91
85
  }
92
- function c(r, d) {
93
- return l(r).reduce((y, f) => y && u(f, d), !0);
86
+ function f(l, c) {
87
+ return a(l).reduce((m, u) => m && r(u, c), !0);
94
88
  }
95
- function i(r, d) {
96
- const s = Object.keys(r), p = s.includes("allOf"), y = s.includes("anyOf"), f = p || y, T = (f ? r[f ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((P) => c(P, d));
97
- return p ? !T.includes(!1) : T.includes(!0);
89
+ function p(l, c) {
90
+ const o = Object.keys(l), d = o.includes("allOf"), m = o.includes("anyOf"), u = d || m, b = (u ? l[u ? d ? "allOf" : "anyOf" : "allOf"] : [l]).map((k) => f(k, c));
91
+ return d ? !b.includes(!1) : b.includes(!0);
98
92
  }
99
- return { parseValueSchema: i };
93
+ return { parseValueSchema: p };
100
94
  }
101
- const m = {
95
+ const y = {
102
96
  button: { type: "button", name: "按钮", icon: "Button" },
103
97
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
104
98
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -136,25 +130,26 @@ const m = {
136
130
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
137
131
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
138
132
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
139
- fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
140
- }, Ce = {}, we = {};
141
- be();
142
- function Be(e, n, t = /* @__PURE__ */ new Map(), o = (u, c, i) => c, a = {}, l = (u) => u) {
143
- return Y[n.title] = n, K[n.title] = o, Ce[n.title] = a, we[n.title] = l, (u = {}) => {
144
- const c = he(u, n, t), i = Object.keys(e).reduce((r, d) => (r[d] = e[d].default, r), {});
145
- return Object.assign(i, c);
133
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
134
+ "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
135
+ }, ge = {}, he = {};
136
+ ye();
137
+ function be(e, n, t = /* @__PURE__ */ new Map(), s = (r, f, p, l) => f, i = {}, a = (r) => r) {
138
+ return ce[n.title] = n, de[n.title] = s, ge[n.title] = i, he[n.title] = a, (r = {}) => {
139
+ const f = fe(r, n, t), p = Object.keys(e).reduce((l, c) => (l[c] = e[c].default, l), {});
140
+ return Object.assign(p, f);
146
141
  };
147
142
  }
148
- function Te(e, n) {
143
+ function ve(e, n) {
149
144
  return { customClass: n.class, customStyle: n.style };
150
145
  }
151
- const ke = /* @__PURE__ */ new Map([
152
- ["appearance", Te]
146
+ const Ce = /* @__PURE__ */ new Map([
147
+ ["appearance", ve]
153
148
  ]);
154
- function Me(e, n, t) {
149
+ function we(e, n, t) {
155
150
  return n;
156
151
  }
157
- const Se = "https://json-schema.org/draft/2020-12/schema", xe = "https://farris-design.gitee.io/input-group.schema.json", Ae = "input-group", Ee = "A Farris Input Component", Pe = "object", Fe = {
152
+ const Ie = "https://json-schema.org/draft/2020-12/schema", Be = "https://farris-design.gitee.io/input-group.schema.json", Te = "input-group", Me = "A Farris Input Component", ke = "object", xe = {
158
153
  id: {
159
154
  description: "The unique identifier for a Input Group",
160
155
  type: "string"
@@ -216,11 +211,6 @@ const Se = "https://json-schema.org/draft/2020-12/schema", xe = "https://farris-
216
211
  type: "boolean",
217
212
  default: !1
218
213
  },
219
- required: {
220
- description: "",
221
- type: "boolean",
222
- default: !1
223
- },
224
214
  tabIndex: {
225
215
  description: "",
226
216
  type: "number",
@@ -356,18 +346,24 @@ const Se = "https://json-schema.org/draft/2020-12/schema", xe = "https://farris-
356
346
  type: "string",
357
347
  default: ""
358
348
  }
359
- }, Le = [
349
+ }, Se = [
360
350
  "id",
361
351
  "type"
362
- ], De = {
363
- $schema: Se,
364
- $id: xe,
365
- title: Ae,
366
- description: Ee,
367
- type: Pe,
368
- properties: Fe,
369
- required: Le
370
- }, W = {
352
+ ], Ee = [
353
+ "id",
354
+ "appearance",
355
+ "binding",
356
+ "visible"
357
+ ], Fe = {
358
+ $schema: Ie,
359
+ $id: Be,
360
+ title: Te,
361
+ description: Me,
362
+ type: ke,
363
+ properties: xe,
364
+ required: Se,
365
+ ignore: Ee
366
+ }, G = {
371
367
  id: { Type: String, default: "" },
372
368
  /** 是否自动完成 */
373
369
  autocomplete: { Type: String, default: "off" },
@@ -434,520 +430,311 @@ const Se = "https://json-schema.org/draft/2020-12/schema", xe = "https://farris-
434
430
  * - input: 输入时更新
435
431
  */
436
432
  updateOn: { type: String, default: "blur" }
437
- }, ee = Be(W, De, ke, Me);
438
- function Ie(e, n, t, o) {
439
- const a = h(e.disabled), l = h(!1), u = h("text"), c = h(e.showBorder), i = h(e.textAlign), r = h(e.updateOn), d = g(() => e.editable || !e.readonly), s = g(() => e.editable && !e.disabled && !e.readonly), p = g(() => !e.disabled && l.value), y = g(() => t.value === "" || t.value === null || t.value === void 0), f = g(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), C = g(() => e.readonly || !e.editable), S = g(() => e.enableTitle ? t.value : ""), T = g(() => ({
440
- "form-control": !0,
441
- "f-utils-fill": !0,
442
- "text-left": i.value === "left",
443
- "text-center": i.value === "center",
444
- "text-right": i.value === "right"
445
- })), A = g(() => {
446
- const v = {
447
- "f-cmp-inputgroup": !0,
448
- "input-group": !0,
449
- "f-state-disable": a.value,
450
- "f-state-editable": s.value,
451
- "f-state-readonly": C.value,
452
- "f-state-focus": p.value
453
- };
454
- return (e.customClass || "").split(" ").reduce((H, re) => (H[re] = !0, H), v), v;
455
- }), P = g(() => c.value ? "" : "border-width : 0 ");
456
- function k(v, F = !0) {
457
- t.value = v, o.value !== v && (o.value = v), F && n.emit("change", v), n.emit("update:modelValue", v), n.emit("update:value", v);
458
- }
459
- D(
460
- () => e.modelValue,
461
- (v, F) => {
462
- v !== F && (t.value = v, o.value = v);
463
- }
464
- ), D(() => e.disabled, (v, F) => {
465
- v !== F && (a.value = v);
466
- });
467
- function I(v) {
468
- return l.value = !1, n.emit("blur", v), v.stopPropagation(), !1;
469
- }
470
- function b(v) {
471
- n.emit("click", v);
472
- }
473
- function w(v) {
474
- e.disabled || (c.value && (l.value = !0), d.value && n.emit("focus", v));
475
- }
476
- function M(v) {
477
- n.emit("input", v.target.value);
478
- const F = v.target.value;
479
- o.value = F, r.value === "change" && (n.emit("update:modelValue", F), n.emit("update:value", F));
480
- }
481
- function E(v) {
482
- n.emit("keydown", v);
483
- }
484
- function V(v) {
485
- n.emit("keyup", v);
486
- }
487
- function L(v) {
488
- v.target.tagName !== "INPUT" && v.preventDefault(), v.stopPropagation();
489
- }
490
- function G(v) {
491
- if (r.value === "blur") {
492
- const F = v.target.value;
493
- v.stopPropagation(), k(F);
494
- }
495
- }
496
- return {
497
- changeTextBoxValue: k,
498
- disabled: a,
499
- displayText: o,
500
- editable: s,
501
- hasFocused: p,
502
- inputGroupClass: A,
503
- inputType: u,
504
- isEmpty: y,
505
- modelValue: t,
506
- readonly: C,
507
- onBlur: I,
508
- onClick: b,
509
- onFocus: w,
510
- onInput: M,
511
- onKeydown: E,
512
- onKeyup: V,
513
- onMousedown: L,
514
- onTextBoxValueChange: G,
515
- placeholder: f,
516
- textBoxClass: T,
517
- textBoxTitle: S,
518
- inputGroupStyle: P
519
- };
520
- }
521
- function Ve(e, n, t, o) {
522
- const a = h(e.disabled), l = h(!1), u = h("text"), c = h(e.showBorder), i = h(e.textAlign);
523
- g(() => e.editable || !e.readonly);
524
- const r = g(() => e.editable && !e.disabled && !e.readonly), d = g(() => !e.disabled && l.value), s = g(() => t.value === "" || t.value === null || t.value === void 0), p = g(() => e.placeholder), y = g(() => e.readonly || !e.editable), f = g(() => e.enableTitle ? t.value : ""), C = g(() => ({
525
- "form-control": !0,
526
- // 'f-utils-fill': true,
527
- "text-left": i.value === "left",
528
- "text-center": i.value === "center",
529
- "text-right": i.value === "right"
530
- })), S = g(() => ({
531
- "f-cmp-inputgroup": !0,
532
- "input-group": !0,
533
- "f-state-disable": !0,
534
- "f-state-editable": !1,
535
- "f-state-readonly": !0
536
- // 'f-state-focus': hasFocused.value
537
- })), T = g(() => c.value ? "" : "border-width : 0 ");
538
- return {
539
- // changeTextBoxValue,
540
- disabled: a,
541
- displayText: o,
542
- editable: r,
543
- hasFocused: d,
544
- inputGroupClass: S,
545
- inputType: u,
546
- isEmpty: s,
547
- modelValue: t,
548
- readonly: y,
549
- // onBlur,
550
- // onClick,
551
- // onFocus,
552
- // onInput,
553
- // onKeydown,
554
- // onKeyup,
555
- // onMousedown,
556
- // onTextBoxValueChange,
557
- placeholder: p,
558
- textBoxClass: C,
559
- textBoxTitle: f,
560
- inputGroupStyle: T
561
- };
562
- }
563
- function te(e, n, t) {
564
- const o = h(!1), a = g(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: l, displayText: u, hasFocused: c, isEmpty: i } = t;
565
- function r(C) {
566
- o.value = C;
567
- }
568
- D(u, () => {
569
- c != null && c.value ? r(!!(u != null && u.value)) : r(!1);
570
- });
571
- const d = g(() => ({
572
- "input-group-text": !0,
573
- "input-group-clear": !0
574
- })), s = g(() => ({
575
- width: "24px",
576
- display: o.value ? "flex" : "none"
577
- }));
578
- function p(C) {
579
- C.stopPropagation(), a.value && (l("", !0), r(!o.value), n.emit("clear"));
580
- }
581
- function y(C) {
582
- a.value && !i.value && r(!0);
583
- }
584
- function f(C) {
585
- a.value && r(!1);
586
- }
587
- return { clearButtonClass: d, clearButtonStyle: s, hasShownClearButton: o, onClearValue: p, onMouseEnter: y, onMouseLeave: f, shouldShowClearButton: a };
588
- }
589
- const Oe = ["moz", "ms", "webkit"];
590
- function Ne() {
591
- let e = 0;
592
- return (n) => {
593
- const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), a = setTimeout(() => {
594
- n(t + o);
595
- }, o);
596
- return e = t + o, a;
597
- };
598
- }
599
- function je() {
600
- if (typeof window > "u")
601
- return () => 0;
602
- if (window.requestAnimationFrame)
603
- return window.requestAnimationFrame.bind(window);
604
- const e = Oe.filter((n) => `${n}RequestAnimationFrame` in window)[0];
605
- return e ? window[`${e}RequestAnimationFrame`] : Ne();
606
- }
607
- je();
608
- const Ue = (e) => {
609
- const n = e;
610
- return n.install = function(t) {
611
- t.component(n.name, e);
612
- }, e;
613
- };
614
- function ne(e, n) {
615
- const t = h(e.groupText), o = g(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = g(() => e.enableClear || !!e.groupText);
616
- return { appendedButtonClass: g(() => ({
433
+ }, z = be(G, Fe, Ce, we);
434
+ function X(e, n) {
435
+ const t = B(e.groupText), s = T(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), i = T(() => e.enableClear || !!e.groupText);
436
+ return { appendedButtonClass: T(() => ({
617
437
  "input-group-append": !0,
618
- "append-force-show": o.value
619
- })), appendedContent: t, shouldShowAppendedButton: a };
438
+ "append-force-show": s.value
439
+ })), appendedContent: t, shouldShowAppendedButton: i };
620
440
  }
621
- function oe(e, n, t, o) {
622
- const { appendedContent: a } = o, l = h(e.enableViewPassword), u = g(() => e.type === "password"), c = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', i = '<span class="f-icon f-icon-eye"></span>', r = h(!1);
623
- D(() => [e.readonly, e.disabled], ([p, y]) => {
624
- u.value && (t.value = p || y ? "password" : t.value, a.value = p || y ? i : a.value);
441
+ function Q(e, n, t, s) {
442
+ const { appendedContent: i } = s, a = B(e.enableViewPassword), r = T(() => e.type === "password"), f = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', p = '<span class="f-icon f-icon-eye"></span>', l = B(!1);
443
+ F(() => [e.readonly, e.disabled], ([d, m]) => {
444
+ r.value && (t.value = d || m ? "password" : t.value, i.value = d || m ? p : i.value);
625
445
  });
626
- function d() {
627
- return r.value = !r.value, t.value = r.value ? "text" : "password", a.value = r.value ? c : i, !1;
446
+ function c() {
447
+ return l.value = !l.value, t.value = l.value ? "text" : "password", i.value = l.value ? f : p, !1;
628
448
  }
629
- function s() {
630
- t.value = u.value ? "password" : "text", a.value = u.value ? l.value ? i : "" : a.value;
449
+ function o() {
450
+ t.value = r.value ? "password" : "text", i.value = r.value ? a.value ? p : "" : i.value;
631
451
  }
632
- return s(), { isPassword: u, onClickAppendedButton: d };
452
+ return o(), { isPassword: r, onClickAppendedButton: c };
633
453
  }
634
- function Ge(e, n, t) {
635
- const o = h(), {
636
- onBlurTextBox: a,
637
- onFocusTextBox: l,
638
- onInput: u,
639
- onKeyDown: c,
640
- textBoxValue: i
641
- } = t, r = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = g(() => ({
454
+ function Le(e, n, t) {
455
+ const s = B(), {
456
+ onBlurTextBox: i,
457
+ onFocusTextBox: a,
458
+ onInput: r,
459
+ onKeyDown: f,
460
+ textBoxValue: p
461
+ } = t, l = T(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), c = T(() => ({
642
462
  "form-control": !0,
643
463
  "f-utils-fill": !0
644
- })), s = g(() => ({
464
+ })), o = T(() => ({
645
465
  "text-align": e.textAlign
646
466
  }));
647
- function p(C) {
648
- C.stopPropagation();
467
+ function d(g) {
468
+ g.stopPropagation();
649
469
  }
650
- function y() {
470
+ function m() {
651
471
  e.selectOnCreated, e.focusOnCreated;
652
472
  }
653
- async function f(C) {
654
- l(C), await z, y();
473
+ async function u(g) {
474
+ a(g), await N, m();
655
475
  }
656
- return N(async () => {
657
- await z, y();
658
- }), () => B("input", {
659
- ref: o,
660
- class: d.value,
661
- style: s.value,
476
+ return L(async () => {
477
+ await N, m();
478
+ }), () => w("input", {
479
+ ref: s,
480
+ class: c.value,
481
+ style: o.value,
662
482
  type: "text",
663
- value: i.value,
483
+ value: p.value,
664
484
  disabled: e.disabled,
665
485
  readonly: e.readonly || !e.editable,
666
- placeholder: r.value,
667
- onBlur: a,
668
- onChange: p,
669
- onFocus: f,
670
- onInput: u,
671
- onKeydown: c
486
+ placeholder: l.value,
487
+ onBlur: i,
488
+ onChange: d,
489
+ onFocus: u,
490
+ onInput: r,
491
+ onKeydown: f
672
492
  }, null);
673
493
  }
674
- function $e(e, n, t) {
494
+ function Pe(e, n, t) {
675
495
  const {
676
- canDownward: o,
677
- canUpward: a,
678
- onClickDownButton: l,
679
- onClickUpButton: u
680
- } = t, c = g(() => ({
496
+ canDownward: s,
497
+ canUpward: i,
498
+ onClickDownButton: a,
499
+ onClickUpButton: r
500
+ } = t, f = T(() => ({
681
501
  "input-group-append": !0,
682
502
  "btn-group": !0,
683
503
  "btn-group-number": !0
684
- })), i = g(() => ({
504
+ })), p = T(() => ({
685
505
  btn: !0,
686
506
  "btn-secondary": !0,
687
507
  "btn-number-flag": !0
688
- })), r = g(() => ({
689
- cursor: a() ? "pointer" : "not-allowed",
508
+ })), l = T(() => ({
509
+ cursor: i() ? "pointer" : "not-allowed",
690
510
  "margin-left": 0
691
- })), d = g(() => ({
692
- cursor: o() ? "pointer" : "not-allowed",
511
+ })), c = T(() => ({
512
+ cursor: s() ? "pointer" : "not-allowed",
693
513
  "margin-left": 0
694
514
  }));
695
- return () => B("div", {
696
- class: c.value
697
- }, [B("button", {
515
+ return () => w("div", {
516
+ class: f.value
517
+ }, [w("button", {
698
518
  title: "upButton",
699
- class: i.value,
700
- style: r.value,
701
- onClick: u,
702
- disabled: !a()
703
- }, [B("span", {
519
+ class: p.value,
520
+ style: l.value,
521
+ onClick: r,
522
+ disabled: !i()
523
+ }, [w("span", {
704
524
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
705
- }, null)]), B("button", {
525
+ }, null)]), w("button", {
706
526
  title: "downButton",
707
- class: i.value,
708
- style: d.value,
709
- onClick: l,
710
- disabled: !o()
711
- }, [B("span", {
527
+ class: p.value,
528
+ style: c.value,
529
+ onClick: a,
530
+ disabled: !s()
531
+ }, [w("span", {
712
532
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
713
533
  }, null)])]);
714
534
  }
715
- function qe(e, n) {
716
- const t = de(e, n), o = pe(e, n, t), a = fe(e, n, o, t), l = me(e, n, o, t, a), u = $e(e, n, a), {
717
- displayValue: c,
718
- modelValue: i,
719
- getRealValue: r
720
- } = t, d = Ge(e, n, l), {
721
- format: s
722
- } = o, {
723
- isFocus: p
724
- } = l, y = g(() => !e.disabled && !e.readonly);
725
- return N(() => {
726
- const f = r(e.modelValue);
727
- c.value = s(f);
728
- }), D(() => [e.value], ([f]) => {
729
- const C = r(f);
730
- i.value = C, c.value = s(C);
731
- }), D(() => [e.modelValue], ([f]) => {
732
- f !== i.value && (i.value = f, !p.value && (c.value = s(r(f))));
733
- }), D(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
734
- c.value = s(i.value);
735
- }), () => B("div", {
535
+ function Ae(e, n) {
536
+ const t = se(e, n), s = le(e, n, t), i = re(e, n, s, t), a = ae(e, n, s, t, i), r = Pe(e, n, i), {
537
+ displayValue: f,
538
+ modelValue: p,
539
+ getRealValue: l
540
+ } = t, c = Le(e, n, a), {
541
+ format: o
542
+ } = s, {
543
+ isFocus: d
544
+ } = a, m = T(() => !e.disabled && !e.readonly);
545
+ return L(() => {
546
+ const u = l(e.modelValue);
547
+ f.value = o(u);
548
+ }), F(() => [e.value], ([u]) => {
549
+ const g = l(u);
550
+ p.value = g, f.value = o(g);
551
+ }), F(() => [e.modelValue], ([u]) => {
552
+ u !== p.value && (p.value = u, !d.value && (f.value = o(l(u))));
553
+ }), F(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
554
+ f.value = o(p.value);
555
+ }), () => w("div", {
736
556
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
737
- }, [d(), y.value && u()]);
557
+ }, [c(), m.value && r()]);
738
558
  }
739
- function We(e, n, t, o) {
740
- const a = h(), l = h(e.autocomplete), u = h(e.enableTitle), {
741
- isPassword: c
742
- } = t, i = h(e.minLength), r = h(e.maxLength), d = h(e.tabIndex), {
743
- disabled: s,
744
- displayText: p,
745
- inputType: y,
746
- onBlur: f,
747
- onFocus: C,
748
- onInput: S,
749
- onClick: T,
750
- onKeydown: A,
751
- onKeyup: P,
752
- onMousedown: k,
753
- onTextBoxValueChange: I,
754
- readonly: b,
755
- placeholder: w,
756
- textBoxClass: M,
757
- textBoxTitle: E
758
- } = o;
759
- return N(() => {
559
+ function Ve(e, n, t, s) {
560
+ const i = B(), a = B(e.autocomplete), r = B(e.enableTitle), {
561
+ isPassword: f
562
+ } = t, p = B(e.minLength), l = B(e.maxLength), c = B(e.tabIndex), {
563
+ disabled: o,
564
+ displayText: d,
565
+ inputType: m,
566
+ onBlur: u,
567
+ onFocus: g,
568
+ onInput: v,
569
+ onClick: b,
570
+ onKeydown: C,
571
+ onKeyup: k,
572
+ onMousedown: M,
573
+ onTextBoxValueChange: x,
574
+ readonly: S,
575
+ placeholder: I,
576
+ textBoxClass: V,
577
+ textBoxTitle: O
578
+ } = s;
579
+ return L(() => {
760
580
  e.selectOnCreated, e.focusOnCreated;
761
- }), () => B("input", {
762
- ref: a,
581
+ }), () => w("input", {
582
+ ref: i,
763
583
  name: "input-group-value",
764
- autocomplete: l.value,
765
- class: M.value,
766
- disabled: s == null ? void 0 : s.value,
767
- maxlength: r.value,
768
- minlength: i.value,
769
- placeholder: w.value,
770
- readonly: b == null ? void 0 : b.value,
771
- tabindex: d.value,
772
- title: u.value && !c.value ? E.value : "",
773
- type: y.value,
774
- value: p == null ? void 0 : p.value,
775
- onBlur: f,
776
- onClick: T,
777
- onChange: I,
778
- onFocus: C,
779
- onInput: S,
780
- onKeydown: A,
781
- onKeyup: P,
782
- onMousedown: k
584
+ autocomplete: a.value,
585
+ class: V.value,
586
+ disabled: o == null ? void 0 : o.value,
587
+ maxlength: l.value,
588
+ minlength: p.value,
589
+ placeholder: I.value,
590
+ readonly: S == null ? void 0 : S.value,
591
+ tabindex: c.value,
592
+ title: r.value && !f.value ? O.value : "",
593
+ type: m.value,
594
+ value: d == null ? void 0 : d.value,
595
+ onBlur: u,
596
+ onClick: b,
597
+ onChange: x,
598
+ onFocus: g,
599
+ onInput: v,
600
+ onKeydown: C,
601
+ onKeyup: k,
602
+ onMousedown: M
783
603
  }, null);
784
604
  }
785
- function He(e, n) {
786
- const t = g(() => e.useExtendInfo && !!e.extendInfo), o = se({
605
+ function Oe(e, n) {
606
+ const t = T(() => e.useExtendInfo && !!e.extendInfo), s = K({
787
607
  content: e.extendInfo
788
608
  });
789
- function a() {
609
+ function i() {
790
610
  n.emit("updateExtendInfo");
791
611
  }
792
- return () => t.value && ue(B("span", {
612
+ return () => t.value && ee(w("span", {
793
613
  class: "input-group-before-tips",
794
- onMouseenter: a
795
- }, [B("i", {
614
+ onMouseenter: i
615
+ }, [w("i", {
796
616
  class: "f-icon f-icon-info-circle"
797
- }, null), B("b", {
617
+ }, null), w("b", {
798
618
  class: "tips-arrow"
799
- }, null)]), [[ce("tooltip"), o]]);
619
+ }, null)]), [[te("tooltip"), s]]);
800
620
  }
801
- function ae(e, n, t, o, a) {
621
+ function Z(e, n, t, s, i) {
802
622
  const {
803
- appendedButtonClass: l,
804
- appendedContent: u
805
- } = t, c = g(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), i = g(() => u.value && !n.slots.groupTextTemplate), r = g(() => !!n.slots.groupTextTemplate), {
806
- clearButtonClass: d,
807
- clearButtonStyle: s,
808
- onClearValue: p,
809
- shouldShowClearButton: y
810
- } = o;
811
- function f() {
812
- return B("span", {
623
+ appendedButtonClass: a,
624
+ appendedContent: r
625
+ } = t, f = T(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), p = T(() => r.value && !n.slots.groupTextTemplate), l = T(() => !!n.slots.groupTextTemplate), {
626
+ clearButtonClass: c,
627
+ clearButtonStyle: o,
628
+ onClearValue: d,
629
+ shouldShowClearButton: m
630
+ } = s;
631
+ function u() {
632
+ return w("span", {
813
633
  id: "clearIcon",
814
- class: d.value,
815
- style: s.value,
816
- onClick: (w) => p(w)
817
- }, [B("i", {
634
+ class: c.value,
635
+ style: o.value,
636
+ onClick: (I) => d(I)
637
+ }, [w("i", {
818
638
  class: "f-icon modal_close"
819
639
  }, null)]);
820
640
  }
821
- function C(w) {
822
- n.emit("iconMouseEnter", w);
641
+ function g(I) {
642
+ n.emit("iconMouseEnter", I);
823
643
  }
824
- function S(w) {
825
- n.emit("iconMouseLeave", w);
644
+ function v(I) {
645
+ n.emit("iconMouseLeave", I);
826
646
  }
827
- function T(w) {
828
- c.value && n.emit("clickHandle", {
829
- originalEvent: w
830
- }), w.stopPropagation();
647
+ function b(I) {
648
+ f.value && n.emit("clickHandle", {
649
+ originalEvent: I
650
+ }), I.stopPropagation();
831
651
  }
832
- const A = e.type === "password" ? a.onClickAppendedButton : T;
833
- function P() {
834
- return B("span", {
652
+ const C = e.type === "password" ? i.onClickAppendedButton : b;
653
+ function k() {
654
+ return w("span", {
835
655
  class: "input-group-text",
836
- onMouseenter: (w) => C(w),
837
- onMouseleave: (w) => S(w),
838
- innerHTML: u.value,
839
- onClick: (w) => A(w)
656
+ onMouseenter: (I) => g(I),
657
+ onMouseleave: (I) => v(I),
658
+ innerHTML: r.value,
659
+ onClick: (I) => C(I)
840
660
  }, null);
841
661
  }
842
- function k() {
662
+ function M() {
843
663
  return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
844
664
  }
845
- function I() {
846
- return i.value ? P : r.value ? k : "";
665
+ function x() {
666
+ return p.value ? k : l.value ? M : "";
847
667
  }
848
- const b = I();
849
- return () => B("div", {
850
- class: l.value
851
- }, [y.value && f(), b && b()]);
668
+ const S = x();
669
+ return () => w("div", {
670
+ class: a.value
671
+ }, [m.value && u(), S && S()]);
852
672
  }
853
- const j = /* @__PURE__ */ _({
673
+ const P = /* @__PURE__ */ W({
854
674
  name: "FInputGroup",
855
- props: W,
675
+ props: G,
856
676
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
857
677
  setup(e, n) {
858
- const t = h(e.modelValue), o = h(e.modelValue), a = Ie(e, n, t, o), {
859
- inputGroupClass: l,
860
- inputType: u,
861
- inputGroupStyle: c
862
- } = a, i = ne(e), {
863
- shouldShowAppendedButton: r
864
- } = i, d = te(e, n, a), {
865
- onMouseEnter: s,
866
- onMouseLeave: p
867
- } = d, y = oe(e, n, u, i), f = qe(e, n), C = We(e, n, y, a), S = ae(e, n, i, d, y), T = He(e, n), A = g(() => e.type === "number");
868
- D(() => [e.value], ([k]) => {
869
- t.value = k, o.value = k;
870
- }), D(() => [e.modelValue], ([k]) => {
871
- t.value = k, o.value = k;
872
- }), N(() => {
873
- e.value && (t.value = e.value, o.value = e.value);
678
+ const t = B(e.modelValue), s = B(e.modelValue), i = ne(e, n, t, s), {
679
+ inputGroupClass: a,
680
+ inputType: r,
681
+ inputGroupStyle: f
682
+ } = i, p = X(e), {
683
+ shouldShowAppendedButton: l
684
+ } = p, c = R(e, n, i), {
685
+ onMouseEnter: o,
686
+ onMouseLeave: d
687
+ } = c, m = Q(e, n, r, p), u = Ae(e, n), g = Ve(e, n, m, i), v = Z(e, n, p, c, m), b = Oe(e, n), C = T(() => e.type === "number");
688
+ F(() => [e.value], ([M]) => {
689
+ t.value = M, s.value = M;
690
+ }), F(() => [e.modelValue], ([M]) => {
691
+ t.value = M, s.value = M;
692
+ }), L(() => {
693
+ e.value && (t.value = e.value, s.value = e.value);
874
694
  });
875
- const P = () => B(R, null, [B("div", {
695
+ const k = () => w(D, null, [w("div", {
876
696
  id: e.id,
877
- class: l.value,
878
- style: c.value,
879
- onMouseenter: s,
880
- onMouseleave: p
881
- }, [A.value ? f() : B(R, null, [T(), C(), r.value && S()])])]);
882
- return () => P();
697
+ class: a.value,
698
+ style: f.value,
699
+ onMouseenter: o,
700
+ onMouseleave: d
701
+ }, [C.value ? u() : w(D, null, [b(), g(), l.value && v()])])]);
702
+ return () => k();
883
703
  }
884
704
  });
885
- function ze(e, n) {
886
- e.schema;
887
- const t = h(!0), o = h(!0);
888
- function a(s) {
889
- return !1;
890
- }
891
- function l() {
892
- return !1;
893
- }
894
- function u() {
895
- return !1;
896
- }
897
- function c() {
898
- return !0;
899
- }
900
- function i(s) {
901
- }
902
- function r() {
903
- }
904
- function d(s) {
905
- return null;
906
- }
907
- return {
908
- canAccepts: a,
909
- checkCanDeleteComponent: l,
910
- checkCanMoveComponent: u,
911
- hideNestedPaddingInDesginerView: c,
912
- onAcceptMovedChildElement: i,
913
- resolveComponentContext: r,
914
- triggerBelongedComponentToMoveWhenMoved: t,
915
- triggerBelongedComponentToDeleteWhenDeleted: o,
916
- getPropsConfig: d
917
- };
918
- }
919
- class Re {
705
+ class Ge {
920
706
  constructor(n, t) {
921
- x(this, "componentId");
922
- x(this, "viewModelId");
923
- x(this, "eventsEditorUtils");
924
- x(this, "formSchemaUtils");
925
- x(this, "formMetadataConverter");
926
- x(this, "designViewModelUtils");
927
- x(this, "designViewModelField");
928
- x(this, "controlCreatorUtils");
929
- x(this, "designerHostService");
930
- x(this, "schemaService", null);
931
- x(this, "metadataService", null);
932
- x(this, "propertyConfig", {
707
+ h(this, "componentId");
708
+ h(this, "viewModelId");
709
+ h(this, "eventsEditorUtils");
710
+ h(this, "formSchemaUtils");
711
+ h(this, "formMetadataConverter");
712
+ h(this, "designViewModelUtils");
713
+ h(this, "designViewModelField");
714
+ h(this, "controlCreatorUtils");
715
+ h(this, "designerHostService");
716
+ h(this, "schemaService", null);
717
+ h(this, "metadataService", null);
718
+ h(this, "propertyConfig", {
933
719
  type: "object",
934
720
  categories: {}
935
721
  });
936
- var o;
937
- this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
722
+ var s;
723
+ this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((s = this.formSchemaUtils) == null ? void 0 : s.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
938
724
  }
939
725
  getTableInfo() {
940
726
  var n;
941
727
  return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
942
728
  }
943
729
  setDesignViewModelField(n) {
730
+ var s;
944
731
  const t = n.binding && n.binding.type === "Form" && n.binding.field;
945
732
  if (t) {
946
733
  if (!this.designViewModelField) {
947
- const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
948
- this.designViewModelField = o.fields.find((a) => a.id === t);
734
+ const i = this.designViewModelUtils.getDgViewModel(this.viewModelId);
735
+ this.designViewModelField = i.fields.find((a) => a.id === t);
949
736
  }
950
- n.updateOn = this.designViewModelField.updateOn;
737
+ n.updateOn = (s = this.designViewModelField) == null ? void 0 : s.updateOn;
951
738
  }
952
739
  }
953
740
  changeFieldEditorType(n, t) {
@@ -971,7 +758,7 @@ class Re {
971
758
  type: "combo-list",
972
759
  textField: "name",
973
760
  valueField: "value",
974
- data: [{ value: n.type, name: m[n.type].name }]
761
+ data: [{ value: n.type, name: y[n.type].name }]
975
762
  }
976
763
  }
977
764
  }
@@ -1004,19 +791,19 @@ class Re {
1004
791
  * @returns
1005
792
  */
1006
793
  updateElementByParentContainer(n, t) {
1007
- const o = t && t.parent && t.parent.schema;
1008
- if (!o)
794
+ const s = t && t.parent && t.parent.schema;
795
+ if (!s)
1009
796
  return;
1010
- const a = o.contents.findIndex((u) => u.id === n), l = Q(o.contents[a]);
1011
- o.contents.splice(a, 1), o.contents.splice(a, 0, l);
797
+ const i = s.contents.findIndex((r) => r.id === n), a = q(s.contents[i]);
798
+ s.contents.splice(i, 1), s.contents.splice(i, 0, a);
1012
799
  }
1013
800
  }
1014
- const O = class O {
801
+ const E = class E {
1015
802
  /**
1016
803
  * 根据绑定字段类型获取可用的输入类控件
1017
804
  */
1018
805
  static getEditorTypesByMDataType(n) {
1019
- const t = O.fieldControlTypeMapping[n];
806
+ const t = E.fieldControlTypeMapping[n];
1020
807
  return t || [{ key: "", value: "" }];
1021
808
  }
1022
809
  /**
@@ -1024,9 +811,9 @@ const O = class O {
1024
811
  */
1025
812
  static getAllInputTypes() {
1026
813
  const n = [];
1027
- for (let t in O.fieldControlTypeMapping)
1028
- O.fieldControlTypeMapping[t].forEach((o) => {
1029
- n.find((a) => a.key === o.key && a.value === o.value) || n.push({ key: o.key, value: o.value });
814
+ for (const t in E.fieldControlTypeMapping)
815
+ E.fieldControlTypeMapping[t].forEach((s) => {
816
+ n.find((i) => i.key === s.key && i.value === s.value) || n.push({ key: s.key, value: s.value });
1030
817
  });
1031
818
  return n;
1032
819
  }
@@ -1034,69 +821,174 @@ const O = class O {
1034
821
  /**
1035
822
  * <字段类型,可配置的控件类型列表>的映射
1036
823
  */
1037
- x(O, "fieldControlTypeMapping", {
824
+ h(E, "fieldControlTypeMapping", {
1038
825
  String: [
1039
- { key: m["input-group"].type, value: m["input-group"].name },
1040
- { key: m.lookup.type, value: m.lookup.name },
1041
- { key: m["date-picker"].type, value: m["date-picker"].name },
1042
- { key: m["check-box"].type, value: m["check-box"].name },
1043
- { key: m["radio-group"].type, value: m["radio-group"].name },
1044
- { key: m["combo-list"].type, value: m["combo-list"].name },
1045
- { key: m.textarea.type, value: m.textarea.name }
826
+ { key: y["input-group"].type, value: y["input-group"].name },
827
+ { key: y.lookup.type, value: y.lookup.name },
828
+ { key: y["date-picker"].type, value: y["date-picker"].name },
829
+ { key: y["check-box"].type, value: y["check-box"].name },
830
+ { key: y["check-group"].type, value: y["check-group"].name },
831
+ { key: y["radio-group"].type, value: y["radio-group"].name },
832
+ { key: y["combo-list"].type, value: y["combo-list"].name },
833
+ { key: y.textarea.type, value: y.textarea.name }
1046
834
  ],
1047
835
  Text: [
1048
- { key: m.textarea.type, value: m.textarea.name },
1049
- { key: m.lookup.type, value: m.lookup.name }
836
+ { key: y.textarea.type, value: y.textarea.name },
837
+ { key: y.lookup.type, value: y.lookup.name }
1050
838
  ],
1051
839
  Decimal: [
1052
- { key: m["number-spinner"].type, value: m["number-spinner"].name }
840
+ { key: y["number-spinner"].type, value: y["number-spinner"].name }
1053
841
  ],
1054
842
  Integer: [
1055
- { key: m["number-spinner"].type, value: m["number-spinner"].name }
843
+ { key: y["number-spinner"].type, value: y["number-spinner"].name }
1056
844
  ],
1057
845
  Number: [
1058
- { key: m["number-spinner"].type, value: m["number-spinner"].name }
846
+ { key: y["number-spinner"].type, value: y["number-spinner"].name }
1059
847
  ],
1060
848
  BigNumber: [
1061
- { key: m["number-spinner"].type, value: m["number-spinner"].name }
849
+ { key: y["number-spinner"].type, value: y["number-spinner"].name }
1062
850
  ],
1063
851
  Date: [
1064
- { key: m["date-picker"].type, value: m["date-picker"].name }
852
+ { key: y["date-picker"].type, value: y["date-picker"].name }
1065
853
  ],
1066
854
  DateTime: [
1067
- { key: m["date-picker"].type, value: m["date-picker"].name }
855
+ { key: y["date-picker"].type, value: y["date-picker"].name }
1068
856
  ],
1069
857
  Boolean: [
1070
- { key: m.switch.type, value: m.switch.name },
1071
- { key: m["check-box"].type, value: m["check-box"].name }
858
+ { key: y.switch.type, value: y.switch.name },
859
+ { key: y["check-box"].type, value: y["check-box"].name }
1072
860
  ],
1073
861
  Enum: [
1074
- { key: m["combo-list"].type, value: m["combo-list"].name },
1075
- { key: m["radio-group"].type, value: m["radio-group"].name }
862
+ { key: y["combo-list"].type, value: y["combo-list"].name },
863
+ { key: y["radio-group"].type, value: y["radio-group"].name }
1076
864
  ],
1077
865
  Object: [
1078
- { key: m.lookup.type, value: m.lookup.name },
1079
- { key: m["combo-list"].type, value: m["combo-list"].name },
1080
- { key: m["radio-group"].type, value: m["radio-group"].name }
866
+ { key: y.lookup.type, value: y.lookup.name },
867
+ { key: y["combo-list"].type, value: y["combo-list"].name },
868
+ { key: y["radio-group"].type, value: y["radio-group"].name }
1081
869
  ]
1082
870
  });
1083
- let U = O;
1084
- const Je = h(0);
1085
- class Xe extends Re {
1086
- constructor(t, o) {
1087
- super(t, o);
1088
- x(this, "responseLayoutEditorFunction");
1089
- this.responseLayoutEditorFunction = ye(this.formSchemaUtils);
871
+ let A = E;
872
+ const Ne = B(0);
873
+ class De {
874
+ constructor() {
875
+ /** 控件标题 */
876
+ h(this, "label", "");
877
+ /** 控件id */
878
+ h(this, "id", "");
879
+ /** 每个控件占用的栅格数 */
880
+ h(this, "columnInSM", 12);
881
+ h(this, "columnInMD", 6);
882
+ h(this, "columnInLG", 3);
883
+ h(this, "columnInEL", 2);
884
+ /** 每个控件占用的列数 */
885
+ h(this, "displayWidthInSM", 1);
886
+ h(this, "displayWidthInMD", 1);
887
+ h(this, "displayWidthInLG", 1);
888
+ h(this, "displayWidthInEL", 1);
889
+ /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
890
+ h(this, "displayColumnCountAtBreakPoint", "md");
891
+ /** 控件所在行,传0即可-----编辑器内部使用 */
892
+ h(this, "tagRow", 0);
893
+ /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
894
+ h(this, "showTopBorder", 0);
895
+ /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
896
+ h(this, "group", 1);
897
+ /** 控件是否符合标准的class配置(设计器用的) */
898
+ h(this, "isSupportedClass", !0);
899
+ /** 控件所在分组id(设计器用的) */
900
+ h(this, "fieldSetId", "");
1090
901
  }
1091
- getPropertyConfig(t, o) {
1092
- return this.propertyConfig.categories.basic = this.getBasicProperties(t, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, o), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
902
+ }
903
+ function Ue(e) {
904
+ let n, t;
905
+ const s = /* @__PURE__ */ new Map();
906
+ let i = [];
907
+ function a(c, o) {
908
+ const m = c.split(" ").filter((C) => C.startsWith("col-"));
909
+ if (m.length === 0) {
910
+ o.isSupportedClass = !1;
911
+ return;
912
+ }
913
+ let u = m.find((C) => /^col-([1-9]|10|11|12)$/.test(C)), g = m.find((C) => /^col-md-([1-9]|10|11|12)$/.test(C)), v = m.find((C) => /^col-xl-([1-9]|10|11|12)$/.test(C)), b = m.find((C) => /^col-el-([1-9]|10|11|12)$/.test(C));
914
+ u = u || "col-12", o.columnInSM = parseInt(u.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), g = g || "col-md-" + o.columnInSM, o.columnInMD = parseInt(g.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), b = b || "col-el-" + o.columnInLG, o.columnInEL = parseInt(b.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
915
+ }
916
+ function r(c, o, d, m = !1) {
917
+ let u = !1;
918
+ c.contents.forEach((g) => {
919
+ if (g.type === "fieldset") {
920
+ d += 1, r(g, o, d, !0), u = !0;
921
+ return;
922
+ }
923
+ u && (d += 1, u = !1);
924
+ const v = g.appearance && g.appearance.class, b = new De();
925
+ v ? a(v, b) : b.isSupportedClass = !1, b.label = g.label || g.id, b.id = g.id, b.group = d, m && (b.fieldSetId = c.id), t === g.id && (n = d), s.set(g.id, g), o.push(b);
926
+ });
1093
927
  }
1094
- getBasicProperties(t, o) {
1095
- var c;
1096
- var a = this;
1097
- this.setDesignViewModelField(t);
1098
- const l = this.formSchemaUtils.getFormMetadataBasicInfo(), u = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
928
+ function f(c) {
929
+ const o = e.getComponentById(c);
930
+ if (!o || !o.componentType || !o.componentType.startsWith("form"))
931
+ return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
932
+ const d = e.selectNode(o, (m) => m.type === $["response-form"].type);
933
+ return !d || !d.contents || d.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: d };
934
+ }
935
+ function p(c, o) {
936
+ o = o || c.id;
937
+ const { result: d, message: m, formNode: u } = f(o);
938
+ if (!d)
939
+ return { result: d, message: m };
940
+ t = c.id, i = [], s.clear();
941
+ const g = u.contents[0].type === $.fieldset.type ? 0 : 1;
942
+ r(u, i, g);
943
+ const v = i.find((C) => !C.isSupportedClass);
1099
944
  return {
945
+ defaultState: {
946
+ defaultGroupNumber: n || 1,
947
+ model: v ? "customize" : "standard"
948
+ },
949
+ importData: i
950
+ };
951
+ }
952
+ function l(c, o) {
953
+ o = o;
954
+ const { result: d, formNode: m } = f(o);
955
+ if (!d)
956
+ return "";
957
+ const u = [];
958
+ return c.forEach((g) => {
959
+ var C;
960
+ const v = s.get(g.id), b = v.appearance && v.appearance.class;
961
+ if (b) {
962
+ const M = b.split(" ").filter((J) => !J.startsWith("col-")), x = "col-" + g.columnInSM, S = "col-md-" + g.columnInMD, I = "col-xl-" + g.columnInLG, V = "col-el-" + g.columnInEL, O = [x, S, I, V].concat(M);
963
+ v.appearance.class = O.join(" ");
964
+ }
965
+ if (g.fieldSetId) {
966
+ const k = m.contents.find((x) => x.id === g.fieldSetId), M = u.find((x) => x.id === g.fieldSetId);
967
+ M ? (C = M.contents) == null || C.push(v) : (u.push(k), k.contents = [v]);
968
+ } else
969
+ u.push(v);
970
+ }), m.contents = u, m.id;
971
+ }
972
+ return {
973
+ checkCanFindFormNode: f,
974
+ checkCanOpenLayoutEditor: p,
975
+ changeFormControlsByResponseLayoutConfig: l,
976
+ getResonseFormLayoutConfig: r
977
+ };
978
+ }
979
+ class je extends Ge {
980
+ constructor(t, s) {
981
+ super(t, s);
982
+ h(this, "responseLayoutEditorFunction");
983
+ this.responseLayoutEditorFunction = Ue(this.formSchemaUtils);
984
+ }
985
+ getPropertyConfig(t, s) {
986
+ return this.propertyConfig.categories.basic = this.getBasicProperties(t, s), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, s), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
987
+ }
988
+ getBasicProperties(t, s) {
989
+ var a;
990
+ const i = this;
991
+ return this.setDesignViewModelField(t), this.formSchemaUtils.getFormMetadataBasicInfo(), {
1100
992
  description: "Basic Information",
1101
993
  title: "基本信息",
1102
994
  properties: {
@@ -1117,7 +1009,7 @@ class Xe extends Re {
1117
1009
  textField: "value",
1118
1010
  valueField: "key",
1119
1011
  editable: !1,
1120
- data: a.designViewModelField ? U.getEditorTypesByMDataType((c = a.designViewModelField.type) == null ? void 0 : c.name) : U.getAllInputTypes()
1012
+ data: i.designViewModelField ? A.getEditorTypesByMDataType((a = i.designViewModelField.type) == null ? void 0 : a.name) : A.getAllInputTypes()
1121
1013
  }
1122
1014
  },
1123
1015
  label: {
@@ -1128,41 +1020,37 @@ class Xe extends Re {
1128
1020
  binding: {
1129
1021
  description: "绑定的表单字段",
1130
1022
  title: "绑定",
1131
- $converter: "/converter/field-selector.converter",
1132
1023
  editor: {
1133
- type: "field-selector",
1024
+ type: "binding-selector",
1134
1025
  bindingType: { enable: !1 },
1135
1026
  editorParams: {
1136
- propertyData: t,
1137
- formBasicInfo: l
1027
+ componentSchema: t,
1028
+ needSyncToViewModel: !0,
1029
+ viewModelId: this.viewModelId,
1030
+ designerHostService: this.designerHostService,
1031
+ disableOccupiedFields: !0
1138
1032
  },
1139
- columns: [
1140
- { field: "name", title: "字段名称" },
1141
- { field: "bindingField", title: "绑定字段" },
1142
- { field: "fieldType", title: "字段类型" }
1143
- ],
1144
- textField: "bindingField",
1145
- data: u
1033
+ textField: "bindingField"
1146
1034
  }
1147
1035
  }
1148
1036
  },
1149
- setPropertyRelates(i, r) {
1150
- if (i)
1151
- switch (i && i.propertyID) {
1037
+ setPropertyRelates(r, f) {
1038
+ if (r)
1039
+ switch (r && r.propertyID) {
1152
1040
  case "type": {
1153
- a.changeControlType(t, i, o);
1041
+ i.changeControlType(t, r, s);
1154
1042
  break;
1155
1043
  }
1156
1044
  case "label": {
1157
- i.needRefreshControlTree = !0;
1045
+ r.needRefreshControlTree = !0;
1158
1046
  break;
1159
1047
  }
1160
1048
  }
1161
1049
  }
1162
1050
  };
1163
1051
  }
1164
- getAppearanceProperties(t, o) {
1165
- var a = this;
1052
+ getAppearanceProperties(t, s) {
1053
+ const i = this;
1166
1054
  return {
1167
1055
  title: "样式",
1168
1056
  description: "Appearance",
@@ -1188,18 +1076,18 @@ class Xe extends Re {
1188
1076
  refreshPanelAfterChanged: !0,
1189
1077
  editor: {
1190
1078
  type: "response-layout-editor-setting",
1191
- initialState: a.responseLayoutEditorFunction.checkCanOpenLayoutEditor(t, a.componentId)
1079
+ initialState: i.responseLayoutEditorFunction.checkCanOpenLayoutEditor(t, i.componentId)
1192
1080
  }
1193
1081
  }
1194
1082
  },
1195
- setPropertyRelates(l, u) {
1196
- if (l)
1197
- switch (l && l.propertyID) {
1083
+ setPropertyRelates(a, r) {
1084
+ if (a)
1085
+ switch (a && a.propertyID) {
1198
1086
  case "responseLayout":
1199
- a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, a.componentId || t.id), a.updateUnifiedLayoutAfterResponseLayoutChanged(a.componentId), a.updateElementByParentContainer(t.id, o), delete t.responseLayout;
1087
+ i.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(a.propertyValue, i.componentId || t.id), i.updateUnifiedLayoutAfterResponseLayoutChanged(i.componentId), i.updateElementByParentContainer(t.id, s), delete t.responseLayout;
1200
1088
  break;
1201
1089
  case "class":
1202
- a.updateUnifiedLayoutAfterControlChanged(l.propertyValue, t.id, this.componentId), a.updateElementByParentContainer(t.id, o);
1090
+ i.updateUnifiedLayoutAfterControlChanged(a.propertyValue, t.id, this.componentId), i.updateElementByParentContainer(t.id, s);
1203
1091
  break;
1204
1092
  }
1205
1093
  }
@@ -1213,44 +1101,44 @@ class Xe extends Re {
1213
1101
  * @param propertyData 控件DOM属性
1214
1102
  * @param newControlType 新控件类型
1215
1103
  */
1216
- changeControlType(t, o, a) {
1217
- var d, s, p, y;
1218
- const l = o.propertyValue, u = a && a.parent && a.parent.schema;
1219
- if (!u)
1104
+ changeControlType(t, s, i) {
1105
+ var c, o, d, m;
1106
+ const a = s.propertyValue, r = i && i.parent && i.parent.schema;
1107
+ if (!r)
1220
1108
  return;
1221
- const c = u.contents.findIndex((f) => f.id === t.id), i = u.contents[c];
1222
- let r;
1109
+ const f = r.contents.findIndex((u) => u.id === t.id), p = r.contents[f];
1110
+ let l;
1223
1111
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1224
1112
  editor: {
1225
- $type: l
1113
+ $type: a
1226
1114
  },
1227
1115
  name: this.designViewModelField.name,
1228
1116
  require: this.designViewModelField.require,
1229
1117
  readonly: this.designViewModelField.readonly
1230
- }, !1), r = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), r || (r = Z("form-group") || {}, r.editor = Z(l) || {}, delete r.editor.id, delete r.editor.binding, delete r.editor.appearance), Object.assign(r, {
1231
- id: i.id,
1232
- appearance: i.appearance,
1233
- size: i.size,
1234
- label: i.label,
1235
- binding: i.binding,
1236
- visible: i.visible
1237
- }), Object.assign(r.editor, {
1238
- isTextArea: r.isTextArea && i.isTextArea,
1239
- placeholder: (d = i.editor) == null ? void 0 : d.placeholder,
1240
- holdPlace: (s = i.editor) == null ? void 0 : s.holdPlace,
1241
- readonly: (p = i.editor) == null ? void 0 : p.readonly,
1242
- require: (y = i.editor) == null ? void 0 : y.require
1243
- }), u.contents.splice(c, 1), u.contents.splice(c, 0, r), a.schema = Object.assign(i, r), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1244
- (f) => f.classList.remove("dgComponentSelected")
1245
- ), Je.value++;
1246
- }
1247
- getComponentConfig(t, o = {}, a = {}) {
1248
- const l = Object.assign({
1118
+ }, !1), l = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), l || (l = this.controlCreatorUtils.createFormGroupWithoutField(a)), Object.assign(l, {
1119
+ id: p.id,
1120
+ appearance: p.appearance,
1121
+ size: p.size,
1122
+ label: p.label,
1123
+ binding: p.binding,
1124
+ visible: p.visible
1125
+ }), Object.assign(l.editor, {
1126
+ isTextArea: l.isTextArea && p.isTextArea,
1127
+ placeholder: (c = p.editor) == null ? void 0 : c.placeholder,
1128
+ holdPlace: (o = p.editor) == null ? void 0 : o.holdPlace,
1129
+ readonly: (d = p.editor) == null ? void 0 : d.readonly,
1130
+ require: (m = p.editor) == null ? void 0 : m.require
1131
+ }), r.contents.splice(f, 1), r.contents.splice(f, 0, l), i.schema = Object.assign(p, l), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1132
+ (u) => u.classList.remove("dgComponentSelected")
1133
+ ), Ne.value++;
1134
+ }
1135
+ getComponentConfig(t, s = {}, i = {}) {
1136
+ const a = Object.assign({
1249
1137
  description: "编辑器",
1250
1138
  title: "编辑器",
1251
1139
  type: "input-group",
1252
1140
  $converter: "/converter/property-editor.converter"
1253
- }, o), u = Object.assign({
1141
+ }, s), r = Object.assign({
1254
1142
  readonly: {
1255
1143
  description: "",
1256
1144
  title: "只读",
@@ -1271,8 +1159,8 @@ class Xe extends Re {
1271
1159
  title: "提示文本",
1272
1160
  type: "string"
1273
1161
  }
1274
- }, a);
1275
- return { ...l, properties: { ...u } };
1162
+ }, i);
1163
+ return { ...a, properties: { ...r } };
1276
1164
  }
1277
1165
  /**
1278
1166
  * 修改某一输入控件的样式后更新Form的统一布局配置
@@ -1280,213 +1168,105 @@ class Xe extends Re {
1280
1168
  * @param controlId 控件Id
1281
1169
  * @param componentId 控件所在组件id
1282
1170
  */
1283
- updateUnifiedLayoutAfterControlChanged(t, o, a) {
1284
- const l = t.split(" ");
1285
- let u = l.find((s) => /^col-([1-9]|10|11|12)$/.test(s)), c = l.find((s) => /^col-md-([1-9]|10|11|12)$/.test(s)), i = l.find((s) => /^col-xl-([1-9]|10|11|12)$/.test(s)), r = l.find((s) => /^col-el-([1-9]|10|11|12)$/.test(s));
1286
- u = u || "col-12", c = c || "col-md-" + u.replace("col-", ""), i = i || "col-xl-" + c.replace("col-md-", ""), r = r || "col-el-" + i.replace("col-xl-", "");
1287
- const d = {
1288
- id: o,
1289
- columnInSM: parseInt(u.replace("col-", ""), 10),
1290
- columnInMD: parseInt(c.replace("col-md-", ""), 10),
1291
- columnInLG: parseInt(i.replace("col-xl-", ""), 10),
1292
- columnInEL: parseInt(r.replace("col-el-", ""), 10)
1171
+ updateUnifiedLayoutAfterControlChanged(t, s, i) {
1172
+ const a = t.split(" ");
1173
+ let r = a.find((o) => /^col-([1-9]|10|11|12)$/.test(o)), f = a.find((o) => /^col-md-([1-9]|10|11|12)$/.test(o)), p = 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));
1174
+ r = r || "col-12", f = f || "col-md-" + r.replace("col-", ""), p = p || "col-xl-" + f.replace("col-md-", ""), l = l || "col-el-" + p.replace("col-xl-", "");
1175
+ const c = {
1176
+ id: s,
1177
+ columnInSM: parseInt(r.replace("col-", ""), 10),
1178
+ columnInMD: parseInt(f.replace("col-md-", ""), 10),
1179
+ columnInLG: parseInt(p.replace("col-xl-", ""), 10),
1180
+ columnInEL: parseInt(l.replace("col-el-", ""), 10)
1293
1181
  };
1294
- this.updateUnifiedLayoutAfterResponseLayoutChanged(a, d);
1182
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(i, c);
1295
1183
  }
1296
1184
  /**
1297
1185
  * 修改控件布局配置后更新Form统一布局配置
1298
1186
  * @param componentId 组件Id
1299
1187
  * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
1300
1188
  */
1301
- updateUnifiedLayoutAfterResponseLayoutChanged(t, o) {
1302
- const { formNode: a } = this.responseLayoutEditorFunction.checkCanFindFormNode(t);
1303
- if (!a || !a.unifiedLayout)
1189
+ updateUnifiedLayoutAfterResponseLayoutChanged(t, s) {
1190
+ const { formNode: i } = this.responseLayoutEditorFunction.checkCanFindFormNode(t);
1191
+ if (!i || !i.unifiedLayout)
1304
1192
  return;
1305
- const l = [];
1306
- if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(a, l, 1), o) {
1307
- const f = l.find((C) => C.id === o.id);
1308
- Object.assign(f || {}, o);
1193
+ const a = [];
1194
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(i, a, 1), s) {
1195
+ const u = a.find((g) => g.id === s.id);
1196
+ Object.assign(u || {}, s);
1309
1197
  }
1310
- const u = l.map((f) => f.columnInSM), c = l.map((f) => f.columnInMD), i = l.map((f) => f.columnInLG), r = l.map((f) => f.columnInEL), d = this.checkIsUniqueColumn(u) ? u[0] : null, s = this.checkIsUniqueColumn(c) ? c[0] : null, p = this.checkIsUniqueColumn(i) ? i[0] : null, y = this.checkIsUniqueColumn(r) ? r[0] : null;
1311
- Object.assign(a.unifiedLayout, {
1312
- uniqueColClassInSM: d,
1313
- uniqueColClassInMD: s,
1314
- uniqueColClassInLG: p,
1315
- uniqueColClassInEL: y
1198
+ const r = a.map((u) => u.columnInSM), f = a.map((u) => u.columnInMD), p = a.map((u) => u.columnInLG), l = a.map((u) => u.columnInEL), c = this.checkIsUniqueColumn(r) ? r[0] : null, o = this.checkIsUniqueColumn(f) ? f[0] : null, d = this.checkIsUniqueColumn(p) ? p[0] : null, m = this.checkIsUniqueColumn(l) ? l[0] : null;
1199
+ Object.assign(i.unifiedLayout, {
1200
+ uniqueColClassInSM: c,
1201
+ uniqueColClassInMD: o,
1202
+ uniqueColClassInLG: d,
1203
+ uniqueColClassInEL: m
1316
1204
  });
1317
1205
  }
1318
1206
  /**
1319
1207
  * 校验宽度样式值是否一致
1320
1208
  */
1321
1209
  checkIsUniqueColumn(t) {
1322
- const o = new Set(t);
1323
- return Array.from(o).length === 1;
1210
+ const s = new Set(t);
1211
+ return Array.from(s).length === 1;
1324
1212
  }
1325
1213
  }
1326
- class Ze extends Xe {
1214
+ class $e extends je {
1327
1215
  constructor(n, t) {
1328
1216
  super(n, t);
1329
1217
  }
1330
1218
  }
1331
- function _e(e, n) {
1332
- const {
1333
- canAccepts: t,
1334
- checkCanDeleteComponent: o,
1335
- checkCanMoveComponent: a,
1336
- hideNestedPaddingInDesginerView: l,
1337
- onAcceptMovedChildElement: u,
1338
- resolveComponentContext: c,
1339
- triggerBelongedComponentToMoveWhenMoved: i,
1340
- triggerBelongedComponentToDeleteWhenDeleted: r
1341
- } = ze(e), d = e.schema;
1342
- function s(p, y) {
1343
- return new Ze(p, n).getPropertyConfig(d, y);
1344
- }
1345
- return {
1346
- canAccepts: t,
1347
- checkCanDeleteComponent: o,
1348
- checkCanMoveComponent: a,
1349
- hideNestedPaddingInDesginerView: l,
1350
- onAcceptMovedChildElement: u,
1351
- resolveComponentContext: c,
1352
- triggerBelongedComponentToMoveWhenMoved: i,
1353
- triggerBelongedComponentToDeleteWhenDeleted: r,
1354
- getPropsConfig: s
1355
- };
1356
- }
1357
- function Qe(e, n, t) {
1358
- var I;
1359
- function o() {
1360
- t != null && t.resolveComponentContext && t.resolveComponentContext();
1361
- }
1362
- o();
1363
- const a = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", u = h();
1364
- function c() {
1365
- return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1366
- }
1367
- function i() {
1368
- return !1;
1369
- }
1370
- function r() {
1371
- return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1372
- }
1373
- function d() {
1374
- return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1375
- }
1376
- function s(b) {
1377
- if (!b || !b.value)
1378
- return null;
1379
- if (b.value.schema && b.value.schema.type === "component")
1380
- return b.value;
1381
- const w = h(b == null ? void 0 : b.value.parent), M = s(w);
1382
- return M || null;
1383
- }
1384
- function p(b = n) {
1385
- const { componentInstance: w, designerItemElementRef: M } = b;
1386
- return !w || !w.value ? null : w.value.canMove ? M : p(b.parent);
1387
- }
1388
- function y(b) {
1389
- return !!t && t.canAccepts(b);
1390
- }
1391
- function f() {
1392
- return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
1393
- }
1394
- function C() {
1395
- }
1396
- function S(b, w) {
1397
- w && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(w);
1398
- }
1399
- function T(b, w) {
1400
- const { componentType: M } = b;
1401
- let E = $(M, b, w);
1402
- t && t.onResolveNewComponentSchema && (E = t.onResolveNewComponentSchema(b, E));
1403
- const V = M.toLowerCase().replace("-", "_");
1404
- return E && !E.id && E.type === M && (E.id = `${V}_${Math.random().toString().slice(2, 6)}`), E;
1405
- }
1406
- function A(b, w) {
1407
- const M = String(b.getAttribute("data-controltype")), E = b.getAttribute("data-feature"), V = E ? JSON.parse(E) : {};
1408
- V.parentComponentInstance = u.value;
1409
- let L = $(M, V);
1410
- t && t.onAcceptNewChildElement && (L = t.onAcceptNewChildElement(b, w, L));
1411
- const G = M.toLowerCase().replace("-", "_");
1412
- return L && !L.id && L.type === M && (L.id = `${G}_${Math.random().toString().slice(2, 6)}`), L;
1413
- }
1414
- function P(b) {
1415
- }
1416
- function k(...b) {
1417
- if (t && t.getPropsConfig)
1418
- return t.getPropsConfig(...b);
1219
+ function We(e, n) {
1220
+ const t = e.schema;
1221
+ function s(i, a) {
1222
+ return new $e(i, n).getPropertyConfig(t, a);
1419
1223
  }
1420
- return u.value = {
1421
- canMove: c(),
1422
- canSelectParent: i(),
1423
- canDelete: r(),
1424
- canNested: !d(),
1425
- contents: n == null ? void 0 : n.schema.contents,
1426
- elementRef: e,
1427
- parent: (I = n == null ? void 0 : n.parent) == null ? void 0 : I.componentInstance,
1428
- schema: n == null ? void 0 : n.schema,
1429
- styles: a,
1430
- designerClass: l,
1431
- canAccepts: y,
1432
- getBelongedComponentInstance: s,
1433
- getDraggableDesignItemElement: p,
1434
- getDraggingDisplayText: f,
1435
- getPropConfig: k,
1436
- getDragScopeElement: C,
1437
- onAcceptMovedChildElement: S,
1438
- onAcceptNewChildElement: A,
1439
- onChildElementMovedOut: P,
1440
- addNewChildComponentSchema: T,
1441
- updateDragAndDropRules: o,
1442
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || h(!1),
1443
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || h(!1)
1444
- }, u;
1224
+ return { getPropsConfig: s };
1445
1225
  }
1446
- const Ye = /* @__PURE__ */ _({
1226
+ const qe = /* @__PURE__ */ W({
1447
1227
  name: "FInputGroupDesign",
1448
- props: W,
1228
+ props: G,
1449
1229
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
1450
1230
  setup(e, n) {
1451
- const t = h(e.modelValue), o = h(e.modelValue), a = Ve(e, n, t, o), {
1452
- inputGroupClass: l,
1453
- inputType: u,
1454
- inputGroupStyle: c
1455
- } = a, i = ne(e), {
1456
- shouldShowAppendedButton: r
1457
- } = i, d = te(e, n, a), {
1458
- onMouseEnter: s,
1459
- onMouseLeave: p
1460
- } = d, y = oe(e, n, u, i), f = h(), C = J("designer-host-service"), S = J("design-item-context"), T = _e(S, C), A = Qe(f, S, T);
1461
- N(() => {
1462
- f.value.componentInstance = A;
1463
- }), n.expose(A.value);
1464
- const P = ae(e, n, i, d, y), k = h();
1465
- return () => B("div", {
1231
+ const t = B(e.modelValue), s = B(e.modelValue), i = oe(e, n, t, s), {
1232
+ inputGroupClass: a,
1233
+ inputType: r,
1234
+ inputGroupStyle: f
1235
+ } = i, p = X(e), {
1236
+ shouldShowAppendedButton: l
1237
+ } = p, c = R(e, n, i), {
1238
+ onMouseEnter: o,
1239
+ onMouseLeave: d
1240
+ } = c, m = Q(e, n, r, p), u = B(), g = U("designer-host-service"), v = U("design-item-context"), b = We(v, g), C = ue(u, v, b);
1241
+ L(() => {
1242
+ u.value.componentInstance = C;
1243
+ }), n.expose(C.value);
1244
+ const k = Z(e, n, p, c, m), M = B();
1245
+ return () => w("div", {
1466
1246
  id: "inputGroup",
1467
- ref: f,
1468
- class: l.value,
1469
- style: c.value,
1470
- onMouseenter: s,
1471
- onMouseleave: p
1472
- }, [B("input", {
1473
- ref: k,
1247
+ ref: u,
1248
+ class: a.value,
1249
+ style: f.value,
1250
+ onMouseenter: o,
1251
+ onMouseleave: d
1252
+ }, [w("input", {
1253
+ ref: M,
1474
1254
  class: "form-control",
1475
1255
  readonly: !0,
1476
1256
  placeholder: e.placeholder
1477
- }, null), r.value && P()]);
1257
+ }, null), l.value && k()]);
1478
1258
  }
1479
1259
  });
1480
- j.register = (e, n, t, o) => {
1481
- e["input-group"] = j, n["input-group"] = ee;
1260
+ P.register = (e, n, t, s) => {
1261
+ e["input-group"] = P, n["input-group"] = z;
1482
1262
  };
1483
- j.registerDesigner = (e, n, t) => {
1484
- e["input-group"] = Ye, n["input-group"] = ee;
1263
+ P.registerDesigner = (e, n, t) => {
1264
+ e["input-group"] = qe, n["input-group"] = z;
1485
1265
  };
1486
- const it = Ue(j);
1266
+ const Je = ie(P);
1487
1267
  export {
1488
- j as FInputGroup,
1489
- it as default,
1490
- W as inputGroupProps,
1491
- ee as propsResolver
1268
+ P as FInputGroup,
1269
+ Je as default,
1270
+ G as inputGroupProps,
1271
+ z as propsResolver
1492
1272
  };