@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,117 +1,122 @@
1
- import { ref as b, defineComponent as F, createVNode as t, inject as j, Fragment as ee, createTextVNode as D, computed as P, provide as T, onMounted as _ } from "vue";
2
- import { isPlainObject as z, cloneDeep as M } from "lodash-es";
3
- import { FSchemaSelector as ne } from "../schema-selector/index.esm.js";
4
- import { FModalService as te } from "../modal/index.esm.js";
1
+ import { ref as g, defineComponent as F, createVNode as s, inject as O, Fragment as te, createTextVNode as R, computed as A, provide as T, onMounted as _ } from "vue";
2
+ import { isPlainObject as z, cloneDeep as S } from "lodash-es";
3
+ import oe from "../notify/index.esm.js/src/notify.service";
4
+ import "../schema-selector/index.esm.js";
5
+ import "../modal/index.esm.js";
5
6
  import "../combo-list/index.esm.js";
6
7
  const G = {}, W = {};
7
- function V(n) {
8
- const { properties: e, title: s, ignore: r } = n, u = r && Array.isArray(r), f = Object.keys(e).reduce((l, h) => ((!u || !r.find((m) => m == h)) && (l[h] = e[h].type === "object" && e[h].properties ? V(e[h]) : M(e[h].default)), l), {});
9
- return s && (!u || !r.find((l) => l == "id")) && (f.id = `${s}-${Date.now()}`), f;
8
+ function $(n) {
9
+ const { properties: e, title: r, ignore: o } = n, u = o && Array.isArray(o), m = Object.keys(e).reduce((i, h) => ((!u || !o.find((f) => f === h)) && (i[h] = e[h].type === "object" && e[h].properties ? $(e[h]) : S(e[h].default)), i), {});
10
+ if (r && (!u || !o.find((i) => i === "id"))) {
11
+ const i = r.toLowerCase().replace(/-/g, "_");
12
+ m.id = `${i}_${Math.random().toString().slice(2, 6)}`;
13
+ }
14
+ return m;
10
15
  }
11
- function U(n, e = {}, s) {
12
- const r = G[n];
13
- if (r) {
14
- let u = V(r);
15
- const f = W[n];
16
- return u = f ? f({ getSchemaByType: U }, u, e, s) : u, u;
16
+ function U(n, e = {}, r) {
17
+ const o = G[n];
18
+ if (o) {
19
+ let u = $(o);
20
+ const m = W[n];
21
+ return u = m ? m({ getSchemaByType: U }, u, e, r) : u, u;
17
22
  }
18
23
  return null;
19
24
  }
20
- function oe(n, e) {
21
- const s = V(e);
22
- return Object.keys(n).reduce((r, u) => (r[u] && z(r[u]) && z(n[u]) ? Object.assign(r[u], n[u]) : r[u] = n[u], r), s), s;
23
- }
24
25
  function re(n, e) {
25
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, u) => {
26
+ const r = $(e);
27
+ return Object.keys(r).reduce((o, u) => (o[u] && z(o[u]) && z(n[u] || !n[u]) ? Object.assign(o[u], n[u] || {}) : o[u] = n[u], o), r), r;
28
+ }
29
+ function ae(n, e) {
30
+ return Object.keys(n).filter((o) => n[o] != null).reduce((o, u) => {
26
31
  if (e.has(u)) {
27
- const f = e.get(u);
28
- if (typeof f == "string")
29
- r[f] = n[u];
32
+ const m = e.get(u);
33
+ if (typeof m == "string")
34
+ o[m] = n[u];
30
35
  else {
31
- const l = f(u, n[u], n);
32
- Object.assign(r, l);
36
+ const i = m(u, n[u], n);
37
+ Object.assign(o, i);
33
38
  }
34
39
  } else
35
- r[u] = n[u];
36
- return r;
40
+ o[u] = n[u];
41
+ return o;
37
42
  }, {});
38
43
  }
39
- function se(n, e, s = /* @__PURE__ */ new Map()) {
40
- const r = oe(n, e);
41
- return re(r, s);
44
+ function se(n, e, r = /* @__PURE__ */ new Map()) {
45
+ const o = re(n, e);
46
+ return ae(o, r);
42
47
  }
43
- function ae(n = {}) {
44
- function e(a, i, o, c) {
45
- if (typeof o == "number")
46
- return c[a].length === o;
47
- if (typeof o == "object") {
48
- const p = Object.keys(o)[0], d = o[p];
49
- if (p === "not")
50
- return Number(c[a].length) !== Number(d);
51
- if (p === "moreThan")
52
- return Number(c[a].length) >= Number(d);
53
- if (p === "lessThan")
54
- return Number(c[a].length) <= Number(d);
48
+ function le(n = {}) {
49
+ function e(a, c, t, l) {
50
+ if (typeof t == "number")
51
+ return l[a].length === t;
52
+ if (typeof t == "object") {
53
+ const w = Object.keys(t)[0], d = t[w];
54
+ if (w === "not")
55
+ return Number(l[a].length) !== Number(d);
56
+ if (w === "moreThan")
57
+ return Number(l[a].length) >= Number(d);
58
+ if (w === "lessThan")
59
+ return Number(l[a].length) <= Number(d);
55
60
  }
56
61
  return !1;
57
62
  }
58
- function s(a, i, o, c) {
59
- return c[a] && c[a].propertyValue && String(c[a].propertyValue.value) === String(o);
63
+ function r(a, c, t, l) {
64
+ return l[a] && l[a].propertyValue && String(l[a].propertyValue.value) === String(t);
60
65
  }
61
- const r = /* @__PURE__ */ new Map([
66
+ const o = /* @__PURE__ */ new Map([
62
67
  ["length", e],
63
- ["getProperty", s]
68
+ ["getProperty", r]
64
69
  ]);
65
- Object.keys(n).reduce((a, i) => (a.set(i, n[i]), a), r);
66
- function u(a, i) {
67
- const o = a;
68
- return typeof i == "number" ? [{ target: o, operator: "length", param: null, value: Number(i) }] : typeof i == "boolean" ? [{ target: o, operator: "getProperty", param: a, value: !!i }] : typeof i == "object" ? Object.keys(i).map((c) => {
69
- if (c === "length")
70
- return { target: o, operator: "length", param: null, value: i[c] };
71
- const p = c, d = i[c];
72
- return { target: o, operator: "getProperty", param: p, value: d };
70
+ Object.keys(n).reduce((a, c) => (a.set(c, n[c]), a), o);
71
+ function u(a, c) {
72
+ const t = a;
73
+ return typeof c == "number" ? [{ target: t, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: t, operator: "getProperty", param: a, value: !!c }] : typeof c == "object" ? Object.keys(c).map((l) => {
74
+ if (l === "length")
75
+ return { target: t, operator: "length", param: null, value: c[l] };
76
+ const w = l, d = c[l];
77
+ return { target: t, operator: "getProperty", param: w, value: d };
73
78
  }) : [];
74
79
  }
75
- function f(a) {
76
- return Object.keys(a).reduce((o, c) => {
77
- const p = u(c, a[c]);
78
- return o.push(...p), o;
80
+ function m(a) {
81
+ return Object.keys(a).reduce((t, l) => {
82
+ const w = u(l, a[l]);
83
+ return t.push(...w), t;
79
84
  }, []);
80
85
  }
81
- function l(a, i) {
82
- if (r.has(a.operator)) {
83
- const o = r.get(a.operator);
84
- return o && o(a.target, a.param, a.value, i) || !1;
86
+ function i(a, c) {
87
+ if (o.has(a.operator)) {
88
+ const t = o.get(a.operator);
89
+ return t && t(a.target, a.param, a.value, c) || !1;
85
90
  }
86
91
  return !1;
87
92
  }
88
- function h(a, i) {
89
- return f(a).reduce((p, d) => p && l(d, i), !0);
93
+ function h(a, c) {
94
+ return m(a).reduce((w, d) => w && i(d, c), !0);
90
95
  }
91
- function m(a, i) {
92
- const o = Object.keys(a), c = o.includes("allOf"), p = o.includes("anyOf"), d = c || p, g = (d ? a[d ? c ? "allOf" : "anyOf" : "allOf"] : [a]).map((y) => h(y, i));
93
- return c ? !g.includes(!1) : g.includes(!0);
96
+ function f(a, c) {
97
+ const t = Object.keys(a), l = t.includes("allOf"), w = t.includes("anyOf"), d = l || w, b = (d ? a[d ? l ? "allOf" : "anyOf" : "allOf"] : [a]).map((B) => h(B, c));
98
+ return l ? !b.includes(!1) : b.includes(!0);
94
99
  }
95
- return { parseValueSchema: m };
100
+ return { parseValueSchema: f };
96
101
  }
97
- const le = {}, ce = {};
98
- ae();
99
- function ie(n, e, s = /* @__PURE__ */ new Map(), r = (l, h, m) => h, u = {}, f = (l) => l) {
100
- return G[e.title] = e, W[e.title] = r, le[e.title] = u, ce[e.title] = f, (l = {}) => {
101
- const h = se(l, e, s), m = Object.keys(n).reduce((a, i) => (a[i] = n[i].default, a), {});
102
- return Object.assign(m, h);
102
+ const ce = {}, ie = {};
103
+ le();
104
+ function ue(n, e, r = /* @__PURE__ */ new Map(), o = (i, h, f, a) => h, u = {}, m = (i) => i) {
105
+ return G[e.title] = e, W[e.title] = o, ce[e.title] = u, ie[e.title] = m, (i = {}) => {
106
+ const h = se(i, e, r), f = Object.keys(n).reduce((a, c) => (a[c] = n[c].default, a), {});
107
+ return Object.assign(f, h);
103
108
  };
104
109
  }
105
- function ue(n, e) {
110
+ function de(n, e) {
106
111
  return { customClass: e.class, customStyle: e.style };
107
112
  }
108
- const de = /* @__PURE__ */ new Map([
109
- ["appearance", ue]
113
+ const me = /* @__PURE__ */ new Map([
114
+ ["appearance", de]
110
115
  ]);
111
- function fe(n, e, s) {
116
+ function fe(n, e, r) {
112
117
  return e;
113
118
  }
114
- const me = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-design.gitee.io/events-editor.schema.json", pe = "events-editor", he = "A Farris Component", we = "object", ge = {
119
+ const pe = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-design.gitee.io/events-editor.schema.json", he = "events-editor", we = "A Farris Component", ge = "object", be = {
115
120
  id: {
116
121
  description: "The unique identifier for events-editor",
117
122
  type: "string"
@@ -173,22 +178,22 @@ const me = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
173
178
  type: "boolean",
174
179
  default: !0
175
180
  }
176
- }, be = [
181
+ }, Ce = [
177
182
  "id",
178
183
  "type"
179
- ], Ce = {
180
- $schema: me,
184
+ ], Ee = {
185
+ $schema: pe,
181
186
  $id: ve,
182
- title: pe,
183
- description: he,
184
- type: we,
185
- properties: ge,
186
- required: be
187
- }, Ee = "events-editor", Se = "A Farris Component", ye = "object", Me = {}, Be = {
188
- title: Ee,
189
- description: Se,
190
- type: ye,
191
- categories: Me
187
+ title: he,
188
+ description: we,
189
+ type: ge,
190
+ properties: be,
191
+ required: Ce
192
+ }, Se = "events-editor", ye = "A Farris Component", Me = "object", Be = {}, Le = {
193
+ title: Se,
194
+ description: ye,
195
+ type: Me,
196
+ categories: Be
192
197
  }, q = [
193
198
  {
194
199
  label: "pageChange",
@@ -293,23 +298,23 @@ const me = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
293
298
  newController: [],
294
299
  isAddControllerMethod: !1,
295
300
  getEventList: () => ({ events: q, boundEventsList: [] })
296
- }, $ = {
301
+ }, I = {
297
302
  initialData: { type: Object, default: ke }
298
- }, H = ie(
299
- $,
300
- Ce,
301
- de,
303
+ }, H = ue(
304
+ I,
305
+ Ee,
306
+ me,
302
307
  fe,
303
- Be
308
+ Le
304
309
  );
305
310
  function Y(n, e) {
306
- const s = b([]), { boundEvents: r, unBoundEvent: u } = e;
307
- function f(o) {
311
+ const r = g([]), { boundEvents: o, unBoundEvent: u } = e;
312
+ function m(t) {
308
313
  return {
309
314
  /** 当前事件名称及label */
310
315
  event: {
311
- label: o.boundEvents.label,
312
- name: o.boundEvents.name
316
+ label: t.boundEvents.label,
317
+ name: t.boundEvents.name
313
318
  },
314
319
  /** 控制组件的展示及顺序:
315
320
  * 0:事件下拉框
@@ -324,160 +329,161 @@ function Y(n, e) {
324
329
  showSwitchNumber: 2
325
330
  }],
326
331
  /** 方法列表 */
327
- command: M(o.command),
332
+ command: S(t.command),
328
333
  /** 当前的控制器 */
329
- controller: M(o.controller)
334
+ controller: S(t.controller)
330
335
  };
331
336
  }
332
- function l() {
333
- var o;
334
- s.value = (o = r.value) == null ? void 0 : o.map((c) => f(c));
337
+ function i() {
338
+ var t;
339
+ r.value = (t = o.value) == null ? void 0 : t.map((l) => m(l));
335
340
  }
336
- function h(o) {
337
- const p = f({
338
- boundEvents: o,
341
+ function h(t) {
342
+ const w = m({
343
+ boundEvents: t,
339
344
  command: null,
340
345
  controller: { id: "", name: "", label: "" }
341
346
  });
342
- p.showSwitch[0].showSwitchNumber = 1, p.showSwitch[0].showSection[2][3] = !0, s.value.unshift(p);
347
+ w.showSwitch[0].showSwitchNumber = 1, w.showSwitch[0].showSection[2][3] = !0, r.value.unshift(w);
343
348
  }
344
- function m() {
345
- var o;
346
- (o = s.value) == null || o.forEach((c) => {
347
- c.showSwitch.forEach((p) => {
348
- p.showSection[2][3] = !1;
349
+ function f() {
350
+ var t;
351
+ (t = r.value) == null || t.forEach((l) => {
352
+ l.showSwitch.forEach((w) => {
353
+ w.showSection[2][3] = !1;
349
354
  });
350
355
  });
351
356
  }
352
- function a(o) {
353
- s.value[o].showSwitch.forEach((c) => {
354
- c.showSection[2][3] = !c.showSection[2][3];
357
+ function a(t) {
358
+ r.value[t].showSwitch.forEach((l) => {
359
+ l.showSection[2][3] = !l.showSection[2][3];
355
360
  });
356
361
  }
357
- function i(o) {
358
- if (o >= 0 && o <= s.value.length - 1) {
359
- const c = s.value[o];
360
- u(c.event), s.value.splice(o, 1);
362
+ function c(t) {
363
+ if (t >= 0 && t <= r.value.length - 1) {
364
+ const l = r.value[t];
365
+ u(l.event), r.value.splice(t, 1);
361
366
  }
362
367
  }
363
368
  return {
364
369
  addNewInteraction: h,
365
- collapseInteractions: m,
366
- deleteInteracton: i,
370
+ collapseInteractions: f,
371
+ deleteInteracton: c,
367
372
  toggleMethodInInteraction: a,
368
- interactions: s,
369
- loadInteractions: l
373
+ interactions: r,
374
+ loadInteractions: i
370
375
  };
371
376
  }
372
377
  function J(n) {
373
- const e = b([]), s = b([]), r = b([]);
378
+ const e = g([]), r = g([]), o = g([]);
374
379
  function u() {
375
- const i = s.value.reduce(
376
- (c, p) => (c.set(p.boundEvents.label, !0), c),
380
+ const c = r.value.reduce(
381
+ (l, w) => (l.set(w.boundEvents.label, !0), l),
377
382
  /* @__PURE__ */ new Map()
378
383
  );
379
- return e.value.filter((c) => !i.has(c.label));
384
+ return e.value.filter((l) => !c.has(l.label));
380
385
  }
381
- function f() {
382
- var o;
383
- const i = ((o = s.value) == null ? void 0 : o.length) > 0;
384
- r.value = i ? u() : e.value;
386
+ function m() {
387
+ var t;
388
+ const c = ((t = r.value) == null ? void 0 : t.length) > 0;
389
+ o.value = c ? u() : e.value;
385
390
  }
386
- function l() {
387
- e.value = n.value.events, s.value = n.value.boundEventsList, f();
391
+ function i() {
392
+ e.value = n.value.events, r.value = n.value.boundEventsList, m();
388
393
  }
389
- function h(i) {
390
- r.value = r.value.filter((o) => o.label !== i.label);
394
+ function h(c) {
395
+ o.value = o.value.filter((t) => t.label !== c.label);
391
396
  }
392
- function m(i) {
393
- s.value = s.value.filter((o) => o.boundEvents.label !== i.label), f();
397
+ function f(c) {
398
+ r.value = r.value.filter((t) => t.boundEvents.label !== c.label), m();
394
399
  }
395
400
  function a() {
396
- var c;
397
- const i = (c = n.value) == null ? void 0 : c.getEventList(), { events: o } = i;
398
- i && (n.value.events = M(o), n.value.boundEventsList = i.boundEventsList), n.value.boundEventsList && (n.value.boundEventsList = n.value.boundEventsList.filter(function(p) {
399
- return o.find((d) => d.label == p.boundEvents.label);
401
+ var l;
402
+ const c = (l = n.value) == null ? void 0 : l.getEventList(), { events: t } = c;
403
+ c && (n.value.events = S(t), n.value.boundEventsList = c.boundEventsList), n.value.boundEventsList && (n.value.boundEventsList = n.value.boundEventsList.filter(function(w) {
404
+ return t.find((d) => d.label === w.boundEvents.label);
400
405
  }));
401
406
  }
402
407
  return {
403
408
  allEvents: e,
404
- boundEvents: s,
405
- candidateEvents: r,
409
+ boundEvents: r,
410
+ candidateEvents: o,
406
411
  excludeFromCandidates: h,
407
- loadEvents: l,
412
+ loadEvents: i,
408
413
  resetBoundEvents: a,
409
- unBoundEvent: m
414
+ unBoundEvent: f
410
415
  };
411
416
  }
412
- const Le = {}, Ne = {
417
+ const Ne = {}, Pe = {
413
418
  events: { type: Array, default: [] }
414
- }, Pe = /* @__PURE__ */ F({
419
+ }, Ae = /* @__PURE__ */ F({
415
420
  name: "FEventList",
416
- props: Ne,
421
+ props: Pe,
417
422
  emits: ["click"],
418
423
  setup(n, e) {
419
- const s = b(n.events);
420
- function r(f) {
421
- e.emit("click", f);
424
+ const r = g(n.events);
425
+ function o(m) {
426
+ e.emit("click", m);
422
427
  }
423
- function u(f) {
424
- return t("div", {
428
+ function u(m) {
429
+ return s("div", {
425
430
  class: "f-page-events-editor-first-bound-event"
426
- }, [t("div", {
427
- onClick: () => r(f),
431
+ }, [s("div", {
432
+ onClick: () => o(m),
428
433
  class: "f-page-events-editor-first-bound-event-name"
429
- }, [f.name])]);
434
+ }, [m.name])]);
430
435
  }
431
- return () => t("div", {
436
+ return () => s("div", {
432
437
  class: "f-page-events-editor-events"
433
- }, [s.value.map((f) => u(f))]);
438
+ }, [r.value.map((m) => u(m))]);
434
439
  }
435
440
  }), Q = /* @__PURE__ */ F({
436
441
  name: "FInteractionButton",
437
- props: Le,
442
+ props: Ne,
438
443
  emits: ["click"],
439
444
  setup(n, e) {
440
- const s = j("useEventsComposition"), r = j("useInteractionCompostion"), {
441
- candidateEvents: u
442
- } = s, {
443
- collapseInteractions: f
444
- } = r, l = b(!1);
445
- function h(p) {
446
- u.value = u.value.filter((d) => d.label !== p.label);
445
+ const r = new oe(), o = O("useEventsComposition"), u = O("useInteractionCompostion"), {
446
+ candidateEvents: m
447
+ } = o, {
448
+ collapseInteractions: i
449
+ } = u, h = g(!1);
450
+ function f(l) {
451
+ m.value = m.value.filter((w) => w.label !== l.label);
447
452
  }
448
- function m() {
449
- l.value = !1;
450
- }
451
- function a() {
452
- l.value = !0;
453
+ function a(l = !1) {
454
+ h.value = l;
453
455
  }
454
- function i(p) {
455
- m(), h(p), e.emit("click", p);
456
+ function c(l) {
457
+ a(), f(l), e.emit("click", l);
456
458
  }
457
- function o() {
458
- l.value ? m() : a();
459
- }
460
- function c() {
461
- f(), o();
459
+ function t() {
460
+ if (m.value.length === 0) {
461
+ r.info({
462
+ position: "top-center",
463
+ message: "事件已全部绑定"
464
+ });
465
+ return;
466
+ }
467
+ i(), a(!h.value);
462
468
  }
463
- return () => t(ee, null, [t("div", {
469
+ return () => s(te, null, [s("div", {
464
470
  class: "f-page-events-editor-top-button"
465
- }, [t("button", {
471
+ }, [s("button", {
466
472
  class: "f-page-events-editor-button",
467
- onClick: c
468
- }, [t("span", {
473
+ onClick: t
474
+ }, [s("span", {
469
475
  class: "f-page-events-editor-text"
470
- }, [D("新建交互事件")])])]), l.value && t(Pe, {
471
- events: u.value,
472
- onClick: i
476
+ }, [R("新建交互事件")])])]), h.value && s(Ae, {
477
+ events: m.value,
478
+ onClick: c
473
479
  }, null)]);
474
480
  }
475
- }), Ae = {
481
+ }), Fe = {
476
482
  collapsed: { type: Boolean, default: !0 },
477
483
  displayOrder: { type: Number, default: -1 },
478
484
  interaction: { type: Object, default: {} },
479
485
  controllers: { type: Array, default: [] }
480
- }, Fe = {
486
+ }, Te = {
481
487
  /** 入参 */
482
488
  initialData: { Type: Object, default: {} },
483
489
  /** 原层级结构数据 */
@@ -494,380 +500,337 @@ const Le = {}, Ne = {
494
500
  haveBoundcommand: { Type: Boolean, default: !1 }
495
501
  }, De = {
496
502
  controllers: { type: Array, default: [] }
497
- }, Te = /* @__PURE__ */ F({
503
+ }, Oe = /* @__PURE__ */ F({
498
504
  name: "FCommandList",
499
505
  props: De,
500
506
  emits: ["selectMethod"],
501
507
  setup(n, e) {
502
- const s = b(n.controllers);
503
- function r(m) {
504
- return m.controllerList.length !== 0;
508
+ const r = g(n.controllers);
509
+ function o(f) {
510
+ return f.controllerList.length !== 0;
505
511
  }
506
- function u(m) {
507
- return r(m) && t("div", {
512
+ function u(f) {
513
+ return o(f) && s("div", {
508
514
  class: "f-page-internals-controller"
509
- }, [t("div", {
515
+ }, [s("div", {
510
516
  class: "f-page-internals-controller-name",
511
- title: m.controllerName.name
512
- }, [m.controllerName.name])]);
517
+ title: f.controllerName.name
518
+ }, [f.controllerName.name])]);
513
519
  }
514
- function f(m, a) {
520
+ function m(f, a) {
515
521
  e.emit("selectMethod", {
516
- method: m,
522
+ method: f,
517
523
  controller: a
518
524
  });
519
525
  }
520
- function l(m) {
521
- return m.controllerList.map((a) => t("div", {
526
+ function i(f) {
527
+ return f.controllerList.map((a) => s("div", {
522
528
  class: "f-page-internals-command",
523
- onClick: () => f(a, m)
524
- }, [t("div", {
529
+ onClick: () => m(a, f)
530
+ }, [s("div", {
525
531
  class: "f-page-internals-command-name",
526
532
  title: a.label
527
533
  }, [a.name])]));
528
534
  }
529
- function h(m) {
530
- return t("div", null, [u(m), l(m)]);
535
+ function h(f) {
536
+ return s("div", null, [u(f), i(f)]);
531
537
  }
532
- return () => t("div", {
538
+ return () => s("div", {
533
539
  class: "f-page-internals"
534
- }, [s.value.map((m) => h(m))]);
540
+ }, [r.value.map((f) => h(f))]);
535
541
  }
536
- }), Oe = /* @__PURE__ */ F({
542
+ }), je = /* @__PURE__ */ F({
537
543
  name: "FCommandSource",
538
- props: Fe,
544
+ props: Te,
539
545
  emits: ["addInternalCommandListChanged", "newImportChanged", "currentCommandChanged", "originalDataChanged", "click", "existChanged", "newFucChanged", "close", "selectMethod"],
540
546
  setup(n, e) {
541
- const s = j("useMethodsComposition"), {
542
- controllers: r
543
- } = s, u = b(!1), f = b(n.canAddNewMethod), l = P(() => !f.value), h = P(() => u.value), m = P(() => ({
547
+ const r = O("useMethodsComposition"), {
548
+ controllers: o
549
+ } = r, u = g(!1), m = g(n.canAddNewMethod);
550
+ A(() => !m.value), A(() => u.value), A(() => ({
544
551
  "font-size": "15px",
545
552
  margin: "5px",
546
553
  color: "#226eff",
547
554
  flex: 1
548
- })), a = Symbol("controller schema repository inject token");
555
+ }));
549
556
  function i() {
550
- return t(ne, {
551
- injectSymbolToken: a,
552
- "view-type": "NavList"
553
- }, null);
554
- }
555
- function o() {
556
- te.show({
557
- title: "选择控制器",
558
- width: 950,
559
- render: i
560
- });
561
- }
562
- function c() {
563
- }
564
- function p() {
565
- }
566
- function d() {
567
- }
568
- function E() {
569
557
  e.emit("close", null);
570
558
  }
571
- function B() {
572
- return t("div", {
559
+ function h() {
560
+ return s("div", {
573
561
  class: "f-command-breakline"
574
- }, [D("------------------------------------------------------------")]);
575
- }
576
- function g() {
577
- return t("div", {
578
- class: "f-page-internals-new-command"
579
- }, [t("div", {
580
- class: "f-page-internals-new-command-func1"
581
- }, [t("div", {
582
- class: "f-icon f-icon-panel-retraction",
583
- style: m.value
584
- }, null), t("div", {
585
- class: "f-function-class",
586
- onClick: () => o()
587
- }, [D("引入控制器")])]), l.value && t("div", {
588
- class: "f-page-internals-new-command-func2"
589
- }, [t("div", {
590
- class: "f-icon f-icon-new-edit",
591
- style: m.value
592
- }, null), t("div", {
593
- class: "f-function-class",
594
- onClick: () => void 0
595
- }, [D("添加新方法")])]), h.value && void 0, t("div", {
596
- class: "f-page-internals-new-command-func3"
597
- }, [t("div", {
598
- class: "f-icon f-icon-licensed",
599
- style: m.value
600
- }, null), t("div", {
601
- class: "f-function-class",
602
- onClick: () => void 0
603
- }, [D("已有方法")])])]);
562
+ }, [R("------------------------------------------------------------")]);
604
563
  }
605
- function S(v) {
606
- e.emit("selectMethod", v);
564
+ function f(c) {
565
+ e.emit("selectMethod", c);
607
566
  }
608
- function y() {
609
- return t("div", {
567
+ function a() {
568
+ return s("div", {
610
569
  class: "f-page-command-source-choice"
611
- }, [t(Te, {
612
- controllers: r.value,
613
- onSelectMethod: S
570
+ }, [s(Oe, {
571
+ controllers: o.value,
572
+ onSelectMethod: f
614
573
  }, null)]);
615
574
  }
616
- return () => t("div", {
575
+ return () => s("div", {
617
576
  class: "f-page-events-editor-command-source"
618
- }, [y(), B(), g(), B(), t("div", null, [t("div", {
577
+ }, [a(), h(), h(), s("div", null, [s("div", {
619
578
  class: "f-page-internals-close",
620
- onClick: E
621
- }, [D("取消")])])]);
579
+ onClick: i
580
+ }, [R("取消")])])]);
622
581
  }
623
- }), je = {
582
+ }), Re = {
624
583
  command: { type: Object, default: {} }
625
- }, Re = /* @__PURE__ */ F({
584
+ }, Ve = /* @__PURE__ */ F({
626
585
  name: "FParameterEditor",
627
- props: je,
586
+ props: Re,
628
587
  emits: ["confirm", "change"],
629
588
  setup(n, e) {
630
- const s = b(n.command), r = b(0), u = b(!1), f = b(!1);
631
- b(""), b([]);
632
- const l = P(() => s.value !== null), h = P(() => u.value), m = P(() => f.value), a = P(() => !u.value && !f.value), i = b(!1);
633
- function o() {
589
+ const r = g(n.command), o = g(0), u = g(!1), m = g(!1);
590
+ g(""), g([]);
591
+ const i = A(() => r.value !== null), h = A(() => u.value), f = A(() => m.value), a = A(() => !u.value && !m.value), c = g(!1);
592
+ function t() {
634
593
  }
635
- function c() {
636
- return t("div", null, [t("div", {
594
+ function l() {
595
+ return s("div", null, [s("div", {
637
596
  title: "'方法已被移除,请重新绑定'",
638
597
  class: "f-icon f-icon-flowline-warning",
639
598
  style: "font-size: 13px;margin-right:10px; color: red;width: 30px;height: 20px;text-align: center;",
640
599
  onClick: () => void 0
641
600
  }, null)]);
642
601
  }
643
- function p() {
602
+ function w() {
644
603
  }
645
604
  function d() {
646
- return t("div", null, [t("div", {
605
+ return s("div", null, [s("div", {
647
606
  title: "'方法已被删除,请绑定其他方法'",
648
607
  class: "f-icon f-icon-flowline-warning",
649
608
  style: "font-size: 13px;margin-right:10px; color: red;width: 30px;height: 20px;text-align: center;",
650
609
  onClick: () => void 0
651
610
  }, null)]);
652
611
  }
653
- function E(L) {
654
- i.value = !i.value;
612
+ function y(k) {
613
+ c.value = !c.value;
655
614
  }
656
- function B() {
657
- return t("div", null, [t("div", {
615
+ function L() {
616
+ return s("div", null, [s("div", {
658
617
  class: "f-icon f-icon-edit-button",
659
618
  style: "font-size: 13px;margin-right:10px;",
660
- onClick: () => E(r.value)
619
+ onClick: () => y(o.value)
661
620
  }, null)]);
662
621
  }
663
- function g(L, N) {
664
- N.value = L.target.value;
622
+ function b(k, P) {
623
+ P.value = k.target.value;
665
624
  }
666
- function S() {
667
- e.emit("change", s.value);
625
+ function M() {
626
+ e.emit("change", r.value);
668
627
  }
669
- function y(L) {
670
- return t("div", null, [t("input", {
628
+ function B(k) {
629
+ return s("div", null, [s("input", {
630
+ title: "ide-parameter-editor",
671
631
  class: "form-control f-utils-fill text-left",
672
- value: L.value,
673
- onChange: (N) => g(N, L),
674
- onBlur: (N) => S()
632
+ value: k.value,
633
+ onChange: (P) => b(P, k),
634
+ onBlur: (P) => M()
675
635
  }, null)]);
676
636
  }
677
- function v() {
678
- var L;
679
- return (L = s.value.property) == null ? void 0 : L.map((N) => t("div", null, [t("div", {
637
+ function p() {
638
+ var k;
639
+ return (k = r.value.property) == null ? void 0 : k.map((P) => s("div", null, [s("div", {
680
640
  class: "f-page-parameter-editor-row1"
681
- }, [t("div", {
641
+ }, [s("div", {
682
642
  class: "f-page-parameter-editor-parameter-name"
683
- }, [N.shownName, N.description && t("div", {
684
- class: "farris-label-tips"
685
- }, [t("i", {
686
- class: "f-icon f-icon-message_help",
687
- style: "color:#878D99;"
688
- }, null)])])]), t("div", {
643
+ }, [P.shownName, P.description && s("div", {
644
+ class: "ml-2 farris-label-tips"
645
+ }, [s("i", {
646
+ class: "f-icon f-icon-description-tips"
647
+ }, null)])])]), s("div", {
689
648
  class: "f-page-parameter-editor-row2"
690
- }, [y(N)])]));
649
+ }, [B(P)])]));
691
650
  }
692
- function w(L) {
693
- i.value = !1, e.emit("confirm");
651
+ function v(k) {
652
+ c.value = !1, e.emit("confirm");
694
653
  }
695
654
  function C() {
696
- return t("div", null, [t("div", {
655
+ return s("div", null, [s("div", {
697
656
  class: "f-page-parameter-editor-btn"
698
- }, [t("div", {
657
+ }, [s("div", {
699
658
  class: "btn-finish",
700
- onClick: () => w(r.value)
701
- }, [D("完成")])])]);
659
+ onClick: () => v(o.value)
660
+ }, [R("完成")])])]);
702
661
  }
703
- function k() {
704
- return t("div", {
662
+ function E() {
663
+ return s("div", {
705
664
  class: "f-page-parameter-editor-group"
706
- }, [v()]);
665
+ }, [p()]);
707
666
  }
708
- function A() {
709
- return t("div", null, [t("div", {
667
+ function N() {
668
+ return s("div", null, [s("div", {
710
669
  class: "f-page-parameter-editor-first-row"
711
- }, [t("span", {
670
+ }, [s("span", {
712
671
  class: "f-page-parameter-editor-command-name",
713
- title: s.value.label
714
- }, [s.value.name]), t("div", {
672
+ title: r.value.label
673
+ }, [r.value.name]), s("div", {
715
674
  class: "f-page-parameter-editor-first-row-icon"
716
- }, [h.value && c(), m.value && d(), a.value && B()])]), i.value && k(), i.value && C()]);
675
+ }, [h.value && l(), f.value && d(), a.value && L()])]), c.value && E(), c.value && C()]);
717
676
  }
718
- return () => t("div", {
677
+ return () => s("div", {
719
678
  class: "f-page-parameter-editor"
720
- }, [l.value && A()]);
679
+ }, [i.value && N()]);
721
680
  }
722
681
  }), X = /* @__PURE__ */ F({
723
682
  name: "FInteractionItem",
724
- props: Ae,
683
+ props: Fe,
725
684
  emits: ["addAction", "delete", "toggle"],
726
685
  setup(n, e) {
727
- const s = j("useMethodsComposition"), {
728
- toggleSelectingMethod: r,
686
+ const r = O("useMethodsComposition"), {
687
+ toggleSelectingMethod: o,
729
688
  emitFinalState: u
730
- } = s, f = b(n.controllers), l = b(n.interaction), h = b(n.displayOrder), m = P(() => {
731
- const v = l.value.showSwitch[0];
732
- return v.showSection[v.showSwitchNumber][2];
733
- }), a = P(() => {
734
- const v = !!l.value.command, w = l.value.showSwitch[0], C = w.showSection[w.showSwitchNumber][3];
735
- return v && C;
736
- }), i = P(() => ({
689
+ } = r, m = g(n.controllers), i = g(n.interaction), h = g(n.displayOrder), f = A(() => {
690
+ const p = i.value.showSwitch[0];
691
+ return p.showSection[p.showSwitchNumber][2];
692
+ }), a = A(() => {
693
+ const p = !!i.value.command, v = i.value.showSwitch[0], C = v.showSection[v.showSwitchNumber][3];
694
+ return p && C;
695
+ }), c = A(() => ({
737
696
  "f-icon": !0,
738
697
  "f-icon-arrow-chevron-down": a.value,
739
698
  "f-icon-arrow-chevron-left": !a.value
740
699
  }));
741
- function o() {
700
+ function t() {
742
701
  e.emit("delete", h.value);
743
702
  }
744
- function c() {
745
- const v = l.value.showSwitch[0];
746
- v.showSection[v.showSwitchNumber][3] = !v.showSection[v.showSwitchNumber][3], e.emit("toggle", h.value);
703
+ function l() {
704
+ const p = i.value.showSwitch[0];
705
+ p.showSection[p.showSwitchNumber][3] = !p.showSection[p.showSwitchNumber][3], e.emit("toggle", h.value);
747
706
  }
748
- function p() {
749
- if (l.value.command !== null) {
750
- const w = l.value.showSwitch[0];
751
- r(w), e.emit("addAction", h.value);
707
+ function w() {
708
+ if (i.value.command !== null) {
709
+ const v = i.value.showSwitch[0];
710
+ o(v), e.emit("addAction", h.value);
752
711
  }
753
712
  }
754
- function d(v) {
755
- v === null && l.value.command === null && e.emit("delete", h.value);
756
- const w = l.value.showSwitch[0];
757
- r(w);
713
+ function d(p) {
714
+ p === null && i.value.command === null && e.emit("delete", h.value);
715
+ const v = i.value.showSwitch[0];
716
+ o(v);
758
717
  }
759
- function E(v) {
718
+ function y(p) {
760
719
  const {
761
- method: w,
720
+ method: v,
762
721
  controller: C
722
+ } = p, {
723
+ id: E,
724
+ label: N,
725
+ name: k,
726
+ handlerName: P,
727
+ property: x,
728
+ componentLists: K
763
729
  } = v, {
764
- id: k,
765
- label: A,
766
- name: L,
767
- handlerName: N
768
- } = w, {
769
- controllerName: R
770
- } = C, x = !1, K = R.id;
771
- l.value.command = {
772
- id: k,
773
- label: A,
774
- name: L,
775
- handlerName: N,
776
- hasPath: x,
777
- cmpId: K
778
- }, l.value.controller = {
779
- id: R.id,
780
- label: R.label,
781
- name: R.name
730
+ controllerName: j
731
+ } = C, ee = !1, ne = j.id;
732
+ i.value.command = {
733
+ id: E,
734
+ label: N,
735
+ name: k,
736
+ handlerName: P,
737
+ hasPath: ee,
738
+ cmpId: ne,
739
+ property: x,
740
+ componentLists: K
741
+ }, i.value.controller = {
742
+ id: j.id,
743
+ label: j.label,
744
+ name: j.name
782
745
  };
783
- const O = l.value.showSwitch[0];
784
- O.showSwitchNumber = 2, O.showSection[O.showSwitchNumber][2] = !1, O.showSection[O.showSwitchNumber][3] = !0, u();
746
+ const D = i.value.showSwitch[0];
747
+ D.showSwitchNumber = 2, D.showSection[D.showSwitchNumber][2] = !1, D.showSection[D.showSwitchNumber][3] = !0, u();
785
748
  }
786
- function B() {
787
- return t(Oe, {
788
- controllers: f.value,
749
+ function L() {
750
+ return s(je, {
751
+ controllers: m.value,
789
752
  onClose: d,
790
- onSelectMethod: E
753
+ onSelectMethod: y
791
754
  }, null);
792
755
  }
793
- function g() {
794
- const v = l.value.showSwitch[0];
795
- v.showSection[v.showSwitchNumber][3] = !1;
756
+ function b() {
757
+ const p = i.value.showSwitch[0];
758
+ p.showSection[p.showSwitchNumber][3] = !1;
796
759
  }
797
- function S(v) {
798
- l.value.command = M(v), u();
760
+ function M(p) {
761
+ i.value.command = S(p), u();
799
762
  }
800
- function y() {
801
- return t(Re, {
802
- command: l.value.command,
803
- onConfirm: () => g(),
804
- onChange: (v) => S(v)
763
+ function B() {
764
+ return s(Ve, {
765
+ command: i.value.command,
766
+ onConfirm: () => b(),
767
+ onChange: (p) => M(p)
805
768
  }, null);
806
769
  }
807
- return () => t("div", {
770
+ return () => s("div", {
808
771
  class: "show-switch"
809
- }, [t("div", {
772
+ }, [s("div", {
810
773
  class: "f-page-events-editor-bound-event"
811
- }, [t("div", {
774
+ }, [s("div", {
812
775
  class: "f-page-events-editor-bound-event-name",
813
- title: l.value.event.label
814
- }, [l.value.event.name]), t("div", {
776
+ title: i.value.event.label
777
+ }, [i.value.event.name]), s("div", {
815
778
  style: "float:right;margin:5px;"
816
- }, [t("div", {
817
- class: i.value,
779
+ }, [s("div", {
780
+ class: c.value,
818
781
  style: "font-size: 10px;",
819
- onClick: c
820
- }, null)]), t("div", {
782
+ onClick: l
783
+ }, null)]), s("div", {
821
784
  class: "f-icon f-icon-yxs_delete",
822
785
  style: "font-size: 13px;float: right; margin:8px;",
823
- onClick: o
824
- }, null), t("div", {
786
+ onClick: t
787
+ }, null), s("div", {
825
788
  class: "f-icon f-icon-home-add",
826
789
  style: "float:right; font-size: 10px; margin:8px;",
827
- onClick: p
828
- }, null)]), m.value && B(), a.value && y()]);
790
+ onClick: w
791
+ }, null)]), f.value && L(), a.value && B()]);
829
792
  }
830
793
  });
831
- function Z(n, e, s) {
832
- const { interactions: r } = e, u = b(n.value.internalCommandList);
833
- function f(d) {
834
- r.value[d].showSwitch = [], r.value[d].showSwitch.push(M({
794
+ function Z(n, e, r) {
795
+ const { interactions: o } = e, u = g(n.value.internalCommandList);
796
+ function m(d) {
797
+ o.value[d].showSwitch = [], o.value[d].showSwitch.push(S({
835
798
  // 存储所有的展示设定
836
799
  showSection: [[!1, !1, !1, !1, !1], [!1, !1, !0, !1, !1], [!1, !0, !1, !0, !1]],
837
800
  // 展示哪个部分
838
801
  showSwitchNumber: 2
839
- })), r.value = M(r.value);
802
+ })), o.value = S(o.value);
840
803
  }
841
- function l(d, E, B) {
804
+ function i(d, y, L) {
842
805
  }
843
806
  function h(d) {
844
- var B;
845
- const E = [];
846
- return (B = n.value.newController) == null || B.forEach((g) => {
847
- d.forEach((S) => {
848
- g.Code === S.controller.label && E.push(M(g));
807
+ var L;
808
+ const y = [];
809
+ return (L = n.value.newController) == null || L.forEach((b) => {
810
+ d.forEach((M) => {
811
+ b.Code === M.controller.label && y.push(S(b));
849
812
  });
850
- }), E;
813
+ }), y;
851
814
  }
852
- function m() {
853
- var S;
815
+ function f() {
816
+ var M;
854
817
  n.value.isAddControllerMethod = !!n.value.newFuncEvents;
855
- const d = [], E = M(n.value.internalCommandList);
856
- r.value.map((y) => {
857
- const v = M(y.controller), w = M(y.command), C = M(y.event), k = { controller: v, command: w, boundEvents: C };
858
- d.push(M(k));
818
+ const d = [], y = S(n.value.internalCommandList);
819
+ o.value.map((B) => {
820
+ const p = S(B.controller), v = S(B.command), C = S(B.event), E = { controller: p, command: v, boundEvents: C };
821
+ d.push(S(E));
859
822
  });
860
- const B = (S = n.value.newController) != null && S.length && d.length ? M(h(d)) : [], g = {
823
+ const L = (M = n.value.newController) != null && M.length && d.length ? S(h(d)) : [], b = {
861
824
  /** 拼接名称时的前缀 */
862
825
  viewModelId: n.value.viewModelId,
863
826
  /** 视图模型绑定的事件下的方法列表 */
864
- savedCommand: M(n.value.viewModel),
827
+ savedCommand: S(n.value.viewModel),
865
828
  /** 当前界面显示的绑定事件 */
866
- boundEventsList: M(d),
829
+ boundEventsList: S(d),
867
830
  /** 可选择的绑定事件列表 */
868
- events: M(n.value.events),
831
+ events: S(n.value.events),
869
832
  /** 内置构件列表; */
870
- internalCommandList: M(E),
833
+ internalCommandList: S(y),
871
834
  /** 所有可选的组件 */
872
835
  componentLists: [],
873
836
  /** 接收formBasicService.formMetaBasicInfo.relativePath */
@@ -875,7 +838,7 @@ function Z(n, e, s) {
875
838
  /** 接收formBasicService.envType */
876
839
  envType: n.value.envType,
877
840
  /** 初始为空,用于存储用户点击「导入新方法」的控制器值 */
878
- newController: M(B),
841
+ newController: S(L),
879
842
  /** 切换到代码视图标识 */
880
843
  isAddControllerMethod: n.value.isAddControllerMethod,
881
844
  /** 用户选择「已有方法」 */
@@ -883,226 +846,233 @@ function Z(n, e, s) {
883
846
  /** 上一个绑定的方法 */
884
847
  preCommand: n.value.preCommand,
885
848
  /** 新增方法的对应事件 */
886
- newFuncEvents: M(n.value.newFuncEvents)
849
+ newFuncEvents: S(n.value.newFuncEvents)
887
850
  };
888
- s.emit("savedCommandListChanged", g);
851
+ r.emit("savedCommandListChanged", b);
889
852
  }
890
853
  function a(d) {
891
854
  d.showSection[d.showSwitchNumber][2] = !0;
892
855
  }
893
- function i(d) {
856
+ function c(d) {
894
857
  d.showSection[d.showSwitchNumber][2] = !1;
895
858
  }
896
- function o(d) {
859
+ function t(d) {
897
860
  d.showSection[d.showSwitchNumber][3] = !0;
898
861
  }
899
- function c(d) {
862
+ function l(d) {
900
863
  d.showSection[d.showSwitchNumber][3] = !1;
901
864
  }
902
- function p(d) {
903
- d.showSection[d.showSwitchNumber][2] ? (i(d), o(d)) : (a(d), c(d));
865
+ function w(d) {
866
+ d.showSection[d.showSwitchNumber][2] ? (c(d), t(d)) : (a(d), l(d));
904
867
  }
905
868
  return {
906
869
  controllers: u,
907
- onClosed: f,
908
- emitFinalState: m,
909
- onCurrentCommandChanged: l,
910
- toggleSelectingMethod: p
870
+ onClosed: m,
871
+ emitFinalState: f,
872
+ onCurrentCommandChanged: i,
873
+ toggleSelectingMethod: w
911
874
  };
912
875
  }
913
- const I = /* @__PURE__ */ F({
876
+ const V = /* @__PURE__ */ F({
914
877
  name: "FEventsEditor",
915
- props: $,
878
+ props: I,
916
879
  emits: ["savedCommandListChanged"],
917
880
  setup(n, e) {
918
- const s = b(n.initialData), r = J(s), {
881
+ const r = g(n.initialData), o = J(r), {
919
882
  loadEvents: u,
920
- resetBoundEvents: f
921
- } = r, l = Y(s, r), {
883
+ resetBoundEvents: m
884
+ } = o, i = Y(r, o), {
922
885
  addNewInteraction: h,
923
- deleteInteracton: m,
886
+ deleteInteracton: f,
924
887
  interactions: a,
925
- loadInteractions: i
926
- } = l, o = Z(s, l, e);
927
- T("useEventsComposition", r), T("useInteractionCompostion", l), T("useMethodsComposition", o);
928
- function c() {
929
- s.value.isAddControllerMethod = !1;
888
+ loadInteractions: c
889
+ } = i, t = Z(r, i, e);
890
+ T("useEventsComposition", o), T("useInteractionCompostion", i), T("useMethodsComposition", t);
891
+ function l() {
892
+ r.value.isAddControllerMethod = !1;
930
893
  }
931
894
  _(() => {
932
- c(), f(), u(), i();
895
+ l(), m(), u(), c();
933
896
  });
934
- function p(g) {
935
- m(g);
897
+ function w(b) {
898
+ f(b);
936
899
  }
937
- function d(g, S) {
938
- const y = g.showSwitch[0], v = y.showSection[y.showSwitchNumber][3];
939
- return t(X, {
940
- interaction: g,
941
- displayOrder: S,
942
- collapsed: v,
943
- onDelete: p
900
+ function d(b, M) {
901
+ const B = b.showSwitch[0], p = B.showSection[B.showSwitchNumber][3];
902
+ return s(X, {
903
+ interaction: b,
904
+ displayOrder: M,
905
+ collapsed: p,
906
+ onDelete: w
944
907
  }, null);
945
908
  }
946
- function E() {
947
- var g;
948
- return (g = a.value) == null ? void 0 : g.map((S, y) => t("div", {
909
+ function y() {
910
+ var b;
911
+ return (b = a.value) == null ? void 0 : b.map((M, B) => s("div", {
949
912
  class: "events-display-order",
950
- key: S.event.label
951
- }, [d(S, y)]));
913
+ key: M.event.label
914
+ }, [d(M, B)]));
952
915
  }
953
- function B(g) {
954
- h(g);
916
+ function L(b) {
917
+ h(b);
955
918
  }
956
- return () => t("div", {
919
+ return () => s("div", {
957
920
  class: "f-page-events-editor"
958
- }, [t("div", {
921
+ }, [s("div", {
959
922
  class: "f-page-events-editor-content"
960
- }, [t(Q, {
961
- onClick: B
962
- }, null), E()])]);
923
+ }, [s(Q, {
924
+ onClick: L
925
+ }, null), y()])]);
963
926
  }
964
927
  });
965
- function Ie(n, e, s) {
966
- var v;
967
- function r() {
968
- }
969
- const u = "", f = "", l = b();
970
- function h() {
928
+ function $e(n, e, r) {
929
+ var p;
930
+ const o = "", u = "", m = g();
931
+ function i() {
971
932
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
972
933
  }
973
- function m() {
934
+ function h() {
974
935
  return !1;
975
936
  }
976
- function a() {
937
+ function f() {
977
938
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
978
939
  }
979
- function i() {
940
+ function a() {
980
941
  return (e == null ? void 0 : e.schema.componentType) === "frame";
981
942
  }
982
- function o(w) {
983
- if (!w || !w.value)
943
+ function c(v) {
944
+ if (!v || !v.value)
984
945
  return null;
985
- if (w.value.schema && w.value.schema.type === "component")
986
- return w.value;
987
- const C = b(w == null ? void 0 : w.value.parent), k = o(C);
988
- return k || null;
946
+ if (v.value.schema && v.value.schema.type === "component")
947
+ return v.value;
948
+ const C = g(v == null ? void 0 : v.value.parent), E = c(C);
949
+ return E || null;
989
950
  }
990
- function c(w = e) {
991
- const { componentInstance: C, designerItemElementRef: k } = w;
992
- return !C || !C.value ? null : C.value.canMove ? k : c(w.parent);
951
+ function t(v = e) {
952
+ const { componentInstance: C, designerItemElementRef: E } = v;
953
+ return !C || !C.value ? null : C.value.canMove ? E : t(v.parent);
993
954
  }
994
- function p(w) {
995
- return !!s;
955
+ function l(v) {
956
+ return !!r;
996
957
  }
997
- function d() {
958
+ function w() {
998
959
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
999
960
  }
1000
- function E() {
961
+ function d() {
1001
962
  }
1002
- function B(w, C) {
963
+ function y(v, C) {
1003
964
  }
1004
- function g(w, C) {
1005
- const { componentType: k } = w;
1006
- let A = U(k, w, C);
1007
- const L = k.toLowerCase().replace("-", "_");
1008
- return A && !A.id && A.type === k && (A.id = `${L}_${Math.random().toString().slice(2, 6)}`), A;
965
+ function L(v, C) {
966
+ const { componentType: E } = v;
967
+ let N = U(E, v, C);
968
+ const k = E.toLowerCase().replace(/-/g, "_");
969
+ return N && !N.id && N.type === E && (N.id = `${k}_${Math.random().toString().slice(2, 6)}`), N;
1009
970
  }
1010
- function S(w) {
971
+ function b(v) {
1011
972
  }
1012
- function y(...w) {
973
+ function M(...v) {
1013
974
  }
1014
- return l.value = {
1015
- canMove: h(),
1016
- canSelectParent: m(),
1017
- canDelete: a(),
1018
- canNested: !i(),
975
+ function B() {
976
+ e != null && e.schema.contents && e.schema.contents.map((v) => {
977
+ var N;
978
+ let C = v.id;
979
+ v.type === "component-ref" && (C = v.component);
980
+ const E = n.value.querySelector(`#${C}-design-item`);
981
+ (N = E == null ? void 0 : E.componentInstance) != null && N.value.onRemoveComponent && E.componentInstance.value.onRemoveComponent();
982
+ });
983
+ }
984
+ return m.value = {
985
+ canMove: i(),
986
+ canSelectParent: h(),
987
+ canDelete: f(),
988
+ canNested: !a(),
1019
989
  contents: e == null ? void 0 : e.schema.contents,
1020
990
  elementRef: n,
1021
- parent: (v = e == null ? void 0 : e.parent) == null ? void 0 : v.componentInstance,
991
+ parent: (p = e == null ? void 0 : e.parent) == null ? void 0 : p.componentInstance,
1022
992
  schema: e == null ? void 0 : e.schema,
1023
- styles: u,
1024
- designerClass: f,
1025
- canAccepts: p,
1026
- getBelongedComponentInstance: o,
1027
- getDraggableDesignItemElement: c,
1028
- getDraggingDisplayText: d,
1029
- getPropConfig: y,
1030
- getDragScopeElement: E,
1031
- onAcceptMovedChildElement: B,
1032
- onChildElementMovedOut: S,
1033
- addNewChildComponentSchema: g,
1034
- updateDragAndDropRules: r,
1035
- triggerBelongedComponentToMoveWhenMoved: b(!1),
1036
- triggerBelongedComponentToDeleteWhenDeleted: b(!1)
1037
- }, l;
993
+ styles: o,
994
+ designerClass: u,
995
+ canAccepts: l,
996
+ getBelongedComponentInstance: c,
997
+ getDraggableDesignItemElement: t,
998
+ getDraggingDisplayText: w,
999
+ getPropConfig: M,
1000
+ getDragScopeElement: d,
1001
+ onAcceptMovedChildElement: y,
1002
+ onChildElementMovedOut: b,
1003
+ addNewChildComponentSchema: L,
1004
+ triggerBelongedComponentToMoveWhenMoved: g(!1),
1005
+ triggerBelongedComponentToDeleteWhenDeleted: g(!1),
1006
+ onRemoveComponent: B
1007
+ }, m;
1038
1008
  }
1039
- const Ve = /* @__PURE__ */ F({
1009
+ const Ie = /* @__PURE__ */ F({
1040
1010
  name: "FEventsEditorDesign",
1041
- props: $,
1011
+ props: I,
1042
1012
  emits: ["savedCommandListChanged"],
1043
1013
  setup(n, e) {
1044
- const s = b(n.initialData), r = J(s), {
1014
+ const r = g(n.initialData), o = J(r), {
1045
1015
  loadEvents: u,
1046
- resetBoundEvents: f
1047
- } = r, l = Y(s, r), {
1016
+ resetBoundEvents: m
1017
+ } = o, i = Y(r, o), {
1048
1018
  addNewInteraction: h,
1049
- deleteInteracton: m,
1019
+ deleteInteracton: f,
1050
1020
  interactions: a,
1051
- loadInteractions: i
1052
- } = l, o = Z(s, l, e);
1053
- T("useEventsComposition", r), T("useInteractionCompostion", l), T("useMethodsComposition", o);
1054
- const c = b(), p = j("design-item-context"), d = Ie(c, p);
1021
+ loadInteractions: c
1022
+ } = i, t = Z(r, i, e);
1023
+ T("useEventsComposition", o), T("useInteractionCompostion", i), T("useMethodsComposition", t);
1024
+ const l = g(), w = O("design-item-context"), d = $e(l, w);
1055
1025
  _(() => {
1056
- c.value.componentInstance = d, E(), f(), u(), i();
1026
+ l.value.componentInstance = d, y(), m(), u(), c();
1057
1027
  }), e.expose(d.value);
1058
- function E() {
1059
- s.value.isAddControllerMethod = !1;
1028
+ function y() {
1029
+ r.value.isAddControllerMethod = !1;
1060
1030
  }
1061
- function B(v) {
1062
- m(v);
1031
+ function L(p) {
1032
+ f(p);
1063
1033
  }
1064
- function g(v, w) {
1065
- const C = v.showSwitch[0], k = C.showSection[C.showSwitchNumber][3];
1066
- return t(X, {
1067
- interaction: v,
1068
- displayOrder: w,
1069
- collapsed: k,
1070
- onDelete: B
1034
+ function b(p, v) {
1035
+ const C = p.showSwitch[0], E = C.showSection[C.showSwitchNumber][3];
1036
+ return s(X, {
1037
+ interaction: p,
1038
+ displayOrder: v,
1039
+ collapsed: E,
1040
+ onDelete: L
1071
1041
  }, null);
1072
1042
  }
1073
- function S() {
1074
- var v;
1075
- return (v = a.value) == null ? void 0 : v.map((w, C) => t("div", {
1043
+ function M() {
1044
+ var p;
1045
+ return (p = a.value) == null ? void 0 : p.map((v, C) => s("div", {
1076
1046
  class: "events-display-order",
1077
- key: w.event.label
1078
- }, [g(w, C)]));
1047
+ key: v.event.label
1048
+ }, [b(v, C)]));
1079
1049
  }
1080
- function y(v) {
1081
- h(v);
1050
+ function B(p) {
1051
+ h(p);
1082
1052
  }
1083
- return () => t("div", {
1084
- ref: c,
1053
+ return () => s("div", {
1054
+ ref: l,
1085
1055
  class: "f-page-events-editor"
1086
- }, [t("div", {
1056
+ }, [s("div", {
1087
1057
  class: "f-page-events-editor-content"
1088
- }, [t(Q, {
1089
- onClick: y
1090
- }, null), S()])]);
1058
+ }, [s(Q, {
1059
+ onClick: B
1060
+ }, null), M()])]);
1091
1061
  }
1092
- }), Ge = {
1062
+ }), Ue = {
1093
1063
  install(n) {
1094
- n.component(I.name, I);
1064
+ n.component(V.name, V);
1095
1065
  },
1096
- register(n, e, s, r) {
1097
- n["events-editor"] = I, e["events-editor"] = H;
1066
+ register(n, e, r, o) {
1067
+ n["events-editor"] = V, e["events-editor"] = H;
1098
1068
  },
1099
- registerDesigner(n, e, s) {
1100
- n["events-editor"] = Ve, e["events-editor"] = H;
1069
+ registerDesigner(n, e, r) {
1070
+ n["events-editor"] = Ie, e["events-editor"] = H;
1101
1071
  }
1102
1072
  };
1103
1073
  export {
1104
- I as FEventsEditor,
1105
- Ge as default,
1106
- $ as eventsEditorProps,
1074
+ V as FEventsEditor,
1075
+ Ue as default,
1076
+ I as eventsEditorProps,
1107
1077
  H as propsResolver
1108
1078
  };