@farris/ui-vue 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +301 -351
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +407 -396
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +266 -255
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +628 -641
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +379 -374
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +471 -471
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +155 -148
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +487 -478
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +330 -279
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1171 -1277
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +220 -204
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +4743 -4641
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +2916 -3019
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2375 -2590
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9518 -1198
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +149 -138
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1602 -1740
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +159 -151
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +311 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +533 -563
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2356 -2455
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3048 -3308
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10537 -3249
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +9781 -1327
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +353 -341
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +510 -827
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +278 -268
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +144 -136
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2139 -2237
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6414 -6367
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +5216 -5114
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +486 -984
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +446 -498
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +363 -388
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1050 -1308
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1072 -1082
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +412 -910
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +214 -203
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1361 -1536
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +650 -677
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12344 -5048
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1821 -565
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +251 -244
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +151 -140
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +707 -676
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +719 -740
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4977 -5249
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +145 -134
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +348 -337
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +141 -130
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +311 -301
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/step/index.esm.js +231 -220
  136. package/components/step/index.umd.cjs +1 -1
  137. package/components/switch/index.esm.js +385 -432
  138. package/components/switch/index.umd.cjs +1 -1
  139. package/components/tabs/index.esm.js +1932 -1914
  140. package/components/tabs/index.umd.cjs +1 -1
  141. package/components/tags/index.esm.js +351 -340
  142. package/components/tags/index.umd.cjs +1 -1
  143. package/components/text/index.esm.js +209 -199
  144. package/components/text/index.umd.cjs +1 -1
  145. package/components/textarea/index.esm.js +388 -415
  146. package/components/textarea/index.umd.cjs +1 -1
  147. package/components/time-picker/index.esm.js +619 -666
  148. package/components/time-picker/index.umd.cjs +1 -1
  149. package/components/transfer/index.esm.js +493 -486
  150. package/components/transfer/index.umd.cjs +1 -1
  151. package/components/tree-grid/index.esm.js +3169 -3278
  152. package/components/tree-grid/index.umd.cjs +1 -1
  153. package/components/tree-view/index.esm.js +2320 -2418
  154. package/components/tree-view/index.umd.cjs +1 -1
  155. package/components/uploader/index.esm.js +563 -554
  156. package/components/uploader/index.umd.cjs +2 -2
  157. package/components/verify-detail/index.esm.js +287 -276
  158. package/components/verify-detail/index.umd.cjs +1 -1
  159. package/components/video/index.esm.js +368 -324
  160. package/components/video/index.umd.cjs +1 -1
  161. package/components/weather/index.esm.js +498 -487
  162. package/components/weather/index.umd.cjs +5 -5
  163. package/farris.all.esm.js +51302 -47651
  164. package/farris.all.umd.cjs +14 -9
  165. package/index.css +1 -1
  166. package/package.json +1 -1
  167. package/types/binding-selector/index.d.ts +55 -0
  168. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  169. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  170. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  171. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  172. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  173. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  174. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  175. package/types/common/entity/entity-schema.d.ts +26 -11
  176. package/types/common/index.d.ts +1 -0
  177. package/types/common/types.d.ts +2 -2
  178. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  179. package/types/condition/src/types.d.ts +6 -6
  180. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  181. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  182. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  183. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  184. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  185. package/types/data-view/composition/types.d.ts +2 -2
  186. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  187. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  188. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  189. package/types/designer-canvas/index.d.ts +2 -1
  190. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  191. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +49 -40
  193. package/types/designer-canvas/src/types.d.ts +8 -20
  194. package/types/dynamic-form/index.d.ts +1 -1
  195. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  196. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  197. package/types/dynamic-form/src/types.d.ts +1 -1
  198. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
  199. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  200. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  201. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  202. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  203. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  204. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  205. package/types/event-parameter/index.d.ts +31 -0
  206. package/types/event-parameter/src/composition/type.d.ts +77 -0
  207. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  208. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  209. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  210. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  211. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  212. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  213. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  214. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  215. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  216. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  217. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  218. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  219. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  220. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  221. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  222. package/types/modal/src/composition/modal.service.d.ts +2 -1
  223. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  224. package/types/page-header/src/page-header.component.d.ts +1 -1
  225. package/types/property-panel/index.d.ts +2 -1
  226. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  227. package/types/property-panel/src/composition/type.d.ts +0 -13
  228. package/types/query-solution/src/composition/types.d.ts +35 -4
  229. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  230. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  231. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  232. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
  233. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  234. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
  235. package/types/query-solution/src/query-solution.d.ts +10 -2
  236. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  237. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  238. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  239. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  240. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  241. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  242. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  243. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  244. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  245. package/types/tabs/src/composition/types.d.ts +4 -1
  246. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  247. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  248. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  249. package/types/text/src/composition/types.d.ts +4 -4
  250. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  251. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  252. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  253. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  254. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  255. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  256. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  257. package/types/weather/src/composition/types.d.ts +0 -2
  258. /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
  259. /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
@@ -1,103 +1,107 @@
1
- var je = Object.defineProperty;
2
- var $e = (n, e, t) => e in n ? je(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var R = (n, e, t) => $e(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as U, ref as S, computed as N, watch as q, createVNode as g, createTextVNode as J, getCurrentInstance as be, onMounted as H, onUnmounted as ye, inject as V, provide as _e, onBeforeUnmount as Ne, withModifiers as Fe } from "vue";
5
- import { isPlainObject as ue, cloneDeep as ve } from "lodash-es";
6
- import Le from "../response-toolbar/index.esm.js";
7
- import { getCustomClass as Y, withInstall as Ve } from "../common/index.esm.js";
8
- import { useDesignerInnerComponent as Ce } from "../designer-canvas/index.esm.js";
9
- const se = {}, we = {};
10
- function re(n) {
11
- const { properties: e, title: t, ignore: s } = n, i = s && Array.isArray(s), p = Object.keys(e).reduce((u, y) => ((!i || !s.find((w) => w == y)) && (u[y] = e[y].type === "object" && e[y].properties ? re(e[y]) : ve(e[y].default)), u), {});
12
- return t && (!i || !s.find((u) => u == "id")) && (p.id = `${t}-${Date.now()}`), p;
1
+ var Ie = Object.defineProperty;
2
+ var Ae = (o, e, t) => e in o ? Ie(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var R = (o, e, t) => Ae(o, typeof e != "symbol" ? e + "" : e, t);
4
+ import { defineComponent as W, ref as M, computed as F, watch as z, createVNode as m, createTextVNode as X, getCurrentInstance as he, onMounted as G, onUnmounted as be, inject as V, provide as Oe, onBeforeUnmount as je, withModifiers as _e } from "vue";
5
+ import { isPlainObject as ue, cloneDeep as ye } from "lodash-es";
6
+ import $e from "../response-toolbar/index.esm.js";
7
+ import { getCustomClass as Z, withInstall as Fe } from "../common/index.esm.js";
8
+ import { useDesignerInnerComponent as ve } from "../designer-canvas/index.esm.js";
9
+ const Ce = {}, we = {};
10
+ function re(o) {
11
+ const { properties: e, title: t, ignore: s } = o, i = s && Array.isArray(s), u = Object.keys(e).reduce((d, g) => ((!i || !s.find((w) => w === g)) && (d[g] = e[g].type === "object" && e[g].properties ? re(e[g]) : ye(e[g].default)), d), {});
12
+ if (t && (!i || !s.find((d) => d === "id"))) {
13
+ const d = t.toLowerCase().replace(/-/g, "_");
14
+ u.id = `${d}_${Math.random().toString().slice(2, 6)}`;
15
+ }
16
+ return u;
13
17
  }
14
- function Q(n, e = {}, t) {
15
- const s = se[n];
18
+ function Y(o, e = {}, t) {
19
+ const s = Ce[o];
16
20
  if (s) {
17
21
  let i = re(s);
18
- const p = we[n];
19
- return i = p ? p({ getSchemaByType: Q }, i, e, t) : i, i;
22
+ const u = we[o];
23
+ return i = u ? u({ getSchemaByType: Y }, i, e, t) : i, i;
20
24
  }
21
25
  return null;
22
26
  }
23
- function Ue(n, e) {
27
+ function Ne(o, e) {
24
28
  const t = re(e);
25
- return Object.keys(n).reduce((s, i) => (s[i] && ue(s[i]) && ue(n[i]) ? Object.assign(s[i], n[i]) : s[i] = n[i], s), t), t;
29
+ return Object.keys(t).reduce((s, i) => (s[i] && ue(s[i]) && ue(o[i] || !o[i]) ? Object.assign(s[i], o[i] || {}) : s[i] = o[i], s), t), t;
26
30
  }
27
- function We(n, e) {
28
- return Object.keys(n).filter((s) => n[s] != null).reduce((s, i) => {
31
+ function Le(o, e) {
32
+ return Object.keys(o).filter((s) => o[s] != null).reduce((s, i) => {
29
33
  if (e.has(i)) {
30
- const p = e.get(i);
31
- if (typeof p == "string")
32
- s[p] = n[i];
34
+ const u = e.get(i);
35
+ if (typeof u == "string")
36
+ s[u] = o[i];
33
37
  else {
34
- const u = p(i, n[i], n);
35
- Object.assign(s, u);
38
+ const d = u(i, o[i], o);
39
+ Object.assign(s, d);
36
40
  }
37
41
  } else
38
- s[i] = n[i];
42
+ s[i] = o[i];
39
43
  return s;
40
44
  }, {});
41
45
  }
42
- function qe(n, e, t = /* @__PURE__ */ new Map()) {
43
- const s = Ue(n, e);
44
- return We(s, t);
46
+ function Ve(o, e, t = /* @__PURE__ */ new Map()) {
47
+ const s = Ne(o, e);
48
+ return Le(s, t);
45
49
  }
46
- function He(n = {}) {
47
- function e(h, b, l, c) {
48
- if (typeof l == "number")
49
- return c[h].length === l;
50
- if (typeof l == "object") {
51
- const f = Object.keys(l)[0], v = l[f];
50
+ function Ue(o = {}) {
51
+ function e(h, b, c, l) {
52
+ if (typeof c == "number")
53
+ return l[h].length === c;
54
+ if (typeof c == "object") {
55
+ const f = Object.keys(c)[0], v = c[f];
52
56
  if (f === "not")
53
- return Number(c[h].length) !== Number(v);
57
+ return Number(l[h].length) !== Number(v);
54
58
  if (f === "moreThan")
55
- return Number(c[h].length) >= Number(v);
59
+ return Number(l[h].length) >= Number(v);
56
60
  if (f === "lessThan")
57
- return Number(c[h].length) <= Number(v);
61
+ return Number(l[h].length) <= Number(v);
58
62
  }
59
63
  return !1;
60
64
  }
61
- function t(h, b, l, c) {
62
- return c[h] && c[h].propertyValue && String(c[h].propertyValue.value) === String(l);
65
+ function t(h, b, c, l) {
66
+ return l[h] && l[h].propertyValue && String(l[h].propertyValue.value) === String(c);
63
67
  }
64
68
  const s = /* @__PURE__ */ new Map([
65
69
  ["length", e],
66
70
  ["getProperty", t]
67
71
  ]);
68
- Object.keys(n).reduce((h, b) => (h.set(b, n[b]), h), s);
72
+ Object.keys(o).reduce((h, b) => (h.set(b, o[b]), h), s);
69
73
  function i(h, b) {
70
- const l = h;
71
- return typeof b == "number" ? [{ target: l, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: l, operator: "getProperty", param: h, value: !!b }] : typeof b == "object" ? Object.keys(b).map((c) => {
72
- if (c === "length")
73
- return { target: l, operator: "length", param: null, value: b[c] };
74
- const f = c, v = b[c];
75
- return { target: l, operator: "getProperty", param: f, value: v };
74
+ const c = h;
75
+ return typeof b == "number" ? [{ target: c, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: c, operator: "getProperty", param: h, value: !!b }] : typeof b == "object" ? Object.keys(b).map((l) => {
76
+ if (l === "length")
77
+ return { target: c, operator: "length", param: null, value: b[l] };
78
+ const f = l, v = b[l];
79
+ return { target: c, operator: "getProperty", param: f, value: v };
76
80
  }) : [];
77
81
  }
78
- function p(h) {
79
- return Object.keys(h).reduce((l, c) => {
80
- const f = i(c, h[c]);
81
- return l.push(...f), l;
82
+ function u(h) {
83
+ return Object.keys(h).reduce((c, l) => {
84
+ const f = i(l, h[l]);
85
+ return c.push(...f), c;
82
86
  }, []);
83
87
  }
84
- function u(h, b) {
88
+ function d(h, b) {
85
89
  if (s.has(h.operator)) {
86
- const l = s.get(h.operator);
87
- return l && l(h.target, h.param, h.value, b) || !1;
90
+ const c = s.get(h.operator);
91
+ return c && c(h.target, h.param, h.value, b) || !1;
88
92
  }
89
93
  return !1;
90
94
  }
91
- function y(h, b) {
92
- return p(h).reduce((f, v) => f && u(v, b), !0);
95
+ function g(h, b) {
96
+ return u(h).reduce((f, v) => f && d(v, b), !0);
93
97
  }
94
98
  function w(h, b) {
95
- const l = Object.keys(h), c = l.includes("allOf"), f = l.includes("anyOf"), v = c || f, $ = (v ? h[v ? c ? "allOf" : "anyOf" : "allOf"] : [h]).map((T) => y(T, b));
96
- return c ? !$.includes(!1) : $.includes(!0);
99
+ const c = Object.keys(h), l = c.includes("allOf"), f = c.includes("anyOf"), v = l || f, j = (v ? h[v ? l ? "allOf" : "anyOf" : "allOf"] : [h]).map((D) => g(D, b));
100
+ return l ? !j.includes(!1) : j.includes(!0);
97
101
  }
98
102
  return { parseValueSchema: w };
99
103
  }
100
- const K = {
104
+ const ee = {
101
105
  button: { type: "button", name: "按钮", icon: "Button" },
102
106
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
103
107
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -135,45 +139,47 @@ const K = {
135
139
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
136
140
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
137
141
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
138
- fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
139
- }, Pe = {}, ze = {};
140
- He();
141
- function ie(n, e, t = /* @__PURE__ */ new Map(), s = (u, y, w) => y, i = {}, p = (u) => u) {
142
- return se[e.title] = e, we[e.title] = s, Pe[e.title] = i, ze[e.title] = p, (u = {}) => {
143
- const y = qe(u, e, t), w = Object.keys(n).reduce((h, b) => (h[b] = n[b].default, h), {});
144
- return Object.assign(w, y);
142
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
143
+ "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
144
+ }, We = {}, qe = {};
145
+ Ue();
146
+ function ie(o, e, t = /* @__PURE__ */ new Map(), s = (d, g, w, h) => g, i = {}, u = (d) => d) {
147
+ return Ce[e.title] = e, we[e.title] = s, We[e.title] = i, qe[e.title] = u, (d = {}) => {
148
+ const g = Ve(d, e, t), w = Object.keys(o).reduce((h, b) => (h[b] = o[b].default, h), {});
149
+ return Object.assign(w, g);
145
150
  };
146
151
  }
147
- function De(n, e) {
152
+ function Pe(o, e) {
148
153
  return { customClass: e.class, customStyle: e.style };
149
154
  }
150
- function Ge(n, e) {
155
+ function He(o, e) {
156
+ var s, i;
151
157
  const t = [];
152
- return e == null || e.buttons.map((s) => {
153
- const i = {};
154
- Object.keys(s).map((p) => {
155
- var u;
156
- p == "appearance" ? i.class = ((u = s[p]) == null ? void 0 : u.class) || "" : i[p] = s[p];
157
- }), t.push(i);
158
- }), { buttons: t };
158
+ return e == null || e.buttons.map((u) => {
159
+ const d = {};
160
+ Object.keys(u).map((g) => {
161
+ var w;
162
+ g === "appearance" ? d.class = ((w = u[g]) == null ? void 0 : w.class) || "" : d[g] = u[g];
163
+ }), t.push(d);
164
+ }), (s = e.appearance) != null && s.class ? { buttons: t, buttonClass: (i = e.appearance) == null ? void 0 : i.class } : { buttons: t };
159
165
  }
160
- function Je() {
161
- function n(e, t) {
162
- var y;
163
- const s = (y = e.toolbar) == null ? void 0 : y.buttons;
166
+ function ze() {
167
+ function o(e, t) {
168
+ var g;
169
+ const s = (g = e.toolbar) == null ? void 0 : g.buttons;
164
170
  if (!s || s.length < 1)
165
171
  return null;
166
- const [i, p] = t.payloads, u = s.find((w) => w.id === p);
167
- return u ? u.onClick || u.click : null;
172
+ const [i, u] = t.payloads, d = s.find((w) => w.id === u);
173
+ return d ? d.onClick || d.click : null;
168
174
  }
169
175
  return {
170
- resolve: n
176
+ resolve: o
171
177
  };
172
178
  }
173
- const Qe = /* @__PURE__ */ new Map([
174
- ["appearance", De],
175
- ["toolbar", Ge]
176
- ]), 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 = {
179
+ const Ge = /* @__PURE__ */ new Map([
180
+ ["appearance", Pe],
181
+ ["toolbar", He]
182
+ ]), Qe = "https://json-schema.org/draft/2020-12/schema", Je = "https://farris-design.gitee.io/page-header.schema.json", Xe = "page-header", Ye = "A Farris Container Component", Ze = "object", Ke = {
177
183
  id: {
178
184
  description: "The unique identifier for a Page Header",
179
185
  type: "string"
@@ -225,12 +231,22 @@ const Qe = /* @__PURE__ */ new Map([
225
231
  description: "",
226
232
  type: "object",
227
233
  properties: {
234
+ appearance: {
235
+ description: "",
236
+ type: "object",
237
+ properties: {
238
+ class: {
239
+ type: "string",
240
+ default: "col-6"
241
+ }
242
+ }
243
+ },
228
244
  id: {
229
- description: "The unique identifier for a Response Toolbar",
245
+ description: "",
230
246
  type: "string"
231
247
  },
232
248
  type: {
233
- description: "The type string of Response Toolbar",
249
+ description: "",
234
250
  type: "string",
235
251
  default: "response-toolbar"
236
252
  },
@@ -281,15 +297,15 @@ const Qe = /* @__PURE__ */ new Map([
281
297
  type: "boolean",
282
298
  default: !1
283
299
  }
284
- }, nt = {
285
- $schema: Xe,
286
- $id: Ye,
287
- title: Ze,
288
- description: Ke,
289
- type: et,
290
- properties: tt
300
+ }, et = {
301
+ $schema: Qe,
302
+ $id: Je,
303
+ title: Xe,
304
+ description: Ye,
305
+ type: Ze,
306
+ properties: Ke
291
307
  };
292
- function ot(n, e, t) {
308
+ function tt(o, e, t) {
293
309
  return e.title = "标题", e;
294
310
  }
295
311
  const ae = {
@@ -321,195 +337,200 @@ const ae = {
321
337
  prePaginationDisabled: { type: Boolean, default: !0 },
322
338
  /** 向后翻页是否禁用 */
323
339
  nextPaginationDisabled: { type: Boolean, default: !1 }
324
- }, st = Object.assign({}, ae, {
340
+ }, nt = Object.assign({}, ae, {
325
341
  componentId: { type: String, default: "" }
326
- }), pe = ie(ae, nt, Qe, ot), rt = Je(), ne = /* @__PURE__ */ U({
342
+ }), pe = ie(ae, et, Ge, tt), ot = ze(), oe = /* @__PURE__ */ W({
327
343
  name: "FPageHeader",
328
344
  props: ae,
329
- emits: ["Click", "PrePaginationClick", "NextPaginationClick"],
330
- setup(n, e) {
331
- const t = S(n.buttons), s = (T, B) => {
332
- e.emit("Click", T, B);
345
+ emits: ["click", "prePaginationClick", "nextPaginationClick"],
346
+ setup(o, e) {
347
+ const t = M(o.buttons), s = (D, I) => {
348
+ e.emit("click", D, I);
333
349
  };
334
- function i(T, B) {
335
- T && B && B.split(" ").reduce((x, C) => (x[C] = !0, x), T);
350
+ function i(D, I) {
351
+ D && I && I.split(" ").reduce((k, y) => (k[y] = !0, k), D);
336
352
  }
337
- const p = N(() => {
338
- const T = {
353
+ const u = F(() => {
354
+ const D = {
339
355
  "f-page-header": !0
340
356
  };
341
- return i(T, n.customClass), T;
342
- }), u = N(() => {
343
- const T = {
357
+ return i(D, o.customClass), D;
358
+ }), d = F(() => {
359
+ const D = {
344
360
  "f-title-icon": !0
345
361
  };
346
- return i(T, n.iconClass), T;
347
- }), y = N(() => {
348
- const T = {
362
+ return i(D, o.iconClass), D;
363
+ }), g = F(() => {
364
+ const D = {
349
365
  "f-icon": !0
350
366
  };
351
- return i(T, n.icon), T;
352
- }), w = N(() => {
353
- const T = {
367
+ return i(D, o.icon), D;
368
+ }), w = F(() => {
369
+ const D = {
354
370
  "f-title": !0
355
371
  };
356
- return i(T, n.titleContentClass), T;
357
- }), h = N(() => {
358
- const T = {
372
+ return i(D, o.titleContentClass), D;
373
+ }), h = F(() => {
374
+ const D = {
359
375
  "f-content": !0
360
376
  };
361
- return i(T, n.contentClass), T;
362
- }), b = N(() => {
363
- const T = {
377
+ return i(D, o.contentClass), D;
378
+ }), b = F(() => {
379
+ const D = {
364
380
  "f-content": !0
365
381
  };
366
- return i(T, n.downContentClass), T;
367
- }), l = N(() => ({
382
+ return i(D, o.downContentClass), D;
383
+ }), c = F(() => ({
368
384
  "f-icon f-icon-arrow-w": !0,
369
- "f-state-disabled": n.prePaginationDisabled
370
- })), c = N(() => ({
385
+ "f-state-disabled": o.prePaginationDisabled
386
+ })), l = F(() => ({
371
387
  "f-icon f-icon-arrow-e": !0,
372
- "f-state-disabled": n.nextPaginationDisabled
388
+ "f-state-disabled": o.nextPaginationDisabled
373
389
  }));
374
- function f(T) {
375
- n.prePaginationDisabled || e.emit("PrePaginationClick", T);
390
+ function f(D) {
391
+ o.prePaginationDisabled || e.emit("prePaginationClick", D);
376
392
  }
377
- function v(T) {
378
- n.nextPaginationDisabled || e.emit("NextPaginationClick", T);
393
+ function v(D) {
394
+ o.nextPaginationDisabled || e.emit("nextPaginationClick", D);
379
395
  }
380
- function k() {
381
- return e.slots.titleContent ? g("div", {
396
+ function E() {
397
+ return e.slots.titleContent ? m("div", {
382
398
  class: w.value
383
- }, [J(" "), e.slots.titleContent()]) : g("div", {
399
+ }, [X(" "), e.slots.titleContent()]) : m("div", {
384
400
  class: "f-title"
385
- }, [n.showIcon && n.icon ? g("span", {
386
- class: u.value
387
- }, [g("i", {
388
- class: y.value
389
- }, null)]) : "", g("h4", {
401
+ }, [o.showIcon && o.icon ? m("span", {
402
+ class: d.value
403
+ }, [m("i", {
404
+ class: g.value
405
+ }, null)]) : "", m("h4", {
390
406
  class: "f-title-text"
391
- }, [n.title]), n.subTitle ? g("h5", {
407
+ }, [o.title]), o.subTitle ? m("h5", {
392
408
  class: "f-title-subtitle"
393
- }, [n.subTitle]) : "", n.showPagination ? g("div", {
409
+ }, [o.subTitle]) : "", o.showPagination ? m("div", {
394
410
  class: "f-title-pagination"
395
- }, [g("span", {
396
- class: l.value,
397
- onClick: f
398
- }, null), g("span", {
411
+ }, [m("span", {
399
412
  class: c.value,
413
+ onClick: f
414
+ }, null), m("span", {
415
+ class: l.value,
400
416
  onClick: v
401
417
  }, null)]) : ""]);
402
418
  }
403
- function A() {
404
- return e.slots.content ? g("div", {
419
+ function O() {
420
+ return e.slots.content ? m("div", {
405
421
  class: h.value
406
- }, [J(" "), e.slots.content()]) : "";
422
+ }, [X(" "), e.slots.content()]) : "";
407
423
  }
408
- function $() {
409
- if (n.buttons && n.buttons.length > 0)
410
- return g(Le, {
411
- customClass: n.buttonClass,
424
+ function j() {
425
+ if (o.buttons && o.buttons.length > 0)
426
+ return m($e, {
427
+ customClass: o.buttonClass,
412
428
  items: t.value,
413
429
  onClick: s
414
430
  }, null);
415
431
  }
416
432
  function _() {
417
- return e.slots.downContent ? g("div", {
433
+ return e.slots.downContent ? m("div", {
418
434
  class: b.value
419
- }, [J(" "), e.slots.downContent()]) : "";
435
+ }, [X(" "), e.slots.downContent()]) : "";
420
436
  }
421
- return q(() => n.buttons, (T) => {
422
- t.value = T;
437
+ return z(() => o.buttons, (D) => {
438
+ t.value = D;
423
439
  }, {
424
440
  deep: !0
425
- }), () => g("div", {
426
- class: p.value
427
- }, [g("nav", {
441
+ }), () => m("div", {
442
+ class: u.value
443
+ }, [m("nav", {
428
444
  class: "f-page-header-base"
429
- }, [k(), A(), $()]), _()]);
445
+ }, [E(), O(), j()]), _()]);
430
446
  }
431
447
  });
432
- function it(n, e, t) {
433
- var B;
434
- function s() {
435
- t != null && t.resolveComponentContext && t.resolveComponentContext();
436
- }
437
- s();
438
- const i = t && t.getStyles && t.getStyles() || "", p = t && t.getDesignerClass && t.getDesignerClass() || "", u = S();
439
- function y() {
448
+ function st(o, e, t) {
449
+ var I;
450
+ const s = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", u = M();
451
+ function d() {
440
452
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
441
453
  }
442
- function w() {
454
+ function g() {
443
455
  return !1;
444
456
  }
445
- function h() {
457
+ function w() {
446
458
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
447
459
  }
448
- function b() {
460
+ function h() {
449
461
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
450
462
  }
451
- function l(P) {
452
- if (!P || !P.value)
463
+ function b(S) {
464
+ if (!S || !S.value)
453
465
  return null;
454
- if (P.value.schema && P.value.schema.type === "component")
455
- return P.value;
456
- const x = S(P == null ? void 0 : P.value.parent), C = l(x);
457
- return C || null;
466
+ if (S.value.schema && S.value.schema.type === "component")
467
+ return S.value;
468
+ const k = M(S == null ? void 0 : S.value.parent), y = b(k);
469
+ return y || null;
458
470
  }
459
- function c(P = e) {
460
- const { componentInstance: x, designerItemElementRef: C } = P;
461
- return !x || !x.value ? null : x.value.canMove ? C : c(P.parent);
471
+ function c(S = e) {
472
+ const { componentInstance: k, designerItemElementRef: y } = S;
473
+ return !k || !k.value ? null : k.value.canMove ? y : c(S.parent);
462
474
  }
463
- function f(P) {
464
- return !!t && t.canAccepts(P);
475
+ function l(S) {
476
+ return !!t && t.canAccepts(S);
465
477
  }
466
- function v() {
478
+ function f() {
467
479
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
468
480
  }
469
- function k() {
481
+ function v() {
470
482
  }
471
- function A(P, x) {
472
- x && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(x);
483
+ function E(S, k) {
484
+ k && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(k);
473
485
  }
474
- function $(P, x) {
475
- const { componentType: C } = P;
476
- let I = Q(C, P, x);
477
- t && t.onResolveNewComponentSchema && (I = t.onResolveNewComponentSchema(P, I));
478
- const O = C.toLowerCase().replace("-", "_");
479
- return I && !I.id && I.type === C && (I.id = `${O}_${Math.random().toString().slice(2, 6)}`), I;
486
+ function O(S, k) {
487
+ const { componentType: y } = S;
488
+ let x = Y(y, S, k);
489
+ t && t.onResolveNewComponentSchema && (x = t.onResolveNewComponentSchema(S, x));
490
+ const A = y.toLowerCase().replace(/-/g, "_");
491
+ return x && !x.id && x.type === y && (x.id = `${A}_${Math.random().toString().slice(2, 6)}`), x;
480
492
  }
481
- function _(P) {
493
+ function j(S) {
482
494
  }
483
- function T(...P) {
495
+ function _(...S) {
484
496
  if (t && t.getPropsConfig)
485
- return t.getPropsConfig(...P);
497
+ return t.getPropsConfig(...S);
498
+ }
499
+ function D() {
500
+ t && t.onRemoveComponent && t.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((S) => {
501
+ var x;
502
+ let k = S.id;
503
+ S.type === "component-ref" && (k = S.component);
504
+ const y = o.value.querySelector(`#${k}-design-item`);
505
+ (x = y == null ? void 0 : y.componentInstance) != null && x.value.onRemoveComponent && y.componentInstance.value.onRemoveComponent();
506
+ });
486
507
  }
487
508
  return u.value = {
488
- canMove: y(),
489
- canSelectParent: w(),
490
- canDelete: h(),
491
- canNested: !b(),
509
+ canMove: d(),
510
+ canSelectParent: g(),
511
+ canDelete: w(),
512
+ canNested: !h(),
492
513
  contents: e == null ? void 0 : e.schema.contents,
493
- elementRef: n,
494
- parent: (B = e == null ? void 0 : e.parent) == null ? void 0 : B.componentInstance,
514
+ elementRef: o,
515
+ parent: (I = e == null ? void 0 : e.parent) == null ? void 0 : I.componentInstance,
495
516
  schema: e == null ? void 0 : e.schema,
496
- styles: i,
497
- designerClass: p,
498
- canAccepts: f,
499
- getBelongedComponentInstance: l,
517
+ styles: s,
518
+ designerClass: i,
519
+ canAccepts: l,
520
+ getBelongedComponentInstance: b,
500
521
  getDraggableDesignItemElement: c,
501
- getDraggingDisplayText: v,
502
- getPropConfig: T,
503
- getDragScopeElement: k,
504
- onAcceptMovedChildElement: A,
505
- onChildElementMovedOut: _,
506
- addNewChildComponentSchema: $,
507
- updateDragAndDropRules: s,
508
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || S(!1),
509
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
522
+ getDraggingDisplayText: f,
523
+ getPropConfig: _,
524
+ getDragScopeElement: v,
525
+ onAcceptMovedChildElement: E,
526
+ onChildElementMovedOut: j,
527
+ addNewChildComponentSchema: O,
528
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
529
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1),
530
+ onRemoveComponent: D
510
531
  }, u;
511
532
  }
512
- class ee {
533
+ class te {
513
534
  constructor(e, t) {
514
535
  R(this, "componentId");
515
536
  R(this, "viewModelId");
@@ -534,13 +555,14 @@ class ee {
534
555
  return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
535
556
  }
536
557
  setDesignViewModelField(e) {
558
+ var s;
537
559
  const t = e.binding && e.binding.type === "Form" && e.binding.field;
538
560
  if (t) {
539
561
  if (!this.designViewModelField) {
540
- const s = this.designViewModelUtils.getDgViewModel(this.viewModelId);
541
- this.designViewModelField = s.fields.find((i) => i.id === t);
562
+ const i = this.designViewModelUtils.getDgViewModel(this.viewModelId);
563
+ this.designViewModelField = i.fields.find((u) => u.id === t);
542
564
  }
543
- e.updateOn = this.designViewModelField.updateOn;
565
+ e.updateOn = (s = this.designViewModelField) == null ? void 0 : s.updateOn;
544
566
  }
545
567
  }
546
568
  changeFieldEditorType(e, t) {
@@ -564,7 +586,7 @@ class ee {
564
586
  type: "combo-list",
565
587
  textField: "name",
566
588
  valueField: "value",
567
- data: [{ value: e.type, name: K[e.type].name }]
589
+ data: [{ value: e.type, name: ee[e.type].name }]
568
590
  }
569
591
  }
570
592
  }
@@ -600,11 +622,11 @@ class ee {
600
622
  const s = t && t.parent && t.parent.schema;
601
623
  if (!s)
602
624
  return;
603
- const i = s.contents.findIndex((u) => u.id === e), p = ve(s.contents[i]);
604
- s.contents.splice(i, 1), s.contents.splice(i, 0, p);
625
+ const i = s.contents.findIndex((d) => d.id === e), u = ye(s.contents[i]);
626
+ s.contents.splice(i, 1), s.contents.splice(i, 0, u);
605
627
  }
606
628
  }
607
- class at extends ee {
629
+ class rt extends te {
608
630
  constructor(e, t) {
609
631
  super(e, t);
610
632
  }
@@ -630,7 +652,7 @@ class at extends ee {
630
652
  type: "combo-list",
631
653
  textField: "value",
632
654
  valueField: "key",
633
- data: [{ key: "page-header", value: K["page-header"].name }]
655
+ data: [{ key: "page-header", value: ee["page-header"].name }]
634
656
  }
635
657
  },
636
658
  icon: {
@@ -661,12 +683,7 @@ class at extends ee {
661
683
  description: "Appearance",
662
684
  properties: {
663
685
  class: {
664
- title: "class",
665
- type: "string",
666
- description: ""
667
- },
668
- style: {
669
- title: "style",
686
+ title: "class样式",
670
687
  type: "string",
671
688
  description: ""
672
689
  }
@@ -695,15 +712,15 @@ class at extends ee {
695
712
  refreshPanelAfterChanged: !0,
696
713
  tabId: "commands",
697
714
  tabName: "交互",
698
- setPropertyRelates(p, u) {
699
- const y = p.propertyValue;
700
- delete e[s.viewModelId], y && (y.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, y.events, y));
715
+ setPropertyRelates(u, d) {
716
+ const g = u.propertyValue;
717
+ delete e[s.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, g.events, g));
701
718
  }
702
719
  };
703
720
  }
704
721
  }
705
- function lt(n, e) {
706
- function t(y) {
722
+ function it(o, e) {
723
+ function t(g) {
707
724
  return !1;
708
725
  }
709
726
  function s() {
@@ -712,21 +729,21 @@ function lt(n, e) {
712
729
  function i() {
713
730
  return !1;
714
731
  }
715
- function p() {
732
+ function u() {
716
733
  return !0;
717
734
  }
718
- function u(y) {
719
- return new at(y, e).getPropertyConfig(n);
735
+ function d(g) {
736
+ return new rt(g, e).getPropertyConfig(o);
720
737
  }
721
738
  return {
722
739
  canAccepts: t,
723
- hideNestedPaddingInDesginerView: p,
724
- getPropsConfig: u,
740
+ hideNestedPaddingInDesginerView: u,
741
+ getPropsConfig: d,
725
742
  checkCanDeleteComponent: s,
726
743
  checkCanMoveComponent: i
727
744
  };
728
745
  }
729
- class Te {
746
+ class Se {
730
747
  constructor(e) {
731
748
  /** 工具栏项标识 */
732
749
  R(this, "id", "");
@@ -777,7 +794,7 @@ class Te {
777
794
  }
778
795
  /** 是否可用 */
779
796
  get enable() {
780
- return Object.keys(this.options).indexOf("disabled") > -1 ? !this.options.disabled : N(() => !0);
797
+ return Object.keys(this.options).indexOf("disabled") > -1 ? !this.options.disabled : F(() => !0);
781
798
  }
782
799
  /** 设置宽度 */
783
800
  setWidth(e) {
@@ -788,20 +805,20 @@ class Te {
788
805
  return this.visible ? this.width : !1;
789
806
  }
790
807
  }
791
- class ct extends Te {
808
+ class at extends Se {
792
809
  constructor(e) {
793
810
  super(e);
794
811
  }
795
812
  }
796
- function Se() {
797
- function n(e) {
813
+ function Te() {
814
+ function o(e) {
798
815
  const t = [];
799
- return e.reduce((s, i) => (i.children && i.children.length > 0 ? s.push(new z(i)) : s.push(new ct(i)), s), t), t;
816
+ return e.reduce((s, i) => (i.children && i.children.length > 0 ? s.push(new Q(i)) : s.push(new at(i)), s), t), t;
800
817
  }
801
- return { buildResponseToolbarItems: n };
818
+ return { buildResponseToolbarItems: o };
802
819
  }
803
- const { buildResponseToolbarItems: dt } = Se();
804
- class z extends Te {
820
+ const { buildResponseToolbarItems: ct } = Te();
821
+ class Q extends Se {
805
822
  constructor(t) {
806
823
  super(t);
807
824
  R(this, "placement", "");
@@ -817,22 +834,23 @@ class z extends Te {
817
834
  const s = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
818
835
  Object.keys(t).filter((i) => s.indexOf(i) > -1).forEach((i) => {
819
836
  this[i] = t[i];
820
- }), t.children && t.children.length && (this.children = dt(t.children));
837
+ }), t.children && t.children.length && (this.children = ct(t.children));
821
838
  }
822
839
  }
823
- const ut = /* @__PURE__ */ new Map([
840
+ const lt = /* @__PURE__ */ new Map([
824
841
  ["buttons", "items"],
825
- ["appearance", De]
826
- ]), pt = /* @__PURE__ */ new Map([
827
- ["appearance", ft]
842
+ ["appearance", Pe]
828
843
  ]);
829
- function ft(n, e) {
844
+ function dt(o, e) {
830
845
  return { class: e.class, style: e.style };
831
846
  }
832
- function ke(n, e, t) {
847
+ const ut = /* @__PURE__ */ new Map([
848
+ ["appearance", dt]
849
+ ]);
850
+ function De(o, e, t) {
833
851
  return e;
834
852
  }
835
- const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-design.gitee.io/response-toolbar.schema.json", ht = "response-toolbar", bt = "A Farris Toolbar Component", yt = "object", vt = {
853
+ const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-design.gitee.io/response-toolbar.schema.json", mt = "response-toolbar", gt = "A Farris Toolbar Component", ht = "object", bt = {
836
854
  id: {
837
855
  description: "The unique identifier for a Response Toolbar",
838
856
  type: "string"
@@ -847,10 +865,10 @@ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
847
865
  type: "object",
848
866
  properties: {
849
867
  class: {
850
- type: "string"
868
+ type: "string",
869
+ default: ""
851
870
  }
852
- },
853
- default: {}
871
+ }
854
872
  },
855
873
  alignment: {
856
874
  description: "The alignment of Response Toolbar Button.",
@@ -862,19 +880,19 @@ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
862
880
  type: "array",
863
881
  default: []
864
882
  }
865
- }, Ct = [
883
+ }, yt = [
866
884
  "id",
867
885
  "type",
868
886
  "buttons"
869
- ], wt = {
870
- $schema: gt,
871
- $id: mt,
872
- title: ht,
873
- description: bt,
874
- type: yt,
875
- properties: vt,
876
- required: Ct
877
- }, Pt = "https://json-schema.org/draft/2020-12/schema", Dt = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Tt = "response-toolbar-item", St = "A Farris Toolbar Item Component", kt = "object", Mt = {
887
+ ], vt = {
888
+ $schema: pt,
889
+ $id: ft,
890
+ title: mt,
891
+ description: gt,
892
+ type: ht,
893
+ properties: bt,
894
+ required: yt
895
+ }, Ct = "https://json-schema.org/draft/2020-12/schema", wt = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Pt = "response-toolbar-item", St = "A Farris Toolbar Item Component", Tt = "object", Dt = {
878
896
  id: {
879
897
  description: "The unique identifier for a Response Toolbar",
880
898
  type: "string"
@@ -892,8 +910,7 @@ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
892
910
  type: "string",
893
911
  default: "btn-secondary"
894
912
  }
895
- },
896
- default: {}
913
+ }
897
914
  },
898
915
  alignment: {
899
916
  description: "对齐",
@@ -920,57 +937,19 @@ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
920
937
  type: "string",
921
938
  default: ""
922
939
  }
923
- }, xt = [
940
+ }, Mt = [
924
941
  "id",
925
942
  "type",
926
943
  "text"
927
- ], oe = {
928
- $schema: Pt,
929
- $id: Dt,
930
- title: Tt,
944
+ ], kt = {
945
+ $schema: Ct,
946
+ $id: wt,
947
+ title: Pt,
931
948
  description: St,
932
- type: kt,
933
- properties: Mt,
934
- required: xt
935
- }, Et = "response-toolbar-item", Bt = "A Farris Container Component", It = "object", Rt = {
936
- basic: {
937
- title: "基本信息",
938
- description: "Basic Infomation",
939
- properties: {
940
- id: {
941
- title: "标识",
942
- type: "string",
943
- description: "The identifier of a component.",
944
- readonly: !0
945
- },
946
- type: {
947
- title: "类型",
948
- type: "enum",
949
- description: "The type of a component.",
950
- editor: {
951
- type: "combo-list",
952
- data: []
953
- }
954
- },
955
- text: {
956
- title: "文本",
957
- type: "string",
958
- description: "",
959
- refreshPanelAfterChanged: !0
960
- },
961
- icon: {
962
- title: "图标",
963
- type: "string",
964
- description: ""
965
- }
966
- }
967
- }
968
- }, fe = {
969
- title: Et,
970
- description: Bt,
971
- type: It,
972
- categories: Rt
973
- }, le = {
949
+ type: Tt,
950
+ properties: Dt,
951
+ required: Mt
952
+ }, ce = {
974
953
  /** 组件自定义样式 */
975
954
  customClass: { type: String, default: "" },
976
955
  alignment: { Type: String, default: "right" },
@@ -978,16 +957,13 @@ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-
978
957
  Type: Array,
979
958
  default: []
980
959
  }
981
- };
982
- se[oe.title] = oe;
983
- Pe[fe.title] = fe;
984
- const At = Object.assign({}, le, {
960
+ }, Et = Object.assign({}, ce, {
985
961
  componentId: { type: String, default: "" }
986
- }), ce = ie(
987
- le,
988
- wt,
989
- ut,
990
- ke
962
+ }), le = ie(
963
+ ce,
964
+ vt,
965
+ lt,
966
+ De
991
967
  ), Me = {
992
968
  id: { type: String, default: "" },
993
969
  items: { type: Object, default: {} },
@@ -997,183 +973,183 @@ const At = Object.assign({}, le, {
997
973
  icon: { type: String, default: "" },
998
974
  componentId: { type: String, default: "" },
999
975
  alignment: { Type: String, default: "right" }
1000
- }, Ot = ie(
976
+ }, xt = ie(
1001
977
  Me,
1002
- oe,
1003
- pt,
1004
- ke
978
+ kt,
979
+ ut,
980
+ De
1005
981
  );
1006
- function xe() {
1007
- function n(t) {
982
+ function ke() {
983
+ function o(t) {
1008
984
  const s = {
1009
985
  "f-icon": !0
1010
986
  };
1011
987
  if (t.icon) {
1012
988
  const i = t.icon.trim().split(" ");
1013
- i && i.length && i.reduce((p, u) => (p[u] = !0, p), s);
989
+ i && i.length && i.reduce((u, d) => (u[d] = !0, u), s);
1014
990
  }
1015
991
  return s;
1016
992
  }
1017
993
  function e(t) {
1018
994
  return !!(t.icon && t.icon.trim());
1019
995
  }
1020
- return { iconClass: n, shouldShowIcon: e };
996
+ return { iconClass: o, shouldShowIcon: e };
1021
997
  }
1022
- function jt(n) {
1023
- function e(l) {
1024
- const c = {
998
+ function Bt(o) {
999
+ function e(c) {
1000
+ const l = {
1025
1001
  "dropdown-menu": !0
1026
1002
  };
1027
- if (l.class) {
1028
- const f = l.menuClass.split(" ");
1029
- f && f.length && f.reduce((v, k) => (v[k] = !0, v), c);
1003
+ if (c.class) {
1004
+ const f = c.menuClass.split(" ");
1005
+ f && f.length && f.reduce((v, E) => (v[E] = !0, v), l);
1030
1006
  }
1031
- return c;
1007
+ return l;
1032
1008
  }
1033
- function t(l) {
1034
- const c = {
1035
- disabled: !l.enable,
1009
+ function t(c) {
1010
+ const l = {
1011
+ disabled: !c.enable,
1036
1012
  "dropdown-submenu": !0,
1037
1013
  "f-rt-dropdown": !0
1038
- }, f = l.dropdownClass.split(" ");
1039
- return f && f.length && f.reduce((v, k) => (v[k] = !0, v), c), c;
1014
+ }, f = c.dropdownClass.split(" ");
1015
+ return f && f.length && f.reduce((v, E) => (v[E] = !0, v), l), l;
1040
1016
  }
1041
- function s(l) {
1042
- const c = {
1043
- disabled: !l.enable,
1017
+ function s(c) {
1018
+ const l = {
1019
+ disabled: !c.enable,
1044
1020
  "dropdown-item": !0,
1045
1021
  "f-rt-btn": !0
1046
- }, f = l.class.split(" ");
1047
- return f && f.length && f.reduce((v, k) => (v[k] = !0, v), c), c;
1022
+ }, f = c.class.split(" ");
1023
+ return f && f.length && f.reduce((v, E) => (v[E] = !0, v), l), l;
1048
1024
  }
1049
1025
  let i;
1050
- const p = /* @__PURE__ */ new Map();
1051
- function u(l, c, f) {
1052
- var k;
1053
- ((k = l.target) == null ? void 0 : k.id) === c.id && l.stopPropagation();
1026
+ const u = /* @__PURE__ */ new Map();
1027
+ function d(c, l, f) {
1028
+ var E;
1029
+ ((E = c.target) == null ? void 0 : E.id) === l.id && c.stopPropagation();
1054
1030
  const v = f ? f.id : "__top_item__";
1055
- if (c.children && c.children.length && (c.expanded = !c.expanded, c.expanded ? p.set(v, c) : p.delete(v)), p.has(v) && p.get(v) !== c) {
1056
- const A = p.get(v);
1057
- A && (A.expanded = !1);
1031
+ if (l.children && l.children.length && (l.expanded = !l.expanded, l.expanded ? u.set(v, l) : u.delete(v)), u.has(v) && u.get(v) !== l) {
1032
+ const O = u.get(v);
1033
+ O && (O.expanded = !1);
1058
1034
  }
1059
1035
  }
1060
- function y(l, c) {
1061
- document.body.click(), c.enable && c.onClick(l, c.id);
1062
- }
1063
- function w(l) {
1064
- return l.children.map((c) => c.children && c.children.length ? g("li", {
1065
- class: t(c),
1066
- id: c.id,
1067
- onClick: (f) => c.enable && u(f, c, l)
1068
- }, [g("span", {
1069
- id: c.id,
1070
- class: s(c),
1071
- onMouseover: (f) => c.enable && u(f, c, l)
1072
- }, [c.text, g("i", {
1036
+ function g(c, l) {
1037
+ document.body.click(), l.enable && l.onClick(c, l.id);
1038
+ }
1039
+ function w(c) {
1040
+ return c.children.map((l) => l.children && l.children.length ? m("li", {
1041
+ class: t(l),
1042
+ id: l.id,
1043
+ onClick: (f) => l.enable && d(f, l, c)
1044
+ }, [m("span", {
1045
+ id: l.id,
1046
+ class: s(l),
1047
+ onMouseover: (f) => l.enable && d(f, l, c)
1048
+ }, [l.text, m("i", {
1073
1049
  class: "f-icon f-icon-arrow-chevron-right",
1074
1050
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1075
- }, null)]), i(c, c)]) : g("li", {
1076
- class: s(c),
1077
- id: c.id,
1078
- onClick: (f) => y(f, c),
1079
- onMouseover: (f) => c.enable && u(f, c, l)
1080
- }, [n.shouldShowIcon(c) && g("i", {
1081
- class: n.iconClass(c)
1082
- }, null), c.text]));
1083
- }
1084
- function h(l, c, f) {
1051
+ }, null)]), i(l, l)]) : m("li", {
1052
+ class: s(l),
1053
+ id: l.id,
1054
+ onClick: (f) => g(f, l),
1055
+ onMouseover: (f) => l.enable && d(f, l, c)
1056
+ }, [o.shouldShowIcon(l) && m("i", {
1057
+ class: o.iconClass(l)
1058
+ }, null), l.text]));
1059
+ }
1060
+ function h(c, l, f) {
1085
1061
  const v = {
1086
- display: l.expanded ? "block" : "none",
1062
+ display: c.expanded ? "block" : "none",
1087
1063
  position: "fixed",
1088
1064
  maxWidth: "300px",
1089
1065
  width: "auto",
1090
1066
  minWidth: "120px"
1091
- }, k = document.getElementsByTagName("body")[0].getClientRects()[0].width, A = c, $ = A == null ? void 0 : A.getClientRects();
1092
- if (A && $ && $.length) {
1067
+ }, E = document.getElementsByTagName("body")[0].getClientRects()[0].width, O = l, j = O == null ? void 0 : O.getClientRects();
1068
+ if (O && j && j.length) {
1093
1069
  const {
1094
1070
  top: _,
1095
- width: T,
1096
- left: B,
1097
- right: P,
1098
- height: x
1099
- } = $[0], C = Math.ceil(x + _);
1100
- v.top = `${C}px`, v.left = `${B}px`;
1101
- const I = l.id + "_menu", O = c ? c.querySelector("#" + I) : null;
1102
- if (O) {
1103
- v.display === "block" && (O.style.display = "block");
1104
- const d = O.getBoundingClientRect();
1071
+ width: D,
1072
+ left: I,
1073
+ right: S,
1074
+ height: k
1075
+ } = j[0], y = Math.ceil(k + _);
1076
+ v.top = `${y}px`, v.left = `${I}px`;
1077
+ const x = c.id + "_menu", A = l ? l.querySelector("#" + x) : null;
1078
+ if (A) {
1079
+ v.display === "block" && (A.style.display = "block");
1080
+ const C = A.getBoundingClientRect();
1105
1081
  if (f) {
1106
1082
  v.top = `${_ - 6}px`;
1107
- const r = Math.ceil(T + B);
1083
+ const r = Math.ceil(D + I);
1108
1084
  v.left = `${r}px`;
1109
1085
  }
1110
- k - B - T < d.width && (v.left = `${(f ? B : P) - d.width}px`);
1086
+ E - I - D < C.width && (v.left = `${(f ? I : S) - C.width}px`);
1111
1087
  }
1112
1088
  }
1113
1089
  return v;
1114
1090
  }
1115
- i = function(l, c) {
1116
- var A, $;
1117
- const f = be(), v = c ? c.id : l.id, k = ($ = (A = f == null ? void 0 : f.exposed) == null ? void 0 : A.elementRef.value) == null ? void 0 : $.querySelector("#" + v);
1118
- return g("ul", {
1119
- class: e(l),
1120
- style: h(l, k, c),
1121
- id: l.id + "_menu"
1122
- }, [w(l)]);
1091
+ i = function(c, l) {
1092
+ var O, j;
1093
+ const f = he(), v = l ? l.id : c.id, E = (j = (O = f == null ? void 0 : f.exposed) == null ? void 0 : O.elementRef.value) == null ? void 0 : j.querySelector("#" + v);
1094
+ return m("ul", {
1095
+ class: e(c),
1096
+ style: h(c, E, l),
1097
+ id: c.id + "_menu"
1098
+ }, [w(c)]);
1123
1099
  };
1124
1100
  function b() {
1125
- p.forEach((l) => {
1126
- l.expanded = !1;
1127
- }), p.clear();
1101
+ u.forEach((c) => {
1102
+ c.expanded = !1;
1103
+ }), u.clear();
1128
1104
  }
1129
1105
  return {
1130
1106
  renderDropdownMenu: i,
1131
1107
  clearAllDropDownMenu: b
1132
1108
  };
1133
1109
  }
1134
- function $t(n, e) {
1135
- const t = S(n.alignment), {
1110
+ function Rt(o, e) {
1111
+ const t = M(o.alignment), {
1136
1112
  renderDropdownMenu: s,
1137
1113
  clearAllDropDownMenu: i
1138
- } = jt(e);
1139
- function p(b) {
1140
- const l = {
1114
+ } = Bt(e);
1115
+ function u(b) {
1116
+ const c = {
1141
1117
  "btn-group": !0,
1142
1118
  "f-rt-dropdown": !0,
1143
1119
  "f-btn-ml": t.value === "right",
1144
1120
  "f-btn-mr": t.value === "left"
1145
- }, c = b.dropdownClass.split(" ");
1146
- return c && c.length && c.reduce((f, v) => (f[v] = !0, f), l), l;
1121
+ }, l = b.dropdownClass.split(" ");
1122
+ return l && l.length && l.reduce((f, v) => (f[v] = !0, f), c), c;
1147
1123
  }
1148
- function u(b) {
1149
- const l = {
1124
+ function d(b) {
1125
+ const c = {
1150
1126
  btn: !0,
1151
1127
  disabled: !b.enable,
1152
1128
  "f-rt-btn": !0,
1153
1129
  "btn-icontext": !!(b.icon && b.icon.trim())
1154
1130
  };
1155
1131
  if (b.class) {
1156
- const c = b.class.split(" ");
1157
- c && c.length && c.reduce((f, v) => (f[v] = !0, f), l);
1132
+ const l = b.class.split(" ");
1133
+ l && l.length && l.reduce((f, v) => (f[v] = !0, f), c);
1158
1134
  }
1159
- return l;
1135
+ return c;
1160
1136
  }
1161
- function y(b, l) {
1137
+ function g(b, c) {
1162
1138
  b.stopPropagation();
1163
- const c = l.expanded;
1164
- document.body.click(), l.expanded = !c;
1139
+ const l = c.expanded;
1140
+ document.body.click(), c.expanded = !l;
1165
1141
  }
1166
1142
  function w(b) {
1167
- return g("div", {
1143
+ return m("div", {
1168
1144
  id: b.id,
1169
- class: p(b)
1170
- }, [g("div", {
1171
- class: u(b),
1145
+ class: u(b)
1146
+ }, [m("div", {
1147
+ class: d(b),
1172
1148
  style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
1173
- onClick: (l) => b.enable && y(l, b)
1174
- }, [e.shouldShowIcon(b) && g("i", {
1149
+ onClick: (c) => b.enable && g(c, b)
1150
+ }, [e.shouldShowIcon(b) && m("i", {
1175
1151
  class: e.iconClass(b)
1176
- }, null), g("span", null, [b.text]), g("i", {
1152
+ }, null), m("span", null, [b.text]), m("i", {
1177
1153
  class: "f-icon f-icon-arrow-chevron-down",
1178
1154
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1179
1155
  }, null)]), s(b)]);
@@ -1187,553 +1163,567 @@ function $t(n, e) {
1187
1163
  };
1188
1164
  }
1189
1165
  const {
1190
- buildResponseToolbarItems: ge
1191
- } = Se(), Z = /* @__PURE__ */ U({
1166
+ buildResponseToolbarItems: fe
1167
+ } = Te(), K = /* @__PURE__ */ W({
1192
1168
  name: "FResponseToolbar",
1193
- props: le,
1169
+ props: ce,
1194
1170
  emits: ["click"],
1195
- setup(n, e) {
1196
- const t = S(ge(n.items)), s = S(), i = S(), p = S(), u = S(n.alignment), y = {
1171
+ setup(o, e) {
1172
+ const t = M(fe(o.items)), s = M(), i = M(), u = M(), d = M(o.alignment), g = {
1197
1173
  id: "__more_buttons__",
1198
1174
  text: "更多"
1199
- }, w = S(new z(y)), h = xe(), b = N(() => w.value.children.length > 0), l = N(() => Y({
1175
+ }, w = M(new Q(g)), h = ke(), b = F(() => w.value.children.length > 0), c = F(() => Z({
1200
1176
  "f-toolbar": !0,
1201
1177
  "f-response-toolbar": !0,
1202
1178
  "position-relative": !0
1203
- }, n.customClass)), c = N(() => ({
1179
+ }, o.customClass)), l = F(() => ({
1204
1180
  "w-100": !0,
1205
1181
  "d-flex": !0,
1206
1182
  "flex-nowrap": !0,
1207
- "justify-content-end": u.value === "right",
1208
- "justify-content-start": u.value === "left"
1183
+ "justify-content-end": d.value === "right",
1184
+ "justify-content-start": d.value === "left"
1209
1185
  })), {
1210
1186
  renderToolbarDropdown: f,
1211
1187
  clearAllDropDown: v
1212
- } = $t(n, h);
1213
- function k() {
1214
- t.value.filter((C) => C.children && C.children.length > 0).forEach((C) => {
1215
- C.expanded = !1;
1188
+ } = Rt(o, h);
1189
+ function E() {
1190
+ t.value.filter((y) => y.children && y.children.length > 0).forEach((y) => {
1191
+ y.expanded = !1;
1216
1192
  }), w.value.expanded = !1, v();
1217
1193
  }
1218
- function A(C) {
1219
- const I = {
1194
+ function O(y) {
1195
+ const x = {
1220
1196
  btn: !0,
1221
1197
  "f-rt-btn": !0,
1222
- "f-btn-ml": u.value === "right",
1223
- "f-btn-mr": u.value === "left",
1224
- "btn-icontext": !!(C.icon && C.icon.trim())
1198
+ "f-btn-ml": d.value === "right",
1199
+ "f-btn-mr": d.value === "left",
1200
+ "btn-icontext": !!(y.icon && y.icon.trim())
1225
1201
  };
1226
- if (C.class) {
1227
- const O = C.class.split(" ");
1228
- O && O.length && O.reduce((d, r) => (d[r] = !0, d), I);
1202
+ if (y.class) {
1203
+ const A = y.class.split(" ");
1204
+ A && A.length && A.reduce((C, r) => (C[r] = !0, C), x);
1229
1205
  }
1230
- return I;
1206
+ return x;
1231
1207
  }
1232
- function $(C, I) {
1233
- document.body.click(), typeof I.onClick == "function" && I.onClick(C, I.id), e.emit("click", C, I.id);
1208
+ function j(y, x) {
1209
+ document.body.click(), typeof x.onClick == "function" && x.onClick(y, x.id), e.emit("click", y, x.id);
1234
1210
  }
1235
- function _(C) {
1236
- return g("button", {
1211
+ function _(y) {
1212
+ return m("button", {
1237
1213
  type: "button",
1238
- class: A(C),
1239
- id: C.id,
1240
- disabled: !C.enable,
1241
- onClick: (I) => $(I, C)
1242
- }, [h.shouldShowIcon(C) && g("i", {
1243
- class: h.iconClass(C)
1244
- }, null), C.text]);
1214
+ class: O(y),
1215
+ id: y.id,
1216
+ disabled: !y.enable,
1217
+ onClick: (x) => j(x, y)
1218
+ }, [h.shouldShowIcon(y) && m("i", {
1219
+ class: h.iconClass(y)
1220
+ }, null), y.text]);
1245
1221
  }
1246
- const T = /* @__PURE__ */ new Map(), B = [];
1247
- function P(C) {
1248
- const I = p.value;
1249
- let O = C;
1250
- const d = Array.from(I.children), r = d[d.length - 1].id === "__more_buttons__" ? d[d.length - 1] : null;
1222
+ const D = /* @__PURE__ */ new Map(), I = [];
1223
+ function S(y) {
1224
+ const x = u.value;
1225
+ let A = y;
1226
+ const C = Array.from(x.children), r = C[C.length - 1].id === "__more_buttons__" ? C[C.length - 1] : null;
1251
1227
  if (r) {
1252
- const D = r.computedStyleMap().get("margin-left"), E = r.computedStyleMap().get("margin-right"), L = (D ? D.value : 0) + r.getBoundingClientRect().width + (E ? E.value : 0);
1253
- O -= L;
1228
+ const P = r.computedStyleMap().get("margin-left"), B = r.computedStyleMap().get("margin-right"), N = (P ? P.value : 0) + r.getBoundingClientRect().width + (B ? B.value : 0);
1229
+ A -= N;
1254
1230
  }
1255
- const o = d.filter((D) => D.id !== "__more_buttons__");
1256
- for (const D of o) {
1257
- const E = D.computedStyleMap().get("margin-left"), L = D.computedStyleMap().get("margin-right"), j = (E ? E.value : 0) + D.getBoundingClientRect().width + (L ? L.value : 0);
1258
- O < j ? (T.set(D.id, !0), B.push({
1259
- id: D.id,
1260
- width: j
1261
- })) : O -= j;
1231
+ const n = C.filter((P) => P.id !== "__more_buttons__");
1232
+ for (const P of n) {
1233
+ const B = P.computedStyleMap().get("margin-left"), N = P.computedStyleMap().get("margin-right"), U = (B ? B.value : 0) + P.getBoundingClientRect().width + (N ? N.value : 0);
1234
+ A < U ? (D.set(P.id, !0), I.push({
1235
+ id: P.id,
1236
+ width: U
1237
+ })) : A -= U;
1262
1238
  }
1263
- if (B.length)
1264
- for (let D = B.length - 1; D >= 0; D--) {
1265
- const E = B[D].width;
1266
- if (O >= E)
1267
- O -= E, T.delete(B[D].id), B.pop();
1239
+ if (I.length)
1240
+ for (let P = I.length - 1; P >= 0; P--) {
1241
+ const B = I[P].width;
1242
+ if (A >= B)
1243
+ A -= B, D.delete(I[P].id), I.pop();
1268
1244
  else
1269
1245
  break;
1270
1246
  }
1271
1247
  const a = Object.assign({}, w.value);
1272
1248
  a.children = [];
1273
- const m = new z(a), M = t.value.reduce((D, E) => (T.has(E.id) && m.children.push(E), E.visible = !T.has(E.id), D.push(E), D), []);
1274
- w.value = m, t.value = M;
1249
+ const p = new Q(a), T = t.value.reduce((P, B) => (D.has(B.id) && p.children.push(B), B.visible = !D.has(B.id), P.push(B), P), []);
1250
+ w.value = p, t.value = T;
1275
1251
  }
1276
- const x = new ResizeObserver((C) => {
1277
- if (C.length) {
1278
- const O = C[0].contentRect.width, r = p.value.getBoundingClientRect().width;
1279
- (O < r || B.length) && (P(O), k());
1252
+ const k = new ResizeObserver((y) => {
1253
+ if (y.length) {
1254
+ const A = y[0].contentRect.width, r = u.value.getBoundingClientRect().width;
1255
+ (A < r || I.length) && (S(A), E());
1280
1256
  }
1281
1257
  });
1282
- return H(() => {
1283
- const C = i.value;
1284
- x.observe(C), document.body.addEventListener("click", k), document.body.addEventListener("wheel", k);
1285
- }), ye(() => {
1286
- x.disconnect(), document.body.removeEventListener("click", k), document.body.removeEventListener("wheel", k);
1287
- }), q(() => n.items, () => {
1288
- t.value = ge(n.items);
1258
+ return G(() => {
1259
+ const y = i.value;
1260
+ k.observe(y), document.body.addEventListener("click", E), document.body.addEventListener("wheel", E);
1261
+ }), be(() => {
1262
+ k.disconnect(), document.body.removeEventListener("click", E), document.body.removeEventListener("wheel", E);
1263
+ }), z(() => o.items, () => {
1264
+ t.value = fe(o.items);
1289
1265
  }, {
1290
1266
  deep: !0
1291
1267
  }), e.expose({
1292
1268
  elementRef: s
1293
- }), () => g("div", {
1294
- class: l.value,
1269
+ }), () => m("div", {
1270
+ class: c.value,
1295
1271
  ref: s
1296
- }, [g("div", {
1272
+ }, [m("div", {
1297
1273
  ref: i,
1298
- class: c.value
1299
- }, [g("div", {
1300
- ref: p,
1274
+ class: l.value
1275
+ }, [m("div", {
1276
+ ref: u,
1301
1277
  class: "d-inline-block f-response-content",
1302
1278
  style: "white-space: nowrap;"
1303
- }, [t.value.filter((C) => C.visible).map((C) => C.children && C.children.length > 0 ? f(C) : _(C)), b.value && f(w.value)])])]);
1279
+ }, [t.value.filter((y) => y.visible).map((y) => y.children && y.children.length > 0 ? f(y) : _(y)), b.value && f(w.value)])])]);
1304
1280
  }
1305
1281
  });
1306
- function _t(n, e) {
1282
+ function It(o, e) {
1307
1283
  const t = V("design-item-context"), s = V("toolbar-item-handler", () => {
1308
1284
  });
1309
1285
  function i() {
1310
1286
  s && s();
1311
1287
  }
1312
- function p(r) {
1313
- const o = {
1288
+ function u(r) {
1289
+ const n = {
1314
1290
  "dropdown-menu": !0
1315
1291
  };
1316
1292
  if (r.class) {
1317
1293
  const a = r.menuClass.split(" ");
1318
- a && a.length && a.reduce((m, M) => (m[M] = !0, m), o);
1294
+ a && a.length && a.reduce((p, T) => (p[T] = !0, p), n);
1319
1295
  }
1320
- return o;
1296
+ return n;
1321
1297
  }
1322
- function u(r) {
1323
- const o = {
1298
+ function d(r) {
1299
+ const n = {
1324
1300
  disabled: !r.enable,
1325
1301
  "dropdown-submenu": !0,
1326
1302
  "f-rt-dropdown": !0
1327
1303
  }, a = r.dropdownClass.split(" ");
1328
- return a && a.length && a.reduce((m, M) => (m[M] = !0, m), o), o;
1304
+ return a && a.length && a.reduce((p, T) => (p[T] = !0, p), n), n;
1329
1305
  }
1330
- function y(r) {
1331
- const o = {
1306
+ function g(r) {
1307
+ const n = {
1332
1308
  disabled: !r.enable,
1333
1309
  "dropdown-item": !0,
1334
1310
  "f-rt-btn": !0,
1335
1311
  "position-relative": !0,
1336
1312
  "farris-component": !0
1337
1313
  }, a = r.class.split(" ");
1338
- return a && a.length && a.reduce((m, M) => (m[M] = !0, m), o), o;
1314
+ return a && a.length && a.reduce((p, T) => (p[T] = !0, p), n), n;
1339
1315
  }
1340
1316
  let w;
1341
1317
  const h = /* @__PURE__ */ new Map();
1342
- function b(r, o, a) {
1343
- var M;
1344
- ((M = r.target) == null ? void 0 : M.id) === o.id && r.stopPropagation();
1345
- const m = a ? a.id : "__top_item__";
1346
- if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? h.set(m, o) : h.delete(m)), h.has(m) && h.get(m) !== o) {
1347
- const D = h.get(m);
1348
- D && (D.expanded = !1);
1318
+ function b(r, n, a) {
1319
+ var T;
1320
+ ((T = r.target) == null ? void 0 : T.id) === n.id && r.stopPropagation();
1321
+ const p = a ? a.id : "__top_item__";
1322
+ if (n.children && n.children.length && (n.expanded = !n.expanded, n.expanded ? h.set(p, n) : h.delete(p)), h.has(p) && h.get(p) !== n) {
1323
+ const P = h.get(p);
1324
+ P && (P.expanded = !1);
1349
1325
  }
1350
1326
  }
1351
- function l(r) {
1327
+ function c(r) {
1352
1328
  r && (r.stopPropagation(), r.preventDefault());
1353
1329
  }
1354
- function c() {
1355
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((o) => o.classList.remove("dgComponentFocused"));
1330
+ function l() {
1331
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((n) => n.classList.remove("dgComponentFocused"));
1356
1332
  const r = document.getElementsByClassName("dgComponentSelected");
1357
- Array.from(r).forEach((o) => o.classList.remove("dgComponentSelected"));
1333
+ Array.from(r).forEach((n) => n.classList.remove("dgComponentSelected"));
1358
1334
  }
1359
1335
  function f(r) {
1360
1336
  r.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1361
1337
  }
1362
1338
  function v(r) {
1363
1339
  const {
1364
- buttons: o = []
1340
+ buttons: n = []
1365
1341
  } = t.schema;
1366
1342
  let a = [];
1367
- o.forEach((D) => {
1368
- a = a.concat(D.children || []);
1343
+ n.forEach((P) => {
1344
+ a = a.concat(P.children || []);
1369
1345
  });
1370
- const m = a.findIndex((D) => D.id === r), M = m === -1 ? null : a[m];
1346
+ const p = a.findIndex((P) => P.id === r), T = p === -1 ? null : a[p];
1371
1347
  return {
1372
- index: m,
1373
- item: M
1348
+ index: p,
1349
+ item: T
1374
1350
  };
1375
1351
  }
1376
- function k(r) {
1352
+ function E(r) {
1377
1353
  const {
1378
- buttons: o = []
1379
- } = t.schema, a = o.findIndex((M) => M.id === r), m = a === -1 ? null : o[a];
1354
+ buttons: n = []
1355
+ } = t.schema, a = n.findIndex((T) => T.id === r), p = a === -1 ? null : n[a];
1380
1356
  return {
1381
1357
  index: a,
1382
- item: m
1358
+ item: p
1383
1359
  };
1384
1360
  }
1385
- function A(r) {
1386
- var m;
1361
+ function O(r) {
1362
+ var p;
1387
1363
  t.schema;
1388
1364
  const {
1389
- index: o,
1365
+ index: n,
1390
1366
  item: a
1391
1367
  } = v(r);
1392
- (m = t == null ? void 0 : t.setupContext) == null || m.emit("selectionChange", a == null ? void 0 : a.type, a);
1368
+ (p = t == null ? void 0 : t.setupContext) == null || p.emit("selectionChange", a == null ? void 0 : a.type, a);
1393
1369
  }
1394
- const $ = function(r) {
1370
+ const j = function(r) {
1395
1371
  const {
1396
- componentType: o
1397
- } = r, a = Q(o, r), m = o.toLowerCase().replace("-", "_");
1398
- return a && !a.id && a.type === o && (a.id = `${m}_${Math.random().toString().slice(2, 6)}`), a;
1372
+ componentType: n
1373
+ } = r, a = Y(n, r), p = n.toLowerCase().replace("-", "_");
1374
+ return a && !a.id && a.type === n && (a.id = `${p}_${Math.random().toString().slice(2, 6)}`), a;
1399
1375
  }, _ = function() {
1400
1376
  const r = {
1401
1377
  componentType: "response-toolbar-item",
1402
1378
  parentComponentInstance: e.value,
1403
1379
  targetPosition: -1
1404
1380
  };
1405
- return $(r);
1381
+ return j(r);
1406
1382
  };
1407
- function T(r, o) {
1408
- l(r), c(), f(r), A(o.id);
1383
+ function D(r, n) {
1384
+ c(r), l(), f(r), O(n.id);
1409
1385
  }
1410
- function B(r, o, a) {
1411
- l(r);
1412
- const m = o.id, M = a && a.id, {
1413
- buttons: D = []
1386
+ function I(r, n, a) {
1387
+ c(r);
1388
+ const p = n.id, T = a && a.id, {
1389
+ buttons: P = []
1414
1390
  } = t.schema;
1415
- if (!M)
1391
+ if (!T)
1416
1392
  return;
1417
1393
  const {
1418
- index: E
1419
- } = k(M);
1420
- if (E === -1)
1394
+ index: B
1395
+ } = E(T);
1396
+ if (B === -1)
1421
1397
  return;
1422
1398
  const {
1423
- index: L
1424
- } = v(m);
1425
- L !== -1 && (D[E].children.splice(L, 1), i());
1426
- }
1427
- function P(r, o, a) {
1428
- l(r);
1429
- const m = a && a.id, {
1430
- buttons: M = []
1399
+ index: N
1400
+ } = v(p);
1401
+ N !== -1 && (P[B].children.splice(N, 1), i());
1402
+ }
1403
+ function S(r, n, a) {
1404
+ c(r);
1405
+ const p = a && a.id, {
1406
+ buttons: T = []
1431
1407
  } = t.schema;
1432
- if (!m)
1408
+ if (!p)
1433
1409
  return;
1434
1410
  const {
1435
- index: D
1436
- } = k(m);
1437
- if (D === -1)
1411
+ index: P
1412
+ } = E(p);
1413
+ if (P === -1)
1438
1414
  return;
1439
- const E = _(), L = Object.assign({}, E, {
1440
- text: o.text
1415
+ const B = _(), N = Object.assign({}, B, {
1416
+ text: n.text
1441
1417
  });
1442
- M[D].children.push(L), i();
1418
+ T[P].children.push(N), i();
1443
1419
  }
1444
- function x(r, o, a) {
1445
- l(r);
1446
- const m = a && a.id, {
1447
- buttons: M = []
1420
+ function k(r, n, a) {
1421
+ c(r);
1422
+ const p = a && a.id, {
1423
+ buttons: T = []
1448
1424
  } = t.schema;
1449
- if (!m)
1425
+ if (!p)
1450
1426
  return;
1451
1427
  const {
1452
- index: D
1453
- } = k(m);
1454
- if (D === -1)
1428
+ index: P
1429
+ } = E(p);
1430
+ if (P === -1)
1455
1431
  return;
1456
- const E = _(), L = Object.assign({}, E, {
1432
+ const B = _(), N = Object.assign({}, B, {
1457
1433
  text: "按钮"
1458
1434
  });
1459
- M[D].children.push(L), i();
1435
+ T[P].children.push(N), i();
1460
1436
  }
1461
- function C(r, o) {
1462
- return g("div", {
1437
+ function y(r, n) {
1438
+ return m("div", {
1463
1439
  class: "component-btn-group"
1464
- }, [g("div", null, [g("div", {
1440
+ }, [m("div", null, [m("div", {
1465
1441
  role: "button",
1466
1442
  class: "btn component-settings-button",
1467
1443
  title: "删除",
1468
1444
  ref: "removeButton",
1469
1445
  style: "position:static;",
1470
- onClick: (a) => B(a, r, o)
1471
- }, [g("i", {
1446
+ onClick: (a) => I(a, r, n)
1447
+ }, [m("i", {
1472
1448
  class: "f-icon f-icon-yxs_delete"
1473
- }, null)]), g("div", {
1449
+ }, null)]), m("div", {
1474
1450
  role: "button",
1475
1451
  class: "btn component-settings-button",
1476
1452
  title: "复制",
1477
1453
  ref: "copyButton",
1478
1454
  style: "position:static;",
1479
- onClick: (a) => P(a, r, o)
1480
- }, [g("i", {
1455
+ onClick: (a) => S(a, r, n)
1456
+ }, [m("i", {
1481
1457
  class: "f-icon f-icon-yxs_copy"
1482
- }, null)]), g("div", {
1458
+ }, null)]), m("div", {
1483
1459
  role: "button",
1484
1460
  class: "btn component-settings-button",
1485
1461
  title: "新增同级",
1486
1462
  ref: "appendSame",
1487
1463
  style: "width:85px!important;padding:0 5px;position:static;",
1488
- onClick: (a) => x(a, r, o)
1489
- }, [g("i", {
1464
+ onClick: (a) => k(a, r, n)
1465
+ }, [m("i", {
1490
1466
  class: "f-icon f-icon-plus-circle text-white mr-1"
1491
- }, null), g("span", {
1467
+ }, null), m("span", {
1492
1468
  style: "font-size:13px;margin:auto"
1493
- }, [J("新增同级")])])])]);
1494
- }
1495
- function I(r) {
1496
- return r.children.map((o) => o.children && o.children.length ? g("li", {
1497
- class: u(o),
1498
- id: o.id,
1499
- onClick: (a) => o.enable && b(a, o, r)
1500
- }, [g("span", {
1501
- id: o.id,
1502
- class: y(o),
1503
- onMouseover: (a) => o.enable && b(a, o, r)
1504
- }, [o.text, g("i", {
1469
+ }, [X("新增同级")])])])]);
1470
+ }
1471
+ function x(r) {
1472
+ return r.children.map((n) => n.children && n.children.length ? m("li", {
1473
+ class: d(n),
1474
+ id: n.id,
1475
+ onClick: (a) => n.enable && b(a, n, r)
1476
+ }, [m("span", {
1477
+ id: n.id,
1478
+ class: g(n),
1479
+ onMouseover: (a) => n.enable && b(a, n, r)
1480
+ }, [n.text, m("i", {
1505
1481
  class: "f-icon f-icon-arrow-chevron-right",
1506
1482
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1507
- }, null)]), w(o, o)]) : g("li", {
1508
- class: y(o),
1509
- id: o.id,
1510
- onClick: (a) => T(a, o)
1511
- }, [C(o, r), n.shouldShowIcon(o) && g("i", {
1512
- class: n.iconClass(o)
1513
- }, null), o.text]));
1514
- }
1515
- function O(r, o, a) {
1516
- const m = {
1483
+ }, null)]), w(n, n)]) : m("li", {
1484
+ class: g(n),
1485
+ id: n.id,
1486
+ onClick: (a) => D(a, n)
1487
+ }, [y(n, r), o.shouldShowIcon(n) && m("i", {
1488
+ class: o.iconClass(n)
1489
+ }, null), n.text]));
1490
+ }
1491
+ function A(r, n, a) {
1492
+ const p = {
1517
1493
  display: r.expanded ? "block" : "none",
1518
1494
  position: "fixed",
1519
1495
  maxWidth: "300px",
1520
1496
  width: "auto",
1521
1497
  minWidth: "120px"
1522
- }, M = document.getElementsByTagName("body")[0].getClientRects()[0].width, D = o, E = D == null ? void 0 : D.getClientRects();
1523
- if (D && E && E.length) {
1498
+ }, T = document.getElementsByTagName("body")[0].getClientRects()[0].width, P = n, B = P == null ? void 0 : P.getClientRects();
1499
+ if (P && B && B.length) {
1524
1500
  const {
1525
- top: L,
1526
- width: j,
1527
- left: F,
1528
- right: W,
1529
- height: G
1530
- } = E[0], Re = Math.ceil(G + L);
1531
- m.top = `${Re}px`, m.left = `${F}px`;
1532
- const Ae = r.id + "_menu", te = o ? o.querySelector("#" + Ae) : null;
1533
- if (te) {
1534
- m.display === "block" && (te.style.display = "block");
1535
- const de = te.getBoundingClientRect();
1501
+ top: N,
1502
+ width: U,
1503
+ left: q,
1504
+ right: $,
1505
+ height: L
1506
+ } = B[0], H = Math.ceil(L + N);
1507
+ p.top = `${H}px`, p.left = `${q}px`;
1508
+ const J = r.id + "_menu", ne = n ? n.querySelector("#" + J) : null;
1509
+ if (ne) {
1510
+ p.display === "block" && (ne.style.display = "block");
1511
+ const de = ne.getBoundingClientRect();
1536
1512
  if (a) {
1537
- m.top = `${L - 6}px`;
1538
- const Oe = Math.ceil(j + F);
1539
- m.left = `${Oe}px`;
1513
+ p.top = `${N - 6}px`;
1514
+ const Re = Math.ceil(U + q);
1515
+ p.left = `${Re}px`;
1540
1516
  }
1541
- M - F - j < de.width && (m.left = `${(a ? F : W) - de.width}px`);
1517
+ T - q - U < de.width && (p.left = `${(a ? q : $) - de.width}px`);
1542
1518
  }
1543
1519
  }
1544
- return m;
1545
- }
1546
- w = function(r, o) {
1547
- var D, E;
1548
- const a = be(), m = o ? o.id : r.id, M = (E = (D = a == null ? void 0 : a.exposed) == null ? void 0 : D.elementRef.value) == null ? void 0 : E.querySelector("#" + m);
1549
- return g("ul", {
1550
- class: p(r),
1551
- style: O(r, M, o),
1520
+ return p;
1521
+ }
1522
+ w = function(r, n) {
1523
+ var P, B;
1524
+ const a = he(), p = n ? n.id : r.id, T = (B = (P = a == null ? void 0 : a.exposed) == null ? void 0 : P.elementRef.value) == null ? void 0 : B.querySelector("#" + p);
1525
+ return m("ul", {
1526
+ class: u(r),
1527
+ style: A(r, T, n),
1552
1528
  id: r.id + "_menu"
1553
- }, [I(r)]);
1529
+ }, [x(r)]);
1554
1530
  };
1555
- function d() {
1531
+ function C() {
1556
1532
  h.forEach((r) => {
1557
1533
  r.expanded = !1;
1558
1534
  }), h.clear();
1559
1535
  }
1560
1536
  return {
1561
1537
  renderDropdownMenu: w,
1562
- clearAllDropDownMenu: d
1538
+ clearAllDropDownMenu: C
1563
1539
  };
1564
1540
  }
1565
- function Nt(n, e, t) {
1566
- const s = S(n.alignment), {
1541
+ function At(o, e, t) {
1542
+ const s = M(o.alignment), {
1567
1543
  renderDropdownMenu: i,
1568
- clearAllDropDownMenu: p
1569
- } = _t(e, t), u = V("design-item-context"), y = V("toolbar-item-handler", () => {
1544
+ clearAllDropDownMenu: u
1545
+ } = It(e, t), d = V("design-item-context"), g = V("toolbar-item-handler", () => {
1570
1546
  });
1571
1547
  function w() {
1572
- y && y();
1548
+ g && g();
1573
1549
  }
1574
- function h(d) {
1550
+ function h(C) {
1575
1551
  const r = {
1576
1552
  "btn-group": !0,
1577
1553
  "f-rt-dropdown": !0,
1578
1554
  "f-btn-ml": s.value === "right",
1579
1555
  "f-btn-mr": s.value === "left"
1580
- }, o = d.dropdownClass.split(" ");
1581
- return o && o.length && o.reduce((a, m) => (a[m] = !0, a), r), r;
1556
+ }, n = C.dropdownClass.split(" ");
1557
+ return n && n.length && n.reduce((a, p) => (a[p] = !0, a), r), r;
1582
1558
  }
1583
- function b(d) {
1559
+ function b(C) {
1584
1560
  const r = {
1585
1561
  btn: !0,
1586
- disabled: !d.enable,
1562
+ disabled: !C.enable,
1587
1563
  "position-relative": !0,
1588
1564
  "farris-component": !0,
1589
1565
  "f-rt-btn": !0,
1590
- "btn-icontext": !!(d.icon && d.icon.trim())
1566
+ "btn-icontext": !!(C.icon && C.icon.trim())
1591
1567
  };
1592
- if (d.class) {
1593
- const o = d.class.split(" ");
1594
- o && o.length && o.reduce((a, m) => (a[m] = !0, a), r);
1568
+ if (C.class) {
1569
+ const n = C.class.split(" ");
1570
+ n && n.length && n.reduce((a, p) => (a[p] = !0, a), r);
1595
1571
  }
1596
1572
  return r;
1597
1573
  }
1598
- function l(d) {
1599
- d && (d.stopPropagation(), d.preventDefault());
1574
+ function c(C) {
1575
+ C && (C.stopPropagation(), C.preventDefault());
1600
1576
  }
1601
- function c(d, r) {
1602
- l(d);
1603
- const o = r.expanded;
1604
- document.body.click(), r.expanded = !o;
1577
+ function l(C, r) {
1578
+ c(C);
1579
+ const n = r.expanded;
1580
+ document.body.click(), r.expanded = !n;
1605
1581
  }
1606
- const f = function(d) {
1582
+ const f = function(C) {
1607
1583
  const {
1608
1584
  componentType: r
1609
- } = d, o = Q(r, d), a = r.toLowerCase().replace("-", "_");
1610
- return o && !o.id && o.type === r && (o.id = `${a}_${Math.random().toString().slice(2, 6)}`), o;
1585
+ } = C, n = Y(r, C), a = r.toLowerCase().replace("-", "_");
1586
+ return n && !n.id && n.type === r && (n.id = `${a}_${Math.random().toString().slice(2, 6)}`), n;
1611
1587
  }, v = function() {
1612
- const d = {
1588
+ const C = {
1613
1589
  componentType: "response-toolbar-item",
1614
1590
  parentComponentInstance: t.value,
1615
1591
  targetPosition: -1
1616
1592
  };
1617
- return f(d);
1593
+ return f(C);
1618
1594
  };
1619
- function k(d) {
1620
- const r = u.schema.buttons || u.schema.contents, o = r == null ? void 0 : r.findIndex((m) => m.id === d), a = o === -1 ? null : r[o];
1595
+ function E(C) {
1596
+ const r = d.schema.buttons || d.schema.contents, n = r == null ? void 0 : r.findIndex((p) => p.id === C), a = n === -1 ? null : r[n];
1621
1597
  return {
1622
- index: o,
1598
+ index: n,
1623
1599
  toolbarItem: a
1624
1600
  };
1625
1601
  }
1626
- function A(d, r) {
1627
- var E;
1602
+ function O(C, r) {
1603
+ var B;
1628
1604
  const {
1629
- index: o,
1605
+ index: n,
1630
1606
  toolbarItem: a
1631
- } = k(r);
1632
- if (o === -1)
1607
+ } = E(r);
1608
+ if (n === -1)
1633
1609
  return;
1634
- const m = a.text || "按钮", M = v(), D = Object.assign({}, M, {
1635
- text: m
1610
+ const p = a.text || "按钮", T = v(), P = Object.assign({}, T, {
1611
+ text: p
1636
1612
  });
1637
- (E = u.schema.buttons) == null || E.push(D), w();
1613
+ (B = d.schema.buttons) == null || B.push(P), w();
1638
1614
  }
1639
- function $(d, r) {
1615
+ function j(C, r) {
1640
1616
  const {
1641
- index: o,
1617
+ index: n,
1642
1618
  toolbarItem: a
1643
- } = k(r);
1644
- if (o === -1)
1619
+ } = E(r);
1620
+ if (n === -1)
1645
1621
  return;
1646
- const m = a.text || "按钮", M = v(), D = Object.assign({}, M, {
1647
- text: m
1648
- }), E = u.schema.buttons[o].children || [];
1649
- E.push(D), u.schema.buttons[o].children = E, w();
1622
+ const p = a.text || "按钮", T = v(), P = Object.assign({}, T, {
1623
+ text: p
1624
+ }), B = d.schema.buttons[n].children || [];
1625
+ B.push(P), d.schema.buttons[n].children = B, w();
1650
1626
  }
1651
- function _(d, r) {
1652
- const o = u.schema.buttons || u.schema.contents, a = o == null ? void 0 : o.findIndex((m) => m.id === r);
1653
- a !== -1 && (o.splice(a, 1), w());
1627
+ function _(C, r) {
1628
+ const n = d.schema.buttons || d.schema.contents, a = n == null ? void 0 : n.findIndex((p) => p.id === r);
1629
+ a !== -1 && (n.splice(a, 1), w());
1654
1630
  }
1655
- function T(d) {
1656
- return g("div", {
1631
+ function D(C) {
1632
+ return m("div", {
1657
1633
  class: "component-btn-group"
1658
- }, [g("div", null, [g("div", {
1634
+ }, [m("div", null, [m("div", {
1659
1635
  role: "button",
1660
1636
  class: "btn component-settings-button",
1661
1637
  title: "删除",
1662
1638
  ref: "removeButton",
1663
1639
  style: "position:static;",
1664
- onClick: (r) => _(r, d)
1665
- }, [g("i", {
1640
+ onClick: (r) => _(r, C)
1641
+ }, [m("i", {
1666
1642
  class: "f-icon f-icon-yxs_delete"
1667
- }, null)]), g("div", {
1643
+ }, null)]), m("div", {
1668
1644
  role: "button",
1669
1645
  class: "btn component-settings-button",
1670
1646
  title: "复制",
1671
1647
  ref: "copyButton",
1672
1648
  style: "position:static;",
1673
- onClick: (r) => A(r, d)
1674
- }, [g("i", {
1649
+ onClick: (r) => O(r, C)
1650
+ }, [m("i", {
1675
1651
  class: "f-icon f-icon-yxs_copy"
1676
- }, null)]), g("div", {
1652
+ }, null)]), m("div", {
1677
1653
  role: "button",
1678
1654
  class: "btn component-settings-button",
1679
1655
  title: "新增子级",
1680
1656
  ref: "appendChildButton",
1681
1657
  style: "width:85px!important;padding:0 5px;position:static;",
1682
- onClick: (r) => $(r, d)
1683
- }, [g("i", {
1658
+ onClick: (r) => j(r, C)
1659
+ }, [m("i", {
1684
1660
  class: "f-icon f-icon-plus-circle text-white mr-1"
1685
- }, null), g("span", {
1661
+ }, null), m("span", {
1686
1662
  style: "font-size:13px;margin:auto"
1687
- }, [J("新增子级")])])])]);
1663
+ }, [X("新增子级")])])])]);
1688
1664
  }
1689
- function B() {
1665
+ function I() {
1690
1666
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((r) => r.classList.remove("dgComponentFocused"));
1691
- const d = document.getElementsByClassName("dgComponentSelected");
1692
- Array.from(d).forEach((r) => r.classList.remove("dgComponentSelected"));
1667
+ const C = document.getElementsByClassName("dgComponentSelected");
1668
+ Array.from(C).forEach((r) => r.classList.remove("dgComponentSelected"));
1693
1669
  }
1694
- function P(d) {
1695
- d.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1670
+ function S(C) {
1671
+ C.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1696
1672
  }
1697
- function x(d) {
1698
- var m;
1699
- const r = u.schema.buttons || u.schema.contents, o = r == null ? void 0 : r.findIndex((M) => M.id === d);
1700
- if (o === -1)
1673
+ function k(C) {
1674
+ var p;
1675
+ const r = d.schema.buttons || d.schema.contents, n = r == null ? void 0 : r.findIndex((T) => T.id === C);
1676
+ if (n === -1)
1701
1677
  return;
1702
- const a = r[o];
1703
- (m = u == null ? void 0 : u.setupContext) == null || m.emit("selectionChange", "response-toolbar-item", a);
1704
- }
1705
- function C(d, r) {
1706
- l(d), B(), P(d), l(d), c(d, r), x(r.id);
1707
- }
1708
- function I(d) {
1709
- return g("div", {
1710
- id: d.id,
1711
- class: h(d)
1712
- }, [g("div", {
1713
- class: b(d),
1678
+ const a = r[n];
1679
+ (p = d == null ? void 0 : d.setupContext) == null || p.emit("selectionChange", "response-toolbar-item", a);
1680
+ }
1681
+ function y(C, r) {
1682
+ c(C), I(), S(C), c(C), l(C, r), k(r.id);
1683
+ }
1684
+ function x(C) {
1685
+ return m("div", {
1686
+ id: C.id,
1687
+ class: h(C)
1688
+ }, [m("div", {
1689
+ class: b(C),
1714
1690
  style: "display: flex;padding-right: 0.1rem;",
1715
- onClick: (r) => d.enable && C(r, d)
1716
- }, [T(d.id), e.shouldShowIcon(d) && g("i", {
1717
- class: e.iconClass(d)
1718
- }, null), g("span", null, [d.text]), g("i", {
1691
+ onClick: (r) => C.enable && y(r, C)
1692
+ }, [D(C.id), e.shouldShowIcon(C) && m("i", {
1693
+ class: e.iconClass(C)
1694
+ }, null), m("span", null, [C.text]), m("i", {
1719
1695
  class: "f-icon f-icon-arrow-chevron-down",
1720
1696
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1721
- }, null)]), i(d)]);
1697
+ }, null)]), i(C)]);
1722
1698
  }
1723
- function O() {
1724
- p();
1699
+ function A() {
1700
+ u();
1725
1701
  }
1726
1702
  return {
1727
- renderToolbarDropdown: I,
1728
- clearAllDropDown: O
1703
+ renderToolbarDropdown: x,
1704
+ clearAllDropDown: A
1729
1705
  };
1730
1706
  }
1731
- class Ft extends ee {
1707
+ class Ot extends te {
1732
1708
  constructor(e, t) {
1733
1709
  super(e, t);
1734
1710
  }
1735
1711
  getPropertyConfig(e) {
1736
- return this.getBasicPropConfig(e), this.getBehaviorProperties(e), this.propertyConfig;
1712
+ return this.getBasicPropConfig(e), this.getAppearancePropConfig(e), this.getBehaviorProperties(e), this.propertyConfig;
1713
+ }
1714
+ getAppearancePropConfig(e) {
1715
+ this.propertyConfig.categories.appearance = {
1716
+ title: "样式",
1717
+ description: "Appearance",
1718
+ properties: {
1719
+ class: {
1720
+ title: "class样式",
1721
+ type: "string",
1722
+ description: "组件的CSS样式",
1723
+ $converter: "/converter/appearance.converter"
1724
+ }
1725
+ }
1726
+ };
1737
1727
  }
1738
1728
  getBasicPropConfig(e) {
1739
1729
  this.propertyConfig.categories.basic = {
@@ -1754,7 +1744,7 @@ class Ft extends ee {
1754
1744
  type: "combo-list",
1755
1745
  textField: "value",
1756
1746
  valueField: "key",
1757
- data: [{ key: "response-toolbar", value: K["response-toolbar"].name }]
1747
+ data: [{ key: "response-toolbar", value: ee["response-toolbar"].name }]
1758
1748
  }
1759
1749
  }
1760
1750
  }
@@ -1785,7 +1775,7 @@ class Ft extends ee {
1785
1775
  ]
1786
1776
  }
1787
1777
  },
1788
- buttons: {
1778
+ items: {
1789
1779
  title: "按钮",
1790
1780
  description: "The items of Response Toolbar.",
1791
1781
  type: "array",
@@ -1797,40 +1787,40 @@ class Ft extends ee {
1797
1787
  };
1798
1788
  }
1799
1789
  }
1800
- function Lt(n, e) {
1801
- const t = n.schema;
1790
+ function jt(o, e) {
1791
+ const t = o.schema;
1802
1792
  function s(b) {
1803
1793
  return !1;
1804
1794
  }
1805
- function i(b, l) {
1806
- return l.text = b.label, l;
1795
+ function i(b, c) {
1796
+ return c.text = b.label, c;
1807
1797
  }
1808
- function p() {
1798
+ function u() {
1809
1799
  return !1;
1810
1800
  }
1811
- function u() {
1801
+ function d() {
1812
1802
  return !1;
1813
1803
  }
1814
- function y() {
1804
+ function g() {
1815
1805
  return !0;
1816
1806
  }
1817
1807
  function w() {
1818
1808
  return !0;
1819
1809
  }
1820
1810
  function h(b) {
1821
- return new Ft(b, e).getPropertyConfig(t);
1811
+ return new Ot(b, e).getPropertyConfig(t);
1822
1812
  }
1823
1813
  return {
1824
1814
  canAccepts: s,
1825
- checkCanAddComponent: y,
1826
- checkCanDeleteComponent: u,
1827
- checkCanMoveComponent: p,
1815
+ checkCanAddComponent: g,
1816
+ checkCanDeleteComponent: d,
1817
+ checkCanMoveComponent: u,
1828
1818
  hideNestedPaddingInDesginerView: w,
1829
1819
  onResolveNewComponentSchema: i,
1830
1820
  getPropsConfig: h
1831
1821
  };
1832
1822
  }
1833
- const Vt = {
1823
+ const _t = {
1834
1824
  id: { type: String, default: "" },
1835
1825
  componentId: { type: String, default: "" },
1836
1826
  canAdd: { type: Boolean, default: !1 },
@@ -1843,246 +1833,245 @@ const Vt = {
1843
1833
  * 组件值
1844
1834
  */
1845
1835
  modelValue: { type: Object }
1846
- }, X = S(0);
1847
- function Ut(n, e) {
1848
- const t = e.getBoundingClientRect(), s = n.getBoundingClientRect(), i = s.top >= t.top, p = s.top <= t.bottom;
1849
- return i && p;
1836
+ }, se = M(0);
1837
+ function $t(o, e) {
1838
+ const t = e.getBoundingClientRect(), s = o.getBoundingClientRect(), i = s.top >= t.top, u = s.top <= t.bottom;
1839
+ return i && u;
1850
1840
  }
1851
- function Wt(n) {
1852
- if (!n)
1841
+ function Ft(o) {
1842
+ if (!o)
1853
1843
  return;
1854
1844
  let e;
1855
- if (n.className.includes("dgComponentSelected") ? e = n : e = n.querySelector(".dgComponentSelected"), !e)
1845
+ if (o.className.includes("dgComponentSelected") ? e = o : e = o.querySelector(".dgComponentSelected"), !e)
1856
1846
  return;
1857
1847
  const t = e.getBoundingClientRect();
1858
1848
  if (t.width === 0 && t.height === 0)
1859
1849
  return;
1860
1850
  const s = e.querySelector(".component-btn-group");
1861
1851
  if (s) {
1862
- if (!Ut(e, n)) {
1852
+ if (!$t(e, o)) {
1863
1853
  s.style.display = "none";
1864
1854
  return;
1865
1855
  }
1866
1856
  s.style.display = "";
1867
- const p = s.getBoundingClientRect(), u = s.querySelector("div");
1868
- if (u) {
1869
- const y = u.getBoundingClientRect();
1870
- u.style.top = p.top + "px", u.style.left = p.left - y.width + "px";
1857
+ const u = s.getBoundingClientRect(), d = s.querySelector("div");
1858
+ if (d) {
1859
+ const g = d.getBoundingClientRect();
1860
+ d.style.top = u.top + "px", d.style.left = u.left - g.width + "px";
1871
1861
  }
1872
1862
  }
1873
1863
  }
1874
- function qt(n, e, t) {
1875
- var B;
1876
- function s() {
1877
- }
1878
- const i = "", p = S();
1864
+ function Nt(o, e, t) {
1865
+ var I;
1866
+ const s = "", i = M();
1879
1867
  function u() {
1880
1868
  return !0;
1881
1869
  }
1882
- function y() {
1870
+ function d() {
1883
1871
  return !1;
1884
1872
  }
1885
- function w() {
1873
+ function g() {
1886
1874
  return !0;
1887
1875
  }
1888
- function h() {
1876
+ function w() {
1889
1877
  return !0;
1890
1878
  }
1891
- function b() {
1879
+ function h() {
1892
1880
  return !0;
1893
1881
  }
1894
- function l(P) {
1895
- if (!P || !P.value)
1882
+ function b(S) {
1883
+ if (!S || !S.value)
1896
1884
  return null;
1897
- const x = S(P == null ? void 0 : P.value.parent), C = l(x);
1898
- return C || null;
1885
+ const k = M(S == null ? void 0 : S.value.parent), y = b(k);
1886
+ return y || null;
1899
1887
  }
1900
- function c(P = e) {
1901
- const { componentInstance: x, designerItemElementRef: C } = P;
1902
- return !x || !x.value ? null : x.value.canMove || x.value.canAdd || x.value.canDelete ? C : c(P.parent);
1888
+ function c(S = e) {
1889
+ const { componentInstance: k, designerItemElementRef: y } = S;
1890
+ return !k || !k.value ? null : k.value.canMove || k.value.canAdd || k.value.canDelete ? y : c(S.parent);
1903
1891
  }
1904
- function f(P) {
1892
+ function l(S) {
1905
1893
  return !!t;
1906
1894
  }
1907
- function v() {
1895
+ function f() {
1908
1896
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
1909
1897
  }
1910
- function k() {
1898
+ function v() {
1911
1899
  }
1912
- function A(P, x) {
1900
+ function E(S, k) {
1913
1901
  }
1914
- function $(P) {
1915
- const { componentType: x } = P;
1916
- let C = Q(x, P);
1917
- const I = x.toLowerCase().replace("-", "_");
1918
- return C && !C.id && C.type === x && (C.id = `${I}_${Math.random().toString().slice(2, 6)}`), C;
1902
+ function O(S) {
1903
+ const { componentType: k } = S, y = V("designer-host-service");
1904
+ let x = Y(k, S, y);
1905
+ const A = k.toLowerCase().replace(/-/g, "_");
1906
+ return x && !x.id && x.type === k && (x.id = `${A}_${Math.random().toString().slice(2, 6)}`), x;
1919
1907
  }
1920
- function _(P) {
1908
+ function j(S) {
1921
1909
  }
1922
- function T(...P) {
1910
+ function _(...S) {
1923
1911
  return [];
1924
1912
  }
1925
- return p.value = {
1913
+ function D() {
1914
+ }
1915
+ return i.value = {
1926
1916
  canMove: u(),
1927
- canSelectParent: y(),
1928
- canAdd: h(),
1929
- canDelete: w(),
1930
- canNested: !b(),
1917
+ canSelectParent: d(),
1918
+ canAdd: w(),
1919
+ canDelete: g(),
1920
+ canNested: !h(),
1931
1921
  contents: [],
1932
- elementRef: n,
1933
- parent: (B = e.parent) == null ? void 0 : B.componentInstance,
1922
+ elementRef: o,
1923
+ parent: (I = e.parent) == null ? void 0 : I.componentInstance,
1934
1924
  schema: e.schema,
1935
- styles: i,
1936
- canAccepts: f,
1937
- getBelongedComponentInstance: l,
1925
+ styles: s,
1926
+ canAccepts: l,
1927
+ getBelongedComponentInstance: b,
1938
1928
  getDraggableDesignItemElement: c,
1939
- getDraggingDisplayText: v,
1940
- getPropConfig: T,
1941
- getDragScopeElement: k,
1942
- onAcceptMovedChildElement: A,
1943
- onChildElementMovedOut: _,
1944
- addNewChildComponentSchema: $,
1945
- updateDragAndDropRules: s,
1946
- triggerBelongedComponentToMoveWhenMoved: S(!1),
1947
- triggerBelongedComponentToDeleteWhenDeleted: S(!1)
1948
- }, p;
1929
+ getDraggingDisplayText: f,
1930
+ getPropConfig: _,
1931
+ getDragScopeElement: v,
1932
+ onAcceptMovedChildElement: E,
1933
+ onChildElementMovedOut: j,
1934
+ addNewChildComponentSchema: O,
1935
+ onRemoveComponent: D,
1936
+ triggerBelongedComponentToMoveWhenMoved: M(!1),
1937
+ triggerBelongedComponentToDeleteWhenDeleted: M(!1)
1938
+ }, i;
1949
1939
  }
1950
- const Ee = /* @__PURE__ */ U({
1940
+ const Ee = /* @__PURE__ */ W({
1951
1941
  name: "FDesignerInnerItem",
1952
- props: Vt,
1942
+ props: _t,
1953
1943
  emits: ["selectionChange", "addComponent", "removeComponent"],
1954
- setup(n, e) {
1955
- const t = S(n.canMove), s = S(n.canAdd), i = S(n.canDelete), p = S(!1), u = S(n.contentKey), y = S(n.childType), w = S(n.childLabel), h = S(n.modelValue), b = S(""), l = S(), c = V("canvas-dragula"), f = S(), v = V("design-item-context"), k = {
1956
- designerItemElementRef: l,
1944
+ setup(o, e) {
1945
+ const t = M(o.canMove), s = M(o.canAdd), i = M(o.canDelete), u = M(!1), d = M(o.contentKey), g = M(o.childType), w = M(o.childLabel), h = M(o.modelValue), b = M(""), c = M(), l = V("canvas-dragula"), f = M(), v = V("design-item-context"), E = {
1946
+ designerItemElementRef: c,
1957
1947
  componentInstance: f,
1958
1948
  schema: h.value,
1959
1949
  parent: v,
1960
1950
  setupContext: e
1961
1951
  };
1962
- _e("design-item-context", k);
1963
- const A = N(() => ({
1952
+ Oe("design-item-context", E);
1953
+ const O = F(() => ({
1964
1954
  "farris-component": !0,
1965
1955
  // 受position-relative影响,整个容器的高度不能被撑起
1966
- "flex-fill": n.id == "root-component",
1956
+ "flex-fill": o.id === "root-component",
1967
1957
  "position-relative": t.value || i.value,
1968
- "farris-nested": p.value,
1958
+ "farris-nested": u.value,
1969
1959
  "can-move": t.value,
1970
- "d-none": l.value && l.value.classList.contains("d-none")
1971
- })), $ = N(() => {
1972
- const o = {};
1973
- return b.value && b.value.split(";").reduce((a, m) => {
1974
- const [M, D] = m.split(":");
1975
- return M && (a[M] = D), a;
1976
- }, o), o;
1960
+ "d-none": c.value && c.value.classList.contains("d-none")
1961
+ })), j = F(() => {
1962
+ const n = {};
1963
+ return b.value && b.value.split(";").reduce((a, p) => {
1964
+ const [T, P] = p.split(":");
1965
+ return T && (a[T] = P), a;
1966
+ }, n), n;
1977
1967
  });
1978
- function _(o, a) {
1979
- if (v && v.schema[u.value]) {
1980
- const m = v.schema[u.value].findIndex((M) => M.id === a.id);
1981
- if (m > -1) {
1982
- const M = v.schema[u.value].length, D = v.schema[u.value][m % M];
1983
- v.designerItemElementRef.value.querySelector(`#${D.id}-design-item`), v.schema[u.value].splice(m, 1), v.componentInstance.value.updateDragAndDropRules(), X.value++, e.emit("removeComponent");
1968
+ function _(n, a) {
1969
+ if (v && v.schema[d.value]) {
1970
+ const p = v.schema[d.value].findIndex((T) => T.id === a.id);
1971
+ if (p > -1) {
1972
+ const T = v.schema[d.value].length, P = v.schema[d.value][p % T];
1973
+ v.designerItemElementRef.value.querySelector(`#${P.id}-design-item`), v.schema[d.value].splice(p, 1), se.value++, e.emit("removeComponent");
1984
1974
  }
1985
1975
  }
1986
1976
  }
1987
- function T(o) {
1977
+ function D(n) {
1988
1978
  if (f.value.addNewChildComponentSchema) {
1989
1979
  const a = {
1990
- componentType: y.value,
1980
+ componentType: g.value,
1991
1981
  label: w.value,
1992
1982
  parentComponentInstance: f.value,
1993
1983
  targetPosition: -1
1994
- }, m = f.value.addNewChildComponentSchema(a);
1995
- h.value[u.value].push(m), e.emit("addComponent");
1984
+ }, p = f.value.addNewChildComponentSchema(a);
1985
+ h.value[d.value].push(p), e.emit("addComponent");
1996
1986
  }
1997
1987
  }
1998
- function B() {
1999
- return s.value && g("div", {
1988
+ function I() {
1989
+ return s.value && m("div", {
2000
1990
  role: "button",
2001
1991
  class: "btn component-settings-button",
2002
1992
  title: "新增",
2003
1993
  ref: "removeComponent",
2004
- onClick: (o) => {
2005
- T();
1994
+ onClick: (n) => {
1995
+ D();
2006
1996
  }
2007
- }, [g("i", {
1997
+ }, [m("i", {
2008
1998
  class: "f-icon f-icon-plus-circle"
2009
1999
  }, null)]);
2010
2000
  }
2011
- function P(o) {
2012
- return i.value && g("div", {
2001
+ function S(n) {
2002
+ return i.value && m("div", {
2013
2003
  role: "button",
2014
2004
  class: "btn component-settings-button",
2015
2005
  title: "删除",
2016
2006
  ref: "removeComponent",
2017
- onClick: Fe((a) => _(a, o), ["stop"])
2018
- }, [g("i", {
2007
+ onClick: _e((a) => _(a, n), ["stop"])
2008
+ }, [m("i", {
2019
2009
  class: "f-icon f-icon-yxs_delete"
2020
2010
  }, null)]);
2021
2011
  }
2022
- function x() {
2023
- return t.value && g("div", {
2012
+ function k() {
2013
+ return t.value && m("div", {
2024
2014
  role: "button",
2025
2015
  class: "btn component-settings-button",
2026
2016
  title: "移动",
2027
2017
  ref: "moveComponent"
2028
- }, [g("i", {
2018
+ }, [m("i", {
2029
2019
  "data-dragging-icon": "true",
2030
2020
  class: "cmp_move f-icon f-icon-yxs_move"
2031
2021
  }, null)]);
2032
2022
  }
2033
- function C(o) {
2034
- return g("div", {
2023
+ function y(n) {
2024
+ return m("div", {
2035
2025
  class: "component-btn-group",
2036
2026
  "data-noattach": "true"
2037
- }, [g("div", null, [B(), x(), P(o)])]);
2027
+ }, [m("div", null, [I(), k(), S(n)])]);
2038
2028
  }
2039
- q(() => n.modelValue, (o) => {
2040
- h.value = o, k.schema = o;
2029
+ z(() => o.modelValue, (n) => {
2030
+ h.value = n, E.schema = n;
2041
2031
  });
2042
- function I(o) {
2043
- const a = o.target;
2044
- Wt(a);
2032
+ function x(n) {
2033
+ const a = n.target;
2034
+ Ft(a);
2045
2035
  }
2046
- function O() {
2047
- var o, a;
2048
- (a = (o = h.value) == null ? void 0 : o.contents) != null && a.length && l.value && l.value.addEventListener("scroll", I);
2036
+ function A() {
2037
+ var n, a;
2038
+ (a = (n = h.value) == null ? void 0 : n.contents) != null && a.length && c.value && c.value.addEventListener("scroll", x);
2049
2039
  }
2050
- function d() {
2051
- const o = l.value, a = S(o.children[1]);
2052
- return qt(a, k).value;
2040
+ function C() {
2041
+ const n = c.value, a = M(n.children[1]);
2042
+ return Nt(a, E).value;
2053
2043
  }
2054
- H(() => {
2055
- if (l.value) {
2056
- const o = l.value.querySelector(`[data-dragref='${h.value.id}-container']`);
2057
- f.value = o && o.componentInstance ? o.componentInstance.value : d(), c && o && c.attachComponents(o, h.value), p.value = f.value.canNested !== void 0 ? f.value.canNested : p.value, s.value = f.value.canAdd !== void 0 ? f.value.canAdd : s.value, i.value = f.value.canDelete !== void 0 ? f.value.canDelete : i.value, t.value = f.value.canMove !== void 0 ? f.value.canMove : t.value, b.value = f.value.styles || "", l.value && (l.value.componentInstance = f, l.value.designItemContext = k);
2044
+ G(() => {
2045
+ if (c.value) {
2046
+ const n = c.value.querySelector(`[data-dragref='${h.value.id}-container']`);
2047
+ f.value = n && n.componentInstance ? n.componentInstance.value : C(), l && n && l.attachComponents(n, h.value), u.value = f.value.canNested !== void 0 ? f.value.canNested : u.value, s.value = f.value.canAdd !== void 0 ? f.value.canAdd : s.value, i.value = f.value.canDelete !== void 0 ? f.value.canDelete : i.value, t.value = f.value.canMove !== void 0 ? f.value.canMove : t.value, b.value = f.value.styles || "", c.value && (c.value.componentInstance = f, c.value.designItemContext = E);
2058
2048
  }
2059
- O(), X.value++;
2060
- }), Ne(() => {
2061
- l.value && l.value.removeEventListener("scroll", I);
2049
+ A(), se.value++;
2050
+ }), je(() => {
2051
+ c.value && c.value.removeEventListener("scroll", x);
2062
2052
  });
2063
- function r(o) {
2064
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((m) => m.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
2065
- const a = l.value;
2066
- if (a) {
2067
- const m = document.getElementsByClassName("dgComponentSelected");
2068
- if (!(m && m.length === 1 && m[0] === l.value)) {
2069
- Array.from(m).forEach((E) => E.classList.remove("dgComponentSelected")), a.classList.add("dgComponentFocused"), e.emit("selectionChange", h.value.type, h.value, n.componentId, f.value);
2070
- const D = f.value.getDraggableDesignItemElement(k);
2071
- D && D.value && D.value.classList.add("dgComponentSelected");
2072
- }
2053
+ function r(n) {
2054
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((T) => T.classList.remove("dgComponentFocused")), n && (n.preventDefault(), n.stopPropagation());
2055
+ let a = E.designerItemElementRef;
2056
+ const p = c.value;
2057
+ if (p) {
2058
+ const T = document.getElementsByClassName("dgComponentSelected");
2059
+ T && T.length === 1 && T[0] === c.value || (Array.from(T).forEach((B) => B.classList.remove("dgComponentSelected")), p.classList.add("dgComponentFocused"), e.emit("selectionChange", h.value.type, h.value, o.componentId, f.value), a = f.value.getDraggableDesignItemElement(E), a && a.value && a.value.classList.add("dgComponentSelected"));
2073
2060
  }
2074
- X.value++;
2061
+ x({
2062
+ target: a == null ? void 0 : a.value
2063
+ });
2075
2064
  }
2076
- return () => g("div", {
2077
- id: `${n.id}-design-item`,
2078
- ref: l,
2079
- class: A.value,
2080
- style: $.value,
2065
+ return () => m("div", {
2066
+ id: `${o.id}-design-item`,
2067
+ ref: c,
2068
+ class: O.value,
2069
+ style: j.value,
2081
2070
  onClick: r
2082
- }, [C(h.value), e.slots.default && e.slots.default()]);
2071
+ }, [y(h.value), e.slots.default && e.slots.default()]);
2083
2072
  }
2084
2073
  });
2085
- class Ht extends ee {
2074
+ class Lt extends te {
2086
2075
  constructor(e, t) {
2087
2076
  super(e, t);
2088
2077
  }
@@ -2143,10 +2132,8 @@ class Ht extends ee {
2143
2132
  label: "onClick",
2144
2133
  name: "点击事件"
2145
2134
  }
2146
- ];
2147
- var s = this;
2148
- const i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), p = {};
2149
- p[s.viewModelId] = {
2135
+ ], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), u = {};
2136
+ u[s.viewModelId] = {
2150
2137
  type: "events-editor",
2151
2138
  editor: {
2152
2139
  initialData: i
@@ -2154,19 +2141,19 @@ class Ht extends ee {
2154
2141
  }, this.propertyConfig.categories.eventsEditor = {
2155
2142
  title: "事件",
2156
2143
  hideTitle: !0,
2157
- properties: p,
2144
+ properties: u,
2158
2145
  // 这个属性,标记当属性变更得时候触发重新更新属性
2159
2146
  refreshPanelAfterChanged: !0,
2160
2147
  tabId: "commands",
2161
2148
  tabName: "交互",
2162
- setPropertyRelates(u, y) {
2163
- const w = u.propertyValue;
2149
+ setPropertyRelates(d, g) {
2150
+ const w = d.propertyValue;
2164
2151
  delete e[s.viewModelId], w && (w.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, w.events, w));
2165
2152
  }
2166
2153
  };
2167
2154
  }
2168
2155
  }
2169
- class zt extends ee {
2156
+ class Vt extends te {
2170
2157
  constructor(e, t) {
2171
2158
  super(e, t);
2172
2159
  }
@@ -2192,7 +2179,7 @@ class zt extends ee {
2192
2179
  type: "combo-list",
2193
2180
  textField: "value",
2194
2181
  valueField: "key",
2195
- data: [{ key: "response-toolbar-item", value: K["response-toolbar-item"].name }]
2182
+ data: [{ key: "response-toolbar-item", value: ee["response-toolbar-item"].name }]
2196
2183
  }
2197
2184
  },
2198
2185
  text: {
@@ -2215,7 +2202,7 @@ class zt extends ee {
2215
2202
  description: "Behavior",
2216
2203
  properties: {
2217
2204
  disabled: {
2218
- title: "禁用状态",
2205
+ title: "禁用",
2219
2206
  type: "boolean",
2220
2207
  description: "按钮禁用状态",
2221
2208
  refreshPanelAfterChanged: !0
@@ -2229,7 +2216,7 @@ class zt extends ee {
2229
2216
  description: "Appearance",
2230
2217
  properties: {
2231
2218
  class: {
2232
- title: "class",
2219
+ title: "class样式",
2233
2220
  type: "string",
2234
2221
  description: "",
2235
2222
  $converter: "/converter/appearance.converter"
@@ -2243,8 +2230,8 @@ class zt extends ee {
2243
2230
  label: "onClick",
2244
2231
  name: "点击事件"
2245
2232
  }
2246
- ], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), p = {};
2247
- p[s.viewModelId] = {
2233
+ ], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), u = {};
2234
+ u[s.viewModelId] = {
2248
2235
  type: "events-editor",
2249
2236
  editor: {
2250
2237
  initialData: i
@@ -2252,20 +2239,20 @@ class zt extends ee {
2252
2239
  }, this.propertyConfig.categories.eventsEditor = {
2253
2240
  title: "事件",
2254
2241
  hideTitle: !0,
2255
- properties: p,
2242
+ properties: u,
2256
2243
  // 这个属性,标记当属性变更得时候触发重新更新属性
2257
2244
  refreshPanelAfterChanged: !0,
2258
2245
  tabId: "commands",
2259
2246
  tabName: "交互",
2260
- setPropertyRelates(u, y) {
2261
- const w = u.propertyValue;
2247
+ setPropertyRelates(d, g) {
2248
+ const w = d.propertyValue;
2262
2249
  delete e[s.viewModelId], w && (w.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, w.events, w));
2263
2250
  }
2264
2251
  };
2265
2252
  }
2266
2253
  }
2267
- function Gt(n, e) {
2268
- function t(y) {
2254
+ function Ut(o, e) {
2255
+ function t(g) {
2269
2256
  return !1;
2270
2257
  }
2271
2258
  function s() {
@@ -2274,216 +2261,219 @@ function Gt(n, e) {
2274
2261
  function i() {
2275
2262
  return !0;
2276
2263
  }
2277
- function p() {
2264
+ function u() {
2278
2265
  return !1;
2279
2266
  }
2280
- function u(y) {
2267
+ function d(g) {
2281
2268
  let w;
2282
- switch (n.schema.type) {
2269
+ switch (o.schema.type) {
2283
2270
  case "tab-toolbar-item":
2284
- w = new Ht(y, e);
2271
+ w = new Lt(g, e);
2285
2272
  break;
2286
2273
  default:
2287
- w = new zt(y, e);
2274
+ w = new Vt(g, e);
2288
2275
  }
2289
- return w.getPropertyConfig(n.schema);
2276
+ return w.getPropertyConfig(o.schema);
2290
2277
  }
2291
2278
  return {
2292
2279
  canAccepts: t,
2293
2280
  checkCanMoveComponent: s,
2294
2281
  checkCanDeleteComponent: i,
2295
- checkCanAddComponent: p,
2296
- getPropsConfig: u
2282
+ checkCanAddComponent: u,
2283
+ getPropsConfig: d
2297
2284
  };
2298
2285
  }
2299
- const Be = /* @__PURE__ */ U({
2286
+ const xe = /* @__PURE__ */ W({
2300
2287
  name: "FResponseToolbarItemDesign",
2301
2288
  props: Me,
2302
2289
  emits: ["Click"],
2303
- setup(n, e) {
2304
- S(), S();
2305
- const t = S(n.alignment), s = {
2290
+ setup(o, e) {
2291
+ M(), M();
2292
+ const t = M(o.alignment), s = {
2306
2293
  id: "__more_buttons__",
2307
2294
  text: "More"
2308
- }, i = S(new z(s));
2309
- N(() => i.value.children.length > 0);
2310
- const p = S(), u = V("designer-host-service"), y = V("design-item-context"), w = Gt(y, u), h = Ce(p, y, w);
2295
+ }, i = M(new Q(s));
2296
+ F(() => i.value.children.length > 0);
2297
+ const u = M(), d = V("designer-host-service"), g = V("design-item-context"), w = Ut(g, d), h = ve(u, g, w);
2311
2298
  V("toolbar-item-handler", () => {
2312
- }), H(() => {
2313
- p.value.componentInstance = h;
2299
+ }), G(() => {
2300
+ u.value.componentInstance = h;
2314
2301
  }), e.expose(h.value);
2315
2302
  function b() {
2316
2303
  const f = {
2317
2304
  "f-icon": !0
2318
- }, v = n.icon ? n.icon.trim() : "";
2319
- return Y(f, v);
2320
- }
2321
- function l() {
2322
- return !!(n.icon && n.icon.trim());
2305
+ }, v = o.icon ? o.icon.trim() : "";
2306
+ return Z(f, v);
2323
2307
  }
2324
2308
  function c() {
2309
+ return !!(o.icon && o.icon.trim());
2310
+ }
2311
+ function l() {
2325
2312
  const f = {
2326
2313
  btn: !0,
2327
2314
  "f-rt-btn": !0,
2328
2315
  "f-btn-ml": t.value === "right",
2329
2316
  "f-btn-mr": t.value === "left",
2330
- "btn-icontext": !!(n.icon && n.icon.trim()),
2331
- disabled: n.disabled === !0
2317
+ "btn-icontext": !!(o.icon && o.icon.trim()),
2318
+ disabled: o.disabled === !0
2332
2319
  };
2333
- return Y(f, n.class);
2320
+ return Z(f, o.class);
2334
2321
  }
2335
- return () => g("div", {
2336
- ref: p,
2337
- "data-dragref": `${y.schema.id}-container`,
2322
+ return () => m("div", {
2323
+ ref: u,
2324
+ "data-dragref": `${g.schema.id}-container`,
2338
2325
  class: "farris-component position-relative",
2339
2326
  style: "display:inline-block!important;"
2340
- }, [g("button", {
2327
+ }, [m("button", {
2341
2328
  type: "button",
2342
- class: c(),
2343
- id: n.id
2344
- }, [l() && g("i", {
2329
+ class: l(),
2330
+ id: o.id
2331
+ }, [c() && m("i", {
2345
2332
  class: b()
2346
- }, null), n.text])]);
2333
+ }, null), o.text])]);
2347
2334
  }
2348
- }), Ie = /* @__PURE__ */ U({
2335
+ }), Be = /* @__PURE__ */ W({
2349
2336
  name: "FResponseToolbarDesign",
2350
- props: At,
2337
+ props: Et,
2351
2338
  emits: ["Click"],
2352
- setup(n, e) {
2353
- const t = S(n.items);
2354
- let s = new Array(t.value.length).fill(S());
2355
- const i = S(), p = S(), u = S(n.alignment), y = {
2339
+ setup(o, e) {
2340
+ const t = M(o.items);
2341
+ let s = new Array(t.value.length).fill(M());
2342
+ const i = M(), u = M(), d = M(o.alignment), g = {
2356
2343
  id: "__more_buttons__",
2357
2344
  text: "More"
2358
- }, w = S(new z(y)), h = xe();
2359
- N(() => w.value.children.length > 0);
2360
- const b = S(), l = V("designer-host-service"), c = V("design-item-context"), f = Lt(c, l), v = Ce(b, c, f);
2361
- V("toolbar-item-handler", () => {
2362
- }), H(() => {
2345
+ }, w = M(new Q(g)), h = ke();
2346
+ F(() => w.value.children.length > 0);
2347
+ const b = M(), c = V("designer-host-service"), l = V("design-item-context"), f = jt(l, c), v = ve(b, l, f), E = V("toolbar-item-handler", () => {
2348
+ });
2349
+ G(() => {
2363
2350
  b.value.componentInstance = v;
2364
2351
  }), e.expose(v.value);
2365
- const k = N(() => Y({
2352
+ function O() {
2353
+ E && E();
2354
+ }
2355
+ const j = F(() => Z({
2366
2356
  "f-toolbar": !0,
2367
2357
  "f-response-toolbar": !0,
2368
2358
  "position-relative": !0
2369
- }, n.customClass)), A = N(() => ({
2359
+ }, o.customClass)), _ = F(() => ({
2370
2360
  "d-flex": !0,
2371
2361
  "flex-nowrap": !0,
2372
- "justify-content-end": u.value === "right",
2373
- "justify-content-start": u.value === "left"
2362
+ "justify-content-end": d.value === "right",
2363
+ "justify-content-start": d.value === "left"
2374
2364
  })), {
2375
- renderToolbarDropdown: $,
2376
- clearAllDropDown: _
2377
- } = Nt(n, h, v);
2378
- function T() {
2379
- t.value.filter((d) => d.children && d.children.length > 0).forEach((d) => {
2380
- d.expanded = !1;
2381
- }), w.value.expanded = !1, _();
2365
+ renderToolbarDropdown: D,
2366
+ clearAllDropDown: I
2367
+ } = At(o, h, v);
2368
+ function S() {
2369
+ t.value.filter((n) => n.children && n.children.length > 0).forEach((n) => {
2370
+ n.expanded = !1;
2371
+ }), w.value.expanded = !1, I();
2382
2372
  }
2383
- const B = /* @__PURE__ */ new Map(), P = [];
2384
- function x(d) {
2385
- const r = p.value;
2386
- let o = d;
2387
- const a = Array.from(r.children), m = a[a.length - 1].id === "__more_buttons__" ? a[a.length - 1] : null;
2388
- if (m) {
2389
- const j = m.computedStyleMap().get("margin-left"), F = m.computedStyleMap().get("margin-right"), W = (j ? j.value : 0) + m.getBoundingClientRect().width + (F ? F.value : 0);
2390
- o -= W;
2373
+ const k = /* @__PURE__ */ new Map(), y = [];
2374
+ function x(n) {
2375
+ const a = u.value;
2376
+ let p = n;
2377
+ const T = Array.from(a.children), P = T[T.length - 1].id === "__more_buttons__" ? T[T.length - 1] : null;
2378
+ if (P) {
2379
+ const $ = P.computedStyleMap().get("margin-left"), L = P.computedStyleMap().get("margin-right"), H = ($ ? $.value : 0) + P.getBoundingClientRect().width + (L ? L.value : 0);
2380
+ p -= H;
2391
2381
  }
2392
- const M = a.filter((j) => j.id !== "__more_buttons__");
2393
- for (const j of M) {
2394
- const F = j.computedStyleMap().get("margin-left"), W = j.computedStyleMap().get("margin-right"), G = (F ? F.value : 0) + j.getBoundingClientRect().width + (W ? W.value : 0);
2395
- o < G ? (B.set(j.id, !0), P.push({
2396
- id: j.id,
2397
- width: G
2398
- })) : o -= G;
2382
+ const B = T.filter(($) => $.id !== "__more_buttons__");
2383
+ for (const $ of B) {
2384
+ const L = $.computedStyleMap().get("margin-left"), H = $.computedStyleMap().get("margin-right"), J = (L ? L.value : 0) + $.getBoundingClientRect().width + (H ? H.value : 0);
2385
+ p < J ? (k.set($.id, !0), y.push({
2386
+ id: $.id,
2387
+ width: J
2388
+ })) : p -= J;
2399
2389
  }
2400
- if (P.length)
2401
- for (let j = P.length - 1; j >= 0; j--) {
2402
- const F = P[j].width;
2403
- if (o >= F)
2404
- o -= F, B.delete(P[j].id), P.pop();
2390
+ if (y.length)
2391
+ for (let $ = y.length - 1; $ >= 0; $--) {
2392
+ const L = y[$].width;
2393
+ if (p >= L)
2394
+ p -= L, k.delete(y[$].id), y.pop();
2405
2395
  else
2406
2396
  break;
2407
2397
  }
2408
- const D = Object.assign({}, w.value);
2409
- D.children = [];
2410
- const E = new z(D), L = t.value.reduce((j, F) => (B.has(F.id) && E.children.push(F), F.visible = !B.has(F.id), j.push(F), j), []);
2411
- w.value = E, t.value = L;
2398
+ const N = Object.assign({}, w.value);
2399
+ N.children = [];
2400
+ const U = new Q(N), q = t.value.reduce(($, L) => (k.has(L.id) && U.children.push(L), L.visible = !k.has(L.id), $.push(L), $), []);
2401
+ w.value = U, t.value = q;
2412
2402
  }
2413
- const C = new ResizeObserver((d) => {
2414
- if (d.length) {
2415
- const o = d[0].contentRect.width, m = p.value.getBoundingClientRect().width;
2416
- (o < m || P.length) && x(o);
2403
+ const A = new ResizeObserver((n) => {
2404
+ if (n.length) {
2405
+ const p = n[0].contentRect.width, P = u.value.getBoundingClientRect().width;
2406
+ (p < P || y.length) && x(p);
2417
2407
  }
2418
2408
  });
2419
- H(() => {
2420
- const d = i.value;
2421
- C.observe(d), document.body.addEventListener("click", T);
2422
- }), ye(() => {
2423
- C.disconnect(), document.body.removeEventListener("click", T);
2424
- }), q(() => n.items, () => {
2425
- t.value = n.items;
2409
+ G(() => {
2410
+ const n = i.value;
2411
+ A.observe(n), document.body.addEventListener("click", S);
2412
+ }), be(() => {
2413
+ A.disconnect(), document.body.removeEventListener("click", S);
2414
+ }), z(() => o.items, () => {
2415
+ t.value = o.items;
2426
2416
  }, {
2427
2417
  deep: !0
2428
- }), q(t, (d) => {
2429
- s = new Array(t.value.length).fill(S());
2418
+ }), z(t, (n) => {
2419
+ s = new Array(t.value.length).fill(M());
2430
2420
  });
2431
- function I(d, r, o, a) {
2432
- c && c.setupContext && c.setupContext.emit("selectionChange", d, r, o, a);
2421
+ function C(n, a, p, T) {
2422
+ l && l.setupContext && l.setupContext.emit("selectionChange", n, a, p, T);
2433
2423
  }
2434
- function O() {
2435
- const d = p.value.querySelector(".dgComponentFocused.dgComponentSelected");
2436
- d == null || d.classList.remove("dgComponentSelected"), d == null || d.classList.remove("dgComponentFocused");
2424
+ function r() {
2425
+ const n = u.value.querySelector(".dgComponentFocused.dgComponentSelected");
2426
+ n == null || n.classList.remove("dgComponentSelected"), n == null || n.classList.remove("dgComponentFocused"), O();
2437
2427
  }
2438
- return () => g("div", {
2428
+ return () => m("div", {
2439
2429
  ref: b,
2440
- "data-dragref": `${c.schema.id}-container`,
2441
- class: k.value
2442
- }, [g("div", {
2430
+ "data-dragref": `${l.schema.id}-container`,
2431
+ class: j.value
2432
+ }, [m("div", {
2443
2433
  ref: i,
2444
- class: A.value
2445
- }, [g("div", {
2446
- ref: p,
2434
+ class: _.value
2435
+ }, [m("div", {
2436
+ ref: u,
2447
2437
  class: "d-inline-block f-response-content",
2448
2438
  style: "white-space: nowrap;"
2449
- }, [t.value.map((d, r) => g(Ee, {
2450
- ref: s[r],
2439
+ }, [t.value.map((n, a) => m(Ee, {
2440
+ ref: s[a],
2451
2441
  class: "p-0 display-inline-block",
2452
- modelValue: d,
2453
- "onUpdate:modelValue": (o) => d = o,
2442
+ modelValue: n,
2443
+ "onUpdate:modelValue": (p) => n = p,
2454
2444
  canMove: !0,
2455
2445
  childType: "response-toolbar-item",
2456
2446
  childLabel: "按钮",
2457
2447
  contentKey: "buttons",
2458
- componentId: n.componentId,
2459
- id: d.id,
2448
+ componentId: o.componentId,
2449
+ id: n.id,
2460
2450
  style: "padding:0 !important;display:inline-block",
2461
- onSelectionChange: I,
2462
- onRemoveComponent: O
2451
+ onSelectionChange: C,
2452
+ onRemoveComponent: r
2463
2453
  }, {
2464
2454
  default: () => {
2465
- var o;
2466
- return [g(Be, {
2467
- id: d.id,
2468
- disabled: d.disabled,
2469
- text: d.text,
2470
- icon: d.icon,
2471
- class: ((o = d.appearance) == null ? void 0 : o.class) || "btn-secondary",
2472
- alignment: n.alignment || "right",
2473
- componentId: n.componentId
2455
+ var p;
2456
+ return [m(xe, {
2457
+ id: n.id,
2458
+ disabled: n.disabled,
2459
+ text: n.text,
2460
+ icon: n.icon,
2461
+ class: ((p = n.appearance) == null ? void 0 : p.class) || "btn-secondary",
2462
+ alignment: o.alignment || "right",
2463
+ componentId: o.componentId
2474
2464
  }, null)];
2475
2465
  }
2476
2466
  }))])])]);
2477
2467
  }
2478
- }), me = ce;
2479
- Z.register = (n, e, t) => {
2480
- n["response-toolbar"] = Z, e["response-toolbar"] = ce;
2468
+ }), me = le;
2469
+ K.register = (o, e, t) => {
2470
+ o["response-toolbar"] = K, e["response-toolbar"] = le;
2481
2471
  };
2482
- Z.registerDesigner = (n, e, t) => {
2483
- n["response-toolbar"] = Ie, e["response-toolbar"] = ce, n["response-toolbar-item"] = Be, e["response-toolbar-item"] = Ot;
2472
+ K.registerDesigner = (o, e, t) => {
2473
+ o["response-toolbar"] = Be, e["response-toolbar"] = le, o["response-toolbar-item"] = xe, e["response-toolbar-item"] = xt;
2484
2474
  };
2485
- Ve(Z);
2486
- const Jt = {
2475
+ Fe(K);
2476
+ const Wt = {
2487
2477
  id: { type: String, default: "" },
2488
2478
  componentId: { type: String, default: "" },
2489
2479
  type: { type: String, default: "" },
@@ -2498,104 +2488,104 @@ const Jt = {
2498
2488
  */
2499
2489
  modelValue: { type: Object },
2500
2490
  ignore: { type: Boolean, default: !1 }
2501
- }, he = /* @__PURE__ */ U({
2491
+ }, ge = /* @__PURE__ */ W({
2502
2492
  name: "FDesignerTemplateItem",
2503
- props: Jt,
2493
+ props: Wt,
2504
2494
  emits: ["selectionChange"],
2505
- setup(n, e) {
2506
- const t = S(), s = N(() => ({
2495
+ setup(o, e) {
2496
+ const t = M(), s = F(() => ({
2507
2497
  "farris-component": !0
2508
2498
  }));
2509
- function i(p) {
2510
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((y) => y.classList.remove("dgComponentFocused")), p && (p.preventDefault(), p.stopPropagation());
2511
- const u = t.value;
2512
- if (u) {
2513
- const y = document.getElementsByClassName("dgComponentSelected");
2514
- y && y.length === 1 && y[0] === t.value || (Array.from(y).forEach((h) => h.classList.remove("dgComponentSelected")), u.classList.add("dgComponentFocused"));
2499
+ function i(u) {
2500
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((g) => g.classList.remove("dgComponentFocused")), u && (u.preventDefault(), u.stopPropagation());
2501
+ const d = t.value;
2502
+ if (d) {
2503
+ const g = document.getElementsByClassName("dgComponentSelected");
2504
+ g && g.length === 1 && g[0] === t.value || (Array.from(g).forEach((h) => h.classList.remove("dgComponentSelected")), d.classList.add("dgComponentFocused"));
2515
2505
  }
2516
- X.value++;
2506
+ se.value++;
2517
2507
  }
2518
- return () => g("div", {
2519
- id: `${n.id}-design-item`,
2508
+ return () => m("div", {
2509
+ id: `${o.id}-design-item`,
2520
2510
  ref: t,
2521
2511
  class: s.value,
2522
2512
  onClick: i
2523
2513
  }, [e.slots.default && e.slots.default()]);
2524
2514
  }
2525
- }), Qt = /* @__PURE__ */ U({
2515
+ }), qt = /* @__PURE__ */ W({
2526
2516
  name: "FPageHeaderDesign",
2527
- props: st,
2528
- emits: ["Click"],
2529
- setup(n, e) {
2530
- const t = S(), s = V("designer-host-service"), i = V("design-item-context"), p = lt(i.schema, s), u = it(t, i, p), y = S(i.schema.toolbar || {
2517
+ props: nt,
2518
+ emits: ["click"],
2519
+ setup(o, e) {
2520
+ const t = M(), s = V("designer-host-service"), i = V("design-item-context"), u = it(i.schema, s), d = st(t, i, u), g = M(i.schema.toolbar || {
2531
2521
  type: "response-toolbar",
2532
2522
  buttons: []
2533
- }), w = S(me(y.value));
2534
- H(() => {
2535
- t.value.componentInstance = u;
2536
- }), q(() => i.schema.toolbar, () => {
2537
- y.value = i.schema.toolbar || {
2523
+ }), w = M(me(g.value));
2524
+ G(() => {
2525
+ t.value.componentInstance = d;
2526
+ }), z(() => i.schema.toolbar, () => {
2527
+ g.value = i.schema.toolbar || {
2538
2528
  type: "response-toolbar",
2539
2529
  buttons: []
2540
- }, w.value = me(y.value);
2530
+ }, w.value = me(g.value);
2541
2531
  }, {
2542
2532
  deep: !0
2543
2533
  });
2544
- const h = N(() => [...w.value.items]);
2545
- function b(l, c, f, v) {
2546
- i && i.setupContext && i.setupContext.emit("selectionChange", l, c, f, v);
2534
+ const h = F(() => [...w.value.items]);
2535
+ function b(c, l, f, v) {
2536
+ i && i.setupContext && i.setupContext.emit("selectionChange", c, l, f, v);
2547
2537
  }
2548
- return e.expose(u.value), () => g("div", {
2538
+ return e.expose(d.value), () => m("div", {
2549
2539
  ref: t
2550
- }, [g("nav", {
2540
+ }, [m("nav", {
2551
2541
  class: "f-page-header-base"
2552
- }, [g("div", {
2542
+ }, [m("div", {
2553
2543
  class: "f-title"
2554
- }, [g(he, null, {
2555
- default: () => [g("span", {
2544
+ }, [m(ge, null, {
2545
+ default: () => [m("span", {
2556
2546
  class: "f-title-icon f-text-orna-manage"
2557
- }, [g("i", {
2558
- class: n.icon
2547
+ }, [m("i", {
2548
+ class: o.icon
2559
2549
  }, null)])]
2560
- }), g(he, null, {
2561
- default: () => [g("h4", {
2550
+ }), m(ge, null, {
2551
+ default: () => [m("h4", {
2562
2552
  class: "f-title-text"
2563
- }, [n.title])]
2564
- })]), g(Ee, {
2553
+ }, [o.title])]
2554
+ })]), m(Ee, {
2565
2555
  class: "col-6 text-right",
2566
- modelValue: y.value,
2567
- "onUpdate:modelValue": (l) => y.value = l,
2556
+ modelValue: g.value,
2557
+ "onUpdate:modelValue": (c) => g.value = c,
2568
2558
  canAdd: !0,
2569
2559
  childType: "response-toolbar-item",
2570
2560
  childLabel: "按钮",
2571
2561
  contentKey: "buttons",
2572
- id: y.value.id,
2573
- componentId: n.componentId,
2562
+ id: g.value.id,
2563
+ componentId: o.componentId,
2574
2564
  onSelectionChange: b
2575
2565
  }, {
2576
- default: () => [g(Ie, {
2566
+ default: () => [m(Be, {
2577
2567
  customClass: "w-100",
2578
2568
  items: h.value,
2579
- componentId: n.componentId
2569
+ componentId: o.componentId
2580
2570
  }, null)]
2581
2571
  })])]);
2582
2572
  }
2583
- }), nn = {
2584
- install(n) {
2585
- n.component(ne.name, ne);
2573
+ }), Yt = {
2574
+ install(o) {
2575
+ o.component(oe.name, oe);
2586
2576
  },
2587
- register(n, e, t, s) {
2588
- n["page-header"] = ne, e["page-header"] = pe, s["page-header"] = { eventHandlerResolver: rt };
2577
+ register(o, e, t, s) {
2578
+ o["page-header"] = oe, e["page-header"] = pe, s["page-header"] = { eventHandlerResolver: ot };
2589
2579
  },
2590
- registerDesigner(n, e, t) {
2591
- n["page-header"] = Qt, e["page-header"] = pe;
2580
+ registerDesigner(o, e, t) {
2581
+ o["page-header"] = qt, e["page-header"] = pe;
2592
2582
  }
2593
2583
  };
2594
2584
  export {
2595
- ne as PageHeader,
2596
- nn as default,
2597
- rt as eventHandlerResolver,
2598
- st as pageHeaderDesignerProps,
2585
+ oe as PageHeader,
2586
+ Yt as default,
2587
+ ot as eventHandlerResolver,
2588
+ nt as pageHeaderDesignerProps,
2599
2589
  ae as pageHeaderProps,
2600
2590
  pe as propsResolver
2601
2591
  };