@farris/ui-vue 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +150 -142
- package/components/avatar/index.esm.js +393 -457
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +491 -554
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +479 -513
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +857 -743
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4883 -5182
- package/components/data-view/index.esm.js +3072 -2949
- package/components/date-picker/index.esm.js +2626 -2689
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +940 -998
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +307 -293
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1747 -1627
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5877 -6176
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1454 -1524
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +659 -722
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1643 -1524
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6502 -6770
- package/components/mapping-editor/index.esm.js +5639 -5939
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +1098 -1130
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1317
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1479 -1513
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +706 -778
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +453 -516
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +555 -526
- package/components/response-toolbar/index.esm.js +1009 -1247
- package/components/schema-selector/index.esm.js +3261 -3373
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +441 -504
- package/components/tabs/index.esm.js +1849 -2039
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +445 -493
- package/components/time-picker/index.esm.js +1350 -1414
- package/components/transfer/index.esm.js +146 -144
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5948 -6237
- package/components/tree-view/index.esm.js +2381 -2255
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +27221 -26804
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
- package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import { defineComponent as F, ref as O, onUnmounted as q, createVNode as
|
|
1
|
+
import { defineComponent as F, ref as O, onUnmounted as q, createVNode as $, createTextVNode as W, watch as J, inject as U, onMounted as G } from "vue";
|
|
2
2
|
import { cloneDeep as H } from "lodash-es";
|
|
3
3
|
const _ = {}, z = {};
|
|
4
4
|
function L(a) {
|
|
5
|
-
const { properties: e, title: o } = a,
|
|
6
|
-
return
|
|
5
|
+
const { properties: e, title: o } = a, c = Object.keys(e).reduce((p, d) => (p[d] = e[d].type === "object" && e[d].properties ? L(e[d]) : H(e[d].default), p), {});
|
|
6
|
+
return c.id = `${o}-${Date.now()}`, c;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function S(a, e = {}) {
|
|
9
9
|
const o = _[a];
|
|
10
10
|
if (o) {
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
return
|
|
11
|
+
let c = L(o);
|
|
12
|
+
const p = z[a];
|
|
13
|
+
return c = p ? p({ getSchemaByType: S }, c, e) : c, c;
|
|
14
14
|
}
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
17
|
function Q(a, e) {
|
|
18
18
|
const o = L(e);
|
|
19
|
-
return Object.keys(a).reduce((
|
|
19
|
+
return Object.keys(a).reduce((c, p) => (c[p] && typeof c[p] == "object" ? Object.assign(c[p], a[p]) : c[p] = a[p], c), o), o;
|
|
20
20
|
}
|
|
21
21
|
function X(a, e) {
|
|
22
|
-
return Object.keys(a).filter((
|
|
23
|
-
if (e.has(
|
|
24
|
-
const d = e.get(
|
|
22
|
+
return Object.keys(a).filter((c) => a[c] != null).reduce((c, p) => {
|
|
23
|
+
if (e.has(p)) {
|
|
24
|
+
const d = e.get(p);
|
|
25
25
|
if (typeof d == "string")
|
|
26
|
-
|
|
26
|
+
c[d] = a[p];
|
|
27
27
|
else {
|
|
28
|
-
const h = d(
|
|
29
|
-
Object.assign(
|
|
28
|
+
const h = d(p, a[p], a);
|
|
29
|
+
Object.assign(c, h);
|
|
30
30
|
}
|
|
31
31
|
} else
|
|
32
|
-
p
|
|
33
|
-
return
|
|
32
|
+
c[p] = a[p];
|
|
33
|
+
return c;
|
|
34
34
|
}, {});
|
|
35
35
|
}
|
|
36
36
|
function Z(a, e, o = /* @__PURE__ */ new Map()) {
|
|
37
|
-
const
|
|
38
|
-
return X(
|
|
37
|
+
const c = Q(a, e);
|
|
38
|
+
return X(c, o);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
function e(
|
|
40
|
+
function R(a = {}) {
|
|
41
|
+
function e(s, f, l, u) {
|
|
42
42
|
if (typeof l == "number")
|
|
43
|
-
return u[
|
|
43
|
+
return u[s].length === l;
|
|
44
44
|
if (typeof l == "object") {
|
|
45
45
|
const g = Object.keys(l)[0], r = l[g];
|
|
46
46
|
if (g === "not")
|
|
47
|
-
return Number(u[
|
|
47
|
+
return Number(u[s].length) !== Number(r);
|
|
48
48
|
if (g === "moreThan")
|
|
49
|
-
return Number(u[
|
|
49
|
+
return Number(u[s].length) >= Number(r);
|
|
50
50
|
if (g === "lessThan")
|
|
51
|
-
return Number(u[
|
|
51
|
+
return Number(u[s].length) <= Number(r);
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
54
|
}
|
|
55
|
-
function o(
|
|
56
|
-
return u[
|
|
55
|
+
function o(s, f, l, u) {
|
|
56
|
+
return u[s] && u[s].propertyValue && String(u[s].propertyValue.value) === String(l);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const c = /* @__PURE__ */ new Map([
|
|
59
59
|
["length", e],
|
|
60
60
|
["getProperty", o]
|
|
61
61
|
]);
|
|
62
|
-
Object.keys(a).reduce((
|
|
63
|
-
function
|
|
64
|
-
const l =
|
|
65
|
-
return typeof f == "number" ? [{ target: l, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: l, operator: "getProperty", param:
|
|
62
|
+
Object.keys(a).reduce((s, f) => (s.set(f, a[f]), s), c);
|
|
63
|
+
function p(s, f) {
|
|
64
|
+
const l = s;
|
|
65
|
+
return typeof f == "number" ? [{ target: l, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: l, operator: "getProperty", param: s, value: !!f }] : typeof f == "object" ? Object.keys(f).map((u) => {
|
|
66
66
|
if (u === "length")
|
|
67
67
|
return { target: l, operator: "length", param: null, value: f[u] };
|
|
68
68
|
const g = u, r = f[u];
|
|
69
69
|
return { target: l, operator: "getProperty", param: g, value: r };
|
|
70
70
|
}) : [];
|
|
71
71
|
}
|
|
72
|
-
function d(
|
|
73
|
-
return Object.keys(
|
|
74
|
-
const g =
|
|
72
|
+
function d(s) {
|
|
73
|
+
return Object.keys(s).reduce((l, u) => {
|
|
74
|
+
const g = p(u, s[u]);
|
|
75
75
|
return l.push(...g), l;
|
|
76
76
|
}, []);
|
|
77
77
|
}
|
|
78
|
-
function h(
|
|
79
|
-
if (
|
|
80
|
-
const l =
|
|
81
|
-
return l && l(
|
|
78
|
+
function h(s, f) {
|
|
79
|
+
if (c.has(s.operator)) {
|
|
80
|
+
const l = c.get(s.operator);
|
|
81
|
+
return l && l(s.target, s.param, s.value, f) || !1;
|
|
82
82
|
}
|
|
83
83
|
return !1;
|
|
84
84
|
}
|
|
85
|
-
function m(
|
|
86
|
-
return d(
|
|
85
|
+
function m(s, f) {
|
|
86
|
+
return d(s).reduce((g, r) => g && h(r, f), !0);
|
|
87
87
|
}
|
|
88
|
-
function v(
|
|
89
|
-
const l = Object.keys(
|
|
88
|
+
function v(s, f) {
|
|
89
|
+
const l = Object.keys(s), u = l.includes("allOf"), g = l.includes("anyOf"), r = u || g, n = (r ? s[r ? u ? "allOf" : "anyOf" : "allOf"] : [s]).map((b) => m(b, f));
|
|
90
90
|
return u ? !n.includes(!1) : n.includes(!0);
|
|
91
91
|
}
|
|
92
92
|
return { parseValueSchema: v };
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
function I(a, e, o = /* @__PURE__ */ new Map(),
|
|
97
|
-
return _[e.title] = e, z[e.title] =
|
|
98
|
-
const m = Z(h, e, o), v = Object.keys(a).reduce((
|
|
94
|
+
const K = {}, x = {};
|
|
95
|
+
R();
|
|
96
|
+
function I(a, e, o = /* @__PURE__ */ new Map(), c = (h, m, v) => m, p = {}, d = (h) => h) {
|
|
97
|
+
return _[e.title] = e, z[e.title] = c, K[e.title] = p, x[e.title] = d, (h = {}) => {
|
|
98
|
+
const m = Z(h, e, o), v = Object.keys(a).reduce((s, f) => (s[f] = a[f].default, s), {});
|
|
99
99
|
return Object.assign(v, m);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
@@ -133,7 +133,7 @@ const te = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
133
133
|
}, se = [
|
|
134
134
|
"id",
|
|
135
135
|
"type"
|
|
136
|
-
],
|
|
136
|
+
], ie = {
|
|
137
137
|
$schema: te,
|
|
138
138
|
$id: oe,
|
|
139
139
|
title: ne,
|
|
@@ -141,7 +141,7 @@ const te = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
141
141
|
type: ae,
|
|
142
142
|
properties: ce,
|
|
143
143
|
required: se
|
|
144
|
-
},
|
|
144
|
+
}, pe = /* @__PURE__ */ new Map([
|
|
145
145
|
["appearance", ee]
|
|
146
146
|
]);
|
|
147
147
|
function le(a, e, o) {
|
|
@@ -211,15 +211,15 @@ const ue = "verify-detail", fe = "A Farris Component", de = "object", ye = {
|
|
|
211
211
|
type: [String, Number],
|
|
212
212
|
default: 168
|
|
213
213
|
}
|
|
214
|
-
}, B = I(k,
|
|
214
|
+
}, B = I(k, ie, pe, le, he);
|
|
215
215
|
function be(a, e) {
|
|
216
216
|
function o(t) {
|
|
217
217
|
t.stopPropagation(), e.emit("abort");
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function c(t) {
|
|
220
220
|
t.stopPropagation(), e.emit("play");
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function p(t) {
|
|
223
223
|
t.stopPropagation(), e.emit("pause");
|
|
224
224
|
}
|
|
225
225
|
function d(t) {
|
|
@@ -234,7 +234,7 @@ function be(a, e) {
|
|
|
234
234
|
function v(t) {
|
|
235
235
|
t.stopPropagation(), e.emit("loadeddata");
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function s(t) {
|
|
238
238
|
t.stopPropagation(), e.emit("loadedmetadata");
|
|
239
239
|
}
|
|
240
240
|
function f(t) {
|
|
@@ -252,24 +252,24 @@ function be(a, e) {
|
|
|
252
252
|
function r(t) {
|
|
253
253
|
t.stopPropagation(), e.emit("volumechange");
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function i(t) {
|
|
256
256
|
t.stopPropagation(), e.emit("canplay");
|
|
257
257
|
}
|
|
258
258
|
return {
|
|
259
259
|
onAbort: o,
|
|
260
|
-
onPlay:
|
|
261
|
-
onPause:
|
|
260
|
+
onPlay: c,
|
|
261
|
+
onPause: p,
|
|
262
262
|
onEnded: d,
|
|
263
263
|
onDurationchange: h,
|
|
264
264
|
onError: m,
|
|
265
265
|
onLoadeddata: v,
|
|
266
|
-
onLoadedmetadata:
|
|
266
|
+
onLoadedmetadata: s,
|
|
267
267
|
onLoadstart: f,
|
|
268
268
|
onPlaying: l,
|
|
269
269
|
onProgress: u,
|
|
270
270
|
onTimeupdate: g,
|
|
271
271
|
onVolumechange: r,
|
|
272
|
-
onCanplay:
|
|
272
|
+
onCanplay: i
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
const V = /* @__PURE__ */ F({
|
|
@@ -278,23 +278,23 @@ const V = /* @__PURE__ */ F({
|
|
|
278
278
|
emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
|
|
279
279
|
setup(a, e) {
|
|
280
280
|
const o = O(), {
|
|
281
|
-
onAbort:
|
|
282
|
-
onPlay:
|
|
281
|
+
onAbort: c,
|
|
282
|
+
onPlay: p,
|
|
283
283
|
onPause: d,
|
|
284
284
|
onEnded: h,
|
|
285
285
|
onDurationchange: m,
|
|
286
286
|
onError: v,
|
|
287
|
-
onLoadeddata:
|
|
287
|
+
onLoadeddata: s,
|
|
288
288
|
onLoadedmetadata: f,
|
|
289
289
|
onLoadstart: l,
|
|
290
290
|
onPlaying: u,
|
|
291
291
|
onProgress: g,
|
|
292
292
|
onTimeupdate: r,
|
|
293
|
-
onVolumechange:
|
|
293
|
+
onVolumechange: i,
|
|
294
294
|
onCanplay: t
|
|
295
295
|
} = be(a, e);
|
|
296
296
|
return q(() => {
|
|
297
|
-
}), () =>
|
|
297
|
+
}), () => $("video", {
|
|
298
298
|
ref: o,
|
|
299
299
|
src: a.src,
|
|
300
300
|
autoplay: a.autoplay,
|
|
@@ -304,37 +304,37 @@ const V = /* @__PURE__ */ F({
|
|
|
304
304
|
width: a.width,
|
|
305
305
|
height: a.height,
|
|
306
306
|
poster: a.poster,
|
|
307
|
-
onAbort: (n) =>
|
|
308
|
-
onPlay: (n) =>
|
|
307
|
+
onAbort: (n) => c(n),
|
|
308
|
+
onPlay: (n) => p(n),
|
|
309
309
|
onPause: (n) => d(n),
|
|
310
310
|
onEnded: (n) => h(n),
|
|
311
311
|
onDurationchange: (n) => m(n),
|
|
312
312
|
onError: (n) => v(n),
|
|
313
|
-
onLoadeddata: (n) =>
|
|
313
|
+
onLoadeddata: (n) => s(n),
|
|
314
314
|
onLoadedmetadata: (n) => f(n),
|
|
315
315
|
onLoadstart: (n) => l(n),
|
|
316
316
|
onPlaying: (n) => u(n),
|
|
317
317
|
onProgress: (n) => g(n),
|
|
318
318
|
onTimeupdate: (n) => r(n),
|
|
319
|
-
onVolumechange: (n) =>
|
|
319
|
+
onVolumechange: (n) => i(n),
|
|
320
320
|
onCanplay: (n) => t(n)
|
|
321
321
|
}, [W("Your browser does not support the video tag.")]);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
function ge(a, e, o) {
|
|
325
325
|
var D;
|
|
326
|
-
function
|
|
326
|
+
function c() {
|
|
327
327
|
o != null && o.resolveComponentContext && o.resolveComponentContext();
|
|
328
328
|
}
|
|
329
|
-
|
|
330
|
-
const
|
|
329
|
+
c();
|
|
330
|
+
const p = o && o.getStyles && o.getStyles() || "", d = o && o.getDesignerClass && o.getDesignerClass() || "", h = O();
|
|
331
331
|
function m() {
|
|
332
332
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanMoveComponent ? o.checkCanMoveComponent() : !0;
|
|
333
333
|
}
|
|
334
334
|
function v() {
|
|
335
335
|
return !1;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function s() {
|
|
338
338
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : o && o.checkCanDeleteComponent ? o.checkCanDeleteComponent() : !0;
|
|
339
339
|
}
|
|
340
340
|
function f() {
|
|
@@ -358,14 +358,14 @@ function ge(a, e, o) {
|
|
|
358
358
|
function r() {
|
|
359
359
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function i() {
|
|
362
362
|
}
|
|
363
363
|
function t(y, A) {
|
|
364
364
|
A && o != null && o.onAcceptMovedChildElement && o.onAcceptMovedChildElement(A);
|
|
365
365
|
}
|
|
366
366
|
function n(y) {
|
|
367
367
|
const { componentType: A } = y;
|
|
368
|
-
let j =
|
|
368
|
+
let j = S(A, y);
|
|
369
369
|
o && o.onResolveNewComponentSchema && (j = o.onResolveNewComponentSchema(y, j));
|
|
370
370
|
const T = A.toLowerCase().replace("-", "_");
|
|
371
371
|
return j && !j.id && j.type === A && (j.id = `${T}_${Math.random().toString().slice(2, 6)}`), j;
|
|
@@ -373,7 +373,7 @@ function ge(a, e, o) {
|
|
|
373
373
|
function P(y, A) {
|
|
374
374
|
const j = String(y.getAttribute("data-controltype")), T = y.getAttribute("data-feature"), E = T ? JSON.parse(T) : {};
|
|
375
375
|
E.parentComponentInstance = h.value;
|
|
376
|
-
let C =
|
|
376
|
+
let C = S(j, E);
|
|
377
377
|
o && o.onAcceptNewChildElement && (C = o.onAcceptNewChildElement(y, A, C));
|
|
378
378
|
const N = j.toLowerCase().replace("-", "_");
|
|
379
379
|
return C && !C.id && C.type === j && (C.id = `${N}_${Math.random().toString().slice(2, 6)}`), C;
|
|
@@ -387,25 +387,25 @@ function ge(a, e, o) {
|
|
|
387
387
|
return h.value = {
|
|
388
388
|
canMove: m(),
|
|
389
389
|
canSelectParent: v(),
|
|
390
|
-
canDelete:
|
|
390
|
+
canDelete: s(),
|
|
391
391
|
canNested: !f(),
|
|
392
392
|
contents: e == null ? void 0 : e.schema.contents,
|
|
393
393
|
elementRef: a,
|
|
394
394
|
parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
|
|
395
395
|
schema: e == null ? void 0 : e.schema,
|
|
396
|
-
styles:
|
|
396
|
+
styles: p,
|
|
397
397
|
designerClass: d,
|
|
398
398
|
canAccepts: g,
|
|
399
399
|
getBelongedComponentInstance: l,
|
|
400
400
|
getDraggableDesignItemElement: u,
|
|
401
401
|
getDraggingDisplayText: r,
|
|
402
402
|
getPropConfig: w,
|
|
403
|
-
getDragScopeElement:
|
|
403
|
+
getDragScopeElement: i,
|
|
404
404
|
onAcceptMovedChildElement: t,
|
|
405
405
|
onAcceptNewChildElement: P,
|
|
406
406
|
onChildElementMovedOut: b,
|
|
407
407
|
addNewChildComponentSchema: n,
|
|
408
|
-
updateDragAndDropRules:
|
|
408
|
+
updateDragAndDropRules: c,
|
|
409
409
|
triggerBelongedComponentToMoveWhenMoved: !!o && o.triggerBelongedComponentToMoveWhenMoved || O(!1),
|
|
410
410
|
triggerBelongedComponentToDeleteWhenDeleted: !!o && o.triggerBelongedComponentToDeleteWhenDeleted || O(!1)
|
|
411
411
|
}, h;
|
|
@@ -984,7 +984,7 @@ const me = "https://json-schema.org/draft/2020-12/schema", je = "https://farris-
|
|
|
984
984
|
required: Ce
|
|
985
985
|
}, M = /* @__PURE__ */ new Map();
|
|
986
986
|
function Oe() {
|
|
987
|
-
function a(r,
|
|
987
|
+
function a(r, i, t, n) {
|
|
988
988
|
var P;
|
|
989
989
|
if (typeof t == "number")
|
|
990
990
|
return ((P = n[r]) == null ? void 0 : P.length) === t;
|
|
@@ -999,63 +999,63 @@ function Oe() {
|
|
|
999
999
|
}
|
|
1000
1000
|
return !1;
|
|
1001
1001
|
}
|
|
1002
|
-
function e(r,
|
|
1003
|
-
return typeof t == "boolean" ? n.childrenClassList.includes(
|
|
1002
|
+
function e(r, i, t, n) {
|
|
1003
|
+
return typeof t == "boolean" ? n.childrenClassList.includes(i) === !!t : !1;
|
|
1004
1004
|
}
|
|
1005
|
-
function o(r,
|
|
1006
|
-
return typeof t == "boolean" ? n.parentClassList.includes(
|
|
1005
|
+
function o(r, i, t, n) {
|
|
1006
|
+
return typeof t == "boolean" ? n.parentClassList.includes(i) === !!t : !1;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return typeof t == "boolean" ? n.parentClassList.includes(
|
|
1008
|
+
function c(r, i, t, n) {
|
|
1009
|
+
return typeof t == "boolean" ? n.parentClassList.includes(i) === !!t : !1;
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1011
|
+
const p = /* @__PURE__ */ new Map([
|
|
1012
1012
|
["length", a],
|
|
1013
1013
|
["hasChildren", e],
|
|
1014
|
-
["hasSibling",
|
|
1014
|
+
["hasSibling", c],
|
|
1015
1015
|
["hasParent", o]
|
|
1016
1016
|
]);
|
|
1017
|
-
function d(r,
|
|
1017
|
+
function d(r, i) {
|
|
1018
1018
|
const t = r;
|
|
1019
|
-
return typeof
|
|
1019
|
+
return typeof i == "number" ? [{ target: t, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((n) => {
|
|
1020
1020
|
if (n === "length")
|
|
1021
|
-
return { target: t, operator: "length", param: null, value:
|
|
1022
|
-
const P = n, b =
|
|
1021
|
+
return { target: t, operator: "length", param: null, value: i[n] };
|
|
1022
|
+
const P = n, b = i[n];
|
|
1023
1023
|
return { target: t, operator: r === "children" ? "hasChildren" : r === "parent" ? "hasParent" : "hasSibling", param: P, value: b };
|
|
1024
1024
|
}) : [];
|
|
1025
1025
|
}
|
|
1026
|
-
function h(r,
|
|
1027
|
-
if (
|
|
1028
|
-
const t =
|
|
1029
|
-
return t && t(r.target, r.param, r.value,
|
|
1026
|
+
function h(r, i) {
|
|
1027
|
+
if (p.has(r.operator)) {
|
|
1028
|
+
const t = p.get(r.operator);
|
|
1029
|
+
return t && t(r.target, r.param, r.value, i) || !1;
|
|
1030
1030
|
}
|
|
1031
1031
|
return !1;
|
|
1032
1032
|
}
|
|
1033
|
-
function m(r,
|
|
1033
|
+
function m(r, i) {
|
|
1034
1034
|
return Object.keys(r).reduce((b, w) => {
|
|
1035
1035
|
const D = d(w, r[w]);
|
|
1036
1036
|
return b.push(...D), b;
|
|
1037
|
-
}, []).reduce((b, w) => b && h(w,
|
|
1037
|
+
}, []).reduce((b, w) => b && h(w, i), !0);
|
|
1038
1038
|
}
|
|
1039
|
-
function v(r,
|
|
1040
|
-
const t = Object.keys(r), n = t.includes("allOf"), P = t.includes("anyOf"), b = n || P, y = (b ? r[b ? n ? "allOf" : "anyOf" : "allOf"] : [r]).map((j) => m(j,
|
|
1039
|
+
function v(r, i) {
|
|
1040
|
+
const t = Object.keys(r), n = t.includes("allOf"), P = t.includes("anyOf"), b = n || P, y = (b ? r[b ? n ? "allOf" : "anyOf" : "allOf"] : [r]).map((j) => m(j, i));
|
|
1041
1041
|
return n ? !y.includes(!1) : y.includes(!0);
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function s(r, i) {
|
|
1044
1044
|
const t = r.const;
|
|
1045
|
-
return t ? typeof t == "boolean" ? t : typeof t == "object" ? v(t,
|
|
1045
|
+
return t ? typeof t == "boolean" ? t : typeof t == "object" ? v(t, i) : !1 : !1;
|
|
1046
1046
|
}
|
|
1047
1047
|
function f(r) {
|
|
1048
|
-
return (
|
|
1048
|
+
return (i) => {
|
|
1049
1049
|
const t = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1050
1050
|
return r && r.properties && Object.keys(r.properties).reduce((n, P) => {
|
|
1051
1051
|
const b = r.properties[P];
|
|
1052
|
-
return n[P] =
|
|
1052
|
+
return n[P] = s(b, i), n;
|
|
1053
1053
|
}, t), t;
|
|
1054
1054
|
};
|
|
1055
1055
|
}
|
|
1056
|
-
function l(r,
|
|
1057
|
-
if (
|
|
1058
|
-
const { rules: n, contents: P } =
|
|
1056
|
+
function l(r, i, t) {
|
|
1057
|
+
if (i.type === "object" && i.properties) {
|
|
1058
|
+
const { rules: n, contents: P } = i.properties;
|
|
1059
1059
|
t.set(r, f(n)), P && Object.keys(P.properties).forEach(
|
|
1060
1060
|
(b) => l(b, P.properties[b], t)
|
|
1061
1061
|
);
|
|
@@ -1063,19 +1063,19 @@ function Oe() {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
function u() {
|
|
1065
1065
|
const { properties: r } = De;
|
|
1066
|
-
Object.keys(r).forEach((
|
|
1067
|
-
l(
|
|
1066
|
+
Object.keys(r).forEach((i) => {
|
|
1067
|
+
l(i, r[i], M);
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
|
-
function g(r,
|
|
1070
|
+
function g(r, i) {
|
|
1071
1071
|
const t = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1072
|
-
return M.has(r) ? M.get(r)(
|
|
1072
|
+
return M.has(r) ? M.get(r)(i) : t;
|
|
1073
1073
|
}
|
|
1074
1074
|
return u(), { getRuleValue: g };
|
|
1075
1075
|
}
|
|
1076
1076
|
function Te(a, e) {
|
|
1077
1077
|
const o = Oe();
|
|
1078
|
-
let
|
|
1078
|
+
let c = !1, p, d = !1;
|
|
1079
1079
|
const h = !1;
|
|
1080
1080
|
function m() {
|
|
1081
1081
|
return !1;
|
|
@@ -1083,62 +1083,62 @@ function Te(a, e) {
|
|
|
1083
1083
|
function v() {
|
|
1084
1084
|
return h || !d;
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function s() {
|
|
1087
1087
|
return !d;
|
|
1088
1088
|
}
|
|
1089
1089
|
function f() {
|
|
1090
1090
|
d = !1;
|
|
1091
|
-
const u = a, g = u.appearance && u.appearance.class || "", r = g.split(" "),
|
|
1091
|
+
const u = a, g = u.appearance && u.appearance.class || "", r = g.split(" "), i = u.contents || [], t = i.length ? i[0] : null, n = t && t.appearance ? t.appearance.class : "", P = n ? n.split(" ") : [], b = i.length ? i.reduce((E, C) => {
|
|
1092
1092
|
const N = C && C.appearance ? C.appearance.class : "", Y = N ? N.split(" ") : [];
|
|
1093
1093
|
return E.push(...Y), E;
|
|
1094
1094
|
}, []) : [], w = e, D = w && w.appearance && w.appearance.class || "", y = D ? D.split(" ") : [];
|
|
1095
|
-
|
|
1095
|
+
p = {
|
|
1096
1096
|
componentClass: g,
|
|
1097
1097
|
componentClassList: r,
|
|
1098
|
-
childContents:
|
|
1098
|
+
childContents: i,
|
|
1099
1099
|
firstChildContent: t,
|
|
1100
1100
|
firstChildClass: n,
|
|
1101
1101
|
firstChildClassList: P,
|
|
1102
1102
|
parent: w,
|
|
1103
1103
|
parentClass: D,
|
|
1104
1104
|
parentClassList: y,
|
|
1105
|
-
children:
|
|
1105
|
+
children: i,
|
|
1106
1106
|
childrenClassList: b
|
|
1107
1107
|
};
|
|
1108
|
-
const { canAccept: A, fixed: j, hidePadding: T } = o.getRuleValue(r[0],
|
|
1109
|
-
return
|
|
1108
|
+
const { canAccept: A, fixed: j, hidePadding: T } = o.getRuleValue(r[0], p);
|
|
1109
|
+
return c = T, d = j, !0;
|
|
1110
1110
|
}
|
|
1111
1111
|
function l() {
|
|
1112
|
-
return
|
|
1112
|
+
return c;
|
|
1113
1113
|
}
|
|
1114
|
-
return { canAccepts: m, checkCanDeleteComponent: v, checkCanMoveComponent:
|
|
1114
|
+
return { canAccepts: m, checkCanDeleteComponent: v, checkCanMoveComponent: s, resolveComponentContext: f, hideNestedPaddingInDesginerView: l };
|
|
1115
1115
|
}
|
|
1116
1116
|
function Ee(a, e) {
|
|
1117
|
-
const o = O(a.width),
|
|
1118
|
-
let
|
|
1117
|
+
const o = O(a.width), c = O(a.height);
|
|
1118
|
+
let p;
|
|
1119
1119
|
J(e, (h) => {
|
|
1120
|
-
h && (o.value = h.clientWidth,
|
|
1120
|
+
h && (o.value = h.clientWidth, p = new ResizeObserver((m) => {
|
|
1121
1121
|
if (!m || m.length < 1)
|
|
1122
1122
|
return;
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1125
|
-
}),
|
|
1123
|
+
const s = m[0].contentRect;
|
|
1124
|
+
s && (o.value = s.width);
|
|
1125
|
+
}), p.observe(h));
|
|
1126
1126
|
});
|
|
1127
1127
|
function d() {
|
|
1128
|
-
|
|
1128
|
+
p && p.disconnect();
|
|
1129
1129
|
}
|
|
1130
1130
|
return {
|
|
1131
1131
|
destory: d,
|
|
1132
1132
|
width: o,
|
|
1133
|
-
height:
|
|
1133
|
+
height: c
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
1136
|
const Ne = /* @__PURE__ */ F({
|
|
1137
1137
|
name: "FVideoDesign",
|
|
1138
1138
|
props: k,
|
|
1139
1139
|
setup(a, e) {
|
|
1140
|
-
var
|
|
1141
|
-
const o = O(),
|
|
1140
|
+
var s;
|
|
1141
|
+
const o = O(), c = U("design-item-context"), p = Te(c.schema, (s = c.parent) == null ? void 0 : s.schema), d = ge(o, c, p), {
|
|
1142
1142
|
width: h,
|
|
1143
1143
|
height: m,
|
|
1144
1144
|
destory: v
|
|
@@ -1147,11 +1147,11 @@ const Ne = /* @__PURE__ */ F({
|
|
|
1147
1147
|
o.value.componentInstance = d;
|
|
1148
1148
|
}), q(() => {
|
|
1149
1149
|
v();
|
|
1150
|
-
}), e.expose(d.value), () =>
|
|
1150
|
+
}), e.expose(d.value), () => $("div", {
|
|
1151
1151
|
ref: o,
|
|
1152
1152
|
class: "drag-container",
|
|
1153
|
-
"data-dragref": `${
|
|
1154
|
-
}, [
|
|
1153
|
+
"data-dragref": `${c.schema.id}-container`
|
|
1154
|
+
}, [$("video", {
|
|
1155
1155
|
src: a.src,
|
|
1156
1156
|
autoplay: a.autoplay,
|
|
1157
1157
|
controls: a.controls,
|
|
@@ -1161,11 +1161,11 @@ const Ne = /* @__PURE__ */ F({
|
|
|
1161
1161
|
height: m.value
|
|
1162
1162
|
}, [W("Your browser does not support the video tag.")])]);
|
|
1163
1163
|
}
|
|
1164
|
-
}),
|
|
1164
|
+
}), $e = {
|
|
1165
1165
|
install(a) {
|
|
1166
1166
|
a.component(V.name, V);
|
|
1167
1167
|
},
|
|
1168
|
-
register(a, e, o,
|
|
1168
|
+
register(a, e, o, c) {
|
|
1169
1169
|
a.video = V, e.video = B;
|
|
1170
1170
|
},
|
|
1171
1171
|
registerDesigner(a, e, o) {
|
|
@@ -1174,7 +1174,7 @@ const Ne = /* @__PURE__ */ F({
|
|
|
1174
1174
|
};
|
|
1175
1175
|
export {
|
|
1176
1176
|
V as FVideo,
|
|
1177
|
-
|
|
1177
|
+
$e as default,
|
|
1178
1178
|
B as propsResolver,
|
|
1179
1179
|
k as videoProps
|
|
1180
1180
|
};
|
|
@@ -2,7 +2,7 @@ import { ref as j, computed as L, watch as Cr, createVNode as k, createTextVNode
|
|
|
2
2
|
import { useResizeObserver as Xr } from "@vueuse/core";
|
|
3
3
|
import { cloneDeep as Zr } from "lodash-es";
|
|
4
4
|
import * as f0 from "echarts";
|
|
5
|
-
import Kr from "
|
|
5
|
+
import Kr from "../progress/index.esm.js";
|
|
6
6
|
const yr = {}, Er = {};
|
|
7
7
|
function Be(i) {
|
|
8
8
|
const { properties: C, title: o } = i, r = Object.keys(C).reduce((f, g) => (f[g] = C[g].type === "object" && C[g].properties ? Be(C[g]) : Zr(C[g].default), f), {});
|
|
@@ -19,7 +19,7 @@ function de(i, C = {}) {
|
|
|
19
19
|
}
|
|
20
20
|
function Vr(i, C) {
|
|
21
21
|
const o = Be(C);
|
|
22
|
-
return Object.keys(i).reduce((r, f) => (r[f] = i[f], r), o), o;
|
|
22
|
+
return Object.keys(i).reduce((r, f) => (r[f] && typeof r[f] == "object" ? Object.assign(r[f], i[f]) : r[f] = i[f], r), o), o;
|
|
23
23
|
}
|
|
24
24
|
function Yr(i, C) {
|
|
25
25
|
return Object.keys(i).filter((r) => i[r] != null).reduce((r, f) => {
|