@farris/ui-vue 1.3.0 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +454 -398
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +479 -476
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +255 -252
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +652 -567
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +518 -521
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +659 -553
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +162 -155
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +866 -747
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +371 -998
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1174 -1280
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +340 -991
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +6066 -5847
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3400 -3486
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2328 -2446
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9551 -1200
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +234 -231
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1996 -2630
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +138 -123
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +311 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +548 -586
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2871 -3736
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3380 -3645
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10543 -3207
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +9775 -1312
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +442 -438
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +587 -807
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +415 -381
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +361 -1024
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2265 -2371
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6425 -6257
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +6164 -5946
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +524 -1474
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +547 -502
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +646 -574
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1181 -2028
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1185 -2027
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +442 -1368
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +238 -235
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1635 -1713
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +791 -716
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12203 -5274
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1873 -520
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +299 -300
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +176 -173
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +715 -659
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +1032 -1883
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4767 -5693
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +169 -161
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +490 -1167
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +154 -151
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +575 -1204
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/splitter/style.js +2 -0
  136. package/components/step/index.esm.js +279 -276
  137. package/components/step/index.umd.cjs +1 -1
  138. package/components/switch/index.esm.js +478 -428
  139. package/components/switch/index.umd.cjs +1 -1
  140. package/components/tabs/index.esm.js +2591 -3326
  141. package/components/tabs/index.umd.cjs +1 -1
  142. package/components/tags/index.esm.js +442 -439
  143. package/components/tags/index.umd.cjs +1 -1
  144. package/components/text/index.esm.js +309 -307
  145. package/components/text/index.umd.cjs +1 -1
  146. package/components/textarea/index.esm.js +500 -430
  147. package/components/textarea/index.umd.cjs +1 -1
  148. package/components/time-picker/index.esm.js +1391 -1341
  149. package/components/time-picker/index.umd.cjs +1 -1
  150. package/components/transfer/index.esm.js +574 -575
  151. package/components/transfer/index.umd.cjs +1 -1
  152. package/components/tree-grid/index.esm.js +3422 -3536
  153. package/components/tree-grid/index.umd.cjs +1 -1
  154. package/components/tree-view/index.esm.js +2661 -2764
  155. package/components/tree-view/index.umd.cjs +1 -1
  156. package/components/uploader/index.esm.js +675 -674
  157. package/components/uploader/index.umd.cjs +2 -2
  158. package/components/verify-detail/index.esm.js +300 -297
  159. package/components/verify-detail/index.umd.cjs +1 -1
  160. package/components/video/index.esm.js +454 -1089
  161. package/components/video/index.umd.cjs +1 -1
  162. package/components/weather/index.esm.js +709 -706
  163. package/components/weather/index.umd.cjs +5 -5
  164. package/farris.all.esm.js +54780 -52757
  165. package/farris.all.umd.cjs +14 -9
  166. package/index.css +1 -1
  167. package/package.json +1 -1
  168. package/types/binding-selector/index.d.ts +55 -0
  169. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  170. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  171. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  172. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  173. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  174. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  175. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  176. package/types/common/directive/area-response.d.ts +10 -0
  177. package/types/common/entity/entity-schema.d.ts +26 -11
  178. package/types/common/index.d.ts +9 -0
  179. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  180. package/types/common/types.d.ts +2 -2
  181. package/types/common/utils/resolve-field.d.ts +2 -0
  182. package/types/common/utils/use-class.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  184. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  185. package/types/condition/src/types.d.ts +5 -4
  186. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  187. package/types/data-grid/index.d.ts +8 -5
  188. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  189. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  190. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  191. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  192. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  193. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  194. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  196. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  197. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  198. package/types/data-view/composition/types.d.ts +9 -11
  199. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  200. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  201. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  202. package/types/designer-canvas/index.d.ts +3 -1
  203. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  204. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  205. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  206. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  207. package/types/designer-canvas/src/composition/types.d.ts +49 -41
  208. package/types/designer-canvas/src/types.d.ts +10 -21
  209. package/types/dynamic-form/index.d.ts +1 -1
  210. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  211. package/types/dynamic-form/src/designer/response-form-use-designer-rules.d.ts +3 -0
  212. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  213. package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +1 -1
  214. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  215. package/types/dynamic-form/src/types.d.ts +1 -1
  216. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +6 -1
  217. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  218. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  219. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  220. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  221. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  222. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  223. package/types/event-parameter/index.d.ts +31 -0
  224. package/types/event-parameter/src/composition/type.d.ts +77 -0
  225. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  226. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  227. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  228. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  229. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  230. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  231. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  232. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  233. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  234. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  235. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  236. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  237. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  238. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  239. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  240. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  241. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  242. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  243. package/types/modal/src/composition/modal.service.d.ts +2 -1
  244. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  245. package/types/page-header/src/page-header.component.d.ts +1 -1
  246. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  247. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  248. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  249. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  250. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  251. package/types/property-panel/index.d.ts +3 -1
  252. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  253. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  254. package/types/property-panel/src/composition/type.d.ts +0 -13
  255. package/types/query-solution/src/composition/types.d.ts +35 -4
  256. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  257. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  258. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  259. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +43 -35
  260. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  262. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  264. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +12 -0
  266. package/types/query-solution/src/query-solution.d.ts +10 -2
  267. package/types/query-solution/src/solutions.d.ts +108 -509
  268. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  269. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  270. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  271. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  272. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  273. package/types/response-layout-editor/index.d.ts +3 -1
  274. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  275. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  276. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  277. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  278. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  279. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  280. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  281. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  282. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  283. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  284. package/types/tabs/src/composition/types.d.ts +4 -1
  285. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  286. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  287. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  288. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  289. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  290. package/types/text/src/composition/types.d.ts +4 -4
  291. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  292. package/types/tree-grid/index.d.ts +3 -3
  293. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  294. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  295. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  296. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  297. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  298. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  299. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  300. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +0 -3
  301. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  302. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  303. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  304. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  305. package/types/weather/src/composition/types.d.ts +0 -2
@@ -1,8 +1,8 @@
1
1
  var Ze = Object.defineProperty;
2
2
  var _e = (e, t, n) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Q = (e, t, n) => _e(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as q, ref as l, watch as A, computed as T, onMounted as J, createVNode as i, nextTick as fe, toRefs as Ke, onBeforeMount as pe, createTextVNode as G, Fragment as ue, withModifiers as le, inject as Ce, provide as et, onUnmounted as Me, Teleport as tt, Transition as nt, shallowRef as at, createApp as lt, render as ce, h as ot, cloneVNode as it, mergeProps as Ie, reactive as Z } from "vue";
5
- import { isPlainObject as we, cloneDeep as U } from "lodash-es";
3
+ var N = (e, t, n) => _e(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as U, ref as l, watch as A, computed as R, onMounted as Q, createVNode as i, nextTick as fe, toRefs as Ke, onBeforeMount as ve, createTextVNode as q, Fragment as ue, withModifiers as le, inject as Se, provide as et, onUnmounted as Ce, Teleport as tt, Transition as nt, shallowRef as at, createApp as lt, render as ce, h as ot, cloneVNode as it, mergeProps as Me, reactive as Z } from "vue";
5
+ import { isPlainObject as be, cloneDeep as X } from "lodash-es";
6
6
  import ut from "../list-view/index.esm.js";
7
7
  import st from "../button-edit/index.esm.js";
8
8
  const rt = {
@@ -437,23 +437,27 @@ const rt = {
437
437
  type: ht,
438
438
  properties: yt,
439
439
  required: gt
440
- }, xe = {}, Ee = {};
441
- function me(e) {
442
- const { properties: t, title: n, ignore: a } = e, o = a && Array.isArray(a), r = Object.keys(t).reduce((c, d) => ((!o || !a.find((v) => v == d)) && (c[d] = t[d].type === "object" && t[d].properties ? me(t[d]) : U(t[d].default)), c), {});
443
- return (!o || !a.find((c) => c == "id")) && (r.id = `${n}-${Date.now()}`), r;
440
+ }, Ie = {}, xe = {};
441
+ function pe(e) {
442
+ const { properties: t, title: n, ignore: a } = e, o = a && Array.isArray(a), r = Object.keys(t).reduce((c, d) => ((!o || !a.find((v) => v === d)) && (c[d] = t[d].type === "object" && t[d].properties ? pe(t[d]) : X(t[d].default)), c), {});
443
+ if (n && (!o || !a.find((c) => c === "id"))) {
444
+ const c = n.toLowerCase().replace(/-/g, "_");
445
+ r.id = `${c}_${Math.random().toString().slice(2, 6)}`;
446
+ }
447
+ return r;
444
448
  }
445
- function ve(e, t = {}, n) {
446
- const a = xe[e];
449
+ function Ee(e, t = {}, n) {
450
+ const a = Ie[e];
447
451
  if (a) {
448
- let o = me(a);
449
- const r = Ee[e];
450
- return o = r ? r({ getSchemaByType: ve }, o, t, n) : o, o;
452
+ let o = pe(a);
453
+ const r = xe[e];
454
+ return o = r ? r({ getSchemaByType: Ee }, o, t, n) : o, o;
451
455
  }
452
456
  return null;
453
457
  }
454
458
  function wt(e, t) {
455
- const n = me(t);
456
- return Object.keys(e).reduce((a, o) => (a[o] && we(a[o]) && we(e[o]) ? Object.assign(a[o], e[o]) : a[o] = e[o], a), n), n;
459
+ const n = pe(t);
460
+ return Object.keys(n).reduce((a, o) => (a[o] && be(a[o]) && be(e[o] || !e[o]) ? Object.assign(a[o], e[o] || {}) : a[o] = e[o], a), n), n;
457
461
  }
458
462
  function St(e, t) {
459
463
  return Object.keys(e).filter((a) => e[a] != null).reduce((a, o) => {
@@ -479,13 +483,13 @@ function Mt(e = {}) {
479
483
  if (typeof u == "number")
480
484
  return f[s].length === u;
481
485
  if (typeof u == "object") {
482
- const h = Object.keys(u)[0], b = u[h];
486
+ const h = Object.keys(u)[0], w = u[h];
483
487
  if (h === "not")
484
- return Number(f[s].length) !== Number(b);
488
+ return Number(f[s].length) !== Number(w);
485
489
  if (h === "moreThan")
486
- return Number(f[s].length) >= Number(b);
490
+ return Number(f[s].length) >= Number(w);
487
491
  if (h === "lessThan")
488
- return Number(f[s].length) <= Number(b);
492
+ return Number(f[s].length) <= Number(w);
489
493
  }
490
494
  return !1;
491
495
  }
@@ -502,8 +506,8 @@ function Mt(e = {}) {
502
506
  return typeof m == "number" ? [{ target: u, operator: "length", param: null, value: Number(m) }] : typeof m == "boolean" ? [{ target: u, operator: "getProperty", param: s, value: !!m }] : typeof m == "object" ? Object.keys(m).map((f) => {
503
507
  if (f === "length")
504
508
  return { target: u, operator: "length", param: null, value: m[f] };
505
- const h = f, b = m[f];
506
- return { target: u, operator: "getProperty", param: h, value: b };
509
+ const h = f, w = m[f];
510
+ return { target: u, operator: "getProperty", param: h, value: w };
507
511
  }) : [];
508
512
  }
509
513
  function r(s) {
@@ -520,18 +524,18 @@ function Mt(e = {}) {
520
524
  return !1;
521
525
  }
522
526
  function d(s, m) {
523
- return r(s).reduce((h, b) => h && c(b, m), !0);
527
+ return r(s).reduce((h, w) => h && c(w, m), !0);
524
528
  }
525
529
  function v(s, m) {
526
- const u = Object.keys(s), f = u.includes("allOf"), h = u.includes("anyOf"), b = f || h, w = (b ? s[b ? f ? "allOf" : "anyOf" : "allOf"] : [s]).map((L) => d(L, m));
527
- return f ? !w.includes(!1) : w.includes(!0);
530
+ const u = Object.keys(s), f = u.includes("allOf"), h = u.includes("anyOf"), w = f || h, S = (w ? s[w ? f ? "allOf" : "anyOf" : "allOf"] : [s]).map((L) => d(L, m));
531
+ return f ? !S.includes(!1) : S.includes(!0);
528
532
  }
529
533
  return { parseValueSchema: v };
530
534
  }
531
535
  const It = {}, xt = {};
532
536
  Mt();
533
- function K(e, t, n = /* @__PURE__ */ new Map(), a = (c, d, v) => d, o = {}, r = (c) => c) {
534
- return xe[t.title] = t, Ee[t.title] = a, It[t.title] = o, xt[t.title] = r, (c = {}) => {
537
+ function K(e, t, n = /* @__PURE__ */ new Map(), a = (c, d, v, s) => d, o = {}, r = (c) => c) {
538
+ return Ie[t.title] = t, xe[t.title] = a, It[t.title] = o, xt[t.title] = r, (c = {}) => {
535
539
  const d = Ct(c, t, n), v = Object.keys(e).reduce((s, m) => (s[m] = e[m].default, s), {});
536
540
  return Object.assign(v, d);
537
541
  };
@@ -542,10 +546,10 @@ function ee(e, t) {
542
546
  const Et = /* @__PURE__ */ new Map([
543
547
  ["appearance", ee]
544
548
  ]);
545
- function Dt(e, t, n) {
549
+ function Bt(e, t, n) {
546
550
  return t;
547
551
  }
548
- const Bt = "capsule", Tt = "A Farris Component", Lt = "object", Rt = {
552
+ const Dt = "capsule", Tt = "A Farris Component", Lt = "object", Rt = {
549
553
  basic: {
550
554
  description: "Basic Infomation",
551
555
  title: "基本信息",
@@ -568,11 +572,11 @@ const Bt = "capsule", Tt = "A Farris Component", Lt = "object", Rt = {
568
572
  }
569
573
  }
570
574
  }, Ft = {
571
- title: Bt,
575
+ title: Dt,
572
576
  description: Tt,
573
577
  type: Lt,
574
578
  categories: Rt
575
- }, De = {
579
+ }, Be = {
576
580
  items: {
577
581
  Type: Array,
578
582
  default: [
@@ -594,8 +598,8 @@ const Bt = "capsule", Tt = "A Farris Component", Lt = "object", Rt = {
594
598
  show: { type: Boolean, default: !0 },
595
599
  disabled: { type: Boolean, default: !1 }
596
600
  };
597
- K(De, bt, Et, Dt, Ft);
598
- const $t = /* @__PURE__ */ q({
601
+ K(Be, bt, Et, Bt, Ft);
602
+ const Wt = /* @__PURE__ */ U({
599
603
  name: "FCapsuleItem",
600
604
  props: kt,
601
605
  emits: ["mounted", "active"],
@@ -604,12 +608,12 @@ const $t = /* @__PURE__ */ q({
604
608
  A(() => e.isActive, (c) => {
605
609
  a.value = c;
606
610
  });
607
- const o = T(() => ({
611
+ const o = R(() => ({
608
612
  "f-capsule-item": !0,
609
613
  "f-capsule-active-item": a.value,
610
614
  "f-capsule-disabled": e.disabled
611
615
  }));
612
- J(() => {
616
+ Q(() => {
613
617
  t.emit("mounted", n, e.value);
614
618
  });
615
619
  function r(c) {
@@ -626,83 +630,83 @@ const $t = /* @__PURE__ */ q({
626
630
  class: e.icon
627
631
  }, null), e.name]);
628
632
  }
629
- }), Wt = /* @__PURE__ */ q({
633
+ }), $t = /* @__PURE__ */ U({
630
634
  name: "FCapsule",
631
- props: De,
635
+ props: Be,
632
636
  emits: ["change", "update:modelValue"],
633
637
  setup(e, t) {
634
- const n = l(e.items), a = l(), o = 2, r = l(e.modelValue), c = l("none"), d = l(e.type), v = T(() => {
638
+ const n = l(e.items), a = l(), o = 2, r = l(e.modelValue), c = l("none"), d = l(e.type), v = R(() => {
635
639
  const y = {
636
640
  "f-capsule-container": !0
637
641
  };
638
642
  return d.value && (y[d.value] = !0), y;
639
- }), s = T(() => ({})), m = T(() => ({
643
+ }), s = R(() => ({})), m = R(() => ({
640
644
  "f-capsule": !0
641
- })), u = l(o), f = l(0), h = l(0), b = T(() => ({
645
+ })), u = l(o), f = l(0), h = l(0), w = R(() => ({
642
646
  left: `${u.value}px`,
643
647
  width: `${f.value}px`,
644
648
  transition: c.value
645
- })), M = T(() => ({
649
+ })), M = R(() => ({
646
650
  width: `${h.value}px`
647
- })), g = /* @__PURE__ */ new Map();
648
- function w(y) {
651
+ })), b = /* @__PURE__ */ new Map();
652
+ function S(y) {
649
653
  var p;
650
- if (g.has(y.value)) {
651
- const D = (p = g.get(y.value)) == null ? void 0 : p.value;
652
- if (D) {
653
- const O = D.getBoundingClientRect(), N = a.value.getBoundingClientRect();
654
- u.value = O.left - N.left + o + a.value.scrollLeft, f.value = O.width - 2 * o;
654
+ if (b.has(y.value)) {
655
+ const F = (p = b.get(y.value)) == null ? void 0 : p.value;
656
+ if (F) {
657
+ const O = F.getBoundingClientRect(), P = a.value.getBoundingClientRect();
658
+ u.value = O.left - P.left + o + a.value.scrollLeft, f.value = O.width - 2 * o;
655
659
  }
656
660
  }
657
661
  }
658
- function R(y, p) {
659
- const D = y.value;
660
- r.value = D, t.emit("update:modelValue", D), w(y), p && t.emit("change", D);
662
+ function D(y, p) {
663
+ const F = y.value;
664
+ r.value = F, t.emit("update:modelValue", F), S(y), p && t.emit("change", F);
661
665
  }
662
666
  function L(y) {
663
- const p = n.value.findIndex((D) => D.value === y);
664
- p > -1 && R(n.value[p], !1);
667
+ const p = n.value.findIndex((F) => F.value === y);
668
+ p > -1 && D(n.value[p], !1);
665
669
  }
666
670
  A(() => e.modelValue, (y) => {
667
671
  r.value = y, L(r.value);
668
- }), A(() => e.items, async (y) => {
669
- const p = y.filter((D) => D.show);
670
- F(p), n.value = p, await fe(), L(r.value), h.value = Array.from(g.values()).reduce((D, O) => (D += O.value.clientWidth, D), 0);
671
- }), J(async () => {
672
- L(r.value), await fe(), c.value = "0.1s ease-out all", h.value = Array.from(g.values()).reduce((y, p) => (y += p.value.clientWidth, y), 0);
672
+ }), Q(async () => {
673
+ L(r.value), await fe(), c.value = "0.1s ease-out all", h.value = Array.from(b.values()).reduce((y, p) => (y += p.value.clientWidth, y), 0);
673
674
  });
674
675
  function j(y, p) {
675
- R(p, !0);
676
+ D(p, !0);
676
677
  }
677
- function W(y, p) {
678
- g.set(p, y);
678
+ function B(y, p) {
679
+ b.set(p, y);
679
680
  }
680
- function F(y) {
681
- Array.from(g.keys()).forEach((p) => {
682
- y.find((O) => O.value === p) || g.delete(p);
681
+ function $(y) {
682
+ Array.from(b.keys()).forEach((p) => {
683
+ y.find((O) => O.value === p) || b.delete(p);
683
684
  });
684
685
  }
685
- function S(y, p) {
686
- return i($t, {
686
+ function g(y, p) {
687
+ return i(Wt, {
687
688
  name: y.name,
688
689
  value: y.value,
689
690
  isActive: y.value === r.value,
690
691
  index: p,
691
692
  disabled: y.disabled,
692
693
  key: y.value,
693
- onMounted: W,
694
+ onMounted: B,
694
695
  onActive: j
695
696
  }, null);
696
697
  }
697
- return () => i("span", {
698
+ return A(() => e.items, async (y) => {
699
+ const p = y.filter((F) => F.show);
700
+ $(p), n.value = p, await fe(), L(r.value), h.value = Array.from(b.values()).reduce((F, O) => (F += O.value.clientWidth, F), 0);
701
+ }), () => i("span", {
698
702
  ref: a,
699
703
  class: v.value,
700
704
  style: s.value
701
705
  }, [i("span", {
702
706
  class: "f-capsule-pane"
703
- }, [n.value.map((y, p) => S(y, p))]), i("small", {
707
+ }, [n.value.map((y, p) => g(y, p))]), i("small", {
704
708
  class: m.value,
705
- style: b.value
709
+ style: w.value
706
710
  }, null), i("div", {
707
711
  class: "f-capsule-board",
708
712
  style: M.value
@@ -780,7 +784,7 @@ const $t = /* @__PURE__ */ q({
780
784
  size: {
781
785
  description: "",
782
786
  type: "enum",
783
- default: "middle"
787
+ default: "medium"
784
788
  }
785
789
  }, Pt = [
786
790
  "id",
@@ -802,11 +806,15 @@ const $t = /* @__PURE__ */ q({
802
806
  function Ut(e, t, n) {
803
807
  return t;
804
808
  }
805
- const Be = {
809
+ const De = {
806
810
  /** 组件值*/
807
811
  modelValue: { type: Boolean, default: !1 },
808
812
  /** 禁用 */
809
- disabled: { type: Boolean },
813
+ disabled: { type: Boolean, default: !1 },
814
+ /**
815
+ * 同disabled
816
+ */
817
+ readonly: { type: Boolean, default: !1 },
810
818
  onBackground: { type: String },
811
819
  offBackground: { type: String },
812
820
  onColor: { type: String },
@@ -819,10 +827,10 @@ const Be = {
819
827
  onModelValueChanged: { type: Function, default: () => {
820
828
  } }
821
829
  };
822
- K(Be, qt, Ot, Ut);
823
- const Xt = /* @__PURE__ */ q({
830
+ K(De, qt, Ot, Ut);
831
+ const Xt = /* @__PURE__ */ U({
824
832
  name: "FSwitch",
825
- props: Be,
833
+ props: De,
826
834
  emits: ["update:modelValue", "modelValueChanged"],
827
835
  setup(e, t) {
828
836
  const {
@@ -833,50 +841,51 @@ const Xt = /* @__PURE__ */ q({
833
841
  onBackground: c,
834
842
  offBackground: d,
835
843
  onColor: v,
836
- offColor: s
837
- } = Ke(e), m = l(e.modelValue), u = T(() => ({
844
+ offColor: s,
845
+ readonly: m
846
+ } = Ke(e), u = l(e.modelValue), f = R(() => ({
838
847
  switch: !0,
839
848
  "f-cmp-switch": !0,
840
- checked: m.value,
841
- disabled: n.value,
849
+ checked: u.value,
850
+ disabled: m.value || n.value,
842
851
  "switch-large": a.value === "large",
843
852
  "switch-medium": a.value === "medium",
844
853
  "switch-small": a.value === "small"
845
- })), f = T(() => m.value ? {
854
+ })), h = R(() => u.value ? {
846
855
  outline: "none",
847
856
  background: c.value
848
857
  } : {
849
858
  outline: "none",
850
859
  backgroundColor: d.value
851
- }), h = T(() => m.value ? {
860
+ }), w = R(() => u.value ? {
852
861
  background: v.value
853
862
  } : {
854
863
  backgroundColor: s.value
855
- }), b = T(() => (o == null ? void 0 : o.value) || (r == null ? void 0 : r.value));
856
- function M() {
857
- n.value || (m.value = !m.value, t.emit("update:modelValue", m.value));
864
+ }), M = R(() => (o == null ? void 0 : o.value) || (r == null ? void 0 : r.value));
865
+ function b() {
866
+ m.value || n.value || (u.value = !u.value, t.emit("update:modelValue", u.value));
858
867
  }
859
- return A(m, (g, w) => {
860
- g !== w && t.emit("modelValueChanged", g);
861
- }), A(() => e.modelValue, (g, w) => {
862
- g !== w && (m.value = g);
868
+ return A(u, (S, D) => {
869
+ S !== D && t.emit("modelValueChanged", S);
870
+ }), A(() => e.modelValue, (S, D) => {
871
+ S !== D && (u.value = S);
863
872
  }), () => i("span", {
864
873
  tabindex: "0",
865
874
  role: "button",
866
- class: u.value,
867
- style: f.value,
868
- onClick: M
869
- }, [b.value && i("span", {
875
+ class: f.value,
876
+ style: h.value,
877
+ onClick: b
878
+ }, [M.value && i("span", {
870
879
  class: "switch-pane"
871
880
  }, [i("span", {
872
881
  class: "switch-label-checked"
873
882
  }, [o == null ? void 0 : o.value]), i("span", {
874
883
  class: "switch-label-unchecked"
875
884
  }, [r == null ? void 0 : r.value])]), i("small", {
876
- style: h.value
885
+ style: w.value
877
886
  }, [t.slots.default && t.slots.default()])]);
878
887
  }
879
- }), Yt = /* @__PURE__ */ q({
888
+ }), Yt = /* @__PURE__ */ U({
880
889
  name: "FScreenResolutionSelector",
881
890
  props: dt,
882
891
  emits: ["screenNameChanged", "currentScreenResolutionChanged", "switchInStandardModeChanged"],
@@ -911,11 +920,11 @@ const Xt = /* @__PURE__ */ q({
911
920
  t.emit("switchInStandardModeChanged", c.value);
912
921
  }
913
922
  A(c, () => {
914
- }), pe(() => {
923
+ }), ve(() => {
915
924
  a.value.model === "standard" ? c.value = !0 : (c.value = !1, v());
916
925
  });
917
926
  function s() {
918
- return i(Wt, {
927
+ return i($t, {
919
928
  class: "f-layout-editor-screen-resolution-selector-frame",
920
929
  items: n.value,
921
930
  modelValue: o.value,
@@ -929,7 +938,7 @@ const Xt = /* @__PURE__ */ q({
929
938
  class: "f-layout-editor-screen-resolution-selector-header"
930
939
  }, [i("div", {
931
940
  class: "f-layout-editor-screen-resolution-selector-form"
932
- }, [G("表单布局配置")])]), s(), i("div", {
941
+ }, [q("表单布局配置")])]), s(), i("div", {
933
942
  class: "f-layout-editor-screen-resolution-selector-switch"
934
943
  }, [i(Xt, {
935
944
  class: "f-layout-editor-show-switch",
@@ -938,9 +947,9 @@ const Xt = /* @__PURE__ */ q({
938
947
  onModelValueChanged: v
939
948
  }, null), c.value ? i("div", {
940
949
  class: "f-layout-editor-show-switch-label"
941
- }, [G("标准模式")]) : i("div", {
950
+ }, [q("标准模式")]) : i("div", {
942
951
  class: "f-layout-editor-show-switch-label"
943
- }, [G("自定义模式")])])]);
952
+ }, [q("自定义模式")])])]);
944
953
  }
945
954
  }), Jt = {
946
955
  /** 默认屏幕分辨率对应的英文缩写 */
@@ -958,12 +967,12 @@ const Xt = /* @__PURE__ */ q({
958
967
  currentScreenResolution: { type: String, default: "" },
959
968
  /** 接受switch状态,若为自定义模式,则需要改变Col-num的num来源;*/
960
969
  switchInStandardMode: { type: Boolean, default: !1 }
961
- }, Zt = /* @__PURE__ */ q({
970
+ }, Zt = /* @__PURE__ */ U({
962
971
  name: "FColumnWidthView",
963
972
  props: Qt,
964
973
  emits: [],
965
974
  setup(e, t) {
966
- const n = l(e.item), a = l(e.currentScreenResolution), o = T(() => `col-${n.value[`columnIn${a.value}`]}`);
975
+ const n = l(e.item), a = l(e.currentScreenResolution), o = R(() => `col-${n.value[`columnIn${a.value}`]}`);
967
976
  return A([() => e.item, () => e.currentScreenResolution], ([r, c], [d, v]) => {
968
977
  r !== d && (n.value = r), c !== v && (a.value = c);
969
978
  }), () => i("div", {
@@ -975,37 +984,38 @@ const Xt = /* @__PURE__ */ q({
975
984
  class: "f-layout-editor-column-width-view-label"
976
985
  }, [n.value.label])])]);
977
986
  }
978
- }), _t = /* @__PURE__ */ q({
987
+ }), _t = /* @__PURE__ */ U({
979
988
  name: "FPreview",
980
989
  props: Jt,
981
990
  emits: ["update:twoDimensionalArray"],
982
991
  setup(e, t) {
983
992
  const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.currentArea), r = l(e.twoDimensionalArray), c = l([]);
984
- A([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([u, f, h], [b, M, g]) => {
985
- u !== b && (o.value = u), f !== M && (a.value = f), h !== g && (n.value = h);
986
- }), A(() => e.twoDimensionalArray, () => {
987
- r.value = e.twoDimensionalArray, d();
988
- }), J(() => {
989
- d();
993
+ A([() => e.currentArea, () => e.switchInStandardMode, () => e.currentScreenResolution], ([u, f, h], [w, M, b]) => {
994
+ u !== w && (o.value = u), f !== M && (a.value = f), h !== b && (n.value = h);
990
995
  });
991
- function d() {
992
- c.value = U(r.value), c.value = v();
996
+ function d(u, f) {
997
+ const h = [];
998
+ let w = [];
999
+ return u.forEach((M) => {
1000
+ f !== M.componentRow && (f += 1, h.push(w), w = []), w.push(M);
1001
+ }), h.push(w), h;
993
1002
  }
994
1003
  function v() {
995
1004
  const u = [];
996
1005
  let f = 1;
997
1006
  return c.value.forEach((h) => {
998
- const b = s(h, f);
999
- f += b.length, u.push(b);
1007
+ const w = d(h, f);
1008
+ f += w.length, u.push(w);
1000
1009
  }), u;
1001
1010
  }
1002
- function s(u, f) {
1003
- const h = [];
1004
- let b = [];
1005
- return u.forEach((M) => {
1006
- f !== M.componentRow && (f += 1, h.push(b), b = []), b.push(M);
1007
- }), h.push(b), h;
1011
+ function s() {
1012
+ c.value = X(r.value), c.value = v();
1008
1013
  }
1014
+ A(() => e.twoDimensionalArray, () => {
1015
+ r.value = e.twoDimensionalArray, s();
1016
+ }), Q(() => {
1017
+ s();
1018
+ });
1009
1019
  function m() {
1010
1020
  if (a.value)
1011
1021
  return "";
@@ -1015,7 +1025,7 @@ const Xt = /* @__PURE__ */ q({
1015
1025
  class: "col-1"
1016
1026
  }, [i("div", {
1017
1027
  class: "f-layout-editor-preview-customize-single-background"
1018
- }, [G(" ")])]));
1028
+ }, [q(" ")])]));
1019
1029
  return i("div", {
1020
1030
  class: "f-layout-editor-preview-customize-whole-background"
1021
1031
  }, [u]);
@@ -1024,17 +1034,17 @@ const Xt = /* @__PURE__ */ q({
1024
1034
  class: "f-layout-editor-preview f-utils-fill-flex-column"
1025
1035
  }, [i("div", {
1026
1036
  class: "f-layout-editor-preview-header"
1027
- }, [G("预览区")]), m(), i("div", {
1037
+ }, [q("预览区")]), m(), i("div", {
1028
1038
  class: "f-layout-editor-preview-view f-utils-overflow-xhya"
1029
1039
  }, [i("div", {
1030
1040
  class: "f-layout-editor-preview-row-group"
1031
1041
  }, [c.value.map((u) => {
1032
1042
  var f, h;
1033
- return ((f = u[0][0]) == null ? void 0 : f.group.toString()) === ((h = o.value[0]) == null ? void 0 : h.id) && u.map((b) => i("div", {
1043
+ return ((f = u[0][0]) == null ? void 0 : f.group.toString()) === ((h = o.value[0]) == null ? void 0 : h.id) && u.map((w) => i("div", {
1034
1044
  class: "f-layout-editor-row"
1035
- }, [b.map((M) => i(Zt, {
1045
+ }, [w.map((M) => i(Zt, {
1036
1046
  item: M,
1037
- "onUpdate:item": (g) => M = g,
1047
+ "onUpdate:item": (b) => M = b,
1038
1048
  currentScreenResolution: n.value,
1039
1049
  switchInStandardMode: a.value
1040
1050
  }, null))]));
@@ -1062,8 +1072,8 @@ function en(e, t) {
1062
1072
  const n = l(-1), a = l(!1);
1063
1073
  function o(u) {
1064
1074
  if (u.target.offsetParent) {
1065
- const f = u.target.offsetParent, h = f.offsetWidth - u.target.offsetWidth / 2 - 4, b = f.offsetHeight / 2;
1066
- u.dataTransfer && u.dataTransfer.setDragImage(f, h, b);
1075
+ const f = u.target.offsetParent, h = f.offsetWidth - u.target.offsetWidth / 2 - 4, w = f.offsetHeight / 2;
1076
+ u.dataTransfer && u.dataTransfer.setDragImage(f, h, w);
1067
1077
  }
1068
1078
  }
1069
1079
  function r(u) {
@@ -1080,8 +1090,8 @@ function en(e, t) {
1080
1090
  function d(u) {
1081
1091
  const f = e.value.findIndex((h) => h.label === u.label);
1082
1092
  if (n.value !== f) {
1083
- const h = e.value[n.value], b = e.value;
1084
- b.splice(n.value, 1), b.splice(f, 0, h), n.value = f, t && t();
1093
+ const h = e.value[n.value], w = e.value;
1094
+ w.splice(n.value, 1), w.splice(f, 0, h), n.value = f, t && t();
1085
1095
  }
1086
1096
  }
1087
1097
  function v(u, f) {
@@ -1136,6 +1146,11 @@ const tn = /* @__PURE__ */ new Map([
1136
1146
  type: "boolean",
1137
1147
  default: !1
1138
1148
  },
1149
+ enableClear: {
1150
+ description: "",
1151
+ type: "boolean",
1152
+ default: !0
1153
+ },
1139
1154
  editable: {
1140
1155
  description: "",
1141
1156
  type: "boolean",
@@ -1160,6 +1175,11 @@ const tn = /* @__PURE__ */ new Map([
1160
1175
  type: "string",
1161
1176
  default: ""
1162
1177
  },
1178
+ idField: {
1179
+ description: "",
1180
+ type: "string",
1181
+ default: "id"
1182
+ },
1163
1183
  valueField: {
1164
1184
  description: "",
1165
1185
  type: "string",
@@ -1225,7 +1245,8 @@ const tn = /* @__PURE__ */ new Map([
1225
1245
  ], cn = [
1226
1246
  "id",
1227
1247
  "appearance",
1228
- "binding"
1248
+ "binding",
1249
+ "visible"
1229
1250
  ], dn = {
1230
1251
  $schema: nn,
1231
1252
  $id: an,
@@ -1400,7 +1421,7 @@ const Te = {
1400
1421
  */
1401
1422
  beforeOpen: { type: Function, default: null },
1402
1423
  searchOption: {
1403
- type: Object,
1424
+ type: [Boolean, Function],
1404
1425
  default: !1
1405
1426
  },
1406
1427
  // 搜索启用高亮
@@ -1423,17 +1444,17 @@ const vn = {
1423
1444
  onSelectionChange: { type: Function, default: () => {
1424
1445
  } },
1425
1446
  searchOption: {
1426
- type: Object,
1447
+ type: [Boolean, Function],
1427
1448
  default: !1
1428
1449
  },
1429
1450
  // 搜索启用高亮
1430
1451
  enableHighlightSearch: { type: Boolean, default: !0 }
1431
- }, pn = /* @__PURE__ */ q({
1452
+ }, pn = /* @__PURE__ */ U({
1432
1453
  name: "FComboListContainer",
1433
1454
  props: vn,
1434
1455
  emits: ["selectionChange"],
1435
1456
  setup(e, t) {
1436
- const n = l(), a = l(e.dataSource), o = l([]), r = l(e.separator), c = l(e.width), d = l(e.maxHeight), v = l(String(e.selectedValues).split(r.value)), s = T(() => e.multiSelect), m = T(() => ({
1457
+ const n = l(), a = l(e.dataSource), o = l([]), r = l(e.separator), c = l(e.width), d = l(e.maxHeight), v = l(String(e.selectedValues).split(r.value)), s = R(() => e.multiSelect), m = R(() => ({
1437
1458
  enableSelectRow: !0,
1438
1459
  multiSelect: e.multiSelect,
1439
1460
  multiSelectMode: "OnCheckAndClick",
@@ -1444,18 +1465,21 @@ const vn = {
1444
1465
  A(e.dataSource, () => {
1445
1466
  a.value = e.dataSource;
1446
1467
  });
1447
- const u = T(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = T(() => {
1468
+ const u = R(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = R(() => {
1448
1469
  const M = {};
1449
1470
  return c.value !== void 0 && (M.width = `${c.value}px`), d.value !== void 0 && d.value > 0 && (M.maxHeight = `${d.value}px`), M;
1450
1471
  });
1451
1472
  function h(M) {
1452
- o.value = M.map((g) => Object.assign({}, g)), v.value = M.map((g) => g[e.idField]), t.emit("selectionChange", o.value);
1473
+ o.value = M.map((b) => Object.assign({}, b)), v.value = M.map((b) => b[e.idField]), t.emit("selectionChange", o.value);
1453
1474
  }
1454
- function b(M) {
1475
+ function w(M) {
1455
1476
  if (e.enableHighlightSearch)
1456
1477
  return;
1457
- let g = [];
1458
- typeof e.searchOption == "function" ? g = a.value.filter((w) => e.searchOption(M, w)) : g = a.value.filter((w) => w[e.valueField].indexOf(M) > -1 || w[e.textField].indexOf(M) > -1), n.value.updateDataSource(g);
1478
+ let b = [];
1479
+ const {
1480
+ searchOption: S
1481
+ } = e;
1482
+ typeof S == "function" ? b = a.value.filter((D) => S(M, D)) : b = a.value.filter((D) => D[e.valueField].indexOf(M) > -1 || D[e.textField].indexOf(M) > -1), n.value.updateDataSource(b);
1459
1483
  }
1460
1484
  return A([() => e.selectedValues], ([M]) => {
1461
1485
  v.value = M.split(r.value);
@@ -1477,17 +1501,17 @@ const vn = {
1477
1501
  enableHighlightSearch: e.enableHighlightSearch,
1478
1502
  selectionValues: v.value,
1479
1503
  onSelectionChange: h,
1480
- onAfterSearch: b
1504
+ onAfterSearch: w
1481
1505
  }, null)]);
1482
1506
  }
1483
1507
  });
1484
1508
  function mn(e) {
1485
1509
  const t = l(""), n = l(e.modelValue), a = l(e.data || []), o = l(e.editable);
1486
1510
  function r(u) {
1487
- const f = String(u).split(e.separator), h = f.map((g) => [g, !0]), b = new Map(h);
1488
- return a.value.filter((g) => b.has(String(g[e.valueField]))).sort((g, w) => {
1489
- const R = f.indexOf(g[e.valueField]), L = f.indexOf(w[e.valueField]);
1490
- return R - L;
1511
+ const f = String(u).split(e.separator), h = f.map((b) => [b, !0]), w = new Map(h);
1512
+ return a.value.filter((b) => w.has(String(b[e.valueField]))).sort((b, S) => {
1513
+ const D = f.indexOf(b[e.valueField]), L = f.indexOf(S[e.valueField]);
1514
+ return D - L;
1491
1515
  });
1492
1516
  }
1493
1517
  function c(u) {
@@ -1495,8 +1519,8 @@ function mn(e) {
1495
1519
  t.value = o.value ? f || u : f;
1496
1520
  }
1497
1521
  function d(u) {
1498
- const f = u.split(e.separator).map((b) => [b, !0]), h = new Map(f);
1499
- return a.value.filter((b) => h.has(b[e.textField]));
1522
+ const f = u.split(e.separator).map((w) => [w, !0]), h = new Map(f);
1523
+ return a.value.filter((w) => h.has(w[e.textField]));
1500
1524
  }
1501
1525
  function v(u) {
1502
1526
  const f = {};
@@ -1508,17 +1532,17 @@ function mn(e) {
1508
1532
  return o.value && !h && (f = v(u)), f;
1509
1533
  }
1510
1534
  function m() {
1511
- const { url: u, method: f = "GET", headers: h = {}, body: b = null } = e.remote, M = f.toLowerCase() == "get" ? { method: f, headers: h } : { method: f, headers: h, body: b };
1512
- let g = !1;
1513
- fetch(u, M).then((w) => {
1535
+ const { url: u, method: f = "GET", headers: h = {}, body: w = null } = e.remote, M = f.toLowerCase() === "get" ? { method: f, headers: h } : { method: f, headers: h, body: w };
1536
+ let b = !1;
1537
+ fetch(u, M).then((S) => {
1514
1538
  var L, j;
1515
- if (w.status === 200)
1516
- return g = !!((j = (L = w.headers) == null ? void 0 : L.get("content-type")) != null && j.includes("application/json")), g ? w.text() : w.json();
1517
- throw new Error(w.statusText);
1518
- }).then((w) => {
1519
- a.value = g ? JSON.parse(w) : w;
1520
- }).catch((w) => {
1521
- console.error(w);
1539
+ if (S.status === 200)
1540
+ return b = !!((j = (L = S.headers) == null ? void 0 : L.get("content-type")) != null && j.includes("application/json")), b ? S.text() : S.json();
1541
+ throw new Error(S.statusText);
1542
+ }).then((S) => {
1543
+ a.value = b ? JSON.parse(S) : S;
1544
+ }).catch((S) => {
1545
+ console.error(S);
1522
1546
  });
1523
1547
  }
1524
1548
  return e.remote && m(), A(() => e.data, () => {
@@ -1532,7 +1556,7 @@ function mn(e) {
1532
1556
  n.value = u, c(u);
1533
1557
  }), c(e.modelValue), { dataSource: a, displayText: t, editable: o, modelValue: n, getItemsByDisplayText: d, getItemsByValue: r, getSelectedItemsByDisplayText: s };
1534
1558
  }
1535
- const hn = /* @__PURE__ */ q({
1559
+ const hn = /* @__PURE__ */ U({
1536
1560
  name: "FComboList",
1537
1561
  props: Te,
1538
1562
  emits: ["clear", "update:modelValue", "change", "input"],
@@ -1543,33 +1567,33 @@ const hn = /* @__PURE__ */ q({
1543
1567
  editable: s,
1544
1568
  modelValue: m,
1545
1569
  getSelectedItemsByDisplayText: u
1546
- } = mn(e), f = T(() => e.multiSelect), h = T(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1547
- function b() {
1570
+ } = mn(e), f = R(() => e.multiSelect), h = R(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1571
+ function w() {
1548
1572
  !f.value && n.value && n.value.hidePopup();
1549
1573
  }
1550
- function M(W) {
1551
- v.value = W.map((F) => F[e.textField]).join(e.separator), W.length === 1 ? m.value = W[0][e.valueField] : m.value = W.map((F) => F[e.valueField]).join(e.separator), t.emit("update:modelValue", m.value), t.emit("change", W, m.value), b();
1574
+ function M(B) {
1575
+ v.value = B.map(($) => $[e.textField]).join(e.separator), B.length === 1 ? m.value = B[0][e.valueField] : m.value = B.map(($) => $[e.valueField]).join(e.separator), t.emit("update:modelValue", m.value), t.emit("change", B, m.value), w();
1552
1576
  }
1553
- function g() {
1577
+ function b() {
1554
1578
  c.value || n.value.togglePopup();
1555
1579
  }
1556
- function w(W) {
1580
+ function S(B) {
1557
1581
  m.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1558
1582
  }
1559
- function R(W) {
1560
- const F = u(W);
1561
- M(F);
1583
+ function D(B) {
1584
+ const $ = u(B);
1585
+ M($);
1562
1586
  }
1563
1587
  function L() {
1564
1588
  return v.value;
1565
1589
  }
1566
- function j(W) {
1567
- t.emit("input", W);
1590
+ function j(B) {
1591
+ t.emit("input", B);
1568
1592
  }
1569
1593
  return t.expose({
1570
1594
  getDisplayText: L
1571
- }), A([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([W, F, S, y, p]) => {
1572
- a.value = W, s.value = F, o.value = S, r.value = y, c.value = p;
1595
+ }), A([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([B, $, g, y, p]) => {
1596
+ a.value = B, s.value = $, o.value = g, r.value = y, c.value = p;
1573
1597
  }), () => i(st, {
1574
1598
  ref: n,
1575
1599
  id: e.id,
@@ -1586,12 +1610,12 @@ const hn = /* @__PURE__ */ q({
1586
1610
  multiSelect: e.multiSelect,
1587
1611
  inputType: e.multiSelect ? e.viewType : "text",
1588
1612
  modelValue: v.value,
1589
- "onUpdate:modelValue": (W) => v.value = W,
1613
+ "onUpdate:modelValue": (B) => v.value = B,
1590
1614
  focusOnCreated: e.focusOnCreated,
1591
1615
  selectOnCreated: e.selectOnCreated,
1592
- onClear: w,
1593
- onClick: g,
1594
- onChange: R,
1616
+ onClear: S,
1617
+ onClick: b,
1618
+ onChange: D,
1595
1619
  onInput: j,
1596
1620
  beforeOpen: e.beforeOpen
1597
1621
  }, {
@@ -1692,7 +1716,7 @@ const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
1692
1716
  }, En = [
1693
1717
  "id",
1694
1718
  "type"
1695
- ], Dn = {
1719
+ ], Bn = {
1696
1720
  $schema: wn,
1697
1721
  $id: Sn,
1698
1722
  title: Cn,
@@ -1700,7 +1724,7 @@ const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
1700
1724
  type: In,
1701
1725
  properties: xn,
1702
1726
  required: En
1703
- }, Bn = "radio-button", Tn = "A Farris Component", Ln = "object", Rn = {
1727
+ }, Dn = "radio-button", Tn = "A Farris Component", Ln = "object", Rn = {
1704
1728
  basic: {
1705
1729
  description: "Basic Infomation",
1706
1730
  title: "基本信息",
@@ -1723,7 +1747,7 @@ const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
1723
1747
  }
1724
1748
  }
1725
1749
  }, Fn = {
1726
- title: Bn,
1750
+ title: Dn,
1727
1751
  description: Tn,
1728
1752
  type: Ln,
1729
1753
  categories: Rn
@@ -1742,8 +1766,8 @@ const wn = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
1742
1766
  onSelectedValueChanged: { type: Function, default: () => {
1743
1767
  } }
1744
1768
  };
1745
- K(Le, Dn, gn, bn, Fn);
1746
- const kn = /* @__PURE__ */ q({
1769
+ K(Le, Bn, gn, bn, Fn);
1770
+ const kn = /* @__PURE__ */ U({
1747
1771
  name: "FRadioButton",
1748
1772
  props: Le,
1749
1773
  emits: ["selectedValueChanged"],
@@ -1774,10 +1798,10 @@ const kn = /* @__PURE__ */ q({
1774
1798
  class: "f-radio-button-text"
1775
1799
  }, [o(r)])])]))])]);
1776
1800
  }
1777
- }), $n = /* @__PURE__ */ new Map([
1801
+ }), Wn = /* @__PURE__ */ new Map([
1778
1802
  ["appearance", ee]
1779
1803
  ]);
1780
- function Wn(e, t, n) {
1804
+ function $n(e, t, n) {
1781
1805
  return t;
1782
1806
  }
1783
1807
  const On = "https://json-schema.org/draft/2020-12/schema", An = "https://farris-design.gitee.io/rate.schema.json", jn = "rate", Vn = "A Farris Component", zn = "object", Hn = {
@@ -1918,30 +1942,30 @@ const On = "https://json-schema.org/draft/2020-12/schema", An = "https://farris-
1918
1942
  value: { type: Number, default: 0 },
1919
1943
  modelValue: { type: Number, default: 0 }
1920
1944
  };
1921
- K(Re, Gn, $n, Wn, Jn);
1922
- const Zn = /* @__PURE__ */ q({
1945
+ K(Re, Gn, Wn, $n, Jn);
1946
+ const Zn = /* @__PURE__ */ U({
1923
1947
  name: "FRate",
1924
1948
  props: Re,
1925
1949
  emits: ["selectedValue", "update:modelValue"],
1926
1950
  setup(e, t) {
1927
- const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), r = l(e.disabled), c = l(e.pointSystem), d = l(e.lightColor), v = l(e.darkColor), s = l(e.iconClass), m = l(e.numOfStar), u = l(e.toolTipDisabled), f = l(e.toolTipContents), h = l(e.enableScore), b = l(e.enableSatisfaction);
1951
+ const n = l(e.size), a = l(e.enableHalf), o = l(e.enableClear), r = l(e.disabled), c = l(e.pointSystem), d = l(e.lightColor), v = l(e.darkColor), s = l(e.iconClass), m = l(e.numOfStar), u = l(e.toolTipDisabled), f = l(e.toolTipContents), h = l(e.enableScore), w = l(e.enableSatisfaction);
1928
1952
  let M;
1929
- const g = l(0), w = l(0), R = l(0), L = l(e.modelValue);
1930
- let j = 1, W, F, S;
1953
+ const b = l(0), S = l(0), D = l(0), L = l(e.modelValue);
1954
+ let j = 1, B, $, g;
1931
1955
  const y = 4;
1932
- J(() => {
1956
+ Q(() => {
1933
1957
  });
1934
1958
  function p() {
1935
1959
  const E = m.value;
1936
- S = [];
1937
- for (let $ = 1; $ <= E; $++)
1938
- S.push({
1939
- id: $
1960
+ g = [];
1961
+ for (let W = 1; W <= E; W++)
1962
+ g.push({
1963
+ id: W
1940
1964
  });
1941
1965
  }
1942
- function D() {
1966
+ function F() {
1943
1967
  let E;
1944
- a.value ? E = Math.ceil(L.value / j) : E = L.value, w.value = (M * L.value + Math.floor(L.value) * y) / j, W = f.value[E - 1];
1968
+ a.value ? E = Math.ceil(L.value / j) : E = L.value, S.value = (M * L.value + Math.floor(L.value) * y) / j, B = f.value[E - 1];
1945
1969
  }
1946
1970
  function O() {
1947
1971
  switch (n.value) {
@@ -1958,42 +1982,42 @@ const Zn = /* @__PURE__ */ q({
1958
1982
  M = 24;
1959
1983
  break;
1960
1984
  }
1961
- p(), m.value && (j = c.value / m.value), L.value && D();
1985
+ p(), m.value && (j = c.value / m.value), L.value && F();
1962
1986
  }
1963
1987
  O();
1964
- function N(E) {
1988
+ function P(E) {
1965
1989
  return E.className.indexOf("f-icon") !== -1;
1966
1990
  }
1967
- function X() {
1968
- return g.value === w.value && o.value && w.value !== 0 ? (w.value = 0, L.value = 0, F = null, g.value = 0, R.value = 0, t.emit("selectedValue", L.value), t.emit("update:modelValue", L.value), !0) : !1;
1991
+ function Y() {
1992
+ return b.value === S.value && o.value && S.value !== 0 ? (S.value = 0, L.value = 0, $ = null, b.value = 0, D.value = 0, t.emit("selectedValue", L.value), t.emit("update:modelValue", L.value), !0) : !1;
1969
1993
  }
1970
- function B(E, $, H) {
1994
+ function T(E, W, H) {
1971
1995
  if (E.movementX || E.movementY) {
1972
1996
  if (r.value)
1973
1997
  return;
1974
- b.value && (W = f.value[$ - 1]), E.offsetX < M / 2 && a.value === !0 ? (g.value = M * $ - M / 2 + y * ($ - 1), R.value = j * $ - j / 2) : (g.value = M * $ + y * ($ - 1), R.value = j * $);
1998
+ w.value && (B = f.value[W - 1]), E.offsetX < M / 2 && a.value === !0 ? (b.value = M * W - M / 2 + y * (W - 1), D.value = j * W - j / 2) : (b.value = M * W + y * (W - 1), D.value = j * W);
1975
1999
  }
1976
2000
  if (H === !0) {
1977
- if (X())
2001
+ if (Y())
1978
2002
  return;
1979
- L.value = R.value, w.value = g.value, F = W, t.emit("update:modelValue", L.value), t.emit("selectedValue", L.value);
2003
+ L.value = D.value, S.value = b.value, $ = B, t.emit("update:modelValue", L.value), t.emit("selectedValue", L.value);
1980
2004
  }
1981
2005
  }
1982
- function k(E, $) {
2006
+ function k(E, W) {
1983
2007
  var H;
1984
- if (N(E.target) && E.target) {
2008
+ if (P(E.target) && E.target) {
1985
2009
  const te = parseInt((H = E.target) == null ? void 0 : H.id);
1986
- B(E, te, $);
2010
+ T(E, te, W);
1987
2011
  }
1988
2012
  }
1989
- const z = T(() => R.value ? R.value + "分" : L.value + "分"), I = T(() => ({
1990
- width: (g.value || w.value) + "px"
2013
+ const z = R(() => D.value ? D.value + "分" : L.value + "分"), I = R(() => ({
2014
+ width: (b.value || S.value) + "px"
1991
2015
  }));
1992
2016
  function x() {
1993
- g.value = 0;
2017
+ b.value = 0;
1994
2018
  }
1995
2019
  return A(() => e.modelValue, (E) => {
1996
- L.value = E, D();
2020
+ L.value = E, F();
1997
2021
  }), () => i("div", {
1998
2022
  class: "farris-star-rating",
1999
2023
  onMouseover: le((E) => k(E, !1), ["prevent"]),
@@ -2003,7 +2027,7 @@ const Zn = /* @__PURE__ */ q({
2003
2027
  }, [i("div", {
2004
2028
  class: "star-light-area",
2005
2029
  style: I.value
2006
- }, [S.map((E) => i("span", {
2030
+ }, [g.map((E) => i("span", {
2007
2031
  class: ["f-icon default-light-color ", s.value, {
2008
2032
  "f-star-sm": n.value === "small"
2009
2033
  }, {
@@ -2027,7 +2051,7 @@ const Zn = /* @__PURE__ */ q({
2027
2051
  }, {
2028
2052
  large: n.value === "large"
2029
2053
  }]
2030
- }, [S.map((E) => i("span", {
2054
+ }, [g.map((E) => i("span", {
2031
2055
  class: ["f-icon default-dark-color", s.value, {
2032
2056
  "f-star-sm": n.value === "small"
2033
2057
  }, {
@@ -2051,9 +2075,9 @@ const Zn = /* @__PURE__ */ q({
2051
2075
  }, {
2052
2076
  "font-exlarge": n.value === "extraLarge"
2053
2077
  }]
2054
- }, [h.value && i("span", null, [G(" "), z.value, G(" ")]), b.value && (F || W) && i("span", null, [G(" "), W || F])])]);
2078
+ }, [h.value && i("span", null, [q(" "), z.value, q(" ")]), w.value && ($ || B) && i("span", null, [q(" "), B || $])])]);
2055
2079
  }
2056
- }), _n = /* @__PURE__ */ q({
2080
+ }), _n = /* @__PURE__ */ U({
2057
2081
  name: "FColumnWidthEditor",
2058
2082
  props: yn,
2059
2083
  emits: ["fieldChanged"],
@@ -2063,27 +2087,27 @@ const Zn = /* @__PURE__ */ q({
2063
2087
  MD: ["1", "2"],
2064
2088
  LG: ["1", "2", "3", "4"],
2065
2089
  EL: ["1", "2", "3", "4", "5", "6"]
2066
- }, a = l(e.currentScreenResolution), o = l(e.field), r = l(e.switchInStandardMode), c = l(), d = l(""), v = l(), s = l("customize"), m = l(), u = Ce("ResponseLayoutEditorDraggableComposition"), {
2090
+ }, a = l(e.currentScreenResolution), o = l(e.field), r = l(e.switchInStandardMode), c = l(), d = l(""), v = l(), s = l("customize"), m = l(), u = Se("ResponseLayoutEditorDraggableComposition"), {
2067
2091
  dragstart: f,
2068
2092
  dragenter: h,
2069
- dragover: b,
2093
+ dragover: w,
2070
2094
  dragend: M
2071
2095
  } = u;
2072
- function g() {
2096
+ function b() {
2073
2097
  c.value = n == null ? void 0 : n[a.value], r.value ? (d.value = `displayWidthIn${a.value}`, s.value = `${o.value[d.value]}`) : (d.value = `columnIn${a.value}`, m.value = o.value[d.value]);
2074
2098
  }
2075
- function w(p) {
2099
+ function S(p) {
2076
2100
  if (r.value === !0) {
2077
- const D = Number(p == null ? void 0 : p.text);
2078
- v.value = D;
2101
+ const F = Number(p == null ? void 0 : p.text);
2102
+ v.value = F;
2079
2103
  const O = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
2080
- o.value[`columnIn${a.value}`] = D * O, o.value[`displayWidthIn${a.value}`] = Number(D), t.emit("fieldChanged", o.value);
2104
+ o.value[`columnIn${a.value}`] = F * O, o.value[`displayWidthIn${a.value}`] = Number(F), t.emit("fieldChanged", o.value);
2081
2105
  }
2082
2106
  }
2083
- function R(p) {
2107
+ function D(p) {
2084
2108
  m.value = p;
2085
- const D = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
2086
- o.value[`columnIn${a.value}`] = m.value, o.value[`displayWidthIn${a.value}`] = m.value / D, t.emit("fieldChanged", o.value);
2109
+ const F = o.value[`columnIn${a.value}`] / o.value[`displayWidthIn${a.value}`];
2110
+ o.value[`columnIn${a.value}`] = m.value, o.value[`displayWidthIn${a.value}`] = m.value / F, t.emit("fieldChanged", o.value);
2087
2111
  }
2088
2112
  function L() {
2089
2113
  return i(Zn, {
@@ -2097,32 +2121,32 @@ const Zn = /* @__PURE__ */ q({
2097
2121
  modelValue: m.value,
2098
2122
  "onUpdate:modelValue": (p) => m.value = p,
2099
2123
  enableScore: !1,
2100
- onSelectedValue: () => R(m.value)
2124
+ onSelectedValue: () => D(m.value)
2101
2125
  }, null);
2102
2126
  }
2103
2127
  function j() {
2104
2128
  const p = [];
2105
2129
  c.value = n == null ? void 0 : n[a.value];
2106
- const D = o.value[`displayWidthIn${a.value}`];
2130
+ const F = o.value[`displayWidthIn${a.value}`];
2107
2131
  return c.value.forEach((O) => {
2108
- const N = {
2132
+ const P = {
2109
2133
  text: O,
2110
- active: D.toString() === O
2134
+ active: F.toString() === O
2111
2135
  };
2112
- p.push(N);
2136
+ p.push(P);
2113
2137
  }), p;
2114
2138
  }
2115
- function W() {
2139
+ function B() {
2116
2140
  const p = j();
2117
2141
  return i(kn, {
2118
2142
  enumData: p,
2119
2143
  suffixValue: "列",
2120
- onSelectedValueChanged: w
2144
+ onSelectedValueChanged: S
2121
2145
  }, {
2122
- default: () => [G(" ")]
2146
+ default: () => [q(" ")]
2123
2147
  });
2124
2148
  }
2125
- function F() {
2149
+ function $() {
2126
2150
  var p;
2127
2151
  if (((p = o == null ? void 0 : o.value) == null ? void 0 : p.showTopBorder) === 1)
2128
2152
  return i("div", {
@@ -2131,25 +2155,25 @@ const Zn = /* @__PURE__ */ q({
2131
2155
  class: "f-layout-editor-column-width-editor-row-left"
2132
2156
  }, null), i("span", {
2133
2157
  class: "f-layout-editor-column-width-editor-row-middle"
2134
- }, [G("第"), o.value.componentRow, G("行")]), i("span", {
2158
+ }, [q("第"), o.value.componentRow, q("行")]), i("span", {
2135
2159
  class: "f-layout-editor-column-width-editor-row-right"
2136
2160
  }, null)]);
2137
2161
  }
2138
- function S() {
2162
+ function g() {
2139
2163
  return r.value ? i("div", {
2140
2164
  class: "f-column-width-editor-switch-standard"
2141
2165
  }, [i("div", {
2142
2166
  class: "f-layout-editor-column-width-editor-click-button"
2143
- }, [W()])]) : i("div", {
2167
+ }, [B()])]) : i("div", {
2144
2168
  class: "f-column-width-editor-switch-customize",
2145
2169
  onDragenter: (p) => h(p, o.value),
2146
2170
  onDragend: (p) => M(p, o.value),
2147
- onDragover: (p) => b(p)
2171
+ onDragover: (p) => w(p)
2148
2172
  }, [i("div", {
2149
2173
  class: "f-layout-editor-column-width-editor-rectangle"
2150
2174
  }, [L(), i("div", {
2151
2175
  class: "f-layout-editor-rate-show-column"
2152
- }, [m.value, G("列")]), i("span", {
2176
+ }, [m.value, q("列")]), i("span", {
2153
2177
  class: "f-layout-editor-drag-handler f-icon f-icon-drag-vertical",
2154
2178
  draggable: "true",
2155
2179
  onDragstart: (p) => f(p, o.value)
@@ -2161,166 +2185,166 @@ const Zn = /* @__PURE__ */ q({
2161
2185
  class: "f-layout-editor-column-width-editor-component"
2162
2186
  }, [i("div", {
2163
2187
  class: "f-layout-editor-column-width-editor-label"
2164
- }, [(p = o == null ? void 0 : o.value) == null ? void 0 : p.label]), S()]);
2188
+ }, [(p = o == null ? void 0 : o.value) == null ? void 0 : p.label]), g()]);
2165
2189
  }
2166
- return A(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([p, D, O], [N, X, B]) => {
2167
- O !== B && (a.value = O, c.value = n[a.value], g()), D !== X && (r.value = D), r.value === !1 && g(), p !== N && (o.value = p);
2168
- }), J(() => {
2169
- g();
2190
+ return A(() => [e.field, e.switchInStandardMode, e.currentScreenResolution], ([p, F, O], [P, Y, T]) => {
2191
+ O !== T && (a.value = O, c.value = n[a.value], b()), F !== Y && (r.value = F), r.value === !1 && b(), p !== P && (o.value = p);
2192
+ }), Q(() => {
2193
+ b();
2170
2194
  }), () => i("div", {
2171
2195
  class: "f-layout-editor-column-width-editor"
2172
- }, [F(), y()]);
2196
+ }, [$(), y()]);
2173
2197
  }
2174
- }), Kn = /* @__PURE__ */ q({
2198
+ }), Kn = /* @__PURE__ */ U({
2175
2199
  name: "FFieldList",
2176
2200
  props: Kt,
2177
2201
  emits: ["update:currentArea", "twoDimensionalArrayChanged", "originalDataChanged"],
2178
2202
  setup(e, t) {
2179
- const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), r = l(e.originalDataCopy), c = l(e.defaultStates), d = l(""), v = l([]), s = l(e.currentArea), m = l(0), u = l(), f = l(0), h = l("1"), b = l([]);
2203
+ const n = l(e.currentScreenResolution), a = l(e.switchInStandardMode), o = l(e.originalData), r = l(e.originalDataCopy), c = l(e.defaultStates), d = l(""), v = l([]), s = l(e.currentArea), m = l(0), u = l(), f = l(0), h = l("1"), w = l([]);
2180
2204
  function M() {
2205
+ const T = [];
2206
+ return o.value.forEach((k) => {
2207
+ T.indexOf(k.group) === -1 && T.push(k.group);
2208
+ }), T;
2209
+ }
2210
+ function b() {
2211
+ h.value = c.value.defaultGroupNumber.toString(), d.value = `区域${h.value}`, s.value = [v.value[Number(h.value) - 1]], t.emit("update:currentArea", s.value);
2212
+ }
2213
+ function S() {
2181
2214
  var k;
2182
- let B = g();
2183
- for (let z = 0; z < B.length; z++) {
2215
+ const T = M();
2216
+ for (let z = 0; z < T.length; z++) {
2184
2217
  const I = {
2185
- id: (k = B[z]) == null ? void 0 : k.toString(),
2186
- label: "区域" + B[z]
2218
+ id: (k = T[z]) == null ? void 0 : k.toString(),
2219
+ label: "区域" + T[z]
2187
2220
  };
2188
2221
  v.value.push(I);
2189
2222
  }
2190
- w();
2191
- }
2192
- function g() {
2193
- let B = [];
2194
- return o.value.forEach((k) => {
2195
- B.indexOf(k.group) === -1 && B.push(k.group);
2196
- }), B;
2223
+ b();
2197
2224
  }
2198
- function w() {
2199
- h.value = c.value.defaultGroupNumber.toString(), d.value = `区域${h.value}`, s.value = [v.value[Number(h.value) - 1]], t.emit("update:currentArea", s.value);
2200
- }
2201
- function R() {
2202
- let B = [];
2225
+ function D() {
2226
+ let T = [];
2203
2227
  u.value = [];
2204
2228
  let k = 1;
2205
2229
  o.value.forEach((z) => {
2206
- z.group === k || (k += 1, u.value.push(B), B = []), B.push(z);
2207
- }), u.value.push(B);
2208
- }
2209
- function L() {
2210
- u.value[s.value[0].id - 1] = U(b.value);
2211
- let B = [];
2212
- f.value = 0, u.value.forEach((k) => {
2213
- let z = W(k, f.value);
2214
- B.push(z), f.value = z[z.length - 1].componentRow;
2215
- }), F(B);
2216
- }
2217
- function j() {
2218
- R();
2219
- let B = [];
2220
- return f.value = 0, u.value.forEach((k) => {
2221
- let z = W(k, f.value);
2222
- B.push(z), f.value = z[z.length - 1].componentRow;
2223
- }), t.emit("twoDimensionalArrayChanged", u.value), F(B), o.value;
2230
+ z.group === k || (k += 1, u.value.push(T), T = []), T.push(z);
2231
+ }), u.value.push(T);
2224
2232
  }
2225
- function W(B, k) {
2233
+ function L(T, k) {
2226
2234
  let I = 12;
2227
- return m.value = 1 + k, B.forEach((x) => {
2235
+ return m.value = 1 + k, T.forEach((x) => {
2228
2236
  x.showTopBorder = 0;
2229
- let E = x[`columnIn${n.value}`];
2237
+ const E = x[`columnIn${n.value}`];
2230
2238
  I >= E ? (x.componentRow = m.value, I -= E) : (m.value += 1, x.componentRow = m.value, I = 12 - E, x.showTopBorder = 1);
2231
- }), B[0].showTopBorder = 1, B;
2239
+ }), T[0].showTopBorder = 1, T;
2232
2240
  }
2233
- function F(B) {
2241
+ function j(T) {
2234
2242
  let k = [];
2235
- for (let z of B)
2243
+ for (const z of T)
2236
2244
  k = k.concat(z);
2237
- o.value = U(k), f.value = 0;
2245
+ o.value = X(k), f.value = 0;
2238
2246
  }
2239
- function S() {
2247
+ function B() {
2248
+ u.value[s.value[0].id - 1] = X(w.value);
2249
+ const T = [];
2250
+ f.value = 0, u.value.forEach((k) => {
2251
+ const z = L(k, f.value);
2252
+ T.push(z), f.value = z[z.length - 1].componentRow;
2253
+ }), j(T);
2254
+ }
2255
+ function $() {
2256
+ D();
2257
+ const T = [];
2258
+ return f.value = 0, u.value.forEach((k) => {
2259
+ const z = L(k, f.value);
2260
+ T.push(z), f.value = z[z.length - 1].componentRow;
2261
+ }), t.emit("twoDimensionalArrayChanged", u.value), j(T), o.value;
2262
+ }
2263
+ function g() {
2264
+ w.value = [], o.value.forEach((T) => {
2265
+ T.group === Number(s.value[0].id) && w.value.push(T);
2266
+ });
2267
+ }
2268
+ function y() {
2269
+ o.value = X($()), t.emit("originalDataChanged", o.value);
2270
+ }
2271
+ function p(T) {
2272
+ w.value.forEach((k) => {
2273
+ k.label === T.label && Object.assign(k, T);
2274
+ }), B(), y(), g();
2275
+ }
2276
+ function F(T) {
2277
+ for (let k = 0; k < T.length; k++)
2278
+ s.value = [{
2279
+ id: T[k].id,
2280
+ label: T[k].label
2281
+ }];
2282
+ t.emit("update:currentArea", s.value), g(), B();
2283
+ }
2284
+ function O() {
2240
2285
  return i("div", {
2241
2286
  class: "f-layout-editor-field-list-top"
2242
2287
  }, [i("div", {
2243
2288
  class: "f-layout-editor-field-list-header"
2244
- }, [G("组件列表")]), i("div", {
2289
+ }, [q("组件列表")]), i("div", {
2245
2290
  class: "f-layout-editor-choose-group"
2246
2291
  }, [i(hn, {
2247
2292
  modelValue: h.value,
2248
- "onUpdate:modelValue": (B) => h.value = B,
2293
+ "onUpdate:modelValue": (T) => h.value = T,
2249
2294
  placeholder: "当前可编辑组",
2250
2295
  enableClear: !1,
2251
2296
  "id-field": "id",
2252
2297
  "text-field": "label",
2253
2298
  data: v.value,
2254
2299
  editable: !1,
2255
- onChange: N
2300
+ onChange: F
2256
2301
  }, null)])]);
2257
2302
  }
2258
- function y() {
2303
+ function P() {
2259
2304
  return i("div", {
2260
2305
  class: "f-layout-editor-field-list-content f-utils-overflow-xhya"
2261
- }, [b.value.map((B) => i(_n, {
2262
- key: B.label,
2306
+ }, [w.value.map((T) => i(_n, {
2307
+ key: T.label,
2263
2308
  currentScreenResolution: n.value,
2264
- field: B,
2265
- "onUpdate:field": (k) => B = k,
2309
+ field: T,
2310
+ "onUpdate:field": (k) => T = k,
2266
2311
  switchInStandardMode: a.value,
2267
2312
  "onUpdate:switchInStandardMode": (k) => a.value = k,
2268
2313
  onFieldChanged: p
2269
2314
  }, null))]);
2270
2315
  }
2271
- function p(B) {
2272
- b.value.forEach((k) => {
2273
- k.label == B.label && Object.assign(k, B);
2274
- }), L(), O(), D();
2275
- }
2276
- function D() {
2277
- b.value = [], o.value.forEach((B) => {
2278
- B.group === Number(s.value[0].id) && b.value.push(B);
2279
- });
2280
- }
2281
- function O() {
2282
- o.value = U(j()), t.emit("originalDataChanged", o.value);
2283
- }
2284
- function N(B) {
2285
- for (let k = 0; k < B.length; k++)
2286
- s.value = [{
2287
- id: B[k].id,
2288
- label: B[k].label
2289
- }];
2290
- t.emit("update:currentArea", s.value), D(), L();
2291
- }
2292
- const X = en(b, () => {
2293
- L(), O(), D();
2316
+ const Y = en(w, () => {
2317
+ B(), y(), g();
2294
2318
  });
2295
- return et("ResponseLayoutEditorDraggableComposition", X), A(() => e.currentArea, (B, k) => {
2296
- B !== k && (s.value = e.currentArea, D());
2297
- }), A(s, (B, k) => {
2298
- B !== k && D();
2299
- }), A(() => e.currentGroup, (B, k) => {
2300
- B !== k && (d.value = e.currentGroup);
2301
- }), A(() => e.currentScreenResolution, (B, k) => {
2302
- B !== k && (n.value = e.currentScreenResolution, O(), R(), s.value[0] && (b.value = U(u.value[Number(s.value[0].id) - 1])));
2303
- }), A(() => e.switchInStandardMode, (B, k) => {
2304
- B !== k && (a.value = e.switchInStandardMode, o.value = U(r.value));
2305
- }), A(c, (B, k) => {
2306
- B !== k && O();
2307
- }), pe(() => {
2308
- M(), j(), D();
2319
+ return et("ResponseLayoutEditorDraggableComposition", Y), A(() => e.currentArea, (T, k) => {
2320
+ T !== k && (s.value = e.currentArea, g());
2321
+ }), A(s, (T, k) => {
2322
+ T !== k && g();
2323
+ }), A(() => e.currentGroup, (T, k) => {
2324
+ T !== k && (d.value = e.currentGroup);
2325
+ }), A(() => e.currentScreenResolution, (T, k) => {
2326
+ T !== k && (n.value = e.currentScreenResolution, y(), D(), s.value[0] && (w.value = X(u.value[Number(s.value[0].id) - 1])));
2327
+ }), A(() => e.switchInStandardMode, (T, k) => {
2328
+ T !== k && (a.value = e.switchInStandardMode, o.value = X(r.value));
2329
+ }), A(c, (T, k) => {
2330
+ T !== k && y();
2331
+ }), ve(() => {
2332
+ S(), $(), g();
2309
2333
  }), () => i("div", {
2310
2334
  class: "f-layout-editor-field-list f-utils-fill-flex-column"
2311
2335
  }, [a.value ? (
2312
2336
  /* 标准模式 */
2313
2337
  i("div", {
2314
2338
  class: "f-layout-editor-field-list-standard f-utils-fill-flex-column"
2315
- }, [S(), y()])
2339
+ }, [O(), P()])
2316
2340
  ) : (
2317
2341
  /* 自定义模式 */
2318
2342
  i("div", {
2319
2343
  class: "f-layout-editor-field-list-customize f-utils-fill-flex-column"
2320
- }, [S(), y()])
2344
+ }, [O(), P()])
2321
2345
  )]);
2322
2346
  }
2323
- }), ie = /* @__PURE__ */ q({
2347
+ }), ie = /* @__PURE__ */ U({
2324
2348
  name: "FResponseLayoutEditor",
2325
2349
  props: ct,
2326
2350
  emits: ["close", "submit"],
@@ -2331,25 +2355,25 @@ const Zn = /* @__PURE__ */ q({
2331
2355
  }]), s = l([]), m = l(), u = l(e.width), f = l(e.height);
2332
2356
  A(() => e.initialState, (p) => {
2333
2357
  n.value = p;
2334
- }), A([() => e.currentArea, () => e.switchInStandardMode], ([p, D], [O, N]) => {
2335
- p !== O && (v.value = p), D !== N && (d.value = D);
2358
+ }), A([() => e.currentArea, () => e.switchInStandardMode], ([p, F], [O, P]) => {
2359
+ p !== O && (v.value = p), F !== P && (d.value = F);
2336
2360
  });
2337
2361
  function h(p) {
2338
2362
  r.value = p;
2339
2363
  }
2340
- function b(p) {
2364
+ function w(p) {
2341
2365
  c.value = p;
2342
2366
  }
2343
2367
  function M(p) {
2344
2368
  d.value = p;
2345
2369
  }
2346
- function g(p) {
2370
+ function b(p) {
2347
2371
  v.value = [].concat(p);
2348
2372
  }
2349
- function w(p) {
2350
- a.value = U(p);
2373
+ function S(p) {
2374
+ a.value = X(p);
2351
2375
  }
2352
- function R(p) {
2376
+ function D(p) {
2353
2377
  s.value = p;
2354
2378
  }
2355
2379
  function L() {
@@ -2358,7 +2382,7 @@ const Zn = /* @__PURE__ */ q({
2358
2382
  function j() {
2359
2383
  t.emit("submit", a.value);
2360
2384
  }
2361
- function W() {
2385
+ function B() {
2362
2386
  return i(Kn, {
2363
2387
  class: "f-utils-fill-flex-column",
2364
2388
  defaultStates: o.value,
@@ -2371,12 +2395,12 @@ const Zn = /* @__PURE__ */ q({
2371
2395
  "onUpdate:switchInStandardMode": (p) => d.value = p,
2372
2396
  currentArea: v.value,
2373
2397
  "onUpdate:currentArea": (p) => v.value = p,
2374
- onCurrentAreaChanged: g,
2375
- onTwoDimensionalArrayChanged: R,
2376
- onOriginalDataChanged: w
2398
+ onCurrentAreaChanged: b,
2399
+ onTwoDimensionalArrayChanged: D,
2400
+ onOriginalDataChanged: S
2377
2401
  }, null);
2378
2402
  }
2379
- function F() {
2403
+ function $() {
2380
2404
  return i(_t, {
2381
2405
  class: "f-utils-fill-flex-column",
2382
2406
  currentArea: v.value,
@@ -2388,9 +2412,9 @@ const Zn = /* @__PURE__ */ q({
2388
2412
  "onUpdate:twoDimensionalArray": (p) => s.value = p
2389
2413
  }, null);
2390
2414
  }
2391
- const S = T(() => d.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), y = T(() => d.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
2392
- return pe(() => {
2393
- a.value = U(n.value.importData), m.value = U(n.value.importData), o.value = n.value.defaultState, r.value = "中等屏幕", c.value = "MD";
2415
+ const g = R(() => d.value ? "f-layout-editor-left-standard f-utils-fill-flex-column" : "f-layout-editor-left-customize f-utils-fill-flex-column"), y = R(() => d.value ? "f-layout-editor-right-standard f-utils-fill-flex-column" : "f-layout-editor-right-customize f-utils-fill-flex-column");
2416
+ return ve(() => {
2417
+ a.value = X(n.value.importData), m.value = X(n.value.importData), o.value = n.value.defaultState, r.value = "中等屏幕", c.value = "MD";
2394
2418
  }), (p) => i("div", {
2395
2419
  class: "f-layout-editor f-utils-flex-column",
2396
2420
  style: "height:" + f.value + "px;width:" + u.value + "px;"
@@ -2399,19 +2423,19 @@ const Zn = /* @__PURE__ */ q({
2399
2423
  }, [i(Yt, {
2400
2424
  defaultStates: o.value,
2401
2425
  onScreenNameChanged: h,
2402
- onCurrentScreenResolutionChanged: b,
2426
+ onCurrentScreenResolutionChanged: w,
2403
2427
  onSwitchInStandardModeChanged: M
2404
2428
  }, null)]), i("div", {
2405
2429
  class: "f-layout-editor-content f-utils-fill"
2406
2430
  }, [i("div", {
2407
2431
  class: "f-layout-editor-left f-utils-fill-flex-column"
2408
2432
  }, [i("div", {
2409
- class: S.value
2410
- }, [W()])]), i("div", {
2433
+ class: g.value
2434
+ }, [B()])]), i("div", {
2411
2435
  class: "f-layout-editor-right f-utils-fill-flex-column"
2412
2436
  }, [i("div", {
2413
2437
  class: y.value
2414
- }, [F()])])]), i("div", {
2438
+ }, [$()])])]), i("div", {
2415
2439
  class: "f-layout-editor-bottom"
2416
2440
  }, [i("div", {
2417
2441
  class: "f-layout-editor-button"
@@ -2420,12 +2444,12 @@ const Zn = /* @__PURE__ */ q({
2420
2444
  onClick: L
2421
2445
  }, [i("span", {
2422
2446
  class: "f-layout-editor-text-cancel"
2423
- }, [G("取消")])]), i("div", {
2447
+ }, [q("取消")])]), i("div", {
2424
2448
  class: "f-layout-editor-sure-btn",
2425
2449
  onClick: j
2426
2450
  }, [i("span", {
2427
2451
  class: "f-layout-editor-text-sure"
2428
- }, [G("确认")])])])])]);
2452
+ }, [q("确认")])])])])]);
2429
2453
  }
2430
2454
  }), ea = /* @__PURE__ */ new Map([
2431
2455
  ["appearance", ee]
@@ -2511,7 +2535,7 @@ const la = "https://json-schema.org/draft/2020-12/schema", oa = "https://farris-
2511
2535
  description: va,
2512
2536
  type: pa,
2513
2537
  categories: ma
2514
- }, he = {
2538
+ }, me = {
2515
2539
  /** 接受传入的原始数据的defaultState */
2516
2540
  initialState: { type: Object },
2517
2541
  /** 页面高度 */
@@ -2519,7 +2543,7 @@ const la = "https://json-schema.org/draft/2020-12/schema", oa = "https://farris-
2519
2543
  /** 页面宽度 */
2520
2544
  width: { type: Number, default: 750 },
2521
2545
  modelValue: { type: Object }
2522
- }, Se = K(he, da, ea, aa, ha), ya = {
2546
+ }, we = K(me, da, ea, aa, ha), ya = {
2523
2547
  /**
2524
2548
  * 自定义类
2525
2549
  */
@@ -2580,7 +2604,7 @@ const la = "https://json-schema.org/draft/2020-12/schema", oa = "https://farris-
2580
2604
  enableEsc: { type: Boolean, default: !0 },
2581
2605
  enableEnter: { type: Boolean, default: !1 }
2582
2606
  };
2583
- class P {
2607
+ class G {
2584
2608
  constructor(t, n) {
2585
2609
  this.x = t, this.y = n;
2586
2610
  }
@@ -2594,12 +2618,12 @@ class P {
2594
2618
  }
2595
2619
  static fromEvent(t, n = null) {
2596
2620
  if (this.isMouseEvent(t))
2597
- return new P(t.clientX, t.clientY);
2621
+ return new G(t.clientX, t.clientY);
2598
2622
  if (n === null || t.changedTouches.length === 1)
2599
- return new P(t.changedTouches[0].clientX, t.changedTouches[0].clientY);
2623
+ return new G(t.changedTouches[0].clientX, t.changedTouches[0].clientY);
2600
2624
  for (let a = 0; a < t.changedTouches.length; a++)
2601
2625
  if (t.changedTouches[a].target === n)
2602
- return new P(t.changedTouches[a].clientX, t.changedTouches[a].clientY);
2626
+ return new G(t.changedTouches[a].clientX, t.changedTouches[a].clientY);
2603
2627
  }
2604
2628
  static isMouseEvent(t) {
2605
2629
  return Object.prototype.toString.apply(t).indexOf("MouseEvent") === 8;
@@ -2608,7 +2632,7 @@ class P {
2608
2632
  return !!t && "x" in t && "y" in t;
2609
2633
  }
2610
2634
  static getCurrent(t) {
2611
- const n = new P(0, 0);
2635
+ const n = new G(0, 0);
2612
2636
  if (window) {
2613
2637
  const a = window.getComputedStyle(t);
2614
2638
  if (a) {
@@ -2620,7 +2644,7 @@ class P {
2620
2644
  return null;
2621
2645
  }
2622
2646
  static copy(t) {
2623
- return new P(0, 0).set(t);
2647
+ return new G(0, 0).set(t);
2624
2648
  }
2625
2649
  get value() {
2626
2650
  return { x: this.x, y: this.y };
@@ -2664,19 +2688,19 @@ class _ {
2664
2688
  }
2665
2689
  }
2666
2690
  function ga(e, t) {
2667
- const n = l(), a = l(), o = l(), r = l(), c = l(), d = l(), v = l(), s = l(), m = l(), u = l(), f = l(), h = l(), b = l(e.draggable), M = l(!1);
2668
- function g() {
2691
+ const n = l(), a = l(), o = l(), r = l(), c = l(), d = l(), v = l(), s = l(), m = l(), u = l(), f = l(), h = l(), w = l(e.draggable), M = l(!1);
2692
+ function b() {
2669
2693
  const I = a.value || document.body, x = window.getComputedStyle(I);
2670
2694
  if (!x || !n.value)
2671
2695
  return;
2672
- const E = P.getTransformInfo(n.value), $ = {};
2673
- v.value && ($.deltaL = n.value.offsetLeft - v.value.x, $.deltaT = n.value.offsetTop - v.value.y);
2696
+ const E = G.getTransformInfo(n.value), W = {};
2697
+ v.value && (W.deltaL = n.value.offsetLeft - v.value.x, W.deltaT = n.value.offsetTop - v.value.y);
2674
2698
  const H = x.getPropertyValue("position");
2675
- $.width = I.clientWidth, $.height = I.clientHeight, $.pr = parseInt(x.getPropertyValue("padding-right"), 10), $.pb = parseInt(x.getPropertyValue("padding-bottom"), 10), $.position = x.getPropertyValue("position"), H === "static" && (I.style.position = "relative"), $.translateX = E.x, $.translateY = E.y, u.value = $;
2699
+ W.width = I.clientWidth, W.height = I.clientHeight, W.pr = parseInt(x.getPropertyValue("padding-right"), 10), W.pb = parseInt(x.getPropertyValue("padding-bottom"), 10), W.position = x.getPropertyValue("position"), H === "static" && (I.style.position = "relative"), W.translateX = E.x, W.translateY = E.y, u.value = W;
2676
2700
  }
2677
- function w(I) {
2701
+ function S(I) {
2678
2702
  if (n.value) {
2679
- r.value = _.getCurrent(n.value), c.value = P.getCurrent(n.value), d.value = r.value ? _.copy(r.value) : null, v.value = c.value ? P.copy(c.value) : null, g();
2703
+ r.value = _.getCurrent(n.value), c.value = G.getCurrent(n.value), d.value = r.value ? _.copy(r.value) : null, v.value = c.value ? G.copy(c.value) : null, b();
2680
2704
  const x = I.target.getAttribute("type") || "";
2681
2705
  s.value = {
2682
2706
  n: !!x.match(/n/),
@@ -2686,11 +2710,11 @@ function ga(e, t) {
2686
2710
  };
2687
2711
  }
2688
2712
  }
2689
- function R() {
2690
- var I, x, E, $;
2713
+ function D() {
2714
+ var I, x, E, W;
2691
2715
  if (n.value) {
2692
2716
  const H = n.value;
2693
- s.value && ((s.value.n || s.value.s) && ((I = d.value) != null && I.height) && (H.style.height = d.value.height + "px"), (s.value.w || s.value.e) && ((x = d.value) != null && x.width) && (H.style.width = d.value.width + "px"), v.value && ((E = v.value) != null && E.x && (H.style.left = v.value.x + "px"), ($ = v.value) != null && $.y && (H.style.top = v.value.y + "px")));
2717
+ s.value && ((s.value.n || s.value.s) && ((I = d.value) != null && I.height) && (H.style.height = d.value.height + "px"), (s.value.w || s.value.e) && ((x = d.value) != null && x.width) && (H.style.width = d.value.width + "px"), v.value && ((E = v.value) != null && E.x && (H.style.left = v.value.x + "px"), (W = v.value) != null && W.y && (H.style.top = v.value.y + "px")));
2694
2718
  }
2695
2719
  }
2696
2720
  function L() {
@@ -2706,27 +2730,27 @@ function ga(e, t) {
2706
2730
  }
2707
2731
  }
2708
2732
  }
2709
- function W(I) {
2733
+ function B(I) {
2710
2734
  if (!o.value || !r.value || !c.value || !s.value)
2711
2735
  return;
2712
2736
  I.subtract(o.value);
2713
2737
  const x = I.x, E = I.y;
2714
- s.value.n ? (v.value.y = c.value.y + E, d.value.height = r.value.height - E) : s.value.s && (d.value.height = r.value.height + E), s.value.e ? d.value.width = r.value.width + x : s.value.w && (d.value.width = r.value.width - x, v.value.x = c.value.x + x), j(), L(), R();
2738
+ s.value.n ? (v.value.y = c.value.y + E, d.value.height = r.value.height - E) : s.value.s && (d.value.height = r.value.height + E), s.value.e ? d.value.width = r.value.width + x : s.value.w && (d.value.width = r.value.width - x, v.value.x = c.value.x + x), j(), L(), D();
2715
2739
  }
2716
- function F(I) {
2740
+ function $(I) {
2717
2741
  if (!m.value)
2718
2742
  return;
2719
- const x = P.fromEvent(I);
2720
- x && W(x);
2743
+ const x = G.fromEvent(I);
2744
+ x && B(x);
2721
2745
  }
2722
- function S() {
2746
+ function g() {
2723
2747
  if (n.value) {
2724
2748
  const {
2725
2749
  width: I,
2726
2750
  height: x,
2727
2751
  x: E,
2728
- y: $
2729
- } = n.value.getBoundingClientRect(), H = P.getTransformInfo(n.value);
2752
+ y: W
2753
+ } = n.value.getBoundingClientRect(), H = G.getTransformInfo(n.value);
2730
2754
  return {
2731
2755
  size: {
2732
2756
  width: I,
@@ -2734,7 +2758,7 @@ function ga(e, t) {
2734
2758
  },
2735
2759
  position: {
2736
2760
  x: E - H.x,
2737
- y: $ - H.y
2761
+ y: W - H.y
2738
2762
  }
2739
2763
  };
2740
2764
  }
@@ -2742,81 +2766,81 @@ function ga(e, t) {
2742
2766
  }
2743
2767
  function y(I) {
2744
2768
  if (n.value) {
2745
- const x = S();
2769
+ const x = g();
2746
2770
  f.value = x;
2747
2771
  }
2748
- o.value = void 0, r.value = null, c.value = null, d.value = null, v.value = null, s.value = null, m.value = null, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", y);
2772
+ o.value = void 0, r.value = null, c.value = null, d.value = null, v.value = null, s.value = null, m.value = null, document.removeEventListener("mousemove", $), document.removeEventListener("mouseup", y);
2749
2773
  }
2750
2774
  function p() {
2751
- document.addEventListener("mousemove", F), document.addEventListener("mouseup", y);
2775
+ document.addEventListener("mousemove", $), document.addEventListener("mouseup", y);
2752
2776
  }
2753
- function D(I) {
2754
- I instanceof MouseEvent && I.button === 2 || b.value && (I.stopPropagation(), I.preventDefault(), o.value = P.fromEvent(I), m.value = I.target, w(I), p());
2777
+ function F(I) {
2778
+ I instanceof MouseEvent && I.button === 2 || w.value && (I.stopPropagation(), I.preventDefault(), o.value = G.fromEvent(I), m.value = I.target, S(I), p());
2755
2779
  }
2756
2780
  function O(I) {
2757
2781
  return n.value = I, i(ue, null, [i("div", {
2758
2782
  class: "fv-resizable-handle fv-resizable-n",
2759
2783
  type: "n",
2760
- onMousedown: (x) => D(x)
2784
+ onMousedown: (x) => F(x)
2761
2785
  }, null), i("div", {
2762
2786
  class: "fv-resizable-handle fv-resizable-e",
2763
2787
  type: "e",
2764
- onMousedown: (x) => D(x)
2788
+ onMousedown: (x) => F(x)
2765
2789
  }, null), i("div", {
2766
2790
  class: "fv-resizable-handle fv-resizable-s",
2767
2791
  type: "s",
2768
- onMousedown: (x) => D(x)
2792
+ onMousedown: (x) => F(x)
2769
2793
  }, null), i("div", {
2770
2794
  class: "fv-resizable-handle fv-resizable-w",
2771
2795
  type: "w",
2772
- onMousedown: (x) => D(x)
2796
+ onMousedown: (x) => F(x)
2773
2797
  }, null), i("div", {
2774
2798
  class: "fv-resizable-handle fv-resizable-ne",
2775
2799
  type: "ne",
2776
- onMousedown: (x) => D(x)
2800
+ onMousedown: (x) => F(x)
2777
2801
  }, null), i("div", {
2778
2802
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
2779
2803
  type: "se",
2780
- onMousedown: (x) => D(x)
2804
+ onMousedown: (x) => F(x)
2781
2805
  }, null), i("div", {
2782
2806
  class: "fv-resizable-handle fv-resizable-sw",
2783
2807
  type: "sw",
2784
- onMousedown: (x) => D(x)
2808
+ onMousedown: (x) => F(x)
2785
2809
  }, null), i("div", {
2786
2810
  class: "fv-resizable-handle fv-resizable-nw",
2787
2811
  type: "nw",
2788
- onMousedown: (x) => D(x)
2812
+ onMousedown: (x) => F(x)
2789
2813
  }, null)]);
2790
2814
  }
2791
- function N(I = !0) {
2792
- const x = a.value || document.body, E = _.getCurrent(x), $ = n.value;
2793
- I && (h.value = S(), h.value.transform = $.style.transform), E && $ && (d.value = E, $.style.height = d.value.height - 14 + "px", $.style.width = d.value.width - 14 + "px", $.style.left = "7px", $.style.top = "7px", $.style.transform = "", f.value = {
2815
+ function P(I = !0) {
2816
+ const x = a.value || document.body, E = _.getCurrent(x), W = n.value;
2817
+ I && (h.value = g(), h.value.transform = W.style.transform), E && W && (d.value = E, W.style.height = d.value.height - 14 + "px", W.style.width = d.value.width - 14 + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", f.value = {
2794
2818
  size: d.value,
2795
2819
  position: {
2796
2820
  x: 0,
2797
2821
  y: 0
2798
2822
  }
2799
- }, b.value = !1, M.value = !0);
2823
+ }, w.value = !1, M.value = !0);
2800
2824
  }
2801
- function X() {
2825
+ function Y() {
2802
2826
  var I, x;
2803
2827
  if (h.value) {
2804
2828
  const E = {
2805
2829
  width: h.value.size.width || 0,
2806
2830
  height: h.value.size.height || 0
2807
- }, $ = {
2831
+ }, W = {
2808
2832
  x: (window.innerWidth - E.width) / 2,
2809
2833
  y: (window.innerHeight - E.height) / 2
2810
2834
  };
2811
- (I = d.value) == null || I.set(E), (x = v.value) == null || x.set($);
2835
+ (I = d.value) == null || I.set(E), (x = v.value) == null || x.set(W);
2812
2836
  const H = n.value;
2813
- H.style.height = E.height + "px", H.style.width = E.width + "px", H.style.left = `${$.x}px`, H.style.top = `${$.y}px`, H.style.transform = "", f.value = {
2837
+ H.style.height = E.height + "px", H.style.width = E.width + "px", H.style.left = `${W.x}px`, H.style.top = `${W.y}px`, H.style.transform = "", f.value = {
2814
2838
  size: E,
2815
- position: $
2816
- }, b.value = e.draggable, M.value = !1;
2839
+ position: W
2840
+ }, w.value = e.draggable, M.value = !1;
2817
2841
  }
2818
2842
  }
2819
- function B() {
2843
+ function T() {
2820
2844
  if (n.value) {
2821
2845
  const I = _.getCurrent(n.value);
2822
2846
  if (I) {
@@ -2830,7 +2854,7 @@ function ga(e, t) {
2830
2854
  }
2831
2855
  function k() {
2832
2856
  const I = () => {
2833
- M.value ? N(!1) : B();
2857
+ M.value ? P(!1) : T();
2834
2858
  };
2835
2859
  return window.addEventListener("resize", I), () => {
2836
2860
  window.removeEventListener("resize", I);
@@ -2841,90 +2865,90 @@ function ga(e, t) {
2841
2865
  renderResizeBar: O,
2842
2866
  boundingElement: a,
2843
2867
  resizedEventParam: f,
2844
- maximize: N,
2845
- restore: X,
2846
- allowDrag: b,
2868
+ maximize: P,
2869
+ restore: Y,
2870
+ allowDrag: w,
2847
2871
  isMaximized: M,
2848
2872
  unWindowResizeHandle: z
2849
2873
  };
2850
2874
  }
2851
2875
  function ba(e, t, n) {
2852
- const a = l(), o = l(e.draggable), r = l(e.lockAxis), c = l(), d = l(), v = l(!1), s = l(new P(0, 0)), m = l(new P(0, 0)), u = l(new P(0, 0)), f = l(new P(0, 0));
2853
- A(() => n.value, (S) => {
2854
- c.value.style.cursor = S ? "move" : "default";
2876
+ const a = l(), o = l(e.draggable), r = l(e.lockAxis), c = l(), d = l(), v = l(!1), s = l(new G(0, 0)), m = l(new G(0, 0)), u = l(new G(0, 0)), f = l(new G(0, 0));
2877
+ A(() => n.value, (g) => {
2878
+ c.value.style.cursor = g ? "move" : "default";
2855
2879
  });
2856
- function h(S, y) {
2880
+ function h(g, y) {
2857
2881
  if (y.tagName === "BUTTON")
2858
2882
  return !1;
2859
- if (y === S)
2883
+ if (y === g)
2860
2884
  return !0;
2861
2885
  for (const p in y.children)
2862
- if (y.children.hasOwnProperty(p) && h(S, y.children[p]))
2886
+ if (Object.prototype.hasOwnProperty.call(y.children, p) && h(g, y.children[p]))
2863
2887
  return !0;
2864
2888
  return !1;
2865
2889
  }
2866
- function b() {
2867
- var D, O;
2868
- let S = u.value.x + m.value.x, y = u.value.y + m.value.y;
2869
- r.value === "x" ? (S = ((D = s.value) == null ? void 0 : D.x) || 0, u.value.x = 0) : r.value === "y" && (y = ((O = s.value) == null ? void 0 : O.y) || 0, u.value.y = 0);
2870
- const p = `translate3d(${Math.round(S)}px, ${Math.round(y)}px, 0px)`;
2871
- a.value && (a.value.style.transform = p), f.value.x = S, f.value.y = y;
2890
+ function w() {
2891
+ var F, O;
2892
+ let g = u.value.x + m.value.x, y = u.value.y + m.value.y;
2893
+ r.value === "x" ? (g = ((F = s.value) == null ? void 0 : F.x) || 0, u.value.x = 0) : r.value === "y" && (y = ((O = s.value) == null ? void 0 : O.y) || 0, u.value.y = 0);
2894
+ const p = `translate3d(${Math.round(g)}px, ${Math.round(y)}px, 0px)`;
2895
+ a.value && (a.value.style.transform = p), f.value.x = g, f.value.y = y;
2872
2896
  }
2873
2897
  function M() {
2874
2898
  if (!d.value || !a.value)
2875
2899
  return null;
2876
- const S = d.value.getBoundingClientRect(), y = a.value.getBoundingClientRect(), p = {
2877
- top: S.top < y.top,
2878
- right: S.right > y.right,
2879
- bottom: S.bottom > y.bottom,
2880
- left: S.left < y.left
2900
+ const g = d.value.getBoundingClientRect(), y = a.value.getBoundingClientRect(), p = {
2901
+ top: g.top < y.top,
2902
+ right: g.right > y.right,
2903
+ bottom: g.bottom > y.bottom,
2904
+ left: g.left < y.left
2881
2905
  };
2882
- return p.top || (u.value.y -= y.top - S.top), p.bottom || (u.value.y -= y.bottom - S.bottom), p.right || (u.value.x -= y.right - S.right), p.left || (u.value.x -= y.left - S.left), b(), p;
2906
+ return p.top || (u.value.y -= y.top - g.top), p.bottom || (u.value.y -= y.bottom - g.bottom), p.right || (u.value.x -= y.right - g.right), p.left || (u.value.x -= y.left - g.left), w(), p;
2883
2907
  }
2884
- function g(S) {
2885
- S && (s.value && S.subtract(s.value), u.value.set(S), b(), M());
2908
+ function b(g) {
2909
+ g && (s.value && g.subtract(s.value), u.value.set(g), w(), M());
2886
2910
  }
2887
- function w(S) {
2888
- v.value && o.value && (S.stopPropagation(), S.preventDefault(), g(P.fromEvent(S, c.value)));
2911
+ function S(g) {
2912
+ v.value && o.value && (g.stopPropagation(), g.preventDefault(), b(G.fromEvent(g, c.value)));
2889
2913
  }
2890
- function R() {
2891
- var S;
2892
- v.value && (v.value = !1, m.value.add(u.value), u.value.reset(), (S = a.value) == null || S.classList.remove("ng-dragging"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", R));
2914
+ function D() {
2915
+ var g;
2916
+ v.value && (v.value = !1, m.value.add(u.value), u.value.reset(), (g = a.value) == null || g.classList.remove("ng-dragging"), document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", D));
2893
2917
  }
2894
2918
  function L() {
2895
- !v.value && c.value && (v.value = !0, c.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", R));
2919
+ !v.value && c.value && (v.value = !0, c.value.classList.add("ng-dragging"), document.addEventListener("mousemove", S), document.addEventListener("mouseup", D));
2896
2920
  }
2897
2921
  function j() {
2898
2922
  if (a.value) {
2899
- const S = P.getTransformInfo(a.value);
2900
- m.value.set(S);
2923
+ const g = G.getTransformInfo(a.value);
2924
+ m.value.set(g);
2901
2925
  return;
2902
2926
  }
2903
2927
  m.value.reset();
2904
2928
  }
2905
- function W(S) {
2906
- if (!n.value || S instanceof MouseEvent && S.button === 2)
2929
+ function B(g) {
2930
+ if (!n.value || g instanceof MouseEvent && g.button === 2)
2907
2931
  return;
2908
- const y = S.target || S.srcElement;
2909
- c.value !== void 0 && y && !h(y, c.value) || o.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), s.value = P.fromEvent(S, a.value), j(), L());
2932
+ const y = g.target || g.srcElement;
2933
+ c.value !== void 0 && y && !h(y, c.value) || o.value !== !1 && (document.body.click(), g.stopPropagation(), g.preventDefault(), s.value = G.fromEvent(g, a.value), j(), L());
2910
2934
  }
2911
- function F(S, y, p) {
2935
+ function $(g, y, p) {
2912
2936
  if (o.value && y) {
2913
- if (S)
2914
- c.value = S;
2937
+ if (g)
2938
+ c.value = g;
2915
2939
  else if (e.dragHandle) {
2916
2940
  if (e.dragHandle instanceof HTMLElement)
2917
2941
  c.value = e.dragHandle;
2918
2942
  else if (typeof e.dragHandle == "string") {
2919
- const D = y.querySelector(e.dragHandle);
2920
- D && (c.value = D);
2943
+ const F = y.querySelector(e.dragHandle);
2944
+ F && (c.value = F);
2921
2945
  }
2922
2946
  }
2923
- a.value = y, d.value = p, c.value.classList.add("ng-draggable"), c.value.addEventListener("mousedown", W);
2947
+ a.value = y, d.value = p, c.value.classList.add("ng-draggable"), c.value.addEventListener("mousedown", B);
2924
2948
  }
2925
2949
  }
2926
2950
  return {
2927
- registerDraggle: F,
2951
+ registerDraggle: $,
2928
2952
  resetTranslate: j
2929
2953
  };
2930
2954
  }
@@ -2956,48 +2980,48 @@ function Sa(e, t) {
2956
2980
  remove: a
2957
2981
  }) : null;
2958
2982
  }
2959
- const ke = /* @__PURE__ */ q({
2983
+ const ke = /* @__PURE__ */ U({
2960
2984
  name: "FModal",
2961
2985
  props: ya,
2962
2986
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
2963
2987
  setup(e, t) {
2964
- const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), r = l(""), c = l(e.class), d = l(e.fitContent), v = l(e.showHeader), s = l(""), m = l(e.showCloseButton), u = l(e.showMaxButton), f = l(!1), h = l(""), b = l(""), M = l(""), g = l(e.showButtons), w = l(e.title), R = l(e.reiszeable), L = l(e.containment || null), j = l();
2965
- function W(C, V) {
2988
+ const n = l(e.width || 300), a = l(e.height || 200), o = l(e.modelValue), r = l(""), c = l(e.class), d = l(e.fitContent), v = l(e.showHeader), s = l(""), m = l(e.showCloseButton), u = l(e.showMaxButton), f = l(!1), h = l(""), w = l(""), M = l(""), b = l(e.showButtons), S = l(e.title), D = l(e.reiszeable), L = l(e.containment || null), j = l();
2989
+ function B(C, V) {
2966
2990
  o.value = !1, t.emit("update:modelValue", !1), V != null && t.emit(V ? "accept" : "cancel"), t.emit("closed", C);
2967
2991
  }
2968
- const F = [{
2992
+ const $ = [{
2969
2993
  name: "cancel",
2970
2994
  text: "取消",
2971
2995
  class: "btn btn-secondary",
2972
2996
  handle: (C) => {
2973
- W(C, !1);
2997
+ B(C, !1);
2974
2998
  }
2975
2999
  }, {
2976
3000
  name: "accept",
2977
3001
  text: "确定",
2978
3002
  class: "btn btn-primary",
2979
3003
  handle: (C) => {
2980
- W(C, !0);
3004
+ B(C, !0);
2981
3005
  }
2982
- }], S = l(e.buttons && e.buttons.length ? e.buttons : F), y = T(() => !!s.value), p = T(() => !!g.value && !!S.value), D = l(), O = l(), N = l(!1), {
2983
- renderResizeBar: X,
2984
- maximize: B,
3006
+ }], g = l(e.buttons && e.buttons.length ? e.buttons : $), y = R(() => !!s.value), p = R(() => !!b.value && !!g.value), F = l(), O = l(), P = l(!1), {
3007
+ renderResizeBar: Y,
3008
+ maximize: T,
2985
3009
  restore: k,
2986
3010
  boundingElement: z,
2987
3011
  resizedEventParam: I,
2988
3012
  allowDrag: x,
2989
3013
  unWindowResizeHandle: E
2990
3014
  } = ga(e), {
2991
- registerDraggle: $
3015
+ registerDraggle: W
2992
3016
  } = ba(e, t, x);
2993
3017
  A(() => e.title, (C, V) => {
2994
- C !== V && (w.value = C);
3018
+ C !== V && (S.value = C);
2995
3019
  }), A(() => e.modelValue, (C, V) => {
2996
3020
  C !== V && (o.value = C);
2997
3021
  }), A(() => e.showHeader, (C, V) => {
2998
3022
  C !== V && (v.value = C);
2999
3023
  }), A(() => e.showButtons, (C, V) => {
3000
- C !== V && (g.value = C);
3024
+ C !== V && (b.value = C);
3001
3025
  }), A(() => I.value, (C, V) => {
3002
3026
  const ne = C || {}, ae = V || {};
3003
3027
  JSON.stringify(ne) !== JSON.stringify(ae) && t.emit("resize", {
@@ -3009,73 +3033,73 @@ const ke = /* @__PURE__ */ q({
3009
3033
  const C = document.querySelectorAll(".farris-modal").length;
3010
3034
  (!C || C - 1 <= 0) && document.body.classList.remove("modal-open"), j.value && j.value.classList.remove("show");
3011
3035
  }
3012
- const te = T(() => (o.value ? document.body.classList.add("modal-open") : H(), o.value)), We = T(() => {
3036
+ const te = R(() => (o.value ? document.body.classList.add("modal-open") : H(), o.value)), $e = R(() => {
3013
3037
  const C = {
3014
3038
  modal: !0,
3015
3039
  "farris-modal": !0,
3016
3040
  fade: !0
3017
3041
  };
3018
3042
  return C["f-modal-fitContent"] = !!d.value, C.show = !!te.value, C;
3019
- }), Oe = T(() => {
3043
+ }), Oe = R(() => {
3020
3044
  var ne;
3021
3045
  const C = {
3022
3046
  "modal-dialog": !0
3023
3047
  }, V = (ne = c.value) == null ? void 0 : ne.split(" ");
3024
3048
  return V == null || V.reduce((ae, Qe) => (ae[Qe] = !0, ae), C), C;
3025
- }), Ae = T(() => ({
3049
+ }), Ae = R(() => ({
3026
3050
  position: "absolute",
3027
3051
  top: `${(window.innerHeight - a.value) / 2}px`,
3028
3052
  left: `${(window.innerWidth - n.value) / 2}px`,
3029
3053
  width: `${n.value}px`,
3030
3054
  height: d.value ? "auto" : `${a.value}px`
3031
- })), je = T(() => ({
3055
+ })), je = R(() => ({
3032
3056
  "modal-content": !0,
3033
3057
  "modal-content-has-header": v.value
3034
- })), Ve = T(() => {
3058
+ })), Ve = R(() => {
3035
3059
  const C = {
3036
3060
  display: v.value ? "" : "none"
3037
3061
  };
3038
3062
  return C["pointer-events"] = x.value ? "auto" : "none", C;
3039
- }), ze = T(() => ({
3063
+ }), ze = R(() => ({
3040
3064
  "f-icon": !0,
3041
3065
  modal_maximize: !0,
3042
- modalrevert: N.value
3043
- })), He = T(() => ({
3066
+ modalrevert: P.value
3067
+ })), He = R(() => ({
3044
3068
  "modal-body": !0,
3045
3069
  "f-utils-flex-column": h.value === "iframe"
3046
3070
  }));
3047
3071
  function Ne() {
3048
3072
  return {};
3049
3073
  }
3050
- const Pe = T(() => {
3074
+ const Pe = R(() => {
3051
3075
  const C = {
3052
3076
  textAlgin: M.value
3053
3077
  }, V = Ne();
3054
3078
  return Object.assign(C, V);
3055
3079
  });
3056
- function be(C) {
3057
- if (C.stopPropagation(), N.value) {
3058
- N.value = !1, k();
3080
+ function ge(C) {
3081
+ if (C.stopPropagation(), P.value) {
3082
+ P.value = !1, k();
3059
3083
  return;
3060
3084
  }
3061
- B(), N.value = !0;
3085
+ T(), P.value = !0;
3062
3086
  }
3063
3087
  async function Ge(C, V) {
3064
3088
  C.handle && await C.handle(V, C) && t.emit("closed", V);
3065
3089
  }
3066
3090
  function qe(C) {
3067
- C.width && (n.value = C.width), C.height && (a.value = C.height), C.buttons && (S.value = C.buttons), C.title && (w.value = C.title);
3091
+ C.width && (n.value = C.width), C.height && (a.value = C.height), C.buttons && (g.value = C.buttons), C.title && (S.value = C.title);
3068
3092
  }
3069
3093
  let se = null, re = null;
3070
- J(() => {
3071
- O.value && !L.value && (L.value = O.value.parentElement, z.value = L.value, $(D.value, O.value, z.value)), te.value && document.body.classList.add("modal-open"), se = wa(e, t), re = Sa(e, t);
3072
- }), Me(() => {
3094
+ Q(() => {
3095
+ O.value && !L.value && (L.value = O.value.parentElement, z.value = L.value, W(F.value, O.value, z.value)), te.value && document.body.classList.add("modal-open"), se = wa(e, t), re = Sa(e, t);
3096
+ }), Ce(() => {
3073
3097
  H(), E && E(), se && se.remove(), re && re.remove();
3074
3098
  }), t.expose({
3075
3099
  modalElementRef: O,
3076
3100
  updateModalOptions: qe,
3077
- close: W,
3078
- maxDialog: be
3101
+ close: B,
3102
+ maxDialog: ge
3079
3103
  });
3080
3104
  function Ue() {
3081
3105
  return i("ul", null, [f.value && i("li", {
@@ -3083,14 +3107,14 @@ const ke = /* @__PURE__ */ q({
3083
3107
  }, [i("span", {
3084
3108
  class: "f-icon modal_minimize"
3085
3109
  }, null)]), u.value && i("li", {
3086
- onClick: be,
3110
+ onClick: ge,
3087
3111
  class: "f-btn-icon f-bare",
3088
3112
  style: "pointer-events: auto;"
3089
3113
  }, [i("span", {
3090
3114
  class: ze.value
3091
3115
  }, null)]), m.value && i("li", {
3092
3116
  class: "f-btn-icon f-bare",
3093
- onClick: (C) => W(C, !1),
3117
+ onClick: (C) => B(C, !1),
3094
3118
  style: "pointer-events: auto;"
3095
3119
  }, [i("span", {
3096
3120
  class: "f-icon modal_close"
@@ -3100,7 +3124,7 @@ const ke = /* @__PURE__ */ q({
3100
3124
  return i("div", {
3101
3125
  class: "modal-footer",
3102
3126
  style: Pe.value
3103
- }, [S.value && S.value.map((C) => i("button", {
3127
+ }, [g.value && g.value.map((C) => i("button", {
3104
3128
  name: C.name,
3105
3129
  type: "button",
3106
3130
  class: C.class + (C.iconClass ? " btn-icontext" : ""),
@@ -3113,7 +3137,7 @@ const ke = /* @__PURE__ */ q({
3113
3137
  }
3114
3138
  function Ye() {
3115
3139
  return i("div", {
3116
- ref: D,
3140
+ ref: F,
3117
3141
  class: "modal-header",
3118
3142
  style: Ve.value
3119
3143
  }, [i("div", {
@@ -3123,7 +3147,7 @@ const ke = /* @__PURE__ */ q({
3123
3147
  style: "margin-right: 8px"
3124
3148
  }, null), i("span", {
3125
3149
  class: "modal-title-label"
3126
- }, [w.value])]), i("div", {
3150
+ }, [S.value])]), i("div", {
3127
3151
  class: "actions"
3128
3152
  }, [Ue()])]);
3129
3153
  }
@@ -3140,7 +3164,7 @@ const ke = /* @__PURE__ */ q({
3140
3164
  default: () => {
3141
3165
  var C, V;
3142
3166
  return [i("div", {
3143
- class: We.value,
3167
+ class: $e.value,
3144
3168
  style: "display: block",
3145
3169
  ref: j,
3146
3170
  onClick: Je
@@ -3158,14 +3182,14 @@ const ke = /* @__PURE__ */ q({
3158
3182
  class: "f-utils-fill",
3159
3183
  width: "100%",
3160
3184
  frameborder: "0",
3161
- src: b.value
3162
- }, null)]), p.value && Xe()]), !d.value && R.value && O.value && X(O.value)])])];
3185
+ src: w.value
3186
+ }, null)]), p.value && Xe()]), !d.value && D.value && O.value && Y(O.value)])])];
3163
3187
  }
3164
3188
  })]
3165
3189
  });
3166
3190
  }
3167
3191
  });
3168
- function $e(e) {
3192
+ function We(e) {
3169
3193
  if (e.content && e.content.render)
3170
3194
  return e.content.render;
3171
3195
  if (e.render && typeof e.render == "function")
@@ -3176,24 +3200,24 @@ function Ca(e) {
3176
3200
  t.style.display = "contents";
3177
3201
  const n = lt({
3178
3202
  setup(a, o) {
3179
- Me(() => {
3203
+ Ce(() => {
3180
3204
  document.body.removeChild(t);
3181
3205
  });
3182
3206
  const r = l(), c = l(e.class || ""), d = l(!!e.showButtons), v = l(!!e.showHeader), s = l(e.showCloseButton == null ? !0 : e.showCloseButton), m = l(!0), u = l(e.title || ""), f = e.acceptCallback || (() => {
3183
3207
  }), h = e.rejectCallback || (() => {
3184
- }), b = e.closedCallback || ((R) => {
3185
- }), M = e.resizeHandle || ((R) => {
3186
- }), g = $e(e), w = (R) => {
3187
- m.value = !1, n.unmount(), b(R);
3208
+ }), w = e.closedCallback || ((D) => {
3209
+ }), M = e.resizeHandle || ((D) => {
3210
+ }), b = We(e), S = (D) => {
3211
+ m.value = !1, n.unmount(), w(D);
3188
3212
  };
3189
- return J(() => {
3213
+ return Q(() => {
3190
3214
  }), o.expose({
3191
3215
  modalRef: r
3192
3216
  }), () => i(ke, {
3193
3217
  ref: r,
3194
3218
  class: c.value,
3195
3219
  modelValue: m.value,
3196
- "onUpdate:modelValue": (R) => m.value = R,
3220
+ "onUpdate:modelValue": (D) => m.value = D,
3197
3221
  title: u.value,
3198
3222
  width: e.width,
3199
3223
  height: e.height,
@@ -3205,24 +3229,24 @@ function Ca(e) {
3205
3229
  onAccept: f,
3206
3230
  onCancel: h,
3207
3231
  fitContent: e.fitContent == null ? !0 : e.fitContent,
3208
- onClosed: w,
3232
+ onClosed: S,
3209
3233
  onResize: M
3210
3234
  }, {
3211
- default: () => [g && g(n)]
3235
+ default: () => [b && b(n)]
3212
3236
  });
3213
3237
  }
3214
3238
  });
3215
3239
  return document.body.appendChild(t), n.mount(t), n;
3216
3240
  }
3217
- class ye {
3241
+ class he {
3218
3242
  constructor(t) {
3219
- Q(this, "appContext", null);
3220
- Q(this, "modalRef", l());
3221
- Q(this, "activeModalIndex", l(0));
3222
- Q(this, "modalRefs", {});
3223
- Q(this, "isUseEscCloseModal", l(!1));
3224
- Q(this, "activeModalInstance", T(() => this.modalRefs[this.activeModalIndex.value]));
3225
- this.appContext = t ? t._context : null;
3243
+ N(this, "appContext", null);
3244
+ N(this, "modalRef", l());
3245
+ N(this, "activeModalIndex", l(0));
3246
+ N(this, "modalRefs", {});
3247
+ N(this, "isUseEscCloseModal", l(!1));
3248
+ N(this, "activeModalInstance", R(() => this.modalRefs[this.activeModalIndex.value]));
3249
+ this.app = t, this.appContext = t ? t._context : null;
3226
3250
  }
3227
3251
  getCurrentModal() {
3228
3252
  return this.activeModalInstance.value;
@@ -3244,30 +3268,30 @@ class ye {
3244
3268
  showHeader: !0
3245
3269
  }, t)), o = l(!0), r = a.value.acceptCallback || (() => {
3246
3270
  }), c = a.value.rejectCallback || (() => {
3247
- }), d = a.value.closedCallback || ((w, R) => {
3248
- }), v = a.value.resizeHandle || ((w) => {
3271
+ }), d = a.value.closedCallback || ((S, D) => {
3272
+ }), v = a.value.resizeHandle || ((S) => {
3249
3273
  });
3250
3274
  let s;
3251
- const m = $e(a.value), u = (w) => {
3275
+ const m = We(a.value), u = (S) => {
3252
3276
  var L;
3253
3277
  o.value = !1;
3254
- const R = (L = w == null ? void 0 : w.target) == null ? void 0 : L.classList.contains("modal_close");
3255
- d(w, this.isUseEscCloseModal.value ? "esc" : R ? "icon" : "button");
3256
- }, f = (w) => {
3257
- u(w), s && fe(() => {
3278
+ const D = (L = S == null ? void 0 : S.target) == null ? void 0 : L.classList.contains("modal_close");
3279
+ d(S, this.isUseEscCloseModal.value ? "esc" : D ? "icon" : "button");
3280
+ }, f = (S) => {
3281
+ u(S), s && fe(() => {
3258
3282
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], ce(null, n), s = null, this.modalRef.value = null, this.modalRefs) {
3259
- const R = Object.keys(this.modalRefs);
3260
- R.length > 0 ? this.activeModalIndex.value = Math.max(...R) : this.activeModalIndex.value = 0;
3283
+ const D = Object.keys(this.modalRefs).map((L) => Number(L));
3284
+ D.length > 0 ? this.activeModalIndex.value = Math.max(...D) : this.activeModalIndex.value = 0;
3261
3285
  }
3262
3286
  this.isUseEscCloseModal.value = !1;
3263
3287
  });
3264
- }, h = (w) => {
3265
- var R;
3266
- this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((R = this.activeModalInstance.value) == null || R.close(w == null ? void 0 : w.event));
3267
- }, b = () => i(ke, Ie({
3288
+ }, h = (S) => {
3289
+ var D;
3290
+ this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((D = this.activeModalInstance.value) == null || D.close(S == null ? void 0 : S.event));
3291
+ }, w = () => i(ke, Me({
3268
3292
  ref: this.modalRef,
3269
3293
  modelValue: o.value,
3270
- "onUpdate:modelValue": (w) => o.value = w
3294
+ "onUpdate:modelValue": (S) => o.value = S
3271
3295
  }, a.value, {
3272
3296
  onAccept: r,
3273
3297
  onCancel: c,
@@ -3275,19 +3299,19 @@ class ye {
3275
3299
  onResize: v,
3276
3300
  onEsc: h
3277
3301
  }), {
3278
- default: () => [m && m()]
3302
+ default: () => [m && m(this.app)]
3279
3303
  });
3280
- return s = ((w) => {
3281
- const R = ot(b, w);
3282
- return R.appContext = this.appContext, ce(R, n), R;
3304
+ return s = ((S) => {
3305
+ const D = ot(w, S);
3306
+ return D.appContext = this.appContext, ce(D, n), D;
3283
3307
  })({
3284
3308
  ...a.value
3285
3309
  // 'onUpdate:modelValue': onUpdateModelValue,
3286
3310
  }), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
3287
- update: (w) => {
3311
+ update: (S) => {
3288
3312
  a.value = {
3289
3313
  ...a.value,
3290
- ...w
3314
+ ...S
3291
3315
  }, s && ce(it(s, {
3292
3316
  ...a
3293
3317
  }), n);
@@ -3298,98 +3322,97 @@ class ye {
3298
3322
  }
3299
3323
  }
3300
3324
  function Ma(e, t, n) {
3301
- var W;
3302
- function a() {
3303
- }
3304
- const o = "", r = "", c = l();
3305
- function d() {
3325
+ var j;
3326
+ const a = "", o = "", r = l();
3327
+ function c() {
3306
3328
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
3307
3329
  }
3308
- function v() {
3330
+ function d() {
3309
3331
  return !1;
3310
3332
  }
3311
- function s() {
3333
+ function v() {
3312
3334
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
3313
3335
  }
3314
- function m() {
3336
+ function s() {
3315
3337
  return (t == null ? void 0 : t.schema.componentType) === "frame";
3316
3338
  }
3317
- function u(F) {
3318
- if (!F || !F.value)
3339
+ function m(B) {
3340
+ if (!B || !B.value)
3319
3341
  return null;
3320
- if (F.value.schema && F.value.schema.type === "component")
3321
- return F.value;
3322
- const S = l(F == null ? void 0 : F.value.parent), y = u(S);
3323
- return y || null;
3342
+ if (B.value.schema && B.value.schema.type === "component")
3343
+ return B.value;
3344
+ const $ = l(B == null ? void 0 : B.value.parent), g = m($);
3345
+ return g || null;
3324
3346
  }
3325
- function f(F = t) {
3326
- const { componentInstance: S, designerItemElementRef: y } = F;
3327
- return !S || !S.value ? null : S.value.canMove ? y : f(F.parent);
3347
+ function u(B = t) {
3348
+ const { componentInstance: $, designerItemElementRef: g } = B;
3349
+ return !$ || !$.value ? null : $.value.canMove ? g : u(B.parent);
3328
3350
  }
3329
- function h(F) {
3351
+ function f(B) {
3330
3352
  return !!n;
3331
3353
  }
3332
- function b() {
3354
+ function h() {
3333
3355
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
3334
3356
  }
3335
- function M() {
3357
+ function w() {
3336
3358
  }
3337
- function g(F, S) {
3359
+ function M(B, $) {
3338
3360
  }
3339
- function w(F, S) {
3340
- const { componentType: y } = F;
3341
- let p = ve(y, F, S);
3342
- const D = y.toLowerCase().replace("-", "_");
3343
- return p && !p.id && p.type === y && (p.id = `${D}_${Math.random().toString().slice(2, 6)}`), p;
3361
+ function b(B, $) {
3362
+ const { componentType: g } = B;
3363
+ let y = Ee(g, B, $);
3364
+ const p = g.toLowerCase().replace(/-/g, "_");
3365
+ return y && !y.id && y.type === g && (y.id = `${p}_${Math.random().toString().slice(2, 6)}`), y;
3344
3366
  }
3345
- function R(F, S) {
3346
- const y = String(F.getAttribute("data-controltype")), p = F.getAttribute("data-feature"), D = p ? JSON.parse(p) : {};
3347
- D.parentComponentInstance = c.value;
3348
- let O = ve(y, D);
3349
- const N = y.toLowerCase().replace("-", "_");
3350
- return O && !O.id && O.type === y && (O.id = `${N}_${Math.random().toString().slice(2, 6)}`), O;
3367
+ function S(B) {
3351
3368
  }
3352
- function L(F) {
3369
+ function D(...B) {
3353
3370
  }
3354
- function j(...F) {
3371
+ function L() {
3372
+ t != null && t.schema.contents && t.schema.contents.map((B) => {
3373
+ var y;
3374
+ let $ = B.id;
3375
+ B.type === "component-ref" && ($ = B.component);
3376
+ const g = e.value.querySelector(`#${$}-design-item`);
3377
+ (y = g == null ? void 0 : g.componentInstance) != null && y.value.onRemoveComponent && g.componentInstance.value.onRemoveComponent();
3378
+ });
3355
3379
  }
3356
- return c.value = {
3357
- canMove: d(),
3358
- canSelectParent: v(),
3359
- canDelete: s(),
3360
- canNested: !m(),
3380
+ return r.value = {
3381
+ canMove: c(),
3382
+ canSelectParent: d(),
3383
+ canDelete: v(),
3384
+ canNested: !s(),
3361
3385
  contents: t == null ? void 0 : t.schema.contents,
3362
3386
  elementRef: e,
3363
- parent: (W = t == null ? void 0 : t.parent) == null ? void 0 : W.componentInstance,
3387
+ parent: (j = t == null ? void 0 : t.parent) == null ? void 0 : j.componentInstance,
3364
3388
  schema: t == null ? void 0 : t.schema,
3365
- styles: o,
3366
- designerClass: r,
3367
- canAccepts: h,
3368
- getBelongedComponentInstance: u,
3369
- getDraggableDesignItemElement: f,
3370
- getDraggingDisplayText: b,
3371
- getPropConfig: j,
3372
- getDragScopeElement: M,
3373
- onAcceptMovedChildElement: g,
3374
- onAcceptNewChildElement: R,
3375
- onChildElementMovedOut: L,
3376
- addNewChildComponentSchema: w,
3377
- updateDragAndDropRules: a,
3389
+ styles: a,
3390
+ designerClass: o,
3391
+ canAccepts: f,
3392
+ getBelongedComponentInstance: m,
3393
+ getDraggableDesignItemElement: u,
3394
+ getDraggingDisplayText: h,
3395
+ getPropConfig: D,
3396
+ getDragScopeElement: w,
3397
+ onAcceptMovedChildElement: M,
3398
+ onChildElementMovedOut: S,
3399
+ addNewChildComponentSchema: b,
3378
3400
  triggerBelongedComponentToMoveWhenMoved: l(!1),
3379
- triggerBelongedComponentToDeleteWhenDeleted: l(!1)
3380
- }, c;
3401
+ triggerBelongedComponentToDeleteWhenDeleted: l(!1),
3402
+ onRemoveComponent: L
3403
+ }, r;
3381
3404
  }
3382
- const Ia = /* @__PURE__ */ q({
3405
+ const Ia = /* @__PURE__ */ U({
3383
3406
  name: "FResponseLayoutEditorSettingDesign",
3384
- props: he,
3407
+ props: me,
3385
3408
  emits: [],
3386
3409
  setup(e, t) {
3387
- const n = l(e.initialState), a = l(e.width), o = l(e.height), r = l(), c = Ce("design-item-context"), d = Ma(r, c);
3388
- J(() => {
3410
+ const n = l(e.initialState), a = l(e.width), o = l(e.height), r = l(), c = Se("design-item-context"), d = Ma(r, c);
3411
+ Q(() => {
3389
3412
  r.value.componentInstance = d;
3390
3413
  }), t.expose(d.value);
3391
3414
  function v() {
3392
- const s = ye.show({
3415
+ const s = he.show({
3393
3416
  // title: '响应式列宽编辑器',
3394
3417
  render: () => i(ie, {
3395
3418
  initialState: n,
@@ -3425,7 +3448,7 @@ const Ia = /* @__PURE__ */ q({
3425
3448
  class: "f-column-width-setting-button-name"
3426
3449
  }, [i("span", {
3427
3450
  class: "f-column-width-setting-button-center"
3428
- }, [G("高级设置")])])]);
3451
+ }, [q("高级设置")])])]);
3429
3452
  }
3430
3453
  }), xa = {
3431
3454
  width: { Type: Number, default: 400 },
@@ -3437,15 +3460,15 @@ const Ia = /* @__PURE__ */ q({
3437
3460
  exceptionInfo: { Type: Object, default: null },
3438
3461
  promptEditorType: { Type: String, default: "text-area" }
3439
3462
  };
3440
- function ge() {
3463
+ function ye() {
3441
3464
  return new DOMException("The request is not allowed", "NotAllowedError");
3442
3465
  }
3443
3466
  async function Ea(e) {
3444
3467
  if (!navigator.clipboard)
3445
- throw ge();
3468
+ throw ye();
3446
3469
  return navigator.clipboard.writeText(e);
3447
3470
  }
3448
- async function Da(e) {
3471
+ async function Ba(e) {
3449
3472
  const t = document.createElement("span");
3450
3473
  t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
3451
3474
  const n = window.getSelection(), a = window.document.createRange();
@@ -3456,27 +3479,28 @@ async function Da(e) {
3456
3479
  } finally {
3457
3480
  n == null || n.removeAllRanges(), window.document.body.removeChild(t);
3458
3481
  }
3459
- if (!o) throw ge();
3482
+ if (!o)
3483
+ throw ye();
3460
3484
  }
3461
- async function Ba(e) {
3485
+ async function Da(e) {
3462
3486
  try {
3463
3487
  await Ea(e);
3464
3488
  } catch (t) {
3465
3489
  try {
3466
- await Da(e);
3490
+ await Ba(e);
3467
3491
  } catch (n) {
3468
- throw n || t || ge();
3492
+ throw n || t || ye();
3469
3493
  }
3470
3494
  }
3471
3495
  }
3472
3496
  function Ta() {
3473
3497
  async function e(t) {
3474
- await Ba(t);
3498
+ await Da(t);
3475
3499
  }
3476
3500
  return { onCopy: e };
3477
3501
  }
3478
3502
  function La(e, t, n, a) {
3479
- const o = l(14), r = l(140), c = l(""), d = l(a.value.length), v = T(() => a.value), s = T(() => ({
3503
+ const o = l(14), r = l(140), c = l(""), d = l(a.value.length), v = R(() => a.value), s = R(() => ({
3480
3504
  "font-size": `${o.value}px`,
3481
3505
  height: "100%"
3482
3506
  }));
@@ -3510,7 +3534,7 @@ function Ra(e, t, n, a) {
3510
3534
  function Fa() {
3511
3535
  const e = l(!1), t = l("复制成功");
3512
3536
  return {
3513
- feedbackStyle: T(() => {
3537
+ feedbackStyle: R(() => {
3514
3538
  const a = {
3515
3539
  position: "absolute",
3516
3540
  left: "50%",
@@ -3537,31 +3561,31 @@ function ka(e, t) {
3537
3561
  const n = t.getEditorRender(e.promptEditorType);
3538
3562
  return () => n && n();
3539
3563
  }
3540
- function $a(e) {
3541
- const t = l(3), n = l(480), a = T(() => !!e.value && !!e.value.date), o = T(() => `发生时间 : ${e.value && e.value.date || ""}`), r = T(() => !!e.value && !!e.value.detail), c = T(() => {
3542
- const g = `${n.value}px`;
3564
+ function Wa(e) {
3565
+ const t = l(3), n = l(480), a = R(() => !!e.value && !!e.value.date), o = R(() => `发生时间 : ${e.value && e.value.date || ""}`), r = R(() => !!e.value && !!e.value.detail), c = R(() => {
3566
+ const b = `${n.value}px`;
3543
3567
  return {
3544
3568
  overflow: "hidden",
3545
3569
  "text-overflow": "ellipsis",
3546
3570
  display: "-webkit-box",
3547
3571
  "-webkit-box-orient": "vertical",
3548
3572
  "-webkit-line-clamp": t.value,
3549
- "max-height": g
3573
+ "max-height": b
3550
3574
  };
3551
- }), d = T(() => e.value && e.value.detail || ""), v = T(() => !0), s = l(!1), m = l("展开"), u = l("收起"), f = T(() => {
3552
- const g = {
3575
+ }), d = R(() => e.value && e.value.detail || ""), v = R(() => !0), s = l(!1), m = l("展开"), u = l("收起"), f = R(() => {
3576
+ const b = {
3553
3577
  display: "block",
3554
3578
  color: "#2A87FF"
3555
3579
  };
3556
- return g["text-align"] = s.value ? "" : "right", g;
3580
+ return b["text-align"] = s.value ? "" : "right", b;
3557
3581
  });
3558
- function h(g, w) {
3582
+ function h(b, S) {
3559
3583
  s.value = !s.value, t.value = s.value ? 20 : 3;
3560
3584
  }
3561
- function b(g) {
3585
+ function w(b) {
3562
3586
  return h();
3563
3587
  }
3564
- function M(g) {
3588
+ function M(b) {
3565
3589
  return h();
3566
3590
  }
3567
3591
  return () => i("div", {
@@ -3570,33 +3594,33 @@ function $a(e) {
3570
3594
  id: "exception_error_msg",
3571
3595
  ref: "exceptionMessageRef",
3572
3596
  style: c.value
3573
- }, [G("详细信息 : "), i("span", {
3597
+ }, [q("详细信息 : "), i("span", {
3574
3598
  innerHTML: d.value
3575
3599
  }, null)]), v.value && i("span", {
3576
3600
  style: f.value
3577
3601
  }, [s.value && i("span", {
3578
- onClick: b,
3602
+ onClick: w,
3579
3603
  style: "cursor: pointer;"
3580
3604
  }, [u.value]), !s.value && i("span", {
3581
3605
  onClick: M,
3582
3606
  style: "cursor: pointer;"
3583
3607
  }, [m.value])])]);
3584
3608
  }
3585
- function Wa(e) {
3609
+ function $a(e) {
3586
3610
  return () => i("p", {
3587
3611
  class: "toast-msg-detail",
3588
3612
  innerHTML: e.value
3589
3613
  }, null);
3590
3614
  }
3591
3615
  function Oa(e, t, n, a) {
3592
- const o = l(e.exceptionInfo), r = T(() => {
3616
+ const o = l(e.exceptionInfo), r = R(() => {
3593
3617
  const f = {
3594
3618
  "f-icon": !0
3595
3619
  }, h = `f-icon-${t.value}`;
3596
3620
  return f[h] = !0, f;
3597
- }), c = T(() => n.value || o.value && o.value.message), d = T(() => a.value), v = T(() => !!a.value), s = T(() => !!o.value);
3621
+ }), c = R(() => n.value || o.value && o.value.message), d = R(() => a.value), v = R(() => !!a.value), s = R(() => !!o.value);
3598
3622
  function m() {
3599
- return s.value ? $a(o) : v.value ? Wa(d) : () => null;
3623
+ return s.value ? Wa(o) : v.value ? $a(d) : () => null;
3600
3624
  }
3601
3625
  const u = m();
3602
3626
  return () => i(ue, null, [i("div", {
@@ -3619,7 +3643,7 @@ function Aa(e, t, n) {
3619
3643
  date: "",
3620
3644
  message: "",
3621
3645
  detail: ""
3622
- }), v = T(() => d.value && d.value.detail || "");
3646
+ }), v = R(() => d.value && d.value.detail || "");
3623
3647
  function s(m) {
3624
3648
  a(v.value).catch((u) => {
3625
3649
  r.value = "复制失败";
@@ -3637,23 +3661,23 @@ function Aa(e, t, n) {
3637
3661
  }, [c.value])]);
3638
3662
  }
3639
3663
  function ja(e, t, n, a) {
3640
- const o = l(e.type), r = l([]), c = l(e.exceptionInfo), d = l(e.okButtonText), v = l(e.cancelButtonText), s = l(!0), m = l(!0), u = T(() => !!(r.value && r.value.length)), f = T(() => c.value && c.value.date && c.value.message && c.value.detail), h = T(() => !(r.value && r.value.length) && (d.value || v.value)), b = T(() => m.value && d.value), M = T(() => s.value && v.value), g = Aa(e, n, a);
3641
- function w(L) {
3664
+ const o = l(e.type), r = l([]), c = l(e.exceptionInfo), d = l(e.okButtonText), v = l(e.cancelButtonText), s = l(!0), m = l(!0), u = R(() => !!(r.value && r.value.length)), f = R(() => c.value && c.value.date && c.value.message && c.value.detail), h = R(() => !(r.value && r.value.length) && (d.value || v.value)), w = R(() => m.value && d.value), M = R(() => s.value && v.value), b = Aa(e, n, a);
3665
+ function S(L) {
3642
3666
  o.value === "question" && t.emit("reject"), t.emit("close");
3643
3667
  }
3644
- function R(L) {
3668
+ function D(L) {
3645
3669
  o.value === "question" && t.emit("accept"), t.emit("close");
3646
3670
  }
3647
3671
  return () => i("div", {
3648
3672
  class: "modal-footer"
3649
- }, [f.value && g(), h.value && M.value && i("button", {
3673
+ }, [f.value && b(), h.value && M.value && i("button", {
3650
3674
  type: "button",
3651
3675
  class: "btn btn-secondary btn-lg",
3652
- onClick: w
3653
- }, [v.value]), h.value && b.value && i("button", {
3676
+ onClick: S
3677
+ }, [v.value]), h.value && w.value && i("button", {
3654
3678
  type: "button",
3655
3679
  class: "btn btn-primary btn-lg",
3656
- onClick: R
3680
+ onClick: D
3657
3681
  }, [d.value]), u.value && r.value.length && r.value.map((L) => i("button", {
3658
3682
  type: "button",
3659
3683
  onClick: L.handle,
@@ -3662,21 +3686,21 @@ function ja(e, t, n, a) {
3662
3686
  class: L.iconClass
3663
3687
  }, null), L.text]))]);
3664
3688
  }
3665
- const oe = /* @__PURE__ */ q({
3689
+ const oe = /* @__PURE__ */ U({
3666
3690
  name: "FMessageBox",
3667
3691
  props: xa,
3668
3692
  emits: ["accept", "reject", "close"],
3669
3693
  setup(e, t) {
3670
- const n = l(e.type), a = l(e.title), o = l(e.detail), r = T(() => {
3671
- const g = {
3694
+ const n = l(e.type), a = l(e.title), o = l(e.detail), r = R(() => {
3695
+ const b = {
3672
3696
  "modal-tips": !0,
3673
3697
  "d-flex": !0,
3674
3698
  "flex-row": !0
3675
- }, w = `messager-type-${n.value}`;
3676
- return g[w] = !0, g;
3677
- }), c = T(() => {
3678
- const g = {};
3679
- return n.value === "prompt" ? g.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (g.padding = "0.5rem 1.5rem 1rem 1.5rem"), g;
3699
+ }, S = `messager-type-${n.value}`;
3700
+ return b[S] = !0, b;
3701
+ }), c = R(() => {
3702
+ const b = {};
3703
+ return n.value === "prompt" ? b.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (b.padding = "0.5rem 1.5rem 1rem 1.5rem"), b;
3680
3704
  }), d = Ta(), v = Ra(e, n, a, o), s = Fa(), {
3681
3705
  feedbackStyle: m,
3682
3706
  feedbackMessage: u
@@ -3694,38 +3718,37 @@ const oe = /* @__PURE__ */ q({
3694
3718
  return Oa(e, n, a, o);
3695
3719
  }
3696
3720
  }
3697
- const b = h(), M = ja(e, t, d, s);
3721
+ const w = h(), M = ja(e, t, d, s);
3698
3722
  return () => i("div", {
3699
3723
  class: "farris-messager"
3700
3724
  }, [i("section", {
3701
3725
  class: r.value,
3702
3726
  style: c.value
3703
- }, [b()]), M(), f()]);
3727
+ }, [w()]), M(), f()]);
3704
3728
  }
3705
3729
  });
3706
- class Y {
3730
+ class J {
3707
3731
  static show(t) {
3708
- let n = new ye();
3709
- const a = Z({
3732
+ const n = Z({
3710
3733
  ...t
3711
- }), o = !1, r = a.type === "error" || a.type === "prompt", c = a.type === "error" ? "错误提示" : a.type === "prompt" && a.title || "", d = a.acceptCallback || (() => {
3712
- }), v = a.rejectCallback || (() => {
3734
+ }), a = !1, o = n.type === "error" || n.type === "prompt", r = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", c = n.acceptCallback || (() => {
3735
+ }), d = n.rejectCallback || (() => {
3713
3736
  });
3714
- let s = null;
3737
+ let v = null, s = new he(v);
3715
3738
  const m = () => {
3716
- s && (s == null || s.destroy(), n = null);
3739
+ v && (v == null || v.destroy(), s = null);
3717
3740
  };
3718
- s = n == null ? void 0 : n.open({
3741
+ v = s == null ? void 0 : s.open({
3719
3742
  class: "modal-message modal-message-type-info",
3720
- title: c,
3721
- showButtons: o,
3722
- showHeader: r,
3723
- width: a.width || 400,
3743
+ title: r,
3744
+ showButtons: a,
3745
+ showHeader: o,
3746
+ width: n.width || 400,
3724
3747
  fitContent: !0,
3725
3748
  showMaxButton: !1,
3726
- render: () => i(oe, Ie(a, {
3727
- onAccept: d,
3728
- onReject: v,
3749
+ render: () => i(oe, Me(n, {
3750
+ onAccept: c,
3751
+ onReject: d,
3729
3752
  onClose: m
3730
3753
  }), null)
3731
3754
  });
@@ -3738,7 +3761,7 @@ class Y {
3738
3761
  okButtonText: "知道了",
3739
3762
  cancelButtonText: ""
3740
3763
  });
3741
- Y.show(a);
3764
+ J.show(a);
3742
3765
  }
3743
3766
  static warning(t, n) {
3744
3767
  const a = Z({
@@ -3748,7 +3771,7 @@ class Y {
3748
3771
  okButtonText: "知道了",
3749
3772
  cancelButtonText: ""
3750
3773
  });
3751
- Y.show(a);
3774
+ J.show(a);
3752
3775
  }
3753
3776
  static success(t, n) {
3754
3777
  const a = Z({
@@ -3758,7 +3781,7 @@ class Y {
3758
3781
  okButtonText: "关闭",
3759
3782
  cancelButtonText: ""
3760
3783
  });
3761
- Y.show(a);
3784
+ J.show(a);
3762
3785
  }
3763
3786
  static error(t, n, a) {
3764
3787
  const o = Z({
@@ -3772,7 +3795,7 @@ class Y {
3772
3795
  detail: n
3773
3796
  }
3774
3797
  });
3775
- Y.show(o);
3798
+ J.show(o);
3776
3799
  }
3777
3800
  static prompt(t, n) {
3778
3801
  const a = Z({
@@ -3782,7 +3805,7 @@ class Y {
3782
3805
  okButtonText: "确定",
3783
3806
  cancelButtonText: "取消"
3784
3807
  });
3785
- Y.show(a);
3808
+ J.show(a);
3786
3809
  }
3787
3810
  static question(t, n, a, o) {
3788
3811
  const r = Z({
@@ -3794,15 +3817,15 @@ class Y {
3794
3817
  acceptCallback: a,
3795
3818
  rejectCallback: o
3796
3819
  });
3797
- Y.show(r);
3820
+ J.show(r);
3798
3821
  }
3799
3822
  }
3800
3823
  oe.install = (e) => {
3801
- e.component(oe.name, oe), e.provide("FMessageBoxService", Y);
3824
+ e.component(oe.name, oe), e.provide("FMessageBoxService", J);
3802
3825
  };
3803
- const de = /* @__PURE__ */ q({
3826
+ const de = /* @__PURE__ */ U({
3804
3827
  name: "FResponseLayoutEditorSetting",
3805
- props: he,
3828
+ props: me,
3806
3829
  emits: ["change"],
3807
3830
  setup(e, t) {
3808
3831
  const n = l(e.initialState), a = l(e.width), o = l(e.height);
@@ -3818,10 +3841,10 @@ const de = /* @__PURE__ */ q({
3818
3841
  function d() {
3819
3842
  if (!n.value.defaultState || !n.value.importData) {
3820
3843
  const v = n.value.message || "只可以在响应式表单组件中调整响应式布局配置";
3821
- Y.info(v, "");
3844
+ J.info(v, "");
3822
3845
  return;
3823
3846
  }
3824
- ye.show({
3847
+ he.show({
3825
3848
  render: (v) => i(ie, {
3826
3849
  initialState: n,
3827
3850
  width: a.value,
@@ -3845,21 +3868,54 @@ const de = /* @__PURE__ */ q({
3845
3868
  class: "f-column-width-setting-button-name"
3846
3869
  }, [i("span", {
3847
3870
  class: "f-column-width-setting-button-center"
3848
- }, [G("高级设置")])])]);
3871
+ }, [q("高级设置")])])]);
3849
3872
  }
3850
- }), Ga = {
3873
+ });
3874
+ class Ga {
3875
+ constructor() {
3876
+ /** 控件标题 */
3877
+ N(this, "label", "");
3878
+ /** 控件id */
3879
+ N(this, "id", "");
3880
+ /** 每个控件占用的栅格数 */
3881
+ N(this, "columnInSM", 12);
3882
+ N(this, "columnInMD", 6);
3883
+ N(this, "columnInLG", 3);
3884
+ N(this, "columnInEL", 2);
3885
+ /** 每个控件占用的列数 */
3886
+ N(this, "displayWidthInSM", 1);
3887
+ N(this, "displayWidthInMD", 1);
3888
+ N(this, "displayWidthInLG", 1);
3889
+ N(this, "displayWidthInEL", 1);
3890
+ /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
3891
+ N(this, "displayColumnCountAtBreakPoint", "md");
3892
+ /** 控件所在行,传0即可-----编辑器内部使用 */
3893
+ N(this, "tagRow", 0);
3894
+ /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
3895
+ N(this, "showTopBorder", 0);
3896
+ /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
3897
+ N(this, "group", 1);
3898
+ /** 控件是否符合标准的class配置(设计器用的) */
3899
+ N(this, "isSupportedClass", !0);
3900
+ /** 控件所在分组id(设计器用的) */
3901
+ N(this, "fieldSetId", "");
3902
+ }
3903
+ }
3904
+ const qa = {
3851
3905
  install(e) {
3852
3906
  e.component(ie.name, ie), e.component(de.name, de);
3853
3907
  },
3854
3908
  register(e, t, n, a) {
3855
- e["response-layout-editor-setting"] = de, t["response-layout-editor-setting"] = Se;
3909
+ e["response-layout-editor-setting"] = de, t["response-layout-editor-setting"] = we;
3856
3910
  },
3857
3911
  registerDesigner(e, t, n) {
3858
- e["response-layout-editor-setting"] = Ia, t["response-layout-editor-setting"] = Se;
3912
+ e["response-layout-editor-setting"] = Ia, t["response-layout-editor-setting"] = we;
3859
3913
  }
3860
3914
  };
3861
3915
  export {
3916
+ Ga as ResponseFormLayoutContext,
3862
3917
  ie as ResponseLayoutEditor,
3863
- Ga as default,
3918
+ de as ResponseLayoutEditorSetting,
3919
+ qa as default,
3864
3920
  ct as responseLayoutEditorProps
3865
3921
  };