@farris/ui-vue 1.2.8 → 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 (215) hide show
  1. package/components/accordion/index.esm.js +129 -129
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +166 -157
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.esm.js +343 -325
  8. package/components/button-edit/index.umd.cjs +1 -0
  9. package/components/button-group/index.umd.cjs +1 -0
  10. package/components/calculator/index.umd.cjs +1 -0
  11. package/components/calendar/index.esm.js +338 -338
  12. package/components/calendar/index.umd.cjs +1 -0
  13. package/components/capsule/index.esm.js +182 -182
  14. package/components/capsule/index.umd.cjs +1 -0
  15. package/components/checkbox/index.esm.js +326 -317
  16. package/components/checkbox/index.umd.cjs +1 -0
  17. package/components/color-picker/index.esm.js +118 -118
  18. package/components/color-picker/index.umd.cjs +3 -0
  19. package/components/combo-list/index.esm.js +338 -325
  20. package/components/combo-list/index.umd.cjs +1 -0
  21. package/components/combo-tree/index.esm.js +62 -62
  22. package/components/combo-tree/index.umd.cjs +1 -0
  23. package/components/common/index.umd.cjs +1 -0
  24. package/components/component/index.esm.js +382 -270
  25. package/components/component/index.umd.cjs +1 -0
  26. package/components/condition/index.esm.js +1018 -895
  27. package/components/condition/index.umd.cjs +1 -0
  28. package/components/content-container/index.esm.js +285 -212
  29. package/components/content-container/index.umd.cjs +1 -0
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +4761 -4319
  32. package/components/data-grid/index.umd.cjs +1 -0
  33. package/components/data-view/index.esm.js +2901 -2664
  34. package/components/data-view/index.umd.cjs +1 -0
  35. package/components/date-picker/index.esm.js +1502 -1488
  36. package/components/date-picker/index.umd.cjs +1 -0
  37. package/components/designer-canvas/index.css +1 -1
  38. package/components/designer-canvas/index.esm.js +938 -928
  39. package/components/designer-canvas/index.umd.cjs +1 -0
  40. package/components/designer-outline/index.css +1 -1
  41. package/components/designer-outline/index.esm.js +27 -27
  42. package/components/designer-outline/index.umd.cjs +1 -0
  43. package/components/designer-toolbox/index.esm.js +36 -12
  44. package/components/designer-toolbox/index.umd.cjs +1 -0
  45. package/components/discussion-editor/index.umd.cjs +3 -0
  46. package/components/discussion-list/index.umd.cjs +1 -0
  47. package/components/drawer/index.umd.cjs +1 -0
  48. package/components/dropdown/index.esm.js +241 -241
  49. package/components/dropdown/index.umd.cjs +2 -0
  50. package/components/dynamic-form/index.esm.js +1074 -885
  51. package/components/dynamic-form/index.umd.cjs +1 -0
  52. package/components/dynamic-resolver/index.esm.js +99 -94
  53. package/components/dynamic-resolver/index.umd.cjs +1 -0
  54. package/components/dynamic-view/index.umd.cjs +1 -0
  55. package/components/enum-editor/index.umd.cjs +1 -0
  56. package/components/events-editor/index.esm.js +577 -522
  57. package/components/events-editor/index.umd.cjs +1 -0
  58. package/components/expression-editor/index.esm.js +70 -70
  59. package/components/expression-editor/index.umd.cjs +1 -0
  60. package/components/external-container/index.css +1 -1
  61. package/components/external-container/index.esm.js +2938 -2619
  62. package/components/external-container/index.umd.cjs +1 -0
  63. package/components/field-selector/index.css +1 -1
  64. package/components/field-selector/index.esm.js +4766 -4325
  65. package/components/field-selector/index.umd.cjs +1 -0
  66. package/components/filter-bar/index.css +1 -1
  67. package/components/filter-bar/index.esm.js +1231 -1215
  68. package/components/filter-bar/index.umd.cjs +1 -0
  69. package/components/flow-canvas/index.css +1 -1
  70. package/components/flow-canvas/index.esm.js +1062 -1052
  71. package/components/flow-canvas/index.umd.cjs +1 -0
  72. package/components/image-cropper/index.esm.js +373 -373
  73. package/components/image-cropper/index.umd.cjs +1 -0
  74. package/components/input-group/index.esm.js +398 -394
  75. package/components/input-group/index.umd.cjs +1 -0
  76. package/components/layout/index.esm.js +268 -268
  77. package/components/layout/index.umd.cjs +1 -0
  78. package/components/list-nav/index.esm.js +234 -161
  79. package/components/list-nav/index.umd.cjs +1 -0
  80. package/components/list-view/index.css +1 -1
  81. package/components/list-view/index.esm.js +2288 -2048
  82. package/components/list-view/index.umd.cjs +1 -0
  83. package/components/loading/index.umd.cjs +8 -0
  84. package/components/locale/index.umd.cjs +1 -0
  85. package/components/lookup/index.css +1 -1
  86. package/components/lookup/index.esm.js +5776 -5305
  87. package/components/lookup/index.umd.cjs +1 -0
  88. package/components/mapping-editor/index.css +1 -1
  89. package/components/mapping-editor/index.esm.js +5496 -5036
  90. package/components/mapping-editor/index.umd.cjs +1 -0
  91. package/components/message-box/index.umd.cjs +1 -0
  92. package/components/modal/index.umd.cjs +1 -0
  93. package/components/nav/index.esm.js +383 -322
  94. package/components/nav/index.umd.cjs +3 -0
  95. package/components/notify/index.umd.cjs +1 -0
  96. package/components/number-range/index.esm.js +273 -269
  97. package/components/number-range/index.umd.cjs +1 -0
  98. package/components/number-spinner/index.esm.js +292 -283
  99. package/components/number-spinner/index.umd.cjs +1 -0
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1008 -925
  102. package/components/order/index.umd.cjs +1 -0
  103. package/components/page-footer/index.esm.js +98 -98
  104. package/components/page-footer/index.umd.cjs +1 -0
  105. package/components/page-header/index.esm.js +949 -847
  106. package/components/page-header/index.umd.cjs +1 -0
  107. package/components/pagination/index.esm.js +464 -403
  108. package/components/pagination/index.umd.cjs +1 -0
  109. package/components/popover/index.umd.cjs +1 -0
  110. package/components/progress/index.esm.js +226 -226
  111. package/components/progress/index.umd.cjs +3 -0
  112. package/components/property-editor/index.esm.js +1110 -1092
  113. package/components/property-editor/index.umd.cjs +3 -0
  114. package/components/property-panel/index.esm.js +520 -513
  115. package/components/property-panel/index.umd.cjs +1 -0
  116. package/components/query-solution/index.css +1 -1
  117. package/components/query-solution/index.esm.js +1714 -1575
  118. package/components/query-solution/index.umd.cjs +1 -0
  119. package/components/radio-button/index.esm.js +67 -67
  120. package/components/radio-button/index.umd.cjs +1 -0
  121. package/components/radio-group/index.esm.js +298 -289
  122. package/components/radio-group/index.umd.cjs +1 -0
  123. package/components/rate/index.esm.js +195 -190
  124. package/components/rate/index.umd.cjs +1 -0
  125. package/components/response-layout/index.esm.js +112 -112
  126. package/components/response-layout/index.umd.cjs +1 -0
  127. package/components/response-layout-editor/index.esm.js +902 -877
  128. package/components/response-layout-editor/index.umd.cjs +1 -0
  129. package/components/response-toolbar/index.esm.js +874 -778
  130. package/components/response-toolbar/index.umd.cjs +1 -0
  131. package/components/schema-selector/index.css +1 -1
  132. package/components/schema-selector/index.esm.js +4594 -4289
  133. package/components/schema-selector/index.umd.cjs +8 -0
  134. package/components/search-box/index.esm.js +126 -126
  135. package/components/search-box/index.umd.cjs +1 -0
  136. package/components/section/index.esm.js +645 -503
  137. package/components/section/index.umd.cjs +1 -0
  138. package/components/smoke-detector/index.esm.js +120 -120
  139. package/components/smoke-detector/index.umd.cjs +1 -0
  140. package/components/spacing-editor/index.umd.cjs +1 -0
  141. package/components/splitter/index.esm.js +421 -348
  142. package/components/splitter/index.umd.cjs +1 -0
  143. package/components/step/index.esm.js +219 -219
  144. package/components/step/index.umd.cjs +1 -0
  145. package/components/switch/index.esm.js +232 -222
  146. package/components/switch/index.umd.cjs +1 -0
  147. package/components/tabs/index.esm.js +1823 -1744
  148. package/components/tabs/index.umd.cjs +1 -0
  149. package/components/tags/index.esm.js +399 -401
  150. package/components/tags/index.umd.cjs +1 -0
  151. package/components/text/index.esm.js +164 -164
  152. package/components/text/index.umd.cjs +1 -0
  153. package/components/textarea/index.esm.js +220 -215
  154. package/components/textarea/index.umd.cjs +1 -0
  155. package/components/time-picker/index.esm.js +693 -666
  156. package/components/time-picker/index.umd.cjs +1 -0
  157. package/components/tooltip/index.umd.cjs +1 -0
  158. package/components/transfer/index.css +1 -1
  159. package/components/transfer/index.esm.js +422 -413
  160. package/components/transfer/index.umd.cjs +1 -0
  161. package/components/tree-grid/index.css +1 -1
  162. package/components/tree-grid/index.esm.js +4799 -4358
  163. package/components/tree-grid/index.umd.cjs +1 -0
  164. package/components/tree-view/index.esm.js +2448 -2215
  165. package/components/tree-view/index.umd.cjs +1 -0
  166. package/components/uploader/index.esm.js +164 -164
  167. package/components/uploader/index.umd.cjs +2 -0
  168. package/components/verify-detail/index.esm.js +143 -143
  169. package/components/verify-detail/index.umd.cjs +1 -0
  170. package/components/video/index.esm.js +410 -331
  171. package/components/video/index.umd.cjs +1 -0
  172. package/components/weather/index.esm.js +901 -901
  173. package/components/weather/index.umd.cjs +16 -0
  174. package/farris.all.esm.js +12305 -11403
  175. package/farris.all.umd.cjs +8 -8
  176. package/index.css +1 -1
  177. package/package.json +1 -1
  178. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  179. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  180. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  181. package/types/common/entity/entity-schema.d.ts +258 -0
  182. package/types/component/src/component-ref.props.d.ts +4 -0
  183. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  184. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  185. package/types/data-grid/index.d.ts +5 -2
  186. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  189. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  190. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  191. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  192. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  193. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  194. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  195. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  196. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  197. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  198. package/types/data-view/composition/types.d.ts +18 -6
  199. package/types/data-view/composition/use-edit.d.ts +2 -1
  200. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  201. package/types/designer-canvas/src/types.d.ts +2 -2
  202. package/types/dynamic-form/index.d.ts +2 -1
  203. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  204. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  205. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  206. package/types/dynamic-resolver/src/types.d.ts +3 -2
  207. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  208. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  209. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  210. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  211. package/types/tabs/src/composition/types.d.ts +2 -2
  212. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  213. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  214. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  215. package/types/tags/index.d.ts +36 -5
@@ -1,108 +1,108 @@
1
- import { defineComponent as F, ref as O, onUnmounted as q, createVNode as $, 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, c = Object.keys(e).reduce((p, d) => (p[d] = e[d].type === "object" && e[d].properties ? L(e[d]) : H(e[d].default), p), {});
6
- return c.id = `${o}-${Date.now()}`, c;
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 S(a, e = {}) {
9
- const o = _[a];
10
- if (o) {
11
- let c = L(o);
12
- const p = z[a];
13
- return c = p ? p({ getSchemaByType: S }, c, e) : c, c;
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((c, p) => (c[p] && typeof c[p] == "object" ? Object.assign(c[p], a[p]) : c[p] = a[p], c), 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((c) => a[c] != null).reduce((c, p) => {
23
- if (e.has(p)) {
24
- const d = e.get(p);
25
- if (typeof d == "string")
26
- c[d] = a[p];
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(p, a[p], a);
29
- Object.assign(c, h);
28
+ const d = h(c, a[c], a);
29
+ Object.assign(s, d);
30
30
  }
31
31
  } else
32
- c[p] = a[p];
33
- return c;
32
+ s[c] = a[c];
33
+ return s;
34
34
  }, {});
35
35
  }
36
- function Z(a, e, o = /* @__PURE__ */ new Map()) {
37
- const c = Q(a, e);
38
- return X(c, 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 R(a = {}) {
41
- function e(s, f, l, u) {
40
+ function x(a = {}) {
41
+ function e(p, u, l, f) {
42
42
  if (typeof l == "number")
43
- return u[s].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[s].length) !== Number(r);
48
- if (g === "moreThan")
49
- return Number(u[s].length) >= Number(r);
50
- if (g === "lessThan")
51
- return Number(u[s].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(s, f, l, u) {
56
- return u[s] && u[s].propertyValue && String(u[s].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 c = /* @__PURE__ */ new Map([
58
+ const s = /* @__PURE__ */ new Map([
59
59
  ["length", e],
60
60
  ["getProperty", o]
61
61
  ]);
62
- Object.keys(a).reduce((s, f) => (s.set(f, a[f]), s), c);
63
- function p(s, f) {
64
- const l = s;
65
- return typeof f == "number" ? [{ target: l, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: l, operator: "getProperty", param: s, 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(s) {
73
- return Object.keys(s).reduce((l, u) => {
74
- const g = p(u, s[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(s, f) {
79
- if (c.has(s.operator)) {
80
- const l = c.get(s.operator);
81
- return l && l(s.target, s.param, s.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(s, f) {
86
- return d(s).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(s, f) {
89
- const l = Object.keys(s), u = l.includes("allOf"), g = l.includes("anyOf"), r = u || g, n = (r ? s[r ? u ? "allOf" : "anyOf" : "allOf"] : [s]).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 K = {}, x = {};
95
- R();
96
- function I(a, e, o = /* @__PURE__ */ new Map(), c = (h, m, v) => m, p = {}, d = (h) => h) {
97
- return _[e.title] = e, z[e.title] = c, K[e.title] = p, x[e.title] = d, (h = {}) => {
98
- const m = Z(h, e, o), v = Object.keys(a).reduce((s, f) => (s[f] = a[f].default, s), {});
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
- ], ie = {
137
- $schema: te,
138
- $id: oe,
139
- title: ne,
140
- description: re,
141
- type: ae,
142
- properties: ce,
143
- required: se
144
- }, pe = /* @__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,45 +211,45 @@ 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, ie, pe, 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 c(t) {
219
+ function s(t) {
220
220
  t.stopPropagation(), e.emit("play");
221
221
  }
222
- function p(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 s(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
255
  function i(t) {
@@ -257,44 +257,44 @@ function be(a, e) {
257
257
  }
258
258
  return {
259
259
  onAbort: o,
260
- onPlay: c,
261
- onPause: p,
262
- onEnded: d,
263
- onDurationchange: h,
264
- onError: m,
265
- onLoadeddata: v,
266
- onLoadedmetadata: s,
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,
269
+ onProgress: f,
270
+ onTimeupdate: m,
271
+ onVolumechange: n,
272
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: c,
282
- onPlay: p,
283
- onPause: d,
284
- onEnded: h,
285
- onDurationchange: m,
286
- onError: v,
287
- onLoadeddata: s,
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,
290
+ onPlaying: f,
291
+ onProgress: m,
292
+ onTimeupdate: n,
293
293
  onVolumechange: i,
294
294
  onCanplay: t
295
- } = be(a, e);
296
- return q(() => {
297
- }), () => $("video", {
295
+ } = me(a, e);
296
+ return _(() => {
297
+ }), () => S("video", {
298
298
  ref: o,
299
299
  src: a.src,
300
300
  autoplay: a.autoplay,
@@ -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) => c(n),
308
- onPlay: (n) => p(n),
309
- onPause: (n) => d(n),
310
- onEnded: (n) => h(n),
311
- onDurationchange: (n) => m(n),
312
- onError: (n) => v(n),
313
- onLoadeddata: (n) => s(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) => i(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 c() {
324
+ function je(a, e, o) {
325
+ var O;
326
+ function s() {
327
327
  o != null && o.resolveComponentContext && o.resolveComponentContext();
328
328
  }
329
- c();
330
- const p = 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 s() {
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
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 = S(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 = S(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: s(),
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: p,
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,
400
+ getDraggableDesignItemElement: f,
401
+ getDraggingDisplayText: n,
402
+ getPropConfig: v,
403
403
  getDragScopeElement: i,
404
404
  onAcceptMovedChildElement: t,
405
405
  onAcceptNewChildElement: P,
406
- onChildElementMovedOut: b,
407
- addNewChildComponentSchema: n,
408
- updateDragAndDropRules: c,
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, i, 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, i, t, n) {
1003
- return typeof t == "boolean" ? n.childrenClassList.includes(i) === !!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, i, t, n) {
1006
- return typeof t == "boolean" ? n.parentClassList.includes(i) === !!t : !1;
1078
+ function o(n, i, t, r) {
1079
+ return typeof t == "boolean" ? r.parentClassList.includes(i) === !!t : !1;
1007
1080
  }
1008
- function c(r, i, t, n) {
1009
- return typeof t == "boolean" ? n.parentClassList.includes(i) === !!t : !1;
1081
+ function s(n, i, t, r) {
1082
+ return typeof t == "boolean" ? r.parentClassList.includes(i) === !!t : !1;
1010
1083
  }
1011
- const p = /* @__PURE__ */ new Map([
1084
+ const c = /* @__PURE__ */ new Map([
1012
1085
  ["length", a],
1013
1086
  ["hasChildren", e],
1014
- ["hasSibling", c],
1087
+ ["hasSibling", s],
1015
1088
  ["hasParent", o]
1016
1089
  ]);
1017
- function d(r, i) {
1018
- const t = r;
1019
- return typeof i == "number" ? [{ target: t, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((n) => {
1020
- if (n === "length")
1021
- return { target: t, operator: "length", param: null, value: i[n] };
1022
- const P = n, b = i[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, i) {
1027
- if (p.has(r.operator)) {
1028
- const t = p.get(r.operator);
1029
- return t && t(r.target, r.param, r.value, i) || !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, i) {
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, i), !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, i) {
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, i));
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 s(r, i) {
1044
- const t = r.const;
1045
- return t ? typeof t == "boolean" ? t : typeof t == "object" ? v(t, i) : !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) {
1120
+ function u(n) {
1048
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] = s(b, i), 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, i, t) {
1129
+ function l(n, i, t) {
1057
1130
  if (i.type === "object" && i.properties) {
1058
- const { rules: n, contents: P } = i.properties;
1059
- t.set(r, f(n)), P && Object.keys(P.properties).forEach(
1060
- (b) => l(b, P.properties[b], t)
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((i) => {
1067
- l(i, r[i], 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, i) {
1143
+ function m(n, i) {
1071
1144
  const t = { canAccept: !0, fixed: !1, hidePadding: !0 };
1072
- return M.has(r) ? M.get(r)(i) : 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 c = !1, p, 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 s() {
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(" "), i = u.contents || [], t = i.length ? i[0] : null, n = t && t.appearance ? t.appearance.class : "", P = n ? n.split(" ") : [], b = i.length ? i.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
- p = {
1096
- componentClass: g,
1097
- componentClassList: r,
1098
- childContents: i,
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: i,
1106
- childrenClassList: b
1184
+ children: n,
1185
+ childrenClassList: P
1107
1186
  };
1108
- const { canAccept: A, fixed: j, hidePadding: T } = o.getRuleValue(r[0], p);
1109
- return c = 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 c;
1190
+ function u() {
1191
+ return o;
1113
1192
  }
1114
- return { canAccepts: m, checkCanDeleteComponent: v, checkCanMoveComponent: s, 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), c = O(a.height);
1118
- let p;
1119
- J(e, (h) => {
1120
- h && (o.value = h.clientWidth, p = 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 s = m[0].contentRect;
1124
- s && (o.value = s.width);
1125
- }), p.observe(h));
1202
+ const p = b[0].contentRect;
1203
+ p && (o.value = p.width);
1204
+ }), c.observe(d));
1126
1205
  });
1127
- function d() {
1128
- p && p.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: c
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 s;
1141
- const o = O(), c = U("design-item-context"), p = Te(c.schema, (s = c.parent) == null ? void 0 : s.schema), d = ge(o, c, p), {
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), () => $("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": `${c.schema.id}-container`
1154
- }, [$("video", {
1232
+ "data-dragref": `${s.schema.id}-container`
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
- }), $e = {
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, c) {
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,
1177
- $e as default,
1178
- B as propsResolver,
1179
- k as videoProps
1255
+ M as FVideo,
1256
+ Se as default,
1257
+ W as propsResolver,
1258
+ B as videoProps
1180
1259
  };