@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,108 +1,108 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
const { properties: e, title: o } = a, c = Object.keys(e).reduce((
|
|
6
|
-
return c.id = `${o}-${Date.now()}
|
|
1
|
+
import { defineComponent as q, ref as T, onUnmounted as _, createVNode as S, createTextVNode as z, watch as G, inject as H, onMounted as Q } from "vue";
|
|
2
|
+
import { cloneDeep as X } from "lodash-es";
|
|
3
|
+
const Y = {}, J = {};
|
|
4
|
+
function k(a) {
|
|
5
|
+
const { properties: e, title: o, ignore: s } = a, c = s && Array.isArray(s), h = Object.keys(e).reduce((d, b) => ((!c || !s.find((j) => j == b)) && (d[b] = e[b].type === "object" && e[b].properties ? k(e[b]) : X(e[b].default)), d), {});
|
|
6
|
+
return (!c || !s.find((d) => d == "id")) && (h.id = `${o}-${Date.now()}`), h;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
let c =
|
|
12
|
-
const
|
|
13
|
-
return c =
|
|
8
|
+
function L(a, e = {}, o) {
|
|
9
|
+
const s = Y[a];
|
|
10
|
+
if (s) {
|
|
11
|
+
let c = k(s);
|
|
12
|
+
const h = J[a];
|
|
13
|
+
return c = h ? h({ getSchemaByType: L }, c, e, o) : c, c;
|
|
14
14
|
}
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
const o =
|
|
19
|
-
return Object.keys(a).reduce((
|
|
17
|
+
function Z(a, e) {
|
|
18
|
+
const o = k(e);
|
|
19
|
+
return Object.keys(a).reduce((s, c) => (s[c] && typeof s[c] == "object" ? Object.assign(s[c], a[c]) : s[c] = a[c], s), o), o;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return Object.keys(a).filter((
|
|
23
|
-
if (e.has(
|
|
24
|
-
const
|
|
25
|
-
if (typeof
|
|
26
|
-
|
|
21
|
+
function R(a, e) {
|
|
22
|
+
return Object.keys(a).filter((s) => a[s] != null).reduce((s, c) => {
|
|
23
|
+
if (e.has(c)) {
|
|
24
|
+
const h = e.get(c);
|
|
25
|
+
if (typeof h == "string")
|
|
26
|
+
s[h] = a[c];
|
|
27
27
|
else {
|
|
28
|
-
const
|
|
29
|
-
Object.assign(
|
|
28
|
+
const d = h(c, a[c], a);
|
|
29
|
+
Object.assign(s, d);
|
|
30
30
|
}
|
|
31
31
|
} else
|
|
32
|
-
c
|
|
33
|
-
return
|
|
32
|
+
s[c] = a[c];
|
|
33
|
+
return s;
|
|
34
34
|
}, {});
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
return
|
|
36
|
+
function K(a, e, o = /* @__PURE__ */ new Map()) {
|
|
37
|
+
const s = Z(a, e);
|
|
38
|
+
return R(s, o);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
function e(
|
|
40
|
+
function x(a = {}) {
|
|
41
|
+
function e(p, u, l, f) {
|
|
42
42
|
if (typeof l == "number")
|
|
43
|
-
return
|
|
43
|
+
return f[p].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(f[p].length) !== Number(n);
|
|
48
|
+
if (m === "moreThan")
|
|
49
|
+
return Number(f[p].length) >= Number(n);
|
|
50
|
+
if (m === "lessThan")
|
|
51
|
+
return Number(f[p].length) <= Number(n);
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
54
|
}
|
|
55
|
-
function o(
|
|
56
|
-
return
|
|
55
|
+
function o(p, u, l, f) {
|
|
56
|
+
return f[p] && f[p].propertyValue && String(f[p].propertyValue.value) === String(l);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const s = /* @__PURE__ */ new Map([
|
|
59
59
|
["length", e],
|
|
60
60
|
["getProperty", o]
|
|
61
61
|
]);
|
|
62
|
-
Object.keys(a).reduce((
|
|
63
|
-
function p
|
|
64
|
-
const l =
|
|
65
|
-
return typeof
|
|
66
|
-
if (
|
|
67
|
-
return { target: l, operator: "length", param: null, value: f
|
|
68
|
-
const
|
|
69
|
-
return { target: l, operator: "getProperty", param:
|
|
62
|
+
Object.keys(a).reduce((p, u) => (p.set(u, a[u]), p), s);
|
|
63
|
+
function c(p, u) {
|
|
64
|
+
const l = p;
|
|
65
|
+
return typeof u == "number" ? [{ target: l, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: l, operator: "getProperty", param: p, value: !!u }] : typeof u == "object" ? Object.keys(u).map((f) => {
|
|
66
|
+
if (f === "length")
|
|
67
|
+
return { target: l, operator: "length", param: null, value: u[f] };
|
|
68
|
+
const m = f, n = u[f];
|
|
69
|
+
return { target: l, operator: "getProperty", param: m, value: n };
|
|
70
70
|
}) : [];
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return Object.keys(
|
|
74
|
-
const
|
|
75
|
-
return l.push(...
|
|
72
|
+
function h(p) {
|
|
73
|
+
return Object.keys(p).reduce((l, f) => {
|
|
74
|
+
const m = c(f, p[f]);
|
|
75
|
+
return l.push(...m), l;
|
|
76
76
|
}, []);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
if (
|
|
80
|
-
const l =
|
|
81
|
-
return l && l(
|
|
78
|
+
function d(p, u) {
|
|
79
|
+
if (s.has(p.operator)) {
|
|
80
|
+
const l = s.get(p.operator);
|
|
81
|
+
return l && l(p.target, p.param, p.value, u) || !1;
|
|
82
82
|
}
|
|
83
83
|
return !1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function b(p, u) {
|
|
86
|
+
return h(p).reduce((m, n) => m && d(n, u), !0);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
const l = Object.keys(
|
|
90
|
-
return
|
|
88
|
+
function j(p, u) {
|
|
89
|
+
const l = Object.keys(p), f = l.includes("allOf"), m = l.includes("anyOf"), n = f || m, r = (n ? p[n ? f ? "allOf" : "anyOf" : "allOf"] : [p]).map((g) => b(g, u));
|
|
90
|
+
return f ? !r.includes(!1) : r.includes(!0);
|
|
91
91
|
}
|
|
92
|
-
return { parseValueSchema:
|
|
92
|
+
return { parseValueSchema: j };
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
function
|
|
97
|
-
return
|
|
98
|
-
const
|
|
99
|
-
return Object.assign(
|
|
94
|
+
const I = {}, ee = {};
|
|
95
|
+
x();
|
|
96
|
+
function te(a, e, o = /* @__PURE__ */ new Map(), s = (d, b, j) => b, c = {}, h = (d) => d) {
|
|
97
|
+
return Y[e.title] = e, J[e.title] = s, I[e.title] = c, ee[e.title] = h, (d = {}) => {
|
|
98
|
+
const b = K(d, e, o), j = Object.keys(a).reduce((p, u) => (p[u] = a[u].default, p), {});
|
|
99
|
+
return Object.assign(j, b);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function oe(a, e) {
|
|
103
103
|
return { customClass: e.class, customStyle: e.style };
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const ne = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-design.gitee.io/video.schema.json", ae = "video", ce = "A Farris Video Component", se = "object", pe = {
|
|
106
106
|
id: {
|
|
107
107
|
description: "The unique identifier for a Video",
|
|
108
108
|
type: "string"
|
|
@@ -130,24 +130,24 @@ const te = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
130
130
|
type: "boolean",
|
|
131
131
|
default: !0
|
|
132
132
|
}
|
|
133
|
-
},
|
|
133
|
+
}, ie = [
|
|
134
134
|
"id",
|
|
135
135
|
"type"
|
|
136
|
-
],
|
|
137
|
-
$schema:
|
|
138
|
-
$id:
|
|
139
|
-
title:
|
|
140
|
-
description:
|
|
141
|
-
type:
|
|
142
|
-
properties:
|
|
143
|
-
required:
|
|
144
|
-
},
|
|
145
|
-
["appearance",
|
|
136
|
+
], le = {
|
|
137
|
+
$schema: ne,
|
|
138
|
+
$id: re,
|
|
139
|
+
title: ae,
|
|
140
|
+
description: ce,
|
|
141
|
+
type: se,
|
|
142
|
+
properties: pe,
|
|
143
|
+
required: ie
|
|
144
|
+
}, ue = /* @__PURE__ */ new Map([
|
|
145
|
+
["appearance", oe]
|
|
146
146
|
]);
|
|
147
|
-
function
|
|
147
|
+
function fe(a, e, o) {
|
|
148
148
|
return e;
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const de = "verify-detail", ye = "A Farris Component", he = "object", be = {
|
|
151
151
|
basic: {
|
|
152
152
|
description: "Basic Infomation",
|
|
153
153
|
title: "基本信息",
|
|
@@ -169,12 +169,12 @@ const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
},
|
|
173
|
-
title:
|
|
174
|
-
description:
|
|
175
|
-
type:
|
|
176
|
-
categories:
|
|
177
|
-
},
|
|
172
|
+
}, ge = {
|
|
173
|
+
title: de,
|
|
174
|
+
description: ye,
|
|
175
|
+
type: he,
|
|
176
|
+
categories: be
|
|
177
|
+
}, B = {
|
|
178
178
|
src: {
|
|
179
179
|
type: String,
|
|
180
180
|
required: !0,
|
|
@@ -211,45 +211,45 @@ const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
|
|
|
211
211
|
type: [String, Number],
|
|
212
212
|
default: 168
|
|
213
213
|
}
|
|
214
|
-
},
|
|
215
|
-
function
|
|
214
|
+
}, W = te(B, le, ue, fe, ge);
|
|
215
|
+
function me(a, e) {
|
|
216
216
|
function o(t) {
|
|
217
217
|
t.stopPropagation(), e.emit("abort");
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function s(t) {
|
|
220
220
|
t.stopPropagation(), e.emit("play");
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function c(t) {
|
|
223
223
|
t.stopPropagation(), e.emit("pause");
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function h(t) {
|
|
226
226
|
t.stopPropagation(), e.emit("ended");
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function d(t) {
|
|
229
229
|
t.stopPropagation(), e.emit("durationchange");
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function b(t) {
|
|
232
232
|
t.stopPropagation(), e.emit("error");
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function j(t) {
|
|
235
235
|
t.stopPropagation(), e.emit("loadeddata");
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function p(t) {
|
|
238
238
|
t.stopPropagation(), e.emit("loadedmetadata");
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function u(t) {
|
|
241
241
|
t.stopPropagation(), e.emit("loadstart");
|
|
242
242
|
}
|
|
243
243
|
function l(t) {
|
|
244
244
|
t.stopPropagation(), e.emit("playing");
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function f(t) {
|
|
247
247
|
t.stopPropagation(), e.emit("progress");
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function m(t) {
|
|
250
250
|
t.stopPropagation(), e.emit("timeupdate");
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function n(t) {
|
|
253
253
|
t.stopPropagation(), e.emit("volumechange");
|
|
254
254
|
}
|
|
255
255
|
function i(t) {
|
|
@@ -257,44 +257,44 @@ function be(a, e) {
|
|
|
257
257
|
}
|
|
258
258
|
return {
|
|
259
259
|
onAbort: o,
|
|
260
|
-
onPlay:
|
|
261
|
-
onPause:
|
|
262
|
-
onEnded:
|
|
263
|
-
onDurationchange:
|
|
264
|
-
onError:
|
|
265
|
-
onLoadeddata:
|
|
266
|
-
onLoadedmetadata:
|
|
267
|
-
onLoadstart:
|
|
260
|
+
onPlay: s,
|
|
261
|
+
onPause: c,
|
|
262
|
+
onEnded: h,
|
|
263
|
+
onDurationchange: d,
|
|
264
|
+
onError: b,
|
|
265
|
+
onLoadeddata: j,
|
|
266
|
+
onLoadedmetadata: p,
|
|
267
|
+
onLoadstart: u,
|
|
268
268
|
onPlaying: l,
|
|
269
|
-
onProgress:
|
|
270
|
-
onTimeupdate:
|
|
271
|
-
onVolumechange:
|
|
269
|
+
onProgress: f,
|
|
270
|
+
onTimeupdate: m,
|
|
271
|
+
onVolumechange: n,
|
|
272
272
|
onCanplay: i
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
|
-
const
|
|
275
|
+
const M = /* @__PURE__ */ q({
|
|
276
276
|
name: "FVideo",
|
|
277
|
-
props:
|
|
277
|
+
props: B,
|
|
278
278
|
emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
|
|
279
279
|
setup(a, e) {
|
|
280
|
-
const o =
|
|
281
|
-
onAbort:
|
|
282
|
-
onPlay:
|
|
283
|
-
onPause:
|
|
284
|
-
onEnded:
|
|
285
|
-
onDurationchange:
|
|
286
|
-
onError:
|
|
287
|
-
onLoadeddata:
|
|
288
|
-
onLoadedmetadata:
|
|
280
|
+
const o = T(), {
|
|
281
|
+
onAbort: s,
|
|
282
|
+
onPlay: c,
|
|
283
|
+
onPause: h,
|
|
284
|
+
onEnded: d,
|
|
285
|
+
onDurationchange: b,
|
|
286
|
+
onError: j,
|
|
287
|
+
onLoadeddata: p,
|
|
288
|
+
onLoadedmetadata: u,
|
|
289
289
|
onLoadstart: l,
|
|
290
|
-
onPlaying:
|
|
291
|
-
onProgress:
|
|
292
|
-
onTimeupdate:
|
|
290
|
+
onPlaying: f,
|
|
291
|
+
onProgress: m,
|
|
292
|
+
onTimeupdate: n,
|
|
293
293
|
onVolumechange: i,
|
|
294
294
|
onCanplay: t
|
|
295
|
-
} =
|
|
296
|
-
return
|
|
297
|
-
}), () =>
|
|
295
|
+
} = me(a, e);
|
|
296
|
+
return _(() => {
|
|
297
|
+
}), () => S("video", {
|
|
298
298
|
ref: o,
|
|
299
299
|
src: a.src,
|
|
300
300
|
autoplay: a.autoplay,
|
|
@@ -304,40 +304,40 @@ const V = /* @__PURE__ */ F({
|
|
|
304
304
|
width: a.width,
|
|
305
305
|
height: a.height,
|
|
306
306
|
poster: a.poster,
|
|
307
|
-
onAbort: (
|
|
308
|
-
onPlay: (
|
|
309
|
-
onPause: (
|
|
310
|
-
onEnded: (
|
|
311
|
-
onDurationchange: (
|
|
312
|
-
onError: (
|
|
313
|
-
onLoadeddata: (
|
|
314
|
-
onLoadedmetadata: (
|
|
315
|
-
onLoadstart: (
|
|
316
|
-
onPlaying: (
|
|
317
|
-
onProgress: (
|
|
318
|
-
onTimeupdate: (
|
|
319
|
-
onVolumechange: (
|
|
320
|
-
onCanplay: (
|
|
321
|
-
}, [
|
|
307
|
+
onAbort: (r) => s(r),
|
|
308
|
+
onPlay: (r) => c(r),
|
|
309
|
+
onPause: (r) => h(r),
|
|
310
|
+
onEnded: (r) => d(r),
|
|
311
|
+
onDurationchange: (r) => b(r),
|
|
312
|
+
onError: (r) => j(r),
|
|
313
|
+
onLoadeddata: (r) => p(r),
|
|
314
|
+
onLoadedmetadata: (r) => u(r),
|
|
315
|
+
onLoadstart: (r) => l(r),
|
|
316
|
+
onPlaying: (r) => f(r),
|
|
317
|
+
onProgress: (r) => m(r),
|
|
318
|
+
onTimeupdate: (r) => n(r),
|
|
319
|
+
onVolumechange: (r) => i(r),
|
|
320
|
+
onCanplay: (r) => t(r)
|
|
321
|
+
}, [z("Your browser does not support the video tag.")]);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
|
-
function
|
|
325
|
-
var
|
|
326
|
-
function
|
|
324
|
+
function je(a, e, o) {
|
|
325
|
+
var O;
|
|
326
|
+
function s() {
|
|
327
327
|
o != null && o.resolveComponentContext && o.resolveComponentContext();
|
|
328
328
|
}
|
|
329
|
-
|
|
330
|
-
const
|
|
331
|
-
function
|
|
329
|
+
s();
|
|
330
|
+
const c = o && o.getStyles && o.getStyles() || "", h = o && o.getDesignerClass && o.getDesignerClass() || "", d = T();
|
|
331
|
+
function b() {
|
|
332
332
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanMoveComponent ? o.checkCanMoveComponent() : !0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function j() {
|
|
335
335
|
return !1;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function p() {
|
|
338
338
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanDeleteComponent ? o.checkCanDeleteComponent() : !0;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function u() {
|
|
341
341
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : o && o.hideNestedPaddingInDesginerView ? o.hideNestedPaddingInDesginerView() : !1;
|
|
342
342
|
}
|
|
343
343
|
function l(y) {
|
|
@@ -345,72 +345,72 @@ function ge(a, e, o) {
|
|
|
345
345
|
return null;
|
|
346
346
|
if (y.value.schema && y.value.schema.type === "component")
|
|
347
347
|
return y.value;
|
|
348
|
-
const
|
|
349
|
-
return
|
|
348
|
+
const w = T(y == null ? void 0 : y.value.parent), A = l(w);
|
|
349
|
+
return A || null;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
const { componentInstance:
|
|
353
|
-
return !
|
|
351
|
+
function f(y = e) {
|
|
352
|
+
const { componentInstance: w, designerItemElementRef: A } = y;
|
|
353
|
+
return !w || !w.value ? null : w.value.canMove ? A : f(y.parent);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function m(y) {
|
|
356
356
|
return !!o && o.canAccepts(y);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function n() {
|
|
359
359
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
360
360
|
}
|
|
361
361
|
function i() {
|
|
362
362
|
}
|
|
363
|
-
function t(y,
|
|
364
|
-
|
|
363
|
+
function t(y, w) {
|
|
364
|
+
w && o != null && o.onAcceptMovedChildElement && o.onAcceptMovedChildElement(w);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function r(y, w) {
|
|
367
367
|
const { componentType: A } = y;
|
|
368
|
-
let
|
|
369
|
-
o && o.onResolveNewComponentSchema && (
|
|
370
|
-
const
|
|
371
|
-
return
|
|
368
|
+
let C = L(A, y, w);
|
|
369
|
+
o && o.onResolveNewComponentSchema && (C = o.onResolveNewComponentSchema(y, C));
|
|
370
|
+
const E = A.toLowerCase().replace("-", "_");
|
|
371
|
+
return C && !C.id && C.type === A && (C.id = `${E}_${Math.random().toString().slice(2, 6)}`), C;
|
|
372
372
|
}
|
|
373
|
-
function P(y,
|
|
374
|
-
const
|
|
375
|
-
E.parentComponentInstance =
|
|
376
|
-
let
|
|
377
|
-
o && o.onAcceptNewChildElement && (
|
|
378
|
-
const N =
|
|
379
|
-
return
|
|
373
|
+
function P(y, w) {
|
|
374
|
+
const A = String(y.getAttribute("data-controltype")), C = y.getAttribute("data-feature"), E = C ? JSON.parse(C) : {};
|
|
375
|
+
E.parentComponentInstance = d.value;
|
|
376
|
+
let D = L(A, E);
|
|
377
|
+
o && o.onAcceptNewChildElement && (D = o.onAcceptNewChildElement(y, w, D));
|
|
378
|
+
const N = A.toLowerCase().replace("-", "_");
|
|
379
|
+
return D && !D.id && D.type === A && (D.id = `${N}_${Math.random().toString().slice(2, 6)}`), D;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function g(y) {
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function v(...y) {
|
|
384
384
|
if (o && o.getPropsConfig)
|
|
385
385
|
return o.getPropsConfig(...y);
|
|
386
386
|
}
|
|
387
|
-
return
|
|
388
|
-
canMove:
|
|
389
|
-
canSelectParent:
|
|
390
|
-
canDelete:
|
|
391
|
-
canNested: !
|
|
387
|
+
return d.value = {
|
|
388
|
+
canMove: b(),
|
|
389
|
+
canSelectParent: j(),
|
|
390
|
+
canDelete: p(),
|
|
391
|
+
canNested: !u(),
|
|
392
392
|
contents: e == null ? void 0 : e.schema.contents,
|
|
393
393
|
elementRef: a,
|
|
394
|
-
parent: (
|
|
394
|
+
parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
|
|
395
395
|
schema: e == null ? void 0 : e.schema,
|
|
396
|
-
styles:
|
|
397
|
-
designerClass:
|
|
398
|
-
canAccepts:
|
|
396
|
+
styles: c,
|
|
397
|
+
designerClass: h,
|
|
398
|
+
canAccepts: m,
|
|
399
399
|
getBelongedComponentInstance: l,
|
|
400
|
-
getDraggableDesignItemElement:
|
|
401
|
-
getDraggingDisplayText:
|
|
402
|
-
getPropConfig:
|
|
400
|
+
getDraggableDesignItemElement: f,
|
|
401
|
+
getDraggingDisplayText: n,
|
|
402
|
+
getPropConfig: v,
|
|
403
403
|
getDragScopeElement: i,
|
|
404
404
|
onAcceptMovedChildElement: t,
|
|
405
405
|
onAcceptNewChildElement: P,
|
|
406
|
-
onChildElementMovedOut:
|
|
407
|
-
addNewChildComponentSchema:
|
|
408
|
-
updateDragAndDropRules:
|
|
409
|
-
triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved ||
|
|
410
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!o && o.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
411
|
-
},
|
|
406
|
+
onChildElementMovedOut: g,
|
|
407
|
+
addNewChildComponentSchema: r,
|
|
408
|
+
updateDragAndDropRules: s,
|
|
409
|
+
triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved || T(!1),
|
|
410
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!o && o.triggerBelongedComponentToDeleteWhenDeleted || T(!1)
|
|
411
|
+
}, d;
|
|
412
412
|
}
|
|
413
|
-
const
|
|
413
|
+
const Pe = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-design.gitee.io/dragging-rules.schema.json", Ae = "Dragging Rules", we = "The rules of designer canvas", Ce = "object", De = {
|
|
414
414
|
"f-page": {
|
|
415
415
|
description: "The root class of page designed by farris.",
|
|
416
416
|
type: "object",
|
|
@@ -829,6 +829,80 @@ const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-
|
|
|
829
829
|
"f-list-nav-left": {
|
|
830
830
|
description: "",
|
|
831
831
|
type: "object"
|
|
832
|
+
},
|
|
833
|
+
"f-struct-data-grid-in-nav": {
|
|
834
|
+
description: "",
|
|
835
|
+
type: "object",
|
|
836
|
+
properties: {
|
|
837
|
+
contents: {
|
|
838
|
+
type: "object",
|
|
839
|
+
properties: {
|
|
840
|
+
"f-section-form": {
|
|
841
|
+
description: "",
|
|
842
|
+
type: "object",
|
|
843
|
+
properties: {
|
|
844
|
+
rules: {
|
|
845
|
+
type: "object",
|
|
846
|
+
properties: {
|
|
847
|
+
canAccept: {
|
|
848
|
+
type: "boolean",
|
|
849
|
+
const: !1
|
|
850
|
+
},
|
|
851
|
+
fixed: {
|
|
852
|
+
type: "boolean",
|
|
853
|
+
const: !0
|
|
854
|
+
},
|
|
855
|
+
hidePadding: {
|
|
856
|
+
type: "boolean",
|
|
857
|
+
const: !0
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
"f-section-grid": {
|
|
864
|
+
description: "",
|
|
865
|
+
type: "object",
|
|
866
|
+
properties: {
|
|
867
|
+
rules: {
|
|
868
|
+
type: "object",
|
|
869
|
+
properties: {
|
|
870
|
+
canAccept: {
|
|
871
|
+
type: "boolean",
|
|
872
|
+
const: !1
|
|
873
|
+
},
|
|
874
|
+
fixed: {
|
|
875
|
+
type: "boolean",
|
|
876
|
+
const: !0
|
|
877
|
+
},
|
|
878
|
+
hidePadding: {
|
|
879
|
+
type: "boolean",
|
|
880
|
+
const: !0
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
rules: {
|
|
889
|
+
type: "object",
|
|
890
|
+
properties: {
|
|
891
|
+
canAccept: {
|
|
892
|
+
type: "boolean",
|
|
893
|
+
const: !1
|
|
894
|
+
},
|
|
895
|
+
fixed: {
|
|
896
|
+
type: "boolean",
|
|
897
|
+
const: !0
|
|
898
|
+
},
|
|
899
|
+
hidePadding: {
|
|
900
|
+
type: "boolean",
|
|
901
|
+
const: !0
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
832
906
|
}
|
|
833
907
|
}
|
|
834
908
|
}
|
|
@@ -974,207 +1048,212 @@ const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-
|
|
|
974
1048
|
description: "",
|
|
975
1049
|
type: "object"
|
|
976
1050
|
}
|
|
977
|
-
},
|
|
978
|
-
$schema:
|
|
979
|
-
$id:
|
|
980
|
-
title:
|
|
981
|
-
description:
|
|
982
|
-
type:
|
|
983
|
-
properties:
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
function
|
|
987
|
-
function a(r, i, t, n) {
|
|
1051
|
+
}, Oe = {
|
|
1052
|
+
$schema: Pe,
|
|
1053
|
+
$id: ve,
|
|
1054
|
+
title: Ae,
|
|
1055
|
+
description: we,
|
|
1056
|
+
type: Ce,
|
|
1057
|
+
properties: De
|
|
1058
|
+
}, $ = /* @__PURE__ */ new Map();
|
|
1059
|
+
function Te() {
|
|
1060
|
+
function a(n, i, t, r) {
|
|
988
1061
|
var P;
|
|
989
1062
|
if (typeof t == "number")
|
|
990
|
-
return ((P = n
|
|
1063
|
+
return ((P = r[n]) == null ? void 0 : P.length) === t;
|
|
991
1064
|
if (typeof t == "object") {
|
|
992
|
-
const
|
|
993
|
-
if (
|
|
994
|
-
return Number(n
|
|
995
|
-
if (
|
|
996
|
-
return Number(n
|
|
997
|
-
if (
|
|
998
|
-
return Number(n
|
|
1065
|
+
const g = Object.keys(t)[0], v = t[g];
|
|
1066
|
+
if (g === "not")
|
|
1067
|
+
return Number(r[n].length) !== Number(v);
|
|
1068
|
+
if (g === "moreThan")
|
|
1069
|
+
return Number(r[n].length) >= Number(v);
|
|
1070
|
+
if (g === "lessThan")
|
|
1071
|
+
return Number(r[n].length) <= Number(v);
|
|
999
1072
|
}
|
|
1000
1073
|
return !1;
|
|
1001
1074
|
}
|
|
1002
|
-
function e(
|
|
1003
|
-
return typeof t == "boolean" ?
|
|
1075
|
+
function e(n, i, t, r) {
|
|
1076
|
+
return typeof t == "boolean" ? r.childrenClassList.includes(i) === !!t : !1;
|
|
1004
1077
|
}
|
|
1005
|
-
function o(
|
|
1006
|
-
return typeof t == "boolean" ?
|
|
1078
|
+
function o(n, i, t, r) {
|
|
1079
|
+
return typeof t == "boolean" ? r.parentClassList.includes(i) === !!t : !1;
|
|
1007
1080
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return typeof t == "boolean" ?
|
|
1081
|
+
function s(n, i, t, r) {
|
|
1082
|
+
return typeof t == "boolean" ? r.parentClassList.includes(i) === !!t : !1;
|
|
1010
1083
|
}
|
|
1011
|
-
const
|
|
1084
|
+
const c = /* @__PURE__ */ new Map([
|
|
1012
1085
|
["length", a],
|
|
1013
1086
|
["hasChildren", e],
|
|
1014
|
-
["hasSibling",
|
|
1087
|
+
["hasSibling", s],
|
|
1015
1088
|
["hasParent", o]
|
|
1016
1089
|
]);
|
|
1017
|
-
function
|
|
1018
|
-
const t =
|
|
1019
|
-
return typeof i == "number" ? [{ target: t, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((
|
|
1020
|
-
if (
|
|
1021
|
-
return { target: t, operator: "length", param: null, value: i[
|
|
1022
|
-
const P =
|
|
1023
|
-
return { target: t, operator:
|
|
1090
|
+
function h(n, i) {
|
|
1091
|
+
const t = n;
|
|
1092
|
+
return typeof i == "number" ? [{ target: t, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((r) => {
|
|
1093
|
+
if (r === "length")
|
|
1094
|
+
return { target: t, operator: "length", param: null, value: i[r] };
|
|
1095
|
+
const P = r, g = i[r];
|
|
1096
|
+
return { target: t, operator: n === "children" ? "hasChildren" : n === "parent" ? "hasParent" : "hasSibling", param: P, value: g };
|
|
1024
1097
|
}) : [];
|
|
1025
1098
|
}
|
|
1026
|
-
function
|
|
1027
|
-
if (
|
|
1028
|
-
const t =
|
|
1029
|
-
return t && t(
|
|
1099
|
+
function d(n, i) {
|
|
1100
|
+
if (c.has(n.operator)) {
|
|
1101
|
+
const t = c.get(n.operator);
|
|
1102
|
+
return t && t(n.target, n.param, n.value, i) || !1;
|
|
1030
1103
|
}
|
|
1031
1104
|
return !1;
|
|
1032
1105
|
}
|
|
1033
|
-
function
|
|
1034
|
-
return Object.keys(
|
|
1035
|
-
const
|
|
1036
|
-
return
|
|
1037
|
-
}, []).reduce((
|
|
1106
|
+
function b(n, i) {
|
|
1107
|
+
return Object.keys(n).reduce((g, v) => {
|
|
1108
|
+
const O = h(v, n[v]);
|
|
1109
|
+
return g.push(...O), g;
|
|
1110
|
+
}, []).reduce((g, v) => g && d(v, i), !0);
|
|
1038
1111
|
}
|
|
1039
|
-
function
|
|
1040
|
-
const t = Object.keys(
|
|
1041
|
-
return
|
|
1112
|
+
function j(n, i) {
|
|
1113
|
+
const t = Object.keys(n), r = t.includes("allOf"), P = t.includes("anyOf"), g = r || P, y = (g ? n[g ? r ? "allOf" : "anyOf" : "allOf"] : [n]).map((A) => b(A, i));
|
|
1114
|
+
return r ? !y.includes(!1) : y.includes(!0);
|
|
1042
1115
|
}
|
|
1043
|
-
function
|
|
1044
|
-
const t =
|
|
1045
|
-
return t ? typeof t == "boolean" ? t : typeof t == "object" ?
|
|
1116
|
+
function p(n, i) {
|
|
1117
|
+
const t = n.const;
|
|
1118
|
+
return t ? typeof t == "boolean" ? t : typeof t == "object" ? j(t, i) : !1 : !1;
|
|
1046
1119
|
}
|
|
1047
|
-
function
|
|
1120
|
+
function u(n) {
|
|
1048
1121
|
return (i) => {
|
|
1049
1122
|
const t = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1050
|
-
return
|
|
1051
|
-
const
|
|
1052
|
-
return
|
|
1123
|
+
return n && n.properties && Object.keys(n.properties).reduce((r, P) => {
|
|
1124
|
+
const g = n.properties[P];
|
|
1125
|
+
return r[P] = p(g, i), r;
|
|
1053
1126
|
}, t), t;
|
|
1054
1127
|
};
|
|
1055
1128
|
}
|
|
1056
|
-
function l(
|
|
1129
|
+
function l(n, i, t) {
|
|
1057
1130
|
if (i.type === "object" && i.properties) {
|
|
1058
|
-
const { rules:
|
|
1059
|
-
t.set(
|
|
1060
|
-
(
|
|
1131
|
+
const { rules: r, contents: P } = i.properties;
|
|
1132
|
+
t.set(n, u(r)), P && Object.keys(P.properties).forEach(
|
|
1133
|
+
(g) => l(g, P.properties[g], t)
|
|
1061
1134
|
);
|
|
1062
1135
|
}
|
|
1063
1136
|
}
|
|
1064
|
-
function
|
|
1065
|
-
const { properties:
|
|
1066
|
-
Object.keys(
|
|
1067
|
-
l(i,
|
|
1137
|
+
function f() {
|
|
1138
|
+
const { properties: n } = Oe;
|
|
1139
|
+
Object.keys(n).forEach((i) => {
|
|
1140
|
+
l(i, n[i], $);
|
|
1068
1141
|
});
|
|
1069
1142
|
}
|
|
1070
|
-
function
|
|
1143
|
+
function m(n, i) {
|
|
1071
1144
|
const t = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1072
|
-
return
|
|
1145
|
+
return $.has(n) ? $.get(n)(i) : t;
|
|
1073
1146
|
}
|
|
1074
|
-
return
|
|
1147
|
+
return f(), { getRuleValue: m };
|
|
1075
1148
|
}
|
|
1076
|
-
function
|
|
1077
|
-
const
|
|
1078
|
-
let
|
|
1149
|
+
function Ee(a) {
|
|
1150
|
+
const e = Te();
|
|
1151
|
+
let o = !1, s, c = !1;
|
|
1079
1152
|
const h = !1;
|
|
1080
|
-
function
|
|
1153
|
+
function d() {
|
|
1081
1154
|
return !1;
|
|
1082
1155
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return h || !
|
|
1156
|
+
function b() {
|
|
1157
|
+
return h || !c;
|
|
1085
1158
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return !
|
|
1159
|
+
function j() {
|
|
1160
|
+
return !c;
|
|
1088
1161
|
}
|
|
1089
|
-
function
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1162
|
+
function p() {
|
|
1163
|
+
var E, D;
|
|
1164
|
+
c = !1;
|
|
1165
|
+
const l = a.schema, f = l.appearance && l.appearance.class || "", m = f.split(" "), n = l.contents || [], i = n.length ? n[0] : null, t = i && i.appearance ? i.appearance.class : "", r = t ? t.split(" ") : [], P = n.length ? n.reduce((N, V) => {
|
|
1166
|
+
const F = V && V.appearance ? V.appearance.class : "", U = F ? F.split(" ") : [];
|
|
1167
|
+
return N.push(...U), N;
|
|
1168
|
+
}, []) : [];
|
|
1169
|
+
if (((D = (E = a.parent) == null ? void 0 : E.schema) == null ? void 0 : D.type) !== "component-ref") {
|
|
1170
|
+
o = !0, c = !0;
|
|
1171
|
+
return;
|
|
1172
|
+
}
|
|
1173
|
+
const g = a.parent.parent, v = g && g.schema, O = v && v.appearance ? v.appearance.class : "", y = O ? O.split(" ") : [];
|
|
1174
|
+
s = {
|
|
1175
|
+
componentClass: f,
|
|
1176
|
+
componentClassList: m,
|
|
1177
|
+
childContents: n,
|
|
1178
|
+
firstChildContent: i,
|
|
1179
|
+
firstChildClass: t,
|
|
1180
|
+
firstChildClassList: r,
|
|
1181
|
+
parent: v,
|
|
1182
|
+
parentClass: O,
|
|
1104
1183
|
parentClassList: y,
|
|
1105
|
-
children:
|
|
1106
|
-
childrenClassList:
|
|
1184
|
+
children: n,
|
|
1185
|
+
childrenClassList: P
|
|
1107
1186
|
};
|
|
1108
|
-
const { canAccept:
|
|
1109
|
-
|
|
1187
|
+
const { canAccept: w, fixed: A, hidePadding: C } = e.getRuleValue(m[0], s);
|
|
1188
|
+
o = C, c = A;
|
|
1110
1189
|
}
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1190
|
+
function u() {
|
|
1191
|
+
return o;
|
|
1113
1192
|
}
|
|
1114
|
-
return { canAccepts:
|
|
1193
|
+
return { canAccepts: d, checkCanDeleteComponent: b, checkCanMoveComponent: j, resolveComponentContext: p, hideNestedPaddingInDesginerView: u };
|
|
1115
1194
|
}
|
|
1116
|
-
function
|
|
1117
|
-
const o =
|
|
1118
|
-
let
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
if (!
|
|
1195
|
+
function Ne(a, e) {
|
|
1196
|
+
const o = T(a.width), s = T(a.height);
|
|
1197
|
+
let c;
|
|
1198
|
+
G(e, (d) => {
|
|
1199
|
+
d && (o.value = d.clientWidth, c = new ResizeObserver((b) => {
|
|
1200
|
+
if (!b || b.length < 1)
|
|
1122
1201
|
return;
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1125
|
-
}),
|
|
1202
|
+
const p = b[0].contentRect;
|
|
1203
|
+
p && (o.value = p.width);
|
|
1204
|
+
}), c.observe(d));
|
|
1126
1205
|
});
|
|
1127
|
-
function
|
|
1128
|
-
|
|
1206
|
+
function h() {
|
|
1207
|
+
c && c.disconnect();
|
|
1129
1208
|
}
|
|
1130
1209
|
return {
|
|
1131
|
-
destory:
|
|
1210
|
+
destory: h,
|
|
1132
1211
|
width: o,
|
|
1133
|
-
height:
|
|
1212
|
+
height: s
|
|
1134
1213
|
};
|
|
1135
1214
|
}
|
|
1136
|
-
const
|
|
1215
|
+
const Ve = /* @__PURE__ */ q({
|
|
1137
1216
|
name: "FVideoDesign",
|
|
1138
|
-
props:
|
|
1217
|
+
props: B,
|
|
1139
1218
|
setup(a, e) {
|
|
1140
|
-
var
|
|
1141
|
-
const o =
|
|
1142
|
-
width:
|
|
1143
|
-
height:
|
|
1144
|
-
destory:
|
|
1145
|
-
} =
|
|
1146
|
-
return
|
|
1147
|
-
o.value.componentInstance =
|
|
1148
|
-
}),
|
|
1149
|
-
|
|
1150
|
-
}), e.expose(
|
|
1219
|
+
var p;
|
|
1220
|
+
const o = T(), s = H("design-item-context"), c = Ee(s.schema, (p = s.parent) == null ? void 0 : p.schema), h = je(o, s, c), {
|
|
1221
|
+
width: d,
|
|
1222
|
+
height: b,
|
|
1223
|
+
destory: j
|
|
1224
|
+
} = Ne(a, o);
|
|
1225
|
+
return Q(() => {
|
|
1226
|
+
o.value.componentInstance = h;
|
|
1227
|
+
}), _(() => {
|
|
1228
|
+
j();
|
|
1229
|
+
}), e.expose(h.value), () => S("div", {
|
|
1151
1230
|
ref: o,
|
|
1152
1231
|
class: "drag-container",
|
|
1153
|
-
"data-dragref": `${
|
|
1154
|
-
}, [
|
|
1232
|
+
"data-dragref": `${s.schema.id}-container`
|
|
1233
|
+
}, [S("video", {
|
|
1155
1234
|
src: a.src,
|
|
1156
1235
|
autoplay: a.autoplay,
|
|
1157
1236
|
controls: a.controls,
|
|
1158
1237
|
loop: a.loop,
|
|
1159
1238
|
muted: a.muted,
|
|
1160
|
-
width:
|
|
1161
|
-
height:
|
|
1162
|
-
}, [
|
|
1239
|
+
width: d.value,
|
|
1240
|
+
height: b.value
|
|
1241
|
+
}, [z("Your browser does not support the video tag.")])]);
|
|
1163
1242
|
}
|
|
1164
|
-
}),
|
|
1243
|
+
}), Se = {
|
|
1165
1244
|
install(a) {
|
|
1166
|
-
a.component(
|
|
1245
|
+
a.component(M.name, M);
|
|
1167
1246
|
},
|
|
1168
|
-
register(a, e, o,
|
|
1169
|
-
a.video =
|
|
1247
|
+
register(a, e, o, s) {
|
|
1248
|
+
a.video = M, e.video = W;
|
|
1170
1249
|
},
|
|
1171
1250
|
registerDesigner(a, e, o) {
|
|
1172
|
-
a.video =
|
|
1251
|
+
a.video = Ve, e.video = W;
|
|
1173
1252
|
}
|
|
1174
1253
|
};
|
|
1175
1254
|
export {
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1255
|
+
M as FVideo,
|
|
1256
|
+
Se as default,
|
|
1257
|
+
W as propsResolver,
|
|
1258
|
+
B as videoProps
|
|
1180
1259
|
};
|