@farris/ui-vue 1.3.5 → 1.3.6

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 (147) hide show
  1. package/components/accordion/index.esm.js +16 -16
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +65 -65
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +13 -13
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +504 -490
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +247 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +356 -344
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +159 -145
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +127 -128
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +15 -15
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/component/index.esm.js +101 -87
  20. package/components/component/index.umd.cjs +1 -1
  21. package/components/condition/index.esm.js +7 -5
  22. package/components/condition/index.umd.cjs +1 -1
  23. package/components/content-container/index.esm.js +181 -167
  24. package/components/content-container/index.umd.cjs +1 -1
  25. package/components/data-grid/index.esm.js +4057 -4304
  26. package/components/data-grid/index.umd.cjs +1 -1
  27. package/components/data-view/index.esm.js +2450 -2467
  28. package/components/data-view/index.umd.cjs +1 -1
  29. package/components/date-picker/index.esm.js +789 -777
  30. package/components/date-picker/index.umd.cjs +1 -1
  31. package/components/designer-canvas/index.esm.js +3593 -3585
  32. package/components/designer-canvas/index.umd.cjs +1 -1
  33. package/components/dropdown/index.esm.js +257 -243
  34. package/components/dropdown/index.umd.cjs +2 -2
  35. package/components/dynamic-form/index.esm.js +322 -306
  36. package/components/dynamic-form/index.umd.cjs +1 -1
  37. package/components/dynamic-resolver/index.esm.js +177 -163
  38. package/components/dynamic-resolver/index.umd.cjs +1 -1
  39. package/components/event-parameter/index.esm.js +163 -2643
  40. package/components/event-parameter/index.umd.cjs +1 -1
  41. package/components/events-editor/index.esm.js +500 -486
  42. package/components/events-editor/index.umd.cjs +1 -1
  43. package/components/expression-editor/index.esm.js +37 -37
  44. package/components/expression-editor/index.umd.cjs +1 -1
  45. package/components/external-container/index.esm.js +485 -470
  46. package/components/external-container/index.umd.cjs +1 -1
  47. package/components/field-selector/index.esm.js +2611 -2623
  48. package/components/field-selector/index.umd.cjs +1 -1
  49. package/components/filter-bar/index.esm.js +3825 -3837
  50. package/components/filter-bar/index.umd.cjs +1 -1
  51. package/components/flow-canvas/index.esm.js +3720 -3712
  52. package/components/flow-canvas/index.umd.cjs +1 -1
  53. package/components/image-cropper/index.esm.js +402 -388
  54. package/components/image-cropper/index.umd.cjs +1 -1
  55. package/components/input-group/index.esm.js +201 -202
  56. package/components/input-group/index.umd.cjs +1 -1
  57. package/components/layout/index.esm.js +264 -245
  58. package/components/layout/index.umd.cjs +1 -1
  59. package/components/list-nav/index.esm.js +157 -143
  60. package/components/list-nav/index.umd.cjs +1 -1
  61. package/components/list-view/index.esm.js +312 -296
  62. package/components/list-view/index.umd.cjs +1 -1
  63. package/components/lookup/index.esm.js +4748 -4992
  64. package/components/lookup/index.umd.cjs +1 -1
  65. package/components/mapping-editor/index.esm.js +4215 -4462
  66. package/components/mapping-editor/index.umd.cjs +1 -1
  67. package/components/nav/index.esm.js +169 -155
  68. package/components/nav/index.umd.cjs +2 -2
  69. package/components/number-range/index.esm.js +150 -137
  70. package/components/number-range/index.umd.cjs +1 -1
  71. package/components/number-spinner/index.esm.js +207 -194
  72. package/components/number-spinner/index.umd.cjs +1 -1
  73. package/components/order/index.esm.js +427 -414
  74. package/components/order/index.umd.cjs +1 -1
  75. package/components/page-footer/index.esm.js +22 -22
  76. package/components/page-footer/index.umd.cjs +1 -1
  77. package/components/page-header/index.esm.js +510 -492
  78. package/components/page-header/index.umd.cjs +1 -1
  79. package/components/pagination/index.esm.js +192 -178
  80. package/components/pagination/index.umd.cjs +1 -1
  81. package/components/progress/index.esm.js +234 -220
  82. package/components/progress/index.umd.cjs +3 -3
  83. package/components/property-editor/index.esm.js +288 -277
  84. package/components/property-editor/index.umd.cjs +2 -2
  85. package/components/property-panel/index.esm.js +62 -61
  86. package/components/property-panel/index.umd.cjs +1 -1
  87. package/components/query-solution/index.esm.js +3015 -3027
  88. package/components/query-solution/index.umd.cjs +5 -5
  89. package/components/radio-button/index.esm.js +64 -64
  90. package/components/radio-button/index.umd.cjs +1 -1
  91. package/components/radio-group/index.esm.js +293 -280
  92. package/components/radio-group/index.umd.cjs +1 -1
  93. package/components/rate/index.esm.js +222 -208
  94. package/components/rate/index.umd.cjs +1 -1
  95. package/components/response-layout/index.esm.js +187 -173
  96. package/components/response-layout/index.umd.cjs +1 -1
  97. package/components/response-layout-editor/index.esm.js +554 -542
  98. package/components/response-layout-editor/index.umd.cjs +1 -1
  99. package/components/response-toolbar/index.esm.js +483 -469
  100. package/components/response-toolbar/index.umd.cjs +1 -1
  101. package/components/schema-selector/index.esm.js +632 -617
  102. package/components/schema-selector/index.umd.cjs +2 -2
  103. package/components/search-box/index.esm.js +228 -214
  104. package/components/search-box/index.umd.cjs +1 -1
  105. package/components/section/index.esm.js +419 -406
  106. package/components/section/index.umd.cjs +1 -1
  107. package/components/smoke-detector/index.esm.js +162 -148
  108. package/components/smoke-detector/index.umd.cjs +1 -1
  109. package/components/splitter/index.esm.js +308 -284
  110. package/components/splitter/index.umd.cjs +1 -1
  111. package/components/step/index.esm.js +279 -265
  112. package/components/step/index.umd.cjs +1 -1
  113. package/components/switch/index.esm.js +183 -170
  114. package/components/switch/index.umd.cjs +1 -1
  115. package/components/tabs/index.esm.js +307 -294
  116. package/components/tabs/index.umd.cjs +1 -1
  117. package/components/tags/index.esm.js +320 -306
  118. package/components/tags/index.umd.cjs +1 -1
  119. package/components/text/index.esm.js +245 -231
  120. package/components/text/index.umd.cjs +1 -1
  121. package/components/textarea/index.esm.js +260 -247
  122. package/components/textarea/index.umd.cjs +1 -1
  123. package/components/time-picker/index.esm.js +409 -396
  124. package/components/time-picker/index.umd.cjs +1 -1
  125. package/components/transfer/index.esm.js +424 -410
  126. package/components/transfer/index.umd.cjs +1 -1
  127. package/components/tree-grid/index.esm.js +2994 -3006
  128. package/components/tree-grid/index.umd.cjs +1 -1
  129. package/components/tree-view/index.esm.js +749 -733
  130. package/components/tree-view/index.umd.cjs +1 -1
  131. package/components/uploader/index.esm.js +325 -311
  132. package/components/uploader/index.umd.cjs +2 -2
  133. package/components/verify-detail/index.esm.js +304 -290
  134. package/components/verify-detail/index.umd.cjs +1 -1
  135. package/components/video/index.esm.js +99 -85
  136. package/components/video/index.umd.cjs +1 -1
  137. package/components/weather/index.esm.js +947 -933
  138. package/components/weather/index.umd.cjs +4 -4
  139. package/farris.all.esm.js +7750 -7990
  140. package/farris.all.umd.cjs +12 -12
  141. package/package.json +1 -1
  142. package/types/data-view/composition/types.d.ts +0 -1
  143. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
  144. package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
  145. package/components/event-parameter/index.css +0 -1
  146. package/types/data-grid/src/components/data/data-grid-area.component.d.ts +0 -8
  147. package/types/data-grid/src/components/data/data-grid-area.props.d.ts +0 -3
@@ -1,48 +1,62 @@
1
- import { defineComponent as j, createVNode as N, nextTick as q, ref as k, inject as S, computed as G, onMounted as W } from "vue";
2
- import { isPlainObject as E, cloneDeep as _ } from "lodash-es";
1
+ import { defineComponent as j, createVNode as O, nextTick as _, ref as w, inject as F, computed as G, onMounted as W } from "vue";
2
+ import { isPlainObject as B, cloneDeep as N } from "lodash-es";
3
3
  import "bignumber.js";
4
- const O = {}, V = {};
5
- function A(n) {
6
- const { properties: e, title: t, ignore: r } = n, o = r && Array.isArray(r), c = Object.keys(e).reduce((a, u) => ((!o || !r.find((y) => y === u)) && (a[u] = e[u].type === "object" && e[u].properties ? A(e[u]) : _(e[u].default)), a), {});
7
- if (t && (!o || !r.find((a) => a === "id"))) {
8
- const a = t.toLowerCase().replace(/-/g, "_");
9
- c.id = `${a}_${Math.random().toString().slice(2, 6)}`;
4
+ const $ = {}, V = {};
5
+ function A(o) {
6
+ const { properties: e, title: t, ignore: a } = o, r = a && Array.isArray(a), c = Object.keys(e).reduce((n, u) => ((!r || !a.find((y) => y === u)) && (n[u] = e[u].type === "object" && e[u].properties ? A(e[u]) : N(e[u].default)), n), {});
7
+ if (t && (!r || !a.find((n) => n === "id"))) {
8
+ const n = t.toLowerCase().replace(/-/g, "_");
9
+ c.id = `${n}_${Math.random().toString().slice(2, 6)}`;
10
10
  }
11
11
  return c;
12
12
  }
13
- function $(n, e = {}, t) {
14
- const r = O[n];
15
- if (r) {
16
- let o = A(r);
17
- const c = V[n];
18
- return o = c ? c({ getSchemaByType: $ }, o, e, t) : o, o;
13
+ function U(o) {
14
+ const { properties: e, title: t, required: a } = o;
15
+ if (a && Array.isArray(a)) {
16
+ const r = a.reduce((c, n) => (c[n] = e[n].type === "object" && e[n].properties ? A(e[n]) : N(e[n].default), c), {});
17
+ if (t && a.find((c) => c === "id")) {
18
+ const c = t.toLowerCase().replace(/-/g, "_");
19
+ r.id = `${c}_${Math.random().toString().slice(2, 6)}`;
20
+ }
21
+ return r;
22
+ }
23
+ return {
24
+ type: t
25
+ };
26
+ }
27
+ function q(o, e = {}, t) {
28
+ const a = $[o];
29
+ if (a) {
30
+ let r = U(a);
31
+ const c = V[o];
32
+ return r = c ? c({ getSchemaByType: q }, r, e, t) : r, r;
19
33
  }
20
34
  return null;
21
35
  }
22
- function U(n, e) {
36
+ function z(o, e) {
23
37
  const t = A(e);
24
- return Object.keys(t).reduce((r, o) => (r[o] && E(r[o]) && E(n[o] || !n[o]) ? Object.assign(r[o], n[o] || {}) : r[o] = n[o], r), t), t;
38
+ return Object.keys(t).reduce((a, r) => (Object.prototype.hasOwnProperty.call(o, r) && (a[r] && B(a[r]) && B(o[r] || !o[r]) ? Object.assign(a[r], o[r] || {}) : a[r] = o[r]), a), t), t;
25
39
  }
26
- function z(n, e) {
27
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, o) => {
28
- if (e.has(o)) {
29
- const c = e.get(o);
40
+ function Q(o, e) {
41
+ return Object.keys(o).filter((a) => o[a] != null).reduce((a, r) => {
42
+ if (e.has(r)) {
43
+ const c = e.get(r);
30
44
  if (typeof c == "string")
31
- r[c] = n[o];
45
+ a[c] = o[r];
32
46
  else {
33
- const a = c(o, n[o], n);
34
- Object.assign(r, a);
47
+ const n = c(r, o[r], o);
48
+ Object.assign(a, n);
35
49
  }
36
50
  } else
37
- r[o] = n[o];
38
- return r;
51
+ a[r] = o[r];
52
+ return a;
39
53
  }, {});
40
54
  }
41
- function Q(n, e, t = /* @__PURE__ */ new Map()) {
42
- const r = U(n, e);
43
- return z(r, t);
55
+ function J(o, e, t = /* @__PURE__ */ new Map()) {
56
+ const a = z(o, e);
57
+ return Q(a, t);
44
58
  }
45
- function J(n = {}) {
59
+ function X(o = {}) {
46
60
  function e(i, s, l, p) {
47
61
  if (typeof l == "number")
48
62
  return p[i].length === l;
@@ -60,12 +74,12 @@ function J(n = {}) {
60
74
  function t(i, s, l, p) {
61
75
  return p[i] && p[i].propertyValue && String(p[i].propertyValue.value) === String(l);
62
76
  }
63
- const r = /* @__PURE__ */ new Map([
77
+ const a = /* @__PURE__ */ new Map([
64
78
  ["length", e],
65
79
  ["getProperty", t]
66
80
  ]);
67
- Object.keys(n).reduce((i, s) => (i.set(s, n[s]), i), r);
68
- function o(i, s) {
81
+ Object.keys(o).reduce((i, s) => (i.set(s, o[s]), i), a);
82
+ function r(i, s) {
69
83
  const l = i;
70
84
  return typeof s == "number" ? [{ target: l, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: l, operator: "getProperty", param: i, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
71
85
  if (p === "length")
@@ -76,27 +90,27 @@ function J(n = {}) {
76
90
  }
77
91
  function c(i) {
78
92
  return Object.keys(i).reduce((l, p) => {
79
- const m = o(p, i[p]);
93
+ const m = r(p, i[p]);
80
94
  return l.push(...m), l;
81
95
  }, []);
82
96
  }
83
- function a(i, s) {
84
- if (r.has(i.operator)) {
85
- const l = r.get(i.operator);
97
+ function n(i, s) {
98
+ if (a.has(i.operator)) {
99
+ const l = a.get(i.operator);
86
100
  return l && l(i.target, i.param, i.value, s) || !1;
87
101
  }
88
102
  return !1;
89
103
  }
90
104
  function u(i, s) {
91
- return c(i).reduce((m, h) => m && a(h, s), !0);
105
+ return c(i).reduce((m, h) => m && n(h, s), !0);
92
106
  }
93
107
  function y(i, s) {
94
- const l = Object.keys(i), p = l.includes("allOf"), m = l.includes("anyOf"), h = p || m, C = (h ? i[h ? p ? "allOf" : "anyOf" : "allOf"] : [i]).map((w) => u(w, s));
108
+ const l = Object.keys(i), p = l.includes("allOf"), m = l.includes("anyOf"), h = p || m, C = (h ? i[h ? p ? "allOf" : "anyOf" : "allOf"] : [i]).map((k) => u(k, s));
95
109
  return p ? !C.includes(!1) : C.includes(!0);
96
110
  }
97
111
  return { parseValueSchema: y };
98
112
  }
99
- const T = {
113
+ const g = {
100
114
  button: { type: "button", name: "按钮", icon: "Button" },
101
115
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
102
116
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
@@ -136,20 +150,20 @@ const T = {
136
150
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
137
151
  fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
138
152
  "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
139
- }, X = {}, Y = {};
140
- J();
141
- function Z(n, e, t = /* @__PURE__ */ new Map(), r = (a, u, y, i) => u, o = {}, c = (a) => a) {
142
- return O[e.title] = e, V[e.title] = r, X[e.title] = o, Y[e.title] = c, (a = {}) => {
143
- const u = Q(a, e, t), y = Object.keys(n).reduce((i, s) => (i[s] = n[s].default, i), {});
153
+ }, Y = {}, Z = {};
154
+ X();
155
+ function H(o, e, t = /* @__PURE__ */ new Map(), a = (n, u, y, i) => u, r = {}, c = (n) => n) {
156
+ return $[e.title] = e, V[e.title] = a, Y[e.title] = r, Z[e.title] = c, (n = {}) => {
157
+ const u = J(n, e, t), y = Object.keys(o).reduce((i, s) => (i[s] = o[s].default, i), {});
144
158
  return Object.assign(y, u);
145
159
  };
146
160
  }
147
- function H(n, e) {
161
+ function K(o, e) {
148
162
  return { customClass: e.class, customStyle: e.style };
149
163
  }
150
- const K = /* @__PURE__ */ new Map([
151
- ["appearance", H]
152
- ]), x = "https://json-schema.org/draft/2020-12/schema", I = "https://farris-design.gitee.io/content-container.schema.json", ee = "content-container", te = "A Farris Container Component", ne = "object", oe = {
164
+ const x = /* @__PURE__ */ new Map([
165
+ ["appearance", K]
166
+ ]), I = "https://json-schema.org/draft/2020-12/schema", ee = "https://farris-design.gitee.io/content-container.schema.json", te = "content-container", ne = "A Farris Container Component", oe = "object", re = {
153
167
  id: {
154
168
  description: "The unique identifier for a Section",
155
169
  type: "string"
@@ -199,15 +213,15 @@ const K = /* @__PURE__ */ new Map([
199
213
  "id",
200
214
  "type",
201
215
  "contents"
202
- ], re = {
203
- $schema: x,
204
- $id: I,
205
- title: ee,
206
- description: te,
207
- type: ne,
208
- properties: oe,
216
+ ], ce = {
217
+ $schema: I,
218
+ $id: ee,
219
+ title: te,
220
+ description: ne,
221
+ type: oe,
222
+ properties: re,
209
223
  required: ae
210
- }, ce = "content-container", ie = "A Farris Container Component", se = "object", le = {
224
+ }, ie = "content-container", se = "A Farris Container Component", le = "object", pe = {
211
225
  basic: {
212
226
  description: "Basic Infomation",
213
227
  title: "基本信息",
@@ -250,125 +264,125 @@ const K = /* @__PURE__ */ new Map([
250
264
  }
251
265
  }
252
266
  }
253
- }, pe = {
254
- title: ce,
255
- description: ie,
256
- type: se,
257
- categories: le
267
+ }, ue = {
268
+ title: ie,
269
+ description: se,
270
+ type: le,
271
+ categories: pe
258
272
  };
259
- function ue(n, e, t) {
273
+ function fe(o, e, t) {
260
274
  return e;
261
275
  }
262
276
  const P = {
263
277
  customClass: { type: String, default: "" },
264
278
  customStyle: { type: String, default: "" }
265
- }, B = Z(P, re, K, ue, pe), L = /* @__PURE__ */ j({
279
+ }, E = H(P, ce, x, fe, ue), L = /* @__PURE__ */ j({
266
280
  name: "FContentContainer",
267
281
  props: P,
268
282
  emits: [],
269
- setup(n, e) {
270
- return () => N("div", {
271
- class: n.customClass,
272
- style: n.customStyle
283
+ setup(o, e) {
284
+ return () => O("div", {
285
+ class: o.customClass,
286
+ style: o.customStyle
273
287
  }, [e.slots.default && e.slots.default()]);
274
288
  }
275
289
  });
276
- function fe() {
277
- function n(e, t) {
278
- var a;
290
+ function me() {
291
+ function o(e, t) {
292
+ var n;
279
293
  if (!e)
280
294
  return !1;
281
- const r = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
282
- if (!r)
295
+ const a = ((n = e.targetContainer) == null ? void 0 : n.componentInstance) && e.targetContainer.componentInstance.value;
296
+ if (!a)
283
297
  return !1;
284
- const o = r.schema.type, c = t == null ? void 0 : t.formSchemaUtils.getComponentById(r.belongedComponentId);
285
- return !((e.componentCategory === "input" || e.componentType === "form-group") && ![T["response-layout-item"].type, T["response-form"].type].includes(o) || (e.componentType === T.tabs.type || e.componentType === T.section.type) && ((c == null ? void 0 : c.componentType) !== "frame" || ![T["content-container"].type, T["splitter-pane"].type, T["response-layout-item"].type].includes(o)));
298
+ const r = a.schema.type, c = t == null ? void 0 : t.formSchemaUtils.getComponentById(a.belongedComponentId);
299
+ return !((e.componentCategory === "input" || e.componentType === "form-group") && ![g["response-layout-item"].type, g["response-form"].type].includes(r) || (e.componentType === g.tabs.type || e.componentType === g.section.type) && ((c == null ? void 0 : c.componentType) !== "frame" || ![g["content-container"].type, g["splitter-pane"].type, g["response-layout-item"].type].includes(r)));
286
300
  }
287
301
  return {
288
- basalDragulaRuleForContainer: n
302
+ basalDragulaRuleForContainer: o
289
303
  };
290
304
  }
291
- class me {
305
+ class ye {
292
306
  getTemplateRule(e, t) {
293
- const r = t == null ? void 0 : t.formSchemaUtils, o = r == null ? void 0 : r.getFormTemplateRule(), c = { canAccept: !0, canDelete: !0, canMove: !0 };
294
- if (!o)
307
+ const a = t == null ? void 0 : t.formSchemaUtils, r = a == null ? void 0 : a.getFormTemplateRule(), c = { canAccept: !0, canDelete: !0, canMove: !0 };
308
+ if (!r)
295
309
  return c;
296
- const a = this.getComponentContext(e), { componentClassList: u } = a;
310
+ const n = this.getComponentContext(e), { componentClassList: u } = n;
297
311
  return u.forEach((y) => {
298
- if (!y || !o[y])
312
+ if (!y || !r[y])
299
313
  return;
300
- const { canMove: i, canDelete: s, canAccept: l } = o[y];
301
- c.canMove = c.canMove && this.resolveRuleValue(i, a), c.canDelete = c.canDelete && this.resolveRuleValue(s, a), c.canAccept = c.canAccept && this.resolveRuleValue(l, a);
314
+ const { canMove: i, canDelete: s, canAccept: l } = r[y];
315
+ c.canMove = c.canMove && this.resolveRuleValue(i, n), c.canDelete = c.canDelete && this.resolveRuleValue(s, n), c.canAccept = c.canAccept && this.resolveRuleValue(l, n);
302
316
  }), c;
303
317
  }
304
318
  resolveRuleValue(e, t) {
305
319
  return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
306
320
  }
307
321
  parseRuleValueSchema(e, t) {
308
- const r = e.invalidContext || [];
309
- let o = !0;
310
- for (const c of r) {
322
+ const a = e.invalidContext || [];
323
+ let r = !0;
324
+ for (const c of a) {
311
325
  if (c.firstLevelChild) {
312
326
  if (c.firstLevelChild.class) {
313
- const { firstLevelChildClassList: a } = t;
314
- if (a && !a.includes(c.firstLevelChild.class)) {
315
- o = !1;
327
+ const { firstLevelChildClassList: n } = t;
328
+ if (n && !n.includes(c.firstLevelChild.class)) {
329
+ r = !1;
316
330
  continue;
317
331
  }
318
332
  }
319
333
  if (c.firstLevelChild.type) {
320
- const { firstLevelChildSchema: a } = t;
321
- if (!a || a.type !== c.firstLevelChild.type) {
322
- o = !1;
334
+ const { firstLevelChildSchema: n } = t;
335
+ if (!n || n.type !== c.firstLevelChild.type) {
336
+ r = !1;
323
337
  continue;
324
338
  }
325
339
  }
326
340
  }
327
341
  if (c.secondLevelChild) {
328
342
  if (c.secondLevelChild.class) {
329
- const { secondLevelChildClassList: a } = t;
330
- if (a && !a.includes(c.secondLevelChild.class)) {
331
- o = !1;
343
+ const { secondLevelChildClassList: n } = t;
344
+ if (n && !n.includes(c.secondLevelChild.class)) {
345
+ r = !1;
332
346
  continue;
333
347
  }
334
348
  }
335
349
  if (c.secondLevelChild.type) {
336
- const { secondLevelChildSchema: a } = t;
337
- if (!a || a.type !== c.secondLevelChild.type) {
338
- o = !1;
350
+ const { secondLevelChildSchema: n } = t;
351
+ if (!n || n.type !== c.secondLevelChild.type) {
352
+ r = !1;
339
353
  continue;
340
354
  }
341
355
  }
342
356
  }
343
357
  if (c.parent) {
344
358
  if (c.parent.class) {
345
- const { parentClassList: a } = t;
346
- if (a && !a.includes(c.parent.class)) {
347
- o = !1;
359
+ const { parentClassList: n } = t;
360
+ if (n && !n.includes(c.parent.class)) {
361
+ r = !1;
348
362
  continue;
349
363
  }
350
364
  }
351
365
  if (c.parent.type) {
352
- const { parentSchema: a } = t;
353
- if (a && a.type !== c.parent.type) {
354
- o = !1;
366
+ const { parentSchema: n } = t;
367
+ if (n && n.type !== c.parent.type) {
368
+ r = !1;
355
369
  continue;
356
370
  }
357
371
  }
358
372
  }
359
- o = !0;
373
+ r = !0;
360
374
  break;
361
375
  }
362
- return !o;
376
+ return !r;
363
377
  }
364
378
  getComponentContext(e) {
365
- var g, D, C, M;
366
- const t = e.schema, r = t.appearance && t.appearance.class || "", o = r.split(" ") || [], c = t.contents || [], a = c.length ? c[0] : null, u = a && a.appearance ? a.appearance.class : "", y = u ? u.split(" ") : [], i = (g = a == null ? void 0 : a.contents) != null && g.length ? a == null ? void 0 : a.contents[0] : null, s = i && i.appearance ? i.appearance.class : "", l = s ? s.split(" ") : [], p = t.type === "component" ? (C = (D = e.parent) == null ? void 0 : D.parent) == null ? void 0 : C.schema : (M = e.parent) == null ? void 0 : M.schema, m = p && p.appearance && p.appearance.class || "", h = m ? m.split(" ") : [];
379
+ var T, D, C, M;
380
+ const t = e.schema, a = t.appearance && t.appearance.class || "", r = a.split(" ") || [], c = t.contents || [], n = c.length ? c[0] : null, u = n && n.appearance ? n.appearance.class : "", y = u ? u.split(" ") : [], i = (T = n == null ? void 0 : n.contents) != null && T.length ? n == null ? void 0 : n.contents[0] : null, s = i && i.appearance ? i.appearance.class : "", l = s ? s.split(" ") : [], p = t.type === "component" ? (C = (D = e.parent) == null ? void 0 : D.parent) == null ? void 0 : C.schema : (M = e.parent) == null ? void 0 : M.schema, m = p && p.appearance && p.appearance.class || "", h = m ? m.split(" ") : [];
367
381
  return {
368
- componentClass: r,
369
- componentClassList: o,
382
+ componentClass: a,
383
+ componentClassList: r,
370
384
  childContents: c,
371
- firstLevelChildSchema: a,
385
+ firstLevelChildSchema: n,
372
386
  firstLevelChildClass: u,
373
387
  firstLevelChildClassList: y,
374
388
  secondLevelChildSchema: i,
@@ -380,45 +394,45 @@ class me {
380
394
  };
381
395
  }
382
396
  }
383
- function ye(n, e) {
384
- const t = n.schema, r = new me();
385
- function o(s) {
386
- if (!fe().basalDragulaRuleForContainer(s, e))
397
+ function he(o, e) {
398
+ const t = o.schema, a = new ye();
399
+ function r(s) {
400
+ if (!me().basalDragulaRuleForContainer(s, e))
387
401
  return !1;
388
- const { canAccept: p } = r.getTemplateRule(n, e);
402
+ const { canAccept: p } = a.getTemplateRule(o, e);
389
403
  return p;
390
404
  }
391
405
  function c(s) {
392
- q();
406
+ _();
393
407
  }
394
- function a() {
408
+ function n() {
395
409
  return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
396
410
  }
397
411
  function u() {
398
- const { canMove: s } = r.getTemplateRule(n, e);
412
+ const { canMove: s } = a.getTemplateRule(o, e);
399
413
  return s;
400
414
  }
401
415
  function y() {
402
- const { canDelete: s } = r.getTemplateRule(n, e);
416
+ const { canDelete: s } = a.getTemplateRule(o, e);
403
417
  return s;
404
418
  }
405
419
  function i() {
406
- const { canMove: s, canDelete: l } = r.getTemplateRule(n, e);
420
+ const { canMove: s, canDelete: l } = a.getTemplateRule(o, e);
407
421
  return !s && !l;
408
422
  }
409
423
  return {
410
- canAccepts: o,
411
- getStyles: a,
424
+ canAccepts: r,
425
+ getStyles: n,
412
426
  onAcceptMovedChildElement: c,
413
427
  checkCanMoveComponent: u,
414
428
  checkCanDeleteComponent: y,
415
429
  hideNestedPaddingInDesginerView: i
416
430
  };
417
431
  }
418
- function he(n, e, t) {
419
- var F;
420
- const r = t && t.getStyles && t.getStyles() || "", o = t && t.getDesignerClass && t.getDesignerClass() || "", c = k();
421
- function a() {
432
+ function de(o, e, t) {
433
+ var S;
434
+ const a = t && t.getStyles && t.getStyles() || "", r = t && t.getDesignerClass && t.getDesignerClass() || "", c = w();
435
+ function n() {
422
436
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
423
437
  }
424
438
  function u() {
@@ -435,7 +449,7 @@ function he(n, e, t) {
435
449
  return null;
436
450
  if (f.value.schema && f.value.schema.type === "component")
437
451
  return f.value;
438
- const d = k(f == null ? void 0 : f.value.parent), b = s(d);
452
+ const d = w(f == null ? void 0 : f.value.parent), b = s(d);
439
453
  return b || null;
440
454
  }
441
455
  function l(f = e) {
@@ -450,12 +464,12 @@ function he(n, e, t) {
450
464
  }
451
465
  function h() {
452
466
  }
453
- function g(f, d) {
467
+ function T(f, d) {
454
468
  d && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(d);
455
469
  }
456
470
  function D(f, d) {
457
471
  const { componentType: b } = f;
458
- let v = $(b, f, d);
472
+ let v = q(b, f, d);
459
473
  t && t.onResolveNewComponentSchema && (v = t.onResolveNewComponentSchema(f, v));
460
474
  const R = b.toLowerCase().replace(/-/g, "_");
461
475
  return v && !v.id && v.type === b && (v.id = `${R}_${Math.random().toString().slice(2, 6)}`), v;
@@ -466,88 +480,88 @@ function he(n, e, t) {
466
480
  if (t && t.getPropsConfig)
467
481
  return t.getPropsConfig(...f);
468
482
  }
469
- function w() {
483
+ function k() {
470
484
  t && t.onRemoveComponent && t.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((f) => {
471
485
  var v;
472
486
  let d = f.id;
473
487
  f.type === "component-ref" && (d = f.component);
474
- const b = n.value.querySelector(`#${d}-design-item`);
488
+ const b = o.value.querySelector(`#${d}-design-item`);
475
489
  (v = b == null ? void 0 : b.componentInstance) != null && v.value.onRemoveComponent && b.componentInstance.value.onRemoveComponent();
476
490
  });
477
491
  }
478
492
  return c.value = {
479
- canMove: a(),
493
+ canMove: n(),
480
494
  canSelectParent: u(),
481
495
  canDelete: y(),
482
496
  canNested: !i(),
483
497
  contents: e == null ? void 0 : e.schema.contents,
484
- elementRef: n,
485
- parent: (F = e == null ? void 0 : e.parent) == null ? void 0 : F.componentInstance,
498
+ elementRef: o,
499
+ parent: (S = e == null ? void 0 : e.parent) == null ? void 0 : S.componentInstance,
486
500
  schema: e == null ? void 0 : e.schema,
487
- styles: r,
488
- designerClass: o,
501
+ styles: a,
502
+ designerClass: r,
489
503
  canAccepts: p,
490
504
  getBelongedComponentInstance: s,
491
505
  getDraggableDesignItemElement: l,
492
506
  getDraggingDisplayText: m,
493
507
  getPropConfig: M,
494
508
  getDragScopeElement: h,
495
- onAcceptMovedChildElement: g,
509
+ onAcceptMovedChildElement: T,
496
510
  onChildElementMovedOut: C,
497
511
  addNewChildComponentSchema: D,
498
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || k(!1),
499
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || k(!1),
500
- onRemoveComponent: w
512
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || w(!1),
513
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || w(!1),
514
+ onRemoveComponent: k
501
515
  }, c;
502
516
  }
503
- const de = ["moz", "ms", "webkit"];
504
- function be() {
505
- let n = 0;
517
+ const be = ["moz", "ms", "webkit"];
518
+ function ve() {
519
+ let o = 0;
506
520
  return (e) => {
507
- const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - n)), o = setTimeout(() => {
508
- e(t + r);
509
- }, r);
510
- return n = t + r, o;
521
+ const t = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (t - o)), r = setTimeout(() => {
522
+ e(t + a);
523
+ }, a);
524
+ return o = t + a, r;
511
525
  };
512
526
  }
513
- function ve() {
527
+ function Ce() {
514
528
  if (typeof window > "u")
515
529
  return () => 0;
516
530
  if (window.requestAnimationFrame)
517
531
  return window.requestAnimationFrame.bind(window);
518
- const n = de.filter((e) => `${e}RequestAnimationFrame` in window)[0];
519
- return n ? window[`${n}RequestAnimationFrame`] : be();
532
+ const o = be.filter((e) => `${e}RequestAnimationFrame` in window)[0];
533
+ return o ? window[`${o}RequestAnimationFrame`] : ve();
520
534
  }
521
- ve();
522
- function Ce(n, e) {
523
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, o) => (o && (r[o] = !0), r), n), n;
535
+ Ce();
536
+ function ge(o, e) {
537
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((a, r) => (r && (a[r] = !0), a), o), o;
524
538
  }
525
539
  const Te = /* @__PURE__ */ j({
526
540
  name: "FContentContainerDesign",
527
541
  props: P,
528
542
  emits: [],
529
- setup(n, e) {
530
- const t = k(), r = S("designer-host-service"), o = S("design-item-context"), c = ye(o, r), a = he(t, o, c), u = G(() => Ce({
543
+ setup(o, e) {
544
+ const t = w(), a = F("designer-host-service"), r = F("design-item-context"), c = he(r, a), n = de(t, r, c), u = G(() => ge({
531
545
  "drag-container": !0
532
- }, n == null ? void 0 : n.customClass));
546
+ }, o == null ? void 0 : o.customClass));
533
547
  return W(() => {
534
- t.value.componentInstance = a;
535
- }), e.expose(a.value), () => N("div", {
548
+ t.value.componentInstance = n;
549
+ }), e.expose(n.value), () => O("div", {
536
550
  ref: t,
537
551
  class: u.value,
538
- style: n.customStyle,
539
- "data-dragref": `${o.schema.id}-container`
552
+ style: o.customStyle,
553
+ "data-dragref": `${r.schema.id}-container`
540
554
  }, [e.slots.default && e.slots.default()]);
541
555
  }
542
556
  }), ke = {
543
- install(n) {
544
- n.component(L.name, L);
557
+ install(o) {
558
+ o.component(L.name, L);
545
559
  },
546
- register(n, e, t, r) {
547
- n["content-container"] = L, e["content-container"] = B;
560
+ register(o, e, t, a) {
561
+ o["content-container"] = L, e["content-container"] = E;
548
562
  },
549
- registerDesigner(n, e, t) {
550
- n["content-container"] = Te, e["content-container"] = B;
563
+ registerDesigner(o, e, t) {
564
+ o["content-container"] = Te, e["content-container"] = E;
551
565
  }
552
566
  };
553
567
  export {
@@ -555,5 +569,5 @@ export {
555
569
  Te as ContentContainerDesign,
556
570
  P as contentContainerProps,
557
571
  ke as default,
558
- B as propsResolver
572
+ E as propsResolver
559
573
  };