@farris/ui-vue 1.2.8 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,162 +1,165 @@
1
- var Ee = Object.defineProperty;
2
- var Ve = (e, t, n) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var L = (e, t, n) => Ve(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as q, ref as m, computed as k, createVNode as A, nextTick as oe, inject as z, onMounted as U, watch as I, createTextVNode as Oe, reactive as $e, withDirectives as Ne, resolveDirective as Le, Fragment as ue, mergeProps as Z } from "vue";
5
- import { cloneDeep as Ie } from "lodash-es";
1
+ var yt = Object.defineProperty;
2
+ var ht = (e, t, n) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var G = (e, t, n) => ht(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as Z, ref as d, computed as x, createVNode as m, nextTick as ye, inject as ue, onMounted as K, watch as X, createTextVNode as _, reactive as te, withDirectives as bt, resolveDirective as Ct, Fragment as ce, mergeProps as ae, onUnmounted as $e, Teleport as wt, Transition as xt, shallowRef as Tt, createApp as Bt, render as Te, h as Mt, cloneVNode as Ft } from "vue";
5
+ import { isPlainObject as De, cloneDeep as Ee } from "lodash-es";
6
+ import { BaseControlProperty as kt } from "../property-panel/index.esm.js/src/composition/entity/base-property";
7
+ import { useResponseLayoutEditorSetting as qe } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
8
+ import { DgControl as Et } from "../designer-canvas/index.esm.js/src/composition/dg-control";
6
9
  import "bignumber.js";
7
- import Ge, { useNumber as qe, useFormat as Re, useSpinner as Ue, useTextBox as We } from "../number-spinner/index.esm.js";
8
- import He from "../accordion/index.esm.js";
9
- import ze from "../avatar/index.esm.js";
10
- import _e from "../button-edit/index.esm.js";
11
- import Je from "../button-group/index.esm.js";
12
- import Qe from "../calendar/index.esm.js";
13
- import Ze from "../capsule/index.esm.js";
14
- import Xe from "../checkbox/index.esm.js";
15
- import Ye from "../combo-list/index.esm.js";
16
- import Ke from "../combo-tree/index.esm.js";
17
- import et from "../component/index.esm.js";
18
- import tt from "../color-picker/index.esm.js";
19
- import nt from "../content-container/index.esm.js";
20
- import ot from "../date-picker/index.esm.js";
21
- import rt from "../data-grid/index.esm.js";
22
- import at from "../dropdown/index.esm.js";
23
- import it from "../dynamic-form/index.esm.js";
24
- import st from "../events-editor/index.esm.js";
25
- import lt from "../filter-bar/index.esm.js";
26
- import ct from "../field-selector/index.esm.js";
27
- import ut from "../image-cropper/index.esm.js";
28
- import pt from "../input-group/index.esm.js";
29
- import dt from "../layout/index.esm.js";
30
- import ft from "../list-nav/index.esm.js";
31
- import mt from "../list-view/index.esm.js";
32
- import yt from "../lookup/index.esm.js";
33
- import gt from "../mapping-editor/index.esm.js";
34
- import bt from "../nav/index.esm.js";
35
- import ht from "../number-range/index.esm.js";
36
- import vt from "../order/index.esm.js";
37
- import Ct from "../page-header/index.esm.js";
38
- import wt from "../page-footer/index.esm.js";
39
- import Tt from "../pagination/index.esm.js";
40
- import Ft from "../progress/index.esm.js";
41
- import Bt from "../query-solution/index.esm.js";
42
- import kt from "../radio-group/index.esm.js";
43
- import jt from "../rate/index.esm.js";
44
- import Pt from "../response-toolbar/index.esm.js";
45
- import xt from "../response-layout/index.esm.js";
46
- import St from "../response-layout-editor/index.esm.js";
47
- import Mt from "../search-box/index.esm.js";
48
- import At from "../section/index.esm.js";
49
- import Dt from "../smoke-detector/index.esm.js";
50
- import Et from "../splitter/index.esm.js";
51
- import Vt from "../step/index.esm.js";
52
- import Ot from "../switch/index.esm.js";
53
- import $t from "../tabs/index.esm.js";
54
- import Nt from "../tags/index.esm.js";
55
- import Lt from "../text/index.esm.js";
56
- import It from "../time-picker/index.esm.js";
57
- import Gt from "../transfer/index.esm.js";
58
- import qt from "../tree-view/index.esm.js";
59
- import Rt from "../uploader/index.esm.js";
60
- import Ut from "../verify-detail/index.esm.js";
61
- import Wt from "../weather/index.esm.js";
62
- import Ht from "../video/index.esm.js";
63
- import zt from "../textarea/index.esm.js";
64
- import _t from "../schema-selector/index.esm.js";
65
- import Jt from "../tree-grid/index.esm.js";
10
+ import St, { useNumber as Pt, useFormat as jt, useSpinner as It, useTextBox as Lt } from "../number-spinner/index.esm.js";
11
+ import At from "../accordion/index.esm.js";
12
+ import Dt from "../avatar/index.esm.js";
13
+ import Ot from "../button-edit/index.esm.js";
14
+ import Vt from "../button-group/index.esm.js";
15
+ import Rt from "../calendar/index.esm.js";
16
+ import Nt from "../capsule/index.esm.js";
17
+ import $t from "../checkbox/index.esm.js";
18
+ import ie from "../combo-list/index.esm.js";
19
+ import qt from "../combo-tree/index.esm.js";
20
+ import Ut from "../component/index.esm.js";
21
+ import zt from "../color-picker/index.esm.js";
22
+ import Ht from "../content-container/index.esm.js";
23
+ import Gt from "../date-picker/index.esm.js";
24
+ import Wt from "../data-grid/index.esm.js";
25
+ import Xt from "../dropdown/index.esm.js";
26
+ import Yt from "../dynamic-form/index.esm.js";
27
+ import Jt from "../events-editor/index.esm.js";
28
+ import Qt from "../filter-bar/index.esm.js";
29
+ import Zt from "../field-selector/index.esm.js";
30
+ import _t from "../image-cropper/index.esm.js";
31
+ import Kt from "../input-group/index.esm.js";
32
+ import en from "../layout/index.esm.js";
33
+ import tn from "../list-nav/index.esm.js";
34
+ import nn from "../list-view/index.esm.js";
35
+ import on from "../lookup/index.esm.js";
36
+ import an from "../mapping-editor/index.esm.js";
37
+ import rn from "../nav/index.esm.js";
38
+ import sn from "../number-range/index.esm.js";
39
+ import ln from "../order/index.esm.js";
40
+ import un from "../page-header/index.esm.js";
41
+ import cn from "../page-footer/index.esm.js";
42
+ import dn from "../pagination/index.esm.js";
43
+ import pn from "../progress/index.esm.js";
44
+ import fn from "../query-solution/index.esm.js";
45
+ import mn from "../radio-group/index.esm.js";
46
+ import vn from "../rate/index.esm.js";
47
+ import gn from "../response-toolbar/index.esm.js";
48
+ import yn from "../response-layout/index.esm.js";
49
+ import hn from "../response-layout-editor/index.esm.js";
50
+ import bn from "../search-box/index.esm.js";
51
+ import Cn from "../section/index.esm.js";
52
+ import wn from "../smoke-detector/index.esm.js";
53
+ import xn from "../splitter/index.esm.js";
54
+ import Tn from "../step/index.esm.js";
55
+ import Bn from "../switch/index.esm.js";
56
+ import Mn from "../tabs/index.esm.js";
57
+ import Fn from "../tags/index.esm.js";
58
+ import kn from "../text/index.esm.js";
59
+ import En from "../time-picker/index.esm.js";
60
+ import Sn from "../transfer/index.esm.js";
61
+ import Pn from "../tree-view/index.esm.js";
62
+ import jn from "../uploader/index.esm.js";
63
+ import In from "../verify-detail/index.esm.js";
64
+ import Ln from "../weather/index.esm.js";
65
+ import An from "../video/index.esm.js";
66
+ import Dn from "../textarea/index.esm.js";
67
+ import On from "../schema-selector/index.esm.js";
68
+ import Vn from "../tree-grid/index.esm.js";
66
69
  import "../external-container/index.esm.js";
67
- import { getSchemaByType as pe } from "../dynamic-resolver/index.esm.js";
68
- const ye = {}, ge = {};
69
- function re(e) {
70
- const { properties: t, title: n } = e, r = Object.keys(t).reduce((o, s) => (o[s] = t[s].type === "object" && t[s].properties ? re(t[s]) : Ie(t[s].default), o), {});
71
- return r.id = `${n}-${Date.now()}`, r;
72
- }
73
- function _(e, t = {}) {
74
- const n = ye[e];
75
- if (n) {
76
- let r = re(n);
77
- const o = ge[e];
78
- return r = o ? o({ getSchemaByType: _ }, r, t) : r, r;
70
+ import { getSchemaByType as Oe, createPropsResolver as Rn } from "../dynamic-resolver/index.esm.js";
71
+ const Ue = {}, ze = {};
72
+ function Se(e) {
73
+ const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), s = Object.keys(t).reduce((l, u) => ((!a || !o.find((i) => i == u)) && (l[u] = t[u].type === "object" && t[u].properties ? Se(t[u]) : Ee(t[u].default)), l), {});
74
+ return (!a || !o.find((l) => l == "id")) && (s.id = `${n}-${Date.now()}`), s;
75
+ }
76
+ function de(e, t = {}, n) {
77
+ const o = Ue[e];
78
+ if (o) {
79
+ let a = Se(o);
80
+ const s = ze[e];
81
+ return a = s ? s({ getSchemaByType: de }, a, t, n) : a, a;
79
82
  }
80
83
  return null;
81
84
  }
82
- function Qt(e, t) {
83
- const n = re(t);
84
- return Object.keys(e).reduce((r, o) => (r[o] && typeof r[o] == "object" ? Object.assign(r[o], e[o]) : r[o] = e[o], r), n), n;
85
+ function Nn(e, t) {
86
+ const n = Se(t);
87
+ return Object.keys(e).reduce((o, a) => (o[a] && De(o[a]) && De(e[a]) ? Object.assign(o[a], e[a]) : o[a] = e[a], o), n), n;
85
88
  }
86
- function Zt(e, t) {
87
- return Object.keys(e).filter((r) => e[r] != null).reduce((r, o) => {
88
- if (t.has(o)) {
89
- const s = t.get(o);
89
+ function $n(e, t) {
90
+ return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
91
+ if (t.has(a)) {
92
+ const s = t.get(a);
90
93
  if (typeof s == "string")
91
- r[s] = e[o];
94
+ o[s] = e[a];
92
95
  else {
93
- const i = s(o, e[o], e);
94
- Object.assign(r, i);
96
+ const l = s(a, e[a], e);
97
+ Object.assign(o, l);
95
98
  }
96
99
  } else
97
- r[o] = e[o];
98
- return r;
100
+ o[a] = e[a];
101
+ return o;
99
102
  }, {});
100
103
  }
101
- function Xt(e, t, n = /* @__PURE__ */ new Map()) {
102
- const r = Qt(e, t);
103
- return Zt(r, n);
104
+ function qn(e, t, n = /* @__PURE__ */ new Map()) {
105
+ const o = Nn(e, t);
106
+ return $n(o, n);
104
107
  }
105
- function Yt(e = {}) {
106
- function t(a, d, c, y) {
108
+ function Un(e = {}) {
109
+ function t(r, p, c, v) {
107
110
  if (typeof c == "number")
108
- return y[a].length === c;
111
+ return v[r].length === c;
109
112
  if (typeof c == "object") {
110
- const w = Object.keys(c)[0], l = c[w];
111
- if (w === "not")
112
- return Number(y[a].length) !== Number(l);
113
- if (w === "moreThan")
114
- return Number(y[a].length) >= Number(l);
115
- if (w === "lessThan")
116
- return Number(y[a].length) <= Number(l);
113
+ const b = Object.keys(c)[0], f = c[b];
114
+ if (b === "not")
115
+ return Number(v[r].length) !== Number(f);
116
+ if (b === "moreThan")
117
+ return Number(v[r].length) >= Number(f);
118
+ if (b === "lessThan")
119
+ return Number(v[r].length) <= Number(f);
117
120
  }
118
121
  return !1;
119
122
  }
120
- function n(a, d, c, y) {
121
- return y[a] && y[a].propertyValue && String(y[a].propertyValue.value) === String(c);
123
+ function n(r, p, c, v) {
124
+ return v[r] && v[r].propertyValue && String(v[r].propertyValue.value) === String(c);
122
125
  }
123
- const r = /* @__PURE__ */ new Map([
126
+ const o = /* @__PURE__ */ new Map([
124
127
  ["length", t],
125
128
  ["getProperty", n]
126
129
  ]);
127
- Object.keys(e).reduce((a, d) => (a.set(d, e[d]), a), r);
128
- function o(a, d) {
129
- const c = a;
130
- return typeof d == "number" ? [{ target: c, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: c, operator: "getProperty", param: a, value: !!d }] : typeof d == "object" ? Object.keys(d).map((y) => {
131
- if (y === "length")
132
- return { target: c, operator: "length", param: null, value: d[y] };
133
- const w = y, l = d[y];
134
- return { target: c, operator: "getProperty", param: w, value: l };
130
+ Object.keys(e).reduce((r, p) => (r.set(p, e[p]), r), o);
131
+ function a(r, p) {
132
+ const c = r;
133
+ return typeof p == "number" ? [{ target: c, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: c, operator: "getProperty", param: r, value: !!p }] : typeof p == "object" ? Object.keys(p).map((v) => {
134
+ if (v === "length")
135
+ return { target: c, operator: "length", param: null, value: p[v] };
136
+ const b = v, f = p[v];
137
+ return { target: c, operator: "getProperty", param: b, value: f };
135
138
  }) : [];
136
139
  }
137
- function s(a) {
138
- return Object.keys(a).reduce((c, y) => {
139
- const w = o(y, a[y]);
140
- return c.push(...w), c;
140
+ function s(r) {
141
+ return Object.keys(r).reduce((c, v) => {
142
+ const b = a(v, r[v]);
143
+ return c.push(...b), c;
141
144
  }, []);
142
145
  }
143
- function i(a, d) {
144
- if (r.has(a.operator)) {
145
- const c = r.get(a.operator);
146
- return c && c(a.target, a.param, a.value, d) || !1;
146
+ function l(r, p) {
147
+ if (o.has(r.operator)) {
148
+ const c = o.get(r.operator);
149
+ return c && c(r.target, r.param, r.value, p) || !1;
147
150
  }
148
151
  return !1;
149
152
  }
150
- function u(a, d) {
151
- return s(a).reduce((w, l) => w && i(l, d), !0);
153
+ function u(r, p) {
154
+ return s(r).reduce((b, f) => b && l(f, p), !0);
152
155
  }
153
- function p(a, d) {
154
- const c = Object.keys(a), y = c.includes("allOf"), w = c.includes("anyOf"), l = y || w, T = (l ? a[l ? y ? "allOf" : "anyOf" : "allOf"] : [a]).map((M) => u(M, d));
155
- return y ? !T.includes(!1) : T.includes(!0);
156
+ function i(r, p) {
157
+ const c = Object.keys(r), v = c.includes("allOf"), b = c.includes("anyOf"), f = v || b, C = (f ? r[f ? v ? "allOf" : "anyOf" : "allOf"] : [r]).map((F) => u(F, p));
158
+ return v ? !C.includes(!1) : C.includes(!0);
156
159
  }
157
- return { parseValueSchema: p };
160
+ return { parseValueSchema: i };
158
161
  }
159
- const j = {
162
+ const V = {
160
163
  button: { type: "button", name: "按钮", icon: "Button" },
161
164
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
162
165
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -193,19 +196,20 @@ const j = {
193
196
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
194
197
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
195
198
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
196
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
197
- }, be = {}, Kt = {};
198
- Yt();
199
- function X(e, t, n = /* @__PURE__ */ new Map(), r = (i, u, p) => u, o = {}, s = (i) => i) {
200
- return ye[t.title] = t, ge[t.title] = r, be[t.title] = o, Kt[t.title] = s, (i = {}) => {
201
- const u = Xt(i, t, n), p = Object.keys(e).reduce((a, d) => (a[d] = e[d].default, a), {});
202
- return Object.assign(p, u);
199
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
200
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
201
+ }, He = {}, zn = {};
202
+ Un();
203
+ function be(e, t, n = /* @__PURE__ */ new Map(), o = (l, u, i) => u, a = {}, s = (l) => l) {
204
+ return Ue[t.title] = t, ze[t.title] = o, He[t.title] = a, zn[t.title] = s, (l = {}) => {
205
+ const u = qn(l, t, n), i = Object.keys(e).reduce((r, p) => (r[p] = e[p].default, r), {});
206
+ return Object.assign(i, u);
203
207
  };
204
208
  }
205
- function he(e, t) {
209
+ function Ge(e, t) {
206
210
  return { customClass: t.class, customStyle: t.style };
207
211
  }
208
- function en() {
212
+ function Hn() {
209
213
  function e(t) {
210
214
  return t.editor;
211
215
  }
@@ -213,25 +217,151 @@ function en() {
213
217
  resolve: e
214
218
  };
215
219
  }
216
- const ae = /* @__PURE__ */ new Map([
217
- ["appearance", he]
218
- ]);
219
- function tn(e, t, n, r) {
220
- const o = e.getSchemaByType("section");
221
- return o.id = `${r}-section`, o.appearance = { class: "f-section-form f-section-in-main" }, o.mainTitle = "标题", o.contents = [t], o;
222
- }
223
- function nn(e, t, n, r) {
224
- const o = e.getSchemaByType("component");
225
- return o.id = `${r}-component`, o.componentType = "form-col-1", o.appearance = {
226
- class: "f-struct-form f-struct-wrapper"
227
- }, o.contents = [t], o;
228
- }
229
- function on(e, t, n) {
230
- t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
231
- const r = tn(e, t, n, t.id);
232
- return nn(e, r, n, t.id);
233
- }
234
- const rn = "https://json-schema.org/draft/2020-12/schema", an = "https://farris-design.gitee.io/response-form.schema.json", sn = "response-form", ln = "A Farris Data Collection Component", cn = "object", un = {
220
+ const Pe = /* @__PURE__ */ new Map([
221
+ ["appearance", Ge]
222
+ ]), Gn = /* @__PURE__ */ new Map([]);
223
+ var ke = /* @__PURE__ */ ((e) => (e.String = "String", e.DateTime = "DateTime", e.Date = "Date", e.Enum = "Enum", e.Boolean = "Boolean", e.Number = "Number", e.Text = "Text", e.BigNumber = "BigNumber", e))(ke || {});
224
+ const Wn = "root-viewmodel";
225
+ class Xn {
226
+ constructor(t, n) {
227
+ G(this, "formSchemaUtils");
228
+ G(this, "controlCreatorUtils");
229
+ G(this, "designViewModelUtils");
230
+ this.resolver = t, this.designerHostService = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
231
+ }
232
+ createComponent(t) {
233
+ const n = this.createComponentRefNode(t), o = this.createComponentNode(t), a = this.createViewModeNode(t), s = this.formSchemaUtils.getFormSchema();
234
+ return s.module.viewmodels.push(a), s.module.components.push(o), this.designViewModelUtils.assembleDesignViewModel(), n;
235
+ }
236
+ createComponentRefNode(t) {
237
+ const n = this.resolver.getSchemaByType("component-ref");
238
+ return Object.assign(n, {
239
+ id: `${t.componentId}-component-ref`,
240
+ component: `${t.componentId}-component`
241
+ }), n;
242
+ }
243
+ createComponentNode(t) {
244
+ const n = this.resolver.getSchemaByType("component"), o = this.createFormComponentContents(t);
245
+ return Object.assign(n, {
246
+ id: `${t.componentId}-component`,
247
+ viewModel: `${t.componentId}-component-viewmodel`,
248
+ componentType: t.componentType,
249
+ appearance: {
250
+ class: this.getFormComponentClass()
251
+ },
252
+ formColumns: t.formColumns,
253
+ contents: o
254
+ }), n;
255
+ }
256
+ /**
257
+ * 获取卡片组件层级的class样式
258
+ */
259
+ getFormComponentClass() {
260
+ return this.formSchemaUtils.getFormSchema().module.templateId === "double-list-in-tab-template" ? "f-struct-wrapper f-utils-fill-flex-column" : "f-struct-wrapper";
261
+ }
262
+ createFormComponentContents(t) {
263
+ const n = this.resolver.getSchemaByType("section");
264
+ Object.assign(n, {
265
+ id: t.componentId + "-form-section",
266
+ appearance: {
267
+ class: "f-section-form f-section-in-mainsubcard"
268
+ },
269
+ mainTitle: t.componentName
270
+ });
271
+ const o = this.resolver.getSchemaByType("response-form"), a = [];
272
+ Object.assign(o, {
273
+ id: t.componentId + "-form",
274
+ appearance: {
275
+ class: "f-form-layout farris-form farris-form-controls-inline"
276
+ },
277
+ contents: a
278
+ }), n.contents = [o];
279
+ const { selectedFields: s } = t;
280
+ return s == null || s.forEach((u) => {
281
+ const i = Ee(u), r = this.resolveControlClassByFormColumns(t), p = this.controlCreatorUtils.setFormFieldProperty(i, "", r);
282
+ p && a.push(p);
283
+ }), this.formSchemaUtils.getFormSchema().module.templateId === "double-list-in-tab-template" && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0), [n];
284
+ }
285
+ resolveControlClassByFormColumns(t) {
286
+ let n = "";
287
+ switch (t.formColumns) {
288
+ case 1: {
289
+ n = "col-12 col-md-12 col-xl-12 col-el-12";
290
+ break;
291
+ }
292
+ case 2: {
293
+ n = "col-12 col-md-6 col-xl-6 col-el-6";
294
+ break;
295
+ }
296
+ case 3: {
297
+ n = "col-12 col-md-6 col-xl-4 col-el-4";
298
+ break;
299
+ }
300
+ case 4: {
301
+ n = "col-12 col-md-6 col-xl-3 col-el-2";
302
+ break;
303
+ }
304
+ }
305
+ return n;
306
+ }
307
+ /**
308
+ * 添加viewModel节点
309
+ */
310
+ createViewModeNode(t) {
311
+ return {
312
+ id: `${t.componentId}-component-viewmodel`,
313
+ code: `${t.componentId}-component-viewmodel`,
314
+ name: t.componentName,
315
+ bindTo: t.bindTo,
316
+ parent: Wn,
317
+ fields: this.assembleViewModelFields(t),
318
+ commands: [],
319
+ states: [],
320
+ enableValidation: !0,
321
+ pagination: {
322
+ enable: !1
323
+ }
324
+ };
325
+ }
326
+ /**
327
+ * 组装viewModel fields 节点
328
+ */
329
+ assembleViewModelFields(t) {
330
+ const n = [], { selectedFields: o } = t;
331
+ return o == null || o.forEach((a) => {
332
+ let s = "blur";
333
+ const l = a.type.name;
334
+ (l === ke.Enum || l === ke.Boolean) && (s = "change"), n.push({
335
+ type: "Form",
336
+ id: a.id,
337
+ fieldName: a.bindingField,
338
+ groupId: null,
339
+ groupName: null,
340
+ updateOn: s,
341
+ fieldSchema: {}
342
+ });
343
+ }), n;
344
+ }
345
+ }
346
+ function Yn(e, t, n, o) {
347
+ const a = n.parentComponentInstance;
348
+ if (a) {
349
+ const l = {
350
+ componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
351
+ componentName: "标题",
352
+ componentType: "form",
353
+ formColumns: 4,
354
+ parentContainerId: a.schema.id,
355
+ bindTo: "/"
356
+ };
357
+ return new Xn(e, o).createComponent(l);
358
+ } else
359
+ return t;
360
+ }
361
+ function Jn(e, t, n) {
362
+ return t;
363
+ }
364
+ const Qn = "https://json-schema.org/draft/2020-12/schema", Zn = "https://farris-design.gitee.io/response-form.schema.json", _n = "response-form", Kn = "A Farris Data Collection Component", eo = "object", to = {
235
365
  id: {
236
366
  description: "The unique identifier for a form group",
237
367
  type: "string"
@@ -259,63 +389,36 @@ const rn = "https://json-schema.org/draft/2020-12/schema", an = "https://farris-
259
389
  type: "array",
260
390
  default: []
261
391
  }
262
- }, pn = [
392
+ }, no = [
263
393
  "id",
264
394
  "type"
265
- ], dn = {
266
- $schema: rn,
267
- $id: an,
268
- title: sn,
269
- description: ln,
270
- type: cn,
271
- properties: un,
272
- required: pn
273
- }, fn = "response-form", mn = "A Farris Component", yn = "object", gn = {
274
- basic: {
275
- description: "Basic Infomation",
276
- title: "基本信息",
277
- properties: {
278
- id: {
279
- description: "组件标识",
280
- title: "标识",
281
- type: "string",
282
- readonly: !0
283
- },
284
- type: {
285
- description: "组件类型",
286
- title: "控件类型",
287
- type: "select",
288
- editor: {
289
- type: "waiting for modification",
290
- enum: []
291
- }
292
- }
293
- }
294
- }
295
- }, bn = {
296
- title: fn,
297
- description: mn,
298
- type: yn,
299
- categories: gn
300
- }, ve = {
395
+ ], oo = {
396
+ $schema: Qn,
397
+ $id: Zn,
398
+ title: _n,
399
+ description: Kn,
400
+ type: eo,
401
+ properties: to,
402
+ required: no
403
+ }, We = {
301
404
  customClass: { type: String, default: "" }
302
- }, de = X(ve, dn, ae, on, bn), ee = /* @__PURE__ */ q({
405
+ }, Ve = be(We, oo, Pe, Yn), Be = /* @__PURE__ */ Z({
303
406
  name: "FResponseForm",
304
- props: ve,
407
+ props: We,
305
408
  emits: [],
306
409
  setup(e, t) {
307
- const n = m(), r = k(() => {
308
- const o = e.customClass.split(" "), s = {
410
+ const n = d(), o = x(() => {
411
+ const a = e.customClass.split(" "), s = {
309
412
  "drag-container": !0
310
413
  };
311
- return o.reduce((i, u) => (i[u] = !0, i), s), s;
414
+ return a.reduce((l, u) => (l[u] = !0, l), s), s;
312
415
  });
313
- return () => A("div", {
416
+ return () => m("div", {
314
417
  ref: n,
315
- class: r.value
418
+ class: o.value
316
419
  }, [t.slots.default && t.slots.default()]);
317
420
  }
318
- }), hn = "https://json-schema.org/draft/2020-12/schema", vn = "https://farris-design.gitee.io/form-group.schema.json", Cn = "form-group", wn = "A Farris Input Component", Tn = "object", Fn = {
421
+ }), ao = "https://json-schema.org/draft/2020-12/schema", ro = "https://farris-design.gitee.io/form-group.schema.json", so = "form-group", lo = "A Farris Input Component", io = "object", uo = {
319
422
  id: {
320
423
  description: "The unique identifier for a form group",
321
424
  type: "string"
@@ -356,18 +459,18 @@ const rn = "https://json-schema.org/draft/2020-12/schema", an = "https://farris-
356
459
  description: "",
357
460
  type: "number"
358
461
  }
359
- }, Bn = [
462
+ }, co = [
360
463
  "id",
361
464
  "type"
362
- ], Ce = {
363
- $schema: hn,
364
- $id: vn,
365
- title: Cn,
366
- description: wn,
367
- type: Tn,
368
- properties: Fn,
369
- required: Bn
370
- }, J = {
465
+ ], Xe = {
466
+ $schema: ao,
467
+ $id: ro,
468
+ title: so,
469
+ description: lo,
470
+ type: io,
471
+ properties: uo,
472
+ required: co
473
+ }, pe = {
371
474
  id: { type: String, default: "" },
372
475
  customClass: { type: String, default: "" },
373
476
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
@@ -380,112 +483,112 @@ const rn = "https://json-schema.org/draft/2020-12/schema", an = "https://farris-
380
483
  required: { type: Boolean, default: !1 },
381
484
  showLabel: { type: Boolean, default: !0 },
382
485
  type: { type: String, default: "input-group" }
383
- }, fe = X(
384
- J,
385
- Ce,
386
- ae,
486
+ }, Re = be(
487
+ pe,
488
+ Xe,
489
+ Pe,
387
490
  void 0
388
- ), kn = en();
389
- function ie(e, t, n) {
390
- var $;
391
- function r() {
491
+ ), po = Hn();
492
+ function je(e, t, n) {
493
+ var R;
494
+ function o() {
392
495
  n != null && n.resolveComponentContext && n.resolveComponentContext();
393
496
  }
394
- r();
395
- const o = n && n.getStyles && n.getStyles() || "", s = n && n.getDesignerClass && n.getDesignerClass() || "", i = m();
497
+ o();
498
+ const a = n && n.getStyles && n.getStyles() || "", s = n && n.getDesignerClass && n.getDesignerClass() || "", l = d();
396
499
  function u() {
397
500
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
398
501
  }
399
- function p() {
502
+ function i() {
400
503
  return !1;
401
504
  }
402
- function a() {
505
+ function r() {
403
506
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
404
507
  }
405
- function d() {
508
+ function p() {
406
509
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
407
510
  }
408
- function c(B) {
409
- if (!B || !B.value)
511
+ function c(T) {
512
+ if (!T || !T.value)
410
513
  return null;
411
- if (B.value.schema && B.value.schema.type === "component")
412
- return B.value;
413
- const x = m(B == null ? void 0 : B.value.parent), F = c(x);
414
- return F || null;
514
+ if (T.value.schema && T.value.schema.type === "component")
515
+ return T.value;
516
+ const w = d(T == null ? void 0 : T.value.parent), A = c(w);
517
+ return A || null;
415
518
  }
416
- function y(B = t) {
417
- const { componentInstance: x, designerItemElementRef: F } = B;
418
- return !x || !x.value ? null : x.value.canMove ? F : y(B.parent);
519
+ function v(T = t) {
520
+ const { componentInstance: w, designerItemElementRef: A } = T;
521
+ return !w || !w.value ? null : w.value.canMove ? A : v(T.parent);
419
522
  }
420
- function w(B) {
421
- return !!n && n.canAccepts(B);
523
+ function b(T) {
524
+ return !!n && n.canAccepts(T);
422
525
  }
423
- function l() {
526
+ function f() {
424
527
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
425
528
  }
426
- function f() {
529
+ function g() {
427
530
  }
428
- function g(B, x) {
429
- x && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(x);
531
+ function y(T, w) {
532
+ w && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(w);
430
533
  }
431
- function T(B) {
432
- const { componentType: x } = B;
433
- let F = _(x, B);
434
- n && n.onResolveNewComponentSchema && (F = n.onResolveNewComponentSchema(B, F));
435
- const E = x.toLowerCase().replace("-", "_");
436
- return F && !F.id && F.type === x && (F.id = `${E}_${Math.random().toString().slice(2, 6)}`), F;
534
+ function C(T, w) {
535
+ const { componentType: A } = T;
536
+ let E = de(A, T, w);
537
+ n && n.onResolveNewComponentSchema && (E = n.onResolveNewComponentSchema(T, E));
538
+ const O = A.toLowerCase().replace("-", "_");
539
+ return E && !E.id && E.type === A && (E.id = `${O}_${Math.random().toString().slice(2, 6)}`), E;
437
540
  }
438
- function D(B, x) {
439
- const F = String(B.getAttribute("data-controltype")), E = B.getAttribute("data-feature"), N = E ? JSON.parse(E) : {};
440
- N.parentComponentInstance = i.value;
441
- let O = _(F, N);
442
- n && n.onAcceptNewChildElement && (O = n.onAcceptNewChildElement(B, x, O));
443
- const G = F.toLowerCase().replace("-", "_");
444
- return O && !O.id && O.type === F && (O.id = `${G}_${Math.random().toString().slice(2, 6)}`), O;
541
+ function h(T, w) {
542
+ const A = String(T.getAttribute("data-controltype")), E = T.getAttribute("data-feature"), O = E ? JSON.parse(E) : {};
543
+ O.parentComponentInstance = l.value;
544
+ let N = de(A, O);
545
+ n && n.onAcceptNewChildElement && (N = n.onAcceptNewChildElement(T, w, N));
546
+ const U = A.toLowerCase().replace("-", "_");
547
+ return N && !N.id && N.type === A && (N.id = `${U}_${Math.random().toString().slice(2, 6)}`), N;
445
548
  }
446
- function M(B) {
549
+ function F(T) {
447
550
  }
448
- function S(...B) {
551
+ function k(...T) {
449
552
  if (n && n.getPropsConfig)
450
- return n.getPropsConfig(...B);
553
+ return n.getPropsConfig(...T);
451
554
  }
452
- return i.value = {
555
+ return l.value = {
453
556
  canMove: u(),
454
- canSelectParent: p(),
455
- canDelete: a(),
456
- canNested: !d(),
557
+ canSelectParent: i(),
558
+ canDelete: r(),
559
+ canNested: !p(),
457
560
  contents: t == null ? void 0 : t.schema.contents,
458
561
  elementRef: e,
459
- parent: ($ = t == null ? void 0 : t.parent) == null ? void 0 : $.componentInstance,
562
+ parent: (R = t == null ? void 0 : t.parent) == null ? void 0 : R.componentInstance,
460
563
  schema: t == null ? void 0 : t.schema,
461
- styles: o,
564
+ styles: a,
462
565
  designerClass: s,
463
- canAccepts: w,
566
+ canAccepts: b,
464
567
  getBelongedComponentInstance: c,
465
- getDraggableDesignItemElement: y,
466
- getDraggingDisplayText: l,
467
- getPropConfig: S,
468
- getDragScopeElement: f,
469
- onAcceptMovedChildElement: g,
470
- onAcceptNewChildElement: D,
471
- onChildElementMovedOut: M,
472
- addNewChildComponentSchema: T,
473
- updateDragAndDropRules: r,
474
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || m(!1),
475
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || m(!1)
476
- }, i;
477
- }
478
- function jn() {
568
+ getDraggableDesignItemElement: v,
569
+ getDraggingDisplayText: f,
570
+ getPropConfig: k,
571
+ getDragScopeElement: g,
572
+ onAcceptMovedChildElement: y,
573
+ onAcceptNewChildElement: h,
574
+ onChildElementMovedOut: F,
575
+ addNewChildComponentSchema: C,
576
+ updateDragAndDropRules: o,
577
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || d(!1),
578
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || d(!1)
579
+ }, l;
580
+ }
581
+ function fo() {
479
582
  function e(t) {
480
- var o, s;
583
+ var a, s;
481
584
  if (!t)
482
585
  return !1;
483
- const n = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
586
+ const n = ((a = t.targetContainer) == null ? void 0 : a.componentInstance) && t.targetContainer.componentInstance.value;
484
587
  if (!n)
485
588
  return !1;
486
- const r = (s = n.schema.appearance) == null ? void 0 : s.class;
589
+ const o = (s = n.schema.appearance) == null ? void 0 : s.class;
487
590
  if (t.controlCategory === "input" || t.controlType === "form-group") {
488
- const i = n.schema.type, u = (i === "response-form" || i === "content-container") && r && r.includes("farris-form");
591
+ const l = n.schema.type, u = (l === "response-form" || l === "content-container") && o && o.includes("farris-form");
489
592
  if (n.schema.type !== "response-layout-item" && !u)
490
593
  return !1;
491
594
  }
@@ -495,7 +598,7 @@ function jn() {
495
598
  basalDragulaRuleForContainer: e
496
599
  };
497
600
  }
498
- const Pn = "https://json-schema.org/draft/2020-12/schema", xn = "https://farris-design.gitee.io/dragging-rules.schema.json", Sn = "Dragging Rules", Mn = "The rules of designer canvas", An = "object", Dn = {
601
+ const mo = "https://json-schema.org/draft/2020-12/schema", vo = "https://farris-design.gitee.io/dragging-rules.schema.json", go = "Dragging Rules", yo = "The rules of designer canvas", ho = "object", bo = {
499
602
  "f-page": {
500
603
  description: "The root class of page designed by farris.",
501
604
  type: "object",
@@ -914,6 +1017,80 @@ const Pn = "https://json-schema.org/draft/2020-12/schema", xn = "https://farris-
914
1017
  "f-list-nav-left": {
915
1018
  description: "",
916
1019
  type: "object"
1020
+ },
1021
+ "f-struct-data-grid-in-nav": {
1022
+ description: "",
1023
+ type: "object",
1024
+ properties: {
1025
+ contents: {
1026
+ type: "object",
1027
+ properties: {
1028
+ "f-section-form": {
1029
+ description: "",
1030
+ type: "object",
1031
+ properties: {
1032
+ rules: {
1033
+ type: "object",
1034
+ properties: {
1035
+ canAccept: {
1036
+ type: "boolean",
1037
+ const: !1
1038
+ },
1039
+ fixed: {
1040
+ type: "boolean",
1041
+ const: !0
1042
+ },
1043
+ hidePadding: {
1044
+ type: "boolean",
1045
+ const: !0
1046
+ }
1047
+ }
1048
+ }
1049
+ }
1050
+ },
1051
+ "f-section-grid": {
1052
+ description: "",
1053
+ type: "object",
1054
+ properties: {
1055
+ rules: {
1056
+ type: "object",
1057
+ properties: {
1058
+ canAccept: {
1059
+ type: "boolean",
1060
+ const: !1
1061
+ },
1062
+ fixed: {
1063
+ type: "boolean",
1064
+ const: !0
1065
+ },
1066
+ hidePadding: {
1067
+ type: "boolean",
1068
+ const: !0
1069
+ }
1070
+ }
1071
+ }
1072
+ }
1073
+ }
1074
+ }
1075
+ },
1076
+ rules: {
1077
+ type: "object",
1078
+ properties: {
1079
+ canAccept: {
1080
+ type: "boolean",
1081
+ const: !1
1082
+ },
1083
+ fixed: {
1084
+ type: "boolean",
1085
+ const: !0
1086
+ },
1087
+ hidePadding: {
1088
+ type: "boolean",
1089
+ const: !0
1090
+ }
1091
+ }
1092
+ }
1093
+ }
917
1094
  }
918
1095
  }
919
1096
  }
@@ -1059,278 +1236,343 @@ const Pn = "https://json-schema.org/draft/2020-12/schema", xn = "https://farris-
1059
1236
  description: "",
1060
1237
  type: "object"
1061
1238
  }
1062
- }, En = [], Vn = {
1063
- $schema: Pn,
1064
- $id: xn,
1065
- title: Sn,
1066
- description: Mn,
1067
- type: An,
1068
- properties: Dn,
1069
- required: En
1070
- }, te = /* @__PURE__ */ new Map();
1071
- function On() {
1072
- function e(l, f, g, T) {
1073
- var D;
1074
- if (typeof g == "number")
1075
- return ((D = T[l]) == null ? void 0 : D.length) === g;
1076
- if (typeof g == "object") {
1077
- const M = Object.keys(g)[0], S = g[M];
1078
- if (M === "not")
1079
- return Number(T[l].length) !== Number(S);
1080
- if (M === "moreThan")
1081
- return Number(T[l].length) >= Number(S);
1082
- if (M === "lessThan")
1083
- return Number(T[l].length) <= Number(S);
1239
+ }, Co = {
1240
+ $schema: mo,
1241
+ $id: vo,
1242
+ title: go,
1243
+ description: yo,
1244
+ type: ho,
1245
+ properties: bo
1246
+ }, Me = /* @__PURE__ */ new Map();
1247
+ function wo() {
1248
+ function e(f, g, y, C) {
1249
+ var h;
1250
+ if (typeof y == "number")
1251
+ return ((h = C[f]) == null ? void 0 : h.length) === y;
1252
+ if (typeof y == "object") {
1253
+ const F = Object.keys(y)[0], k = y[F];
1254
+ if (F === "not")
1255
+ return Number(C[f].length) !== Number(k);
1256
+ if (F === "moreThan")
1257
+ return Number(C[f].length) >= Number(k);
1258
+ if (F === "lessThan")
1259
+ return Number(C[f].length) <= Number(k);
1084
1260
  }
1085
1261
  return !1;
1086
1262
  }
1087
- function t(l, f, g, T) {
1088
- return typeof g == "boolean" ? T.childrenClassList.includes(f) === !!g : !1;
1263
+ function t(f, g, y, C) {
1264
+ return typeof y == "boolean" ? C.childrenClassList.includes(g) === !!y : !1;
1089
1265
  }
1090
- function n(l, f, g, T) {
1091
- return typeof g == "boolean" ? T.parentClassList.includes(f) === !!g : !1;
1266
+ function n(f, g, y, C) {
1267
+ return typeof y == "boolean" ? C.parentClassList.includes(g) === !!y : !1;
1092
1268
  }
1093
- function r(l, f, g, T) {
1094
- return typeof g == "boolean" ? T.parentClassList.includes(f) === !!g : !1;
1269
+ function o(f, g, y, C) {
1270
+ return typeof y == "boolean" ? C.parentClassList.includes(g) === !!y : !1;
1095
1271
  }
1096
- const o = /* @__PURE__ */ new Map([
1272
+ const a = /* @__PURE__ */ new Map([
1097
1273
  ["length", e],
1098
1274
  ["hasChildren", t],
1099
- ["hasSibling", r],
1275
+ ["hasSibling", o],
1100
1276
  ["hasParent", n]
1101
1277
  ]);
1102
- function s(l, f) {
1103
- const g = l;
1104
- return typeof f == "number" ? [{ target: g, operator: "length", param: null, value: Number(f) }] : typeof f == "object" ? Object.keys(f).map((T) => {
1105
- if (T === "length")
1106
- return { target: g, operator: "length", param: null, value: f[T] };
1107
- const D = T, M = f[T];
1108
- return { target: g, operator: l === "children" ? "hasChildren" : l === "parent" ? "hasParent" : "hasSibling", param: D, value: M };
1278
+ function s(f, g) {
1279
+ const y = f;
1280
+ return typeof g == "number" ? [{ target: y, operator: "length", param: null, value: Number(g) }] : typeof g == "object" ? Object.keys(g).map((C) => {
1281
+ if (C === "length")
1282
+ return { target: y, operator: "length", param: null, value: g[C] };
1283
+ const h = C, F = g[C];
1284
+ return { target: y, operator: f === "children" ? "hasChildren" : f === "parent" ? "hasParent" : "hasSibling", param: h, value: F };
1109
1285
  }) : [];
1110
1286
  }
1111
- function i(l, f) {
1112
- if (o.has(l.operator)) {
1113
- const g = o.get(l.operator);
1114
- return g && g(l.target, l.param, l.value, f) || !1;
1287
+ function l(f, g) {
1288
+ if (a.has(f.operator)) {
1289
+ const y = a.get(f.operator);
1290
+ return y && y(f.target, f.param, f.value, g) || !1;
1115
1291
  }
1116
1292
  return !1;
1117
1293
  }
1118
- function u(l, f) {
1119
- return Object.keys(l).reduce((M, S) => {
1120
- const $ = s(S, l[S]);
1121
- return M.push(...$), M;
1122
- }, []).reduce((M, S) => M && i(S, f), !0);
1123
- }
1124
- function p(l, f) {
1125
- const g = Object.keys(l), T = g.includes("allOf"), D = g.includes("anyOf"), M = T || D, B = (M ? l[M ? T ? "allOf" : "anyOf" : "allOf"] : [l]).map((F) => u(F, f));
1126
- return T ? !B.includes(!1) : B.includes(!0);
1127
- }
1128
- function a(l, f) {
1129
- const g = l.const;
1130
- return g ? typeof g == "boolean" ? g : typeof g == "object" ? p(g, f) : !1 : !1;
1131
- }
1132
- function d(l) {
1133
- return (f) => {
1134
- const g = { canAccept: !0, fixed: !1, hidePadding: !1 };
1135
- return l && l.properties && Object.keys(l.properties).reduce((T, D) => {
1136
- const M = l.properties[D];
1137
- return T[D] = a(M, f), T;
1138
- }, g), g;
1294
+ function u(f, g) {
1295
+ return Object.keys(f).reduce((F, k) => {
1296
+ const R = s(k, f[k]);
1297
+ return F.push(...R), F;
1298
+ }, []).reduce((F, k) => F && l(k, g), !0);
1299
+ }
1300
+ function i(f, g) {
1301
+ const y = Object.keys(f), C = y.includes("allOf"), h = y.includes("anyOf"), F = C || h, T = (F ? f[F ? C ? "allOf" : "anyOf" : "allOf"] : [f]).map((A) => u(A, g));
1302
+ return C ? !T.includes(!1) : T.includes(!0);
1303
+ }
1304
+ function r(f, g) {
1305
+ const y = f.const;
1306
+ return y ? typeof y == "boolean" ? y : typeof y == "object" ? i(y, g) : !1 : !1;
1307
+ }
1308
+ function p(f) {
1309
+ return (g) => {
1310
+ const y = { canAccept: !0, fixed: !1, hidePadding: !1 };
1311
+ return f && f.properties && Object.keys(f.properties).reduce((C, h) => {
1312
+ const F = f.properties[h];
1313
+ return C[h] = r(F, g), C;
1314
+ }, y), y;
1139
1315
  };
1140
1316
  }
1141
- function c(l, f, g) {
1142
- if (f.type === "object" && f.properties) {
1143
- const { rules: T, contents: D } = f.properties;
1144
- g.set(l, d(T)), D && Object.keys(D.properties).forEach(
1145
- (M) => c(M, D.properties[M], g)
1317
+ function c(f, g, y) {
1318
+ if (g.type === "object" && g.properties) {
1319
+ const { rules: C, contents: h } = g.properties;
1320
+ y.set(f, p(C)), h && Object.keys(h.properties).forEach(
1321
+ (F) => c(F, h.properties[F], y)
1146
1322
  );
1147
1323
  }
1148
1324
  }
1149
- function y() {
1150
- const { properties: l } = Vn;
1151
- Object.keys(l).forEach((f) => {
1152
- c(f, l[f], te);
1325
+ function v() {
1326
+ const { properties: f } = Co;
1327
+ Object.keys(f).forEach((g) => {
1328
+ c(g, f[g], Me);
1153
1329
  });
1154
1330
  }
1155
- function w(l, f) {
1156
- const g = { canAccept: !0, fixed: !1, hidePadding: !0 };
1157
- return te.has(l) ? te.get(l)(f) : g;
1331
+ function b(f, g) {
1332
+ const y = { canAccept: !0, fixed: !1, hidePadding: !0 };
1333
+ return Me.has(f) ? Me.get(f)(g) : y;
1158
1334
  }
1159
- return y(), { getRuleValue: w };
1335
+ return v(), { getRuleValue: b };
1160
1336
  }
1161
- function $n(e, t) {
1162
- var x;
1163
- const n = e.schema, r = (x = e.parent) == null ? void 0 : x.schema, o = On(), s = m(!1), i = m(!1);
1164
- let u = !0, p = !1, a, d = !1;
1165
- function c(F) {
1166
- return a && a.componentClassList && a.componentClassList.includes("f-form-layout") && a.componentClassList.includes("farris-form") ? F.sourceType === "control" && F.controlCategory === "input" || F.sourceType === "move" && F.controlType === "form-group" : !0;
1337
+ function xo(e, t) {
1338
+ function n(i, r = null) {
1339
+ if (r) return r;
1340
+ const p = e.getComponentById(t);
1341
+ return e.selectNode(p, (c) => c.id === i);
1167
1342
  }
1168
- function y(F) {
1169
- return !(!jn().basalDragulaRuleForContainer(F) || !u || !c(F));
1343
+ function o(i) {
1344
+ const r = e.getComponentById(i);
1345
+ return !(!r || !r.componentType || !r.componentType.startsWith("form"));
1170
1346
  }
1171
- function w() {
1172
- s.value = !1, i.value = !1;
1173
- const F = n, E = F.appearance && F.appearance.class || "", N = E.split(" "), O = F.contents || [], G = O.length ? O[0] : null, P = G && G.appearance ? G.appearance.class : "", V = P ? P.split(" ") : [], R = O.length ? O.reduce((le, K) => {
1174
- const ce = K && K.appearance ? K.appearance.class : "", De = ce ? ce.split(" ") : [];
1175
- return le.push(...De), le;
1176
- }, []) : [], W = r, Y = W && W.appearance && W.appearance.class || "", xe = Y ? Y.split(" ") : [];
1177
- a = {
1178
- componentClass: E,
1347
+ function a(i) {
1348
+ const r = n(i.id), p = qe(e), c = [];
1349
+ p.getResonseFormLayoutConfig(r, c, 1);
1350
+ const v = c.map((k) => k.columnInSM), b = c.map((k) => k.columnInMD), f = c.map((k) => k.columnInLG), g = c.map((k) => k.columnInEL), y = s(v) ? v[0] : 0, C = s(b) ? b[0] : 0, h = s(f) ? f[0] : 0, F = s(g) ? g[0] : 0;
1351
+ return {
1352
+ uniqueColClassInSM: y,
1353
+ uniqueColClassInMD: C,
1354
+ uniqueColClassInLG: h,
1355
+ uniqueColClassInEL: F
1356
+ };
1357
+ }
1358
+ function s(i) {
1359
+ const r = new Set(i);
1360
+ return Array.from(r).length === 1;
1361
+ }
1362
+ function l(i, r, p) {
1363
+ i = n(p, i), i.contents.forEach((c) => {
1364
+ if (c.type === Et.fieldset.type) {
1365
+ l(c, r, c.id);
1366
+ return;
1367
+ }
1368
+ c.appearance || (c.appearance = {});
1369
+ const v = c.appearance.class;
1370
+ c.appearance.class = u(v, r);
1371
+ });
1372
+ }
1373
+ function u(i, r) {
1374
+ let p, c, v, b, f = [];
1375
+ if (i) {
1376
+ const k = i.split(" "), R = k.filter((T) => T.startsWith("col-"));
1377
+ p = R.find((T) => /^col-([1-9]|10|11|12)$/.test(T)), c = R.find((T) => /^col-md-([1-9]|10|11|12)$/.test(T)), v = R.find((T) => /^col-xl-([1-9]|10|11|12)$/.test(T)), b = R.find((T) => /^col-el-([1-9]|10|11|12)$/.test(T)), f = k.filter((T) => !T.startsWith("col-"));
1378
+ }
1379
+ const g = r.uniqueColClassInSM ? "col-" + r.uniqueColClassInSM : p, y = r.uniqueColClassInMD ? "col-md-" + r.uniqueColClassInMD : c, C = r.uniqueColClassInLG ? "col-xl-" + r.uniqueColClassInLG : v, h = r.uniqueColClassInEL ? "col-el-" + r.uniqueColClassInEL : b;
1380
+ return [g, y, C, h].concat(f).join(" ");
1381
+ }
1382
+ return { checkIsInFormComponent: o, assembleUnifiedLayoutContext: a, changeFormControlsByUnifiedLayoutConfig: l };
1383
+ }
1384
+ class To extends kt {
1385
+ constructor(t, n) {
1386
+ super(t, n);
1387
+ }
1388
+ getPropertyConfig(t, n) {
1389
+ var o = this;
1390
+ this.propertyConfig.categories.basic = this.getBasicPropConfig(t);
1391
+ const { checkIsInFormComponent: a, assembleUnifiedLayoutContext: s, changeFormControlsByUnifiedLayoutConfig: l } = xo(this.formSchemaUtils, this.componentId), u = this.getAppearanceConfig(t);
1392
+ return u.properties.unifiedLayout = {
1393
+ title: "统一布局配置",
1394
+ description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
1395
+ visible: a(this.componentId),
1396
+ refreshPanelAfterChanged: !0,
1397
+ editor: {
1398
+ type: "response-form-layout-setting",
1399
+ initialState: s(t)
1400
+ }
1401
+ }, u.setPropertyRelates = function(i, r) {
1402
+ if (i)
1403
+ switch (i && i.propertyID) {
1404
+ case "unifiedLayout": {
1405
+ l(null, i.propertyValue, t.id), o.updateElementByParentContainer(t.id, n);
1406
+ break;
1407
+ }
1408
+ }
1409
+ }, this.propertyConfig.categories.appearance = u, this.propertyConfig;
1410
+ }
1411
+ }
1412
+ function Bo(e, t) {
1413
+ var A;
1414
+ const n = e.schema, o = (A = e.parent) == null ? void 0 : A.schema, a = wo(), s = d(!1), l = d(!1);
1415
+ let u = !0, i = !1, r, p = !1;
1416
+ function c(E) {
1417
+ return r && r.componentClassList && r.componentClassList.includes("f-form-layout") && r.componentClassList.includes("farris-form") ? E.sourceType === "control" && E.controlCategory === "input" || E.sourceType === "move" && E.controlType === "form-group" : !0;
1418
+ }
1419
+ function v(E) {
1420
+ return !(!fo().basalDragulaRuleForContainer(E) || !u || !c(E));
1421
+ }
1422
+ function b() {
1423
+ s.value = !1, l.value = !1;
1424
+ const E = n, O = E.appearance && E.appearance.class || "", N = O.split(" "), U = E.contents || [], D = U.length ? U[0] : null, H = D && D.appearance ? D.appearance.class : "", Y = H ? H.split(" ") : [], Q = U.length ? U.reduce((fe, se) => {
1425
+ const me = se && se.appearance ? se.appearance.class : "", Ce = me ? me.split(" ") : [];
1426
+ return fe.push(...Ce), fe;
1427
+ }, []) : [], M = o, S = M && M.appearance && M.appearance.class || "", q = S ? S.split(" ") : [];
1428
+ r = {
1429
+ componentClass: O,
1179
1430
  componentClassList: N,
1180
- childContents: O,
1181
- firstChildContent: G,
1182
- firstChildClass: P,
1183
- firstChildClassList: V,
1184
- parent: W,
1185
- parentClass: Y,
1186
- parentClassList: xe,
1187
- children: O,
1188
- childrenClassList: R
1431
+ childContents: U,
1432
+ firstChildContent: D,
1433
+ firstChildClass: H,
1434
+ firstChildClassList: Y,
1435
+ parent: M,
1436
+ parentClass: S,
1437
+ parentClassList: q,
1438
+ children: U,
1439
+ childrenClassList: Q
1189
1440
  };
1190
- const { canAccept: Se, fixed: Me, hidePadding: Ae } = o.getRuleValue(N[0], a);
1191
- return u = Se, p = Ae, d = Me, !0;
1441
+ const { canAccept: $, fixed: W, hidePadding: re } = a.getRuleValue(N[0], r);
1442
+ return u = $, i = re, p = W, !0;
1192
1443
  }
1193
- function l(F) {
1194
- oe();
1444
+ function f(E) {
1445
+ ye();
1195
1446
  }
1196
- function f() {
1447
+ function g() {
1197
1448
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1198
1449
  }
1199
- function g(F, E) {
1450
+ function y(E, O) {
1200
1451
  const N = n;
1201
1452
  if ((N.appearance && N.appearance.class || "").split(" ").includes("f-form-layout")) {
1202
- const { label: P } = F, V = _("form-group");
1203
- return V.editor = E, V.label = P, T(V), delete V.editor.id, delete V.editor.binding, delete V.editor.appearance, delete V.editor.visible, V;
1453
+ const { label: H } = E, Y = de("form-group");
1454
+ return Y.editor = O, Y.label = H, C(Y), delete Y.editor.id, delete Y.editor.binding, delete Y.editor.appearance, delete Y.editor.visible, Y;
1204
1455
  }
1205
- return E;
1456
+ return O;
1206
1457
  }
1207
- function T(F) {
1208
- const E = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
1209
- if (E && E.schema && E.schema.componentType) {
1210
- const N = E.schema.componentType, O = D(N);
1211
- F.appearance || (F.appearance = {}), F.appearance.class = O;
1458
+ function C(E) {
1459
+ const O = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
1460
+ if (O && O.schema && O.schema.componentType) {
1461
+ const N = O.schema.formColumns;
1462
+ let U = h(N);
1463
+ U = t.formSchemaUtils.getControlClassByFormUnifiedLayout(U, "", e.schema), E.appearance || (E.appearance = {}), E.appearance.class = U;
1212
1464
  }
1213
1465
  }
1214
- function D(F) {
1215
- let E = "";
1216
- switch (F) {
1217
- case "form-col-1": {
1218
- E = "col-12 col-md-12 col-xl-12 col-el-12";
1219
- break;
1220
- }
1221
- case "form-col-12": {
1222
- E = "col-12 col-md-12 col-xl-12 col-el-12";
1223
- break;
1224
- }
1225
- case "form-col-2": {
1226
- E = "col-12 col-md-6 col-xl-6 col-el-6";
1227
- break;
1228
- }
1229
- case "form-col-3": {
1230
- E = "col-12 col-md-6 col-xl-4 col-el-4";
1466
+ function h(E) {
1467
+ let O = "";
1468
+ switch (E) {
1469
+ case 1: {
1470
+ O = "col-12 col-md-12 col-xl-12 col-el-12";
1231
1471
  break;
1232
1472
  }
1233
- case "form-col-4": {
1234
- E = "col-12 col-md-6 col-xl-3 col-el-2";
1473
+ case 2: {
1474
+ O = "col-12 col-md-6 col-xl-6 col-el-6";
1235
1475
  break;
1236
1476
  }
1237
- case "form-col-6": {
1238
- E = "col-12 col-md-6 col-xl-6 col-el-6";
1477
+ case 3: {
1478
+ O = "col-12 col-md-6 col-xl-4 col-el-4";
1239
1479
  break;
1240
1480
  }
1241
- case "frame": {
1242
- E = "col-12";
1481
+ case 4: {
1482
+ O = "col-12 col-md-6 col-xl-3 col-el-2";
1243
1483
  break;
1244
1484
  }
1245
1485
  }
1246
- return E;
1486
+ return O;
1247
1487
  }
1248
- function M(F, E, N) {
1249
- const O = n;
1250
- if ((O.appearance && O.appearance.class || "").split(" ").includes("f-form-layout")) {
1251
- const V = String(F.innerText), R = _("form-group");
1252
- return R.editor = N, R.label = V, R;
1488
+ function F(E, O, N) {
1489
+ const U = n;
1490
+ if ((U.appearance && U.appearance.class || "").split(" ").includes("f-form-layout")) {
1491
+ const Y = String(E.innerText), Q = de("form-group");
1492
+ return Q.editor = N, Q.label = Y, Q;
1253
1493
  }
1254
1494
  return N;
1255
1495
  }
1256
- function S() {
1257
- return !d;
1496
+ function k() {
1497
+ return !p;
1498
+ }
1499
+ function R() {
1500
+ return !p;
1258
1501
  }
1259
- function $() {
1260
- return !d;
1502
+ function T() {
1503
+ return i;
1261
1504
  }
1262
- function B() {
1263
- return p;
1505
+ function w(E) {
1506
+ return new To(E, t).getPropertyConfig(n, e.componentInstance.value);
1264
1507
  }
1265
1508
  return {
1266
- canAccepts: y,
1267
- checkCanDeleteComponent: $,
1268
- checkCanMoveComponent: S,
1269
- getStyles: f,
1270
- hideNestedPaddingInDesginerView: B,
1271
- onAcceptNewChildElement: M,
1272
- onAcceptMovedChildElement: l,
1273
- resolveComponentContext: w,
1274
- onResolveNewComponentSchema: g,
1509
+ canAccepts: v,
1510
+ checkCanDeleteComponent: R,
1511
+ checkCanMoveComponent: k,
1512
+ getStyles: g,
1513
+ getPropsConfig: w,
1514
+ hideNestedPaddingInDesginerView: T,
1515
+ onAcceptNewChildElement: F,
1516
+ onAcceptMovedChildElement: f,
1517
+ resolveComponentContext: b,
1518
+ onResolveNewComponentSchema: y,
1275
1519
  triggerBelongedComponentToMoveWhenMoved: s,
1276
- triggerBelongedComponentToDeleteWhenDeleted: i
1520
+ triggerBelongedComponentToDeleteWhenDeleted: l
1277
1521
  };
1278
1522
  }
1279
- const Nn = /* @__PURE__ */ q({
1523
+ const Mo = /* @__PURE__ */ Z({
1280
1524
  name: "FResponseFormDesign",
1281
- props: J,
1525
+ props: pe,
1282
1526
  emits: [],
1283
1527
  setup(e, t) {
1284
- const n = m(), r = z("design-item-context");
1285
- z("designer-host-service");
1286
- const o = $n(r), s = ie(n, r, o);
1287
- U(() => {
1288
- n.value.componentInstance = s;
1289
- }), t.expose(s.value);
1290
- const i = k(() => {
1291
- const u = e.customClass.split(" "), p = {
1528
+ const n = d(), o = ue("design-item-context"), a = ue("designer-host-service"), s = Bo(o, a), l = je(n, o, s);
1529
+ K(() => {
1530
+ n.value.componentInstance = l;
1531
+ }), t.expose(l.value);
1532
+ const u = x(() => {
1533
+ const i = e.customClass.split(" "), r = {
1292
1534
  "drag-container": !0
1293
1535
  };
1294
- return u.reduce((a, d) => (a[d] = !0, a), p), p;
1536
+ return i.reduce((p, c) => (p[c] = !0, p), r), r;
1295
1537
  });
1296
- return () => A("div", {
1538
+ return () => m("div", {
1297
1539
  ref: n,
1298
- class: i.value,
1299
- "data-dragref": `${r.schema.id}-container`,
1300
- "data-associate": `${r.schema.id}-component`
1540
+ class: u.value,
1541
+ "data-dragref": `${o.schema.id}-container`,
1542
+ "data-associate": `${o.schema.id}-component`
1301
1543
  }, [t.slots.default && t.slots.default()]);
1302
1544
  }
1303
- }), Ln = {
1545
+ }), Fo = {
1304
1546
  id: { type: String },
1305
1547
  required: { type: Boolean, default: !1 },
1306
1548
  text: { type: String, default: "" },
1307
1549
  title: { type: String }
1308
- }, we = /* @__PURE__ */ q({
1550
+ }, Ye = /* @__PURE__ */ Z({
1309
1551
  name: "FDynamicFormLabel",
1310
- props: Ln,
1552
+ props: Fo,
1311
1553
  emits: [],
1312
1554
  setup(e, t) {
1313
- const n = m(e.title || e.text), r = m(e.required), o = m(e.text);
1314
- return I(() => e.text, () => {
1315
- o.value = e.text;
1316
- }), I(() => e.required, (s, i) => {
1317
- s !== i && (r.value = s);
1318
- }), () => A("label", {
1555
+ const n = d(e.title || e.text), o = d(e.required), a = d(e.text);
1556
+ return X(() => e.text, () => {
1557
+ a.value = e.text;
1558
+ }), X(() => e.required, (s, l) => {
1559
+ s !== l && (o.value = s);
1560
+ }), () => a.value && m("label", {
1319
1561
  class: "col-form-label",
1320
1562
  title: n.value
1321
- }, [r.value && A("span", {
1563
+ }, [o.value && m("span", {
1322
1564
  class: "farris-label-info text-danger"
1323
- }, [Oe("*")]), A("span", {
1565
+ }, [_("*")]), m("span", {
1324
1566
  class: "farris-label-text"
1325
- }, [o.value])]);
1567
+ }, [a.value])]);
1326
1568
  }
1327
- }), In = /* @__PURE__ */ new Map([
1328
- ["appearance", he]
1569
+ }), ko = /* @__PURE__ */ new Map([
1570
+ ["appearance", Ge]
1329
1571
  ]);
1330
- function Gn(e, t, n) {
1572
+ function Eo(e, t, n) {
1331
1573
  return t;
1332
1574
  }
1333
- const qn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", Un = "input-group", Wn = "A Farris Input Component", Hn = "object", zn = {
1575
+ const So = "https://json-schema.org/draft/2020-12/schema", Po = "https://farris-design.gitee.io/input-group.schema.json", jo = "input-group", Io = "A Farris Input Component", Lo = "object", Ao = {
1334
1576
  id: {
1335
1577
  description: "The unique identifier for a Input Group",
1336
1578
  type: "string"
@@ -1532,18 +1774,19 @@ const qn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
1532
1774
  type: "string",
1533
1775
  default: ""
1534
1776
  }
1535
- }, _n = [
1777
+ }, Do = [
1536
1778
  "id",
1537
1779
  "type"
1538
- ], Jn = {
1539
- $schema: qn,
1540
- $id: Rn,
1541
- title: Un,
1542
- description: Wn,
1543
- type: Hn,
1544
- properties: zn,
1545
- required: _n
1546
- }, se = {
1780
+ ], Oo = {
1781
+ $schema: So,
1782
+ $id: Po,
1783
+ title: jo,
1784
+ description: Io,
1785
+ type: Lo,
1786
+ properties: Ao,
1787
+ required: Do
1788
+ }, Ie = {
1789
+ id: { Type: String, default: "" },
1547
1790
  /** 是否自动完成 */
1548
1791
  autocomplete: { Type: String, default: "off" },
1549
1792
  /** 自定义CLASS */
@@ -1610,118 +1853,118 @@ const qn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
1610
1853
  */
1611
1854
  updateOn: { type: String, default: "blur" }
1612
1855
  };
1613
- X(se, Jn, In, Gn);
1614
- function Qn(e, t, n, r) {
1615
- const o = m(e.disabled), s = m(!1), i = m("text"), u = m(e.showBorder), p = m(e.textAlign), a = m(e.updateOn), d = k(() => e.editable || !e.readonly), c = k(() => e.editable && !e.disabled && !e.readonly), y = k(() => !e.disabled && s.value), w = k(() => n.value === "" || n.value === null || n.value === void 0), l = k(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), f = k(() => e.readonly || !e.editable), g = k(() => e.enableTitle ? n.value : ""), T = k(() => ({
1856
+ be(Ie, Oo, ko, Eo);
1857
+ function Vo(e, t, n, o) {
1858
+ const a = d(e.disabled), s = d(!1), l = d("text"), u = d(e.showBorder), i = d(e.textAlign), r = d(e.updateOn), p = x(() => e.editable || !e.readonly), c = x(() => e.editable && !e.disabled && !e.readonly), v = x(() => !e.disabled && s.value), b = x(() => n.value === "" || n.value === null || n.value === void 0), f = x(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), g = x(() => e.readonly || !e.editable), y = x(() => e.enableTitle ? n.value : ""), C = x(() => ({
1616
1859
  "form-control": !0,
1617
1860
  "f-utils-fill": !0,
1618
- "text-left": p.value === "left",
1619
- "text-center": p.value === "center",
1620
- "text-right": p.value === "right"
1621
- })), D = k(() => {
1622
- const P = {
1861
+ "text-left": i.value === "left",
1862
+ "text-center": i.value === "center",
1863
+ "text-right": i.value === "right"
1864
+ })), h = x(() => {
1865
+ const D = {
1623
1866
  "f-cmp-inputgroup": !0,
1624
1867
  "input-group": !0,
1625
- "f-state-disable": o.value,
1868
+ "f-state-disable": a.value,
1626
1869
  "f-state-editable": c.value,
1627
- "f-state-readonly": f.value,
1628
- "f-state-focus": y.value
1870
+ "f-state-readonly": g.value,
1871
+ "f-state-focus": v.value
1629
1872
  };
1630
- return (e.customClass || "").split(" ").reduce((R, W) => (R[W] = !0, R), P), P;
1631
- }), M = k(() => u.value ? "" : "border-width : 0 ");
1632
- function S(P, V = !0) {
1633
- n.value = P, r.value !== P && (r.value = P), V && t.emit("change", P), t.emit("update:modelValue", P), t.emit("update:value", P);
1873
+ return (e.customClass || "").split(" ").reduce((Y, Q) => (Y[Q] = !0, Y), D), D;
1874
+ }), F = x(() => u.value ? "" : "border-width : 0 ");
1875
+ function k(D, H = !0) {
1876
+ n.value = D, o.value !== D && (o.value = D), H && t.emit("change", D), t.emit("update:modelValue", D), t.emit("update:value", D);
1634
1877
  }
1635
- I(
1878
+ X(
1636
1879
  () => e.modelValue,
1637
- (P, V) => {
1638
- P !== V && (n.value = P, r.value = P);
1880
+ (D, H) => {
1881
+ D !== H && (n.value = D, o.value = D);
1639
1882
  }
1640
- ), I(() => e.disabled, (P, V) => {
1641
- P !== V && (o.value = P);
1883
+ ), X(() => e.disabled, (D, H) => {
1884
+ D !== H && (a.value = D);
1642
1885
  });
1643
- function $(P) {
1644
- return s.value = !1, t.emit("blur", P), P.stopPropagation(), !1;
1886
+ function R(D) {
1887
+ return s.value = !1, t.emit("blur", D), D.stopPropagation(), !1;
1645
1888
  }
1646
- function B(P) {
1647
- t.emit("click", P);
1889
+ function T(D) {
1890
+ t.emit("click", D);
1648
1891
  }
1649
- function x(P) {
1650
- e.disabled || (u.value && (s.value = !0), d.value && t.emit("focus", P));
1892
+ function w(D) {
1893
+ e.disabled || (u.value && (s.value = !0), p.value && t.emit("focus", D));
1651
1894
  }
1652
- function F(P) {
1653
- t.emit("input", P.target.value);
1654
- const V = P.target.value;
1655
- r.value = V, a.value === "input" && (t.emit("update:modelValue", V), t.emit("update:value", V));
1895
+ function A(D) {
1896
+ t.emit("input", D.target.value);
1897
+ const H = D.target.value;
1898
+ o.value = H, r.value === "change" && (t.emit("update:modelValue", H), t.emit("update:value", H));
1656
1899
  }
1657
- function E(P) {
1658
- t.emit("keydown", P);
1900
+ function E(D) {
1901
+ t.emit("keydown", D);
1659
1902
  }
1660
- function N(P) {
1661
- t.emit("keyup", P);
1903
+ function O(D) {
1904
+ t.emit("keyup", D);
1662
1905
  }
1663
- function O(P) {
1664
- P.target.tagName !== "INPUT" && P.preventDefault(), P.stopPropagation();
1906
+ function N(D) {
1907
+ D.target.tagName !== "INPUT" && D.preventDefault(), D.stopPropagation();
1665
1908
  }
1666
- function G(P) {
1667
- if (a.value === "blur") {
1668
- const V = P.target.value;
1669
- P.stopPropagation(), S(V);
1909
+ function U(D) {
1910
+ if (r.value === "blur") {
1911
+ const H = D.target.value;
1912
+ D.stopPropagation(), k(H);
1670
1913
  }
1671
1914
  }
1672
1915
  return {
1673
- changeTextBoxValue: S,
1674
- disabled: o,
1675
- displayText: r,
1916
+ changeTextBoxValue: k,
1917
+ disabled: a,
1918
+ displayText: o,
1676
1919
  editable: c,
1677
- hasFocused: y,
1678
- inputGroupClass: D,
1679
- inputType: i,
1680
- isEmpty: w,
1920
+ hasFocused: v,
1921
+ inputGroupClass: h,
1922
+ inputType: l,
1923
+ isEmpty: b,
1681
1924
  modelValue: n,
1682
- readonly: f,
1683
- onBlur: $,
1684
- onClick: B,
1685
- onFocus: x,
1686
- onInput: F,
1925
+ readonly: g,
1926
+ onBlur: R,
1927
+ onClick: T,
1928
+ onFocus: w,
1929
+ onInput: A,
1687
1930
  onKeydown: E,
1688
- onKeyup: N,
1689
- onMousedown: O,
1690
- onTextBoxValueChange: G,
1691
- placeholder: l,
1692
- textBoxClass: T,
1693
- textBoxTitle: g,
1694
- inputGroupStyle: M
1931
+ onKeyup: O,
1932
+ onMousedown: N,
1933
+ onTextBoxValueChange: U,
1934
+ placeholder: f,
1935
+ textBoxClass: C,
1936
+ textBoxTitle: y,
1937
+ inputGroupStyle: F
1695
1938
  };
1696
1939
  }
1697
- function Zn(e, t, n, r) {
1698
- const o = m(e.disabled), s = m(!1), i = m("text"), u = m(e.showBorder), p = m(e.textAlign);
1699
- k(() => e.editable || !e.readonly);
1700
- const a = k(() => e.editable && !e.disabled && !e.readonly), d = k(() => !e.disabled && s.value), c = k(() => n.value === "" || n.value === null || n.value === void 0), y = k(() => e.placeholder), w = k(() => e.readonly || !e.editable), l = k(() => e.enableTitle ? n.value : ""), f = k(() => ({
1940
+ function Ro(e, t, n, o) {
1941
+ const a = d(e.disabled), s = d(!1), l = d("text"), u = d(e.showBorder), i = d(e.textAlign);
1942
+ x(() => e.editable || !e.readonly);
1943
+ const r = x(() => e.editable && !e.disabled && !e.readonly), p = x(() => !e.disabled && s.value), c = x(() => n.value === "" || n.value === null || n.value === void 0), v = x(() => e.placeholder), b = x(() => e.readonly || !e.editable), f = x(() => e.enableTitle ? n.value : ""), g = x(() => ({
1701
1944
  "form-control": !0,
1702
1945
  // 'f-utils-fill': true,
1703
- "text-left": p.value === "left",
1704
- "text-center": p.value === "center",
1705
- "text-right": p.value === "right"
1706
- })), g = k(() => ({
1946
+ "text-left": i.value === "left",
1947
+ "text-center": i.value === "center",
1948
+ "text-right": i.value === "right"
1949
+ })), y = x(() => ({
1707
1950
  "f-cmp-inputgroup": !0,
1708
1951
  "input-group": !0,
1709
1952
  "f-state-disable": !0,
1710
1953
  "f-state-editable": !1,
1711
1954
  "f-state-readonly": !0
1712
1955
  // 'f-state-focus': hasFocused.value
1713
- })), T = k(() => u.value ? "" : "border-width : 0 ");
1956
+ })), C = x(() => u.value ? "" : "border-width : 0 ");
1714
1957
  return {
1715
1958
  // changeTextBoxValue,
1716
- disabled: o,
1717
- displayText: r,
1718
- editable: a,
1719
- hasFocused: d,
1720
- inputGroupClass: g,
1721
- inputType: i,
1959
+ disabled: a,
1960
+ displayText: o,
1961
+ editable: r,
1962
+ hasFocused: p,
1963
+ inputGroupClass: y,
1964
+ inputType: l,
1722
1965
  isEmpty: c,
1723
1966
  modelValue: n,
1724
- readonly: w,
1967
+ readonly: b,
1725
1968
  // onBlur,
1726
1969
  // onClick,
1727
1970
  // onFocus,
@@ -1730,343 +1973,343 @@ function Zn(e, t, n, r) {
1730
1973
  // onKeyup,
1731
1974
  // onMousedown,
1732
1975
  // onTextBoxValueChange,
1733
- placeholder: y,
1734
- textBoxClass: f,
1735
- textBoxTitle: l,
1736
- inputGroupStyle: T
1976
+ placeholder: v,
1977
+ textBoxClass: g,
1978
+ textBoxTitle: f,
1979
+ inputGroupStyle: C
1737
1980
  };
1738
1981
  }
1739
- function Te(e, t, n) {
1740
- const r = m(!1), o = k(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: i, hasFocused: u, isEmpty: p } = n;
1741
- function a(f) {
1742
- r.value = f;
1982
+ function Je(e, t, n) {
1983
+ const o = d(!1), a = x(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: l, hasFocused: u, isEmpty: i } = n;
1984
+ function r(g) {
1985
+ o.value = g;
1743
1986
  }
1744
- I(i, () => {
1745
- u != null && u.value ? a(!!(i != null && i.value)) : a(!1);
1987
+ X(l, () => {
1988
+ u != null && u.value ? r(!!(l != null && l.value)) : r(!1);
1746
1989
  });
1747
- const d = k(() => ({
1990
+ const p = x(() => ({
1748
1991
  "input-group-text": !0,
1749
1992
  "input-group-clear": !0
1750
- })), c = k(() => ({
1993
+ })), c = x(() => ({
1751
1994
  width: "24px",
1752
- display: r.value ? "flex" : "none"
1995
+ display: o.value ? "flex" : "none"
1753
1996
  }));
1754
- function y(f) {
1755
- f.stopPropagation(), o.value && (s("", !0), a(!r.value), t.emit("clear"));
1997
+ function v(g) {
1998
+ g.stopPropagation(), a.value && (s("", !0), r(!o.value), t.emit("clear"));
1756
1999
  }
1757
- function w(f) {
1758
- o.value && !p.value && a(!0);
2000
+ function b(g) {
2001
+ a.value && !i.value && r(!0);
1759
2002
  }
1760
- function l(f) {
1761
- o.value && a(!1);
2003
+ function f(g) {
2004
+ a.value && r(!1);
1762
2005
  }
1763
- return { clearButtonClass: d, clearButtonStyle: c, hasShownClearButton: r, onClearValue: y, onMouseEnter: w, onMouseLeave: l, shouldShowClearButton: o };
2006
+ return { clearButtonClass: p, clearButtonStyle: c, hasShownClearButton: o, onClearValue: v, onMouseEnter: b, onMouseLeave: f, shouldShowClearButton: a };
1764
2007
  }
1765
- const Xn = ["moz", "ms", "webkit"];
1766
- function Yn() {
2008
+ const No = ["moz", "ms", "webkit"];
2009
+ function $o() {
1767
2010
  let e = 0;
1768
2011
  return (t) => {
1769
- const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - e)), o = setTimeout(() => {
1770
- t(n + r);
1771
- }, r);
1772
- return e = n + r, o;
2012
+ const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
2013
+ t(n + o);
2014
+ }, o);
2015
+ return e = n + o, a;
1773
2016
  };
1774
2017
  }
1775
- function Kn() {
2018
+ function qo() {
1776
2019
  if (typeof window > "u")
1777
2020
  return () => 0;
1778
2021
  if (window.requestAnimationFrame)
1779
2022
  return window.requestAnimationFrame.bind(window);
1780
- const e = Xn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1781
- return e ? window[`${e}RequestAnimationFrame`] : Yn();
2023
+ const e = No.filter((t) => `${t}RequestAnimationFrame` in window)[0];
2024
+ return e ? window[`${e}RequestAnimationFrame`] : $o();
1782
2025
  }
1783
- Kn();
1784
- function Fe(e, t) {
1785
- const n = m(e.groupText), r = k(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), o = k(() => e.enableClear || !!e.groupText);
1786
- return { appendedButtonClass: k(() => ({
2026
+ qo();
2027
+ function Qe(e, t) {
2028
+ const n = d(e.groupText), o = x(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = x(() => e.enableClear || !!e.groupText);
2029
+ return { appendedButtonClass: x(() => ({
1787
2030
  "input-group-append": !0,
1788
- "append-force-show": r.value
1789
- })), appendedContent: n, shouldShowAppendedButton: o };
2031
+ "append-force-show": o.value
2032
+ })), appendedContent: n, shouldShowAppendedButton: a };
1790
2033
  }
1791
- function Be(e, t, n, r) {
1792
- const { appendedContent: o } = r, s = m(e.enableViewPassword), i = k(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', p = '<span class="f-icon f-icon-eye"></span>', a = m(!1);
1793
- I(() => [e.readonly, e.disabled], ([y, w]) => {
1794
- i.value && (n.value = y || w ? "password" : n.value, o.value = y || w ? p : o.value);
2034
+ function Ze(e, t, n, o) {
2035
+ const { appendedContent: a } = o, s = d(e.enableViewPassword), l = x(() => e.type === "password"), u = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', i = '<span class="f-icon f-icon-eye"></span>', r = d(!1);
2036
+ X(() => [e.readonly, e.disabled], ([v, b]) => {
2037
+ l.value && (n.value = v || b ? "password" : n.value, a.value = v || b ? i : a.value);
1795
2038
  });
1796
- function d() {
1797
- return a.value = !a.value, n.value = a.value ? "text" : "password", o.value = a.value ? u : p, !1;
2039
+ function p() {
2040
+ return r.value = !r.value, n.value = r.value ? "text" : "password", a.value = r.value ? u : i, !1;
1798
2041
  }
1799
2042
  function c() {
1800
- n.value = i.value ? "password" : "text", o.value = i.value ? s.value ? p : "" : o.value;
2043
+ n.value = l.value ? "password" : "text", a.value = l.value ? s.value ? i : "" : a.value;
1801
2044
  }
1802
- return c(), { isPassword: i, onClickAppendedButton: d };
2045
+ return c(), { isPassword: l, onClickAppendedButton: p };
1803
2046
  }
1804
- function eo(e, t, n) {
1805
- const r = m(), {
1806
- onBlurTextBox: o,
2047
+ function Uo(e, t, n) {
2048
+ const o = d(), {
2049
+ onBlurTextBox: a,
1807
2050
  onFocusTextBox: s,
1808
- onInput: i,
2051
+ onInput: l,
1809
2052
  onKeyDown: u,
1810
- textBoxValue: p
1811
- } = n, a = k(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), d = k(() => ({
2053
+ textBoxValue: i
2054
+ } = n, r = x(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = x(() => ({
1812
2055
  "form-control": !0,
1813
2056
  "f-utils-fill": !0
1814
- })), c = k(() => ({
2057
+ })), c = x(() => ({
1815
2058
  "text-align": e.textAlign
1816
2059
  }));
1817
- function y(f) {
1818
- f.stopPropagation();
2060
+ function v(g) {
2061
+ g.stopPropagation();
1819
2062
  }
1820
- function w() {
2063
+ function b() {
1821
2064
  e.selectOnCreated, e.focusOnCreated;
1822
2065
  }
1823
- async function l(f) {
1824
- s(f), await oe, w();
2066
+ async function f(g) {
2067
+ s(g), await ye, b();
1825
2068
  }
1826
- return U(async () => {
1827
- await oe, w();
1828
- }), () => A("input", {
1829
- ref: r,
1830
- class: d.value,
2069
+ return K(async () => {
2070
+ await ye, b();
2071
+ }), () => m("input", {
2072
+ ref: o,
2073
+ class: p.value,
1831
2074
  style: c.value,
1832
2075
  type: "text",
1833
- value: p.value,
2076
+ value: i.value,
1834
2077
  disabled: e.disabled,
1835
2078
  readonly: e.readonly || !e.editable,
1836
- placeholder: a.value,
1837
- onBlur: o,
1838
- onChange: y,
1839
- onFocus: l,
1840
- onInput: i,
2079
+ placeholder: r.value,
2080
+ onBlur: a,
2081
+ onChange: v,
2082
+ onFocus: f,
2083
+ onInput: l,
1841
2084
  onKeydown: u
1842
2085
  }, null);
1843
2086
  }
1844
- function to(e, t, n) {
2087
+ function zo(e, t, n) {
1845
2088
  const {
1846
- canDownward: r,
1847
- canUpward: o,
2089
+ canDownward: o,
2090
+ canUpward: a,
1848
2091
  onClickDownButton: s,
1849
- onClickUpButton: i
1850
- } = n, u = k(() => ({
2092
+ onClickUpButton: l
2093
+ } = n, u = x(() => ({
1851
2094
  "input-group-append": !0,
1852
2095
  "btn-group": !0,
1853
2096
  "btn-group-number": !0
1854
- })), p = k(() => ({
2097
+ })), i = x(() => ({
1855
2098
  btn: !0,
1856
2099
  "btn-secondary": !0,
1857
2100
  "btn-number-flag": !0
1858
- })), a = k(() => ({
1859
- cursor: o() ? "pointer" : "not-allowed",
2101
+ })), r = x(() => ({
2102
+ cursor: a() ? "pointer" : "not-allowed",
1860
2103
  "margin-left": 0
1861
- })), d = k(() => ({
1862
- cursor: r() ? "pointer" : "not-allowed",
2104
+ })), p = x(() => ({
2105
+ cursor: o() ? "pointer" : "not-allowed",
1863
2106
  "margin-left": 0
1864
2107
  }));
1865
- return () => A("div", {
2108
+ return () => m("div", {
1866
2109
  class: u.value
1867
- }, [A("button", {
2110
+ }, [m("button", {
1868
2111
  title: "upButton",
1869
- class: p.value,
1870
- style: a.value,
1871
- onClick: i,
1872
- disabled: !o()
1873
- }, [A("span", {
2112
+ class: i.value,
2113
+ style: r.value,
2114
+ onClick: l,
2115
+ disabled: !a()
2116
+ }, [m("span", {
1874
2117
  class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
1875
- }, null)]), A("button", {
2118
+ }, null)]), m("button", {
1876
2119
  title: "downButton",
1877
- class: p.value,
1878
- style: d.value,
2120
+ class: i.value,
2121
+ style: p.value,
1879
2122
  onClick: s,
1880
- disabled: !r()
1881
- }, [A("span", {
2123
+ disabled: !o()
2124
+ }, [m("span", {
1882
2125
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1883
2126
  }, null)])]);
1884
2127
  }
1885
- function no(e, t) {
1886
- const n = qe(e, t), r = Re(e, t, n), o = Ue(e, t, r, n), s = We(e, t, r, n, o), i = to(e, t, o), {
2128
+ function Ho(e, t) {
2129
+ const n = Pt(e, t), o = jt(e, t, n), a = It(e, t, o, n), s = Lt(e, t, o, n, a), l = zo(e, t, a), {
1887
2130
  displayValue: u,
1888
- modelValue: p,
1889
- getRealValue: a
1890
- } = n, d = eo(e, t, s), {
2131
+ modelValue: i,
2132
+ getRealValue: r
2133
+ } = n, p = Uo(e, t, s), {
1891
2134
  format: c
1892
- } = r, {
1893
- isFocus: y
1894
- } = s, w = k(() => !e.disabled && !e.readonly);
1895
- return U(() => {
1896
- const l = a(e.modelValue);
1897
- u.value = c(l);
1898
- }), I(() => [e.value], ([l]) => {
1899
- const f = a(l);
1900
- p.value = f, u.value = c(f);
1901
- }), I(() => [e.modelValue], ([l]) => {
1902
- l !== p.value && (p.value = l, !y.value && (u.value = c(a(l))));
1903
- }), I(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1904
- u.value = c(p.value);
1905
- }), () => A("div", {
2135
+ } = o, {
2136
+ isFocus: v
2137
+ } = s, b = x(() => !e.disabled && !e.readonly);
2138
+ return K(() => {
2139
+ const f = r(e.modelValue);
2140
+ u.value = c(f);
2141
+ }), X(() => [e.value], ([f]) => {
2142
+ const g = r(f);
2143
+ i.value = g, u.value = c(g);
2144
+ }), X(() => [e.modelValue], ([f]) => {
2145
+ f !== i.value && (i.value = f, !v.value && (u.value = c(r(f))));
2146
+ }), X(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
2147
+ u.value = c(i.value);
2148
+ }), () => m("div", {
1906
2149
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1907
- }, [d(), w.value && i()]);
2150
+ }, [p(), b.value && l()]);
1908
2151
  }
1909
- function oo(e, t, n, r) {
1910
- const o = m(), s = m(e.autocomplete), i = m(e.enableTitle), {
2152
+ function Go(e, t, n, o) {
2153
+ const a = d(), s = d(e.autocomplete), l = d(e.enableTitle), {
1911
2154
  isPassword: u
1912
- } = n, p = m(e.minLength), a = m(e.maxLength), d = m(e.tabIndex), {
2155
+ } = n, i = d(e.minLength), r = d(e.maxLength), p = d(e.tabIndex), {
1913
2156
  disabled: c,
1914
- displayText: y,
1915
- inputType: w,
1916
- onBlur: l,
1917
- onFocus: f,
1918
- onInput: g,
1919
- onClick: T,
1920
- onKeydown: D,
1921
- onKeyup: M,
1922
- onMousedown: S,
1923
- onTextBoxValueChange: $,
1924
- readonly: B,
1925
- placeholder: x,
1926
- textBoxClass: F,
2157
+ displayText: v,
2158
+ inputType: b,
2159
+ onBlur: f,
2160
+ onFocus: g,
2161
+ onInput: y,
2162
+ onClick: C,
2163
+ onKeydown: h,
2164
+ onKeyup: F,
2165
+ onMousedown: k,
2166
+ onTextBoxValueChange: R,
2167
+ readonly: T,
2168
+ placeholder: w,
2169
+ textBoxClass: A,
1927
2170
  textBoxTitle: E
1928
- } = r;
1929
- return U(() => {
2171
+ } = o;
2172
+ return K(() => {
1930
2173
  e.selectOnCreated, e.focusOnCreated;
1931
- }), () => A("input", {
1932
- ref: o,
2174
+ }), () => m("input", {
2175
+ ref: a,
1933
2176
  name: "input-group-value",
1934
2177
  autocomplete: s.value,
1935
- class: F.value,
2178
+ class: A.value,
1936
2179
  disabled: c == null ? void 0 : c.value,
1937
- maxlength: a.value,
1938
- minlength: p.value,
1939
- placeholder: x.value,
1940
- readonly: B == null ? void 0 : B.value,
1941
- tabindex: d.value,
1942
- title: i.value && !u.value ? E.value : "",
1943
- type: w.value,
1944
- value: y == null ? void 0 : y.value,
1945
- onBlur: l,
1946
- onClick: T,
1947
- onChange: $,
1948
- onFocus: f,
1949
- onInput: g,
1950
- onKeydown: D,
1951
- onKeyup: M,
1952
- onMousedown: S
2180
+ maxlength: r.value,
2181
+ minlength: i.value,
2182
+ placeholder: w.value,
2183
+ readonly: T == null ? void 0 : T.value,
2184
+ tabindex: p.value,
2185
+ title: l.value && !u.value ? E.value : "",
2186
+ type: b.value,
2187
+ value: v == null ? void 0 : v.value,
2188
+ onBlur: f,
2189
+ onClick: C,
2190
+ onChange: R,
2191
+ onFocus: g,
2192
+ onInput: y,
2193
+ onKeydown: h,
2194
+ onKeyup: F,
2195
+ onMousedown: k
1953
2196
  }, null);
1954
2197
  }
1955
- function ro(e, t) {
1956
- const n = k(() => e.useExtendInfo && !!e.extendInfo), r = $e({
2198
+ function Wo(e, t) {
2199
+ const n = x(() => e.useExtendInfo && !!e.extendInfo), o = te({
1957
2200
  content: e.extendInfo
1958
2201
  });
1959
- function o() {
2202
+ function a() {
1960
2203
  t.emit("updateExtendInfo");
1961
2204
  }
1962
- return () => n.value && Ne(A("span", {
2205
+ return () => n.value && bt(m("span", {
1963
2206
  class: "input-group-before-tips",
1964
- onMouseenter: o
1965
- }, [A("i", {
2207
+ onMouseenter: a
2208
+ }, [m("i", {
1966
2209
  class: "f-icon f-icon-info-circle"
1967
- }, null), A("b", {
2210
+ }, null), m("b", {
1968
2211
  class: "tips-arrow"
1969
- }, null)]), [[Le("tooltip"), r]]);
2212
+ }, null)]), [[Ct("tooltip"), o]]);
1970
2213
  }
1971
- function ke(e, t, n, r, o) {
2214
+ function _e(e, t, n, o, a) {
1972
2215
  const {
1973
2216
  appendedButtonClass: s,
1974
- appendedContent: i
1975
- } = n, u = k(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), p = k(() => i.value && !t.slots.groupTextTemplate), a = k(() => !!t.slots.groupTextTemplate), {
1976
- clearButtonClass: d,
2217
+ appendedContent: l
2218
+ } = n, u = x(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), i = x(() => l.value && !t.slots.groupTextTemplate), r = x(() => !!t.slots.groupTextTemplate), {
2219
+ clearButtonClass: p,
1977
2220
  clearButtonStyle: c,
1978
- onClearValue: y,
1979
- shouldShowClearButton: w
1980
- } = r;
1981
- function l() {
1982
- return A("span", {
2221
+ onClearValue: v,
2222
+ shouldShowClearButton: b
2223
+ } = o;
2224
+ function f() {
2225
+ return m("span", {
1983
2226
  id: "clearIcon",
1984
- class: d.value,
2227
+ class: p.value,
1985
2228
  style: c.value,
1986
- onClick: (x) => y(x)
1987
- }, [A("i", {
2229
+ onClick: (w) => v(w)
2230
+ }, [m("i", {
1988
2231
  class: "f-icon modal_close"
1989
2232
  }, null)]);
1990
2233
  }
1991
- function f(x) {
1992
- t.emit("iconMouseEnter", x);
2234
+ function g(w) {
2235
+ t.emit("iconMouseEnter", w);
1993
2236
  }
1994
- function g(x) {
1995
- t.emit("iconMouseLeave", x);
2237
+ function y(w) {
2238
+ t.emit("iconMouseLeave", w);
1996
2239
  }
1997
- function T(x) {
2240
+ function C(w) {
1998
2241
  u.value && t.emit("clickHandle", {
1999
- originalEvent: x
2000
- }), x.stopPropagation();
2242
+ originalEvent: w
2243
+ }), w.stopPropagation();
2001
2244
  }
2002
- const D = e.type === "password" ? o.onClickAppendedButton : T;
2003
- function M() {
2004
- return A("span", {
2245
+ const h = e.type === "password" ? a.onClickAppendedButton : C;
2246
+ function F() {
2247
+ return m("span", {
2005
2248
  class: "input-group-text",
2006
- onMouseenter: (x) => f(x),
2007
- onMouseleave: (x) => g(x),
2008
- innerHTML: i.value,
2009
- onClick: (x) => D(x)
2249
+ onMouseenter: (w) => g(w),
2250
+ onMouseleave: (w) => y(w),
2251
+ innerHTML: l.value,
2252
+ onClick: (w) => h(w)
2010
2253
  }, null);
2011
2254
  }
2012
- function S() {
2255
+ function k() {
2013
2256
  return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
2014
2257
  }
2015
- function $() {
2016
- return p.value ? M : a.value ? S : "";
2258
+ function R() {
2259
+ return i.value ? F : r.value ? k : "";
2017
2260
  }
2018
- const B = $();
2019
- return () => A("div", {
2261
+ const T = R();
2262
+ return () => m("div", {
2020
2263
  class: s.value
2021
- }, [w.value && l(), B && B()]);
2264
+ }, [b.value && f(), T && T()]);
2022
2265
  }
2023
- const ao = /* @__PURE__ */ q({
2266
+ const Xo = /* @__PURE__ */ Z({
2024
2267
  name: "FInputGroup",
2025
- props: se,
2268
+ props: Ie,
2026
2269
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
2027
2270
  setup(e, t) {
2028
- const n = m(e.modelValue), r = m(e.modelValue), o = Qn(e, t, n, r), {
2271
+ const n = d(e.modelValue), o = d(e.modelValue), a = Vo(e, t, n, o), {
2029
2272
  inputGroupClass: s,
2030
- inputType: i,
2273
+ inputType: l,
2031
2274
  inputGroupStyle: u
2032
- } = o, p = Fe(e), {
2033
- shouldShowAppendedButton: a
2034
- } = p, d = Te(e, t, o), {
2275
+ } = a, i = Qe(e), {
2276
+ shouldShowAppendedButton: r
2277
+ } = i, p = Je(e, t, a), {
2035
2278
  onMouseEnter: c,
2036
- onMouseLeave: y
2037
- } = d, w = Be(e, t, i, p), l = no(e, t), f = oo(e, t, w, o), g = ke(e, t, p, d, w), T = ro(e, t), D = k(() => e.type === "number");
2038
- I(() => [e.value], ([S]) => {
2039
- n.value = S, r.value = S;
2040
- }), I(() => [e.modelValue], ([S]) => {
2041
- n.value = S, r.value = S;
2042
- }), U(() => {
2043
- e.value && (n.value = e.value, r.value = e.value);
2279
+ onMouseLeave: v
2280
+ } = p, b = Ze(e, t, l, i), f = Ho(e, t), g = Go(e, t, b, a), y = _e(e, t, i, p, b), C = Wo(e, t), h = x(() => e.type === "number");
2281
+ X(() => [e.value], ([k]) => {
2282
+ n.value = k, o.value = k;
2283
+ }), X(() => [e.modelValue], ([k]) => {
2284
+ n.value = k, o.value = k;
2285
+ }), K(() => {
2286
+ e.value && (n.value = e.value, o.value = e.value);
2044
2287
  });
2045
- const M = () => A(ue, null, [A("div", {
2046
- id: "inputGroup",
2288
+ const F = () => m(ce, null, [m("div", {
2289
+ id: e.id,
2047
2290
  class: s.value,
2048
2291
  style: u.value,
2049
2292
  onMouseenter: c,
2050
- onMouseleave: y
2051
- }, [D.value ? l() : A(ue, null, [T(), f(), a.value && g()])])]);
2052
- return () => M();
2053
- }
2054
- }), b = {}, h = {}, v = {}, C = {};
2055
- let me = !1;
2056
- function io() {
2057
- me || (me = !0, ze.register(b, h, v, C), He.register(b, h, v, C), _e.register(b, h, v, C), Je.register(b, h, v, C), Qe.register(b, h, v, C), Ze.register(b, h, v, C), Xe.register(b, h, v, C), Ye.register(b, h, v, C), Ke.register(b, h, v, C), et.register(b, h, v, C), nt.register(b, h, v, C), tt.register(b, h, v, C), ot.register(b, h, v, C), rt.register(b, h, v, C), at.register(b, h, v, C), it.register(b, h, v, C), st.register(b, h, v, C), lt.register(b, h, v, C), ct.register(b, h, v, C), ut.register(b, h, v, C), pt.register(b, h, v, C), dt.register(b, h, v, C), mt.register(b, h, v, C), ft.register(b, h, v, C), yt.register(b, h, v, C), gt.register(b, h, v, C), bt.register(b, h, v, C), ht.register(b, h, v, C), Ge.register(b, h, v, C), vt.register(b, h, v, C), Ct.register(b, h, v, C), wt.register(b, h, v, C), Tt.register(b, h, v, C), Ft.register(b, h, v, C), Bt.register(b, h, v, C), kt.register(b, h, v, C), jt.register(b, h, v, C), xt.register(b, h, v, C), St.register(b, h, v, C), Pt.register(b, h, v, C), _t.register(b, h, v), Mt.register(b, h, v, C), At.register(b, h, v, C), Dt.register(b, h, v, C), Et.register(b, h, v, C), Vt.register(b, h, v, C), Ot.register(b, h, v, C), $t.register(b, h, v, C), Nt.register(b, h, v, C), Lt.register(b, h, v, C), It.register(b, h, v, C), Gt.register(b, h, v, C), qt.register(b, h, v, C), Ut.register(b, h, v, C), Rt.register(b, h, v, C), Wt.register(b, h, v, C), Ht.register(b, h, v, C), zt.register(b, h, v, C), Jt.register(b, h, v, C));
2058
- }
2059
- function je() {
2060
- io();
2061
- function e(o, s) {
2062
- const i = h[o];
2063
- return i ? i(s) : {};
2064
- }
2065
- function t(o) {
2066
- return b[o] || ao;
2067
- }
2068
- function n(o) {
2069
- switch (o) {
2293
+ onMouseleave: v
2294
+ }, [h.value ? f() : m(ce, null, [C(), g(), r.value && y()])])]);
2295
+ return () => F();
2296
+ }
2297
+ }), P = {}, j = {}, I = {}, L = {};
2298
+ let Ne = !1;
2299
+ function Yo() {
2300
+ Ne || (Ne = !0, Dt.register(P, j, I, L), At.register(P, j, I, L), Ot.register(P, j, I, L), Vt.register(P, j, I, L), Rt.register(P, j, I, L), Nt.register(P, j, I, L), $t.register(P, j, I, L), ie.register(P, j, I, L), qt.register(P, j, I, L), Ut.register(P, j, I, L), Ht.register(P, j, I, L), zt.register(P, j, I, L), Gt.register(P, j, I, L), Wt.register(P, j, I, L), Xt.register(P, j, I, L), Yt.register(P, j, I, L), Jt.register(P, j, I, L), Qt.register(P, j, I, L), Zt.register(P, j, I, L), _t.register(P, j, I, L), Kt.register(P, j, I, L), en.register(P, j, I, L), nn.register(P, j, I, L), tn.register(P, j, I, L), on.register(P, j, I, L), an.register(P, j, I, L), rn.register(P, j, I, L), sn.register(P, j, I, L), St.register(P, j, I, L), ln.register(P, j, I, L), un.register(P, j, I, L), cn.register(P, j, I, L), dn.register(P, j, I, L), pn.register(P, j, I, L), fn.register(P, j, I, L), mn.register(P, j, I, L), vn.register(P, j, I, L), yn.register(P, j, I, L), hn.register(P, j, I, L), gn.register(P, j, I, L), On.register(P, j, I), bn.register(P, j, I, L), Cn.register(P, j, I, L), wn.register(P, j, I, L), xn.register(P, j, I, L), Tn.register(P, j, I, L), Bn.register(P, j, I, L), Mn.register(P, j, I, L), Fn.register(P, j, I, L), kn.register(P, j, I, L), En.register(P, j, I, L), Sn.register(P, j, I, L), Pn.register(P, j, I, L), In.register(P, j, I, L), jn.register(P, j, I, L), Ln.register(P, j, I, L), An.register(P, j, I, L), Dn.register(P, j, I, L), Vn.register(P, j, I, L));
2301
+ }
2302
+ function Ke() {
2303
+ Yo();
2304
+ function e(a, s) {
2305
+ const l = j[a];
2306
+ return l ? l(s) : {};
2307
+ }
2308
+ function t(a) {
2309
+ return P[a] || Xo;
2310
+ }
2311
+ function n(a) {
2312
+ switch (a) {
2070
2313
  case "check-box":
2071
2314
  return "onChangeValue";
2072
2315
  case "switch":
@@ -2097,7 +2340,7 @@ function je() {
2097
2340
  case "input-group":
2098
2341
  return "onChange";
2099
2342
  case "lookup":
2100
- return "";
2343
+ return "onUpdate:modelValue";
2101
2344
  case "number-range":
2102
2345
  return "onValueChange";
2103
2346
  case "number-spinner":
@@ -2112,6 +2355,8 @@ function je() {
2112
2355
  return "onSavedCommandListChanged";
2113
2356
  case "grid-field-editor":
2114
2357
  return "onChange";
2358
+ case "response-form-layout-setting":
2359
+ return "onChange";
2115
2360
  case "field-selector":
2116
2361
  return "onFieldSelected";
2117
2362
  case "schema-selector":
@@ -2122,123 +2367,123 @@ function je() {
2122
2367
  return "onValueChange";
2123
2368
  }
2124
2369
  }
2125
- function r(o) {
2126
- switch (o) {
2370
+ function o(a) {
2371
+ switch (a) {
2127
2372
  case "combo-list":
2128
2373
  case "input-group":
2129
2374
  case "textarea":
2130
2375
  return "onClear";
2131
2376
  }
2132
2377
  }
2133
- return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: r };
2378
+ return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
2134
2379
  }
2135
- const ne = /* @__PURE__ */ q({
2380
+ const Fe = /* @__PURE__ */ Z({
2136
2381
  name: "FDynamicFormGroup",
2137
- props: J,
2382
+ props: pe,
2138
2383
  emits: ["change", "update:modelValue"],
2139
2384
  setup(e, t) {
2140
- const n = m(e.id), r = m(e.customClass), o = m(e.editor), s = m(e.label), i = m(e.modelValue), u = m(e.readonly), p = m(e.required), a = m(e.showLabel), d = m(e.visible);
2141
- m(e.type);
2142
- const c = m(), {
2143
- resolveEditorProps: y,
2144
- resolveEditorType: w,
2145
- getChangeFunctionName: l,
2146
- getClearFunctionName: f
2147
- } = je(), g = k(() => ({
2385
+ const n = d(e.id), o = d(e.customClass), a = d(e.editor), s = d(e.label), l = d(e.modelValue), u = d(e.readonly), i = d(e.required), r = d(e.showLabel), p = d(e.visible);
2386
+ d(e.type);
2387
+ const c = d(), {
2388
+ resolveEditorProps: v,
2389
+ resolveEditorType: b,
2390
+ getChangeFunctionName: f,
2391
+ getClearFunctionName: g
2392
+ } = Ke(), y = x(() => ({
2148
2393
  "form-group": !0,
2149
2394
  "farris-form-group": !0,
2150
2395
  "common-group": !0,
2151
2396
  "q-state-readonly": u.value
2152
2397
  }));
2153
- function T(S, $) {
2154
- i.value = $ !== void 0 ? $ : S, t.emit("update:modelValue", i.value), t.emit("change", i.value);
2398
+ function C(k, R) {
2399
+ l.value = R !== void 0 ? R : k, t.emit("update:modelValue", l.value), t.emit("change", l.value);
2155
2400
  }
2156
- function D() {
2401
+ function h() {
2157
2402
  t.emit("update:modelValue", "");
2158
2403
  }
2159
- const M = k(() => {
2160
- const S = o.value.type || "input-group", $ = w(S), B = y(S, o.value), x = l(S), F = f(o.value.type);
2161
- return B[x] = T, B[F] = D, () => A($, Z({
2404
+ const F = x(() => {
2405
+ const k = a.value.type || "input-group", R = b(k), T = v(k, a.value), w = f(k), A = g(a.value.type);
2406
+ return T[w] = C, T[A] = h, (T.id == null || T.id === "") && (T.id = n.value), () => m(R, ae({
2162
2407
  ref: c
2163
- }, B, {
2164
- modelValue: i.value,
2165
- "onUpdate:modelValue": (E) => i.value = E
2408
+ }, T, {
2409
+ modelValue: l.value,
2410
+ "onUpdate:modelValue": (E) => l.value = E
2166
2411
  }), null);
2167
2412
  });
2168
- return I([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([S, $, B, x, F, E, N, O, G]) => {
2169
- n.value = S, r.value = $, o.value = B, s.value = x, i.value = F, u.value = E, p.value = N, a.value = O, d.value = G;
2413
+ return X([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([k, R, T, w, A, E, O, N, U]) => {
2414
+ n.value = k, o.value = R, a.value = T, s.value = w, l.value = A, u.value = E, i.value = O, r.value = N, p.value = U;
2170
2415
  }), t.expose({
2171
2416
  editorRef: c
2172
- }), () => d.value && A("div", {
2417
+ }), () => p.value && m("div", {
2173
2418
  id: `${n.value}-input-group`,
2174
- class: r.value
2175
- }, [A("div", {
2419
+ class: o.value
2420
+ }, [m("div", {
2176
2421
  class: "farris-group-wrap"
2177
- }, [A("div", {
2178
- class: g.value
2179
- }, [a.value && A(we, {
2422
+ }, [m("div", {
2423
+ class: y.value
2424
+ }, [r.value && m(Ye, {
2180
2425
  id: `${n.value}-lable`,
2181
- required: p.value,
2426
+ required: i.value,
2182
2427
  text: s.value,
2183
2428
  title: s.value
2184
- }, null), A("div", {
2429
+ }, null), m("div", {
2185
2430
  class: "farris-input-wrap"
2186
- }, [M.value()])])])]);
2431
+ }, [F.value()])])])]);
2187
2432
  }
2188
- }), so = {}, lo = {};
2189
- function co(e, t) {
2433
+ }), Jo = {}, Qo = {};
2434
+ function Zo(e, t) {
2190
2435
  e.schema;
2191
- const n = m(!0), r = m(!0);
2192
- function o(c) {
2436
+ const n = d(!0), o = d(!0);
2437
+ function a(c) {
2193
2438
  return !1;
2194
2439
  }
2195
2440
  function s() {
2196
2441
  return !1;
2197
2442
  }
2198
- function i() {
2443
+ function l() {
2199
2444
  return !1;
2200
2445
  }
2201
2446
  function u() {
2202
2447
  return !0;
2203
2448
  }
2204
- function p(c) {
2449
+ function i(c) {
2205
2450
  }
2206
- function a() {
2451
+ function r() {
2207
2452
  }
2208
- function d(c) {
2453
+ function p(c) {
2209
2454
  return null;
2210
2455
  }
2211
2456
  return {
2212
- canAccepts: o,
2457
+ canAccepts: a,
2213
2458
  checkCanDeleteComponent: s,
2214
- checkCanMoveComponent: i,
2459
+ checkCanMoveComponent: l,
2215
2460
  hideNestedPaddingInDesginerView: u,
2216
- onAcceptMovedChildElement: p,
2217
- resolveComponentContext: a,
2461
+ onAcceptMovedChildElement: i,
2462
+ resolveComponentContext: r,
2218
2463
  triggerBelongedComponentToMoveWhenMoved: n,
2219
- triggerBelongedComponentToDeleteWhenDeleted: r,
2220
- getPropsConfig: d
2464
+ triggerBelongedComponentToDeleteWhenDeleted: o,
2465
+ getPropsConfig: p
2221
2466
  };
2222
2467
  }
2223
- class uo {
2468
+ class _o {
2224
2469
  constructor(t, n) {
2225
- L(this, "componentId");
2226
- L(this, "viewModelId");
2227
- L(this, "eventsEditorUtils");
2228
- L(this, "formSchemaUtils");
2229
- L(this, "formMetadataConverter");
2230
- L(this, "designViewModelUtils");
2231
- L(this, "designViewModelField");
2232
- L(this, "controlCreatorUtils");
2233
- L(this, "designerHostService");
2234
- L(this, "schemaService", null);
2235
- L(this, "metadataService", null);
2236
- L(this, "propertyConfig", {
2470
+ G(this, "componentId");
2471
+ G(this, "viewModelId");
2472
+ G(this, "eventsEditorUtils");
2473
+ G(this, "formSchemaUtils");
2474
+ G(this, "formMetadataConverter");
2475
+ G(this, "designViewModelUtils");
2476
+ G(this, "designViewModelField");
2477
+ G(this, "controlCreatorUtils");
2478
+ G(this, "designerHostService");
2479
+ G(this, "schemaService", null);
2480
+ G(this, "metadataService", null);
2481
+ G(this, "propertyConfig", {
2237
2482
  type: "object",
2238
2483
  categories: {}
2239
2484
  });
2240
- var r;
2241
- this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
2485
+ var o;
2486
+ this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
2242
2487
  }
2243
2488
  getTableInfo() {
2244
2489
  var t;
@@ -2248,8 +2493,8 @@ class uo {
2248
2493
  const n = t.binding && t.binding.type === "Form" && t.binding.field;
2249
2494
  if (n) {
2250
2495
  if (!this.designViewModelField) {
2251
- const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
2252
- this.designViewModelField = r.fields.find((o) => o.id === n);
2496
+ const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
2497
+ this.designViewModelField = o.fields.find((a) => a.id === n);
2253
2498
  }
2254
2499
  t.updateOn = this.designViewModelField.updateOn;
2255
2500
  }
@@ -2275,7 +2520,7 @@ class uo {
2275
2520
  type: "combo-list",
2276
2521
  textField: "name",
2277
2522
  valueField: "value",
2278
- data: [{ value: t.type, name: j[t.type].name }]
2523
+ data: [{ value: t.type, name: V[t.type].name }]
2279
2524
  }
2280
2525
  }
2281
2526
  }
@@ -2301,13 +2546,26 @@ class uo {
2301
2546
  }
2302
2547
  };
2303
2548
  }
2549
+ /**
2550
+ *
2551
+ * @param propertyId
2552
+ * @param componentInstance
2553
+ * @returns
2554
+ */
2555
+ updateElementByParentContainer(t, n) {
2556
+ const o = n && n.parent && n.parent.schema;
2557
+ if (!o)
2558
+ return;
2559
+ const a = o.contents.findIndex((l) => l.id === t), s = Ee(o.contents[a]);
2560
+ o.contents.splice(a, 1), o.contents.splice(a, 0, s);
2561
+ }
2304
2562
  }
2305
- const H = class H {
2563
+ const oe = class oe {
2306
2564
  /**
2307
2565
  * 根据绑定字段类型获取可用的输入类控件
2308
2566
  */
2309
2567
  static getEditorTypesByMDataType(t) {
2310
- const n = H.fieldControlTypeMapping[t];
2568
+ const n = oe.fieldControlTypeMapping[t];
2311
2569
  return n || [{ key: "", value: "" }];
2312
2570
  }
2313
2571
  /**
@@ -2315,9 +2573,9 @@ const H = class H {
2315
2573
  */
2316
2574
  static getAllInputTypes() {
2317
2575
  const t = [];
2318
- for (let n in H.fieldControlTypeMapping)
2319
- H.fieldControlTypeMapping[n].forEach((r) => {
2320
- t.find((o) => o.key === r.key && o.value === r.value) || t.push({ key: r.key, value: r.value });
2576
+ for (let n in oe.fieldControlTypeMapping)
2577
+ oe.fieldControlTypeMapping[n].forEach((o) => {
2578
+ t.find((a) => a.key === o.key && a.value === o.value) || t.push({ key: o.key, value: o.value });
2321
2579
  });
2322
2580
  return t;
2323
2581
  }
@@ -2325,66 +2583,68 @@ const H = class H {
2325
2583
  /**
2326
2584
  * <字段类型,可配置的控件类型列表>的映射
2327
2585
  */
2328
- L(H, "fieldControlTypeMapping", {
2586
+ G(oe, "fieldControlTypeMapping", {
2329
2587
  String: [
2330
- { key: j["input-group"].type, value: j["input-group"].name },
2331
- { key: j.lookup.type, value: j.lookup.name },
2332
- { key: j["date-picker"].type, value: j["date-picker"].name },
2333
- { key: j["check-box"].type, value: j["check-box"].name },
2334
- { key: j["radio-group"].type, value: j["radio-group"].name },
2335
- { key: j["combo-list"].type, value: j["combo-list"].name },
2336
- { key: j.textarea.type, value: j.textarea.name }
2588
+ { key: V["input-group"].type, value: V["input-group"].name },
2589
+ { key: V.lookup.type, value: V.lookup.name },
2590
+ { key: V["date-picker"].type, value: V["date-picker"].name },
2591
+ { key: V["check-box"].type, value: V["check-box"].name },
2592
+ { key: V["radio-group"].type, value: V["radio-group"].name },
2593
+ { key: V["combo-list"].type, value: V["combo-list"].name },
2594
+ { key: V.textarea.type, value: V.textarea.name }
2337
2595
  ],
2338
2596
  Text: [
2339
- { key: j.textarea.type, value: j.textarea.name },
2340
- { key: j.lookup.type, value: j.lookup.name }
2597
+ { key: V.textarea.type, value: V.textarea.name },
2598
+ { key: V.lookup.type, value: V.lookup.name }
2341
2599
  ],
2342
2600
  Decimal: [
2343
- { key: j["number-spinner"].type, value: j["number-spinner"].name }
2601
+ { key: V["number-spinner"].type, value: V["number-spinner"].name }
2344
2602
  ],
2345
2603
  Integer: [
2346
- { key: j["number-spinner"].type, value: j["number-spinner"].name }
2604
+ { key: V["number-spinner"].type, value: V["number-spinner"].name }
2347
2605
  ],
2348
2606
  Number: [
2349
- { key: j["number-spinner"].type, value: j["number-spinner"].name }
2607
+ { key: V["number-spinner"].type, value: V["number-spinner"].name }
2350
2608
  ],
2351
2609
  BigNumber: [
2352
- { key: j["number-spinner"].type, value: j["number-spinner"].name }
2610
+ { key: V["number-spinner"].type, value: V["number-spinner"].name }
2353
2611
  ],
2354
2612
  Date: [
2355
- { key: j["date-picker"].type, value: j["date-picker"].name }
2613
+ { key: V["date-picker"].type, value: V["date-picker"].name }
2356
2614
  ],
2357
2615
  DateTime: [
2358
- { key: j["date-picker"].type, value: j["date-picker"].name }
2616
+ { key: V["date-picker"].type, value: V["date-picker"].name }
2359
2617
  ],
2360
2618
  Boolean: [
2361
- { key: j.switch.type, value: j.switch.name },
2362
- { key: j["check-box"].type, value: j["check-box"].name }
2619
+ { key: V.switch.type, value: V.switch.name },
2620
+ { key: V["check-box"].type, value: V["check-box"].name }
2363
2621
  ],
2364
2622
  Enum: [
2365
- { key: j["combo-list"].type, value: j["combo-list"].name },
2366
- { key: j["radio-group"].type, value: j["radio-group"].name }
2623
+ { key: V["combo-list"].type, value: V["combo-list"].name },
2624
+ { key: V["radio-group"].type, value: V["radio-group"].name }
2367
2625
  ],
2368
2626
  Object: [
2369
- { key: j.lookup.type, value: j.lookup.name },
2370
- { key: j["combo-list"].type, value: j["combo-list"].name },
2371
- { key: j["radio-group"].type, value: j["radio-group"].name }
2627
+ { key: V.lookup.type, value: V.lookup.name },
2628
+ { key: V["combo-list"].type, value: V["combo-list"].name },
2629
+ { key: V["radio-group"].type, value: V["radio-group"].name }
2372
2630
  ]
2373
2631
  });
2374
- let Q = H;
2375
- const po = m(0);
2376
- class fo extends uo {
2377
- constructor(t, n) {
2378
- super(t, n);
2632
+ let he = oe;
2633
+ const Ko = d(0);
2634
+ class ea extends _o {
2635
+ constructor(n, o) {
2636
+ super(n, o);
2637
+ G(this, "responseLayoutEditorFunction");
2638
+ this.responseLayoutEditorFunction = qe(this.formSchemaUtils);
2379
2639
  }
2380
- getPropertyConfig(t, n) {
2381
- return this.propertyConfig.categories.basic = this.getBasicProperties(t, n), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
2640
+ getPropertyConfig(n, o) {
2641
+ return this.propertyConfig.categories.basic = this.getBasicProperties(n, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(n, o), this.propertyConfig.categories.editor = this.getEditorProperties(n), this.propertyConfig;
2382
2642
  }
2383
- getBasicProperties(t, n) {
2384
- var i;
2385
- var r = this;
2386
- this.setDesignViewModelField(t);
2387
- const o = this.formSchemaUtils.getFormMetadataBasicInfo(), s = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
2643
+ getBasicProperties(n, o) {
2644
+ var u;
2645
+ var a = this;
2646
+ this.setDesignViewModelField(n);
2647
+ const s = this.formSchemaUtils.getFormMetadataBasicInfo(), l = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
2388
2648
  return {
2389
2649
  description: "Basic Information",
2390
2650
  title: "基本信息",
@@ -2396,8 +2656,8 @@ class fo extends uo {
2396
2656
  readonly: !0
2397
2657
  },
2398
2658
  type: {
2399
- description: "组件类型",
2400
- title: "控件类型",
2659
+ description: "编辑器类型",
2660
+ title: "编辑器类型",
2401
2661
  type: "string",
2402
2662
  refreshPanelAfterChanged: !0,
2403
2663
  $converter: "/converter/change-editor.converter",
@@ -2406,7 +2666,7 @@ class fo extends uo {
2406
2666
  textField: "value",
2407
2667
  valueField: "key",
2408
2668
  editable: !1,
2409
- data: r.designViewModelField ? Q.getEditorTypesByMDataType((i = r.designViewModelField.type) == null ? void 0 : i.name) : Q.getAllInputTypes()
2669
+ data: a.designViewModelField ? he.getEditorTypesByMDataType((u = a.designViewModelField.type) == null ? void 0 : u.name) : he.getAllInputTypes()
2410
2670
  }
2411
2671
  },
2412
2672
  label: {
@@ -2422,8 +2682,8 @@ class fo extends uo {
2422
2682
  type: "field-selector",
2423
2683
  bindingType: { enable: !1 },
2424
2684
  editorParams: {
2425
- propertyData: t,
2426
- formBasicInfo: o
2685
+ propertyData: n,
2686
+ formBasicInfo: s
2427
2687
  },
2428
2688
  columns: [
2429
2689
  { field: "name", title: "字段名称" },
@@ -2431,22 +2691,27 @@ class fo extends uo {
2431
2691
  { field: "fieldType", title: "字段类型" }
2432
2692
  ],
2433
2693
  textField: "bindingField",
2434
- data: s
2694
+ data: l
2435
2695
  }
2436
2696
  }
2437
2697
  },
2438
- setPropertyRelates(u, p) {
2439
- if (u)
2440
- switch (u && u.propertyID) {
2698
+ setPropertyRelates(i, r) {
2699
+ if (i)
2700
+ switch (i && i.propertyID) {
2441
2701
  case "type": {
2442
- r.changeControlType(t, u, n);
2702
+ a.changeControlType(n, i, o);
2703
+ break;
2704
+ }
2705
+ case "label": {
2706
+ i.needRefreshControlTree = !0;
2443
2707
  break;
2444
2708
  }
2445
2709
  }
2446
2710
  }
2447
2711
  };
2448
2712
  }
2449
- getAppearanceProperties(t) {
2713
+ getAppearanceProperties(n, o) {
2714
+ var a = this;
2450
2715
  return {
2451
2716
  title: "样式",
2452
2717
  description: "Appearance",
@@ -2467,61 +2732,74 @@ class fo extends uo {
2467
2732
  description: "响应式列宽",
2468
2733
  title: "响应式列宽",
2469
2734
  type: "boolean",
2470
- visible: !1,
2735
+ visible: !0,
2736
+ // 这个属性,标记当属性变更得时候触发重新更新属性
2737
+ refreshPanelAfterChanged: !0,
2471
2738
  editor: {
2472
- type: "response-layout-editor-setting"
2473
- },
2474
- $converter: "/converter/response-form-layout.converter"
2739
+ type: "response-layout-editor-setting",
2740
+ initialState: a.responseLayoutEditorFunction.checkCanOpenLayoutEditor(n, a.componentId)
2741
+ }
2475
2742
  }
2743
+ },
2744
+ setPropertyRelates(s, l) {
2745
+ if (s)
2746
+ switch (s && s.propertyID) {
2747
+ case "responseLayout":
2748
+ a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(s.propertyValue, a.componentId || n.id), a.updateUnifiedLayoutAfterResponseLayoutChanged(a.componentId), a.updateElementByParentContainer(n.id, o), delete n.responseLayout;
2749
+ break;
2750
+ case "class":
2751
+ a.updateUnifiedLayoutAfterControlChanged(s.propertyValue, n.id, this.componentId), a.updateElementByParentContainer(n.id, o);
2752
+ break;
2753
+ }
2476
2754
  }
2477
2755
  };
2478
2756
  }
2479
- getEditorProperties(t) {
2480
- return this.getComponentConfig(t);
2757
+ getEditorProperties(n) {
2758
+ return this.getComponentConfig(n);
2481
2759
  }
2482
2760
  /**
2483
2761
  * 卡片控件:切换控件类型后事件
2484
2762
  * @param propertyData 控件DOM属性
2485
2763
  * @param newControlType 新控件类型
2486
2764
  */
2487
- changeControlType(t, n, r) {
2488
- var a, d, c, y;
2489
- const o = n.propertyValue, s = r && r.parent && r.parent.schema;
2490
- if (!s)
2765
+ changeControlType(n, o, a) {
2766
+ var p, c, v, b;
2767
+ const s = o.propertyValue, l = a && a.parent && a.parent.schema;
2768
+ if (!l)
2491
2769
  return;
2492
- const i = s.contents.findIndex((w) => w.id === t.id), u = s.contents[i];
2493
- let p;
2770
+ const u = l.contents.findIndex((f) => f.id === n.id), i = l.contents[u];
2771
+ let r;
2494
2772
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
2495
2773
  editor: {
2496
- $type: o
2774
+ $type: s
2497
2775
  },
2498
2776
  name: this.designViewModelField.name,
2499
2777
  require: this.designViewModelField.require,
2500
2778
  readonly: this.designViewModelField.readonly
2501
- }, !1), p = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, o)), p || (p = pe("form-group") || {}, p.editor = pe(o) || {}, delete p.editor.id, delete p.editor.binding, delete p.editor.appearance), Object.assign(p, {
2502
- id: u.id,
2503
- appearance: u.appearance,
2504
- size: u.size,
2505
- label: u.label,
2506
- binding: u.binding,
2507
- visible: u.visible
2508
- }), Object.assign(p.editor, {
2509
- isTextArea: p.isTextArea && u.isTextArea,
2510
- placeholder: (a = u.editor) == null ? void 0 : a.placeholder,
2511
- holdPlace: (d = u.editor) == null ? void 0 : d.holdPlace,
2512
- readonly: (c = u.editor) == null ? void 0 : c.readonly,
2513
- require: (y = u.editor) == null ? void 0 : y.require
2514
- }), s.contents.splice(i, 1), s.contents.splice(i, 0, p), r.schema = Object.assign(u, p), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
2515
- (w) => w.classList.remove("dgComponentSelected")
2516
- ), po.value++;
2517
- }
2518
- getComponentConfig(t, n = {}, r = {}) {
2519
- const o = Object.assign({
2520
- description: "组件信息",
2521
- title: "组件信息",
2779
+ }, !1), r = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, s)), r || (r = Oe("form-group") || {}, r.editor = Oe(s) || {}, delete r.editor.id, delete r.editor.binding, delete r.editor.appearance), Object.assign(r, {
2780
+ id: i.id,
2781
+ appearance: i.appearance,
2782
+ size: i.size,
2783
+ label: i.label,
2784
+ binding: i.binding,
2785
+ visible: i.visible
2786
+ }), Object.assign(r.editor, {
2787
+ isTextArea: r.isTextArea && i.isTextArea,
2788
+ placeholder: (p = i.editor) == null ? void 0 : p.placeholder,
2789
+ holdPlace: (c = i.editor) == null ? void 0 : c.holdPlace,
2790
+ readonly: (v = i.editor) == null ? void 0 : v.readonly,
2791
+ require: (b = i.editor) == null ? void 0 : b.require
2792
+ }), l.contents.splice(u, 1), l.contents.splice(u, 0, r), a.schema = Object.assign(i, r), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
2793
+ (f) => f.classList.remove("dgComponentSelected")
2794
+ ), Ko.value++;
2795
+ }
2796
+ getComponentConfig(n, o = {}, a = {}) {
2797
+ const s = Object.assign({
2798
+ description: "编辑器",
2799
+ title: "编辑器",
2522
2800
  type: "input-group",
2523
2801
  $converter: "/converter/property-editor.converter"
2524
- }, n), s = Object.assign({
2802
+ }, o), l = Object.assign({
2525
2803
  readonly: {
2526
2804
  description: "",
2527
2805
  title: "只读",
@@ -2542,148 +2820,196 @@ class fo extends uo {
2542
2820
  title: "提示文本",
2543
2821
  type: "string"
2544
2822
  }
2545
- }, r);
2546
- return { ...o, properties: { ...s } };
2823
+ }, a);
2824
+ return { ...s, properties: { ...l } };
2825
+ }
2826
+ /**
2827
+ * 修改某一输入控件的样式后更新Form的统一布局配置
2828
+ * @param controlClass 控件样式
2829
+ * @param controlId 控件Id
2830
+ * @param componentId 控件所在组件id
2831
+ */
2832
+ updateUnifiedLayoutAfterControlChanged(n, o, a) {
2833
+ const s = n.split(" ");
2834
+ let l = s.find((c) => /^col-([1-9]|10|11|12)$/.test(c)), u = s.find((c) => /^col-md-([1-9]|10|11|12)$/.test(c)), i = s.find((c) => /^col-xl-([1-9]|10|11|12)$/.test(c)), r = s.find((c) => /^col-el-([1-9]|10|11|12)$/.test(c));
2835
+ l = l || "col-12", u = u || "col-md-" + l.replace("col-", ""), i = i || "col-xl-" + u.replace("col-md-", ""), r = r || "col-el-" + i.replace("col-xl-", "");
2836
+ const p = {
2837
+ id: o,
2838
+ columnInSM: parseInt(l.replace("col-", ""), 10),
2839
+ columnInMD: parseInt(u.replace("col-md-", ""), 10),
2840
+ columnInLG: parseInt(i.replace("col-xl-", ""), 10),
2841
+ columnInEL: parseInt(r.replace("col-el-", ""), 10)
2842
+ };
2843
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(a, p);
2844
+ }
2845
+ /**
2846
+ * 修改控件布局配置后更新Form统一布局配置
2847
+ * @param componentId 组件Id
2848
+ * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
2849
+ */
2850
+ updateUnifiedLayoutAfterResponseLayoutChanged(n, o) {
2851
+ const { formNode: a } = this.responseLayoutEditorFunction.checkCanFindFormNode(n);
2852
+ if (!a || !a.unifiedLayout)
2853
+ return;
2854
+ const s = [];
2855
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(a, s, 1), o) {
2856
+ const f = s.find((g) => g.id === o.id);
2857
+ Object.assign(f || {}, o);
2858
+ }
2859
+ const l = s.map((f) => f.columnInSM), u = s.map((f) => f.columnInMD), i = s.map((f) => f.columnInLG), r = s.map((f) => f.columnInEL), p = this.checkIsUniqueColumn(l) ? l[0] : null, c = this.checkIsUniqueColumn(u) ? u[0] : null, v = this.checkIsUniqueColumn(i) ? i[0] : null, b = this.checkIsUniqueColumn(r) ? r[0] : null;
2860
+ Object.assign(a.unifiedLayout, {
2861
+ uniqueColClassInSM: p,
2862
+ uniqueColClassInMD: c,
2863
+ uniqueColClassInLG: v,
2864
+ uniqueColClassInEL: b
2865
+ });
2866
+ }
2867
+ /**
2868
+ * 校验宽度样式值是否一致
2869
+ */
2870
+ checkIsUniqueColumn(n) {
2871
+ const o = new Set(n);
2872
+ return Array.from(o).length === 1;
2547
2873
  }
2548
2874
  }
2549
- class mo extends fo {
2875
+ class ta extends ea {
2550
2876
  constructor(t, n) {
2551
2877
  super(t, n);
2552
2878
  }
2553
2879
  }
2554
- function yo(e, t) {
2880
+ function na(e, t) {
2555
2881
  const {
2556
2882
  canAccepts: n,
2557
- checkCanDeleteComponent: r,
2558
- checkCanMoveComponent: o,
2883
+ checkCanDeleteComponent: o,
2884
+ checkCanMoveComponent: a,
2559
2885
  hideNestedPaddingInDesginerView: s,
2560
- onAcceptMovedChildElement: i,
2886
+ onAcceptMovedChildElement: l,
2561
2887
  resolveComponentContext: u,
2562
- triggerBelongedComponentToMoveWhenMoved: p,
2563
- triggerBelongedComponentToDeleteWhenDeleted: a
2564
- } = co(e), d = e.schema;
2565
- function c(y, w) {
2566
- return new mo(y, t).getPropertyConfig(d, w);
2888
+ triggerBelongedComponentToMoveWhenMoved: i,
2889
+ triggerBelongedComponentToDeleteWhenDeleted: r
2890
+ } = Zo(e), p = e.schema;
2891
+ function c(v, b) {
2892
+ return new ta(v, t).getPropertyConfig(p, b);
2567
2893
  }
2568
2894
  return {
2569
2895
  canAccepts: n,
2570
- checkCanDeleteComponent: r,
2571
- checkCanMoveComponent: o,
2896
+ checkCanDeleteComponent: o,
2897
+ checkCanMoveComponent: a,
2572
2898
  hideNestedPaddingInDesginerView: s,
2573
- onAcceptMovedChildElement: i,
2899
+ onAcceptMovedChildElement: l,
2574
2900
  resolveComponentContext: u,
2575
- triggerBelongedComponentToMoveWhenMoved: p,
2576
- triggerBelongedComponentToDeleteWhenDeleted: a,
2901
+ triggerBelongedComponentToMoveWhenMoved: i,
2902
+ triggerBelongedComponentToDeleteWhenDeleted: r,
2577
2903
  getPropsConfig: c
2578
2904
  };
2579
2905
  }
2580
- const go = /* @__PURE__ */ q({
2906
+ const oa = /* @__PURE__ */ Z({
2581
2907
  name: "FInputGroupDesign",
2582
- props: se,
2908
+ props: Ie,
2583
2909
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
2584
2910
  setup(e, t) {
2585
- const n = m(e.modelValue), r = m(e.modelValue), o = Zn(e, t, n, r), {
2911
+ const n = d(e.modelValue), o = d(e.modelValue), a = Ro(e, t, n, o), {
2586
2912
  inputGroupClass: s,
2587
- inputType: i,
2913
+ inputType: l,
2588
2914
  inputGroupStyle: u
2589
- } = o, p = Fe(e), {
2590
- shouldShowAppendedButton: a
2591
- } = p, d = Te(e, t, o), {
2915
+ } = a, i = Qe(e), {
2916
+ shouldShowAppendedButton: r
2917
+ } = i, p = Je(e, t, a), {
2592
2918
  onMouseEnter: c,
2593
- onMouseLeave: y
2594
- } = d, w = Be(e, t, i, p), l = m(), f = z("designer-host-service"), g = z("design-item-context"), T = yo(g, f), D = ie(l, g, T);
2595
- U(() => {
2596
- l.value.componentInstance = D;
2597
- }), t.expose(D.value);
2598
- const M = ke(e, t, p, d, w), S = m();
2599
- return () => A("div", {
2919
+ onMouseLeave: v
2920
+ } = p, b = Ze(e, t, l, i), f = d(), g = ue("designer-host-service"), y = ue("design-item-context"), C = na(y, g), h = je(f, y, C);
2921
+ K(() => {
2922
+ f.value.componentInstance = h;
2923
+ }), t.expose(h.value);
2924
+ const F = _e(e, t, i, p, b), k = d();
2925
+ return () => m("div", {
2600
2926
  id: "inputGroup",
2601
- ref: l,
2927
+ ref: f,
2602
2928
  class: s.value,
2603
2929
  style: u.value,
2604
2930
  onMouseenter: c,
2605
- onMouseleave: y
2606
- }, [A("input", {
2607
- ref: S,
2931
+ onMouseleave: v
2932
+ }, [m("input", {
2933
+ ref: k,
2608
2934
  class: "form-control",
2609
2935
  readonly: !0,
2610
2936
  placeholder: e.placeholder
2611
- }, null), a.value && M()]);
2937
+ }, null), r.value && F()]);
2612
2938
  }
2613
2939
  });
2614
- function bo() {
2615
- function e(n, r) {
2616
- const o = lo[n];
2617
- return o ? o(r) : {};
2940
+ function aa() {
2941
+ function e(n, o) {
2942
+ const a = Qo[n];
2943
+ return a ? a(o) : {};
2618
2944
  }
2619
2945
  function t(n) {
2620
- return so[n] || go;
2946
+ return Jo[n] || oa;
2621
2947
  }
2622
2948
  return { resolveEditorProps: e, resolveEditorType: t };
2623
2949
  }
2624
- const ho = /* @__PURE__ */ q({
2950
+ const ra = /* @__PURE__ */ Z({
2625
2951
  name: "FDynamicFormGroupDesign",
2626
- props: J,
2952
+ props: pe,
2627
2953
  emits: ["change", "update:modelValue"],
2628
2954
  setup(e, t) {
2629
- const n = m(e.id), r = m(e.customClass), o = m(e.editor), s = m(e.label), i = m(e.modelValue), u = m(!0), p = m(e.required), a = m(e.showLabel);
2630
- m(e.type);
2631
- const d = m(), {
2955
+ const n = d(e.id), o = d(e.customClass), a = d(e.editor), s = d(e.label), l = d(e.modelValue), u = d(!0), i = d(e.required), r = d(e.showLabel);
2956
+ d(e.type);
2957
+ const p = d(), {
2632
2958
  resolveEditorProps: c,
2633
- resolveEditorType: y
2634
- } = bo(), w = k(() => ({
2959
+ resolveEditorType: v
2960
+ } = aa(), b = x(() => ({
2635
2961
  "form-group": !0,
2636
2962
  "farris-form-group": !0,
2637
2963
  "common-group": !0,
2638
2964
  "q-state-readonly": u.value,
2639
2965
  "form-group-in-canvas": !0
2640
- })), l = k(() => {
2641
- const f = o.value.type || "input-group", g = y(f), T = c(f, o.value);
2642
- return () => A(g, Z({
2643
- ref: d
2644
- }, T, {
2645
- modelValue: i.value,
2646
- "onUpdate:modelValue": (D) => i.value = D
2966
+ })), f = x(() => {
2967
+ const g = a.value.type || "input-group", y = v(g), C = c(g, a.value);
2968
+ return () => m(y, ae({
2969
+ ref: p
2970
+ }, C, {
2971
+ modelValue: l.value,
2972
+ "onUpdate:modelValue": (h) => l.value = h
2647
2973
  }), null);
2648
2974
  });
2649
- return I([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel], ([f, g, T, D, M, S, $, B]) => {
2650
- n.value = f, r.value = g, o.value = T, s.value = D, i.value = M, u.value = S, p.value = $, a.value = B;
2975
+ return X([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel], ([g, y, C, h, F, k, R, T]) => {
2976
+ n.value = g, o.value = y, a.value = C, s.value = h, l.value = F, u.value = k, i.value = R, r.value = T;
2651
2977
  }), t.expose({
2652
- editorRef: d
2653
- }), () => A("div", {
2978
+ editorRef: p
2979
+ }), () => m("div", {
2654
2980
  id: `${n.value}-input-group`,
2655
- class: r.value,
2981
+ class: o.value,
2656
2982
  design_test: !0
2657
- }, [A("div", {
2983
+ }, [m("div", {
2658
2984
  class: "farris-group-wrap"
2659
- }, [A("div", {
2660
- class: w.value
2661
- }, [a.value && A(we, {
2985
+ }, [m("div", {
2986
+ class: b.value
2987
+ }, [r.value && m(Ye, {
2662
2988
  id: `${n.value}-lable`,
2663
- required: p.value,
2989
+ required: i.value,
2664
2990
  text: s.value,
2665
2991
  title: s.value
2666
- }, null), A("div", {
2992
+ }, null), m("div", {
2667
2993
  class: "farris-input-wrap"
2668
- }, [l.value()])])])]);
2994
+ }, [f.value()])])])]);
2669
2995
  }
2670
- }), vo = /* @__PURE__ */ q({
2996
+ }), sa = /* @__PURE__ */ Z({
2671
2997
  name: "FFormGroupDesign",
2672
- props: J,
2998
+ props: pe,
2673
2999
  emits: [],
2674
3000
  setup(e, t) {
2675
- const n = m(), r = z("design-item-context"), o = ie(n, r);
2676
- return o.value.canNested = !1, o.value.canMove = !0, o.value.canDelete = !0, U(() => {
2677
- n.value.componentInstance = o, o.value.getPropConfig = (...s) => {
2678
- var u, p, a;
2679
- let i = be[e.editor.type];
2680
- return i && Object.keys(i).length === 0 && ((u = n.value) != null && u.editorRef) && ((a = (p = n.value) == null ? void 0 : p.editorRef) != null && a.getPropConfig) && (i = n.value.editorRef.getPropConfig(...s, o.value)), i;
3001
+ const n = d(), o = ue("design-item-context"), a = je(n, o);
3002
+ return a.value.canNested = !1, a.value.canMove = !0, a.value.canDelete = !0, K(() => {
3003
+ n.value.componentInstance = a, a.value.getPropConfig = (...s) => {
3004
+ var u, i, r;
3005
+ let l = He[e.editor.type];
3006
+ return l && Object.keys(l).length === 0 && ((u = n.value) != null && u.editorRef) && ((r = (i = n.value) == null ? void 0 : i.editorRef) != null && r.getPropConfig) && (l = n.value.editorRef.getPropConfig(...s, a.value)), l;
2681
3007
  };
2682
- }), t.expose(o.value), () => A(ho, Z(e, {
3008
+ }), t.expose(a.value), () => m(ra, ae(e, {
2683
3009
  ref: n
2684
3010
  }), null);
2685
3011
  }
2686
- }), Pe = {
3012
+ }), et = {
2687
3013
  id: { type: String, default: "" },
2688
3014
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
2689
3015
  editor: { type: Object, default: {} },
@@ -2697,56 +3023,1375 @@ const ho = /* @__PURE__ */ q({
2697
3023
  * 作为内嵌编辑器被创建后默认选中文本
2698
3024
  */
2699
3025
  selectOnCreated: { type: Boolean, default: !1 }
2700
- }, Co = X(
3026
+ }, la = be(
3027
+ et,
3028
+ Xe,
2701
3029
  Pe,
2702
- Ce,
2703
- ae,
2704
3030
  void 0
2705
- ), wo = /* @__PURE__ */ q({
3031
+ ), ia = /* @__PURE__ */ Z({
2706
3032
  name: "FDynamicFormInput",
2707
- props: Pe,
3033
+ props: et,
2708
3034
  emits: ["change", "update:modelValue"],
2709
3035
  setup(e, t) {
2710
- const n = m(e.id), r = m(e.editor), o = m(e.modelValue), {
3036
+ const n = d(e.id), o = d(e.editor), a = d(e.modelValue), {
2711
3037
  resolveEditorProps: s,
2712
- resolveEditorType: i,
3038
+ resolveEditorType: l,
2713
3039
  getChangeFunctionName: u
2714
- } = je();
2715
- function p(d, c) {
2716
- o.value = c !== void 0 ? c : d, t.emit("update:modelValue", o.value), t.emit("change", o.value);
3040
+ } = Ke();
3041
+ function i(p, c) {
3042
+ a.value = c !== void 0 ? c : p, t.emit("update:modelValue", a.value), t.emit("change", a.value);
2717
3043
  }
2718
- const a = k(() => {
2719
- const d = i(r.value.type), c = s(r.value.type, r.value);
3044
+ const r = x(() => {
3045
+ const p = l(o.value.type), c = s(o.value.type, o.value);
2720
3046
  c.focusOnCreated = e.focusOnCreated, c.selectOnCreated = e.selectOnCreated;
2721
- const y = u(r.value.type);
2722
- return c[y] = p, () => A(d, Z(c, {
2723
- modelValue: o.value,
2724
- "onUpdate:modelValue": (w) => o.value = w
3047
+ const v = u(o.value.type);
3048
+ return c[v] = i, (c.id == null || c.id === "") && (c.id = n.value), () => m(p, ae(c, {
3049
+ modelValue: a.value,
3050
+ "onUpdate:modelValue": (b) => a.value = b
2725
3051
  }), null);
2726
3052
  });
2727
- return I([() => e.id, () => e.editor, () => e.modelValue], ([d, c, y]) => {
2728
- n.value = d, r.value = c, o.value = y;
2729
- }), () => a.value();
3053
+ return X([() => e.id, () => e.editor, () => e.modelValue], ([p, c, v]) => {
3054
+ n.value = p, o.value = c, a.value = v;
3055
+ }), () => r.value();
3056
+ }
3057
+ }), ua = "https://json-schema.org/draft/2020-12/schema", ca = "https://farris-design.gitee.io/grid-field-editor.schema.json", da = "response-form-layout-setting", pa = "A Farris Data Grid Component", fa = "object", ma = {
3058
+ id: {
3059
+ description: "The unique identifier for a Input Group",
3060
+ type: "string"
3061
+ },
3062
+ type: {
3063
+ description: "The type string of Input Group component",
3064
+ type: "string",
3065
+ default: "response-form-layout-setting"
3066
+ },
3067
+ viewModelId: {
3068
+ description: "",
3069
+ type: "string",
3070
+ default: ""
3071
+ },
3072
+ gridData: {
3073
+ description: "",
3074
+ type: "Object",
3075
+ default: null
3076
+ }
3077
+ }, va = [
3078
+ "id",
3079
+ "type"
3080
+ ], ga = {
3081
+ $schema: ua,
3082
+ $id: ca,
3083
+ title: da,
3084
+ description: pa,
3085
+ type: fa,
3086
+ properties: ma,
3087
+ required: va
3088
+ }, tt = {
3089
+ initialState: {
3090
+ type: Object,
3091
+ default: {
3092
+ uniqueColClassInSM: 12,
3093
+ uniqueColClassInMD: 6,
3094
+ uniqueColClassInLG: 3,
3095
+ uniqueColClassInEL: 2
3096
+ }
3097
+ }
3098
+ }, ya = Rn(tt, ga, Gn, Jn), ha = {
3099
+ width: { Type: Number, default: 400 },
3100
+ type: { Type: String, default: "info" },
3101
+ title: { Type: String, default: "" },
3102
+ detail: { Type: String, default: "" },
3103
+ okButtonText: { Type: String, default: "确定" },
3104
+ cancelButtonText: { Type: String, default: "取消" },
3105
+ exceptionInfo: { Type: Object, default: null },
3106
+ promptEditorType: { Type: String, default: "text-area" }
3107
+ };
3108
+ function Le() {
3109
+ return new DOMException("The request is not allowed", "NotAllowedError");
3110
+ }
3111
+ async function ba(e) {
3112
+ if (!navigator.clipboard)
3113
+ throw Le();
3114
+ return navigator.clipboard.writeText(e);
3115
+ }
3116
+ async function Ca(e) {
3117
+ const t = document.createElement("span");
3118
+ t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
3119
+ const n = window.getSelection(), o = window.document.createRange();
3120
+ n == null || n.removeAllRanges(), o.selectNode(t), n == null || n.addRange(o);
3121
+ let a = !1;
3122
+ try {
3123
+ a = window.document.execCommand("copy");
3124
+ } finally {
3125
+ n == null || n.removeAllRanges(), window.document.body.removeChild(t);
3126
+ }
3127
+ if (!a) throw Le();
3128
+ }
3129
+ async function wa(e) {
3130
+ try {
3131
+ await ba(e);
3132
+ } catch (t) {
3133
+ try {
3134
+ await Ca(e);
3135
+ } catch (n) {
3136
+ throw n || t || Le();
3137
+ }
3138
+ }
3139
+ }
3140
+ function xa() {
3141
+ async function e(t) {
3142
+ await wa(t);
3143
+ }
3144
+ return { onCopy: e };
3145
+ }
3146
+ function Ta(e, t, n, o) {
3147
+ const a = d(14), s = d(140), l = d(""), u = d(o.value.length), i = x(() => o.value), r = x(() => ({
3148
+ "font-size": `${a.value}px`,
3149
+ height: "100%"
3150
+ }));
3151
+ function p(c) {
3152
+ if (c.currentTarget) {
3153
+ const v = c.currentTarget.value || "";
3154
+ u.value = v.length;
3155
+ }
3156
+ }
3157
+ return () => m(ce, null, [m("textarea", {
3158
+ title: "promptMessage",
3159
+ name: "promptMessage",
3160
+ class: "form-control",
3161
+ style: r.value,
3162
+ rows: "4",
3163
+ maxlength: s.value,
3164
+ onInput: (c) => p(c)
3165
+ }, [i.value]), m("span", {
3166
+ class: "textarea-wordcount",
3167
+ title: l.value,
3168
+ style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
3169
+ }, [u.value + " / " + s.value])]);
3170
+ }
3171
+ function Ba(e, t, n, o) {
3172
+ const a = Ta(e, t, n, o), s = /* @__PURE__ */ new Map([["text-area", a]]);
3173
+ function l(u) {
3174
+ return s.get(u) || null;
3175
+ }
3176
+ return { getEditorRender: l };
3177
+ }
3178
+ function Ma() {
3179
+ const e = d(!1), t = d("复制成功");
3180
+ return {
3181
+ feedbackStyle: x(() => {
3182
+ const o = {
3183
+ position: "absolute",
3184
+ left: "50%",
3185
+ top: "50%",
3186
+ width: "100px",
3187
+ height: "40px",
3188
+ background: "#303C53",
3189
+ "line-height": "40px",
3190
+ "text-align": "center",
3191
+ "margin-left": "-30px",
3192
+ "margin-top": "-50px",
3193
+ "border-radius": "10px",
3194
+ "box-shadow": "0px 2px 8px 0px",
3195
+ color: "#fff",
3196
+ transition: "all .3s ease"
3197
+ };
3198
+ return o.opacity = e.value ? "0.8" : "0", o.display = e.value ? "" : "none", o;
3199
+ }),
3200
+ feedbackMessage: t,
3201
+ toShowFeedback: e
3202
+ };
3203
+ }
3204
+ function Fa(e, t) {
3205
+ const n = t.getEditorRender(e.promptEditorType);
3206
+ return () => n && n();
3207
+ }
3208
+ function ka(e) {
3209
+ const t = d(3), n = d(480), o = x(() => !!e.value && !!e.value.date), a = x(() => `发生时间 : ${e.value && e.value.date || ""}`), s = x(() => !!e.value && !!e.value.detail), l = x(() => {
3210
+ const y = `${n.value}px`;
3211
+ return {
3212
+ overflow: "hidden",
3213
+ "text-overflow": "ellipsis",
3214
+ display: "-webkit-box",
3215
+ "-webkit-box-orient": "vertical",
3216
+ "-webkit-line-clamp": t.value,
3217
+ "max-height": y
3218
+ };
3219
+ }), u = x(() => e.value && e.value.detail || ""), i = x(() => !0), r = d(!1), p = d("展开"), c = d("收起"), v = x(() => {
3220
+ const y = {
3221
+ display: "block",
3222
+ color: "#2A87FF"
3223
+ };
3224
+ return y["text-align"] = r.value ? "" : "right", y;
3225
+ });
3226
+ function b(y, C) {
3227
+ r.value = !r.value, t.value = r.value ? 20 : 3;
3228
+ }
3229
+ function f(y) {
3230
+ return b();
3231
+ }
3232
+ function g(y) {
3233
+ return b();
3234
+ }
3235
+ return () => m("div", {
3236
+ class: "toast-msg-detail"
3237
+ }, [o.value && m("div", null, [a.value]), s.value && m("div", {
3238
+ id: "exception_error_msg",
3239
+ ref: "exceptionMessageRef",
3240
+ style: l.value
3241
+ }, [_("详细信息 : "), m("span", {
3242
+ innerHTML: u.value
3243
+ }, null)]), i.value && m("span", {
3244
+ style: v.value
3245
+ }, [r.value && m("span", {
3246
+ onClick: f,
3247
+ style: "cursor: pointer;"
3248
+ }, [c.value]), !r.value && m("span", {
3249
+ onClick: g,
3250
+ style: "cursor: pointer;"
3251
+ }, [p.value])])]);
3252
+ }
3253
+ function Ea(e) {
3254
+ return () => m("p", {
3255
+ class: "toast-msg-detail",
3256
+ innerHTML: e.value
3257
+ }, null);
3258
+ }
3259
+ function Sa(e, t, n, o) {
3260
+ const a = d(e.exceptionInfo), s = x(() => {
3261
+ const v = {
3262
+ "f-icon": !0
3263
+ }, b = `f-icon-${t.value}`;
3264
+ return v[b] = !0, v;
3265
+ }), l = x(() => n.value || a.value && a.value.message), u = x(() => o.value), i = x(() => !!o.value), r = x(() => !!a.value);
3266
+ function p() {
3267
+ return r.value ? ka(a) : i.value ? Ea(u) : () => null;
3268
+ }
3269
+ const c = p();
3270
+ return () => m(ce, null, [m("div", {
3271
+ class: "float-left modal-tips-iconwrap"
3272
+ }, [m("span", {
3273
+ class: s.value
3274
+ }, null)]), m("div", {
3275
+ class: "modal-tips-content"
3276
+ }, [m("p", {
3277
+ class: "toast-msg-title",
3278
+ innerHTML: l.value
3279
+ }, null), c()])]);
3280
+ }
3281
+ function Pa(e, t, n) {
3282
+ const {
3283
+ onCopy: o
3284
+ } = t, {
3285
+ toShowFeedback: a
3286
+ } = n, s = d("复制成功"), l = d("复制详细信息"), u = d(e.exceptionInfo || {
3287
+ date: "",
3288
+ message: "",
3289
+ detail: ""
3290
+ }), i = x(() => u.value && u.value.detail || "");
3291
+ function r(p) {
3292
+ o(i.value).catch((c) => {
3293
+ s.value = "复制失败";
3294
+ }).finally(() => {
3295
+ a.value = !0, setTimeout(() => {
3296
+ a.value = !1;
3297
+ }, 700);
3298
+ });
3299
+ }
3300
+ return () => m("span", {
3301
+ style: "width: 100%;color: #2A87FF;padding-left: 37px;"
3302
+ }, [m("span", {
3303
+ onClick: r,
3304
+ style: "cursor: pointer;"
3305
+ }, [l.value])]);
3306
+ }
3307
+ function ja(e, t, n, o) {
3308
+ const a = d(e.type), s = d([]), l = d(e.exceptionInfo), u = d(e.okButtonText), i = d(e.cancelButtonText), r = d(!0), p = d(!0), c = x(() => !!(s.value && s.value.length)), v = x(() => l.value && l.value.date && l.value.message && l.value.detail), b = x(() => !(s.value && s.value.length) && (u.value || i.value)), f = x(() => p.value && u.value), g = x(() => r.value && i.value), y = Pa(e, n, o);
3309
+ function C(F) {
3310
+ a.value === "question" && t.emit("reject"), t.emit("close");
3311
+ }
3312
+ function h(F) {
3313
+ a.value === "question" && t.emit("accept"), t.emit("close");
3314
+ }
3315
+ return () => m("div", {
3316
+ class: "modal-footer"
3317
+ }, [v.value && y(), b.value && g.value && m("button", {
3318
+ type: "button",
3319
+ class: "btn btn-secondary btn-lg",
3320
+ onClick: C
3321
+ }, [i.value]), b.value && f.value && m("button", {
3322
+ type: "button",
3323
+ class: "btn btn-primary btn-lg",
3324
+ onClick: h
3325
+ }, [u.value]), c.value && s.value.length && s.value.map((F) => m("button", {
3326
+ type: "button",
3327
+ onClick: F.handle,
3328
+ class: F.class
3329
+ }, [F.iconClass && m("span", {
3330
+ class: F.iconClass
3331
+ }, null), F.text]))]);
3332
+ }
3333
+ const ge = /* @__PURE__ */ Z({
3334
+ name: "FMessageBox",
3335
+ props: ha,
3336
+ emits: ["accept", "reject", "close"],
3337
+ setup(e, t) {
3338
+ const n = d(e.type), o = d(e.title), a = d(e.detail), s = x(() => {
3339
+ const y = {
3340
+ "modal-tips": !0,
3341
+ "d-flex": !0,
3342
+ "flex-row": !0
3343
+ }, C = `messager-type-${n.value}`;
3344
+ return y[C] = !0, y;
3345
+ }), l = x(() => {
3346
+ const y = {};
3347
+ return n.value === "prompt" ? y.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (y.padding = "0.5rem 1.5rem 1rem 1.5rem"), y;
3348
+ }), u = xa(), i = Ba(e, n, o, a), r = Ma(), {
3349
+ feedbackStyle: p,
3350
+ feedbackMessage: c
3351
+ } = r;
3352
+ function v() {
3353
+ return m("div", {
3354
+ style: p.value
3355
+ }, [c.value]);
3356
+ }
3357
+ function b() {
3358
+ switch (n.value) {
3359
+ case "prompt":
3360
+ return Fa(e, i);
3361
+ default:
3362
+ return Sa(e, n, o, a);
3363
+ }
3364
+ }
3365
+ const f = b(), g = ja(e, t, u, r);
3366
+ return () => m("div", {
3367
+ class: "farris-messager"
3368
+ }, [m("section", {
3369
+ class: s.value,
3370
+ style: l.value
3371
+ }, [f()]), g(), v()]);
3372
+ }
3373
+ }), Ia = {
3374
+ /**
3375
+ * 自定义类
3376
+ */
3377
+ class: { type: String, default: "" },
3378
+ /**
3379
+ * 模态框标题
3380
+ */
3381
+ title: { type: String, default: "" },
3382
+ /**
3383
+ * 模态框宽度
3384
+ */
3385
+ width: { type: Number, default: 500 },
3386
+ /**
3387
+ * 模态框高度
3388
+ */
3389
+ height: { type: Number, default: 320 },
3390
+ /**
3391
+ * 自定义按钮列表
3392
+ */
3393
+ buttons: {
3394
+ type: Array,
3395
+ default: []
3396
+ },
3397
+ /**
3398
+ * 是否展示模态框
3399
+ */
3400
+ modelValue: { type: Boolean, default: !1 },
3401
+ /**
3402
+ * 是否展示头部
3403
+ */
3404
+ showHeader: { type: Boolean, default: !0 },
3405
+ /**
3406
+ * 是否展示默认按钮
3407
+ */
3408
+ showButtons: { type: Boolean, default: !0 },
3409
+ /**
3410
+ * 是否启用自适应样式
3411
+ */
3412
+ fitContent: { type: Boolean, default: !0 },
3413
+ /**
3414
+ * 是否展示右上角按钮
3415
+ */
3416
+ showCloseButton: { type: Boolean, default: !0 },
3417
+ showMaxButton: { type: Boolean, default: !1 },
3418
+ minHeight: { type: Number },
3419
+ maxHeight: { type: Number },
3420
+ minWidth: { type: Number },
3421
+ maxWidth: { type: Number },
3422
+ containment: { type: Object, default: null },
3423
+ reiszeable: { type: Boolean, default: !1 },
3424
+ draggable: { type: Boolean, default: !1 },
3425
+ dragHandle: { type: Object, default: null },
3426
+ closedCallback: { type: Function, default: null },
3427
+ resizeHandle: { type: Function, default: null },
3428
+ render: { type: Function, default: null },
3429
+ acceptCallback: { type: Function, default: null },
3430
+ rejectCallback: { type: Function, default: null },
3431
+ enableEsc: { type: Boolean, default: !0 },
3432
+ enableEnter: { type: Boolean, default: !1 }
3433
+ };
3434
+ class J {
3435
+ constructor(t, n) {
3436
+ this.x = t, this.y = n;
3437
+ }
3438
+ static getTransformInfo(t) {
3439
+ const o = window.getComputedStyle(t).getPropertyValue("transform").replace(/[^-\d,]/g, "").split(",");
3440
+ if (o.length >= 6) {
3441
+ const a = parseInt(o[4], 10), s = parseInt(o[5], 10);
3442
+ return { x: a, y: s };
3443
+ }
3444
+ return { x: 0, y: 0 };
3445
+ }
3446
+ static fromEvent(t, n = null) {
3447
+ if (this.isMouseEvent(t))
3448
+ return new J(t.clientX, t.clientY);
3449
+ if (n === null || t.changedTouches.length === 1)
3450
+ return new J(t.changedTouches[0].clientX, t.changedTouches[0].clientY);
3451
+ for (let o = 0; o < t.changedTouches.length; o++)
3452
+ if (t.changedTouches[o].target === n)
3453
+ return new J(t.changedTouches[o].clientX, t.changedTouches[o].clientY);
3454
+ }
3455
+ static isMouseEvent(t) {
3456
+ return Object.prototype.toString.apply(t).indexOf("MouseEvent") === 8;
3457
+ }
3458
+ static isIPosition(t) {
3459
+ return !!t && "x" in t && "y" in t;
3460
+ }
3461
+ static getCurrent(t) {
3462
+ const n = new J(0, 0);
3463
+ if (window) {
3464
+ const o = window.getComputedStyle(t);
3465
+ if (o) {
3466
+ const a = parseInt(o.getPropertyValue("left"), 10), s = parseInt(o.getPropertyValue("top"), 10);
3467
+ n.x = isNaN(a) ? 0 : a, n.y = isNaN(s) ? 0 : s;
3468
+ }
3469
+ return n;
3470
+ }
3471
+ return null;
3472
+ }
3473
+ static copy(t) {
3474
+ return new J(0, 0).set(t);
3475
+ }
3476
+ get value() {
3477
+ return { x: this.x, y: this.y };
3478
+ }
3479
+ add(t) {
3480
+ return this.x += t.x, this.y += t.y, this;
3481
+ }
3482
+ subtract(t) {
3483
+ return this.x -= t.x, this.y -= t.y, this;
3484
+ }
3485
+ multiply(t) {
3486
+ this.x *= t, this.y *= t;
3487
+ }
3488
+ divide(t) {
3489
+ this.x /= t, this.y /= t;
3490
+ }
3491
+ reset() {
3492
+ return this.x = 0, this.y = 0, this;
3493
+ }
3494
+ set(t) {
3495
+ return this.x = t.x, this.y = t.y, this;
3496
+ }
3497
+ }
3498
+ class ne {
3499
+ constructor(t, n) {
3500
+ this.width = t, this.height = n;
3501
+ }
3502
+ static getCurrent(t) {
3503
+ const n = new ne(0, 0);
3504
+ if (window) {
3505
+ const o = window.getComputedStyle(t);
3506
+ return o && (n.width = parseInt(o.getPropertyValue("width"), 10), n.height = parseInt(o.getPropertyValue("height"), 10)), n;
3507
+ }
3508
+ return null;
3509
+ }
3510
+ static copy(t) {
3511
+ return new ne(0, 0).set(t);
3512
+ }
3513
+ set(t) {
3514
+ return this.width = t.width, this.height = t.height, this;
3515
+ }
3516
+ }
3517
+ function La(e, t) {
3518
+ const n = d(), o = d(), a = d(), s = d(), l = d(), u = d(), i = d(), r = d(), p = d(), c = d(), v = d(), b = d(), f = d(e.draggable), g = d(!1);
3519
+ function y() {
3520
+ const M = o.value || document.body, S = window.getComputedStyle(M);
3521
+ if (!S || !n.value)
3522
+ return;
3523
+ const q = J.getTransformInfo(n.value), $ = {};
3524
+ i.value && ($.deltaL = n.value.offsetLeft - i.value.x, $.deltaT = n.value.offsetTop - i.value.y);
3525
+ const W = S.getPropertyValue("position");
3526
+ $.width = M.clientWidth, $.height = M.clientHeight, $.pr = parseInt(S.getPropertyValue("padding-right"), 10), $.pb = parseInt(S.getPropertyValue("padding-bottom"), 10), $.position = S.getPropertyValue("position"), W === "static" && (M.style.position = "relative"), $.translateX = q.x, $.translateY = q.y, c.value = $;
3527
+ }
3528
+ function C(M) {
3529
+ if (n.value) {
3530
+ s.value = ne.getCurrent(n.value), l.value = J.getCurrent(n.value), u.value = s.value ? ne.copy(s.value) : null, i.value = l.value ? J.copy(l.value) : null, y();
3531
+ const S = M.target.getAttribute("type") || "";
3532
+ r.value = {
3533
+ n: !!S.match(/n/),
3534
+ s: !!S.match(/s/),
3535
+ w: !!S.match(/w/),
3536
+ e: !!S.match(/e/)
3537
+ };
3538
+ }
3539
+ }
3540
+ function h() {
3541
+ var M, S, q, $;
3542
+ if (n.value) {
3543
+ const W = n.value;
3544
+ r.value && ((r.value.n || r.value.s) && ((M = u.value) != null && M.height) && (W.style.height = u.value.height + "px"), (r.value.w || r.value.e) && ((S = u.value) != null && S.width) && (W.style.width = u.value.width + "px"), i.value && ((q = i.value) != null && q.x && (W.style.left = i.value.x + "px"), ($ = i.value) != null && $.y && (W.style.top = i.value.y + "px")));
3545
+ }
3546
+ }
3547
+ function F() {
3548
+ const M = e.minHeight ? e.minHeight : 1, S = e.minWidth ? e.minWidth : 1;
3549
+ u.value && i.value && r.value && s.value && (u.value.height < M && (u.value.height = M, r.value.n && l.value && (i.value.y = l.value.y + (s.value.height - M))), u.value.width < S && (u.value.width = S, r.value.w && l.value && (i.value.x = l.value.x + (s.value.width - S))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, l.value && r.value.n && (i.value.y = l.value.y + (s.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, r.value.w && l.value && (i.value.x = l.value.x + (s.value.width - e.maxWidth))));
3550
+ }
3551
+ function k() {
3552
+ if (o.value) {
3553
+ const M = c.value;
3554
+ if (i.value && u.value && r.value && s.value) {
3555
+ const S = M.width - M.pr - M.deltaL - M.translateX - i.value.x, q = M.height - M.pb - M.deltaT - M.translateY - i.value.y;
3556
+ r.value.n && i.value.y + M.translateY < 0 && l.value && (i.value.y = -M.translateY, u.value.height = s.value.height + l.value.y + M.translateY), r.value.w && i.value.x + M.translateX < 0 && l.value && (i.value.x = -M.translateX, u.value.width = s.value.width + l.value.x + M.translateX), u.value.width > S && (u.value.width = S), u.value.height > q && (u.value.height = q);
3557
+ }
3558
+ }
3559
+ }
3560
+ function R(M) {
3561
+ if (!a.value || !s.value || !l.value || !r.value)
3562
+ return;
3563
+ M.subtract(a.value);
3564
+ const S = M.x, q = M.y;
3565
+ r.value.n ? (i.value.y = l.value.y + q, u.value.height = s.value.height - q) : r.value.s && (u.value.height = s.value.height + q), r.value.e ? u.value.width = s.value.width + S : r.value.w && (u.value.width = s.value.width - S, i.value.x = l.value.x + S), k(), F(), h();
3566
+ }
3567
+ function T(M) {
3568
+ if (!p.value)
3569
+ return;
3570
+ const S = J.fromEvent(M);
3571
+ S && R(S);
3572
+ }
3573
+ function w() {
3574
+ if (n.value) {
3575
+ const {
3576
+ width: M,
3577
+ height: S,
3578
+ x: q,
3579
+ y: $
3580
+ } = n.value.getBoundingClientRect(), W = J.getTransformInfo(n.value);
3581
+ return {
3582
+ size: {
3583
+ width: M,
3584
+ height: S
3585
+ },
3586
+ position: {
3587
+ x: q - W.x,
3588
+ y: $ - W.y
3589
+ }
3590
+ };
3591
+ }
3592
+ return null;
3593
+ }
3594
+ function A(M) {
3595
+ if (n.value) {
3596
+ const S = w();
3597
+ v.value = S;
3598
+ }
3599
+ a.value = void 0, s.value = null, l.value = null, u.value = null, i.value = null, r.value = null, p.value = null, document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", A);
3600
+ }
3601
+ function E() {
3602
+ document.addEventListener("mousemove", T), document.addEventListener("mouseup", A);
3603
+ }
3604
+ function O(M) {
3605
+ M instanceof MouseEvent && M.button === 2 || f.value && (M.stopPropagation(), M.preventDefault(), a.value = J.fromEvent(M), p.value = M.target, C(M), E());
3606
+ }
3607
+ function N(M) {
3608
+ return n.value = M, m(ce, null, [m("div", {
3609
+ class: "fv-resizable-handle fv-resizable-n",
3610
+ type: "n",
3611
+ onMousedown: (S) => O(S)
3612
+ }, null), m("div", {
3613
+ class: "fv-resizable-handle fv-resizable-e",
3614
+ type: "e",
3615
+ onMousedown: (S) => O(S)
3616
+ }, null), m("div", {
3617
+ class: "fv-resizable-handle fv-resizable-s",
3618
+ type: "s",
3619
+ onMousedown: (S) => O(S)
3620
+ }, null), m("div", {
3621
+ class: "fv-resizable-handle fv-resizable-w",
3622
+ type: "w",
3623
+ onMousedown: (S) => O(S)
3624
+ }, null), m("div", {
3625
+ class: "fv-resizable-handle fv-resizable-ne",
3626
+ type: "ne",
3627
+ onMousedown: (S) => O(S)
3628
+ }, null), m("div", {
3629
+ class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
3630
+ type: "se",
3631
+ onMousedown: (S) => O(S)
3632
+ }, null), m("div", {
3633
+ class: "fv-resizable-handle fv-resizable-sw",
3634
+ type: "sw",
3635
+ onMousedown: (S) => O(S)
3636
+ }, null), m("div", {
3637
+ class: "fv-resizable-handle fv-resizable-nw",
3638
+ type: "nw",
3639
+ onMousedown: (S) => O(S)
3640
+ }, null)]);
3641
+ }
3642
+ function U(M = !0) {
3643
+ const S = o.value || document.body, q = ne.getCurrent(S), $ = n.value;
3644
+ M && (b.value = w(), b.value.transform = $.style.transform), q && $ && (u.value = q, $.style.height = u.value.height - 14 + "px", $.style.width = u.value.width - 14 + "px", $.style.left = "7px", $.style.top = "7px", $.style.transform = "", v.value = {
3645
+ size: u.value,
3646
+ position: {
3647
+ x: 0,
3648
+ y: 0
3649
+ }
3650
+ }, f.value = !1, g.value = !0);
3651
+ }
3652
+ function D() {
3653
+ var M, S;
3654
+ if (b.value) {
3655
+ const q = {
3656
+ width: b.value.size.width || 0,
3657
+ height: b.value.size.height || 0
3658
+ }, $ = {
3659
+ x: (window.innerWidth - q.width) / 2,
3660
+ y: (window.innerHeight - q.height) / 2
3661
+ };
3662
+ (M = u.value) == null || M.set(q), (S = i.value) == null || S.set($);
3663
+ const W = n.value;
3664
+ W.style.height = q.height + "px", W.style.width = q.width + "px", W.style.left = `${$.x}px`, W.style.top = `${$.y}px`, W.style.transform = "", v.value = {
3665
+ size: q,
3666
+ position: $
3667
+ }, f.value = e.draggable, g.value = !1;
3668
+ }
3669
+ }
3670
+ function H() {
3671
+ if (n.value) {
3672
+ const M = ne.getCurrent(n.value);
3673
+ if (M) {
3674
+ const {
3675
+ width: S,
3676
+ height: q
3677
+ } = M;
3678
+ n.value.style.left = `${(window.innerWidth - S) / 2}px`, n.value.style.top = `${(window.innerHeight - q) / 2}px`, n.value.style.transform = "";
3679
+ }
3680
+ }
3681
+ }
3682
+ function Y() {
3683
+ const M = () => {
3684
+ g.value ? U(!1) : H();
3685
+ };
3686
+ return window.addEventListener("resize", M), () => {
3687
+ window.removeEventListener("resize", M);
3688
+ };
3689
+ }
3690
+ const Q = Y();
3691
+ return {
3692
+ renderResizeBar: N,
3693
+ boundingElement: o,
3694
+ resizedEventParam: v,
3695
+ maximize: U,
3696
+ restore: D,
3697
+ allowDrag: f,
3698
+ isMaximized: g,
3699
+ unWindowResizeHandle: Q
3700
+ };
3701
+ }
3702
+ function Aa(e, t, n) {
3703
+ const o = d(), a = d(e.draggable), s = d(e.lockAxis), l = d(), u = d(), i = d(!1), r = d(new J(0, 0)), p = d(new J(0, 0)), c = d(new J(0, 0)), v = d(new J(0, 0));
3704
+ X(() => n.value, (w) => {
3705
+ l.value.style.cursor = w ? "move" : "default";
3706
+ });
3707
+ function b(w, A) {
3708
+ if (A.tagName === "BUTTON")
3709
+ return !1;
3710
+ if (A === w)
3711
+ return !0;
3712
+ for (const E in A.children)
3713
+ if (A.children.hasOwnProperty(E) && b(w, A.children[E]))
3714
+ return !0;
3715
+ return !1;
3716
+ }
3717
+ function f() {
3718
+ var O, N;
3719
+ let w = c.value.x + p.value.x, A = c.value.y + p.value.y;
3720
+ s.value === "x" ? (w = ((O = r.value) == null ? void 0 : O.x) || 0, c.value.x = 0) : s.value === "y" && (A = ((N = r.value) == null ? void 0 : N.y) || 0, c.value.y = 0);
3721
+ const E = `translate3d(${Math.round(w)}px, ${Math.round(A)}px, 0px)`;
3722
+ o.value && (o.value.style.transform = E), v.value.x = w, v.value.y = A;
3723
+ }
3724
+ function g() {
3725
+ if (!u.value || !o.value)
3726
+ return null;
3727
+ const w = u.value.getBoundingClientRect(), A = o.value.getBoundingClientRect(), E = {
3728
+ top: w.top < A.top,
3729
+ right: w.right > A.right,
3730
+ bottom: w.bottom > A.bottom,
3731
+ left: w.left < A.left
3732
+ };
3733
+ return E.top || (c.value.y -= A.top - w.top), E.bottom || (c.value.y -= A.bottom - w.bottom), E.right || (c.value.x -= A.right - w.right), E.left || (c.value.x -= A.left - w.left), f(), E;
3734
+ }
3735
+ function y(w) {
3736
+ w && (r.value && w.subtract(r.value), c.value.set(w), f(), g());
3737
+ }
3738
+ function C(w) {
3739
+ i.value && a.value && (w.stopPropagation(), w.preventDefault(), y(J.fromEvent(w, l.value)));
3740
+ }
3741
+ function h() {
3742
+ var w;
3743
+ i.value && (i.value = !1, p.value.add(c.value), c.value.reset(), (w = o.value) == null || w.classList.remove("ng-dragging"), document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", h));
3744
+ }
3745
+ function F() {
3746
+ !i.value && l.value && (i.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", C), document.addEventListener("mouseup", h));
3747
+ }
3748
+ function k() {
3749
+ if (o.value) {
3750
+ const w = J.getTransformInfo(o.value);
3751
+ p.value.set(w);
3752
+ return;
3753
+ }
3754
+ p.value.reset();
3755
+ }
3756
+ function R(w) {
3757
+ if (!n.value || w instanceof MouseEvent && w.button === 2)
3758
+ return;
3759
+ const A = w.target || w.srcElement;
3760
+ l.value !== void 0 && A && !b(A, l.value) || a.value !== !1 && (document.body.click(), w.stopPropagation(), w.preventDefault(), r.value = J.fromEvent(w, o.value), k(), F());
3761
+ }
3762
+ function T(w, A, E) {
3763
+ if (a.value && A) {
3764
+ if (w)
3765
+ l.value = w;
3766
+ else if (e.dragHandle) {
3767
+ if (e.dragHandle instanceof HTMLElement)
3768
+ l.value = e.dragHandle;
3769
+ else if (typeof e.dragHandle == "string") {
3770
+ const O = A.querySelector(e.dragHandle);
3771
+ O && (l.value = O);
3772
+ }
3773
+ }
3774
+ o.value = A, u.value = E, l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", R);
3775
+ }
3776
+ }
3777
+ return {
3778
+ registerDraggle: T,
3779
+ resetTranslate: k
3780
+ };
3781
+ }
3782
+ function nt(e, t) {
3783
+ if (e) {
3784
+ const n = (o) => {
3785
+ o.key.toLowerCase() === e.toLowerCase() && t({ event: o, key: e });
3786
+ };
3787
+ return document.addEventListener("keydown", n), () => {
3788
+ document.removeEventListener("keydown", n);
3789
+ };
3790
+ }
3791
+ }
3792
+ function Da(e, t) {
3793
+ const n = d(e.enableEsc);
3794
+ let o = null;
3795
+ return n.value ? (o = nt("Escape", (a) => {
3796
+ t.emit("esc", { event: a.event, type: "esc" });
3797
+ }), {
3798
+ remove: o
3799
+ }) : null;
3800
+ }
3801
+ function Oa(e, t) {
3802
+ const n = d(e.enableEnter);
3803
+ let o = null;
3804
+ return n.value ? (o = nt("Enter", (a) => {
3805
+ t.emit("enter", { event: a.event, type: "enter" });
3806
+ }), {
3807
+ remove: o
3808
+ }) : null;
3809
+ }
3810
+ const ot = /* @__PURE__ */ Z({
3811
+ name: "FModal",
3812
+ props: Ia,
3813
+ emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
3814
+ setup(e, t) {
3815
+ const n = d(e.width || 300), o = d(e.height || 200), a = d(e.modelValue), s = d(""), l = d(e.class), u = d(e.fitContent), i = d(e.showHeader), r = d(""), p = d(e.showCloseButton), c = d(e.showMaxButton), v = d(!1), b = d(""), f = d(""), g = d(""), y = d(e.showButtons), C = d(e.title), h = d(e.reiszeable), F = d(e.containment || null), k = d();
3816
+ function R(B, z) {
3817
+ a.value = !1, t.emit("update:modelValue", !1), z != null && t.emit(z ? "accept" : "cancel"), t.emit("closed", B);
3818
+ }
3819
+ const T = [{
3820
+ name: "cancel",
3821
+ text: "取消",
3822
+ class: "btn btn-secondary",
3823
+ handle: (B) => {
3824
+ R(B, !1);
3825
+ }
3826
+ }, {
3827
+ name: "accept",
3828
+ text: "确定",
3829
+ class: "btn btn-primary",
3830
+ handle: (B) => {
3831
+ R(B, !0);
3832
+ }
3833
+ }], w = d(e.buttons && e.buttons.length ? e.buttons : T), A = x(() => !!r.value), E = x(() => !!y.value && !!w.value), O = d(), N = d(), U = d(!1), {
3834
+ renderResizeBar: D,
3835
+ maximize: H,
3836
+ restore: Y,
3837
+ boundingElement: Q,
3838
+ resizedEventParam: M,
3839
+ allowDrag: S,
3840
+ unWindowResizeHandle: q
3841
+ } = La(e), {
3842
+ registerDraggle: $
3843
+ } = Aa(e, t, S);
3844
+ X(() => e.title, (B, z) => {
3845
+ B !== z && (C.value = B);
3846
+ }), X(() => e.modelValue, (B, z) => {
3847
+ B !== z && (a.value = B);
3848
+ }), X(() => e.showHeader, (B, z) => {
3849
+ B !== z && (i.value = B);
3850
+ }), X(() => e.showButtons, (B, z) => {
3851
+ B !== z && (y.value = B);
3852
+ }), X(() => M.value, (B, z) => {
3853
+ const le = B || {}, ve = z || {};
3854
+ JSON.stringify(le) !== JSON.stringify(ve) && t.emit("resize", {
3855
+ newSize: B,
3856
+ oldSize: z
3857
+ });
3858
+ });
3859
+ function W() {
3860
+ const B = document.querySelectorAll(".farris-modal").length;
3861
+ (!B || B - 1 <= 0) && document.body.classList.remove("modal-open"), k.value && k.value.classList.remove("show");
3862
+ }
3863
+ const re = x(() => (a.value ? document.body.classList.add("modal-open") : W(), a.value)), fe = x(() => {
3864
+ const B = {
3865
+ modal: !0,
3866
+ "farris-modal": !0,
3867
+ fade: !0
3868
+ };
3869
+ return B["f-modal-fitContent"] = !!u.value, B.show = !!re.value, B;
3870
+ }), se = x(() => {
3871
+ var le;
3872
+ const B = {
3873
+ "modal-dialog": !0
3874
+ }, z = (le = l.value) == null ? void 0 : le.split(" ");
3875
+ return z == null || z.reduce((ve, gt) => (ve[gt] = !0, ve), B), B;
3876
+ }), me = x(() => ({
3877
+ position: "absolute",
3878
+ top: `${(window.innerHeight - o.value) / 2}px`,
3879
+ left: `${(window.innerWidth - n.value) / 2}px`,
3880
+ width: `${n.value}px`,
3881
+ height: u.value ? "auto" : `${o.value}px`
3882
+ })), Ce = x(() => ({
3883
+ "modal-content": !0,
3884
+ "modal-content-has-header": i.value
3885
+ })), rt = x(() => {
3886
+ const B = {
3887
+ display: i.value ? "" : "none"
3888
+ };
3889
+ return B["pointer-events"] = S.value ? "auto" : "none", B;
3890
+ }), st = x(() => ({
3891
+ "f-icon": !0,
3892
+ modal_maximize: !0,
3893
+ modalrevert: U.value
3894
+ })), lt = x(() => ({
3895
+ "modal-body": !0,
3896
+ "f-utils-flex-column": b.value === "iframe"
3897
+ }));
3898
+ function it() {
3899
+ return {};
3900
+ }
3901
+ const ut = x(() => {
3902
+ const B = {
3903
+ textAlgin: g.value
3904
+ }, z = it();
3905
+ return Object.assign(B, z);
3906
+ });
3907
+ function Ae(B) {
3908
+ if (B.stopPropagation(), U.value) {
3909
+ U.value = !1, Y();
3910
+ return;
3911
+ }
3912
+ H(), U.value = !0;
3913
+ }
3914
+ async function ct(B, z) {
3915
+ B.handle && await B.handle(z, B) && t.emit("closed", z);
3916
+ }
3917
+ function dt(B) {
3918
+ B.width && (n.value = B.width), B.height && (o.value = B.height), B.buttons && (w.value = B.buttons), B.title && (C.value = B.title);
3919
+ }
3920
+ let we = null, xe = null;
3921
+ K(() => {
3922
+ N.value && !F.value && (F.value = N.value.parentElement, Q.value = F.value, $(O.value, N.value, Q.value)), re.value && document.body.classList.add("modal-open"), we = Da(e, t), xe = Oa(e, t);
3923
+ }), $e(() => {
3924
+ W(), q && q(), we && we.remove(), xe && xe.remove();
3925
+ }), t.expose({
3926
+ modalElementRef: N,
3927
+ updateModalOptions: dt,
3928
+ close: R,
3929
+ maxDialog: Ae
3930
+ });
3931
+ function pt() {
3932
+ return m("ul", null, [v.value && m("li", {
3933
+ class: "f-btn-icon f-bare"
3934
+ }, [m("span", {
3935
+ class: "f-icon modal_minimize"
3936
+ }, null)]), c.value && m("li", {
3937
+ onClick: Ae,
3938
+ class: "f-btn-icon f-bare",
3939
+ style: "pointer-events: auto;"
3940
+ }, [m("span", {
3941
+ class: st.value
3942
+ }, null)]), p.value && m("li", {
3943
+ class: "f-btn-icon f-bare",
3944
+ onClick: (B) => R(B, !1),
3945
+ style: "pointer-events: auto;"
3946
+ }, [m("span", {
3947
+ class: "f-icon modal_close"
3948
+ }, null)])]);
3949
+ }
3950
+ function ft() {
3951
+ return m("div", {
3952
+ class: "modal-footer",
3953
+ style: ut.value
3954
+ }, [w.value && w.value.map((B) => m("button", {
3955
+ name: B.name,
3956
+ type: "button",
3957
+ class: B.class + (B.iconClass ? " btn-icontext" : ""),
3958
+ onClick: (z) => {
3959
+ ct(B, z);
3960
+ }
3961
+ }, [!!B.iconClass && m("i", {
3962
+ class: B.iconClass
3963
+ }, null), B.text]))]);
3964
+ }
3965
+ function mt() {
3966
+ return m("div", {
3967
+ ref: O,
3968
+ class: "modal-header",
3969
+ style: rt.value
3970
+ }, [m("div", {
3971
+ class: "modal-title"
3972
+ }, [A.value && m("span", {
3973
+ class: r.value,
3974
+ style: "margin-right: 8px"
3975
+ }, null), m("span", {
3976
+ class: "modal-title-label"
3977
+ }, [C.value])]), m("div", {
3978
+ class: "actions"
3979
+ }, [pt()])]);
3980
+ }
3981
+ function vt(B) {
3982
+ B.stopPropagation();
3983
+ }
3984
+ return () => m(wt, {
3985
+ to: "body"
3986
+ }, {
3987
+ default: () => [re.value && m(xt, {
3988
+ name: "fade",
3989
+ appear: !0
3990
+ }, {
3991
+ default: () => {
3992
+ var B, z;
3993
+ return [m("div", {
3994
+ class: fe.value,
3995
+ style: "display: block",
3996
+ ref: k,
3997
+ onClick: vt
3998
+ }, [m("div", {
3999
+ id: s.value,
4000
+ class: se.value,
4001
+ style: me.value,
4002
+ ref: N
4003
+ }, [m("div", {
4004
+ class: Ce.value
4005
+ }, [i.value && mt(), m("div", {
4006
+ class: lt.value
4007
+ }, [(z = (B = t.slots).default) == null ? void 0 : z.call(B), b.value === "iframe" && m("iframe", {
4008
+ title: s.value,
4009
+ class: "f-utils-fill",
4010
+ width: "100%",
4011
+ frameborder: "0",
4012
+ src: f.value
4013
+ }, null)]), E.value && ft()]), !u.value && h.value && N.value && D(N.value)])])];
4014
+ }
4015
+ })]
4016
+ });
4017
+ }
4018
+ });
4019
+ function at(e) {
4020
+ if (e.content && e.content.render)
4021
+ return e.content.render;
4022
+ if (e.render && typeof e.render == "function")
4023
+ return e.render;
4024
+ }
4025
+ function Va(e) {
4026
+ const t = document.createElement("div");
4027
+ t.style.display = "contents";
4028
+ const n = Bt({
4029
+ setup(o, a) {
4030
+ $e(() => {
4031
+ document.body.removeChild(t);
4032
+ });
4033
+ const s = d(), l = d(e.class || ""), u = d(!!e.showButtons), i = d(!!e.showHeader), r = d(e.showCloseButton == null ? !0 : e.showCloseButton), p = d(!0), c = d(e.title || ""), v = e.acceptCallback || (() => {
4034
+ }), b = e.rejectCallback || (() => {
4035
+ }), f = e.closedCallback || ((h) => {
4036
+ }), g = e.resizeHandle || ((h) => {
4037
+ }), y = at(e), C = (h) => {
4038
+ p.value = !1, n.unmount(), f(h);
4039
+ };
4040
+ return K(() => {
4041
+ }), a.expose({
4042
+ modalRef: s
4043
+ }), () => m(ot, {
4044
+ ref: s,
4045
+ class: l.value,
4046
+ modelValue: p.value,
4047
+ "onUpdate:modelValue": (h) => p.value = h,
4048
+ title: c.value,
4049
+ width: e.width,
4050
+ height: e.height,
4051
+ buttons: e.buttons,
4052
+ "show-header": i.value,
4053
+ "show-buttons": u.value,
4054
+ "show-close-button": r.value,
4055
+ "show-max-button": !1,
4056
+ onAccept: v,
4057
+ onCancel: b,
4058
+ fitContent: e.fitContent == null ? !0 : e.fitContent,
4059
+ onClosed: C,
4060
+ onResize: g
4061
+ }, {
4062
+ default: () => [y && y(n)]
4063
+ });
4064
+ }
4065
+ });
4066
+ return document.body.appendChild(t), n.mount(t), n;
4067
+ }
4068
+ class Ra {
4069
+ constructor(t) {
4070
+ G(this, "appContext", null);
4071
+ G(this, "modalRef", d());
4072
+ G(this, "activeModalIndex", d(0));
4073
+ G(this, "modalRefs", {});
4074
+ G(this, "isUseEscCloseModal", d(!1));
4075
+ G(this, "activeModalInstance", x(() => this.modalRefs[this.activeModalIndex.value]));
4076
+ this.appContext = t ? t._context : null;
4077
+ }
4078
+ getCurrentModal() {
4079
+ return this.activeModalInstance.value;
4080
+ }
4081
+ static show(t) {
4082
+ const n = Object.assign({
4083
+ title: "",
4084
+ showButtons: !0,
4085
+ showHeader: !0
4086
+ }, t);
4087
+ return Va(n);
4088
+ }
4089
+ open(t) {
4090
+ const n = document.createDocumentFragment();
4091
+ t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
4092
+ const o = Tt(Object.assign({
4093
+ title: "",
4094
+ showButtons: !0,
4095
+ showHeader: !0
4096
+ }, t)), a = d(!0), s = o.value.acceptCallback || (() => {
4097
+ }), l = o.value.rejectCallback || (() => {
4098
+ }), u = o.value.closedCallback || ((C, h) => {
4099
+ }), i = o.value.resizeHandle || ((C) => {
4100
+ });
4101
+ let r;
4102
+ const p = at(o.value), c = (C) => {
4103
+ var F;
4104
+ a.value = !1;
4105
+ const h = (F = C == null ? void 0 : C.target) == null ? void 0 : F.classList.contains("modal_close");
4106
+ u(C, this.isUseEscCloseModal.value ? "esc" : h ? "icon" : "button");
4107
+ }, v = (C) => {
4108
+ c(C), r && ye(() => {
4109
+ if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Te(null, n), r = null, this.modalRef.value = null, this.modalRefs) {
4110
+ const h = Object.keys(this.modalRefs);
4111
+ h.length > 0 ? this.activeModalIndex.value = Math.max(...h) : this.activeModalIndex.value = 0;
4112
+ }
4113
+ this.isUseEscCloseModal.value = !1;
4114
+ });
4115
+ }, b = (C) => {
4116
+ var h;
4117
+ this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((h = this.activeModalInstance.value) == null || h.close(C == null ? void 0 : C.event));
4118
+ }, f = () => m(ot, ae({
4119
+ ref: this.modalRef,
4120
+ modelValue: a.value,
4121
+ "onUpdate:modelValue": (C) => a.value = C
4122
+ }, o.value, {
4123
+ onAccept: s,
4124
+ onCancel: l,
4125
+ onClosed: v,
4126
+ onResize: i,
4127
+ onEsc: b
4128
+ }), {
4129
+ default: () => [p && p()]
4130
+ });
4131
+ return r = ((C) => {
4132
+ const h = Mt(f, C);
4133
+ return h.appContext = this.appContext, Te(h, n), h;
4134
+ })({
4135
+ ...o.value
4136
+ // 'onUpdate:modelValue': onUpdateModelValue,
4137
+ }), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
4138
+ update: (C) => {
4139
+ o.value = {
4140
+ ...o.value,
4141
+ ...C
4142
+ }, r && Te(Ft(r, {
4143
+ ...o
4144
+ }), n);
4145
+ },
4146
+ destroy: v,
4147
+ modalRef: this.activeModalInstance
4148
+ };
4149
+ }
4150
+ }
4151
+ class ee {
4152
+ static show(t) {
4153
+ let n = new Ra();
4154
+ const o = te({
4155
+ ...t
4156
+ }), a = !1, s = o.type === "error" || o.type === "prompt", l = o.type === "error" ? "错误提示" : o.type === "prompt" && o.title || "", u = o.acceptCallback || (() => {
4157
+ }), i = o.rejectCallback || (() => {
4158
+ });
4159
+ let r = null;
4160
+ const p = () => {
4161
+ r && (r == null || r.destroy(), n = null);
4162
+ };
4163
+ r = n == null ? void 0 : n.open({
4164
+ class: "modal-message modal-message-type-info",
4165
+ title: l,
4166
+ showButtons: a,
4167
+ showHeader: s,
4168
+ width: o.width || 400,
4169
+ fitContent: !0,
4170
+ showMaxButton: !1,
4171
+ render: () => m(ge, ae(o, {
4172
+ onAccept: u,
4173
+ onReject: i,
4174
+ onClose: p
4175
+ }), null)
4176
+ });
4177
+ }
4178
+ static info(t, n) {
4179
+ const o = te({
4180
+ type: "info",
4181
+ title: t,
4182
+ detail: n,
4183
+ okButtonText: "知道了",
4184
+ cancelButtonText: ""
4185
+ });
4186
+ ee.show(o);
4187
+ }
4188
+ static warning(t, n) {
4189
+ const o = te({
4190
+ type: "warning",
4191
+ title: t,
4192
+ detail: n,
4193
+ okButtonText: "知道了",
4194
+ cancelButtonText: ""
4195
+ });
4196
+ ee.show(o);
4197
+ }
4198
+ static success(t, n) {
4199
+ const o = te({
4200
+ type: "success",
4201
+ title: t,
4202
+ detail: n,
4203
+ okButtonText: "关闭",
4204
+ cancelButtonText: ""
4205
+ });
4206
+ ee.show(o);
4207
+ }
4208
+ static error(t, n, o) {
4209
+ const a = te({
4210
+ width: 500,
4211
+ type: "error",
4212
+ okButtonText: "关闭",
4213
+ cancelButtonText: "",
4214
+ exceptionInfo: {
4215
+ date: o,
4216
+ message: t,
4217
+ detail: n
4218
+ }
4219
+ });
4220
+ ee.show(a);
4221
+ }
4222
+ static prompt(t, n) {
4223
+ const o = te({
4224
+ type: "prompt",
4225
+ title: t,
4226
+ detail: n,
4227
+ okButtonText: "确定",
4228
+ cancelButtonText: "取消"
4229
+ });
4230
+ ee.show(o);
4231
+ }
4232
+ static question(t, n, o, a) {
4233
+ const s = te({
4234
+ type: "question",
4235
+ title: t,
4236
+ detail: n,
4237
+ okButtonText: "确定",
4238
+ cancelButtonText: "取消",
4239
+ acceptCallback: o,
4240
+ rejectCallback: a
4241
+ });
4242
+ ee.show(s);
4243
+ }
4244
+ }
4245
+ ge.install = (e) => {
4246
+ e.component(ge.name, ge), e.provide("FMessageBoxService", ee);
4247
+ };
4248
+ const Na = /* @__PURE__ */ Z({
4249
+ name: "FResponseFormLayoutSetting",
4250
+ props: tt,
4251
+ emits: ["change"],
4252
+ setup(e, t) {
4253
+ let n = [1], o = [1, 2], a = [1, 2, 3, 4], s = [1, 2, 3, 4, 6], l = [], u = [], i = [], r = [];
4254
+ const p = d(e.initialState), c = d(0), v = d(0), b = d(0), f = d(0);
4255
+ K(() => {
4256
+ y(), g();
4257
+ });
4258
+ function g() {
4259
+ const h = "自定义", F = 12 / p.value.uniqueColClassInSM;
4260
+ n.includes(F) ? c.value = F : (l.push({
4261
+ value: 0,
4262
+ name: h
4263
+ }), c.value = 0);
4264
+ const k = 12 / p.value.uniqueColClassInMD;
4265
+ o.includes(k) ? v.value = k : (u.push({
4266
+ value: 0,
4267
+ name: h
4268
+ }), v.value = 0);
4269
+ const R = 12 / p.value.uniqueColClassInLG;
4270
+ a.includes(R) ? b.value = R : (i.push({
4271
+ value: 0,
4272
+ name: h
4273
+ }), b.value = 0);
4274
+ const T = 12 / p.value.uniqueColClassInEL;
4275
+ s.includes(T) ? f.value = T : (r.push({
4276
+ value: 0,
4277
+ name: h
4278
+ }), f.value = 0), l = [...l], u = [...u], i = [...i], r = [...r];
4279
+ }
4280
+ function y() {
4281
+ n.forEach((h) => {
4282
+ l.push({
4283
+ value: h,
4284
+ name: h + ""
4285
+ });
4286
+ }), o.forEach((h) => {
4287
+ u.push({
4288
+ value: h,
4289
+ name: h + ""
4290
+ });
4291
+ }), a.forEach((h) => {
4292
+ i.push({
4293
+ value: h,
4294
+ name: h + ""
4295
+ });
4296
+ }), s.forEach((h) => {
4297
+ r.push({
4298
+ value: h,
4299
+ name: h + ""
4300
+ });
4301
+ });
4302
+ }
4303
+ function C() {
4304
+ ee.question("应用统一布局,将重置区域内部所有控件的宽度样式,确定应用?", "", () => {
4305
+ p.value.uniqueColClassInSM = c.value === 0 ? null : 12 / c.value, p.value.uniqueColClassInMD = v.value === 0 ? null : 12 / v.value, p.value.uniqueColClassInLG = b.value === 0 ? null : 12 / b.value, p.value.uniqueColClassInEL = f.value === 0 ? null : 12 / f.value, t.emit("change", p.value);
4306
+ }, () => {
4307
+ });
4308
+ }
4309
+ return () => m("div", null, [m("div", {
4310
+ class: "f-form-layout farris-form farris-form-controls-inline"
4311
+ }, [m("div", {
4312
+ class: "form-group farris-form-group screenGroup"
4313
+ }, [m("span", {
4314
+ class: "screenName"
4315
+ }, [_(" 小屏幕 ")]), m("div", {
4316
+ class: "d-flex ml-2 screen-input"
4317
+ }, [m(ie, {
4318
+ data: l,
4319
+ idField: "value",
4320
+ valueField: "value",
4321
+ modelValue: c.value,
4322
+ "onUpdate:modelValue": (h) => c.value = h
4323
+ }, null), m("span", {
4324
+ class: "ml-2 columnText"
4325
+ }, [_("列")])])]), m("div", {
4326
+ class: "form-group farris-form-group screenGroup"
4327
+ }, [m("span", {
4328
+ class: "screenName"
4329
+ }, [_("中等屏幕")]), m("div", {
4330
+ class: "d-flex ml-2 screen-input"
4331
+ }, [m(ie, {
4332
+ data: u,
4333
+ idField: "value",
4334
+ valueField: "value",
4335
+ modelValue: v.value,
4336
+ "onUpdate:modelValue": (h) => v.value = h
4337
+ }, null), m("span", {
4338
+ class: "ml-2 columnText"
4339
+ }, [_("列")])])]), m("div", {
4340
+ class: "form-group farris-form-group screenGroup"
4341
+ }, [m("span", {
4342
+ class: "screenName"
4343
+ }, [_("大屏幕")]), m("div", {
4344
+ class: "d-flex ml-2 screen-input"
4345
+ }, [m(ie, {
4346
+ data: i,
4347
+ idField: "value",
4348
+ valueField: "value",
4349
+ modelValue: b.value,
4350
+ "onUpdate:modelValue": (h) => b.value = h
4351
+ }, null), m("span", {
4352
+ class: "ml-2 columnText"
4353
+ }, [_("列")])])]), m("div", {
4354
+ class: "form-group farris-form-group screenGroup"
4355
+ }, [m("span", {
4356
+ class: "screenName"
4357
+ }, [_("极大屏幕")]), m("div", {
4358
+ class: "d-flex ml-2 screen-input"
4359
+ }, [m(ie, {
4360
+ data: r,
4361
+ idField: "value",
4362
+ valueField: "value",
4363
+ modelValue: f.value,
4364
+ "onUpdate:modelValue": (h) => f.value = h
4365
+ }, null), m("span", {
4366
+ class: "ml-2 columnText"
4367
+ }, [_("列")])])])]), m("div", {
4368
+ class: "applyBtn"
4369
+ }, [m("button", {
4370
+ class: "btn f-rt-btn btn-primary",
4371
+ type: "button",
4372
+ onClick: () => C()
4373
+ }, [_("应用")])])]);
2730
4374
  }
2731
- }), Er = {
4375
+ }), es = {
2732
4376
  install(e) {
2733
- e.component(ee.name, ee).component(ne.name, ne);
4377
+ e.component(Be.name, Be).component(Fe.name, Fe);
2734
4378
  },
2735
- register(e, t, n, r) {
2736
- e["form-group"] = ne, t["form-group"] = fe, e["response-form"] = ee, t["response-form"] = de, e["form-input"] = wo, t["form-input"] = Co, r["form-group"] = { editorResolver: kn };
4379
+ register(e, t, n, o) {
4380
+ e["form-group"] = Fe, t["form-group"] = Re, e["response-form"] = Be, t["response-form"] = Ve, e["form-input"] = ia, t["form-input"] = la, o["form-group"] = { editorResolver: po }, e["response-form-layout-setting"] = Na, t["response-form-layout-setting"] = ya;
2737
4381
  },
2738
4382
  registerDesigner(e, t, n) {
2739
- e["form-group"] = vo, t["form-group"] = fe, e["response-form"] = Nn, t["response-form"] = de;
4383
+ e["form-group"] = sa, t["form-group"] = Re, e["response-form"] = Mo, t["response-form"] = Ve;
2740
4384
  }
2741
4385
  };
2742
4386
  export {
2743
- ne as FDynamicFormGroup,
2744
- ee as FResponseForm,
2745
- Er as default,
2746
- J as dynamicFormGroupProps,
2747
- kn as editorResolver,
2748
- fe as formGroupPropsResolver,
2749
- de as formPropsResolver,
2750
- ve as responseFormProps,
2751
- $n as useDesignerRules
4387
+ Fe as FDynamicFormGroup,
4388
+ ia as FDynamicFormInput,
4389
+ Be as FResponseForm,
4390
+ es as default,
4391
+ pe as dynamicFormGroupProps,
4392
+ po as editorResolver,
4393
+ Re as formGroupPropsResolver,
4394
+ Ve as formPropsResolver,
4395
+ We as responseFormProps,
4396
+ Bo as useDesignerRules
2752
4397
  };