@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.
- package/components/accordion/index.esm.js +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -1,121 +1,125 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
const { properties: e, title: t } = c,
|
|
6
|
-
return
|
|
1
|
+
import { defineComponent as q, onBeforeMount as X, onMounted as W, createVNode as _, ref as w, inject as Y } from "vue";
|
|
2
|
+
import { cloneDeep as Z } from "lodash-es";
|
|
3
|
+
const J = {}, z = {};
|
|
4
|
+
function k(r) {
|
|
5
|
+
const { properties: e, title: t, ignore: c } = r, p = c && Array.isArray(c), b = Object.keys(e).reduce((h, j) => ((!p || !c.find((A) => A == j)) && (h[j] = e[j].type === "object" && e[j].properties ? k(e[j]) : Z(e[j].default)), h), {});
|
|
6
|
+
return (!p || !c.find((h) => h == "id")) && (b.id = `${t}-${Date.now()}`), b;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
return
|
|
8
|
+
function V(r, e = {}, t) {
|
|
9
|
+
const c = J[r];
|
|
10
|
+
if (c) {
|
|
11
|
+
let p = k(c);
|
|
12
|
+
const b = z[r];
|
|
13
|
+
return p = b ? b({ getSchemaByType: V }, p, e, t) : p, p;
|
|
14
14
|
}
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
const t =
|
|
19
|
-
return Object.keys(
|
|
17
|
+
function R(r, e) {
|
|
18
|
+
const t = k(e);
|
|
19
|
+
return Object.keys(r).reduce((c, p) => (c[p] && typeof c[p] == "object" ? Object.assign(c[p], r[p]) : c[p] = r[p], c), t), t;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return Object.keys(
|
|
21
|
+
function K(r, e) {
|
|
22
|
+
return Object.keys(r).filter((c) => r[c] != null).reduce((c, p) => {
|
|
23
23
|
if (e.has(p)) {
|
|
24
|
-
const
|
|
25
|
-
if (typeof
|
|
26
|
-
|
|
24
|
+
const b = e.get(p);
|
|
25
|
+
if (typeof b == "string")
|
|
26
|
+
c[b] = r[p];
|
|
27
27
|
else {
|
|
28
|
-
const
|
|
29
|
-
Object.assign(
|
|
28
|
+
const h = b(p, r[p], r);
|
|
29
|
+
Object.assign(c, h);
|
|
30
30
|
}
|
|
31
31
|
} else
|
|
32
|
-
|
|
33
|
-
return
|
|
32
|
+
c[p] = r[p];
|
|
33
|
+
return c;
|
|
34
34
|
}, {});
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
return
|
|
36
|
+
function x(r, e, t = /* @__PURE__ */ new Map()) {
|
|
37
|
+
const c = R(r, e);
|
|
38
|
+
return K(c, t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
function e(a,
|
|
40
|
+
function I(r = {}) {
|
|
41
|
+
function e(a, f, l, d) {
|
|
42
42
|
if (typeof l == "number")
|
|
43
|
-
return
|
|
43
|
+
return d[a].length === l;
|
|
44
44
|
if (typeof l == "object") {
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
return Number(
|
|
48
|
-
if (
|
|
49
|
-
return Number(
|
|
50
|
-
if (
|
|
51
|
-
return Number(
|
|
45
|
+
const m = Object.keys(l)[0], n = l[m];
|
|
46
|
+
if (m === "not")
|
|
47
|
+
return Number(d[a].length) !== Number(n);
|
|
48
|
+
if (m === "moreThan")
|
|
49
|
+
return Number(d[a].length) >= Number(n);
|
|
50
|
+
if (m === "lessThan")
|
|
51
|
+
return Number(d[a].length) <= Number(n);
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
54
|
}
|
|
55
|
-
function t(a,
|
|
56
|
-
return
|
|
55
|
+
function t(a, f, l, d) {
|
|
56
|
+
return d[a] && d[a].propertyValue && String(d[a].propertyValue.value) === String(l);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const c = /* @__PURE__ */ new Map([
|
|
59
59
|
["length", e],
|
|
60
60
|
["getProperty", t]
|
|
61
61
|
]);
|
|
62
|
-
Object.keys(
|
|
63
|
-
function p(a,
|
|
62
|
+
Object.keys(r).reduce((a, f) => (a.set(f, r[f]), a), c);
|
|
63
|
+
function p(a, f) {
|
|
64
64
|
const l = a;
|
|
65
|
-
return typeof
|
|
66
|
-
if (
|
|
67
|
-
return { target: l, operator: "length", param: null, value: d
|
|
68
|
-
const
|
|
69
|
-
return { target: l, operator: "getProperty", param:
|
|
65
|
+
return typeof f == "number" ? [{ target: l, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: l, operator: "getProperty", param: a, value: !!f }] : typeof f == "object" ? Object.keys(f).map((d) => {
|
|
66
|
+
if (d === "length")
|
|
67
|
+
return { target: l, operator: "length", param: null, value: f[d] };
|
|
68
|
+
const m = d, n = f[d];
|
|
69
|
+
return { target: l, operator: "getProperty", param: m, value: n };
|
|
70
70
|
}) : [];
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return Object.keys(a).reduce((l,
|
|
74
|
-
const
|
|
75
|
-
return l.push(...
|
|
72
|
+
function b(a) {
|
|
73
|
+
return Object.keys(a).reduce((l, d) => {
|
|
74
|
+
const m = p(d, a[d]);
|
|
75
|
+
return l.push(...m), l;
|
|
76
76
|
}, []);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
if (
|
|
80
|
-
const l =
|
|
81
|
-
return l && l(a.target, a.param, a.value,
|
|
78
|
+
function h(a, f) {
|
|
79
|
+
if (c.has(a.operator)) {
|
|
80
|
+
const l = c.get(a.operator);
|
|
81
|
+
return l && l(a.target, a.param, a.value, f) || !1;
|
|
82
82
|
}
|
|
83
83
|
return !1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function j(a, f) {
|
|
86
|
+
return b(a).reduce((m, n) => m && h(n, f), !0);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
const l = Object.keys(a),
|
|
90
|
-
return
|
|
88
|
+
function A(a, f) {
|
|
89
|
+
const l = Object.keys(a), d = l.includes("allOf"), m = l.includes("anyOf"), n = d || m, i = (n ? a[n ? d ? "allOf" : "anyOf" : "allOf"] : [a]).map((y) => j(y, f));
|
|
90
|
+
return d ? !i.includes(!1) : i.includes(!0);
|
|
91
91
|
}
|
|
92
|
-
return { parseValueSchema:
|
|
92
|
+
return { parseValueSchema: A };
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
function
|
|
97
|
-
return
|
|
98
|
-
const
|
|
99
|
-
return Object.assign(
|
|
94
|
+
const ee = {}, te = {};
|
|
95
|
+
I();
|
|
96
|
+
function G(r, e, t = /* @__PURE__ */ new Map(), c = (h, j, A) => j, p = {}, b = (h) => h) {
|
|
97
|
+
return J[e.title] = e, z[e.title] = c, ee[e.title] = p, te[e.title] = b, (h = {}) => {
|
|
98
|
+
const j = x(h, e, t), A = Object.keys(r).reduce((a, f) => (a[f] = r[f].default, a), {});
|
|
99
|
+
return Object.assign(A, j);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ne(r, e) {
|
|
103
103
|
return { customClass: e.class, customStyle: e.style };
|
|
104
104
|
}
|
|
105
|
-
const
|
|
106
|
-
["appearance",
|
|
107
|
-
]),
|
|
105
|
+
const H = /* @__PURE__ */ new Map([
|
|
106
|
+
["appearance", ne]
|
|
107
|
+
]), oe = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-design.gitee.io/component.schema.json", ce = "component", se = "A Farris Visual Component", pe = "object", ae = {
|
|
108
108
|
id: {
|
|
109
|
-
description: "The unique identifier for a
|
|
109
|
+
description: "The unique identifier for a component",
|
|
110
110
|
type: "string"
|
|
111
111
|
},
|
|
112
112
|
type: {
|
|
113
|
-
description: "The type string of
|
|
113
|
+
description: "The type string of component",
|
|
114
114
|
type: "string",
|
|
115
115
|
default: "component"
|
|
116
116
|
},
|
|
117
117
|
componentType: {
|
|
118
|
-
description: "The type string of
|
|
118
|
+
description: "The type string of component",
|
|
119
|
+
type: "string"
|
|
120
|
+
},
|
|
121
|
+
viewModel: {
|
|
122
|
+
description: "The viewModel string of component",
|
|
119
123
|
type: "string"
|
|
120
124
|
},
|
|
121
125
|
appearance: {
|
|
@@ -141,23 +145,23 @@ const I = /* @__PURE__ */ new Map([
|
|
|
141
145
|
type: "boolean",
|
|
142
146
|
default: !0
|
|
143
147
|
}
|
|
144
|
-
},
|
|
148
|
+
}, ie = [
|
|
145
149
|
"id",
|
|
146
150
|
"type",
|
|
147
151
|
"contents"
|
|
148
|
-
],
|
|
149
|
-
$schema:
|
|
150
|
-
$id:
|
|
151
|
-
title:
|
|
152
|
-
description:
|
|
153
|
-
type:
|
|
154
|
-
properties:
|
|
155
|
-
required:
|
|
152
|
+
], le = {
|
|
153
|
+
$schema: oe,
|
|
154
|
+
$id: re,
|
|
155
|
+
title: ce,
|
|
156
|
+
description: se,
|
|
157
|
+
type: pe,
|
|
158
|
+
properties: ae,
|
|
159
|
+
required: ie
|
|
156
160
|
};
|
|
157
|
-
function
|
|
161
|
+
function Q(r, e, t) {
|
|
158
162
|
return e;
|
|
159
163
|
}
|
|
160
|
-
const
|
|
164
|
+
const ue = "accordion", fe = "A Farris Component", de = "object", ye = {
|
|
161
165
|
basic: {
|
|
162
166
|
description: "Basic Infomation",
|
|
163
167
|
title: "基本信息",
|
|
@@ -200,119 +204,119 @@ const ie = "accordion", le = "A Farris Component", ue = "object", fe = {
|
|
|
200
204
|
}
|
|
201
205
|
}
|
|
202
206
|
}
|
|
203
|
-
},
|
|
204
|
-
title:
|
|
205
|
-
description:
|
|
206
|
-
type:
|
|
207
|
-
categories:
|
|
208
|
-
},
|
|
207
|
+
}, be = {
|
|
208
|
+
title: ue,
|
|
209
|
+
description: fe,
|
|
210
|
+
type: de,
|
|
211
|
+
categories: ye
|
|
212
|
+
}, F = {
|
|
209
213
|
id: { type: String },
|
|
210
214
|
customClass: { type: String, default: "" },
|
|
211
215
|
componentType: { type: String, default: "" }
|
|
212
|
-
},
|
|
216
|
+
}, L = G(F, le, H, Q, be), S = /* @__PURE__ */ q({
|
|
213
217
|
name: "FComponent",
|
|
214
|
-
props:
|
|
218
|
+
props: F,
|
|
215
219
|
emits: ["init", "afterViewInit"],
|
|
216
|
-
setup(
|
|
217
|
-
return
|
|
218
|
-
e.emit("init",
|
|
219
|
-
}),
|
|
220
|
-
e.emit("afterViewInit",
|
|
221
|
-
}), () =>
|
|
222
|
-
class:
|
|
220
|
+
setup(r, e) {
|
|
221
|
+
return X(() => {
|
|
222
|
+
e.emit("init", r.id);
|
|
223
|
+
}), W(() => {
|
|
224
|
+
e.emit("afterViewInit", r.id);
|
|
225
|
+
}), () => _("div", {
|
|
226
|
+
class: r.customClass
|
|
223
227
|
}, [e.slots.default && e.slots.default()]);
|
|
224
228
|
}
|
|
225
229
|
});
|
|
226
|
-
function
|
|
227
|
-
var
|
|
228
|
-
function
|
|
230
|
+
function he(r, e, t) {
|
|
231
|
+
var D;
|
|
232
|
+
function c() {
|
|
229
233
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
230
234
|
}
|
|
231
|
-
|
|
232
|
-
const p = t && t.getStyles && t.getStyles() || "",
|
|
233
|
-
function
|
|
235
|
+
c();
|
|
236
|
+
const p = t && t.getStyles && t.getStyles() || "", b = t && t.getDesignerClass && t.getDesignerClass() || "", h = w();
|
|
237
|
+
function j() {
|
|
234
238
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
235
239
|
}
|
|
236
|
-
function
|
|
240
|
+
function A() {
|
|
237
241
|
return !1;
|
|
238
242
|
}
|
|
239
243
|
function a() {
|
|
240
244
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
241
245
|
}
|
|
242
|
-
function
|
|
246
|
+
function f() {
|
|
243
247
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
244
248
|
}
|
|
245
|
-
function l(
|
|
246
|
-
if (!
|
|
249
|
+
function l(u) {
|
|
250
|
+
if (!u || !u.value)
|
|
247
251
|
return null;
|
|
248
|
-
if (
|
|
249
|
-
return
|
|
250
|
-
const v =
|
|
251
|
-
return
|
|
252
|
+
if (u.value.schema && u.value.schema.type === "component")
|
|
253
|
+
return u.value;
|
|
254
|
+
const v = w(u == null ? void 0 : u.value.parent), C = l(v);
|
|
255
|
+
return C || null;
|
|
252
256
|
}
|
|
253
|
-
function u
|
|
254
|
-
const { componentInstance: v, designerItemElementRef:
|
|
255
|
-
return !v || !v.value ? null : v.value.canMove ?
|
|
257
|
+
function d(u = e) {
|
|
258
|
+
const { componentInstance: v, designerItemElementRef: C } = u;
|
|
259
|
+
return !v || !v.value ? null : v.value.canMove ? C : d(u.parent);
|
|
256
260
|
}
|
|
257
|
-
function
|
|
258
|
-
return !!t && t.canAccepts(
|
|
261
|
+
function m(u) {
|
|
262
|
+
return !!t && t.canAccepts(u);
|
|
259
263
|
}
|
|
260
264
|
function n() {
|
|
261
265
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
262
266
|
}
|
|
263
|
-
function
|
|
267
|
+
function s() {
|
|
264
268
|
}
|
|
265
|
-
function o(
|
|
269
|
+
function o(u, v) {
|
|
266
270
|
v && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(v);
|
|
267
271
|
}
|
|
268
|
-
function i(
|
|
269
|
-
const { componentType:
|
|
270
|
-
let
|
|
271
|
-
t && t.onResolveNewComponentSchema && (
|
|
272
|
-
const
|
|
273
|
-
return
|
|
272
|
+
function i(u, v) {
|
|
273
|
+
const { componentType: C } = u;
|
|
274
|
+
let T = V(C, u, v);
|
|
275
|
+
t && t.onResolveNewComponentSchema && (T = t.onResolveNewComponentSchema(u, T));
|
|
276
|
+
const O = C.toLowerCase().replace("-", "_");
|
|
277
|
+
return T && !T.id && T.type === C && (T.id = `${O}_${Math.random().toString().slice(2, 6)}`), T;
|
|
274
278
|
}
|
|
275
|
-
function
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
let
|
|
279
|
-
t && t.onAcceptNewChildElement && (
|
|
280
|
-
const
|
|
281
|
-
return
|
|
279
|
+
function g(u, v) {
|
|
280
|
+
const C = String(u.getAttribute("data-controltype")), T = u.getAttribute("data-feature"), O = T ? JSON.parse(T) : {};
|
|
281
|
+
O.parentComponentInstance = h.value;
|
|
282
|
+
let $ = V(C, O);
|
|
283
|
+
t && t.onAcceptNewChildElement && ($ = t.onAcceptNewChildElement(u, v, $));
|
|
284
|
+
const M = C.toLowerCase().replace("-", "_");
|
|
285
|
+
return $ && !$.id && $.type === C && ($.id = `${M}_${Math.random().toString().slice(2, 6)}`), $;
|
|
282
286
|
}
|
|
283
|
-
function
|
|
287
|
+
function y(u) {
|
|
284
288
|
}
|
|
285
|
-
function
|
|
289
|
+
function P(...u) {
|
|
286
290
|
if (t && t.getPropsConfig)
|
|
287
|
-
return t.getPropsConfig(...
|
|
291
|
+
return t.getPropsConfig(...u);
|
|
288
292
|
}
|
|
289
|
-
return
|
|
290
|
-
canMove:
|
|
291
|
-
canSelectParent:
|
|
293
|
+
return h.value = {
|
|
294
|
+
canMove: j(),
|
|
295
|
+
canSelectParent: A(),
|
|
292
296
|
canDelete: a(),
|
|
293
|
-
canNested: !
|
|
297
|
+
canNested: !f(),
|
|
294
298
|
contents: e == null ? void 0 : e.schema.contents,
|
|
295
|
-
elementRef:
|
|
296
|
-
parent: (
|
|
299
|
+
elementRef: r,
|
|
300
|
+
parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
|
|
297
301
|
schema: e == null ? void 0 : e.schema,
|
|
298
302
|
styles: p,
|
|
299
|
-
designerClass:
|
|
300
|
-
canAccepts:
|
|
303
|
+
designerClass: b,
|
|
304
|
+
canAccepts: m,
|
|
301
305
|
getBelongedComponentInstance: l,
|
|
302
|
-
getDraggableDesignItemElement:
|
|
306
|
+
getDraggableDesignItemElement: d,
|
|
303
307
|
getDraggingDisplayText: n,
|
|
304
|
-
getPropConfig:
|
|
305
|
-
getDragScopeElement:
|
|
308
|
+
getPropConfig: P,
|
|
309
|
+
getDragScopeElement: s,
|
|
306
310
|
onAcceptMovedChildElement: o,
|
|
307
|
-
onAcceptNewChildElement:
|
|
308
|
-
onChildElementMovedOut:
|
|
311
|
+
onAcceptNewChildElement: g,
|
|
312
|
+
onChildElementMovedOut: y,
|
|
309
313
|
addNewChildComponentSchema: i,
|
|
310
|
-
updateDragAndDropRules:
|
|
311
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
312
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
313
|
-
},
|
|
314
|
+
updateDragAndDropRules: c,
|
|
315
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || w(!1),
|
|
316
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || w(!1)
|
|
317
|
+
}, h;
|
|
314
318
|
}
|
|
315
|
-
const
|
|
319
|
+
const me = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-design.gitee.io/dragging-rules.schema.json", je = "Dragging Rules", Pe = "The rules of designer canvas", Ce = "object", ve = {
|
|
316
320
|
"f-page": {
|
|
317
321
|
description: "The root class of page designed by farris.",
|
|
318
322
|
type: "object",
|
|
@@ -731,6 +735,80 @@ const be = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
|
|
|
731
735
|
"f-list-nav-left": {
|
|
732
736
|
description: "",
|
|
733
737
|
type: "object"
|
|
738
|
+
},
|
|
739
|
+
"f-struct-data-grid-in-nav": {
|
|
740
|
+
description: "",
|
|
741
|
+
type: "object",
|
|
742
|
+
properties: {
|
|
743
|
+
contents: {
|
|
744
|
+
type: "object",
|
|
745
|
+
properties: {
|
|
746
|
+
"f-section-form": {
|
|
747
|
+
description: "",
|
|
748
|
+
type: "object",
|
|
749
|
+
properties: {
|
|
750
|
+
rules: {
|
|
751
|
+
type: "object",
|
|
752
|
+
properties: {
|
|
753
|
+
canAccept: {
|
|
754
|
+
type: "boolean",
|
|
755
|
+
const: !1
|
|
756
|
+
},
|
|
757
|
+
fixed: {
|
|
758
|
+
type: "boolean",
|
|
759
|
+
const: !0
|
|
760
|
+
},
|
|
761
|
+
hidePadding: {
|
|
762
|
+
type: "boolean",
|
|
763
|
+
const: !0
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"f-section-grid": {
|
|
770
|
+
description: "",
|
|
771
|
+
type: "object",
|
|
772
|
+
properties: {
|
|
773
|
+
rules: {
|
|
774
|
+
type: "object",
|
|
775
|
+
properties: {
|
|
776
|
+
canAccept: {
|
|
777
|
+
type: "boolean",
|
|
778
|
+
const: !1
|
|
779
|
+
},
|
|
780
|
+
fixed: {
|
|
781
|
+
type: "boolean",
|
|
782
|
+
const: !0
|
|
783
|
+
},
|
|
784
|
+
hidePadding: {
|
|
785
|
+
type: "boolean",
|
|
786
|
+
const: !0
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
rules: {
|
|
795
|
+
type: "object",
|
|
796
|
+
properties: {
|
|
797
|
+
canAccept: {
|
|
798
|
+
type: "boolean",
|
|
799
|
+
const: !1
|
|
800
|
+
},
|
|
801
|
+
fixed: {
|
|
802
|
+
type: "boolean",
|
|
803
|
+
const: !0
|
|
804
|
+
},
|
|
805
|
+
hidePadding: {
|
|
806
|
+
type: "boolean",
|
|
807
|
+
const: !0
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
}
|
|
734
812
|
}
|
|
735
813
|
}
|
|
736
814
|
}
|
|
@@ -876,175 +954,209 @@ const be = "https://json-schema.org/draft/2020-12/schema", he = "https://farris-
|
|
|
876
954
|
description: "",
|
|
877
955
|
type: "object"
|
|
878
956
|
}
|
|
879
|
-
},
|
|
880
|
-
$schema:
|
|
881
|
-
$id:
|
|
882
|
-
title:
|
|
883
|
-
description:
|
|
884
|
-
type:
|
|
885
|
-
properties:
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
function
|
|
889
|
-
|
|
890
|
-
var j;
|
|
957
|
+
}, Ae = {
|
|
958
|
+
$schema: me,
|
|
959
|
+
$id: ge,
|
|
960
|
+
title: je,
|
|
961
|
+
description: Pe,
|
|
962
|
+
type: Ce,
|
|
963
|
+
properties: ve
|
|
964
|
+
}, E = /* @__PURE__ */ new Map();
|
|
965
|
+
function Te() {
|
|
966
|
+
function r(n, s, o, i) {
|
|
967
|
+
var g;
|
|
891
968
|
if (typeof o == "number")
|
|
892
|
-
return ((
|
|
969
|
+
return ((g = i[n]) == null ? void 0 : g.length) === o;
|
|
893
970
|
if (typeof o == "object") {
|
|
894
|
-
const
|
|
895
|
-
if (
|
|
896
|
-
return Number(i[n].length) !== Number(
|
|
897
|
-
if (
|
|
898
|
-
return Number(i[n].length) >= Number(
|
|
899
|
-
if (
|
|
900
|
-
return Number(i[n].length) <= Number(
|
|
971
|
+
const y = Object.keys(o)[0], P = o[y];
|
|
972
|
+
if (y === "not")
|
|
973
|
+
return Number(i[n].length) !== Number(P);
|
|
974
|
+
if (y === "moreThan")
|
|
975
|
+
return Number(i[n].length) >= Number(P);
|
|
976
|
+
if (y === "lessThan")
|
|
977
|
+
return Number(i[n].length) <= Number(P);
|
|
901
978
|
}
|
|
902
979
|
return !1;
|
|
903
980
|
}
|
|
904
|
-
function e(n,
|
|
905
|
-
return typeof o == "boolean" ? i.childrenClassList.includes(
|
|
981
|
+
function e(n, s, o, i) {
|
|
982
|
+
return typeof o == "boolean" ? i.childrenClassList.includes(s) === !!o : !1;
|
|
906
983
|
}
|
|
907
|
-
function t(n,
|
|
908
|
-
return typeof o == "boolean" ? i.parentClassList.includes(
|
|
984
|
+
function t(n, s, o, i) {
|
|
985
|
+
return typeof o == "boolean" ? i.parentClassList.includes(s) === !!o : !1;
|
|
909
986
|
}
|
|
910
|
-
function
|
|
911
|
-
return typeof o == "boolean" ? i.parentClassList.includes(
|
|
987
|
+
function c(n, s, o, i) {
|
|
988
|
+
return typeof o == "boolean" ? i.parentClassList.includes(s) === !!o : !1;
|
|
912
989
|
}
|
|
913
990
|
const p = /* @__PURE__ */ new Map([
|
|
914
|
-
["length",
|
|
991
|
+
["length", r],
|
|
915
992
|
["hasChildren", e],
|
|
916
|
-
["hasSibling",
|
|
993
|
+
["hasSibling", c],
|
|
917
994
|
["hasParent", t]
|
|
918
995
|
]);
|
|
919
|
-
function
|
|
996
|
+
function b(n, s) {
|
|
920
997
|
const o = n;
|
|
921
|
-
return typeof
|
|
998
|
+
return typeof s == "number" ? [{ target: o, operator: "length", param: null, value: Number(s) }] : typeof s == "object" ? Object.keys(s).map((i) => {
|
|
922
999
|
if (i === "length")
|
|
923
|
-
return { target: o, operator: "length", param: null, value:
|
|
924
|
-
const
|
|
925
|
-
return { target: o, operator: n === "children" ? "hasChildren" : n === "parent" ? "hasParent" : "hasSibling", param:
|
|
1000
|
+
return { target: o, operator: "length", param: null, value: s[i] };
|
|
1001
|
+
const g = i, y = s[i];
|
|
1002
|
+
return { target: o, operator: n === "children" ? "hasChildren" : n === "parent" ? "hasParent" : "hasSibling", param: g, value: y };
|
|
926
1003
|
}) : [];
|
|
927
1004
|
}
|
|
928
|
-
function
|
|
1005
|
+
function h(n, s) {
|
|
929
1006
|
if (p.has(n.operator)) {
|
|
930
1007
|
const o = p.get(n.operator);
|
|
931
|
-
return o && o(n.target, n.param, n.value,
|
|
1008
|
+
return o && o(n.target, n.param, n.value, s) || !1;
|
|
932
1009
|
}
|
|
933
1010
|
return !1;
|
|
934
1011
|
}
|
|
935
|
-
function
|
|
936
|
-
return Object.keys(n).reduce((
|
|
937
|
-
const
|
|
938
|
-
return
|
|
939
|
-
}, []).reduce((
|
|
1012
|
+
function j(n, s) {
|
|
1013
|
+
return Object.keys(n).reduce((y, P) => {
|
|
1014
|
+
const D = b(P, n[P]);
|
|
1015
|
+
return y.push(...D), y;
|
|
1016
|
+
}, []).reduce((y, P) => y && h(P, s), !0);
|
|
940
1017
|
}
|
|
941
|
-
function
|
|
942
|
-
const o = Object.keys(n), i = o.includes("allOf"),
|
|
943
|
-
return i ? !
|
|
1018
|
+
function A(n, s) {
|
|
1019
|
+
const o = Object.keys(n), i = o.includes("allOf"), g = o.includes("anyOf"), y = i || g, u = (y ? n[y ? i ? "allOf" : "anyOf" : "allOf"] : [n]).map((C) => j(C, s));
|
|
1020
|
+
return i ? !u.includes(!1) : u.includes(!0);
|
|
944
1021
|
}
|
|
945
|
-
function a(n,
|
|
1022
|
+
function a(n, s) {
|
|
946
1023
|
const o = n.const;
|
|
947
|
-
return o ? typeof o == "boolean" ? o : typeof o == "object" ?
|
|
1024
|
+
return o ? typeof o == "boolean" ? o : typeof o == "object" ? A(o, s) : !1 : !1;
|
|
948
1025
|
}
|
|
949
|
-
function
|
|
950
|
-
return (
|
|
1026
|
+
function f(n) {
|
|
1027
|
+
return (s) => {
|
|
951
1028
|
const o = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
952
|
-
return n && n.properties && Object.keys(n.properties).reduce((i,
|
|
953
|
-
const
|
|
954
|
-
return i[
|
|
1029
|
+
return n && n.properties && Object.keys(n.properties).reduce((i, g) => {
|
|
1030
|
+
const y = n.properties[g];
|
|
1031
|
+
return i[g] = a(y, s), i;
|
|
955
1032
|
}, o), o;
|
|
956
1033
|
};
|
|
957
1034
|
}
|
|
958
|
-
function l(n,
|
|
959
|
-
if (
|
|
960
|
-
const { rules: i, contents:
|
|
961
|
-
o.set(n,
|
|
962
|
-
(
|
|
1035
|
+
function l(n, s, o) {
|
|
1036
|
+
if (s.type === "object" && s.properties) {
|
|
1037
|
+
const { rules: i, contents: g } = s.properties;
|
|
1038
|
+
o.set(n, f(i)), g && Object.keys(g.properties).forEach(
|
|
1039
|
+
(y) => l(y, g.properties[y], o)
|
|
963
1040
|
);
|
|
964
1041
|
}
|
|
965
1042
|
}
|
|
966
|
-
function
|
|
967
|
-
const { properties: n } =
|
|
968
|
-
Object.keys(n).forEach((
|
|
969
|
-
l(
|
|
1043
|
+
function d() {
|
|
1044
|
+
const { properties: n } = Ae;
|
|
1045
|
+
Object.keys(n).forEach((s) => {
|
|
1046
|
+
l(s, n[s], E);
|
|
970
1047
|
});
|
|
971
1048
|
}
|
|
972
|
-
function
|
|
1049
|
+
function m(n, s) {
|
|
973
1050
|
const o = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
974
|
-
return
|
|
1051
|
+
return E.has(n) ? E.get(n)(s) : o;
|
|
975
1052
|
}
|
|
976
|
-
return
|
|
1053
|
+
return d(), { getRuleValue: m };
|
|
977
1054
|
}
|
|
978
|
-
function
|
|
979
|
-
const
|
|
980
|
-
let
|
|
981
|
-
const
|
|
982
|
-
function
|
|
1055
|
+
function $e(r) {
|
|
1056
|
+
const e = Te();
|
|
1057
|
+
let t = !1, c, p = !1;
|
|
1058
|
+
const b = !1;
|
|
1059
|
+
function h() {
|
|
983
1060
|
return !1;
|
|
984
1061
|
}
|
|
985
|
-
function
|
|
986
|
-
return
|
|
1062
|
+
function j() {
|
|
1063
|
+
return b || !p;
|
|
987
1064
|
}
|
|
988
|
-
function
|
|
989
|
-
return !
|
|
1065
|
+
function A() {
|
|
1066
|
+
return !p;
|
|
990
1067
|
}
|
|
991
|
-
function
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1068
|
+
function a() {
|
|
1069
|
+
var O, $;
|
|
1070
|
+
p = !1;
|
|
1071
|
+
const l = r.schema, d = l.appearance && l.appearance.class || "", m = d.split(" "), n = l.contents || [], s = n.length ? n[0] : null, o = s && s.appearance ? s.appearance.class : "", i = o ? o.split(" ") : [], g = n.length ? n.reduce((M, N) => {
|
|
1072
|
+
const B = N && N.appearance ? N.appearance.class : "", U = B ? B.split(" ") : [];
|
|
1073
|
+
return M.push(...U), M;
|
|
1074
|
+
}, []) : [];
|
|
1075
|
+
if ((($ = (O = r.parent) == null ? void 0 : O.schema) == null ? void 0 : $.type) !== "component-ref") {
|
|
1076
|
+
t = !0, p = !0;
|
|
1077
|
+
return;
|
|
1078
|
+
}
|
|
1079
|
+
const y = r.parent.parent, P = y && y.schema, D = P && P.appearance ? P.appearance.class : "", u = D ? D.split(" ") : [];
|
|
1080
|
+
c = {
|
|
1081
|
+
componentClass: d,
|
|
1082
|
+
componentClassList: m,
|
|
1083
|
+
childContents: n,
|
|
1084
|
+
firstChildContent: s,
|
|
1085
|
+
firstChildClass: o,
|
|
1086
|
+
firstChildClassList: i,
|
|
1087
|
+
parent: P,
|
|
1088
|
+
parentClass: D,
|
|
1089
|
+
parentClassList: u,
|
|
1090
|
+
children: n,
|
|
1091
|
+
childrenClassList: g
|
|
1009
1092
|
};
|
|
1010
|
-
const { canAccept: v, fixed:
|
|
1011
|
-
|
|
1093
|
+
const { canAccept: v, fixed: C, hidePadding: T } = e.getRuleValue(m[0], c);
|
|
1094
|
+
t = T, p = C;
|
|
1012
1095
|
}
|
|
1013
|
-
function
|
|
1014
|
-
return
|
|
1096
|
+
function f() {
|
|
1097
|
+
return t;
|
|
1015
1098
|
}
|
|
1016
|
-
return { canAccepts:
|
|
1099
|
+
return { canAccepts: h, checkCanDeleteComponent: j, checkCanMoveComponent: A, resolveComponentContext: a, hideNestedPaddingInDesginerView: f };
|
|
1017
1100
|
}
|
|
1018
|
-
const
|
|
1101
|
+
const De = /* @__PURE__ */ q({
|
|
1019
1102
|
name: "FComponetDesign",
|
|
1020
|
-
props:
|
|
1103
|
+
props: F,
|
|
1021
1104
|
emits: [],
|
|
1022
|
-
setup(
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}), e.expose(y.value), () => q("div", {
|
|
1105
|
+
setup(r, e) {
|
|
1106
|
+
const t = w(), c = Y("design-item-context"), p = $e(c), b = he(t, c, p);
|
|
1107
|
+
return W(() => {
|
|
1108
|
+
t.value.componentInstance = b;
|
|
1109
|
+
}), e.expose(b.value), () => _("div", {
|
|
1028
1110
|
ref: t,
|
|
1029
1111
|
class: "drag-container",
|
|
1030
|
-
"data-dragref": `${
|
|
1112
|
+
"data-dragref": `${c.schema.id}-container`
|
|
1031
1113
|
}, [e.slots.default && e.slots.default()]);
|
|
1032
1114
|
}
|
|
1033
|
-
}), Me = {
|
|
1034
|
-
|
|
1035
|
-
|
|
1115
|
+
}), Oe = "https://json-schema.org/draft/2020-12/schema", we = "https://farris-design.gitee.io/component.schema.json", Me = "component-ref", Ne = "A Farris Visual Component", Se = "object", Ee = {
|
|
1116
|
+
id: {
|
|
1117
|
+
description: "The unique identifier for a Section",
|
|
1118
|
+
type: "string"
|
|
1119
|
+
},
|
|
1120
|
+
type: {
|
|
1121
|
+
description: "The type string of Section component",
|
|
1122
|
+
type: "string",
|
|
1123
|
+
default: "component-ref"
|
|
1124
|
+
},
|
|
1125
|
+
component: {
|
|
1126
|
+
description: "",
|
|
1127
|
+
type: "string",
|
|
1128
|
+
default: ""
|
|
1129
|
+
}
|
|
1130
|
+
}, Ve = [
|
|
1131
|
+
"id",
|
|
1132
|
+
"type",
|
|
1133
|
+
"component"
|
|
1134
|
+
], ke = {
|
|
1135
|
+
$schema: Oe,
|
|
1136
|
+
$id: we,
|
|
1137
|
+
title: Me,
|
|
1138
|
+
description: Ne,
|
|
1139
|
+
type: Se,
|
|
1140
|
+
properties: Ee,
|
|
1141
|
+
required: Ve
|
|
1142
|
+
}, Fe = {
|
|
1143
|
+
id: { type: String },
|
|
1144
|
+
component: { type: String, default: "" }
|
|
1145
|
+
}, Be = G(Fe, ke, H, Q), We = {
|
|
1146
|
+
install(r) {
|
|
1147
|
+
r.component(S.name, S);
|
|
1036
1148
|
},
|
|
1037
|
-
register(
|
|
1038
|
-
|
|
1149
|
+
register(r, e, t, c) {
|
|
1150
|
+
r.component = S, e.component = L;
|
|
1039
1151
|
},
|
|
1040
|
-
registerDesigner(
|
|
1041
|
-
|
|
1152
|
+
registerDesigner(r, e) {
|
|
1153
|
+
r.component = De, e.component = L, e["component-ref"] = Be;
|
|
1042
1154
|
}
|
|
1043
1155
|
};
|
|
1044
1156
|
export {
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1157
|
+
S as Component,
|
|
1158
|
+
De as ComponentDesign,
|
|
1159
|
+
F as componentProps,
|
|
1160
|
+
We as default,
|
|
1161
|
+
L as propsResolver
|
|
1050
1162
|
};
|