@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,492 +1,532 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var le = Object.defineProperty;
|
|
2
|
+
var ce = (n, e, t) => e in n ? le(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var M = (n, e, t) => ce(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as K, ref as L, watch as ue, computed as P, createVNode as T, createTextVNode as H, nextTick as pe, inject as fe, onMounted as de } from "vue";
|
|
5
|
+
import { isPlainObject as X, cloneDeep as ee } from "lodash-es";
|
|
6
|
+
import { DgControl as V } from "../designer-canvas/index.esm.js";
|
|
7
|
+
var _ = function(n, e) {
|
|
8
|
+
return _ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
9
|
+
t.__proto__ = r;
|
|
10
|
+
} || function(t, r) {
|
|
11
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
12
|
+
}, _(n, e);
|
|
12
13
|
};
|
|
13
|
-
function
|
|
14
|
-
if (typeof
|
|
15
|
-
throw new TypeError("Class extends value " + String(
|
|
16
|
-
|
|
17
|
-
function
|
|
14
|
+
function te(n, e) {
|
|
15
|
+
if (typeof e != "function" && e !== null)
|
|
16
|
+
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
17
|
+
_(n, e);
|
|
18
|
+
function t() {
|
|
18
19
|
this.constructor = n;
|
|
19
20
|
}
|
|
20
|
-
n.prototype =
|
|
21
|
+
n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
var
|
|
24
|
-
if (
|
|
23
|
+
function Y(n) {
|
|
24
|
+
var e = typeof Symbol == "function" && Symbol.iterator, t = e && n[e], r = 0;
|
|
25
|
+
if (t) return t.call(n);
|
|
25
26
|
if (n && typeof n.length == "number") return {
|
|
26
27
|
next: function() {
|
|
27
28
|
return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
|
-
throw new TypeError(
|
|
31
|
+
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
var
|
|
34
|
-
if (!
|
|
35
|
-
var r =
|
|
33
|
+
function O(n, e) {
|
|
34
|
+
var t = typeof Symbol == "function" && n[Symbol.iterator];
|
|
35
|
+
if (!t) return n;
|
|
36
|
+
var r = t.call(n), i, a = [], s;
|
|
36
37
|
try {
|
|
37
|
-
for (; (
|
|
38
|
-
} catch (
|
|
39
|
-
|
|
38
|
+
for (; (e === void 0 || e-- > 0) && !(i = r.next()).done; ) a.push(i.value);
|
|
39
|
+
} catch (f) {
|
|
40
|
+
s = { error: f };
|
|
40
41
|
} finally {
|
|
41
42
|
try {
|
|
42
|
-
|
|
43
|
+
i && !i.done && (t = r.return) && t.call(r);
|
|
43
44
|
} finally {
|
|
44
|
-
if (
|
|
45
|
+
if (s) throw s.error;
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
return
|
|
48
|
+
return a;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
if (
|
|
51
|
-
(
|
|
52
|
-
return n.concat(
|
|
50
|
+
function j(n, e, t) {
|
|
51
|
+
if (t || arguments.length === 2) for (var r = 0, i = e.length, a; r < i; r++)
|
|
52
|
+
(a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
|
|
53
|
+
return n.concat(a || Array.prototype.slice.call(e));
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function I(n) {
|
|
55
56
|
return typeof n == "function";
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
-
var
|
|
58
|
+
function me(n) {
|
|
59
|
+
var e = function(r) {
|
|
59
60
|
Error.call(r), r.stack = new Error().stack;
|
|
60
|
-
},
|
|
61
|
-
return
|
|
61
|
+
}, t = n(e);
|
|
62
|
+
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
62
63
|
}
|
|
63
|
-
var
|
|
64
|
-
return function(
|
|
65
|
-
n(this), this.message =
|
|
66
|
-
` +
|
|
67
|
-
return
|
|
64
|
+
var N = me(function(n) {
|
|
65
|
+
return function(t) {
|
|
66
|
+
n(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
67
|
+
` + t.map(function(r, i) {
|
|
68
|
+
return i + 1 + ") " + r.toString();
|
|
68
69
|
}).join(`
|
|
69
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
70
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
70
71
|
};
|
|
71
72
|
});
|
|
72
|
-
function
|
|
73
|
+
function J(n, e) {
|
|
73
74
|
if (n) {
|
|
74
|
-
var
|
|
75
|
-
0 <=
|
|
75
|
+
var t = n.indexOf(e);
|
|
76
|
+
0 <= t && n.splice(t, 1);
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
|
-
var
|
|
79
|
-
function n(
|
|
80
|
-
this.initialTeardown =
|
|
79
|
+
var $ = function() {
|
|
80
|
+
function n(e) {
|
|
81
|
+
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
81
82
|
}
|
|
82
83
|
return n.prototype.unsubscribe = function() {
|
|
83
|
-
var
|
|
84
|
+
var e, t, r, i, a;
|
|
84
85
|
if (!this.closed) {
|
|
85
86
|
this.closed = !0;
|
|
86
|
-
var
|
|
87
|
-
if (
|
|
88
|
-
if (this._parentage = null, Array.isArray(
|
|
87
|
+
var s = this._parentage;
|
|
88
|
+
if (s)
|
|
89
|
+
if (this._parentage = null, Array.isArray(s))
|
|
89
90
|
try {
|
|
90
|
-
for (var
|
|
91
|
-
var
|
|
92
|
-
|
|
91
|
+
for (var f = Y(s), d = f.next(); !d.done; d = f.next()) {
|
|
92
|
+
var l = d.value;
|
|
93
|
+
l.remove(this);
|
|
93
94
|
}
|
|
94
|
-
} catch (
|
|
95
|
-
|
|
95
|
+
} catch (u) {
|
|
96
|
+
e = { error: u };
|
|
96
97
|
} finally {
|
|
97
98
|
try {
|
|
98
|
-
|
|
99
|
+
d && !d.done && (t = f.return) && t.call(f);
|
|
99
100
|
} finally {
|
|
100
|
-
if (
|
|
101
|
+
if (e) throw e.error;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
else
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
if (
|
|
105
|
+
s.remove(this);
|
|
106
|
+
var c = this.initialTeardown;
|
|
107
|
+
if (I(c))
|
|
107
108
|
try {
|
|
108
|
-
|
|
109
|
-
} catch (
|
|
110
|
-
|
|
109
|
+
c();
|
|
110
|
+
} catch (u) {
|
|
111
|
+
a = u instanceof N ? u.errors : [u];
|
|
111
112
|
}
|
|
112
|
-
var
|
|
113
|
-
if (
|
|
113
|
+
var o = this._finalizers;
|
|
114
|
+
if (o) {
|
|
114
115
|
this._finalizers = null;
|
|
115
116
|
try {
|
|
116
|
-
for (var
|
|
117
|
-
var
|
|
117
|
+
for (var p = Y(o), m = p.next(); !m.done; m = p.next()) {
|
|
118
|
+
var y = m.value;
|
|
118
119
|
try {
|
|
119
|
-
|
|
120
|
-
} catch (
|
|
121
|
-
|
|
120
|
+
Q(y);
|
|
121
|
+
} catch (u) {
|
|
122
|
+
a = a ?? [], u instanceof N ? a = j(j([], O(a)), O(u.errors)) : a.push(u);
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
|
-
} catch (
|
|
125
|
-
r = { error:
|
|
125
|
+
} catch (u) {
|
|
126
|
+
r = { error: u };
|
|
126
127
|
} finally {
|
|
127
128
|
try {
|
|
128
|
-
|
|
129
|
+
m && !m.done && (i = p.return) && i.call(p);
|
|
129
130
|
} finally {
|
|
130
131
|
if (r) throw r.error;
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
|
-
if (
|
|
135
|
-
throw new
|
|
135
|
+
if (a)
|
|
136
|
+
throw new N(a);
|
|
136
137
|
}
|
|
137
|
-
}, n.prototype.add = function(
|
|
138
|
-
var
|
|
139
|
-
if (
|
|
138
|
+
}, n.prototype.add = function(e) {
|
|
139
|
+
var t;
|
|
140
|
+
if (e && e !== this)
|
|
140
141
|
if (this.closed)
|
|
141
|
-
|
|
142
|
+
Q(e);
|
|
142
143
|
else {
|
|
143
|
-
if (
|
|
144
|
-
if (
|
|
144
|
+
if (e instanceof n) {
|
|
145
|
+
if (e.closed || e._hasParent(this))
|
|
145
146
|
return;
|
|
146
|
-
|
|
147
|
+
e._addParent(this);
|
|
147
148
|
}
|
|
148
|
-
(this._finalizers = (
|
|
149
|
+
(this._finalizers = (t = this._finalizers) !== null && t !== void 0 ? t : []).push(e);
|
|
149
150
|
}
|
|
150
|
-
}, n.prototype._hasParent = function(
|
|
151
|
-
var
|
|
152
|
-
return
|
|
153
|
-
}, n.prototype._addParent = function(
|
|
154
|
-
var
|
|
155
|
-
this._parentage = Array.isArray(
|
|
156
|
-
}, n.prototype._removeParent = function(
|
|
157
|
-
var
|
|
158
|
-
|
|
159
|
-
}, n.prototype.remove = function(
|
|
160
|
-
var
|
|
161
|
-
|
|
151
|
+
}, n.prototype._hasParent = function(e) {
|
|
152
|
+
var t = this._parentage;
|
|
153
|
+
return t === e || Array.isArray(t) && t.includes(e);
|
|
154
|
+
}, n.prototype._addParent = function(e) {
|
|
155
|
+
var t = this._parentage;
|
|
156
|
+
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
|
157
|
+
}, n.prototype._removeParent = function(e) {
|
|
158
|
+
var t = this._parentage;
|
|
159
|
+
t === e ? this._parentage = null : Array.isArray(t) && J(t, e);
|
|
160
|
+
}, n.prototype.remove = function(e) {
|
|
161
|
+
var t = this._finalizers;
|
|
162
|
+
t && J(t, e), e instanceof n && e._removeParent(this);
|
|
162
163
|
}, n.EMPTY = function() {
|
|
163
|
-
var
|
|
164
|
-
return
|
|
164
|
+
var e = new n();
|
|
165
|
+
return e.closed = !0, e;
|
|
165
166
|
}(), n;
|
|
166
167
|
}();
|
|
167
|
-
|
|
168
|
-
function
|
|
169
|
-
return n instanceof
|
|
168
|
+
$.EMPTY;
|
|
169
|
+
function ne(n) {
|
|
170
|
+
return n instanceof $ || n && "closed" in n && I(n.remove) && I(n.add) && I(n.unsubscribe);
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
172
|
+
function Q(n) {
|
|
173
|
+
I(n) ? n() : n.unsubscribe();
|
|
173
174
|
}
|
|
174
|
-
var
|
|
175
|
+
var re = {
|
|
175
176
|
onUnhandledError: null,
|
|
176
177
|
onStoppedNotification: null,
|
|
177
178
|
Promise: void 0,
|
|
178
179
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
179
180
|
useDeprecatedNextContext: !1
|
|
180
|
-
},
|
|
181
|
-
setTimeout: function(n,
|
|
182
|
-
for (var
|
|
183
|
-
|
|
184
|
-
return setTimeout.apply(void 0,
|
|
181
|
+
}, he = {
|
|
182
|
+
setTimeout: function(n, e) {
|
|
183
|
+
for (var t = [], r = 2; r < arguments.length; r++)
|
|
184
|
+
t[r - 2] = arguments[r];
|
|
185
|
+
return setTimeout.apply(void 0, j([n, e], O(t)));
|
|
185
186
|
},
|
|
186
187
|
clearTimeout: function(n) {
|
|
187
188
|
return clearTimeout(n);
|
|
188
189
|
},
|
|
189
190
|
delegate: void 0
|
|
190
191
|
};
|
|
191
|
-
function
|
|
192
|
-
|
|
192
|
+
function ye(n) {
|
|
193
|
+
he.setTimeout(function() {
|
|
193
194
|
throw n;
|
|
194
195
|
});
|
|
195
196
|
}
|
|
196
|
-
function
|
|
197
|
+
function Z() {
|
|
197
198
|
}
|
|
198
|
-
function
|
|
199
|
+
function ve(n) {
|
|
199
200
|
n();
|
|
200
201
|
}
|
|
201
|
-
var
|
|
202
|
-
|
|
203
|
-
function t
|
|
202
|
+
var oe = function(n) {
|
|
203
|
+
te(e, n);
|
|
204
|
+
function e(t) {
|
|
204
205
|
var r = n.call(this) || this;
|
|
205
|
-
return r.isStopped = !1,
|
|
206
|
-
}
|
|
207
|
-
return
|
|
208
|
-
return new
|
|
209
|
-
},
|
|
210
|
-
this.isStopped || this._next(
|
|
211
|
-
},
|
|
212
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
213
|
-
},
|
|
206
|
+
return r.isStopped = !1, t ? (r.destination = t, ne(t) && t.add(r)) : r.destination = Me, r;
|
|
207
|
+
}
|
|
208
|
+
return e.create = function(t, r, i) {
|
|
209
|
+
return new W(t, r, i);
|
|
210
|
+
}, e.prototype.next = function(t) {
|
|
211
|
+
this.isStopped || this._next(t);
|
|
212
|
+
}, e.prototype.error = function(t) {
|
|
213
|
+
this.isStopped || (this.isStopped = !0, this._error(t));
|
|
214
|
+
}, e.prototype.complete = function() {
|
|
214
215
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
215
|
-
},
|
|
216
|
+
}, e.prototype.unsubscribe = function() {
|
|
216
217
|
this.closed || (this.isStopped = !0, n.prototype.unsubscribe.call(this), this.destination = null);
|
|
217
|
-
},
|
|
218
|
-
this.destination.next(
|
|
219
|
-
},
|
|
218
|
+
}, e.prototype._next = function(t) {
|
|
219
|
+
this.destination.next(t);
|
|
220
|
+
}, e.prototype._error = function(t) {
|
|
220
221
|
try {
|
|
221
|
-
this.destination.error(
|
|
222
|
+
this.destination.error(t);
|
|
222
223
|
} finally {
|
|
223
224
|
this.unsubscribe();
|
|
224
225
|
}
|
|
225
|
-
},
|
|
226
|
+
}, e.prototype._complete = function() {
|
|
226
227
|
try {
|
|
227
228
|
this.destination.complete();
|
|
228
229
|
} finally {
|
|
229
230
|
this.unsubscribe();
|
|
230
231
|
}
|
|
231
|
-
},
|
|
232
|
-
}(
|
|
233
|
-
function
|
|
234
|
-
return
|
|
232
|
+
}, e;
|
|
233
|
+
}($), be = Function.prototype.bind;
|
|
234
|
+
function B(n, e) {
|
|
235
|
+
return be.call(n, e);
|
|
235
236
|
}
|
|
236
|
-
var
|
|
237
|
-
function n(
|
|
238
|
-
this.partialObserver =
|
|
237
|
+
var Ce = function() {
|
|
238
|
+
function n(e) {
|
|
239
|
+
this.partialObserver = e;
|
|
239
240
|
}
|
|
240
|
-
return n.prototype.next = function(
|
|
241
|
-
var
|
|
242
|
-
if (
|
|
241
|
+
return n.prototype.next = function(e) {
|
|
242
|
+
var t = this.partialObserver;
|
|
243
|
+
if (t.next)
|
|
243
244
|
try {
|
|
244
|
-
|
|
245
|
+
t.next(e);
|
|
245
246
|
} catch (r) {
|
|
246
|
-
|
|
247
|
+
F(r);
|
|
247
248
|
}
|
|
248
|
-
}, n.prototype.error = function(
|
|
249
|
-
var
|
|
250
|
-
if (
|
|
249
|
+
}, n.prototype.error = function(e) {
|
|
250
|
+
var t = this.partialObserver;
|
|
251
|
+
if (t.error)
|
|
251
252
|
try {
|
|
252
|
-
|
|
253
|
+
t.error(e);
|
|
253
254
|
} catch (r) {
|
|
254
|
-
|
|
255
|
+
F(r);
|
|
255
256
|
}
|
|
256
257
|
else
|
|
257
|
-
|
|
258
|
+
F(e);
|
|
258
259
|
}, n.prototype.complete = function() {
|
|
259
|
-
var
|
|
260
|
-
if (
|
|
260
|
+
var e = this.partialObserver;
|
|
261
|
+
if (e.complete)
|
|
261
262
|
try {
|
|
262
|
-
|
|
263
|
-
} catch (
|
|
264
|
-
|
|
263
|
+
e.complete();
|
|
264
|
+
} catch (t) {
|
|
265
|
+
F(t);
|
|
265
266
|
}
|
|
266
267
|
}, n;
|
|
267
|
-
}(),
|
|
268
|
-
|
|
269
|
-
function t
|
|
270
|
-
var
|
|
271
|
-
if (
|
|
272
|
-
|
|
273
|
-
next:
|
|
268
|
+
}(), W = function(n) {
|
|
269
|
+
te(e, n);
|
|
270
|
+
function e(t, r, i) {
|
|
271
|
+
var a = n.call(this) || this, s;
|
|
272
|
+
if (I(t) || !t)
|
|
273
|
+
s = {
|
|
274
|
+
next: t ?? void 0,
|
|
274
275
|
error: r ?? void 0,
|
|
275
|
-
complete:
|
|
276
|
+
complete: i ?? void 0
|
|
276
277
|
};
|
|
277
278
|
else {
|
|
278
|
-
var
|
|
279
|
-
|
|
280
|
-
return
|
|
281
|
-
},
|
|
282
|
-
next:
|
|
283
|
-
error:
|
|
284
|
-
complete:
|
|
285
|
-
}) :
|
|
279
|
+
var f;
|
|
280
|
+
a && re.useDeprecatedNextContext ? (f = Object.create(t), f.unsubscribe = function() {
|
|
281
|
+
return a.unsubscribe();
|
|
282
|
+
}, s = {
|
|
283
|
+
next: t.next && B(t.next, f),
|
|
284
|
+
error: t.error && B(t.error, f),
|
|
285
|
+
complete: t.complete && B(t.complete, f)
|
|
286
|
+
}) : s = t;
|
|
286
287
|
}
|
|
287
|
-
return
|
|
288
|
+
return a.destination = new Ce(s), a;
|
|
288
289
|
}
|
|
289
|
-
return
|
|
290
|
-
}(
|
|
291
|
-
function
|
|
292
|
-
|
|
290
|
+
return e;
|
|
291
|
+
}(oe);
|
|
292
|
+
function F(n) {
|
|
293
|
+
ye(n);
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
+
function ge(n) {
|
|
295
296
|
throw n;
|
|
296
297
|
}
|
|
297
|
-
var
|
|
298
|
+
var Me = {
|
|
298
299
|
closed: !0,
|
|
299
|
-
next:
|
|
300
|
-
error:
|
|
301
|
-
complete:
|
|
302
|
-
},
|
|
300
|
+
next: Z,
|
|
301
|
+
error: ge,
|
|
302
|
+
complete: Z
|
|
303
|
+
}, Se = function() {
|
|
303
304
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
304
305
|
}();
|
|
305
|
-
function
|
|
306
|
+
function De(n) {
|
|
306
307
|
return n;
|
|
307
308
|
}
|
|
308
|
-
function
|
|
309
|
-
return n.length === 0 ?
|
|
310
|
-
return n.reduce(function(r,
|
|
311
|
-
return
|
|
312
|
-
},
|
|
309
|
+
function Ee(n) {
|
|
310
|
+
return n.length === 0 ? De : n.length === 1 ? n[0] : function(t) {
|
|
311
|
+
return n.reduce(function(r, i) {
|
|
312
|
+
return i(r);
|
|
313
|
+
}, t);
|
|
313
314
|
};
|
|
314
315
|
}
|
|
315
|
-
var
|
|
316
|
-
function n(
|
|
317
|
-
|
|
316
|
+
var Te = function() {
|
|
317
|
+
function n(e) {
|
|
318
|
+
e && (this._subscribe = e);
|
|
318
319
|
}
|
|
319
|
-
return n.prototype.lift = function(
|
|
320
|
-
var
|
|
321
|
-
return
|
|
322
|
-
}, n.prototype.subscribe = function(
|
|
323
|
-
var
|
|
324
|
-
return
|
|
325
|
-
var
|
|
326
|
-
|
|
327
|
-
}),
|
|
328
|
-
}, n.prototype._trySubscribe = function(
|
|
320
|
+
return n.prototype.lift = function(e) {
|
|
321
|
+
var t = new n();
|
|
322
|
+
return t.source = this, t.operator = e, t;
|
|
323
|
+
}, n.prototype.subscribe = function(e, t, r) {
|
|
324
|
+
var i = this, a = we(e) ? e : new W(e, t, r);
|
|
325
|
+
return ve(function() {
|
|
326
|
+
var s = i, f = s.operator, d = s.source;
|
|
327
|
+
a.add(f ? f.call(a, d) : d ? i._subscribe(a) : i._trySubscribe(a));
|
|
328
|
+
}), a;
|
|
329
|
+
}, n.prototype._trySubscribe = function(e) {
|
|
329
330
|
try {
|
|
330
|
-
return this._subscribe(
|
|
331
|
-
} catch (
|
|
332
|
-
|
|
331
|
+
return this._subscribe(e);
|
|
332
|
+
} catch (t) {
|
|
333
|
+
e.error(t);
|
|
333
334
|
}
|
|
334
|
-
}, n.prototype.forEach = function(
|
|
335
|
+
}, n.prototype.forEach = function(e, t) {
|
|
335
336
|
var r = this;
|
|
336
|
-
return
|
|
337
|
-
var
|
|
338
|
-
next: function(
|
|
337
|
+
return t = x(t), new t(function(i, a) {
|
|
338
|
+
var s = new W({
|
|
339
|
+
next: function(f) {
|
|
339
340
|
try {
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
341
|
+
e(f);
|
|
342
|
+
} catch (d) {
|
|
343
|
+
a(d), s.unsubscribe();
|
|
343
344
|
}
|
|
344
345
|
},
|
|
345
|
-
error:
|
|
346
|
-
complete:
|
|
346
|
+
error: a,
|
|
347
|
+
complete: i
|
|
347
348
|
});
|
|
348
|
-
r.subscribe(
|
|
349
|
+
r.subscribe(s);
|
|
349
350
|
});
|
|
350
|
-
}, n.prototype._subscribe = function(
|
|
351
|
-
var
|
|
352
|
-
return (
|
|
353
|
-
}, n.prototype[
|
|
351
|
+
}, n.prototype._subscribe = function(e) {
|
|
352
|
+
var t;
|
|
353
|
+
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
|
|
354
|
+
}, n.prototype[Se] = function() {
|
|
354
355
|
return this;
|
|
355
356
|
}, n.prototype.pipe = function() {
|
|
356
|
-
for (var
|
|
357
|
-
t
|
|
358
|
-
return
|
|
359
|
-
}, n.prototype.toPromise = function(
|
|
360
|
-
var
|
|
361
|
-
return
|
|
362
|
-
var
|
|
363
|
-
|
|
364
|
-
return
|
|
365
|
-
}, function(
|
|
366
|
-
return
|
|
357
|
+
for (var e = [], t = 0; t < arguments.length; t++)
|
|
358
|
+
e[t] = arguments[t];
|
|
359
|
+
return Ee(e)(this);
|
|
360
|
+
}, n.prototype.toPromise = function(e) {
|
|
361
|
+
var t = this;
|
|
362
|
+
return e = x(e), new e(function(r, i) {
|
|
363
|
+
var a;
|
|
364
|
+
t.subscribe(function(s) {
|
|
365
|
+
return a = s;
|
|
366
|
+
}, function(s) {
|
|
367
|
+
return i(s);
|
|
367
368
|
}, function() {
|
|
368
|
-
return r(
|
|
369
|
+
return r(a);
|
|
369
370
|
});
|
|
370
371
|
});
|
|
371
|
-
}, n.create = function(
|
|
372
|
-
return new n(
|
|
372
|
+
}, n.create = function(e) {
|
|
373
|
+
return new n(e);
|
|
373
374
|
}, n;
|
|
374
375
|
}();
|
|
375
|
-
function
|
|
376
|
-
var
|
|
377
|
-
return (
|
|
376
|
+
function x(n) {
|
|
377
|
+
var e;
|
|
378
|
+
return (e = n ?? re.Promise) !== null && e !== void 0 ? e : Promise;
|
|
378
379
|
}
|
|
379
|
-
function
|
|
380
|
-
return n &&
|
|
380
|
+
function Le(n) {
|
|
381
|
+
return n && I(n.next) && I(n.error) && I(n.complete);
|
|
381
382
|
}
|
|
382
|
-
function
|
|
383
|
-
return n && n instanceof
|
|
383
|
+
function we(n) {
|
|
384
|
+
return n && n instanceof oe || Le(n) && ne(n);
|
|
384
385
|
}
|
|
385
|
-
const
|
|
386
|
-
function
|
|
387
|
-
const { properties:
|
|
388
|
-
return (!
|
|
386
|
+
const ae = {}, ie = {};
|
|
387
|
+
function G(n) {
|
|
388
|
+
const { properties: e, title: t, ignore: r } = n, i = r && Array.isArray(r), a = Object.keys(e).reduce((s, f) => ((!i || !r.find((d) => d == f)) && (s[f] = e[f].type === "object" && e[f].properties ? G(e[f]) : ee(e[f].default)), s), {});
|
|
389
|
+
return t && (!i || !r.find((s) => s == "id")) && (a.id = `${t}-${Date.now()}`), a;
|
|
389
390
|
}
|
|
390
|
-
function
|
|
391
|
-
const r =
|
|
391
|
+
function q(n, e = {}, t) {
|
|
392
|
+
const r = ae[n];
|
|
392
393
|
if (r) {
|
|
393
|
-
let
|
|
394
|
-
const
|
|
395
|
-
return
|
|
394
|
+
let i = G(r);
|
|
395
|
+
const a = ie[n];
|
|
396
|
+
return i = a ? a({ getSchemaByType: q }, i, e, t) : i, i;
|
|
396
397
|
}
|
|
397
398
|
return null;
|
|
398
399
|
}
|
|
399
|
-
function
|
|
400
|
-
const
|
|
401
|
-
return Object.keys(n).reduce((r,
|
|
400
|
+
function Ie(n, e) {
|
|
401
|
+
const t = G(e);
|
|
402
|
+
return Object.keys(n).reduce((r, i) => (r[i] && X(r[i]) && X(n[i]) ? Object.assign(r[i], n[i]) : r[i] = n[i], r), t), t;
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
-
return Object.keys(n).filter((r) => n[r] != null).reduce((r,
|
|
405
|
-
if (
|
|
406
|
-
const
|
|
407
|
-
if (typeof
|
|
408
|
-
r[
|
|
404
|
+
function ke(n, e) {
|
|
405
|
+
return Object.keys(n).filter((r) => n[r] != null).reduce((r, i) => {
|
|
406
|
+
if (e.has(i)) {
|
|
407
|
+
const a = e.get(i);
|
|
408
|
+
if (typeof a == "string")
|
|
409
|
+
r[a] = n[i];
|
|
409
410
|
else {
|
|
410
|
-
const
|
|
411
|
-
Object.assign(r,
|
|
411
|
+
const s = a(i, n[i], n);
|
|
412
|
+
Object.assign(r, s);
|
|
412
413
|
}
|
|
413
414
|
} else
|
|
414
|
-
r[
|
|
415
|
+
r[i] = n[i];
|
|
415
416
|
return r;
|
|
416
417
|
}, {});
|
|
417
418
|
}
|
|
418
|
-
function
|
|
419
|
-
const r =
|
|
420
|
-
return
|
|
419
|
+
function Pe(n, e, t = /* @__PURE__ */ new Map()) {
|
|
420
|
+
const r = Ie(n, e);
|
|
421
|
+
return ke(r, t);
|
|
421
422
|
}
|
|
422
|
-
function
|
|
423
|
-
function
|
|
424
|
-
if (typeof
|
|
425
|
-
return
|
|
426
|
-
if (typeof
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
return Number(
|
|
430
|
-
if (
|
|
431
|
-
return Number(
|
|
432
|
-
if (
|
|
433
|
-
return Number(
|
|
423
|
+
function Fe(n = {}) {
|
|
424
|
+
function e(l, c, o, p) {
|
|
425
|
+
if (typeof o == "number")
|
|
426
|
+
return p[l].length === o;
|
|
427
|
+
if (typeof o == "object") {
|
|
428
|
+
const m = Object.keys(o)[0], y = o[m];
|
|
429
|
+
if (m === "not")
|
|
430
|
+
return Number(p[l].length) !== Number(y);
|
|
431
|
+
if (m === "moreThan")
|
|
432
|
+
return Number(p[l].length) >= Number(y);
|
|
433
|
+
if (m === "lessThan")
|
|
434
|
+
return Number(p[l].length) <= Number(y);
|
|
434
435
|
}
|
|
435
436
|
return !1;
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
-
return
|
|
438
|
+
function t(l, c, o, p) {
|
|
439
|
+
return p[l] && p[l].propertyValue && String(p[l].propertyValue.value) === String(o);
|
|
439
440
|
}
|
|
440
441
|
const r = /* @__PURE__ */ new Map([
|
|
441
|
-
["length",
|
|
442
|
-
["getProperty",
|
|
442
|
+
["length", e],
|
|
443
|
+
["getProperty", t]
|
|
443
444
|
]);
|
|
444
|
-
Object.keys(n).reduce((
|
|
445
|
-
function
|
|
446
|
-
const
|
|
447
|
-
return typeof
|
|
448
|
-
if (
|
|
449
|
-
return { target:
|
|
450
|
-
const
|
|
451
|
-
return { target:
|
|
445
|
+
Object.keys(n).reduce((l, c) => (l.set(c, n[c]), l), r);
|
|
446
|
+
function i(l, c) {
|
|
447
|
+
const o = l;
|
|
448
|
+
return typeof c == "number" ? [{ target: o, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: o, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
|
|
449
|
+
if (p === "length")
|
|
450
|
+
return { target: o, operator: "length", param: null, value: c[p] };
|
|
451
|
+
const m = p, y = c[p];
|
|
452
|
+
return { target: o, operator: "getProperty", param: m, value: y };
|
|
452
453
|
}) : [];
|
|
453
454
|
}
|
|
454
|
-
function
|
|
455
|
-
return Object.keys(
|
|
456
|
-
const
|
|
457
|
-
return
|
|
455
|
+
function a(l) {
|
|
456
|
+
return Object.keys(l).reduce((o, p) => {
|
|
457
|
+
const m = i(p, l[p]);
|
|
458
|
+
return o.push(...m), o;
|
|
458
459
|
}, []);
|
|
459
460
|
}
|
|
460
|
-
function
|
|
461
|
-
if (r.has(
|
|
462
|
-
const
|
|
463
|
-
return
|
|
461
|
+
function s(l, c) {
|
|
462
|
+
if (r.has(l.operator)) {
|
|
463
|
+
const o = r.get(l.operator);
|
|
464
|
+
return o && o(l.target, l.param, l.value, c) || !1;
|
|
464
465
|
}
|
|
465
466
|
return !1;
|
|
466
467
|
}
|
|
467
|
-
function
|
|
468
|
-
return
|
|
468
|
+
function f(l, c) {
|
|
469
|
+
return a(l).reduce((m, y) => m && s(y, c), !0);
|
|
469
470
|
}
|
|
470
|
-
function
|
|
471
|
-
const
|
|
472
|
-
return
|
|
471
|
+
function d(l, c) {
|
|
472
|
+
const o = Object.keys(l), p = o.includes("allOf"), m = o.includes("anyOf"), y = p || m, C = (y ? l[y ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((g) => f(g, c));
|
|
473
|
+
return p ? !C.includes(!1) : C.includes(!0);
|
|
473
474
|
}
|
|
474
|
-
return { parseValueSchema:
|
|
475
|
+
return { parseValueSchema: d };
|
|
475
476
|
}
|
|
476
|
-
const
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
477
|
+
const k = {
|
|
478
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
479
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
480
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
481
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
482
|
+
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
483
|
+
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
484
|
+
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
485
|
+
"number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
|
|
486
|
+
"date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
|
|
487
|
+
switch: { type: "switch", name: "开关", icon: "SwitchField" },
|
|
488
|
+
"radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
|
|
489
|
+
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
490
|
+
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
491
|
+
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
492
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
493
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
494
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
495
|
+
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
496
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
497
|
+
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
498
|
+
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
499
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
500
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
501
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
502
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
503
|
+
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
504
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
505
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
506
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
507
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
508
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
509
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
510
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
511
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
512
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
513
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
514
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
515
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
516
|
+
}, Ae = {}, Ne = {};
|
|
517
|
+
Fe();
|
|
518
|
+
function Be(n, e, t = /* @__PURE__ */ new Map(), r = (s, f, d) => f, i = {}, a = (s) => s) {
|
|
519
|
+
return ae[e.title] = e, ie[e.title] = r, Ae[e.title] = i, Ne[e.title] = a, (s = {}) => {
|
|
520
|
+
const f = Pe(s, e, t), d = Object.keys(n).reduce((l, c) => (l[c] = n[c].default, l), {});
|
|
521
|
+
return Object.assign(d, f);
|
|
482
522
|
};
|
|
483
523
|
}
|
|
484
|
-
function
|
|
485
|
-
return { customClass:
|
|
524
|
+
function Ue(n, e) {
|
|
525
|
+
return { customClass: e.class, customStyle: e.style };
|
|
486
526
|
}
|
|
487
|
-
const
|
|
488
|
-
["appearance",
|
|
489
|
-
]),
|
|
527
|
+
const Ve = /* @__PURE__ */ new Map([
|
|
528
|
+
["appearance", Ue]
|
|
529
|
+
]), _e = "https://json-schema.org/draft/2020-12/schema", Oe = "https://farris-design.gitee.io/nav.schema.json", je = "nav", We = "A Farris Component", $e = "object", Ge = {
|
|
490
530
|
id: {
|
|
491
531
|
description: "The unique identifier for a nav",
|
|
492
532
|
type: "string"
|
|
@@ -578,22 +618,22 @@ const Ze = /* @__PURE__ */ new Map([
|
|
|
578
618
|
type: "sting",
|
|
579
619
|
default: ""
|
|
580
620
|
}
|
|
581
|
-
},
|
|
621
|
+
}, qe = [
|
|
582
622
|
"id",
|
|
583
623
|
"type"
|
|
584
|
-
],
|
|
585
|
-
$schema:
|
|
586
|
-
$id:
|
|
587
|
-
title:
|
|
588
|
-
description:
|
|
589
|
-
type:
|
|
590
|
-
properties:
|
|
591
|
-
required:
|
|
624
|
+
], ze = {
|
|
625
|
+
$schema: _e,
|
|
626
|
+
$id: Oe,
|
|
627
|
+
title: je,
|
|
628
|
+
description: We,
|
|
629
|
+
type: $e,
|
|
630
|
+
properties: Ge,
|
|
631
|
+
required: qe
|
|
592
632
|
};
|
|
593
|
-
function
|
|
594
|
-
return
|
|
633
|
+
function Xe(n, e, t) {
|
|
634
|
+
return e;
|
|
595
635
|
}
|
|
596
|
-
const
|
|
636
|
+
const Ye = "nav", Je = "A Farris Component", Qe = "object", Ze = {
|
|
597
637
|
basic: {
|
|
598
638
|
description: "Basic Infomation",
|
|
599
639
|
title: "基本信息",
|
|
@@ -675,12 +715,12 @@ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
|
|
|
675
715
|
}
|
|
676
716
|
}
|
|
677
717
|
}
|
|
678
|
-
},
|
|
679
|
-
title:
|
|
680
|
-
description:
|
|
681
|
-
type:
|
|
682
|
-
categories:
|
|
683
|
-
},
|
|
718
|
+
}, xe = {
|
|
719
|
+
title: Ye,
|
|
720
|
+
description: Je,
|
|
721
|
+
type: Qe,
|
|
722
|
+
categories: Ze
|
|
723
|
+
}, z = {
|
|
684
724
|
/** 未读最大值 */
|
|
685
725
|
maxNum: { Type: Number, default: 99 },
|
|
686
726
|
/** 导航数据 */
|
|
@@ -713,1195 +753,703 @@ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
|
|
|
713
753
|
/** 当前激活的id */
|
|
714
754
|
activeNavId: { Type: String, default: "1" },
|
|
715
755
|
/** nav切换前事件 */
|
|
716
|
-
navPicking: { Type: Function, default: (n) =>
|
|
717
|
-
},
|
|
756
|
+
navPicking: { Type: Function, default: (n) => Te }
|
|
757
|
+
}, R = Be(z, ze, Ve, Xe, xe), U = /* @__PURE__ */ K({
|
|
718
758
|
name: "FNav",
|
|
719
|
-
props:
|
|
759
|
+
props: z,
|
|
720
760
|
emits: ["nav", "update:activeNavId"],
|
|
721
|
-
setup(n,
|
|
722
|
-
const
|
|
723
|
-
|
|
724
|
-
|
|
761
|
+
setup(n, e) {
|
|
762
|
+
const t = L(n.activeNavId), r = L(n.navData), i = L(n.horizontal);
|
|
763
|
+
L(n.navPicking), ue(() => n.activeNavId, (c, o) => {
|
|
764
|
+
c !== o && (t.value = c);
|
|
725
765
|
});
|
|
726
|
-
const
|
|
766
|
+
const a = P({
|
|
727
767
|
get() {
|
|
728
768
|
return r.value;
|
|
729
769
|
},
|
|
730
|
-
set(
|
|
731
|
-
r.value =
|
|
770
|
+
set(c) {
|
|
771
|
+
r.value = c, d();
|
|
732
772
|
}
|
|
733
|
-
}),
|
|
773
|
+
}), s = P({
|
|
734
774
|
get() {
|
|
735
|
-
return
|
|
775
|
+
return t.value;
|
|
736
776
|
},
|
|
737
|
-
set(
|
|
738
|
-
if (
|
|
739
|
-
const
|
|
740
|
-
|
|
777
|
+
set(c) {
|
|
778
|
+
if (t.value = c, t.value && a && a.value.length) {
|
|
779
|
+
const o = a.value.find((p) => p.id === t.value);
|
|
780
|
+
o && e.emit("nav", o);
|
|
741
781
|
}
|
|
742
782
|
}
|
|
743
|
-
}),
|
|
744
|
-
set(
|
|
745
|
-
|
|
783
|
+
}), f = P({
|
|
784
|
+
set(c) {
|
|
785
|
+
i.value = c;
|
|
746
786
|
},
|
|
747
787
|
get() {
|
|
748
|
-
return
|
|
788
|
+
return i.value;
|
|
749
789
|
}
|
|
750
790
|
});
|
|
751
|
-
function
|
|
752
|
-
if (
|
|
753
|
-
const
|
|
754
|
-
|
|
791
|
+
function d() {
|
|
792
|
+
if (a.value && a.value.length && !t.value) {
|
|
793
|
+
const c = a.value.find((o) => !o.disable);
|
|
794
|
+
c && (t.value = c.id);
|
|
755
795
|
}
|
|
756
796
|
}
|
|
757
|
-
function
|
|
758
|
-
|
|
797
|
+
function l(c) {
|
|
798
|
+
c.disable || c.id === t.value || (t.value = c.id, e.emit("update:activeNavId", c.id), e.emit("nav", c));
|
|
759
799
|
}
|
|
760
800
|
return () => {
|
|
761
|
-
var
|
|
762
|
-
return
|
|
801
|
+
var c;
|
|
802
|
+
return T("div", {
|
|
763
803
|
class: ["farris-nav", {
|
|
764
|
-
"farris-nav-vertical": !
|
|
804
|
+
"farris-nav-vertical": !f.value
|
|
765
805
|
}]
|
|
766
|
-
}, [(
|
|
806
|
+
}, [(c = a.value) == null ? void 0 : c.map((o) => T("div", {
|
|
767
807
|
class: ["farris-nav-item", {
|
|
768
|
-
active:
|
|
808
|
+
active: o.id === s.value
|
|
769
809
|
}, {
|
|
770
|
-
disabled:
|
|
810
|
+
disabled: o.disable
|
|
771
811
|
}],
|
|
772
|
-
onClick: () =>
|
|
773
|
-
}, [
|
|
812
|
+
onClick: () => l(o)
|
|
813
|
+
}, [T("div", {
|
|
774
814
|
class: "farris-nav-item-link"
|
|
775
|
-
}, [
|
|
815
|
+
}, [T("span", {
|
|
776
816
|
class: "farris-nav-item-link-text"
|
|
777
|
-
}, [typeof
|
|
817
|
+
}, [typeof o.text == "function" ? o.text() : o.text, o.num && T("div", {
|
|
778
818
|
class: "farris-nav-item-tag"
|
|
779
|
-
}, [
|
|
819
|
+
}, [o.num <= n.maxNum && T("span", {
|
|
780
820
|
class: "tag-text"
|
|
781
|
-
}, [
|
|
821
|
+
}, [o.num]), o.num > n.maxNum && T("span", {
|
|
782
822
|
class: "tag-text"
|
|
783
|
-
}, [n.maxNum,
|
|
823
|
+
}, [n.maxNum, H("+")])])])])]))]);
|
|
784
824
|
};
|
|
785
825
|
}
|
|
786
826
|
});
|
|
787
|
-
function
|
|
788
|
-
var
|
|
827
|
+
function Re(n, e, t) {
|
|
828
|
+
var D;
|
|
789
829
|
function r() {
|
|
790
|
-
|
|
830
|
+
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
791
831
|
}
|
|
792
832
|
r();
|
|
793
|
-
const
|
|
794
|
-
function
|
|
795
|
-
return (
|
|
833
|
+
const i = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", s = L();
|
|
834
|
+
function f() {
|
|
835
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
796
836
|
}
|
|
797
|
-
function
|
|
837
|
+
function d() {
|
|
798
838
|
return !1;
|
|
799
839
|
}
|
|
800
|
-
function a() {
|
|
801
|
-
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
|
|
802
|
-
}
|
|
803
840
|
function l() {
|
|
804
|
-
return (
|
|
841
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
805
842
|
}
|
|
806
|
-
function
|
|
843
|
+
function c() {
|
|
844
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
845
|
+
}
|
|
846
|
+
function o(b) {
|
|
807
847
|
if (!b || !b.value)
|
|
808
848
|
return null;
|
|
809
849
|
if (b.value.schema && b.value.schema.type === "component")
|
|
810
850
|
return b.value;
|
|
811
|
-
const
|
|
812
|
-
return
|
|
851
|
+
const S = L(b == null ? void 0 : b.value.parent), w = o(S);
|
|
852
|
+
return w || null;
|
|
853
|
+
}
|
|
854
|
+
function p(b = e) {
|
|
855
|
+
const { componentInstance: S, designerItemElementRef: w } = b;
|
|
856
|
+
return !S || !S.value ? null : S.value.canMove ? w : p(b.parent);
|
|
813
857
|
}
|
|
814
|
-
function
|
|
815
|
-
|
|
816
|
-
return !D || !D.value ? null : D.value.canMove ? E : h(b.parent);
|
|
858
|
+
function m(b) {
|
|
859
|
+
return !!t && t.canAccepts(b);
|
|
817
860
|
}
|
|
818
|
-
function
|
|
819
|
-
return
|
|
861
|
+
function y() {
|
|
862
|
+
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
820
863
|
}
|
|
821
|
-
function
|
|
822
|
-
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
864
|
+
function u() {
|
|
823
865
|
}
|
|
824
|
-
function
|
|
866
|
+
function v(b, S) {
|
|
867
|
+
S && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(S);
|
|
868
|
+
}
|
|
869
|
+
function C(b, S) {
|
|
870
|
+
const { componentType: w } = b;
|
|
871
|
+
let E = q(w, b, S);
|
|
872
|
+
t && t.onResolveNewComponentSchema && (E = t.onResolveNewComponentSchema(b, E));
|
|
873
|
+
const A = w.toLowerCase().replace("-", "_");
|
|
874
|
+
return E && !E.id && E.type === w && (E.id = `${A}_${Math.random().toString().slice(2, 6)}`), E;
|
|
875
|
+
}
|
|
876
|
+
function h(b) {
|
|
877
|
+
}
|
|
878
|
+
function g(...b) {
|
|
879
|
+
if (t && t.getPropsConfig)
|
|
880
|
+
return t.getPropsConfig(...b);
|
|
825
881
|
}
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
e && e.onResolveNewComponentSchema && (v = e.onResolveNewComponentSchema(b, v));
|
|
833
|
-
const P = E.toLowerCase().replace("-", "_");
|
|
834
|
-
return v && !v.id && v.type === E && (v.id = `${P}_${Math.random().toString().slice(2, 6)}`), v;
|
|
835
|
-
}
|
|
836
|
-
function A(b, D) {
|
|
837
|
-
const E = String(b.getAttribute("data-controltype")), v = b.getAttribute("data-feature"), P = v ? JSON.parse(v) : {};
|
|
838
|
-
P.parentComponentInstance = f.value;
|
|
839
|
-
let T = $(E, P);
|
|
840
|
-
e && e.onAcceptNewChildElement && (T = e.onAcceptNewChildElement(b, D, T));
|
|
841
|
-
const S = E.toLowerCase().replace("-", "_");
|
|
842
|
-
return T && !T.id && T.type === E && (T.id = `${S}_${Math.random().toString().slice(2, 6)}`), T;
|
|
843
|
-
}
|
|
844
|
-
function C(b) {
|
|
845
|
-
}
|
|
846
|
-
function j(...b) {
|
|
847
|
-
if (e && e.getPropsConfig)
|
|
848
|
-
return e.getPropsConfig(...b);
|
|
849
|
-
}
|
|
850
|
-
return f.value = {
|
|
851
|
-
canMove: d(),
|
|
852
|
-
canSelectParent: y(),
|
|
853
|
-
canDelete: a(),
|
|
854
|
-
canNested: !l(),
|
|
855
|
-
contents: t == null ? void 0 : t.schema.contents,
|
|
882
|
+
return s.value = {
|
|
883
|
+
canMove: f(),
|
|
884
|
+
canSelectParent: d(),
|
|
885
|
+
canDelete: l(),
|
|
886
|
+
canNested: !c(),
|
|
887
|
+
contents: e == null ? void 0 : e.schema.contents,
|
|
856
888
|
elementRef: n,
|
|
857
|
-
parent: (
|
|
858
|
-
schema:
|
|
859
|
-
styles:
|
|
860
|
-
designerClass:
|
|
861
|
-
canAccepts:
|
|
862
|
-
getBelongedComponentInstance:
|
|
863
|
-
getDraggableDesignItemElement:
|
|
864
|
-
getDraggingDisplayText:
|
|
865
|
-
getPropConfig:
|
|
866
|
-
getDragScopeElement:
|
|
867
|
-
onAcceptMovedChildElement:
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
addNewChildComponentSchema: m,
|
|
889
|
+
parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
|
|
890
|
+
schema: e == null ? void 0 : e.schema,
|
|
891
|
+
styles: i,
|
|
892
|
+
designerClass: a,
|
|
893
|
+
canAccepts: m,
|
|
894
|
+
getBelongedComponentInstance: o,
|
|
895
|
+
getDraggableDesignItemElement: p,
|
|
896
|
+
getDraggingDisplayText: y,
|
|
897
|
+
getPropConfig: g,
|
|
898
|
+
getDragScopeElement: u,
|
|
899
|
+
onAcceptMovedChildElement: v,
|
|
900
|
+
onChildElementMovedOut: h,
|
|
901
|
+
addNewChildComponentSchema: C,
|
|
871
902
|
updateDragAndDropRules: r,
|
|
872
|
-
triggerBelongedComponentToMoveWhenMoved: !!
|
|
873
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!
|
|
874
|
-
},
|
|
903
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || L(!1),
|
|
904
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || L(!1)
|
|
905
|
+
}, s;
|
|
875
906
|
}
|
|
876
|
-
function
|
|
877
|
-
function n(t) {
|
|
878
|
-
var
|
|
879
|
-
if (!t)
|
|
880
|
-
return !1;
|
|
881
|
-
const e = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
|
|
907
|
+
function Ke() {
|
|
908
|
+
function n(e, t) {
|
|
909
|
+
var s;
|
|
882
910
|
if (!e)
|
|
883
911
|
return !1;
|
|
884
|
-
const r = (s = e.
|
|
885
|
-
if (
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
}
|
|
890
|
-
return t.controlType !== "field-set";
|
|
912
|
+
const r = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
|
|
913
|
+
if (!r)
|
|
914
|
+
return !1;
|
|
915
|
+
const i = r.schema.type, a = t == null ? void 0 : t.formSchemaUtils.getComponentById(r.belongedComponentId);
|
|
916
|
+
return !((e.controlCategory === "input" || e.controlType === "form-group") && ![k["response-layout-item"].type, k["response-form"].type].includes(i) || (e.controlType === k.tabs.type || e.controlType === k.section.type) && ((a == null ? void 0 : a.componentType) !== "frame" || ![k["content-container"].type, k["splitter-pane"].type, k["response-layout-item"].type].includes(i)));
|
|
891
917
|
}
|
|
892
918
|
return {
|
|
893
919
|
basalDragulaRuleForContainer: n
|
|
894
920
|
};
|
|
895
921
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
"f-struct-form": {
|
|
923
|
-
description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
|
|
924
|
-
type: "object",
|
|
925
|
-
properties: {
|
|
926
|
-
contents: {
|
|
927
|
-
type: "object",
|
|
928
|
-
properties: {
|
|
929
|
-
"f-section-form": {
|
|
930
|
-
description: "The class of section which has wrapped a reponse-form component.",
|
|
931
|
-
type: "object",
|
|
932
|
-
properties: {
|
|
933
|
-
contents: {
|
|
934
|
-
type: "object",
|
|
935
|
-
properties: {
|
|
936
|
-
"f-form-layout": {
|
|
937
|
-
description: "The class of reponse form",
|
|
938
|
-
type: "object",
|
|
939
|
-
properties: {
|
|
940
|
-
rules: {
|
|
941
|
-
type: "object",
|
|
942
|
-
properties: {
|
|
943
|
-
canAccept: {
|
|
944
|
-
type: "boolean",
|
|
945
|
-
const: !0
|
|
946
|
-
},
|
|
947
|
-
fixed: {
|
|
948
|
-
type: "boolean",
|
|
949
|
-
const: !0
|
|
950
|
-
},
|
|
951
|
-
hidePadding: {
|
|
952
|
-
type: "boolean",
|
|
953
|
-
const: !1
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
},
|
|
961
|
-
rules: {
|
|
962
|
-
type: "object",
|
|
963
|
-
properties: {
|
|
964
|
-
canAccept: {
|
|
965
|
-
type: "boolean",
|
|
966
|
-
const: !1
|
|
967
|
-
},
|
|
968
|
-
fixed: {
|
|
969
|
-
type: "boolean",
|
|
970
|
-
const: !0
|
|
971
|
-
},
|
|
972
|
-
hidePadding: {
|
|
973
|
-
type: "boolean",
|
|
974
|
-
const: !0
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
},
|
|
982
|
-
rules: {
|
|
983
|
-
type: "object",
|
|
984
|
-
properties: {
|
|
985
|
-
canAccept: {
|
|
986
|
-
type: "boolean",
|
|
987
|
-
const: !1
|
|
988
|
-
},
|
|
989
|
-
fixed: {
|
|
990
|
-
type: "boolean",
|
|
991
|
-
const: !1
|
|
992
|
-
},
|
|
993
|
-
hidePadding: {
|
|
994
|
-
type: "boolean",
|
|
995
|
-
const: !0
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
},
|
|
1001
|
-
"f-struct-wrapper": {
|
|
1002
|
-
description: "",
|
|
1003
|
-
type: "object",
|
|
1004
|
-
properties: {
|
|
1005
|
-
contents: {
|
|
1006
|
-
type: "object",
|
|
1007
|
-
properties: {
|
|
1008
|
-
"f-section-tabs": {
|
|
1009
|
-
description: "The class of section which has wrapped sub-grid tabs.",
|
|
1010
|
-
type: "object",
|
|
1011
|
-
properties: {
|
|
1012
|
-
contents: {
|
|
1013
|
-
type: "object",
|
|
1014
|
-
properties: {
|
|
1015
|
-
"f-tabs-in-card": {
|
|
1016
|
-
description: "The class of tabs which contains sub-grid.",
|
|
1017
|
-
type: "object",
|
|
1018
|
-
properties: {
|
|
1019
|
-
contents: {
|
|
1020
|
-
type: "object",
|
|
1021
|
-
properties: {
|
|
1022
|
-
"f-struct-data-grid-in-card": {
|
|
1023
|
-
description: "The class of sub-grid component",
|
|
1024
|
-
type: "object",
|
|
1025
|
-
properties: {
|
|
1026
|
-
contents: {
|
|
1027
|
-
type: "object",
|
|
1028
|
-
properties: {
|
|
1029
|
-
"f-grid-is-sub": {
|
|
1030
|
-
description: "The class of sub-grid",
|
|
1031
|
-
type: "object",
|
|
1032
|
-
properties: {
|
|
1033
|
-
rules: {
|
|
1034
|
-
type: "object",
|
|
1035
|
-
properties: {
|
|
1036
|
-
canAccept: {
|
|
1037
|
-
type: "boolean",
|
|
1038
|
-
const: !0
|
|
1039
|
-
},
|
|
1040
|
-
fixed: {
|
|
1041
|
-
type: "boolean",
|
|
1042
|
-
const: !0
|
|
1043
|
-
},
|
|
1044
|
-
hidePadding: {
|
|
1045
|
-
type: "boolean",
|
|
1046
|
-
const: !1
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
rules: {
|
|
1055
|
-
type: "object",
|
|
1056
|
-
properties: {
|
|
1057
|
-
canAccept: {
|
|
1058
|
-
type: "boolean",
|
|
1059
|
-
const: !1
|
|
1060
|
-
},
|
|
1061
|
-
fixed: {
|
|
1062
|
-
type: "boolean",
|
|
1063
|
-
const: !1
|
|
1064
|
-
},
|
|
1065
|
-
hidePadding: {
|
|
1066
|
-
type: "boolean",
|
|
1067
|
-
const: !0
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
},
|
|
1075
|
-
rules: {
|
|
1076
|
-
type: "object",
|
|
1077
|
-
properties: {
|
|
1078
|
-
canAccept: {
|
|
1079
|
-
type: "boolean",
|
|
1080
|
-
const: !1
|
|
1081
|
-
},
|
|
1082
|
-
fixed: {
|
|
1083
|
-
type: "boolean",
|
|
1084
|
-
const: !0
|
|
1085
|
-
},
|
|
1086
|
-
hidePadding: {
|
|
1087
|
-
type: "boolean",
|
|
1088
|
-
const: !0
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
},
|
|
1096
|
-
rules: {
|
|
1097
|
-
type: "object",
|
|
1098
|
-
properties: {
|
|
1099
|
-
canAccept: {
|
|
1100
|
-
type: "boolean",
|
|
1101
|
-
const: !1
|
|
1102
|
-
},
|
|
1103
|
-
fixed: {
|
|
1104
|
-
type: "boolean",
|
|
1105
|
-
const: !0
|
|
1106
|
-
},
|
|
1107
|
-
hidePadding: {
|
|
1108
|
-
type: "boolean",
|
|
1109
|
-
const: !0
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
},
|
|
1115
|
-
"f-section-in-main": {
|
|
1116
|
-
description: "The class of section which has wrapped a reponse-form component.",
|
|
1117
|
-
type: "object",
|
|
1118
|
-
properties: {
|
|
1119
|
-
rules: {
|
|
1120
|
-
type: "object",
|
|
1121
|
-
properties: {
|
|
1122
|
-
canAccept: {
|
|
1123
|
-
type: "boolean",
|
|
1124
|
-
const: !0
|
|
1125
|
-
},
|
|
1126
|
-
fixed: {
|
|
1127
|
-
type: "boolean",
|
|
1128
|
-
const: !0
|
|
1129
|
-
},
|
|
1130
|
-
hidePadding: {
|
|
1131
|
-
type: "boolean",
|
|
1132
|
-
const: !1
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
},
|
|
1140
|
-
rules: {
|
|
1141
|
-
type: "object",
|
|
1142
|
-
properties: {
|
|
1143
|
-
canAccept: {
|
|
1144
|
-
type: "boolean",
|
|
1145
|
-
const: !1
|
|
1146
|
-
},
|
|
1147
|
-
fixed: {
|
|
1148
|
-
type: "boolean",
|
|
1149
|
-
const: !1
|
|
1150
|
-
},
|
|
1151
|
-
hidePadding: {
|
|
1152
|
-
type: "boolean",
|
|
1153
|
-
const: !0
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
},
|
|
1161
|
-
rules: {
|
|
1162
|
-
type: "object",
|
|
1163
|
-
properties: {
|
|
1164
|
-
canAccept: {
|
|
1165
|
-
type: "boolean",
|
|
1166
|
-
const: !0
|
|
1167
|
-
},
|
|
1168
|
-
fixed: {
|
|
1169
|
-
type: "boolean",
|
|
1170
|
-
const: !0
|
|
1171
|
-
},
|
|
1172
|
-
hidePadding: {
|
|
1173
|
-
type: "object",
|
|
1174
|
-
const: {
|
|
1175
|
-
allOf: [
|
|
1176
|
-
{
|
|
1177
|
-
sibling: 0,
|
|
1178
|
-
parent: {
|
|
1179
|
-
"f-page-main": !0
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
]
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
},
|
|
1189
|
-
"f-struct-data-grid": {
|
|
1190
|
-
description: "",
|
|
1191
|
-
type: "object",
|
|
1192
|
-
properties: {
|
|
1193
|
-
rules: {
|
|
1194
|
-
type: "object",
|
|
1195
|
-
properties: {
|
|
1196
|
-
canAccept: {
|
|
1197
|
-
type: "object",
|
|
1198
|
-
const: !0
|
|
1199
|
-
},
|
|
1200
|
-
fixed: {
|
|
1201
|
-
type: "boolean",
|
|
1202
|
-
const: !0
|
|
1203
|
-
},
|
|
1204
|
-
hidePadding: {
|
|
1205
|
-
type: "boolean",
|
|
1206
|
-
const: !0
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
},
|
|
1212
|
-
"f-page-main-content": {
|
|
1213
|
-
description: "",
|
|
1214
|
-
type: "object",
|
|
1215
|
-
properties: {
|
|
1216
|
-
contents: {
|
|
1217
|
-
type: "object",
|
|
1218
|
-
properties: {
|
|
1219
|
-
"f-page-content-nav": {
|
|
1220
|
-
description: "",
|
|
1221
|
-
type: "object",
|
|
1222
|
-
properties: {
|
|
1223
|
-
contents: {
|
|
1224
|
-
type: "object",
|
|
1225
|
-
properties: {
|
|
1226
|
-
"f-struct-data-grid-in-nav": {
|
|
1227
|
-
description: "",
|
|
1228
|
-
type: "object",
|
|
1229
|
-
properties: {
|
|
1230
|
-
contents: {
|
|
1231
|
-
type: "object",
|
|
1232
|
-
properties: {
|
|
1233
|
-
"f-page-content-nav-extend": {
|
|
1234
|
-
description: "",
|
|
1235
|
-
type: "object"
|
|
1236
|
-
},
|
|
1237
|
-
"f-section-in-nav": {
|
|
1238
|
-
description: "",
|
|
1239
|
-
type: "object",
|
|
1240
|
-
properties: {
|
|
1241
|
-
rules: {
|
|
1242
|
-
type: "object",
|
|
1243
|
-
properties: {
|
|
1244
|
-
canAccept: {
|
|
1245
|
-
type: "boolean",
|
|
1246
|
-
const: !1
|
|
1247
|
-
},
|
|
1248
|
-
fixed: {
|
|
1249
|
-
type: "boolean",
|
|
1250
|
-
const: !0
|
|
1251
|
-
},
|
|
1252
|
-
hidePadding: {
|
|
1253
|
-
type: "boolean",
|
|
1254
|
-
const: !1
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
},
|
|
1262
|
-
rules: {
|
|
1263
|
-
type: "object",
|
|
1264
|
-
properties: {
|
|
1265
|
-
canAccept: {
|
|
1266
|
-
type: "boolean",
|
|
1267
|
-
const: !0
|
|
1268
|
-
},
|
|
1269
|
-
fixed: {
|
|
1270
|
-
type: "boolean",
|
|
1271
|
-
const: !1
|
|
1272
|
-
},
|
|
1273
|
-
hidePadding: {
|
|
1274
|
-
type: "boolean",
|
|
1275
|
-
const: !0
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
},
|
|
1285
|
-
"f-page-content-main": {
|
|
1286
|
-
description: "",
|
|
1287
|
-
type: "object",
|
|
1288
|
-
properties: {}
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
},
|
|
1294
|
-
"f-page-content": {
|
|
1295
|
-
description: "",
|
|
1296
|
-
type: "object",
|
|
1297
|
-
properties: {
|
|
1298
|
-
contents: {
|
|
1299
|
-
type: "object",
|
|
1300
|
-
properties: {
|
|
1301
|
-
"f-page-content-nav": {
|
|
1302
|
-
description: "",
|
|
1303
|
-
type: "object",
|
|
1304
|
-
properties: {
|
|
1305
|
-
contents: {
|
|
1306
|
-
type: "object",
|
|
1307
|
-
properties: {
|
|
1308
|
-
"f-list-nav": {
|
|
1309
|
-
description: "",
|
|
1310
|
-
type: "object"
|
|
1311
|
-
},
|
|
1312
|
-
"f-list-nav-left": {
|
|
1313
|
-
description: "",
|
|
1314
|
-
type: "object"
|
|
1315
|
-
},
|
|
1316
|
-
"f-struct-data-grid-in-nav": {
|
|
1317
|
-
description: "",
|
|
1318
|
-
type: "object",
|
|
1319
|
-
properties: {
|
|
1320
|
-
contents: {
|
|
1321
|
-
type: "object",
|
|
1322
|
-
properties: {
|
|
1323
|
-
"f-section-form": {
|
|
1324
|
-
description: "",
|
|
1325
|
-
type: "object",
|
|
1326
|
-
properties: {
|
|
1327
|
-
rules: {
|
|
1328
|
-
type: "object",
|
|
1329
|
-
properties: {
|
|
1330
|
-
canAccept: {
|
|
1331
|
-
type: "boolean",
|
|
1332
|
-
const: !1
|
|
1333
|
-
},
|
|
1334
|
-
fixed: {
|
|
1335
|
-
type: "boolean",
|
|
1336
|
-
const: !0
|
|
1337
|
-
},
|
|
1338
|
-
hidePadding: {
|
|
1339
|
-
type: "boolean",
|
|
1340
|
-
const: !0
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
},
|
|
1346
|
-
"f-section-grid": {
|
|
1347
|
-
description: "",
|
|
1348
|
-
type: "object",
|
|
1349
|
-
properties: {
|
|
1350
|
-
rules: {
|
|
1351
|
-
type: "object",
|
|
1352
|
-
properties: {
|
|
1353
|
-
canAccept: {
|
|
1354
|
-
type: "boolean",
|
|
1355
|
-
const: !1
|
|
1356
|
-
},
|
|
1357
|
-
fixed: {
|
|
1358
|
-
type: "boolean",
|
|
1359
|
-
const: !0
|
|
1360
|
-
},
|
|
1361
|
-
hidePadding: {
|
|
1362
|
-
type: "boolean",
|
|
1363
|
-
const: !0
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
},
|
|
1371
|
-
rules: {
|
|
1372
|
-
type: "object",
|
|
1373
|
-
properties: {
|
|
1374
|
-
canAccept: {
|
|
1375
|
-
type: "boolean",
|
|
1376
|
-
const: !1
|
|
1377
|
-
},
|
|
1378
|
-
fixed: {
|
|
1379
|
-
type: "boolean",
|
|
1380
|
-
const: !0
|
|
1381
|
-
},
|
|
1382
|
-
hidePadding: {
|
|
1383
|
-
type: "boolean",
|
|
1384
|
-
const: !0
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
},
|
|
1393
|
-
rules: {
|
|
1394
|
-
type: "object",
|
|
1395
|
-
properties: {
|
|
1396
|
-
canAccept: {
|
|
1397
|
-
type: "boolean",
|
|
1398
|
-
const: !1
|
|
1399
|
-
},
|
|
1400
|
-
fixed: {
|
|
1401
|
-
type: "boolean",
|
|
1402
|
-
const: !0
|
|
1403
|
-
},
|
|
1404
|
-
hidePadding: {
|
|
1405
|
-
type: "boolean",
|
|
1406
|
-
const: !0
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
"f-page-content-main": {
|
|
1412
|
-
description: "",
|
|
1413
|
-
type: "object",
|
|
1414
|
-
properties: {
|
|
1415
|
-
rules: {
|
|
1416
|
-
type: "object",
|
|
1417
|
-
properties: {
|
|
1418
|
-
canAccept: {
|
|
1419
|
-
type: "boolean",
|
|
1420
|
-
const: !1
|
|
1421
|
-
},
|
|
1422
|
-
fixed: {
|
|
1423
|
-
type: "boolean",
|
|
1424
|
-
const: !1
|
|
1425
|
-
},
|
|
1426
|
-
hidePadding: {
|
|
1427
|
-
type: "boolean",
|
|
1428
|
-
const: !0
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
}
|
|
1435
|
-
},
|
|
1436
|
-
rules: {
|
|
1437
|
-
type: "object",
|
|
1438
|
-
properties: {
|
|
1439
|
-
canAccept: {
|
|
1440
|
-
type: "boolean",
|
|
1441
|
-
const: !1
|
|
1442
|
-
},
|
|
1443
|
-
fixed: {
|
|
1444
|
-
type: "boolean",
|
|
1445
|
-
const: !0
|
|
1446
|
-
},
|
|
1447
|
-
hidePadding: {
|
|
1448
|
-
type: "boolean",
|
|
1449
|
-
const: !0
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
},
|
|
1457
|
-
rules: {
|
|
1458
|
-
type: "object",
|
|
1459
|
-
properties: {
|
|
1460
|
-
canAccept: {
|
|
1461
|
-
type: "object",
|
|
1462
|
-
const: {
|
|
1463
|
-
anyOf: [
|
|
1464
|
-
{
|
|
1465
|
-
children: 0
|
|
1466
|
-
},
|
|
1467
|
-
{
|
|
1468
|
-
children: {
|
|
1469
|
-
length: {
|
|
1470
|
-
not: 1
|
|
1471
|
-
},
|
|
1472
|
-
"f-struct-like-card": !0
|
|
1473
|
-
}
|
|
1474
|
-
},
|
|
1475
|
-
{
|
|
1476
|
-
children: {
|
|
1477
|
-
"scroll-spy": !1,
|
|
1478
|
-
"f-page-content": !1,
|
|
1479
|
-
"f-struct-like-card": !1
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
]
|
|
1483
|
-
}
|
|
1484
|
-
},
|
|
1485
|
-
fixed: {
|
|
1486
|
-
type: "boolean",
|
|
1487
|
-
const: !0
|
|
1488
|
-
},
|
|
1489
|
-
hidePadding: {
|
|
1490
|
-
type: "boolean",
|
|
1491
|
-
const: !0
|
|
1492
|
-
}
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
},
|
|
1497
|
-
"f-page-footer": {
|
|
1498
|
-
description: "The class of page footer designed by farris.",
|
|
1499
|
-
type: "string"
|
|
922
|
+
class He {
|
|
923
|
+
getTemplateRule(e, t) {
|
|
924
|
+
const r = t == null ? void 0 : t.formSchemaUtils, i = r == null ? void 0 : r.getFormTemplateRule(), a = { canAccept: !0, canDelete: !0, canMove: !0 };
|
|
925
|
+
if (!i)
|
|
926
|
+
return a;
|
|
927
|
+
const s = this.getComponentContext(e);
|
|
928
|
+
return s.componentClassList.forEach((d) => {
|
|
929
|
+
if (!d || !i[d])
|
|
930
|
+
return;
|
|
931
|
+
const { canMove: l, canDelete: c, canAccept: o } = i[d];
|
|
932
|
+
a.canMove = a.canMove && this.resolveRuleValue(l, s), a.canDelete = a.canDelete && this.resolveRuleValue(c, s), a.canAccept = a.canAccept && this.resolveRuleValue(o, s);
|
|
933
|
+
}), a;
|
|
934
|
+
}
|
|
935
|
+
resolveRuleValue(e, t) {
|
|
936
|
+
return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
|
|
937
|
+
}
|
|
938
|
+
parseRuleValueSchema(e, t) {
|
|
939
|
+
const r = e.invalidContext || [];
|
|
940
|
+
let i = !0;
|
|
941
|
+
for (const a of r) {
|
|
942
|
+
if (a.firstLevelChild) {
|
|
943
|
+
if (a.firstLevelChild.class) {
|
|
944
|
+
const s = t.firstLevelChildClassList;
|
|
945
|
+
if (s && !s.includes(a.firstLevelChild.class)) {
|
|
946
|
+
i = !1;
|
|
947
|
+
continue;
|
|
1500
948
|
}
|
|
1501
949
|
}
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
type: "boolean",
|
|
1508
|
-
const: !1
|
|
1509
|
-
},
|
|
1510
|
-
fixed: {
|
|
1511
|
-
type: "boolean",
|
|
1512
|
-
const: !0
|
|
1513
|
-
},
|
|
1514
|
-
hidePadding: {
|
|
1515
|
-
type: "boolean",
|
|
1516
|
-
const: !0
|
|
950
|
+
if (a.firstLevelChild.type) {
|
|
951
|
+
const s = t.firstLevelChildSchema;
|
|
952
|
+
if (s && s.type !== a.firstLevelChild.type) {
|
|
953
|
+
i = !1;
|
|
954
|
+
continue;
|
|
1517
955
|
}
|
|
1518
956
|
}
|
|
1519
957
|
}
|
|
958
|
+
if (a.secondLevelChild) {
|
|
959
|
+
if (a.secondLevelChild.class) {
|
|
960
|
+
const s = t.secondLevelChildClassList;
|
|
961
|
+
if (s && !s.includes(a.secondLevelChild.class)) {
|
|
962
|
+
i = !1;
|
|
963
|
+
continue;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
if (a.secondLevelChild.type) {
|
|
967
|
+
const s = t.secondLevelChildSchema;
|
|
968
|
+
if (s && s.type !== a.secondLevelChild.type) {
|
|
969
|
+
i = !1;
|
|
970
|
+
continue;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
if (a.parent) {
|
|
975
|
+
if (a.parent.class) {
|
|
976
|
+
const s = t.parentClassList;
|
|
977
|
+
if (s && !s.includes(a.parent.class)) {
|
|
978
|
+
i = !1;
|
|
979
|
+
continue;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
if (a.parent.type) {
|
|
983
|
+
const s = t.parentSchema;
|
|
984
|
+
if (s && s.type !== a.parent.type) {
|
|
985
|
+
i = !1;
|
|
986
|
+
continue;
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
i = !0;
|
|
991
|
+
break;
|
|
1520
992
|
}
|
|
1521
|
-
|
|
1522
|
-
"f-page-is-managelist": {
|
|
1523
|
-
description: "The root class of mangement list page.",
|
|
1524
|
-
type: "string"
|
|
1525
|
-
},
|
|
1526
|
-
"f-page-card": {
|
|
1527
|
-
description: "",
|
|
1528
|
-
type: "object"
|
|
1529
|
-
},
|
|
1530
|
-
"f-page-is-mainsubcard": {
|
|
1531
|
-
description: "",
|
|
1532
|
-
type: "object"
|
|
1533
|
-
}
|
|
1534
|
-
}, Ct = {
|
|
1535
|
-
$schema: yt,
|
|
1536
|
-
$id: ht,
|
|
1537
|
-
title: bt,
|
|
1538
|
-
description: mt,
|
|
1539
|
-
type: vt,
|
|
1540
|
-
properties: gt
|
|
1541
|
-
}, z = /* @__PURE__ */ new Map();
|
|
1542
|
-
function jt() {
|
|
1543
|
-
function n(p, c, u, m) {
|
|
1544
|
-
var A;
|
|
1545
|
-
if (typeof u == "number")
|
|
1546
|
-
return ((A = m[p]) == null ? void 0 : A.length) === u;
|
|
1547
|
-
if (typeof u == "object") {
|
|
1548
|
-
const C = Object.keys(u)[0], j = u[C];
|
|
1549
|
-
if (C === "not")
|
|
1550
|
-
return Number(m[p].length) !== Number(j);
|
|
1551
|
-
if (C === "moreThan")
|
|
1552
|
-
return Number(m[p].length) >= Number(j);
|
|
1553
|
-
if (C === "lessThan")
|
|
1554
|
-
return Number(m[p].length) <= Number(j);
|
|
1555
|
-
}
|
|
1556
|
-
return !1;
|
|
993
|
+
return !i;
|
|
1557
994
|
}
|
|
1558
|
-
|
|
1559
|
-
|
|
995
|
+
getComponentContext(e) {
|
|
996
|
+
var u, v, C, h;
|
|
997
|
+
const t = e.schema, r = t.appearance && t.appearance.class || "", i = r.split(" ") || [], a = t.contents || [], s = a.length ? a[0] : null, f = s && s.appearance ? s.appearance.class : "", d = f ? f.split(" ") : [], l = (u = s == null ? void 0 : s.contents) != null && u.length ? s == null ? void 0 : s.contents[0] : null, c = l && l.appearance ? l.appearance.class : "", o = c ? c.split(" ") : [], p = t.type === "component" ? (C = (v = e.parent) == null ? void 0 : v.parent) == null ? void 0 : C.schema : (h = e.parent) == null ? void 0 : h.schema, m = p && p.appearance && p.appearance.class || "", y = m ? m.split(" ") : [];
|
|
998
|
+
return {
|
|
999
|
+
componentClass: r,
|
|
1000
|
+
componentClassList: i,
|
|
1001
|
+
childContents: a,
|
|
1002
|
+
firstLevelChildSchema: s,
|
|
1003
|
+
firstLevelChildClass: f,
|
|
1004
|
+
firstLevelChildClassList: d,
|
|
1005
|
+
secondLevelChildSchema: l,
|
|
1006
|
+
secondLevelChildClass: c,
|
|
1007
|
+
secondLevelChildClassList: o,
|
|
1008
|
+
parentSchema: p,
|
|
1009
|
+
parentClass: m,
|
|
1010
|
+
parentClassList: y
|
|
1011
|
+
};
|
|
1560
1012
|
}
|
|
1561
|
-
|
|
1562
|
-
|
|
1013
|
+
}
|
|
1014
|
+
class et {
|
|
1015
|
+
constructor(e, t) {
|
|
1016
|
+
M(this, "componentId");
|
|
1017
|
+
M(this, "viewModelId");
|
|
1018
|
+
M(this, "eventsEditorUtils");
|
|
1019
|
+
M(this, "formSchemaUtils");
|
|
1020
|
+
M(this, "formMetadataConverter");
|
|
1021
|
+
M(this, "designViewModelUtils");
|
|
1022
|
+
M(this, "designViewModelField");
|
|
1023
|
+
M(this, "controlCreatorUtils");
|
|
1024
|
+
M(this, "designerHostService");
|
|
1025
|
+
M(this, "schemaService", null);
|
|
1026
|
+
M(this, "metadataService", null);
|
|
1027
|
+
M(this, "propertyConfig", {
|
|
1028
|
+
type: "object",
|
|
1029
|
+
categories: {}
|
|
1030
|
+
});
|
|
1031
|
+
var r;
|
|
1032
|
+
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;
|
|
1563
1033
|
}
|
|
1564
|
-
|
|
1565
|
-
|
|
1034
|
+
getTableInfo() {
|
|
1035
|
+
var e;
|
|
1036
|
+
return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
|
|
1037
|
+
}
|
|
1038
|
+
setDesignViewModelField(e) {
|
|
1039
|
+
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
1040
|
+
if (t) {
|
|
1041
|
+
if (!this.designViewModelField) {
|
|
1042
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1043
|
+
this.designViewModelField = r.fields.find((i) => i.id === t);
|
|
1044
|
+
}
|
|
1045
|
+
e.updateOn = this.designViewModelField.updateOn;
|
|
1046
|
+
}
|
|
1566
1047
|
}
|
|
1567
|
-
|
|
1568
|
-
["length", n],
|
|
1569
|
-
["hasChildren", t],
|
|
1570
|
-
["hasSibling", r],
|
|
1571
|
-
["hasParent", e]
|
|
1572
|
-
]);
|
|
1573
|
-
function s(p, c) {
|
|
1574
|
-
const u = p;
|
|
1575
|
-
return typeof c == "number" ? [{ target: u, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((m) => {
|
|
1576
|
-
if (m === "length")
|
|
1577
|
-
return { target: u, operator: "length", param: null, value: c[m] };
|
|
1578
|
-
const A = m, C = c[m];
|
|
1579
|
-
return { target: u, operator: p === "children" ? "hasChildren" : p === "parent" ? "hasParent" : "hasSibling", param: A, value: C };
|
|
1580
|
-
}) : [];
|
|
1048
|
+
changeFieldEditorType(e, t) {
|
|
1581
1049
|
}
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1050
|
+
getBasicPropConfig(e) {
|
|
1051
|
+
return {
|
|
1052
|
+
description: "Basic Information",
|
|
1053
|
+
title: "基本信息",
|
|
1054
|
+
properties: {
|
|
1055
|
+
id: {
|
|
1056
|
+
description: "组件标识",
|
|
1057
|
+
title: "标识",
|
|
1058
|
+
type: "string",
|
|
1059
|
+
readonly: !0
|
|
1060
|
+
},
|
|
1061
|
+
type: {
|
|
1062
|
+
description: "组件类型",
|
|
1063
|
+
title: "控件类型",
|
|
1064
|
+
type: "select",
|
|
1065
|
+
editor: {
|
|
1066
|
+
type: "combo-list",
|
|
1067
|
+
textField: "name",
|
|
1068
|
+
valueField: "value",
|
|
1069
|
+
data: [{ value: e.type, name: k[e.type].name }]
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1588
1074
|
}
|
|
1589
|
-
|
|
1590
|
-
return
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
const C = p.properties[A];
|
|
1608
|
-
return m[A] = a(C, c), m;
|
|
1609
|
-
}, u), u;
|
|
1075
|
+
getAppearanceConfig(e = null) {
|
|
1076
|
+
return {
|
|
1077
|
+
title: "样式",
|
|
1078
|
+
description: "Appearance",
|
|
1079
|
+
properties: {
|
|
1080
|
+
class: {
|
|
1081
|
+
title: "class样式",
|
|
1082
|
+
type: "string",
|
|
1083
|
+
description: "组件的CSS样式",
|
|
1084
|
+
$converter: "/converter/appearance.converter"
|
|
1085
|
+
},
|
|
1086
|
+
style: {
|
|
1087
|
+
title: "style样式",
|
|
1088
|
+
type: "string",
|
|
1089
|
+
description: "组件的样式",
|
|
1090
|
+
$converter: "/converter/appearance.converter"
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1610
1093
|
};
|
|
1611
1094
|
}
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1095
|
+
/**
|
|
1096
|
+
*
|
|
1097
|
+
* @param propertyId
|
|
1098
|
+
* @param componentInstance
|
|
1099
|
+
* @returns
|
|
1100
|
+
*/
|
|
1101
|
+
updateElementByParentContainer(e, t) {
|
|
1102
|
+
const r = t && t.parent && t.parent.schema;
|
|
1103
|
+
if (!r)
|
|
1104
|
+
return;
|
|
1105
|
+
const i = r.contents.findIndex((s) => s.id === e), a = ee(r.contents[i]);
|
|
1106
|
+
r.contents.splice(i, 1), r.contents.splice(i, 0, a);
|
|
1619
1107
|
}
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1108
|
+
}
|
|
1109
|
+
class tt {
|
|
1110
|
+
constructor() {
|
|
1111
|
+
/** 控件标题 */
|
|
1112
|
+
M(this, "label", "");
|
|
1113
|
+
/** 控件id */
|
|
1114
|
+
M(this, "id", "");
|
|
1115
|
+
/** 每个控件占用的栅格数 */
|
|
1116
|
+
M(this, "columnInSM", 12);
|
|
1117
|
+
M(this, "columnInMD", 6);
|
|
1118
|
+
M(this, "columnInLG", 3);
|
|
1119
|
+
M(this, "columnInEL", 2);
|
|
1120
|
+
/** 每个控件占用的列数 */
|
|
1121
|
+
M(this, "displayWidthInSM", 1);
|
|
1122
|
+
M(this, "displayWidthInMD", 1);
|
|
1123
|
+
M(this, "displayWidthInLG", 1);
|
|
1124
|
+
M(this, "displayWidthInEL", 1);
|
|
1125
|
+
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
1126
|
+
M(this, "displayColumnCountAtBreakPoint", "md");
|
|
1127
|
+
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
1128
|
+
M(this, "tagRow", 0);
|
|
1129
|
+
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
1130
|
+
M(this, "showTopBorder", 0);
|
|
1131
|
+
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
1132
|
+
M(this, "group", 1);
|
|
1133
|
+
/** 控件是否符合标准的class配置(设计器用的) */
|
|
1134
|
+
M(this, "isSupportedClass", !0);
|
|
1135
|
+
/** 控件所在分组id(设计器用的) */
|
|
1136
|
+
M(this, "fieldSetId", "");
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
function nt(n) {
|
|
1140
|
+
let e, t;
|
|
1141
|
+
const r = /* @__PURE__ */ new Map();
|
|
1142
|
+
let i = [];
|
|
1143
|
+
function a(c, o) {
|
|
1144
|
+
const m = c.split(" ").filter((h) => h.startsWith("col-"));
|
|
1145
|
+
if (m.length === 0) {
|
|
1146
|
+
o.isSupportedClass = !1;
|
|
1147
|
+
return;
|
|
1148
|
+
}
|
|
1149
|
+
let y = m.find((h) => /^col-([1-9]|10|11|12)$/.test(h)), u = m.find((h) => /^col-md-([1-9]|10|11|12)$/.test(h)), v = m.find((h) => /^col-xl-([1-9]|10|11|12)$/.test(h)), C = m.find((h) => /^col-el-([1-9]|10|11|12)$/.test(h));
|
|
1150
|
+
y = y || "col-12", o.columnInSM = parseInt(y.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), u = u || "col-md-" + o.columnInSM, o.columnInMD = parseInt(u.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), v = v || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(v.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), C = C || "col-el-" + o.columnInLG, o.columnInEL = parseInt(C.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
|
|
1151
|
+
}
|
|
1152
|
+
function s(c, o, p, m = !1) {
|
|
1153
|
+
let y = !1;
|
|
1154
|
+
c.contents.forEach((u) => {
|
|
1155
|
+
if (u.type === "fieldset") {
|
|
1156
|
+
p += 1, s(u, o, p, !0), y = !0;
|
|
1157
|
+
return;
|
|
1158
|
+
}
|
|
1159
|
+
y && (p += 1, y = !1);
|
|
1160
|
+
const v = u.appearance && u.appearance.class, C = new tt();
|
|
1161
|
+
v ? a(v, C) : C.isSupportedClass = !1, C.label = u.label || u.id, C.id = u.id, C.group = p, m && (C.fieldSetId = c.id), t === u.id && (e = p), r.set(u.id, u), o.push(C);
|
|
1624
1162
|
});
|
|
1625
1163
|
}
|
|
1626
|
-
function
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1164
|
+
function f(c) {
|
|
1165
|
+
const o = n.getComponentById(c);
|
|
1166
|
+
if (!o || !o.componentType || !o.componentType.startsWith("form"))
|
|
1167
|
+
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
1168
|
+
const p = n.selectNode(o, (m) => m.type === V["response-form"].type);
|
|
1169
|
+
return !p || !p.contents || p.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: p };
|
|
1170
|
+
}
|
|
1171
|
+
function d(c, o) {
|
|
1172
|
+
o = o || c.id;
|
|
1173
|
+
const { result: p, message: m, formNode: y } = f(o);
|
|
1174
|
+
if (!p)
|
|
1175
|
+
return { result: p, message: m };
|
|
1176
|
+
t = c.id, i = [], r.clear();
|
|
1177
|
+
const u = y.contents[0].type === V.fieldset.type ? 0 : 1;
|
|
1178
|
+
s(y, i, u);
|
|
1179
|
+
const v = i.find((h) => !h.isSupportedClass);
|
|
1180
|
+
return {
|
|
1181
|
+
defaultState: {
|
|
1182
|
+
defaultGroupNumber: e || 1,
|
|
1183
|
+
model: v ? "customize" : "standard"
|
|
1184
|
+
},
|
|
1185
|
+
importData: i
|
|
1186
|
+
};
|
|
1187
|
+
}
|
|
1188
|
+
function l(c, o) {
|
|
1189
|
+
o = o;
|
|
1190
|
+
const { result: p, formNode: m } = f(o);
|
|
1191
|
+
if (!p)
|
|
1192
|
+
return "";
|
|
1193
|
+
const y = [];
|
|
1194
|
+
return c.forEach((u) => {
|
|
1195
|
+
var h;
|
|
1196
|
+
const v = r.get(u.id), C = v.appearance && v.appearance.class;
|
|
1197
|
+
if (C) {
|
|
1198
|
+
const D = C.split(" ").filter((se) => !se.startsWith("col-")), b = "col-" + u.columnInSM, S = "col-md-" + u.columnInMD, w = "col-xl-" + u.columnInLG, E = "col-el-" + u.columnInEL, A = [b, S, w, E].concat(D);
|
|
1199
|
+
v.appearance.class = A.join(" ");
|
|
1200
|
+
}
|
|
1201
|
+
if (u.fieldSetId) {
|
|
1202
|
+
const g = m.contents.find((b) => b.id === u.fieldSetId), D = y.find((b) => b.id === u.fieldSetId);
|
|
1203
|
+
D ? (h = D.contents) == null || h.push(v) : (y.push(g), g.contents = [v]);
|
|
1204
|
+
} else
|
|
1205
|
+
y.push(v);
|
|
1206
|
+
}), m.contents = y, m.id;
|
|
1629
1207
|
}
|
|
1630
|
-
return
|
|
1208
|
+
return {
|
|
1209
|
+
checkCanFindFormNode: f,
|
|
1210
|
+
checkCanOpenLayoutEditor: d,
|
|
1211
|
+
changeFormControlsByResponseLayoutConfig: l,
|
|
1212
|
+
getResonseFormLayoutConfig: s
|
|
1213
|
+
};
|
|
1631
1214
|
}
|
|
1632
|
-
function
|
|
1633
|
-
function
|
|
1634
|
-
if (
|
|
1635
|
-
const
|
|
1636
|
-
return n.selectNode(
|
|
1637
|
-
}
|
|
1638
|
-
function r(
|
|
1639
|
-
const
|
|
1640
|
-
return !(!
|
|
1641
|
-
}
|
|
1642
|
-
function
|
|
1643
|
-
const
|
|
1644
|
-
|
|
1645
|
-
const
|
|
1215
|
+
function rt(n, e) {
|
|
1216
|
+
function t(d, l = null) {
|
|
1217
|
+
if (l) return l;
|
|
1218
|
+
const c = n.getComponentById(e);
|
|
1219
|
+
return n.selectNode(c, (o) => o.id === d);
|
|
1220
|
+
}
|
|
1221
|
+
function r(d) {
|
|
1222
|
+
const l = n.getComponentById(d);
|
|
1223
|
+
return !(!l || !l.componentType || !l.componentType.startsWith("form"));
|
|
1224
|
+
}
|
|
1225
|
+
function i(d) {
|
|
1226
|
+
const l = t(d.id), c = nt(n), o = [];
|
|
1227
|
+
c.getResonseFormLayoutConfig(l, o, 1);
|
|
1228
|
+
const p = o.map((D) => D.columnInSM), m = o.map((D) => D.columnInMD), y = o.map((D) => D.columnInLG), u = o.map((D) => D.columnInEL), v = a(p) ? p[0] : 0, C = a(m) ? m[0] : 0, h = a(y) ? y[0] : 0, g = a(u) ? u[0] : 0;
|
|
1646
1229
|
return {
|
|
1647
|
-
uniqueColClassInSM:
|
|
1648
|
-
uniqueColClassInMD:
|
|
1649
|
-
uniqueColClassInLG:
|
|
1650
|
-
uniqueColClassInEL:
|
|
1230
|
+
uniqueColClassInSM: v,
|
|
1231
|
+
uniqueColClassInMD: C,
|
|
1232
|
+
uniqueColClassInLG: h,
|
|
1233
|
+
uniqueColClassInEL: g
|
|
1651
1234
|
};
|
|
1652
1235
|
}
|
|
1653
|
-
function
|
|
1654
|
-
const
|
|
1655
|
-
return Array.from(
|
|
1236
|
+
function a(d) {
|
|
1237
|
+
const l = new Set(d);
|
|
1238
|
+
return Array.from(l).length === 1;
|
|
1656
1239
|
}
|
|
1657
|
-
function
|
|
1658
|
-
|
|
1659
|
-
if (
|
|
1660
|
-
|
|
1240
|
+
function s(d, l, c) {
|
|
1241
|
+
d = t(c, d), d.contents.forEach((o) => {
|
|
1242
|
+
if (o.type === V.fieldset.type) {
|
|
1243
|
+
s(o, l, o.id);
|
|
1661
1244
|
return;
|
|
1662
1245
|
}
|
|
1663
|
-
|
|
1664
|
-
const
|
|
1665
|
-
|
|
1246
|
+
o.appearance || (o.appearance = {});
|
|
1247
|
+
const p = o.appearance.class;
|
|
1248
|
+
o.appearance.class = f(p, l);
|
|
1666
1249
|
});
|
|
1667
1250
|
}
|
|
1668
|
-
function d
|
|
1669
|
-
let
|
|
1670
|
-
if (
|
|
1671
|
-
const
|
|
1672
|
-
|
|
1251
|
+
function f(d, l) {
|
|
1252
|
+
let c, o, p, m, y = [];
|
|
1253
|
+
if (d) {
|
|
1254
|
+
const D = d.split(" "), b = D.filter((S) => S.startsWith("col-"));
|
|
1255
|
+
c = b.find((S) => /^col-([1-9]|10|11|12)$/.test(S)), o = b.find((S) => /^col-md-([1-9]|10|11|12)$/.test(S)), p = b.find((S) => /^col-xl-([1-9]|10|11|12)$/.test(S)), m = b.find((S) => /^col-el-([1-9]|10|11|12)$/.test(S)), y = D.filter((S) => !S.startsWith("col-"));
|
|
1673
1256
|
}
|
|
1674
|
-
const
|
|
1675
|
-
return [
|
|
1257
|
+
const u = l.uniqueColClassInSM ? "col-" + l.uniqueColClassInSM : c, v = l.uniqueColClassInMD ? "col-md-" + l.uniqueColClassInMD : o, C = l.uniqueColClassInLG ? "col-xl-" + l.uniqueColClassInLG : p, h = l.uniqueColClassInEL ? "col-el-" + l.uniqueColClassInEL : m;
|
|
1258
|
+
return [u, v, C, h].concat(y).join(" ");
|
|
1676
1259
|
}
|
|
1677
|
-
return { checkIsInFormComponent: r, assembleUnifiedLayoutContext:
|
|
1260
|
+
return { checkIsInFormComponent: r, assembleUnifiedLayoutContext: i, changeFormControlsByUnifiedLayoutConfig: s };
|
|
1678
1261
|
}
|
|
1679
|
-
class
|
|
1680
|
-
constructor(
|
|
1681
|
-
super(
|
|
1262
|
+
class ot extends et {
|
|
1263
|
+
constructor(e, t) {
|
|
1264
|
+
super(e, t);
|
|
1682
1265
|
}
|
|
1683
|
-
getPropertyConfig(
|
|
1266
|
+
getPropertyConfig(e, t) {
|
|
1684
1267
|
var r = this;
|
|
1685
|
-
this.propertyConfig.categories.basic = this.getBasicPropConfig(
|
|
1686
|
-
const { checkIsInFormComponent:
|
|
1687
|
-
return
|
|
1268
|
+
this.propertyConfig.categories.basic = this.getBasicPropConfig(e);
|
|
1269
|
+
const { checkIsInFormComponent: i, assembleUnifiedLayoutContext: a, changeFormControlsByUnifiedLayoutConfig: s } = rt(this.formSchemaUtils, this.componentId), f = this.getAppearanceConfig(e);
|
|
1270
|
+
return f.properties.unifiedLayout = {
|
|
1688
1271
|
title: "统一布局配置",
|
|
1689
1272
|
description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
|
|
1690
|
-
visible:
|
|
1273
|
+
visible: i(this.componentId),
|
|
1691
1274
|
refreshPanelAfterChanged: !0,
|
|
1692
1275
|
editor: {
|
|
1693
1276
|
type: "response-form-layout-setting",
|
|
1694
|
-
initialState:
|
|
1277
|
+
initialState: a(e)
|
|
1695
1278
|
}
|
|
1696
|
-
},
|
|
1697
|
-
if (
|
|
1698
|
-
switch (
|
|
1279
|
+
}, f.setPropertyRelates = function(d, l) {
|
|
1280
|
+
if (d)
|
|
1281
|
+
switch (d && d.propertyID) {
|
|
1699
1282
|
case "unifiedLayout": {
|
|
1700
|
-
|
|
1283
|
+
s(null, d.propertyValue, e.id), r.updateElementByParentContainer(e.id, t);
|
|
1701
1284
|
break;
|
|
1702
1285
|
}
|
|
1703
1286
|
}
|
|
1704
|
-
}, this.propertyConfig.categories.appearance =
|
|
1287
|
+
}, this.propertyConfig.categories.appearance = f, this.propertyConfig;
|
|
1705
1288
|
}
|
|
1706
1289
|
}
|
|
1707
|
-
function
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
return a && a.componentClassList && a.componentClassList.includes("f-form-layout") && a.componentClassList.includes("farris-form") ? v.sourceType === "control" && v.controlCategory === "input" || v.sourceType === "move" && v.controlType === "form-group" : !0;
|
|
1713
|
-
}
|
|
1714
|
-
function h(v) {
|
|
1715
|
-
return !(!dt().basalDragulaRuleForContainer(v) || !d || !i(v));
|
|
1716
|
-
}
|
|
1717
|
-
function g() {
|
|
1718
|
-
s.value = !1, f.value = !1;
|
|
1719
|
-
const v = e, P = v.appearance && v.appearance.class || "", T = P.split(" "), S = v.contents || [], L = S.length ? S[0] : null, F = L && L.appearance ? L.appearance.class : "", k = F ? F.split(" ") : [], B = S.length ? S.reduce((K, V) => {
|
|
1720
|
-
const ee = V && V.appearance ? V.appearance.class : "", Ce = ee ? ee.split(" ") : [];
|
|
1721
|
-
return K.push(...Ce), K;
|
|
1722
|
-
}, []) : [], x = r, q = x && x.appearance && x.appearance.class || "", be = q ? q.split(" ") : [];
|
|
1723
|
-
a = {
|
|
1724
|
-
componentClass: P,
|
|
1725
|
-
componentClassList: T,
|
|
1726
|
-
childContents: S,
|
|
1727
|
-
firstChildContent: L,
|
|
1728
|
-
firstChildClass: F,
|
|
1729
|
-
firstChildClassList: k,
|
|
1730
|
-
parent: x,
|
|
1731
|
-
parentClass: q,
|
|
1732
|
-
parentClassList: be,
|
|
1733
|
-
children: S,
|
|
1734
|
-
childrenClassList: B
|
|
1735
|
-
};
|
|
1736
|
-
const { canAccept: me, fixed: ve, hidePadding: ge } = o.getRuleValue(T[0], a);
|
|
1737
|
-
return d = me, y = ge, l = ve, !0;
|
|
1290
|
+
function at(n, e) {
|
|
1291
|
+
const t = n.schema, r = new He(), { canMove: i, canAccept: a, canDelete: s } = r.getTemplateRule(n, e);
|
|
1292
|
+
function f(h) {
|
|
1293
|
+
const g = r.getComponentContext(n);
|
|
1294
|
+
return g && g.componentClassList && g.componentClassList.includes("f-form-layout") && g.componentClassList.includes("farris-form") ? h.sourceType === "control" && h.controlCategory === "input" || h.sourceType === "move" && h.controlType === "form-group" : !0;
|
|
1738
1295
|
}
|
|
1739
|
-
function
|
|
1740
|
-
|
|
1296
|
+
function d(h) {
|
|
1297
|
+
return !(!Ke().basalDragulaRuleForContainer(h, e) || !a || !f(h));
|
|
1298
|
+
}
|
|
1299
|
+
function l(h) {
|
|
1300
|
+
pe();
|
|
1741
1301
|
}
|
|
1742
1302
|
function c() {
|
|
1743
|
-
return
|
|
1303
|
+
return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
1744
1304
|
}
|
|
1745
|
-
function
|
|
1746
|
-
const
|
|
1747
|
-
if ((
|
|
1748
|
-
const { label:
|
|
1749
|
-
return
|
|
1305
|
+
function o(h, g) {
|
|
1306
|
+
const D = t;
|
|
1307
|
+
if ((D.appearance && D.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1308
|
+
const { label: w } = h, E = q("form-group");
|
|
1309
|
+
return E.editor = g, E.label = w, p(E), delete E.editor.id, delete E.editor.binding, delete E.editor.appearance, delete E.editor.visible, E;
|
|
1750
1310
|
}
|
|
1751
|
-
return
|
|
1752
|
-
}
|
|
1753
|
-
function
|
|
1754
|
-
const
|
|
1755
|
-
if (
|
|
1756
|
-
const
|
|
1757
|
-
let
|
|
1758
|
-
|
|
1311
|
+
return g;
|
|
1312
|
+
}
|
|
1313
|
+
function p(h) {
|
|
1314
|
+
const g = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
|
|
1315
|
+
if (g && g.schema && g.schema.componentType) {
|
|
1316
|
+
const D = g.schema.formColumns;
|
|
1317
|
+
let b = m(D);
|
|
1318
|
+
b = e == null ? void 0 : e.formSchemaUtils.getControlClassByFormUnifiedLayout(b, "", n.schema), h.appearance || (h.appearance = {}), h.appearance.class = b;
|
|
1759
1319
|
}
|
|
1760
1320
|
}
|
|
1761
|
-
function
|
|
1762
|
-
let
|
|
1763
|
-
switch (
|
|
1321
|
+
function m(h) {
|
|
1322
|
+
let g = "";
|
|
1323
|
+
switch (h) {
|
|
1764
1324
|
case 1: {
|
|
1765
|
-
|
|
1325
|
+
g = "col-12";
|
|
1766
1326
|
break;
|
|
1767
1327
|
}
|
|
1768
1328
|
case 2: {
|
|
1769
|
-
|
|
1329
|
+
g = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1770
1330
|
break;
|
|
1771
1331
|
}
|
|
1772
1332
|
case 3: {
|
|
1773
|
-
|
|
1333
|
+
g = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
1774
1334
|
break;
|
|
1775
1335
|
}
|
|
1776
1336
|
case 4: {
|
|
1777
|
-
|
|
1337
|
+
g = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
1778
1338
|
break;
|
|
1779
1339
|
}
|
|
1780
1340
|
}
|
|
1781
|
-
return
|
|
1782
|
-
}
|
|
1783
|
-
function C(v, P, T) {
|
|
1784
|
-
const S = e;
|
|
1785
|
-
if ((S.appearance && S.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1786
|
-
const k = String(v.innerText), B = $("form-group");
|
|
1787
|
-
return B.editor = T, B.label = k, B;
|
|
1788
|
-
}
|
|
1789
|
-
return T;
|
|
1341
|
+
return g;
|
|
1790
1342
|
}
|
|
1791
|
-
function
|
|
1792
|
-
return
|
|
1343
|
+
function y() {
|
|
1344
|
+
return i;
|
|
1793
1345
|
}
|
|
1794
|
-
function
|
|
1795
|
-
return
|
|
1346
|
+
function u() {
|
|
1347
|
+
return s;
|
|
1796
1348
|
}
|
|
1797
|
-
function
|
|
1798
|
-
return
|
|
1349
|
+
function v() {
|
|
1350
|
+
return !1;
|
|
1799
1351
|
}
|
|
1800
|
-
function
|
|
1801
|
-
return new
|
|
1352
|
+
function C(h) {
|
|
1353
|
+
return new ot(h, e).getPropertyConfig(t, n.componentInstance.value);
|
|
1802
1354
|
}
|
|
1803
1355
|
return {
|
|
1804
|
-
canAccepts:
|
|
1805
|
-
checkCanDeleteComponent:
|
|
1806
|
-
checkCanMoveComponent:
|
|
1356
|
+
canAccepts: d,
|
|
1357
|
+
checkCanDeleteComponent: u,
|
|
1358
|
+
checkCanMoveComponent: y,
|
|
1807
1359
|
getStyles: c,
|
|
1808
|
-
getPropsConfig:
|
|
1809
|
-
hideNestedPaddingInDesginerView:
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
resolveComponentContext: g,
|
|
1813
|
-
onResolveNewComponentSchema: u,
|
|
1814
|
-
triggerBelongedComponentToMoveWhenMoved: s,
|
|
1815
|
-
triggerBelongedComponentToDeleteWhenDeleted: f
|
|
1360
|
+
getPropsConfig: C,
|
|
1361
|
+
hideNestedPaddingInDesginerView: v,
|
|
1362
|
+
onAcceptMovedChildElement: l,
|
|
1363
|
+
onResolveNewComponentSchema: o
|
|
1816
1364
|
};
|
|
1817
1365
|
}
|
|
1818
|
-
const
|
|
1366
|
+
const it = /* @__PURE__ */ K({
|
|
1819
1367
|
name: "FNavDesign",
|
|
1820
|
-
props:
|
|
1368
|
+
props: z,
|
|
1821
1369
|
emits: ["nav"],
|
|
1822
|
-
setup(n,
|
|
1823
|
-
var
|
|
1824
|
-
const
|
|
1825
|
-
|
|
1826
|
-
const
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
}),
|
|
1830
|
-
const
|
|
1370
|
+
setup(n, e) {
|
|
1371
|
+
var y;
|
|
1372
|
+
const t = L(n.activeNavId), r = L(n.navData), i = L(n.horizontal);
|
|
1373
|
+
L(n.navPicking);
|
|
1374
|
+
const a = L(), s = fe("design-item-context"), f = at(s.schema, (y = s.parent) == null ? void 0 : y.schema), d = Re(a, s, f);
|
|
1375
|
+
de(() => {
|
|
1376
|
+
a.value.componentInstance = d;
|
|
1377
|
+
}), e.expose(d.value);
|
|
1378
|
+
const l = P({
|
|
1831
1379
|
get() {
|
|
1832
1380
|
return r.value;
|
|
1833
1381
|
},
|
|
1834
|
-
set(
|
|
1835
|
-
r.value =
|
|
1382
|
+
set(u) {
|
|
1383
|
+
r.value = u, p();
|
|
1836
1384
|
}
|
|
1837
|
-
}),
|
|
1385
|
+
}), c = P({
|
|
1838
1386
|
get() {
|
|
1839
|
-
return
|
|
1387
|
+
return t.value;
|
|
1840
1388
|
},
|
|
1841
|
-
set(
|
|
1842
|
-
if (
|
|
1843
|
-
const
|
|
1844
|
-
|
|
1389
|
+
set(u) {
|
|
1390
|
+
if (t.value = u, t.value && l && l.value.length) {
|
|
1391
|
+
const v = l.value.find((C) => C.id === t.value);
|
|
1392
|
+
v && e.emit("nav", v);
|
|
1845
1393
|
}
|
|
1846
1394
|
}
|
|
1847
|
-
}),
|
|
1848
|
-
set(
|
|
1849
|
-
|
|
1395
|
+
}), o = P({
|
|
1396
|
+
set(u) {
|
|
1397
|
+
i.value = u;
|
|
1850
1398
|
},
|
|
1851
1399
|
get() {
|
|
1852
|
-
return
|
|
1400
|
+
return i.value;
|
|
1853
1401
|
}
|
|
1854
1402
|
});
|
|
1855
|
-
function
|
|
1856
|
-
if (
|
|
1857
|
-
const
|
|
1858
|
-
|
|
1403
|
+
function p() {
|
|
1404
|
+
if (l.value && l.value.length && !t.value) {
|
|
1405
|
+
const u = l.value.find((v) => !v.disable);
|
|
1406
|
+
u && (t.value = u.id);
|
|
1859
1407
|
}
|
|
1860
1408
|
}
|
|
1861
|
-
function
|
|
1862
|
-
|
|
1409
|
+
function m(u) {
|
|
1410
|
+
u.disable || u.id === t.value || (t.value = u.id, e.emit("nav", u));
|
|
1863
1411
|
}
|
|
1864
1412
|
return () => {
|
|
1865
|
-
var
|
|
1866
|
-
return
|
|
1867
|
-
ref:
|
|
1413
|
+
var u;
|
|
1414
|
+
return T("div", {
|
|
1415
|
+
ref: a,
|
|
1868
1416
|
class: ["farris-nav", {
|
|
1869
|
-
"farris-nav-vertical": !
|
|
1417
|
+
"farris-nav-vertical": !o.value
|
|
1870
1418
|
}]
|
|
1871
|
-
}, [(
|
|
1419
|
+
}, [(u = l.value) == null ? void 0 : u.map((v) => T("div", {
|
|
1872
1420
|
class: ["farris-nav-item", {
|
|
1873
|
-
active:
|
|
1421
|
+
active: v.id === c.value
|
|
1874
1422
|
}, {
|
|
1875
|
-
disabled:
|
|
1423
|
+
disabled: v.disable
|
|
1876
1424
|
}],
|
|
1877
|
-
onClick: () =>
|
|
1878
|
-
}, [
|
|
1425
|
+
onClick: () => m(v)
|
|
1426
|
+
}, [T("div", {
|
|
1879
1427
|
class: "farris-nav-item-link"
|
|
1880
|
-
}, [
|
|
1428
|
+
}, [T("span", {
|
|
1881
1429
|
class: "farris-nav-item-link-text"
|
|
1882
|
-
}, [
|
|
1430
|
+
}, [v.text, v.num && T("div", {
|
|
1883
1431
|
class: "farris-nav-item-tag"
|
|
1884
|
-
}, [
|
|
1432
|
+
}, [v.num <= n.maxNum && T("span", {
|
|
1885
1433
|
class: "tag-text"
|
|
1886
|
-
}, [
|
|
1434
|
+
}, [v.num]), v.num > n.maxNum && T("span", {
|
|
1887
1435
|
class: "tag-text"
|
|
1888
|
-
}, [n.maxNum,
|
|
1436
|
+
}, [n.maxNum, H("+")])])])])]))]);
|
|
1889
1437
|
};
|
|
1890
1438
|
}
|
|
1891
|
-
}),
|
|
1439
|
+
}), pt = {
|
|
1892
1440
|
install(n) {
|
|
1893
|
-
n.component(
|
|
1441
|
+
n.component(U.name, U);
|
|
1894
1442
|
},
|
|
1895
|
-
register(n,
|
|
1896
|
-
n.nav =
|
|
1443
|
+
register(n, e, t, r) {
|
|
1444
|
+
n.nav = U, e.nav = R;
|
|
1897
1445
|
},
|
|
1898
|
-
registerDesigner(n,
|
|
1899
|
-
n.nav =
|
|
1446
|
+
registerDesigner(n, e, t) {
|
|
1447
|
+
n.nav = it, e.nav = R;
|
|
1900
1448
|
}
|
|
1901
1449
|
};
|
|
1902
1450
|
export {
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1451
|
+
U as FNav,
|
|
1452
|
+
pt as default,
|
|
1453
|
+
z as navProps,
|
|
1454
|
+
R as propsResolver
|
|
1907
1455
|
};
|