@farris/ui-vue 1.2.7 → 1.2.8

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 (206) hide show
  1. package/components/accordion/index.esm.js +79 -79
  2. package/components/avatar/index.esm.js +393 -440
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +496 -542
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +437 -483
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +839 -726
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4702 -4972
  17. package/components/data-view/index.esm.js +2999 -2875
  18. package/components/date-picker/index.esm.js +2626 -2672
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +934 -976
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +258 -249
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1892 -1775
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5245 -5514
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1483 -1556
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +668 -714
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1679 -1563
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6596 -6865
  47. package/components/mapping-editor/index.esm.js +5592 -5862
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +988 -1034
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1296
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1416 -1462
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +757 -830
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +452 -498
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +117 -117
  74. package/components/response-toolbar/index.esm.js +1021 -1238
  75. package/components/schema-selector/index.esm.js +3215 -3308
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +442 -488
  83. package/components/tabs/index.esm.js +1835 -2004
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +451 -482
  87. package/components/time-picker/index.esm.js +1345 -1392
  88. package/components/transfer/index.esm.js +135 -135
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5761 -6020
  91. package/components/tree-view/index.esm.js +2380 -2253
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +31630 -31224
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  102. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  103. package/types/data-view/composition/types.d.ts +1 -1
  104. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  105. package/types/designer-canvas/src/types.d.ts +1 -1
  106. package/types/dynamic-form/index.d.ts +1 -0
  107. package/types/dynamic-form/src/types.d.ts +1 -1
  108. package/types/dynamic-resolver/index.d.ts +1 -0
  109. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  110. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  111. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  112. package/types/modal/src/modal.props.d.ts +1 -4
  113. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  114. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  115. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  116. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  117. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  118. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  119. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  120. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  121. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  122. package/components/accordion/index.umd.cjs +0 -1
  123. package/components/avatar/index.umd.cjs +0 -1
  124. package/components/border-editor/index.umd.cjs +0 -1
  125. package/components/button/index.umd.cjs +0 -1
  126. package/components/button-edit/index.umd.cjs +0 -1
  127. package/components/button-group/index.umd.cjs +0 -1
  128. package/components/calculator/index.umd.cjs +0 -1
  129. package/components/calendar/index.umd.cjs +0 -1
  130. package/components/capsule/index.umd.cjs +0 -1
  131. package/components/checkbox/index.umd.cjs +0 -1
  132. package/components/color-picker/index.umd.cjs +0 -3
  133. package/components/combo-list/index.umd.cjs +0 -1
  134. package/components/combo-tree/index.umd.cjs +0 -1
  135. package/components/common/index.umd.cjs +0 -1
  136. package/components/component/index.umd.cjs +0 -1
  137. package/components/condition/index.umd.cjs +0 -1
  138. package/components/content-container/index.umd.cjs +0 -1
  139. package/components/data-grid/index.umd.cjs +0 -1
  140. package/components/data-view/index.umd.cjs +0 -1
  141. package/components/date-picker/index.umd.cjs +0 -1
  142. package/components/designer-canvas/index.umd.cjs +0 -1
  143. package/components/designer-outline/index.umd.cjs +0 -1
  144. package/components/designer-toolbox/index.umd.cjs +0 -1
  145. package/components/discussion-editor/index.umd.cjs +0 -3
  146. package/components/discussion-list/index.umd.cjs +0 -1
  147. package/components/drawer/index.umd.cjs +0 -1
  148. package/components/dropdown/index.umd.cjs +0 -2
  149. package/components/dynamic-form/index.umd.cjs +0 -1
  150. package/components/dynamic-resolver/index.umd.cjs +0 -1
  151. package/components/dynamic-view/index.umd.cjs +0 -1
  152. package/components/enum-editor/index.umd.cjs +0 -1
  153. package/components/events-editor/index.umd.cjs +0 -1
  154. package/components/expression-editor/index.umd.cjs +0 -1
  155. package/components/external-container/index.umd.cjs +0 -1
  156. package/components/field-selector/index.umd.cjs +0 -1
  157. package/components/filter-bar/index.umd.cjs +0 -1
  158. package/components/flow-canvas/index.umd.cjs +0 -1
  159. package/components/image-cropper/index.umd.cjs +0 -1
  160. package/components/input-group/index.umd.cjs +0 -1
  161. package/components/layout/index.umd.cjs +0 -1
  162. package/components/list-nav/index.umd.cjs +0 -1
  163. package/components/list-view/index.umd.cjs +0 -1
  164. package/components/loading/index.umd.cjs +0 -8
  165. package/components/locale/index.umd.cjs +0 -1
  166. package/components/lookup/index.umd.cjs +0 -1
  167. package/components/mapping-editor/index.umd.cjs +0 -1
  168. package/components/message-box/index.umd.cjs +0 -1
  169. package/components/modal/index.umd.cjs +0 -1
  170. package/components/nav/index.umd.cjs +0 -3
  171. package/components/notify/index.umd.cjs +0 -1
  172. package/components/order/index.umd.cjs +0 -1
  173. package/components/page-footer/index.umd.cjs +0 -1
  174. package/components/page-header/index.umd.cjs +0 -1
  175. package/components/pagination/index.umd.cjs +0 -1
  176. package/components/popover/index.umd.cjs +0 -1
  177. package/components/progress/index.umd.cjs +0 -3
  178. package/components/property-editor/index.umd.cjs +0 -3
  179. package/components/property-panel/index.umd.cjs +0 -1
  180. package/components/radio-button/index.umd.cjs +0 -1
  181. package/components/radio-group/index.umd.cjs +0 -1
  182. package/components/rate/index.umd.cjs +0 -1
  183. package/components/response-layout/index.umd.cjs +0 -1
  184. package/components/response-layout-editor/index.umd.cjs +0 -1
  185. package/components/response-toolbar/index.umd.cjs +0 -1
  186. package/components/schema-selector/index.umd.cjs +0 -8
  187. package/components/search-box/index.umd.cjs +0 -1
  188. package/components/section/index.umd.cjs +0 -1
  189. package/components/smoke-detector/index.umd.cjs +0 -1
  190. package/components/spacing-editor/index.umd.cjs +0 -1
  191. package/components/splitter/index.umd.cjs +0 -1
  192. package/components/step/index.umd.cjs +0 -1
  193. package/components/switch/index.umd.cjs +0 -1
  194. package/components/tabs/index.umd.cjs +0 -1
  195. package/components/tags/index.umd.cjs +0 -1
  196. package/components/text/index.umd.cjs +0 -1
  197. package/components/textarea/index.umd.cjs +0 -1
  198. package/components/time-picker/index.umd.cjs +0 -1
  199. package/components/tooltip/index.umd.cjs +0 -1
  200. package/components/transfer/index.umd.cjs +0 -1
  201. package/components/tree-grid/index.umd.cjs +0 -1
  202. package/components/tree-view/index.umd.cjs +0 -1
  203. package/components/uploader/index.umd.cjs +0 -2
  204. package/components/verify-detail/index.umd.cjs +0 -1
  205. package/components/video/index.umd.cjs +0 -1
  206. package/components/weather/index.umd.cjs +0 -16
@@ -1,101 +1,101 @@
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";
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
2
  import { cloneDeep as H } from "lodash-es";
3
3
  const _ = {}, z = {};
4
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;
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;
7
7
  }
8
- function $(a, e = {}) {
8
+ function S(a, e = {}) {
9
9
  const o = _[a];
10
10
  if (o) {
11
- let p = L(o);
12
- const i = z[a];
13
- return p = i ? i({ getSchemaByType: $ }, p, e) : p, p;
11
+ let c = L(o);
12
+ const p = z[a];
13
+ return c = p ? p({ getSchemaByType: S }, c, e) : c, c;
14
14
  }
15
15
  return null;
16
16
  }
17
17
  function Q(a, e) {
18
18
  const o = L(e);
19
- return Object.keys(a).reduce((p, i) => (p[i] = a[i], p), o), o;
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;
20
20
  }
21
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);
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
25
  if (typeof d == "string")
26
- p[d] = a[i];
26
+ c[d] = a[p];
27
27
  else {
28
- const h = d(i, a[i], a);
29
- Object.assign(p, h);
28
+ const h = d(p, a[p], a);
29
+ Object.assign(c, h);
30
30
  }
31
31
  } else
32
- p[i] = a[i];
33
- return p;
32
+ c[p] = a[p];
33
+ return c;
34
34
  }, {});
35
35
  }
36
36
  function Z(a, e, o = /* @__PURE__ */ new Map()) {
37
- const p = Q(a, e);
38
- return X(p, o);
37
+ const c = Q(a, e);
38
+ return X(c, o);
39
39
  }
40
- function K(a = {}) {
41
- function e(c, f, l, u) {
40
+ function R(a = {}) {
41
+ function e(s, f, l, u) {
42
42
  if (typeof l == "number")
43
- return u[c].length === l;
43
+ return u[s].length === l;
44
44
  if (typeof l == "object") {
45
45
  const g = Object.keys(l)[0], r = l[g];
46
46
  if (g === "not")
47
- return Number(u[c].length) !== Number(r);
47
+ return Number(u[s].length) !== Number(r);
48
48
  if (g === "moreThan")
49
- return Number(u[c].length) >= Number(r);
49
+ return Number(u[s].length) >= Number(r);
50
50
  if (g === "lessThan")
51
- return Number(u[c].length) <= Number(r);
51
+ return Number(u[s].length) <= Number(r);
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(s, f, l, u) {
56
+ return u[s] && u[s].propertyValue && String(u[s].propertyValue.value) === String(l);
57
57
  }
58
- const p = /* @__PURE__ */ new Map([
58
+ const c = /* @__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) => {
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
66
  if (u === "length")
67
67
  return { target: l, operator: "length", param: null, value: f[u] };
68
68
  const g = u, r = f[u];
69
69
  return { target: l, operator: "getProperty", param: g, value: r };
70
70
  }) : [];
71
71
  }
72
- function d(c) {
73
- return Object.keys(c).reduce((l, u) => {
74
- const g = i(u, c[u]);
72
+ function d(s) {
73
+ return Object.keys(s).reduce((l, u) => {
74
+ const g = p(u, s[u]);
75
75
  return l.push(...g), 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 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;
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 m(s, f) {
86
+ return d(s).reduce((g, r) => g && h(r, f), !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));
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
90
  return u ? !n.includes(!1) : n.includes(!0);
91
91
  }
92
92
  return { parseValueSchema: v };
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), {});
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
99
  return Object.assign(v, m);
100
100
  };
101
101
  }
@@ -133,7 +133,7 @@ const te = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
133
133
  }, se = [
134
134
  "id",
135
135
  "type"
136
- ], pe = {
136
+ ], ie = {
137
137
  $schema: te,
138
138
  $id: oe,
139
139
  title: ne,
@@ -141,7 +141,7 @@ const te = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
141
141
  type: ae,
142
142
  properties: ce,
143
143
  required: se
144
- }, ie = /* @__PURE__ */ new Map([
144
+ }, pe = /* @__PURE__ */ new Map([
145
145
  ["appearance", ee]
146
146
  ]);
147
147
  function le(a, e, o) {
@@ -211,15 +211,15 @@ 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);
214
+ }, B = I(k, ie, pe, le, he);
215
215
  function be(a, e) {
216
216
  function o(t) {
217
217
  t.stopPropagation(), e.emit("abort");
218
218
  }
219
- function p(t) {
219
+ function c(t) {
220
220
  t.stopPropagation(), e.emit("play");
221
221
  }
222
- function i(t) {
222
+ function p(t) {
223
223
  t.stopPropagation(), e.emit("pause");
224
224
  }
225
225
  function d(t) {
@@ -234,7 +234,7 @@ function be(a, e) {
234
234
  function v(t) {
235
235
  t.stopPropagation(), e.emit("loadeddata");
236
236
  }
237
- function c(t) {
237
+ function s(t) {
238
238
  t.stopPropagation(), e.emit("loadedmetadata");
239
239
  }
240
240
  function f(t) {
@@ -252,24 +252,24 @@ function be(a, e) {
252
252
  function r(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,
260
+ onPlay: c,
261
+ onPause: p,
262
262
  onEnded: d,
263
263
  onDurationchange: h,
264
264
  onError: m,
265
265
  onLoadeddata: v,
266
- onLoadedmetadata: c,
266
+ onLoadedmetadata: s,
267
267
  onLoadstart: f,
268
268
  onPlaying: l,
269
269
  onProgress: u,
270
270
  onTimeupdate: g,
271
271
  onVolumechange: r,
272
- onCanplay: s
272
+ onCanplay: i
273
273
  };
274
274
  }
275
275
  const V = /* @__PURE__ */ F({
@@ -278,23 +278,23 @@ const V = /* @__PURE__ */ F({
278
278
  emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
279
279
  setup(a, e) {
280
280
  const o = O(), {
281
- onAbort: p,
282
- onPlay: i,
281
+ onAbort: c,
282
+ onPlay: p,
283
283
  onPause: d,
284
284
  onEnded: h,
285
285
  onDurationchange: m,
286
286
  onError: v,
287
- onLoadeddata: c,
287
+ onLoadeddata: s,
288
288
  onLoadedmetadata: f,
289
289
  onLoadstart: l,
290
290
  onPlaying: u,
291
291
  onProgress: g,
292
292
  onTimeupdate: r,
293
- onVolumechange: s,
293
+ onVolumechange: i,
294
294
  onCanplay: t
295
295
  } = be(a, e);
296
296
  return q(() => {
297
- }), () => S("video", {
297
+ }), () => $("video", {
298
298
  ref: o,
299
299
  src: a.src,
300
300
  autoplay: a.autoplay,
@@ -304,37 +304,37 @@ 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),
307
+ onAbort: (n) => c(n),
308
+ onPlay: (n) => p(n),
309
309
  onPause: (n) => d(n),
310
310
  onEnded: (n) => h(n),
311
311
  onDurationchange: (n) => m(n),
312
312
  onError: (n) => v(n),
313
- onLoadeddata: (n) => c(n),
313
+ onLoadeddata: (n) => s(n),
314
314
  onLoadedmetadata: (n) => f(n),
315
315
  onLoadstart: (n) => l(n),
316
316
  onPlaying: (n) => u(n),
317
317
  onProgress: (n) => g(n),
318
318
  onTimeupdate: (n) => r(n),
319
- onVolumechange: (n) => s(n),
319
+ onVolumechange: (n) => i(n),
320
320
  onCanplay: (n) => t(n)
321
321
  }, [W("Your browser does not support the video tag.")]);
322
322
  }
323
323
  });
324
324
  function ge(a, e, o) {
325
325
  var D;
326
- function p() {
326
+ function c() {
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();
329
+ c();
330
+ const p = o && o.getStyles && o.getStyles() || "", d = o && o.getDesignerClass && o.getDesignerClass() || "", h = O();
331
331
  function m() {
332
332
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanMoveComponent ? o.checkCanMoveComponent() : !0;
333
333
  }
334
334
  function v() {
335
335
  return !1;
336
336
  }
337
- function c() {
337
+ function s() {
338
338
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanDeleteComponent ? o.checkCanDeleteComponent() : !0;
339
339
  }
340
340
  function f() {
@@ -358,14 +358,14 @@ function ge(a, e, o) {
358
358
  function r() {
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
363
  function t(y, A) {
364
364
  A && o != null && o.onAcceptMovedChildElement && o.onAcceptMovedChildElement(A);
365
365
  }
366
366
  function n(y) {
367
367
  const { componentType: A } = y;
368
- let j = $(A, y);
368
+ let j = S(A, y);
369
369
  o && o.onResolveNewComponentSchema && (j = o.onResolveNewComponentSchema(y, j));
370
370
  const T = A.toLowerCase().replace("-", "_");
371
371
  return j && !j.id && j.type === A && (j.id = `${T}_${Math.random().toString().slice(2, 6)}`), j;
@@ -373,7 +373,7 @@ function ge(a, e, o) {
373
373
  function P(y, A) {
374
374
  const j = String(y.getAttribute("data-controltype")), T = y.getAttribute("data-feature"), E = T ? JSON.parse(T) : {};
375
375
  E.parentComponentInstance = h.value;
376
- let C = $(j, E);
376
+ let C = S(j, E);
377
377
  o && o.onAcceptNewChildElement && (C = o.onAcceptNewChildElement(y, A, C));
378
378
  const N = j.toLowerCase().replace("-", "_");
379
379
  return C && !C.id && C.type === j && (C.id = `${N}_${Math.random().toString().slice(2, 6)}`), C;
@@ -387,25 +387,25 @@ function ge(a, e, o) {
387
387
  return h.value = {
388
388
  canMove: m(),
389
389
  canSelectParent: v(),
390
- canDelete: c(),
390
+ canDelete: s(),
391
391
  canNested: !f(),
392
392
  contents: e == null ? void 0 : e.schema.contents,
393
393
  elementRef: a,
394
394
  parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
395
395
  schema: e == null ? void 0 : e.schema,
396
- styles: i,
396
+ styles: p,
397
397
  designerClass: d,
398
398
  canAccepts: g,
399
399
  getBelongedComponentInstance: l,
400
400
  getDraggableDesignItemElement: u,
401
401
  getDraggingDisplayText: r,
402
402
  getPropConfig: w,
403
- getDragScopeElement: s,
403
+ getDragScopeElement: i,
404
404
  onAcceptMovedChildElement: t,
405
405
  onAcceptNewChildElement: P,
406
406
  onChildElementMovedOut: b,
407
407
  addNewChildComponentSchema: n,
408
- updateDragAndDropRules: p,
408
+ updateDragAndDropRules: c,
409
409
  triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved || O(!1),
410
410
  triggerBelongedComponentToDeleteWhenDeleted: !!o && o.triggerBelongedComponentToDeleteWhenDeleted || O(!1)
411
411
  }, h;
@@ -984,7 +984,7 @@ const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-
984
984
  required: Ce
985
985
  }, M = /* @__PURE__ */ new Map();
986
986
  function Oe() {
987
- function a(r, s, t, n) {
987
+ function a(r, i, t, n) {
988
988
  var P;
989
989
  if (typeof t == "number")
990
990
  return ((P = n[r]) == null ? void 0 : P.length) === t;
@@ -999,63 +999,63 @@ function Oe() {
999
999
  }
1000
1000
  return !1;
1001
1001
  }
1002
- function e(r, s, t, n) {
1003
- return typeof t == "boolean" ? n.childrenClassList.includes(s) === !!t : !1;
1002
+ function e(r, i, t, n) {
1003
+ return typeof t == "boolean" ? n.childrenClassList.includes(i) === !!t : !1;
1004
1004
  }
1005
- function o(r, s, t, n) {
1006
- return typeof t == "boolean" ? n.parentClassList.includes(s) === !!t : !1;
1005
+ function o(r, i, t, n) {
1006
+ return typeof t == "boolean" ? n.parentClassList.includes(i) === !!t : !1;
1007
1007
  }
1008
- function p(r, s, t, n) {
1009
- return typeof t == "boolean" ? n.parentClassList.includes(s) === !!t : !1;
1008
+ function c(r, i, t, n) {
1009
+ return typeof t == "boolean" ? n.parentClassList.includes(i) === !!t : !1;
1010
1010
  }
1011
- const i = /* @__PURE__ */ new Map([
1011
+ const p = /* @__PURE__ */ new Map([
1012
1012
  ["length", a],
1013
1013
  ["hasChildren", e],
1014
- ["hasSibling", p],
1014
+ ["hasSibling", c],
1015
1015
  ["hasParent", o]
1016
1016
  ]);
1017
- function d(r, s) {
1017
+ function d(r, i) {
1018
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) => {
1019
+ return typeof i == "number" ? [{ target: t, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((n) => {
1020
1020
  if (n === "length")
1021
- return { target: t, operator: "length", param: null, value: s[n] };
1022
- const P = n, b = s[n];
1021
+ return { target: t, operator: "length", param: null, value: i[n] };
1022
+ const P = n, b = i[n];
1023
1023
  return { target: t, operator: r === "children" ? "hasChildren" : r === "parent" ? "hasParent" : "hasSibling", param: P, value: b };
1024
1024
  }) : [];
1025
1025
  }
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;
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;
1030
1030
  }
1031
1031
  return !1;
1032
1032
  }
1033
- function m(r, s) {
1033
+ function m(r, i) {
1034
1034
  return Object.keys(r).reduce((b, w) => {
1035
1035
  const D = d(w, r[w]);
1036
1036
  return b.push(...D), b;
1037
- }, []).reduce((b, w) => b && h(w, s), !0);
1037
+ }, []).reduce((b, w) => b && h(w, i), !0);
1038
1038
  }
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));
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
1041
  return n ? !y.includes(!1) : y.includes(!0);
1042
1042
  }
1043
- function c(r, s) {
1043
+ function s(r, i) {
1044
1044
  const t = r.const;
1045
- return t ? typeof t == "boolean" ? t : typeof t == "object" ? v(t, s) : !1 : !1;
1045
+ return t ? typeof t == "boolean" ? t : typeof t == "object" ? v(t, i) : !1 : !1;
1046
1046
  }
1047
1047
  function f(r) {
1048
- return (s) => {
1048
+ return (i) => {
1049
1049
  const t = { canAccept: !0, fixed: !1, hidePadding: !1 };
1050
1050
  return r && r.properties && Object.keys(r.properties).reduce((n, P) => {
1051
1051
  const b = r.properties[P];
1052
- return n[P] = c(b, s), n;
1052
+ return n[P] = s(b, i), n;
1053
1053
  }, t), t;
1054
1054
  };
1055
1055
  }
1056
- function l(r, s, t) {
1057
- if (s.type === "object" && s.properties) {
1058
- const { rules: n, contents: P } = s.properties;
1056
+ function l(r, i, t) {
1057
+ if (i.type === "object" && i.properties) {
1058
+ const { rules: n, contents: P } = i.properties;
1059
1059
  t.set(r, f(n)), P && Object.keys(P.properties).forEach(
1060
1060
  (b) => l(b, P.properties[b], t)
1061
1061
  );
@@ -1063,19 +1063,19 @@ function Oe() {
1063
1063
  }
1064
1064
  function u() {
1065
1065
  const { properties: r } = De;
1066
- Object.keys(r).forEach((s) => {
1067
- l(s, r[s], M);
1066
+ Object.keys(r).forEach((i) => {
1067
+ l(i, r[i], M);
1068
1068
  });
1069
1069
  }
1070
- function g(r, s) {
1070
+ function g(r, i) {
1071
1071
  const t = { canAccept: !0, fixed: !1, hidePadding: !0 };
1072
- return M.has(r) ? M.get(r)(s) : t;
1072
+ return M.has(r) ? M.get(r)(i) : t;
1073
1073
  }
1074
1074
  return u(), { getRuleValue: g };
1075
1075
  }
1076
1076
  function Te(a, e) {
1077
1077
  const o = Oe();
1078
- let p = !1, i, d = !1;
1078
+ let c = !1, p, d = !1;
1079
1079
  const h = !1;
1080
1080
  function m() {
1081
1081
  return !1;
@@ -1083,62 +1083,62 @@ function Te(a, e) {
1083
1083
  function v() {
1084
1084
  return h || !d;
1085
1085
  }
1086
- function c() {
1086
+ function s() {
1087
1087
  return !d;
1088
1088
  }
1089
1089
  function f() {
1090
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) => {
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
1092
  const N = C && C.appearance ? C.appearance.class : "", Y = N ? N.split(" ") : [];
1093
1093
  return E.push(...Y), E;
1094
1094
  }, []) : [], w = e, D = w && w.appearance && w.appearance.class || "", y = D ? D.split(" ") : [];
1095
- i = {
1095
+ p = {
1096
1096
  componentClass: g,
1097
1097
  componentClassList: r,
1098
- childContents: s,
1098
+ childContents: i,
1099
1099
  firstChildContent: t,
1100
1100
  firstChildClass: n,
1101
1101
  firstChildClassList: P,
1102
1102
  parent: w,
1103
1103
  parentClass: D,
1104
1104
  parentClassList: y,
1105
- children: s,
1105
+ children: i,
1106
1106
  childrenClassList: b
1107
1107
  };
1108
- const { canAccept: A, fixed: j, hidePadding: T } = o.getRuleValue(r[0], i);
1109
- return p = T, d = j, !0;
1108
+ const { canAccept: A, fixed: j, hidePadding: T } = o.getRuleValue(r[0], p);
1109
+ return c = T, d = j, !0;
1110
1110
  }
1111
1111
  function l() {
1112
- return p;
1112
+ return c;
1113
1113
  }
1114
- return { canAccepts: m, checkCanDeleteComponent: v, checkCanMoveComponent: c, resolveComponentContext: f, hideNestedPaddingInDesginerView: l };
1114
+ return { canAccepts: m, checkCanDeleteComponent: v, checkCanMoveComponent: s, resolveComponentContext: f, hideNestedPaddingInDesginerView: l };
1115
1115
  }
1116
1116
  function Ee(a, e) {
1117
- const o = O(a.width), p = O(a.height);
1118
- let i;
1117
+ const o = O(a.width), c = O(a.height);
1118
+ let p;
1119
1119
  J(e, (h) => {
1120
- h && (o.value = h.clientWidth, i = new ResizeObserver((m) => {
1120
+ h && (o.value = h.clientWidth, p = new ResizeObserver((m) => {
1121
1121
  if (!m || m.length < 1)
1122
1122
  return;
1123
- const c = m[0].contentRect;
1124
- c && (o.value = c.width);
1125
- }), i.observe(h));
1123
+ const s = m[0].contentRect;
1124
+ s && (o.value = s.width);
1125
+ }), p.observe(h));
1126
1126
  });
1127
1127
  function d() {
1128
- i && i.disconnect();
1128
+ p && p.disconnect();
1129
1129
  }
1130
1130
  return {
1131
1131
  destory: d,
1132
1132
  width: o,
1133
- height: p
1133
+ height: c
1134
1134
  };
1135
1135
  }
1136
1136
  const Ne = /* @__PURE__ */ F({
1137
1137
  name: "FVideoDesign",
1138
1138
  props: k,
1139
1139
  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), {
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
1142
  width: h,
1143
1143
  height: m,
1144
1144
  destory: v
@@ -1147,11 +1147,11 @@ const Ne = /* @__PURE__ */ F({
1147
1147
  o.value.componentInstance = d;
1148
1148
  }), q(() => {
1149
1149
  v();
1150
- }), e.expose(d.value), () => S("div", {
1150
+ }), e.expose(d.value), () => $("div", {
1151
1151
  ref: o,
1152
1152
  class: "drag-container",
1153
- "data-dragref": `${p.schema.id}-container`
1154
- }, [S("video", {
1153
+ "data-dragref": `${c.schema.id}-container`
1154
+ }, [$("video", {
1155
1155
  src: a.src,
1156
1156
  autoplay: a.autoplay,
1157
1157
  controls: a.controls,
@@ -1161,11 +1161,11 @@ const Ne = /* @__PURE__ */ F({
1161
1161
  height: m.value
1162
1162
  }, [W("Your browser does not support the video tag.")])]);
1163
1163
  }
1164
- }), Se = {
1164
+ }), $e = {
1165
1165
  install(a) {
1166
1166
  a.component(V.name, V);
1167
1167
  },
1168
- register(a, e, o, p) {
1168
+ register(a, e, o, c) {
1169
1169
  a.video = V, e.video = B;
1170
1170
  },
1171
1171
  registerDesigner(a, e, o) {
@@ -1174,7 +1174,7 @@ const Ne = /* @__PURE__ */ F({
1174
1174
  };
1175
1175
  export {
1176
1176
  V as FVideo,
1177
- Se as default,
1177
+ $e as default,
1178
1178
  B as propsResolver,
1179
1179
  k as videoProps
1180
1180
  };
@@ -2,7 +2,7 @@ import { ref as j, computed as L, watch as Cr, createVNode as k, createTextVNode
2
2
  import { useResizeObserver as Xr } from "@vueuse/core";
3
3
  import { cloneDeep as Zr } from "lodash-es";
4
4
  import * as f0 from "echarts";
5
- import Kr from "@farris/ui-vue/components/progress";
5
+ import Kr from "../progress/index.esm.js";
6
6
  const yr = {}, Er = {};
7
7
  function Be(i) {
8
8
  const { properties: C, title: o } = i, r = Object.keys(C).reduce((f, g) => (f[g] = C[g].type === "object" && C[g].properties ? Be(C[g]) : Zr(C[g].default), f), {});
@@ -19,7 +19,7 @@ function de(i, C = {}) {
19
19
  }
20
20
  function Vr(i, C) {
21
21
  const o = Be(C);
22
- return Object.keys(i).reduce((r, f) => (r[f] = i[f], r), o), o;
22
+ return Object.keys(i).reduce((r, f) => (r[f] && typeof r[f] == "object" ? Object.assign(r[f], i[f]) : r[f] = i[f], r), o), o;
23
23
  }
24
24
  function Yr(i, C) {
25
25
  return Object.keys(i).filter((r) => i[r] != null).reduce((r, f) => {