@farris/ui-vue 1.2.9 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/components/accordion/index.esm.js +63 -63
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +402 -323
  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 +98 -96
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +66 -66
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +118 -118
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +539 -460
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +135 -135
  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 +1007 -312
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +97 -97
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +778 -700
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +472 -329
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2231 -1055
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +79 -79
  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 +6408 -5034
  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 +4762 -3511
  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 +3442 -2742
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-outline/index.esm.js +14 -13
  40. package/components/designer-outline/index.umd.cjs +1 -1
  41. package/components/dropdown/index.esm.js +73 -73
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.css +1 -0
  44. package/components/dynamic-form/index.esm.js +2597 -1141
  45. package/components/dynamic-form/index.umd.cjs +1 -1
  46. package/components/dynamic-resolver/index.esm.js +114 -71
  47. package/components/dynamic-resolver/index.umd.cjs +1 -1
  48. package/components/dynamic-view/index.esm.js +303 -290
  49. package/components/dynamic-view/index.umd.cjs +1 -1
  50. package/components/events-editor/index.esm.js +171 -171
  51. package/components/events-editor/index.umd.cjs +1 -1
  52. package/components/expression-editor/index.esm.js +65 -65
  53. package/components/expression-editor/index.umd.cjs +1 -1
  54. package/components/external-container/index.css +1 -1
  55. package/components/external-container/index.esm.js +3075 -2586
  56. package/components/external-container/index.umd.cjs +1 -1
  57. package/components/field-selector/index.css +1 -1
  58. package/components/field-selector/index.esm.js +5272 -8511
  59. package/components/field-selector/index.umd.cjs +1 -1
  60. package/components/filter-bar/index.css +1 -1
  61. package/components/filter-bar/index.esm.js +1726 -1822
  62. package/components/filter-bar/index.umd.cjs +1 -1
  63. package/components/image-cropper/index.esm.js +126 -126
  64. package/components/image-cropper/index.umd.cjs +1 -1
  65. package/components/input-group/index.esm.js +620 -540
  66. package/components/input-group/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +88 -88
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +71 -71
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.css +1 -1
  72. package/components/list-view/index.esm.js +3582 -2356
  73. package/components/list-view/index.umd.cjs +1 -1
  74. package/components/lookup/index.css +1 -1
  75. package/components/lookup/index.esm.js +10752 -8972
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.css +1 -1
  78. package/components/mapping-editor/index.esm.js +5601 -5329
  79. package/components/mapping-editor/index.umd.cjs +1 -1
  80. package/components/message-box/index.css +1 -1
  81. package/components/message-box/index.esm.js +511 -471
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.css +1 -1
  84. package/components/modal/index.esm.js +438 -398
  85. package/components/modal/index.umd.cjs +1 -1
  86. package/components/nav/index.esm.js +535 -452
  87. package/components/nav/index.umd.cjs +2 -2
  88. package/components/notify/index.esm.js +59 -53
  89. package/components/notify/index.umd.cjs +1 -1
  90. package/components/number-range/index.esm.js +556 -477
  91. package/components/number-range/index.umd.cjs +1 -1
  92. package/components/number-spinner/index.esm.js +504 -425
  93. package/components/number-spinner/index.umd.cjs +1 -1
  94. package/components/order/index.css +1 -1
  95. package/components/order/index.esm.js +1833 -1054
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +100 -100
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +899 -870
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +576 -487
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/popover/index.esm.js +71 -70
  104. package/components/popover/index.umd.cjs +1 -1
  105. package/components/progress/index.esm.js +73 -73
  106. package/components/progress/index.umd.cjs +2 -2
  107. package/components/property-editor/index.css +1 -1
  108. package/components/property-editor/index.esm.js +1916 -1220
  109. package/components/property-editor/index.umd.cjs +3 -3
  110. package/components/property-panel/index.esm.js +783 -886
  111. package/components/property-panel/index.umd.cjs +1 -1
  112. package/components/query-solution/index.css +1 -1
  113. package/components/query-solution/index.esm.js +3632 -2556
  114. package/components/query-solution/index.umd.cjs +1 -1
  115. package/components/radio-button/index.esm.js +72 -72
  116. package/components/radio-button/index.umd.cjs +1 -1
  117. package/components/radio-group/index.esm.js +484 -405
  118. package/components/radio-group/index.umd.cjs +1 -1
  119. package/components/rate/index.esm.js +152 -152
  120. package/components/rate/index.umd.cjs +1 -1
  121. package/components/response-layout/index.esm.js +73 -73
  122. package/components/response-layout/index.umd.cjs +1 -1
  123. package/components/response-layout-editor/index.css +1 -1
  124. package/components/response-layout-editor/index.esm.js +1081 -1043
  125. package/components/response-layout-editor/index.umd.cjs +1 -1
  126. package/components/response-toolbar/index.esm.js +753 -738
  127. package/components/response-toolbar/index.umd.cjs +1 -1
  128. package/components/schema-selector/index.css +1 -1
  129. package/components/schema-selector/index.esm.js +4418 -4177
  130. package/components/schema-selector/index.umd.cjs +2 -2
  131. package/components/search-box/index.esm.js +119 -119
  132. package/components/search-box/index.umd.cjs +1 -1
  133. package/components/section/index.esm.js +92 -91
  134. package/components/section/index.umd.cjs +1 -1
  135. package/components/smoke-detector/index.esm.js +59 -59
  136. package/components/smoke-detector/index.umd.cjs +1 -1
  137. package/components/splitter/index.esm.js +103 -103
  138. package/components/splitter/index.umd.cjs +1 -1
  139. package/components/step/index.esm.js +85 -85
  140. package/components/step/index.umd.cjs +1 -1
  141. package/components/switch/index.esm.js +457 -378
  142. package/components/switch/index.umd.cjs +1 -1
  143. package/components/tabs/index.css +1 -1
  144. package/components/tabs/index.esm.js +1696 -1617
  145. package/components/tabs/index.umd.cjs +1 -1
  146. package/components/tags/index.esm.js +53 -53
  147. package/components/tags/index.umd.cjs +1 -1
  148. package/components/text/index.esm.js +268 -268
  149. package/components/text/index.umd.cjs +1 -1
  150. package/components/textarea/index.esm.js +420 -341
  151. package/components/textarea/index.umd.cjs +1 -1
  152. package/components/time-picker/index.css +1 -1
  153. package/components/time-picker/index.esm.js +1062 -981
  154. package/components/time-picker/index.umd.cjs +1 -1
  155. package/components/transfer/index.css +1 -1
  156. package/components/transfer/index.esm.js +381 -379
  157. package/components/transfer/index.umd.cjs +1 -1
  158. package/components/tree-grid/index.css +1 -1
  159. package/components/tree-grid/index.esm.js +5252 -9560
  160. package/components/tree-grid/index.umd.cjs +1 -1
  161. package/components/tree-view/index.css +1 -0
  162. package/components/tree-view/index.esm.js +3920 -2692
  163. package/components/tree-view/index.umd.cjs +1 -1
  164. package/components/uploader/index.esm.js +373 -367
  165. package/components/uploader/index.umd.cjs +2 -2
  166. package/components/verify-detail/index.esm.js +92 -92
  167. package/components/verify-detail/index.umd.cjs +1 -1
  168. package/components/video/index.esm.js +597 -417
  169. package/components/video/index.umd.cjs +1 -1
  170. package/components/weather/index.esm.js +251 -251
  171. package/components/weather/index.umd.cjs +4 -4
  172. package/farris.all.esm.js +17125 -16176
  173. package/farris.all.umd.cjs +8 -8
  174. package/index.css +1 -1
  175. package/package.json +1 -1
  176. package/types/capsule/src/capsule.props.d.ts +2 -2
  177. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  178. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  179. package/types/common/index.d.ts +1 -0
  180. package/types/common/types.d.ts +1 -1
  181. package/types/common/utils/encrypt.d.ts +2 -0
  182. package/types/component/src/component.props.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +1 -1
  184. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  185. package/types/components.d.ts +1 -0
  186. package/types/data-grid/index.d.ts +5 -2
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  189. package/types/data-view/composition/types.d.ts +18 -1
  190. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  191. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  193. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  194. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  195. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  196. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  197. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  198. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  199. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  200. package/types/dynamic-form/src/types.d.ts +12 -1
  201. package/types/dynamic-resolver/index.d.ts +1 -0
  202. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  203. package/types/dynamic-resolver/src/types.d.ts +9 -0
  204. package/types/dynamic-view/index.d.ts +1 -0
  205. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  206. package/types/index.d.ts +2 -0
  207. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  208. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  209. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  210. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  211. package/types/lookup/src/composition/types.d.ts +8 -0
  212. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  213. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  214. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  215. package/types/lookup/src/composition/use-http.d.ts +9 -5
  216. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  217. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  218. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  219. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  220. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  221. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  222. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  223. package/types/modal/src/modal.component.d.ts +3 -0
  224. package/types/modal/src/modal.props.d.ts +4 -0
  225. package/types/page-header/src/page-header.props.d.ts +1 -0
  226. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  227. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  228. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  229. package/types/response-layout-editor/src/type.d.ts +21 -0
  230. package/types/tabs/src/tabs.props.d.ts +1 -0
  231. package/types/tree-grid/index.d.ts +8 -2
  232. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  233. package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
  234. package/types/modal/src/composition/use-esc.d.ts +0 -1
  235. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  236. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,108 +1,150 @@
1
- import { defineComponent as q, ref as T, onUnmounted as _, createVNode as S, createTextVNode as z, watch as G, inject as H, onMounted as Q } from "vue";
2
- import { cloneDeep as X } from "lodash-es";
3
- const Y = {}, J = {};
4
- function k(a) {
5
- const { properties: e, title: o, ignore: s } = a, c = s && Array.isArray(s), h = Object.keys(e).reduce((d, b) => ((!c || !s.find((j) => j == b)) && (d[b] = e[b].type === "object" && e[b].properties ? k(e[b]) : X(e[b].default)), d), {});
6
- return (!c || !s.find((d) => d == "id")) && (h.id = `${o}-${Date.now()}`), h;
1
+ var x = Object.defineProperty;
2
+ var K = (n, e, t) => e in n ? x(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var M = (n, e, t) => K(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { defineComponent as Y, ref as E, onUnmounted as J, createVNode as k, createTextVNode as Q, watch as I, inject as ee, onMounted as te } from "vue";
5
+ import { isPlainObject as _, cloneDeep as R } from "lodash-es";
6
+ const X = {}, Z = {};
7
+ function $(n) {
8
+ const { properties: e, title: t, ignore: r } = n, s = r && Array.isArray(r), l = Object.keys(e).reduce((u, m) => ((!s || !r.find((g) => g == m)) && (u[m] = e[m].type === "object" && e[m].properties ? $(e[m]) : R(e[m].default)), u), {});
9
+ return (!s || !r.find((u) => u == "id")) && (l.id = `${t}-${Date.now()}`), l;
7
10
  }
8
- function L(a, e = {}, o) {
9
- const s = Y[a];
10
- if (s) {
11
- let c = k(s);
12
- const h = J[a];
13
- return c = h ? h({ getSchemaByType: L }, c, e, o) : c, c;
11
+ function F(n, e = {}, t) {
12
+ const r = X[n];
13
+ if (r) {
14
+ let s = $(r);
15
+ const l = Z[n];
16
+ return s = l ? l({ getSchemaByType: F }, s, e, t) : s, s;
14
17
  }
15
18
  return null;
16
19
  }
17
- function Z(a, e) {
18
- const o = k(e);
19
- return Object.keys(a).reduce((s, c) => (s[c] && typeof s[c] == "object" ? Object.assign(s[c], a[c]) : s[c] = a[c], s), o), o;
20
+ function oe(n, e) {
21
+ const t = $(e);
22
+ return Object.keys(n).reduce((r, s) => (r[s] && _(r[s]) && _(n[s]) ? Object.assign(r[s], n[s]) : r[s] = n[s], r), t), t;
20
23
  }
21
- function R(a, e) {
22
- return Object.keys(a).filter((s) => a[s] != null).reduce((s, c) => {
23
- if (e.has(c)) {
24
- const h = e.get(c);
25
- if (typeof h == "string")
26
- s[h] = a[c];
24
+ function ne(n, e) {
25
+ return Object.keys(n).filter((r) => n[r] != null).reduce((r, s) => {
26
+ if (e.has(s)) {
27
+ const l = e.get(s);
28
+ if (typeof l == "string")
29
+ r[l] = n[s];
27
30
  else {
28
- const d = h(c, a[c], a);
29
- Object.assign(s, d);
31
+ const u = l(s, n[s], n);
32
+ Object.assign(r, u);
30
33
  }
31
34
  } else
32
- s[c] = a[c];
33
- return s;
35
+ r[s] = n[s];
36
+ return r;
34
37
  }, {});
35
38
  }
36
- function K(a, e, o = /* @__PURE__ */ new Map()) {
37
- const s = Z(a, e);
38
- return R(s, o);
39
+ function re(n, e, t = /* @__PURE__ */ new Map()) {
40
+ const r = oe(n, e);
41
+ return ne(r, t);
39
42
  }
40
- function x(a = {}) {
41
- function e(p, u, l, f) {
42
- if (typeof l == "number")
43
- return f[p].length === l;
44
- if (typeof l == "object") {
45
- const m = Object.keys(l)[0], n = l[m];
46
- if (m === "not")
47
- return Number(f[p].length) !== Number(n);
48
- if (m === "moreThan")
49
- return Number(f[p].length) >= Number(n);
50
- if (m === "lessThan")
51
- return Number(f[p].length) <= Number(n);
43
+ function ae(n = {}) {
44
+ function e(c, f, d, y) {
45
+ if (typeof d == "number")
46
+ return y[c].length === d;
47
+ if (typeof d == "object") {
48
+ const j = Object.keys(d)[0], i = d[j];
49
+ if (j === "not")
50
+ return Number(y[c].length) !== Number(i);
51
+ if (j === "moreThan")
52
+ return Number(y[c].length) >= Number(i);
53
+ if (j === "lessThan")
54
+ return Number(y[c].length) <= Number(i);
52
55
  }
53
56
  return !1;
54
57
  }
55
- function o(p, u, l, f) {
56
- return f[p] && f[p].propertyValue && String(f[p].propertyValue.value) === String(l);
58
+ function t(c, f, d, y) {
59
+ return y[c] && y[c].propertyValue && String(y[c].propertyValue.value) === String(d);
57
60
  }
58
- const s = /* @__PURE__ */ new Map([
61
+ const r = /* @__PURE__ */ new Map([
59
62
  ["length", e],
60
- ["getProperty", o]
63
+ ["getProperty", t]
61
64
  ]);
62
- Object.keys(a).reduce((p, u) => (p.set(u, a[u]), p), s);
63
- function c(p, u) {
64
- const l = p;
65
- return typeof u == "number" ? [{ target: l, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: l, operator: "getProperty", param: p, value: !!u }] : typeof u == "object" ? Object.keys(u).map((f) => {
66
- if (f === "length")
67
- return { target: l, operator: "length", param: null, value: u[f] };
68
- const m = f, n = u[f];
69
- return { target: l, operator: "getProperty", param: m, value: n };
65
+ Object.keys(n).reduce((c, f) => (c.set(f, n[f]), c), r);
66
+ function s(c, f) {
67
+ const d = c;
68
+ return typeof f == "number" ? [{ target: d, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: d, operator: "getProperty", param: c, value: !!f }] : typeof f == "object" ? Object.keys(f).map((y) => {
69
+ if (y === "length")
70
+ return { target: d, operator: "length", param: null, value: f[y] };
71
+ const j = y, i = f[y];
72
+ return { target: d, operator: "getProperty", param: j, value: i };
70
73
  }) : [];
71
74
  }
72
- function h(p) {
73
- return Object.keys(p).reduce((l, f) => {
74
- const m = c(f, p[f]);
75
- return l.push(...m), l;
75
+ function l(c) {
76
+ return Object.keys(c).reduce((d, y) => {
77
+ const j = s(y, c[y]);
78
+ return d.push(...j), d;
76
79
  }, []);
77
80
  }
78
- function d(p, u) {
79
- if (s.has(p.operator)) {
80
- const l = s.get(p.operator);
81
- return l && l(p.target, p.param, p.value, u) || !1;
81
+ function u(c, f) {
82
+ if (r.has(c.operator)) {
83
+ const d = r.get(c.operator);
84
+ return d && d(c.target, c.param, c.value, f) || !1;
82
85
  }
83
86
  return !1;
84
87
  }
85
- function b(p, u) {
86
- return h(p).reduce((m, n) => m && d(n, u), !0);
88
+ function m(c, f) {
89
+ return l(c).reduce((j, i) => j && u(i, f), !0);
87
90
  }
88
- function j(p, u) {
89
- const l = Object.keys(p), f = l.includes("allOf"), m = l.includes("anyOf"), n = f || m, r = (n ? p[n ? f ? "allOf" : "anyOf" : "allOf"] : [p]).map((g) => b(g, u));
90
- return f ? !r.includes(!1) : r.includes(!0);
91
+ function g(c, f) {
92
+ const d = Object.keys(c), y = d.includes("allOf"), j = d.includes("anyOf"), i = y || j, a = (i ? c[i ? y ? "allOf" : "anyOf" : "allOf"] : [c]).map((b) => m(b, f));
93
+ return y ? !a.includes(!1) : a.includes(!0);
91
94
  }
92
- return { parseValueSchema: j };
95
+ return { parseValueSchema: g };
93
96
  }
94
- const I = {}, ee = {};
95
- x();
96
- function te(a, e, o = /* @__PURE__ */ new Map(), s = (d, b, j) => b, c = {}, h = (d) => d) {
97
- return Y[e.title] = e, J[e.title] = s, I[e.title] = c, ee[e.title] = h, (d = {}) => {
98
- const b = K(d, e, o), j = Object.keys(a).reduce((p, u) => (p[u] = a[u].default, p), {});
99
- return Object.assign(j, b);
97
+ const ie = {
98
+ button: { type: "button", name: "按钮", icon: "Button" },
99
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
100
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
101
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
102
+ "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
103
+ textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
104
+ lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
105
+ "number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
106
+ "date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
107
+ switch: { type: "switch", name: "开关", icon: "SwitchField" },
108
+ "radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
109
+ "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
110
+ "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
111
+ "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
112
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
113
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
114
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
115
+ "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
116
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
117
+ "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
118
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
119
+ module: { type: "Module", name: "模块", icon: "Module" },
120
+ component: { type: "component", name: "组件", icon: "Component" },
121
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
122
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
123
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
124
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
125
+ section: { type: "section", name: "分组面板", icon: "Section" },
126
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
127
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
128
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
129
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
130
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
131
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
132
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
133
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
134
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
135
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
136
+ }, se = {}, ce = {};
137
+ ae();
138
+ function pe(n, e, t = /* @__PURE__ */ new Map(), r = (u, m, g) => m, s = {}, l = (u) => u) {
139
+ return X[e.title] = e, Z[e.title] = r, se[e.title] = s, ce[e.title] = l, (u = {}) => {
140
+ const m = re(u, e, t), g = Object.keys(n).reduce((c, f) => (c[f] = n[f].default, c), {});
141
+ return Object.assign(g, m);
100
142
  };
101
143
  }
102
- function oe(a, e) {
144
+ function le(n, e) {
103
145
  return { customClass: e.class, customStyle: e.style };
104
146
  }
105
- const ne = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-design.gitee.io/video.schema.json", ae = "video", ce = "A Farris Video Component", se = "object", pe = {
147
+ const ue = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-design.gitee.io/video.schema.json", fe = "video", ye = "A Farris Video Component", he = "object", me = {
106
148
  id: {
107
149
  description: "The unique identifier for a Video",
108
150
  type: "string"
@@ -130,24 +172,24 @@ const ne = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-
130
172
  type: "boolean",
131
173
  default: !0
132
174
  }
133
- }, ie = [
175
+ }, be = [
134
176
  "id",
135
177
  "type"
136
- ], le = {
137
- $schema: ne,
138
- $id: re,
139
- title: ae,
140
- description: ce,
141
- type: se,
142
- properties: pe,
143
- required: ie
144
- }, ue = /* @__PURE__ */ new Map([
145
- ["appearance", oe]
178
+ ], ge = {
179
+ $schema: ue,
180
+ $id: de,
181
+ title: fe,
182
+ description: ye,
183
+ type: he,
184
+ properties: me,
185
+ required: be
186
+ }, je = /* @__PURE__ */ new Map([
187
+ ["appearance", le]
146
188
  ]);
147
- function fe(a, e, o) {
189
+ function ve(n, e, t) {
148
190
  return e;
149
191
  }
150
- const de = "verify-detail", ye = "A Farris Component", he = "object", be = {
192
+ const Pe = "verify-detail", Ce = "A Farris Component", we = "object", Me = {
151
193
  basic: {
152
194
  description: "Basic Infomation",
153
195
  title: "基本信息",
@@ -169,12 +211,12 @@ const de = "verify-detail", ye = "A Farris Component", he = "object", be = {
169
211
  }
170
212
  }
171
213
  }
172
- }, ge = {
173
- title: de,
174
- description: ye,
175
- type: he,
176
- categories: be
177
- }, B = {
214
+ }, Ae = {
215
+ title: Pe,
216
+ description: Ce,
217
+ type: we,
218
+ categories: Me
219
+ }, L = {
178
220
  src: {
179
221
  type: String,
180
222
  required: !0,
@@ -211,206 +253,206 @@ const de = "verify-detail", ye = "A Farris Component", he = "object", be = {
211
253
  type: [String, Number],
212
254
  default: 168
213
255
  }
214
- }, W = te(B, le, ue, fe, ge);
215
- function me(a, e) {
216
- function o(t) {
217
- t.stopPropagation(), e.emit("abort");
256
+ }, z = pe(L, ge, je, ve, Ae);
257
+ function Te(n, e) {
258
+ function t(o) {
259
+ o.stopPropagation(), e.emit("abort");
218
260
  }
219
- function s(t) {
220
- t.stopPropagation(), e.emit("play");
261
+ function r(o) {
262
+ o.stopPropagation(), e.emit("play");
221
263
  }
222
- function c(t) {
223
- t.stopPropagation(), e.emit("pause");
264
+ function s(o) {
265
+ o.stopPropagation(), e.emit("pause");
224
266
  }
225
- function h(t) {
226
- t.stopPropagation(), e.emit("ended");
267
+ function l(o) {
268
+ o.stopPropagation(), e.emit("ended");
227
269
  }
228
- function d(t) {
229
- t.stopPropagation(), e.emit("durationchange");
270
+ function u(o) {
271
+ o.stopPropagation(), e.emit("durationchange");
230
272
  }
231
- function b(t) {
232
- t.stopPropagation(), e.emit("error");
273
+ function m(o) {
274
+ o.stopPropagation(), e.emit("error");
233
275
  }
234
- function j(t) {
235
- t.stopPropagation(), e.emit("loadeddata");
276
+ function g(o) {
277
+ o.stopPropagation(), e.emit("loadeddata");
236
278
  }
237
- function p(t) {
238
- t.stopPropagation(), e.emit("loadedmetadata");
279
+ function c(o) {
280
+ o.stopPropagation(), e.emit("loadedmetadata");
239
281
  }
240
- function u(t) {
241
- t.stopPropagation(), e.emit("loadstart");
282
+ function f(o) {
283
+ o.stopPropagation(), e.emit("loadstart");
242
284
  }
243
- function l(t) {
244
- t.stopPropagation(), e.emit("playing");
285
+ function d(o) {
286
+ o.stopPropagation(), e.emit("playing");
245
287
  }
246
- function f(t) {
247
- t.stopPropagation(), e.emit("progress");
288
+ function y(o) {
289
+ o.stopPropagation(), e.emit("progress");
248
290
  }
249
- function m(t) {
250
- t.stopPropagation(), e.emit("timeupdate");
291
+ function j(o) {
292
+ o.stopPropagation(), e.emit("timeupdate");
251
293
  }
252
- function n(t) {
253
- t.stopPropagation(), e.emit("volumechange");
294
+ function i(o) {
295
+ o.stopPropagation(), e.emit("volumechange");
254
296
  }
255
- function i(t) {
256
- t.stopPropagation(), e.emit("canplay");
297
+ function p(o) {
298
+ o.stopPropagation(), e.emit("canplay");
257
299
  }
258
300
  return {
259
- onAbort: o,
260
- onPlay: s,
261
- onPause: c,
262
- onEnded: h,
263
- onDurationchange: d,
264
- onError: b,
265
- onLoadeddata: j,
266
- onLoadedmetadata: p,
267
- onLoadstart: u,
268
- onPlaying: l,
269
- onProgress: f,
270
- onTimeupdate: m,
271
- onVolumechange: n,
272
- onCanplay: i
301
+ onAbort: t,
302
+ onPlay: r,
303
+ onPause: s,
304
+ onEnded: l,
305
+ onDurationchange: u,
306
+ onError: m,
307
+ onLoadeddata: g,
308
+ onLoadedmetadata: c,
309
+ onLoadstart: f,
310
+ onPlaying: d,
311
+ onProgress: y,
312
+ onTimeupdate: j,
313
+ onVolumechange: i,
314
+ onCanplay: p
273
315
  };
274
316
  }
275
- const M = /* @__PURE__ */ q({
317
+ const N = /* @__PURE__ */ Y({
276
318
  name: "FVideo",
277
- props: B,
319
+ props: L,
278
320
  emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
279
- setup(a, e) {
280
- const o = T(), {
281
- onAbort: s,
282
- onPlay: c,
283
- onPause: h,
284
- onEnded: d,
285
- onDurationchange: b,
286
- onError: j,
287
- onLoadeddata: p,
288
- onLoadedmetadata: u,
289
- onLoadstart: l,
290
- onPlaying: f,
291
- onProgress: m,
292
- onTimeupdate: n,
293
- onVolumechange: i,
294
- onCanplay: t
295
- } = me(a, e);
296
- return _(() => {
297
- }), () => S("video", {
298
- ref: o,
299
- src: a.src,
300
- autoplay: a.autoplay,
301
- controls: a.controls,
302
- loop: a.loop,
303
- muted: a.muted,
304
- width: a.width,
305
- height: a.height,
306
- poster: a.poster,
307
- onAbort: (r) => s(r),
308
- onPlay: (r) => c(r),
309
- onPause: (r) => h(r),
310
- onEnded: (r) => d(r),
311
- onDurationchange: (r) => b(r),
312
- onError: (r) => j(r),
313
- onLoadeddata: (r) => p(r),
314
- onLoadedmetadata: (r) => u(r),
315
- onLoadstart: (r) => l(r),
316
- onPlaying: (r) => f(r),
317
- onProgress: (r) => m(r),
318
- onTimeupdate: (r) => n(r),
319
- onVolumechange: (r) => i(r),
320
- onCanplay: (r) => t(r)
321
- }, [z("Your browser does not support the video tag.")]);
321
+ setup(n, e) {
322
+ const t = E(), {
323
+ onAbort: r,
324
+ onPlay: s,
325
+ onPause: l,
326
+ onEnded: u,
327
+ onDurationchange: m,
328
+ onError: g,
329
+ onLoadeddata: c,
330
+ onLoadedmetadata: f,
331
+ onLoadstart: d,
332
+ onPlaying: y,
333
+ onProgress: j,
334
+ onTimeupdate: i,
335
+ onVolumechange: p,
336
+ onCanplay: o
337
+ } = Te(n, e);
338
+ return J(() => {
339
+ }), () => k("video", {
340
+ ref: t,
341
+ src: n.src,
342
+ autoplay: n.autoplay,
343
+ controls: n.controls,
344
+ loop: n.loop,
345
+ muted: n.muted,
346
+ width: n.width,
347
+ height: n.height,
348
+ poster: n.poster,
349
+ onAbort: (a) => r(a),
350
+ onPlay: (a) => s(a),
351
+ onPause: (a) => l(a),
352
+ onEnded: (a) => u(a),
353
+ onDurationchange: (a) => m(a),
354
+ onError: (a) => g(a),
355
+ onLoadeddata: (a) => c(a),
356
+ onLoadedmetadata: (a) => f(a),
357
+ onLoadstart: (a) => d(a),
358
+ onPlaying: (a) => y(a),
359
+ onProgress: (a) => j(a),
360
+ onTimeupdate: (a) => i(a),
361
+ onVolumechange: (a) => p(a),
362
+ onCanplay: (a) => o(a)
363
+ }, [Q("Your browser does not support the video tag.")]);
322
364
  }
323
365
  });
324
- function je(a, e, o) {
325
- var O;
326
- function s() {
327
- o != null && o.resolveComponentContext && o.resolveComponentContext();
366
+ function Ee(n, e, t) {
367
+ var V;
368
+ function r() {
369
+ t != null && t.resolveComponentContext && t.resolveComponentContext();
328
370
  }
329
- s();
330
- const c = o && o.getStyles && o.getStyles() || "", h = o && o.getDesignerClass && o.getDesignerClass() || "", d = T();
331
- function b() {
332
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanMoveComponent ? o.checkCanMoveComponent() : !0;
371
+ r();
372
+ const s = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", u = E();
373
+ function m() {
374
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
333
375
  }
334
- function j() {
376
+ function g() {
335
377
  return !1;
336
378
  }
337
- function p() {
338
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanDeleteComponent ? o.checkCanDeleteComponent() : !0;
379
+ function c() {
380
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
339
381
  }
340
- function u() {
341
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : o && o.hideNestedPaddingInDesginerView ? o.hideNestedPaddingInDesginerView() : !1;
382
+ function f() {
383
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
342
384
  }
343
- function l(y) {
344
- if (!y || !y.value)
385
+ function d(h) {
386
+ if (!h || !h.value)
345
387
  return null;
346
- if (y.value.schema && y.value.schema.type === "component")
347
- return y.value;
348
- const w = T(y == null ? void 0 : y.value.parent), A = l(w);
349
- return A || null;
388
+ if (h.value.schema && h.value.schema.type === "component")
389
+ return h.value;
390
+ const P = E(h == null ? void 0 : h.value.parent), C = d(P);
391
+ return C || null;
350
392
  }
351
- function f(y = e) {
352
- const { componentInstance: w, designerItemElementRef: A } = y;
353
- return !w || !w.value ? null : w.value.canMove ? A : f(y.parent);
393
+ function y(h = e) {
394
+ const { componentInstance: P, designerItemElementRef: C } = h;
395
+ return !P || !P.value ? null : P.value.canMove ? C : y(h.parent);
354
396
  }
355
- function m(y) {
356
- return !!o && o.canAccepts(y);
397
+ function j(h) {
398
+ return !!t && t.canAccepts(h);
357
399
  }
358
- function n() {
400
+ function i() {
359
401
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
360
402
  }
361
- function i() {
403
+ function p() {
404
+ }
405
+ function o(h, P) {
406
+ P && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(P);
407
+ }
408
+ function a(h, P) {
409
+ const { componentType: C } = h;
410
+ let A = F(C, h, P);
411
+ t && t.onResolveNewComponentSchema && (A = t.onResolveNewComponentSchema(h, A));
412
+ const O = C.toLowerCase().replace("-", "_");
413
+ return A && !A.id && A.type === C && (A.id = `${O}_${Math.random().toString().slice(2, 6)}`), A;
414
+ }
415
+ function v(h, P) {
416
+ const C = String(h.getAttribute("data-controltype")), A = h.getAttribute("data-feature"), O = A ? JSON.parse(A) : {};
417
+ O.parentComponentInstance = u.value;
418
+ let T = F(C, O);
419
+ t && t.onAcceptNewChildElement && (T = t.onAcceptNewChildElement(h, P, T));
420
+ const D = C.toLowerCase().replace("-", "_");
421
+ return T && !T.id && T.type === C && (T.id = `${D}_${Math.random().toString().slice(2, 6)}`), T;
422
+ }
423
+ function b(h) {
362
424
  }
363
- function t(y, w) {
364
- w && o != null && o.onAcceptMovedChildElement && o.onAcceptMovedChildElement(w);
365
- }
366
- function r(y, w) {
367
- const { componentType: A } = y;
368
- let C = L(A, y, w);
369
- o && o.onResolveNewComponentSchema && (C = o.onResolveNewComponentSchema(y, C));
370
- const E = A.toLowerCase().replace("-", "_");
371
- return C && !C.id && C.type === A && (C.id = `${E}_${Math.random().toString().slice(2, 6)}`), C;
372
- }
373
- function P(y, w) {
374
- const A = String(y.getAttribute("data-controltype")), C = y.getAttribute("data-feature"), E = C ? JSON.parse(C) : {};
375
- E.parentComponentInstance = d.value;
376
- let D = L(A, E);
377
- o && o.onAcceptNewChildElement && (D = o.onAcceptNewChildElement(y, w, D));
378
- const N = A.toLowerCase().replace("-", "_");
379
- return D && !D.id && D.type === A && (D.id = `${N}_${Math.random().toString().slice(2, 6)}`), D;
380
- }
381
- function g(y) {
382
- }
383
- function v(...y) {
384
- if (o && o.getPropsConfig)
385
- return o.getPropsConfig(...y);
386
- }
387
- return d.value = {
388
- canMove: b(),
389
- canSelectParent: j(),
390
- canDelete: p(),
391
- canNested: !u(),
425
+ function w(...h) {
426
+ if (t && t.getPropsConfig)
427
+ return t.getPropsConfig(...h);
428
+ }
429
+ return u.value = {
430
+ canMove: m(),
431
+ canSelectParent: g(),
432
+ canDelete: c(),
433
+ canNested: !f(),
392
434
  contents: e == null ? void 0 : e.schema.contents,
393
- elementRef: a,
394
- parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
435
+ elementRef: n,
436
+ parent: (V = e == null ? void 0 : e.parent) == null ? void 0 : V.componentInstance,
395
437
  schema: e == null ? void 0 : e.schema,
396
- styles: c,
397
- designerClass: h,
398
- canAccepts: m,
399
- getBelongedComponentInstance: l,
400
- getDraggableDesignItemElement: f,
401
- getDraggingDisplayText: n,
402
- getPropConfig: v,
403
- getDragScopeElement: i,
404
- onAcceptMovedChildElement: t,
405
- onAcceptNewChildElement: P,
406
- onChildElementMovedOut: g,
407
- addNewChildComponentSchema: r,
408
- updateDragAndDropRules: s,
409
- triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved || T(!1),
410
- triggerBelongedComponentToDeleteWhenDeleted: !!o && o.triggerBelongedComponentToDeleteWhenDeleted || T(!1)
411
- }, d;
438
+ styles: s,
439
+ designerClass: l,
440
+ canAccepts: j,
441
+ getBelongedComponentInstance: d,
442
+ getDraggableDesignItemElement: y,
443
+ getDraggingDisplayText: i,
444
+ getPropConfig: w,
445
+ getDragScopeElement: p,
446
+ onAcceptMovedChildElement: o,
447
+ onAcceptNewChildElement: v,
448
+ onChildElementMovedOut: b,
449
+ addNewChildComponentSchema: a,
450
+ updateDragAndDropRules: r,
451
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || E(!1),
452
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || E(!1)
453
+ }, u;
412
454
  }
413
- const Pe = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-design.gitee.io/dragging-rules.schema.json", Ae = "Dragging Rules", we = "The rules of designer canvas", Ce = "object", De = {
455
+ const Ve = "https://json-schema.org/draft/2020-12/schema", Oe = "https://farris-design.gitee.io/dragging-rules.schema.json", De = "Dragging Rules", Se = "The rules of designer canvas", Ne = "object", Be = {
414
456
  "f-page": {
415
457
  description: "The root class of page designed by farris.",
416
458
  type: "object",
@@ -1048,212 +1090,350 @@ const Pe = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
1048
1090
  description: "",
1049
1091
  type: "object"
1050
1092
  }
1051
- }, Oe = {
1052
- $schema: Pe,
1053
- $id: ve,
1054
- title: Ae,
1055
- description: we,
1056
- type: Ce,
1057
- properties: De
1058
- }, $ = /* @__PURE__ */ new Map();
1059
- function Te() {
1060
- function a(n, i, t, r) {
1061
- var P;
1062
- if (typeof t == "number")
1063
- return ((P = r[n]) == null ? void 0 : P.length) === t;
1064
- if (typeof t == "object") {
1065
- const g = Object.keys(t)[0], v = t[g];
1066
- if (g === "not")
1067
- return Number(r[n].length) !== Number(v);
1068
- if (g === "moreThan")
1069
- return Number(r[n].length) >= Number(v);
1070
- if (g === "lessThan")
1071
- return Number(r[n].length) <= Number(v);
1093
+ }, ke = {
1094
+ $schema: Ve,
1095
+ $id: Oe,
1096
+ title: De,
1097
+ description: Se,
1098
+ type: Ne,
1099
+ properties: Be
1100
+ }, B = /* @__PURE__ */ new Map();
1101
+ function Fe() {
1102
+ function n(i, p, o, a) {
1103
+ var v;
1104
+ if (typeof o == "number")
1105
+ return ((v = a[i]) == null ? void 0 : v.length) === o;
1106
+ if (typeof o == "object") {
1107
+ const b = Object.keys(o)[0], w = o[b];
1108
+ if (b === "not")
1109
+ return Number(a[i].length) !== Number(w);
1110
+ if (b === "moreThan")
1111
+ return Number(a[i].length) >= Number(w);
1112
+ if (b === "lessThan")
1113
+ return Number(a[i].length) <= Number(w);
1072
1114
  }
1073
1115
  return !1;
1074
1116
  }
1075
- function e(n, i, t, r) {
1076
- return typeof t == "boolean" ? r.childrenClassList.includes(i) === !!t : !1;
1117
+ function e(i, p, o, a) {
1118
+ return typeof o == "boolean" ? a.childrenClassList.includes(p) === !!o : !1;
1077
1119
  }
1078
- function o(n, i, t, r) {
1079
- return typeof t == "boolean" ? r.parentClassList.includes(i) === !!t : !1;
1120
+ function t(i, p, o, a) {
1121
+ return typeof o == "boolean" ? a.parentClassList.includes(p) === !!o : !1;
1080
1122
  }
1081
- function s(n, i, t, r) {
1082
- return typeof t == "boolean" ? r.parentClassList.includes(i) === !!t : !1;
1123
+ function r(i, p, o, a) {
1124
+ return typeof o == "boolean" ? a.parentClassList.includes(p) === !!o : !1;
1083
1125
  }
1084
- const c = /* @__PURE__ */ new Map([
1085
- ["length", a],
1126
+ const s = /* @__PURE__ */ new Map([
1127
+ ["length", n],
1086
1128
  ["hasChildren", e],
1087
- ["hasSibling", s],
1088
- ["hasParent", o]
1129
+ ["hasSibling", r],
1130
+ ["hasParent", t]
1089
1131
  ]);
1090
- function h(n, i) {
1091
- const t = n;
1092
- return typeof i == "number" ? [{ target: t, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((r) => {
1093
- if (r === "length")
1094
- return { target: t, operator: "length", param: null, value: i[r] };
1095
- const P = r, g = i[r];
1096
- return { target: t, operator: n === "children" ? "hasChildren" : n === "parent" ? "hasParent" : "hasSibling", param: P, value: g };
1132
+ function l(i, p) {
1133
+ const o = i;
1134
+ return typeof p == "number" ? [{ target: o, operator: "length", param: null, value: Number(p) }] : typeof p == "object" ? Object.keys(p).map((a) => {
1135
+ if (a === "length")
1136
+ return { target: o, operator: "length", param: null, value: p[a] };
1137
+ const v = a, b = p[a];
1138
+ return { target: o, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: v, value: b };
1097
1139
  }) : [];
1098
1140
  }
1099
- function d(n, i) {
1100
- if (c.has(n.operator)) {
1101
- const t = c.get(n.operator);
1102
- return t && t(n.target, n.param, n.value, i) || !1;
1141
+ function u(i, p) {
1142
+ if (s.has(i.operator)) {
1143
+ const o = s.get(i.operator);
1144
+ return o && o(i.target, i.param, i.value, p) || !1;
1103
1145
  }
1104
1146
  return !1;
1105
1147
  }
1106
- function b(n, i) {
1107
- return Object.keys(n).reduce((g, v) => {
1108
- const O = h(v, n[v]);
1109
- return g.push(...O), g;
1110
- }, []).reduce((g, v) => g && d(v, i), !0);
1111
- }
1112
- function j(n, i) {
1113
- const t = Object.keys(n), r = t.includes("allOf"), P = t.includes("anyOf"), g = r || P, y = (g ? n[g ? r ? "allOf" : "anyOf" : "allOf"] : [n]).map((A) => b(A, i));
1114
- return r ? !y.includes(!1) : y.includes(!0);
1115
- }
1116
- function p(n, i) {
1117
- const t = n.const;
1118
- return t ? typeof t == "boolean" ? t : typeof t == "object" ? j(t, i) : !1 : !1;
1119
- }
1120
- function u(n) {
1121
- return (i) => {
1122
- const t = { canAccept: !0, fixed: !1, hidePadding: !1 };
1123
- return n && n.properties && Object.keys(n.properties).reduce((r, P) => {
1124
- const g = n.properties[P];
1125
- return r[P] = p(g, i), r;
1126
- }, t), t;
1148
+ function m(i, p) {
1149
+ return Object.keys(i).reduce((b, w) => {
1150
+ const V = l(w, i[w]);
1151
+ return b.push(...V), b;
1152
+ }, []).reduce((b, w) => b && u(w, p), !0);
1153
+ }
1154
+ function g(i, p) {
1155
+ const o = Object.keys(i), a = o.includes("allOf"), v = o.includes("anyOf"), b = a || v, h = (b ? i[b ? a ? "allOf" : "anyOf" : "allOf"] : [i]).map((C) => m(C, p));
1156
+ return a ? !h.includes(!1) : h.includes(!0);
1157
+ }
1158
+ function c(i, p) {
1159
+ const o = i.const;
1160
+ return o ? typeof o == "boolean" ? o : typeof o == "object" ? g(o, p) : !1 : !1;
1161
+ }
1162
+ function f(i) {
1163
+ return (p) => {
1164
+ const o = { canAccept: !0, fixed: !1, hidePadding: !1 };
1165
+ return i && i.properties && Object.keys(i.properties).reduce((a, v) => {
1166
+ const b = i.properties[v];
1167
+ return a[v] = c(b, p), a;
1168
+ }, o), o;
1127
1169
  };
1128
1170
  }
1129
- function l(n, i, t) {
1130
- if (i.type === "object" && i.properties) {
1131
- const { rules: r, contents: P } = i.properties;
1132
- t.set(n, u(r)), P && Object.keys(P.properties).forEach(
1133
- (g) => l(g, P.properties[g], t)
1171
+ function d(i, p, o) {
1172
+ if (p.type === "object" && p.properties) {
1173
+ const { rules: a, contents: v } = p.properties;
1174
+ o.set(i, f(a)), v && Object.keys(v.properties).forEach(
1175
+ (b) => d(b, v.properties[b], o)
1134
1176
  );
1135
1177
  }
1136
1178
  }
1137
- function f() {
1138
- const { properties: n } = Oe;
1139
- Object.keys(n).forEach((i) => {
1140
- l(i, n[i], $);
1179
+ function y() {
1180
+ const { properties: i } = ke;
1181
+ Object.keys(i).forEach((p) => {
1182
+ d(p, i[p], B);
1141
1183
  });
1142
1184
  }
1143
- function m(n, i) {
1144
- const t = { canAccept: !0, fixed: !1, hidePadding: !0 };
1145
- return $.has(n) ? $.get(n)(i) : t;
1185
+ function j(i, p) {
1186
+ const o = { canAccept: !0, fixed: !1, hidePadding: !0 };
1187
+ return B.has(i) ? B.get(i)(p) : o;
1146
1188
  }
1147
- return f(), { getRuleValue: m };
1189
+ return y(), { getRuleValue: j };
1148
1190
  }
1149
- function Ee(a) {
1150
- const e = Te();
1151
- let o = !1, s, c = !1;
1152
- const h = !1;
1153
- function d() {
1191
+ class $e {
1192
+ constructor(e, t) {
1193
+ M(this, "componentId");
1194
+ M(this, "viewModelId");
1195
+ M(this, "eventsEditorUtils");
1196
+ M(this, "formSchemaUtils");
1197
+ M(this, "formMetadataConverter");
1198
+ M(this, "designViewModelUtils");
1199
+ M(this, "designViewModelField");
1200
+ M(this, "controlCreatorUtils");
1201
+ M(this, "designerHostService");
1202
+ M(this, "schemaService", null);
1203
+ M(this, "metadataService", null);
1204
+ M(this, "propertyConfig", {
1205
+ type: "object",
1206
+ categories: {}
1207
+ });
1208
+ var r;
1209
+ this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
1210
+ }
1211
+ getTableInfo() {
1212
+ var e;
1213
+ return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
1214
+ }
1215
+ setDesignViewModelField(e) {
1216
+ const t = e.binding && e.binding.type === "Form" && e.binding.field;
1217
+ if (t) {
1218
+ if (!this.designViewModelField) {
1219
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1220
+ this.designViewModelField = r.fields.find((s) => s.id === t);
1221
+ }
1222
+ e.updateOn = this.designViewModelField.updateOn;
1223
+ }
1224
+ }
1225
+ changeFieldEditorType(e, t) {
1226
+ }
1227
+ getBasicPropConfig(e) {
1228
+ return {
1229
+ description: "Basic Information",
1230
+ title: "基本信息",
1231
+ properties: {
1232
+ id: {
1233
+ description: "组件标识",
1234
+ title: "标识",
1235
+ type: "string",
1236
+ readonly: !0
1237
+ },
1238
+ type: {
1239
+ description: "组件类型",
1240
+ title: "控件类型",
1241
+ type: "select",
1242
+ editor: {
1243
+ type: "combo-list",
1244
+ textField: "name",
1245
+ valueField: "value",
1246
+ data: [{ value: e.type, name: ie[e.type].name }]
1247
+ }
1248
+ }
1249
+ }
1250
+ };
1251
+ }
1252
+ getAppearanceConfig(e = null) {
1253
+ return {
1254
+ title: "样式",
1255
+ description: "Appearance",
1256
+ properties: {
1257
+ class: {
1258
+ title: "class样式",
1259
+ type: "string",
1260
+ description: "组件的CSS样式",
1261
+ $converter: "/converter/appearance.converter"
1262
+ },
1263
+ style: {
1264
+ title: "style样式",
1265
+ type: "string",
1266
+ description: "组件的样式",
1267
+ $converter: "/converter/appearance.converter"
1268
+ }
1269
+ }
1270
+ };
1271
+ }
1272
+ /**
1273
+ *
1274
+ * @param propertyId
1275
+ * @param componentInstance
1276
+ * @returns
1277
+ */
1278
+ updateElementByParentContainer(e, t) {
1279
+ const r = t && t.parent && t.parent.schema;
1280
+ if (!r)
1281
+ return;
1282
+ const s = r.contents.findIndex((u) => u.id === e), l = R(r.contents[s]);
1283
+ r.contents.splice(s, 1), r.contents.splice(s, 0, l);
1284
+ }
1285
+ }
1286
+ class Le extends $e {
1287
+ constructor(e, t) {
1288
+ super(e, t);
1289
+ }
1290
+ getPropertyConfig(e) {
1291
+ return this.propertyConfig.categories.basic = this.getBasicPropConfig(e), this.propertyConfig.categories.appearance = this.getAppearanceConfig(e), this.getEventPropConfig(e), this.propertyConfig;
1292
+ }
1293
+ getEventPropConfig(e) {
1294
+ const t = [
1295
+ {
1296
+ label: "onInit",
1297
+ name: "初始化事件"
1298
+ },
1299
+ {
1300
+ label: "onAfterViewInit",
1301
+ name: "视图初始化后事件"
1302
+ }
1303
+ ];
1304
+ var r = this;
1305
+ const s = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), l = {};
1306
+ l[r.viewModelId] = {
1307
+ type: "events-editor",
1308
+ editor: {
1309
+ initialData: s
1310
+ }
1311
+ }, this.propertyConfig.categories.eventsEditor = {
1312
+ title: "事件",
1313
+ hideTitle: !0,
1314
+ properties: l,
1315
+ // 这个属性,标记当属性变更得时候触发重新更新属性
1316
+ refreshPanelAfterChanged: !0,
1317
+ tabId: "commands",
1318
+ tabName: "交互",
1319
+ setPropertyRelates(u, m) {
1320
+ const g = u.propertyValue;
1321
+ delete e[r.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, g.events, g));
1322
+ }
1323
+ };
1324
+ }
1325
+ }
1326
+ function Ue(n, e) {
1327
+ const t = Fe();
1328
+ let r = !1, s, l = !1;
1329
+ const u = !1, m = n.schema;
1330
+ function g() {
1154
1331
  return !1;
1155
1332
  }
1156
- function b() {
1157
- return h || !c;
1333
+ function c() {
1334
+ return u || !l;
1158
1335
  }
1159
- function j() {
1160
- return !c;
1336
+ function f() {
1337
+ return !l;
1161
1338
  }
1162
- function p() {
1163
- var E, D;
1164
- c = !1;
1165
- const l = a.schema, f = l.appearance && l.appearance.class || "", m = f.split(" "), n = l.contents || [], i = n.length ? n[0] : null, t = i && i.appearance ? i.appearance.class : "", r = t ? t.split(" ") : [], P = n.length ? n.reduce((N, V) => {
1166
- const F = V && V.appearance ? V.appearance.class : "", U = F ? F.split(" ") : [];
1167
- return N.push(...U), N;
1339
+ function d() {
1340
+ var U, G;
1341
+ l = !1;
1342
+ const i = n.schema, p = i.appearance && i.appearance.class || "", o = p.split(" "), a = i.contents || [], v = a.length ? a[0] : null, b = v && v.appearance ? v.appearance.class : "", w = b ? b.split(" ") : [], V = a.length ? a.reduce((W, S) => {
1343
+ const q = S && S.appearance ? S.appearance.class : "", H = q ? q.split(" ") : [];
1344
+ return W.push(...H), W;
1168
1345
  }, []) : [];
1169
- if (((D = (E = a.parent) == null ? void 0 : E.schema) == null ? void 0 : D.type) !== "component-ref") {
1170
- o = !0, c = !0;
1346
+ if (((G = (U = n.parent) == null ? void 0 : U.schema) == null ? void 0 : G.type) !== "component-ref") {
1347
+ r = !0, l = !0;
1171
1348
  return;
1172
1349
  }
1173
- const g = a.parent.parent, v = g && g.schema, O = v && v.appearance ? v.appearance.class : "", y = O ? O.split(" ") : [];
1350
+ const h = n.parent.parent, P = h && h.schema, C = P && P.appearance ? P.appearance.class : "", A = C ? C.split(" ") : [];
1174
1351
  s = {
1175
- componentClass: f,
1176
- componentClassList: m,
1177
- childContents: n,
1178
- firstChildContent: i,
1179
- firstChildClass: t,
1180
- firstChildClassList: r,
1181
- parent: v,
1182
- parentClass: O,
1183
- parentClassList: y,
1184
- children: n,
1185
- childrenClassList: P
1352
+ componentClass: p,
1353
+ componentClassList: o,
1354
+ childContents: a,
1355
+ firstChildContent: v,
1356
+ firstChildClass: b,
1357
+ firstChildClassList: w,
1358
+ parent: P,
1359
+ parentClass: C,
1360
+ parentClassList: A,
1361
+ children: a,
1362
+ childrenClassList: V
1186
1363
  };
1187
- const { canAccept: w, fixed: A, hidePadding: C } = e.getRuleValue(m[0], s);
1188
- o = C, c = A;
1364
+ const { canAccept: O, fixed: T, hidePadding: D } = t.getRuleValue(o[0], s);
1365
+ r = D, l = T;
1366
+ }
1367
+ function y() {
1368
+ return r;
1189
1369
  }
1190
- function u() {
1191
- return o;
1370
+ function j(i) {
1371
+ return new Le(i, e).getPropertyConfig(m);
1192
1372
  }
1193
- return { canAccepts: d, checkCanDeleteComponent: b, checkCanMoveComponent: j, resolveComponentContext: p, hideNestedPaddingInDesginerView: u };
1373
+ return { canAccepts: g, checkCanDeleteComponent: c, checkCanMoveComponent: f, resolveComponentContext: d, hideNestedPaddingInDesginerView: y, getPropsConfig: j };
1194
1374
  }
1195
- function Ne(a, e) {
1196
- const o = T(a.width), s = T(a.height);
1197
- let c;
1198
- G(e, (d) => {
1199
- d && (o.value = d.clientWidth, c = new ResizeObserver((b) => {
1200
- if (!b || b.length < 1)
1375
+ function Ge(n, e) {
1376
+ const t = E(n.width), r = E(n.height);
1377
+ let s;
1378
+ I(e, (u) => {
1379
+ u && (t.value = u.clientWidth, s = new ResizeObserver((m) => {
1380
+ if (!m || m.length < 1)
1201
1381
  return;
1202
- const p = b[0].contentRect;
1203
- p && (o.value = p.width);
1204
- }), c.observe(d));
1382
+ const c = m[0].contentRect;
1383
+ c && (t.value = c.width);
1384
+ }), s.observe(u));
1205
1385
  });
1206
- function h() {
1207
- c && c.disconnect();
1386
+ function l() {
1387
+ s && s.disconnect();
1208
1388
  }
1209
1389
  return {
1210
- destory: h,
1211
- width: o,
1212
- height: s
1390
+ destory: l,
1391
+ width: t,
1392
+ height: r
1213
1393
  };
1214
1394
  }
1215
- const Ve = /* @__PURE__ */ q({
1395
+ const We = /* @__PURE__ */ Y({
1216
1396
  name: "FVideoDesign",
1217
- props: B,
1218
- setup(a, e) {
1219
- var p;
1220
- const o = T(), s = H("design-item-context"), c = Ee(s.schema, (p = s.parent) == null ? void 0 : p.schema), h = je(o, s, c), {
1221
- width: d,
1222
- height: b,
1223
- destory: j
1224
- } = Ne(a, o);
1225
- return Q(() => {
1226
- o.value.componentInstance = h;
1227
- }), _(() => {
1228
- j();
1229
- }), e.expose(h.value), () => S("div", {
1230
- ref: o,
1397
+ props: L,
1398
+ setup(n, e) {
1399
+ var c;
1400
+ const t = E(), r = ee("design-item-context"), s = Ue(r.schema, (c = r.parent) == null ? void 0 : c.schema), l = Ee(t, r, s), {
1401
+ width: u,
1402
+ height: m,
1403
+ destory: g
1404
+ } = Ge(n, t);
1405
+ return te(() => {
1406
+ t.value.componentInstance = l;
1407
+ }), J(() => {
1408
+ g();
1409
+ }), e.expose(l.value), () => k("div", {
1410
+ ref: t,
1231
1411
  class: "drag-container",
1232
- "data-dragref": `${s.schema.id}-container`
1233
- }, [S("video", {
1234
- src: a.src,
1235
- autoplay: a.autoplay,
1236
- controls: a.controls,
1237
- loop: a.loop,
1238
- muted: a.muted,
1239
- width: d.value,
1240
- height: b.value
1241
- }, [z("Your browser does not support the video tag.")])]);
1242
- }
1243
- }), Se = {
1244
- install(a) {
1245
- a.component(M.name, M);
1412
+ "data-dragref": `${r.schema.id}-container`
1413
+ }, [k("video", {
1414
+ src: n.src,
1415
+ autoplay: n.autoplay,
1416
+ controls: n.controls,
1417
+ loop: n.loop,
1418
+ muted: n.muted,
1419
+ width: u.value,
1420
+ height: m.value
1421
+ }, [Q("Your browser does not support the video tag.")])]);
1422
+ }
1423
+ }), Ye = {
1424
+ install(n) {
1425
+ n.component(N.name, N);
1246
1426
  },
1247
- register(a, e, o, s) {
1248
- a.video = M, e.video = W;
1427
+ register(n, e, t, r) {
1428
+ n.video = N, e.video = z;
1249
1429
  },
1250
- registerDesigner(a, e, o) {
1251
- a.video = Ve, e.video = W;
1430
+ registerDesigner(n, e, t) {
1431
+ n.video = We, e.video = z;
1252
1432
  }
1253
1433
  };
1254
1434
  export {
1255
- M as FVideo,
1256
- Se as default,
1257
- W as propsResolver,
1258
- B as videoProps
1435
+ N as FVideo,
1436
+ Ye as default,
1437
+ z as propsResolver,
1438
+ L as videoProps
1259
1439
  };