@farris/ui-vue 1.3.0 → 1.3.1
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 +1 -1
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +472 -366
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +472 -480
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +225 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +615 -517
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +325 -333
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +578 -472
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +49 -49
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +832 -722
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +303 -981
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +8 -8
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4429 -4312
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3037 -3020
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2216 -2119
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +223 -231
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1691 -2187
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +143 -136
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +250 -258
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +1 -1
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2672 -3438
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +2965 -2970
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1650 -1602
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +453 -461
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +604 -507
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +402 -378
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +1658 -1666
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +5209 -5088
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4329 -4213
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +905 -1357
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +517 -420
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +588 -491
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1376 -1965
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +1 -1
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1073 -1905
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +809 -1237
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +198 -206
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1297 -1200
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +609 -507
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +3391 -3758
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +1 -1
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +544 -447
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +247 -255
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +146 -154
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +700 -675
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +956 -1786
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4963 -5617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +158 -161
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +436 -1124
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +92 -100
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +571 -1210
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +239 -247
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +445 -348
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2278 -3031
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +311 -319
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +215 -223
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +468 -371
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1271 -1174
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +469 -477
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3060 -3065
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2476 -2481
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +374 -382
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +248 -256
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +414 -1093
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -506
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +20216 -21844
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +8 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +8 -5
- package/types/data-grid/src/data-grid.component.d.ts +3 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +7 -9
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -2
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- 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 +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tree-grid/index.d.ts +3 -3
- package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { isPlainObject as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
const { properties: e, title: t, ignore:
|
|
9
|
-
return (!
|
|
1
|
+
var q = Object.defineProperty;
|
|
2
|
+
var R = (o, e, t) => e in o ? q(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var v = (o, e, t) => R(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as F, ref as M, onUnmounted as N, createVNode as T, createTextVNode as O, watch as z, inject as Y, onMounted as _ } from "vue";
|
|
5
|
+
import { isPlainObject as B, cloneDeep as U } from "lodash-es";
|
|
6
|
+
const j = {}, $ = {};
|
|
7
|
+
function E(o) {
|
|
8
|
+
const { properties: e, title: t, ignore: n } = o, a = n && Array.isArray(n), i = Object.keys(e).reduce((r, f) => ((!a || !n.find((m) => m == f)) && (r[f] = e[f].type === "object" && e[f].properties ? E(e[f]) : U(e[f].default)), r), {});
|
|
9
|
+
return t && (!a || !n.find((r) => r == "id")) && (i.id = `${t}-${Date.now()}`), i;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
return
|
|
11
|
+
function G(o, e = {}, t) {
|
|
12
|
+
const n = j[o];
|
|
13
|
+
if (n) {
|
|
14
|
+
let a = E(n);
|
|
15
|
+
const i = $[o];
|
|
16
|
+
return a = i ? i({ getSchemaByType: G }, a, e, t) : a, a;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
const t =
|
|
22
|
-
return Object.keys(
|
|
20
|
+
function J(o, e) {
|
|
21
|
+
const t = E(e);
|
|
22
|
+
return Object.keys(o).reduce((n, a) => (n[a] && B(n[a]) && B(o[a]) ? Object.assign(n[a], o[a]) : n[a] = o[a], n), t), t;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
return Object.keys(
|
|
26
|
-
if (e.has(
|
|
27
|
-
const
|
|
28
|
-
if (typeof
|
|
29
|
-
|
|
24
|
+
function Q(o, e) {
|
|
25
|
+
return Object.keys(o).filter((n) => o[n] != null).reduce((n, a) => {
|
|
26
|
+
if (e.has(a)) {
|
|
27
|
+
const i = e.get(a);
|
|
28
|
+
if (typeof i == "string")
|
|
29
|
+
n[i] = o[a];
|
|
30
30
|
else {
|
|
31
|
-
const
|
|
32
|
-
Object.assign(
|
|
31
|
+
const r = i(a, o[a], o);
|
|
32
|
+
Object.assign(n, r);
|
|
33
33
|
}
|
|
34
34
|
} else
|
|
35
|
-
|
|
36
|
-
return
|
|
35
|
+
n[a] = o[a];
|
|
36
|
+
return n;
|
|
37
37
|
}, {});
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const
|
|
41
|
-
return
|
|
39
|
+
function X(o, e, t = /* @__PURE__ */ new Map()) {
|
|
40
|
+
const n = J(o, e);
|
|
41
|
+
return Q(n, t);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
function e(
|
|
45
|
-
if (typeof
|
|
46
|
-
return
|
|
47
|
-
if (typeof
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
return Number(
|
|
51
|
-
if (
|
|
52
|
-
return Number(
|
|
53
|
-
if (
|
|
54
|
-
return Number(
|
|
43
|
+
function Z(o = {}) {
|
|
44
|
+
function e(s, c, l, p) {
|
|
45
|
+
if (typeof l == "number")
|
|
46
|
+
return p[s].length === l;
|
|
47
|
+
if (typeof l == "object") {
|
|
48
|
+
const h = Object.keys(l)[0], g = l[h];
|
|
49
|
+
if (h === "not")
|
|
50
|
+
return Number(p[s].length) !== Number(g);
|
|
51
|
+
if (h === "moreThan")
|
|
52
|
+
return Number(p[s].length) >= Number(g);
|
|
53
|
+
if (h === "lessThan")
|
|
54
|
+
return Number(p[s].length) <= Number(g);
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
58
|
-
function t(
|
|
59
|
-
return
|
|
58
|
+
function t(s, c, l, p) {
|
|
59
|
+
return p[s] && p[s].propertyValue && String(p[s].propertyValue.value) === String(l);
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const n = /* @__PURE__ */ new Map([
|
|
62
62
|
["length", e],
|
|
63
63
|
["getProperty", t]
|
|
64
64
|
]);
|
|
65
|
-
Object.keys(
|
|
66
|
-
function s
|
|
67
|
-
const
|
|
68
|
-
return typeof
|
|
69
|
-
if (
|
|
70
|
-
return { target:
|
|
71
|
-
const
|
|
72
|
-
return { target:
|
|
65
|
+
Object.keys(o).reduce((s, c) => (s.set(c, o[c]), s), n);
|
|
66
|
+
function a(s, c) {
|
|
67
|
+
const l = s;
|
|
68
|
+
return typeof c == "number" ? [{ target: l, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: l, operator: "getProperty", param: s, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
|
|
69
|
+
if (p === "length")
|
|
70
|
+
return { target: l, operator: "length", param: null, value: c[p] };
|
|
71
|
+
const h = p, g = c[p];
|
|
72
|
+
return { target: l, operator: "getProperty", param: h, value: g };
|
|
73
73
|
}) : [];
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return Object.keys(
|
|
77
|
-
const
|
|
78
|
-
return
|
|
75
|
+
function i(s) {
|
|
76
|
+
return Object.keys(s).reduce((l, p) => {
|
|
77
|
+
const h = a(p, s[p]);
|
|
78
|
+
return l.push(...h), l;
|
|
79
79
|
}, []);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
if (
|
|
83
|
-
const
|
|
84
|
-
return
|
|
81
|
+
function r(s, c) {
|
|
82
|
+
if (n.has(s.operator)) {
|
|
83
|
+
const l = n.get(s.operator);
|
|
84
|
+
return l && l(s.target, s.param, s.value, c) || !1;
|
|
85
85
|
}
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function f(s, c) {
|
|
89
|
+
return i(s).reduce((h, g) => h && r(g, c), !0);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
const
|
|
93
|
-
return
|
|
91
|
+
function m(s, c) {
|
|
92
|
+
const l = Object.keys(s), p = l.includes("allOf"), h = l.includes("anyOf"), g = p || h, d = (g ? s[g ? p ? "allOf" : "anyOf" : "allOf"] : [s]).map((V) => f(V, c));
|
|
93
|
+
return p ? !d.includes(!1) : d.includes(!0);
|
|
94
94
|
}
|
|
95
|
-
return { parseValueSchema:
|
|
95
|
+
return { parseValueSchema: m };
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const H = {
|
|
98
98
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
99
99
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
100
100
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -133,18 +133,18 @@ const ie = {
|
|
|
133
133
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
134
134
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
135
135
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
function
|
|
139
|
-
return
|
|
140
|
-
const
|
|
141
|
-
return Object.assign(
|
|
136
|
+
}, K = {}, I = {};
|
|
137
|
+
Z();
|
|
138
|
+
function x(o, e, t = /* @__PURE__ */ new Map(), n = (r, f, m) => f, a = {}, i = (r) => r) {
|
|
139
|
+
return j[e.title] = e, $[e.title] = n, K[e.title] = a, I[e.title] = i, (r = {}) => {
|
|
140
|
+
const f = X(r, e, t), m = Object.keys(o).reduce((s, c) => (s[c] = o[c].default, s), {});
|
|
141
|
+
return Object.assign(m, f);
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function ee(o, e) {
|
|
145
145
|
return { customClass: e.class, customStyle: e.style };
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const te = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-design.gitee.io/video.schema.json", oe = "video", ae = "A Farris Video Component", re = "object", ie = {
|
|
148
148
|
id: {
|
|
149
149
|
description: "The unique identifier for a Video",
|
|
150
150
|
type: "string"
|
|
@@ -172,24 +172,24 @@ const ue = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
172
172
|
type: "boolean",
|
|
173
173
|
default: !0
|
|
174
174
|
}
|
|
175
|
-
},
|
|
175
|
+
}, se = [
|
|
176
176
|
"id",
|
|
177
177
|
"type"
|
|
178
|
-
],
|
|
179
|
-
$schema:
|
|
180
|
-
$id:
|
|
181
|
-
title:
|
|
182
|
-
description:
|
|
183
|
-
type:
|
|
184
|
-
properties:
|
|
185
|
-
required:
|
|
186
|
-
},
|
|
187
|
-
["appearance",
|
|
178
|
+
], ce = {
|
|
179
|
+
$schema: te,
|
|
180
|
+
$id: ne,
|
|
181
|
+
title: oe,
|
|
182
|
+
description: ae,
|
|
183
|
+
type: re,
|
|
184
|
+
properties: ie,
|
|
185
|
+
required: se
|
|
186
|
+
}, le = /* @__PURE__ */ new Map([
|
|
187
|
+
["appearance", ee]
|
|
188
188
|
]);
|
|
189
|
-
function
|
|
189
|
+
function pe(o, e, t) {
|
|
190
190
|
return e;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
192
|
+
const ue = "verify-detail", de = "A Farris Component", fe = "object", me = {
|
|
193
193
|
basic: {
|
|
194
194
|
description: "Basic Infomation",
|
|
195
195
|
title: "基本信息",
|
|
@@ -211,12 +211,12 @@ const Pe = "verify-detail", Ce = "A Farris Component", we = "object", Me = {
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
},
|
|
215
|
-
title:
|
|
216
|
-
description:
|
|
217
|
-
type:
|
|
218
|
-
categories:
|
|
219
|
-
},
|
|
214
|
+
}, he = {
|
|
215
|
+
title: ue,
|
|
216
|
+
description: de,
|
|
217
|
+
type: fe,
|
|
218
|
+
categories: me
|
|
219
|
+
}, S = {
|
|
220
220
|
src: {
|
|
221
221
|
type: String,
|
|
222
222
|
required: !0,
|
|
@@ -253,960 +253,307 @@ const Pe = "verify-detail", Ce = "A Farris Component", we = "object", Me = {
|
|
|
253
253
|
type: [String, Number],
|
|
254
254
|
default: 168
|
|
255
255
|
}
|
|
256
|
-
},
|
|
257
|
-
function
|
|
258
|
-
function t(
|
|
259
|
-
|
|
256
|
+
}, A = x(S, ce, le, pe, he);
|
|
257
|
+
function ye(o, e) {
|
|
258
|
+
function t(u) {
|
|
259
|
+
u.stopPropagation(), e.emit("abort");
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
|
|
261
|
+
function n(u) {
|
|
262
|
+
u.stopPropagation(), e.emit("play");
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
|
|
264
|
+
function a(u) {
|
|
265
|
+
u.stopPropagation(), e.emit("pause");
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
267
|
+
function i(u) {
|
|
268
|
+
u.stopPropagation(), e.emit("ended");
|
|
269
269
|
}
|
|
270
|
-
function u
|
|
271
|
-
|
|
270
|
+
function r(u) {
|
|
271
|
+
u.stopPropagation(), e.emit("durationchange");
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
|
|
273
|
+
function f(u) {
|
|
274
|
+
u.stopPropagation(), e.emit("error");
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
|
|
276
|
+
function m(u) {
|
|
277
|
+
u.stopPropagation(), e.emit("loadeddata");
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
|
|
279
|
+
function s(u) {
|
|
280
|
+
u.stopPropagation(), e.emit("loadedmetadata");
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
282
|
+
function c(u) {
|
|
283
|
+
u.stopPropagation(), e.emit("loadstart");
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
|
|
285
|
+
function l(u) {
|
|
286
|
+
u.stopPropagation(), e.emit("playing");
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
|
|
288
|
+
function p(u) {
|
|
289
|
+
u.stopPropagation(), e.emit("progress");
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
|
|
291
|
+
function h(u) {
|
|
292
|
+
u.stopPropagation(), e.emit("timeupdate");
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
|
|
294
|
+
function g(u) {
|
|
295
|
+
u.stopPropagation(), e.emit("volumechange");
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
297
|
+
function b(u) {
|
|
298
|
+
u.stopPropagation(), e.emit("canplay");
|
|
299
299
|
}
|
|
300
300
|
return {
|
|
301
301
|
onAbort: t,
|
|
302
|
-
onPlay:
|
|
303
|
-
onPause:
|
|
304
|
-
onEnded:
|
|
305
|
-
onDurationchange:
|
|
306
|
-
onError:
|
|
307
|
-
onLoadeddata:
|
|
308
|
-
onLoadedmetadata:
|
|
309
|
-
onLoadstart:
|
|
310
|
-
onPlaying:
|
|
311
|
-
onProgress:
|
|
312
|
-
onTimeupdate:
|
|
313
|
-
onVolumechange:
|
|
314
|
-
onCanplay:
|
|
302
|
+
onPlay: n,
|
|
303
|
+
onPause: a,
|
|
304
|
+
onEnded: i,
|
|
305
|
+
onDurationchange: r,
|
|
306
|
+
onError: f,
|
|
307
|
+
onLoadeddata: m,
|
|
308
|
+
onLoadedmetadata: s,
|
|
309
|
+
onLoadstart: c,
|
|
310
|
+
onPlaying: l,
|
|
311
|
+
onProgress: p,
|
|
312
|
+
onTimeupdate: h,
|
|
313
|
+
onVolumechange: g,
|
|
314
|
+
onCanplay: b
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
const
|
|
317
|
+
const D = /* @__PURE__ */ F({
|
|
318
318
|
name: "FVideo",
|
|
319
|
-
props:
|
|
319
|
+
props: S,
|
|
320
320
|
emits: ["abort", "play", "pause", "ended", "durationchange", "canplay", "error", "loadeddata", "loadedmetadata", "loadstart", "playing", "progress", "timeupdate", "volumechange"],
|
|
321
|
-
setup(
|
|
322
|
-
const t =
|
|
323
|
-
onAbort:
|
|
324
|
-
onPlay:
|
|
325
|
-
onPause:
|
|
326
|
-
onEnded:
|
|
327
|
-
onDurationchange:
|
|
328
|
-
onError:
|
|
329
|
-
onLoadeddata:
|
|
330
|
-
onLoadedmetadata:
|
|
331
|
-
onLoadstart:
|
|
332
|
-
onPlaying:
|
|
333
|
-
onProgress:
|
|
334
|
-
onTimeupdate:
|
|
335
|
-
onVolumechange:
|
|
336
|
-
onCanplay:
|
|
337
|
-
} =
|
|
338
|
-
return
|
|
339
|
-
}), () =>
|
|
321
|
+
setup(o, e) {
|
|
322
|
+
const t = M(), {
|
|
323
|
+
onAbort: n,
|
|
324
|
+
onPlay: a,
|
|
325
|
+
onPause: i,
|
|
326
|
+
onEnded: r,
|
|
327
|
+
onDurationchange: f,
|
|
328
|
+
onError: m,
|
|
329
|
+
onLoadeddata: s,
|
|
330
|
+
onLoadedmetadata: c,
|
|
331
|
+
onLoadstart: l,
|
|
332
|
+
onPlaying: p,
|
|
333
|
+
onProgress: h,
|
|
334
|
+
onTimeupdate: g,
|
|
335
|
+
onVolumechange: b,
|
|
336
|
+
onCanplay: u
|
|
337
|
+
} = ye(o, e);
|
|
338
|
+
return N(() => {
|
|
339
|
+
}), () => T("video", {
|
|
340
340
|
ref: t,
|
|
341
|
-
src:
|
|
342
|
-
autoplay:
|
|
343
|
-
controls:
|
|
344
|
-
loop:
|
|
345
|
-
muted:
|
|
346
|
-
width:
|
|
347
|
-
height:
|
|
348
|
-
poster:
|
|
349
|
-
onAbort: (
|
|
350
|
-
onPlay: (
|
|
351
|
-
onPause: (
|
|
352
|
-
onEnded: (
|
|
353
|
-
onDurationchange: (
|
|
354
|
-
onError: (
|
|
355
|
-
onLoadeddata: (
|
|
356
|
-
onLoadedmetadata: (
|
|
357
|
-
onLoadstart: (
|
|
358
|
-
onPlaying: (
|
|
359
|
-
onProgress: (
|
|
360
|
-
onTimeupdate: (
|
|
361
|
-
onVolumechange: (
|
|
362
|
-
onCanplay: (
|
|
363
|
-
}, [
|
|
341
|
+
src: o.src,
|
|
342
|
+
autoplay: o.autoplay,
|
|
343
|
+
controls: o.controls,
|
|
344
|
+
loop: o.loop,
|
|
345
|
+
muted: o.muted,
|
|
346
|
+
width: o.width,
|
|
347
|
+
height: o.height,
|
|
348
|
+
poster: o.poster,
|
|
349
|
+
onAbort: (d) => n(d),
|
|
350
|
+
onPlay: (d) => a(d),
|
|
351
|
+
onPause: (d) => i(d),
|
|
352
|
+
onEnded: (d) => r(d),
|
|
353
|
+
onDurationchange: (d) => f(d),
|
|
354
|
+
onError: (d) => m(d),
|
|
355
|
+
onLoadeddata: (d) => s(d),
|
|
356
|
+
onLoadedmetadata: (d) => c(d),
|
|
357
|
+
onLoadstart: (d) => l(d),
|
|
358
|
+
onPlaying: (d) => p(d),
|
|
359
|
+
onProgress: (d) => h(d),
|
|
360
|
+
onTimeupdate: (d) => g(d),
|
|
361
|
+
onVolumechange: (d) => b(d),
|
|
362
|
+
onCanplay: (d) => u(d)
|
|
363
|
+
}, [O("Your browser does not support the video tag.")]);
|
|
364
364
|
}
|
|
365
365
|
});
|
|
366
|
-
function
|
|
367
|
-
var
|
|
368
|
-
function
|
|
366
|
+
function ge(o, e, t) {
|
|
367
|
+
var k;
|
|
368
|
+
function n() {
|
|
369
369
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
370
370
|
}
|
|
371
|
-
|
|
372
|
-
const
|
|
373
|
-
function
|
|
371
|
+
n();
|
|
372
|
+
const a = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", r = M();
|
|
373
|
+
function f() {
|
|
374
374
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function m() {
|
|
377
377
|
return !1;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function s() {
|
|
380
380
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function c() {
|
|
383
383
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
if (!
|
|
385
|
+
function l(y) {
|
|
386
|
+
if (!y || !y.value)
|
|
387
387
|
return null;
|
|
388
|
-
if (
|
|
389
|
-
return
|
|
390
|
-
const
|
|
391
|
-
return
|
|
388
|
+
if (y.value.schema && y.value.schema.type === "component")
|
|
389
|
+
return y.value;
|
|
390
|
+
const C = M(y == null ? void 0 : y.value.parent), P = l(C);
|
|
391
|
+
return P || null;
|
|
392
392
|
}
|
|
393
|
-
function y
|
|
394
|
-
const { componentInstance:
|
|
395
|
-
return !
|
|
393
|
+
function p(y = e) {
|
|
394
|
+
const { componentInstance: C, designerItemElementRef: P } = y;
|
|
395
|
+
return !C || !C.value ? null : C.value.canMove ? P : p(y.parent);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
return !!t && t.canAccepts(
|
|
397
|
+
function h(y) {
|
|
398
|
+
return !!t && t.canAccepts(y);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function g() {
|
|
401
401
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function b() {
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
|
|
405
|
+
function u(y, C) {
|
|
406
|
+
C && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(C);
|
|
407
407
|
}
|
|
408
|
-
function
|
|
409
|
-
const { componentType:
|
|
410
|
-
let
|
|
411
|
-
t && t.onResolveNewComponentSchema && (
|
|
412
|
-
const
|
|
413
|
-
return
|
|
408
|
+
function d(y, C) {
|
|
409
|
+
const { componentType: P } = y;
|
|
410
|
+
let w = G(P, y, C);
|
|
411
|
+
t && t.onResolveNewComponentSchema && (w = t.onResolveNewComponentSchema(y, w));
|
|
412
|
+
const W = P.toLowerCase().replace("-", "_");
|
|
413
|
+
return w && !w.id && w.type === P && (w.id = `${W}_${Math.random().toString().slice(2, 6)}`), w;
|
|
414
414
|
}
|
|
415
|
-
function
|
|
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;
|
|
415
|
+
function L(y) {
|
|
422
416
|
}
|
|
423
|
-
function
|
|
424
|
-
}
|
|
425
|
-
function w(...h) {
|
|
417
|
+
function V(...y) {
|
|
426
418
|
if (t && t.getPropsConfig)
|
|
427
|
-
return t.getPropsConfig(...
|
|
419
|
+
return t.getPropsConfig(...y);
|
|
428
420
|
}
|
|
429
|
-
return
|
|
430
|
-
canMove:
|
|
431
|
-
canSelectParent:
|
|
432
|
-
canDelete:
|
|
433
|
-
canNested: !
|
|
421
|
+
return r.value = {
|
|
422
|
+
canMove: f(),
|
|
423
|
+
canSelectParent: m(),
|
|
424
|
+
canDelete: s(),
|
|
425
|
+
canNested: !c(),
|
|
434
426
|
contents: e == null ? void 0 : e.schema.contents,
|
|
435
|
-
elementRef:
|
|
436
|
-
parent: (
|
|
427
|
+
elementRef: o,
|
|
428
|
+
parent: (k = e == null ? void 0 : e.parent) == null ? void 0 : k.componentInstance,
|
|
437
429
|
schema: e == null ? void 0 : e.schema,
|
|
438
|
-
styles:
|
|
439
|
-
designerClass:
|
|
440
|
-
canAccepts:
|
|
441
|
-
getBelongedComponentInstance:
|
|
442
|
-
getDraggableDesignItemElement:
|
|
443
|
-
getDraggingDisplayText:
|
|
444
|
-
getPropConfig:
|
|
445
|
-
getDragScopeElement:
|
|
446
|
-
onAcceptMovedChildElement:
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}, u;
|
|
430
|
+
styles: a,
|
|
431
|
+
designerClass: i,
|
|
432
|
+
canAccepts: h,
|
|
433
|
+
getBelongedComponentInstance: l,
|
|
434
|
+
getDraggableDesignItemElement: p,
|
|
435
|
+
getDraggingDisplayText: g,
|
|
436
|
+
getPropConfig: V,
|
|
437
|
+
getDragScopeElement: b,
|
|
438
|
+
onAcceptMovedChildElement: u,
|
|
439
|
+
onChildElementMovedOut: L,
|
|
440
|
+
addNewChildComponentSchema: d,
|
|
441
|
+
updateDragAndDropRules: n,
|
|
442
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
|
|
443
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1)
|
|
444
|
+
}, r;
|
|
454
445
|
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
"f-struct-form": {
|
|
482
|
-
description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
|
|
483
|
-
type: "object",
|
|
484
|
-
properties: {
|
|
485
|
-
contents: {
|
|
486
|
-
type: "object",
|
|
487
|
-
properties: {
|
|
488
|
-
"f-section-form": {
|
|
489
|
-
description: "The class of section which has wrapped a reponse-form component.",
|
|
490
|
-
type: "object",
|
|
491
|
-
properties: {
|
|
492
|
-
contents: {
|
|
493
|
-
type: "object",
|
|
494
|
-
properties: {
|
|
495
|
-
"f-form-layout": {
|
|
496
|
-
description: "The class of reponse form",
|
|
497
|
-
type: "object",
|
|
498
|
-
properties: {
|
|
499
|
-
rules: {
|
|
500
|
-
type: "object",
|
|
501
|
-
properties: {
|
|
502
|
-
canAccept: {
|
|
503
|
-
type: "boolean",
|
|
504
|
-
const: !0
|
|
505
|
-
},
|
|
506
|
-
fixed: {
|
|
507
|
-
type: "boolean",
|
|
508
|
-
const: !0
|
|
509
|
-
},
|
|
510
|
-
hidePadding: {
|
|
511
|
-
type: "boolean",
|
|
512
|
-
const: !1
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
},
|
|
520
|
-
rules: {
|
|
521
|
-
type: "object",
|
|
522
|
-
properties: {
|
|
523
|
-
canAccept: {
|
|
524
|
-
type: "boolean",
|
|
525
|
-
const: !1
|
|
526
|
-
},
|
|
527
|
-
fixed: {
|
|
528
|
-
type: "boolean",
|
|
529
|
-
const: !0
|
|
530
|
-
},
|
|
531
|
-
hidePadding: {
|
|
532
|
-
type: "boolean",
|
|
533
|
-
const: !0
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
rules: {
|
|
542
|
-
type: "object",
|
|
543
|
-
properties: {
|
|
544
|
-
canAccept: {
|
|
545
|
-
type: "boolean",
|
|
546
|
-
const: !1
|
|
547
|
-
},
|
|
548
|
-
fixed: {
|
|
549
|
-
type: "boolean",
|
|
550
|
-
const: !1
|
|
551
|
-
},
|
|
552
|
-
hidePadding: {
|
|
553
|
-
type: "boolean",
|
|
554
|
-
const: !0
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
"f-struct-wrapper": {
|
|
561
|
-
description: "",
|
|
562
|
-
type: "object",
|
|
563
|
-
properties: {
|
|
564
|
-
contents: {
|
|
565
|
-
type: "object",
|
|
566
|
-
properties: {
|
|
567
|
-
"f-section-tabs": {
|
|
568
|
-
description: "The class of section which has wrapped sub-grid tabs.",
|
|
569
|
-
type: "object",
|
|
570
|
-
properties: {
|
|
571
|
-
contents: {
|
|
572
|
-
type: "object",
|
|
573
|
-
properties: {
|
|
574
|
-
"f-tabs-in-card": {
|
|
575
|
-
description: "The class of tabs which contains sub-grid.",
|
|
576
|
-
type: "object",
|
|
577
|
-
properties: {
|
|
578
|
-
contents: {
|
|
579
|
-
type: "object",
|
|
580
|
-
properties: {
|
|
581
|
-
"f-struct-data-grid-in-card": {
|
|
582
|
-
description: "The class of sub-grid component",
|
|
583
|
-
type: "object",
|
|
584
|
-
properties: {
|
|
585
|
-
contents: {
|
|
586
|
-
type: "object",
|
|
587
|
-
properties: {
|
|
588
|
-
"f-grid-is-sub": {
|
|
589
|
-
description: "The class of sub-grid",
|
|
590
|
-
type: "object",
|
|
591
|
-
properties: {
|
|
592
|
-
rules: {
|
|
593
|
-
type: "object",
|
|
594
|
-
properties: {
|
|
595
|
-
canAccept: {
|
|
596
|
-
type: "boolean",
|
|
597
|
-
const: !0
|
|
598
|
-
},
|
|
599
|
-
fixed: {
|
|
600
|
-
type: "boolean",
|
|
601
|
-
const: !0
|
|
602
|
-
},
|
|
603
|
-
hidePadding: {
|
|
604
|
-
type: "boolean",
|
|
605
|
-
const: !1
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
rules: {
|
|
614
|
-
type: "object",
|
|
615
|
-
properties: {
|
|
616
|
-
canAccept: {
|
|
617
|
-
type: "boolean",
|
|
618
|
-
const: !1
|
|
619
|
-
},
|
|
620
|
-
fixed: {
|
|
621
|
-
type: "boolean",
|
|
622
|
-
const: !1
|
|
623
|
-
},
|
|
624
|
-
hidePadding: {
|
|
625
|
-
type: "boolean",
|
|
626
|
-
const: !0
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
},
|
|
634
|
-
rules: {
|
|
635
|
-
type: "object",
|
|
636
|
-
properties: {
|
|
637
|
-
canAccept: {
|
|
638
|
-
type: "boolean",
|
|
639
|
-
const: !1
|
|
640
|
-
},
|
|
641
|
-
fixed: {
|
|
642
|
-
type: "boolean",
|
|
643
|
-
const: !0
|
|
644
|
-
},
|
|
645
|
-
hidePadding: {
|
|
646
|
-
type: "boolean",
|
|
647
|
-
const: !0
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
},
|
|
655
|
-
rules: {
|
|
656
|
-
type: "object",
|
|
657
|
-
properties: {
|
|
658
|
-
canAccept: {
|
|
659
|
-
type: "boolean",
|
|
660
|
-
const: !1
|
|
661
|
-
},
|
|
662
|
-
fixed: {
|
|
663
|
-
type: "boolean",
|
|
664
|
-
const: !0
|
|
665
|
-
},
|
|
666
|
-
hidePadding: {
|
|
667
|
-
type: "boolean",
|
|
668
|
-
const: !0
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
},
|
|
674
|
-
"f-section-in-main": {
|
|
675
|
-
description: "The class of section which has wrapped a reponse-form component.",
|
|
676
|
-
type: "object",
|
|
677
|
-
properties: {
|
|
678
|
-
rules: {
|
|
679
|
-
type: "object",
|
|
680
|
-
properties: {
|
|
681
|
-
canAccept: {
|
|
682
|
-
type: "boolean",
|
|
683
|
-
const: !0
|
|
684
|
-
},
|
|
685
|
-
fixed: {
|
|
686
|
-
type: "boolean",
|
|
687
|
-
const: !0
|
|
688
|
-
},
|
|
689
|
-
hidePadding: {
|
|
690
|
-
type: "boolean",
|
|
691
|
-
const: !1
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
},
|
|
699
|
-
rules: {
|
|
700
|
-
type: "object",
|
|
701
|
-
properties: {
|
|
702
|
-
canAccept: {
|
|
703
|
-
type: "boolean",
|
|
704
|
-
const: !1
|
|
705
|
-
},
|
|
706
|
-
fixed: {
|
|
707
|
-
type: "boolean",
|
|
708
|
-
const: !1
|
|
709
|
-
},
|
|
710
|
-
hidePadding: {
|
|
711
|
-
type: "boolean",
|
|
712
|
-
const: !0
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
},
|
|
720
|
-
rules: {
|
|
721
|
-
type: "object",
|
|
722
|
-
properties: {
|
|
723
|
-
canAccept: {
|
|
724
|
-
type: "boolean",
|
|
725
|
-
const: !0
|
|
726
|
-
},
|
|
727
|
-
fixed: {
|
|
728
|
-
type: "boolean",
|
|
729
|
-
const: !0
|
|
730
|
-
},
|
|
731
|
-
hidePadding: {
|
|
732
|
-
type: "object",
|
|
733
|
-
const: {
|
|
734
|
-
allOf: [
|
|
735
|
-
{
|
|
736
|
-
sibling: 0,
|
|
737
|
-
parent: {
|
|
738
|
-
"f-page-main": !0
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
]
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
},
|
|
748
|
-
"f-struct-data-grid": {
|
|
749
|
-
description: "",
|
|
750
|
-
type: "object",
|
|
751
|
-
properties: {
|
|
752
|
-
rules: {
|
|
753
|
-
type: "object",
|
|
754
|
-
properties: {
|
|
755
|
-
canAccept: {
|
|
756
|
-
type: "object",
|
|
757
|
-
const: !0
|
|
758
|
-
},
|
|
759
|
-
fixed: {
|
|
760
|
-
type: "boolean",
|
|
761
|
-
const: !0
|
|
762
|
-
},
|
|
763
|
-
hidePadding: {
|
|
764
|
-
type: "boolean",
|
|
765
|
-
const: !0
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
},
|
|
771
|
-
"f-page-main-content": {
|
|
772
|
-
description: "",
|
|
773
|
-
type: "object",
|
|
774
|
-
properties: {
|
|
775
|
-
contents: {
|
|
776
|
-
type: "object",
|
|
777
|
-
properties: {
|
|
778
|
-
"f-page-content-nav": {
|
|
779
|
-
description: "",
|
|
780
|
-
type: "object",
|
|
781
|
-
properties: {
|
|
782
|
-
contents: {
|
|
783
|
-
type: "object",
|
|
784
|
-
properties: {
|
|
785
|
-
"f-struct-data-grid-in-nav": {
|
|
786
|
-
description: "",
|
|
787
|
-
type: "object",
|
|
788
|
-
properties: {
|
|
789
|
-
contents: {
|
|
790
|
-
type: "object",
|
|
791
|
-
properties: {
|
|
792
|
-
"f-page-content-nav-extend": {
|
|
793
|
-
description: "",
|
|
794
|
-
type: "object"
|
|
795
|
-
},
|
|
796
|
-
"f-section-in-nav": {
|
|
797
|
-
description: "",
|
|
798
|
-
type: "object",
|
|
799
|
-
properties: {
|
|
800
|
-
rules: {
|
|
801
|
-
type: "object",
|
|
802
|
-
properties: {
|
|
803
|
-
canAccept: {
|
|
804
|
-
type: "boolean",
|
|
805
|
-
const: !1
|
|
806
|
-
},
|
|
807
|
-
fixed: {
|
|
808
|
-
type: "boolean",
|
|
809
|
-
const: !0
|
|
810
|
-
},
|
|
811
|
-
hidePadding: {
|
|
812
|
-
type: "boolean",
|
|
813
|
-
const: !1
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
},
|
|
821
|
-
rules: {
|
|
822
|
-
type: "object",
|
|
823
|
-
properties: {
|
|
824
|
-
canAccept: {
|
|
825
|
-
type: "boolean",
|
|
826
|
-
const: !0
|
|
827
|
-
},
|
|
828
|
-
fixed: {
|
|
829
|
-
type: "boolean",
|
|
830
|
-
const: !1
|
|
831
|
-
},
|
|
832
|
-
hidePadding: {
|
|
833
|
-
type: "boolean",
|
|
834
|
-
const: !0
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
},
|
|
844
|
-
"f-page-content-main": {
|
|
845
|
-
description: "",
|
|
846
|
-
type: "object",
|
|
847
|
-
properties: {}
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
},
|
|
853
|
-
"f-page-content": {
|
|
854
|
-
description: "",
|
|
855
|
-
type: "object",
|
|
856
|
-
properties: {
|
|
857
|
-
contents: {
|
|
858
|
-
type: "object",
|
|
859
|
-
properties: {
|
|
860
|
-
"f-page-content-nav": {
|
|
861
|
-
description: "",
|
|
862
|
-
type: "object",
|
|
863
|
-
properties: {
|
|
864
|
-
contents: {
|
|
865
|
-
type: "object",
|
|
866
|
-
properties: {
|
|
867
|
-
"f-list-nav": {
|
|
868
|
-
description: "",
|
|
869
|
-
type: "object"
|
|
870
|
-
},
|
|
871
|
-
"f-list-nav-left": {
|
|
872
|
-
description: "",
|
|
873
|
-
type: "object"
|
|
874
|
-
},
|
|
875
|
-
"f-struct-data-grid-in-nav": {
|
|
876
|
-
description: "",
|
|
877
|
-
type: "object",
|
|
878
|
-
properties: {
|
|
879
|
-
contents: {
|
|
880
|
-
type: "object",
|
|
881
|
-
properties: {
|
|
882
|
-
"f-section-form": {
|
|
883
|
-
description: "",
|
|
884
|
-
type: "object",
|
|
885
|
-
properties: {
|
|
886
|
-
rules: {
|
|
887
|
-
type: "object",
|
|
888
|
-
properties: {
|
|
889
|
-
canAccept: {
|
|
890
|
-
type: "boolean",
|
|
891
|
-
const: !1
|
|
892
|
-
},
|
|
893
|
-
fixed: {
|
|
894
|
-
type: "boolean",
|
|
895
|
-
const: !0
|
|
896
|
-
},
|
|
897
|
-
hidePadding: {
|
|
898
|
-
type: "boolean",
|
|
899
|
-
const: !0
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
},
|
|
905
|
-
"f-section-grid": {
|
|
906
|
-
description: "",
|
|
907
|
-
type: "object",
|
|
908
|
-
properties: {
|
|
909
|
-
rules: {
|
|
910
|
-
type: "object",
|
|
911
|
-
properties: {
|
|
912
|
-
canAccept: {
|
|
913
|
-
type: "boolean",
|
|
914
|
-
const: !1
|
|
915
|
-
},
|
|
916
|
-
fixed: {
|
|
917
|
-
type: "boolean",
|
|
918
|
-
const: !0
|
|
919
|
-
},
|
|
920
|
-
hidePadding: {
|
|
921
|
-
type: "boolean",
|
|
922
|
-
const: !0
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
rules: {
|
|
931
|
-
type: "object",
|
|
932
|
-
properties: {
|
|
933
|
-
canAccept: {
|
|
934
|
-
type: "boolean",
|
|
935
|
-
const: !1
|
|
936
|
-
},
|
|
937
|
-
fixed: {
|
|
938
|
-
type: "boolean",
|
|
939
|
-
const: !0
|
|
940
|
-
},
|
|
941
|
-
hidePadding: {
|
|
942
|
-
type: "boolean",
|
|
943
|
-
const: !0
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
},
|
|
952
|
-
rules: {
|
|
953
|
-
type: "object",
|
|
954
|
-
properties: {
|
|
955
|
-
canAccept: {
|
|
956
|
-
type: "boolean",
|
|
957
|
-
const: !1
|
|
958
|
-
},
|
|
959
|
-
fixed: {
|
|
960
|
-
type: "boolean",
|
|
961
|
-
const: !0
|
|
962
|
-
},
|
|
963
|
-
hidePadding: {
|
|
964
|
-
type: "boolean",
|
|
965
|
-
const: !0
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
},
|
|
970
|
-
"f-page-content-main": {
|
|
971
|
-
description: "",
|
|
972
|
-
type: "object",
|
|
973
|
-
properties: {
|
|
974
|
-
rules: {
|
|
975
|
-
type: "object",
|
|
976
|
-
properties: {
|
|
977
|
-
canAccept: {
|
|
978
|
-
type: "boolean",
|
|
979
|
-
const: !1
|
|
980
|
-
},
|
|
981
|
-
fixed: {
|
|
982
|
-
type: "boolean",
|
|
983
|
-
const: !1
|
|
984
|
-
},
|
|
985
|
-
hidePadding: {
|
|
986
|
-
type: "boolean",
|
|
987
|
-
const: !0
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
},
|
|
995
|
-
rules: {
|
|
996
|
-
type: "object",
|
|
997
|
-
properties: {
|
|
998
|
-
canAccept: {
|
|
999
|
-
type: "boolean",
|
|
1000
|
-
const: !1
|
|
1001
|
-
},
|
|
1002
|
-
fixed: {
|
|
1003
|
-
type: "boolean",
|
|
1004
|
-
const: !0
|
|
1005
|
-
},
|
|
1006
|
-
hidePadding: {
|
|
1007
|
-
type: "boolean",
|
|
1008
|
-
const: !0
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
|
-
rules: {
|
|
1017
|
-
type: "object",
|
|
1018
|
-
properties: {
|
|
1019
|
-
canAccept: {
|
|
1020
|
-
type: "object",
|
|
1021
|
-
const: {
|
|
1022
|
-
anyOf: [
|
|
1023
|
-
{
|
|
1024
|
-
children: 0
|
|
1025
|
-
},
|
|
1026
|
-
{
|
|
1027
|
-
children: {
|
|
1028
|
-
length: {
|
|
1029
|
-
not: 1
|
|
1030
|
-
},
|
|
1031
|
-
"f-struct-like-card": !0
|
|
1032
|
-
}
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
children: {
|
|
1036
|
-
"scroll-spy": !1,
|
|
1037
|
-
"f-page-content": !1,
|
|
1038
|
-
"f-struct-like-card": !1
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
]
|
|
1042
|
-
}
|
|
1043
|
-
},
|
|
1044
|
-
fixed: {
|
|
1045
|
-
type: "boolean",
|
|
1046
|
-
const: !0
|
|
1047
|
-
},
|
|
1048
|
-
hidePadding: {
|
|
1049
|
-
type: "boolean",
|
|
1050
|
-
const: !0
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
"f-page-footer": {
|
|
1057
|
-
description: "The class of page footer designed by farris.",
|
|
1058
|
-
type: "string"
|
|
446
|
+
class ve {
|
|
447
|
+
getTemplateRule(e, t) {
|
|
448
|
+
const n = t == null ? void 0 : t.formSchemaUtils, a = n == null ? void 0 : n.getFormTemplateRule(), i = { canAccept: !0, canDelete: !0, canMove: !0 };
|
|
449
|
+
if (!a)
|
|
450
|
+
return i;
|
|
451
|
+
const r = this.getComponentContext(e);
|
|
452
|
+
return r.componentClassList.forEach((m) => {
|
|
453
|
+
if (!m || !a[m])
|
|
454
|
+
return;
|
|
455
|
+
const { canMove: s, canDelete: c, canAccept: l } = a[m];
|
|
456
|
+
i.canMove = i.canMove && this.resolveRuleValue(s, r), i.canDelete = i.canDelete && this.resolveRuleValue(c, r), i.canAccept = i.canAccept && this.resolveRuleValue(l, r);
|
|
457
|
+
}), i;
|
|
458
|
+
}
|
|
459
|
+
resolveRuleValue(e, t) {
|
|
460
|
+
return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
|
|
461
|
+
}
|
|
462
|
+
parseRuleValueSchema(e, t) {
|
|
463
|
+
const n = e.invalidContext || [];
|
|
464
|
+
let a = !0;
|
|
465
|
+
for (const i of n) {
|
|
466
|
+
if (i.firstLevelChild) {
|
|
467
|
+
if (i.firstLevelChild.class) {
|
|
468
|
+
const r = t.firstLevelChildClassList;
|
|
469
|
+
if (r && !r.includes(i.firstLevelChild.class)) {
|
|
470
|
+
a = !1;
|
|
471
|
+
continue;
|
|
1059
472
|
}
|
|
1060
473
|
}
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
type: "boolean",
|
|
1067
|
-
const: !1
|
|
1068
|
-
},
|
|
1069
|
-
fixed: {
|
|
1070
|
-
type: "boolean",
|
|
1071
|
-
const: !0
|
|
1072
|
-
},
|
|
1073
|
-
hidePadding: {
|
|
1074
|
-
type: "boolean",
|
|
1075
|
-
const: !0
|
|
474
|
+
if (i.firstLevelChild.type) {
|
|
475
|
+
const r = t.firstLevelChildSchema;
|
|
476
|
+
if (r && r.type !== i.firstLevelChild.type) {
|
|
477
|
+
a = !1;
|
|
478
|
+
continue;
|
|
1076
479
|
}
|
|
1077
480
|
}
|
|
1078
481
|
}
|
|
482
|
+
if (i.secondLevelChild) {
|
|
483
|
+
if (i.secondLevelChild.class) {
|
|
484
|
+
const r = t.secondLevelChildClassList;
|
|
485
|
+
if (r && !r.includes(i.secondLevelChild.class)) {
|
|
486
|
+
a = !1;
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
if (i.secondLevelChild.type) {
|
|
491
|
+
const r = t.secondLevelChildSchema;
|
|
492
|
+
if (r && r.type !== i.secondLevelChild.type) {
|
|
493
|
+
a = !1;
|
|
494
|
+
continue;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
if (i.parent) {
|
|
499
|
+
if (i.parent.class) {
|
|
500
|
+
const r = t.parentClassList;
|
|
501
|
+
if (r && !r.includes(i.parent.class)) {
|
|
502
|
+
a = !1;
|
|
503
|
+
continue;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
if (i.parent.type) {
|
|
507
|
+
const r = t.parentSchema;
|
|
508
|
+
if (r && r.type !== i.parent.type) {
|
|
509
|
+
a = !1;
|
|
510
|
+
continue;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
a = !0;
|
|
515
|
+
break;
|
|
1079
516
|
}
|
|
1080
|
-
|
|
1081
|
-
"f-page-is-managelist": {
|
|
1082
|
-
description: "The root class of mangement list page.",
|
|
1083
|
-
type: "string"
|
|
1084
|
-
},
|
|
1085
|
-
"f-page-card": {
|
|
1086
|
-
description: "",
|
|
1087
|
-
type: "object"
|
|
1088
|
-
},
|
|
1089
|
-
"f-page-is-mainsubcard": {
|
|
1090
|
-
description: "",
|
|
1091
|
-
type: "object"
|
|
1092
|
-
}
|
|
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);
|
|
1114
|
-
}
|
|
1115
|
-
return !1;
|
|
1116
|
-
}
|
|
1117
|
-
function e(i, p, o, a) {
|
|
1118
|
-
return typeof o == "boolean" ? a.childrenClassList.includes(p) === !!o : !1;
|
|
1119
|
-
}
|
|
1120
|
-
function t(i, p, o, a) {
|
|
1121
|
-
return typeof o == "boolean" ? a.parentClassList.includes(p) === !!o : !1;
|
|
1122
|
-
}
|
|
1123
|
-
function r(i, p, o, a) {
|
|
1124
|
-
return typeof o == "boolean" ? a.parentClassList.includes(p) === !!o : !1;
|
|
1125
|
-
}
|
|
1126
|
-
const s = /* @__PURE__ */ new Map([
|
|
1127
|
-
["length", n],
|
|
1128
|
-
["hasChildren", e],
|
|
1129
|
-
["hasSibling", r],
|
|
1130
|
-
["hasParent", t]
|
|
1131
|
-
]);
|
|
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 };
|
|
1139
|
-
}) : [];
|
|
1140
|
-
}
|
|
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;
|
|
1145
|
-
}
|
|
1146
|
-
return !1;
|
|
1147
|
-
}
|
|
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);
|
|
517
|
+
return !a;
|
|
1153
518
|
}
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
519
|
+
getComponentContext(e) {
|
|
520
|
+
var b, u, d, L;
|
|
521
|
+
const t = e.schema, n = t.appearance && t.appearance.class || "", a = n.split(" ") || [], i = t.contents || [], r = i.length ? i[0] : null, f = r && r.appearance ? r.appearance.class : "", m = f ? f.split(" ") : [], s = (b = r == null ? void 0 : r.contents) != null && b.length ? r == null ? void 0 : r.contents[0] : null, c = s && s.appearance ? s.appearance.class : "", l = c ? c.split(" ") : [], p = t.type === "component" ? (d = (u = e.parent) == null ? void 0 : u.parent) == null ? void 0 : d.schema : (L = e.parent) == null ? void 0 : L.schema, h = p && p.appearance && p.appearance.class || "", g = h ? h.split(" ") : [];
|
|
522
|
+
return {
|
|
523
|
+
componentClass: n,
|
|
524
|
+
componentClassList: a,
|
|
525
|
+
childContents: i,
|
|
526
|
+
firstLevelChildSchema: r,
|
|
527
|
+
firstLevelChildClass: f,
|
|
528
|
+
firstLevelChildClassList: m,
|
|
529
|
+
secondLevelChildSchema: s,
|
|
530
|
+
secondLevelChildClass: c,
|
|
531
|
+
secondLevelChildClassList: l,
|
|
532
|
+
parentSchema: p,
|
|
533
|
+
parentClass: h,
|
|
534
|
+
parentClassList: g
|
|
1169
535
|
};
|
|
1170
536
|
}
|
|
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)
|
|
1176
|
-
);
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
function y() {
|
|
1180
|
-
const { properties: i } = ke;
|
|
1181
|
-
Object.keys(i).forEach((p) => {
|
|
1182
|
-
d(p, i[p], B);
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
function j(i, p) {
|
|
1186
|
-
const o = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1187
|
-
return B.has(i) ? B.get(i)(p) : o;
|
|
1188
|
-
}
|
|
1189
|
-
return y(), { getRuleValue: j };
|
|
1190
537
|
}
|
|
1191
|
-
class
|
|
538
|
+
class be {
|
|
1192
539
|
constructor(e, t) {
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
540
|
+
v(this, "componentId");
|
|
541
|
+
v(this, "viewModelId");
|
|
542
|
+
v(this, "eventsEditorUtils");
|
|
543
|
+
v(this, "formSchemaUtils");
|
|
544
|
+
v(this, "formMetadataConverter");
|
|
545
|
+
v(this, "designViewModelUtils");
|
|
546
|
+
v(this, "designViewModelField");
|
|
547
|
+
v(this, "controlCreatorUtils");
|
|
548
|
+
v(this, "designerHostService");
|
|
549
|
+
v(this, "schemaService", null);
|
|
550
|
+
v(this, "metadataService", null);
|
|
551
|
+
v(this, "propertyConfig", {
|
|
1205
552
|
type: "object",
|
|
1206
553
|
categories: {}
|
|
1207
554
|
});
|
|
1208
|
-
var
|
|
1209
|
-
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((
|
|
555
|
+
var n;
|
|
556
|
+
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((n = this.formSchemaUtils) == null ? void 0 : n.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
1210
557
|
}
|
|
1211
558
|
getTableInfo() {
|
|
1212
559
|
var e;
|
|
@@ -1216,8 +563,8 @@ class $e {
|
|
|
1216
563
|
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
1217
564
|
if (t) {
|
|
1218
565
|
if (!this.designViewModelField) {
|
|
1219
|
-
const
|
|
1220
|
-
this.designViewModelField =
|
|
566
|
+
const n = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
567
|
+
this.designViewModelField = n.fields.find((a) => a.id === t);
|
|
1221
568
|
}
|
|
1222
569
|
e.updateOn = this.designViewModelField.updateOn;
|
|
1223
570
|
}
|
|
@@ -1243,7 +590,7 @@ class $e {
|
|
|
1243
590
|
type: "combo-list",
|
|
1244
591
|
textField: "name",
|
|
1245
592
|
valueField: "value",
|
|
1246
|
-
data: [{ value: e.type, name:
|
|
593
|
+
data: [{ value: e.type, name: H[e.type].name }]
|
|
1247
594
|
}
|
|
1248
595
|
}
|
|
1249
596
|
}
|
|
@@ -1276,14 +623,14 @@ class $e {
|
|
|
1276
623
|
* @returns
|
|
1277
624
|
*/
|
|
1278
625
|
updateElementByParentContainer(e, t) {
|
|
1279
|
-
const
|
|
1280
|
-
if (!
|
|
626
|
+
const n = t && t.parent && t.parent.schema;
|
|
627
|
+
if (!n)
|
|
1281
628
|
return;
|
|
1282
|
-
const
|
|
1283
|
-
|
|
629
|
+
const a = n.contents.findIndex((r) => r.id === e), i = U(n.contents[a]);
|
|
630
|
+
n.contents.splice(a, 1), n.contents.splice(a, 0, i);
|
|
1284
631
|
}
|
|
1285
632
|
}
|
|
1286
|
-
class
|
|
633
|
+
class Ce extends be {
|
|
1287
634
|
constructor(e, t) {
|
|
1288
635
|
super(e, t);
|
|
1289
636
|
}
|
|
@@ -1301,139 +648,113 @@ class Le extends $e {
|
|
|
1301
648
|
name: "视图初始化后事件"
|
|
1302
649
|
}
|
|
1303
650
|
];
|
|
1304
|
-
var
|
|
1305
|
-
const
|
|
1306
|
-
|
|
651
|
+
var n = this;
|
|
652
|
+
const a = n.eventsEditorUtils.formProperties(e, n.viewModelId, t), i = {};
|
|
653
|
+
i[n.viewModelId] = {
|
|
1307
654
|
type: "events-editor",
|
|
1308
655
|
editor: {
|
|
1309
|
-
initialData:
|
|
656
|
+
initialData: a
|
|
1310
657
|
}
|
|
1311
658
|
}, this.propertyConfig.categories.eventsEditor = {
|
|
1312
659
|
title: "事件",
|
|
1313
660
|
hideTitle: !0,
|
|
1314
|
-
properties:
|
|
661
|
+
properties: i,
|
|
1315
662
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
1316
663
|
refreshPanelAfterChanged: !0,
|
|
1317
664
|
tabId: "commands",
|
|
1318
665
|
tabName: "交互",
|
|
1319
|
-
setPropertyRelates(
|
|
1320
|
-
const
|
|
1321
|
-
delete e[
|
|
666
|
+
setPropertyRelates(r, f) {
|
|
667
|
+
const m = r.propertyValue;
|
|
668
|
+
delete e[n.viewModelId], m && (m.setPropertyRelates = this.setPropertyRelates, n.eventsEditorUtils.saveRelatedParameters(e, n.viewModelId, m.events, m));
|
|
1322
669
|
}
|
|
1323
670
|
};
|
|
1324
671
|
}
|
|
1325
672
|
}
|
|
1326
|
-
function
|
|
1327
|
-
const t =
|
|
1328
|
-
|
|
1329
|
-
const u = !1, m = n.schema;
|
|
1330
|
-
function g() {
|
|
673
|
+
function Pe(o, e) {
|
|
674
|
+
const t = new ve(), { canMove: n, canDelete: a } = t.getTemplateRule(o, e);
|
|
675
|
+
function i() {
|
|
1331
676
|
return !1;
|
|
1332
677
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
678
|
+
function r() {
|
|
679
|
+
return a;
|
|
1335
680
|
}
|
|
1336
681
|
function f() {
|
|
1337
|
-
return
|
|
682
|
+
return n;
|
|
1338
683
|
}
|
|
1339
|
-
function
|
|
1340
|
-
|
|
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;
|
|
1345
|
-
}, []) : [];
|
|
1346
|
-
if (((G = (U = n.parent) == null ? void 0 : U.schema) == null ? void 0 : G.type) !== "component-ref") {
|
|
1347
|
-
r = !0, l = !0;
|
|
1348
|
-
return;
|
|
1349
|
-
}
|
|
1350
|
-
const h = n.parent.parent, P = h && h.schema, C = P && P.appearance ? P.appearance.class : "", A = C ? C.split(" ") : [];
|
|
1351
|
-
s = {
|
|
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
|
|
1363
|
-
};
|
|
1364
|
-
const { canAccept: O, fixed: T, hidePadding: D } = t.getRuleValue(o[0], s);
|
|
1365
|
-
r = D, l = T;
|
|
684
|
+
function m() {
|
|
685
|
+
return !1;
|
|
1366
686
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return
|
|
687
|
+
function s() {
|
|
688
|
+
return " display: inherit;flex-direction: inherit;margin-bottom:10px";
|
|
1369
689
|
}
|
|
1370
|
-
function
|
|
1371
|
-
|
|
690
|
+
function c(l) {
|
|
691
|
+
const p = new Ce(l, e), h = o.schema;
|
|
692
|
+
return p.getPropertyConfig(h);
|
|
1372
693
|
}
|
|
1373
|
-
return { canAccepts:
|
|
694
|
+
return { canAccepts: i, checkCanDeleteComponent: r, checkCanMoveComponent: f, hideNestedPaddingInDesginerView: m, getStyles: s, getPropsConfig: c };
|
|
1374
695
|
}
|
|
1375
|
-
function
|
|
1376
|
-
const t =
|
|
1377
|
-
let
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
if (!
|
|
696
|
+
function Me(o, e) {
|
|
697
|
+
const t = M(o.width), n = M(o.height);
|
|
698
|
+
let a;
|
|
699
|
+
z(e, (r) => {
|
|
700
|
+
r && (t.value = r.clientWidth, a = new ResizeObserver((f) => {
|
|
701
|
+
if (!f || f.length < 1)
|
|
1381
702
|
return;
|
|
1382
|
-
const
|
|
1383
|
-
|
|
1384
|
-
}),
|
|
703
|
+
const s = f[0].contentRect;
|
|
704
|
+
s && (t.value = s.width);
|
|
705
|
+
}), a.observe(r));
|
|
1385
706
|
});
|
|
1386
|
-
function
|
|
1387
|
-
|
|
707
|
+
function i() {
|
|
708
|
+
a && a.disconnect();
|
|
1388
709
|
}
|
|
1389
710
|
return {
|
|
1390
|
-
destory:
|
|
711
|
+
destory: i,
|
|
1391
712
|
width: t,
|
|
1392
|
-
height:
|
|
713
|
+
height: n
|
|
1393
714
|
};
|
|
1394
715
|
}
|
|
1395
|
-
const
|
|
716
|
+
const we = /* @__PURE__ */ F({
|
|
1396
717
|
name: "FVideoDesign",
|
|
1397
|
-
props:
|
|
1398
|
-
setup(
|
|
1399
|
-
var
|
|
1400
|
-
const t =
|
|
1401
|
-
width:
|
|
1402
|
-
height:
|
|
1403
|
-
destory:
|
|
1404
|
-
} =
|
|
1405
|
-
return
|
|
1406
|
-
t.value.componentInstance =
|
|
1407
|
-
}),
|
|
1408
|
-
|
|
1409
|
-
}), e.expose(
|
|
718
|
+
props: S,
|
|
719
|
+
setup(o, e) {
|
|
720
|
+
var s;
|
|
721
|
+
const t = M(), n = Y("design-item-context"), a = Pe(n.schema, (s = n.parent) == null ? void 0 : s.schema), i = ge(t, n, a), {
|
|
722
|
+
width: r,
|
|
723
|
+
height: f,
|
|
724
|
+
destory: m
|
|
725
|
+
} = Me(o, t);
|
|
726
|
+
return _(() => {
|
|
727
|
+
t.value.componentInstance = i;
|
|
728
|
+
}), N(() => {
|
|
729
|
+
m();
|
|
730
|
+
}), e.expose(i.value), () => T("div", {
|
|
1410
731
|
ref: t,
|
|
1411
732
|
class: "drag-container",
|
|
1412
|
-
"data-dragref": `${
|
|
1413
|
-
}, [
|
|
1414
|
-
src:
|
|
1415
|
-
autoplay:
|
|
1416
|
-
controls:
|
|
1417
|
-
loop:
|
|
1418
|
-
muted:
|
|
1419
|
-
width:
|
|
1420
|
-
height:
|
|
1421
|
-
}, [
|
|
1422
|
-
}
|
|
1423
|
-
}),
|
|
1424
|
-
install(
|
|
1425
|
-
|
|
733
|
+
"data-dragref": `${n.schema.id}-container`
|
|
734
|
+
}, [T("video", {
|
|
735
|
+
src: o.src,
|
|
736
|
+
autoplay: o.autoplay,
|
|
737
|
+
controls: o.controls,
|
|
738
|
+
loop: o.loop,
|
|
739
|
+
muted: o.muted,
|
|
740
|
+
width: r.value,
|
|
741
|
+
height: f.value
|
|
742
|
+
}, [O("Your browser does not support the video tag.")])]);
|
|
743
|
+
}
|
|
744
|
+
}), Te = {
|
|
745
|
+
install(o) {
|
|
746
|
+
o.component(D.name, D);
|
|
1426
747
|
},
|
|
1427
|
-
register(
|
|
1428
|
-
|
|
748
|
+
register(o, e, t, n) {
|
|
749
|
+
o.video = D, e.video = A;
|
|
1429
750
|
},
|
|
1430
|
-
registerDesigner(
|
|
1431
|
-
|
|
751
|
+
registerDesigner(o, e, t) {
|
|
752
|
+
o.video = we, e.video = A;
|
|
1432
753
|
}
|
|
1433
754
|
};
|
|
1434
755
|
export {
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
756
|
+
D as FVideo,
|
|
757
|
+
Te as default,
|
|
758
|
+
A as propsResolver,
|
|
759
|
+
S as videoProps
|
|
1439
760
|
};
|