@farris/ui-vue 1.2.8 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,103 +1,103 @@
1
- var Re = Object.defineProperty;
2
- var Oe = (n, e, t) => e in n ? Re(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var O = (n, e, t) => Oe(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as z, ref as x, computed as F, watch as G, createVNode as h, createTextVNode as Q, getCurrentInstance as ye, onMounted as H, onUnmounted as re, inject as V, provide as Ne, onBeforeUnmount as $e, withModifiers as _e } from "vue";
5
- import { cloneDeep as Fe } from "lodash-es";
6
- import Le from "../response-toolbar/index.esm.js";
7
- import { useDesignerInnerComponent as ve } from "../designer-canvas/index.esm.js";
8
- import { withInstall as Ve } from "../common/index.esm.js";
9
- const ie = {}, Ce = {};
10
- function ae(n) {
11
- const { properties: e, title: t } = n, r = Object.keys(e).reduce((u, g) => (u[g] = e[g].type === "object" && e[g].properties ? ae(e[g]) : Fe(e[g].default), u), {});
12
- return r.id = `${t}-${Date.now()}`, r;
1
+ var Ne = Object.defineProperty;
2
+ var _e = (n, e, t) => e in n ? Ne(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var O = (n, e, t) => _e(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { defineComponent as z, ref as M, computed as F, watch as G, createVNode as b, createTextVNode as Q, getCurrentInstance as Ce, onMounted as H, onUnmounted as ie, inject as V, provide as Fe, onBeforeUnmount as Le, withModifiers as Ve } from "vue";
5
+ import { isPlainObject as ge, cloneDeep as we } from "lodash-es";
6
+ import We from "../response-toolbar/index.esm.js";
7
+ import { getCustomClass as Y, withInstall as Ue } from "../common/index.esm.js";
8
+ import { useDesignerInnerComponent as Pe } from "../designer-canvas/index.esm.js";
9
+ const ae = {}, Te = {};
10
+ function ce(n) {
11
+ const { properties: e, title: t, ignore: s } = n, c = s && Array.isArray(s), g = Object.keys(e).reduce((d, P) => ((!c || !s.find((S) => S == P)) && (d[P] = e[P].type === "object" && e[P].properties ? ce(e[P]) : we(e[P].default)), d), {});
12
+ return (!c || !s.find((d) => d == "id")) && (g.id = `${t}-${Date.now()}`), g;
13
13
  }
14
- function U(n, e = {}) {
15
- const t = ie[n];
16
- if (t) {
17
- let r = ae(t);
18
- const u = Ce[n];
19
- return r = u ? u({ getSchemaByType: U }, r, e) : r, r;
14
+ function U(n, e = {}, t) {
15
+ const s = ae[n];
16
+ if (s) {
17
+ let c = ce(s);
18
+ const g = Te[n];
19
+ return c = g ? g({ getSchemaByType: U }, c, e, t) : c, c;
20
20
  }
21
21
  return null;
22
22
  }
23
- function We(n, e) {
24
- const t = ae(e);
25
- return Object.keys(n).reduce((r, u) => (r[u] && typeof r[u] == "object" ? Object.assign(r[u], n[u]) : r[u] = n[u], r), t), t;
23
+ function qe(n, e) {
24
+ const t = ce(e);
25
+ return Object.keys(n).reduce((s, c) => (s[c] && ge(s[c]) && ge(n[c]) ? Object.assign(s[c], n[c]) : s[c] = n[c], s), t), t;
26
26
  }
27
- function Ue(n, e) {
28
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, u) => {
29
- if (e.has(u)) {
30
- const g = e.get(u);
27
+ function He(n, e) {
28
+ return Object.keys(n).filter((s) => n[s] != null).reduce((s, c) => {
29
+ if (e.has(c)) {
30
+ const g = e.get(c);
31
31
  if (typeof g == "string")
32
- r[g] = n[u];
32
+ s[g] = n[c];
33
33
  else {
34
- const v = g(u, n[u], n);
35
- Object.assign(r, v);
34
+ const d = g(c, n[c], n);
35
+ Object.assign(s, d);
36
36
  }
37
37
  } else
38
- r[u] = n[u];
39
- return r;
38
+ s[c] = n[c];
39
+ return s;
40
40
  }, {});
41
41
  }
42
- function qe(n, e, t = /* @__PURE__ */ new Map()) {
43
- const r = We(n, e);
44
- return Ue(r, t);
42
+ function ze(n, e, t = /* @__PURE__ */ new Map()) {
43
+ const s = qe(n, e);
44
+ return He(s, t);
45
45
  }
46
- function He(n = {}) {
47
- function e(b, T, l, a) {
48
- if (typeof l == "number")
49
- return a[b].length === l;
50
- if (typeof l == "object") {
51
- const d = Object.keys(l)[0], i = l[d];
52
- if (d === "not")
53
- return Number(a[b].length) !== Number(i);
54
- if (d === "moreThan")
55
- return Number(a[b].length) >= Number(i);
56
- if (d === "lessThan")
57
- return Number(a[b].length) <= Number(i);
46
+ function Ge(n = {}) {
47
+ function e(y, T, p, i) {
48
+ if (typeof p == "number")
49
+ return i[y].length === p;
50
+ if (typeof p == "object") {
51
+ const f = Object.keys(p)[0], l = p[f];
52
+ if (f === "not")
53
+ return Number(i[y].length) !== Number(l);
54
+ if (f === "moreThan")
55
+ return Number(i[y].length) >= Number(l);
56
+ if (f === "lessThan")
57
+ return Number(i[y].length) <= Number(l);
58
58
  }
59
59
  return !1;
60
60
  }
61
- function t(b, T, l, a) {
62
- return a[b] && a[b].propertyValue && String(a[b].propertyValue.value) === String(l);
61
+ function t(y, T, p, i) {
62
+ return i[y] && i[y].propertyValue && String(i[y].propertyValue.value) === String(p);
63
63
  }
64
- const r = /* @__PURE__ */ new Map([
64
+ const s = /* @__PURE__ */ new Map([
65
65
  ["length", e],
66
66
  ["getProperty", t]
67
67
  ]);
68
- Object.keys(n).reduce((b, T) => (b.set(T, n[T]), b), r);
69
- function u(b, T) {
70
- const l = b;
71
- return typeof T == "number" ? [{ target: l, operator: "length", param: null, value: Number(T) }] : typeof T == "boolean" ? [{ target: l, operator: "getProperty", param: b, value: !!T }] : typeof T == "object" ? Object.keys(T).map((a) => {
72
- if (a === "length")
73
- return { target: l, operator: "length", param: null, value: T[a] };
74
- const d = a, i = T[a];
75
- return { target: l, operator: "getProperty", param: d, value: i };
68
+ Object.keys(n).reduce((y, T) => (y.set(T, n[T]), y), s);
69
+ function c(y, T) {
70
+ const p = y;
71
+ return typeof T == "number" ? [{ target: p, operator: "length", param: null, value: Number(T) }] : typeof T == "boolean" ? [{ target: p, operator: "getProperty", param: y, value: !!T }] : typeof T == "object" ? Object.keys(T).map((i) => {
72
+ if (i === "length")
73
+ return { target: p, operator: "length", param: null, value: T[i] };
74
+ const f = i, l = T[i];
75
+ return { target: p, operator: "getProperty", param: f, value: l };
76
76
  }) : [];
77
77
  }
78
- function g(b) {
79
- return Object.keys(b).reduce((l, a) => {
80
- const d = u(a, b[a]);
81
- return l.push(...d), l;
78
+ function g(y) {
79
+ return Object.keys(y).reduce((p, i) => {
80
+ const f = c(i, y[i]);
81
+ return p.push(...f), p;
82
82
  }, []);
83
83
  }
84
- function v(b, T) {
85
- if (r.has(b.operator)) {
86
- const l = r.get(b.operator);
87
- return l && l(b.target, b.param, b.value, T) || !1;
84
+ function d(y, T) {
85
+ if (s.has(y.operator)) {
86
+ const p = s.get(y.operator);
87
+ return p && p(y.target, y.param, y.value, T) || !1;
88
88
  }
89
89
  return !1;
90
90
  }
91
- function D(b, T) {
92
- return g(b).reduce((d, i) => d && v(i, T), !0);
91
+ function P(y, T) {
92
+ return g(y).reduce((f, l) => f && d(l, T), !0);
93
93
  }
94
- function E(b, T) {
95
- const l = Object.keys(b), a = l.includes("allOf"), d = l.includes("anyOf"), i = a || d, j = (i ? b[i ? a ? "allOf" : "anyOf" : "allOf"] : [b]).map((P) => D(P, T));
96
- return a ? !j.includes(!1) : j.includes(!0);
94
+ function S(y, T) {
95
+ const p = Object.keys(y), i = p.includes("allOf"), f = p.includes("anyOf"), l = i || f, j = (l ? y[l ? i ? "allOf" : "anyOf" : "allOf"] : [y]).map((D) => P(D, T));
96
+ return i ? !j.includes(!1) : j.includes(!0);
97
97
  }
98
- return { parseValueSchema: E };
98
+ return { parseValueSchema: S };
99
99
  }
100
- const Z = {
100
+ const K = {
101
101
  button: { type: "button", name: "按钮", icon: "Button" },
102
102
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
103
103
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -134,25 +134,39 @@ const Z = {
134
134
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
135
135
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
136
136
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
137
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
138
- }, we = {}, ze = {};
139
- He();
140
- function ce(n, e, t = /* @__PURE__ */ new Map(), r = (v, D, E) => D, u = {}, g = (v) => v) {
141
- return ie[e.title] = e, Ce[e.title] = r, we[e.title] = u, ze[e.title] = g, (v = {}) => {
142
- const D = qe(v, e, t), E = Object.keys(n).reduce((b, T) => (b[T] = n[T].default, b), {});
143
- return Object.assign(E, D);
137
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
138
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
139
+ }, De = {}, Je = {};
140
+ Ge();
141
+ function le(n, e, t = /* @__PURE__ */ new Map(), s = (d, P, S) => P, c = {}, g = (d) => d) {
142
+ return ae[e.title] = e, Te[e.title] = s, De[e.title] = c, Je[e.title] = g, (d = {}) => {
143
+ const P = ze(d, e, t), S = Object.keys(n).reduce((y, T) => (y[T] = n[T].default, y), {});
144
+ return Object.assign(S, P);
144
145
  };
145
146
  }
146
- function Ge(n, e) {
147
+ function Se(n, e) {
147
148
  return { customClass: e.class, customStyle: e.style };
148
149
  }
149
- function Je(n, e) {
150
+ function Qe(n, e) {
150
151
  return { buttons: e.buttons };
151
152
  }
152
- const Qe = /* @__PURE__ */ new Map([
153
- ["appearance", Ge],
154
- ["toolbar", Je]
155
- ]), Xe = "https://json-schema.org/draft/2020-12/schema", Ye = "https://farris-design.gitee.io/page-header.schema.json", Ze = "page-header", Ke = "A Farris Container Component", et = "object", tt = {
153
+ function Xe() {
154
+ function n(e, t) {
155
+ var P;
156
+ const s = (P = e.toolbar) == null ? void 0 : P.buttons;
157
+ if (!s || s.length < 1)
158
+ return null;
159
+ const [c, g] = t.payloads, d = s.find((S) => S.id === g);
160
+ return d ? d.onClick || d.click : null;
161
+ }
162
+ return {
163
+ resolve: n
164
+ };
165
+ }
166
+ const Ye = /* @__PURE__ */ new Map([
167
+ ["appearance", Se],
168
+ ["toolbar", Qe]
169
+ ]), Ze = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-design.gitee.io/page-header.schema.json", et = "page-header", tt = "A Farris Container Component", nt = "object", ot = {
156
170
  id: {
157
171
  description: "The unique identifier for a Page Header",
158
172
  type: "string"
@@ -260,18 +274,18 @@ const Qe = /* @__PURE__ */ new Map([
260
274
  type: "boolean",
261
275
  default: !1
262
276
  }
263
- }, nt = {
264
- $schema: Xe,
265
- $id: Ye,
266
- title: Ze,
267
- description: Ke,
268
- type: et,
269
- properties: tt
277
+ }, rt = {
278
+ $schema: Ze,
279
+ $id: Ke,
280
+ title: et,
281
+ description: tt,
282
+ type: nt,
283
+ properties: ot
270
284
  };
271
- function ot(n, e, t) {
285
+ function st(n, e, t) {
272
286
  return e.title = "标题", e;
273
287
  }
274
- const le = {
288
+ const pe = {
275
289
  /** 组件自定义样式 */
276
290
  customClass: { type: String, default: "" },
277
291
  /** 是否显示图标 */
@@ -300,204 +314,204 @@ const le = {
300
314
  prePaginationDisabled: { type: Boolean, default: !0 },
301
315
  /** 向后翻页是否禁用 */
302
316
  nextPaginationDisabled: { type: Boolean, default: !1 }
303
- }, st = Object.assign({}, le, {
317
+ }, it = Object.assign({}, pe, {
304
318
  componentId: { type: String, default: "" }
305
- }), fe = ce(le, nt, Qe, ot), ne = /* @__PURE__ */ z({
319
+ }), me = le(pe, rt, Ye, st), at = Xe(), oe = /* @__PURE__ */ z({
306
320
  name: "FPageHeader",
307
- props: le,
321
+ props: pe,
308
322
  emits: ["Click", "PrePaginationClick", "NextPaginationClick"],
309
323
  setup(n, e) {
310
- const t = x(n.buttons), r = (P, A) => {
311
- e.emit("Click", P, A);
324
+ const t = M(n.buttons), s = (D, A) => {
325
+ e.emit("Click", D, A);
312
326
  };
313
- function u(P, A) {
314
- P && A && A.split(" ").reduce((y, f) => (y[f] = !0, y), P);
327
+ function c(D, A) {
328
+ D && A && A.split(" ").reduce((v, m) => (v[m] = !0, v), D);
315
329
  }
316
330
  const g = F(() => {
317
- const P = {
331
+ const D = {
318
332
  "f-page-header": !0
319
333
  };
320
- return u(P, n.customClass), P;
321
- }), v = F(() => {
322
- const P = {
334
+ return c(D, n.customClass), D;
335
+ }), d = F(() => {
336
+ const D = {
323
337
  "f-title-icon": !0
324
338
  };
325
- return u(P, n.iconClass), P;
326
- }), D = F(() => {
327
- const P = {
339
+ return c(D, n.iconClass), D;
340
+ }), P = F(() => {
341
+ const D = {
328
342
  "f-icon": !0
329
343
  };
330
- return u(P, n.icon), P;
331
- }), E = F(() => {
332
- const P = {
344
+ return c(D, n.icon), D;
345
+ }), S = F(() => {
346
+ const D = {
333
347
  "f-title": !0
334
348
  };
335
- return u(P, n.titleContentClass), P;
336
- }), b = F(() => {
337
- const P = {
349
+ return c(D, n.titleContentClass), D;
350
+ }), y = F(() => {
351
+ const D = {
338
352
  "f-content": !0
339
353
  };
340
- return u(P, n.contentClass), P;
354
+ return c(D, n.contentClass), D;
341
355
  }), T = F(() => {
342
- const P = {
356
+ const D = {
343
357
  "f-content": !0
344
358
  };
345
- return u(P, n.downContentClass), P;
346
- }), l = F(() => ({
359
+ return c(D, n.downContentClass), D;
360
+ }), p = F(() => ({
347
361
  "f-icon f-icon-arrow-w": !0,
348
362
  "f-state-disabled": n.prePaginationDisabled
349
- })), a = F(() => ({
363
+ })), i = F(() => ({
350
364
  "f-icon f-icon-arrow-e": !0,
351
365
  "f-state-disabled": n.nextPaginationDisabled
352
366
  }));
353
- function d(P) {
354
- n.prePaginationDisabled || e.emit("PrePaginationClick", P);
367
+ function f(D) {
368
+ n.prePaginationDisabled || e.emit("PrePaginationClick", D);
355
369
  }
356
- function i(P) {
357
- n.nextPaginationDisabled || e.emit("NextPaginationClick", P);
370
+ function l(D) {
371
+ n.nextPaginationDisabled || e.emit("NextPaginationClick", D);
358
372
  }
359
373
  function C() {
360
- return e.slots.titleContent ? h("div", {
361
- class: E.value
362
- }, [Q(" "), e.slots.titleContent()]) : h("div", {
374
+ return e.slots.titleContent ? b("div", {
375
+ class: S.value
376
+ }, [Q(" "), e.slots.titleContent()]) : b("div", {
363
377
  class: "f-title"
364
- }, [n.showIcon && n.icon ? h("span", {
365
- class: v.value
366
- }, [h("i", {
367
- class: D.value
368
- }, null)]) : "", h("h4", {
378
+ }, [n.showIcon && n.icon ? b("span", {
379
+ class: d.value
380
+ }, [b("i", {
381
+ class: P.value
382
+ }, null)]) : "", b("h4", {
369
383
  class: "f-title-text"
370
- }, [n.title]), n.subTitle ? h("h5", {
384
+ }, [n.title]), n.subTitle ? b("h5", {
371
385
  class: "f-title-subtitle"
372
- }, [n.subTitle]) : "", n.showPagination ? h("div", {
386
+ }, [n.subTitle]) : "", n.showPagination ? b("div", {
373
387
  class: "f-title-pagination"
374
- }, [h("span", {
375
- class: l.value,
376
- onClick: d
377
- }, null), h("span", {
378
- class: a.value,
379
- onClick: i
388
+ }, [b("span", {
389
+ class: p.value,
390
+ onClick: f
391
+ }, null), b("span", {
392
+ class: i.value,
393
+ onClick: l
380
394
  }, null)]) : ""]);
381
395
  }
382
396
  function w() {
383
- return e.slots.content ? h("div", {
384
- class: b.value
397
+ return e.slots.content ? b("div", {
398
+ class: y.value
385
399
  }, [Q(" "), e.slots.content()]) : "";
386
400
  }
387
401
  function j() {
388
402
  if (n.buttons && n.buttons.length > 0)
389
- return h(Le, {
403
+ return b(We, {
390
404
  customClass: n.buttonClass,
391
405
  items: t.value,
392
- onClick: r
406
+ onClick: s
393
407
  }, null);
394
408
  }
395
- function R() {
396
- return e.slots.downContent ? h("div", {
409
+ function I() {
410
+ return e.slots.downContent ? b("div", {
397
411
  class: T.value
398
412
  }, [Q(" "), e.slots.downContent()]) : "";
399
413
  }
400
- return G(() => n.buttons, (P) => {
401
- t.value = P;
414
+ return G(() => n.buttons, (D) => {
415
+ t.value = D;
402
416
  }, {
403
417
  deep: !0
404
- }), () => h("div", {
418
+ }), () => b("div", {
405
419
  class: g.value
406
- }, [h("nav", {
420
+ }, [b("nav", {
407
421
  class: "f-page-header-base"
408
- }, [C(), w(), j()]), R()]);
422
+ }, [C(), w(), j()]), I()]);
409
423
  }
410
424
  });
411
- function rt(n, e, t) {
412
- var N;
413
- function r() {
425
+ function ct(n, e, t) {
426
+ var $;
427
+ function s() {
414
428
  t != null && t.resolveComponentContext && t.resolveComponentContext();
415
429
  }
416
- r();
417
- const u = t && t.getStyles && t.getStyles() || "", g = t && t.getDesignerClass && t.getDesignerClass() || "", v = x();
418
- function D() {
430
+ s();
431
+ const c = t && t.getStyles && t.getStyles() || "", g = t && t.getDesignerClass && t.getDesignerClass() || "", d = M();
432
+ function P() {
419
433
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
420
434
  }
421
- function E() {
435
+ function S() {
422
436
  return !1;
423
437
  }
424
- function b() {
438
+ function y() {
425
439
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
426
440
  }
427
441
  function T() {
428
442
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
429
443
  }
430
- function l(y) {
431
- if (!y || !y.value)
444
+ function p(v) {
445
+ if (!v || !v.value)
432
446
  return null;
433
- if (y.value.schema && y.value.schema.type === "component")
434
- return y.value;
435
- const f = x(y == null ? void 0 : y.value.parent), S = l(f);
436
- return S || null;
447
+ if (v.value.schema && v.value.schema.type === "component")
448
+ return v.value;
449
+ const m = M(v == null ? void 0 : v.value.parent), x = p(m);
450
+ return x || null;
437
451
  }
438
- function a(y = e) {
439
- const { componentInstance: f, designerItemElementRef: S } = y;
440
- return !f || !f.value ? null : f.value.canMove ? S : a(y.parent);
452
+ function i(v = e) {
453
+ const { componentInstance: m, designerItemElementRef: x } = v;
454
+ return !m || !m.value ? null : m.value.canMove ? x : i(v.parent);
441
455
  }
442
- function d(y) {
443
- return !!t && t.canAccepts(y);
456
+ function f(v) {
457
+ return !!t && t.canAccepts(v);
444
458
  }
445
- function i() {
459
+ function l() {
446
460
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
447
461
  }
448
462
  function C() {
449
463
  }
450
- function w(y, f) {
451
- f && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(f);
464
+ function w(v, m) {
465
+ m && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(m);
452
466
  }
453
- function j(y) {
454
- const { componentType: f } = y;
455
- let S = U(f, y);
456
- t && t.onResolveNewComponentSchema && (S = t.onResolveNewComponentSchema(y, S));
457
- const k = f.toLowerCase().replace("-", "_");
458
- return S && !S.id && S.type === f && (S.id = `${k}_${Math.random().toString().slice(2, 6)}`), S;
467
+ function j(v, m) {
468
+ const { componentType: x } = v;
469
+ let k = U(x, v, m);
470
+ t && t.onResolveNewComponentSchema && (k = t.onResolveNewComponentSchema(v, k));
471
+ const u = x.toLowerCase().replace("-", "_");
472
+ return k && !k.id && k.type === x && (k.id = `${u}_${Math.random().toString().slice(2, 6)}`), k;
459
473
  }
460
- function R(y, f) {
461
- const S = String(y.getAttribute("data-controltype")), k = y.getAttribute("data-feature"), p = k ? JSON.parse(k) : {};
462
- p.parentComponentInstance = v.value;
463
- let s = U(S, p);
464
- t && t.onAcceptNewChildElement && (s = t.onAcceptNewChildElement(y, f, s));
465
- const o = S.toLowerCase().replace("-", "_");
466
- return s && !s.id && s.type === S && (s.id = `${o}_${Math.random().toString().slice(2, 6)}`), s;
474
+ function I(v, m) {
475
+ const x = String(v.getAttribute("data-controltype")), k = v.getAttribute("data-feature"), u = k ? JSON.parse(k) : {};
476
+ u.parentComponentInstance = d.value;
477
+ let r = U(x, u);
478
+ t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(v, m, r));
479
+ const o = x.toLowerCase().replace("-", "_");
480
+ return r && !r.id && r.type === x && (r.id = `${o}_${Math.random().toString().slice(2, 6)}`), r;
467
481
  }
468
- function P(y) {
482
+ function D(v) {
469
483
  }
470
- function A(...y) {
484
+ function A(...v) {
471
485
  if (t && t.getPropsConfig)
472
- return t.getPropsConfig(...y);
486
+ return t.getPropsConfig(...v);
473
487
  }
474
- return v.value = {
475
- canMove: D(),
476
- canSelectParent: E(),
477
- canDelete: b(),
488
+ return d.value = {
489
+ canMove: P(),
490
+ canSelectParent: S(),
491
+ canDelete: y(),
478
492
  canNested: !T(),
479
493
  contents: e == null ? void 0 : e.schema.contents,
480
494
  elementRef: n,
481
- parent: (N = e == null ? void 0 : e.parent) == null ? void 0 : N.componentInstance,
495
+ parent: ($ = e == null ? void 0 : e.parent) == null ? void 0 : $.componentInstance,
482
496
  schema: e == null ? void 0 : e.schema,
483
- styles: u,
497
+ styles: c,
484
498
  designerClass: g,
485
- canAccepts: d,
486
- getBelongedComponentInstance: l,
487
- getDraggableDesignItemElement: a,
488
- getDraggingDisplayText: i,
499
+ canAccepts: f,
500
+ getBelongedComponentInstance: p,
501
+ getDraggableDesignItemElement: i,
502
+ getDraggingDisplayText: l,
489
503
  getPropConfig: A,
490
504
  getDragScopeElement: C,
491
505
  onAcceptMovedChildElement: w,
492
- onAcceptNewChildElement: R,
493
- onChildElementMovedOut: P,
506
+ onAcceptNewChildElement: I,
507
+ onChildElementMovedOut: D,
494
508
  addNewChildComponentSchema: j,
495
- updateDragAndDropRules: r,
496
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || x(!1),
497
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || x(!1)
498
- }, v;
509
+ updateDragAndDropRules: s,
510
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
511
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1)
512
+ }, d;
499
513
  }
500
- class K {
514
+ class ee {
501
515
  constructor(e, t) {
502
516
  O(this, "componentId");
503
517
  O(this, "viewModelId");
@@ -514,8 +528,8 @@ class K {
514
528
  type: "object",
515
529
  categories: {}
516
530
  });
517
- var r;
518
- this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
531
+ var s;
532
+ this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((s = this.formSchemaUtils) == null ? void 0 : s.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
519
533
  }
520
534
  getTableInfo() {
521
535
  var e;
@@ -525,8 +539,8 @@ class K {
525
539
  const t = e.binding && e.binding.type === "Form" && e.binding.field;
526
540
  if (t) {
527
541
  if (!this.designViewModelField) {
528
- const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
529
- this.designViewModelField = r.fields.find((u) => u.id === t);
542
+ const s = this.designViewModelUtils.getDgViewModel(this.viewModelId);
543
+ this.designViewModelField = s.fields.find((c) => c.id === t);
530
544
  }
531
545
  e.updateOn = this.designViewModelField.updateOn;
532
546
  }
@@ -552,7 +566,7 @@ class K {
552
566
  type: "combo-list",
553
567
  textField: "name",
554
568
  valueField: "value",
555
- data: [{ value: e.type, name: Z[e.type].name }]
569
+ data: [{ value: e.type, name: K[e.type].name }]
556
570
  }
557
571
  }
558
572
  }
@@ -578,8 +592,21 @@ class K {
578
592
  }
579
593
  };
580
594
  }
595
+ /**
596
+ *
597
+ * @param propertyId
598
+ * @param componentInstance
599
+ * @returns
600
+ */
601
+ updateElementByParentContainer(e, t) {
602
+ const s = t && t.parent && t.parent.schema;
603
+ if (!s)
604
+ return;
605
+ const c = s.contents.findIndex((d) => d.id === e), g = we(s.contents[c]);
606
+ s.contents.splice(c, 1), s.contents.splice(c, 0, g);
607
+ }
581
608
  }
582
- class it extends K {
609
+ class lt extends ee {
583
610
  constructor(e, t) {
584
611
  super(e, t);
585
612
  }
@@ -605,7 +632,7 @@ class it extends K {
605
632
  type: "combo-list",
606
633
  textField: "value",
607
634
  valueField: "key",
608
- data: [{ key: "page-header", value: Z["page-header"].name }]
635
+ data: [{ key: "page-header", value: K["page-header"].name }]
609
636
  }
610
637
  },
611
638
  icon: {
@@ -618,6 +645,15 @@ class it extends K {
618
645
  type: "string",
619
646
  description: "标题"
620
647
  }
648
+ },
649
+ setPropertyRelates(t, s) {
650
+ if (t)
651
+ switch (t && t.propertyID) {
652
+ case "title": {
653
+ t.needRefreshControlTree = !0;
654
+ break;
655
+ }
656
+ }
621
657
  }
622
658
  };
623
659
  }
@@ -645,7 +681,7 @@ class it extends K {
645
681
  label: "click",
646
682
  name: "点击事件"
647
683
  }
648
- ], r = this, u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t);
684
+ ], s = this, c = s.eventsEditorUtils.formProperties(e, s.viewModelId, t);
649
685
  this.propertyConfig.categories.eventsEditor = {
650
686
  title: "事件",
651
687
  hideTitle: !0,
@@ -653,7 +689,7 @@ class it extends K {
653
689
  "data-grid-component-viewmodel": {
654
690
  type: "events-editor",
655
691
  editor: {
656
- initialData: u
692
+ initialData: c
657
693
  }
658
694
  }
659
695
  },
@@ -661,38 +697,38 @@ class it extends K {
661
697
  refreshPanelAfterChanged: !0,
662
698
  tabId: "commands",
663
699
  tabName: "交互",
664
- setPropertyRelates(g, v) {
665
- const D = g.propertyValue;
666
- delete e[r.viewModelId], D && (D.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, D.events, D));
700
+ setPropertyRelates(g, d) {
701
+ const P = g.propertyValue;
702
+ delete e[s.viewModelId], P && (P.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, P.events, P));
667
703
  }
668
704
  };
669
705
  }
670
706
  }
671
- function at(n, e) {
672
- function t(D) {
707
+ function pt(n, e) {
708
+ function t(P) {
673
709
  return !1;
674
710
  }
675
- function r() {
711
+ function s() {
676
712
  return !1;
677
713
  }
678
- function u() {
714
+ function c() {
679
715
  return !1;
680
716
  }
681
717
  function g() {
682
718
  return !0;
683
719
  }
684
- function v(D) {
685
- return new it(D, e).getPropertyConfig(n);
720
+ function d(P) {
721
+ return new lt(P, e).getPropertyConfig(n);
686
722
  }
687
723
  return {
688
724
  canAccepts: t,
689
725
  hideNestedPaddingInDesginerView: g,
690
- getPropsConfig: v,
691
- checkCanDeleteComponent: r,
692
- checkCanMoveComponent: u
726
+ getPropsConfig: d,
727
+ checkCanDeleteComponent: s,
728
+ checkCanMoveComponent: c
693
729
  };
694
730
  }
695
- class Te {
731
+ class je {
696
732
  constructor(e) {
697
733
  /** 工具栏项标识 */
698
734
  O(this, "id", "");
@@ -737,8 +773,8 @@ class Te {
737
773
  "tipsText",
738
774
  "onClick"
739
775
  ];
740
- Object.keys(e).filter((r) => t.indexOf(r) > -1).forEach((r) => {
741
- this[r] = e[r];
776
+ Object.keys(e).filter((s) => t.indexOf(s) > -1).forEach((s) => {
777
+ this[s] = e[s];
742
778
  });
743
779
  }
744
780
  /** 是否可用 */
@@ -754,20 +790,20 @@ class Te {
754
790
  return this.visible ? this.width : !1;
755
791
  }
756
792
  }
757
- class ct extends Te {
793
+ class ut extends je {
758
794
  constructor(e) {
759
795
  super(e);
760
796
  }
761
797
  }
762
- function Pe() {
798
+ function xe() {
763
799
  function n(e) {
764
800
  const t = [];
765
- return e.reduce((r, u) => (u.children && u.children.length > 0 ? r.push(new J(u)) : r.push(new ct(u)), r), t), t;
801
+ return e.reduce((s, c) => (c.children && c.children.length > 0 ? s.push(new J(c)) : s.push(new ut(c)), s), t), t;
766
802
  }
767
803
  return { buildResponseToolbarItems: n };
768
804
  }
769
- const { buildResponseToolbarItems: lt } = Pe();
770
- class J extends Te {
805
+ const { buildResponseToolbarItems: dt } = xe();
806
+ class J extends je {
771
807
  constructor(t) {
772
808
  super(t);
773
809
  O(this, "placement", "");
@@ -780,19 +816,25 @@ class J extends Te {
780
816
  O(this, "split", !1);
781
817
  O(this, "children", []);
782
818
  O(this, "expanded", !1);
783
- const r = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
784
- Object.keys(t).filter((u) => r.indexOf(u) > -1).forEach((u) => {
785
- this[u] = t[u];
786
- }), t.children && t.children.length && (this.children = lt(t.children));
819
+ const s = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
820
+ Object.keys(t).filter((c) => s.indexOf(c) > -1).forEach((c) => {
821
+ this[c] = t[c];
822
+ }), t.children && t.children.length && (this.children = dt(t.children));
787
823
  }
788
824
  }
789
- const De = /* @__PURE__ */ new Map([
790
- ["buttons", "items"]
825
+ const ft = /* @__PURE__ */ new Map([
826
+ ["buttons", "items"],
827
+ ["appearance", Se]
828
+ ]), gt = /* @__PURE__ */ new Map([
829
+ ["appearance", mt]
791
830
  ]);
792
- function Se(n, e, t) {
831
+ function mt(n, e) {
832
+ return { class: e.class, style: e.style };
833
+ }
834
+ function Ee(n, e, t) {
793
835
  return e;
794
836
  }
795
- const pt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-design.gitee.io/response-toolbar.schema.json", dt = "response-toolbar", ft = "A Farris Toolbar Component", mt = "object", gt = {
837
+ const ht = "https://json-schema.org/draft/2020-12/schema", bt = "https://farris-design.gitee.io/response-toolbar.schema.json", yt = "response-toolbar", vt = "A Farris Toolbar Component", Ct = "object", wt = {
796
838
  id: {
797
839
  description: "The unique identifier for a Response Toolbar",
798
840
  type: "string"
@@ -825,19 +867,19 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
825
867
  type: "array",
826
868
  default: []
827
869
  }
828
- }, ht = [
870
+ }, Pt = [
829
871
  "id",
830
872
  "type",
831
873
  "buttons"
832
- ], bt = {
833
- $schema: pt,
834
- $id: ut,
835
- title: dt,
836
- description: ft,
837
- type: mt,
838
- properties: gt,
839
- required: ht
840
- }, yt = "https://json-schema.org/draft/2020-12/schema", vt = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Ct = "response-toolbar-item", wt = "A Farris Toolbar Item Component", Tt = "object", Pt = {
874
+ ], Tt = {
875
+ $schema: ht,
876
+ $id: bt,
877
+ title: yt,
878
+ description: vt,
879
+ type: Ct,
880
+ properties: wt,
881
+ required: Pt
882
+ }, Dt = "https://json-schema.org/draft/2020-12/schema", St = "https://farris-design.gitee.io/response-toolbar-item.schema.json", jt = "response-toolbar-item", xt = "A Farris Toolbar Item Component", Et = "object", Mt = {
841
883
  id: {
842
884
  description: "The unique identifier for a Response Toolbar",
843
885
  type: "string"
@@ -852,7 +894,8 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
852
894
  type: "object",
853
895
  properties: {
854
896
  class: {
855
- type: "string"
897
+ type: "string",
898
+ default: "btn-primary"
856
899
  },
857
900
  style: {
858
901
  type: "string"
@@ -860,34 +903,39 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
860
903
  },
861
904
  default: {}
862
905
  },
906
+ alignment: {
907
+ description: "对齐",
908
+ type: "string",
909
+ default: "right"
910
+ },
863
911
  text: {
864
- description: "The items of Response Toolbar.",
912
+ description: "文本",
865
913
  type: "string",
866
914
  default: "新增"
867
915
  },
868
916
  icon: {
869
- description: "The icon of response toolbar item.",
917
+ description: "图标",
870
918
  type: "string",
871
919
  default: ""
872
920
  },
873
- click: {
874
- description: "The event of response toolbar item.",
921
+ onClick: {
922
+ description: "点击事件",
875
923
  type: "string",
876
924
  default: ""
877
925
  }
878
- }, Dt = [
926
+ }, kt = [
879
927
  "id",
880
928
  "type",
881
929
  "text"
882
930
  ], se = {
883
- $schema: yt,
884
- $id: vt,
885
- title: Ct,
886
- description: wt,
887
- type: Tt,
888
- properties: Pt,
889
- required: Dt
890
- }, St = "response-toolbar-item", jt = "A Farris Container Component", Et = "object", Mt = {
931
+ $schema: Dt,
932
+ $id: St,
933
+ title: jt,
934
+ description: xt,
935
+ type: Et,
936
+ properties: Mt,
937
+ required: kt
938
+ }, At = "response-toolbar-item", Bt = "A Farris Container Component", Rt = "object", It = {
891
939
  basic: {
892
940
  title: "基本信息",
893
941
  description: "Basic Infomation",
@@ -920,12 +968,12 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
920
968
  }
921
969
  }
922
970
  }
923
- }, me = {
924
- title: St,
925
- description: jt,
926
- type: Et,
927
- categories: Mt
928
- }, pe = {
971
+ }, he = {
972
+ title: At,
973
+ description: Bt,
974
+ type: Rt,
975
+ categories: It
976
+ }, ue = {
929
977
  /** 组件自定义样式 */
930
978
  customClass: { type: String, default: "" },
931
979
  alignment: { Type: String, default: "right" },
@@ -934,771 +982,767 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
934
982
  default: []
935
983
  }
936
984
  };
937
- ie[se.title] = se;
938
- we[me.title] = me;
939
- const xt = Object.assign({}, pe, {
985
+ ae[se.title] = se;
986
+ De[he.title] = he;
987
+ const Ot = Object.assign({}, ue, {
940
988
  componentId: { type: String, default: "" }
941
- }), ue = ce(
942
- pe,
943
- bt,
944
- De,
945
- Se
946
- ), je = {
989
+ }), de = le(
990
+ ue,
991
+ Tt,
992
+ ft,
993
+ Ee
994
+ ), Me = {
947
995
  id: { type: String, default: "" },
948
996
  items: { type: Object, default: {} },
997
+ class: { type: String, default: "" },
949
998
  text: { type: String, default: "" },
950
999
  disabled: { type: Boolean, default: !1 },
951
1000
  icon: { type: String, default: "" },
952
- componentId: { type: String, default: "" }
953
- }, kt = ce(
954
- je,
1001
+ componentId: { type: String, default: "" },
1002
+ alignment: { Type: String, default: "right" }
1003
+ }, $t = le(
1004
+ Me,
955
1005
  se,
956
- De,
957
- Se
1006
+ gt,
1007
+ Ee
958
1008
  );
959
- function Ee() {
1009
+ function ke() {
960
1010
  function n(t) {
961
- const r = {
1011
+ const s = {
962
1012
  "f-icon": !0
963
1013
  };
964
1014
  if (t.icon) {
965
- const u = t.icon.trim().split(" ");
966
- u && u.length && u.reduce((g, v) => (g[v] = !0, g), r);
1015
+ const c = t.icon.trim().split(" ");
1016
+ c && c.length && c.reduce((g, d) => (g[d] = !0, g), s);
967
1017
  }
968
- return r;
1018
+ return s;
969
1019
  }
970
1020
  function e(t) {
971
1021
  return !!(t.icon && t.icon.trim());
972
1022
  }
973
1023
  return { iconClass: n, shouldShowIcon: e };
974
1024
  }
975
- function At(n) {
976
- function e(l) {
977
- const a = {
1025
+ function Nt(n) {
1026
+ function e(p) {
1027
+ const i = {
978
1028
  "dropdown-menu": !0
979
1029
  };
980
- if (l.class) {
981
- const d = l.menuClass.split(" ");
982
- d && d.length && d.reduce((i, C) => (i[C] = !0, i), a);
1030
+ if (p.class) {
1031
+ const f = p.menuClass.split(" ");
1032
+ f && f.length && f.reduce((l, C) => (l[C] = !0, l), i);
983
1033
  }
984
- return a;
1034
+ return i;
985
1035
  }
986
- function t(l) {
987
- const a = {
988
- disabled: !l.enable,
1036
+ function t(p) {
1037
+ const i = {
1038
+ disabled: !p.enable,
989
1039
  "dropdown-submenu": !0,
990
1040
  "f-rt-dropdown": !0
991
- }, d = l.dropdownClass.split(" ");
992
- return d && d.length && d.reduce((i, C) => (i[C] = !0, i), a), a;
1041
+ }, f = p.dropdownClass.split(" ");
1042
+ return f && f.length && f.reduce((l, C) => (l[C] = !0, l), i), i;
993
1043
  }
994
- function r(l) {
995
- const a = {
996
- disabled: !l.enable,
1044
+ function s(p) {
1045
+ const i = {
1046
+ disabled: !p.enable,
997
1047
  "dropdown-item": !0,
998
1048
  "f-rt-btn": !0
999
- }, d = l.class.split(" ");
1000
- return d && d.length && d.reduce((i, C) => (i[C] = !0, i), a), a;
1049
+ }, f = p.class.split(" ");
1050
+ return f && f.length && f.reduce((l, C) => (l[C] = !0, l), i), i;
1001
1051
  }
1002
- let u;
1052
+ let c;
1003
1053
  const g = /* @__PURE__ */ new Map();
1004
- function v(l, a, d) {
1054
+ function d(p, i, f) {
1005
1055
  var C;
1006
- ((C = l.target) == null ? void 0 : C.id) === a.id && l.stopPropagation();
1007
- const i = d ? d.id : "__top_item__";
1008
- if (a.children && a.children.length && (a.expanded = !a.expanded, a.expanded ? g.set(i, a) : g.delete(i)), g.has(i) && g.get(i) !== a) {
1009
- const w = g.get(i);
1056
+ ((C = p.target) == null ? void 0 : C.id) === i.id && p.stopPropagation();
1057
+ const l = f ? f.id : "__top_item__";
1058
+ if (i.children && i.children.length && (i.expanded = !i.expanded, i.expanded ? g.set(l, i) : g.delete(l)), g.has(l) && g.get(l) !== i) {
1059
+ const w = g.get(l);
1010
1060
  w && (w.expanded = !1);
1011
1061
  }
1012
1062
  }
1013
- function D(l, a) {
1014
- document.body.click(), a.enable && a.onClick(l, a.id);
1015
- }
1016
- function E(l) {
1017
- return l.children.map((a) => a.children && a.children.length ? h("li", {
1018
- class: t(a),
1019
- id: a.id,
1020
- onClick: (d) => a.enable && v(d, a, l)
1021
- }, [h("span", {
1022
- id: a.id,
1023
- class: r(a),
1024
- onMouseover: (d) => a.enable && v(d, a, l)
1025
- }, [a.text, h("i", {
1063
+ function P(p, i) {
1064
+ document.body.click(), i.enable && i.onClick(p, i.id);
1065
+ }
1066
+ function S(p) {
1067
+ return p.children.map((i) => i.children && i.children.length ? b("li", {
1068
+ class: t(i),
1069
+ id: i.id,
1070
+ onClick: (f) => i.enable && d(f, i, p)
1071
+ }, [b("span", {
1072
+ id: i.id,
1073
+ class: s(i),
1074
+ onMouseover: (f) => i.enable && d(f, i, p)
1075
+ }, [i.text, b("i", {
1026
1076
  class: "f-icon f-icon-arrow-chevron-right",
1027
1077
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1028
- }, null)]), u(a, a)]) : h("li", {
1029
- class: r(a),
1030
- id: a.id,
1031
- onClick: (d) => D(d, a),
1032
- onMouseover: (d) => a.enable && v(d, a, l)
1033
- }, [n.shouldShowIcon(a) && h("i", {
1034
- class: n.iconClass(a)
1035
- }, null), a.text]));
1036
- }
1037
- function b(l, a, d) {
1038
- const i = {
1039
- display: l.expanded ? "block" : "none",
1078
+ }, null)]), c(i, i)]) : b("li", {
1079
+ class: s(i),
1080
+ id: i.id,
1081
+ onClick: (f) => P(f, i),
1082
+ onMouseover: (f) => i.enable && d(f, i, p)
1083
+ }, [n.shouldShowIcon(i) && b("i", {
1084
+ class: n.iconClass(i)
1085
+ }, null), i.text]));
1086
+ }
1087
+ function y(p, i, f) {
1088
+ const l = {
1089
+ display: p.expanded ? "block" : "none",
1040
1090
  position: "fixed",
1041
1091
  maxWidth: "300px",
1042
1092
  width: "auto",
1043
1093
  minWidth: "120px"
1044
- }, C = document.getElementsByTagName("body")[0].getClientRects()[0].width, w = a, j = w == null ? void 0 : w.getClientRects();
1094
+ }, C = document.getElementsByTagName("body")[0].getClientRects()[0].width, w = i, j = w == null ? void 0 : w.getClientRects();
1045
1095
  if (w && j && j.length) {
1046
1096
  const {
1047
- top: R,
1048
- width: P,
1097
+ top: I,
1098
+ width: D,
1049
1099
  left: A,
1050
- right: N,
1051
- height: y
1052
- } = j[0], f = Math.ceil(y + R);
1053
- i.top = `${f}px`, i.left = `${A}px`;
1054
- const S = l.id + "_menu", k = a ? a.querySelector("#" + S) : null;
1100
+ right: $,
1101
+ height: v
1102
+ } = j[0], m = Math.ceil(v + I);
1103
+ l.top = `${m}px`, l.left = `${A}px`;
1104
+ const x = p.id + "_menu", k = i ? i.querySelector("#" + x) : null;
1055
1105
  if (k) {
1056
- i.display === "block" && (k.style.display = "block");
1057
- const p = k.getBoundingClientRect();
1058
- if (d) {
1059
- i.top = `${R - 6}px`;
1060
- const s = Math.ceil(P + A);
1061
- i.left = `${s}px`;
1106
+ l.display === "block" && (k.style.display = "block");
1107
+ const u = k.getBoundingClientRect();
1108
+ if (f) {
1109
+ l.top = `${I - 6}px`;
1110
+ const r = Math.ceil(D + A);
1111
+ l.left = `${r}px`;
1062
1112
  }
1063
- C - A - P < p.width && (i.left = `${(d ? A : N) - p.width}px`);
1113
+ C - A - D < u.width && (l.left = `${(f ? A : $) - u.width}px`);
1064
1114
  }
1065
1115
  }
1066
- return i;
1116
+ return l;
1067
1117
  }
1068
- u = function(l, a) {
1118
+ c = function(p, i) {
1069
1119
  var w, j;
1070
- const d = ye(), i = a ? a.id : l.id, C = (j = (w = d == null ? void 0 : d.exposed) == null ? void 0 : w.elementRef.value) == null ? void 0 : j.querySelector("#" + i);
1071
- return h("ul", {
1072
- class: e(l),
1073
- style: b(l, C, a),
1074
- id: l.id + "_menu"
1075
- }, [E(l)]);
1120
+ const f = Ce(), l = i ? i.id : p.id, C = (j = (w = f == null ? void 0 : f.exposed) == null ? void 0 : w.elementRef.value) == null ? void 0 : j.querySelector("#" + l);
1121
+ return b("ul", {
1122
+ class: e(p),
1123
+ style: y(p, C, i),
1124
+ id: p.id + "_menu"
1125
+ }, [S(p)]);
1076
1126
  };
1077
1127
  function T() {
1078
- g.forEach((l) => {
1079
- l.expanded = !1;
1128
+ g.forEach((p) => {
1129
+ p.expanded = !1;
1080
1130
  }), g.clear();
1081
1131
  }
1082
1132
  return {
1083
- renderDropdownMenu: u,
1133
+ renderDropdownMenu: c,
1084
1134
  clearAllDropDownMenu: T
1085
1135
  };
1086
1136
  }
1087
- function Bt(n, e) {
1088
- const t = x(n.alignment), {
1089
- renderDropdownMenu: r,
1090
- clearAllDropDownMenu: u
1091
- } = At(e);
1137
+ function _t(n, e) {
1138
+ const t = M(n.alignment), {
1139
+ renderDropdownMenu: s,
1140
+ clearAllDropDownMenu: c
1141
+ } = Nt(e);
1092
1142
  function g(T) {
1093
- const l = {
1143
+ const p = {
1094
1144
  "btn-group": !0,
1095
1145
  "f-rt-dropdown": !0,
1096
1146
  "f-btn-ml": t.value === "right",
1097
1147
  "f-btn-mr": t.value === "left"
1098
- }, a = T.dropdownClass.split(" ");
1099
- return a && a.length && a.reduce((d, i) => (d[i] = !0, d), l), l;
1148
+ }, i = T.dropdownClass.split(" ");
1149
+ return i && i.length && i.reduce((f, l) => (f[l] = !0, f), p), p;
1100
1150
  }
1101
- function v(T) {
1102
- const l = {
1151
+ function d(T) {
1152
+ const p = {
1103
1153
  btn: !0,
1104
1154
  disabled: !T.enable,
1105
1155
  "f-rt-btn": !0,
1106
1156
  "btn-icontext": !!(T.icon && T.icon.trim())
1107
1157
  };
1108
1158
  if (T.class) {
1109
- const a = T.class.split(" ");
1110
- a && a.length && a.reduce((d, i) => (d[i] = !0, d), l);
1159
+ const i = T.class.split(" ");
1160
+ i && i.length && i.reduce((f, l) => (f[l] = !0, f), p);
1111
1161
  }
1112
- return l;
1162
+ return p;
1113
1163
  }
1114
- function D(T, l) {
1164
+ function P(T, p) {
1115
1165
  T.stopPropagation();
1116
- const a = l.expanded;
1117
- document.body.click(), l.expanded = !a;
1166
+ const i = p.expanded;
1167
+ document.body.click(), p.expanded = !i;
1118
1168
  }
1119
- function E(T) {
1120
- return h("div", {
1169
+ function S(T) {
1170
+ return b("div", {
1121
1171
  id: T.id,
1122
1172
  class: g(T)
1123
- }, [h("div", {
1124
- class: v(T),
1173
+ }, [b("div", {
1174
+ class: d(T),
1125
1175
  style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
1126
- onClick: (l) => T.enable && D(l, T)
1127
- }, [e.shouldShowIcon(T) && h("i", {
1176
+ onClick: (p) => T.enable && P(p, T)
1177
+ }, [e.shouldShowIcon(T) && b("i", {
1128
1178
  class: e.iconClass(T)
1129
- }, null), h("span", null, [T.text]), h("i", {
1179
+ }, null), b("span", null, [T.text]), b("i", {
1130
1180
  class: "f-icon f-icon-arrow-chevron-down",
1131
1181
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1132
- }, null)]), r(T)]);
1182
+ }, null)]), s(T)]);
1133
1183
  }
1134
- function b() {
1135
- u();
1184
+ function y() {
1185
+ c();
1136
1186
  }
1137
1187
  return {
1138
- renderToolbarDropdown: E,
1139
- clearAllDropDown: b
1188
+ renderToolbarDropdown: S,
1189
+ clearAllDropDown: y
1140
1190
  };
1141
1191
  }
1142
1192
  const {
1143
- buildResponseToolbarItems: ge
1144
- } = Pe(), Y = /* @__PURE__ */ z({
1193
+ buildResponseToolbarItems: be
1194
+ } = xe(), Z = /* @__PURE__ */ z({
1145
1195
  name: "FResponseToolbar",
1146
- props: pe,
1196
+ props: ue,
1147
1197
  emits: ["click"],
1148
1198
  setup(n, e) {
1149
- const t = x(ge(n.items)), r = x(), u = x(), g = x(), v = x(n.alignment), D = {
1199
+ const t = M(be(n.items)), s = M(), c = M(), g = M(), d = M(n.alignment), P = {
1150
1200
  id: "__more_buttons__",
1151
1201
  text: "更多"
1152
- }, E = x(new J(D)), b = Ee(), T = F(() => E.value.children.length > 0), l = F(() => {
1153
- const f = {
1154
- "f-toolbar": !0,
1155
- "f-response-toolbar": !0,
1156
- "position-relative": !0
1157
- };
1158
- if (n.customClass) {
1159
- const S = n.customClass.split(" ");
1160
- S && S.length && S.reduce((k, p) => (k[p] = !0, k), f);
1161
- }
1162
- return f;
1163
- }), a = F(() => ({
1202
+ }, S = M(new J(P)), y = ke(), T = F(() => S.value.children.length > 0), p = F(() => Y({
1203
+ "f-toolbar": !0,
1204
+ "f-response-toolbar": !0,
1205
+ "position-relative": !0
1206
+ }, n.customClass)), i = F(() => ({
1207
+ "w-100": !0,
1164
1208
  "d-flex": !0,
1165
1209
  "flex-nowrap": !0,
1166
- "justify-content-end": v.value === "right",
1167
- "justify-content-start": v.value === "left"
1210
+ "justify-content-end": d.value === "right",
1211
+ "justify-content-start": d.value === "left"
1168
1212
  })), {
1169
- renderToolbarDropdown: d,
1170
- clearAllDropDown: i
1171
- } = Bt(n, b);
1213
+ renderToolbarDropdown: f,
1214
+ clearAllDropDown: l
1215
+ } = _t(n, y);
1172
1216
  function C() {
1173
- t.value.filter((f) => f.children && f.children.length > 0).forEach((f) => {
1174
- f.expanded = !1;
1175
- }), E.value.expanded = !1, i();
1217
+ t.value.filter((m) => m.children && m.children.length > 0).forEach((m) => {
1218
+ m.expanded = !1;
1219
+ }), S.value.expanded = !1, l();
1176
1220
  }
1177
- function w(f) {
1178
- const S = {
1221
+ function w(m) {
1222
+ const x = {
1179
1223
  btn: !0,
1180
1224
  "f-rt-btn": !0,
1181
- "f-btn-ml": v.value === "right",
1182
- "f-btn-mr": v.value === "left",
1183
- "btn-icontext": !!(f.icon && f.icon.trim())
1225
+ "f-btn-ml": d.value === "right",
1226
+ "f-btn-mr": d.value === "left",
1227
+ "btn-icontext": !!(m.icon && m.icon.trim())
1184
1228
  };
1185
- if (f.class) {
1186
- const k = f.class.split(" ");
1187
- k && k.length && k.reduce((p, s) => (p[s] = !0, p), S);
1229
+ if (m.class) {
1230
+ const k = m.class.split(" ");
1231
+ k && k.length && k.reduce((u, r) => (u[r] = !0, u), x);
1188
1232
  }
1189
- return S;
1233
+ return x;
1190
1234
  }
1191
- function j(f, S) {
1192
- document.body.click(), S.onClick(f, S.id), e.emit("click", f, S.id);
1235
+ function j(m, x) {
1236
+ document.body.click(), typeof x.onClick == "function" && x.onClick(m, x.id), e.emit("click", m, x.id);
1193
1237
  }
1194
- function R(f) {
1195
- return h("button", {
1238
+ function I(m) {
1239
+ return b("button", {
1196
1240
  type: "button",
1197
- class: w(f),
1198
- id: f.id,
1199
- disabled: !f.enable,
1200
- onClick: (S) => j(S, f)
1201
- }, [b.shouldShowIcon(f) && h("i", {
1202
- class: b.iconClass(f)
1203
- }, null), f.text]);
1241
+ class: w(m),
1242
+ id: m.id,
1243
+ disabled: !m.enable,
1244
+ onClick: (x) => j(x, m)
1245
+ }, [y.shouldShowIcon(m) && b("i", {
1246
+ class: y.iconClass(m)
1247
+ }, null), m.text]);
1204
1248
  }
1205
- const P = /* @__PURE__ */ new Map(), A = [];
1206
- function N(f) {
1207
- const S = g.value;
1208
- let k = f;
1209
- const p = Array.from(S.children), s = p[p.length - 1].id === "__more_buttons__" ? p[p.length - 1] : null;
1210
- if (s) {
1211
- const M = s.computedStyleMap().get("margin-left"), I = s.computedStyleMap().get("margin-right"), L = (M ? M.value : 0) + s.getBoundingClientRect().width + (I ? I.value : 0);
1249
+ const D = /* @__PURE__ */ new Map(), A = [];
1250
+ function $(m) {
1251
+ const x = g.value;
1252
+ let k = m;
1253
+ const u = Array.from(x.children), r = u[u.length - 1].id === "__more_buttons__" ? u[u.length - 1] : null;
1254
+ if (r) {
1255
+ const E = r.computedStyleMap().get("margin-left"), R = r.computedStyleMap().get("margin-right"), L = (E ? E.value : 0) + r.getBoundingClientRect().width + (R ? R.value : 0);
1212
1256
  k -= L;
1213
1257
  }
1214
- const o = p.filter((M) => M.id !== "__more_buttons__");
1215
- for (const M of o) {
1216
- const I = M.computedStyleMap().get("margin-left"), L = M.computedStyleMap().get("margin-right"), $ = (I ? I.value : 0) + M.getBoundingClientRect().width + (L ? L.value : 0);
1217
- k < $ ? (P.set(M.id, !0), A.push({
1218
- id: M.id,
1219
- width: $
1220
- })) : k -= $;
1258
+ const o = u.filter((E) => E.id !== "__more_buttons__");
1259
+ for (const E of o) {
1260
+ const R = E.computedStyleMap().get("margin-left"), L = E.computedStyleMap().get("margin-right"), N = (R ? R.value : 0) + E.getBoundingClientRect().width + (L ? L.value : 0);
1261
+ k < N ? (D.set(E.id, !0), A.push({
1262
+ id: E.id,
1263
+ width: N
1264
+ })) : k -= N;
1221
1265
  }
1222
1266
  if (A.length)
1223
- for (let M = A.length - 1; M >= 0; M--) {
1224
- const I = A[M].width;
1225
- if (k >= I)
1226
- k -= I, P.delete(A[M].id), A.pop();
1267
+ for (let E = A.length - 1; E >= 0; E--) {
1268
+ const R = A[E].width;
1269
+ if (k >= R)
1270
+ k -= R, D.delete(A[E].id), A.pop();
1227
1271
  else
1228
1272
  break;
1229
1273
  }
1230
- const c = Object.assign({}, E.value);
1231
- c.children = [];
1232
- const m = new J(c), B = t.value.reduce((M, I) => (P.has(I.id) && m.children.push(I), I.visible = !P.has(I.id), M.push(I), M), []);
1233
- E.value = m, t.value = B;
1274
+ const a = Object.assign({}, S.value);
1275
+ a.children = [];
1276
+ const h = new J(a), B = t.value.reduce((E, R) => (D.has(R.id) && h.children.push(R), R.visible = !D.has(R.id), E.push(R), E), []);
1277
+ S.value = h, t.value = B;
1234
1278
  }
1235
- const y = new ResizeObserver((f) => {
1236
- if (f.length) {
1237
- const k = f[0].contentRect.width, s = g.value.getBoundingClientRect().width;
1238
- (k < s || A.length) && (N(k), C());
1279
+ const v = new ResizeObserver((m) => {
1280
+ if (m.length) {
1281
+ const k = m[0].contentRect.width, r = g.value.getBoundingClientRect().width;
1282
+ (k < r || A.length) && ($(k), C());
1239
1283
  }
1240
1284
  });
1241
1285
  return H(() => {
1242
- const f = u.value;
1243
- y.observe(f), document.body.addEventListener("click", C), document.body.addEventListener("wheel", C);
1244
- }), re(() => {
1245
- y.disconnect(), document.body.removeEventListener("click", C), document.body.removeEventListener("wheel", C);
1286
+ const m = c.value;
1287
+ v.observe(m), document.body.addEventListener("click", C), document.body.addEventListener("wheel", C);
1288
+ }), ie(() => {
1289
+ v.disconnect(), document.body.removeEventListener("click", C), document.body.removeEventListener("wheel", C);
1246
1290
  }), G(() => n.items, () => {
1247
- t.value = ge(n.items);
1291
+ t.value = be(n.items);
1248
1292
  }, {
1249
1293
  deep: !0
1250
1294
  }), e.expose({
1251
- elementRef: r
1252
- }), () => h("div", {
1253
- class: l.value,
1254
- ref: r
1255
- }, [h("div", {
1256
- ref: u,
1257
- class: a.value
1258
- }, [h("div", {
1295
+ elementRef: s
1296
+ }), () => b("div", {
1297
+ class: p.value,
1298
+ ref: s
1299
+ }, [b("div", {
1300
+ ref: c,
1301
+ class: i.value
1302
+ }, [b("div", {
1259
1303
  ref: g,
1260
1304
  class: "d-inline-block f-response-content",
1261
1305
  style: "white-space: nowrap;"
1262
- }, [t.value.filter((f) => f.visible).map((f) => f.children && f.children.length > 0 ? d(f) : R(f)), T.value && d(E.value)])])]);
1306
+ }, [t.value.filter((m) => m.visible).map((m) => m.children && m.children.length > 0 ? f(m) : I(m)), T.value && f(S.value)])])]);
1263
1307
  }
1264
1308
  });
1265
- function It(n, e) {
1266
- const t = V("design-item-context"), r = V("toolbar-item-handler", () => {
1309
+ function Ft(n, e) {
1310
+ const t = V("design-item-context"), s = V("toolbar-item-handler", () => {
1267
1311
  });
1268
- function u() {
1269
- r && r();
1312
+ function c() {
1313
+ s && s();
1270
1314
  }
1271
- function g(s) {
1315
+ function g(r) {
1272
1316
  const o = {
1273
1317
  "dropdown-menu": !0
1274
1318
  };
1275
- if (s.class) {
1276
- const c = s.menuClass.split(" ");
1277
- c && c.length && c.reduce((m, B) => (m[B] = !0, m), o);
1319
+ if (r.class) {
1320
+ const a = r.menuClass.split(" ");
1321
+ a && a.length && a.reduce((h, B) => (h[B] = !0, h), o);
1278
1322
  }
1279
1323
  return o;
1280
1324
  }
1281
- function v(s) {
1325
+ function d(r) {
1282
1326
  const o = {
1283
- disabled: !s.enable,
1327
+ disabled: !r.enable,
1284
1328
  "dropdown-submenu": !0,
1285
1329
  "f-rt-dropdown": !0
1286
- }, c = s.dropdownClass.split(" ");
1287
- return c && c.length && c.reduce((m, B) => (m[B] = !0, m), o), o;
1330
+ }, a = r.dropdownClass.split(" ");
1331
+ return a && a.length && a.reduce((h, B) => (h[B] = !0, h), o), o;
1288
1332
  }
1289
- function D(s) {
1333
+ function P(r) {
1290
1334
  const o = {
1291
- disabled: !s.enable,
1335
+ disabled: !r.enable,
1292
1336
  "dropdown-item": !0,
1293
1337
  "f-rt-btn": !0,
1294
1338
  "position-relative": !0,
1295
1339
  "farris-component": !0
1296
- }, c = s.class.split(" ");
1297
- return c && c.length && c.reduce((m, B) => (m[B] = !0, m), o), o;
1340
+ }, a = r.class.split(" ");
1341
+ return a && a.length && a.reduce((h, B) => (h[B] = !0, h), o), o;
1298
1342
  }
1299
- let E;
1300
- const b = /* @__PURE__ */ new Map();
1301
- function T(s, o, c) {
1343
+ let S;
1344
+ const y = /* @__PURE__ */ new Map();
1345
+ function T(r, o, a) {
1302
1346
  var B;
1303
- ((B = s.target) == null ? void 0 : B.id) === o.id && s.stopPropagation();
1304
- const m = c ? c.id : "__top_item__";
1305
- if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? b.set(m, o) : b.delete(m)), b.has(m) && b.get(m) !== o) {
1306
- const M = b.get(m);
1307
- M && (M.expanded = !1);
1347
+ ((B = r.target) == null ? void 0 : B.id) === o.id && r.stopPropagation();
1348
+ const h = a ? a.id : "__top_item__";
1349
+ if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? y.set(h, o) : y.delete(h)), y.has(h) && y.get(h) !== o) {
1350
+ const E = y.get(h);
1351
+ E && (E.expanded = !1);
1308
1352
  }
1309
1353
  }
1310
- function l(s) {
1311
- s && (s.stopPropagation(), s.preventDefault());
1354
+ function p(r) {
1355
+ r && (r.stopPropagation(), r.preventDefault());
1312
1356
  }
1313
- function a() {
1357
+ function i() {
1314
1358
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((o) => o.classList.remove("dgComponentFocused"));
1315
- const s = document.getElementsByClassName("dgComponentSelected");
1316
- Array.from(s).forEach((o) => o.classList.remove("dgComponentSelected"));
1359
+ const r = document.getElementsByClassName("dgComponentSelected");
1360
+ Array.from(r).forEach((o) => o.classList.remove("dgComponentSelected"));
1317
1361
  }
1318
- function d(s) {
1319
- s.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1362
+ function f(r) {
1363
+ r.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1320
1364
  }
1321
- function i(s) {
1365
+ function l(r) {
1322
1366
  const {
1323
1367
  buttons: o = []
1324
1368
  } = t.schema;
1325
- let c = [];
1326
- o.forEach((M) => {
1327
- c = c.concat(M.children || []);
1369
+ let a = [];
1370
+ o.forEach((E) => {
1371
+ a = a.concat(E.children || []);
1328
1372
  });
1329
- const m = c.findIndex((M) => M.id === s), B = m === -1 ? null : c[m];
1373
+ const h = a.findIndex((E) => E.id === r), B = h === -1 ? null : a[h];
1330
1374
  return {
1331
- index: m,
1375
+ index: h,
1332
1376
  item: B
1333
1377
  };
1334
1378
  }
1335
- function C(s) {
1379
+ function C(r) {
1336
1380
  const {
1337
1381
  buttons: o = []
1338
- } = t.schema, c = o.findIndex((B) => B.id === s), m = c === -1 ? null : o[c];
1382
+ } = t.schema, a = o.findIndex((B) => B.id === r), h = a === -1 ? null : o[a];
1339
1383
  return {
1340
- index: c,
1341
- item: m
1384
+ index: a,
1385
+ item: h
1342
1386
  };
1343
1387
  }
1344
- function w(s) {
1345
- var m;
1388
+ function w(r) {
1389
+ var h;
1346
1390
  t.schema;
1347
1391
  const {
1348
1392
  index: o,
1349
- item: c
1350
- } = i(s);
1351
- (m = t == null ? void 0 : t.setupContext) == null || m.emit("selectionChange", c == null ? void 0 : c.type, c);
1393
+ item: a
1394
+ } = l(r);
1395
+ (h = t == null ? void 0 : t.setupContext) == null || h.emit("selectionChange", a == null ? void 0 : a.type, a);
1352
1396
  }
1353
- const j = function(s) {
1397
+ const j = function(r) {
1354
1398
  const {
1355
1399
  componentType: o
1356
- } = s, c = U(o, s), m = o.toLowerCase().replace("-", "_");
1357
- return c && !c.id && c.type === o && (c.id = `${m}_${Math.random().toString().slice(2, 6)}`), c;
1358
- }, R = function() {
1359
- const s = {
1400
+ } = r, a = U(o, r), h = o.toLowerCase().replace("-", "_");
1401
+ return a && !a.id && a.type === o && (a.id = `${h}_${Math.random().toString().slice(2, 6)}`), a;
1402
+ }, I = function() {
1403
+ const r = {
1360
1404
  componentType: "response-toolbar-item",
1361
1405
  parentComponentInstance: e.value,
1362
1406
  targetPosition: -1
1363
1407
  };
1364
- return j(s);
1408
+ return j(r);
1365
1409
  };
1366
- function P(s, o) {
1367
- l(s), a(), d(s), w(o.id);
1410
+ function D(r, o) {
1411
+ p(r), i(), f(r), w(o.id);
1368
1412
  }
1369
- function A(s, o, c) {
1370
- l(s);
1371
- const m = o.id, B = c && c.id, {
1372
- buttons: M = []
1413
+ function A(r, o, a) {
1414
+ p(r);
1415
+ const h = o.id, B = a && a.id, {
1416
+ buttons: E = []
1373
1417
  } = t.schema;
1374
1418
  if (!B)
1375
1419
  return;
1376
1420
  const {
1377
- index: I
1421
+ index: R
1378
1422
  } = C(B);
1379
- if (I === -1)
1423
+ if (R === -1)
1380
1424
  return;
1381
1425
  const {
1382
1426
  index: L
1383
- } = i(m);
1384
- L !== -1 && (M[I].children.splice(L, 1), u());
1427
+ } = l(h);
1428
+ L !== -1 && (E[R].children.splice(L, 1), c());
1385
1429
  }
1386
- function N(s, o, c) {
1387
- l(s);
1388
- const m = c && c.id, {
1430
+ function $(r, o, a) {
1431
+ p(r);
1432
+ const h = a && a.id, {
1389
1433
  buttons: B = []
1390
1434
  } = t.schema;
1391
- if (!m)
1435
+ if (!h)
1392
1436
  return;
1393
1437
  const {
1394
- index: M
1395
- } = C(m);
1396
- if (M === -1)
1438
+ index: E
1439
+ } = C(h);
1440
+ if (E === -1)
1397
1441
  return;
1398
- const I = R(), L = Object.assign({}, I, {
1442
+ const R = I(), L = Object.assign({}, R, {
1399
1443
  text: o.text
1400
1444
  });
1401
- B[M].children.push(L), u();
1445
+ B[E].children.push(L), c();
1402
1446
  }
1403
- function y(s, o, c) {
1404
- l(s);
1405
- const m = c && c.id, {
1447
+ function v(r, o, a) {
1448
+ p(r);
1449
+ const h = a && a.id, {
1406
1450
  buttons: B = []
1407
1451
  } = t.schema;
1408
- if (!m)
1452
+ if (!h)
1409
1453
  return;
1410
1454
  const {
1411
- index: M
1412
- } = C(m);
1413
- if (M === -1)
1455
+ index: E
1456
+ } = C(h);
1457
+ if (E === -1)
1414
1458
  return;
1415
- const I = R(), L = Object.assign({}, I, {
1459
+ const R = I(), L = Object.assign({}, R, {
1416
1460
  text: "按钮"
1417
1461
  });
1418
- B[M].children.push(L), u();
1462
+ B[E].children.push(L), c();
1419
1463
  }
1420
- function f(s, o) {
1421
- return h("div", {
1464
+ function m(r, o) {
1465
+ return b("div", {
1422
1466
  class: "component-btn-group"
1423
- }, [h("div", null, [h("div", {
1467
+ }, [b("div", null, [b("div", {
1424
1468
  role: "button",
1425
1469
  class: "btn component-settings-button",
1426
1470
  title: "删除",
1427
1471
  ref: "removeButton",
1428
1472
  style: "position:static;",
1429
- onClick: (c) => A(c, s, o)
1430
- }, [h("i", {
1473
+ onClick: (a) => A(a, r, o)
1474
+ }, [b("i", {
1431
1475
  class: "f-icon f-icon-yxs_delete"
1432
- }, null)]), h("div", {
1476
+ }, null)]), b("div", {
1433
1477
  role: "button",
1434
1478
  class: "btn component-settings-button",
1435
1479
  title: "复制",
1436
1480
  ref: "copyButton",
1437
1481
  style: "position:static;",
1438
- onClick: (c) => N(c, s, o)
1439
- }, [h("i", {
1482
+ onClick: (a) => $(a, r, o)
1483
+ }, [b("i", {
1440
1484
  class: "f-icon f-icon-yxs_copy"
1441
- }, null)]), h("div", {
1485
+ }, null)]), b("div", {
1442
1486
  role: "button",
1443
1487
  class: "btn component-settings-button",
1444
1488
  title: "新增同级",
1445
1489
  ref: "appendSame",
1446
1490
  style: "width:85px!important;padding:0 5px;position:static;",
1447
- onClick: (c) => y(c, s, o)
1448
- }, [h("i", {
1491
+ onClick: (a) => v(a, r, o)
1492
+ }, [b("i", {
1449
1493
  class: "f-icon f-icon-plus-circle text-white mr-1"
1450
- }, null), h("span", {
1494
+ }, null), b("span", {
1451
1495
  style: "font-size:13px;margin:auto"
1452
1496
  }, [Q("新增同级")])])])]);
1453
1497
  }
1454
- function S(s) {
1455
- return s.children.map((o) => o.children && o.children.length ? h("li", {
1456
- class: v(o),
1498
+ function x(r) {
1499
+ return r.children.map((o) => o.children && o.children.length ? b("li", {
1500
+ class: d(o),
1457
1501
  id: o.id,
1458
- onClick: (c) => o.enable && T(c, o, s)
1459
- }, [h("span", {
1502
+ onClick: (a) => o.enable && T(a, o, r)
1503
+ }, [b("span", {
1460
1504
  id: o.id,
1461
- class: D(o),
1462
- onMouseover: (c) => o.enable && T(c, o, s)
1463
- }, [o.text, h("i", {
1505
+ class: P(o),
1506
+ onMouseover: (a) => o.enable && T(a, o, r)
1507
+ }, [o.text, b("i", {
1464
1508
  class: "f-icon f-icon-arrow-chevron-right",
1465
1509
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1466
- }, null)]), E(o, o)]) : h("li", {
1467
- class: D(o),
1510
+ }, null)]), S(o, o)]) : b("li", {
1511
+ class: P(o),
1468
1512
  id: o.id,
1469
- onClick: (c) => P(c, o)
1470
- }, [f(o, s), n.shouldShowIcon(o) && h("i", {
1513
+ onClick: (a) => D(a, o)
1514
+ }, [m(o, r), n.shouldShowIcon(o) && b("i", {
1471
1515
  class: n.iconClass(o)
1472
1516
  }, null), o.text]));
1473
1517
  }
1474
- function k(s, o, c) {
1475
- const m = {
1476
- display: s.expanded ? "block" : "none",
1518
+ function k(r, o, a) {
1519
+ const h = {
1520
+ display: r.expanded ? "block" : "none",
1477
1521
  position: "fixed",
1478
1522
  maxWidth: "300px",
1479
1523
  width: "auto",
1480
1524
  minWidth: "120px"
1481
- }, B = document.getElementsByTagName("body")[0].getClientRects()[0].width, M = o, I = M == null ? void 0 : M.getClientRects();
1482
- if (M && I && I.length) {
1525
+ }, B = document.getElementsByTagName("body")[0].getClientRects()[0].width, E = o, R = E == null ? void 0 : E.getClientRects();
1526
+ if (E && R && R.length) {
1483
1527
  const {
1484
1528
  top: L,
1485
- width: $,
1529
+ width: N,
1486
1530
  left: _,
1487
1531
  right: W,
1488
1532
  height: q
1489
- } = I[0], ee = Math.ceil(q + L);
1490
- m.top = `${ee}px`, m.left = `${_}px`;
1491
- const Be = s.id + "_menu", te = o ? o.querySelector("#" + Be) : null;
1492
- if (te) {
1493
- m.display === "block" && (te.style.display = "block");
1494
- const de = te.getBoundingClientRect();
1495
- if (c) {
1496
- m.top = `${L - 6}px`;
1497
- const Ie = Math.ceil($ + _);
1498
- m.left = `${Ie}px`;
1533
+ } = R[0], te = Math.ceil(q + L);
1534
+ h.top = `${te}px`, h.left = `${_}px`;
1535
+ const Oe = r.id + "_menu", ne = o ? o.querySelector("#" + Oe) : null;
1536
+ if (ne) {
1537
+ h.display === "block" && (ne.style.display = "block");
1538
+ const fe = ne.getBoundingClientRect();
1539
+ if (a) {
1540
+ h.top = `${L - 6}px`;
1541
+ const $e = Math.ceil(N + _);
1542
+ h.left = `${$e}px`;
1499
1543
  }
1500
- B - _ - $ < de.width && (m.left = `${(c ? _ : W) - de.width}px`);
1544
+ B - _ - N < fe.width && (h.left = `${(a ? _ : W) - fe.width}px`);
1501
1545
  }
1502
1546
  }
1503
- return m;
1504
- }
1505
- E = function(s, o) {
1506
- var M, I;
1507
- const c = ye(), m = o ? o.id : s.id, B = (I = (M = c == null ? void 0 : c.exposed) == null ? void 0 : M.elementRef.value) == null ? void 0 : I.querySelector("#" + m);
1508
- return h("ul", {
1509
- class: g(s),
1510
- style: k(s, B, o),
1511
- id: s.id + "_menu"
1512
- }, [S(s)]);
1547
+ return h;
1548
+ }
1549
+ S = function(r, o) {
1550
+ var E, R;
1551
+ const a = Ce(), h = o ? o.id : r.id, B = (R = (E = a == null ? void 0 : a.exposed) == null ? void 0 : E.elementRef.value) == null ? void 0 : R.querySelector("#" + h);
1552
+ return b("ul", {
1553
+ class: g(r),
1554
+ style: k(r, B, o),
1555
+ id: r.id + "_menu"
1556
+ }, [x(r)]);
1513
1557
  };
1514
- function p() {
1515
- b.forEach((s) => {
1516
- s.expanded = !1;
1517
- }), b.clear();
1558
+ function u() {
1559
+ y.forEach((r) => {
1560
+ r.expanded = !1;
1561
+ }), y.clear();
1518
1562
  }
1519
1563
  return {
1520
- renderDropdownMenu: E,
1521
- clearAllDropDownMenu: p
1564
+ renderDropdownMenu: S,
1565
+ clearAllDropDownMenu: u
1522
1566
  };
1523
1567
  }
1524
- function Rt(n, e, t) {
1525
- const r = x(n.alignment), {
1526
- renderDropdownMenu: u,
1568
+ function Lt(n, e, t) {
1569
+ const s = M(n.alignment), {
1570
+ renderDropdownMenu: c,
1527
1571
  clearAllDropDownMenu: g
1528
- } = It(e, t), v = V("design-item-context"), D = V("toolbar-item-handler", () => {
1572
+ } = Ft(e, t), d = V("design-item-context"), P = V("toolbar-item-handler", () => {
1529
1573
  });
1530
- function E() {
1531
- D && D();
1574
+ function S() {
1575
+ P && P();
1532
1576
  }
1533
- function b(p) {
1534
- const s = {
1577
+ function y(u) {
1578
+ const r = {
1535
1579
  "btn-group": !0,
1536
1580
  "f-rt-dropdown": !0,
1537
- "f-btn-ml": r.value === "right",
1538
- "f-btn-mr": r.value === "left"
1539
- }, o = p.dropdownClass.split(" ");
1540
- return o && o.length && o.reduce((c, m) => (c[m] = !0, c), s), s;
1581
+ "f-btn-ml": s.value === "right",
1582
+ "f-btn-mr": s.value === "left"
1583
+ }, o = u.dropdownClass.split(" ");
1584
+ return o && o.length && o.reduce((a, h) => (a[h] = !0, a), r), r;
1541
1585
  }
1542
- function T(p) {
1543
- const s = {
1586
+ function T(u) {
1587
+ const r = {
1544
1588
  btn: !0,
1545
- disabled: !p.enable,
1589
+ disabled: !u.enable,
1546
1590
  "position-relative": !0,
1547
1591
  "farris-component": !0,
1548
1592
  "f-rt-btn": !0,
1549
- "btn-icontext": !!(p.icon && p.icon.trim())
1593
+ "btn-icontext": !!(u.icon && u.icon.trim())
1550
1594
  };
1551
- if (p.class) {
1552
- const o = p.class.split(" ");
1553
- o && o.length && o.reduce((c, m) => (c[m] = !0, c), s);
1595
+ if (u.class) {
1596
+ const o = u.class.split(" ");
1597
+ o && o.length && o.reduce((a, h) => (a[h] = !0, a), r);
1554
1598
  }
1555
- return s;
1599
+ return r;
1556
1600
  }
1557
- function l(p) {
1558
- p && (p.stopPropagation(), p.preventDefault());
1601
+ function p(u) {
1602
+ u && (u.stopPropagation(), u.preventDefault());
1559
1603
  }
1560
- function a(p, s) {
1561
- l(p);
1562
- const o = s.expanded;
1563
- document.body.click(), s.expanded = !o;
1604
+ function i(u, r) {
1605
+ p(u);
1606
+ const o = r.expanded;
1607
+ document.body.click(), r.expanded = !o;
1564
1608
  }
1565
- const d = function(p) {
1609
+ const f = function(u) {
1566
1610
  const {
1567
- componentType: s
1568
- } = p, o = U(s, p), c = s.toLowerCase().replace("-", "_");
1569
- return o && !o.id && o.type === s && (o.id = `${c}_${Math.random().toString().slice(2, 6)}`), o;
1570
- }, i = function() {
1571
- const p = {
1611
+ componentType: r
1612
+ } = u, o = U(r, u), a = r.toLowerCase().replace("-", "_");
1613
+ return o && !o.id && o.type === r && (o.id = `${a}_${Math.random().toString().slice(2, 6)}`), o;
1614
+ }, l = function() {
1615
+ const u = {
1572
1616
  componentType: "response-toolbar-item",
1573
1617
  parentComponentInstance: t.value,
1574
1618
  targetPosition: -1
1575
1619
  };
1576
- return d(p);
1620
+ return f(u);
1577
1621
  };
1578
- function C(p) {
1579
- const s = v.schema.buttons || v.schema.contents, o = s == null ? void 0 : s.findIndex((m) => m.id === p), c = o === -1 ? null : s[o];
1622
+ function C(u) {
1623
+ const r = d.schema.buttons || d.schema.contents, o = r == null ? void 0 : r.findIndex((h) => h.id === u), a = o === -1 ? null : r[o];
1580
1624
  return {
1581
1625
  index: o,
1582
- toolbarItem: c
1626
+ toolbarItem: a
1583
1627
  };
1584
1628
  }
1585
- function w(p, s) {
1586
- var I;
1629
+ function w(u, r) {
1630
+ var R;
1587
1631
  const {
1588
1632
  index: o,
1589
- toolbarItem: c
1590
- } = C(s);
1633
+ toolbarItem: a
1634
+ } = C(r);
1591
1635
  if (o === -1)
1592
1636
  return;
1593
- const m = c.text || "按钮", B = i(), M = Object.assign({}, B, {
1594
- text: m
1637
+ const h = a.text || "按钮", B = l(), E = Object.assign({}, B, {
1638
+ text: h
1595
1639
  });
1596
- (I = v.schema.buttons) == null || I.push(M), E();
1640
+ (R = d.schema.buttons) == null || R.push(E), S();
1597
1641
  }
1598
- function j(p, s) {
1642
+ function j(u, r) {
1599
1643
  const {
1600
1644
  index: o,
1601
- toolbarItem: c
1602
- } = C(s);
1645
+ toolbarItem: a
1646
+ } = C(r);
1603
1647
  if (o === -1)
1604
1648
  return;
1605
- const m = c.text || "按钮", B = i(), M = Object.assign({}, B, {
1606
- text: m
1607
- }), I = v.schema.buttons[o].children || [];
1608
- I.push(M), v.schema.buttons[o].children = I, E();
1649
+ const h = a.text || "按钮", B = l(), E = Object.assign({}, B, {
1650
+ text: h
1651
+ }), R = d.schema.buttons[o].children || [];
1652
+ R.push(E), d.schema.buttons[o].children = R, S();
1609
1653
  }
1610
- function R(p, s) {
1611
- const o = v.schema.buttons || v.schema.contents, c = o == null ? void 0 : o.findIndex((m) => m.id === s);
1612
- c !== -1 && (o.splice(c, 1), E());
1654
+ function I(u, r) {
1655
+ const o = d.schema.buttons || d.schema.contents, a = o == null ? void 0 : o.findIndex((h) => h.id === r);
1656
+ a !== -1 && (o.splice(a, 1), S());
1613
1657
  }
1614
- function P(p) {
1615
- return h("div", {
1658
+ function D(u) {
1659
+ return b("div", {
1616
1660
  class: "component-btn-group"
1617
- }, [h("div", null, [h("div", {
1661
+ }, [b("div", null, [b("div", {
1618
1662
  role: "button",
1619
1663
  class: "btn component-settings-button",
1620
1664
  title: "删除",
1621
1665
  ref: "removeButton",
1622
1666
  style: "position:static;",
1623
- onClick: (s) => R(s, p)
1624
- }, [h("i", {
1667
+ onClick: (r) => I(r, u)
1668
+ }, [b("i", {
1625
1669
  class: "f-icon f-icon-yxs_delete"
1626
- }, null)]), h("div", {
1670
+ }, null)]), b("div", {
1627
1671
  role: "button",
1628
1672
  class: "btn component-settings-button",
1629
1673
  title: "复制",
1630
1674
  ref: "copyButton",
1631
1675
  style: "position:static;",
1632
- onClick: (s) => w(s, p)
1633
- }, [h("i", {
1676
+ onClick: (r) => w(r, u)
1677
+ }, [b("i", {
1634
1678
  class: "f-icon f-icon-yxs_copy"
1635
- }, null)]), h("div", {
1679
+ }, null)]), b("div", {
1636
1680
  role: "button",
1637
1681
  class: "btn component-settings-button",
1638
1682
  title: "新增子级",
1639
1683
  ref: "appendChildButton",
1640
1684
  style: "width:85px!important;padding:0 5px;position:static;",
1641
- onClick: (s) => j(s, p)
1642
- }, [h("i", {
1685
+ onClick: (r) => j(r, u)
1686
+ }, [b("i", {
1643
1687
  class: "f-icon f-icon-plus-circle text-white mr-1"
1644
- }, null), h("span", {
1688
+ }, null), b("span", {
1645
1689
  style: "font-size:13px;margin:auto"
1646
1690
  }, [Q("新增子级")])])])]);
1647
1691
  }
1648
1692
  function A() {
1649
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((s) => s.classList.remove("dgComponentFocused"));
1650
- const p = document.getElementsByClassName("dgComponentSelected");
1651
- Array.from(p).forEach((s) => s.classList.remove("dgComponentSelected"));
1693
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((r) => r.classList.remove("dgComponentFocused"));
1694
+ const u = document.getElementsByClassName("dgComponentSelected");
1695
+ Array.from(u).forEach((r) => r.classList.remove("dgComponentSelected"));
1652
1696
  }
1653
- function N(p) {
1654
- p.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1697
+ function $(u) {
1698
+ u.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1655
1699
  }
1656
- function y(p) {
1657
- var m;
1658
- const s = v.schema.buttons || v.schema.contents, o = s == null ? void 0 : s.findIndex((B) => B.id === p);
1700
+ function v(u) {
1701
+ var h;
1702
+ const r = d.schema.buttons || d.schema.contents, o = r == null ? void 0 : r.findIndex((B) => B.id === u);
1659
1703
  if (o === -1)
1660
1704
  return;
1661
- const c = s[o];
1662
- (m = v == null ? void 0 : v.setupContext) == null || m.emit("selectionChange", "response-toolbar-item", c);
1663
- }
1664
- function f(p, s) {
1665
- l(p), A(), N(p), l(p), a(p, s), y(s.id);
1666
- }
1667
- function S(p) {
1668
- return h("div", {
1669
- id: p.id,
1670
- class: b(p)
1671
- }, [h("div", {
1672
- class: T(p),
1705
+ const a = r[o];
1706
+ (h = d == null ? void 0 : d.setupContext) == null || h.emit("selectionChange", "response-toolbar-item", a);
1707
+ }
1708
+ function m(u, r) {
1709
+ p(u), A(), $(u), p(u), i(u, r), v(r.id);
1710
+ }
1711
+ function x(u) {
1712
+ return b("div", {
1713
+ id: u.id,
1714
+ class: y(u)
1715
+ }, [b("div", {
1716
+ class: T(u),
1673
1717
  style: "display: flex;padding-right: 0.1rem;",
1674
- onClick: (s) => p.enable && f(s, p)
1675
- }, [P(p.id), e.shouldShowIcon(p) && h("i", {
1676
- class: e.iconClass(p)
1677
- }, null), h("span", null, [p.text]), h("i", {
1718
+ onClick: (r) => u.enable && m(r, u)
1719
+ }, [D(u.id), e.shouldShowIcon(u) && b("i", {
1720
+ class: e.iconClass(u)
1721
+ }, null), b("span", null, [u.text]), b("i", {
1678
1722
  class: "f-icon f-icon-arrow-chevron-down",
1679
1723
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1680
- }, null)]), u(p)]);
1724
+ }, null)]), c(u)]);
1681
1725
  }
1682
1726
  function k() {
1683
1727
  g();
1684
1728
  }
1685
1729
  return {
1686
- renderToolbarDropdown: S,
1730
+ renderToolbarDropdown: x,
1687
1731
  clearAllDropDown: k
1688
1732
  };
1689
1733
  }
1690
- function Ot() {
1734
+ function Vt() {
1691
1735
  function n(e) {
1692
- var u, g;
1736
+ var c, g;
1693
1737
  if (!e)
1694
1738
  return !1;
1695
- const t = ((u = e.targetContainer) == null ? void 0 : u.componentInstance) && e.targetContainer.componentInstance.value;
1739
+ const t = ((c = e.targetContainer) == null ? void 0 : c.componentInstance) && e.targetContainer.componentInstance.value;
1696
1740
  if (!t)
1697
1741
  return !1;
1698
- const r = (g = t.schema.appearance) == null ? void 0 : g.class;
1742
+ const s = (g = t.schema.appearance) == null ? void 0 : g.class;
1699
1743
  if (e.controlCategory === "input" || e.controlType === "form-group") {
1700
- const v = t.schema.type, D = (v === "response-form" || v === "content-container") && r && r.includes("farris-form");
1701
- if (t.schema.type !== "response-layout-item" && !D)
1744
+ const d = t.schema.type, P = (d === "response-form" || d === "content-container") && s && s.includes("farris-form");
1745
+ if (t.schema.type !== "response-layout-item" && !P)
1702
1746
  return !1;
1703
1747
  }
1704
1748
  return e.controlType !== "field-set";
@@ -1707,7 +1751,7 @@ function Ot() {
1707
1751
  basalDragulaRuleForContainer: n
1708
1752
  };
1709
1753
  }
1710
- const Nt = "https://json-schema.org/draft/2020-12/schema", $t = "https://farris-design.gitee.io/dragging-rules.schema.json", _t = "Dragging Rules", Ft = "The rules of designer canvas", Lt = "object", Vt = {
1754
+ const Wt = "https://json-schema.org/draft/2020-12/schema", Ut = "https://farris-design.gitee.io/dragging-rules.schema.json", qt = "Dragging Rules", Ht = "The rules of designer canvas", zt = "object", Gt = {
1711
1755
  "f-page": {
1712
1756
  description: "The root class of page designed by farris.",
1713
1757
  type: "object",
@@ -2126,6 +2170,80 @@ const Nt = "https://json-schema.org/draft/2020-12/schema", $t = "https://farris-
2126
2170
  "f-list-nav-left": {
2127
2171
  description: "",
2128
2172
  type: "object"
2173
+ },
2174
+ "f-struct-data-grid-in-nav": {
2175
+ description: "",
2176
+ type: "object",
2177
+ properties: {
2178
+ contents: {
2179
+ type: "object",
2180
+ properties: {
2181
+ "f-section-form": {
2182
+ description: "",
2183
+ type: "object",
2184
+ properties: {
2185
+ rules: {
2186
+ type: "object",
2187
+ properties: {
2188
+ canAccept: {
2189
+ type: "boolean",
2190
+ const: !1
2191
+ },
2192
+ fixed: {
2193
+ type: "boolean",
2194
+ const: !0
2195
+ },
2196
+ hidePadding: {
2197
+ type: "boolean",
2198
+ const: !0
2199
+ }
2200
+ }
2201
+ }
2202
+ }
2203
+ },
2204
+ "f-section-grid": {
2205
+ description: "",
2206
+ type: "object",
2207
+ properties: {
2208
+ rules: {
2209
+ type: "object",
2210
+ properties: {
2211
+ canAccept: {
2212
+ type: "boolean",
2213
+ const: !1
2214
+ },
2215
+ fixed: {
2216
+ type: "boolean",
2217
+ const: !0
2218
+ },
2219
+ hidePadding: {
2220
+ type: "boolean",
2221
+ const: !0
2222
+ }
2223
+ }
2224
+ }
2225
+ }
2226
+ }
2227
+ }
2228
+ },
2229
+ rules: {
2230
+ type: "object",
2231
+ properties: {
2232
+ canAccept: {
2233
+ type: "boolean",
2234
+ const: !1
2235
+ },
2236
+ fixed: {
2237
+ type: "boolean",
2238
+ const: !0
2239
+ },
2240
+ hidePadding: {
2241
+ type: "boolean",
2242
+ const: !0
2243
+ }
2244
+ }
2245
+ }
2246
+ }
2129
2247
  }
2130
2248
  }
2131
2249
  }
@@ -2271,106 +2389,105 @@ const Nt = "https://json-schema.org/draft/2020-12/schema", $t = "https://farris-
2271
2389
  description: "",
2272
2390
  type: "object"
2273
2391
  }
2274
- }, Wt = [], Ut = {
2275
- $schema: Nt,
2276
- $id: $t,
2277
- title: _t,
2278
- description: Ft,
2279
- type: Lt,
2280
- properties: Vt,
2281
- required: Wt
2282
- }, oe = /* @__PURE__ */ new Map();
2283
- function Me() {
2284
- function n(i, C, w, j) {
2285
- var R;
2392
+ }, Jt = {
2393
+ $schema: Wt,
2394
+ $id: Ut,
2395
+ title: qt,
2396
+ description: Ht,
2397
+ type: zt,
2398
+ properties: Gt
2399
+ }, re = /* @__PURE__ */ new Map();
2400
+ function Ae() {
2401
+ function n(l, C, w, j) {
2402
+ var I;
2286
2403
  if (typeof w == "number")
2287
- return ((R = j[i]) == null ? void 0 : R.length) === w;
2404
+ return ((I = j[l]) == null ? void 0 : I.length) === w;
2288
2405
  if (typeof w == "object") {
2289
- const P = Object.keys(w)[0], A = w[P];
2290
- if (P === "not")
2291
- return Number(j[i].length) !== Number(A);
2292
- if (P === "moreThan")
2293
- return Number(j[i].length) >= Number(A);
2294
- if (P === "lessThan")
2295
- return Number(j[i].length) <= Number(A);
2406
+ const D = Object.keys(w)[0], A = w[D];
2407
+ if (D === "not")
2408
+ return Number(j[l].length) !== Number(A);
2409
+ if (D === "moreThan")
2410
+ return Number(j[l].length) >= Number(A);
2411
+ if (D === "lessThan")
2412
+ return Number(j[l].length) <= Number(A);
2296
2413
  }
2297
2414
  return !1;
2298
2415
  }
2299
- function e(i, C, w, j) {
2416
+ function e(l, C, w, j) {
2300
2417
  return typeof w == "boolean" ? j.childrenClassList.includes(C) === !!w : !1;
2301
2418
  }
2302
- function t(i, C, w, j) {
2419
+ function t(l, C, w, j) {
2303
2420
  return typeof w == "boolean" ? j.parentClassList.includes(C) === !!w : !1;
2304
2421
  }
2305
- function r(i, C, w, j) {
2422
+ function s(l, C, w, j) {
2306
2423
  return typeof w == "boolean" ? j.parentClassList.includes(C) === !!w : !1;
2307
2424
  }
2308
- const u = /* @__PURE__ */ new Map([
2425
+ const c = /* @__PURE__ */ new Map([
2309
2426
  ["length", n],
2310
2427
  ["hasChildren", e],
2311
- ["hasSibling", r],
2428
+ ["hasSibling", s],
2312
2429
  ["hasParent", t]
2313
2430
  ]);
2314
- function g(i, C) {
2315
- const w = i;
2431
+ function g(l, C) {
2432
+ const w = l;
2316
2433
  return typeof C == "number" ? [{ target: w, operator: "length", param: null, value: Number(C) }] : typeof C == "object" ? Object.keys(C).map((j) => {
2317
2434
  if (j === "length")
2318
2435
  return { target: w, operator: "length", param: null, value: C[j] };
2319
- const R = j, P = C[j];
2320
- return { target: w, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: R, value: P };
2436
+ const I = j, D = C[j];
2437
+ return { target: w, operator: l === "children" ? "hasChildren" : l === "parent" ? "hasParent" : "hasSibling", param: I, value: D };
2321
2438
  }) : [];
2322
2439
  }
2323
- function v(i, C) {
2324
- if (u.has(i.operator)) {
2325
- const w = u.get(i.operator);
2326
- return w && w(i.target, i.param, i.value, C) || !1;
2440
+ function d(l, C) {
2441
+ if (c.has(l.operator)) {
2442
+ const w = c.get(l.operator);
2443
+ return w && w(l.target, l.param, l.value, C) || !1;
2327
2444
  }
2328
2445
  return !1;
2329
2446
  }
2330
- function D(i, C) {
2331
- return Object.keys(i).reduce((P, A) => {
2332
- const N = g(A, i[A]);
2333
- return P.push(...N), P;
2334
- }, []).reduce((P, A) => P && v(A, C), !0);
2447
+ function P(l, C) {
2448
+ return Object.keys(l).reduce((D, A) => {
2449
+ const $ = g(A, l[A]);
2450
+ return D.push(...$), D;
2451
+ }, []).reduce((D, A) => D && d(A, C), !0);
2335
2452
  }
2336
- function E(i, C) {
2337
- const w = Object.keys(i), j = w.includes("allOf"), R = w.includes("anyOf"), P = j || R, y = (P ? i[P ? j ? "allOf" : "anyOf" : "allOf"] : [i]).map((S) => D(S, C));
2338
- return j ? !y.includes(!1) : y.includes(!0);
2453
+ function S(l, C) {
2454
+ const w = Object.keys(l), j = w.includes("allOf"), I = w.includes("anyOf"), D = j || I, v = (D ? l[D ? j ? "allOf" : "anyOf" : "allOf"] : [l]).map((x) => P(x, C));
2455
+ return j ? !v.includes(!1) : v.includes(!0);
2339
2456
  }
2340
- function b(i, C) {
2341
- const w = i.const;
2342
- return w ? typeof w == "boolean" ? w : typeof w == "object" ? E(w, C) : !1 : !1;
2457
+ function y(l, C) {
2458
+ const w = l.const;
2459
+ return w ? typeof w == "boolean" ? w : typeof w == "object" ? S(w, C) : !1 : !1;
2343
2460
  }
2344
- function T(i) {
2461
+ function T(l) {
2345
2462
  return (C) => {
2346
2463
  const w = { canAccept: !0, fixed: !1, hidePadding: !1 };
2347
- return i && i.properties && Object.keys(i.properties).reduce((j, R) => {
2348
- const P = i.properties[R];
2349
- return j[R] = b(P, C), j;
2464
+ return l && l.properties && Object.keys(l.properties).reduce((j, I) => {
2465
+ const D = l.properties[I];
2466
+ return j[I] = y(D, C), j;
2350
2467
  }, w), w;
2351
2468
  };
2352
2469
  }
2353
- function l(i, C, w) {
2470
+ function p(l, C, w) {
2354
2471
  if (C.type === "object" && C.properties) {
2355
- const { rules: j, contents: R } = C.properties;
2356
- w.set(i, T(j)), R && Object.keys(R.properties).forEach(
2357
- (P) => l(P, R.properties[P], w)
2472
+ const { rules: j, contents: I } = C.properties;
2473
+ w.set(l, T(j)), I && Object.keys(I.properties).forEach(
2474
+ (D) => p(D, I.properties[D], w)
2358
2475
  );
2359
2476
  }
2360
2477
  }
2361
- function a() {
2362
- const { properties: i } = Ut;
2363
- Object.keys(i).forEach((C) => {
2364
- l(C, i[C], oe);
2478
+ function i() {
2479
+ const { properties: l } = Jt;
2480
+ Object.keys(l).forEach((C) => {
2481
+ p(C, l[C], re);
2365
2482
  });
2366
2483
  }
2367
- function d(i, C) {
2484
+ function f(l, C) {
2368
2485
  const w = { canAccept: !0, fixed: !1, hidePadding: !0 };
2369
- return oe.has(i) ? oe.get(i)(C) : w;
2486
+ return re.has(l) ? re.get(l)(C) : w;
2370
2487
  }
2371
- return a(), { getRuleValue: d };
2488
+ return i(), { getRuleValue: f };
2372
2489
  }
2373
- class qt extends K {
2490
+ class Qt extends ee {
2374
2491
  constructor(e, t) {
2375
2492
  super(e, t);
2376
2493
  }
@@ -2396,7 +2513,7 @@ class qt extends K {
2396
2513
  type: "combo-list",
2397
2514
  textField: "value",
2398
2515
  valueField: "key",
2399
- data: [{ key: "response-toolbar", value: Z["response-toolbar"].name }]
2516
+ data: [{ key: "response-toolbar", value: K["response-toolbar"].name }]
2400
2517
  }
2401
2518
  }
2402
2519
  }
@@ -2439,85 +2556,85 @@ class qt extends K {
2439
2556
  };
2440
2557
  }
2441
2558
  }
2442
- function Ht(n, e, t, r) {
2443
- const u = Me(), g = x(!1), v = x(!1);
2444
- let D = !0, E = !1, b;
2445
- function T(y) {
2446
- return b && b.componentClassList && b.componentClassList.includes("f-form-layout") && b.componentClassList.includes("farris-form") ? y.sourceType === "control" && y.controlCategory === "input" || y.sourceType === "move" && y.controlType === "form-group" : !0;
2447
- }
2448
- function l(y) {
2449
- return !Ot().basalDragulaRuleForContainer(y) || !D || !T(y), !1;
2450
- }
2451
- function a() {
2452
- g.value = !1, v.value = !1;
2453
- const y = n, f = y.appearance && y.appearance.class || "", S = f.split(" "), k = y.buttons || [], p = k.length ? k[0] : null, s = p && p.appearance ? p.appearance.class : "", o = s ? s.split(" ") : [], c = k.length ? k.reduce((_, W) => {
2454
- const q = W && W.appearance ? W.appearance.class : "", ee = q ? q.split(" ") : [];
2455
- return _.push(...ee), _;
2456
- }, []) : [], m = t == null ? void 0 : t.schema, B = m && m.appearance && m.appearance.class || "", M = B ? B.split(" ") : [];
2457
- b = {
2458
- componentClass: f,
2459
- componentClassList: S,
2559
+ function Xt(n, e, t, s) {
2560
+ const c = Ae(), g = M(!1), d = M(!1);
2561
+ let P = !0, S = !1, y;
2562
+ function T(v) {
2563
+ return y && y.componentClassList && y.componentClassList.includes("f-form-layout") && y.componentClassList.includes("farris-form") ? v.sourceType === "control" && v.controlCategory === "input" || v.sourceType === "move" && v.controlType === "form-group" : !0;
2564
+ }
2565
+ function p(v) {
2566
+ return !Vt().basalDragulaRuleForContainer(v) || !P || !T(v), !1;
2567
+ }
2568
+ function i() {
2569
+ g.value = !1, d.value = !1;
2570
+ const v = n, m = v.appearance && v.appearance.class || "", x = m.split(" "), k = v.buttons || [], u = k.length ? k[0] : null, r = u && u.appearance ? u.appearance.class : "", o = r ? r.split(" ") : [], a = k.length ? k.reduce((_, W) => {
2571
+ const q = W && W.appearance ? W.appearance.class : "", te = q ? q.split(" ") : [];
2572
+ return _.push(...te), _;
2573
+ }, []) : [], h = t == null ? void 0 : t.schema, B = h && h.appearance && h.appearance.class || "", E = B ? B.split(" ") : [];
2574
+ y = {
2575
+ componentClass: m,
2576
+ componentClassList: x,
2460
2577
  childContents: k,
2461
- firstChildContent: p,
2462
- firstChildClass: s,
2578
+ firstChildContent: u,
2579
+ firstChildClass: r,
2463
2580
  firstChildClassList: o,
2464
- parent: m,
2581
+ parent: h,
2465
2582
  parentClass: B,
2466
- parentClassList: M,
2583
+ parentClassList: E,
2467
2584
  children: k,
2468
- childrenClassList: c
2585
+ childrenClassList: a
2469
2586
  };
2470
- const { canAccept: I, fixed: L, hidePadding: $ } = u.getRuleValue(S[0], b);
2471
- return D = I, E = $, !0;
2587
+ const { canAccept: R, fixed: L, hidePadding: N } = c.getRuleValue(x[0], y);
2588
+ return P = R, S = N, !0;
2472
2589
  }
2473
- function d(y) {
2590
+ function f(v) {
2474
2591
  }
2475
- function i() {
2592
+ function l() {
2476
2593
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
2477
2594
  }
2478
- function C(y, f) {
2479
- return f.text = y.label, f;
2595
+ function C(v, m) {
2596
+ return m.text = v.label, m;
2480
2597
  }
2481
- function w(y, f, S) {
2598
+ function w(v, m, x) {
2482
2599
  const k = n;
2483
2600
  if ((k.appearance && k.appearance.class || "").split(" ").includes("f-form-layout")) {
2484
- const o = String(y.innerText), c = U("form-group");
2485
- return c.editor = S, c.label = o, c;
2601
+ const o = String(v.innerText), a = U("form-group");
2602
+ return a.editor = x, a.label = o, a;
2486
2603
  }
2487
- return S;
2604
+ return x;
2488
2605
  }
2489
2606
  function j() {
2490
2607
  return !1;
2491
2608
  }
2492
- function R() {
2609
+ function I() {
2493
2610
  return !1;
2494
2611
  }
2495
- function P() {
2612
+ function D() {
2496
2613
  return !0;
2497
2614
  }
2498
2615
  function A() {
2499
- return E;
2616
+ return S;
2500
2617
  }
2501
- function N(y) {
2502
- return new qt(y, e).getPropertyConfig(n);
2618
+ function $(v) {
2619
+ return new Qt(v, e).getPropertyConfig(n);
2503
2620
  }
2504
2621
  return {
2505
- canAccepts: l,
2506
- checkCanAddComponent: P,
2507
- checkCanDeleteComponent: R,
2622
+ canAccepts: p,
2623
+ checkCanAddComponent: D,
2624
+ checkCanDeleteComponent: I,
2508
2625
  checkCanMoveComponent: j,
2509
- getStyles: i,
2626
+ getStyles: l,
2510
2627
  hideNestedPaddingInDesginerView: A,
2511
2628
  onAcceptNewChildElement: w,
2512
- onAcceptMovedChildElement: d,
2629
+ onAcceptMovedChildElement: f,
2513
2630
  onResolveNewComponentSchema: C,
2514
- resolveComponentContext: a,
2515
- getPropsConfig: N,
2631
+ resolveComponentContext: i,
2632
+ getPropsConfig: $,
2516
2633
  triggerBelongedComponentToMoveWhenMoved: g,
2517
- triggerBelongedComponentToDeleteWhenDeleted: v
2634
+ triggerBelongedComponentToDeleteWhenDeleted: d
2518
2635
  };
2519
2636
  }
2520
- const zt = {
2637
+ const Yt = {
2521
2638
  id: { type: String, default: "" },
2522
2639
  componentId: { type: String, default: "" },
2523
2640
  canAdd: { type: Boolean, default: !1 },
@@ -2530,12 +2647,12 @@ const zt = {
2530
2647
  * 组件值
2531
2648
  */
2532
2649
  modelValue: { type: Object }
2533
- }, X = x(0);
2534
- function Gt(n, e) {
2535
- const t = e.getBoundingClientRect(), r = n.getBoundingClientRect(), u = r.top >= t.top, g = r.top <= t.bottom;
2536
- return u && g;
2650
+ }, X = M(0);
2651
+ function Zt(n, e) {
2652
+ const t = e.getBoundingClientRect(), s = n.getBoundingClientRect(), c = s.top >= t.top, g = s.top <= t.bottom;
2653
+ return c && g;
2537
2654
  }
2538
- function Jt(n) {
2655
+ function Kt(n) {
2539
2656
  if (!n)
2540
2657
  return;
2541
2658
  let e;
@@ -2544,240 +2661,240 @@ function Jt(n) {
2544
2661
  const t = e.getBoundingClientRect();
2545
2662
  if (t.width === 0 && t.height === 0)
2546
2663
  return;
2547
- const r = e.querySelector(".component-btn-group");
2548
- if (r) {
2549
- if (!Gt(e, n)) {
2550
- r.style.display = "none";
2664
+ const s = e.querySelector(".component-btn-group");
2665
+ if (s) {
2666
+ if (!Zt(e, n)) {
2667
+ s.style.display = "none";
2551
2668
  return;
2552
2669
  }
2553
- r.style.display = "";
2554
- const g = r.getBoundingClientRect(), v = r.querySelector("div");
2555
- if (v) {
2556
- const D = v.getBoundingClientRect();
2557
- v.style.top = g.top + "px", v.style.left = g.left - D.width + "px";
2670
+ s.style.display = "";
2671
+ const g = s.getBoundingClientRect(), d = s.querySelector("div");
2672
+ if (d) {
2673
+ const P = d.getBoundingClientRect();
2674
+ d.style.top = g.top + "px", d.style.left = g.left - P.width + "px";
2558
2675
  }
2559
2676
  }
2560
2677
  }
2561
- function Qt(n, e, t) {
2562
- var N;
2563
- function r() {
2678
+ function en(n, e, t) {
2679
+ var $;
2680
+ function s() {
2564
2681
  }
2565
- const u = "", g = x();
2566
- function v() {
2682
+ const c = "", g = M();
2683
+ function d() {
2567
2684
  return !0;
2568
2685
  }
2569
- function D() {
2686
+ function P() {
2570
2687
  return !1;
2571
2688
  }
2572
- function E() {
2689
+ function S() {
2573
2690
  return !0;
2574
2691
  }
2575
- function b() {
2692
+ function y() {
2576
2693
  return !0;
2577
2694
  }
2578
2695
  function T() {
2579
2696
  return !0;
2580
2697
  }
2581
- function l(y) {
2582
- if (!y || !y.value)
2698
+ function p(v) {
2699
+ if (!v || !v.value)
2583
2700
  return null;
2584
- const f = x(y == null ? void 0 : y.value.parent), S = l(f);
2585
- return S || null;
2701
+ const m = M(v == null ? void 0 : v.value.parent), x = p(m);
2702
+ return x || null;
2586
2703
  }
2587
- function a(y = e) {
2588
- const { componentInstance: f, designerItemElementRef: S } = y;
2589
- return !f || !f.value ? null : f.value.canMove || f.value.canAdd || f.value.canDelete ? S : a(y.parent);
2704
+ function i(v = e) {
2705
+ const { componentInstance: m, designerItemElementRef: x } = v;
2706
+ return !m || !m.value ? null : m.value.canMove || m.value.canAdd || m.value.canDelete ? x : i(v.parent);
2590
2707
  }
2591
- function d(y) {
2708
+ function f(v) {
2592
2709
  return !!t;
2593
2710
  }
2594
- function i() {
2711
+ function l() {
2595
2712
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
2596
2713
  }
2597
2714
  function C() {
2598
2715
  }
2599
- function w(y, f) {
2716
+ function w(v, m) {
2600
2717
  }
2601
- function j(y) {
2602
- const { componentType: f } = y;
2603
- let S = U(f, y);
2604
- const k = f.toLowerCase().replace("-", "_");
2605
- return S && !S.id && S.type === f && (S.id = `${k}_${Math.random().toString().slice(2, 6)}`), S;
2718
+ function j(v) {
2719
+ const { componentType: m } = v;
2720
+ let x = U(m, v);
2721
+ const k = m.toLowerCase().replace("-", "_");
2722
+ return x && !x.id && x.type === m && (x.id = `${k}_${Math.random().toString().slice(2, 6)}`), x;
2606
2723
  }
2607
- function R(y, f) {
2608
- const S = String(y.getAttribute("data-controltype")), k = y.getAttribute("data-feature"), p = k ? JSON.parse(k) : {};
2609
- p.parentComponentInstance = g.value;
2610
- let s = U(S, p);
2611
- const o = S.toLowerCase().replace("-", "_");
2612
- return s && !s.id && s.type === S && (s.id = `${o}_${Math.random().toString().slice(2, 6)}`), s;
2724
+ function I(v, m) {
2725
+ const x = String(v.getAttribute("data-controltype")), k = v.getAttribute("data-feature"), u = k ? JSON.parse(k) : {};
2726
+ u.parentComponentInstance = g.value;
2727
+ let r = U(x, u);
2728
+ const o = x.toLowerCase().replace("-", "_");
2729
+ return r && !r.id && r.type === x && (r.id = `${o}_${Math.random().toString().slice(2, 6)}`), r;
2613
2730
  }
2614
- function P(y) {
2731
+ function D(v) {
2615
2732
  }
2616
- function A(...y) {
2733
+ function A(...v) {
2617
2734
  return [];
2618
2735
  }
2619
2736
  return g.value = {
2620
- canMove: v(),
2621
- canSelectParent: D(),
2622
- canAdd: b(),
2623
- canDelete: E(),
2737
+ canMove: d(),
2738
+ canSelectParent: P(),
2739
+ canAdd: y(),
2740
+ canDelete: S(),
2624
2741
  canNested: !T(),
2625
2742
  contents: [],
2626
2743
  elementRef: n,
2627
- parent: (N = e.parent) == null ? void 0 : N.componentInstance,
2744
+ parent: ($ = e.parent) == null ? void 0 : $.componentInstance,
2628
2745
  schema: e.schema,
2629
- styles: u,
2630
- canAccepts: d,
2631
- getBelongedComponentInstance: l,
2632
- getDraggableDesignItemElement: a,
2633
- getDraggingDisplayText: i,
2746
+ styles: c,
2747
+ canAccepts: f,
2748
+ getBelongedComponentInstance: p,
2749
+ getDraggableDesignItemElement: i,
2750
+ getDraggingDisplayText: l,
2634
2751
  getPropConfig: A,
2635
2752
  getDragScopeElement: C,
2636
2753
  onAcceptMovedChildElement: w,
2637
- onAcceptNewChildElement: R,
2638
- onChildElementMovedOut: P,
2754
+ onAcceptNewChildElement: I,
2755
+ onChildElementMovedOut: D,
2639
2756
  addNewChildComponentSchema: j,
2640
- updateDragAndDropRules: r,
2641
- triggerBelongedComponentToMoveWhenMoved: x(!1),
2642
- triggerBelongedComponentToDeleteWhenDeleted: x(!1)
2757
+ updateDragAndDropRules: s,
2758
+ triggerBelongedComponentToMoveWhenMoved: M(!1),
2759
+ triggerBelongedComponentToDeleteWhenDeleted: M(!1)
2643
2760
  }, g;
2644
2761
  }
2645
- const xe = /* @__PURE__ */ z({
2762
+ const Be = /* @__PURE__ */ z({
2646
2763
  name: "FDesignerInnerItem",
2647
- props: zt,
2764
+ props: Yt,
2648
2765
  emits: ["selectionChange", "addComponent", "removeComponent"],
2649
2766
  setup(n, e) {
2650
- const t = x(n.canMove), r = x(n.canAdd), u = x(n.canDelete), g = x(!1), v = x(n.contentKey), D = x(n.childType), E = x(n.childLabel), b = x(n.modelValue), T = x(""), l = x(), a = V("canvas-dragula"), d = x(), i = V("design-item-context"), C = {
2651
- designerItemElementRef: l,
2652
- componentInstance: d,
2653
- schema: b.value,
2654
- parent: i,
2767
+ const t = M(n.canMove), s = M(n.canAdd), c = M(n.canDelete), g = M(!1), d = M(n.contentKey), P = M(n.childType), S = M(n.childLabel), y = M(n.modelValue), T = M(""), p = M(), i = V("canvas-dragula"), f = M(), l = V("design-item-context"), C = {
2768
+ designerItemElementRef: p,
2769
+ componentInstance: f,
2770
+ schema: y.value,
2771
+ parent: l,
2655
2772
  setupContext: e
2656
2773
  };
2657
- Ne("design-item-context", C);
2774
+ Fe("design-item-context", C);
2658
2775
  const w = F(() => ({
2659
2776
  "farris-component": !0,
2660
2777
  // 受position-relative影响,整个容器的高度不能被撑起
2661
2778
  "flex-fill": n.id == "root-component",
2662
- "position-relative": t.value || u.value,
2779
+ "position-relative": t.value || c.value,
2663
2780
  "farris-nested": g.value,
2664
2781
  "can-move": t.value,
2665
- "d-none": l.value && l.value.classList.contains("d-none")
2782
+ "d-none": p.value && p.value.classList.contains("d-none")
2666
2783
  })), j = F(() => {
2667
2784
  const o = {};
2668
- return T.value && T.value.split(";").reduce((c, m) => {
2669
- const [B, M] = m.split(":");
2670
- return B && (c[B] = M), c;
2785
+ return T.value && T.value.split(";").reduce((a, h) => {
2786
+ const [B, E] = h.split(":");
2787
+ return B && (a[B] = E), a;
2671
2788
  }, o), o;
2672
2789
  });
2673
- function R(o, c) {
2674
- if (i && i.schema[v.value]) {
2675
- const m = i.schema[v.value].findIndex((B) => B.id === c.id);
2676
- if (m > -1) {
2677
- const B = i.schema[v.value].length, M = i.schema[v.value][m % B];
2678
- i.designerItemElementRef.value.querySelector(`#${M.id}-design-item`), i.schema[v.value].splice(m, 1), i.componentInstance.value.updateDragAndDropRules(), X.value++, e.emit("removeComponent");
2790
+ function I(o, a) {
2791
+ if (l && l.schema[d.value]) {
2792
+ const h = l.schema[d.value].findIndex((B) => B.id === a.id);
2793
+ if (h > -1) {
2794
+ const B = l.schema[d.value].length, E = l.schema[d.value][h % B];
2795
+ l.designerItemElementRef.value.querySelector(`#${E.id}-design-item`), l.schema[d.value].splice(h, 1), l.componentInstance.value.updateDragAndDropRules(), X.value++, e.emit("removeComponent");
2679
2796
  }
2680
2797
  }
2681
2798
  }
2682
- function P(o) {
2683
- if (d.value.addNewChildComponentSchema) {
2684
- const c = {
2685
- componentType: D.value,
2686
- label: E.value,
2687
- parentComponentInstance: d.value,
2799
+ function D(o) {
2800
+ if (f.value.addNewChildComponentSchema) {
2801
+ const a = {
2802
+ componentType: P.value,
2803
+ label: S.value,
2804
+ parentComponentInstance: f.value,
2688
2805
  targetPosition: -1
2689
- }, m = d.value.addNewChildComponentSchema(c);
2690
- b.value[v.value].push(m), e.emit("addComponent");
2806
+ }, h = f.value.addNewChildComponentSchema(a);
2807
+ y.value[d.value].push(h), e.emit("addComponent");
2691
2808
  }
2692
2809
  }
2693
2810
  function A() {
2694
- return r.value && h("div", {
2811
+ return s.value && b("div", {
2695
2812
  role: "button",
2696
2813
  class: "btn component-settings-button",
2697
2814
  title: "新增",
2698
2815
  ref: "removeComponent",
2699
2816
  onClick: (o) => {
2700
- P();
2817
+ D();
2701
2818
  }
2702
- }, [h("i", {
2819
+ }, [b("i", {
2703
2820
  class: "f-icon f-icon-plus-circle"
2704
2821
  }, null)]);
2705
2822
  }
2706
- function N(o) {
2707
- return u.value && h("div", {
2823
+ function $(o) {
2824
+ return c.value && b("div", {
2708
2825
  role: "button",
2709
2826
  class: "btn component-settings-button",
2710
2827
  title: "删除",
2711
2828
  ref: "removeComponent",
2712
- onClick: _e((c) => R(c, o), ["stop"])
2713
- }, [h("i", {
2829
+ onClick: Ve((a) => I(a, o), ["stop"])
2830
+ }, [b("i", {
2714
2831
  class: "f-icon f-icon-yxs_delete"
2715
2832
  }, null)]);
2716
2833
  }
2717
- function y() {
2718
- return t.value && h("div", {
2834
+ function v() {
2835
+ return t.value && b("div", {
2719
2836
  role: "button",
2720
2837
  class: "btn component-settings-button",
2721
2838
  title: "移动",
2722
2839
  ref: "moveComponent"
2723
- }, [h("i", {
2840
+ }, [b("i", {
2724
2841
  "data-dragging-icon": "true",
2725
2842
  class: "cmp_move f-icon f-icon-yxs_move"
2726
2843
  }, null)]);
2727
2844
  }
2728
- function f(o) {
2729
- return h("div", {
2845
+ function m(o) {
2846
+ return b("div", {
2730
2847
  class: "component-btn-group",
2731
2848
  "data-noattach": "true"
2732
- }, [h("div", null, [A(), y(), N(o)])]);
2849
+ }, [b("div", null, [A(), v(), $(o)])]);
2733
2850
  }
2734
2851
  G(() => n.modelValue, (o) => {
2735
- b.value = o, C.schema = o;
2852
+ y.value = o, C.schema = o;
2736
2853
  });
2737
- function S(o) {
2738
- const c = o.target;
2739
- Jt(c);
2854
+ function x(o) {
2855
+ const a = o.target;
2856
+ Kt(a);
2740
2857
  }
2741
2858
  function k() {
2742
- var o, c;
2743
- (c = (o = b.value) == null ? void 0 : o.contents) != null && c.length && l.value && l.value.addEventListener("scroll", S);
2859
+ var o, a;
2860
+ (a = (o = y.value) == null ? void 0 : o.contents) != null && a.length && p.value && p.value.addEventListener("scroll", x);
2744
2861
  }
2745
- function p() {
2746
- const o = l.value, c = x(o.children[1]);
2747
- return Qt(c, C).value;
2862
+ function u() {
2863
+ const o = p.value, a = M(o.children[1]);
2864
+ return en(a, C).value;
2748
2865
  }
2749
2866
  H(() => {
2750
- if (l.value) {
2751
- const o = l.value.querySelector(`[data-dragref='${b.value.id}-container']`);
2752
- d.value = o && o.componentInstance ? o.componentInstance.value : p(), a && o && a.attachComponents(o, b.value), g.value = d.value.canNested !== void 0 ? d.value.canNested : g.value, r.value = d.value.canAdd !== void 0 ? d.value.canAdd : r.value, u.value = d.value.canDelete !== void 0 ? d.value.canDelete : u.value, t.value = d.value.canMove !== void 0 ? d.value.canMove : t.value, T.value = d.value.styles || "", l.value && (l.value.componentInstance = d, l.value.designItemContext = C);
2867
+ if (p.value) {
2868
+ const o = p.value.querySelector(`[data-dragref='${y.value.id}-container']`);
2869
+ f.value = o && o.componentInstance ? o.componentInstance.value : u(), i && o && i.attachComponents(o, y.value), g.value = f.value.canNested !== void 0 ? f.value.canNested : g.value, s.value = f.value.canAdd !== void 0 ? f.value.canAdd : s.value, c.value = f.value.canDelete !== void 0 ? f.value.canDelete : c.value, t.value = f.value.canMove !== void 0 ? f.value.canMove : t.value, T.value = f.value.styles || "", p.value && (p.value.componentInstance = f, p.value.designItemContext = C);
2753
2870
  }
2754
2871
  k(), X.value++;
2755
- }), $e(() => {
2756
- l.value && l.value.removeEventListener("scroll", S);
2872
+ }), Le(() => {
2873
+ p.value && p.value.removeEventListener("scroll", x);
2757
2874
  });
2758
- function s(o) {
2759
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((m) => m.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
2760
- const c = l.value;
2761
- if (c) {
2762
- const m = document.getElementsByClassName("dgComponentSelected");
2763
- if (!(m && m.length === 1 && m[0] === l.value)) {
2764
- Array.from(m).forEach((I) => I.classList.remove("dgComponentSelected")), c.classList.add("dgComponentFocused"), e.emit("selectionChange", b.value.type, b.value, n.componentId, d.value);
2765
- const M = d.value.getDraggableDesignItemElement(C);
2766
- M && M.value && M.value.classList.add("dgComponentSelected");
2875
+ function r(o) {
2876
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((h) => h.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
2877
+ const a = p.value;
2878
+ if (a) {
2879
+ const h = document.getElementsByClassName("dgComponentSelected");
2880
+ if (!(h && h.length === 1 && h[0] === p.value)) {
2881
+ Array.from(h).forEach((R) => R.classList.remove("dgComponentSelected")), a.classList.add("dgComponentFocused"), e.emit("selectionChange", y.value.type, y.value, n.componentId, f.value);
2882
+ const E = f.value.getDraggableDesignItemElement(C);
2883
+ E && E.value && E.value.classList.add("dgComponentSelected");
2767
2884
  }
2768
2885
  }
2769
2886
  X.value++;
2770
2887
  }
2771
- return () => h("div", {
2888
+ return () => b("div", {
2772
2889
  id: `${n.id}-design-item`,
2773
- ref: l,
2890
+ ref: p,
2774
2891
  class: w.value,
2775
2892
  style: j.value,
2776
- onClick: s
2777
- }, [f(b.value), e.slots.default && e.slots.default()]);
2893
+ onClick: r
2894
+ }, [m(y.value), e.slots.default && e.slots.default()]);
2778
2895
  }
2779
2896
  });
2780
- class Xt extends K {
2897
+ class tn extends ee {
2781
2898
  constructor(e, t) {
2782
2899
  super(e, t);
2783
2900
  }
@@ -2828,23 +2945,23 @@ class Xt extends K {
2828
2945
  title: "style样式"
2829
2946
  }
2830
2947
  },
2831
- setPropertyRelates(t, r) {
2948
+ setPropertyRelates(t, s) {
2832
2949
  }
2833
2950
  };
2834
2951
  }
2835
2952
  getEventPropConfig(e) {
2836
2953
  const t = [
2837
2954
  {
2838
- label: "click",
2955
+ label: "onClick",
2839
2956
  name: "点击事件"
2840
2957
  }
2841
2958
  ];
2842
- var r = this;
2843
- const u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), g = {};
2844
- g[r.viewModelId] = {
2959
+ var s = this;
2960
+ const c = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), g = {};
2961
+ g[s.viewModelId] = {
2845
2962
  type: "events-editor",
2846
2963
  editor: {
2847
- initialData: u
2964
+ initialData: c
2848
2965
  }
2849
2966
  }, this.propertyConfig.categories.eventsEditor = {
2850
2967
  title: "事件",
@@ -2854,14 +2971,14 @@ class Xt extends K {
2854
2971
  refreshPanelAfterChanged: !0,
2855
2972
  tabId: "commands",
2856
2973
  tabName: "交互",
2857
- setPropertyRelates(v, D) {
2858
- const E = v.propertyValue;
2859
- delete e[r.viewModelId], E && (E.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, E.events, E));
2974
+ setPropertyRelates(d, P) {
2975
+ const S = d.propertyValue;
2976
+ delete e[s.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, S.events, S));
2860
2977
  }
2861
2978
  };
2862
2979
  }
2863
2980
  }
2864
- class Yt extends K {
2981
+ class nn extends ee {
2865
2982
  constructor(e, t) {
2866
2983
  super(e, t);
2867
2984
  }
@@ -2887,7 +3004,7 @@ class Yt extends K {
2887
3004
  type: "combo-list",
2888
3005
  textField: "value",
2889
3006
  valueField: "key",
2890
- data: [{ key: "response-toolbar-item", value: Z["response-toolbar-item"].name }]
3007
+ data: [{ key: "response-toolbar-item", value: K["response-toolbar-item"].name }]
2891
3008
  }
2892
3009
  },
2893
3010
  text: {
@@ -2905,18 +3022,34 @@ class Yt extends K {
2905
3022
  };
2906
3023
  }
2907
3024
  getAppearanceProperties(e) {
3025
+ this.propertyConfig.categories.appearance = {
3026
+ title: "样式",
3027
+ description: "Appearance",
3028
+ properties: {
3029
+ class: {
3030
+ title: "class",
3031
+ type: "string",
3032
+ description: ""
3033
+ },
3034
+ style: {
3035
+ title: "style",
3036
+ type: "string",
3037
+ description: ""
3038
+ }
3039
+ }
3040
+ };
2908
3041
  }
2909
3042
  getEventPropConfig(e) {
2910
3043
  const t = [
2911
3044
  {
2912
- label: "click",
3045
+ label: "onClick",
2913
3046
  name: "点击事件"
2914
3047
  }
2915
- ], r = this, u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), g = {};
2916
- g[r.viewModelId] = {
3048
+ ], s = this, c = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), g = {};
3049
+ g[s.viewModelId] = {
2917
3050
  type: "events-editor",
2918
3051
  editor: {
2919
- initialData: u
3052
+ initialData: c
2920
3053
  }
2921
3054
  }, this.propertyConfig.categories.eventsEditor = {
2922
3055
  title: "事件",
@@ -2926,266 +3059,263 @@ class Yt extends K {
2926
3059
  refreshPanelAfterChanged: !0,
2927
3060
  tabId: "commands",
2928
3061
  tabName: "交互",
2929
- setPropertyRelates(v, D) {
2930
- const E = v.propertyValue;
2931
- delete e[r.viewModelId], E && (E.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, E.events, E));
3062
+ setPropertyRelates(d, P) {
3063
+ const S = d.propertyValue;
3064
+ delete e[s.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, S.events, S));
2932
3065
  }
2933
3066
  };
2934
3067
  }
2935
3068
  }
2936
- function Zt(n, e) {
2937
- Me();
2938
- const t = x(!1), r = x(!1);
2939
- let u = !1, g = !1;
2940
- function v(w) {
3069
+ function on(n, e) {
3070
+ Ae();
3071
+ const t = M(!1), s = M(!1);
3072
+ let c = !1, g = !1;
3073
+ function d(w) {
2941
3074
  return !1;
2942
3075
  }
2943
- function D(w) {
3076
+ function P(w) {
2944
3077
  }
2945
- function E() {
3078
+ function S() {
2946
3079
  return "";
2947
3080
  }
2948
- function b(w, j) {
3081
+ function y(w, j) {
2949
3082
  return j.text = w.label, j;
2950
3083
  }
2951
- function T(w, j, R) {
2952
- const P = n.schema;
2953
- if ((P.appearance && P.appearance.class || "").split(" ").includes("f-form-layout")) {
2954
- const y = String(w.innerText), f = U("form-group");
2955
- return f.editor = R, f.label = y, f;
3084
+ function T(w, j, I) {
3085
+ const D = n.schema;
3086
+ if ((D.appearance && D.appearance.class || "").split(" ").includes("f-form-layout")) {
3087
+ const v = String(w.innerText), m = U("form-group");
3088
+ return m.editor = I, m.label = v, m;
2956
3089
  }
2957
- return R;
3090
+ return I;
2958
3091
  }
2959
- function l() {
3092
+ function p() {
2960
3093
  return !1;
2961
3094
  }
2962
- function a() {
3095
+ function i() {
2963
3096
  return !g;
2964
3097
  }
2965
- function d() {
3098
+ function f() {
2966
3099
  return !1;
2967
3100
  }
2968
- function i() {
2969
- return u;
3101
+ function l() {
3102
+ return c;
2970
3103
  }
2971
3104
  function C(w) {
2972
3105
  let j;
2973
3106
  switch (n.schema.type) {
2974
3107
  case "tab-toolbar-item":
2975
- j = new Xt(w, e);
3108
+ j = new tn(w, e);
2976
3109
  break;
2977
3110
  default:
2978
- j = new Yt(w, e);
3111
+ j = new nn(w, e);
2979
3112
  }
2980
3113
  return j.getPropertyConfig(n.schema);
2981
3114
  }
2982
3115
  return {
2983
- canAccepts: v,
2984
- checkCanAddComponent: d,
2985
- checkCanDeleteComponent: a,
2986
- checkCanMoveComponent: l,
2987
- getStyles: E,
2988
- hideNestedPaddingInDesginerView: i,
3116
+ canAccepts: d,
3117
+ checkCanAddComponent: f,
3118
+ checkCanDeleteComponent: i,
3119
+ checkCanMoveComponent: p,
3120
+ getStyles: S,
3121
+ hideNestedPaddingInDesginerView: l,
2989
3122
  onAcceptNewChildElement: T,
2990
- onAcceptMovedChildElement: D,
2991
- onResolveNewComponentSchema: b,
3123
+ onAcceptMovedChildElement: P,
3124
+ onResolveNewComponentSchema: y,
2992
3125
  getPropsConfig: C,
2993
3126
  triggerBelongedComponentToMoveWhenMoved: t,
2994
- triggerBelongedComponentToDeleteWhenDeleted: r
3127
+ triggerBelongedComponentToDeleteWhenDeleted: s
2995
3128
  };
2996
3129
  }
2997
- const ke = /* @__PURE__ */ z({
3130
+ const Re = /* @__PURE__ */ z({
2998
3131
  name: "FResponseToolbarItemDesign",
2999
- props: je,
3132
+ props: Me,
3000
3133
  emits: ["Click"],
3001
3134
  setup(n, e) {
3002
- x(), x();
3003
- const t = x(n.alignment), r = {
3135
+ M(), M();
3136
+ const t = M(n.alignment), s = {
3004
3137
  id: "__more_buttons__",
3005
3138
  text: "More"
3006
- }, u = x(new J(r));
3007
- F(() => u.value.children.length > 0);
3008
- const g = x(), v = V("designer-host-service"), D = V("design-item-context"), E = Zt(D, v), b = ve(g, D, E);
3139
+ }, c = M(new J(s));
3140
+ F(() => c.value.children.length > 0);
3141
+ const g = M(), d = V("designer-host-service"), P = V("design-item-context"), S = on(P, d), y = Pe(g, P, S);
3009
3142
  V("toolbar-item-handler", () => {
3010
3143
  }), H(() => {
3011
- g.value.componentInstance = b;
3012
- }), e.expose(b.value);
3144
+ g.value.componentInstance = y;
3145
+ }), e.expose(y.value);
3013
3146
  function T() {
3014
- const d = {
3147
+ const f = {
3015
3148
  "f-icon": !0
3016
- };
3017
- if (n.icon) {
3018
- const i = n.icon.trim().split(" ");
3019
- i && i.length && i.reduce((C, w) => (C[w] = !0, C), d);
3020
- }
3021
- return d;
3149
+ }, l = n.icon ? n.icon.trim() : "";
3150
+ return Y(f, l);
3022
3151
  }
3023
- function l() {
3152
+ function p() {
3024
3153
  return !!(n.icon && n.icon.trim());
3025
3154
  }
3026
- function a() {
3027
- const d = {
3155
+ function i() {
3156
+ const f = {
3028
3157
  btn: !0,
3029
3158
  "f-rt-btn": !0,
3030
3159
  "f-btn-ml": t.value === "right",
3031
3160
  "f-btn-mr": t.value === "left",
3032
3161
  "btn-icontext": !!(n.icon && n.icon.trim())
3033
3162
  };
3034
- if (n.class) {
3035
- const i = n.class.split(" ");
3036
- i && i.length && i.reduce((C, w) => (C[w] = !0, C), d);
3037
- }
3038
- return d;
3163
+ return Y(f, n.class);
3039
3164
  }
3040
3165
  return H(() => {
3041
- }), re(() => {
3042
- }), () => h("div", {
3166
+ }), ie(() => {
3167
+ }), () => b("div", {
3043
3168
  ref: g,
3044
- "data-dragref": `${D.schema.id}-container`,
3169
+ "data-dragref": `${P.schema.id}-container`,
3045
3170
  class: "farris-component position-relative",
3046
3171
  style: "display:inline-block!important;"
3047
- }, [h("button", {
3172
+ }, [b("button", {
3048
3173
  type: "button",
3049
- class: a(),
3174
+ class: i(),
3050
3175
  id: n.id
3051
- }, [l() && h("i", {
3176
+ }, [p() && b("i", {
3052
3177
  class: T()
3053
3178
  }, null), n.text])]);
3054
3179
  }
3055
- }), Ae = /* @__PURE__ */ z({
3180
+ }), Ie = /* @__PURE__ */ z({
3056
3181
  name: "FResponseToolbarDesign",
3057
- props: xt,
3182
+ props: Ot,
3058
3183
  emits: ["Click"],
3059
3184
  setup(n, e) {
3060
- const t = x(n.items);
3061
- let r = new Array(t.value.length).fill(x());
3062
- const u = x(), g = x(), v = x(n.alignment), D = {
3185
+ const t = M(n.items);
3186
+ let s = new Array(t.value.length).fill(M());
3187
+ const c = M(), g = M(), d = M(n.alignment), P = {
3063
3188
  id: "__more_buttons__",
3064
3189
  text: "More"
3065
- }, E = x(new J(D)), b = Ee();
3066
- F(() => E.value.children.length > 0);
3067
- const T = x(), l = V("designer-host-service"), a = V("design-item-context"), d = Ht(a.schema, l, a), i = ve(T, a, d);
3190
+ }, S = M(new J(P)), y = ke();
3191
+ F(() => S.value.children.length > 0);
3192
+ const T = M(), p = V("designer-host-service"), i = V("design-item-context"), f = Xt(i.schema, p, i), l = Pe(T, i, f);
3068
3193
  V("toolbar-item-handler", () => {
3069
3194
  }), H(() => {
3070
- T.value.componentInstance = i;
3071
- }), e.expose(i.value);
3072
- const C = F(() => ({
3195
+ T.value.componentInstance = l;
3196
+ }), e.expose(l.value);
3197
+ const C = F(() => Y({
3073
3198
  "f-toolbar": !0,
3074
3199
  "f-response-toolbar": !0,
3075
3200
  "position-relative": !0
3076
- })), w = F(() => ({
3201
+ }, n.customClass)), w = F(() => ({
3077
3202
  "d-flex": !0,
3078
3203
  "flex-nowrap": !0,
3079
- "justify-content-end": v.value === "right",
3080
- "justify-content-start": v.value === "left"
3204
+ "justify-content-end": d.value === "right",
3205
+ "justify-content-start": d.value === "left"
3081
3206
  })), {
3082
3207
  renderToolbarDropdown: j,
3083
- clearAllDropDown: R
3084
- } = Rt(n, b, i);
3085
- function P() {
3086
- t.value.filter((p) => p.children && p.children.length > 0).forEach((p) => {
3087
- p.expanded = !1;
3088
- }), E.value.expanded = !1, R();
3208
+ clearAllDropDown: I
3209
+ } = Lt(n, y, l);
3210
+ function D() {
3211
+ t.value.filter((u) => u.children && u.children.length > 0).forEach((u) => {
3212
+ u.expanded = !1;
3213
+ }), S.value.expanded = !1, I();
3089
3214
  }
3090
- const A = /* @__PURE__ */ new Map(), N = [];
3091
- function y(p) {
3092
- const s = g.value;
3093
- let o = p;
3094
- const c = Array.from(s.children), m = c[c.length - 1].id === "__more_buttons__" ? c[c.length - 1] : null;
3095
- if (m) {
3096
- const $ = m.computedStyleMap().get("margin-left"), _ = m.computedStyleMap().get("margin-right"), W = ($ ? $.value : 0) + m.getBoundingClientRect().width + (_ ? _.value : 0);
3215
+ const A = /* @__PURE__ */ new Map(), $ = [];
3216
+ function v(u) {
3217
+ const r = g.value;
3218
+ let o = u;
3219
+ const a = Array.from(r.children), h = a[a.length - 1].id === "__more_buttons__" ? a[a.length - 1] : null;
3220
+ if (h) {
3221
+ const N = h.computedStyleMap().get("margin-left"), _ = h.computedStyleMap().get("margin-right"), W = (N ? N.value : 0) + h.getBoundingClientRect().width + (_ ? _.value : 0);
3097
3222
  o -= W;
3098
3223
  }
3099
- const B = c.filter(($) => $.id !== "__more_buttons__");
3100
- for (const $ of B) {
3101
- const _ = $.computedStyleMap().get("margin-left"), W = $.computedStyleMap().get("margin-right"), q = (_ ? _.value : 0) + $.getBoundingClientRect().width + (W ? W.value : 0);
3102
- o < q ? (A.set($.id, !0), N.push({
3103
- id: $.id,
3224
+ const B = a.filter((N) => N.id !== "__more_buttons__");
3225
+ for (const N of B) {
3226
+ const _ = N.computedStyleMap().get("margin-left"), W = N.computedStyleMap().get("margin-right"), q = (_ ? _.value : 0) + N.getBoundingClientRect().width + (W ? W.value : 0);
3227
+ o < q ? (A.set(N.id, !0), $.push({
3228
+ id: N.id,
3104
3229
  width: q
3105
3230
  })) : o -= q;
3106
3231
  }
3107
- if (N.length)
3108
- for (let $ = N.length - 1; $ >= 0; $--) {
3109
- const _ = N[$].width;
3232
+ if ($.length)
3233
+ for (let N = $.length - 1; N >= 0; N--) {
3234
+ const _ = $[N].width;
3110
3235
  if (o >= _)
3111
- o -= _, A.delete(N[$].id), N.pop();
3236
+ o -= _, A.delete($[N].id), $.pop();
3112
3237
  else
3113
3238
  break;
3114
3239
  }
3115
- const M = Object.assign({}, E.value);
3116
- M.children = [];
3117
- const I = new J(M), L = t.value.reduce(($, _) => (A.has(_.id) && I.children.push(_), _.visible = !A.has(_.id), $.push(_), $), []);
3118
- E.value = I, t.value = L;
3240
+ const E = Object.assign({}, S.value);
3241
+ E.children = [];
3242
+ const R = new J(E), L = t.value.reduce((N, _) => (A.has(_.id) && R.children.push(_), _.visible = !A.has(_.id), N.push(_), N), []);
3243
+ S.value = R, t.value = L;
3119
3244
  }
3120
- const f = new ResizeObserver((p) => {
3121
- if (p.length) {
3122
- const o = p[0].contentRect.width, m = g.value.getBoundingClientRect().width;
3123
- (o < m || N.length) && y(o);
3245
+ const m = new ResizeObserver((u) => {
3246
+ if (u.length) {
3247
+ const o = u[0].contentRect.width, h = g.value.getBoundingClientRect().width;
3248
+ (o < h || $.length) && v(o);
3124
3249
  }
3125
3250
  });
3126
3251
  H(() => {
3127
- const p = u.value;
3128
- f.observe(p), document.body.addEventListener("click", P);
3129
- }), re(() => {
3130
- f.disconnect(), document.body.removeEventListener("click", P);
3252
+ const u = c.value;
3253
+ m.observe(u), document.body.addEventListener("click", D);
3254
+ }), ie(() => {
3255
+ m.disconnect(), document.body.removeEventListener("click", D);
3131
3256
  }), G(() => n.items, () => {
3132
3257
  t.value = n.items;
3133
3258
  }, {
3134
3259
  deep: !0
3135
- }), G(t, (p) => {
3136
- r = new Array(t.value.length).fill(x());
3260
+ }), G(t, (u) => {
3261
+ s = new Array(t.value.length).fill(M());
3137
3262
  });
3138
- function S(p, s, o, c) {
3139
- a && a.setupContext && a.setupContext.emit("selectionChange", p, s, o, c);
3263
+ function x(u, r, o, a) {
3264
+ i && i.setupContext && i.setupContext.emit("selectionChange", u, r, o, a);
3140
3265
  }
3141
3266
  function k() {
3142
- const p = g.value.querySelector(".dgComponentFocused.dgComponentSelected");
3143
- p == null || p.classList.remove("dgComponentSelected"), p == null || p.classList.remove("dgComponentFocused");
3267
+ const u = g.value.querySelector(".dgComponentFocused.dgComponentSelected");
3268
+ u == null || u.classList.remove("dgComponentSelected"), u == null || u.classList.remove("dgComponentFocused");
3144
3269
  }
3145
- return () => h("div", {
3270
+ return () => b("div", {
3146
3271
  ref: T,
3147
- "data-dragref": `${a.schema.id}-container`,
3272
+ "data-dragref": `${i.schema.id}-container`,
3148
3273
  class: C.value
3149
- }, [h("div", {
3150
- ref: u,
3274
+ }, [b("div", {
3275
+ ref: c,
3151
3276
  class: w.value
3152
- }, [h("div", {
3277
+ }, [b("div", {
3153
3278
  ref: g,
3154
3279
  class: "d-inline-block f-response-content",
3155
3280
  style: "white-space: nowrap;"
3156
- }, [t.value.map((p, s) => h(xe, {
3157
- ref: r[s],
3281
+ }, [t.value.map((u, r) => b(Be, {
3282
+ ref: s[r],
3158
3283
  class: "p-0 display-inline-block",
3159
- modelValue: p,
3160
- "onUpdate:modelValue": (o) => p = o,
3284
+ modelValue: u,
3285
+ "onUpdate:modelValue": (o) => u = o,
3161
3286
  canMove: !0,
3162
3287
  childType: "response-toolbar-item",
3163
3288
  childLabel: "按钮",
3164
3289
  contentKey: "buttons",
3165
3290
  componentId: n.componentId,
3166
- id: p.id,
3291
+ id: u.id,
3167
3292
  style: "padding:0 !important;display:inline-block",
3168
- onSelectionChange: S,
3293
+ onSelectionChange: x,
3169
3294
  onRemoveComponent: k
3170
3295
  }, {
3171
- default: () => [h(ke, {
3172
- id: p.id,
3173
- disable: p.disable,
3174
- text: p.text,
3175
- icon: p.icon,
3176
- componentId: n.componentId
3177
- }, null)]
3296
+ default: () => {
3297
+ var o;
3298
+ return [b(Re, {
3299
+ id: u.id,
3300
+ disable: u.disable,
3301
+ text: u.text,
3302
+ icon: u.icon,
3303
+ class: ((o = u.appearance) == null ? void 0 : o.class) || "btn-secondary",
3304
+ alignment: n.alignment || "right",
3305
+ componentId: n.componentId
3306
+ }, null)];
3307
+ }
3178
3308
  }))])])]);
3179
3309
  }
3180
- }), he = ue;
3181
- Y.register = (n, e, t) => {
3182
- n["response-toolbar"] = Y, e["response-toolbar"] = ue;
3310
+ }), ye = de;
3311
+ Z.register = (n, e, t) => {
3312
+ n["response-toolbar"] = Z, e["response-toolbar"] = de;
3183
3313
  };
3184
- Y.registerDesigner = (n, e, t) => {
3185
- n["response-toolbar"] = Ae, e["response-toolbar"] = ue, n["response-toolbar-item"] = ke, e["response-toolbar-item"] = kt;
3314
+ Z.registerDesigner = (n, e, t) => {
3315
+ n["response-toolbar"] = Ie, e["response-toolbar"] = de, n["response-toolbar-item"] = Re, e["response-toolbar-item"] = $t;
3186
3316
  };
3187
- Ve(Y);
3188
- const Kt = {
3317
+ Ue(Z);
3318
+ const rn = {
3189
3319
  id: { type: String, default: "" },
3190
3320
  componentId: { type: String, default: "" },
3191
3321
  type: { type: String, default: "" },
@@ -3200,103 +3330,104 @@ const Kt = {
3200
3330
  */
3201
3331
  modelValue: { type: Object },
3202
3332
  ignore: { type: Boolean, default: !1 }
3203
- }, be = /* @__PURE__ */ z({
3333
+ }, ve = /* @__PURE__ */ z({
3204
3334
  name: "FDesignerTemplateItem",
3205
- props: Kt,
3335
+ props: rn,
3206
3336
  emits: ["selectionChange"],
3207
3337
  setup(n, e) {
3208
- const t = x(), r = F(() => ({
3338
+ const t = M(), s = F(() => ({
3209
3339
  "farris-component": !0
3210
3340
  }));
3211
- function u(g) {
3212
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((D) => D.classList.remove("dgComponentFocused")), g && (g.preventDefault(), g.stopPropagation());
3213
- const v = t.value;
3214
- if (v) {
3215
- const D = document.getElementsByClassName("dgComponentSelected");
3216
- D && D.length === 1 && D[0] === t.value || (Array.from(D).forEach((b) => b.classList.remove("dgComponentSelected")), v.classList.add("dgComponentFocused"));
3341
+ function c(g) {
3342
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((P) => P.classList.remove("dgComponentFocused")), g && (g.preventDefault(), g.stopPropagation());
3343
+ const d = t.value;
3344
+ if (d) {
3345
+ const P = document.getElementsByClassName("dgComponentSelected");
3346
+ P && P.length === 1 && P[0] === t.value || (Array.from(P).forEach((y) => y.classList.remove("dgComponentSelected")), d.classList.add("dgComponentFocused"));
3217
3347
  }
3218
3348
  X.value++;
3219
3349
  }
3220
- return () => h("div", {
3350
+ return () => b("div", {
3221
3351
  id: `${n.id}-design-item`,
3222
3352
  ref: t,
3223
- class: r.value,
3224
- onClick: u
3353
+ class: s.value,
3354
+ onClick: c
3225
3355
  }, [e.slots.default && e.slots.default()]);
3226
3356
  }
3227
- }), en = /* @__PURE__ */ z({
3357
+ }), sn = /* @__PURE__ */ z({
3228
3358
  name: "FPageHeaderDesign",
3229
- props: st,
3359
+ props: it,
3230
3360
  emits: ["Click"],
3231
3361
  setup(n, e) {
3232
- const t = x(), r = V("designer-host-service"), u = V("design-item-context"), g = at(u.schema, r), v = rt(t, u, g), D = x(u.schema.toolbar || {
3362
+ const t = M(), s = V("designer-host-service"), c = V("design-item-context"), g = pt(c.schema, s), d = ct(t, c, g), P = M(c.schema.toolbar || {
3233
3363
  type: "response-toolbar",
3234
3364
  buttons: []
3235
- }), E = x(he(D.value));
3365
+ }), S = M(ye(P.value));
3236
3366
  H(() => {
3237
- t.value.componentInstance = v;
3238
- }), G(() => u.schema.toolbar, () => {
3239
- D.value = u.schema.toolbar || {
3367
+ t.value.componentInstance = d;
3368
+ }), G(() => c.schema.toolbar, () => {
3369
+ P.value = c.schema.toolbar || {
3240
3370
  type: "response-toolbar",
3241
3371
  buttons: []
3242
- }, E.value = he(D.value);
3372
+ }, S.value = ye(P.value);
3243
3373
  }, {
3244
3374
  deep: !0
3245
3375
  });
3246
- const b = F(() => [...E.value.items]);
3247
- function T(l, a, d, i) {
3248
- u && u.setupContext && u.setupContext.emit("selectionChange", l, a, d, i);
3376
+ const y = F(() => [...S.value.items]);
3377
+ function T(p, i, f, l) {
3378
+ c && c.setupContext && c.setupContext.emit("selectionChange", p, i, f, l);
3249
3379
  }
3250
- return e.expose(v.value), () => h("div", {
3380
+ return e.expose(d.value), () => b("div", {
3251
3381
  ref: t
3252
- }, [h("nav", {
3382
+ }, [b("nav", {
3253
3383
  class: "f-page-header-base"
3254
- }, [h("div", {
3384
+ }, [b("div", {
3255
3385
  class: "f-title"
3256
- }, [h(be, null, {
3257
- default: () => [h("span", {
3386
+ }, [b(ve, null, {
3387
+ default: () => [b("span", {
3258
3388
  class: "f-title-icon f-text-orna-manage"
3259
- }, [h("i", {
3389
+ }, [b("i", {
3260
3390
  class: n.icon
3261
3391
  }, null)])]
3262
- }), h(be, null, {
3263
- default: () => [h("h4", {
3392
+ }), b(ve, null, {
3393
+ default: () => [b("h4", {
3264
3394
  class: "f-title-text"
3265
3395
  }, [n.title])]
3266
- })]), h(xe, {
3396
+ })]), b(Be, {
3267
3397
  class: "col-6 text-right",
3268
- modelValue: D.value,
3269
- "onUpdate:modelValue": (l) => D.value = l,
3398
+ modelValue: P.value,
3399
+ "onUpdate:modelValue": (p) => P.value = p,
3270
3400
  canAdd: !0,
3271
3401
  childType: "response-toolbar-item",
3272
3402
  childLabel: "按钮",
3273
3403
  contentKey: "buttons",
3274
- id: D.value.id,
3404
+ id: P.value.id,
3275
3405
  componentId: n.componentId,
3276
3406
  onSelectionChange: T
3277
3407
  }, {
3278
- default: () => [h(Ae, {
3408
+ default: () => [b(Ie, {
3279
3409
  customClass: "w-100",
3280
- items: b.value,
3410
+ items: y.value,
3281
3411
  componentId: n.componentId
3282
3412
  }, null)]
3283
3413
  })])]);
3284
3414
  }
3285
- }), cn = {
3415
+ }), fn = {
3286
3416
  install(n) {
3287
- n.component(ne.name, ne);
3417
+ n.component(oe.name, oe);
3288
3418
  },
3289
- register(n, e, t, r) {
3290
- n["page-header"] = ne, e["page-header"] = fe;
3419
+ register(n, e, t, s) {
3420
+ n["page-header"] = oe, e["page-header"] = me, s["page-header"] = { eventHandlerResolver: at };
3291
3421
  },
3292
3422
  registerDesigner(n, e, t) {
3293
- n["page-header"] = en, e["page-header"] = fe;
3423
+ n["page-header"] = sn, e["page-header"] = me;
3294
3424
  }
3295
3425
  };
3296
3426
  export {
3297
- ne as PageHeader,
3298
- cn as default,
3299
- st as pageHeaderDesignerProps,
3300
- le as pageHeaderProps,
3301
- fe as propsResolver
3427
+ oe as PageHeader,
3428
+ fn as default,
3429
+ at as eventHandlerResolver,
3430
+ it as pageHeaderDesignerProps,
3431
+ pe as pageHeaderProps,
3432
+ me as propsResolver
3302
3433
  };