@farris/ui-vue 1.2.9 → 1.3.0
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 +63 -63
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +402 -323
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +98 -96
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +66 -66
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +118 -118
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +539 -460
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +135 -135
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1007 -312
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +97 -97
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +472 -329
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2231 -1055
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +79 -79
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6408 -5034
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4762 -3511
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3442 -2742
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +14 -13
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2597 -1141
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +114 -71
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +171 -171
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +65 -65
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3075 -2586
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5272 -8511
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1726 -1822
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +126 -126
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +620 -540
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +88 -88
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +71 -71
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3582 -2356
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +10752 -8972
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5601 -5329
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +535 -452
- package/components/nav/index.umd.cjs +2 -2
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +556 -477
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +504 -425
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1833 -1054
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +100 -100
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +899 -870
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +576 -487
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +73 -73
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +1916 -1220
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.esm.js +783 -886
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3632 -2556
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +72 -72
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +484 -405
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +152 -152
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +73 -73
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1081 -1043
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +753 -738
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4418 -4177
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +119 -119
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +92 -91
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +59 -59
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +103 -103
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +85 -85
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +457 -378
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +1696 -1617
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +53 -53
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +268 -268
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +420 -341
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1062 -981
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +381 -379
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5252 -9560
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +3920 -2692
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +373 -367
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +92 -92
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +597 -417
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +251 -251
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +17125 -16176
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +0 -3
- package/types/combo-list/src/components/list-container.props.d.ts +0 -4
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +1 -1
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/types.d.ts +9 -0
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,108 +1,150 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var K = (n, e, t) => e in n ? x(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var M = (n, e, t) => K(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as Y, ref as E, onUnmounted as J, createVNode as k, createTextVNode as Q, watch as I, inject as ee, onMounted as te } from "vue";
|
|
5
|
+
import { isPlainObject as _, cloneDeep as R } from "lodash-es";
|
|
6
|
+
const X = {}, Z = {};
|
|
7
|
+
function $(n) {
|
|
8
|
+
const { properties: e, title: t, ignore: r } = n, s = r && Array.isArray(r), l = Object.keys(e).reduce((u, m) => ((!s || !r.find((g) => g == m)) && (u[m] = e[m].type === "object" && e[m].properties ? $(e[m]) : R(e[m].default)), u), {});
|
|
9
|
+
return (!s || !r.find((u) => u == "id")) && (l.id = `${t}-${Date.now()}`), l;
|
|
7
10
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
return
|
|
11
|
+
function F(n, e = {}, t) {
|
|
12
|
+
const r = X[n];
|
|
13
|
+
if (r) {
|
|
14
|
+
let s = $(r);
|
|
15
|
+
const l = Z[n];
|
|
16
|
+
return s = l ? l({ getSchemaByType: F }, s, e, t) : s, s;
|
|
14
17
|
}
|
|
15
18
|
return null;
|
|
16
19
|
}
|
|
17
|
-
function
|
|
18
|
-
const
|
|
19
|
-
return Object.keys(
|
|
20
|
+
function oe(n, e) {
|
|
21
|
+
const t = $(e);
|
|
22
|
+
return Object.keys(n).reduce((r, s) => (r[s] && _(r[s]) && _(n[s]) ? Object.assign(r[s], n[s]) : r[s] = n[s], r), t), t;
|
|
20
23
|
}
|
|
21
|
-
function
|
|
22
|
-
return Object.keys(
|
|
23
|
-
if (e.has(
|
|
24
|
-
const
|
|
25
|
-
if (typeof
|
|
26
|
-
|
|
24
|
+
function ne(n, e) {
|
|
25
|
+
return Object.keys(n).filter((r) => n[r] != null).reduce((r, s) => {
|
|
26
|
+
if (e.has(s)) {
|
|
27
|
+
const l = e.get(s);
|
|
28
|
+
if (typeof l == "string")
|
|
29
|
+
r[l] = n[s];
|
|
27
30
|
else {
|
|
28
|
-
const
|
|
29
|
-
Object.assign(
|
|
31
|
+
const u = l(s, n[s], n);
|
|
32
|
+
Object.assign(r, u);
|
|
30
33
|
}
|
|
31
34
|
} else
|
|
32
|
-
s
|
|
33
|
-
return
|
|
35
|
+
r[s] = n[s];
|
|
36
|
+
return r;
|
|
34
37
|
}, {});
|
|
35
38
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
return
|
|
39
|
+
function re(n, e, t = /* @__PURE__ */ new Map()) {
|
|
40
|
+
const r = oe(n, e);
|
|
41
|
+
return ne(r, t);
|
|
39
42
|
}
|
|
40
|
-
function
|
|
41
|
-
function e(
|
|
42
|
-
if (typeof
|
|
43
|
-
return
|
|
44
|
-
if (typeof
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
return Number(
|
|
48
|
-
if (
|
|
49
|
-
return Number(
|
|
50
|
-
if (
|
|
51
|
-
return Number(
|
|
43
|
+
function ae(n = {}) {
|
|
44
|
+
function e(c, f, d, y) {
|
|
45
|
+
if (typeof d == "number")
|
|
46
|
+
return y[c].length === d;
|
|
47
|
+
if (typeof d == "object") {
|
|
48
|
+
const j = Object.keys(d)[0], i = d[j];
|
|
49
|
+
if (j === "not")
|
|
50
|
+
return Number(y[c].length) !== Number(i);
|
|
51
|
+
if (j === "moreThan")
|
|
52
|
+
return Number(y[c].length) >= Number(i);
|
|
53
|
+
if (j === "lessThan")
|
|
54
|
+
return Number(y[c].length) <= Number(i);
|
|
52
55
|
}
|
|
53
56
|
return !1;
|
|
54
57
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
58
|
+
function t(c, f, d, y) {
|
|
59
|
+
return y[c] && y[c].propertyValue && String(y[c].propertyValue.value) === String(d);
|
|
57
60
|
}
|
|
58
|
-
const
|
|
61
|
+
const r = /* @__PURE__ */ new Map([
|
|
59
62
|
["length", e],
|
|
60
|
-
["getProperty",
|
|
63
|
+
["getProperty", t]
|
|
61
64
|
]);
|
|
62
|
-
Object.keys(
|
|
63
|
-
function c
|
|
64
|
-
const
|
|
65
|
-
return typeof
|
|
66
|
-
if (
|
|
67
|
-
return { target:
|
|
68
|
-
const
|
|
69
|
-
return { target:
|
|
65
|
+
Object.keys(n).reduce((c, f) => (c.set(f, n[f]), c), r);
|
|
66
|
+
function s(c, f) {
|
|
67
|
+
const d = c;
|
|
68
|
+
return typeof f == "number" ? [{ target: d, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: d, operator: "getProperty", param: c, value: !!f }] : typeof f == "object" ? Object.keys(f).map((y) => {
|
|
69
|
+
if (y === "length")
|
|
70
|
+
return { target: d, operator: "length", param: null, value: f[y] };
|
|
71
|
+
const j = y, i = f[y];
|
|
72
|
+
return { target: d, operator: "getProperty", param: j, value: i };
|
|
70
73
|
}) : [];
|
|
71
74
|
}
|
|
72
|
-
function
|
|
73
|
-
return Object.keys(
|
|
74
|
-
const
|
|
75
|
-
return
|
|
75
|
+
function l(c) {
|
|
76
|
+
return Object.keys(c).reduce((d, y) => {
|
|
77
|
+
const j = s(y, c[y]);
|
|
78
|
+
return d.push(...j), d;
|
|
76
79
|
}, []);
|
|
77
80
|
}
|
|
78
|
-
function
|
|
79
|
-
if (
|
|
80
|
-
const
|
|
81
|
-
return
|
|
81
|
+
function u(c, f) {
|
|
82
|
+
if (r.has(c.operator)) {
|
|
83
|
+
const d = r.get(c.operator);
|
|
84
|
+
return d && d(c.target, c.param, c.value, f) || !1;
|
|
82
85
|
}
|
|
83
86
|
return !1;
|
|
84
87
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
88
|
+
function m(c, f) {
|
|
89
|
+
return l(c).reduce((j, i) => j && u(i, f), !0);
|
|
87
90
|
}
|
|
88
|
-
function
|
|
89
|
-
const
|
|
90
|
-
return
|
|
91
|
+
function g(c, f) {
|
|
92
|
+
const d = Object.keys(c), y = d.includes("allOf"), j = d.includes("anyOf"), i = y || j, a = (i ? c[i ? y ? "allOf" : "anyOf" : "allOf"] : [c]).map((b) => m(b, f));
|
|
93
|
+
return y ? !a.includes(!1) : a.includes(!0);
|
|
91
94
|
}
|
|
92
|
-
return { parseValueSchema:
|
|
95
|
+
return { parseValueSchema: g };
|
|
93
96
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
const ie = {
|
|
98
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
99
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
100
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
101
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
102
|
+
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
103
|
+
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
104
|
+
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
105
|
+
"number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
|
|
106
|
+
"date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
|
|
107
|
+
switch: { type: "switch", name: "开关", icon: "SwitchField" },
|
|
108
|
+
"radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
|
|
109
|
+
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
110
|
+
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
111
|
+
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
112
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
113
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
114
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
115
|
+
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
116
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
117
|
+
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
118
|
+
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
119
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
120
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
121
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
122
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
123
|
+
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
124
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
125
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
126
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
127
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
128
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
129
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
130
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
131
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
132
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
133
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
134
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
135
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
136
|
+
}, se = {}, ce = {};
|
|
137
|
+
ae();
|
|
138
|
+
function pe(n, e, t = /* @__PURE__ */ new Map(), r = (u, m, g) => m, s = {}, l = (u) => u) {
|
|
139
|
+
return X[e.title] = e, Z[e.title] = r, se[e.title] = s, ce[e.title] = l, (u = {}) => {
|
|
140
|
+
const m = re(u, e, t), g = Object.keys(n).reduce((c, f) => (c[f] = n[f].default, c), {});
|
|
141
|
+
return Object.assign(g, m);
|
|
100
142
|
};
|
|
101
143
|
}
|
|
102
|
-
function
|
|
144
|
+
function le(n, e) {
|
|
103
145
|
return { customClass: e.class, customStyle: e.style };
|
|
104
146
|
}
|
|
105
|
-
const
|
|
147
|
+
const ue = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-design.gitee.io/video.schema.json", fe = "video", ye = "A Farris Video Component", he = "object", me = {
|
|
106
148
|
id: {
|
|
107
149
|
description: "The unique identifier for a Video",
|
|
108
150
|
type: "string"
|
|
@@ -130,24 +172,24 @@ const ne = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-
|
|
|
130
172
|
type: "boolean",
|
|
131
173
|
default: !0
|
|
132
174
|
}
|
|
133
|
-
},
|
|
175
|
+
}, be = [
|
|
134
176
|
"id",
|
|
135
177
|
"type"
|
|
136
|
-
],
|
|
137
|
-
$schema:
|
|
138
|
-
$id:
|
|
139
|
-
title:
|
|
140
|
-
description:
|
|
141
|
-
type:
|
|
142
|
-
properties:
|
|
143
|
-
required:
|
|
144
|
-
},
|
|
145
|
-
["appearance",
|
|
178
|
+
], ge = {
|
|
179
|
+
$schema: ue,
|
|
180
|
+
$id: de,
|
|
181
|
+
title: fe,
|
|
182
|
+
description: ye,
|
|
183
|
+
type: he,
|
|
184
|
+
properties: me,
|
|
185
|
+
required: be
|
|
186
|
+
}, je = /* @__PURE__ */ new Map([
|
|
187
|
+
["appearance", le]
|
|
146
188
|
]);
|
|
147
|
-
function
|
|
189
|
+
function ve(n, e, t) {
|
|
148
190
|
return e;
|
|
149
191
|
}
|
|
150
|
-
const
|
|
192
|
+
const Pe = "verify-detail", Ce = "A Farris Component", we = "object", Me = {
|
|
151
193
|
basic: {
|
|
152
194
|
description: "Basic Infomation",
|
|
153
195
|
title: "基本信息",
|
|
@@ -169,12 +211,12 @@ const de = "verify-detail", ye = "A Farris Component", he = "object", be = {
|
|
|
169
211
|
}
|
|
170
212
|
}
|
|
171
213
|
}
|
|
172
|
-
},
|
|
173
|
-
title:
|
|
174
|
-
description:
|
|
175
|
-
type:
|
|
176
|
-
categories:
|
|
177
|
-
},
|
|
214
|
+
}, Ae = {
|
|
215
|
+
title: Pe,
|
|
216
|
+
description: Ce,
|
|
217
|
+
type: we,
|
|
218
|
+
categories: Me
|
|
219
|
+
}, L = {
|
|
178
220
|
src: {
|
|
179
221
|
type: String,
|
|
180
222
|
required: !0,
|
|
@@ -211,206 +253,206 @@ const de = "verify-detail", ye = "A Farris Component", he = "object", be = {
|
|
|
211
253
|
type: [String, Number],
|
|
212
254
|
default: 168
|
|
213
255
|
}
|
|
214
|
-
},
|
|
215
|
-
function
|
|
216
|
-
function o
|
|
217
|
-
|
|
256
|
+
}, z = pe(L, ge, je, ve, Ae);
|
|
257
|
+
function Te(n, e) {
|
|
258
|
+
function t(o) {
|
|
259
|
+
o.stopPropagation(), e.emit("abort");
|
|
218
260
|
}
|
|
219
|
-
function
|
|
220
|
-
|
|
261
|
+
function r(o) {
|
|
262
|
+
o.stopPropagation(), e.emit("play");
|
|
221
263
|
}
|
|
222
|
-
function
|
|
223
|
-
|
|
264
|
+
function s(o) {
|
|
265
|
+
o.stopPropagation(), e.emit("pause");
|
|
224
266
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
267
|
+
function l(o) {
|
|
268
|
+
o.stopPropagation(), e.emit("ended");
|
|
227
269
|
}
|
|
228
|
-
function
|
|
229
|
-
|
|
270
|
+
function u(o) {
|
|
271
|
+
o.stopPropagation(), e.emit("durationchange");
|
|
230
272
|
}
|
|
231
|
-
function
|
|
232
|
-
|
|
273
|
+
function m(o) {
|
|
274
|
+
o.stopPropagation(), e.emit("error");
|
|
233
275
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
276
|
+
function g(o) {
|
|
277
|
+
o.stopPropagation(), e.emit("loadeddata");
|
|
236
278
|
}
|
|
237
|
-
function
|
|
238
|
-
|
|
279
|
+
function c(o) {
|
|
280
|
+
o.stopPropagation(), e.emit("loadedmetadata");
|
|
239
281
|
}
|
|
240
|
-
function
|
|
241
|
-
|
|
282
|
+
function f(o) {
|
|
283
|
+
o.stopPropagation(), e.emit("loadstart");
|
|
242
284
|
}
|
|
243
|
-
function
|
|
244
|
-
|
|
285
|
+
function d(o) {
|
|
286
|
+
o.stopPropagation(), e.emit("playing");
|
|
245
287
|
}
|
|
246
|
-
function
|
|
247
|
-
|
|
288
|
+
function y(o) {
|
|
289
|
+
o.stopPropagation(), e.emit("progress");
|
|
248
290
|
}
|
|
249
|
-
function
|
|
250
|
-
|
|
291
|
+
function j(o) {
|
|
292
|
+
o.stopPropagation(), e.emit("timeupdate");
|
|
251
293
|
}
|
|
252
|
-
function
|
|
253
|
-
|
|
294
|
+
function i(o) {
|
|
295
|
+
o.stopPropagation(), e.emit("volumechange");
|
|
254
296
|
}
|
|
255
|
-
function
|
|
256
|
-
|
|
297
|
+
function p(o) {
|
|
298
|
+
o.stopPropagation(), e.emit("canplay");
|
|
257
299
|
}
|
|
258
300
|
return {
|
|
259
|
-
onAbort:
|
|
260
|
-
onPlay:
|
|
261
|
-
onPause:
|
|
262
|
-
onEnded:
|
|
263
|
-
onDurationchange:
|
|
264
|
-
onError:
|
|
265
|
-
onLoadeddata:
|
|
266
|
-
onLoadedmetadata:
|
|
267
|
-
onLoadstart:
|
|
268
|
-
onPlaying:
|
|
269
|
-
onProgress:
|
|
270
|
-
onTimeupdate:
|
|
271
|
-
onVolumechange:
|
|
272
|
-
onCanplay:
|
|
301
|
+
onAbort: t,
|
|
302
|
+
onPlay: r,
|
|
303
|
+
onPause: s,
|
|
304
|
+
onEnded: l,
|
|
305
|
+
onDurationchange: u,
|
|
306
|
+
onError: m,
|
|
307
|
+
onLoadeddata: g,
|
|
308
|
+
onLoadedmetadata: c,
|
|
309
|
+
onLoadstart: f,
|
|
310
|
+
onPlaying: d,
|
|
311
|
+
onProgress: y,
|
|
312
|
+
onTimeupdate: j,
|
|
313
|
+
onVolumechange: i,
|
|
314
|
+
onCanplay: p
|
|
273
315
|
};
|
|
274
316
|
}
|
|
275
|
-
const
|
|
317
|
+
const N = /* @__PURE__ */ Y({
|
|
276
318
|
name: "FVideo",
|
|
277
|
-
props:
|
|
319
|
+
props: L,
|
|
278
320
|
emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
|
|
279
|
-
setup(
|
|
280
|
-
const
|
|
281
|
-
onAbort:
|
|
282
|
-
onPlay:
|
|
283
|
-
onPause:
|
|
284
|
-
onEnded:
|
|
285
|
-
onDurationchange:
|
|
286
|
-
onError:
|
|
287
|
-
onLoadeddata:
|
|
288
|
-
onLoadedmetadata:
|
|
289
|
-
onLoadstart:
|
|
290
|
-
onPlaying:
|
|
291
|
-
onProgress:
|
|
292
|
-
onTimeupdate:
|
|
293
|
-
onVolumechange:
|
|
294
|
-
onCanplay:
|
|
295
|
-
} =
|
|
296
|
-
return
|
|
297
|
-
}), () =>
|
|
298
|
-
ref:
|
|
299
|
-
src:
|
|
300
|
-
autoplay:
|
|
301
|
-
controls:
|
|
302
|
-
loop:
|
|
303
|
-
muted:
|
|
304
|
-
width:
|
|
305
|
-
height:
|
|
306
|
-
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
|
-
}, [
|
|
321
|
+
setup(n, e) {
|
|
322
|
+
const t = E(), {
|
|
323
|
+
onAbort: r,
|
|
324
|
+
onPlay: s,
|
|
325
|
+
onPause: l,
|
|
326
|
+
onEnded: u,
|
|
327
|
+
onDurationchange: m,
|
|
328
|
+
onError: g,
|
|
329
|
+
onLoadeddata: c,
|
|
330
|
+
onLoadedmetadata: f,
|
|
331
|
+
onLoadstart: d,
|
|
332
|
+
onPlaying: y,
|
|
333
|
+
onProgress: j,
|
|
334
|
+
onTimeupdate: i,
|
|
335
|
+
onVolumechange: p,
|
|
336
|
+
onCanplay: o
|
|
337
|
+
} = Te(n, e);
|
|
338
|
+
return J(() => {
|
|
339
|
+
}), () => k("video", {
|
|
340
|
+
ref: t,
|
|
341
|
+
src: n.src,
|
|
342
|
+
autoplay: n.autoplay,
|
|
343
|
+
controls: n.controls,
|
|
344
|
+
loop: n.loop,
|
|
345
|
+
muted: n.muted,
|
|
346
|
+
width: n.width,
|
|
347
|
+
height: n.height,
|
|
348
|
+
poster: n.poster,
|
|
349
|
+
onAbort: (a) => r(a),
|
|
350
|
+
onPlay: (a) => s(a),
|
|
351
|
+
onPause: (a) => l(a),
|
|
352
|
+
onEnded: (a) => u(a),
|
|
353
|
+
onDurationchange: (a) => m(a),
|
|
354
|
+
onError: (a) => g(a),
|
|
355
|
+
onLoadeddata: (a) => c(a),
|
|
356
|
+
onLoadedmetadata: (a) => f(a),
|
|
357
|
+
onLoadstart: (a) => d(a),
|
|
358
|
+
onPlaying: (a) => y(a),
|
|
359
|
+
onProgress: (a) => j(a),
|
|
360
|
+
onTimeupdate: (a) => i(a),
|
|
361
|
+
onVolumechange: (a) => p(a),
|
|
362
|
+
onCanplay: (a) => o(a)
|
|
363
|
+
}, [Q("Your browser does not support the video tag.")]);
|
|
322
364
|
}
|
|
323
365
|
});
|
|
324
|
-
function
|
|
325
|
-
var
|
|
326
|
-
function
|
|
327
|
-
|
|
366
|
+
function Ee(n, e, t) {
|
|
367
|
+
var V;
|
|
368
|
+
function r() {
|
|
369
|
+
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
328
370
|
}
|
|
329
|
-
|
|
330
|
-
const
|
|
331
|
-
function
|
|
332
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 :
|
|
371
|
+
r();
|
|
372
|
+
const s = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", u = E();
|
|
373
|
+
function m() {
|
|
374
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
333
375
|
}
|
|
334
|
-
function
|
|
376
|
+
function g() {
|
|
335
377
|
return !1;
|
|
336
378
|
}
|
|
337
|
-
function
|
|
338
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 :
|
|
379
|
+
function c() {
|
|
380
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
339
381
|
}
|
|
340
|
-
function
|
|
341
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 :
|
|
382
|
+
function f() {
|
|
383
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
342
384
|
}
|
|
343
|
-
function
|
|
344
|
-
if (!
|
|
385
|
+
function d(h) {
|
|
386
|
+
if (!h || !h.value)
|
|
345
387
|
return null;
|
|
346
|
-
if (
|
|
347
|
-
return
|
|
348
|
-
const
|
|
349
|
-
return
|
|
388
|
+
if (h.value.schema && h.value.schema.type === "component")
|
|
389
|
+
return h.value;
|
|
390
|
+
const P = E(h == null ? void 0 : h.value.parent), C = d(P);
|
|
391
|
+
return C || null;
|
|
350
392
|
}
|
|
351
|
-
function
|
|
352
|
-
const { componentInstance:
|
|
353
|
-
return !
|
|
393
|
+
function y(h = e) {
|
|
394
|
+
const { componentInstance: P, designerItemElementRef: C } = h;
|
|
395
|
+
return !P || !P.value ? null : P.value.canMove ? C : y(h.parent);
|
|
354
396
|
}
|
|
355
|
-
function
|
|
356
|
-
return !!
|
|
397
|
+
function j(h) {
|
|
398
|
+
return !!t && t.canAccepts(h);
|
|
357
399
|
}
|
|
358
|
-
function
|
|
400
|
+
function i() {
|
|
359
401
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
360
402
|
}
|
|
361
|
-
function
|
|
403
|
+
function p() {
|
|
404
|
+
}
|
|
405
|
+
function o(h, P) {
|
|
406
|
+
P && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(P);
|
|
407
|
+
}
|
|
408
|
+
function a(h, P) {
|
|
409
|
+
const { componentType: C } = h;
|
|
410
|
+
let A = F(C, h, P);
|
|
411
|
+
t && t.onResolveNewComponentSchema && (A = t.onResolveNewComponentSchema(h, A));
|
|
412
|
+
const O = C.toLowerCase().replace("-", "_");
|
|
413
|
+
return A && !A.id && A.type === C && (A.id = `${O}_${Math.random().toString().slice(2, 6)}`), A;
|
|
414
|
+
}
|
|
415
|
+
function v(h, P) {
|
|
416
|
+
const C = String(h.getAttribute("data-controltype")), A = h.getAttribute("data-feature"), O = A ? JSON.parse(A) : {};
|
|
417
|
+
O.parentComponentInstance = u.value;
|
|
418
|
+
let T = F(C, O);
|
|
419
|
+
t && t.onAcceptNewChildElement && (T = t.onAcceptNewChildElement(h, P, T));
|
|
420
|
+
const D = C.toLowerCase().replace("-", "_");
|
|
421
|
+
return T && !T.id && T.type === C && (T.id = `${D}_${Math.random().toString().slice(2, 6)}`), T;
|
|
422
|
+
}
|
|
423
|
+
function b(h) {
|
|
362
424
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}
|
|
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
|
-
}
|
|
381
|
-
function g(y) {
|
|
382
|
-
}
|
|
383
|
-
function v(...y) {
|
|
384
|
-
if (o && o.getPropsConfig)
|
|
385
|
-
return o.getPropsConfig(...y);
|
|
386
|
-
}
|
|
387
|
-
return d.value = {
|
|
388
|
-
canMove: b(),
|
|
389
|
-
canSelectParent: j(),
|
|
390
|
-
canDelete: p(),
|
|
391
|
-
canNested: !u(),
|
|
425
|
+
function w(...h) {
|
|
426
|
+
if (t && t.getPropsConfig)
|
|
427
|
+
return t.getPropsConfig(...h);
|
|
428
|
+
}
|
|
429
|
+
return u.value = {
|
|
430
|
+
canMove: m(),
|
|
431
|
+
canSelectParent: g(),
|
|
432
|
+
canDelete: c(),
|
|
433
|
+
canNested: !f(),
|
|
392
434
|
contents: e == null ? void 0 : e.schema.contents,
|
|
393
|
-
elementRef:
|
|
394
|
-
parent: (
|
|
435
|
+
elementRef: n,
|
|
436
|
+
parent: (V = e == null ? void 0 : e.parent) == null ? void 0 : V.componentInstance,
|
|
395
437
|
schema: e == null ? void 0 : e.schema,
|
|
396
|
-
styles:
|
|
397
|
-
designerClass:
|
|
398
|
-
canAccepts:
|
|
399
|
-
getBelongedComponentInstance:
|
|
400
|
-
getDraggableDesignItemElement:
|
|
401
|
-
getDraggingDisplayText:
|
|
402
|
-
getPropConfig:
|
|
403
|
-
getDragScopeElement:
|
|
404
|
-
onAcceptMovedChildElement:
|
|
405
|
-
onAcceptNewChildElement:
|
|
406
|
-
onChildElementMovedOut:
|
|
407
|
-
addNewChildComponentSchema:
|
|
408
|
-
updateDragAndDropRules:
|
|
409
|
-
triggerBelongedComponentToMoveWhenMoved: !!
|
|
410
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!
|
|
411
|
-
},
|
|
438
|
+
styles: s,
|
|
439
|
+
designerClass: l,
|
|
440
|
+
canAccepts: j,
|
|
441
|
+
getBelongedComponentInstance: d,
|
|
442
|
+
getDraggableDesignItemElement: y,
|
|
443
|
+
getDraggingDisplayText: i,
|
|
444
|
+
getPropConfig: w,
|
|
445
|
+
getDragScopeElement: p,
|
|
446
|
+
onAcceptMovedChildElement: o,
|
|
447
|
+
onAcceptNewChildElement: v,
|
|
448
|
+
onChildElementMovedOut: b,
|
|
449
|
+
addNewChildComponentSchema: a,
|
|
450
|
+
updateDragAndDropRules: r,
|
|
451
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || E(!1),
|
|
452
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || E(!1)
|
|
453
|
+
}, u;
|
|
412
454
|
}
|
|
413
|
-
const
|
|
455
|
+
const Ve = "https://json-schema.org/draft/2020-12/schema", Oe = "https://farris-design.gitee.io/dragging-rules.schema.json", De = "Dragging Rules", Se = "The rules of designer canvas", Ne = "object", Be = {
|
|
414
456
|
"f-page": {
|
|
415
457
|
description: "The root class of page designed by farris.",
|
|
416
458
|
type: "object",
|
|
@@ -1048,212 +1090,350 @@ const Pe = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
|
|
|
1048
1090
|
description: "",
|
|
1049
1091
|
type: "object"
|
|
1050
1092
|
}
|
|
1051
|
-
},
|
|
1052
|
-
$schema:
|
|
1053
|
-
$id:
|
|
1054
|
-
title:
|
|
1055
|
-
description:
|
|
1056
|
-
type:
|
|
1057
|
-
properties:
|
|
1058
|
-
},
|
|
1059
|
-
function
|
|
1060
|
-
function
|
|
1061
|
-
var
|
|
1062
|
-
if (typeof
|
|
1063
|
-
return ((
|
|
1064
|
-
if (typeof
|
|
1065
|
-
const
|
|
1066
|
-
if (
|
|
1067
|
-
return Number(
|
|
1068
|
-
if (
|
|
1069
|
-
return Number(
|
|
1070
|
-
if (
|
|
1071
|
-
return Number(
|
|
1093
|
+
}, ke = {
|
|
1094
|
+
$schema: Ve,
|
|
1095
|
+
$id: Oe,
|
|
1096
|
+
title: De,
|
|
1097
|
+
description: Se,
|
|
1098
|
+
type: Ne,
|
|
1099
|
+
properties: Be
|
|
1100
|
+
}, B = /* @__PURE__ */ new Map();
|
|
1101
|
+
function Fe() {
|
|
1102
|
+
function n(i, p, o, a) {
|
|
1103
|
+
var v;
|
|
1104
|
+
if (typeof o == "number")
|
|
1105
|
+
return ((v = a[i]) == null ? void 0 : v.length) === o;
|
|
1106
|
+
if (typeof o == "object") {
|
|
1107
|
+
const b = Object.keys(o)[0], w = o[b];
|
|
1108
|
+
if (b === "not")
|
|
1109
|
+
return Number(a[i].length) !== Number(w);
|
|
1110
|
+
if (b === "moreThan")
|
|
1111
|
+
return Number(a[i].length) >= Number(w);
|
|
1112
|
+
if (b === "lessThan")
|
|
1113
|
+
return Number(a[i].length) <= Number(w);
|
|
1072
1114
|
}
|
|
1073
1115
|
return !1;
|
|
1074
1116
|
}
|
|
1075
|
-
function e(
|
|
1076
|
-
return typeof
|
|
1117
|
+
function e(i, p, o, a) {
|
|
1118
|
+
return typeof o == "boolean" ? a.childrenClassList.includes(p) === !!o : !1;
|
|
1077
1119
|
}
|
|
1078
|
-
function
|
|
1079
|
-
return typeof
|
|
1120
|
+
function t(i, p, o, a) {
|
|
1121
|
+
return typeof o == "boolean" ? a.parentClassList.includes(p) === !!o : !1;
|
|
1080
1122
|
}
|
|
1081
|
-
function
|
|
1082
|
-
return typeof
|
|
1123
|
+
function r(i, p, o, a) {
|
|
1124
|
+
return typeof o == "boolean" ? a.parentClassList.includes(p) === !!o : !1;
|
|
1083
1125
|
}
|
|
1084
|
-
const
|
|
1085
|
-
["length",
|
|
1126
|
+
const s = /* @__PURE__ */ new Map([
|
|
1127
|
+
["length", n],
|
|
1086
1128
|
["hasChildren", e],
|
|
1087
|
-
["hasSibling",
|
|
1088
|
-
["hasParent",
|
|
1129
|
+
["hasSibling", r],
|
|
1130
|
+
["hasParent", t]
|
|
1089
1131
|
]);
|
|
1090
|
-
function
|
|
1091
|
-
const
|
|
1092
|
-
return typeof
|
|
1093
|
-
if (
|
|
1094
|
-
return { target:
|
|
1095
|
-
const
|
|
1096
|
-
return { target:
|
|
1132
|
+
function l(i, p) {
|
|
1133
|
+
const o = i;
|
|
1134
|
+
return typeof p == "number" ? [{ target: o, operator: "length", param: null, value: Number(p) }] : typeof p == "object" ? Object.keys(p).map((a) => {
|
|
1135
|
+
if (a === "length")
|
|
1136
|
+
return { target: o, operator: "length", param: null, value: p[a] };
|
|
1137
|
+
const v = a, b = p[a];
|
|
1138
|
+
return { target: o, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: v, value: b };
|
|
1097
1139
|
}) : [];
|
|
1098
1140
|
}
|
|
1099
|
-
function
|
|
1100
|
-
if (
|
|
1101
|
-
const
|
|
1102
|
-
return
|
|
1141
|
+
function u(i, p) {
|
|
1142
|
+
if (s.has(i.operator)) {
|
|
1143
|
+
const o = s.get(i.operator);
|
|
1144
|
+
return o && o(i.target, i.param, i.value, p) || !1;
|
|
1103
1145
|
}
|
|
1104
1146
|
return !1;
|
|
1105
1147
|
}
|
|
1106
|
-
function
|
|
1107
|
-
return Object.keys(
|
|
1108
|
-
const
|
|
1109
|
-
return
|
|
1110
|
-
}, []).reduce((
|
|
1111
|
-
}
|
|
1112
|
-
function
|
|
1113
|
-
const
|
|
1114
|
-
return
|
|
1115
|
-
}
|
|
1116
|
-
function
|
|
1117
|
-
const
|
|
1118
|
-
return
|
|
1119
|
-
}
|
|
1120
|
-
function
|
|
1121
|
-
return (
|
|
1122
|
-
const
|
|
1123
|
-
return
|
|
1124
|
-
const
|
|
1125
|
-
return
|
|
1126
|
-
},
|
|
1148
|
+
function m(i, p) {
|
|
1149
|
+
return Object.keys(i).reduce((b, w) => {
|
|
1150
|
+
const V = l(w, i[w]);
|
|
1151
|
+
return b.push(...V), b;
|
|
1152
|
+
}, []).reduce((b, w) => b && u(w, p), !0);
|
|
1153
|
+
}
|
|
1154
|
+
function g(i, p) {
|
|
1155
|
+
const o = Object.keys(i), a = o.includes("allOf"), v = o.includes("anyOf"), b = a || v, h = (b ? i[b ? a ? "allOf" : "anyOf" : "allOf"] : [i]).map((C) => m(C, p));
|
|
1156
|
+
return a ? !h.includes(!1) : h.includes(!0);
|
|
1157
|
+
}
|
|
1158
|
+
function c(i, p) {
|
|
1159
|
+
const o = i.const;
|
|
1160
|
+
return o ? typeof o == "boolean" ? o : typeof o == "object" ? g(o, p) : !1 : !1;
|
|
1161
|
+
}
|
|
1162
|
+
function f(i) {
|
|
1163
|
+
return (p) => {
|
|
1164
|
+
const o = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1165
|
+
return i && i.properties && Object.keys(i.properties).reduce((a, v) => {
|
|
1166
|
+
const b = i.properties[v];
|
|
1167
|
+
return a[v] = c(b, p), a;
|
|
1168
|
+
}, o), o;
|
|
1127
1169
|
};
|
|
1128
1170
|
}
|
|
1129
|
-
function
|
|
1130
|
-
if (
|
|
1131
|
-
const { rules:
|
|
1132
|
-
|
|
1133
|
-
(
|
|
1171
|
+
function d(i, p, o) {
|
|
1172
|
+
if (p.type === "object" && p.properties) {
|
|
1173
|
+
const { rules: a, contents: v } = p.properties;
|
|
1174
|
+
o.set(i, f(a)), v && Object.keys(v.properties).forEach(
|
|
1175
|
+
(b) => d(b, v.properties[b], o)
|
|
1134
1176
|
);
|
|
1135
1177
|
}
|
|
1136
1178
|
}
|
|
1137
|
-
function
|
|
1138
|
-
const { properties:
|
|
1139
|
-
Object.keys(
|
|
1140
|
-
|
|
1179
|
+
function y() {
|
|
1180
|
+
const { properties: i } = ke;
|
|
1181
|
+
Object.keys(i).forEach((p) => {
|
|
1182
|
+
d(p, i[p], B);
|
|
1141
1183
|
});
|
|
1142
1184
|
}
|
|
1143
|
-
function
|
|
1144
|
-
const
|
|
1145
|
-
return
|
|
1185
|
+
function j(i, p) {
|
|
1186
|
+
const o = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1187
|
+
return B.has(i) ? B.get(i)(p) : o;
|
|
1146
1188
|
}
|
|
1147
|
-
return
|
|
1189
|
+
return y(), { getRuleValue: j };
|
|
1148
1190
|
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1191
|
+
class $e {
|
|
1192
|
+
constructor(e, t) {
|
|
1193
|
+
M(this, "componentId");
|
|
1194
|
+
M(this, "viewModelId");
|
|
1195
|
+
M(this, "eventsEditorUtils");
|
|
1196
|
+
M(this, "formSchemaUtils");
|
|
1197
|
+
M(this, "formMetadataConverter");
|
|
1198
|
+
M(this, "designViewModelUtils");
|
|
1199
|
+
M(this, "designViewModelField");
|
|
1200
|
+
M(this, "controlCreatorUtils");
|
|
1201
|
+
M(this, "designerHostService");
|
|
1202
|
+
M(this, "schemaService", null);
|
|
1203
|
+
M(this, "metadataService", null);
|
|
1204
|
+
M(this, "propertyConfig", {
|
|
1205
|
+
type: "object",
|
|
1206
|
+
categories: {}
|
|
1207
|
+
});
|
|
1208
|
+
var r;
|
|
1209
|
+
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
1210
|
+
}
|
|
1211
|
+
getTableInfo() {
|
|
1212
|
+
var e;
|
|
1213
|
+
return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
|
|
1214
|
+
}
|
|
1215
|
+
setDesignViewModelField(e) {
|
|
1216
|
+
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
1217
|
+
if (t) {
|
|
1218
|
+
if (!this.designViewModelField) {
|
|
1219
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1220
|
+
this.designViewModelField = r.fields.find((s) => s.id === t);
|
|
1221
|
+
}
|
|
1222
|
+
e.updateOn = this.designViewModelField.updateOn;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
changeFieldEditorType(e, t) {
|
|
1226
|
+
}
|
|
1227
|
+
getBasicPropConfig(e) {
|
|
1228
|
+
return {
|
|
1229
|
+
description: "Basic Information",
|
|
1230
|
+
title: "基本信息",
|
|
1231
|
+
properties: {
|
|
1232
|
+
id: {
|
|
1233
|
+
description: "组件标识",
|
|
1234
|
+
title: "标识",
|
|
1235
|
+
type: "string",
|
|
1236
|
+
readonly: !0
|
|
1237
|
+
},
|
|
1238
|
+
type: {
|
|
1239
|
+
description: "组件类型",
|
|
1240
|
+
title: "控件类型",
|
|
1241
|
+
type: "select",
|
|
1242
|
+
editor: {
|
|
1243
|
+
type: "combo-list",
|
|
1244
|
+
textField: "name",
|
|
1245
|
+
valueField: "value",
|
|
1246
|
+
data: [{ value: e.type, name: ie[e.type].name }]
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
};
|
|
1251
|
+
}
|
|
1252
|
+
getAppearanceConfig(e = null) {
|
|
1253
|
+
return {
|
|
1254
|
+
title: "样式",
|
|
1255
|
+
description: "Appearance",
|
|
1256
|
+
properties: {
|
|
1257
|
+
class: {
|
|
1258
|
+
title: "class样式",
|
|
1259
|
+
type: "string",
|
|
1260
|
+
description: "组件的CSS样式",
|
|
1261
|
+
$converter: "/converter/appearance.converter"
|
|
1262
|
+
},
|
|
1263
|
+
style: {
|
|
1264
|
+
title: "style样式",
|
|
1265
|
+
type: "string",
|
|
1266
|
+
description: "组件的样式",
|
|
1267
|
+
$converter: "/converter/appearance.converter"
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
*
|
|
1274
|
+
* @param propertyId
|
|
1275
|
+
* @param componentInstance
|
|
1276
|
+
* @returns
|
|
1277
|
+
*/
|
|
1278
|
+
updateElementByParentContainer(e, t) {
|
|
1279
|
+
const r = t && t.parent && t.parent.schema;
|
|
1280
|
+
if (!r)
|
|
1281
|
+
return;
|
|
1282
|
+
const s = r.contents.findIndex((u) => u.id === e), l = R(r.contents[s]);
|
|
1283
|
+
r.contents.splice(s, 1), r.contents.splice(s, 0, l);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
class Le extends $e {
|
|
1287
|
+
constructor(e, t) {
|
|
1288
|
+
super(e, t);
|
|
1289
|
+
}
|
|
1290
|
+
getPropertyConfig(e) {
|
|
1291
|
+
return this.propertyConfig.categories.basic = this.getBasicPropConfig(e), this.propertyConfig.categories.appearance = this.getAppearanceConfig(e), this.getEventPropConfig(e), this.propertyConfig;
|
|
1292
|
+
}
|
|
1293
|
+
getEventPropConfig(e) {
|
|
1294
|
+
const t = [
|
|
1295
|
+
{
|
|
1296
|
+
label: "onInit",
|
|
1297
|
+
name: "初始化事件"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
label: "onAfterViewInit",
|
|
1301
|
+
name: "视图初始化后事件"
|
|
1302
|
+
}
|
|
1303
|
+
];
|
|
1304
|
+
var r = this;
|
|
1305
|
+
const s = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), l = {};
|
|
1306
|
+
l[r.viewModelId] = {
|
|
1307
|
+
type: "events-editor",
|
|
1308
|
+
editor: {
|
|
1309
|
+
initialData: s
|
|
1310
|
+
}
|
|
1311
|
+
}, this.propertyConfig.categories.eventsEditor = {
|
|
1312
|
+
title: "事件",
|
|
1313
|
+
hideTitle: !0,
|
|
1314
|
+
properties: l,
|
|
1315
|
+
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1316
|
+
refreshPanelAfterChanged: !0,
|
|
1317
|
+
tabId: "commands",
|
|
1318
|
+
tabName: "交互",
|
|
1319
|
+
setPropertyRelates(u, m) {
|
|
1320
|
+
const g = u.propertyValue;
|
|
1321
|
+
delete e[r.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, g.events, g));
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
function Ue(n, e) {
|
|
1327
|
+
const t = Fe();
|
|
1328
|
+
let r = !1, s, l = !1;
|
|
1329
|
+
const u = !1, m = n.schema;
|
|
1330
|
+
function g() {
|
|
1154
1331
|
return !1;
|
|
1155
1332
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1333
|
+
function c() {
|
|
1334
|
+
return u || !l;
|
|
1158
1335
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return !
|
|
1336
|
+
function f() {
|
|
1337
|
+
return !l;
|
|
1161
1338
|
}
|
|
1162
|
-
function
|
|
1163
|
-
var
|
|
1164
|
-
|
|
1165
|
-
const
|
|
1166
|
-
const
|
|
1167
|
-
return
|
|
1339
|
+
function d() {
|
|
1340
|
+
var U, G;
|
|
1341
|
+
l = !1;
|
|
1342
|
+
const i = n.schema, p = i.appearance && i.appearance.class || "", o = p.split(" "), a = i.contents || [], v = a.length ? a[0] : null, b = v && v.appearance ? v.appearance.class : "", w = b ? b.split(" ") : [], V = a.length ? a.reduce((W, S) => {
|
|
1343
|
+
const q = S && S.appearance ? S.appearance.class : "", H = q ? q.split(" ") : [];
|
|
1344
|
+
return W.push(...H), W;
|
|
1168
1345
|
}, []) : [];
|
|
1169
|
-
if (((
|
|
1170
|
-
|
|
1346
|
+
if (((G = (U = n.parent) == null ? void 0 : U.schema) == null ? void 0 : G.type) !== "component-ref") {
|
|
1347
|
+
r = !0, l = !0;
|
|
1171
1348
|
return;
|
|
1172
1349
|
}
|
|
1173
|
-
const
|
|
1350
|
+
const h = n.parent.parent, P = h && h.schema, C = P && P.appearance ? P.appearance.class : "", A = C ? C.split(" ") : [];
|
|
1174
1351
|
s = {
|
|
1175
|
-
componentClass:
|
|
1176
|
-
componentClassList:
|
|
1177
|
-
childContents:
|
|
1178
|
-
firstChildContent:
|
|
1179
|
-
firstChildClass:
|
|
1180
|
-
firstChildClassList:
|
|
1181
|
-
parent:
|
|
1182
|
-
parentClass:
|
|
1183
|
-
parentClassList:
|
|
1184
|
-
children:
|
|
1185
|
-
childrenClassList:
|
|
1352
|
+
componentClass: p,
|
|
1353
|
+
componentClassList: o,
|
|
1354
|
+
childContents: a,
|
|
1355
|
+
firstChildContent: v,
|
|
1356
|
+
firstChildClass: b,
|
|
1357
|
+
firstChildClassList: w,
|
|
1358
|
+
parent: P,
|
|
1359
|
+
parentClass: C,
|
|
1360
|
+
parentClassList: A,
|
|
1361
|
+
children: a,
|
|
1362
|
+
childrenClassList: V
|
|
1186
1363
|
};
|
|
1187
|
-
const { canAccept:
|
|
1188
|
-
|
|
1364
|
+
const { canAccept: O, fixed: T, hidePadding: D } = t.getRuleValue(o[0], s);
|
|
1365
|
+
r = D, l = T;
|
|
1366
|
+
}
|
|
1367
|
+
function y() {
|
|
1368
|
+
return r;
|
|
1189
1369
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1370
|
+
function j(i) {
|
|
1371
|
+
return new Le(i, e).getPropertyConfig(m);
|
|
1192
1372
|
}
|
|
1193
|
-
return { canAccepts:
|
|
1373
|
+
return { canAccepts: g, checkCanDeleteComponent: c, checkCanMoveComponent: f, resolveComponentContext: d, hideNestedPaddingInDesginerView: y, getPropsConfig: j };
|
|
1194
1374
|
}
|
|
1195
|
-
function
|
|
1196
|
-
const
|
|
1197
|
-
let
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
if (!
|
|
1375
|
+
function Ge(n, e) {
|
|
1376
|
+
const t = E(n.width), r = E(n.height);
|
|
1377
|
+
let s;
|
|
1378
|
+
I(e, (u) => {
|
|
1379
|
+
u && (t.value = u.clientWidth, s = new ResizeObserver((m) => {
|
|
1380
|
+
if (!m || m.length < 1)
|
|
1201
1381
|
return;
|
|
1202
|
-
const
|
|
1203
|
-
|
|
1204
|
-
}),
|
|
1382
|
+
const c = m[0].contentRect;
|
|
1383
|
+
c && (t.value = c.width);
|
|
1384
|
+
}), s.observe(u));
|
|
1205
1385
|
});
|
|
1206
|
-
function
|
|
1207
|
-
|
|
1386
|
+
function l() {
|
|
1387
|
+
s && s.disconnect();
|
|
1208
1388
|
}
|
|
1209
1389
|
return {
|
|
1210
|
-
destory:
|
|
1211
|
-
width:
|
|
1212
|
-
height:
|
|
1390
|
+
destory: l,
|
|
1391
|
+
width: t,
|
|
1392
|
+
height: r
|
|
1213
1393
|
};
|
|
1214
1394
|
}
|
|
1215
|
-
const
|
|
1395
|
+
const We = /* @__PURE__ */ Y({
|
|
1216
1396
|
name: "FVideoDesign",
|
|
1217
|
-
props:
|
|
1218
|
-
setup(
|
|
1219
|
-
var
|
|
1220
|
-
const
|
|
1221
|
-
width:
|
|
1222
|
-
height:
|
|
1223
|
-
destory:
|
|
1224
|
-
} =
|
|
1225
|
-
return
|
|
1226
|
-
|
|
1227
|
-
}),
|
|
1228
|
-
|
|
1229
|
-
}), e.expose(
|
|
1230
|
-
ref:
|
|
1397
|
+
props: L,
|
|
1398
|
+
setup(n, e) {
|
|
1399
|
+
var c;
|
|
1400
|
+
const t = E(), r = ee("design-item-context"), s = Ue(r.schema, (c = r.parent) == null ? void 0 : c.schema), l = Ee(t, r, s), {
|
|
1401
|
+
width: u,
|
|
1402
|
+
height: m,
|
|
1403
|
+
destory: g
|
|
1404
|
+
} = Ge(n, t);
|
|
1405
|
+
return te(() => {
|
|
1406
|
+
t.value.componentInstance = l;
|
|
1407
|
+
}), J(() => {
|
|
1408
|
+
g();
|
|
1409
|
+
}), e.expose(l.value), () => k("div", {
|
|
1410
|
+
ref: t,
|
|
1231
1411
|
class: "drag-container",
|
|
1232
|
-
"data-dragref": `${
|
|
1233
|
-
}, [
|
|
1234
|
-
src:
|
|
1235
|
-
autoplay:
|
|
1236
|
-
controls:
|
|
1237
|
-
loop:
|
|
1238
|
-
muted:
|
|
1239
|
-
width:
|
|
1240
|
-
height:
|
|
1241
|
-
}, [
|
|
1242
|
-
}
|
|
1243
|
-
}),
|
|
1244
|
-
install(
|
|
1245
|
-
|
|
1412
|
+
"data-dragref": `${r.schema.id}-container`
|
|
1413
|
+
}, [k("video", {
|
|
1414
|
+
src: n.src,
|
|
1415
|
+
autoplay: n.autoplay,
|
|
1416
|
+
controls: n.controls,
|
|
1417
|
+
loop: n.loop,
|
|
1418
|
+
muted: n.muted,
|
|
1419
|
+
width: u.value,
|
|
1420
|
+
height: m.value
|
|
1421
|
+
}, [Q("Your browser does not support the video tag.")])]);
|
|
1422
|
+
}
|
|
1423
|
+
}), Ye = {
|
|
1424
|
+
install(n) {
|
|
1425
|
+
n.component(N.name, N);
|
|
1246
1426
|
},
|
|
1247
|
-
register(
|
|
1248
|
-
|
|
1427
|
+
register(n, e, t, r) {
|
|
1428
|
+
n.video = N, e.video = z;
|
|
1249
1429
|
},
|
|
1250
|
-
registerDesigner(
|
|
1251
|
-
|
|
1430
|
+
registerDesigner(n, e, t) {
|
|
1431
|
+
n.video = We, e.video = z;
|
|
1252
1432
|
}
|
|
1253
1433
|
};
|
|
1254
1434
|
export {
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1435
|
+
N as FVideo,
|
|
1436
|
+
Ye as default,
|
|
1437
|
+
z as propsResolver,
|
|
1438
|
+
L as videoProps
|
|
1259
1439
|
};
|