@farris/ui-vue 1.2.7 → 1.2.9

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 (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,108 +1,108 @@
1
- import { defineComponent as F, ref as O, onUnmounted as q, createVNode as S, createTextVNode as W, watch as J, inject as U, onMounted as G } from "vue";
2
- import { cloneDeep as H } from "lodash-es";
3
- const _ = {}, z = {};
4
- function L(a) {
5
- const { properties: e, title: o } = a, p = Object.keys(e).reduce((i, d) => (i[d] = e[d].type === "object" && e[d].properties ? L(e[d]) : H(e[d].default), i), {});
6
- return p.id = `${o}-${Date.now()}`, p;
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;
7
7
  }
8
- function $(a, e = {}) {
9
- const o = _[a];
10
- if (o) {
11
- let p = L(o);
12
- const i = z[a];
13
- return p = i ? i({ getSchemaByType: $ }, p, e) : p, p;
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;
14
14
  }
15
15
  return null;
16
16
  }
17
- function Q(a, e) {
18
- const o = L(e);
19
- return Object.keys(a).reduce((p, i) => (p[i] = a[i], p), o), o;
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
20
  }
21
- function X(a, e) {
22
- return Object.keys(a).filter((p) => a[p] != null).reduce((p, i) => {
23
- if (e.has(i)) {
24
- const d = e.get(i);
25
- if (typeof d == "string")
26
- p[d] = a[i];
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];
27
27
  else {
28
- const h = d(i, a[i], a);
29
- Object.assign(p, h);
28
+ const d = h(c, a[c], a);
29
+ Object.assign(s, d);
30
30
  }
31
31
  } else
32
- p[i] = a[i];
33
- return p;
32
+ s[c] = a[c];
33
+ return s;
34
34
  }, {});
35
35
  }
36
- function Z(a, e, o = /* @__PURE__ */ new Map()) {
37
- const p = Q(a, e);
38
- return X(p, o);
36
+ function K(a, e, o = /* @__PURE__ */ new Map()) {
37
+ const s = Z(a, e);
38
+ return R(s, o);
39
39
  }
40
- function K(a = {}) {
41
- function e(c, f, l, u) {
40
+ function x(a = {}) {
41
+ function e(p, u, l, f) {
42
42
  if (typeof l == "number")
43
- return u[c].length === l;
43
+ return f[p].length === l;
44
44
  if (typeof l == "object") {
45
- const g = Object.keys(l)[0], r = l[g];
46
- if (g === "not")
47
- return Number(u[c].length) !== Number(r);
48
- if (g === "moreThan")
49
- return Number(u[c].length) >= Number(r);
50
- if (g === "lessThan")
51
- return Number(u[c].length) <= Number(r);
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);
52
52
  }
53
53
  return !1;
54
54
  }
55
- function o(c, f, l, u) {
56
- return u[c] && u[c].propertyValue && String(u[c].propertyValue.value) === String(l);
55
+ function o(p, u, l, f) {
56
+ return f[p] && f[p].propertyValue && String(f[p].propertyValue.value) === String(l);
57
57
  }
58
- const p = /* @__PURE__ */ new Map([
58
+ const s = /* @__PURE__ */ new Map([
59
59
  ["length", e],
60
60
  ["getProperty", o]
61
61
  ]);
62
- Object.keys(a).reduce((c, f) => (c.set(f, a[f]), c), p);
63
- function i(c, f) {
64
- const l = c;
65
- return typeof f == "number" ? [{ target: l, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: l, operator: "getProperty", param: c, value: !!f }] : typeof f == "object" ? Object.keys(f).map((u) => {
66
- if (u === "length")
67
- return { target: l, operator: "length", param: null, value: f[u] };
68
- const g = u, r = f[u];
69
- return { target: l, operator: "getProperty", param: g, value: r };
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 };
70
70
  }) : [];
71
71
  }
72
- function d(c) {
73
- return Object.keys(c).reduce((l, u) => {
74
- const g = i(u, c[u]);
75
- return l.push(...g), l;
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;
76
76
  }, []);
77
77
  }
78
- function h(c, f) {
79
- if (p.has(c.operator)) {
80
- const l = p.get(c.operator);
81
- return l && l(c.target, c.param, c.value, f) || !1;
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;
82
82
  }
83
83
  return !1;
84
84
  }
85
- function m(c, f) {
86
- return d(c).reduce((g, r) => g && h(r, f), !0);
85
+ function b(p, u) {
86
+ return h(p).reduce((m, n) => m && d(n, u), !0);
87
87
  }
88
- function v(c, f) {
89
- const l = Object.keys(c), u = l.includes("allOf"), g = l.includes("anyOf"), r = u || g, n = (r ? c[r ? u ? "allOf" : "anyOf" : "allOf"] : [c]).map((b) => m(b, f));
90
- return u ? !n.includes(!1) : n.includes(!0);
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
91
  }
92
- return { parseValueSchema: v };
92
+ return { parseValueSchema: j };
93
93
  }
94
- const R = {}, x = {};
95
- K();
96
- function I(a, e, o = /* @__PURE__ */ new Map(), p = (h, m, v) => m, i = {}, d = (h) => h) {
97
- return _[e.title] = e, z[e.title] = p, R[e.title] = i, x[e.title] = d, (h = {}) => {
98
- const m = Z(h, e, o), v = Object.keys(a).reduce((c, f) => (c[f] = a[f].default, c), {});
99
- return Object.assign(v, m);
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);
100
100
  };
101
101
  }
102
- function ee(a, e) {
102
+ function oe(a, e) {
103
103
  return { customClass: e.class, customStyle: e.style };
104
104
  }
105
- const te = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-design.gitee.io/video.schema.json", ne = "video", re = "A Farris Video Component", ae = "object", ce = {
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 = {
106
106
  id: {
107
107
  description: "The unique identifier for a Video",
108
108
  type: "string"
@@ -130,24 +130,24 @@ const te = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
130
130
  type: "boolean",
131
131
  default: !0
132
132
  }
133
- }, se = [
133
+ }, ie = [
134
134
  "id",
135
135
  "type"
136
- ], pe = {
137
- $schema: te,
138
- $id: oe,
139
- title: ne,
140
- description: re,
141
- type: ae,
142
- properties: ce,
143
- required: se
144
- }, ie = /* @__PURE__ */ new Map([
145
- ["appearance", ee]
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]
146
146
  ]);
147
- function le(a, e, o) {
147
+ function fe(a, e, o) {
148
148
  return e;
149
149
  }
150
- const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
150
+ const de = "verify-detail", ye = "A Farris Component", he = "object", be = {
151
151
  basic: {
152
152
  description: "Basic Infomation",
153
153
  title: "基本信息",
@@ -169,12 +169,12 @@ const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
169
169
  }
170
170
  }
171
171
  }
172
- }, he = {
173
- title: ue,
174
- description: fe,
175
- type: de,
176
- categories: ye
177
- }, k = {
172
+ }, ge = {
173
+ title: de,
174
+ description: ye,
175
+ type: he,
176
+ categories: be
177
+ }, B = {
178
178
  src: {
179
179
  type: String,
180
180
  required: !0,
@@ -211,89 +211,89 @@ const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
211
211
  type: [String, Number],
212
212
  default: 168
213
213
  }
214
- }, B = I(k, pe, ie, le, he);
215
- function be(a, e) {
214
+ }, W = te(B, le, ue, fe, ge);
215
+ function me(a, e) {
216
216
  function o(t) {
217
217
  t.stopPropagation(), e.emit("abort");
218
218
  }
219
- function p(t) {
219
+ function s(t) {
220
220
  t.stopPropagation(), e.emit("play");
221
221
  }
222
- function i(t) {
222
+ function c(t) {
223
223
  t.stopPropagation(), e.emit("pause");
224
224
  }
225
- function d(t) {
225
+ function h(t) {
226
226
  t.stopPropagation(), e.emit("ended");
227
227
  }
228
- function h(t) {
228
+ function d(t) {
229
229
  t.stopPropagation(), e.emit("durationchange");
230
230
  }
231
- function m(t) {
231
+ function b(t) {
232
232
  t.stopPropagation(), e.emit("error");
233
233
  }
234
- function v(t) {
234
+ function j(t) {
235
235
  t.stopPropagation(), e.emit("loadeddata");
236
236
  }
237
- function c(t) {
237
+ function p(t) {
238
238
  t.stopPropagation(), e.emit("loadedmetadata");
239
239
  }
240
- function f(t) {
240
+ function u(t) {
241
241
  t.stopPropagation(), e.emit("loadstart");
242
242
  }
243
243
  function l(t) {
244
244
  t.stopPropagation(), e.emit("playing");
245
245
  }
246
- function u(t) {
246
+ function f(t) {
247
247
  t.stopPropagation(), e.emit("progress");
248
248
  }
249
- function g(t) {
249
+ function m(t) {
250
250
  t.stopPropagation(), e.emit("timeupdate");
251
251
  }
252
- function r(t) {
252
+ function n(t) {
253
253
  t.stopPropagation(), e.emit("volumechange");
254
254
  }
255
- function s(t) {
255
+ function i(t) {
256
256
  t.stopPropagation(), e.emit("canplay");
257
257
  }
258
258
  return {
259
259
  onAbort: o,
260
- onPlay: p,
261
- onPause: i,
262
- onEnded: d,
263
- onDurationchange: h,
264
- onError: m,
265
- onLoadeddata: v,
266
- onLoadedmetadata: c,
267
- onLoadstart: f,
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
268
  onPlaying: l,
269
- onProgress: u,
270
- onTimeupdate: g,
271
- onVolumechange: r,
272
- onCanplay: s
269
+ onProgress: f,
270
+ onTimeupdate: m,
271
+ onVolumechange: n,
272
+ onCanplay: i
273
273
  };
274
274
  }
275
- const V = /* @__PURE__ */ F({
275
+ const M = /* @__PURE__ */ q({
276
276
  name: "FVideo",
277
- props: k,
277
+ props: B,
278
278
  emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
279
279
  setup(a, e) {
280
- const o = O(), {
281
- onAbort: p,
282
- onPlay: i,
283
- onPause: d,
284
- onEnded: h,
285
- onDurationchange: m,
286
- onError: v,
287
- onLoadeddata: c,
288
- onLoadedmetadata: f,
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
289
  onLoadstart: l,
290
- onPlaying: u,
291
- onProgress: g,
292
- onTimeupdate: r,
293
- onVolumechange: s,
290
+ onPlaying: f,
291
+ onProgress: m,
292
+ onTimeupdate: n,
293
+ onVolumechange: i,
294
294
  onCanplay: t
295
- } = be(a, e);
296
- return q(() => {
295
+ } = me(a, e);
296
+ return _(() => {
297
297
  }), () => S("video", {
298
298
  ref: o,
299
299
  src: a.src,
@@ -304,40 +304,40 @@ const V = /* @__PURE__ */ F({
304
304
  width: a.width,
305
305
  height: a.height,
306
306
  poster: a.poster,
307
- onAbort: (n) => p(n),
308
- onPlay: (n) => i(n),
309
- onPause: (n) => d(n),
310
- onEnded: (n) => h(n),
311
- onDurationchange: (n) => m(n),
312
- onError: (n) => v(n),
313
- onLoadeddata: (n) => c(n),
314
- onLoadedmetadata: (n) => f(n),
315
- onLoadstart: (n) => l(n),
316
- onPlaying: (n) => u(n),
317
- onProgress: (n) => g(n),
318
- onTimeupdate: (n) => r(n),
319
- onVolumechange: (n) => s(n),
320
- onCanplay: (n) => t(n)
321
- }, [W("Your browser does not support the video tag.")]);
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.")]);
322
322
  }
323
323
  });
324
- function ge(a, e, o) {
325
- var D;
326
- function p() {
324
+ function je(a, e, o) {
325
+ var O;
326
+ function s() {
327
327
  o != null && o.resolveComponentContext && o.resolveComponentContext();
328
328
  }
329
- p();
330
- const i = o && o.getStyles && o.getStyles() || "", d = o && o.getDesignerClass && o.getDesignerClass() || "", h = O();
331
- function m() {
329
+ s();
330
+ const c = o && o.getStyles && o.getStyles() || "", h = o && o.getDesignerClass && o.getDesignerClass() || "", d = T();
331
+ function b() {
332
332
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanMoveComponent ? o.checkCanMoveComponent() : !0;
333
333
  }
334
- function v() {
334
+ function j() {
335
335
  return !1;
336
336
  }
337
- function c() {
337
+ function p() {
338
338
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanDeleteComponent ? o.checkCanDeleteComponent() : !0;
339
339
  }
340
- function f() {
340
+ function u() {
341
341
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : o && o.hideNestedPaddingInDesginerView ? o.hideNestedPaddingInDesginerView() : !1;
342
342
  }
343
343
  function l(y) {
@@ -345,72 +345,72 @@ function ge(a, e, o) {
345
345
  return null;
346
346
  if (y.value.schema && y.value.schema.type === "component")
347
347
  return y.value;
348
- const A = O(y == null ? void 0 : y.value.parent), j = l(A);
349
- return j || null;
348
+ const w = T(y == null ? void 0 : y.value.parent), A = l(w);
349
+ return A || null;
350
350
  }
351
- function u(y = e) {
352
- const { componentInstance: A, designerItemElementRef: j } = y;
353
- return !A || !A.value ? null : A.value.canMove ? j : u(y.parent);
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);
354
354
  }
355
- function g(y) {
355
+ function m(y) {
356
356
  return !!o && o.canAccepts(y);
357
357
  }
358
- function r() {
358
+ function n() {
359
359
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
360
360
  }
361
- function s() {
361
+ function i() {
362
362
  }
363
- function t(y, A) {
364
- A && o != null && o.onAcceptMovedChildElement && o.onAcceptMovedChildElement(A);
363
+ function t(y, w) {
364
+ w && o != null && o.onAcceptMovedChildElement && o.onAcceptMovedChildElement(w);
365
365
  }
366
- function n(y) {
366
+ function r(y, w) {
367
367
  const { componentType: A } = y;
368
- let j = $(A, y);
369
- o && o.onResolveNewComponentSchema && (j = o.onResolveNewComponentSchema(y, j));
370
- const T = A.toLowerCase().replace("-", "_");
371
- return j && !j.id && j.type === A && (j.id = `${T}_${Math.random().toString().slice(2, 6)}`), j;
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
372
  }
373
- function P(y, A) {
374
- const j = String(y.getAttribute("data-controltype")), T = y.getAttribute("data-feature"), E = T ? JSON.parse(T) : {};
375
- E.parentComponentInstance = h.value;
376
- let C = $(j, E);
377
- o && o.onAcceptNewChildElement && (C = o.onAcceptNewChildElement(y, A, C));
378
- const N = j.toLowerCase().replace("-", "_");
379
- return C && !C.id && C.type === j && (C.id = `${N}_${Math.random().toString().slice(2, 6)}`), C;
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
380
  }
381
- function b(y) {
381
+ function g(y) {
382
382
  }
383
- function w(...y) {
383
+ function v(...y) {
384
384
  if (o && o.getPropsConfig)
385
385
  return o.getPropsConfig(...y);
386
386
  }
387
- return h.value = {
388
- canMove: m(),
389
- canSelectParent: v(),
390
- canDelete: c(),
391
- canNested: !f(),
387
+ return d.value = {
388
+ canMove: b(),
389
+ canSelectParent: j(),
390
+ canDelete: p(),
391
+ canNested: !u(),
392
392
  contents: e == null ? void 0 : e.schema.contents,
393
393
  elementRef: a,
394
- parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
394
+ parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
395
395
  schema: e == null ? void 0 : e.schema,
396
- styles: i,
397
- designerClass: d,
398
- canAccepts: g,
396
+ styles: c,
397
+ designerClass: h,
398
+ canAccepts: m,
399
399
  getBelongedComponentInstance: l,
400
- getDraggableDesignItemElement: u,
401
- getDraggingDisplayText: r,
402
- getPropConfig: w,
403
- getDragScopeElement: s,
400
+ getDraggableDesignItemElement: f,
401
+ getDraggingDisplayText: n,
402
+ getPropConfig: v,
403
+ getDragScopeElement: i,
404
404
  onAcceptMovedChildElement: t,
405
405
  onAcceptNewChildElement: P,
406
- onChildElementMovedOut: b,
407
- addNewChildComponentSchema: n,
408
- updateDragAndDropRules: p,
409
- triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved || O(!1),
410
- triggerBelongedComponentToDeleteWhenDeleted: !!o && o.triggerBelongedComponentToDeleteWhenDeleted || O(!1)
411
- }, h;
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;
412
412
  }
413
- const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-design.gitee.io/dragging-rules.schema.json", Pe = "Dragging Rules", ve = "The rules of designer canvas", we = "object", Ae = {
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 = {
414
414
  "f-page": {
415
415
  description: "The root class of page designed by farris.",
416
416
  type: "object",
@@ -829,6 +829,80 @@ const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-
829
829
  "f-list-nav-left": {
830
830
  description: "",
831
831
  type: "object"
832
+ },
833
+ "f-struct-data-grid-in-nav": {
834
+ description: "",
835
+ type: "object",
836
+ properties: {
837
+ contents: {
838
+ type: "object",
839
+ properties: {
840
+ "f-section-form": {
841
+ description: "",
842
+ type: "object",
843
+ properties: {
844
+ rules: {
845
+ type: "object",
846
+ properties: {
847
+ canAccept: {
848
+ type: "boolean",
849
+ const: !1
850
+ },
851
+ fixed: {
852
+ type: "boolean",
853
+ const: !0
854
+ },
855
+ hidePadding: {
856
+ type: "boolean",
857
+ const: !0
858
+ }
859
+ }
860
+ }
861
+ }
862
+ },
863
+ "f-section-grid": {
864
+ description: "",
865
+ type: "object",
866
+ properties: {
867
+ rules: {
868
+ type: "object",
869
+ properties: {
870
+ canAccept: {
871
+ type: "boolean",
872
+ const: !1
873
+ },
874
+ fixed: {
875
+ type: "boolean",
876
+ const: !0
877
+ },
878
+ hidePadding: {
879
+ type: "boolean",
880
+ const: !0
881
+ }
882
+ }
883
+ }
884
+ }
885
+ }
886
+ }
887
+ },
888
+ rules: {
889
+ type: "object",
890
+ properties: {
891
+ canAccept: {
892
+ type: "boolean",
893
+ const: !1
894
+ },
895
+ fixed: {
896
+ type: "boolean",
897
+ const: !0
898
+ },
899
+ hidePadding: {
900
+ type: "boolean",
901
+ const: !0
902
+ }
903
+ }
904
+ }
905
+ }
832
906
  }
833
907
  }
834
908
  }
@@ -974,207 +1048,212 @@ const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-
974
1048
  description: "",
975
1049
  type: "object"
976
1050
  }
977
- }, Ce = [], De = {
978
- $schema: me,
979
- $id: je,
980
- title: Pe,
981
- description: ve,
982
- type: we,
983
- properties: Ae,
984
- required: Ce
985
- }, M = /* @__PURE__ */ new Map();
986
- function Oe() {
987
- function a(r, s, t, n) {
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) {
988
1061
  var P;
989
1062
  if (typeof t == "number")
990
- return ((P = n[r]) == null ? void 0 : P.length) === t;
1063
+ return ((P = r[n]) == null ? void 0 : P.length) === t;
991
1064
  if (typeof t == "object") {
992
- const b = Object.keys(t)[0], w = t[b];
993
- if (b === "not")
994
- return Number(n[r].length) !== Number(w);
995
- if (b === "moreThan")
996
- return Number(n[r].length) >= Number(w);
997
- if (b === "lessThan")
998
- return Number(n[r].length) <= Number(w);
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);
999
1072
  }
1000
1073
  return !1;
1001
1074
  }
1002
- function e(r, s, t, n) {
1003
- return typeof t == "boolean" ? n.childrenClassList.includes(s) === !!t : !1;
1075
+ function e(n, i, t, r) {
1076
+ return typeof t == "boolean" ? r.childrenClassList.includes(i) === !!t : !1;
1004
1077
  }
1005
- function o(r, s, t, n) {
1006
- return typeof t == "boolean" ? n.parentClassList.includes(s) === !!t : !1;
1078
+ function o(n, i, t, r) {
1079
+ return typeof t == "boolean" ? r.parentClassList.includes(i) === !!t : !1;
1007
1080
  }
1008
- function p(r, s, t, n) {
1009
- return typeof t == "boolean" ? n.parentClassList.includes(s) === !!t : !1;
1081
+ function s(n, i, t, r) {
1082
+ return typeof t == "boolean" ? r.parentClassList.includes(i) === !!t : !1;
1010
1083
  }
1011
- const i = /* @__PURE__ */ new Map([
1084
+ const c = /* @__PURE__ */ new Map([
1012
1085
  ["length", a],
1013
1086
  ["hasChildren", e],
1014
- ["hasSibling", p],
1087
+ ["hasSibling", s],
1015
1088
  ["hasParent", o]
1016
1089
  ]);
1017
- function d(r, s) {
1018
- const t = r;
1019
- return typeof s == "number" ? [{ target: t, operator: "length", param: null, value: Number(s) }] : typeof s == "object" ? Object.keys(s).map((n) => {
1020
- if (n === "length")
1021
- return { target: t, operator: "length", param: null, value: s[n] };
1022
- const P = n, b = s[n];
1023
- return { target: t, operator: r === "children" ? "hasChildren" : r === "parent" ? "hasParent" : "hasSibling", param: P, value: b };
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 };
1024
1097
  }) : [];
1025
1098
  }
1026
- function h(r, s) {
1027
- if (i.has(r.operator)) {
1028
- const t = i.get(r.operator);
1029
- return t && t(r.target, r.param, r.value, s) || !1;
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;
1030
1103
  }
1031
1104
  return !1;
1032
1105
  }
1033
- function m(r, s) {
1034
- return Object.keys(r).reduce((b, w) => {
1035
- const D = d(w, r[w]);
1036
- return b.push(...D), b;
1037
- }, []).reduce((b, w) => b && h(w, s), !0);
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);
1038
1111
  }
1039
- function v(r, s) {
1040
- const t = Object.keys(r), n = t.includes("allOf"), P = t.includes("anyOf"), b = n || P, y = (b ? r[b ? n ? "allOf" : "anyOf" : "allOf"] : [r]).map((j) => m(j, s));
1041
- return n ? !y.includes(!1) : y.includes(!0);
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);
1042
1115
  }
1043
- function c(r, s) {
1044
- const t = r.const;
1045
- return t ? typeof t == "boolean" ? t : typeof t == "object" ? v(t, s) : !1 : !1;
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;
1046
1119
  }
1047
- function f(r) {
1048
- return (s) => {
1120
+ function u(n) {
1121
+ return (i) => {
1049
1122
  const t = { canAccept: !0, fixed: !1, hidePadding: !1 };
1050
- return r && r.properties && Object.keys(r.properties).reduce((n, P) => {
1051
- const b = r.properties[P];
1052
- return n[P] = c(b, s), n;
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;
1053
1126
  }, t), t;
1054
1127
  };
1055
1128
  }
1056
- function l(r, s, t) {
1057
- if (s.type === "object" && s.properties) {
1058
- const { rules: n, contents: P } = s.properties;
1059
- t.set(r, f(n)), P && Object.keys(P.properties).forEach(
1060
- (b) => l(b, P.properties[b], t)
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)
1061
1134
  );
1062
1135
  }
1063
1136
  }
1064
- function u() {
1065
- const { properties: r } = De;
1066
- Object.keys(r).forEach((s) => {
1067
- l(s, r[s], M);
1137
+ function f() {
1138
+ const { properties: n } = Oe;
1139
+ Object.keys(n).forEach((i) => {
1140
+ l(i, n[i], $);
1068
1141
  });
1069
1142
  }
1070
- function g(r, s) {
1143
+ function m(n, i) {
1071
1144
  const t = { canAccept: !0, fixed: !1, hidePadding: !0 };
1072
- return M.has(r) ? M.get(r)(s) : t;
1145
+ return $.has(n) ? $.get(n)(i) : t;
1073
1146
  }
1074
- return u(), { getRuleValue: g };
1147
+ return f(), { getRuleValue: m };
1075
1148
  }
1076
- function Te(a, e) {
1077
- const o = Oe();
1078
- let p = !1, i, d = !1;
1149
+ function Ee(a) {
1150
+ const e = Te();
1151
+ let o = !1, s, c = !1;
1079
1152
  const h = !1;
1080
- function m() {
1153
+ function d() {
1081
1154
  return !1;
1082
1155
  }
1083
- function v() {
1084
- return h || !d;
1156
+ function b() {
1157
+ return h || !c;
1085
1158
  }
1086
- function c() {
1087
- return !d;
1159
+ function j() {
1160
+ return !c;
1088
1161
  }
1089
- function f() {
1090
- d = !1;
1091
- const u = a, g = u.appearance && u.appearance.class || "", r = g.split(" "), s = u.contents || [], t = s.length ? s[0] : null, n = t && t.appearance ? t.appearance.class : "", P = n ? n.split(" ") : [], b = s.length ? s.reduce((E, C) => {
1092
- const N = C && C.appearance ? C.appearance.class : "", Y = N ? N.split(" ") : [];
1093
- return E.push(...Y), E;
1094
- }, []) : [], w = e, D = w && w.appearance && w.appearance.class || "", y = D ? D.split(" ") : [];
1095
- i = {
1096
- componentClass: g,
1097
- componentClassList: r,
1098
- childContents: s,
1099
- firstChildContent: t,
1100
- firstChildClass: n,
1101
- firstChildClassList: P,
1102
- parent: w,
1103
- parentClass: D,
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;
1168
+ }, []) : [];
1169
+ if (((D = (E = a.parent) == null ? void 0 : E.schema) == null ? void 0 : D.type) !== "component-ref") {
1170
+ o = !0, c = !0;
1171
+ return;
1172
+ }
1173
+ const g = a.parent.parent, v = g && g.schema, O = v && v.appearance ? v.appearance.class : "", y = O ? O.split(" ") : [];
1174
+ 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,
1104
1183
  parentClassList: y,
1105
- children: s,
1106
- childrenClassList: b
1184
+ children: n,
1185
+ childrenClassList: P
1107
1186
  };
1108
- const { canAccept: A, fixed: j, hidePadding: T } = o.getRuleValue(r[0], i);
1109
- return p = T, d = j, !0;
1187
+ const { canAccept: w, fixed: A, hidePadding: C } = e.getRuleValue(m[0], s);
1188
+ o = C, c = A;
1110
1189
  }
1111
- function l() {
1112
- return p;
1190
+ function u() {
1191
+ return o;
1113
1192
  }
1114
- return { canAccepts: m, checkCanDeleteComponent: v, checkCanMoveComponent: c, resolveComponentContext: f, hideNestedPaddingInDesginerView: l };
1193
+ return { canAccepts: d, checkCanDeleteComponent: b, checkCanMoveComponent: j, resolveComponentContext: p, hideNestedPaddingInDesginerView: u };
1115
1194
  }
1116
- function Ee(a, e) {
1117
- const o = O(a.width), p = O(a.height);
1118
- let i;
1119
- J(e, (h) => {
1120
- h && (o.value = h.clientWidth, i = new ResizeObserver((m) => {
1121
- if (!m || m.length < 1)
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)
1122
1201
  return;
1123
- const c = m[0].contentRect;
1124
- c && (o.value = c.width);
1125
- }), i.observe(h));
1202
+ const p = b[0].contentRect;
1203
+ p && (o.value = p.width);
1204
+ }), c.observe(d));
1126
1205
  });
1127
- function d() {
1128
- i && i.disconnect();
1206
+ function h() {
1207
+ c && c.disconnect();
1129
1208
  }
1130
1209
  return {
1131
- destory: d,
1210
+ destory: h,
1132
1211
  width: o,
1133
- height: p
1212
+ height: s
1134
1213
  };
1135
1214
  }
1136
- const Ne = /* @__PURE__ */ F({
1215
+ const Ve = /* @__PURE__ */ q({
1137
1216
  name: "FVideoDesign",
1138
- props: k,
1217
+ props: B,
1139
1218
  setup(a, e) {
1140
- var c;
1141
- const o = O(), p = U("design-item-context"), i = Te(p.schema, (c = p.parent) == null ? void 0 : c.schema), d = ge(o, p, i), {
1142
- width: h,
1143
- height: m,
1144
- destory: v
1145
- } = Ee(a, o);
1146
- return G(() => {
1147
- o.value.componentInstance = d;
1148
- }), q(() => {
1149
- v();
1150
- }), e.expose(d.value), () => S("div", {
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", {
1151
1230
  ref: o,
1152
1231
  class: "drag-container",
1153
- "data-dragref": `${p.schema.id}-container`
1232
+ "data-dragref": `${s.schema.id}-container`
1154
1233
  }, [S("video", {
1155
1234
  src: a.src,
1156
1235
  autoplay: a.autoplay,
1157
1236
  controls: a.controls,
1158
1237
  loop: a.loop,
1159
1238
  muted: a.muted,
1160
- width: h.value,
1161
- height: m.value
1162
- }, [W("Your browser does not support the video tag.")])]);
1239
+ width: d.value,
1240
+ height: b.value
1241
+ }, [z("Your browser does not support the video tag.")])]);
1163
1242
  }
1164
1243
  }), Se = {
1165
1244
  install(a) {
1166
- a.component(V.name, V);
1245
+ a.component(M.name, M);
1167
1246
  },
1168
- register(a, e, o, p) {
1169
- a.video = V, e.video = B;
1247
+ register(a, e, o, s) {
1248
+ a.video = M, e.video = W;
1170
1249
  },
1171
1250
  registerDesigner(a, e, o) {
1172
- a.video = Ne, e.video = B;
1251
+ a.video = Ve, e.video = W;
1173
1252
  }
1174
1253
  };
1175
1254
  export {
1176
- V as FVideo,
1255
+ M as FVideo,
1177
1256
  Se as default,
1178
- B as propsResolver,
1179
- k as videoProps
1257
+ W as propsResolver,
1258
+ B as videoProps
1180
1259
  };