@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,100 +1,104 @@
1
- var q = Object.defineProperty;
2
- var R = (o, e, t) => e in o ? q(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var v = (o, e, t) => R(o, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as F, ref as M, onUnmounted as N, createVNode as T, createTextVNode as O, watch as z, inject as Y, onMounted as _ } from "vue";
5
- import { isPlainObject as B, cloneDeep as U } from "lodash-es";
6
- const j = {}, $ = {};
7
- function E(o) {
8
- const { properties: e, title: t, ignore: n } = o, a = n && Array.isArray(n), i = Object.keys(e).reduce((r, f) => ((!a || !n.find((m) => m == f)) && (r[f] = e[f].type === "object" && e[f].properties ? E(e[f]) : U(e[f].default)), r), {});
9
- return t && (!a || !n.find((r) => r == "id")) && (i.id = `${t}-${Date.now()}`), i;
1
+ var _ = Object.defineProperty;
2
+ var z = (o, e, t) => e in o ? _(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var V = (o, e, t) => z(o, typeof e != "symbol" ? e + "" : e, t);
4
+ import { defineComponent as j, ref as T, onUnmounted as $, createVNode as k, createTextVNode as S, watch as Y, inject as F, onMounted as Q } from "vue";
5
+ import { isPlainObject as N, cloneDeep as R } from "lodash-es";
6
+ const q = {}, G = {};
7
+ function U(o) {
8
+ const { properties: e, title: t, ignore: n } = o, r = n && Array.isArray(n), i = Object.keys(e).reduce((a, f) => ((!r || !n.find((h) => h === f)) && (a[f] = e[f].type === "object" && e[f].properties ? U(e[f]) : R(e[f].default)), a), {});
9
+ if (t && (!r || !n.find((a) => a === "id"))) {
10
+ const a = t.toLowerCase().replace(/-/g, "_");
11
+ i.id = `${a}_${Math.random().toString().slice(2, 6)}`;
12
+ }
13
+ return i;
10
14
  }
11
- function G(o, e = {}, t) {
12
- const n = j[o];
15
+ function W(o, e = {}, t) {
16
+ const n = q[o];
13
17
  if (n) {
14
- let a = E(n);
15
- const i = $[o];
16
- return a = i ? i({ getSchemaByType: G }, a, e, t) : a, a;
18
+ let r = U(n);
19
+ const i = G[o];
20
+ return r = i ? i({ getSchemaByType: W }, r, e, t) : r, r;
17
21
  }
18
22
  return null;
19
23
  }
20
24
  function J(o, e) {
21
- const t = E(e);
22
- return Object.keys(o).reduce((n, a) => (n[a] && B(n[a]) && B(o[a]) ? Object.assign(n[a], o[a]) : n[a] = o[a], n), t), t;
25
+ const t = U(e);
26
+ return Object.keys(t).reduce((n, r) => (n[r] && N(n[r]) && N(o[r] || !o[r]) ? Object.assign(n[r], o[r] || {}) : n[r] = o[r], n), t), t;
23
27
  }
24
- function Q(o, e) {
25
- return Object.keys(o).filter((n) => o[n] != null).reduce((n, a) => {
26
- if (e.has(a)) {
27
- const i = e.get(a);
28
+ function X(o, e) {
29
+ return Object.keys(o).filter((n) => o[n] != null).reduce((n, r) => {
30
+ if (e.has(r)) {
31
+ const i = e.get(r);
28
32
  if (typeof i == "string")
29
- n[i] = o[a];
33
+ n[i] = o[r];
30
34
  else {
31
- const r = i(a, o[a], o);
32
- Object.assign(n, r);
35
+ const a = i(r, o[r], o);
36
+ Object.assign(n, a);
33
37
  }
34
38
  } else
35
- n[a] = o[a];
39
+ n[r] = o[r];
36
40
  return n;
37
41
  }, {});
38
42
  }
39
- function X(o, e, t = /* @__PURE__ */ new Map()) {
43
+ function Z(o, e, t = /* @__PURE__ */ new Map()) {
40
44
  const n = J(o, e);
41
- return Q(n, t);
45
+ return X(n, t);
42
46
  }
43
- function Z(o = {}) {
44
- function e(s, c, l, p) {
45
- if (typeof l == "number")
46
- return p[s].length === l;
47
- if (typeof l == "object") {
48
- const h = Object.keys(l)[0], g = l[h];
49
- if (h === "not")
50
- return Number(p[s].length) !== Number(g);
51
- if (h === "moreThan")
52
- return Number(p[s].length) >= Number(g);
53
- if (h === "lessThan")
54
- return Number(p[s].length) <= Number(g);
47
+ function K(o = {}) {
48
+ function e(c, p, u, d) {
49
+ if (typeof u == "number")
50
+ return d[c].length === u;
51
+ if (typeof u == "object") {
52
+ const y = Object.keys(u)[0], v = u[y];
53
+ if (y === "not")
54
+ return Number(d[c].length) !== Number(v);
55
+ if (y === "moreThan")
56
+ return Number(d[c].length) >= Number(v);
57
+ if (y === "lessThan")
58
+ return Number(d[c].length) <= Number(v);
55
59
  }
56
60
  return !1;
57
61
  }
58
- function t(s, c, l, p) {
59
- return p[s] && p[s].propertyValue && String(p[s].propertyValue.value) === String(l);
62
+ function t(c, p, u, d) {
63
+ return d[c] && d[c].propertyValue && String(d[c].propertyValue.value) === String(u);
60
64
  }
61
65
  const n = /* @__PURE__ */ new Map([
62
66
  ["length", e],
63
67
  ["getProperty", t]
64
68
  ]);
65
- Object.keys(o).reduce((s, c) => (s.set(c, o[c]), s), n);
66
- function a(s, c) {
67
- const l = s;
68
- return typeof c == "number" ? [{ target: l, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: l, operator: "getProperty", param: s, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
69
- if (p === "length")
70
- return { target: l, operator: "length", param: null, value: c[p] };
71
- const h = p, g = c[p];
72
- return { target: l, operator: "getProperty", param: h, value: g };
69
+ Object.keys(o).reduce((c, p) => (c.set(p, o[p]), c), n);
70
+ function r(c, p) {
71
+ const u = c;
72
+ return typeof p == "number" ? [{ target: u, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!p }] : typeof p == "object" ? Object.keys(p).map((d) => {
73
+ if (d === "length")
74
+ return { target: u, operator: "length", param: null, value: p[d] };
75
+ const y = d, v = p[d];
76
+ return { target: u, operator: "getProperty", param: y, value: v };
73
77
  }) : [];
74
78
  }
75
- function i(s) {
76
- return Object.keys(s).reduce((l, p) => {
77
- const h = a(p, s[p]);
78
- return l.push(...h), l;
79
+ function i(c) {
80
+ return Object.keys(c).reduce((u, d) => {
81
+ const y = r(d, c[d]);
82
+ return u.push(...y), u;
79
83
  }, []);
80
84
  }
81
- function r(s, c) {
82
- if (n.has(s.operator)) {
83
- const l = n.get(s.operator);
84
- return l && l(s.target, s.param, s.value, c) || !1;
85
+ function a(c, p) {
86
+ if (n.has(c.operator)) {
87
+ const u = n.get(c.operator);
88
+ return u && u(c.target, c.param, c.value, p) || !1;
85
89
  }
86
90
  return !1;
87
91
  }
88
- function f(s, c) {
89
- return i(s).reduce((h, g) => h && r(g, c), !0);
92
+ function f(c, p) {
93
+ return i(c).reduce((y, v) => y && a(v, p), !0);
90
94
  }
91
- function m(s, c) {
92
- const l = Object.keys(s), p = l.includes("allOf"), h = l.includes("anyOf"), g = p || h, d = (g ? s[g ? p ? "allOf" : "anyOf" : "allOf"] : [s]).map((V) => f(V, c));
93
- return p ? !d.includes(!1) : d.includes(!0);
95
+ function h(c, p) {
96
+ const u = Object.keys(c), d = u.includes("allOf"), y = u.includes("anyOf"), v = d || y, l = (v ? c[v ? d ? "allOf" : "anyOf" : "allOf"] : [c]).map((C) => f(C, p));
97
+ return d ? !l.includes(!1) : l.includes(!0);
94
98
  }
95
- return { parseValueSchema: m };
99
+ return { parseValueSchema: h };
96
100
  }
97
- const H = {
101
+ const I = {
98
102
  button: { type: "button", name: "按钮", icon: "Button" },
99
103
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
100
104
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -132,19 +136,20 @@ const H = {
132
136
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
133
137
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
134
138
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
135
- fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
136
- }, K = {}, I = {};
137
- Z();
138
- function x(o, e, t = /* @__PURE__ */ new Map(), n = (r, f, m) => f, a = {}, i = (r) => r) {
139
- return j[e.title] = e, $[e.title] = n, K[e.title] = a, I[e.title] = i, (r = {}) => {
140
- const f = X(r, e, t), m = Object.keys(o).reduce((s, c) => (s[c] = o[c].default, s), {});
141
- return Object.assign(m, f);
139
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
140
+ "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
141
+ }, H = {}, x = {};
142
+ K();
143
+ function ee(o, e, t = /* @__PURE__ */ new Map(), n = (a, f, h, c) => f, r = {}, i = (a) => a) {
144
+ return q[e.title] = e, G[e.title] = n, H[e.title] = r, x[e.title] = i, (a = {}) => {
145
+ const f = Z(a, e, t), h = Object.keys(o).reduce((c, p) => (c[p] = o[p].default, c), {});
146
+ return Object.assign(h, f);
142
147
  };
143
148
  }
144
- function ee(o, e) {
149
+ function te(o, e) {
145
150
  return { customClass: e.class, customStyle: e.style };
146
151
  }
147
- const te = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-design.gitee.io/video.schema.json", oe = "video", ae = "A Farris Video Component", re = "object", ie = {
152
+ const oe = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-design.gitee.io/video.schema.json", ae = "video", re = "A Farris Video Component", ie = "object", ce = {
148
153
  id: {
149
154
  description: "The unique identifier for a Video",
150
155
  type: "string"
@@ -175,21 +180,21 @@ const te = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-
175
180
  }, se = [
176
181
  "id",
177
182
  "type"
178
- ], ce = {
179
- $schema: te,
183
+ ], le = {
184
+ $schema: oe,
180
185
  $id: ne,
181
- title: oe,
182
- description: ae,
183
- type: re,
184
- properties: ie,
186
+ title: ae,
187
+ description: re,
188
+ type: ie,
189
+ properties: ce,
185
190
  required: se
186
- }, le = /* @__PURE__ */ new Map([
187
- ["appearance", ee]
191
+ }, pe = /* @__PURE__ */ new Map([
192
+ ["appearance", te]
188
193
  ]);
189
- function pe(o, e, t) {
194
+ function ue(o, e, t) {
190
195
  return e;
191
196
  }
192
- const ue = "verify-detail", de = "A Farris Component", fe = "object", me = {
197
+ const de = "verify-detail", fe = "A Farris Component", me = "object", he = {
193
198
  basic: {
194
199
  description: "Basic Infomation",
195
200
  title: "基本信息",
@@ -211,12 +216,12 @@ const ue = "verify-detail", de = "A Farris Component", fe = "object", me = {
211
216
  }
212
217
  }
213
218
  }
214
- }, he = {
215
- title: ue,
216
- description: de,
217
- type: fe,
218
- categories: me
219
- }, S = {
219
+ }, ye = {
220
+ title: de,
221
+ description: fe,
222
+ type: me,
223
+ categories: he
224
+ }, A = {
220
225
  src: {
221
226
  type: String,
222
227
  required: !0,
@@ -253,90 +258,90 @@ const ue = "verify-detail", de = "A Farris Component", fe = "object", me = {
253
258
  type: [String, Number],
254
259
  default: 168
255
260
  }
256
- }, A = x(S, ce, le, pe, he);
257
- function ye(o, e) {
258
- function t(u) {
259
- u.stopPropagation(), e.emit("abort");
261
+ }, O = ee(A, le, pe, ue, ye);
262
+ function ge(o, e) {
263
+ function t(s) {
264
+ s.stopPropagation(), e.emit("abort");
260
265
  }
261
- function n(u) {
262
- u.stopPropagation(), e.emit("play");
266
+ function n(s) {
267
+ s.stopPropagation(), e.emit("play");
263
268
  }
264
- function a(u) {
265
- u.stopPropagation(), e.emit("pause");
269
+ function r(s) {
270
+ s.stopPropagation(), e.emit("pause");
266
271
  }
267
- function i(u) {
268
- u.stopPropagation(), e.emit("ended");
272
+ function i(s) {
273
+ s.stopPropagation(), e.emit("ended");
269
274
  }
270
- function r(u) {
271
- u.stopPropagation(), e.emit("durationchange");
275
+ function a(s) {
276
+ s.stopPropagation(), e.emit("durationchange");
272
277
  }
273
- function f(u) {
274
- u.stopPropagation(), e.emit("error");
278
+ function f(s) {
279
+ s.stopPropagation(), e.emit("error");
275
280
  }
276
- function m(u) {
277
- u.stopPropagation(), e.emit("loadeddata");
281
+ function h(s) {
282
+ s.stopPropagation(), e.emit("loadeddata");
278
283
  }
279
- function s(u) {
280
- u.stopPropagation(), e.emit("loadedmetadata");
284
+ function c(s) {
285
+ s.stopPropagation(), e.emit("loadedmetadata");
281
286
  }
282
- function c(u) {
283
- u.stopPropagation(), e.emit("loadstart");
287
+ function p(s) {
288
+ s.stopPropagation(), e.emit("loadstart");
284
289
  }
285
- function l(u) {
286
- u.stopPropagation(), e.emit("playing");
290
+ function u(s) {
291
+ s.stopPropagation(), e.emit("playing");
287
292
  }
288
- function p(u) {
289
- u.stopPropagation(), e.emit("progress");
293
+ function d(s) {
294
+ s.stopPropagation(), e.emit("progress");
290
295
  }
291
- function h(u) {
292
- u.stopPropagation(), e.emit("timeupdate");
296
+ function y(s) {
297
+ s.stopPropagation(), e.emit("timeupdate");
293
298
  }
294
- function g(u) {
295
- u.stopPropagation(), e.emit("volumechange");
299
+ function v(s) {
300
+ s.stopPropagation(), e.emit("volumechange");
296
301
  }
297
- function b(u) {
298
- u.stopPropagation(), e.emit("canplay");
302
+ function g(s) {
303
+ s.stopPropagation(), e.emit("canplay");
299
304
  }
300
305
  return {
301
306
  onAbort: t,
302
307
  onPlay: n,
303
- onPause: a,
308
+ onPause: r,
304
309
  onEnded: i,
305
- onDurationchange: r,
310
+ onDurationchange: a,
306
311
  onError: f,
307
- onLoadeddata: m,
308
- onLoadedmetadata: s,
309
- onLoadstart: c,
310
- onPlaying: l,
311
- onProgress: p,
312
- onTimeupdate: h,
313
- onVolumechange: g,
314
- onCanplay: b
312
+ onLoadeddata: h,
313
+ onLoadedmetadata: c,
314
+ onLoadstart: p,
315
+ onPlaying: u,
316
+ onProgress: d,
317
+ onTimeupdate: y,
318
+ onVolumechange: v,
319
+ onCanplay: g
315
320
  };
316
321
  }
317
- const D = /* @__PURE__ */ F({
322
+ const B = /* @__PURE__ */ j({
318
323
  name: "FVideo",
319
- props: S,
324
+ props: A,
320
325
  emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
321
326
  setup(o, e) {
322
- const t = M(), {
327
+ const t = T(), {
323
328
  onAbort: n,
324
- onPlay: a,
329
+ onPlay: r,
325
330
  onPause: i,
326
- onEnded: r,
331
+ onEnded: a,
327
332
  onDurationchange: f,
328
- onError: m,
329
- onLoadeddata: s,
330
- onLoadedmetadata: c,
331
- onLoadstart: l,
332
- onPlaying: p,
333
- onProgress: h,
334
- onTimeupdate: g,
335
- onVolumechange: b,
336
- onCanplay: u
337
- } = ye(o, e);
338
- return N(() => {
339
- }), () => T("video", {
333
+ onError: h,
334
+ onLoadeddata: c,
335
+ onLoadedmetadata: p,
336
+ onLoadstart: u,
337
+ onPlaying: d,
338
+ onProgress: y,
339
+ onTimeupdate: v,
340
+ onVolumechange: g,
341
+ onCanplay: s
342
+ } = ge(o, e);
343
+ return $(() => {
344
+ }), () => k("video", {
340
345
  ref: t,
341
346
  src: o.src,
342
347
  autoplay: o.autoplay,
@@ -346,114 +351,119 @@ const D = /* @__PURE__ */ F({
346
351
  width: o.width,
347
352
  height: o.height,
348
353
  poster: o.poster,
349
- onAbort: (d) => n(d),
350
- onPlay: (d) => a(d),
351
- onPause: (d) => i(d),
352
- onEnded: (d) => r(d),
353
- onDurationchange: (d) => f(d),
354
- onError: (d) => m(d),
355
- onLoadeddata: (d) => s(d),
356
- onLoadedmetadata: (d) => c(d),
357
- onLoadstart: (d) => l(d),
358
- onPlaying: (d) => p(d),
359
- onProgress: (d) => h(d),
360
- onTimeupdate: (d) => g(d),
361
- onVolumechange: (d) => b(d),
362
- onCanplay: (d) => u(d)
363
- }, [O("Your browser does not support the video tag.")]);
354
+ onAbort: (l) => n(l),
355
+ onPlay: (l) => r(l),
356
+ onPause: (l) => i(l),
357
+ onEnded: (l) => a(l),
358
+ onDurationchange: (l) => f(l),
359
+ onError: (l) => h(l),
360
+ onLoadeddata: (l) => c(l),
361
+ onLoadedmetadata: (l) => p(l),
362
+ onLoadstart: (l) => u(l),
363
+ onPlaying: (l) => d(l),
364
+ onProgress: (l) => y(l),
365
+ onTimeupdate: (l) => v(l),
366
+ onVolumechange: (l) => g(l),
367
+ onCanplay: (l) => s(l)
368
+ }, [S("Your browser does not support the video tag.")]);
364
369
  }
365
370
  });
366
- function ge(o, e, t) {
367
- var k;
368
- function n() {
369
- t != null && t.resolveComponentContext && t.resolveComponentContext();
370
- }
371
- n();
372
- const a = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", r = M();
373
- function f() {
371
+ function ve(o, e, t) {
372
+ var E;
373
+ const n = t && t.getStyles && t.getStyles() || "", r = t && t.getDesignerClass && t.getDesignerClass() || "", i = T();
374
+ function a() {
374
375
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
375
376
  }
376
- function m() {
377
+ function f() {
377
378
  return !1;
378
379
  }
379
- function s() {
380
+ function h() {
380
381
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
381
382
  }
382
383
  function c() {
383
384
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
384
385
  }
385
- function l(y) {
386
- if (!y || !y.value)
386
+ function p(m) {
387
+ if (!m || !m.value)
387
388
  return null;
388
- if (y.value.schema && y.value.schema.type === "component")
389
- return y.value;
390
- const C = M(y == null ? void 0 : y.value.parent), P = l(C);
391
- return P || null;
389
+ if (m.value.schema && m.value.schema.type === "component")
390
+ return m.value;
391
+ const w = T(m == null ? void 0 : m.value.parent), M = p(w);
392
+ return M || null;
392
393
  }
393
- function p(y = e) {
394
- const { componentInstance: C, designerItemElementRef: P } = y;
395
- return !C || !C.value ? null : C.value.canMove ? P : p(y.parent);
394
+ function u(m = e) {
395
+ const { componentInstance: w, designerItemElementRef: M } = m;
396
+ return !w || !w.value ? null : w.value.canMove ? M : u(m.parent);
396
397
  }
397
- function h(y) {
398
- return !!t && t.canAccepts(y);
398
+ function d(m) {
399
+ return !!t && t.canAccepts(m);
399
400
  }
400
- function g() {
401
+ function y() {
401
402
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
402
403
  }
403
- function b() {
404
+ function v() {
404
405
  }
405
- function u(y, C) {
406
- C && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(C);
406
+ function g(m, w) {
407
+ w && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(w);
407
408
  }
408
- function d(y, C) {
409
- const { componentType: P } = y;
410
- let w = G(P, y, C);
411
- t && t.onResolveNewComponentSchema && (w = t.onResolveNewComponentSchema(y, w));
412
- const W = P.toLowerCase().replace("-", "_");
413
- return w && !w.id && w.type === P && (w.id = `${W}_${Math.random().toString().slice(2, 6)}`), w;
409
+ function s(m, w) {
410
+ const { componentType: M } = m;
411
+ let P = W(M, m, w);
412
+ t && t.onResolveNewComponentSchema && (P = t.onResolveNewComponentSchema(m, P));
413
+ const D = M.toLowerCase().replace(/-/g, "_");
414
+ return P && !P.id && P.type === M && (P.id = `${D}_${Math.random().toString().slice(2, 6)}`), P;
414
415
  }
415
- function L(y) {
416
+ function l(m) {
416
417
  }
417
- function V(...y) {
418
+ function b(...m) {
418
419
  if (t && t.getPropsConfig)
419
- return t.getPropsConfig(...y);
420
+ return t.getPropsConfig(...m);
421
+ }
422
+ function C() {
423
+ t && t.onRemoveComponent && t.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((m) => {
424
+ var P;
425
+ let w = m.id;
426
+ m.type === "component-ref" && (w = m.component);
427
+ const M = o.value.querySelector(`#${w}-design-item`);
428
+ (P = M == null ? void 0 : M.componentInstance) != null && P.value.onRemoveComponent && M.componentInstance.value.onRemoveComponent();
429
+ });
420
430
  }
421
- return r.value = {
422
- canMove: f(),
423
- canSelectParent: m(),
424
- canDelete: s(),
431
+ return i.value = {
432
+ canMove: a(),
433
+ canSelectParent: f(),
434
+ canDelete: h(),
425
435
  canNested: !c(),
426
436
  contents: e == null ? void 0 : e.schema.contents,
427
437
  elementRef: o,
428
- parent: (k = e == null ? void 0 : e.parent) == null ? void 0 : k.componentInstance,
438
+ parent: (E = e == null ? void 0 : e.parent) == null ? void 0 : E.componentInstance,
429
439
  schema: e == null ? void 0 : e.schema,
430
- styles: a,
431
- designerClass: i,
432
- canAccepts: h,
433
- getBelongedComponentInstance: l,
434
- getDraggableDesignItemElement: p,
435
- getDraggingDisplayText: g,
436
- getPropConfig: V,
437
- getDragScopeElement: b,
438
- onAcceptMovedChildElement: u,
439
- onChildElementMovedOut: L,
440
- addNewChildComponentSchema: d,
441
- updateDragAndDropRules: n,
442
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
443
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1)
444
- }, r;
440
+ styles: n,
441
+ designerClass: r,
442
+ canAccepts: d,
443
+ getBelongedComponentInstance: p,
444
+ getDraggableDesignItemElement: u,
445
+ getDraggingDisplayText: y,
446
+ getPropConfig: b,
447
+ getDragScopeElement: v,
448
+ onAcceptMovedChildElement: g,
449
+ onChildElementMovedOut: l,
450
+ addNewChildComponentSchema: s,
451
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || T(!1),
452
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || T(!1),
453
+ onRemoveComponent: C
454
+ }, i;
445
455
  }
446
- class ve {
456
+ class be {
447
457
  getTemplateRule(e, t) {
448
- const n = t == null ? void 0 : t.formSchemaUtils, a = n == null ? void 0 : n.getFormTemplateRule(), i = { canAccept: !0, canDelete: !0, canMove: !0 };
449
- if (!a)
458
+ const n = t == null ? void 0 : t.formSchemaUtils, r = n == null ? void 0 : n.getFormTemplateRule(), i = { canAccept: !0, canDelete: !0, canMove: !0 };
459
+ if (!r)
450
460
  return i;
451
- const r = this.getComponentContext(e);
452
- return r.componentClassList.forEach((m) => {
453
- if (!m || !a[m])
461
+ const a = this.getComponentContext(e), { componentClassList: f } = a;
462
+ return f.forEach((h) => {
463
+ if (!h || !r[h])
454
464
  return;
455
- const { canMove: s, canDelete: c, canAccept: l } = a[m];
456
- i.canMove = i.canMove && this.resolveRuleValue(s, r), i.canDelete = i.canDelete && this.resolveRuleValue(c, r), i.canAccept = i.canAccept && this.resolveRuleValue(l, r);
465
+ const { canMove: c, canDelete: p, canAccept: u } = r[h];
466
+ i.canMove = i.canMove && this.resolveRuleValue(c, a), i.canDelete = i.canDelete && this.resolveRuleValue(p, a), i.canAccept = i.canAccept && this.resolveRuleValue(u, a);
457
467
  }), i;
458
468
  }
459
469
  resolveRuleValue(e, t) {
@@ -461,94 +471,94 @@ class ve {
461
471
  }
462
472
  parseRuleValueSchema(e, t) {
463
473
  const n = e.invalidContext || [];
464
- let a = !0;
474
+ let r = !0;
465
475
  for (const i of n) {
466
476
  if (i.firstLevelChild) {
467
477
  if (i.firstLevelChild.class) {
468
- const r = t.firstLevelChildClassList;
469
- if (r && !r.includes(i.firstLevelChild.class)) {
470
- a = !1;
478
+ const { firstLevelChildClassList: a } = t;
479
+ if (a && !a.includes(i.firstLevelChild.class)) {
480
+ r = !1;
471
481
  continue;
472
482
  }
473
483
  }
474
484
  if (i.firstLevelChild.type) {
475
- const r = t.firstLevelChildSchema;
476
- if (r && r.type !== i.firstLevelChild.type) {
477
- a = !1;
485
+ const { firstLevelChildSchema: a } = t;
486
+ if (!a || a.type !== i.firstLevelChild.type) {
487
+ r = !1;
478
488
  continue;
479
489
  }
480
490
  }
481
491
  }
482
492
  if (i.secondLevelChild) {
483
493
  if (i.secondLevelChild.class) {
484
- const r = t.secondLevelChildClassList;
485
- if (r && !r.includes(i.secondLevelChild.class)) {
486
- a = !1;
494
+ const { secondLevelChildClassList: a } = t;
495
+ if (a && !a.includes(i.secondLevelChild.class)) {
496
+ r = !1;
487
497
  continue;
488
498
  }
489
499
  }
490
500
  if (i.secondLevelChild.type) {
491
- const r = t.secondLevelChildSchema;
492
- if (r && r.type !== i.secondLevelChild.type) {
493
- a = !1;
501
+ const { secondLevelChildSchema: a } = t;
502
+ if (!a || a.type !== i.secondLevelChild.type) {
503
+ r = !1;
494
504
  continue;
495
505
  }
496
506
  }
497
507
  }
498
508
  if (i.parent) {
499
509
  if (i.parent.class) {
500
- const r = t.parentClassList;
501
- if (r && !r.includes(i.parent.class)) {
502
- a = !1;
510
+ const { parentClassList: a } = t;
511
+ if (a && !a.includes(i.parent.class)) {
512
+ r = !1;
503
513
  continue;
504
514
  }
505
515
  }
506
516
  if (i.parent.type) {
507
- const r = t.parentSchema;
508
- if (r && r.type !== i.parent.type) {
509
- a = !1;
517
+ const { parentSchema: a } = t;
518
+ if (a && a.type !== i.parent.type) {
519
+ r = !1;
510
520
  continue;
511
521
  }
512
522
  }
513
523
  }
514
- a = !0;
524
+ r = !0;
515
525
  break;
516
526
  }
517
- return !a;
527
+ return !r;
518
528
  }
519
529
  getComponentContext(e) {
520
- var b, u, d, L;
521
- const t = e.schema, n = t.appearance && t.appearance.class || "", a = n.split(" ") || [], i = t.contents || [], r = i.length ? i[0] : null, f = r && r.appearance ? r.appearance.class : "", m = f ? f.split(" ") : [], s = (b = r == null ? void 0 : r.contents) != null && b.length ? r == null ? void 0 : r.contents[0] : null, c = s && s.appearance ? s.appearance.class : "", l = c ? c.split(" ") : [], p = t.type === "component" ? (d = (u = e.parent) == null ? void 0 : u.parent) == null ? void 0 : d.schema : (L = e.parent) == null ? void 0 : L.schema, h = p && p.appearance && p.appearance.class || "", g = h ? h.split(" ") : [];
530
+ var g, s, l, b;
531
+ const t = e.schema, n = t.appearance && t.appearance.class || "", r = n.split(" ") || [], i = t.contents || [], a = i.length ? i[0] : null, f = a && a.appearance ? a.appearance.class : "", h = f ? f.split(" ") : [], c = (g = a == null ? void 0 : a.contents) != null && g.length ? a == null ? void 0 : a.contents[0] : null, p = c && c.appearance ? c.appearance.class : "", u = p ? p.split(" ") : [], d = t.type === "component" ? (l = (s = e.parent) == null ? void 0 : s.parent) == null ? void 0 : l.schema : (b = e.parent) == null ? void 0 : b.schema, y = d && d.appearance && d.appearance.class || "", v = y ? y.split(" ") : [];
522
532
  return {
523
533
  componentClass: n,
524
- componentClassList: a,
534
+ componentClassList: r,
525
535
  childContents: i,
526
- firstLevelChildSchema: r,
536
+ firstLevelChildSchema: a,
527
537
  firstLevelChildClass: f,
528
- firstLevelChildClassList: m,
529
- secondLevelChildSchema: s,
530
- secondLevelChildClass: c,
531
- secondLevelChildClassList: l,
532
- parentSchema: p,
533
- parentClass: h,
534
- parentClassList: g
538
+ firstLevelChildClassList: h,
539
+ secondLevelChildSchema: c,
540
+ secondLevelChildClass: p,
541
+ secondLevelChildClassList: u,
542
+ parentSchema: d,
543
+ parentClass: y,
544
+ parentClassList: v
535
545
  };
536
546
  }
537
547
  }
538
- class be {
548
+ class Me {
539
549
  constructor(e, t) {
540
- v(this, "componentId");
541
- v(this, "viewModelId");
542
- v(this, "eventsEditorUtils");
543
- v(this, "formSchemaUtils");
544
- v(this, "formMetadataConverter");
545
- v(this, "designViewModelUtils");
546
- v(this, "designViewModelField");
547
- v(this, "controlCreatorUtils");
548
- v(this, "designerHostService");
549
- v(this, "schemaService", null);
550
- v(this, "metadataService", null);
551
- v(this, "propertyConfig", {
550
+ V(this, "componentId");
551
+ V(this, "viewModelId");
552
+ V(this, "eventsEditorUtils");
553
+ V(this, "formSchemaUtils");
554
+ V(this, "formMetadataConverter");
555
+ V(this, "designViewModelUtils");
556
+ V(this, "designViewModelField");
557
+ V(this, "controlCreatorUtils");
558
+ V(this, "designerHostService");
559
+ V(this, "schemaService", null);
560
+ V(this, "metadataService", null);
561
+ V(this, "propertyConfig", {
552
562
  type: "object",
553
563
  categories: {}
554
564
  });
@@ -560,13 +570,14 @@ class be {
560
570
  return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
561
571
  }
562
572
  setDesignViewModelField(e) {
573
+ var n;
563
574
  const t = e.binding && e.binding.type === "Form" && e.binding.field;
564
575
  if (t) {
565
576
  if (!this.designViewModelField) {
566
- const n = this.designViewModelUtils.getDgViewModel(this.viewModelId);
567
- this.designViewModelField = n.fields.find((a) => a.id === t);
577
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
578
+ this.designViewModelField = r.fields.find((i) => i.id === t);
568
579
  }
569
- e.updateOn = this.designViewModelField.updateOn;
580
+ e.updateOn = (n = this.designViewModelField) == null ? void 0 : n.updateOn;
570
581
  }
571
582
  }
572
583
  changeFieldEditorType(e, t) {
@@ -590,7 +601,7 @@ class be {
590
601
  type: "combo-list",
591
602
  textField: "name",
592
603
  valueField: "value",
593
- data: [{ value: e.type, name: H[e.type].name }]
604
+ data: [{ value: e.type, name: I[e.type].name }]
594
605
  }
595
606
  }
596
607
  }
@@ -626,11 +637,11 @@ class be {
626
637
  const n = t && t.parent && t.parent.schema;
627
638
  if (!n)
628
639
  return;
629
- const a = n.contents.findIndex((r) => r.id === e), i = U(n.contents[a]);
630
- n.contents.splice(a, 1), n.contents.splice(a, 0, i);
640
+ const r = n.contents.findIndex((a) => a.id === e), i = R(n.contents[r]);
641
+ n.contents.splice(r, 1), n.contents.splice(r, 0, i);
631
642
  }
632
643
  }
633
- class Ce extends be {
644
+ class we extends Me {
634
645
  constructor(e, t) {
635
646
  super(e, t);
636
647
  }
@@ -647,13 +658,11 @@ class Ce extends be {
647
658
  label: "onAfterViewInit",
648
659
  name: "视图初始化后事件"
649
660
  }
650
- ];
651
- var n = this;
652
- const a = n.eventsEditorUtils.formProperties(e, n.viewModelId, t), i = {};
661
+ ], n = this, r = n.eventsEditorUtils.formProperties(e, n.viewModelId, t), i = {};
653
662
  i[n.viewModelId] = {
654
663
  type: "events-editor",
655
664
  editor: {
656
- initialData: a
665
+ initialData: r
657
666
  }
658
667
  }, this.propertyConfig.categories.eventsEditor = {
659
668
  title: "事件",
@@ -663,49 +672,85 @@ class Ce extends be {
663
672
  refreshPanelAfterChanged: !0,
664
673
  tabId: "commands",
665
674
  tabName: "交互",
666
- setPropertyRelates(r, f) {
667
- const m = r.propertyValue;
668
- delete e[n.viewModelId], m && (m.setPropertyRelates = this.setPropertyRelates, n.eventsEditorUtils.saveRelatedParameters(e, n.viewModelId, m.events, m));
675
+ setPropertyRelates(a, f) {
676
+ const h = a.propertyValue;
677
+ delete e[n.viewModelId], h && (h.setPropertyRelates = this.setPropertyRelates, n.eventsEditorUtils.saveRelatedParameters(e, n.viewModelId, h.events, h));
669
678
  }
670
679
  };
671
680
  }
672
681
  }
673
682
  function Pe(o, e) {
674
- const t = new ve(), { canMove: n, canDelete: a } = t.getTemplateRule(o, e);
683
+ const t = new be(), { canMove: n, canDelete: r } = t.getTemplateRule(o, e);
675
684
  function i() {
676
685
  return !1;
677
686
  }
678
- function r() {
679
- return a;
687
+ function a() {
688
+ return r;
680
689
  }
681
690
  function f() {
682
691
  return n;
683
692
  }
684
- function m() {
693
+ function h() {
685
694
  return !1;
686
695
  }
687
- function s() {
696
+ function c() {
688
697
  return " display: inherit;flex-direction: inherit;margin-bottom:10px";
689
698
  }
690
- function c(l) {
691
- const p = new Ce(l, e), h = o.schema;
692
- return p.getPropertyConfig(h);
699
+ function p(g) {
700
+ const s = new we(g, e), { schema: l } = o;
701
+ return s.getPropertyConfig(l);
702
+ }
703
+ function u() {
704
+ var C, E, m, w;
705
+ const g = o == null ? void 0 : o.schema, l = (e == null ? void 0 : e.formSchemaUtils).getViewModelIdByComponentId(g.id);
706
+ if (g.componentType !== "data-grid" && g.componentType !== "form" || !((C = o.componentInstance) != null && C.value.parent))
707
+ return;
708
+ const b = (E = o.componentInstance) == null ? void 0 : E.value.parent.schema;
709
+ if ((m = b == null ? void 0 : b.toolbar) != null && m.buttons && b.toolbar.buttons.length) {
710
+ b.toolbar.buttons.forEach((P) => {
711
+ const D = P.onClick, L = D && D.split(".");
712
+ if (!L || L.length < 3)
713
+ return;
714
+ L[L.length - 2] === l && (P.needRemove = !0);
715
+ }), b.toolbar.buttons = b.toolbar.buttons.filter((P) => !P.needRemove);
716
+ const M = (w = o.componentInstance) == null ? void 0 : w.value.parent;
717
+ M.parent && M.parent.updateToolbarItems && M.parent.updateToolbarItems();
718
+ }
719
+ }
720
+ function d() {
721
+ const g = e == null ? void 0 : e.designViewModelUtils, s = e == null ? void 0 : e.formSchemaUtils, l = o == null ? void 0 : o.schema;
722
+ if (g && s) {
723
+ const b = s.getViewModelIdByComponentId(l.id);
724
+ g.deleteViewModelById(b), s.deleteComponent(l.id);
725
+ }
726
+ }
727
+ function y() {
728
+ const g = e == null ? void 0 : e.designViewModelUtils, s = e == null ? void 0 : e.formSchemaUtils, l = o == null ? void 0 : o.schema, b = s.getViewModelIdByComponentId(l.id);
729
+ g.getDgViewModel(b).fields.forEach((C) => {
730
+ if (s.getExpressions() && s.getExpressions().length) {
731
+ const E = s.getExpressions().findIndex((m) => m.fieldId === C.id);
732
+ E > -1 && s.getExpressions().splice(E, 1);
733
+ }
734
+ });
735
+ }
736
+ function v() {
737
+ u(), y(), d();
693
738
  }
694
- return { canAccepts: i, checkCanDeleteComponent: r, checkCanMoveComponent: f, hideNestedPaddingInDesginerView: m, getStyles: s, getPropsConfig: c };
739
+ return { canAccepts: i, checkCanDeleteComponent: a, checkCanMoveComponent: f, hideNestedPaddingInDesginerView: h, getStyles: c, getPropsConfig: p, onRemoveComponent: v };
695
740
  }
696
- function Me(o, e) {
697
- const t = M(o.width), n = M(o.height);
698
- let a;
699
- z(e, (r) => {
700
- r && (t.value = r.clientWidth, a = new ResizeObserver((f) => {
741
+ function Ve(o, e) {
742
+ const t = T(o.width), n = T(o.height);
743
+ let r;
744
+ Y(e, (a) => {
745
+ a && (t.value = a.clientWidth, r = new ResizeObserver((f) => {
701
746
  if (!f || f.length < 1)
702
747
  return;
703
- const s = f[0].contentRect;
704
- s && (t.value = s.width);
705
- }), a.observe(r));
748
+ const c = f[0].contentRect;
749
+ c && (t.value = c.width);
750
+ }), r.observe(a));
706
751
  });
707
752
  function i() {
708
- a && a.disconnect();
753
+ r && r.disconnect();
709
754
  }
710
755
  return {
711
756
  destory: i,
@@ -713,48 +758,47 @@ function Me(o, e) {
713
758
  height: n
714
759
  };
715
760
  }
716
- const we = /* @__PURE__ */ F({
761
+ const Ce = /* @__PURE__ */ j({
717
762
  name: "FVideoDesign",
718
- props: S,
763
+ props: A,
719
764
  setup(o, e) {
720
- var s;
721
- const t = M(), n = Y("design-item-context"), a = Pe(n.schema, (s = n.parent) == null ? void 0 : s.schema), i = ge(t, n, a), {
722
- width: r,
723
- height: f,
724
- destory: m
725
- } = Me(o, t);
726
- return _(() => {
727
- t.value.componentInstance = i;
728
- }), N(() => {
729
- m();
730
- }), e.expose(i.value), () => T("div", {
765
+ const t = T(), n = F("design-item-context"), r = F("designer-host-service"), i = Pe(n, r), a = ve(t, n, i), {
766
+ width: f,
767
+ height: h,
768
+ destory: c
769
+ } = Ve(o, t);
770
+ return Q(() => {
771
+ t.value.componentInstance = a;
772
+ }), $(() => {
773
+ c();
774
+ }), e.expose(a.value), () => k("div", {
731
775
  ref: t,
732
776
  class: "drag-container",
733
777
  "data-dragref": `${n.schema.id}-container`
734
- }, [T("video", {
778
+ }, [k("video", {
735
779
  src: o.src,
736
780
  autoplay: o.autoplay,
737
781
  controls: o.controls,
738
782
  loop: o.loop,
739
783
  muted: o.muted,
740
- width: r.value,
741
- height: f.value
742
- }, [O("Your browser does not support the video tag.")])]);
784
+ width: f.value,
785
+ height: h.value
786
+ }, [S("Your browser does not support the video tag.")])]);
743
787
  }
744
- }), Te = {
788
+ }), Be = {
745
789
  install(o) {
746
- o.component(D.name, D);
790
+ o.component(B.name, B);
747
791
  },
748
792
  register(o, e, t, n) {
749
- o.video = D, e.video = A;
793
+ o.video = B, e.video = O;
750
794
  },
751
795
  registerDesigner(o, e, t) {
752
- o.video = we, e.video = A;
796
+ o.video = Ce, e.video = O;
753
797
  }
754
798
  };
755
799
  export {
756
- D as FVideo,
757
- Te as default,
758
- A as propsResolver,
759
- S as videoProps
800
+ B as FVideo,
801
+ Be as default,
802
+ O as propsResolver,
803
+ A as videoProps
760
804
  };