@farris/ui-vue 1.2.8 → 1.3.0

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