@farris/ui-vue 1.3.1 → 1.3.3

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