@farris/ui-vue 1.2.9 → 1.3.1

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 (287) hide show
  1. package/components/accordion/index.esm.js +64 -64
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +521 -336
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +99 -97
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +496 -504
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +251 -259
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +696 -519
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +368 -376
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1141 -340
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +116 -116
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +986 -798
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +463 -998
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2233 -1057
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +335 -1002
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6193 -4702
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4562 -3294
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3420 -2623
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-canvas/index.css +1 -1
  40. package/components/designer-canvas/index.esm.js +914 -883
  41. package/components/designer-canvas/index.umd.cjs +1 -1
  42. package/components/designer-outline/index.esm.js +14 -13
  43. package/components/designer-outline/index.umd.cjs +1 -1
  44. package/components/dropdown/index.esm.js +204 -212
  45. package/components/dropdown/index.umd.cjs +2 -2
  46. package/components/dynamic-form/index.css +1 -0
  47. package/components/dynamic-form/index.esm.js +2795 -1835
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +180 -130
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +303 -290
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/events-editor/index.esm.js +328 -336
  54. package/components/events-editor/index.umd.cjs +1 -1
  55. package/components/expression-editor/index.esm.js +65 -65
  56. package/components/expression-editor/index.umd.cjs +1 -1
  57. package/components/external-container/index.css +1 -1
  58. package/components/external-container/index.esm.js +3349 -3626
  59. package/components/external-container/index.umd.cjs +1 -1
  60. package/components/field-selector/index.css +1 -1
  61. package/components/field-selector/index.esm.js +5344 -8588
  62. package/components/field-selector/index.umd.cjs +1 -1
  63. package/components/filter-bar/index.css +1 -1
  64. package/components/filter-bar/index.esm.js +2179 -2227
  65. package/components/filter-bar/index.umd.cjs +1 -1
  66. package/components/flow-canvas/index.css +1 -1
  67. package/components/flow-canvas/index.esm.js +684 -675
  68. package/components/flow-canvas/index.umd.cjs +1 -1
  69. package/components/image-cropper/index.esm.js +482 -490
  70. package/components/image-cropper/index.umd.cjs +1 -1
  71. package/components/input-group/index.esm.js +746 -569
  72. package/components/input-group/index.umd.cjs +1 -1
  73. package/components/layout/index.esm.js +409 -385
  74. package/components/layout/index.umd.cjs +1 -1
  75. package/components/list-nav/index.esm.js +348 -1019
  76. package/components/list-nav/index.umd.cjs +1 -1
  77. package/components/list-view/index.css +1 -1
  78. package/components/list-view/index.esm.js +3606 -2388
  79. package/components/list-view/index.umd.cjs +1 -1
  80. package/components/lookup/index.css +1 -1
  81. package/components/lookup/index.esm.js +10871 -8970
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.css +1 -1
  84. package/components/mapping-editor/index.esm.js +6019 -5631
  85. package/components/mapping-editor/index.umd.cjs +1 -1
  86. package/components/message-box/index.css +1 -1
  87. package/components/message-box/index.esm.js +511 -471
  88. package/components/message-box/index.umd.cjs +1 -1
  89. package/components/modal/index.css +1 -1
  90. package/components/modal/index.esm.js +438 -398
  91. package/components/modal/index.umd.cjs +1 -1
  92. package/components/nav/index.esm.js +912 -1281
  93. package/components/nav/index.umd.cjs +3 -3
  94. package/components/notify/index.esm.js +59 -53
  95. package/components/notify/index.umd.cjs +1 -1
  96. package/components/number-range/index.esm.js +660 -484
  97. package/components/number-range/index.umd.cjs +1 -1
  98. package/components/number-spinner/index.esm.js +682 -506
  99. package/components/number-spinner/index.umd.cjs +1 -1
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1848 -1658
  102. package/components/order/index.umd.cjs +1 -1
  103. package/components/page-footer/index.esm.js +100 -100
  104. package/components/page-footer/index.umd.cjs +1 -1
  105. package/components/page-header/index.esm.js +1120 -1923
  106. package/components/page-header/index.umd.cjs +1 -1
  107. package/components/pagination/index.esm.js +875 -1214
  108. package/components/pagination/index.umd.cjs +1 -1
  109. package/components/popover/index.esm.js +71 -70
  110. package/components/popover/index.umd.cjs +1 -1
  111. package/components/progress/index.esm.js +229 -237
  112. package/components/progress/index.umd.cjs +3 -3
  113. package/components/property-editor/index.css +1 -1
  114. package/components/property-editor/index.esm.js +2314 -1521
  115. package/components/property-editor/index.umd.cjs +3 -3
  116. package/components/property-panel/index.esm.js +867 -868
  117. package/components/property-panel/index.umd.cjs +1 -1
  118. package/components/query-solution/index.css +1 -1
  119. package/components/query-solution/index.esm.js +4332 -3623
  120. package/components/query-solution/index.umd.cjs +1 -1
  121. package/components/radio-button/index.esm.js +72 -72
  122. package/components/radio-button/index.umd.cjs +1 -1
  123. package/components/radio-group/index.esm.js +613 -437
  124. package/components/radio-group/index.umd.cjs +1 -1
  125. package/components/rate/index.esm.js +255 -263
  126. package/components/rate/index.umd.cjs +1 -1
  127. package/components/response-layout/index.esm.js +144 -152
  128. package/components/response-layout/index.umd.cjs +1 -1
  129. package/components/response-layout-editor/index.css +1 -1
  130. package/components/response-layout-editor/index.esm.js +1101 -1038
  131. package/components/response-layout-editor/index.umd.cjs +1 -1
  132. package/components/response-toolbar/index.esm.js +935 -1750
  133. package/components/response-toolbar/index.umd.cjs +1 -1
  134. package/components/schema-selector/index.css +1 -1
  135. package/components/schema-selector/index.esm.js +5264 -5677
  136. package/components/schema-selector/index.umd.cjs +2 -2
  137. package/components/search-box/index.esm.js +151 -154
  138. package/components/search-box/index.umd.cjs +1 -1
  139. package/components/section/index.esm.js +438 -1125
  140. package/components/section/index.umd.cjs +1 -1
  141. package/components/smoke-detector/index.esm.js +93 -101
  142. package/components/smoke-detector/index.umd.cjs +1 -1
  143. package/components/splitter/index.esm.js +563 -1202
  144. package/components/splitter/index.umd.cjs +1 -1
  145. package/components/splitter/style.js +2 -0
  146. package/components/step/index.esm.js +248 -256
  147. package/components/step/index.umd.cjs +1 -1
  148. package/components/switch/index.esm.js +549 -373
  149. package/components/switch/index.umd.cjs +1 -1
  150. package/components/tabs/index.css +1 -1
  151. package/components/tabs/index.esm.js +2436 -3110
  152. package/components/tabs/index.umd.cjs +1 -1
  153. package/components/tags/index.esm.js +328 -336
  154. package/components/tags/index.umd.cjs +1 -1
  155. package/components/text/index.esm.js +339 -347
  156. package/components/text/index.umd.cjs +1 -1
  157. package/components/textarea/index.esm.js +554 -378
  158. package/components/textarea/index.umd.cjs +1 -1
  159. package/components/time-picker/index.css +1 -1
  160. package/components/time-picker/index.esm.js +1322 -1144
  161. package/components/time-picker/index.umd.cjs +1 -1
  162. package/components/transfer/index.css +1 -1
  163. package/components/transfer/index.esm.js +537 -543
  164. package/components/transfer/index.umd.cjs +1 -1
  165. package/components/tree-grid/index.css +1 -1
  166. package/components/tree-grid/index.esm.js +5113 -9426
  167. package/components/tree-grid/index.umd.cjs +1 -1
  168. package/components/tree-view/index.css +1 -0
  169. package/components/tree-view/index.esm.js +3900 -2677
  170. package/components/tree-view/index.umd.cjs +1 -1
  171. package/components/uploader/index.esm.js +568 -570
  172. package/components/uploader/index.umd.cjs +2 -2
  173. package/components/verify-detail/index.esm.js +266 -274
  174. package/components/verify-detail/index.umd.cjs +1 -1
  175. package/components/video/index.esm.js +553 -1052
  176. package/components/video/index.umd.cjs +1 -1
  177. package/components/weather/index.esm.js +558 -566
  178. package/components/weather/index.umd.cjs +5 -5
  179. package/farris.all.esm.js +22009 -22688
  180. package/farris.all.umd.cjs +9 -9
  181. package/index.css +1 -1
  182. package/package.json +1 -1
  183. package/types/capsule/src/capsule.props.d.ts +2 -2
  184. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  185. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  186. package/types/common/directive/area-response.d.ts +10 -0
  187. package/types/common/index.d.ts +9 -0
  188. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  189. package/types/common/types.d.ts +1 -1
  190. package/types/common/utils/encrypt.d.ts +2 -0
  191. package/types/common/utils/resolve-field.d.ts +2 -0
  192. package/types/common/utils/use-class.d.ts +7 -0
  193. package/types/component/src/component.props.d.ts +7 -0
  194. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  196. package/types/components.d.ts +1 -0
  197. package/types/condition/src/types.d.ts +2 -1
  198. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  199. package/types/data-grid/index.d.ts +11 -5
  200. package/types/data-grid/src/data-grid.component.d.ts +4 -2
  201. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  202. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  203. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  204. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  205. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  206. package/types/data-view/composition/types.d.ts +19 -4
  207. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  208. package/types/designer-canvas/index.d.ts +2 -1
  209. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  210. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  211. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  212. package/types/designer-canvas/src/composition/types.d.ts +2 -3
  213. package/types/designer-canvas/src/types.d.ts +2 -1
  214. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  215. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  216. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  217. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  218. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
  219. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  220. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  221. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  222. package/types/dynamic-form/src/types.d.ts +12 -1
  223. package/types/dynamic-resolver/index.d.ts +1 -0
  224. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  225. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  226. package/types/dynamic-resolver/src/types.d.ts +9 -0
  227. package/types/dynamic-view/index.d.ts +1 -0
  228. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  229. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  230. package/types/index.d.ts +2 -0
  231. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  232. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  233. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  234. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  235. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  236. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  237. package/types/lookup/src/composition/types.d.ts +8 -0
  238. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  239. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  240. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  241. package/types/lookup/src/composition/use-http.d.ts +9 -5
  242. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  243. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  244. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  245. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  246. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  247. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  248. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  249. package/types/modal/src/modal.component.d.ts +3 -0
  250. package/types/modal/src/modal.props.d.ts +4 -0
  251. package/types/page-header/src/page-header.props.d.ts +1 -0
  252. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  253. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  254. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  255. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  256. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  257. package/types/property-panel/index.d.ts +2 -1
  258. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  259. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  260. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  262. package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  264. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  266. package/types/query-solution/src/solutions.d.ts +108 -509
  267. package/types/response-layout-editor/index.d.ts +3 -1
  268. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  269. package/types/response-layout-editor/src/type.d.ts +21 -0
  270. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  271. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  272. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  273. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  274. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  275. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  276. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  277. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  278. package/types/tabs/src/tabs.props.d.ts +1 -0
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  282. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  283. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  284. package/types/modal/src/composition/use-esc.d.ts +0 -1
  285. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  286. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  287. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,117 +1,117 @@
1
- import { ref as b, defineComponent as D, createVNode as t, inject as R, Fragment as K, createTextVNode as T, computed as F, provide as O, onMounted as G } from "vue";
2
- import { cloneDeep as B } from "lodash-es";
3
- import { FSchemaSelector as ee } from "../schema-selector/index.esm.js";
4
- import { FModalService as ne } from "../modal/index.esm.js";
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";
5
5
  import "../combo-list/index.esm.js";
6
- const W = {}, J = {};
7
- function z(n) {
8
- const { properties: e, title: a, ignore: r } = n, d = r && Array.isArray(r), f = Object.keys(e).reduce((l, h) => ((!d || !r.find((m) => m == h)) && (l[h] = e[h].type === "object" && e[h].properties ? z(e[h]) : B(e[h].default)), l), {});
9
- return (!d || !r.find((l) => l == "id")) && (f.id = `${a}-${Date.now()}`), f;
6
+ 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;
10
10
  }
11
- function $(n, e = {}, a) {
12
- const r = W[n];
11
+ function U(n, e = {}, s) {
12
+ const r = G[n];
13
13
  if (r) {
14
- let d = z(r);
15
- const f = J[n];
16
- return d = f ? f({ getSchemaByType: $ }, d, e, a) : d, d;
14
+ let u = V(r);
15
+ const f = W[n];
16
+ return u = f ? f({ getSchemaByType: U }, u, e, s) : u, u;
17
17
  }
18
18
  return null;
19
19
  }
20
- function te(n, e) {
21
- const a = z(e);
22
- return Object.keys(n).reduce((r, d) => (r[d] && typeof r[d] == "object" ? Object.assign(r[d], n[d]) : r[d] = n[d], r), a), a;
23
- }
24
20
  function oe(n, e) {
25
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, d) => {
26
- if (e.has(d)) {
27
- const f = e.get(d);
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
+ function re(n, e) {
25
+ return Object.keys(n).filter((r) => n[r] != null).reduce((r, u) => {
26
+ if (e.has(u)) {
27
+ const f = e.get(u);
28
28
  if (typeof f == "string")
29
- r[f] = n[d];
29
+ r[f] = n[u];
30
30
  else {
31
- const l = f(d, n[d], n);
31
+ const l = f(u, n[u], n);
32
32
  Object.assign(r, l);
33
33
  }
34
34
  } else
35
- r[d] = n[d];
35
+ r[u] = n[u];
36
36
  return r;
37
37
  }, {});
38
38
  }
39
- function re(n, e, a = /* @__PURE__ */ new Map()) {
40
- const r = te(n, e);
41
- return oe(r, a);
39
+ function se(n, e, s = /* @__PURE__ */ new Map()) {
40
+ const r = oe(n, e);
41
+ return re(r, s);
42
42
  }
43
43
  function ae(n = {}) {
44
- function e(s, i, o, c) {
44
+ function e(a, i, o, c) {
45
45
  if (typeof o == "number")
46
- return c[s].length === o;
46
+ return c[a].length === o;
47
47
  if (typeof o == "object") {
48
- const p = Object.keys(o)[0], u = o[p];
48
+ const p = Object.keys(o)[0], d = o[p];
49
49
  if (p === "not")
50
- return Number(c[s].length) !== Number(u);
50
+ return Number(c[a].length) !== Number(d);
51
51
  if (p === "moreThan")
52
- return Number(c[s].length) >= Number(u);
52
+ return Number(c[a].length) >= Number(d);
53
53
  if (p === "lessThan")
54
- return Number(c[s].length) <= Number(u);
54
+ return Number(c[a].length) <= Number(d);
55
55
  }
56
56
  return !1;
57
57
  }
58
- function a(s, i, o, c) {
59
- return c[s] && c[s].propertyValue && String(c[s].propertyValue.value) === String(o);
58
+ function s(a, i, o, c) {
59
+ return c[a] && c[a].propertyValue && String(c[a].propertyValue.value) === String(o);
60
60
  }
61
61
  const r = /* @__PURE__ */ new Map([
62
62
  ["length", e],
63
- ["getProperty", a]
63
+ ["getProperty", s]
64
64
  ]);
65
- Object.keys(n).reduce((s, i) => (s.set(i, n[i]), s), r);
66
- function d(s, i) {
67
- const o = s;
68
- return typeof i == "number" ? [{ target: o, operator: "length", param: null, value: Number(i) }] : typeof i == "boolean" ? [{ target: o, operator: "getProperty", param: s, value: !!i }] : typeof i == "object" ? Object.keys(i).map((c) => {
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
69
  if (c === "length")
70
70
  return { target: o, operator: "length", param: null, value: i[c] };
71
- const p = c, u = i[c];
72
- return { target: o, operator: "getProperty", param: p, value: u };
71
+ const p = c, d = i[c];
72
+ return { target: o, operator: "getProperty", param: p, value: d };
73
73
  }) : [];
74
74
  }
75
- function f(s) {
76
- return Object.keys(s).reduce((o, c) => {
77
- const p = d(c, s[c]);
75
+ function f(a) {
76
+ return Object.keys(a).reduce((o, c) => {
77
+ const p = u(c, a[c]);
78
78
  return o.push(...p), o;
79
79
  }, []);
80
80
  }
81
- function l(s, i) {
82
- if (r.has(s.operator)) {
83
- const o = r.get(s.operator);
84
- return o && o(s.target, s.param, s.value, i) || !1;
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;
85
85
  }
86
86
  return !1;
87
87
  }
88
- function h(s, i) {
89
- return f(s).reduce((p, u) => p && l(u, i), !0);
88
+ function h(a, i) {
89
+ return f(a).reduce((p, d) => p && l(d, i), !0);
90
90
  }
91
- function m(s, i) {
92
- const o = Object.keys(s), c = o.includes("allOf"), p = o.includes("anyOf"), u = c || p, g = (u ? s[u ? c ? "allOf" : "anyOf" : "allOf"] : [s]).map((y) => h(y, i));
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
93
  return c ? !g.includes(!1) : g.includes(!0);
94
94
  }
95
95
  return { parseValueSchema: m };
96
96
  }
97
- const se = {}, le = {};
97
+ const le = {}, ce = {};
98
98
  ae();
99
- function ce(n, e, a = /* @__PURE__ */ new Map(), r = (l, h, m) => h, d = {}, f = (l) => l) {
100
- return W[e.title] = e, J[e.title] = r, se[e.title] = d, le[e.title] = f, (l = {}) => {
101
- const h = re(l, e, a), m = Object.keys(n).reduce((s, i) => (s[i] = n[i].default, s), {});
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
102
  return Object.assign(m, h);
103
103
  };
104
104
  }
105
- function ie(n, e) {
105
+ function ue(n, e) {
106
106
  return { customClass: e.class, customStyle: e.style };
107
107
  }
108
- const ue = /* @__PURE__ */ new Map([
109
- ["appearance", ie]
108
+ const de = /* @__PURE__ */ new Map([
109
+ ["appearance", ue]
110
110
  ]);
111
- function de(n, e, a) {
111
+ function fe(n, e, s) {
112
112
  return e;
113
113
  }
114
- const fe = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-design.gitee.io/events-editor.schema.json", ve = "events-editor", pe = "A Farris Component", he = "object", we = {
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 = {
115
115
  id: {
116
116
  description: "The unique identifier for events-editor",
117
117
  type: "string"
@@ -173,22 +173,22 @@ const fe = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
173
173
  type: "boolean",
174
174
  default: !0
175
175
  }
176
- }, ge = [
176
+ }, be = [
177
177
  "id",
178
178
  "type"
179
- ], be = {
180
- $schema: fe,
181
- $id: me,
182
- title: ve,
183
- description: pe,
184
- type: he,
185
- properties: we,
186
- required: ge
187
- }, Ce = "events-editor", Ee = "A Farris Component", Se = "object", ye = {}, Me = {
188
- title: Ce,
189
- description: Ee,
190
- type: Se,
191
- categories: ye
179
+ ], Ce = {
180
+ $schema: me,
181
+ $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
192
192
  }, q = [
193
193
  {
194
194
  label: "pageChange",
@@ -210,7 +210,7 @@ const fe = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
210
210
  label: "onDeleteClicked",
211
211
  name: "Mock操作列点击删除"
212
212
  }
213
- ], Be = {
213
+ ], ke = {
214
214
  propertyID: "data-grid-component-viewmodel",
215
215
  propertyType: "events",
216
216
  /** 内置构件显示的命令列表 */
@@ -293,17 +293,17 @@ const fe = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
293
293
  newController: [],
294
294
  isAddControllerMethod: !1,
295
295
  getEventList: () => ({ events: q, boundEventsList: [] })
296
- }, _ = {
297
- initialData: { type: Object, default: Be }
298
- }, H = ce(
299
- _,
300
- be,
301
- ue,
296
+ }, $ = {
297
+ initialData: { type: Object, default: ke }
298
+ }, H = ie(
299
+ $,
300
+ Ce,
302
301
  de,
303
- Me
302
+ fe,
303
+ Be
304
304
  );
305
- function U(n, e) {
306
- const a = b([]), { boundEvents: r, unBoundEvent: d } = e;
305
+ function Y(n, e) {
306
+ const s = b([]), { boundEvents: r, unBoundEvent: u } = e;
307
307
  function f(o) {
308
308
  return {
309
309
  /** 当前事件名称及label */
@@ -324,14 +324,14 @@ function U(n, e) {
324
324
  showSwitchNumber: 2
325
325
  }],
326
326
  /** 方法列表 */
327
- command: B(o.command),
327
+ command: M(o.command),
328
328
  /** 当前的控制器 */
329
- controller: B(o.controller)
329
+ controller: M(o.controller)
330
330
  };
331
331
  }
332
332
  function l() {
333
333
  var o;
334
- a.value = (o = r.value) == null ? void 0 : o.map((c) => f(c));
334
+ s.value = (o = r.value) == null ? void 0 : o.map((c) => f(c));
335
335
  }
336
336
  function h(o) {
337
337
  const p = f({
@@ -339,40 +339,40 @@ function U(n, e) {
339
339
  command: null,
340
340
  controller: { id: "", name: "", label: "" }
341
341
  });
342
- p.showSwitch[0].showSwitchNumber = 1, p.showSwitch[0].showSection[2][3] = !0, a.value.unshift(p);
342
+ p.showSwitch[0].showSwitchNumber = 1, p.showSwitch[0].showSection[2][3] = !0, s.value.unshift(p);
343
343
  }
344
344
  function m() {
345
345
  var o;
346
- (o = a.value) == null || o.forEach((c) => {
346
+ (o = s.value) == null || o.forEach((c) => {
347
347
  c.showSwitch.forEach((p) => {
348
348
  p.showSection[2][3] = !1;
349
349
  });
350
350
  });
351
351
  }
352
- function s(o) {
353
- a.value[o].showSwitch.forEach((c) => {
352
+ function a(o) {
353
+ s.value[o].showSwitch.forEach((c) => {
354
354
  c.showSection[2][3] = !c.showSection[2][3];
355
355
  });
356
356
  }
357
357
  function i(o) {
358
- if (o >= 0 && o <= a.value.length - 1) {
359
- const c = a.value[o];
360
- d(c.event), a.value.splice(o, 1);
358
+ if (o >= 0 && o <= s.value.length - 1) {
359
+ const c = s.value[o];
360
+ u(c.event), s.value.splice(o, 1);
361
361
  }
362
362
  }
363
363
  return {
364
364
  addNewInteraction: h,
365
365
  collapseInteractions: m,
366
366
  deleteInteracton: i,
367
- toggleMethodInInteraction: s,
368
- interactions: a,
367
+ toggleMethodInInteraction: a,
368
+ interactions: s,
369
369
  loadInteractions: l
370
370
  };
371
371
  }
372
- function Y(n) {
373
- const e = b([]), a = b([]), r = b([]);
374
- function d() {
375
- const i = a.value.reduce(
372
+ function J(n) {
373
+ const e = b([]), s = b([]), r = b([]);
374
+ function u() {
375
+ const i = s.value.reduce(
376
376
  (c, p) => (c.set(p.boundEvents.label, !0), c),
377
377
  /* @__PURE__ */ new Map()
378
378
  );
@@ -380,47 +380,47 @@ function Y(n) {
380
380
  }
381
381
  function f() {
382
382
  var o;
383
- const i = ((o = a.value) == null ? void 0 : o.length) > 0;
384
- r.value = i ? d() : e.value;
383
+ const i = ((o = s.value) == null ? void 0 : o.length) > 0;
384
+ r.value = i ? u() : e.value;
385
385
  }
386
386
  function l() {
387
- e.value = n.value.events, a.value = n.value.boundEventsList, f();
387
+ e.value = n.value.events, s.value = n.value.boundEventsList, f();
388
388
  }
389
389
  function h(i) {
390
390
  r.value = r.value.filter((o) => o.label !== i.label);
391
391
  }
392
392
  function m(i) {
393
- a.value = a.value.filter((o) => o.boundEvents.label !== i.label), f();
393
+ s.value = s.value.filter((o) => o.boundEvents.label !== i.label), f();
394
394
  }
395
- function s() {
395
+ function a() {
396
396
  var c;
397
397
  const i = (c = n.value) == null ? void 0 : c.getEventList(), { events: o } = i;
398
- i && (n.value.events = B(o), n.value.boundEventsList = i.boundEventsList), n.value.boundEventsList && (n.value.boundEventsList = n.value.boundEventsList.filter(function(p) {
399
- return o.find((u) => u.label == p.boundEvents.label);
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);
400
400
  }));
401
401
  }
402
402
  return {
403
403
  allEvents: e,
404
- boundEvents: a,
404
+ boundEvents: s,
405
405
  candidateEvents: r,
406
406
  excludeFromCandidates: h,
407
407
  loadEvents: l,
408
- resetBoundEvents: s,
408
+ resetBoundEvents: a,
409
409
  unBoundEvent: m
410
410
  };
411
411
  }
412
- const Le = {}, ke = {
412
+ const Le = {}, Ne = {
413
413
  events: { type: Array, default: [] }
414
- }, Ne = /* @__PURE__ */ D({
414
+ }, Pe = /* @__PURE__ */ F({
415
415
  name: "FEventList",
416
- props: ke,
416
+ props: Ne,
417
417
  emits: ["click"],
418
418
  setup(n, e) {
419
- const a = b(n.events);
419
+ const s = b(n.events);
420
420
  function r(f) {
421
421
  e.emit("click", f);
422
422
  }
423
- function d(f) {
423
+ function u(f) {
424
424
  return t("div", {
425
425
  class: "f-page-events-editor-first-bound-event"
426
426
  }, [t("div", {
@@ -430,45 +430,45 @@ const Le = {}, ke = {
430
430
  }
431
431
  return () => t("div", {
432
432
  class: "f-page-events-editor-events"
433
- }, [a.value.map((f) => d(f))]);
433
+ }, [s.value.map((f) => u(f))]);
434
434
  }
435
- }), Q = /* @__PURE__ */ D({
435
+ }), Q = /* @__PURE__ */ F({
436
436
  name: "FInteractionButton",
437
437
  props: Le,
438
438
  emits: ["click"],
439
439
  setup(n, e) {
440
- const a = R("useEventsComposition"), r = R("useInteractionCompostion"), {
441
- candidateEvents: d
442
- } = a, {
440
+ const s = j("useEventsComposition"), r = j("useInteractionCompostion"), {
441
+ candidateEvents: u
442
+ } = s, {
443
443
  collapseInteractions: f
444
444
  } = r, l = b(!1);
445
445
  function h(p) {
446
- d.value = d.value.filter((u) => u.label !== p.label);
446
+ u.value = u.value.filter((d) => d.label !== p.label);
447
447
  }
448
448
  function m() {
449
449
  l.value = !1;
450
450
  }
451
- function s() {
451
+ function a() {
452
452
  l.value = !0;
453
453
  }
454
454
  function i(p) {
455
455
  m(), h(p), e.emit("click", p);
456
456
  }
457
457
  function o() {
458
- l.value ? m() : s();
458
+ l.value ? m() : a();
459
459
  }
460
460
  function c() {
461
461
  f(), o();
462
462
  }
463
- return () => t(K, null, [t("div", {
463
+ return () => t(ee, null, [t("div", {
464
464
  class: "f-page-events-editor-top-button"
465
465
  }, [t("button", {
466
466
  class: "f-page-events-editor-button",
467
467
  onClick: c
468
468
  }, [t("span", {
469
469
  class: "f-page-events-editor-text"
470
- }, [T("新建交互事件")])])]), l.value && t(Ne, {
471
- events: d.value,
470
+ }, [D("新建交互事件")])])]), l.value && t(Pe, {
471
+ events: u.value,
472
472
  onClick: i
473
473
  }, null)]);
474
474
  }
@@ -477,7 +477,7 @@ const Le = {}, ke = {
477
477
  displayOrder: { type: Number, default: -1 },
478
478
  interaction: { type: Object, default: {} },
479
479
  controllers: { type: Array, default: [] }
480
- }, Pe = {
480
+ }, Fe = {
481
481
  /** 入参 */
482
482
  initialData: { Type: Object, default: {} },
483
483
  /** 原层级结构数据 */
@@ -492,18 +492,18 @@ const Le = {}, ke = {
492
492
  exit: { Type: Number, default: -1 },
493
493
  /** 接收是否显示「可选择方法」功能 */
494
494
  haveBoundcommand: { Type: Boolean, default: !1 }
495
- }, Fe = {
495
+ }, De = {
496
496
  controllers: { type: Array, default: [] }
497
- }, De = /* @__PURE__ */ D({
497
+ }, Te = /* @__PURE__ */ F({
498
498
  name: "FCommandList",
499
- props: Fe,
499
+ props: De,
500
500
  emits: ["selectMethod"],
501
501
  setup(n, e) {
502
- const a = b(n.controllers);
502
+ const s = b(n.controllers);
503
503
  function r(m) {
504
504
  return m.controllerList.length !== 0;
505
505
  }
506
- function d(m) {
506
+ function u(m) {
507
507
  return r(m) && t("div", {
508
508
  class: "f-page-internals-controller"
509
509
  }, [t("div", {
@@ -511,49 +511,49 @@ const Le = {}, ke = {
511
511
  title: m.controllerName.name
512
512
  }, [m.controllerName.name])]);
513
513
  }
514
- function f(m, s) {
514
+ function f(m, a) {
515
515
  e.emit("selectMethod", {
516
516
  method: m,
517
- controller: s
517
+ controller: a
518
518
  });
519
519
  }
520
520
  function l(m) {
521
- return m.controllerList.map((s) => t("div", {
521
+ return m.controllerList.map((a) => t("div", {
522
522
  class: "f-page-internals-command",
523
- onClick: () => f(s, m)
523
+ onClick: () => f(a, m)
524
524
  }, [t("div", {
525
525
  class: "f-page-internals-command-name",
526
- title: s.label
527
- }, [s.name])]));
526
+ title: a.label
527
+ }, [a.name])]));
528
528
  }
529
529
  function h(m) {
530
- return t("div", null, [d(m), l(m)]);
530
+ return t("div", null, [u(m), l(m)]);
531
531
  }
532
532
  return () => t("div", {
533
533
  class: "f-page-internals"
534
- }, [a.value.map((m) => h(m))]);
534
+ }, [s.value.map((m) => h(m))]);
535
535
  }
536
- }), Te = /* @__PURE__ */ D({
536
+ }), Oe = /* @__PURE__ */ F({
537
537
  name: "FCommandSource",
538
- props: Pe,
538
+ props: Fe,
539
539
  emits: ["addInternalCommandListChanged", "newImportChanged", "currentCommandChanged", "originalDataChanged", "click", "existChanged", "newFucChanged", "close", "selectMethod"],
540
540
  setup(n, e) {
541
- const a = R("useMethodsComposition"), {
541
+ const s = j("useMethodsComposition"), {
542
542
  controllers: r
543
- } = a, d = b(!1), f = b(n.canAddNewMethod), l = F(() => !f.value), h = F(() => d.value), m = F(() => ({
543
+ } = s, u = b(!1), f = b(n.canAddNewMethod), l = P(() => !f.value), h = P(() => u.value), m = P(() => ({
544
544
  "font-size": "15px",
545
545
  margin: "5px",
546
546
  color: "#226eff",
547
547
  flex: 1
548
- })), s = Symbol("controller schema repository inject token");
548
+ })), a = Symbol("controller schema repository inject token");
549
549
  function i() {
550
- return t(ee, {
551
- injectSymbolToken: s,
550
+ return t(ne, {
551
+ injectSymbolToken: a,
552
552
  "view-type": "NavList"
553
553
  }, null);
554
554
  }
555
555
  function o() {
556
- ne.show({
556
+ te.show({
557
557
  title: "选择控制器",
558
558
  width: 950,
559
559
  render: i
@@ -563,15 +563,15 @@ const Le = {}, ke = {
563
563
  }
564
564
  function p() {
565
565
  }
566
- function u() {
566
+ function d() {
567
567
  }
568
568
  function E() {
569
569
  e.emit("close", null);
570
570
  }
571
- function L() {
571
+ function B() {
572
572
  return t("div", {
573
573
  class: "f-command-breakline"
574
- }, [T("------------------------------------------------------------")]);
574
+ }, [D("------------------------------------------------------------")]);
575
575
  }
576
576
  function g() {
577
577
  return t("div", {
@@ -584,7 +584,7 @@ const Le = {}, ke = {
584
584
  }, null), t("div", {
585
585
  class: "f-function-class",
586
586
  onClick: () => o()
587
- }, [T("引入控制器")])]), l.value && t("div", {
587
+ }, [D("引入控制器")])]), l.value && t("div", {
588
588
  class: "f-page-internals-new-command-func2"
589
589
  }, [t("div", {
590
590
  class: "f-icon f-icon-new-edit",
@@ -592,7 +592,7 @@ const Le = {}, ke = {
592
592
  }, null), t("div", {
593
593
  class: "f-function-class",
594
594
  onClick: () => void 0
595
- }, [T("添加新方法")])]), h.value && void 0, t("div", {
595
+ }, [D("添加新方法")])]), h.value && void 0, t("div", {
596
596
  class: "f-page-internals-new-command-func3"
597
597
  }, [t("div", {
598
598
  class: "f-icon f-icon-licensed",
@@ -600,7 +600,7 @@ const Le = {}, ke = {
600
600
  }, null), t("div", {
601
601
  class: "f-function-class",
602
602
  onClick: () => void 0
603
- }, [T("已有方法")])])]);
603
+ }, [D("已有方法")])])]);
604
604
  }
605
605
  function S(v) {
606
606
  e.emit("selectMethod", v);
@@ -608,28 +608,28 @@ const Le = {}, ke = {
608
608
  function y() {
609
609
  return t("div", {
610
610
  class: "f-page-command-source-choice"
611
- }, [t(De, {
611
+ }, [t(Te, {
612
612
  controllers: r.value,
613
613
  onSelectMethod: S
614
614
  }, null)]);
615
615
  }
616
616
  return () => t("div", {
617
617
  class: "f-page-events-editor-command-source"
618
- }, [y(), L(), g(), L(), t("div", null, [t("div", {
618
+ }, [y(), B(), g(), B(), t("div", null, [t("div", {
619
619
  class: "f-page-internals-close",
620
620
  onClick: E
621
- }, [T("取消")])])]);
621
+ }, [D("取消")])])]);
622
622
  }
623
- }), Oe = {
623
+ }), je = {
624
624
  command: { type: Object, default: {} }
625
- }, je = /* @__PURE__ */ D({
625
+ }, Re = /* @__PURE__ */ F({
626
626
  name: "FParameterEditor",
627
- props: Oe,
627
+ props: je,
628
628
  emits: ["confirm", "change"],
629
629
  setup(n, e) {
630
- const a = b(n.command), r = b(0), d = b(!1), f = b(!1);
630
+ const s = b(n.command), r = b(0), u = b(!1), f = b(!1);
631
631
  b(""), b([]);
632
- const l = F(() => a.value !== null), h = F(() => d.value), m = F(() => f.value), s = F(() => !d.value && !f.value), i = b(!1);
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
633
  function o() {
634
634
  }
635
635
  function c() {
@@ -642,7 +642,7 @@ const Le = {}, ke = {
642
642
  }
643
643
  function p() {
644
644
  }
645
- function u() {
645
+ function d() {
646
646
  return t("div", null, [t("div", {
647
647
  title: "'方法已被删除,请绑定其他方法'",
648
648
  class: "f-icon f-icon-flowline-warning",
@@ -650,93 +650,93 @@ const Le = {}, ke = {
650
650
  onClick: () => void 0
651
651
  }, null)]);
652
652
  }
653
- function E(M) {
653
+ function E(L) {
654
654
  i.value = !i.value;
655
655
  }
656
- function L() {
656
+ function B() {
657
657
  return t("div", null, [t("div", {
658
658
  class: "f-icon f-icon-edit-button",
659
659
  style: "font-size: 13px;margin-right:10px;",
660
660
  onClick: () => E(r.value)
661
661
  }, null)]);
662
662
  }
663
- function g(M, A) {
664
- A.value = M.target.value;
663
+ function g(L, N) {
664
+ N.value = L.target.value;
665
665
  }
666
666
  function S() {
667
- e.emit("change", a.value);
667
+ e.emit("change", s.value);
668
668
  }
669
- function y(M) {
669
+ function y(L) {
670
670
  return t("div", null, [t("input", {
671
671
  class: "form-control f-utils-fill text-left",
672
- value: M.value,
673
- onChange: (A) => g(A, M),
674
- onBlur: (A) => S()
672
+ value: L.value,
673
+ onChange: (N) => g(N, L),
674
+ onBlur: (N) => S()
675
675
  }, null)]);
676
676
  }
677
677
  function v() {
678
- var M;
679
- return (M = a.value.property) == null ? void 0 : M.map((A) => t("div", null, [t("div", {
678
+ var L;
679
+ return (L = s.value.property) == null ? void 0 : L.map((N) => t("div", null, [t("div", {
680
680
  class: "f-page-parameter-editor-row1"
681
681
  }, [t("div", {
682
682
  class: "f-page-parameter-editor-parameter-name"
683
- }, [A.shownName, A.description && t("div", {
683
+ }, [N.shownName, N.description && t("div", {
684
684
  class: "farris-label-tips"
685
685
  }, [t("i", {
686
686
  class: "f-icon f-icon-message_help",
687
687
  style: "color:#878D99;"
688
688
  }, null)])])]), t("div", {
689
689
  class: "f-page-parameter-editor-row2"
690
- }, [y(A)])]));
690
+ }, [y(N)])]));
691
691
  }
692
- function C(M) {
692
+ function w(L) {
693
693
  i.value = !1, e.emit("confirm");
694
694
  }
695
- function w() {
695
+ function C() {
696
696
  return t("div", null, [t("div", {
697
697
  class: "f-page-parameter-editor-btn"
698
698
  }, [t("div", {
699
699
  class: "btn-finish",
700
- onClick: () => C(r.value)
701
- }, [T("完成")])])]);
700
+ onClick: () => w(r.value)
701
+ }, [D("完成")])])]);
702
702
  }
703
703
  function k() {
704
704
  return t("div", {
705
705
  class: "f-page-parameter-editor-group"
706
706
  }, [v()]);
707
707
  }
708
- function N() {
708
+ function A() {
709
709
  return t("div", null, [t("div", {
710
710
  class: "f-page-parameter-editor-first-row"
711
711
  }, [t("span", {
712
712
  class: "f-page-parameter-editor-command-name",
713
- title: a.value.label
714
- }, [a.value.name]), t("div", {
713
+ title: s.value.label
714
+ }, [s.value.name]), t("div", {
715
715
  class: "f-page-parameter-editor-first-row-icon"
716
- }, [h.value && c(), m.value && u(), s.value && L()])]), i.value && k(), i.value && w()]);
716
+ }, [h.value && c(), m.value && d(), a.value && B()])]), i.value && k(), i.value && C()]);
717
717
  }
718
718
  return () => t("div", {
719
719
  class: "f-page-parameter-editor"
720
- }, [l.value && N()]);
720
+ }, [l.value && A()]);
721
721
  }
722
- }), X = /* @__PURE__ */ D({
722
+ }), X = /* @__PURE__ */ F({
723
723
  name: "FInteractionItem",
724
724
  props: Ae,
725
725
  emits: ["addAction", "delete", "toggle"],
726
726
  setup(n, e) {
727
- const a = R("useMethodsComposition"), {
727
+ const s = j("useMethodsComposition"), {
728
728
  toggleSelectingMethod: r,
729
- emitFinalState: d
730
- } = a, f = b(n.controllers), l = b(n.interaction), h = b(n.displayOrder), m = F(() => {
729
+ emitFinalState: u
730
+ } = s, f = b(n.controllers), l = b(n.interaction), h = b(n.displayOrder), m = P(() => {
731
731
  const v = l.value.showSwitch[0];
732
732
  return v.showSection[v.showSwitchNumber][2];
733
- }), s = F(() => {
734
- const v = !!l.value.command, C = l.value.showSwitch[0], w = C.showSection[C.showSwitchNumber][3];
735
- return v && w;
736
- }), i = F(() => ({
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(() => ({
737
737
  "f-icon": !0,
738
- "f-icon-arrow-chevron-down": s.value,
739
- "f-icon-arrow-chevron-left": !s.value
738
+ "f-icon-arrow-chevron-down": a.value,
739
+ "f-icon-arrow-chevron-left": !a.value
740
740
  }));
741
741
  function o() {
742
742
  e.emit("delete", h.value);
@@ -747,46 +747,46 @@ const Le = {}, ke = {
747
747
  }
748
748
  function p() {
749
749
  if (l.value.command !== null) {
750
- const C = l.value.showSwitch[0];
751
- r(C), e.emit("addAction", h.value);
750
+ const w = l.value.showSwitch[0];
751
+ r(w), e.emit("addAction", h.value);
752
752
  }
753
753
  }
754
- function u(v) {
754
+ function d(v) {
755
755
  v === null && l.value.command === null && e.emit("delete", h.value);
756
- const C = l.value.showSwitch[0];
757
- r(C);
756
+ const w = l.value.showSwitch[0];
757
+ r(w);
758
758
  }
759
759
  function E(v) {
760
760
  const {
761
- method: C,
762
- controller: w
761
+ method: w,
762
+ controller: C
763
763
  } = v, {
764
764
  id: k,
765
- label: N,
766
- name: M,
767
- handlerName: A
768
- } = C, {
769
- controllerName: P
770
- } = w, I = !1, x = P.id;
765
+ label: A,
766
+ name: L,
767
+ handlerName: N
768
+ } = w, {
769
+ controllerName: R
770
+ } = C, x = !1, K = R.id;
771
771
  l.value.command = {
772
772
  id: k,
773
- label: N,
774
- name: M,
775
- handlerName: A,
776
- hasPath: I,
777
- cmpId: x
773
+ label: A,
774
+ name: L,
775
+ handlerName: N,
776
+ hasPath: x,
777
+ cmpId: K
778
778
  }, l.value.controller = {
779
- id: P.id,
780
- label: P.label,
781
- name: P.name
779
+ id: R.id,
780
+ label: R.label,
781
+ name: R.name
782
782
  };
783
- const j = l.value.showSwitch[0];
784
- j.showSwitchNumber = 2, j.showSection[j.showSwitchNumber][2] = !1, j.showSection[j.showSwitchNumber][3] = !0, d();
783
+ const O = l.value.showSwitch[0];
784
+ O.showSwitchNumber = 2, O.showSection[O.showSwitchNumber][2] = !1, O.showSection[O.showSwitchNumber][3] = !0, u();
785
785
  }
786
- function L() {
787
- return t(Te, {
786
+ function B() {
787
+ return t(Oe, {
788
788
  controllers: f.value,
789
- onClose: u,
789
+ onClose: d,
790
790
  onSelectMethod: E
791
791
  }, null);
792
792
  }
@@ -795,10 +795,10 @@ const Le = {}, ke = {
795
795
  v.showSection[v.showSwitchNumber][3] = !1;
796
796
  }
797
797
  function S(v) {
798
- l.value.command = B(v), d();
798
+ l.value.command = M(v), u();
799
799
  }
800
800
  function y() {
801
- return t(je, {
801
+ return t(Re, {
802
802
  command: l.value.command,
803
803
  onConfirm: () => g(),
804
804
  onChange: (v) => S(v)
@@ -825,49 +825,49 @@ const Le = {}, ke = {
825
825
  class: "f-icon f-icon-home-add",
826
826
  style: "float:right; font-size: 10px; margin:8px;",
827
827
  onClick: p
828
- }, null)]), m.value && L(), s.value && y()]);
828
+ }, null)]), m.value && B(), a.value && y()]);
829
829
  }
830
830
  });
831
- function Z(n, e, a) {
832
- const { interactions: r } = e, d = b(n.value.internalCommandList);
833
- function f(u) {
834
- r.value[u].showSwitch = [], r.value[u].showSwitch.push(B({
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({
835
835
  // 存储所有的展示设定
836
836
  showSection: [[!1, !1, !1, !1, !1], [!1, !1, !0, !1, !1], [!1, !0, !1, !0, !1]],
837
837
  // 展示哪个部分
838
838
  showSwitchNumber: 2
839
- })), r.value = B(r.value);
839
+ })), r.value = M(r.value);
840
840
  }
841
- function l(u, E, L) {
841
+ function l(d, E, B) {
842
842
  }
843
- function h(u) {
844
- var L;
843
+ function h(d) {
844
+ var B;
845
845
  const E = [];
846
- return (L = n.value.newController) == null || L.forEach((g) => {
847
- u.forEach((S) => {
848
- g.Code === S.controller.label && E.push(B(g));
846
+ return (B = n.value.newController) == null || B.forEach((g) => {
847
+ d.forEach((S) => {
848
+ g.Code === S.controller.label && E.push(M(g));
849
849
  });
850
850
  }), E;
851
851
  }
852
852
  function m() {
853
853
  var S;
854
854
  n.value.isAddControllerMethod = !!n.value.newFuncEvents;
855
- const u = [], E = B(n.value.internalCommandList);
855
+ const d = [], E = M(n.value.internalCommandList);
856
856
  r.value.map((y) => {
857
- const v = B(y.controller), C = B(y.command), w = B(y.event), k = { controller: v, command: C, boundEvents: w };
858
- u.push(B(k));
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));
859
859
  });
860
- const L = (S = n.value.newController) != null && S.length && u.length ? B(h(u)) : [], g = {
860
+ const B = (S = n.value.newController) != null && S.length && d.length ? M(h(d)) : [], g = {
861
861
  /** 拼接名称时的前缀 */
862
862
  viewModelId: n.value.viewModelId,
863
863
  /** 视图模型绑定的事件下的方法列表 */
864
- savedCommand: B(n.value.viewModel),
864
+ savedCommand: M(n.value.viewModel),
865
865
  /** 当前界面显示的绑定事件 */
866
- boundEventsList: B(u),
866
+ boundEventsList: M(d),
867
867
  /** 可选择的绑定事件列表 */
868
- events: B(n.value.events),
868
+ events: M(n.value.events),
869
869
  /** 内置构件列表; */
870
- internalCommandList: B(E),
870
+ internalCommandList: M(E),
871
871
  /** 所有可选的组件 */
872
872
  componentLists: [],
873
873
  /** 接收formBasicService.formMetaBasicInfo.relativePath */
@@ -875,7 +875,7 @@ function Z(n, e, a) {
875
875
  /** 接收formBasicService.envType */
876
876
  envType: n.value.envType,
877
877
  /** 初始为空,用于存储用户点击「导入新方法」的控制器值 */
878
- newController: B(L),
878
+ newController: M(B),
879
879
  /** 切换到代码视图标识 */
880
880
  isAddControllerMethod: n.value.isAddControllerMethod,
881
881
  /** 用户选择「已有方法」 */
@@ -883,58 +883,58 @@ function Z(n, e, a) {
883
883
  /** 上一个绑定的方法 */
884
884
  preCommand: n.value.preCommand,
885
885
  /** 新增方法的对应事件 */
886
- newFuncEvents: B(n.value.newFuncEvents)
886
+ newFuncEvents: M(n.value.newFuncEvents)
887
887
  };
888
- a.emit("savedCommandListChanged", g);
888
+ s.emit("savedCommandListChanged", g);
889
889
  }
890
- function s(u) {
891
- u.showSection[u.showSwitchNumber][2] = !0;
890
+ function a(d) {
891
+ d.showSection[d.showSwitchNumber][2] = !0;
892
892
  }
893
- function i(u) {
894
- u.showSection[u.showSwitchNumber][2] = !1;
893
+ function i(d) {
894
+ d.showSection[d.showSwitchNumber][2] = !1;
895
895
  }
896
- function o(u) {
897
- u.showSection[u.showSwitchNumber][3] = !0;
896
+ function o(d) {
897
+ d.showSection[d.showSwitchNumber][3] = !0;
898
898
  }
899
- function c(u) {
900
- u.showSection[u.showSwitchNumber][3] = !1;
899
+ function c(d) {
900
+ d.showSection[d.showSwitchNumber][3] = !1;
901
901
  }
902
- function p(u) {
903
- u.showSection[u.showSwitchNumber][2] ? (i(u), o(u)) : (s(u), c(u));
902
+ function p(d) {
903
+ d.showSection[d.showSwitchNumber][2] ? (i(d), o(d)) : (a(d), c(d));
904
904
  }
905
905
  return {
906
- controllers: d,
906
+ controllers: u,
907
907
  onClosed: f,
908
908
  emitFinalState: m,
909
909
  onCurrentCommandChanged: l,
910
910
  toggleSelectingMethod: p
911
911
  };
912
912
  }
913
- const V = /* @__PURE__ */ D({
913
+ const I = /* @__PURE__ */ F({
914
914
  name: "FEventsEditor",
915
- props: _,
915
+ props: $,
916
916
  emits: ["savedCommandListChanged"],
917
917
  setup(n, e) {
918
- const a = b(n.initialData), r = Y(a), {
919
- loadEvents: d,
918
+ const s = b(n.initialData), r = J(s), {
919
+ loadEvents: u,
920
920
  resetBoundEvents: f
921
- } = r, l = U(a, r), {
921
+ } = r, l = Y(s, r), {
922
922
  addNewInteraction: h,
923
923
  deleteInteracton: m,
924
- interactions: s,
924
+ interactions: a,
925
925
  loadInteractions: i
926
- } = l, o = Z(a, l, e);
927
- O("useEventsComposition", r), O("useInteractionCompostion", l), O("useMethodsComposition", o);
926
+ } = l, o = Z(s, l, e);
927
+ T("useEventsComposition", r), T("useInteractionCompostion", l), T("useMethodsComposition", o);
928
928
  function c() {
929
- a.value.isAddControllerMethod = !1;
929
+ s.value.isAddControllerMethod = !1;
930
930
  }
931
- G(() => {
932
- c(), f(), d(), i();
931
+ _(() => {
932
+ c(), f(), u(), i();
933
933
  });
934
934
  function p(g) {
935
935
  m(g);
936
936
  }
937
- function u(g, S) {
937
+ function d(g, S) {
938
938
  const y = g.showSwitch[0], v = y.showSection[y.showSwitchNumber][3];
939
939
  return t(X, {
940
940
  interaction: g,
@@ -945,12 +945,12 @@ const V = /* @__PURE__ */ D({
945
945
  }
946
946
  function E() {
947
947
  var g;
948
- return (g = s.value) == null ? void 0 : g.map((S, y) => t("div", {
948
+ return (g = a.value) == null ? void 0 : g.map((S, y) => t("div", {
949
949
  class: "events-display-order",
950
950
  key: S.event.label
951
- }, [u(S, y)]));
951
+ }, [d(S, y)]));
952
952
  }
953
- function L(g) {
953
+ function B(g) {
954
954
  h(g);
955
955
  }
956
956
  return () => t("div", {
@@ -958,22 +958,22 @@ const V = /* @__PURE__ */ D({
958
958
  }, [t("div", {
959
959
  class: "f-page-events-editor-content"
960
960
  }, [t(Q, {
961
- onClick: L
961
+ onClick: B
962
962
  }, null), E()])]);
963
963
  }
964
964
  });
965
- function Re(n, e, a) {
966
- var C;
965
+ function Ie(n, e, s) {
966
+ var v;
967
967
  function r() {
968
968
  }
969
- const d = "", f = "", l = b();
969
+ const u = "", f = "", l = b();
970
970
  function h() {
971
971
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
972
972
  }
973
973
  function m() {
974
974
  return !1;
975
975
  }
976
- function s() {
976
+ function a() {
977
977
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
978
978
  }
979
979
  function i() {
@@ -984,106 +984,98 @@ function Re(n, e, a) {
984
984
  return null;
985
985
  if (w.value.schema && w.value.schema.type === "component")
986
986
  return w.value;
987
- const k = b(w == null ? void 0 : w.value.parent), N = o(k);
988
- return N || null;
987
+ const C = b(w == null ? void 0 : w.value.parent), k = o(C);
988
+ return k || null;
989
989
  }
990
990
  function c(w = e) {
991
- const { componentInstance: k, designerItemElementRef: N } = w;
992
- return !k || !k.value ? null : k.value.canMove ? N : c(w.parent);
991
+ const { componentInstance: C, designerItemElementRef: k } = w;
992
+ return !C || !C.value ? null : C.value.canMove ? k : c(w.parent);
993
993
  }
994
994
  function p(w) {
995
- return !!a;
995
+ return !!s;
996
996
  }
997
- function u() {
997
+ function d() {
998
998
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
999
999
  }
1000
1000
  function E() {
1001
1001
  }
1002
- function L(w, k) {
1003
- }
1004
- function g(w, k) {
1005
- const { componentType: N } = w;
1006
- let M = $(N, w, k);
1007
- const A = N.toLowerCase().replace("-", "_");
1008
- return M && !M.id && M.type === N && (M.id = `${A}_${Math.random().toString().slice(2, 6)}`), M;
1002
+ function B(w, C) {
1009
1003
  }
1010
- function S(w, k) {
1011
- const N = String(w.getAttribute("data-controltype")), M = w.getAttribute("data-feature"), A = M ? JSON.parse(M) : {};
1012
- A.parentComponentInstance = l.value;
1013
- let P = $(N, A);
1014
- const I = N.toLowerCase().replace("-", "_");
1015
- return P && !P.id && P.type === N && (P.id = `${I}_${Math.random().toString().slice(2, 6)}`), P;
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;
1016
1009
  }
1017
- function y(w) {
1010
+ function S(w) {
1018
1011
  }
1019
- function v(...w) {
1012
+ function y(...w) {
1020
1013
  }
1021
1014
  return l.value = {
1022
1015
  canMove: h(),
1023
1016
  canSelectParent: m(),
1024
- canDelete: s(),
1017
+ canDelete: a(),
1025
1018
  canNested: !i(),
1026
1019
  contents: e == null ? void 0 : e.schema.contents,
1027
1020
  elementRef: n,
1028
- parent: (C = e == null ? void 0 : e.parent) == null ? void 0 : C.componentInstance,
1021
+ parent: (v = e == null ? void 0 : e.parent) == null ? void 0 : v.componentInstance,
1029
1022
  schema: e == null ? void 0 : e.schema,
1030
- styles: d,
1023
+ styles: u,
1031
1024
  designerClass: f,
1032
1025
  canAccepts: p,
1033
1026
  getBelongedComponentInstance: o,
1034
1027
  getDraggableDesignItemElement: c,
1035
- getDraggingDisplayText: u,
1036
- getPropConfig: v,
1028
+ getDraggingDisplayText: d,
1029
+ getPropConfig: y,
1037
1030
  getDragScopeElement: E,
1038
- onAcceptMovedChildElement: L,
1039
- onAcceptNewChildElement: S,
1040
- onChildElementMovedOut: y,
1031
+ onAcceptMovedChildElement: B,
1032
+ onChildElementMovedOut: S,
1041
1033
  addNewChildComponentSchema: g,
1042
1034
  updateDragAndDropRules: r,
1043
1035
  triggerBelongedComponentToMoveWhenMoved: b(!1),
1044
1036
  triggerBelongedComponentToDeleteWhenDeleted: b(!1)
1045
1037
  }, l;
1046
1038
  }
1047
- const Ie = /* @__PURE__ */ D({
1039
+ const Ve = /* @__PURE__ */ F({
1048
1040
  name: "FEventsEditorDesign",
1049
- props: _,
1041
+ props: $,
1050
1042
  emits: ["savedCommandListChanged"],
1051
1043
  setup(n, e) {
1052
- const a = b(n.initialData), r = Y(a), {
1053
- loadEvents: d,
1044
+ const s = b(n.initialData), r = J(s), {
1045
+ loadEvents: u,
1054
1046
  resetBoundEvents: f
1055
- } = r, l = U(a, r), {
1047
+ } = r, l = Y(s, r), {
1056
1048
  addNewInteraction: h,
1057
1049
  deleteInteracton: m,
1058
- interactions: s,
1050
+ interactions: a,
1059
1051
  loadInteractions: i
1060
- } = l, o = Z(a, l, e);
1061
- O("useEventsComposition", r), O("useInteractionCompostion", l), O("useMethodsComposition", o);
1062
- const c = b(), p = R("design-item-context"), u = Re(c, p);
1063
- G(() => {
1064
- c.value.componentInstance = u, E(), f(), d(), i();
1065
- }), e.expose(u.value);
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);
1055
+ _(() => {
1056
+ c.value.componentInstance = d, E(), f(), u(), i();
1057
+ }), e.expose(d.value);
1066
1058
  function E() {
1067
- a.value.isAddControllerMethod = !1;
1059
+ s.value.isAddControllerMethod = !1;
1068
1060
  }
1069
- function L(v) {
1061
+ function B(v) {
1070
1062
  m(v);
1071
1063
  }
1072
- function g(v, C) {
1073
- const w = v.showSwitch[0], k = w.showSection[w.showSwitchNumber][3];
1064
+ function g(v, w) {
1065
+ const C = v.showSwitch[0], k = C.showSection[C.showSwitchNumber][3];
1074
1066
  return t(X, {
1075
1067
  interaction: v,
1076
- displayOrder: C,
1068
+ displayOrder: w,
1077
1069
  collapsed: k,
1078
- onDelete: L
1070
+ onDelete: B
1079
1071
  }, null);
1080
1072
  }
1081
1073
  function S() {
1082
1074
  var v;
1083
- return (v = s.value) == null ? void 0 : v.map((C, w) => t("div", {
1075
+ return (v = a.value) == null ? void 0 : v.map((w, C) => t("div", {
1084
1076
  class: "events-display-order",
1085
- key: C.event.label
1086
- }, [g(C, w)]));
1077
+ key: w.event.label
1078
+ }, [g(w, C)]));
1087
1079
  }
1088
1080
  function y(v) {
1089
1081
  h(v);
@@ -1097,20 +1089,20 @@ const Ie = /* @__PURE__ */ D({
1097
1089
  onClick: y
1098
1090
  }, null), S()])]);
1099
1091
  }
1100
- }), He = {
1092
+ }), Ge = {
1101
1093
  install(n) {
1102
- n.component(V.name, V);
1094
+ n.component(I.name, I);
1103
1095
  },
1104
- register(n, e, a, r) {
1105
- n["events-editor"] = V, e["events-editor"] = H;
1096
+ register(n, e, s, r) {
1097
+ n["events-editor"] = I, e["events-editor"] = H;
1106
1098
  },
1107
- registerDesigner(n, e, a) {
1108
- n["events-editor"] = Ie, e["events-editor"] = H;
1099
+ registerDesigner(n, e, s) {
1100
+ n["events-editor"] = Ve, e["events-editor"] = H;
1109
1101
  }
1110
1102
  };
1111
1103
  export {
1112
- V as FEventsEditor,
1113
- He as default,
1114
- _ as eventsEditorProps,
1104
+ I as FEventsEditor,
1105
+ Ge as default,
1106
+ $ as eventsEditorProps,
1115
1107
  H as propsResolver
1116
1108
  };