@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,66 +1,71 @@
1
- import { ref as h, computed as S, defineComponent as H, watch as V, createVNode as l, createTextVNode as ce, onMounted as W, nextTick as ie, reactive as je, withDirectives as Re, resolveDirective as Ae, Fragment as Z, mergeProps as De, inject as Ve, onBeforeMount as $e } from "vue";
2
- import { isPlainObject as le, cloneDeep as Me } from "lodash-es";
3
- import "bignumber.js";
4
- import Ge, { useNumber as qe, useFormat as We, useSpinner as He, useTextBox as Ue } from "../number-spinner/index.esm.js";
5
- import _e from "../accordion/index.esm.js";
6
- import ze from "../avatar/index.esm.js";
7
- import Qe from "../button-edit/index.esm.js";
8
- import Ze from "../button-group/index.esm.js";
9
- import Je from "../calendar/index.esm.js";
10
- import Xe from "../capsule/index.esm.js";
11
- import Ye from "../checkbox/index.esm.js";
12
- import Ke from "../combo-list/index.esm.js";
13
- import et from "../combo-tree/index.esm.js";
14
- import tt from "../component/index.esm.js";
15
- import nt from "../color-picker/index.esm.js";
16
- import ot from "../content-container/index.esm.js";
17
- import rt from "../date-picker/index.esm.js";
18
- import at from "../data-grid/index.esm.js";
19
- import it from "../dropdown/index.esm.js";
20
- import lt from "../dynamic-form/index.esm.js";
21
- import st from "../events-editor/index.esm.js";
22
- import ut from "../filter-bar/index.esm.js";
23
- import ct from "../field-selector/index.esm.js";
24
- import dt from "../image-cropper/index.esm.js";
25
- import pt from "../input-group/index.esm.js";
26
- import ft from "../layout/index.esm.js";
27
- import mt from "../list-nav/index.esm.js";
28
- import gt from "../list-view/index.esm.js";
29
- import vt from "../lookup/index.esm.js";
30
- import yt from "../mapping-editor/index.esm.js";
31
- import bt from "../nav/index.esm.js";
32
- import ht from "../number-range/index.esm.js";
33
- import Ct from "../order/index.esm.js";
34
- import Ft from "../page-header/index.esm.js";
35
- import xt from "../page-footer/index.esm.js";
36
- import Tt from "../pagination/index.esm.js";
37
- import wt from "../progress/index.esm.js";
38
- import Bt from "../query-solution/index.esm.js";
39
- import Pt from "../radio-group/index.esm.js";
40
- import St from "../rate/index.esm.js";
41
- import kt from "../response-toolbar/index.esm.js";
42
- import Et from "../response-layout/index.esm.js";
43
- import It from "../response-layout-editor/index.esm.js";
44
- import Ot from "../search-box/index.esm.js";
45
- import Nt from "../section/index.esm.js";
46
- import Lt from "../smoke-detector/index.esm.js";
47
- import jt from "../splitter/index.esm.js";
48
- import Rt from "../step/index.esm.js";
49
- import At from "../switch/index.esm.js";
50
- import Dt from "../tabs/index.esm.js";
51
- import Vt from "../tags/index.esm.js";
52
- import $t from "../text/index.esm.js";
53
- import Mt from "../time-picker/index.esm.js";
54
- import Gt from "../transfer/index.esm.js";
55
- import qt from "../tree-view/index.esm.js";
56
- import Wt from "../uploader/index.esm.js";
57
- import Ht from "../verify-detail/index.esm.js";
58
- import Ut from "../weather/index.esm.js";
59
- import _t from "../video/index.esm.js";
60
- import zt from "../textarea/index.esm.js";
61
- import Qt from "../schema-selector/index.esm.js";
62
- import Zt from "../tree-grid/index.esm.js";
63
- const Jt = {
1
+ var $e = Object.defineProperty;
2
+ var Ae = (e, t, n) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var D = (e, t, n) => Ae(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { ref as F, computed as N, defineComponent as W, watch as R, createVNode as l, createTextVNode as pe, onMounted as q, nextTick as le, reactive as Ge, withDirectives as Ue, resolveDirective as qe, Fragment as z, mergeProps as We, inject as He, onBeforeMount as Qe } from "vue";
5
+ import { isPlainObject as se, cloneDeep as fe } from "lodash-es";
6
+ import { useTextBox as _e, useClear as ze } from "../common/index.esm.js";
7
+ import Ze, { useNumber as Je, useFormat as Xe, useSpinner as Ye, useTextBox as Ke } from "../number-spinner/index.esm.js";
8
+ import et from "../accordion/index.esm.js";
9
+ import tt from "../avatar/index.esm.js";
10
+ import nt from "../button-edit/index.esm.js";
11
+ import ot from "../button-group/index.esm.js";
12
+ import rt from "../calendar/index.esm.js";
13
+ import at from "../capsule/index.esm.js";
14
+ import it from "../checkbox/index.esm.js";
15
+ import lt from "../combo-list/index.esm.js";
16
+ import st from "../combo-tree/index.esm.js";
17
+ import ut from "../component/index.esm.js";
18
+ import ct from "../color-picker/index.esm.js";
19
+ import dt from "../content-container/index.esm.js";
20
+ import pt from "../date-picker/index.esm.js";
21
+ import ft from "../data-grid/index.esm.js";
22
+ import mt from "../dropdown/index.esm.js";
23
+ import gt from "../dynamic-form/index.esm.js";
24
+ import yt from "../events-editor/index.esm.js";
25
+ import vt from "../filter-bar/index.esm.js";
26
+ import bt from "../field-selector/index.esm.js";
27
+ import ht from "../binding-selector/index.esm.js";
28
+ import Ct from "../image-cropper/index.esm.js";
29
+ import Ft from "../input-group/index.esm.js";
30
+ import xt from "../layout/index.esm.js";
31
+ import Tt from "../list-nav/index.esm.js";
32
+ import wt from "../list-view/index.esm.js";
33
+ import kt from "../lookup/index.esm.js";
34
+ import Bt from "../mapping-editor/index.esm.js";
35
+ import St from "../nav/index.esm.js";
36
+ import Pt from "../number-range/index.esm.js";
37
+ import Et from "../order/index.esm.js";
38
+ import It from "../page-header/index.esm.js";
39
+ import Ot from "../page-footer/index.esm.js";
40
+ import Nt from "../pagination/index.esm.js";
41
+ import Mt from "../progress/index.esm.js";
42
+ import Vt from "../query-solution/index.esm.js";
43
+ import jt from "../radio-group/index.esm.js";
44
+ import Lt from "../rate/index.esm.js";
45
+ import Dt from "../response-toolbar/index.esm.js";
46
+ import Rt from "../response-layout/index.esm.js";
47
+ import $t from "../response-layout-editor/index.esm.js";
48
+ import At from "../search-box/index.esm.js";
49
+ import Gt from "../section/index.esm.js";
50
+ import Ut from "../smoke-detector/index.esm.js";
51
+ import qt from "../splitter/index.esm.js";
52
+ import Wt from "../step/index.esm.js";
53
+ import Ht from "../switch/index.esm.js";
54
+ import Qt from "../tabs/index.esm.js";
55
+ import _t from "../tags/index.esm.js";
56
+ import zt from "../text/index.esm.js";
57
+ import Zt from "../time-picker/index.esm.js";
58
+ import Jt from "../transfer/index.esm.js";
59
+ import Xt from "../tree-view/index.esm.js";
60
+ import Yt from "../uploader/index.esm.js";
61
+ import Kt from "../verify-detail/index.esm.js";
62
+ import en from "../weather/index.esm.js";
63
+ import tn from "../video/index.esm.js";
64
+ import nn from "../textarea/index.esm.js";
65
+ import on from "../schema-selector/index.esm.js";
66
+ import rn from "../tree-grid/index.esm.js";
67
+ import an from "../event-parameter/index.esm.js";
68
+ const ln = {
64
69
  width: { type: String, default: "300px" },
65
70
  height: { type: Number, default: 10 },
66
71
  isWidePanel: { type: Boolean, default: !1 },
@@ -89,114 +94,121 @@ const Jt = {
89
94
  /** 属性变更后事件 */
90
95
  propertyChanged: { type: Function }
91
96
  };
92
- function Xt(e = {}) {
93
- function t(i, p, a, f) {
97
+ function sn(e = {}) {
98
+ function t(i, g, a, v) {
94
99
  if (typeof a == "number")
95
- return f[i].length === a;
100
+ return v[i].length === a;
96
101
  if (typeof a == "object") {
97
- const s = Object.keys(a)[0], m = a[s];
102
+ const s = Object.keys(a)[0], b = a[s];
98
103
  if (s === "not")
99
- return Number(f[i].length) !== Number(m);
104
+ return Number(v[i].length) !== Number(b);
100
105
  if (s === "moreThan")
101
- return Number(f[i].length) >= Number(m);
106
+ return Number(v[i].length) >= Number(b);
102
107
  if (s === "lessThan")
103
- return Number(f[i].length) <= Number(m);
108
+ return Number(v[i].length) <= Number(b);
104
109
  }
105
110
  return !1;
106
111
  }
107
- function n(i, p, a, f) {
108
- return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(a);
112
+ function n(i, g, a, v) {
113
+ return v[i] && v[i].propertyValue && String(v[i].propertyValue.value) === String(a);
109
114
  }
110
115
  const o = /* @__PURE__ */ new Map([
111
116
  ["length", t],
112
117
  ["getProperty", n]
113
118
  ]);
114
- Object.keys(e).reduce((i, p) => (i.set(p, e[p]), i), o);
115
- function r(i, p) {
119
+ Object.keys(e).reduce((i, g) => (i.set(g, e[g]), i), o);
120
+ function r(i, g) {
116
121
  const a = i;
117
- 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) => {
118
- if (f === "length")
119
- return { target: a, operator: "length", param: null, value: p[f] };
120
- const s = f, m = p[f];
121
- return { target: a, operator: "getProperty", param: s, value: m };
122
+ return typeof g == "number" ? [{ target: a, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: a, operator: "getProperty", param: i, value: !!g }] : typeof g == "object" ? Object.keys(g).map((v) => {
123
+ if (v === "length")
124
+ return { target: a, operator: "length", param: null, value: g[v] };
125
+ const s = v, b = g[v];
126
+ return { target: a, operator: "getProperty", param: s, value: b };
122
127
  }) : [];
123
128
  }
124
129
  function d(i) {
125
- return Object.keys(i).reduce((a, f) => {
126
- const s = r(f, i[f]);
130
+ return Object.keys(i).reduce((a, v) => {
131
+ const s = r(v, i[v]);
127
132
  return a.push(...s), a;
128
133
  }, []);
129
134
  }
130
- function c(i, p) {
135
+ function u(i, g) {
131
136
  if (o.has(i.operator)) {
132
137
  const a = o.get(i.operator);
133
- return a && a(i.target, i.param, i.value, p) || !1;
138
+ return a && a(i.target, i.param, i.value, g) || !1;
134
139
  }
135
140
  return !1;
136
141
  }
137
- function C(i, p) {
138
- return d(i).reduce((s, m) => s && c(m, p), !0);
142
+ function T(i, g) {
143
+ return d(i).reduce((s, b) => s && u(b, g), !0);
139
144
  }
140
- function u(i, p) {
141
- const a = Object.keys(i), f = a.includes("allOf"), s = a.includes("anyOf"), m = f || s, L = (m ? i[m ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((R) => C(R, p));
142
- return f ? !L.includes(!1) : L.includes(!0);
145
+ function c(i, g) {
146
+ const a = Object.keys(i), v = a.includes("allOf"), s = a.includes("anyOf"), b = v || s, M = (b ? i[b ? v ? "allOf" : "anyOf" : "allOf"] : [i]).map((L) => T(L, g));
147
+ return v ? !M.includes(!1) : M.includes(!0);
143
148
  }
144
- return { parseValueSchema: u };
149
+ return { parseValueSchema: c };
145
150
  }
146
- const ee = {}, Yt = {};
147
- function de(e) {
148
- const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((c, C) => ((!r || !o.find((u) => u == C)) && (c[C] = t[C].type === "object" && t[C].properties ? de(t[C]) : Me(t[C].default)), c), {});
149
- return (!r || !o.find((c) => c == "id")) && (d.id = `${n}-${Date.now()}`), d;
151
+ const ee = {}, un = {};
152
+ function me(e) {
153
+ const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((u, T) => ((!r || !o.find((c) => c === T)) && (u[T] = t[T].type === "object" && t[T].properties ? me(t[T]) : fe(t[T].default)), u), {});
154
+ if (n && (!r || !o.find((u) => u === "id"))) {
155
+ const u = n.toLowerCase().replace(/-/g, "_");
156
+ d.id = `${u}_${Math.random().toString().slice(2, 6)}`;
157
+ }
158
+ return d;
150
159
  }
151
160
  function te(e, t) {
152
- const n = de(t);
153
- return Object.keys(e).reduce((o, r) => (o[r] && le(o[r]) && le(e[r]) ? Object.assign(o[r], e[r]) : o[r] = e[r], o), n), n;
161
+ const n = me(t);
162
+ return Object.keys(n).reduce((o, r) => (o[r] && se(o[r]) && se(e[r] || !e[r]) ? Object.assign(o[r], e[r] || {}) : o[r] = e[r], o), n), n;
154
163
  }
155
- function Kt(e, t) {
164
+ function cn(e, t) {
156
165
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
157
166
  if (t.has(r)) {
158
167
  const d = t.get(r);
159
168
  if (typeof d == "string")
160
169
  o[d] = e[r];
161
170
  else {
162
- const c = d(r, e[r], e);
163
- Object.assign(o, c);
171
+ const u = d(r, e[r], e);
172
+ Object.assign(o, u);
164
173
  }
165
174
  } else
166
175
  o[r] = e[r];
167
176
  return o;
168
177
  }, {});
169
178
  }
170
- function en(e, t, n = /* @__PURE__ */ new Map()) {
179
+ function dn(e, t, n = /* @__PURE__ */ new Map()) {
171
180
  const o = te(e, t);
172
- return Kt(o, n);
181
+ return cn(o, n);
173
182
  }
174
- function pe(e) {
183
+ function ge(e) {
175
184
  var n;
176
185
  const t = e.type;
177
186
  if (t) {
178
- const o = ee[t], r = te(e, o), d = ((n = e.editor) == null ? void 0 : n.type) || "";
187
+ const o = ee[t];
188
+ if (!o)
189
+ return e;
190
+ const r = te(e, o), d = ((n = e.editor) == null ? void 0 : n.type) || "";
179
191
  if (d) {
180
- const c = ee[d], C = te(e.editor, c);
181
- r.editor = C;
192
+ const u = ee[d], T = te(e.editor, u);
193
+ r.editor = T;
182
194
  }
183
195
  return r;
184
196
  }
185
197
  return e;
186
198
  }
187
- const tn = {
199
+ const pn = {
188
200
  convertTo: (e, t, n, o) => {
189
- e.appearance && (e.appearance[t] = n);
201
+ e.appearance || (e.appearance = {}), e.appearance[t] = n;
190
202
  },
191
203
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
192
- }, nn = {
204
+ }, fn = {
193
205
  convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
194
- }, on = {
206
+ }, mn = {
195
207
  convertTo: (e, t, n, o) => {
196
208
  e.editor && (e.editor[t] = n);
197
209
  },
198
- convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
199
- }, rn = {
210
+ convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
211
+ }, w = {
200
212
  button: { type: "button", name: "按钮", icon: "Button" },
201
213
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
202
214
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -234,19 +246,20 @@ const tn = {
234
246
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
235
247
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
236
248
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
237
- fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
238
- }, an = {
249
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
250
+ "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
251
+ }, gn = {
239
252
  convertFrom: (e, t, n) => {
240
253
  var r;
241
254
  const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
242
- return ((r = rn[o]) == null ? void 0 : r.name) || o;
255
+ return ((r = w[o]) == null ? void 0 : r.name) || o;
243
256
  }
244
- }, ln = {
257
+ }, yn = {
245
258
  convertTo: (e, t, n, o) => {
246
259
  e[t] = e[t];
247
260
  },
248
261
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
249
- }, sn = {
262
+ }, vn = {
250
263
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
251
264
  convertTo: (e, t, n) => {
252
265
  if (n && n.length > 0) {
@@ -254,34 +267,41 @@ const tn = {
254
267
  e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
255
268
  }
256
269
  }
257
- }, un = {
270
+ }, bn = {
258
271
  convertTo: (e, t, n, o) => {
259
272
  e.pagination || (e.pagination = {}), e.pagination[t] = n;
260
273
  },
261
274
  convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
262
- }, cn = {
275
+ }, hn = {
276
+ convertTo: (e, t, n, o) => {
277
+ e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
278
+ },
279
+ convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
280
+ }, Cn = {
263
281
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
264
- }, dn = {
282
+ }, Fn = {
265
283
  convertFrom: (e, t) => e[t] || "",
266
284
  convertTo: (e, t, n) => {
267
285
  e[t] = n;
268
286
  }
269
287
  }, oe = {}, ne = /* @__PURE__ */ new Map([
270
- ["/converter/appearance.converter", tn],
271
- ["/converter/buttons.converter", nn],
272
- ["/converter/property-editor.converter", on],
273
- ["/converter/items-count.converter", cn],
274
- ["/converter/type.converter", an],
275
- ["/converter/change-editor.converter", ln],
276
- ["/converter/form-group-label.converter", dn],
277
- ["/converter/field-selector.converter", sn],
278
- ["/converter/pagination.converter", un]
279
- ]), pn = {}, fn = /* @__PURE__ */ new Map([
288
+ ["/converter/appearance.converter", pn],
289
+ ["/converter/buttons.converter", fn],
290
+ ["/converter/property-editor.converter", mn],
291
+ ["/converter/items-count.converter", Cn],
292
+ ["/converter/type.converter", gn],
293
+ ["/converter/change-editor.converter", yn],
294
+ ["/converter/form-group-label.converter", Fn],
295
+ ["/converter/field-selector.converter", vn],
296
+ ["/converter/pagination.converter", bn],
297
+ ["/converter/row-number.converter", hn]
298
+ ]), xn = {}, Tn = /* @__PURE__ */ new Map([
280
299
  ["string", { type: "input-group", enableClear: !1 }],
281
300
  ["boolean", {
282
301
  type: "combo-list",
283
302
  textField: "name",
284
303
  valueField: "value",
304
+ idField: "value",
285
305
  maxHeight: 64,
286
306
  data: [
287
307
  {
@@ -298,72 +318,73 @@ const tn = {
298
318
  ["array", { type: "button-edit" }],
299
319
  ["number", { type: "number-spinner" }],
300
320
  ["events-editor", { type: "events-editor", hide: !0 }]
301
- ]), mn = Xt();
302
- function fe(e, t) {
303
- return () => mn.parseValueSchema(e, t);
321
+ ]), wn = sn();
322
+ function ye(e, t) {
323
+ return () => wn.parseValueSchema(e, t);
304
324
  }
305
- function gn(e, t, n) {
306
- return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : fe(t.visible, n) : () => !0;
325
+ function kn(e, t, n) {
326
+ return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : ye(t.visible, n) : () => !0;
307
327
  }
308
- function vn(e, t, n) {
309
- return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : fe(t.readonly, n) : () => !1;
328
+ function Bn(e, t, n) {
329
+ return e.includes("readonly") && t.readonly !== void 0 ? typeof t.readonly == "boolean" ? () => !!t.readonly : ye(t.readonly, n) : () => !1;
310
330
  }
311
- function yn(e, t) {
331
+ function Sn(e, t) {
312
332
  const n = e.$converter || t;
313
333
  return typeof n == "string" && n && ne.has(n) ? ne.get(n) || null : n || null;
314
334
  }
315
- function re(e, t, n, o, r, d = "", c = "") {
316
- return Object.keys(e).map((u) => {
317
- const i = h(1), p = u, a = e[u], f = Object.keys(a), s = a.title, m = a.type, w = fn.get(m) || { type: "input-group", enableClear: !1 }, k = a.editor ? Object.assign({}, w, a.editor) : w, L = gn(f, a, t), A = vn(f, a, t), R = a.type === "cascade" ? re(a.properties, t, n, o, r, d, c) : [], E = !0;
318
- let I = yn(a, c);
319
- const O = S({
335
+ function re(e, t, n, o, r, d = "", u = "") {
336
+ return Object.keys(e).map((c) => {
337
+ const i = F(1), g = c, a = e[c], v = Object.keys(a), s = a.title, b = a.type, B = Tn.get(b) || { type: "input-group", enableClear: !1 }, S = a.editor ? Object.assign({}, B, a.editor) : Object.assign({}, B), M = kn(v, a, t), j = Bn(v, a, t);
338
+ S.readonly = j();
339
+ const L = a.type === "cascade" ? re(a.properties, t, n, o, r, d, u) : [], P = !0;
340
+ let E = Sn(a, u);
341
+ const O = N({
320
342
  get() {
321
343
  if (i.value) {
322
- if (["class", "style"].find((G) => G == p) && !I && (I = ne.get("/converter/appearance.converter") || null), I && I.convertFrom)
323
- return I.convertFrom(n, u, r, d);
324
- const j = n[u];
325
- return typeof j == "string" && j == "" ? a.defaultValue || "" : j;
344
+ if (["class", "style"].find((G) => G === g) && !E && (E = ne.get("/converter/appearance.converter") || null), E && E.convertFrom)
345
+ return E.convertFrom(n, c, r, d);
346
+ const V = n[c];
347
+ return typeof V == "string" && V === "" ? a.defaultValue || "" : V;
326
348
  }
327
349
  return null;
328
350
  },
329
- set(j) {
330
- i.value += 1, I && I.convertTo ? (I.convertTo(o, u, j, r, d), I.convertTo(n, u, j, r, d)) : (o[u] = j, n[u] = j);
351
+ set(V) {
352
+ i.value += 1, E && E.convertTo ? (E.convertTo(o, c, V, r, d), E.convertTo(n, c, V, r, d)) : (o[c] = V, n[c] = V);
331
353
  }
332
- }), B = a.refreshPanelAfterChanged, $ = { propertyID: p, propertyName: s, propertyType: m, propertyValue: O, editor: k, visible: L, readonly: A, cascadeConfig: R, hideCascadeTitle: E, refreshPanelAfterChanged: B };
333
- return t[p] = $, $;
354
+ }), { refreshPanelAfterChanged: k } = a, $ = { propertyID: g, propertyName: s, propertyType: b, propertyValue: O, editor: S, visible: M, readonly: j, cascadeConfig: L, hideCascadeTitle: P, refreshPanelAfterChanged: k };
355
+ return t[g] = $, $;
334
356
  });
335
357
  }
336
- function bn(e, t, n, o, r = "") {
337
- const d = t.$ref.schema, c = t.$ref.converter, C = n[d], u = C.type, i = pe(C), p = {}, a = oe[u];
358
+ function Pn(e, t, n, o, r = "") {
359
+ const d = t.$ref.schema, u = t.$ref.converter, T = n[d], c = T.type, i = ge(T), g = {}, a = oe[c];
338
360
  if (a && a.categories) {
339
- const f = a.categories[e], s = f == null ? void 0 : f.title;
340
- c && Object.keys(f.properties).forEach((k) => {
341
- f.properties[k].$converter = c;
361
+ const v = a.categories[e], s = v == null ? void 0 : v.title;
362
+ u && Object.keys(v.properties).forEach((S) => {
363
+ v.properties[S].$converter = u;
342
364
  });
343
- const m = (f == null ? void 0 : f.properties) || {}, w = re(m, p, i, C, o, r);
344
- return { categoryId: e, categoryName: s, properties: w };
365
+ const b = (v == null ? void 0 : v.properties) || {}, B = re(b, g, i, T, o, r);
366
+ return { categoryId: e, categoryName: s, properties: B };
345
367
  }
346
368
  return { categoryId: e, categoryName: "", properties: [] };
347
369
  }
348
370
  function K(e, t, n, o, r) {
349
- let d = e.type;
350
- const c = pe(e), C = {};
351
- let u = r || oe[d];
352
- if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(o)), u && u.categories) {
371
+ const d = e.type, u = ge(e), T = {};
372
+ let c = r || oe[d];
373
+ if (c && Object.keys(c).length === 0 && n && n.getPropConfig && (c = n.getPropConfig(o)), c && c.categories) {
353
374
  const i = [];
354
- return Object.keys(u.categories).map((p) => {
355
- const a = u.categories[p];
375
+ return Object.keys(c.categories).map((g) => {
376
+ const a = c.categories[g];
356
377
  if (a.$ref) {
357
- i.push(bn(p, a, e, t, o));
378
+ i.push(Pn(g, a, e, t, o));
358
379
  return;
359
380
  }
360
- const f = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, m = a == null ? void 0 : a.tabName, w = a == null ? void 0 : a.hide, k = a == null ? void 0 : a.hideTitle, L = re(a.properties || {}, C, c, e, t, o, a.$converter), A = a.setPropertyRelates;
361
- i.push({ categoryId: p, categoryName: f, tabId: s, tabName: m, hide: w, properties: L, hideTitle: k, setPropertyRelates: A });
381
+ const v = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, b = a == null ? void 0 : a.tabName, B = a == null ? void 0 : a.hide, S = a == null ? void 0 : a.hideTitle, M = re(a.properties || {}, T, u, e, t, o, a.$converter), { setPropertyRelates: j } = a;
382
+ i.push({ categoryId: g, categoryName: v, tabId: s, tabName: b, hide: B, properties: M, hideTitle: S, setPropertyRelates: j });
362
383
  }), i;
363
384
  }
364
385
  return [];
365
386
  }
366
- const hn = {
387
+ const En = {
367
388
  /** 某一分类下的属性配置 */
368
389
  // as PropType<ElementPropertyConfig>
369
390
  category: { type: Object, default: {} },
@@ -372,22 +393,22 @@ const hn = {
372
393
  propertyData: { type: Object, default: {} },
373
394
  valueChanged: { type: Function },
374
395
  triggerRefreshPanel: { type: Function }
375
- }, Cn = {
396
+ }, In = {
376
397
  elementConfig: { type: Object, default: {} },
377
398
  category: { type: Object, default: {} }
378
399
  };
379
- function me(e, t, n = /* @__PURE__ */ new Map(), o = (c, C, u) => C, r = {}, d = (c) => c) {
380
- return ee[t.title] = t, Yt[t.title] = o, oe[t.title] = r, pn[t.title] = d, (c = {}) => {
381
- const C = en(c, t, n), u = Object.keys(e).reduce((i, p) => (i[p] = e[p].default, i), {});
382
- return Object.assign(u, C);
400
+ function ve(e, t, n = /* @__PURE__ */ new Map(), o = (u, T, c, i) => T, r = {}, d = (u) => u) {
401
+ return ee[t.title] = t, un[t.title] = o, oe[t.title] = r, xn[t.title] = d, (u = {}) => {
402
+ const T = dn(u, t, n), c = Object.keys(e).reduce((i, g) => (i[g] = e[g].default, i), {});
403
+ return Object.assign(c, T);
383
404
  };
384
405
  }
385
- function ge(e, t) {
406
+ function be(e, t) {
386
407
  return { customClass: t.class, customStyle: t.style };
387
408
  }
388
- const Fn = /* @__PURE__ */ new Map([
389
- ["appearance", ge]
390
- ]), xn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-design.gitee.io/form-group.schema.json", wn = "form-group", Bn = "A Farris Input Component", Pn = "object", Sn = {
409
+ const On = /* @__PURE__ */ new Map([
410
+ ["appearance", be]
411
+ ]), Nn = "https://json-schema.org/draft/2020-12/schema", Mn = "https://farris-design.gitee.io/form-group.schema.json", Vn = "form-group", jn = "A Farris Input Component", Ln = "object", Dn = {
391
412
  id: {
392
413
  description: "The unique identifier for a form group",
393
414
  type: "string"
@@ -427,21 +448,27 @@ const Fn = /* @__PURE__ */ new Map([
427
448
  lableWidth: {
428
449
  description: "",
429
450
  type: "number"
451
+ },
452
+ binding: {
453
+ description: "",
454
+ type: "object",
455
+ default: {}
430
456
  }
431
- }, kn = [
457
+ }, Rn = [
432
458
  "id",
433
459
  "type"
434
- ], En = {
435
- $schema: xn,
436
- $id: Tn,
437
- title: wn,
438
- description: Bn,
439
- type: Pn,
440
- properties: Sn,
441
- required: kn
442
- }, ve = {
460
+ ], $n = {
461
+ $schema: Nn,
462
+ $id: Mn,
463
+ title: Vn,
464
+ description: jn,
465
+ type: Ln,
466
+ properties: Dn,
467
+ required: Rn
468
+ }, he = {
443
469
  id: { type: String, default: "" },
444
470
  customClass: { type: String, default: "" },
471
+ customStyle: { type: String, default: "" },
445
472
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
446
473
  editor: { type: Object, default: {} },
447
474
  label: { type: String, default: "" },
@@ -453,43 +480,43 @@ const Fn = /* @__PURE__ */ new Map([
453
480
  showLabel: { type: Boolean, default: !0 },
454
481
  type: { type: String, default: "input-group" }
455
482
  };
456
- me(
457
- ve,
458
- En,
459
- Fn,
483
+ ve(
484
+ he,
485
+ $n,
486
+ On,
460
487
  void 0
461
488
  );
462
- const In = {
489
+ const An = {
463
490
  id: { type: String },
464
491
  required: { type: Boolean, default: !1 },
465
492
  text: { type: String, default: "" },
466
493
  title: { type: String }
467
- }, On = /* @__PURE__ */ H({
494
+ }, Gn = /* @__PURE__ */ W({
468
495
  name: "FDynamicFormLabel",
469
- props: In,
496
+ props: An,
470
497
  emits: [],
471
498
  setup(e, t) {
472
- const n = h(e.title || e.text), o = h(e.required), r = h(e.text);
473
- return V(() => e.text, () => {
499
+ const n = F(e.title || e.text), o = F(e.required), r = F(e.text);
500
+ return R(() => e.text, () => {
474
501
  r.value = e.text;
475
- }), V(() => e.required, (d, c) => {
476
- d !== c && (o.value = d);
502
+ }), R(() => e.required, (d, u) => {
503
+ d !== u && (o.value = d);
477
504
  }), () => r.value && l("label", {
478
505
  class: "col-form-label",
479
506
  title: n.value
480
507
  }, [o.value && l("span", {
481
508
  class: "farris-label-info text-danger"
482
- }, [ce("*")]), l("span", {
509
+ }, [pe("*")]), l("span", {
483
510
  class: "farris-label-text"
484
511
  }, [r.value])]);
485
512
  }
486
- }), Nn = /* @__PURE__ */ new Map([
487
- ["appearance", ge]
513
+ }), Un = /* @__PURE__ */ new Map([
514
+ ["appearance", be]
488
515
  ]);
489
- function Ln(e, t, n) {
516
+ function qn(e, t, n) {
490
517
  return t;
491
518
  }
492
- const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", An = "input-group", Dn = "A Farris Input Component", Vn = "object", $n = {
519
+ const Wn = "https://json-schema.org/draft/2020-12/schema", Hn = "https://farris-design.gitee.io/input-group.schema.json", Qn = "input-group", _n = "A Farris Input Component", zn = "object", Zn = {
493
520
  id: {
494
521
  description: "The unique identifier for a Input Group",
495
522
  type: "string"
@@ -551,11 +578,6 @@ const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
551
578
  type: "boolean",
552
579
  default: !1
553
580
  },
554
- required: {
555
- description: "",
556
- type: "boolean",
557
- default: !1
558
- },
559
581
  tabIndex: {
560
582
  description: "",
561
583
  type: "number",
@@ -691,18 +713,24 @@ const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
691
713
  type: "string",
692
714
  default: ""
693
715
  }
694
- }, Mn = [
716
+ }, Jn = [
695
717
  "id",
696
718
  "type"
697
- ], Gn = {
698
- $schema: jn,
699
- $id: Rn,
700
- title: An,
701
- description: Dn,
702
- type: Vn,
703
- properties: $n,
704
- required: Mn
705
- }, ye = {
719
+ ], Xn = [
720
+ "id",
721
+ "appearance",
722
+ "binding",
723
+ "visible"
724
+ ], Yn = {
725
+ $schema: Wn,
726
+ $id: Hn,
727
+ title: Qn,
728
+ description: _n,
729
+ type: zn,
730
+ properties: Zn,
731
+ required: Jn,
732
+ ignore: Xn
733
+ }, Ce = {
706
734
  id: { Type: String, default: "" },
707
735
  /** 是否自动完成 */
708
736
  autocomplete: { Type: String, default: "off" },
@@ -770,281 +798,153 @@ const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
770
798
  */
771
799
  updateOn: { type: String, default: "blur" }
772
800
  };
773
- me(ye, Gn, Nn, Ln);
774
- function qn(e, t, n, o) {
775
- const r = h(e.disabled), d = h(!1), c = h("text"), C = h(e.showBorder), u = h(e.textAlign), i = h(e.updateOn), p = S(() => e.editable || !e.readonly), a = S(() => e.editable && !e.disabled && !e.readonly), f = S(() => !e.disabled && d.value), s = S(() => n.value === "" || n.value === null || n.value === void 0), m = S(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), w = S(() => e.readonly || !e.editable), k = S(() => e.enableTitle ? n.value : ""), L = S(() => ({
776
- "form-control": !0,
777
- "f-utils-fill": !0,
778
- "text-left": u.value === "left",
779
- "text-center": u.value === "center",
780
- "text-right": u.value === "right"
781
- })), A = S(() => {
782
- const P = {
783
- "f-cmp-inputgroup": !0,
784
- "input-group": !0,
785
- "f-state-disable": r.value,
786
- "f-state-editable": a.value,
787
- "f-state-readonly": w.value,
788
- "f-state-focus": f.value
789
- };
790
- return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q), P), P;
791
- }), R = S(() => C.value ? "" : "border-width : 0 ");
792
- function E(P, D = !0) {
793
- n.value = P, o.value !== P && (o.value = P), D && t.emit("change", P), t.emit("update:modelValue", P), t.emit("update:value", P);
794
- }
795
- V(
796
- () => e.modelValue,
797
- (P, D) => {
798
- P !== D && (n.value = P, o.value = P);
799
- }
800
- ), V(() => e.disabled, (P, D) => {
801
- P !== D && (r.value = P);
802
- });
803
- function I(P) {
804
- return d.value = !1, t.emit("blur", P), P.stopPropagation(), !1;
805
- }
806
- function O(P) {
807
- t.emit("click", P);
808
- }
809
- function B(P) {
810
- e.disabled || (C.value && (d.value = !0), p.value && t.emit("focus", P));
811
- }
812
- function $(P) {
813
- t.emit("input", P.target.value);
814
- const D = P.target.value;
815
- o.value = D, i.value === "change" && (t.emit("update:modelValue", D), t.emit("update:value", D));
816
- }
817
- function j(P) {
818
- t.emit("keydown", P);
819
- }
820
- function G(P) {
821
- t.emit("keyup", P);
822
- }
823
- function U(P) {
824
- P.target.tagName !== "INPUT" && P.preventDefault(), P.stopPropagation();
825
- }
826
- function _(P) {
827
- if (i.value === "blur") {
828
- const D = P.target.value;
829
- P.stopPropagation(), E(D);
830
- }
831
- }
832
- return {
833
- changeTextBoxValue: E,
834
- disabled: r,
835
- displayText: o,
836
- editable: a,
837
- hasFocused: f,
838
- inputGroupClass: A,
839
- inputType: c,
840
- isEmpty: s,
841
- modelValue: n,
842
- readonly: w,
843
- onBlur: I,
844
- onClick: O,
845
- onFocus: B,
846
- onInput: $,
847
- onKeydown: j,
848
- onKeyup: G,
849
- onMousedown: U,
850
- onTextBoxValueChange: _,
851
- placeholder: m,
852
- textBoxClass: L,
853
- textBoxTitle: k,
854
- inputGroupStyle: R
855
- };
856
- }
857
- function Wn(e, t, n) {
858
- const o = h(!1), r = S(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: c, hasFocused: C, isEmpty: u } = n;
859
- function i(w) {
860
- o.value = w;
861
- }
862
- V(c, () => {
863
- C != null && C.value ? i(!!(c != null && c.value)) : i(!1);
864
- });
865
- const p = S(() => ({
866
- "input-group-text": !0,
867
- "input-group-clear": !0
868
- })), a = S(() => ({
869
- width: "24px",
870
- display: o.value ? "flex" : "none"
871
- }));
872
- function f(w) {
873
- w.stopPropagation(), r.value && (d("", !0), i(!o.value), t.emit("clear"));
874
- }
875
- function s(w) {
876
- r.value && !u.value && i(!0);
877
- }
878
- function m(w) {
879
- r.value && i(!1);
880
- }
881
- return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton: o, onClearValue: f, onMouseEnter: s, onMouseLeave: m, shouldShowClearButton: r };
882
- }
883
- const Hn = ["moz", "ms", "webkit"];
884
- function Un() {
885
- let e = 0;
886
- return (t) => {
887
- const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), r = setTimeout(() => {
888
- t(n + o);
889
- }, o);
890
- return e = n + o, r;
891
- };
892
- }
893
- function _n() {
894
- if (typeof window > "u")
895
- return () => 0;
896
- if (window.requestAnimationFrame)
897
- return window.requestAnimationFrame.bind(window);
898
- const e = Hn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
899
- return e ? window[`${e}RequestAnimationFrame`] : Un();
900
- }
901
- _n();
902
- function zn(e, t) {
903
- const n = h(e.groupText), o = S(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = S(() => e.enableClear || !!e.groupText);
904
- return { appendedButtonClass: S(() => ({
801
+ ve(Ce, Yn, Un, qn);
802
+ function Kn(e, t) {
803
+ const n = F(e.groupText), o = N(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = N(() => e.enableClear || !!e.groupText);
804
+ return { appendedButtonClass: N(() => ({
905
805
  "input-group-append": !0,
906
806
  "append-force-show": o.value
907
807
  })), appendedContent: n, shouldShowAppendedButton: r };
908
808
  }
909
- function Qn(e, t, n, o) {
910
- const { appendedContent: r } = o, d = h(e.enableViewPassword), c = S(() => e.type === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', i = h(!1);
911
- V(() => [e.readonly, e.disabled], ([f, s]) => {
912
- c.value && (n.value = f || s ? "password" : n.value, r.value = f || s ? u : r.value);
809
+ function eo(e, t, n, o) {
810
+ const { appendedContent: r } = o, d = F(e.enableViewPassword), u = N(() => e.type === "password"), T = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', i = F(!1);
811
+ R(() => [e.readonly, e.disabled], ([v, s]) => {
812
+ u.value && (n.value = v || s ? "password" : n.value, r.value = v || s ? c : r.value);
913
813
  });
914
- function p() {
915
- return i.value = !i.value, n.value = i.value ? "text" : "password", r.value = i.value ? C : u, !1;
814
+ function g() {
815
+ return i.value = !i.value, n.value = i.value ? "text" : "password", r.value = i.value ? T : c, !1;
916
816
  }
917
817
  function a() {
918
- n.value = c.value ? "password" : "text", r.value = c.value ? d.value ? u : "" : r.value;
818
+ n.value = u.value ? "password" : "text", r.value = u.value ? d.value ? c : "" : r.value;
919
819
  }
920
- return a(), { isPassword: c, onClickAppendedButton: p };
820
+ return a(), { isPassword: u, onClickAppendedButton: g };
921
821
  }
922
- function Zn(e, t, n) {
923
- const o = h(), {
822
+ function to(e, t, n) {
823
+ const o = F(), {
924
824
  onBlurTextBox: r,
925
825
  onFocusTextBox: d,
926
- onInput: c,
927
- onKeyDown: C,
928
- textBoxValue: u
929
- } = n, i = S(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = S(() => ({
826
+ onInput: u,
827
+ onKeyDown: T,
828
+ textBoxValue: c
829
+ } = n, i = N(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), g = N(() => ({
930
830
  "form-control": !0,
931
831
  "f-utils-fill": !0
932
- })), a = S(() => ({
832
+ })), a = N(() => ({
933
833
  "text-align": e.textAlign
934
834
  }));
935
- function f(w) {
936
- w.stopPropagation();
835
+ function v(B) {
836
+ B.stopPropagation();
937
837
  }
938
838
  function s() {
939
839
  e.selectOnCreated, e.focusOnCreated;
940
840
  }
941
- async function m(w) {
942
- d(w), await ie, s();
841
+ async function b(B) {
842
+ d(B), await le, s();
943
843
  }
944
- return W(async () => {
945
- await ie, s();
844
+ return q(async () => {
845
+ await le, s();
946
846
  }), () => l("input", {
947
847
  ref: o,
948
- class: p.value,
848
+ class: g.value,
949
849
  style: a.value,
950
850
  type: "text",
951
- value: u.value,
851
+ value: c.value,
952
852
  disabled: e.disabled,
953
853
  readonly: e.readonly || !e.editable,
954
854
  placeholder: i.value,
955
855
  onBlur: r,
956
- onChange: f,
957
- onFocus: m,
958
- onInput: c,
959
- onKeydown: C
856
+ onChange: v,
857
+ onFocus: b,
858
+ onInput: u,
859
+ onKeydown: T
960
860
  }, null);
961
861
  }
962
- function Jn(e, t, n) {
862
+ function no(e, t, n) {
963
863
  const {
964
864
  canDownward: o,
965
865
  canUpward: r,
966
866
  onClickDownButton: d,
967
- onClickUpButton: c
968
- } = n, C = S(() => ({
867
+ onClickUpButton: u
868
+ } = n, T = N(() => ({
969
869
  "input-group-append": !0,
970
870
  "btn-group": !0,
971
871
  "btn-group-number": !0
972
- })), u = S(() => ({
872
+ })), c = N(() => ({
973
873
  btn: !0,
974
874
  "btn-secondary": !0,
975
875
  "btn-number-flag": !0
976
- })), i = S(() => ({
876
+ })), i = N(() => ({
977
877
  cursor: r() ? "pointer" : "not-allowed",
978
878
  "margin-left": 0
979
- })), p = S(() => ({
879
+ })), g = N(() => ({
980
880
  cursor: o() ? "pointer" : "not-allowed",
981
881
  "margin-left": 0
982
882
  }));
983
883
  return () => l("div", {
984
- class: C.value
884
+ class: T.value
985
885
  }, [l("button", {
986
886
  title: "upButton",
987
- class: u.value,
887
+ class: c.value,
988
888
  style: i.value,
989
- onClick: c,
889
+ onClick: u,
990
890
  disabled: !r()
991
891
  }, [l("span", {
992
892
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
993
893
  }, null)]), l("button", {
994
894
  title: "downButton",
995
- class: u.value,
996
- style: p.value,
895
+ class: c.value,
896
+ style: g.value,
997
897
  onClick: d,
998
898
  disabled: !o()
999
899
  }, [l("span", {
1000
900
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1001
901
  }, null)])]);
1002
902
  }
1003
- function Xn(e, t) {
1004
- const n = qe(e, t), o = We(e, t, n), r = He(e, t, o, n), d = Ue(e, t, o, n, r), c = Jn(e, t, r), {
1005
- displayValue: C,
1006
- modelValue: u,
903
+ function oo(e, t) {
904
+ const n = Je(e, t), o = Xe(e, t, n), r = Ye(e, t, o, n), d = Ke(e, t, o, n, r), u = no(e, t, r), {
905
+ displayValue: T,
906
+ modelValue: c,
1007
907
  getRealValue: i
1008
- } = n, p = Zn(e, t, d), {
908
+ } = n, g = to(e, t, d), {
1009
909
  format: a
1010
910
  } = o, {
1011
- isFocus: f
1012
- } = d, s = S(() => !e.disabled && !e.readonly);
1013
- return W(() => {
1014
- const m = i(e.modelValue);
1015
- C.value = a(m);
1016
- }), V(() => [e.value], ([m]) => {
1017
- const w = i(m);
1018
- u.value = w, C.value = a(w);
1019
- }), V(() => [e.modelValue], ([m]) => {
1020
- m !== u.value && (u.value = m, !f.value && (C.value = a(i(m))));
1021
- }), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1022
- C.value = a(u.value);
911
+ isFocus: v
912
+ } = d, s = N(() => !e.disabled && !e.readonly);
913
+ return q(() => {
914
+ const b = i(e.modelValue);
915
+ T.value = a(b);
916
+ }), R(() => [e.value], ([b]) => {
917
+ const B = i(b);
918
+ c.value = B, T.value = a(B);
919
+ }), R(() => [e.modelValue], ([b]) => {
920
+ b !== c.value && (c.value = b, !v.value && (T.value = a(i(b))));
921
+ }), R(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
922
+ T.value = a(c.value);
1023
923
  }), () => l("div", {
1024
924
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1025
- }, [p(), s.value && c()]);
925
+ }, [g(), s.value && u()]);
1026
926
  }
1027
- function Yn(e, t, n, o) {
1028
- const r = h(), d = h(e.autocomplete), c = h(e.enableTitle), {
1029
- isPassword: C
1030
- } = n, u = h(e.minLength), i = h(e.maxLength), p = h(e.tabIndex), {
927
+ function ro(e, t, n, o) {
928
+ const r = F(), d = F(e.autocomplete), u = F(e.enableTitle), {
929
+ isPassword: T
930
+ } = n, c = F(e.minLength), i = F(e.maxLength), g = F(e.tabIndex), {
1031
931
  disabled: a,
1032
- displayText: f,
932
+ displayText: v,
1033
933
  inputType: s,
1034
- onBlur: m,
1035
- onFocus: w,
1036
- onInput: k,
1037
- onClick: L,
1038
- onKeydown: A,
1039
- onKeyup: R,
1040
- onMousedown: E,
1041
- onTextBoxValueChange: I,
934
+ onBlur: b,
935
+ onFocus: B,
936
+ onInput: S,
937
+ onClick: M,
938
+ onKeydown: j,
939
+ onKeyup: L,
940
+ onMousedown: P,
941
+ onTextBoxValueChange: E,
1042
942
  readonly: O,
1043
- placeholder: B,
943
+ placeholder: k,
1044
944
  textBoxClass: $,
1045
- textBoxTitle: j
945
+ textBoxTitle: V
1046
946
  } = o;
1047
- return W(() => {
947
+ return q(() => {
1048
948
  e.selectOnCreated, e.focusOnCreated;
1049
949
  }), () => l("input", {
1050
950
  ref: r,
@@ -1053,135 +953,135 @@ function Yn(e, t, n, o) {
1053
953
  class: $.value,
1054
954
  disabled: a == null ? void 0 : a.value,
1055
955
  maxlength: i.value,
1056
- minlength: u.value,
1057
- placeholder: B.value,
956
+ minlength: c.value,
957
+ placeholder: k.value,
1058
958
  readonly: O == null ? void 0 : O.value,
1059
- tabindex: p.value,
1060
- title: c.value && !C.value ? j.value : "",
959
+ tabindex: g.value,
960
+ title: u.value && !T.value ? V.value : "",
1061
961
  type: s.value,
1062
- value: f == null ? void 0 : f.value,
1063
- onBlur: m,
1064
- onClick: L,
1065
- onChange: I,
1066
- onFocus: w,
1067
- onInput: k,
1068
- onKeydown: A,
1069
- onKeyup: R,
1070
- onMousedown: E
962
+ value: v == null ? void 0 : v.value,
963
+ onBlur: b,
964
+ onClick: M,
965
+ onChange: E,
966
+ onFocus: B,
967
+ onInput: S,
968
+ onKeydown: j,
969
+ onKeyup: L,
970
+ onMousedown: P
1071
971
  }, null);
1072
972
  }
1073
- function Kn(e, t) {
1074
- const n = S(() => e.useExtendInfo && !!e.extendInfo), o = je({
973
+ function ao(e, t) {
974
+ const n = N(() => e.useExtendInfo && !!e.extendInfo), o = Ge({
1075
975
  content: e.extendInfo
1076
976
  });
1077
977
  function r() {
1078
978
  t.emit("updateExtendInfo");
1079
979
  }
1080
- return () => n.value && Re(l("span", {
980
+ return () => n.value && Ue(l("span", {
1081
981
  class: "input-group-before-tips",
1082
982
  onMouseenter: r
1083
983
  }, [l("i", {
1084
984
  class: "f-icon f-icon-info-circle"
1085
985
  }, null), l("b", {
1086
986
  class: "tips-arrow"
1087
- }, null)]), [[Ae("tooltip"), o]]);
987
+ }, null)]), [[qe("tooltip"), o]]);
1088
988
  }
1089
- function eo(e, t, n, o, r) {
989
+ function io(e, t, n, o, r) {
1090
990
  const {
1091
991
  appendedButtonClass: d,
1092
- appendedContent: c
1093
- } = n, C = S(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = S(() => c.value && !t.slots.groupTextTemplate), i = S(() => !!t.slots.groupTextTemplate), {
1094
- clearButtonClass: p,
992
+ appendedContent: u
993
+ } = n, T = N(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), c = N(() => u.value && !t.slots.groupTextTemplate), i = N(() => !!t.slots.groupTextTemplate), {
994
+ clearButtonClass: g,
1095
995
  clearButtonStyle: a,
1096
- onClearValue: f,
996
+ onClearValue: v,
1097
997
  shouldShowClearButton: s
1098
998
  } = o;
1099
- function m() {
999
+ function b() {
1100
1000
  return l("span", {
1101
1001
  id: "clearIcon",
1102
- class: p.value,
1002
+ class: g.value,
1103
1003
  style: a.value,
1104
- onClick: (B) => f(B)
1004
+ onClick: (k) => v(k)
1105
1005
  }, [l("i", {
1106
1006
  class: "f-icon modal_close"
1107
1007
  }, null)]);
1108
1008
  }
1109
- function w(B) {
1110
- t.emit("iconMouseEnter", B);
1009
+ function B(k) {
1010
+ t.emit("iconMouseEnter", k);
1111
1011
  }
1112
- function k(B) {
1113
- t.emit("iconMouseLeave", B);
1012
+ function S(k) {
1013
+ t.emit("iconMouseLeave", k);
1114
1014
  }
1115
- function L(B) {
1116
- C.value && t.emit("clickHandle", {
1117
- originalEvent: B
1118
- }), B.stopPropagation();
1015
+ function M(k) {
1016
+ T.value && t.emit("clickHandle", {
1017
+ originalEvent: k
1018
+ }), k.stopPropagation();
1119
1019
  }
1120
- const A = e.type === "password" ? r.onClickAppendedButton : L;
1121
- function R() {
1020
+ const j = e.type === "password" ? r.onClickAppendedButton : M;
1021
+ function L() {
1122
1022
  return l("span", {
1123
1023
  class: "input-group-text",
1124
- onMouseenter: (B) => w(B),
1125
- onMouseleave: (B) => k(B),
1126
- innerHTML: c.value,
1127
- onClick: (B) => A(B)
1024
+ onMouseenter: (k) => B(k),
1025
+ onMouseleave: (k) => S(k),
1026
+ innerHTML: u.value,
1027
+ onClick: (k) => j(k)
1128
1028
  }, null);
1129
1029
  }
1130
- function E() {
1030
+ function P() {
1131
1031
  return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
1132
1032
  }
1133
- function I() {
1134
- return u.value ? R : i.value ? E : "";
1033
+ function E() {
1034
+ return c.value ? L : i.value ? P : "";
1135
1035
  }
1136
- const O = I();
1036
+ const O = E();
1137
1037
  return () => l("div", {
1138
1038
  class: d.value
1139
- }, [s.value && m(), O && O()]);
1039
+ }, [s.value && b(), O && O()]);
1140
1040
  }
1141
- const to = /* @__PURE__ */ H({
1041
+ const lo = /* @__PURE__ */ W({
1142
1042
  name: "FInputGroup",
1143
- props: ye,
1043
+ props: Ce,
1144
1044
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
1145
1045
  setup(e, t) {
1146
- const n = h(e.modelValue), o = h(e.modelValue), r = qn(e, t, n, o), {
1046
+ const n = F(e.modelValue), o = F(e.modelValue), r = _e(e, t, n, o), {
1147
1047
  inputGroupClass: d,
1148
- inputType: c,
1149
- inputGroupStyle: C
1150
- } = r, u = zn(e), {
1048
+ inputType: u,
1049
+ inputGroupStyle: T
1050
+ } = r, c = Kn(e), {
1151
1051
  shouldShowAppendedButton: i
1152
- } = u, p = Wn(e, t, r), {
1052
+ } = c, g = ze(e, t, r), {
1153
1053
  onMouseEnter: a,
1154
- onMouseLeave: f
1155
- } = p, s = Qn(e, t, c, u), m = Xn(e, t), w = Yn(e, t, s, r), k = eo(e, t, u, p, s), L = Kn(e, t), A = S(() => e.type === "number");
1156
- V(() => [e.value], ([E]) => {
1157
- n.value = E, o.value = E;
1158
- }), V(() => [e.modelValue], ([E]) => {
1159
- n.value = E, o.value = E;
1160
- }), W(() => {
1054
+ onMouseLeave: v
1055
+ } = g, s = eo(e, t, u, c), b = oo(e, t), B = ro(e, t, s, r), S = io(e, t, c, g, s), M = ao(e, t), j = N(() => e.type === "number");
1056
+ R(() => [e.value], ([P]) => {
1057
+ n.value = P, o.value = P;
1058
+ }), R(() => [e.modelValue], ([P]) => {
1059
+ n.value = P, o.value = P;
1060
+ }), q(() => {
1161
1061
  e.value && (n.value = e.value, o.value = e.value);
1162
1062
  });
1163
- const R = () => l(Z, null, [l("div", {
1063
+ const L = () => l(z, null, [l("div", {
1164
1064
  id: e.id,
1165
1065
  class: d.value,
1166
- style: C.value,
1066
+ style: T.value,
1167
1067
  onMouseenter: a,
1168
- onMouseleave: f
1169
- }, [A.value ? m() : l(Z, null, [L(), w(), i.value && k()])])]);
1170
- return () => R();
1068
+ onMouseleave: v
1069
+ }, [j.value ? b() : l(z, null, [M(), B(), i.value && S()])])]);
1070
+ return () => L();
1171
1071
  }
1172
- }), g = {}, v = {}, y = {}, b = {};
1173
- let se = !1;
1174
- function no() {
1175
- se || (se = !0, ze.register(g, v, y, b), _e.register(g, v, y, b), Qe.register(g, v, y, b), Ze.register(g, v, y, b), Je.register(g, v, y, b), Xe.register(g, v, y, b), Ye.register(g, v, y, b), Ke.register(g, v, y, b), et.register(g, v, y, b), tt.register(g, v, y, b), ot.register(g, v, y, b), nt.register(g, v, y, b), rt.register(g, v, y, b), at.register(g, v, y, b), it.register(g, v, y, b), lt.register(g, v, y, b), st.register(g, v, y, b), ut.register(g, v, y, b), ct.register(g, v, y, b), dt.register(g, v, y, b), pt.register(g, v, y, b), ft.register(g, v, y, b), gt.register(g, v, y, b), mt.register(g, v, y, b), vt.register(g, v, y, b), yt.register(g, v, y, b), bt.register(g, v, y, b), ht.register(g, v, y, b), Ge.register(g, v, y, b), Ct.register(g, v, y, b), Ft.register(g, v, y, b), xt.register(g, v, y, b), Tt.register(g, v, y, b), wt.register(g, v, y, b), Bt.register(g, v, y, b), Pt.register(g, v, y, b), St.register(g, v, y, b), Et.register(g, v, y, b), It.register(g, v, y, b), kt.register(g, v, y, b), Qt.register(g, v, y), Ot.register(g, v, y, b), Nt.register(g, v, y, b), Lt.register(g, v, y, b), jt.register(g, v, y, b), Rt.register(g, v, y, b), At.register(g, v, y, b), Dt.register(g, v, y, b), Vt.register(g, v, y, b), $t.register(g, v, y, b), Mt.register(g, v, y, b), Gt.register(g, v, y, b), qt.register(g, v, y, b), Ht.register(g, v, y, b), Wt.register(g, v, y, b), Ut.register(g, v, y, b), _t.register(g, v, y, b), zt.register(g, v, y, b), Zt.register(g, v, y, b));
1072
+ }), p = {}, f = {}, m = {}, y = {};
1073
+ let ue = !1;
1074
+ function so() {
1075
+ ue || (ue = !0, tt.register(p, f, m, y), et.register(p, f, m, y), nt.register(p, f, m, y), ot.register(p, f, m, y), rt.register(p, f, m, y), at.register(p, f, m, y), it.register(p, f, m, y), lt.register(p, f, m, y), st.register(p, f, m, y), ut.register(p, f, m, y), dt.register(p, f, m, y), ct.register(p, f, m, y), pt.register(p, f, m, y), ft.register(p, f, m, y), mt.register(p, f, m, y), gt.register(p, f, m, y), yt.register(p, f, m, y), vt.register(p, f, m, y), bt.register(p, f, m, y), Ct.register(p, f, m, y), Ft.register(p, f, m, y), xt.register(p, f, m, y), wt.register(p, f, m, y), Tt.register(p, f, m, y), kt.register(p, f, m, y), Bt.register(p, f, m, y), St.register(p, f, m, y), Pt.register(p, f, m, y), Ze.register(p, f, m, y), Et.register(p, f, m, y), It.register(p, f, m, y), Ot.register(p, f, m, y), Nt.register(p, f, m, y), Mt.register(p, f, m, y), Vt.register(p, f, m, y), jt.register(p, f, m, y), Lt.register(p, f, m, y), Rt.register(p, f, m, y), $t.register(p, f, m, y), Dt.register(p, f, m, y), on.register(p, f, m), At.register(p, f, m, y), Gt.register(p, f, m, y), Ut.register(p, f, m, y), qt.register(p, f, m, y), Wt.register(p, f, m, y), Ht.register(p, f, m, y), Qt.register(p, f, m, y), _t.register(p, f, m, y), zt.register(p, f, m, y), Zt.register(p, f, m, y), Jt.register(p, f, m, y), Xt.register(p, f, m, y), Kt.register(p, f, m, y), Yt.register(p, f, m, y), en.register(p, f, m, y), tn.register(p, f, m, y), nn.register(p, f, m, y), rn.register(p, f, m, y), ht.register(p, f, m, y), an.register(p, f, m, y));
1176
1076
  }
1177
- function oo() {
1178
- no();
1179
- function e(r, d) {
1180
- const c = v[r];
1181
- return c ? c(d) : {};
1077
+ function uo() {
1078
+ so();
1079
+ function e(r) {
1080
+ return p[r] || lo;
1182
1081
  }
1183
- function t(r) {
1184
- return g[r] || to;
1082
+ function t(r, d) {
1083
+ const u = f[r];
1084
+ return u ? u(d) : {};
1185
1085
  }
1186
1086
  function n(r) {
1187
1087
  switch (r) {
@@ -1230,9 +1130,12 @@ function oo() {
1230
1130
  return "onSavedCommandListChanged";
1231
1131
  case "grid-field-editor":
1232
1132
  return "onChange";
1133
+ case "item-collection-editor":
1134
+ return "onChange";
1233
1135
  case "response-form-layout-setting":
1234
1136
  return "onChange";
1235
1137
  case "field-selector":
1138
+ case "binding-selector":
1236
1139
  return "onFieldSelected";
1237
1140
  case "schema-selector":
1238
1141
  return "onSchemaSelected";
@@ -1240,6 +1143,8 @@ function oo() {
1240
1143
  return "onMappingFieldsChanged";
1241
1144
  case "textarea":
1242
1145
  return "onValueChange";
1146
+ case "query-solution-config":
1147
+ return "onFieldsChanged";
1243
1148
  }
1244
1149
  }
1245
1150
  function o(r) {
@@ -1250,109 +1155,110 @@ function oo() {
1250
1155
  return "onClear";
1251
1156
  }
1252
1157
  }
1253
- return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
1158
+ return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
1254
1159
  }
1255
- const ro = /* @__PURE__ */ H({
1160
+ const co = /* @__PURE__ */ W({
1256
1161
  name: "FDynamicFormGroup",
1257
- props: ve,
1162
+ props: he,
1258
1163
  emits: ["change", "update:modelValue"],
1259
1164
  setup(e, t) {
1260
- const n = h(e.id), o = h(e.customClass), r = h(e.editor), d = h(e.label), c = h(e.modelValue), C = h(e.readonly), u = h(e.required), i = h(e.showLabel), p = h(e.visible);
1261
- h(e.type);
1262
- const a = h(), {
1263
- resolveEditorProps: f,
1165
+ const n = F(e.id), o = F(e.customClass), r = F(e.editor), d = F(e.label), u = F(e.modelValue), T = F(e.readonly), c = F(e.required), i = F(e.showLabel), g = F(e.visible);
1166
+ F(e.type);
1167
+ const a = F(), {
1168
+ resolveEditorProps: v,
1264
1169
  resolveEditorType: s,
1265
- getChangeFunctionName: m,
1266
- getClearFunctionName: w
1267
- } = oo(), k = S(() => ({
1170
+ getChangeFunctionName: b,
1171
+ getClearFunctionName: B
1172
+ } = uo(), S = N(() => ({
1268
1173
  "form-group": !0,
1269
1174
  "farris-form-group": !0,
1270
1175
  "common-group": !0,
1271
- "q-state-readonly": C.value
1176
+ "q-state-readonly": T.value
1272
1177
  }));
1273
- function L(E, I) {
1274
- c.value = I !== void 0 ? I : E, t.emit("update:modelValue", c.value), t.emit("change", c.value);
1178
+ function M(P, E) {
1179
+ u.value = E !== void 0 ? E : P, t.emit("update:modelValue", u.value), t.emit("change", u.value);
1275
1180
  }
1276
- function A() {
1181
+ function j() {
1277
1182
  t.emit("update:modelValue", "");
1278
1183
  }
1279
- const R = S(() => {
1280
- const E = r.value.type || "input-group", I = s(E), O = f(E, r.value), B = m(E), $ = w(r.value.type);
1281
- return O[B] = L, O[$] = A, (O.id == null || O.id === "") && (O.id = n.value), () => l(I, De({
1184
+ const L = N(() => {
1185
+ const P = r.value.type || "input-group", E = s(P), O = v(P, r.value), k = b(P), $ = B(r.value.type);
1186
+ return $ && (O[$] = j), O[k] = M, (O.id == null || O.id === "") && (O.id = n.value), () => l(E, We({
1282
1187
  ref: a
1283
1188
  }, O, {
1284
- modelValue: c.value,
1285
- "onUpdate:modelValue": (j) => c.value = j
1286
- }), null);
1189
+ modelValue: u.value,
1190
+ "onUpdate:modelValue": (V) => u.value = V
1191
+ }), t.slots);
1287
1192
  });
1288
- return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([E, I, O, B, $, j, G, U, _]) => {
1289
- n.value = E, o.value = I, r.value = O, d.value = B, c.value = $, C.value = j, u.value = G, i.value = U, p.value = _;
1193
+ return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([P, E, O, k, $, V, G, Z, J]) => {
1194
+ n.value = P, o.value = E, r.value = O, d.value = k, u.value = $, T.value = V, c.value = G, i.value = Z, g.value = J;
1290
1195
  }), t.expose({
1291
1196
  editorRef: a
1292
- }), () => p.value && l("div", {
1197
+ }), () => g.value && l("div", {
1293
1198
  id: `${n.value}-input-group`,
1294
- class: o.value
1199
+ class: o.value,
1200
+ style: e.customStyle
1295
1201
  }, [l("div", {
1296
1202
  class: "farris-group-wrap"
1297
1203
  }, [l("div", {
1298
- class: k.value
1299
- }, [i.value && l(On, {
1204
+ class: S.value
1205
+ }, [i.value && l(Gn, {
1300
1206
  id: `${n.value}-lable`,
1301
- required: u.value,
1207
+ required: c.value,
1302
1208
  text: d.value,
1303
1209
  title: d.value
1304
1210
  }, null), l("div", {
1305
1211
  class: "farris-input-wrap"
1306
- }, [R.value()])])])]);
1212
+ }, [L.value()])])])]);
1307
1213
  }
1308
- }), ao = /* @__PURE__ */ H({
1214
+ }), po = /* @__PURE__ */ W({
1309
1215
  name: "FPropertyPanelItem",
1310
- props: Cn,
1216
+ props: In,
1311
1217
  emits: ["propertyChange", "triggerRefreshPanel"],
1312
1218
  setup(e, t) {
1313
- var u;
1314
- const n = h((u = e.category) == null ? void 0 : u.categoryId), o = h(e.elementConfig.propertyID), r = h(e.elementConfig.propertyName);
1315
- h(e.elementConfig.editor);
1316
- const d = h(e.elementConfig.propertyValue), c = S(() => {
1219
+ var c;
1220
+ const n = F((c = e.category) == null ? void 0 : c.categoryId), o = F(e.elementConfig.propertyID), r = F(e.elementConfig.propertyName);
1221
+ F(e.elementConfig.editor);
1222
+ const d = F(e.elementConfig.propertyValue), u = N(() => {
1317
1223
  const i = e.elementConfig.visible;
1318
1224
  return {
1319
1225
  "farris-group-wrap": !0,
1320
1226
  "property-item": !0,
1321
- "d-none": !(typeof i == "boolean" ? i : i == null ? !0 : i())
1227
+ "d-none": !(typeof i == "boolean" ? i : i === void 0 ? !0 : i())
1322
1228
  };
1323
1229
  });
1324
- V(() => {
1230
+ R(() => {
1325
1231
  var i;
1326
1232
  return (i = e.elementConfig) == null ? void 0 : i.propertyValue;
1327
1233
  }, (i) => {
1328
1234
  d.value = i;
1329
1235
  });
1330
- function C(i) {
1236
+ function T(i) {
1331
1237
  e.elementConfig.propertyValue = i;
1332
- const p = {
1238
+ const g = {
1333
1239
  propertyID: e.elementConfig.propertyID,
1334
1240
  propertyValue: i
1335
1241
  };
1336
- t.emit("propertyChange", p), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
1242
+ t.emit("propertyChange", g), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
1337
1243
  }
1338
1244
  return () => l("div", {
1339
- class: c.value
1340
- }, [l(ro, {
1245
+ class: u.value
1246
+ }, [l(co, {
1341
1247
  id: o.value,
1342
1248
  customClass: `${n.value}-${o.value}`,
1343
1249
  label: r.value,
1344
1250
  editor: e.elementConfig.editor,
1345
1251
  modelValue: d.value,
1346
- onChange: C,
1252
+ onChange: T,
1347
1253
  editorParams: e.elementConfig.editorParams
1348
1254
  }, null)]);
1349
1255
  }
1350
- }), io = /* @__PURE__ */ H({
1256
+ }), fo = /* @__PURE__ */ W({
1351
1257
  name: "FPropertyPanelItemList",
1352
- props: hn,
1258
+ props: En,
1353
1259
  emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
1354
1260
  setup(e, t) {
1355
- const n = h(e.category);
1261
+ const n = F(e.category);
1356
1262
  function o(s) {
1357
1263
  if (!s.hideCascadeTitle)
1358
1264
  return l("div", {
@@ -1365,8 +1271,8 @@ const ro = /* @__PURE__ */ H({
1365
1271
  readonly: !0
1366
1272
  }, null)]);
1367
1273
  }
1368
- function r(s, m) {
1369
- m.isExpand = !m.isExpand;
1274
+ function r(s, b) {
1275
+ b.isExpand = !b.isExpand;
1370
1276
  }
1371
1277
  function d(s) {
1372
1278
  return l("div", {
@@ -1376,10 +1282,10 @@ const ro = /* @__PURE__ */ H({
1376
1282
  class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
1377
1283
  "f-state-expand": s.isExpand
1378
1284
  }],
1379
- onClick: (m) => r(m, s)
1285
+ onClick: (b) => r(b, s)
1380
1286
  }, [l("span", null, null)])]);
1381
1287
  }
1382
- function c(s) {
1288
+ function u(s) {
1383
1289
  return l("div", {
1384
1290
  class: "f-section-formgroup-legend"
1385
1291
  }, [l("div", {
@@ -1396,10 +1302,10 @@ const ro = /* @__PURE__ */ H({
1396
1302
  class: "farris-label-text"
1397
1303
  }, [s.propertyName])])])]);
1398
1304
  }
1399
- function C(s) {
1305
+ function T(s) {
1400
1306
  return `${e.categoryKey}_${s.propertyID}`;
1401
1307
  }
1402
- function u(s) {
1308
+ function c(s) {
1403
1309
  s.categoryId = n.value.categoryId, n.value.enableCascade && (s.propertyPath = n.value.parentPropertyID), n.value.setPropertyRelates && n.value.setPropertyRelates(s, e.propertyData), t.emit("valueChanged", {
1404
1310
  changeObject: s
1405
1311
  });
@@ -1407,19 +1313,19 @@ const ro = /* @__PURE__ */ H({
1407
1313
  function i() {
1408
1314
  t.emit("triggerRefreshPanel");
1409
1315
  }
1410
- function p(s) {
1316
+ function g(s) {
1411
1317
  return l("div", {
1412
1318
  class: "px-2 mb-2"
1413
- }, [l(ao, {
1414
- key: C(s),
1319
+ }, [l(po, {
1320
+ key: T(s),
1415
1321
  elementConfig: s,
1416
1322
  category: n.value,
1417
- onPropertyChange: u,
1323
+ onPropertyChange: c,
1418
1324
  onTriggerRefreshPanel: i
1419
1325
  }, null)]);
1420
1326
  }
1421
1327
  function a(s) {
1422
- var m;
1328
+ var b;
1423
1329
  return l("div", {
1424
1330
  class: "propertyCascadeItem farris-panel px-2 mb-2"
1425
1331
  }, [l("div", {
@@ -1428,163 +1334,163 @@ const ro = /* @__PURE__ */ H({
1428
1334
  }]
1429
1335
  }, [l("div", {
1430
1336
  class: "card-header",
1431
- onClick: (w) => r(w, s)
1337
+ onClick: (B) => r(B, s)
1432
1338
  }, [l("div", {
1433
1339
  class: "panel-item-title"
1434
1340
  }, [l("div", {
1435
1341
  class: "form-group farris-form-group line-item"
1436
- }, [c(s), o(s), d(s)])])]), l("div", {
1342
+ }, [u(s), o(s), d(s)])])]), l("div", {
1437
1343
  class: ["card-body", {
1438
1344
  hidden: !s.isExpand
1439
1345
  }]
1440
- }, [(m = s.cascadeConfig) == null ? void 0 : m.map((w) => p(w))])])]);
1346
+ }, [(b = s.cascadeConfig) == null ? void 0 : b.map((B) => g(B))])])]);
1441
1347
  }
1442
- V(() => e.category, () => {
1348
+ R(() => e.category, () => {
1443
1349
  n.value = e.category;
1444
1350
  });
1445
- function f(s) {
1446
- return s.propertyType === "cascade" ? a : p;
1351
+ function v(s) {
1352
+ return s.propertyType === "cascade" ? a : g;
1447
1353
  }
1448
- return () => l(Z, null, [n.value.properties.map((s) => f(s)(s))]);
1354
+ return () => l(z, null, [n.value.properties.map((s) => v(s)(s))]);
1449
1355
  }
1450
- }), ue = /* @__PURE__ */ H({
1356
+ }), ce = /* @__PURE__ */ W({
1451
1357
  name: "FPropertyPanel",
1452
- props: Jt,
1358
+ props: ln,
1453
1359
  emits: ["propertyChanged"],
1454
1360
  setup(e, t) {
1455
- const n = h(e.width), o = h(e.isWidePanel), r = h(e.enableSearch), d = h(e.mode), c = h(e.isPersitOpenState), C = h(e.isShowPanel), u = h(), i = h(), p = h(e.showCloseBtn), a = h(e.selectedTabId), f = h(!0), s = h(e.isWhiteTheme);
1456
- let m = [], w = [];
1457
- const k = h(""), L = h(), A = h(), R = Ve("SchemaService");
1458
- let E = [], I = null, O = "";
1459
- const B = h(), $ = h(0);
1460
- function j() {
1461
- w = [], B.value && B.value.categoryList && Array.isArray(B.value.categoryList) && B.value.categoryList.length > 0 && B.value.categoryList.forEach((x) => {
1462
- if (x.properties.forEach((F) => F.categoryId = x.categoryId), x.properties && Array.isArray(x.properties) && x.properties.length > 0) {
1463
- const F = x.properties.map((N) => (N.category = x, N));
1464
- w = w.concat(F);
1361
+ const n = F(e.width), o = F(e.isWidePanel), r = F(e.enableSearch), d = F(e.mode), u = F(e.isPersitOpenState), T = F(e.isShowPanel), c = F(), i = F(), g = F(e.showCloseBtn), a = F(e.selectedTabId), v = F(!0), s = F(e.isWhiteTheme);
1362
+ let b = [], B = [];
1363
+ const S = F(""), M = F(), j = F(), L = He("SchemaService");
1364
+ let P = [], E = null, O = "";
1365
+ const k = F(), $ = F(0);
1366
+ function V() {
1367
+ B = [], k.value && k.value.categoryList && Array.isArray(k.value.categoryList) && k.value.categoryList.length > 0 && k.value.categoryList.forEach((C) => {
1368
+ if (C.properties.forEach((h) => h.categoryId = C.categoryId), C.properties && Array.isArray(C.properties) && C.properties.length > 0) {
1369
+ const h = C.properties.map((I) => (I.category = C, I));
1370
+ B = B.concat(h);
1465
1371
  }
1466
1372
  });
1467
1373
  }
1468
- function G(T) {
1469
- let x = T.offsetTop, F = T.offsetParent;
1470
- for (; F !== null; )
1471
- x += F.offsetTop, F = F.offsetParent;
1472
- return x;
1374
+ function G(x) {
1375
+ let C = x.offsetTop, h = x.offsetParent;
1376
+ for (; h !== null; )
1377
+ C += h.offsetTop, h = h.offsetParent;
1378
+ return C;
1473
1379
  }
1474
- function U(T, x) {
1475
- T && x && Object.keys(x).length > 0 && Object.keys(x).forEach((F) => {
1476
- var M;
1477
- const N = x[F];
1478
- (M = T.style) == null || M.setProperty(F, N);
1380
+ function Z(x, C) {
1381
+ x && C && Object.keys(C).length > 0 && Object.keys(C).forEach((h) => {
1382
+ var A;
1383
+ const I = C[h];
1384
+ (A = x.style) == null || A.setProperty(h, I);
1479
1385
  });
1480
1386
  }
1481
- function _() {
1482
- return w.filter((x) => x.visible ? !!(x.propertyID && x.propertyID.startsWith(k.value) || x.propertyName && (x.propertyName.startsWith(k.value) || x.propertyName.includes(k.value))) : !1);
1387
+ function J() {
1388
+ return B.filter((C) => C.visible ? !!(C.propertyID && C.propertyID.startsWith(S.value) || C.propertyName && (C.propertyName.startsWith(S.value) || C.propertyName.includes(S.value))) : !1);
1483
1389
  }
1484
- function P(T, x, F) {
1485
- if (T === 0) {
1486
- const N = G(x), Y = G(F) - N - 5;
1487
- x == null || x.scroll({
1390
+ function Fe(x, C, h) {
1391
+ if (x === 0) {
1392
+ const I = G(C), Y = G(h) - I - 5;
1393
+ C == null || C.scroll({
1488
1394
  top: Y,
1489
1395
  behavior: "smooth"
1490
1396
  });
1491
1397
  }
1492
1398
  }
1493
- function D(T) {
1494
- E && E.length > 0 && (E.forEach((F) => {
1495
- F.style.cssText = "";
1496
- }), E = []), k.value = T || k.value;
1497
- const x = document.querySelector(".panel-body");
1498
- if (!k.value)
1499
- L.value && x && (x.scrollTop = 0);
1500
- else if (j(), w && w.length > 0) {
1501
- const F = _();
1502
- F && F.length > 0 && (F[0].category.status === "closed" && (F[0].category.status = "open"), setTimeout(() => {
1503
- F.forEach((N, M) => {
1504
- const Y = N.propertyType === "cascade" ? `.${N.categoryId}-${N.propertyID} div.col-form-label` : `.property-item .${N.categoryId}-${N.propertyID} label.col-form-label`, Q = document.querySelector(Y);
1505
- Q && (P(M, x, Q), U(Q, {
1399
+ function ae(x) {
1400
+ P && P.length > 0 && (P.forEach((h) => {
1401
+ h.style.cssText = "";
1402
+ }), P = []), S.value = x || S.value;
1403
+ const C = document.querySelector(".panel-body");
1404
+ if (!S.value)
1405
+ M.value && C && (C.scrollTop = 0);
1406
+ else if (V(), B && B.length > 0) {
1407
+ const h = J();
1408
+ h && h.length > 0 && (h[0].category.status === "closed" && (h[0].category.status = "open"), setTimeout(() => {
1409
+ h.forEach((I, A) => {
1410
+ const Y = I.propertyType === "cascade" ? `.${I.categoryId}-${I.propertyID} div.col-form-label` : `.property-item .${I.categoryId}-${I.propertyID} label.col-form-label`, _ = document.querySelector(Y);
1411
+ _ && (Fe(A, C, _), Z(_, {
1506
1412
  color: "#5B89FE"
1507
- }), E.push(Q));
1413
+ }), P.push(_));
1508
1414
  });
1509
1415
  }, 50));
1510
1416
  }
1511
1417
  }
1512
- function q(T) {
1513
- D(T);
1418
+ function H(x) {
1419
+ ae(x);
1514
1420
  }
1515
- function J(T) {
1421
+ function xe(x) {
1516
1422
  const {
1517
- value: x
1518
- } = T.target;
1519
- T.key === "Enter" && q(x);
1423
+ value: C
1424
+ } = x.target;
1425
+ x.key === "Enter" && H(C);
1520
1426
  }
1521
- function be(T) {
1427
+ function Te(x) {
1522
1428
  const {
1523
- value: x
1524
- } = T.target;
1525
- q(x);
1429
+ value: C
1430
+ } = x.target;
1431
+ H(C);
1526
1432
  }
1527
- function he() {
1528
- c.value || (f.value = !1), t.emit("closePropertyPanel");
1433
+ function we() {
1434
+ u.value || (v.value = !1), t.emit("closePropertyPanel");
1529
1435
  }
1530
- function X(T) {
1531
- k.value = "", D();
1436
+ function X(x) {
1437
+ S.value = "", ae();
1532
1438
  }
1533
- function Ce(T) {
1534
- !T.status || T.status === "open" ? T.status = "closed" : T.status = "open";
1439
+ function ke(x) {
1440
+ !x.status || x.status === "open" ? x.status = "closed" : x.status = "open";
1535
1441
  }
1536
- function z() {
1537
- var T, x;
1538
- if (m = [], !u.value || u.value.length === 0) {
1539
- m = [{
1442
+ function Q() {
1443
+ var x, C;
1444
+ if (b = [], !c.value || c.value.length === 0) {
1445
+ b = [{
1540
1446
  tabId: "default",
1541
1447
  tabName: "属性",
1542
1448
  categoryList: []
1543
- }], B.value = null;
1449
+ }], k.value = null;
1544
1450
  return;
1545
1451
  }
1546
- if ((T = u == null ? void 0 : u.value) == null || T.forEach((F) => {
1547
- if (F.tabId) {
1548
- const N = m.find((M) => M.tabId === F.tabId);
1549
- N ? (N.categoryList.push(F), N.hide && (N.hide = F.hide || F.properties.length === 0)) : m.push({
1550
- tabId: F.tabId,
1551
- tabName: F.tabName,
1552
- categoryList: [F],
1553
- hide: F.hide || F.properties.length === 0
1452
+ if ((x = c == null ? void 0 : c.value) == null || x.forEach((h) => {
1453
+ if (h.tabId) {
1454
+ const I = b.find((A) => A.tabId === h.tabId);
1455
+ I ? (I.categoryList.push(h), I.hide && (I.hide = h.hide || h.properties.length === 0)) : b.push({
1456
+ tabId: h.tabId,
1457
+ tabName: h.tabName,
1458
+ categoryList: [h],
1459
+ hide: h.hide || h.properties.length === 0
1554
1460
  });
1555
1461
  } else {
1556
- const N = m.find((M) => M.tabId === "default");
1557
- N ? N.categoryList.push(F) : m.push({
1462
+ const I = b.find((A) => A.tabId === "default");
1463
+ I ? I.categoryList.push(h) : b.push({
1558
1464
  tabId: "default",
1559
1465
  tabName: "属性",
1560
- categoryList: [F]
1466
+ categoryList: [h]
1561
1467
  });
1562
1468
  }
1563
1469
  }), a.value) {
1564
- let F = m == null ? void 0 : m.find((N) => N.tabId === a.value && !N.hide);
1565
- B.value = F || m[0];
1470
+ const h = b == null ? void 0 : b.find((I) => I.tabId === a.value && !I.hide);
1471
+ k.value = h || b[0];
1566
1472
  } else
1567
- B.value = m[0];
1568
- a.value = (x = B.value) == null ? void 0 : x.tabId;
1473
+ k.value = b[0];
1474
+ a.value = (C = k.value) == null ? void 0 : C.tabId;
1569
1475
  }
1570
- V(() => [e.schema, e.isShowPanel], () => {
1571
- i.value = e.schema, !e.schema || !e.schema.type ? u.value = [] : u.value = K(i.value, R, I, O), z(), X(k.value), $.value++;
1572
- }), W(() => {
1573
- z();
1476
+ R(() => [e.schema, e.isShowPanel], () => {
1477
+ i.value = e.schema, !e.schema || !e.schema.type ? c.value = [] : c.value = K(i.value, L, E, O), Q(), X(S.value), $.value++;
1478
+ }), q(() => {
1479
+ Q();
1574
1480
  });
1575
- function Fe(T, x) {
1576
- (!i.value || x) && (i.value = x || e.schema), u.value = K(i.value, R, I, O, T), z(), X(k.value);
1481
+ function Be(x, C) {
1482
+ (!i.value || C) && (i.value = C || e.schema), c.value = K(i.value, L, E, O, x), Q(), X(S.value);
1577
1483
  }
1578
- function xe(T, x) {
1579
- I = T, O = x;
1484
+ function Se(x, C) {
1485
+ E = x, O = C;
1580
1486
  }
1581
- function ae() {
1487
+ function ie() {
1582
1488
  d.value = d.value === "panel" ? "sidebar" : "panel", d.value === "panel" ? (setTimeout(() => {
1583
- q();
1489
+ H();
1584
1490
  }, 100), n.value = "300px") : n.value = "41px";
1585
1491
  }
1586
- function Te() {
1587
- if (p.value)
1492
+ function Pe() {
1493
+ if (g.value)
1588
1494
  return l("div", {
1589
1495
  class: "title-actions"
1590
1496
  }, [l("div", {
@@ -1596,17 +1502,17 @@ const ro = /* @__PURE__ */ H({
1596
1502
  role: "toolbar"
1597
1503
  }, [l("li", {
1598
1504
  class: "action-item",
1599
- onClick: he
1505
+ onClick: we
1600
1506
  }, [l("span", {
1601
1507
  class: "f-icon f-icon-close"
1602
1508
  }, null)])])])])]);
1603
1509
  }
1604
- function we() {
1605
- u.value = K(i.value, R, I, O), z();
1510
+ function Ee() {
1511
+ c.value = K(i.value, L, E, O), Q();
1606
1512
  }
1607
- function Be() {
1608
- var T;
1609
- if (r.value && ((T = B.value) == null ? void 0 : T.tabId) !== "commands")
1513
+ function Ie() {
1514
+ var x;
1515
+ if (r.value && ((x = k.value) == null ? void 0 : x.tabId) !== "commands")
1610
1516
  return l("div", {
1611
1517
  class: "search"
1612
1518
  }, [l("div", {
@@ -1616,80 +1522,80 @@ const ro = /* @__PURE__ */ H({
1616
1522
  type: "text",
1617
1523
  placeholder: "输入属性名称或编号快速定位",
1618
1524
  autocomplete: "off",
1619
- onKeyup: (x) => J(x),
1620
- value: k.value
1525
+ onKeyup: (C) => xe(C),
1526
+ value: S.value
1621
1527
  }, null), l("div", {
1622
1528
  class: "input-group-append",
1623
1529
  style: "margin-left: 0px;"
1624
1530
  }, [l("span", {
1625
1531
  class: "input-group-text input-group-clear",
1626
1532
  style: [{
1627
- display: k.value && k.value.length > 0 ? "" : "none"
1533
+ display: S.value && S.value.length > 0 ? "" : "none"
1628
1534
  }],
1629
- onClick: (x) => X()
1535
+ onClick: (C) => X()
1630
1536
  }, [l("i", {
1631
1537
  class: "f-icon modal_close"
1632
1538
  }, null)]), l("span", {
1633
1539
  class: "input-group-text input-group-clear",
1634
- onClick: (x) => be(x)
1540
+ onClick: (C) => Te(C)
1635
1541
  }, [l("i", {
1636
1542
  class: "f-icon f-icon-search"
1637
1543
  }, null)])])])]);
1638
1544
  }
1639
- function Pe(T) {
1640
- return `${e.propertyName}_${T.categoryId}`;
1545
+ function Oe(x) {
1546
+ return `${e.propertyName}_${x.categoryId}`;
1641
1547
  }
1642
- function Se(T) {
1643
- t.emit("propertyChanged", T);
1548
+ function Ne(x) {
1549
+ t.emit("propertyChanged", x);
1644
1550
  }
1645
- function ke() {
1646
- var T, x;
1647
- if (B.value)
1551
+ function Me() {
1552
+ var x, C;
1553
+ if (k.value)
1648
1554
  return l("div", {
1649
1555
  class: "panel-body",
1650
- ref: A
1556
+ ref: j
1651
1557
  }, [l("ul", {
1652
1558
  class: ["property-grid", {
1653
1559
  "wide-panel": o.value
1654
1560
  }]
1655
- }, [(x = (T = B.value) == null ? void 0 : T.categoryList) == null ? void 0 : x.map((F) => l("li", {
1656
- key: Pe(F),
1657
- "data-category-id": F == null ? void 0 : F.categoryId
1658
- }, [!F.hide && !F.hideTitle && l("span", {
1561
+ }, [(C = (x = k.value) == null ? void 0 : x.categoryList) == null ? void 0 : C.map((h) => l("li", {
1562
+ key: Oe(h),
1563
+ "data-category-id": h == null ? void 0 : h.categoryId
1564
+ }, [!h.hide && !h.hideTitle && l("span", {
1659
1565
  class: "group-label",
1660
- onClick: () => Ce(F)
1566
+ onClick: () => ke(h)
1661
1567
  }, [l("span", {
1662
1568
  class: ["f-icon mr-2", {
1663
- "f-legend-show": F.status === "closed"
1569
+ "f-legend-show": h.status === "closed"
1664
1570
  }, {
1665
- "f-legend-collapse": F.status === "open" || F.status === void 0
1571
+ "f-legend-collapse": h.status === "open" || h.status === void 0
1666
1572
  }]
1667
- }, null), F.categoryName]), l("div", {
1668
- hidden: F.status === "closed"
1669
- }, [l(io, {
1670
- key: `${F == null ? void 0 : F.categoryId}-${$.value}`,
1671
- category: F,
1573
+ }, null), h.categoryName]), l("div", {
1574
+ hidden: h.status === "closed"
1575
+ }, [l(fo, {
1576
+ key: `${h == null ? void 0 : h.categoryId}-${$.value}`,
1577
+ category: h,
1672
1578
  propertyData: i.value,
1673
- onTriggerRefreshPanel: we,
1674
- onValueChanged: Se
1579
+ onTriggerRefreshPanel: Ee,
1580
+ onValueChanged: Ne
1675
1581
  }, null)])]))])]);
1676
1582
  }
1677
- function Ee() {
1583
+ function Ve() {
1678
1584
  if (d.value === "sidebar")
1679
1585
  return l("div", {
1680
1586
  class: "side-panel h-100",
1681
- onClick: ae
1587
+ onClick: ie
1682
1588
  }, [l("i", {
1683
1589
  class: "f-icon f-icon-engineering w-100 icon"
1684
- }, null), l("span", null, [ce("属性")])]);
1590
+ }, null), l("span", null, [pe("属性")])]);
1685
1591
  }
1686
- function Ie() {
1592
+ function je() {
1687
1593
  return {
1688
- display: f.value ? "block" : "none",
1594
+ display: v.value ? "block" : "none",
1689
1595
  width: n.value
1690
1596
  };
1691
1597
  }
1692
- function Oe() {
1598
+ function Le() {
1693
1599
  return l("div", {
1694
1600
  class: "switcher"
1695
1601
  }, [l("i", {
@@ -1697,58 +1603,227 @@ const ro = /* @__PURE__ */ H({
1697
1603
  style: [{
1698
1604
  transform: d.value === "sidebar" ? "none" : "rotate(180deg)"
1699
1605
  }],
1700
- onClick: ae
1606
+ onClick: ie
1701
1607
  }, null)]);
1702
1608
  }
1703
- function Ne(T) {
1704
- B.value = T, a.value = B.value.tabId, k.value = "";
1609
+ function De(x) {
1610
+ k.value = x, a.value = k.value.tabId, S.value = "";
1705
1611
  }
1706
- function Le() {
1707
- return m.map((T) => l("div", {
1612
+ function Re() {
1613
+ return b.map((x) => l("div", {
1708
1614
  class: ["title-label", {
1709
- active: B.value && B.value.tabId === T.tabId
1615
+ active: k.value && k.value.tabId === x.tabId
1710
1616
  }, {
1711
- hidden: T.hide
1617
+ hidden: x.hide
1712
1618
  }],
1713
- onClick: () => Ne(T)
1714
- }, [l("span", null, [T.tabName])]));
1619
+ onClick: () => De(x)
1620
+ }, [l("span", null, [x.tabName])]));
1715
1621
  }
1716
- return W(() => {
1717
- q(k.value);
1718
- }), $e(() => {
1719
- c.value && (f.value = C.value), z(), q(k.value);
1720
- }), V(B, () => {
1622
+ return q(() => {
1623
+ H(S.value);
1624
+ }), Qe(() => {
1625
+ u.value && (v.value = T.value), Q(), H(S.value);
1626
+ }), R(k, () => {
1721
1627
  }), t.expose({
1722
- updatePropertyConfig: Fe,
1723
- updateDesignerItem: xe
1724
- }), () => l(Z, null, [l("div", {
1725
- ref: L,
1628
+ updatePropertyConfig: Be,
1629
+ updateDesignerItem: Se
1630
+ }), () => l(z, null, [l("div", {
1631
+ ref: M,
1726
1632
  class: ["property-panel", {
1727
1633
  "white-theme": s.value
1728
1634
  }],
1729
- style: Ie()
1635
+ style: je()
1730
1636
  }, [l("div", {
1731
1637
  class: "propertyPanel panel flex-column",
1732
1638
  hidden: d.value !== "panel"
1733
1639
  }, [l("div", {
1734
1640
  class: ["title d-flex", {
1735
- "p-right": p.value
1641
+ "p-right": g.value
1736
1642
  }, {
1737
- only: m.length === 1
1643
+ only: b.length === 1
1738
1644
  }]
1739
- }, [Le(), Te()]), Be(), ke()]), Oe(), Ee()])]);
1645
+ }, [Re(), Pe()]), Ie(), Me()]), Le(), Ve()])]);
1646
+ }
1647
+ });
1648
+ class Br {
1649
+ constructor(t, n) {
1650
+ D(this, "componentId");
1651
+ D(this, "viewModelId");
1652
+ D(this, "eventsEditorUtils");
1653
+ D(this, "formSchemaUtils");
1654
+ D(this, "formMetadataConverter");
1655
+ D(this, "designViewModelUtils");
1656
+ D(this, "designViewModelField");
1657
+ D(this, "controlCreatorUtils");
1658
+ D(this, "designerHostService");
1659
+ D(this, "schemaService", null);
1660
+ D(this, "metadataService", null);
1661
+ D(this, "propertyConfig", {
1662
+ type: "object",
1663
+ categories: {}
1664
+ });
1665
+ var o;
1666
+ this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
1667
+ }
1668
+ getTableInfo() {
1669
+ var t;
1670
+ return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
1740
1671
  }
1672
+ setDesignViewModelField(t) {
1673
+ var o;
1674
+ const n = t.binding && t.binding.type === "Form" && t.binding.field;
1675
+ if (n) {
1676
+ if (!this.designViewModelField) {
1677
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1678
+ this.designViewModelField = r.fields.find((d) => d.id === n);
1679
+ }
1680
+ t.updateOn = (o = this.designViewModelField) == null ? void 0 : o.updateOn;
1681
+ }
1682
+ }
1683
+ changeFieldEditorType(t, n) {
1684
+ }
1685
+ getBasicPropConfig(t) {
1686
+ return {
1687
+ description: "Basic Information",
1688
+ title: "基本信息",
1689
+ properties: {
1690
+ id: {
1691
+ description: "组件标识",
1692
+ title: "标识",
1693
+ type: "string",
1694
+ readonly: !0
1695
+ },
1696
+ type: {
1697
+ description: "组件类型",
1698
+ title: "控件类型",
1699
+ type: "select",
1700
+ editor: {
1701
+ type: "combo-list",
1702
+ textField: "name",
1703
+ valueField: "value",
1704
+ data: [{ value: t.type, name: w[t.type].name }]
1705
+ }
1706
+ }
1707
+ }
1708
+ };
1709
+ }
1710
+ getAppearanceConfig(t = null) {
1711
+ return {
1712
+ title: "样式",
1713
+ description: "Appearance",
1714
+ properties: {
1715
+ class: {
1716
+ title: "class样式",
1717
+ type: "string",
1718
+ description: "组件的CSS样式",
1719
+ $converter: "/converter/appearance.converter"
1720
+ },
1721
+ style: {
1722
+ title: "style样式",
1723
+ type: "string",
1724
+ description: "组件的样式",
1725
+ $converter: "/converter/appearance.converter"
1726
+ }
1727
+ }
1728
+ };
1729
+ }
1730
+ /**
1731
+ *
1732
+ * @param propertyId
1733
+ * @param componentInstance
1734
+ * @returns
1735
+ */
1736
+ updateElementByParentContainer(t, n) {
1737
+ const o = n && n.parent && n.parent.schema;
1738
+ if (!o)
1739
+ return;
1740
+ const r = o.contents.findIndex((u) => u.id === t), d = fe(o.contents[r]);
1741
+ o.contents.splice(r, 1), o.contents.splice(r, 0, d);
1742
+ }
1743
+ }
1744
+ const U = class U {
1745
+ /**
1746
+ * 根据绑定字段类型获取可用的输入类控件
1747
+ */
1748
+ static getEditorTypesByMDataType(t) {
1749
+ const n = U.fieldControlTypeMapping[t];
1750
+ return n || [{ key: "", value: "" }];
1751
+ }
1752
+ /**
1753
+ * 获取所有输入类控件
1754
+ */
1755
+ static getAllInputTypes() {
1756
+ const t = [];
1757
+ for (const n in U.fieldControlTypeMapping)
1758
+ U.fieldControlTypeMapping[n].forEach((o) => {
1759
+ t.find((r) => r.key === o.key && r.value === o.value) || t.push({ key: o.key, value: o.value });
1760
+ });
1761
+ return t;
1762
+ }
1763
+ };
1764
+ /**
1765
+ * <字段类型,可配置的控件类型列表>的映射
1766
+ */
1767
+ D(U, "fieldControlTypeMapping", {
1768
+ String: [
1769
+ { key: w["input-group"].type, value: w["input-group"].name },
1770
+ { key: w.lookup.type, value: w.lookup.name },
1771
+ { key: w["date-picker"].type, value: w["date-picker"].name },
1772
+ { key: w["check-box"].type, value: w["check-box"].name },
1773
+ { key: w["check-group"].type, value: w["check-group"].name },
1774
+ { key: w["radio-group"].type, value: w["radio-group"].name },
1775
+ { key: w["combo-list"].type, value: w["combo-list"].name },
1776
+ { key: w.textarea.type, value: w.textarea.name }
1777
+ ],
1778
+ Text: [
1779
+ { key: w.textarea.type, value: w.textarea.name },
1780
+ { key: w.lookup.type, value: w.lookup.name }
1781
+ ],
1782
+ Decimal: [
1783
+ { key: w["number-spinner"].type, value: w["number-spinner"].name }
1784
+ ],
1785
+ Integer: [
1786
+ { key: w["number-spinner"].type, value: w["number-spinner"].name }
1787
+ ],
1788
+ Number: [
1789
+ { key: w["number-spinner"].type, value: w["number-spinner"].name }
1790
+ ],
1791
+ BigNumber: [
1792
+ { key: w["number-spinner"].type, value: w["number-spinner"].name }
1793
+ ],
1794
+ Date: [
1795
+ { key: w["date-picker"].type, value: w["date-picker"].name }
1796
+ ],
1797
+ DateTime: [
1798
+ { key: w["date-picker"].type, value: w["date-picker"].name }
1799
+ ],
1800
+ Boolean: [
1801
+ { key: w.switch.type, value: w.switch.name },
1802
+ { key: w["check-box"].type, value: w["check-box"].name }
1803
+ ],
1804
+ Enum: [
1805
+ { key: w["combo-list"].type, value: w["combo-list"].name },
1806
+ { key: w["radio-group"].type, value: w["radio-group"].name }
1807
+ ],
1808
+ Object: [
1809
+ { key: w.lookup.type, value: w.lookup.name },
1810
+ { key: w["combo-list"].type, value: w["combo-list"].name },
1811
+ { key: w["radio-group"].type, value: w["radio-group"].name }
1812
+ ]
1741
1813
  });
1742
- var lo = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(lo || {});
1743
- const yr = {
1814
+ let de = U;
1815
+ var mo = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(mo || {});
1816
+ const Sr = {
1744
1817
  install(e) {
1745
- e.component(ue.name, ue);
1818
+ e.component(ce.name, ce);
1746
1819
  }
1747
1820
  };
1748
1821
  export {
1749
- ue as FPropertyPanel,
1750
- lo as PropertyType,
1751
- yr as default,
1752
- Cn as propertyPanelItemProps,
1753
- Jt as propertyPanelProps
1822
+ Br as BaseControlProperty,
1823
+ ce as FPropertyPanel,
1824
+ mo as PropertyType,
1825
+ de as SchemaDOMMapping,
1826
+ Sr as default,
1827
+ In as propertyPanelItemProps,
1828
+ ln as propertyPanelProps
1754
1829
  };