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