@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,73 +1,73 @@
1
1
  var at = Object.defineProperty;
2
2
  var lt = (t, e, n) => e in t ? at(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var S = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { ref as i, computed as B, watch as J, defineComponent as ee, onBeforeUnmount as st, createVNode as d, createTextVNode as le, onMounted as oe, nextTick as ve, reactive as Z, withDirectives as rt, resolveDirective as it, Fragment as se, mergeProps as ye, onUnmounted as Se, Teleport as ut, Transition as ct, shallowRef as dt, createApp as pt, render as me, h as mt, cloneVNode as ft } from "vue";
3
+ var B = (t, e, n) => lt(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { ref as u, computed as R, watch as J, defineComponent as ee, onBeforeUnmount as st, createVNode as c, createTextVNode as le, onMounted as oe, nextTick as ve, reactive as Z, withDirectives as rt, resolveDirective as it, Fragment as se, mergeProps as ye, onUnmounted as Se, Teleport as ut, Transition as ct, shallowRef as dt, createApp as pt, render as me, h as mt, cloneVNode as ft } from "vue";
5
5
  import vt, { FDynamicFormGroup as ht } from "../dynamic-form/index.esm.js";
6
6
  import { cloneDeep as ne, isPlainObject as xe } from "lodash-es";
7
7
  import he from "../combo-list/index.esm.js";
8
- import "../property-panel/index.esm.js/src/composition/entity/base-property";
9
- import "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
10
- import "../designer-canvas/index.esm.js/src/composition/dg-control";
11
- import "bignumber.js";
12
- import gt, { useNumber as yt, useFormat as bt, useSpinner as Ct, useTextBox as wt } from "../number-spinner/index.esm.js";
13
- import xt from "../accordion/index.esm.js";
14
- import Tt from "../avatar/index.esm.js";
15
- import kt from "../button-edit/index.esm.js";
16
- import Bt from "../button-group/index.esm.js";
17
- import Ft from "../calendar/index.esm.js";
18
- import St from "../capsule/index.esm.js";
19
- import Mt from "../checkbox/index.esm.js";
20
- import Et from "../combo-tree/index.esm.js";
21
- import It from "../component/index.esm.js";
22
- import Vt from "../color-picker/index.esm.js";
23
- import Rt from "../content-container/index.esm.js";
24
- import Ot from "../date-picker/index.esm.js";
25
- import jt from "../data-grid/index.esm.js";
26
- import Lt from "../dropdown/index.esm.js";
27
- import Pt from "../events-editor/index.esm.js";
28
- import Nt from "../filter-bar/index.esm.js";
29
- import zt from "../field-selector/index.esm.js";
30
- import $t from "../image-cropper/index.esm.js";
31
- import At from "../input-group/index.esm.js";
32
- import Ht from "../layout/index.esm.js";
33
- import Dt from "../list-nav/index.esm.js";
34
- import Gt from "../list-view/index.esm.js";
35
- import qt from "../lookup/index.esm.js";
36
- import Ut from "../mapping-editor/index.esm.js";
37
- import Wt from "../nav/index.esm.js";
38
- import Xt from "../number-range/index.esm.js";
39
- import Yt from "../order/index.esm.js";
40
- import Jt from "../page-header/index.esm.js";
41
- import Qt from "../page-footer/index.esm.js";
42
- import Zt from "../pagination/index.esm.js";
43
- import Kt from "../progress/index.esm.js";
44
- import _t from "../query-solution/index.esm.js";
45
- import en from "../radio-group/index.esm.js";
46
- import tn from "../rate/index.esm.js";
47
- import nn from "../response-toolbar/index.esm.js";
48
- import on from "../response-layout/index.esm.js";
49
- import an from "../response-layout-editor/index.esm.js";
50
- import ln from "../search-box/index.esm.js";
51
- import sn from "../section/index.esm.js";
52
- import rn from "../smoke-detector/index.esm.js";
53
- import un from "../splitter/index.esm.js";
54
- import cn from "../step/index.esm.js";
55
- import dn from "../switch/index.esm.js";
56
- import pn from "../tabs/index.esm.js";
57
- import mn from "../tags/index.esm.js";
58
- import fn from "../text/index.esm.js";
59
- import vn from "../time-picker/index.esm.js";
60
- import hn from "../transfer/index.esm.js";
61
- import gn from "../tree-view/index.esm.js";
62
- import yn from "../uploader/index.esm.js";
63
- import bn from "../verify-detail/index.esm.js";
64
- import Cn from "../weather/index.esm.js";
65
- import wn from "../video/index.esm.js";
66
- import xn from "../textarea/index.esm.js";
67
- import Tn from "../schema-selector/index.esm.js";
68
- import kn from "../tree-grid/index.esm.js";
8
+ import "../designer-canvas/index.esm.js";
9
+ import { useTextBox as gt, useClear as yt } from "../common/index.esm.js";
10
+ import bt, { useNumber as Ct, useFormat as wt, useSpinner as xt, useTextBox as Tt } from "../number-spinner/index.esm.js";
11
+ import kt from "../accordion/index.esm.js";
12
+ import Bt from "../avatar/index.esm.js";
13
+ import Ft from "../button-edit/index.esm.js";
14
+ import St from "../button-group/index.esm.js";
15
+ import Mt from "../calendar/index.esm.js";
16
+ import Et from "../capsule/index.esm.js";
17
+ import It from "../checkbox/index.esm.js";
18
+ import Vt from "../combo-tree/index.esm.js";
19
+ import Rt from "../component/index.esm.js";
20
+ import Ot from "../color-picker/index.esm.js";
21
+ import jt from "../content-container/index.esm.js";
22
+ import Lt from "../date-picker/index.esm.js";
23
+ import Nt from "../data-grid/index.esm.js";
24
+ import Pt from "../dropdown/index.esm.js";
25
+ import zt from "../events-editor/index.esm.js";
26
+ import $t from "../filter-bar/index.esm.js";
27
+ import Ht from "../field-selector/index.esm.js";
28
+ import Dt from "../binding-selector/index.esm.js";
29
+ import At from "../image-cropper/index.esm.js";
30
+ import Gt from "../input-group/index.esm.js";
31
+ import qt from "../layout/index.esm.js";
32
+ import Ut from "../list-nav/index.esm.js";
33
+ import Wt from "../list-view/index.esm.js";
34
+ import Xt from "../lookup/index.esm.js";
35
+ import Yt from "../mapping-editor/index.esm.js";
36
+ import Qt from "../nav/index.esm.js";
37
+ import Jt from "../number-range/index.esm.js";
38
+ import Zt from "../order/index.esm.js";
39
+ import _t from "../page-header/index.esm.js";
40
+ import Kt from "../page-footer/index.esm.js";
41
+ import en from "../pagination/index.esm.js";
42
+ import tn from "../progress/index.esm.js";
43
+ import nn from "../query-solution/index.esm.js";
44
+ import on from "../radio-group/index.esm.js";
45
+ import an from "../rate/index.esm.js";
46
+ import ln from "../response-toolbar/index.esm.js";
47
+ import sn from "../response-layout/index.esm.js";
48
+ import rn from "../response-layout-editor/index.esm.js";
49
+ import un from "../search-box/index.esm.js";
50
+ import cn from "../section/index.esm.js";
51
+ import dn from "../smoke-detector/index.esm.js";
52
+ import pn from "../splitter/index.esm.js";
53
+ import mn from "../step/index.esm.js";
54
+ import fn from "../switch/index.esm.js";
55
+ import vn from "../tabs/index.esm.js";
56
+ import hn from "../tags/index.esm.js";
57
+ import gn from "../text/index.esm.js";
58
+ import yn from "../time-picker/index.esm.js";
59
+ import bn from "../transfer/index.esm.js";
60
+ import Cn from "../tree-view/index.esm.js";
61
+ import wn from "../uploader/index.esm.js";
62
+ import xn from "../verify-detail/index.esm.js";
63
+ import Tn from "../weather/index.esm.js";
64
+ import kn from "../video/index.esm.js";
65
+ import Bn from "../textarea/index.esm.js";
66
+ import Fn from "../schema-selector/index.esm.js";
67
+ import Sn from "../tree-grid/index.esm.js";
68
+ import Mn from "../event-parameter/index.esm.js";
69
69
  import "../external-container/index.esm.js";
70
- import { createPropsResolver as Bn } from "../dynamic-resolver/index.esm.js";
70
+ import { createPropsResolver as En } from "../dynamic-resolver/index.esm.js";
71
71
  const Me = {
72
72
  conditions: { type: Array, default: [] },
73
73
  fields: { type: Array, default: [] },
@@ -77,11 +77,11 @@ const Me = {
77
77
  */
78
78
  isControlInline: { type: Boolean, default: !0 }
79
79
  };
80
- class Fn {
80
+ class In {
81
81
  constructor(e = { value: [] }) {
82
- S(this, "editorType", "check-box");
83
- S(this, "value");
84
- S(this, "valueType", "boolean");
82
+ B(this, "editorType", "check-box");
83
+ B(this, "value");
84
+ B(this, "valueType", "boolean");
85
85
  this.value = e.value;
86
86
  }
87
87
  clear() {
@@ -97,13 +97,13 @@ class Fn {
97
97
  return this.value.length === 0;
98
98
  }
99
99
  }
100
- class Sn {
100
+ class Vn {
101
101
  constructor(e = { textValue: "", value: "", valueField: "" }) {
102
- S(this, "editorType", "combo-lookup");
103
- S(this, "textValue");
104
- S(this, "value");
105
- S(this, "valueField");
106
- S(this, "valueType", "text");
102
+ B(this, "editorType", "combo-lookup");
103
+ B(this, "textValue");
104
+ B(this, "value");
105
+ B(this, "valueField");
106
+ B(this, "valueType", "text");
107
107
  this.textValue = e.textValue, this.value = e.value, this.valueField = e.valueField;
108
108
  }
109
109
  clear() {
@@ -131,11 +131,11 @@ class Sn {
131
131
  return !this.valueField;
132
132
  }
133
133
  }
134
- class Mn {
134
+ class Rn {
135
135
  constructor(e = { value: "" }) {
136
- S(this, "editorType", "date-picker");
137
- S(this, "value");
138
- S(this, "valueType", "datetime");
136
+ B(this, "editorType", "date-picker");
137
+ B(this, "value");
138
+ B(this, "valueType", "datetime");
139
139
  this.value = e.value;
140
140
  }
141
141
  setValue(e) {
@@ -153,10 +153,10 @@ class Mn {
153
153
  }
154
154
  class Te {
155
155
  constructor(e = { begin: "", end: "" }) {
156
- S(this, "editorType", "date-range");
157
- S(this, "begin", "");
158
- S(this, "end", "");
159
- S(this, "valueType", "datetime");
156
+ B(this, "editorType", "date-range");
157
+ B(this, "begin", "");
158
+ B(this, "end", "");
159
+ B(this, "valueType", "datetime");
160
160
  this.begin = e.begin, this.end = e.end;
161
161
  }
162
162
  clear() {
@@ -172,11 +172,11 @@ class Te {
172
172
  return !this.begin || !this.end;
173
173
  }
174
174
  }
175
- class En {
175
+ class On {
176
176
  constructor(e = { value: "" }) {
177
- S(this, "editorType", "datetime-picker");
178
- S(this, "value");
179
- S(this, "valueType", "datetime");
177
+ B(this, "editorType", "datetime-picker");
178
+ B(this, "value");
179
+ B(this, "valueType", "datetime");
180
180
  this.value = e.value;
181
181
  }
182
182
  clear() {
@@ -192,14 +192,14 @@ class En {
192
192
  return !this.value;
193
193
  }
194
194
  }
195
- class In {
195
+ class jn {
196
196
  // 旧结构无,新结构为选中的value值,多选是以,分割的字符串
197
197
  constructor(e = { value: "", dispalyText: "" }) {
198
- S(this, "editorType", "combo-list");
199
- S(this, "value");
198
+ B(this, "editorType", "combo-list");
199
+ B(this, "value");
200
200
  // 旧结构{Type: '', Content: {value: string, name: string}} 新结构Array[{value: string, name: string}]
201
- S(this, "valueType", "enum");
202
- S(this, "displayText");
201
+ B(this, "valueType", "enum");
202
+ B(this, "displayText");
203
203
  this.displayText = e.dispalyText, this.value = e.value;
204
204
  }
205
205
  clear() {
@@ -215,18 +215,18 @@ class In {
215
215
  return !this.displayText;
216
216
  }
217
217
  }
218
- class Vn {
218
+ class Ln {
219
219
  constructor(e = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
220
- S(this, "editorType", "input-group");
220
+ B(this, "editorType", "input-group");
221
221
  // 通过弹窗返回的若干个值对象构成的数组
222
- S(this, "value");
223
- S(this, "valueType", "text");
222
+ B(this, "value");
223
+ B(this, "valueType", "text");
224
224
  // 控件内显示的值
225
- S(this, "displayText");
225
+ B(this, "displayText");
226
226
  // 弹窗模式下,取列表中哪个字段的值映射到当前字段
227
- S(this, "valueField");
227
+ B(this, "valueField");
228
228
  // 是否是手动输入的值
229
- S(this, "isInputText");
229
+ B(this, "isInputText");
230
230
  this.value = e.value, this.displayText = e.displayText, this.valueField = e.displayField, this.isInputText = e.isInputText;
231
231
  }
232
232
  clear() {
@@ -254,15 +254,15 @@ class Vn {
254
254
  return !this.displayText;
255
255
  }
256
256
  }
257
- class Rn {
257
+ class Nn {
258
258
  constructor(e = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
259
- S(this, "editorType", "lookup");
260
- S(this, "textValue");
261
- S(this, "value");
262
- S(this, "valueField");
263
- S(this, "valueType", "text");
259
+ B(this, "editorType", "lookup");
260
+ B(this, "textValue");
261
+ B(this, "value");
262
+ B(this, "valueField");
263
+ B(this, "valueType", "text");
264
264
  // 帮助的值是否为手动输入的任意值,对应帮助的任意输入属性nosearch
265
- S(this, "isInputText");
265
+ B(this, "isInputText");
266
266
  this.value = e.value, this.valueField = e.valueField, this.textValue = e.textValue, this.isInputText = e.isInputText;
267
267
  }
268
268
  clear() {
@@ -290,11 +290,11 @@ class Rn {
290
290
  return !this.value.length;
291
291
  }
292
292
  }
293
- class On {
293
+ class Pn {
294
294
  constructor(e = { value: "" }) {
295
- S(this, "editorType", "month-picker");
296
- S(this, "value");
297
- S(this, "valueType", "datetime");
295
+ B(this, "editorType", "month-picker");
296
+ B(this, "value");
297
+ B(this, "valueType", "datetime");
298
298
  this.value = e.value;
299
299
  }
300
300
  setValue(e) {
@@ -310,12 +310,12 @@ class On {
310
310
  return !this.value;
311
311
  }
312
312
  }
313
- class jn {
313
+ class zn {
314
314
  constructor(e = { begin: "", end: "" }) {
315
- S(this, "editorType", "month-range");
316
- S(this, "begin");
317
- S(this, "end");
318
- S(this, "valueType", "datetime");
315
+ B(this, "editorType", "month-range");
316
+ B(this, "begin");
317
+ B(this, "end");
318
+ B(this, "valueType", "datetime");
319
319
  this.begin = e.begin, this.end = e.end;
320
320
  }
321
321
  clear() {
@@ -331,12 +331,12 @@ class jn {
331
331
  return !this.begin || !this.end;
332
332
  }
333
333
  }
334
- class Ln {
334
+ class $n {
335
335
  constructor(e = { begin: null, end: null }) {
336
- S(this, "editorType", "number-range");
337
- S(this, "begin");
338
- S(this, "end");
339
- S(this, "valueType", "number");
336
+ B(this, "editorType", "number-range");
337
+ B(this, "begin");
338
+ B(this, "end");
339
+ B(this, "valueType", "number");
340
340
  this.begin = e.begin == null ? null : parseFloat(e.begin), this.end = e.end == null ? null : parseFloat(e.end);
341
341
  }
342
342
  clear() {
@@ -355,11 +355,11 @@ class Ln {
355
355
  return this.begin == null && this.end == null;
356
356
  }
357
357
  }
358
- class Pn {
358
+ class Hn {
359
359
  constructor(e = { value: "" }) {
360
- S(this, "editorType", "number-spinner");
361
- S(this, "value");
362
- S(this, "valueType", "number");
360
+ B(this, "editorType", "number-spinner");
361
+ B(this, "value");
362
+ B(this, "valueType", "number");
363
363
  this.value = e.value == null ? null : parseFloat(e.value);
364
364
  }
365
365
  clear() {
@@ -375,11 +375,11 @@ class Pn {
375
375
  return this.value == null;
376
376
  }
377
377
  }
378
- class Nn {
378
+ class Dn {
379
379
  constructor(e = { value: null }) {
380
- S(this, "editorType", "radio-group");
381
- S(this, "value");
382
- S(this, "valueType", "enum");
380
+ B(this, "editorType", "radio-group");
381
+ B(this, "value");
382
+ B(this, "valueType", "enum");
383
383
  this.value = e.value;
384
384
  }
385
385
  clear() {
@@ -397,9 +397,9 @@ class Nn {
397
397
  }
398
398
  class Ee {
399
399
  constructor(e = { value: "" }) {
400
- S(this, "editorType", "text");
401
- S(this, "value");
402
- S(this, "valueType", "text");
400
+ B(this, "editorType", "text");
401
+ B(this, "value");
402
+ B(this, "valueType", "text");
403
403
  this.value = e.value;
404
404
  }
405
405
  clear() {
@@ -419,33 +419,33 @@ function Ie() {
419
419
  function t(e, n) {
420
420
  switch (e) {
421
421
  case "check-box":
422
- return new Fn(n);
423
- case "combo-list":
424
422
  return new In(n);
423
+ case "combo-list":
424
+ return new jn(n);
425
425
  case "combo-lookup":
426
- return new Sn(n);
427
- case "input-group":
428
426
  return new Vn(n);
427
+ case "input-group":
428
+ return new Ln(n);
429
429
  case "date-picker":
430
- return new Mn(n);
430
+ return new Rn(n);
431
431
  case "date-range":
432
432
  return new Te(n);
433
433
  case "datetime-picker":
434
- return new En(n);
434
+ return new On(n);
435
435
  case "datetime-range":
436
436
  return new Te(n);
437
437
  case "lookup":
438
- return new Rn(n);
438
+ return new Nn(n);
439
439
  case "month-picker":
440
- return new On(n);
440
+ return new Pn(n);
441
441
  case "month-range":
442
- return new jn(n);
442
+ return new zn(n);
443
443
  case "number-range":
444
- return new Ln(n);
444
+ return new $n(n);
445
445
  case "number-spinner":
446
- return new Pn(n);
446
+ return new Hn(n);
447
447
  case "radio-group":
448
- return new Nn(n);
448
+ return new Dn(n);
449
449
  default:
450
450
  return new Ee(n);
451
451
  }
@@ -453,60 +453,61 @@ function Ie() {
453
453
  return { createConditionValue: t };
454
454
  }
455
455
  function Ve(t, e) {
456
- const n = i(t.fields), o = i([]), a = /* @__PURE__ */ new Map(), { createConditionValue: r } = Ie();
457
- function s(c) {
458
- switch (c.editor ? c.editor.type : "input-group") {
456
+ const n = u(t.fields), o = u([]), a = /* @__PURE__ */ new Map(), { createConditionValue: r } = Ie();
457
+ function l(p) {
458
+ switch (p.editor ? p.editor.type : "input-group") {
459
459
  case "date-range":
460
- c.editor.type = "date-picker";
460
+ p.editor.type = "date-picker";
461
461
  break;
462
462
  case "datetime-range":
463
- c.editor.type = "datetime-picker";
463
+ p.editor.type = "datetime-picker";
464
464
  break;
465
465
  case "number-range":
466
- c.editor.type = "number-spinner";
466
+ p.editor.type = "number-spinner";
467
467
  break;
468
468
  }
469
- return c.editor;
469
+ return p.editor;
470
470
  }
471
- function u(c) {
472
- return c.map((v) => Object.assign({}, v)).map((v) => (v.editor = s(v), v));
471
+ function i(p) {
472
+ return p.map((v) => Object.assign({}, v)).map((v) => (v.editor = l(v), v));
473
473
  }
474
- function p(c = !0) {
475
- n.value.reduce((m, v) => (c || (v.editor = s(v)), m.set(v.labelCode, v), m), a);
474
+ function d(p = !0) {
475
+ n.value.reduce((m, v) => (p || (v.editor = l(v)), m.set(v.labelCode, v), m), a);
476
476
  }
477
- function l(c) {
478
- return c.forEach((m) => {
479
- if (m && typeof m.valueConfig == "object") {
477
+ function s(p) {
478
+ return p.forEach((m) => {
479
+ if (m) {
480
480
  const v = a.get(m.fieldCode);
481
- m.value = r(v.editor.type, m.valueConfig.content);
481
+ m.value = r(v.editor.type, m.value);
482
482
  }
483
- }), c;
483
+ }), p;
484
484
  }
485
- return { convertToSingleControl: u, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: p, initialConditionValue: l };
485
+ return { convertToSingleControl: i, fields: n, fieldMap: a, fieldConditions: o, loadFieldConfigs: d, initialConditionValue: s };
486
486
  }
487
- function zn(t, e, n) {
488
- const o = i(null), a = i(n), r = i(0), s = B(() => l(r.value));
489
- function u() {
490
- a.value && (o.value = new ResizeObserver(p((c) => {
491
- const m = c[0];
492
- r.value = m.contentRect.width;
493
- })), o.value.observe(a.value));
494
- }
495
- function p(c, m) {
487
+ function An(t, e, n) {
488
+ const o = u(null), a = u(n), r = u(0);
489
+ function l(p, m) {
496
490
  let v = null;
497
491
  return function() {
498
492
  const k = arguments;
499
493
  v || (v = setTimeout(() => {
500
494
  v = null;
501
- }, 500), c(...k));
495
+ }, 500), p(...k));
502
496
  };
503
497
  }
504
- function l(c) {
498
+ function i() {
499
+ a.value && (o.value = new ResizeObserver(l((p) => {
500
+ const m = p[0];
501
+ r.value = m.contentRect.width;
502
+ })), o.value.observe(a.value));
503
+ }
504
+ function d(p) {
505
505
  let v = "col-12";
506
- return c > 250 * 6 ? v = "col-2" : c > 250 * 4 ? v = "col-3" : c > 250 * 3 ? v = "col-4" : c > 250 * 2 && (v = "col-6"), v;
506
+ return p > 250 * 6 ? v = "col-2" : p > 250 * 4 ? v = "col-3" : p > 250 * 3 ? v = "col-4" : p > 250 * 2 && (v = "col-6"), v;
507
507
  }
508
- return J([n], ([c]) => {
509
- a.value = c, u();
508
+ const s = R(() => d(r.value));
509
+ return J([n], ([p]) => {
510
+ a.value = p, i();
510
511
  }), {
511
512
  conditionClass: s,
512
513
  resizeObserver: o
@@ -517,133 +518,137 @@ const ke = /* @__PURE__ */ ee({
517
518
  props: Me,
518
519
  emits: ["valueChange", "blur", "focus", "click", "input"],
519
520
  setup(t, e) {
520
- const n = i(), o = i(t.key), a = i(t.isControlInline), r = i(t.conditions), s = Ve(t), {
521
- initialConditionValue: u,
522
- fieldMap: p,
523
- loadFieldConfigs: l
524
- } = s, c = zn(t, e, n), {
521
+ const n = u(), o = u(t.key), a = u(t.isControlInline), r = u(t.conditions), l = Ve(t), {
522
+ initialConditionValue: i,
523
+ fieldMap: d,
524
+ loadFieldConfigs: s
525
+ } = l, p = An(t, e, n), {
525
526
  conditionClass: m,
526
527
  resizeObserver: v
527
- } = c;
528
- l(!0), u(r.value), st(() => {
528
+ } = p;
529
+ s(!0), i(r.value), st(() => {
529
530
  var h;
530
531
  (h = v.value) == null || h.unobserve(n.value);
531
532
  }), J(() => t.conditions, () => {
532
- r.value = t.conditions;
533
+ r.value = t.conditions, i(r.value);
533
534
  });
534
- const k = B(() => ({
535
+ const k = R(() => ({
535
536
  // row: true,
536
537
  "f-utils-flex-row-wrap": !0,
537
538
  "farris-form": !0,
538
539
  "farris-form-controls-inline": a.value
539
- })), E = B(() => m.value);
540
- function N(h, b) {
540
+ })), j = R(() => m.value);
541
+ function H(h, b) {
541
542
  e.emit("valueChange", h, b);
542
543
  }
543
544
  function $() {
544
545
  return r.value.map((h) => {
545
546
  var b;
546
- return d(ht, {
547
- customClass: E.value,
547
+ return c(ht, {
548
+ customClass: j.value,
548
549
  label: h.fieldName,
549
- editor: (b = p.get(h.fieldCode)) == null ? void 0 : b.editor,
550
+ editor: (b = d.get(h.fieldCode)) == null ? void 0 : b.editor,
550
551
  modelValue: h.value.value,
551
- "onUpdate:modelValue": (P) => h.value.value = P,
552
- onChange: (P) => {
553
- N(P, h);
552
+ "onUpdate:modelValue": (I) => h.value.value = I,
553
+ onChange: (I) => {
554
+ H(I, h);
554
555
  }
555
556
  }, null);
556
557
  });
557
558
  }
558
- return () => d("div", {
559
+ return () => c("div", {
559
560
  class: k.value,
560
561
  key: o.value,
561
562
  ref: n
562
563
  }, [$()]);
563
564
  }
564
- }), $n = {}, An = {};
565
+ }), Gn = {}, qn = {};
565
566
  function Re(t) {
566
- const { properties: e, title: n, ignore: o } = t, a = o && Array.isArray(o), r = Object.keys(e).reduce((s, u) => ((!a || !o.find((p) => p == u)) && (s[u] = e[u].type === "object" && e[u].properties ? Re(e[u]) : ne(e[u].default)), s), {});
567
- return (!a || !o.find((s) => s == "id")) && (r.id = `${n}-${Date.now()}`), r;
567
+ const { properties: e, title: n, ignore: o } = t, a = o && Array.isArray(o), r = Object.keys(e).reduce((l, i) => ((!a || !o.find((d) => d === i)) && (l[i] = e[i].type === "object" && e[i].properties ? Re(e[i]) : ne(e[i].default)), l), {});
568
+ if (n && (!a || !o.find((l) => l === "id"))) {
569
+ const l = n.toLowerCase().replace(/-/g, "_");
570
+ r.id = `${l}_${Math.random().toString().slice(2, 6)}`;
571
+ }
572
+ return r;
568
573
  }
569
- function Hn(t, e) {
574
+ function Un(t, e) {
570
575
  const n = Re(e);
571
- return Object.keys(t).reduce((o, a) => (o[a] && xe(o[a]) && xe(t[a]) ? Object.assign(o[a], t[a]) : o[a] = t[a], o), n), n;
576
+ return Object.keys(n).reduce((o, a) => (o[a] && xe(o[a]) && xe(t[a] || !t[a]) ? Object.assign(o[a], t[a] || {}) : o[a] = t[a], o), n), n;
572
577
  }
573
- function Dn(t, e) {
578
+ function Wn(t, e) {
574
579
  return Object.keys(t).filter((o) => t[o] != null).reduce((o, a) => {
575
580
  if (e.has(a)) {
576
581
  const r = e.get(a);
577
582
  if (typeof r == "string")
578
583
  o[r] = t[a];
579
584
  else {
580
- const s = r(a, t[a], t);
581
- Object.assign(o, s);
585
+ const l = r(a, t[a], t);
586
+ Object.assign(o, l);
582
587
  }
583
588
  } else
584
589
  o[a] = t[a];
585
590
  return o;
586
591
  }, {});
587
592
  }
588
- function Gn(t, e, n = /* @__PURE__ */ new Map()) {
589
- const o = Hn(t, e);
590
- return Dn(o, n);
593
+ function Xn(t, e, n = /* @__PURE__ */ new Map()) {
594
+ const o = Un(t, e);
595
+ return Wn(o, n);
591
596
  }
592
- function qn(t = {}) {
593
- function e(l, c, m, v) {
597
+ function Yn(t = {}) {
598
+ function e(s, p, m, v) {
594
599
  if (typeof m == "number")
595
- return v[l].length === m;
600
+ return v[s].length === m;
596
601
  if (typeof m == "object") {
597
- const k = Object.keys(m)[0], E = m[k];
602
+ const k = Object.keys(m)[0], j = m[k];
598
603
  if (k === "not")
599
- return Number(v[l].length) !== Number(E);
604
+ return Number(v[s].length) !== Number(j);
600
605
  if (k === "moreThan")
601
- return Number(v[l].length) >= Number(E);
606
+ return Number(v[s].length) >= Number(j);
602
607
  if (k === "lessThan")
603
- return Number(v[l].length) <= Number(E);
608
+ return Number(v[s].length) <= Number(j);
604
609
  }
605
610
  return !1;
606
611
  }
607
- function n(l, c, m, v) {
608
- return v[l] && v[l].propertyValue && String(v[l].propertyValue.value) === String(m);
612
+ function n(s, p, m, v) {
613
+ return v[s] && v[s].propertyValue && String(v[s].propertyValue.value) === String(m);
609
614
  }
610
615
  const o = /* @__PURE__ */ new Map([
611
616
  ["length", e],
612
617
  ["getProperty", n]
613
618
  ]);
614
- Object.keys(t).reduce((l, c) => (l.set(c, t[c]), l), o);
615
- function a(l, c) {
616
- const m = l;
617
- return typeof c == "number" ? [{ target: m, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: m, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((v) => {
619
+ Object.keys(t).reduce((s, p) => (s.set(p, t[p]), s), o);
620
+ function a(s, p) {
621
+ const m = s;
622
+ return typeof p == "number" ? [{ target: m, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: m, operator: "getProperty", param: s, value: !!p }] : typeof p == "object" ? Object.keys(p).map((v) => {
618
623
  if (v === "length")
619
- return { target: m, operator: "length", param: null, value: c[v] };
620
- const k = v, E = c[v];
621
- return { target: m, operator: "getProperty", param: k, value: E };
624
+ return { target: m, operator: "length", param: null, value: p[v] };
625
+ const k = v, j = p[v];
626
+ return { target: m, operator: "getProperty", param: k, value: j };
622
627
  }) : [];
623
628
  }
624
- function r(l) {
625
- return Object.keys(l).reduce((m, v) => {
626
- const k = a(v, l[v]);
629
+ function r(s) {
630
+ return Object.keys(s).reduce((m, v) => {
631
+ const k = a(v, s[v]);
627
632
  return m.push(...k), m;
628
633
  }, []);
629
634
  }
630
- function s(l, c) {
631
- if (o.has(l.operator)) {
632
- const m = o.get(l.operator);
633
- return m && m(l.target, l.param, l.value, c) || !1;
635
+ function l(s, p) {
636
+ if (o.has(s.operator)) {
637
+ const m = o.get(s.operator);
638
+ return m && m(s.target, s.param, s.value, p) || !1;
634
639
  }
635
640
  return !1;
636
641
  }
637
- function u(l, c) {
638
- return r(l).reduce((k, E) => k && s(E, c), !0);
642
+ function i(s, p) {
643
+ return r(s).reduce((k, j) => k && l(j, p), !0);
639
644
  }
640
- function p(l, c) {
641
- const m = Object.keys(l), v = m.includes("allOf"), k = m.includes("anyOf"), E = v || k, h = (E ? l[E ? v ? "allOf" : "anyOf" : "allOf"] : [l]).map((P) => u(P, c));
645
+ function d(s, p) {
646
+ const m = Object.keys(s), v = m.includes("allOf"), k = m.includes("anyOf"), j = v || k, h = (j ? s[j ? v ? "allOf" : "anyOf" : "allOf"] : [s]).map((I) => i(I, p));
642
647
  return v ? !h.includes(!1) : h.includes(!0);
643
648
  }
644
- return { parseValueSchema: p };
649
+ return { parseValueSchema: d };
645
650
  }
646
- const A = {
651
+ const z = {
647
652
  button: { type: "button", name: "按钮", icon: "Button" },
648
653
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
649
654
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -681,13 +686,14 @@ const A = {
681
686
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
682
687
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
683
688
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
684
- fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
685
- }, Un = {}, Wn = {};
686
- qn();
687
- function ce(t, e, n = /* @__PURE__ */ new Map(), o = (s, u, p) => u, a = {}, r = (s) => s) {
688
- return $n[e.title] = e, An[e.title] = o, Un[e.title] = a, Wn[e.title] = r, (s = {}) => {
689
- const u = Gn(s, e, n), p = Object.keys(t).reduce((l, c) => (l[c] = t[c].default, l), {});
690
- return Object.assign(p, u);
689
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
690
+ "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
691
+ }, Qn = {}, Jn = {};
692
+ Yn();
693
+ function ce(t, e, n = /* @__PURE__ */ new Map(), o = (l, i, d, s) => i, a = {}, r = (l) => l) {
694
+ return Gn[e.title] = e, qn[e.title] = o, Qn[e.title] = a, Jn[e.title] = r, (l = {}) => {
695
+ const i = Xn(l, e, n), d = Object.keys(t).reduce((s, p) => (s[p] = t[p].default, s), {});
696
+ return Object.assign(d, i);
691
697
  };
692
698
  }
693
699
  function Oe(t, e) {
@@ -695,14 +701,14 @@ function Oe(t, e) {
695
701
  }
696
702
  const be = /* @__PURE__ */ new Map([
697
703
  ["appearance", Oe]
698
- ]), Xn = /* @__PURE__ */ new Map([]);
704
+ ]), Zn = /* @__PURE__ */ new Map([]);
699
705
  var ge = /* @__PURE__ */ ((t) => (t.String = "String", t.DateTime = "DateTime", t.Date = "Date", t.Enum = "Enum", t.Boolean = "Boolean", t.Number = "Number", t.Text = "Text", t.BigNumber = "BigNumber", t))(ge || {});
700
- const Yn = "root-viewmodel";
701
- class Jn {
706
+ const _n = "root-viewmodel";
707
+ class Kn {
702
708
  constructor(e, n) {
703
- S(this, "formSchemaUtils");
704
- S(this, "controlCreatorUtils");
705
- S(this, "designViewModelUtils");
709
+ B(this, "formSchemaUtils");
710
+ B(this, "controlCreatorUtils");
711
+ B(this, "designViewModelUtils");
706
712
  this.resolver = e, this.designerHostService = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
707
713
  }
708
714
  createComponent(e) {
@@ -733,7 +739,8 @@ class Jn {
733
739
  * 获取卡片组件层级的class样式
734
740
  */
735
741
  getFormComponentClass() {
736
- return this.formSchemaUtils.getFormSchema().module.templateId === "double-list-in-tab-template" ? "f-struct-wrapper f-utils-fill-flex-column" : "f-struct-wrapper";
742
+ const { templateId: e } = this.formSchemaUtils.getFormSchema().module;
743
+ return e === "double-list-in-tab-template" ? "f-struct-wrapper f-utils-fill-flex-column" : "f-struct-wrapper";
737
744
  }
738
745
  createFormComponentContents(e) {
739
746
  const n = this.resolver.getSchemaByType("section");
@@ -753,16 +760,18 @@ class Jn {
753
760
  contents: a
754
761
  }), n.contents = [o];
755
762
  const { selectedFields: r } = e;
756
- return r == null || r.forEach((u) => {
757
- const p = ne(u), l = this.resolveControlClassByFormColumns(e), c = this.controlCreatorUtils.setFormFieldProperty(p, "", l);
758
- c && a.push(c);
759
- }), this.formSchemaUtils.getFormSchema().module.templateId === "double-list-in-tab-template" && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0), [n];
763
+ r == null || r.forEach((i) => {
764
+ const d = ne(i), s = this.resolveControlClassByFormColumns(e), p = this.controlCreatorUtils.setFormFieldProperty(d, "", s);
765
+ p && a.push(p);
766
+ });
767
+ const { templateId: l } = this.formSchemaUtils.getFormSchema().module;
768
+ return l === "double-list-in-tab-template" && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0), [n];
760
769
  }
761
770
  resolveControlClassByFormColumns(e) {
762
771
  let n = "";
763
772
  switch (e.formColumns) {
764
773
  case 1: {
765
- n = "col-12 col-md-12 col-xl-12 col-el-12";
774
+ n = "col-12";
766
775
  break;
767
776
  }
768
777
  case 2: {
@@ -789,14 +798,11 @@ class Jn {
789
798
  code: `${e.componentId}-component-viewmodel`,
790
799
  name: e.componentName,
791
800
  bindTo: e.bindTo,
792
- parent: Yn,
801
+ parent: _n,
793
802
  fields: this.assembleViewModelFields(e),
794
803
  commands: [],
795
804
  states: [],
796
- enableValidation: !0,
797
- pagination: {
798
- enable: !1
799
- }
805
+ enableValidation: !0
800
806
  };
801
807
  }
802
808
  /**
@@ -806,8 +812,8 @@ class Jn {
806
812
  const n = [], { selectedFields: o } = e;
807
813
  return o == null || o.forEach((a) => {
808
814
  let r = "blur";
809
- const s = a.type.name;
810
- (s === ge.Enum || s === ge.Boolean) && (r = "change"), n.push({
815
+ const l = a.type.name;
816
+ (l === ge.Enum || l === ge.Boolean) && (r = "change"), n.push({
811
817
  type: "Form",
812
818
  id: a.id,
813
819
  fieldName: a.bindingField,
@@ -819,25 +825,26 @@ class Jn {
819
825
  }), n;
820
826
  }
821
827
  }
822
- function Qn(t, e, n, o) {
828
+ function eo(t, e, n, o) {
829
+ var r, l, i, d;
823
830
  const a = n.parentComponentInstance;
824
- if (a) {
825
- const s = {
831
+ if (a && o) {
832
+ const s = (r = a.schema) == null ? void 0 : r.type, m = {
826
833
  componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
827
- componentName: "标题",
834
+ componentName: ((i = (l = n.bindingSourceContext) == null ? void 0 : l.bindingEntity) == null ? void 0 : i.name) || "标题",
828
835
  componentType: "form",
829
- formColumns: 4,
836
+ formColumns: s === "splitter-pane" ? 1 : 4,
830
837
  parentContainerId: a.schema.id,
831
- bindTo: "/"
838
+ bindTo: ((d = n.bindingSourceContext) == null ? void 0 : d.bindTo) || "/"
832
839
  };
833
- return new Jn(t, o).createComponent(s);
840
+ return new Kn(t, o).createComponent(m);
834
841
  } else
835
842
  return e;
836
843
  }
837
- function Zn(t, e, n) {
844
+ function to(t, e, n) {
838
845
  return e;
839
846
  }
840
- const Kn = "https://json-schema.org/draft/2020-12/schema", _n = "https://farris-design.gitee.io/response-form.schema.json", eo = "response-form", to = "A Farris Data Collection Component", no = "object", oo = {
847
+ const no = "https://json-schema.org/draft/2020-12/schema", oo = "https://farris-design.gitee.io/response-form.schema.json", ao = "response-form", lo = "A Farris Data Collection Component", so = "object", ro = {
841
848
  id: {
842
849
  description: "The unique identifier for a form group",
843
850
  type: "string"
@@ -865,22 +872,23 @@ const Kn = "https://json-schema.org/draft/2020-12/schema", _n = "https://farris-
865
872
  type: "array",
866
873
  default: []
867
874
  }
868
- }, ao = [
875
+ }, io = [
869
876
  "id",
870
877
  "type"
871
- ], lo = {
872
- $schema: Kn,
873
- $id: _n,
874
- title: eo,
875
- description: to,
876
- type: no,
877
- properties: oo,
878
- required: ao
879
- }, so = {
880
- customClass: { type: String, default: "" }
878
+ ], uo = {
879
+ $schema: no,
880
+ $id: oo,
881
+ title: ao,
882
+ description: lo,
883
+ type: so,
884
+ properties: ro,
885
+ required: io
886
+ }, co = {
887
+ customClass: { type: String, default: "" },
888
+ customStyle: { type: String, defaut: "" }
881
889
  };
882
- ce(so, lo, be, Qn);
883
- const ro = "https://json-schema.org/draft/2020-12/schema", io = "https://farris-design.gitee.io/form-group.schema.json", uo = "form-group", co = "A Farris Input Component", po = "object", mo = {
890
+ ce(co, uo, be, eo);
891
+ const po = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-design.gitee.io/form-group.schema.json", fo = "form-group", vo = "A Farris Input Component", ho = "object", go = {
884
892
  id: {
885
893
  description: "The unique identifier for a form group",
886
894
  type: "string"
@@ -920,21 +928,27 @@ const ro = "https://json-schema.org/draft/2020-12/schema", io = "https://farris-
920
928
  lableWidth: {
921
929
  description: "",
922
930
  type: "number"
931
+ },
932
+ binding: {
933
+ description: "",
934
+ type: "object",
935
+ default: {}
923
936
  }
924
- }, fo = [
937
+ }, yo = [
925
938
  "id",
926
939
  "type"
927
940
  ], je = {
928
- $schema: ro,
929
- $id: io,
930
- title: uo,
931
- description: co,
932
- type: po,
933
- properties: mo,
934
- required: fo
941
+ $schema: po,
942
+ $id: mo,
943
+ title: fo,
944
+ description: vo,
945
+ type: ho,
946
+ properties: go,
947
+ required: yo
935
948
  }, Le = {
936
949
  id: { type: String, default: "" },
937
950
  customClass: { type: String, default: "" },
951
+ customStyle: { type: String, default: "" },
938
952
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
939
953
  editor: { type: Object, default: {} },
940
954
  label: { type: String, default: "" },
@@ -952,37 +966,37 @@ ce(
952
966
  be,
953
967
  void 0
954
968
  );
955
- const vo = {
969
+ const bo = {
956
970
  id: { type: String },
957
971
  required: { type: Boolean, default: !1 },
958
972
  text: { type: String, default: "" },
959
973
  title: { type: String }
960
- }, ho = /* @__PURE__ */ ee({
974
+ }, Co = /* @__PURE__ */ ee({
961
975
  name: "FDynamicFormLabel",
962
- props: vo,
976
+ props: bo,
963
977
  emits: [],
964
978
  setup(t, e) {
965
- const n = i(t.title || t.text), o = i(t.required), a = i(t.text);
979
+ const n = u(t.title || t.text), o = u(t.required), a = u(t.text);
966
980
  return J(() => t.text, () => {
967
981
  a.value = t.text;
968
- }), J(() => t.required, (r, s) => {
969
- r !== s && (o.value = r);
970
- }), () => a.value && d("label", {
982
+ }), J(() => t.required, (r, l) => {
983
+ r !== l && (o.value = r);
984
+ }), () => a.value && c("label", {
971
985
  class: "col-form-label",
972
986
  title: n.value
973
- }, [o.value && d("span", {
987
+ }, [o.value && c("span", {
974
988
  class: "farris-label-info text-danger"
975
- }, [le("*")]), d("span", {
989
+ }, [le("*")]), c("span", {
976
990
  class: "farris-label-text"
977
991
  }, [a.value])]);
978
992
  }
979
- }), go = /* @__PURE__ */ new Map([
993
+ }), wo = /* @__PURE__ */ new Map([
980
994
  ["appearance", Oe]
981
995
  ]);
982
- function yo(t, e, n) {
996
+ function xo(t, e, n) {
983
997
  return e;
984
998
  }
985
- const bo = "https://json-schema.org/draft/2020-12/schema", Co = "https://farris-design.gitee.io/input-group.schema.json", wo = "input-group", xo = "A Farris Input Component", To = "object", ko = {
999
+ const To = "https://json-schema.org/draft/2020-12/schema", ko = "https://farris-design.gitee.io/input-group.schema.json", Bo = "input-group", Fo = "A Farris Input Component", So = "object", Mo = {
986
1000
  id: {
987
1001
  description: "The unique identifier for a Input Group",
988
1002
  type: "string"
@@ -1044,11 +1058,6 @@ const bo = "https://json-schema.org/draft/2020-12/schema", Co = "https://farris-
1044
1058
  type: "boolean",
1045
1059
  default: !1
1046
1060
  },
1047
- required: {
1048
- description: "",
1049
- type: "boolean",
1050
- default: !1
1051
- },
1052
1061
  tabIndex: {
1053
1062
  description: "",
1054
1063
  type: "number",
@@ -1184,18 +1193,24 @@ const bo = "https://json-schema.org/draft/2020-12/schema", Co = "https://farris-
1184
1193
  type: "string",
1185
1194
  default: ""
1186
1195
  }
1187
- }, Bo = [
1196
+ }, Eo = [
1188
1197
  "id",
1189
1198
  "type"
1190
- ], Fo = {
1191
- $schema: bo,
1192
- $id: Co,
1193
- title: wo,
1194
- description: xo,
1195
- type: To,
1196
- properties: ko,
1197
- required: Bo
1198
- }, Pe = {
1199
+ ], Io = [
1200
+ "id",
1201
+ "appearance",
1202
+ "binding",
1203
+ "visible"
1204
+ ], Vo = {
1205
+ $schema: To,
1206
+ $id: ko,
1207
+ title: Bo,
1208
+ description: Fo,
1209
+ type: So,
1210
+ properties: Mo,
1211
+ required: Eo,
1212
+ ignore: Io
1213
+ }, Ne = {
1199
1214
  id: { Type: String, default: "" },
1200
1215
  /** 是否自动完成 */
1201
1216
  autocomplete: { Type: String, default: "off" },
@@ -1263,193 +1278,65 @@ const bo = "https://json-schema.org/draft/2020-12/schema", Co = "https://farris-
1263
1278
  */
1264
1279
  updateOn: { type: String, default: "blur" }
1265
1280
  };
1266
- ce(Pe, Fo, go, yo);
1267
- function So(t, e, n, o) {
1268
- const a = i(t.disabled), r = i(!1), s = i("text"), u = i(t.showBorder), p = i(t.textAlign), l = i(t.updateOn), c = B(() => t.editable || !t.readonly), m = B(() => t.editable && !t.disabled && !t.readonly), v = B(() => !t.disabled && r.value), k = B(() => n.value === "" || n.value === null || n.value === void 0), E = B(() => (t.disabled || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), N = B(() => t.readonly || !t.editable), $ = B(() => t.enableTitle ? n.value : ""), h = B(() => ({
1269
- "form-control": !0,
1270
- "f-utils-fill": !0,
1271
- "text-left": p.value === "left",
1272
- "text-center": p.value === "center",
1273
- "text-right": p.value === "right"
1274
- })), b = B(() => {
1275
- const g = {
1276
- "f-cmp-inputgroup": !0,
1277
- "input-group": !0,
1278
- "f-state-disable": a.value,
1279
- "f-state-editable": m.value,
1280
- "f-state-readonly": N.value,
1281
- "f-state-focus": v.value
1282
- };
1283
- return (t.customClass || "").split(" ").reduce((z, Y) => (z[Y] = !0, z), g), g;
1284
- }), P = B(() => u.value ? "" : "border-width : 0 ");
1285
- function D(g, M = !0) {
1286
- n.value = g, o.value !== g && (o.value = g), M && e.emit("change", g), e.emit("update:modelValue", g), e.emit("update:value", g);
1287
- }
1288
- J(
1289
- () => t.modelValue,
1290
- (g, M) => {
1291
- g !== M && (n.value = g, o.value = g);
1292
- }
1293
- ), J(() => t.disabled, (g, M) => {
1294
- g !== M && (a.value = g);
1295
- });
1296
- function W(g) {
1297
- return r.value = !1, e.emit("blur", g), g.stopPropagation(), !1;
1298
- }
1299
- function q(g) {
1300
- e.emit("click", g);
1301
- }
1302
- function T(g) {
1303
- t.disabled || (u.value && (r.value = !0), c.value && e.emit("focus", g));
1304
- }
1305
- function H(g) {
1306
- e.emit("input", g.target.value);
1307
- const M = g.target.value;
1308
- o.value = M, l.value === "change" && (e.emit("update:modelValue", M), e.emit("update:value", M));
1309
- }
1310
- function f(g) {
1311
- e.emit("keydown", g);
1312
- }
1313
- function w(g) {
1314
- e.emit("keyup", g);
1315
- }
1316
- function x(g) {
1317
- g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
1318
- }
1319
- function R(g) {
1320
- if (l.value === "blur") {
1321
- const M = g.target.value;
1322
- g.stopPropagation(), D(M);
1323
- }
1324
- }
1325
- return {
1326
- changeTextBoxValue: D,
1327
- disabled: a,
1328
- displayText: o,
1329
- editable: m,
1330
- hasFocused: v,
1331
- inputGroupClass: b,
1332
- inputType: s,
1333
- isEmpty: k,
1334
- modelValue: n,
1335
- readonly: N,
1336
- onBlur: W,
1337
- onClick: q,
1338
- onFocus: T,
1339
- onInput: H,
1340
- onKeydown: f,
1341
- onKeyup: w,
1342
- onMousedown: x,
1343
- onTextBoxValueChange: R,
1344
- placeholder: E,
1345
- textBoxClass: h,
1346
- textBoxTitle: $,
1347
- inputGroupStyle: P
1348
- };
1349
- }
1350
- function Mo(t, e, n) {
1351
- const o = i(!1), a = B(() => t.enableClear && !t.readonly && !t.disabled), { changeTextBoxValue: r, displayText: s, hasFocused: u, isEmpty: p } = n;
1352
- function l(N) {
1353
- o.value = N;
1354
- }
1355
- J(s, () => {
1356
- u != null && u.value ? l(!!(s != null && s.value)) : l(!1);
1357
- });
1358
- const c = B(() => ({
1359
- "input-group-text": !0,
1360
- "input-group-clear": !0
1361
- })), m = B(() => ({
1362
- width: "24px",
1363
- display: o.value ? "flex" : "none"
1364
- }));
1365
- function v(N) {
1366
- N.stopPropagation(), a.value && (r("", !0), l(!o.value), e.emit("clear"));
1367
- }
1368
- function k(N) {
1369
- a.value && !p.value && l(!0);
1370
- }
1371
- function E(N) {
1372
- a.value && l(!1);
1373
- }
1374
- return { clearButtonClass: c, clearButtonStyle: m, hasShownClearButton: o, onClearValue: v, onMouseEnter: k, onMouseLeave: E, shouldShowClearButton: a };
1375
- }
1376
- const Eo = ["moz", "ms", "webkit"];
1377
- function Io() {
1378
- let t = 0;
1379
- return (e) => {
1380
- const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
1381
- e(n + o);
1382
- }, o);
1383
- return t = n + o, a;
1384
- };
1385
- }
1386
- function Vo() {
1387
- if (typeof window > "u")
1388
- return () => 0;
1389
- if (window.requestAnimationFrame)
1390
- return window.requestAnimationFrame.bind(window);
1391
- const t = Eo.filter((e) => `${e}RequestAnimationFrame` in window)[0];
1392
- return t ? window[`${t}RequestAnimationFrame`] : Io();
1393
- }
1394
- Vo();
1281
+ ce(Ne, Vo, wo, xo);
1395
1282
  function Ro(t, e) {
1396
- const n = i(t.groupText), o = B(() => t.showButtonWhenDisabled && (t.readonly || t.disabled)), a = B(() => t.enableClear || !!t.groupText);
1397
- return { appendedButtonClass: B(() => ({
1283
+ const n = u(t.groupText), o = R(() => t.showButtonWhenDisabled && (t.readonly || t.disabled)), a = R(() => t.enableClear || !!t.groupText);
1284
+ return { appendedButtonClass: R(() => ({
1398
1285
  "input-group-append": !0,
1399
1286
  "append-force-show": o.value
1400
1287
  })), appendedContent: n, shouldShowAppendedButton: a };
1401
1288
  }
1402
1289
  function Oo(t, e, n, o) {
1403
- const { appendedContent: a } = o, r = i(t.enableViewPassword), s = B(() => t.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', p = '<span class="f-icon f-icon-eye"></span>', l = i(!1);
1290
+ const { appendedContent: a } = o, r = u(t.enableViewPassword), l = R(() => t.type === "password"), i = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', s = u(!1);
1404
1291
  J(() => [t.readonly, t.disabled], ([v, k]) => {
1405
- s.value && (n.value = v || k ? "password" : n.value, a.value = v || k ? p : a.value);
1292
+ l.value && (n.value = v || k ? "password" : n.value, a.value = v || k ? d : a.value);
1406
1293
  });
1407
- function c() {
1408
- return l.value = !l.value, n.value = l.value ? "text" : "password", a.value = l.value ? u : p, !1;
1294
+ function p() {
1295
+ return s.value = !s.value, n.value = s.value ? "text" : "password", a.value = s.value ? i : d, !1;
1409
1296
  }
1410
1297
  function m() {
1411
- n.value = s.value ? "password" : "text", a.value = s.value ? r.value ? p : "" : a.value;
1298
+ n.value = l.value ? "password" : "text", a.value = l.value ? r.value ? d : "" : a.value;
1412
1299
  }
1413
- return m(), { isPassword: s, onClickAppendedButton: c };
1300
+ return m(), { isPassword: l, onClickAppendedButton: p };
1414
1301
  }
1415
1302
  function jo(t, e, n) {
1416
- const o = i(), {
1303
+ const o = u(), {
1417
1304
  onBlurTextBox: a,
1418
1305
  onFocusTextBox: r,
1419
- onInput: s,
1420
- onKeyDown: u,
1421
- textBoxValue: p
1422
- } = n, l = B(() => t.disabled || t.readonly || !t.editable ? "" : t.placeholder), c = B(() => ({
1306
+ onInput: l,
1307
+ onKeyDown: i,
1308
+ textBoxValue: d
1309
+ } = n, s = R(() => t.disabled || t.readonly || !t.editable ? "" : t.placeholder), p = R(() => ({
1423
1310
  "form-control": !0,
1424
1311
  "f-utils-fill": !0
1425
- })), m = B(() => ({
1312
+ })), m = R(() => ({
1426
1313
  "text-align": t.textAlign
1427
1314
  }));
1428
- function v(N) {
1429
- N.stopPropagation();
1315
+ function v(H) {
1316
+ H.stopPropagation();
1430
1317
  }
1431
1318
  function k() {
1432
1319
  t.selectOnCreated, t.focusOnCreated;
1433
1320
  }
1434
- async function E(N) {
1435
- r(N), await ve, k();
1321
+ async function j(H) {
1322
+ r(H), await ve, k();
1436
1323
  }
1437
1324
  return oe(async () => {
1438
1325
  await ve, k();
1439
- }), () => d("input", {
1326
+ }), () => c("input", {
1440
1327
  ref: o,
1441
- class: c.value,
1328
+ class: p.value,
1442
1329
  style: m.value,
1443
1330
  type: "text",
1444
- value: p.value,
1331
+ value: d.value,
1445
1332
  disabled: t.disabled,
1446
1333
  readonly: t.readonly || !t.editable,
1447
- placeholder: l.value,
1334
+ placeholder: s.value,
1448
1335
  onBlur: a,
1449
1336
  onChange: v,
1450
- onFocus: E,
1451
- onInput: s,
1452
- onKeydown: u
1337
+ onFocus: j,
1338
+ onInput: l,
1339
+ onKeydown: i
1453
1340
  }, null);
1454
1341
  }
1455
1342
  function Lo(t, e, n) {
@@ -1457,224 +1344,224 @@ function Lo(t, e, n) {
1457
1344
  canDownward: o,
1458
1345
  canUpward: a,
1459
1346
  onClickDownButton: r,
1460
- onClickUpButton: s
1461
- } = n, u = B(() => ({
1347
+ onClickUpButton: l
1348
+ } = n, i = R(() => ({
1462
1349
  "input-group-append": !0,
1463
1350
  "btn-group": !0,
1464
1351
  "btn-group-number": !0
1465
- })), p = B(() => ({
1352
+ })), d = R(() => ({
1466
1353
  btn: !0,
1467
1354
  "btn-secondary": !0,
1468
1355
  "btn-number-flag": !0
1469
- })), l = B(() => ({
1356
+ })), s = R(() => ({
1470
1357
  cursor: a() ? "pointer" : "not-allowed",
1471
1358
  "margin-left": 0
1472
- })), c = B(() => ({
1359
+ })), p = R(() => ({
1473
1360
  cursor: o() ? "pointer" : "not-allowed",
1474
1361
  "margin-left": 0
1475
1362
  }));
1476
- return () => d("div", {
1477
- class: u.value
1478
- }, [d("button", {
1363
+ return () => c("div", {
1364
+ class: i.value
1365
+ }, [c("button", {
1479
1366
  title: "upButton",
1480
- class: p.value,
1481
- style: l.value,
1482
- onClick: s,
1367
+ class: d.value,
1368
+ style: s.value,
1369
+ onClick: l,
1483
1370
  disabled: !a()
1484
- }, [d("span", {
1371
+ }, [c("span", {
1485
1372
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
1486
- }, null)]), d("button", {
1373
+ }, null)]), c("button", {
1487
1374
  title: "downButton",
1488
- class: p.value,
1489
- style: c.value,
1375
+ class: d.value,
1376
+ style: p.value,
1490
1377
  onClick: r,
1491
1378
  disabled: !o()
1492
- }, [d("span", {
1379
+ }, [c("span", {
1493
1380
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1494
1381
  }, null)])]);
1495
1382
  }
1496
- function Po(t, e) {
1497
- const n = yt(t, e), o = bt(t, e, n), a = Ct(t, e, o, n), r = wt(t, e, o, n, a), s = Lo(t, e, a), {
1498
- displayValue: u,
1499
- modelValue: p,
1500
- getRealValue: l
1501
- } = n, c = jo(t, e, r), {
1383
+ function No(t, e) {
1384
+ const n = Ct(t, e), o = wt(t, e, n), a = xt(t, e, o, n), r = Tt(t, e, o, n, a), l = Lo(t, e, a), {
1385
+ displayValue: i,
1386
+ modelValue: d,
1387
+ getRealValue: s
1388
+ } = n, p = jo(t, e, r), {
1502
1389
  format: m
1503
1390
  } = o, {
1504
1391
  isFocus: v
1505
- } = r, k = B(() => !t.disabled && !t.readonly);
1392
+ } = r, k = R(() => !t.disabled && !t.readonly);
1506
1393
  return oe(() => {
1507
- const E = l(t.modelValue);
1508
- u.value = m(E);
1509
- }), J(() => [t.value], ([E]) => {
1510
- const N = l(E);
1511
- p.value = N, u.value = m(N);
1512
- }), J(() => [t.modelValue], ([E]) => {
1513
- E !== p.value && (p.value = E, !v.value && (u.value = m(l(E))));
1394
+ const j = s(t.modelValue);
1395
+ i.value = m(j);
1396
+ }), J(() => [t.value], ([j]) => {
1397
+ const H = s(j);
1398
+ d.value = H, i.value = m(H);
1399
+ }), J(() => [t.modelValue], ([j]) => {
1400
+ j !== d.value && (d.value = j, !v.value && (i.value = m(s(j))));
1514
1401
  }), J(() => [t.precision, t.useThousands, t.prefix, t.suffix, t.showZero], () => {
1515
- u.value = m(p.value);
1516
- }), () => d("div", {
1402
+ i.value = m(d.value);
1403
+ }), () => c("div", {
1517
1404
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1518
- }, [c(), k.value && s()]);
1405
+ }, [p(), k.value && l()]);
1519
1406
  }
1520
- function No(t, e, n, o) {
1521
- const a = i(), r = i(t.autocomplete), s = i(t.enableTitle), {
1522
- isPassword: u
1523
- } = n, p = i(t.minLength), l = i(t.maxLength), c = i(t.tabIndex), {
1407
+ function Po(t, e, n, o) {
1408
+ const a = u(), r = u(t.autocomplete), l = u(t.enableTitle), {
1409
+ isPassword: i
1410
+ } = n, d = u(t.minLength), s = u(t.maxLength), p = u(t.tabIndex), {
1524
1411
  disabled: m,
1525
1412
  displayText: v,
1526
1413
  inputType: k,
1527
- onBlur: E,
1528
- onFocus: N,
1414
+ onBlur: j,
1415
+ onFocus: H,
1529
1416
  onInput: $,
1530
1417
  onClick: h,
1531
1418
  onKeydown: b,
1532
- onKeyup: P,
1533
- onMousedown: D,
1534
- onTextBoxValueChange: W,
1535
- readonly: q,
1536
- placeholder: T,
1537
- textBoxClass: H,
1419
+ onKeyup: I,
1420
+ onMousedown: G,
1421
+ onTextBoxValueChange: U,
1422
+ readonly: X,
1423
+ placeholder: x,
1424
+ textBoxClass: D,
1538
1425
  textBoxTitle: f
1539
1426
  } = o;
1540
1427
  return oe(() => {
1541
1428
  t.selectOnCreated, t.focusOnCreated;
1542
- }), () => d("input", {
1429
+ }), () => c("input", {
1543
1430
  ref: a,
1544
1431
  name: "input-group-value",
1545
1432
  autocomplete: r.value,
1546
- class: H.value,
1433
+ class: D.value,
1547
1434
  disabled: m == null ? void 0 : m.value,
1548
- maxlength: l.value,
1549
- minlength: p.value,
1550
- placeholder: T.value,
1551
- readonly: q == null ? void 0 : q.value,
1552
- tabindex: c.value,
1553
- title: s.value && !u.value ? f.value : "",
1435
+ maxlength: s.value,
1436
+ minlength: d.value,
1437
+ placeholder: x.value,
1438
+ readonly: X == null ? void 0 : X.value,
1439
+ tabindex: p.value,
1440
+ title: l.value && !i.value ? f.value : "",
1554
1441
  type: k.value,
1555
1442
  value: v == null ? void 0 : v.value,
1556
- onBlur: E,
1443
+ onBlur: j,
1557
1444
  onClick: h,
1558
- onChange: W,
1559
- onFocus: N,
1445
+ onChange: U,
1446
+ onFocus: H,
1560
1447
  onInput: $,
1561
1448
  onKeydown: b,
1562
- onKeyup: P,
1563
- onMousedown: D
1449
+ onKeyup: I,
1450
+ onMousedown: G
1564
1451
  }, null);
1565
1452
  }
1566
1453
  function zo(t, e) {
1567
- const n = B(() => t.useExtendInfo && !!t.extendInfo), o = Z({
1454
+ const n = R(() => t.useExtendInfo && !!t.extendInfo), o = Z({
1568
1455
  content: t.extendInfo
1569
1456
  });
1570
1457
  function a() {
1571
1458
  e.emit("updateExtendInfo");
1572
1459
  }
1573
- return () => n.value && rt(d("span", {
1460
+ return () => n.value && rt(c("span", {
1574
1461
  class: "input-group-before-tips",
1575
1462
  onMouseenter: a
1576
- }, [d("i", {
1463
+ }, [c("i", {
1577
1464
  class: "f-icon f-icon-info-circle"
1578
- }, null), d("b", {
1465
+ }, null), c("b", {
1579
1466
  class: "tips-arrow"
1580
1467
  }, null)]), [[it("tooltip"), o]]);
1581
1468
  }
1582
1469
  function $o(t, e, n, o, a) {
1583
1470
  const {
1584
1471
  appendedButtonClass: r,
1585
- appendedContent: s
1586
- } = n, u = B(() => t.showButtonWhenDisabled && (!t.editable || !t.readonly) && !t.disabled), p = B(() => s.value && !e.slots.groupTextTemplate), l = B(() => !!e.slots.groupTextTemplate), {
1587
- clearButtonClass: c,
1472
+ appendedContent: l
1473
+ } = n, i = R(() => t.showButtonWhenDisabled && (!t.editable || !t.readonly) && !t.disabled), d = R(() => l.value && !e.slots.groupTextTemplate), s = R(() => !!e.slots.groupTextTemplate), {
1474
+ clearButtonClass: p,
1588
1475
  clearButtonStyle: m,
1589
1476
  onClearValue: v,
1590
1477
  shouldShowClearButton: k
1591
1478
  } = o;
1592
- function E() {
1593
- return d("span", {
1479
+ function j() {
1480
+ return c("span", {
1594
1481
  id: "clearIcon",
1595
- class: c.value,
1482
+ class: p.value,
1596
1483
  style: m.value,
1597
- onClick: (T) => v(T)
1598
- }, [d("i", {
1484
+ onClick: (x) => v(x)
1485
+ }, [c("i", {
1599
1486
  class: "f-icon modal_close"
1600
1487
  }, null)]);
1601
1488
  }
1602
- function N(T) {
1603
- e.emit("iconMouseEnter", T);
1489
+ function H(x) {
1490
+ e.emit("iconMouseEnter", x);
1604
1491
  }
1605
- function $(T) {
1606
- e.emit("iconMouseLeave", T);
1492
+ function $(x) {
1493
+ e.emit("iconMouseLeave", x);
1607
1494
  }
1608
- function h(T) {
1609
- u.value && e.emit("clickHandle", {
1610
- originalEvent: T
1611
- }), T.stopPropagation();
1495
+ function h(x) {
1496
+ i.value && e.emit("clickHandle", {
1497
+ originalEvent: x
1498
+ }), x.stopPropagation();
1612
1499
  }
1613
1500
  const b = t.type === "password" ? a.onClickAppendedButton : h;
1614
- function P() {
1615
- return d("span", {
1501
+ function I() {
1502
+ return c("span", {
1616
1503
  class: "input-group-text",
1617
- onMouseenter: (T) => N(T),
1618
- onMouseleave: (T) => $(T),
1619
- innerHTML: s.value,
1620
- onClick: (T) => b(T)
1504
+ onMouseenter: (x) => H(x),
1505
+ onMouseleave: (x) => $(x),
1506
+ innerHTML: l.value,
1507
+ onClick: (x) => b(x)
1621
1508
  }, null);
1622
1509
  }
1623
- function D() {
1510
+ function G() {
1624
1511
  return e.slots.groupTextTemplate && e.slots.groupTextTemplate();
1625
1512
  }
1626
- function W() {
1627
- return p.value ? P : l.value ? D : "";
1513
+ function U() {
1514
+ return d.value ? I : s.value ? G : "";
1628
1515
  }
1629
- const q = W();
1630
- return () => d("div", {
1516
+ const X = U();
1517
+ return () => c("div", {
1631
1518
  class: r.value
1632
- }, [k.value && E(), q && q()]);
1519
+ }, [k.value && j(), X && X()]);
1633
1520
  }
1634
- const Ao = /* @__PURE__ */ ee({
1521
+ const Ho = /* @__PURE__ */ ee({
1635
1522
  name: "FInputGroup",
1636
- props: Pe,
1523
+ props: Ne,
1637
1524
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
1638
1525
  setup(t, e) {
1639
- const n = i(t.modelValue), o = i(t.modelValue), a = So(t, e, n, o), {
1526
+ const n = u(t.modelValue), o = u(t.modelValue), a = gt(t, e, n, o), {
1640
1527
  inputGroupClass: r,
1641
- inputType: s,
1642
- inputGroupStyle: u
1643
- } = a, p = Ro(t), {
1644
- shouldShowAppendedButton: l
1645
- } = p, c = Mo(t, e, a), {
1528
+ inputType: l,
1529
+ inputGroupStyle: i
1530
+ } = a, d = Ro(t), {
1531
+ shouldShowAppendedButton: s
1532
+ } = d, p = yt(t, e, a), {
1646
1533
  onMouseEnter: m,
1647
1534
  onMouseLeave: v
1648
- } = c, k = Oo(t, e, s, p), E = Po(t, e), N = No(t, e, k, a), $ = $o(t, e, p, c, k), h = zo(t, e), b = B(() => t.type === "number");
1649
- J(() => [t.value], ([D]) => {
1650
- n.value = D, o.value = D;
1651
- }), J(() => [t.modelValue], ([D]) => {
1652
- n.value = D, o.value = D;
1535
+ } = p, k = Oo(t, e, l, d), j = No(t, e), H = Po(t, e, k, a), $ = $o(t, e, d, p, k), h = zo(t, e), b = R(() => t.type === "number");
1536
+ J(() => [t.value], ([G]) => {
1537
+ n.value = G, o.value = G;
1538
+ }), J(() => [t.modelValue], ([G]) => {
1539
+ n.value = G, o.value = G;
1653
1540
  }), oe(() => {
1654
1541
  t.value && (n.value = t.value, o.value = t.value);
1655
1542
  });
1656
- const P = () => d(se, null, [d("div", {
1543
+ const I = () => c(se, null, [c("div", {
1657
1544
  id: t.id,
1658
1545
  class: r.value,
1659
- style: u.value,
1546
+ style: i.value,
1660
1547
  onMouseenter: m,
1661
1548
  onMouseleave: v
1662
- }, [b.value ? E() : d(se, null, [h(), N(), l.value && $()])])]);
1663
- return () => P();
1549
+ }, [b.value ? j() : c(se, null, [h(), H(), s.value && $()])])]);
1550
+ return () => I();
1664
1551
  }
1665
- }), I = {}, V = {}, O = {}, L = {};
1552
+ }), F = {}, S = {}, M = {}, E = {};
1666
1553
  let Be = !1;
1667
- function Ho() {
1668
- Be || (Be = !0, Tt.register(I, V, O, L), xt.register(I, V, O, L), kt.register(I, V, O, L), Bt.register(I, V, O, L), Ft.register(I, V, O, L), St.register(I, V, O, L), Mt.register(I, V, O, L), he.register(I, V, O, L), Et.register(I, V, O, L), It.register(I, V, O, L), Rt.register(I, V, O, L), Vt.register(I, V, O, L), Ot.register(I, V, O, L), jt.register(I, V, O, L), Lt.register(I, V, O, L), vt.register(I, V, O, L), Pt.register(I, V, O, L), Nt.register(I, V, O, L), zt.register(I, V, O, L), $t.register(I, V, O, L), At.register(I, V, O, L), Ht.register(I, V, O, L), Gt.register(I, V, O, L), Dt.register(I, V, O, L), qt.register(I, V, O, L), Ut.register(I, V, O, L), Wt.register(I, V, O, L), Xt.register(I, V, O, L), gt.register(I, V, O, L), Yt.register(I, V, O, L), Jt.register(I, V, O, L), Qt.register(I, V, O, L), Zt.register(I, V, O, L), Kt.register(I, V, O, L), _t.register(I, V, O, L), en.register(I, V, O, L), tn.register(I, V, O, L), on.register(I, V, O, L), an.register(I, V, O, L), nn.register(I, V, O, L), Tn.register(I, V, O), ln.register(I, V, O, L), sn.register(I, V, O, L), rn.register(I, V, O, L), un.register(I, V, O, L), cn.register(I, V, O, L), dn.register(I, V, O, L), pn.register(I, V, O, L), mn.register(I, V, O, L), fn.register(I, V, O, L), vn.register(I, V, O, L), hn.register(I, V, O, L), gn.register(I, V, O, L), bn.register(I, V, O, L), yn.register(I, V, O, L), Cn.register(I, V, O, L), wn.register(I, V, O, L), xn.register(I, V, O, L), kn.register(I, V, O, L));
1669
- }
1670
1554
  function Do() {
1671
- Ho();
1672
- function t(a, r) {
1673
- const s = V[a];
1674
- return s ? s(r) : {};
1555
+ Be || (Be = !0, Bt.register(F, S, M, E), kt.register(F, S, M, E), Ft.register(F, S, M, E), St.register(F, S, M, E), Mt.register(F, S, M, E), Et.register(F, S, M, E), It.register(F, S, M, E), he.register(F, S, M, E), Vt.register(F, S, M, E), Rt.register(F, S, M, E), jt.register(F, S, M, E), Ot.register(F, S, M, E), Lt.register(F, S, M, E), Nt.register(F, S, M, E), Pt.register(F, S, M, E), vt.register(F, S, M, E), zt.register(F, S, M, E), $t.register(F, S, M, E), Ht.register(F, S, M, E), At.register(F, S, M, E), Gt.register(F, S, M, E), qt.register(F, S, M, E), Wt.register(F, S, M, E), Ut.register(F, S, M, E), Xt.register(F, S, M, E), Yt.register(F, S, M, E), Qt.register(F, S, M, E), Jt.register(F, S, M, E), bt.register(F, S, M, E), Zt.register(F, S, M, E), _t.register(F, S, M, E), Kt.register(F, S, M, E), en.register(F, S, M, E), tn.register(F, S, M, E), nn.register(F, S, M, E), on.register(F, S, M, E), an.register(F, S, M, E), sn.register(F, S, M, E), rn.register(F, S, M, E), ln.register(F, S, M, E), Fn.register(F, S, M), un.register(F, S, M, E), cn.register(F, S, M, E), dn.register(F, S, M, E), pn.register(F, S, M, E), mn.register(F, S, M, E), fn.register(F, S, M, E), vn.register(F, S, M, E), hn.register(F, S, M, E), gn.register(F, S, M, E), yn.register(F, S, M, E), bn.register(F, S, M, E), Cn.register(F, S, M, E), xn.register(F, S, M, E), wn.register(F, S, M, E), Tn.register(F, S, M, E), kn.register(F, S, M, E), Bn.register(F, S, M, E), Sn.register(F, S, M, E), Dt.register(F, S, M, E), Mn.register(F, S, M, E));
1556
+ }
1557
+ function Ao() {
1558
+ Do();
1559
+ function t(a) {
1560
+ return F[a] || Ho;
1675
1561
  }
1676
- function e(a) {
1677
- return I[a] || Ao;
1562
+ function e(a, r) {
1563
+ const l = S[a];
1564
+ return l ? l(r) : {};
1678
1565
  }
1679
1566
  function n(a) {
1680
1567
  switch (a) {
@@ -1723,9 +1610,12 @@ function Do() {
1723
1610
  return "onSavedCommandListChanged";
1724
1611
  case "grid-field-editor":
1725
1612
  return "onChange";
1613
+ case "item-collection-editor":
1614
+ return "onChange";
1726
1615
  case "response-form-layout-setting":
1727
1616
  return "onChange";
1728
1617
  case "field-selector":
1618
+ case "binding-selector":
1729
1619
  return "onFieldSelected";
1730
1620
  case "schema-selector":
1731
1621
  return "onSchemaSelected";
@@ -1733,6 +1623,8 @@ function Do() {
1733
1623
  return "onMappingFieldsChanged";
1734
1624
  case "textarea":
1735
1625
  return "onValueChange";
1626
+ case "query-solution-config":
1627
+ return "onFieldsChanged";
1736
1628
  }
1737
1629
  }
1738
1630
  function o(a) {
@@ -1743,60 +1635,61 @@ function Do() {
1743
1635
  return "onClear";
1744
1636
  }
1745
1637
  }
1746
- return { resolveEditorProps: t, resolveEditorType: e, getChangeFunctionName: n, getClearFunctionName: o };
1638
+ return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
1747
1639
  }
1748
1640
  const Go = /* @__PURE__ */ ee({
1749
1641
  name: "FDynamicFormGroup",
1750
1642
  props: Le,
1751
1643
  emits: ["change", "update:modelValue"],
1752
1644
  setup(t, e) {
1753
- const n = i(t.id), o = i(t.customClass), a = i(t.editor), r = i(t.label), s = i(t.modelValue), u = i(t.readonly), p = i(t.required), l = i(t.showLabel), c = i(t.visible);
1754
- i(t.type);
1755
- const m = i(), {
1645
+ const n = u(t.id), o = u(t.customClass), a = u(t.editor), r = u(t.label), l = u(t.modelValue), i = u(t.readonly), d = u(t.required), s = u(t.showLabel), p = u(t.visible);
1646
+ u(t.type);
1647
+ const m = u(), {
1756
1648
  resolveEditorProps: v,
1757
1649
  resolveEditorType: k,
1758
- getChangeFunctionName: E,
1759
- getClearFunctionName: N
1760
- } = Do(), $ = B(() => ({
1650
+ getChangeFunctionName: j,
1651
+ getClearFunctionName: H
1652
+ } = Ao(), $ = R(() => ({
1761
1653
  "form-group": !0,
1762
1654
  "farris-form-group": !0,
1763
1655
  "common-group": !0,
1764
- "q-state-readonly": u.value
1656
+ "q-state-readonly": i.value
1765
1657
  }));
1766
- function h(D, W) {
1767
- s.value = W !== void 0 ? W : D, e.emit("update:modelValue", s.value), e.emit("change", s.value);
1658
+ function h(G, U) {
1659
+ l.value = U !== void 0 ? U : G, e.emit("update:modelValue", l.value), e.emit("change", l.value);
1768
1660
  }
1769
1661
  function b() {
1770
1662
  e.emit("update:modelValue", "");
1771
1663
  }
1772
- const P = B(() => {
1773
- const D = a.value.type || "input-group", W = k(D), q = v(D, a.value), T = E(D), H = N(a.value.type);
1774
- return q[T] = h, q[H] = b, (q.id == null || q.id === "") && (q.id = n.value), () => d(W, ye({
1664
+ const I = R(() => {
1665
+ const G = a.value.type || "input-group", U = k(G), X = v(G, a.value), x = j(G), D = H(a.value.type);
1666
+ return D && (X[D] = b), X[x] = h, (X.id == null || X.id === "") && (X.id = n.value), () => c(U, ye({
1775
1667
  ref: m
1776
- }, q, {
1777
- modelValue: s.value,
1778
- "onUpdate:modelValue": (f) => s.value = f
1779
- }), null);
1668
+ }, X, {
1669
+ modelValue: l.value,
1670
+ "onUpdate:modelValue": (f) => l.value = f
1671
+ }), e.slots);
1780
1672
  });
1781
- return J([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible], ([D, W, q, T, H, f, w, x, R]) => {
1782
- n.value = D, o.value = W, a.value = q, r.value = T, s.value = H, u.value = f, p.value = w, l.value = x, c.value = R;
1673
+ return J([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible], ([G, U, X, x, D, f, C, w, O]) => {
1674
+ n.value = G, o.value = U, a.value = X, r.value = x, l.value = D, i.value = f, d.value = C, s.value = w, p.value = O;
1783
1675
  }), e.expose({
1784
1676
  editorRef: m
1785
- }), () => c.value && d("div", {
1677
+ }), () => p.value && c("div", {
1786
1678
  id: `${n.value}-input-group`,
1787
- class: o.value
1788
- }, [d("div", {
1679
+ class: o.value,
1680
+ style: t.customStyle
1681
+ }, [c("div", {
1789
1682
  class: "farris-group-wrap"
1790
- }, [d("div", {
1683
+ }, [c("div", {
1791
1684
  class: $.value
1792
- }, [l.value && d(ho, {
1685
+ }, [s.value && c(Co, {
1793
1686
  id: `${n.value}-lable`,
1794
- required: p.value,
1687
+ required: d.value,
1795
1688
  text: r.value,
1796
1689
  title: r.value
1797
- }, null), d("div", {
1690
+ }, null), c("div", {
1798
1691
  class: "farris-input-wrap"
1799
- }, [P.value()])])])]);
1692
+ }, [I.value()])])])]);
1800
1693
  }
1801
1694
  }), te = class te {
1802
1695
  /**
@@ -1811,7 +1704,7 @@ const Go = /* @__PURE__ */ ee({
1811
1704
  */
1812
1705
  static getAllInputTypes() {
1813
1706
  const e = [];
1814
- for (let n in te.fieldControlTypeMapping)
1707
+ for (const n in te.fieldControlTypeMapping)
1815
1708
  te.fieldControlTypeMapping[n].forEach((o) => {
1816
1709
  e.find((a) => a.key === o.key && a.value === o.value) || e.push({ key: o.key, value: o.value });
1817
1710
  });
@@ -1821,54 +1714,55 @@ const Go = /* @__PURE__ */ ee({
1821
1714
  /**
1822
1715
  * <字段类型,可配置的控件类型列表>的映射
1823
1716
  */
1824
- S(te, "fieldControlTypeMapping", {
1717
+ B(te, "fieldControlTypeMapping", {
1825
1718
  String: [
1826
- { key: A["input-group"].type, value: A["input-group"].name },
1827
- { key: A.lookup.type, value: A.lookup.name },
1828
- { key: A["date-picker"].type, value: A["date-picker"].name },
1829
- { key: A["check-box"].type, value: A["check-box"].name },
1830
- { key: A["radio-group"].type, value: A["radio-group"].name },
1831
- { key: A["combo-list"].type, value: A["combo-list"].name },
1832
- { key: A.textarea.type, value: A.textarea.name }
1719
+ { key: z["input-group"].type, value: z["input-group"].name },
1720
+ { key: z.lookup.type, value: z.lookup.name },
1721
+ { key: z["date-picker"].type, value: z["date-picker"].name },
1722
+ { key: z["check-box"].type, value: z["check-box"].name },
1723
+ { key: z["check-group"].type, value: z["check-group"].name },
1724
+ { key: z["radio-group"].type, value: z["radio-group"].name },
1725
+ { key: z["combo-list"].type, value: z["combo-list"].name },
1726
+ { key: z.textarea.type, value: z.textarea.name }
1833
1727
  ],
1834
1728
  Text: [
1835
- { key: A.textarea.type, value: A.textarea.name },
1836
- { key: A.lookup.type, value: A.lookup.name }
1729
+ { key: z.textarea.type, value: z.textarea.name },
1730
+ { key: z.lookup.type, value: z.lookup.name }
1837
1731
  ],
1838
1732
  Decimal: [
1839
- { key: A["number-spinner"].type, value: A["number-spinner"].name }
1733
+ { key: z["number-spinner"].type, value: z["number-spinner"].name }
1840
1734
  ],
1841
1735
  Integer: [
1842
- { key: A["number-spinner"].type, value: A["number-spinner"].name }
1736
+ { key: z["number-spinner"].type, value: z["number-spinner"].name }
1843
1737
  ],
1844
1738
  Number: [
1845
- { key: A["number-spinner"].type, value: A["number-spinner"].name }
1739
+ { key: z["number-spinner"].type, value: z["number-spinner"].name }
1846
1740
  ],
1847
1741
  BigNumber: [
1848
- { key: A["number-spinner"].type, value: A["number-spinner"].name }
1742
+ { key: z["number-spinner"].type, value: z["number-spinner"].name }
1849
1743
  ],
1850
1744
  Date: [
1851
- { key: A["date-picker"].type, value: A["date-picker"].name }
1745
+ { key: z["date-picker"].type, value: z["date-picker"].name }
1852
1746
  ],
1853
1747
  DateTime: [
1854
- { key: A["date-picker"].type, value: A["date-picker"].name }
1748
+ { key: z["date-picker"].type, value: z["date-picker"].name }
1855
1749
  ],
1856
1750
  Boolean: [
1857
- { key: A.switch.type, value: A.switch.name },
1858
- { key: A["check-box"].type, value: A["check-box"].name }
1751
+ { key: z.switch.type, value: z.switch.name },
1752
+ { key: z["check-box"].type, value: z["check-box"].name }
1859
1753
  ],
1860
1754
  Enum: [
1861
- { key: A["combo-list"].type, value: A["combo-list"].name },
1862
- { key: A["radio-group"].type, value: A["radio-group"].name }
1755
+ { key: z["combo-list"].type, value: z["combo-list"].name },
1756
+ { key: z["radio-group"].type, value: z["radio-group"].name }
1863
1757
  ],
1864
1758
  Object: [
1865
- { key: A.lookup.type, value: A.lookup.name },
1866
- { key: A["combo-list"].type, value: A["combo-list"].name },
1867
- { key: A["radio-group"].type, value: A["radio-group"].name }
1759
+ { key: z.lookup.type, value: z.lookup.name },
1760
+ { key: z["combo-list"].type, value: z["combo-list"].name },
1761
+ { key: z["radio-group"].type, value: z["radio-group"].name }
1868
1762
  ]
1869
1763
  });
1870
1764
  let Fe = te;
1871
- i(0);
1765
+ u(0);
1872
1766
  const qo = {
1873
1767
  id: { type: String, default: "" },
1874
1768
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
@@ -1890,7 +1784,7 @@ ce(
1890
1784
  be,
1891
1785
  void 0
1892
1786
  );
1893
- const Uo = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-design.gitee.io/grid-field-editor.schema.json", Xo = "response-form-layout-setting", Yo = "A Farris Data Grid Component", Jo = "object", Qo = {
1787
+ const Uo = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-design.gitee.io/grid-field-editor.schema.json", Xo = "response-form-layout-setting", Yo = "A Farris Data Grid Component", Qo = "object", Jo = {
1894
1788
  id: {
1895
1789
  description: "The unique identifier for a Input Group",
1896
1790
  type: "string"
@@ -1913,15 +1807,15 @@ const Uo = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-
1913
1807
  }, Zo = [
1914
1808
  "id",
1915
1809
  "type"
1916
- ], Ko = {
1810
+ ], _o = {
1917
1811
  $schema: Uo,
1918
1812
  $id: Wo,
1919
1813
  title: Xo,
1920
1814
  description: Yo,
1921
- type: Jo,
1922
- properties: Qo,
1815
+ type: Qo,
1816
+ properties: Jo,
1923
1817
  required: Zo
1924
- }, _o = {
1818
+ }, Ko = {
1925
1819
  initialState: {
1926
1820
  type: Object,
1927
1821
  default: {
@@ -1932,7 +1826,7 @@ const Uo = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-
1932
1826
  }
1933
1827
  }
1934
1828
  };
1935
- Bn(_o, Ko, Xn, Zn);
1829
+ En(Ko, _o, Zn, to);
1936
1830
  const ea = {
1937
1831
  width: { Type: Number, default: 400 },
1938
1832
  type: { Type: String, default: "info" },
@@ -1962,7 +1856,8 @@ async function na(t) {
1962
1856
  } finally {
1963
1857
  n == null || n.removeAllRanges(), window.document.body.removeChild(e);
1964
1858
  }
1965
- if (!a) throw Ce();
1859
+ if (!a)
1860
+ throw Ce();
1966
1861
  }
1967
1862
  async function oa(t) {
1968
1863
  try {
@@ -1982,41 +1877,41 @@ function aa() {
1982
1877
  return { onCopy: t };
1983
1878
  }
1984
1879
  function la(t, e, n, o) {
1985
- const a = i(14), r = i(140), s = i(""), u = i(o.value.length), p = B(() => o.value), l = B(() => ({
1880
+ const a = u(14), r = u(140), l = u(""), i = u(o.value.length), d = R(() => o.value), s = R(() => ({
1986
1881
  "font-size": `${a.value}px`,
1987
1882
  height: "100%"
1988
1883
  }));
1989
- function c(m) {
1884
+ function p(m) {
1990
1885
  if (m.currentTarget) {
1991
1886
  const v = m.currentTarget.value || "";
1992
- u.value = v.length;
1887
+ i.value = v.length;
1993
1888
  }
1994
1889
  }
1995
- return () => d(se, null, [d("textarea", {
1890
+ return () => c(se, null, [c("textarea", {
1996
1891
  title: "promptMessage",
1997
1892
  name: "promptMessage",
1998
1893
  class: "form-control",
1999
- style: l.value,
1894
+ style: s.value,
2000
1895
  rows: "4",
2001
1896
  maxlength: r.value,
2002
- onInput: (m) => c(m)
2003
- }, [p.value]), d("span", {
1897
+ onInput: (m) => p(m)
1898
+ }, [d.value]), c("span", {
2004
1899
  class: "textarea-wordcount",
2005
- title: s.value,
1900
+ title: l.value,
2006
1901
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
2007
- }, [u.value + " / " + r.value])]);
1902
+ }, [i.value + " / " + r.value])]);
2008
1903
  }
2009
1904
  function sa(t, e, n, o) {
2010
1905
  const a = la(t, e, n, o), r = /* @__PURE__ */ new Map([["text-area", a]]);
2011
- function s(u) {
2012
- return r.get(u) || null;
1906
+ function l(i) {
1907
+ return r.get(i) || null;
2013
1908
  }
2014
- return { getEditorRender: s };
1909
+ return { getEditorRender: l };
2015
1910
  }
2016
1911
  function ra() {
2017
- const t = i(!1), e = i("复制成功");
1912
+ const t = u(!1), e = u("复制成功");
2018
1913
  return {
2019
- feedbackStyle: B(() => {
1914
+ feedbackStyle: R(() => {
2020
1915
  const o = {
2021
1916
  position: "absolute",
2022
1917
  left: "50%",
@@ -2044,7 +1939,7 @@ function ia(t, e) {
2044
1939
  return () => n && n();
2045
1940
  }
2046
1941
  function ua(t) {
2047
- const e = i(3), n = i(480), o = B(() => !!t.value && !!t.value.date), a = B(() => `发生时间 : ${t.value && t.value.date || ""}`), r = B(() => !!t.value && !!t.value.detail), s = B(() => {
1942
+ const e = u(3), n = u(480), o = R(() => !!t.value && !!t.value.date), a = R(() => `发生时间 : ${t.value && t.value.date || ""}`), r = R(() => !!t.value && !!t.value.detail), l = R(() => {
2048
1943
  const $ = `${n.value}px`;
2049
1944
  return {
2050
1945
  overflow: "hidden",
@@ -2054,66 +1949,66 @@ function ua(t) {
2054
1949
  "-webkit-line-clamp": e.value,
2055
1950
  "max-height": $
2056
1951
  };
2057
- }), u = B(() => t.value && t.value.detail || ""), p = B(() => !0), l = i(!1), c = i("展开"), m = i("收起"), v = B(() => {
1952
+ }), i = R(() => t.value && t.value.detail || ""), d = R(() => !0), s = u(!1), p = u("展开"), m = u("收起"), v = R(() => {
2058
1953
  const $ = {
2059
1954
  display: "block",
2060
1955
  color: "#2A87FF"
2061
1956
  };
2062
- return $["text-align"] = l.value ? "" : "right", $;
1957
+ return $["text-align"] = s.value ? "" : "right", $;
2063
1958
  });
2064
1959
  function k($, h) {
2065
- l.value = !l.value, e.value = l.value ? 20 : 3;
1960
+ s.value = !s.value, e.value = s.value ? 20 : 3;
2066
1961
  }
2067
- function E($) {
1962
+ function j($) {
2068
1963
  return k();
2069
1964
  }
2070
- function N($) {
1965
+ function H($) {
2071
1966
  return k();
2072
1967
  }
2073
- return () => d("div", {
1968
+ return () => c("div", {
2074
1969
  class: "toast-msg-detail"
2075
- }, [o.value && d("div", null, [a.value]), r.value && d("div", {
1970
+ }, [o.value && c("div", null, [a.value]), r.value && c("div", {
2076
1971
  id: "exception_error_msg",
2077
1972
  ref: "exceptionMessageRef",
2078
- style: s.value
2079
- }, [le("详细信息 : "), d("span", {
2080
- innerHTML: u.value
2081
- }, null)]), p.value && d("span", {
1973
+ style: l.value
1974
+ }, [le("详细信息 : "), c("span", {
1975
+ innerHTML: i.value
1976
+ }, null)]), d.value && c("span", {
2082
1977
  style: v.value
2083
- }, [l.value && d("span", {
2084
- onClick: E,
1978
+ }, [s.value && c("span", {
1979
+ onClick: j,
2085
1980
  style: "cursor: pointer;"
2086
- }, [m.value]), !l.value && d("span", {
2087
- onClick: N,
1981
+ }, [m.value]), !s.value && c("span", {
1982
+ onClick: H,
2088
1983
  style: "cursor: pointer;"
2089
- }, [c.value])])]);
1984
+ }, [p.value])])]);
2090
1985
  }
2091
1986
  function ca(t) {
2092
- return () => d("p", {
1987
+ return () => c("p", {
2093
1988
  class: "toast-msg-detail",
2094
1989
  innerHTML: t.value
2095
1990
  }, null);
2096
1991
  }
2097
1992
  function da(t, e, n, o) {
2098
- const a = i(t.exceptionInfo), r = B(() => {
1993
+ const a = u(t.exceptionInfo), r = R(() => {
2099
1994
  const v = {
2100
1995
  "f-icon": !0
2101
1996
  }, k = `f-icon-${e.value}`;
2102
1997
  return v[k] = !0, v;
2103
- }), s = B(() => n.value || a.value && a.value.message), u = B(() => o.value), p = B(() => !!o.value), l = B(() => !!a.value);
2104
- function c() {
2105
- return l.value ? ua(a) : p.value ? ca(u) : () => null;
1998
+ }), l = R(() => n.value || a.value && a.value.message), i = R(() => o.value), d = R(() => !!o.value), s = R(() => !!a.value);
1999
+ function p() {
2000
+ return s.value ? ua(a) : d.value ? ca(i) : () => null;
2106
2001
  }
2107
- const m = c();
2108
- return () => d(se, null, [d("div", {
2002
+ const m = p();
2003
+ return () => c(se, null, [c("div", {
2109
2004
  class: "float-left modal-tips-iconwrap"
2110
- }, [d("span", {
2005
+ }, [c("span", {
2111
2006
  class: r.value
2112
- }, null)]), d("div", {
2007
+ }, null)]), c("div", {
2113
2008
  class: "modal-tips-content"
2114
- }, [d("p", {
2009
+ }, [c("p", {
2115
2010
  class: "toast-msg-title",
2116
- innerHTML: s.value
2011
+ innerHTML: l.value
2117
2012
  }, null), m()])]);
2118
2013
  }
2119
2014
  function pa(t, e, n) {
@@ -2121,13 +2016,13 @@ function pa(t, e, n) {
2121
2016
  onCopy: o
2122
2017
  } = e, {
2123
2018
  toShowFeedback: a
2124
- } = n, r = i("复制成功"), s = i("复制详细信息"), u = i(t.exceptionInfo || {
2019
+ } = n, r = u("复制成功"), l = u("复制详细信息"), i = u(t.exceptionInfo || {
2125
2020
  date: "",
2126
2021
  message: "",
2127
2022
  detail: ""
2128
- }), p = B(() => u.value && u.value.detail || "");
2129
- function l(c) {
2130
- o(p.value).catch((m) => {
2023
+ }), d = R(() => i.value && i.value.detail || "");
2024
+ function s(p) {
2025
+ o(d.value).catch((m) => {
2131
2026
  r.value = "复制失败";
2132
2027
  }).finally(() => {
2133
2028
  a.value = !0, setTimeout(() => {
@@ -2135,78 +2030,78 @@ function pa(t, e, n) {
2135
2030
  }, 700);
2136
2031
  });
2137
2032
  }
2138
- return () => d("span", {
2033
+ return () => c("span", {
2139
2034
  style: "width: 100%;color: #2A87FF;padding-left: 37px;"
2140
- }, [d("span", {
2141
- onClick: l,
2035
+ }, [c("span", {
2036
+ onClick: s,
2142
2037
  style: "cursor: pointer;"
2143
- }, [s.value])]);
2038
+ }, [l.value])]);
2144
2039
  }
2145
2040
  function ma(t, e, n, o) {
2146
- const a = i(t.type), r = i([]), s = i(t.exceptionInfo), u = i(t.okButtonText), p = i(t.cancelButtonText), l = i(!0), c = i(!0), m = B(() => !!(r.value && r.value.length)), v = B(() => s.value && s.value.date && s.value.message && s.value.detail), k = B(() => !(r.value && r.value.length) && (u.value || p.value)), E = B(() => c.value && u.value), N = B(() => l.value && p.value), $ = pa(t, n, o);
2147
- function h(P) {
2041
+ const a = u(t.type), r = u([]), l = u(t.exceptionInfo), i = u(t.okButtonText), d = u(t.cancelButtonText), s = u(!0), p = u(!0), m = R(() => !!(r.value && r.value.length)), v = R(() => l.value && l.value.date && l.value.message && l.value.detail), k = R(() => !(r.value && r.value.length) && (i.value || d.value)), j = R(() => p.value && i.value), H = R(() => s.value && d.value), $ = pa(t, n, o);
2042
+ function h(I) {
2148
2043
  a.value === "question" && e.emit("reject"), e.emit("close");
2149
2044
  }
2150
- function b(P) {
2045
+ function b(I) {
2151
2046
  a.value === "question" && e.emit("accept"), e.emit("close");
2152
2047
  }
2153
- return () => d("div", {
2048
+ return () => c("div", {
2154
2049
  class: "modal-footer"
2155
- }, [v.value && $(), k.value && N.value && d("button", {
2050
+ }, [v.value && $(), k.value && H.value && c("button", {
2156
2051
  type: "button",
2157
2052
  class: "btn btn-secondary btn-lg",
2158
2053
  onClick: h
2159
- }, [p.value]), k.value && E.value && d("button", {
2054
+ }, [d.value]), k.value && j.value && c("button", {
2160
2055
  type: "button",
2161
2056
  class: "btn btn-primary btn-lg",
2162
2057
  onClick: b
2163
- }, [u.value]), m.value && r.value.length && r.value.map((P) => d("button", {
2058
+ }, [i.value]), m.value && r.value.length && r.value.map((I) => c("button", {
2164
2059
  type: "button",
2165
- onClick: P.handle,
2166
- class: P.class
2167
- }, [P.iconClass && d("span", {
2168
- class: P.iconClass
2169
- }, null), P.text]))]);
2060
+ onClick: I.handle,
2061
+ class: I.class
2062
+ }, [I.iconClass && c("span", {
2063
+ class: I.iconClass
2064
+ }, null), I.text]))]);
2170
2065
  }
2171
2066
  const ue = /* @__PURE__ */ ee({
2172
2067
  name: "FMessageBox",
2173
2068
  props: ea,
2174
2069
  emits: ["accept", "reject", "close"],
2175
2070
  setup(t, e) {
2176
- const n = i(t.type), o = i(t.title), a = i(t.detail), r = B(() => {
2071
+ const n = u(t.type), o = u(t.title), a = u(t.detail), r = R(() => {
2177
2072
  const $ = {
2178
2073
  "modal-tips": !0,
2179
2074
  "d-flex": !0,
2180
2075
  "flex-row": !0
2181
2076
  }, h = `messager-type-${n.value}`;
2182
2077
  return $[h] = !0, $;
2183
- }), s = B(() => {
2078
+ }), l = R(() => {
2184
2079
  const $ = {};
2185
2080
  return n.value === "prompt" ? $.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && ($.padding = "0.5rem 1.5rem 1rem 1.5rem"), $;
2186
- }), u = aa(), p = sa(t, n, o, a), l = ra(), {
2187
- feedbackStyle: c,
2081
+ }), i = aa(), d = sa(t, n, o, a), s = ra(), {
2082
+ feedbackStyle: p,
2188
2083
  feedbackMessage: m
2189
- } = l;
2084
+ } = s;
2190
2085
  function v() {
2191
- return d("div", {
2192
- style: c.value
2086
+ return c("div", {
2087
+ style: p.value
2193
2088
  }, [m.value]);
2194
2089
  }
2195
2090
  function k() {
2196
2091
  switch (n.value) {
2197
2092
  case "prompt":
2198
- return ia(t, p);
2093
+ return ia(t, d);
2199
2094
  default:
2200
2095
  return da(t, n, o, a);
2201
2096
  }
2202
2097
  }
2203
- const E = k(), N = ma(t, e, u, l);
2204
- return () => d("div", {
2098
+ const j = k(), H = ma(t, e, i, s);
2099
+ return () => c("div", {
2205
2100
  class: "farris-messager"
2206
- }, [d("section", {
2101
+ }, [c("section", {
2207
2102
  class: r.value,
2208
- style: s.value
2209
- }, [E()]), N(), v()]);
2103
+ style: l.value
2104
+ }, [j()]), H(), v()]);
2210
2105
  }
2211
2106
  }), fa = {
2212
2107
  /**
@@ -2333,12 +2228,12 @@ class Q {
2333
2228
  return this.x = e.x, this.y = e.y, this;
2334
2229
  }
2335
2230
  }
2336
- class _ {
2231
+ class K {
2337
2232
  constructor(e, n) {
2338
2233
  this.width = e, this.height = n;
2339
2234
  }
2340
2235
  static getCurrent(e) {
2341
- const n = new _(0, 0);
2236
+ const n = new K(0, 0);
2342
2237
  if (window) {
2343
2238
  const o = window.getComputedStyle(e);
2344
2239
  return o && (n.width = parseInt(o.getPropertyValue("width"), 10), n.height = parseInt(o.getPropertyValue("height"), 10)), n;
@@ -2346,278 +2241,278 @@ class _ {
2346
2241
  return null;
2347
2242
  }
2348
2243
  static copy(e) {
2349
- return new _(0, 0).set(e);
2244
+ return new K(0, 0).set(e);
2350
2245
  }
2351
2246
  set(e) {
2352
2247
  return this.width = e.width, this.height = e.height, this;
2353
2248
  }
2354
2249
  }
2355
2250
  function va(t, e) {
2356
- const n = i(), o = i(), a = i(), r = i(), s = i(), u = i(), p = i(), l = i(), c = i(), m = i(), v = i(), k = i(), E = i(t.draggable), N = i(!1);
2251
+ const n = u(), o = u(), a = u(), r = u(), l = u(), i = u(), d = u(), s = u(), p = u(), m = u(), v = u(), k = u(), j = u(t.draggable), H = u(!1);
2357
2252
  function $() {
2358
- const C = o.value || document.body, y = window.getComputedStyle(C);
2359
- if (!y || !n.value)
2253
+ const y = o.value || document.body, g = window.getComputedStyle(y);
2254
+ if (!g || !n.value)
2360
2255
  return;
2361
- const j = Q.getTransformInfo(n.value), G = {};
2362
- p.value && (G.deltaL = n.value.offsetLeft - p.value.x, G.deltaT = n.value.offsetTop - p.value.y);
2363
- const U = y.getPropertyValue("position");
2364
- G.width = C.clientWidth, G.height = C.clientHeight, G.pr = parseInt(y.getPropertyValue("padding-right"), 10), G.pb = parseInt(y.getPropertyValue("padding-bottom"), 10), G.position = y.getPropertyValue("position"), U === "static" && (C.style.position = "relative"), G.translateX = j.x, G.translateY = j.y, m.value = G;
2256
+ const V = Q.getTransformInfo(n.value), A = {};
2257
+ d.value && (A.deltaL = n.value.offsetLeft - d.value.x, A.deltaT = n.value.offsetTop - d.value.y);
2258
+ const q = g.getPropertyValue("position");
2259
+ A.width = y.clientWidth, A.height = y.clientHeight, A.pr = parseInt(g.getPropertyValue("padding-right"), 10), A.pb = parseInt(g.getPropertyValue("padding-bottom"), 10), A.position = g.getPropertyValue("position"), q === "static" && (y.style.position = "relative"), A.translateX = V.x, A.translateY = V.y, m.value = A;
2365
2260
  }
2366
- function h(C) {
2261
+ function h(y) {
2367
2262
  if (n.value) {
2368
- r.value = _.getCurrent(n.value), s.value = Q.getCurrent(n.value), u.value = r.value ? _.copy(r.value) : null, p.value = s.value ? Q.copy(s.value) : null, $();
2369
- const y = C.target.getAttribute("type") || "";
2370
- l.value = {
2371
- n: !!y.match(/n/),
2372
- s: !!y.match(/s/),
2373
- w: !!y.match(/w/),
2374
- e: !!y.match(/e/)
2263
+ r.value = K.getCurrent(n.value), l.value = Q.getCurrent(n.value), i.value = r.value ? K.copy(r.value) : null, d.value = l.value ? Q.copy(l.value) : null, $();
2264
+ const g = y.target.getAttribute("type") || "";
2265
+ s.value = {
2266
+ n: !!g.match(/n/),
2267
+ s: !!g.match(/s/),
2268
+ w: !!g.match(/w/),
2269
+ e: !!g.match(/e/)
2375
2270
  };
2376
2271
  }
2377
2272
  }
2378
2273
  function b() {
2379
- var C, y, j, G;
2274
+ var y, g, V, A;
2380
2275
  if (n.value) {
2381
- const U = n.value;
2382
- l.value && ((l.value.n || l.value.s) && ((C = u.value) != null && C.height) && (U.style.height = u.value.height + "px"), (l.value.w || l.value.e) && ((y = u.value) != null && y.width) && (U.style.width = u.value.width + "px"), p.value && ((j = p.value) != null && j.x && (U.style.left = p.value.x + "px"), (G = p.value) != null && G.y && (U.style.top = p.value.y + "px")));
2276
+ const q = n.value;
2277
+ s.value && ((s.value.n || s.value.s) && ((y = i.value) != null && y.height) && (q.style.height = i.value.height + "px"), (s.value.w || s.value.e) && ((g = i.value) != null && g.width) && (q.style.width = i.value.width + "px"), d.value && ((V = d.value) != null && V.x && (q.style.left = d.value.x + "px"), (A = d.value) != null && A.y && (q.style.top = d.value.y + "px")));
2383
2278
  }
2384
2279
  }
2385
- function P() {
2386
- const C = t.minHeight ? t.minHeight : 1, y = t.minWidth ? t.minWidth : 1;
2387
- u.value && p.value && l.value && r.value && (u.value.height < C && (u.value.height = C, l.value.n && s.value && (p.value.y = s.value.y + (r.value.height - C))), u.value.width < y && (u.value.width = y, l.value.w && s.value && (p.value.x = s.value.x + (r.value.width - y))), t.maxHeight && u.value.height > t.maxHeight && (u.value.height = t.maxHeight, s.value && l.value.n && (p.value.y = s.value.y + (r.value.height - t.maxHeight))), t.maxWidth && u.value.width > t.maxWidth && (u.value.width = t.maxWidth, l.value.w && s.value && (p.value.x = s.value.x + (r.value.width - t.maxWidth))));
2280
+ function I() {
2281
+ const y = t.minHeight ? t.minHeight : 1, g = t.minWidth ? t.minWidth : 1;
2282
+ i.value && d.value && s.value && r.value && (i.value.height < y && (i.value.height = y, s.value.n && l.value && (d.value.y = l.value.y + (r.value.height - y))), i.value.width < g && (i.value.width = g, s.value.w && l.value && (d.value.x = l.value.x + (r.value.width - g))), t.maxHeight && i.value.height > t.maxHeight && (i.value.height = t.maxHeight, l.value && s.value.n && (d.value.y = l.value.y + (r.value.height - t.maxHeight))), t.maxWidth && i.value.width > t.maxWidth && (i.value.width = t.maxWidth, s.value.w && l.value && (d.value.x = l.value.x + (r.value.width - t.maxWidth))));
2388
2283
  }
2389
- function D() {
2284
+ function G() {
2390
2285
  if (o.value) {
2391
- const C = m.value;
2392
- if (p.value && u.value && l.value && r.value) {
2393
- const y = C.width - C.pr - C.deltaL - C.translateX - p.value.x, j = C.height - C.pb - C.deltaT - C.translateY - p.value.y;
2394
- l.value.n && p.value.y + C.translateY < 0 && s.value && (p.value.y = -C.translateY, u.value.height = r.value.height + s.value.y + C.translateY), l.value.w && p.value.x + C.translateX < 0 && s.value && (p.value.x = -C.translateX, u.value.width = r.value.width + s.value.x + C.translateX), u.value.width > y && (u.value.width = y), u.value.height > j && (u.value.height = j);
2286
+ const y = m.value;
2287
+ if (d.value && i.value && s.value && r.value) {
2288
+ const g = y.width - y.pr - y.deltaL - y.translateX - d.value.x, V = y.height - y.pb - y.deltaT - y.translateY - d.value.y;
2289
+ s.value.n && d.value.y + y.translateY < 0 && l.value && (d.value.y = -y.translateY, i.value.height = r.value.height + l.value.y + y.translateY), s.value.w && d.value.x + y.translateX < 0 && l.value && (d.value.x = -y.translateX, i.value.width = r.value.width + l.value.x + y.translateX), i.value.width > g && (i.value.width = g), i.value.height > V && (i.value.height = V);
2395
2290
  }
2396
2291
  }
2397
2292
  }
2398
- function W(C) {
2399
- if (!a.value || !r.value || !s.value || !l.value)
2293
+ function U(y) {
2294
+ if (!a.value || !r.value || !l.value || !s.value)
2400
2295
  return;
2401
- C.subtract(a.value);
2402
- const y = C.x, j = C.y;
2403
- l.value.n ? (p.value.y = s.value.y + j, u.value.height = r.value.height - j) : l.value.s && (u.value.height = r.value.height + j), l.value.e ? u.value.width = r.value.width + y : l.value.w && (u.value.width = r.value.width - y, p.value.x = s.value.x + y), D(), P(), b();
2296
+ y.subtract(a.value);
2297
+ const g = y.x, V = y.y;
2298
+ s.value.n ? (d.value.y = l.value.y + V, i.value.height = r.value.height - V) : s.value.s && (i.value.height = r.value.height + V), s.value.e ? i.value.width = r.value.width + g : s.value.w && (i.value.width = r.value.width - g, d.value.x = l.value.x + g), G(), I(), b();
2404
2299
  }
2405
- function q(C) {
2406
- if (!c.value)
2300
+ function X(y) {
2301
+ if (!p.value)
2407
2302
  return;
2408
- const y = Q.fromEvent(C);
2409
- y && W(y);
2303
+ const g = Q.fromEvent(y);
2304
+ g && U(g);
2410
2305
  }
2411
- function T() {
2306
+ function x() {
2412
2307
  if (n.value) {
2413
2308
  const {
2414
- width: C,
2415
- height: y,
2416
- x: j,
2417
- y: G
2418
- } = n.value.getBoundingClientRect(), U = Q.getTransformInfo(n.value);
2309
+ width: y,
2310
+ height: g,
2311
+ x: V,
2312
+ y: A
2313
+ } = n.value.getBoundingClientRect(), q = Q.getTransformInfo(n.value);
2419
2314
  return {
2420
2315
  size: {
2421
- width: C,
2422
- height: y
2316
+ width: y,
2317
+ height: g
2423
2318
  },
2424
2319
  position: {
2425
- x: j - U.x,
2426
- y: G - U.y
2320
+ x: V - q.x,
2321
+ y: A - q.y
2427
2322
  }
2428
2323
  };
2429
2324
  }
2430
2325
  return null;
2431
2326
  }
2432
- function H(C) {
2327
+ function D(y) {
2433
2328
  if (n.value) {
2434
- const y = T();
2435
- v.value = y;
2329
+ const g = x();
2330
+ v.value = g;
2436
2331
  }
2437
- a.value = void 0, r.value = null, s.value = null, u.value = null, p.value = null, l.value = null, c.value = null, document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", H);
2332
+ a.value = void 0, r.value = null, l.value = null, i.value = null, d.value = null, s.value = null, p.value = null, document.removeEventListener("mousemove", X), document.removeEventListener("mouseup", D);
2438
2333
  }
2439
2334
  function f() {
2440
- document.addEventListener("mousemove", q), document.addEventListener("mouseup", H);
2335
+ document.addEventListener("mousemove", X), document.addEventListener("mouseup", D);
2441
2336
  }
2442
- function w(C) {
2443
- C instanceof MouseEvent && C.button === 2 || E.value && (C.stopPropagation(), C.preventDefault(), a.value = Q.fromEvent(C), c.value = C.target, h(C), f());
2337
+ function C(y) {
2338
+ y instanceof MouseEvent && y.button === 2 || j.value && (y.stopPropagation(), y.preventDefault(), a.value = Q.fromEvent(y), p.value = y.target, h(y), f());
2444
2339
  }
2445
- function x(C) {
2446
- return n.value = C, d(se, null, [d("div", {
2340
+ function w(y) {
2341
+ return n.value = y, c(se, null, [c("div", {
2447
2342
  class: "fv-resizable-handle fv-resizable-n",
2448
2343
  type: "n",
2449
- onMousedown: (y) => w(y)
2450
- }, null), d("div", {
2344
+ onMousedown: (g) => C(g)
2345
+ }, null), c("div", {
2451
2346
  class: "fv-resizable-handle fv-resizable-e",
2452
2347
  type: "e",
2453
- onMousedown: (y) => w(y)
2454
- }, null), d("div", {
2348
+ onMousedown: (g) => C(g)
2349
+ }, null), c("div", {
2455
2350
  class: "fv-resizable-handle fv-resizable-s",
2456
2351
  type: "s",
2457
- onMousedown: (y) => w(y)
2458
- }, null), d("div", {
2352
+ onMousedown: (g) => C(g)
2353
+ }, null), c("div", {
2459
2354
  class: "fv-resizable-handle fv-resizable-w",
2460
2355
  type: "w",
2461
- onMousedown: (y) => w(y)
2462
- }, null), d("div", {
2356
+ onMousedown: (g) => C(g)
2357
+ }, null), c("div", {
2463
2358
  class: "fv-resizable-handle fv-resizable-ne",
2464
2359
  type: "ne",
2465
- onMousedown: (y) => w(y)
2466
- }, null), d("div", {
2360
+ onMousedown: (g) => C(g)
2361
+ }, null), c("div", {
2467
2362
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
2468
2363
  type: "se",
2469
- onMousedown: (y) => w(y)
2470
- }, null), d("div", {
2364
+ onMousedown: (g) => C(g)
2365
+ }, null), c("div", {
2471
2366
  class: "fv-resizable-handle fv-resizable-sw",
2472
2367
  type: "sw",
2473
- onMousedown: (y) => w(y)
2474
- }, null), d("div", {
2368
+ onMousedown: (g) => C(g)
2369
+ }, null), c("div", {
2475
2370
  class: "fv-resizable-handle fv-resizable-nw",
2476
2371
  type: "nw",
2477
- onMousedown: (y) => w(y)
2372
+ onMousedown: (g) => C(g)
2478
2373
  }, null)]);
2479
2374
  }
2480
- function R(C = !0) {
2481
- const y = o.value || document.body, j = _.getCurrent(y), G = n.value;
2482
- C && (k.value = T(), k.value.transform = G.style.transform), j && G && (u.value = j, G.style.height = u.value.height - 14 + "px", G.style.width = u.value.width - 14 + "px", G.style.left = "7px", G.style.top = "7px", G.style.transform = "", v.value = {
2483
- size: u.value,
2375
+ function O(y = !0) {
2376
+ const g = o.value || document.body, V = K.getCurrent(g), A = n.value;
2377
+ y && (k.value = x(), k.value.transform = A.style.transform), V && A && (i.value = V, A.style.height = i.value.height - 14 + "px", A.style.width = i.value.width - 14 + "px", A.style.left = "7px", A.style.top = "7px", A.style.transform = "", v.value = {
2378
+ size: i.value,
2484
2379
  position: {
2485
2380
  x: 0,
2486
2381
  y: 0
2487
2382
  }
2488
- }, E.value = !1, N.value = !0);
2383
+ }, j.value = !1, H.value = !0);
2489
2384
  }
2490
- function g() {
2491
- var C, y;
2385
+ function L() {
2386
+ var y, g;
2492
2387
  if (k.value) {
2493
- const j = {
2388
+ const V = {
2494
2389
  width: k.value.size.width || 0,
2495
2390
  height: k.value.size.height || 0
2496
- }, G = {
2497
- x: (window.innerWidth - j.width) / 2,
2498
- y: (window.innerHeight - j.height) / 2
2391
+ }, A = {
2392
+ x: (window.innerWidth - V.width) / 2,
2393
+ y: (window.innerHeight - V.height) / 2
2499
2394
  };
2500
- (C = u.value) == null || C.set(j), (y = p.value) == null || y.set(G);
2501
- const U = n.value;
2502
- U.style.height = j.height + "px", U.style.width = j.width + "px", U.style.left = `${G.x}px`, U.style.top = `${G.y}px`, U.style.transform = "", v.value = {
2503
- size: j,
2504
- position: G
2505
- }, E.value = t.draggable, N.value = !1;
2395
+ (y = i.value) == null || y.set(V), (g = d.value) == null || g.set(A);
2396
+ const q = n.value;
2397
+ q.style.height = V.height + "px", q.style.width = V.width + "px", q.style.left = `${A.x}px`, q.style.top = `${A.y}px`, q.style.transform = "", v.value = {
2398
+ size: V,
2399
+ position: A
2400
+ }, j.value = t.draggable, H.value = !1;
2506
2401
  }
2507
2402
  }
2508
- function M() {
2403
+ function N() {
2509
2404
  if (n.value) {
2510
- const C = _.getCurrent(n.value);
2511
- if (C) {
2405
+ const y = K.getCurrent(n.value);
2406
+ if (y) {
2512
2407
  const {
2513
- width: y,
2514
- height: j
2515
- } = C;
2516
- n.value.style.left = `${(window.innerWidth - y) / 2}px`, n.value.style.top = `${(window.innerHeight - j) / 2}px`, n.value.style.transform = "";
2408
+ width: g,
2409
+ height: V
2410
+ } = y;
2411
+ n.value.style.left = `${(window.innerWidth - g) / 2}px`, n.value.style.top = `${(window.innerHeight - V) / 2}px`, n.value.style.transform = "";
2517
2412
  }
2518
2413
  }
2519
2414
  }
2520
- function z() {
2521
- const C = () => {
2522
- N.value ? R(!1) : M();
2415
+ function P() {
2416
+ const y = () => {
2417
+ H.value ? O(!1) : N();
2523
2418
  };
2524
- return window.addEventListener("resize", C), () => {
2525
- window.removeEventListener("resize", C);
2419
+ return window.addEventListener("resize", y), () => {
2420
+ window.removeEventListener("resize", y);
2526
2421
  };
2527
2422
  }
2528
- const Y = z();
2423
+ const Y = P();
2529
2424
  return {
2530
- renderResizeBar: x,
2425
+ renderResizeBar: w,
2531
2426
  boundingElement: o,
2532
2427
  resizedEventParam: v,
2533
- maximize: R,
2534
- restore: g,
2535
- allowDrag: E,
2536
- isMaximized: N,
2428
+ maximize: O,
2429
+ restore: L,
2430
+ allowDrag: j,
2431
+ isMaximized: H,
2537
2432
  unWindowResizeHandle: Y
2538
2433
  };
2539
2434
  }
2540
2435
  function ha(t, e, n) {
2541
- const o = i(), a = i(t.draggable), r = i(t.lockAxis), s = i(), u = i(), p = i(!1), l = i(new Q(0, 0)), c = i(new Q(0, 0)), m = i(new Q(0, 0)), v = i(new Q(0, 0));
2542
- J(() => n.value, (T) => {
2543
- s.value.style.cursor = T ? "move" : "default";
2436
+ const o = u(), a = u(t.draggable), r = u(t.lockAxis), l = u(), i = u(), d = u(!1), s = u(new Q(0, 0)), p = u(new Q(0, 0)), m = u(new Q(0, 0)), v = u(new Q(0, 0));
2437
+ J(() => n.value, (x) => {
2438
+ l.value.style.cursor = x ? "move" : "default";
2544
2439
  });
2545
- function k(T, H) {
2546
- if (H.tagName === "BUTTON")
2440
+ function k(x, D) {
2441
+ if (D.tagName === "BUTTON")
2547
2442
  return !1;
2548
- if (H === T)
2443
+ if (D === x)
2549
2444
  return !0;
2550
- for (const f in H.children)
2551
- if (H.children.hasOwnProperty(f) && k(T, H.children[f]))
2445
+ for (const f in D.children)
2446
+ if (Object.prototype.hasOwnProperty.call(D.children, f) && k(x, D.children[f]))
2552
2447
  return !0;
2553
2448
  return !1;
2554
2449
  }
2555
- function E() {
2556
- var w, x;
2557
- let T = m.value.x + c.value.x, H = m.value.y + c.value.y;
2558
- r.value === "x" ? (T = ((w = l.value) == null ? void 0 : w.x) || 0, m.value.x = 0) : r.value === "y" && (H = ((x = l.value) == null ? void 0 : x.y) || 0, m.value.y = 0);
2559
- const f = `translate3d(${Math.round(T)}px, ${Math.round(H)}px, 0px)`;
2560
- o.value && (o.value.style.transform = f), v.value.x = T, v.value.y = H;
2450
+ function j() {
2451
+ var C, w;
2452
+ let x = m.value.x + p.value.x, D = m.value.y + p.value.y;
2453
+ r.value === "x" ? (x = ((C = s.value) == null ? void 0 : C.x) || 0, m.value.x = 0) : r.value === "y" && (D = ((w = s.value) == null ? void 0 : w.y) || 0, m.value.y = 0);
2454
+ const f = `translate3d(${Math.round(x)}px, ${Math.round(D)}px, 0px)`;
2455
+ o.value && (o.value.style.transform = f), v.value.x = x, v.value.y = D;
2561
2456
  }
2562
- function N() {
2563
- if (!u.value || !o.value)
2457
+ function H() {
2458
+ if (!i.value || !o.value)
2564
2459
  return null;
2565
- const T = u.value.getBoundingClientRect(), H = o.value.getBoundingClientRect(), f = {
2566
- top: T.top < H.top,
2567
- right: T.right > H.right,
2568
- bottom: T.bottom > H.bottom,
2569
- left: T.left < H.left
2460
+ const x = i.value.getBoundingClientRect(), D = o.value.getBoundingClientRect(), f = {
2461
+ top: x.top < D.top,
2462
+ right: x.right > D.right,
2463
+ bottom: x.bottom > D.bottom,
2464
+ left: x.left < D.left
2570
2465
  };
2571
- return f.top || (m.value.y -= H.top - T.top), f.bottom || (m.value.y -= H.bottom - T.bottom), f.right || (m.value.x -= H.right - T.right), f.left || (m.value.x -= H.left - T.left), E(), f;
2466
+ return f.top || (m.value.y -= D.top - x.top), f.bottom || (m.value.y -= D.bottom - x.bottom), f.right || (m.value.x -= D.right - x.right), f.left || (m.value.x -= D.left - x.left), j(), f;
2572
2467
  }
2573
- function $(T) {
2574
- T && (l.value && T.subtract(l.value), m.value.set(T), E(), N());
2468
+ function $(x) {
2469
+ x && (s.value && x.subtract(s.value), m.value.set(x), j(), H());
2575
2470
  }
2576
- function h(T) {
2577
- p.value && a.value && (T.stopPropagation(), T.preventDefault(), $(Q.fromEvent(T, s.value)));
2471
+ function h(x) {
2472
+ d.value && a.value && (x.stopPropagation(), x.preventDefault(), $(Q.fromEvent(x, l.value)));
2578
2473
  }
2579
2474
  function b() {
2580
- var T;
2581
- p.value && (p.value = !1, c.value.add(m.value), m.value.reset(), (T = o.value) == null || T.classList.remove("ng-dragging"), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", b));
2475
+ var x;
2476
+ d.value && (d.value = !1, p.value.add(m.value), m.value.reset(), (x = o.value) == null || x.classList.remove("ng-dragging"), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", b));
2582
2477
  }
2583
- function P() {
2584
- !p.value && s.value && (p.value = !0, s.value.classList.add("ng-dragging"), document.addEventListener("mousemove", h), document.addEventListener("mouseup", b));
2478
+ function I() {
2479
+ !d.value && l.value && (d.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", h), document.addEventListener("mouseup", b));
2585
2480
  }
2586
- function D() {
2481
+ function G() {
2587
2482
  if (o.value) {
2588
- const T = Q.getTransformInfo(o.value);
2589
- c.value.set(T);
2483
+ const x = Q.getTransformInfo(o.value);
2484
+ p.value.set(x);
2590
2485
  return;
2591
2486
  }
2592
- c.value.reset();
2487
+ p.value.reset();
2593
2488
  }
2594
- function W(T) {
2595
- if (!n.value || T instanceof MouseEvent && T.button === 2)
2489
+ function U(x) {
2490
+ if (!n.value || x instanceof MouseEvent && x.button === 2)
2596
2491
  return;
2597
- const H = T.target || T.srcElement;
2598
- s.value !== void 0 && H && !k(H, s.value) || a.value !== !1 && (document.body.click(), T.stopPropagation(), T.preventDefault(), l.value = Q.fromEvent(T, o.value), D(), P());
2492
+ const D = x.target || x.srcElement;
2493
+ l.value !== void 0 && D && !k(D, l.value) || a.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), s.value = Q.fromEvent(x, o.value), G(), I());
2599
2494
  }
2600
- function q(T, H, f) {
2601
- if (a.value && H) {
2602
- if (T)
2603
- s.value = T;
2495
+ function X(x, D, f) {
2496
+ if (a.value && D) {
2497
+ if (x)
2498
+ l.value = x;
2604
2499
  else if (t.dragHandle) {
2605
2500
  if (t.dragHandle instanceof HTMLElement)
2606
- s.value = t.dragHandle;
2501
+ l.value = t.dragHandle;
2607
2502
  else if (typeof t.dragHandle == "string") {
2608
- const w = H.querySelector(t.dragHandle);
2609
- w && (s.value = w);
2503
+ const C = D.querySelector(t.dragHandle);
2504
+ C && (l.value = C);
2610
2505
  }
2611
2506
  }
2612
- o.value = H, u.value = f, s.value.classList.add("ng-draggable"), s.value.addEventListener("mousedown", W);
2507
+ o.value = D, i.value = f, l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", U);
2613
2508
  }
2614
2509
  }
2615
2510
  return {
2616
- registerDraggle: q,
2617
- resetTranslate: D
2511
+ registerDraggle: X,
2512
+ resetTranslate: G
2618
2513
  };
2619
2514
  }
2620
- function Ne(t, e) {
2515
+ function Pe(t, e) {
2621
2516
  if (t) {
2622
2517
  const n = (o) => {
2623
2518
  o.key.toLowerCase() === t.toLowerCase() && e({ event: o, key: t });
@@ -2628,18 +2523,18 @@ function Ne(t, e) {
2628
2523
  }
2629
2524
  }
2630
2525
  function ga(t, e) {
2631
- const n = i(t.enableEsc);
2526
+ const n = u(t.enableEsc);
2632
2527
  let o = null;
2633
- return n.value ? (o = Ne("Escape", (a) => {
2528
+ return n.value ? (o = Pe("Escape", (a) => {
2634
2529
  e.emit("esc", { event: a.event, type: "esc" });
2635
2530
  }), {
2636
2531
  remove: o
2637
2532
  }) : null;
2638
2533
  }
2639
2534
  function ya(t, e) {
2640
- const n = i(t.enableEnter);
2535
+ const n = u(t.enableEnter);
2641
2536
  let o = null;
2642
- return n.value ? (o = Ne("Enter", (a) => {
2537
+ return n.value ? (o = Pe("Enter", (a) => {
2643
2538
  e.emit("enter", { event: a.event, type: "enter" });
2644
2539
  }), {
2645
2540
  remove: o
@@ -2650,205 +2545,205 @@ const ze = /* @__PURE__ */ ee({
2650
2545
  props: fa,
2651
2546
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
2652
2547
  setup(t, e) {
2653
- const n = i(t.width || 300), o = i(t.height || 200), a = i(t.modelValue), r = i(""), s = i(t.class), u = i(t.fitContent), p = i(t.showHeader), l = i(""), c = i(t.showCloseButton), m = i(t.showMaxButton), v = i(!1), k = i(""), E = i(""), N = i(""), $ = i(t.showButtons), h = i(t.title), b = i(t.reiszeable), P = i(t.containment || null), D = i();
2654
- function W(F, X) {
2655
- a.value = !1, e.emit("update:modelValue", !1), X != null && e.emit(X ? "accept" : "cancel"), e.emit("closed", F);
2548
+ const n = u(t.width || 300), o = u(t.height || 200), a = u(t.modelValue), r = u(""), l = u(t.class), i = u(t.fitContent), d = u(t.showHeader), s = u(""), p = u(t.showCloseButton), m = u(t.showMaxButton), v = u(!1), k = u(""), j = u(""), H = u(""), $ = u(t.showButtons), h = u(t.title), b = u(t.reiszeable), I = u(t.containment || null), G = u();
2549
+ function U(T, W) {
2550
+ a.value = !1, e.emit("update:modelValue", !1), W != null && e.emit(W ? "accept" : "cancel"), e.emit("closed", T);
2656
2551
  }
2657
- const q = [{
2552
+ const X = [{
2658
2553
  name: "cancel",
2659
2554
  text: "取消",
2660
2555
  class: "btn btn-secondary",
2661
- handle: (F) => {
2662
- W(F, !1);
2556
+ handle: (T) => {
2557
+ U(T, !1);
2663
2558
  }
2664
2559
  }, {
2665
2560
  name: "accept",
2666
2561
  text: "确定",
2667
2562
  class: "btn btn-primary",
2668
- handle: (F) => {
2669
- W(F, !0);
2563
+ handle: (T) => {
2564
+ U(T, !0);
2670
2565
  }
2671
- }], T = i(t.buttons && t.buttons.length ? t.buttons : q), H = B(() => !!l.value), f = B(() => !!$.value && !!T.value), w = i(), x = i(), R = i(!1), {
2672
- renderResizeBar: g,
2673
- maximize: M,
2674
- restore: z,
2566
+ }], x = u(t.buttons && t.buttons.length ? t.buttons : X), D = R(() => !!s.value), f = R(() => !!$.value && !!x.value), C = u(), w = u(), O = u(!1), {
2567
+ renderResizeBar: L,
2568
+ maximize: N,
2569
+ restore: P,
2675
2570
  boundingElement: Y,
2676
- resizedEventParam: C,
2677
- allowDrag: y,
2678
- unWindowResizeHandle: j
2571
+ resizedEventParam: y,
2572
+ allowDrag: g,
2573
+ unWindowResizeHandle: V
2679
2574
  } = va(t), {
2680
- registerDraggle: G
2681
- } = ha(t, e, y);
2682
- J(() => t.title, (F, X) => {
2683
- F !== X && (h.value = F);
2684
- }), J(() => t.modelValue, (F, X) => {
2685
- F !== X && (a.value = F);
2686
- }), J(() => t.showHeader, (F, X) => {
2687
- F !== X && (p.value = F);
2688
- }), J(() => t.showButtons, (F, X) => {
2689
- F !== X && ($.value = F);
2690
- }), J(() => C.value, (F, X) => {
2691
- const ae = F || {}, ie = X || {};
2575
+ registerDraggle: A
2576
+ } = ha(t, e, g);
2577
+ J(() => t.title, (T, W) => {
2578
+ T !== W && (h.value = T);
2579
+ }), J(() => t.modelValue, (T, W) => {
2580
+ T !== W && (a.value = T);
2581
+ }), J(() => t.showHeader, (T, W) => {
2582
+ T !== W && (d.value = T);
2583
+ }), J(() => t.showButtons, (T, W) => {
2584
+ T !== W && ($.value = T);
2585
+ }), J(() => y.value, (T, W) => {
2586
+ const ae = T || {}, ie = W || {};
2692
2587
  JSON.stringify(ae) !== JSON.stringify(ie) && e.emit("resize", {
2693
- newSize: F,
2694
- oldSize: X
2588
+ newSize: T,
2589
+ oldSize: W
2695
2590
  });
2696
2591
  });
2697
- function U() {
2698
- const F = document.querySelectorAll(".farris-modal").length;
2699
- (!F || F - 1 <= 0) && document.body.classList.remove("modal-open"), D.value && D.value.classList.remove("show");
2592
+ function q() {
2593
+ const T = document.querySelectorAll(".farris-modal").length;
2594
+ (!T || T - 1 <= 0) && document.body.classList.remove("modal-open"), G.value && G.value.classList.remove("show");
2700
2595
  }
2701
- const re = B(() => (a.value ? document.body.classList.add("modal-open") : U(), a.value)), De = B(() => {
2702
- const F = {
2596
+ const re = R(() => (a.value ? document.body.classList.add("modal-open") : q(), a.value)), Ae = R(() => {
2597
+ const T = {
2703
2598
  modal: !0,
2704
2599
  "farris-modal": !0,
2705
2600
  fade: !0
2706
2601
  };
2707
- return F["f-modal-fitContent"] = !!u.value, F.show = !!re.value, F;
2708
- }), Ge = B(() => {
2602
+ return T["f-modal-fitContent"] = !!i.value, T.show = !!re.value, T;
2603
+ }), Ge = R(() => {
2709
2604
  var ae;
2710
- const F = {
2605
+ const T = {
2711
2606
  "modal-dialog": !0
2712
- }, X = (ae = s.value) == null ? void 0 : ae.split(" ");
2713
- return X == null || X.reduce((ie, ot) => (ie[ot] = !0, ie), F), F;
2714
- }), qe = B(() => ({
2607
+ }, W = (ae = l.value) == null ? void 0 : ae.split(" ");
2608
+ return W == null || W.reduce((ie, ot) => (ie[ot] = !0, ie), T), T;
2609
+ }), qe = R(() => ({
2715
2610
  position: "absolute",
2716
2611
  top: `${(window.innerHeight - o.value) / 2}px`,
2717
2612
  left: `${(window.innerWidth - n.value) / 2}px`,
2718
2613
  width: `${n.value}px`,
2719
- height: u.value ? "auto" : `${o.value}px`
2720
- })), Ue = B(() => ({
2614
+ height: i.value ? "auto" : `${o.value}px`
2615
+ })), Ue = R(() => ({
2721
2616
  "modal-content": !0,
2722
- "modal-content-has-header": p.value
2723
- })), We = B(() => {
2724
- const F = {
2725
- display: p.value ? "" : "none"
2617
+ "modal-content-has-header": d.value
2618
+ })), We = R(() => {
2619
+ const T = {
2620
+ display: d.value ? "" : "none"
2726
2621
  };
2727
- return F["pointer-events"] = y.value ? "auto" : "none", F;
2728
- }), Xe = B(() => ({
2622
+ return T["pointer-events"] = g.value ? "auto" : "none", T;
2623
+ }), Xe = R(() => ({
2729
2624
  "f-icon": !0,
2730
2625
  modal_maximize: !0,
2731
- modalrevert: R.value
2732
- })), Ye = B(() => ({
2626
+ modalrevert: O.value
2627
+ })), Ye = R(() => ({
2733
2628
  "modal-body": !0,
2734
2629
  "f-utils-flex-column": k.value === "iframe"
2735
2630
  }));
2736
- function Je() {
2631
+ function Qe() {
2737
2632
  return {};
2738
2633
  }
2739
- const Qe = B(() => {
2740
- const F = {
2741
- textAlgin: N.value
2742
- }, X = Je();
2743
- return Object.assign(F, X);
2634
+ const Je = R(() => {
2635
+ const T = {
2636
+ textAlgin: H.value
2637
+ }, W = Qe();
2638
+ return Object.assign(T, W);
2744
2639
  });
2745
- function we(F) {
2746
- if (F.stopPropagation(), R.value) {
2747
- R.value = !1, z();
2640
+ function we(T) {
2641
+ if (T.stopPropagation(), O.value) {
2642
+ O.value = !1, P();
2748
2643
  return;
2749
2644
  }
2750
- M(), R.value = !0;
2645
+ N(), O.value = !0;
2751
2646
  }
2752
- async function Ze(F, X) {
2753
- F.handle && await F.handle(X, F) && e.emit("closed", X);
2647
+ async function Ze(T, W) {
2648
+ T.handle && await T.handle(W, T) && e.emit("closed", W);
2754
2649
  }
2755
- function Ke(F) {
2756
- F.width && (n.value = F.width), F.height && (o.value = F.height), F.buttons && (T.value = F.buttons), F.title && (h.value = F.title);
2650
+ function _e(T) {
2651
+ T.width && (n.value = T.width), T.height && (o.value = T.height), T.buttons && (x.value = T.buttons), T.title && (h.value = T.title);
2757
2652
  }
2758
2653
  let de = null, pe = null;
2759
2654
  oe(() => {
2760
- x.value && !P.value && (P.value = x.value.parentElement, Y.value = P.value, G(w.value, x.value, Y.value)), re.value && document.body.classList.add("modal-open"), de = ga(t, e), pe = ya(t, e);
2655
+ w.value && !I.value && (I.value = w.value.parentElement, Y.value = I.value, A(C.value, w.value, Y.value)), re.value && document.body.classList.add("modal-open"), de = ga(t, e), pe = ya(t, e);
2761
2656
  }), Se(() => {
2762
- U(), j && j(), de && de.remove(), pe && pe.remove();
2657
+ q(), V && V(), de && de.remove(), pe && pe.remove();
2763
2658
  }), e.expose({
2764
- modalElementRef: x,
2765
- updateModalOptions: Ke,
2766
- close: W,
2659
+ modalElementRef: w,
2660
+ updateModalOptions: _e,
2661
+ close: U,
2767
2662
  maxDialog: we
2768
2663
  });
2769
- function _e() {
2770
- return d("ul", null, [v.value && d("li", {
2664
+ function Ke() {
2665
+ return c("ul", null, [v.value && c("li", {
2771
2666
  class: "f-btn-icon f-bare"
2772
- }, [d("span", {
2667
+ }, [c("span", {
2773
2668
  class: "f-icon modal_minimize"
2774
- }, null)]), m.value && d("li", {
2669
+ }, null)]), m.value && c("li", {
2775
2670
  onClick: we,
2776
2671
  class: "f-btn-icon f-bare",
2777
2672
  style: "pointer-events: auto;"
2778
- }, [d("span", {
2673
+ }, [c("span", {
2779
2674
  class: Xe.value
2780
- }, null)]), c.value && d("li", {
2675
+ }, null)]), p.value && c("li", {
2781
2676
  class: "f-btn-icon f-bare",
2782
- onClick: (F) => W(F, !1),
2677
+ onClick: (T) => U(T, !1),
2783
2678
  style: "pointer-events: auto;"
2784
- }, [d("span", {
2679
+ }, [c("span", {
2785
2680
  class: "f-icon modal_close"
2786
2681
  }, null)])]);
2787
2682
  }
2788
2683
  function et() {
2789
- return d("div", {
2684
+ return c("div", {
2790
2685
  class: "modal-footer",
2791
- style: Qe.value
2792
- }, [T.value && T.value.map((F) => d("button", {
2793
- name: F.name,
2686
+ style: Je.value
2687
+ }, [x.value && x.value.map((T) => c("button", {
2688
+ name: T.name,
2794
2689
  type: "button",
2795
- class: F.class + (F.iconClass ? " btn-icontext" : ""),
2796
- onClick: (X) => {
2797
- Ze(F, X);
2690
+ class: T.class + (T.iconClass ? " btn-icontext" : ""),
2691
+ onClick: (W) => {
2692
+ Ze(T, W);
2798
2693
  }
2799
- }, [!!F.iconClass && d("i", {
2800
- class: F.iconClass
2801
- }, null), F.text]))]);
2694
+ }, [!!T.iconClass && c("i", {
2695
+ class: T.iconClass
2696
+ }, null), T.text]))]);
2802
2697
  }
2803
2698
  function tt() {
2804
- return d("div", {
2805
- ref: w,
2699
+ return c("div", {
2700
+ ref: C,
2806
2701
  class: "modal-header",
2807
2702
  style: We.value
2808
- }, [d("div", {
2703
+ }, [c("div", {
2809
2704
  class: "modal-title"
2810
- }, [H.value && d("span", {
2811
- class: l.value,
2705
+ }, [D.value && c("span", {
2706
+ class: s.value,
2812
2707
  style: "margin-right: 8px"
2813
- }, null), d("span", {
2708
+ }, null), c("span", {
2814
2709
  class: "modal-title-label"
2815
- }, [h.value])]), d("div", {
2710
+ }, [h.value])]), c("div", {
2816
2711
  class: "actions"
2817
- }, [_e()])]);
2712
+ }, [Ke()])]);
2818
2713
  }
2819
- function nt(F) {
2820
- F.stopPropagation();
2714
+ function nt(T) {
2715
+ T.stopPropagation();
2821
2716
  }
2822
- return () => d(ut, {
2717
+ return () => c(ut, {
2823
2718
  to: "body"
2824
2719
  }, {
2825
- default: () => [re.value && d(ct, {
2720
+ default: () => [re.value && c(ct, {
2826
2721
  name: "fade",
2827
2722
  appear: !0
2828
2723
  }, {
2829
2724
  default: () => {
2830
- var F, X;
2831
- return [d("div", {
2832
- class: De.value,
2725
+ var T, W;
2726
+ return [c("div", {
2727
+ class: Ae.value,
2833
2728
  style: "display: block",
2834
- ref: D,
2729
+ ref: G,
2835
2730
  onClick: nt
2836
- }, [d("div", {
2731
+ }, [c("div", {
2837
2732
  id: r.value,
2838
2733
  class: Ge.value,
2839
2734
  style: qe.value,
2840
- ref: x
2841
- }, [d("div", {
2735
+ ref: w
2736
+ }, [c("div", {
2842
2737
  class: Ue.value
2843
- }, [p.value && tt(), d("div", {
2738
+ }, [d.value && tt(), c("div", {
2844
2739
  class: Ye.value
2845
- }, [(X = (F = e.slots).default) == null ? void 0 : X.call(F), k.value === "iframe" && d("iframe", {
2740
+ }, [(W = (T = e.slots).default) == null ? void 0 : W.call(T), k.value === "iframe" && c("iframe", {
2846
2741
  title: r.value,
2847
2742
  class: "f-utils-fill",
2848
2743
  width: "100%",
2849
2744
  frameborder: "0",
2850
- src: E.value
2851
- }, null)]), f.value && et()]), !u.value && b.value && x.value && g(x.value)])])];
2745
+ src: j.value
2746
+ }, null)]), f.value && et()]), !i.value && b.value && w.value && L(w.value)])])];
2852
2747
  }
2853
2748
  })]
2854
2749
  });
@@ -2868,34 +2763,34 @@ function ba(t) {
2868
2763
  Se(() => {
2869
2764
  document.body.removeChild(e);
2870
2765
  });
2871
- const r = i(), s = i(t.class || ""), u = i(!!t.showButtons), p = i(!!t.showHeader), l = i(t.showCloseButton == null ? !0 : t.showCloseButton), c = i(!0), m = i(t.title || ""), v = t.acceptCallback || (() => {
2766
+ const r = u(), l = u(t.class || ""), i = u(!!t.showButtons), d = u(!!t.showHeader), s = u(t.showCloseButton == null ? !0 : t.showCloseButton), p = u(!0), m = u(t.title || ""), v = t.acceptCallback || (() => {
2872
2767
  }), k = t.rejectCallback || (() => {
2873
- }), E = t.closedCallback || ((b) => {
2874
- }), N = t.resizeHandle || ((b) => {
2768
+ }), j = t.closedCallback || ((b) => {
2769
+ }), H = t.resizeHandle || ((b) => {
2875
2770
  }), $ = $e(t), h = (b) => {
2876
- c.value = !1, n.unmount(), E(b);
2771
+ p.value = !1, n.unmount(), j(b);
2877
2772
  };
2878
2773
  return oe(() => {
2879
2774
  }), a.expose({
2880
2775
  modalRef: r
2881
- }), () => d(ze, {
2776
+ }), () => c(ze, {
2882
2777
  ref: r,
2883
- class: s.value,
2884
- modelValue: c.value,
2885
- "onUpdate:modelValue": (b) => c.value = b,
2778
+ class: l.value,
2779
+ modelValue: p.value,
2780
+ "onUpdate:modelValue": (b) => p.value = b,
2886
2781
  title: m.value,
2887
2782
  width: t.width,
2888
2783
  height: t.height,
2889
2784
  buttons: t.buttons,
2890
- "show-header": p.value,
2891
- "show-buttons": u.value,
2892
- "show-close-button": l.value,
2785
+ "show-header": d.value,
2786
+ "show-buttons": i.value,
2787
+ "show-close-button": s.value,
2893
2788
  "show-max-button": !1,
2894
2789
  onAccept: v,
2895
2790
  onCancel: k,
2896
2791
  fitContent: t.fitContent == null ? !0 : t.fitContent,
2897
2792
  onClosed: h,
2898
- onResize: N
2793
+ onResize: H
2899
2794
  }, {
2900
2795
  default: () => [$ && $(n)]
2901
2796
  });
@@ -2905,13 +2800,13 @@ function ba(t) {
2905
2800
  }
2906
2801
  class Ca {
2907
2802
  constructor(e) {
2908
- S(this, "appContext", null);
2909
- S(this, "modalRef", i());
2910
- S(this, "activeModalIndex", i(0));
2911
- S(this, "modalRefs", {});
2912
- S(this, "isUseEscCloseModal", i(!1));
2913
- S(this, "activeModalInstance", B(() => this.modalRefs[this.activeModalIndex.value]));
2914
- this.appContext = e ? e._context : null;
2803
+ B(this, "appContext", null);
2804
+ B(this, "modalRef", u());
2805
+ B(this, "activeModalIndex", u(0));
2806
+ B(this, "modalRefs", {});
2807
+ B(this, "isUseEscCloseModal", u(!1));
2808
+ B(this, "activeModalInstance", R(() => this.modalRefs[this.activeModalIndex.value]));
2809
+ this.app = e, this.appContext = e ? e._context : null;
2915
2810
  }
2916
2811
  getCurrentModal() {
2917
2812
  return this.activeModalInstance.value;
@@ -2931,21 +2826,21 @@ class Ca {
2931
2826
  title: "",
2932
2827
  showButtons: !0,
2933
2828
  showHeader: !0
2934
- }, e)), a = i(!0), r = o.value.acceptCallback || (() => {
2935
- }), s = o.value.rejectCallback || (() => {
2936
- }), u = o.value.closedCallback || ((h, b) => {
2937
- }), p = o.value.resizeHandle || ((h) => {
2829
+ }, e)), a = u(!0), r = o.value.acceptCallback || (() => {
2830
+ }), l = o.value.rejectCallback || (() => {
2831
+ }), i = o.value.closedCallback || ((h, b) => {
2832
+ }), d = o.value.resizeHandle || ((h) => {
2938
2833
  });
2939
- let l;
2940
- const c = $e(o.value), m = (h) => {
2941
- var P;
2834
+ let s;
2835
+ const p = $e(o.value), m = (h) => {
2836
+ var I;
2942
2837
  a.value = !1;
2943
- const b = (P = h == null ? void 0 : h.target) == null ? void 0 : P.classList.contains("modal_close");
2944
- u(h, this.isUseEscCloseModal.value ? "esc" : b ? "icon" : "button");
2838
+ const b = (I = h == null ? void 0 : h.target) == null ? void 0 : I.classList.contains("modal_close");
2839
+ i(h, this.isUseEscCloseModal.value ? "esc" : b ? "icon" : "button");
2945
2840
  }, v = (h) => {
2946
- m(h), l && ve(() => {
2947
- if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], me(null, n), l = null, this.modalRef.value = null, this.modalRefs) {
2948
- const b = Object.keys(this.modalRefs);
2841
+ m(h), s && ve(() => {
2842
+ if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], me(null, n), s = null, this.modalRef.value = null, this.modalRefs) {
2843
+ const b = Object.keys(this.modalRefs).map((I) => Number(I));
2949
2844
  b.length > 0 ? this.activeModalIndex.value = Math.max(...b) : this.activeModalIndex.value = 0;
2950
2845
  }
2951
2846
  this.isUseEscCloseModal.value = !1;
@@ -2953,21 +2848,21 @@ class Ca {
2953
2848
  }, k = (h) => {
2954
2849
  var b;
2955
2850
  this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((b = this.activeModalInstance.value) == null || b.close(h == null ? void 0 : h.event));
2956
- }, E = () => d(ze, ye({
2851
+ }, j = () => c(ze, ye({
2957
2852
  ref: this.modalRef,
2958
2853
  modelValue: a.value,
2959
2854
  "onUpdate:modelValue": (h) => a.value = h
2960
2855
  }, o.value, {
2961
2856
  onAccept: r,
2962
- onCancel: s,
2857
+ onCancel: l,
2963
2858
  onClosed: v,
2964
- onResize: p,
2859
+ onResize: d,
2965
2860
  onEsc: k
2966
2861
  }), {
2967
- default: () => [c && c()]
2862
+ default: () => [p && p(this.app)]
2968
2863
  });
2969
- return l = ((h) => {
2970
- const b = mt(E, h);
2864
+ return s = ((h) => {
2865
+ const b = mt(j, h);
2971
2866
  return b.appContext = this.appContext, me(b, n), b;
2972
2867
  })({
2973
2868
  ...o.value
@@ -2977,7 +2872,7 @@ class Ca {
2977
2872
  o.value = {
2978
2873
  ...o.value,
2979
2874
  ...h
2980
- }, l && me(ft(l, {
2875
+ }, s && me(ft(s, {
2981
2876
  ...o
2982
2877
  }), n);
2983
2878
  },
@@ -2986,30 +2881,29 @@ class Ca {
2986
2881
  };
2987
2882
  }
2988
2883
  }
2989
- class K {
2884
+ class _ {
2990
2885
  static show(e) {
2991
- let n = new Ca();
2992
- const o = Z({
2886
+ const n = Z({
2993
2887
  ...e
2994
- }), a = !1, r = o.type === "error" || o.type === "prompt", s = o.type === "error" ? "错误提示" : o.type === "prompt" && o.title || "", u = o.acceptCallback || (() => {
2995
- }), p = o.rejectCallback || (() => {
2888
+ }), o = !1, a = n.type === "error" || n.type === "prompt", r = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", l = n.acceptCallback || (() => {
2889
+ }), i = n.rejectCallback || (() => {
2996
2890
  });
2997
- let l = null;
2998
- const c = () => {
2999
- l && (l == null || l.destroy(), n = null);
2891
+ let d = null, s = new Ca(d);
2892
+ const p = () => {
2893
+ d && (d == null || d.destroy(), s = null);
3000
2894
  };
3001
- l = n == null ? void 0 : n.open({
2895
+ d = s == null ? void 0 : s.open({
3002
2896
  class: "modal-message modal-message-type-info",
3003
- title: s,
3004
- showButtons: a,
3005
- showHeader: r,
3006
- width: o.width || 400,
2897
+ title: r,
2898
+ showButtons: o,
2899
+ showHeader: a,
2900
+ width: n.width || 400,
3007
2901
  fitContent: !0,
3008
2902
  showMaxButton: !1,
3009
- render: () => d(ue, ye(o, {
3010
- onAccept: u,
3011
- onReject: p,
3012
- onClose: c
2903
+ render: () => c(ue, ye(n, {
2904
+ onAccept: l,
2905
+ onReject: i,
2906
+ onClose: p
3013
2907
  }), null)
3014
2908
  });
3015
2909
  }
@@ -3021,7 +2915,7 @@ class K {
3021
2915
  okButtonText: "知道了",
3022
2916
  cancelButtonText: ""
3023
2917
  });
3024
- K.show(o);
2918
+ _.show(o);
3025
2919
  }
3026
2920
  static warning(e, n) {
3027
2921
  const o = Z({
@@ -3031,7 +2925,7 @@ class K {
3031
2925
  okButtonText: "知道了",
3032
2926
  cancelButtonText: ""
3033
2927
  });
3034
- K.show(o);
2928
+ _.show(o);
3035
2929
  }
3036
2930
  static success(e, n) {
3037
2931
  const o = Z({
@@ -3041,7 +2935,7 @@ class K {
3041
2935
  okButtonText: "关闭",
3042
2936
  cancelButtonText: ""
3043
2937
  });
3044
- K.show(o);
2938
+ _.show(o);
3045
2939
  }
3046
2940
  static error(e, n, o) {
3047
2941
  const a = Z({
@@ -3055,7 +2949,7 @@ class K {
3055
2949
  detail: n
3056
2950
  }
3057
2951
  });
3058
- K.show(a);
2952
+ _.show(a);
3059
2953
  }
3060
2954
  static prompt(e, n) {
3061
2955
  const o = Z({
@@ -3065,7 +2959,7 @@ class K {
3065
2959
  okButtonText: "确定",
3066
2960
  cancelButtonText: "取消"
3067
2961
  });
3068
- K.show(o);
2962
+ _.show(o);
3069
2963
  }
3070
2964
  static question(e, n, o, a) {
3071
2965
  const r = Z({
@@ -3077,13 +2971,13 @@ class K {
3077
2971
  acceptCallback: o,
3078
2972
  rejectCallback: a
3079
2973
  });
3080
- K.show(r);
2974
+ _.show(r);
3081
2975
  }
3082
2976
  }
3083
2977
  ue.install = (t) => {
3084
- t.component(ue.name, ue), t.provide("FMessageBoxService", K);
2978
+ t.component(ue.name, ue), t.provide("FMessageBoxService", _);
3085
2979
  };
3086
- var wa = /* @__PURE__ */ ((t) => (t[t.IntType = 0] = "IntType", t[t.StringType = 1] = "StringType", t[t.BoolType = 2] = "BoolType", t))(wa || {}), Ae = /* @__PURE__ */ ((t) => (t[t.Value = 0] = "Value", t[t.SmartHelp = 1] = "SmartHelp", t[t.Enum = 2] = "Enum", t[t.Express = 3] = "Express", t))(Ae || {}), He = /* @__PURE__ */ ((t) => (t.Equal = "0", t.NotEqual = "1", t.Greater = "2", t.GreaterOrEqual = "3", t.Less = "4", t.LessOrEqual = "5", t.Like = "6", t.LikeStartWith = "7", t.LikeEndWith = "8", t))(He || {});
2980
+ var wa = /* @__PURE__ */ ((t) => (t[t.IntType = 0] = "IntType", t[t.StringType = 1] = "StringType", t[t.BoolType = 2] = "BoolType", t))(wa || {}), He = /* @__PURE__ */ ((t) => (t[t.Value = 0] = "Value", t[t.SmartHelp = 1] = "SmartHelp", t[t.Enum = 2] = "Enum", t[t.Express = 3] = "Express", t))(He || {}), De = /* @__PURE__ */ ((t) => (t.Equal = "0", t.NotEqual = "1", t.Greater = "2", t.GreaterOrEqual = "3", t.Less = "4", t.LessOrEqual = "5", t.Like = "6", t.LikeStartWith = "7", t.LikeEndWith = "8", t))(De || {});
3087
2981
  const xa = [
3088
2982
  {
3089
2983
  value: "0",
@@ -3144,381 +3038,381 @@ const xa = [
3144
3038
  function ka(t, e, n) {
3145
3039
  const { fieldMap: o } = n;
3146
3040
  function a(r) {
3147
- const s = o.get(r.fieldCode);
3148
- if (!s)
3041
+ const l = o.get(r.fieldCode);
3042
+ if (!l)
3149
3043
  return [];
3150
- const u = s.editor.type, p = new Set(Ta[u]);
3151
- return xa.filter((c) => p.has(c.value));
3044
+ const i = l.editor.type, d = new Set(Ta[i]);
3045
+ return xa.filter((p) => d.has(p.value));
3152
3046
  }
3153
3047
  return { getCompareOperators: a };
3154
3048
  }
3155
3049
  function Ba() {
3156
- const t = i({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
3050
+ const t = u({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
3157
3051
  let o = 0;
3158
3052
  function a() {
3159
3053
  return {
3160
3054
  id: "",
3161
3055
  fieldCode: "",
3162
3056
  fieldName: "",
3163
- compareType: He.Equal,
3164
- valueType: Ae.Value,
3057
+ compareType: De.Equal,
3058
+ valueType: He.Value,
3165
3059
  value: new Ee(),
3166
3060
  relation: 0,
3167
3061
  conditionId: Date.now()
3168
3062
  };
3169
3063
  }
3170
- function r(f, w) {
3171
- return { relation: f, items: [], children: [], path: [], groupId: ++o, level: w };
3064
+ function r(f, C) {
3065
+ return { relation: f, items: [], children: [], path: [], groupId: ++o, level: C };
3172
3066
  }
3173
- function s() {
3067
+ function l() {
3174
3068
  const f = Object.assign({}, t.value);
3175
- n.forEach((w, x) => {
3176
- w.groupId === f.groupId && n.set(x, f);
3177
- }), e.forEach((w, x) => {
3178
- w.groupId === f.groupId && e.set(x, f);
3069
+ n.forEach((C, w) => {
3070
+ C.groupId === f.groupId && n.set(w, f);
3071
+ }), e.forEach((C, w) => {
3072
+ C.groupId === f.groupId && e.set(w, f);
3179
3073
  }), t.value = f;
3180
3074
  }
3181
- function u(f) {
3182
- const w = /* @__PURE__ */ new Map();
3183
- let x = 0;
3184
- return f.forEach((R, g) => {
3185
- var M, z;
3186
- if (x += ((M = R.lBracket) == null ? void 0 : M.length) || 0, w.set(g, x), x -= ((z = R.rBracket) == null ? void 0 : z.length) || 0, x < 0)
3075
+ function i(f) {
3076
+ const C = /* @__PURE__ */ new Map();
3077
+ let w = 0;
3078
+ return f.forEach((O, L) => {
3079
+ var N, P;
3080
+ if (w += ((N = O.lBracket) == null ? void 0 : N.length) || 0, C.set(L, w), w -= ((P = O.rBracket) == null ? void 0 : P.length) || 0, w < 0)
3187
3081
  throw new Error("The right bracket is out of range.");
3188
- }), w;
3082
+ }), C;
3189
3083
  }
3190
- function p(f, w, x, R, g) {
3191
- for (let M = 0; M < w; M++) {
3192
- const z = f + (M + 1), Y = r(g, z);
3193
- x.children.push(Y), n.set(Y.groupId, x), x = x.children[x.children.length - 1], R.push(x);
3084
+ function d(f, C, w, O, L) {
3085
+ for (let N = 0; N < C; N++) {
3086
+ const P = f + (N + 1), Y = r(L, P);
3087
+ w.children.push(Y), n.set(Y.groupId, w), w = w.children[w.children.length - 1], O.push(w);
3194
3088
  }
3195
- return x;
3089
+ return w;
3196
3090
  }
3197
- function l(f, w, x, R, g) {
3198
- for (let C = w; C <= 0; C++)
3199
- R.pop();
3200
- const M = R[R.length - 1];
3201
- if (!M)
3091
+ function s(f, C, w, O, L) {
3092
+ for (let y = C; y <= 0; y++)
3093
+ O.pop();
3094
+ const N = O[O.length - 1];
3095
+ if (!N)
3202
3096
  throw new Error("The group path is out of range");
3203
- const z = f + w, Y = r(g, z);
3204
- return M.children.push(Y), n.set(Y.groupId, M), x = M.children[M.children.length - 1], R.push(x), x;
3097
+ const P = f + C, Y = r(L, P);
3098
+ return N.children.push(Y), n.set(Y.groupId, N), w = N.children[N.children.length - 1], O.push(w), w;
3205
3099
  }
3206
- function c(f, w, x, R) {
3207
- x.pop();
3208
- const g = x[x.length - 1], M = r(R, f);
3209
- return g.children.push(M), n.set(M.groupId, g), w = g.children[g.children.length - 1], x.push(w), w;
3100
+ function p(f, C, w, O) {
3101
+ w.pop();
3102
+ const L = w[w.length - 1], N = r(O, f);
3103
+ return L.children.push(N), n.set(N.groupId, L), C = L.children[L.children.length - 1], w.push(C), C;
3210
3104
  }
3211
- function m(f, w, x, R, g, M) {
3212
- let z = f[f.length - 1];
3213
- if (!z)
3105
+ function m(f, C, w, O, L, N) {
3106
+ let P = f[f.length - 1];
3107
+ if (!P)
3214
3108
  throw new Error("The group path is out of range");
3215
- const Y = w.get(R) || 0, C = w.get(x) || 0;
3216
- if (x < 0 || x === R)
3109
+ const Y = C.get(O) || 0, y = C.get(w) || 0;
3110
+ if (w < 0 || w === O)
3217
3111
  return f[f.length - 1];
3218
- const y = Y - C, j = g && g.relation !== void 0 ? g.relation : 1;
3219
- return z = y > 0 ? p(C, y, z, f, j) : z, z = y < 0 ? l(C, y, z, f, j) : z, z = y === 0 && C > 0 && Y > 0 && g && M && !!g.rBracket && !!M.lBracket ? c(C, z, f, j) : z, z;
3112
+ const g = Y - y, V = L && L.relation !== void 0 ? L.relation : 1;
3113
+ return P = g > 0 ? d(y, g, P, f, V) : P, P = g < 0 ? s(y, g, P, f, V) : P, P = g === 0 && y > 0 && Y > 0 && L && N && !!L.rBracket && !!N.lBracket ? p(y, P, f, V) : P, P;
3220
3114
  }
3221
3115
  function v(f) {
3222
- const x = { relation: f.length && f[0].relation !== void 0 ? f[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, R = [x], g = u(f);
3223
- return f.forEach((M, z) => {
3224
- const Y = z - 1, C = f[Y], y = m(R, g, Y, z, C, M);
3225
- y.items.push(M), e.set(M.conditionId, y);
3226
- }), t.value = x, x;
3116
+ const w = { relation: f.length && f[0].relation !== void 0 ? f[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, O = [w], L = i(f);
3117
+ return f.forEach((N, P) => {
3118
+ const Y = P - 1, y = f[Y], g = m(O, L, Y, P, y, N);
3119
+ g.items.push(N), e.set(N.conditionId, g);
3120
+ }), t.value = w, w;
3227
3121
  }
3228
3122
  function k() {
3229
3123
  const f = a();
3230
3124
  e.set(f.conditionId, t.value), t.value.items.push(f);
3231
3125
  }
3232
- function E(f) {
3126
+ function j(f) {
3233
3127
  if (!f)
3234
3128
  return;
3235
- const w = e.get(f.conditionId);
3236
- if (w) {
3237
- const x = w.items.findIndex((g) => g.conditionId === f.conditionId) + 1, R = a();
3238
- e.set(R.conditionId, w), w.items.splice(x, 0, R), s();
3129
+ const C = e.get(f.conditionId);
3130
+ if (C) {
3131
+ const w = C.items.findIndex((L) => L.conditionId === f.conditionId) + 1, O = a();
3132
+ e.set(O.conditionId, C), C.items.splice(w, 0, O), l();
3239
3133
  }
3240
3134
  }
3241
- function N(f) {
3242
- const w = e.get(f.conditionId);
3243
- w && (w.items = w.items.filter((x) => x.conditionId !== f.conditionId), e.delete(f.conditionId), H(), s());
3244
- }
3245
- function $(f, w, x, R) {
3246
- f.reduce((g, M) => {
3247
- const z = M.conditionId !== void 0, Y = M.groupId !== void 0;
3248
- if (z) {
3249
- const C = M;
3250
- x.push(C), g.items.set(C.conditionId, C);
3135
+ function H(f, C, w, O) {
3136
+ f.reduce((L, N) => {
3137
+ const P = N.conditionId !== void 0, Y = N.groupId !== void 0;
3138
+ if (P) {
3139
+ const y = N;
3140
+ w.push(y), L.items.set(y.conditionId, y);
3251
3141
  }
3252
3142
  if (Y) {
3253
- const C = M;
3254
- R.push(C), g.groups.set(C.groupId, C);
3143
+ const y = N;
3144
+ O.push(y), L.groups.set(y.groupId, y);
3255
3145
  }
3256
- return g;
3257
- }, w);
3146
+ return L;
3147
+ }, C);
3258
3148
  }
3259
- function h(f, w, x, R, g) {
3260
- f && (f.items = w.length ? f.items.filter((M) => !x.has(M.conditionId)) : f.items, f.children = R.length ? f.children.filter((M) => !g.has(M.groupId)) : f.children);
3149
+ function $(f, C, w, O, L) {
3150
+ f && (f.items = C.length ? f.items.filter((N) => !w.has(N.conditionId)) : f.items, f.children = O.length ? f.children.filter((N) => !L.has(N.groupId)) : f.children);
3261
3151
  }
3262
- function b(f, w, x) {
3263
- w.forEach((R) => {
3264
- f.items.push(R), e.set(R.conditionId, f);
3265
- }), x.forEach((R) => {
3266
- f.children.push(R), n.set(R.groupId, f);
3152
+ function h(f, C, w) {
3153
+ C.forEach((O) => {
3154
+ f.items.push(O), e.set(O.conditionId, f);
3155
+ }), w.forEach((O) => {
3156
+ f.children.push(O), n.set(O.groupId, f);
3267
3157
  });
3268
3158
  }
3269
- function P(f) {
3270
- const w = f[0], x = w.conditionId !== void 0 ? e.get(w.conditionId) : n.get(w.groupId), R = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, g = [], M = [];
3271
- if (x) {
3272
- $(f, R, g, M), h(x, g, R.items, M, R.groups);
3273
- const z = r(x.relation, x.level + 1);
3274
- b(z, g, M), x.children.push(z), n.set(z.groupId, x), s();
3159
+ function b(f) {
3160
+ const C = f[0], w = C.conditionId !== void 0 ? e.get(C.conditionId) : n.get(C.groupId), O = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, L = [], N = [];
3161
+ if (w) {
3162
+ H(f, O, L, N), $(w, L, O.items, N, O.groups);
3163
+ const P = r(w.relation, w.level + 1);
3164
+ h(P, L, N), w.children.push(P), n.set(P.groupId, w), l();
3275
3165
  }
3276
3166
  }
3277
- function D(f) {
3278
- const w = [...f.items], x = [...f.children], R = n.get(f.groupId);
3279
- R && (R.children = R.children.filter((g) => g.groupId !== f.groupId), n.delete(f.groupId), w.forEach((g) => {
3280
- R.items.push(g), e.set(g.conditionId, R);
3281
- }), x.forEach((g) => {
3282
- R.children.push(g), n.set(g.groupId, R);
3283
- }), s());
3284
- }
3285
- function W(f) {
3286
- f.relation = f.relation === 1 ? 2 : 1, s();
3287
- }
3288
- let q;
3289
- function T(f) {
3290
- const { relation: w } = f;
3291
- return (f.children && f.children.length ? f.children.map((R, g, M) => {
3292
- const z = q(R);
3293
- return z[0].lBracket = (z[0].lBracket || "") + "(", z[z.length - 1].rBracket = (z[z.length - 1].rBracket || "") + ")", z[z.length - 1].relation = g < M.length - 1 ? w : 0, z;
3167
+ function I(f) {
3168
+ const C = [...f.items], w = [...f.children], O = n.get(f.groupId);
3169
+ O && (O.children = O.children.filter((L) => L.groupId !== f.groupId), n.delete(f.groupId), C.forEach((L) => {
3170
+ O.items.push(L), e.set(L.conditionId, O);
3171
+ }), w.forEach((L) => {
3172
+ O.children.push(L), n.set(L.groupId, O);
3173
+ }), l());
3174
+ }
3175
+ function G(f) {
3176
+ f.relation = f.relation === 1 ? 2 : 1, l();
3177
+ }
3178
+ let U;
3179
+ function X(f) {
3180
+ const { relation: C } = f;
3181
+ return (f.children && f.children.length ? f.children.map((O, L, N) => {
3182
+ const P = U(O);
3183
+ return P[0].lBracket = (P[0].lBracket || "") + "(", P[P.length - 1].rBracket = (P[P.length - 1].rBracket || "") + ")", P[P.length - 1].relation = L < N.length - 1 ? C : 0, P;
3294
3184
  }) : []).flat();
3295
3185
  }
3296
- q = (f = t.value) => {
3297
- const { relation: w } = f, x = f.items.map((g, M, z) => (g.lBracket = M === 0 ? "(" : "", g.rBracket = M === z.length - 1 ? ")" : "", g.relation = M < z.length - 1 ? w || 1 : 0, g)), R = T(f);
3298
- return [...x, ...R];
3186
+ U = (f = t.value) => {
3187
+ const { relation: C } = f, w = f.items.map((L, N, P) => (L.lBracket = N === 0 ? "(" : "", L.rBracket = N === P.length - 1 ? ")" : "", L.relation = N < P.length - 1 ? C || 1 : 0, L)), O = X(f);
3188
+ return [...w, ...O];
3299
3189
  };
3300
- function H(f) {
3301
- const w = f || t.value;
3302
- if (w.children.length && w.children.forEach((x) => {
3303
- H(x);
3304
- }), w.level === 0 && !w.items.length && w.children.length === 1) {
3305
- const x = w.children[0];
3306
- t.value.relation = x.relation, D(x);
3307
- } else w.items.length === 0 && w.children.length <= 1 && D(w);
3190
+ function x(f) {
3191
+ const C = f || t.value;
3192
+ if (C.children.length && C.children.forEach((w) => {
3193
+ x(w);
3194
+ }), C.level === 0 && !C.items.length && C.children.length === 1) {
3195
+ const w = C.children[0];
3196
+ t.value.relation = w.relation, I(w);
3197
+ } else C.items.length === 0 && C.children.length <= 1 && I(C);
3198
+ }
3199
+ function D(f) {
3200
+ const C = e.get(f.conditionId);
3201
+ C && (C.items = C.items.filter((w) => w.conditionId !== f.conditionId), e.delete(f.conditionId), x(), l());
3308
3202
  }
3309
3203
  return {
3310
3204
  addCondition: k,
3311
- changeGroupRelation: W,
3205
+ changeGroupRelation: G,
3312
3206
  conditionGroupMap: e,
3313
- getConditions: q,
3314
- group: P,
3207
+ getConditions: U,
3208
+ group: b,
3315
3209
  groupParentMap: n,
3316
- insertConditionTo: E,
3210
+ insertConditionTo: j,
3317
3211
  loadConditionGroup: v,
3318
- refresh: s,
3319
- removeCondition: N,
3212
+ refresh: l,
3213
+ removeCondition: D,
3320
3214
  rootGroup: t,
3321
- unGroup: D
3215
+ unGroup: I
3322
3216
  };
3323
3217
  }
3324
3218
  function Fa(t, e, n) {
3325
- const o = i(/* @__PURE__ */ new Set()), a = i(/* @__PURE__ */ new Set()), { conditionGroupMap: r, groupParentMap: s } = n;
3326
- let u, p;
3327
- function l(h) {
3328
- let b = u.level <= h.level ? u : h, P = u.level > h.level ? u : h;
3329
- const D = [];
3330
- for (; P && b && P !== b; )
3331
- P.level > b.level ? (D.push(P), P = s.get(P.groupId)) : P.level === b.level && (b = s.get(b.groupId), b && D.unshift(b));
3332
- return D;
3333
- }
3334
- function c(h) {
3335
- a.value.add(h.groupId), h.items.forEach((b) => o.value.add(b.conditionId)), h.children.forEach((b) => c(b));
3219
+ const o = u(/* @__PURE__ */ new Set()), a = u(/* @__PURE__ */ new Set()), { conditionGroupMap: r, groupParentMap: l } = n;
3220
+ let i, d;
3221
+ function s(h) {
3222
+ let b = i.level <= h.level ? i : h, I = i.level > h.level ? i : h;
3223
+ const G = [];
3224
+ for (; I && b && I !== b; )
3225
+ I.level > b.level ? (G.push(I), I = l.get(I.groupId)) : I.level === b.level && (b = l.get(b.groupId), b && G.unshift(b));
3226
+ return G;
3227
+ }
3228
+ function p(h) {
3229
+ a.value.add(h.groupId), h.items.forEach((b) => o.value.add(b.conditionId)), h.children.forEach((b) => p(b));
3336
3230
  }
3337
3231
  function m(h) {
3338
3232
  const { conditionId: b } = h;
3339
- o.value.add(b), u = o.value.size === 0 ? r.get(b) : u;
3340
- const P = r.get(h.conditionId);
3341
- l(P).forEach((W) => c(W));
3233
+ o.value.add(b), i = o.value.size === 0 ? r.get(b) : i;
3234
+ const I = r.get(h.conditionId);
3235
+ s(I).forEach((U) => p(U));
3342
3236
  }
3343
- const v = B(() => o.value.size === 0 && a.value.size === 1), k = function(h) {
3344
- a.value.delete(h.groupId), h.items.forEach((P) => p(P)), h.children.forEach((P) => !v.value && k(P));
3345
- const b = s.get(h.groupId);
3237
+ const v = R(() => o.value.size === 0 && a.value.size === 1), k = function(h) {
3238
+ a.value.delete(h.groupId), h.items.forEach((I) => d(I)), h.children.forEach((I) => !v.value && k(I));
3239
+ const b = l.get(h.groupId);
3346
3240
  b && a.value.has(b.groupId) && k(b);
3347
3241
  };
3348
- p = function(h) {
3242
+ d = function(h) {
3349
3243
  const { conditionId: b } = h;
3350
3244
  if (o.value.has(b) && o.value.delete(b), a.value.size > 0) {
3351
- const P = r.get(b);
3352
- P && a.value.has(P.groupId) && k(P);
3245
+ const I = r.get(b);
3246
+ I && a.value.has(I.groupId) && k(I);
3353
3247
  }
3354
3248
  };
3355
- function E(h) {
3249
+ function j(h) {
3356
3250
  const { conditionId: b } = h;
3357
- o.value.size === 0 && (u = r.get(b)), o.value.has(b) ? p(h) : m(h);
3251
+ o.value.size === 0 && (i = r.get(b)), o.value.has(b) ? d(h) : m(h);
3358
3252
  }
3359
- function N() {
3253
+ function H() {
3360
3254
  const h = [];
3361
- return u && (u.items.filter((b) => o.value.has(b.conditionId)).forEach((b) => h.push(b)), u.children.filter((b) => a.value.has(b.groupId)).forEach((b) => h.push(b))), h;
3255
+ return i && (i.items.filter((b) => o.value.has(b.conditionId)).forEach((b) => h.push(b)), i.children.filter((b) => a.value.has(b.groupId)).forEach((b) => h.push(b))), h;
3362
3256
  }
3363
3257
  function $() {
3364
3258
  o.value.clear(), a.value.clear();
3365
3259
  }
3366
- return { clear: $, getSelectedGroupItem: N, selectedItems: o, toggleSelect: E };
3260
+ return { clear: $, getSelectedGroupItem: H, selectedItems: o, toggleSelect: j };
3367
3261
  }
3368
3262
  const fe = /* @__PURE__ */ ee({
3369
3263
  name: "FConditionList",
3370
3264
  props: Me,
3371
3265
  emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
3372
3266
  setup(t, e) {
3373
- const n = i(t.key), o = i(t.conditions), a = Ve(t), {
3267
+ const n = u(t.key), o = u(t.conditions), a = Ve(t), {
3374
3268
  convertToSingleControl: r,
3375
- fields: s,
3376
- fieldMap: u,
3377
- loadFieldConfigs: p
3378
- } = a, l = Ba(), {
3379
- addCondition: c,
3269
+ fields: l,
3270
+ fieldMap: i,
3271
+ loadFieldConfigs: d
3272
+ } = a, s = Ba(), {
3273
+ addCondition: p,
3380
3274
  changeGroupRelation: m,
3381
3275
  getConditions: v,
3382
3276
  group: k,
3383
- insertConditionTo: E,
3384
- loadConditionGroup: N,
3277
+ insertConditionTo: j,
3278
+ loadConditionGroup: H,
3385
3279
  refresh: $,
3386
3280
  removeCondition: h,
3387
3281
  rootGroup: b,
3388
- unGroup: P
3389
- } = l, {
3390
- createConditionValue: D
3391
- } = Ie(), W = Fa(t, e, l), {
3392
- selectedItems: q,
3393
- toggleSelect: T
3394
- } = W, {
3395
- getCompareOperators: H
3282
+ unGroup: I
3283
+ } = s, {
3284
+ createConditionValue: G
3285
+ } = Ie(), U = Fa(t, e, s), {
3286
+ selectedItems: X,
3287
+ toggleSelect: x
3288
+ } = U, {
3289
+ getCompareOperators: D
3396
3290
  } = ka(t, e, a);
3397
- p(!1), s.value = r(s.value), N(o.value);
3398
- function f(y) {
3399
- var G;
3400
- const j = ((G = u.get(y.fieldCode)) == null ? void 0 : G.editor) || {
3291
+ d(!1), l.value = r(l.value), H(o.value);
3292
+ function f(g) {
3293
+ var A;
3294
+ const V = ((A = i.get(g.fieldCode)) == null ? void 0 : A.editor) || {
3401
3295
  type: "text"
3402
3296
  };
3403
- y.value = D(j.type, void 0), e.emit("labelCodeChange", y);
3297
+ g.value = G(V.type, void 0), e.emit("labelCodeChange", g);
3404
3298
  }
3405
- function w(y, j) {
3406
- e.emit("compareTypeChange", j);
3299
+ function C(g, V) {
3300
+ e.emit("compareTypeChange", V);
3407
3301
  }
3408
- function x() {
3302
+ function w() {
3409
3303
  }
3410
3304
  e.expose({
3411
3305
  getConditions: v
3412
3306
  });
3413
- function R(y, j) {
3414
- e.emit("valueChange", y, j);
3307
+ function O(g, V) {
3308
+ e.emit("valueChange", g, V);
3415
3309
  }
3416
- function g(y) {
3417
- return y.items.map((j) => {
3418
- var G;
3419
- return d("div", {
3310
+ function L(g) {
3311
+ return g.items.map((V) => {
3312
+ var A;
3313
+ return c("div", {
3420
3314
  class: "condition-list-item",
3421
- key: j.conditionId
3422
- }, [d("div", {
3315
+ key: V.conditionId
3316
+ }, [c("div", {
3423
3317
  class: "condition-list-item-type mr-3"
3424
- }, [d(he, {
3318
+ }, [c(he, {
3425
3319
  "value-field": "labelCode",
3426
3320
  "text-field": "name",
3427
3321
  "id-field": "id",
3428
- data: s.value,
3429
- modelValue: j.fieldCode,
3430
- "onUpdate:modelValue": (U) => j.fieldCode = U,
3431
- onChange: (U) => f(j)
3432
- }, null)]), d("div", {
3322
+ data: l.value,
3323
+ modelValue: V.fieldCode,
3324
+ "onUpdate:modelValue": (q) => V.fieldCode = q,
3325
+ onChange: (q) => f(V)
3326
+ }, null)]), c("div", {
3433
3327
  class: "condition-list-item-compare mr-3"
3434
- }, [d(he, {
3328
+ }, [c(he, {
3435
3329
  "value-field": "value",
3436
3330
  "text-field": "name",
3437
3331
  "id-field": "id",
3438
- data: H(j),
3439
- modelValue: j.compareType,
3440
- "onUpdate:modelValue": (U) => j.compareType = U,
3441
- onChange: (U) => w(U, j)
3442
- }, null)]), d("div", {
3332
+ data: D(V),
3333
+ modelValue: V.compareType,
3334
+ "onUpdate:modelValue": (q) => V.compareType = q,
3335
+ onChange: (q) => C(q, V)
3336
+ }, null)]), c("div", {
3443
3337
  class: "condition-list-item-control mr-3"
3444
- }, [d(Go, {
3445
- editor: (G = u.get(j.fieldCode)) == null ? void 0 : G.editor,
3338
+ }, [c(Go, {
3339
+ editor: (A = i.get(V.fieldCode)) == null ? void 0 : A.editor,
3446
3340
  showLabel: !1,
3447
- modelValue: j.value.value,
3448
- "onUpdate:modelValue": (U) => j.value.value = U,
3449
- onChange: (U) => {
3450
- R(U, j);
3341
+ modelValue: V.value.value,
3342
+ "onUpdate:modelValue": (q) => V.value.value = q,
3343
+ onChange: (q) => {
3344
+ O(q, V);
3451
3345
  }
3452
- }, null)]), d("div", {
3346
+ }, null)]), c("div", {
3453
3347
  class: "condition-list-item-extend"
3454
- }, [d("span", {
3348
+ }, [c("span", {
3455
3349
  class: "f-icon f-icon-plus-sm mr-2",
3456
- onClick: () => E(j)
3457
- }, null), d("span", {
3350
+ onClick: () => j(V)
3351
+ }, null), c("span", {
3458
3352
  class: "f-icon f-icon-minus-sm",
3459
- onClick: () => h(j)
3460
- }, null)]), d("div", {
3353
+ onClick: () => h(V)
3354
+ }, null)]), c("div", {
3461
3355
  class: "custom-control custom-checkbox"
3462
- }, [d("input", {
3356
+ }, [c("input", {
3463
3357
  title: "selection",
3464
3358
  class: "custom-control-input",
3465
3359
  type: "checkbox",
3466
- checked: q.value.has(j.conditionId)
3467
- }, null), d("label", {
3360
+ checked: X.value.has(V.conditionId)
3361
+ }, null), c("label", {
3468
3362
  class: "custom-control-label",
3469
- onClick: () => T(j)
3363
+ onClick: () => x(V)
3470
3364
  }, null)])]);
3471
3365
  });
3472
3366
  }
3473
- function M(y) {
3474
- return d("div", {
3367
+ function N(g) {
3368
+ return c("div", {
3475
3369
  class: "condition-list-relation"
3476
- }, [d("span", {
3370
+ }, [c("span", {
3477
3371
  class: "condition-list-relation-close f-icon-filter-cancel btn-link",
3478
- onClick: () => P(y)
3479
- }, null), d("span", {
3372
+ onClick: () => I(g)
3373
+ }, null), c("span", {
3480
3374
  class: "condition-list-relation-text btn-link",
3481
- onClick: () => m(y)
3482
- }, [y.relation === 1 ? "与" : "或"])]);
3375
+ onClick: () => m(g)
3376
+ }, [g.relation === 1 ? "与" : "或"])]);
3483
3377
  }
3484
- function z(y) {
3485
- return d("div", {
3378
+ function P(g) {
3379
+ return c("div", {
3486
3380
  class: "condition-list-content"
3487
- }, [d("div", {
3381
+ }, [c("div", {
3488
3382
  class: "condition-list-content-group"
3489
- }, [g(y), y.children && y.children.map((j) => z(j))]), M(y)]);
3383
+ }, [L(g), g.children && g.children.map((V) => P(V))]), N(g)]);
3490
3384
  }
3491
3385
  function Y() {
3492
- k(W.getSelectedGroupItem()), W.clear();
3386
+ k(U.getSelectedGroupItem()), U.clear();
3493
3387
  }
3494
- function C() {
3495
- return d("div", {
3388
+ function y() {
3389
+ return c("div", {
3496
3390
  class: "condition-list-bottom"
3497
- }, [d("div", {
3391
+ }, [c("div", {
3498
3392
  class: "add-condition-btn mb-1 mr-3",
3499
- onClick: c
3500
- }, [d("span", {
3393
+ onClick: p
3394
+ }, [c("span", {
3501
3395
  class: "f-icon f-icon-filter-add"
3502
- }, null), d("span", {
3396
+ }, null), c("span", {
3503
3397
  class: "ml-1"
3504
- }, [le("添加条件")])]), d("div", {
3398
+ }, [le("添加条件")])]), c("div", {
3505
3399
  class: "add-condition-btn mb-1",
3506
3400
  onClick: Y
3507
- }, [d("span", {
3401
+ }, [c("span", {
3508
3402
  class: "f-icon f-icon-filter-grouping"
3509
- }, null), d("span", {
3403
+ }, null), c("span", {
3510
3404
  class: "ml-1"
3511
- }, [le("生成条件组")])]), d("div", {
3405
+ }, [le("生成条件组")])]), c("div", {
3512
3406
  class: "condition-list-reset add-condition-btn",
3513
- onClick: x
3407
+ onClick: w
3514
3408
  }, [le("重置")])]);
3515
3409
  }
3516
- return () => d("div", {
3410
+ return () => c("div", {
3517
3411
  class: "condition-list",
3518
3412
  key: n.value
3519
- }, [d("div", {
3413
+ }, [c("div", {
3520
3414
  class: "condition-list-body"
3521
- }, [z(b.value)]), C()]);
3415
+ }, [P(b.value)]), y()]);
3522
3416
  }
3523
3417
  });
3524
3418
  fe.install = (t) => {
@@ -3528,7 +3422,7 @@ export {
3528
3422
  wa as EnumType,
3529
3423
  ke as FConditionFields,
3530
3424
  fe as FConditionList,
3531
- Ae as ValueType,
3425
+ He as ValueType,
3532
3426
  Me as conditionProps,
3533
3427
  fe as default,
3534
3428
  Ba as useCondition