@farris/ui-vue 1.2.4 → 1.2.6
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 +58 -58
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +124 -116
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/index.esm.js +1 -1
- package/components/capsule/index.umd.cjs +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +219 -209
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +36 -28
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/index.esm.js +2 -2
- package/components/common/index.umd.cjs +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +406 -402
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +4439 -4273
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2904 -2892
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +250 -242
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.css +1 -0
- package/components/designer-canvas/index.esm.js +24 -21
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/index.esm.js +44 -42
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/index.esm.js +28 -467
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +984 -928
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +281 -277
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1917 -1901
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +4185 -4023
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +595 -581
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.css +1 -0
- package/components/flow-canvas/index.esm.js +38 -35
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +256 -248
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1522 -1519
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4629 -4410
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4454 -4255
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/index.esm.js +511 -469
- package/components/nav/index.umd.cjs +2 -2
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +972 -920
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +917 -893
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/index.esm.js +491 -449
- package/components/pagination/index.umd.cjs +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +108 -101
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +361 -349
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +72 -64
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +452 -439
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +610 -592
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +4041 -3749
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +159 -178
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1450 -1408
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +86 -78
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +387 -379
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/index.esm.js +95 -93
- package/components/transfer/index.umd.cjs +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +4437 -4271
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +1989 -1985
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12989 -12513
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/condition/index.d.ts +60 -1
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/data-view/components/column-setting/column-setting.component.d.ts +2 -1
- package/types/data-view/composition/types.d.ts +2 -0
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +3 -3
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/list-view/src/composition/types.d.ts +1 -1
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +8 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +29 -25
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/message-box/index.d.ts +84 -1
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/notify/index.d.ts +84 -1
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +3 -0
- package/components/button-edit/style.css +0 -1
- package/components/designer-canvas/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/flow-canvas/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
var
|
|
4
|
-
return
|
|
1
|
+
import { defineComponent as ce, ref as S, watch as ge, computed as F, createVNode as D, createTextVNode as ie, nextTick as je, inject as Ce, onMounted as Te } from "vue";
|
|
2
|
+
import { cloneDeep as Pe } from "lodash-es";
|
|
3
|
+
var Y = function(n, t) {
|
|
4
|
+
return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
5
5
|
e.__proto__ = r;
|
|
6
6
|
} || function(e, r) {
|
|
7
7
|
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
8
|
-
},
|
|
8
|
+
}, Y(n, t);
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function se(n, t) {
|
|
11
11
|
if (typeof t != "function" && t !== null)
|
|
12
12
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
13
|
-
|
|
13
|
+
Y(n, t);
|
|
14
14
|
function e() {
|
|
15
15
|
this.constructor = n;
|
|
16
16
|
}
|
|
17
17
|
n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function ee(n) {
|
|
20
20
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
|
|
21
21
|
if (e) return e.call(n);
|
|
22
22
|
if (n && typeof n.length == "number") return {
|
|
@@ -26,38 +26,38 @@ function X(n) {
|
|
|
26
26
|
};
|
|
27
27
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function G(n, t) {
|
|
30
30
|
var e = typeof Symbol == "function" && n[Symbol.iterator];
|
|
31
31
|
if (!e) return n;
|
|
32
|
-
var r = e.call(n), a, o = [],
|
|
32
|
+
var r = e.call(n), a, o = [], f;
|
|
33
33
|
try {
|
|
34
34
|
for (; (t === void 0 || t-- > 0) && !(a = r.next()).done; ) o.push(a.value);
|
|
35
|
-
} catch (
|
|
36
|
-
|
|
35
|
+
} catch (h) {
|
|
36
|
+
f = { error: h };
|
|
37
37
|
} finally {
|
|
38
38
|
try {
|
|
39
39
|
a && !a.done && (e = r.return) && e.call(r);
|
|
40
40
|
} finally {
|
|
41
|
-
if (
|
|
41
|
+
if (f) throw f.error;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
return o;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function J(n, t, e) {
|
|
47
47
|
if (e || arguments.length === 2) for (var r = 0, a = t.length, o; r < a; r++)
|
|
48
48
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
49
49
|
return n.concat(o || Array.prototype.slice.call(t));
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function O(n) {
|
|
52
52
|
return typeof n == "function";
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ae(n) {
|
|
55
55
|
var t = function(r) {
|
|
56
56
|
Error.call(r), r.stack = new Error().stack;
|
|
57
57
|
}, e = n(t);
|
|
58
58
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var W = Ae(function(n) {
|
|
61
61
|
return function(e) {
|
|
62
62
|
n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
63
63
|
` + e.map(function(r, a) {
|
|
@@ -66,13 +66,13 @@ var L = ge(function(n) {
|
|
|
66
66
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
-
function
|
|
69
|
+
function te(n, t) {
|
|
70
70
|
if (n) {
|
|
71
71
|
var e = n.indexOf(t);
|
|
72
72
|
0 <= e && n.splice(e, 1);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var X = function() {
|
|
76
76
|
function n(t) {
|
|
77
77
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
78
78
|
}
|
|
@@ -80,62 +80,62 @@ var Y = function() {
|
|
|
80
80
|
var t, e, r, a, o;
|
|
81
81
|
if (!this.closed) {
|
|
82
82
|
this.closed = !0;
|
|
83
|
-
var
|
|
84
|
-
if (
|
|
85
|
-
if (this._parentage = null, Array.isArray(
|
|
83
|
+
var f = this._parentage;
|
|
84
|
+
if (f)
|
|
85
|
+
if (this._parentage = null, Array.isArray(f))
|
|
86
86
|
try {
|
|
87
|
-
for (var
|
|
88
|
-
var
|
|
89
|
-
|
|
87
|
+
for (var h = ee(f), v = h.next(); !v.done; v = h.next()) {
|
|
88
|
+
var p = v.value;
|
|
89
|
+
p.remove(this);
|
|
90
90
|
}
|
|
91
|
-
} catch (
|
|
92
|
-
t = { error:
|
|
91
|
+
} catch (c) {
|
|
92
|
+
t = { error: c };
|
|
93
93
|
} finally {
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
v && !v.done && (e = h.return) && e.call(h);
|
|
96
96
|
} finally {
|
|
97
97
|
if (t) throw t.error;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
else
|
|
101
|
-
|
|
102
|
-
var
|
|
103
|
-
if (
|
|
101
|
+
f.remove(this);
|
|
102
|
+
var l = this.initialTeardown;
|
|
103
|
+
if (O(l))
|
|
104
104
|
try {
|
|
105
|
-
|
|
106
|
-
} catch (
|
|
107
|
-
o =
|
|
105
|
+
l();
|
|
106
|
+
} catch (c) {
|
|
107
|
+
o = c instanceof W ? c.errors : [c];
|
|
108
108
|
}
|
|
109
|
-
var
|
|
110
|
-
if (
|
|
109
|
+
var u = this._finalizers;
|
|
110
|
+
if (u) {
|
|
111
111
|
this._finalizers = null;
|
|
112
112
|
try {
|
|
113
|
-
for (var
|
|
114
|
-
var
|
|
113
|
+
for (var y = ee(u), g = y.next(); !g.done; g = y.next()) {
|
|
114
|
+
var i = g.value;
|
|
115
115
|
try {
|
|
116
|
-
|
|
117
|
-
} catch (
|
|
118
|
-
o = o ?? [],
|
|
116
|
+
ne(i);
|
|
117
|
+
} catch (c) {
|
|
118
|
+
o = o ?? [], c instanceof W ? o = J(J([], G(o)), G(c.errors)) : o.push(c);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
} catch (
|
|
122
|
-
r = { error:
|
|
121
|
+
} catch (c) {
|
|
122
|
+
r = { error: c };
|
|
123
123
|
} finally {
|
|
124
124
|
try {
|
|
125
|
-
g && !g.done && (a =
|
|
125
|
+
g && !g.done && (a = y.return) && a.call(y);
|
|
126
126
|
} finally {
|
|
127
127
|
if (r) throw r.error;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
if (o)
|
|
132
|
-
throw new
|
|
132
|
+
throw new W(o);
|
|
133
133
|
}
|
|
134
134
|
}, n.prototype.add = function(t) {
|
|
135
135
|
var e;
|
|
136
136
|
if (t && t !== this)
|
|
137
137
|
if (this.closed)
|
|
138
|
-
|
|
138
|
+
ne(t);
|
|
139
139
|
else {
|
|
140
140
|
if (t instanceof n) {
|
|
141
141
|
if (t.closed || t._hasParent(this))
|
|
@@ -152,57 +152,57 @@ var Y = function() {
|
|
|
152
152
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
153
153
|
}, n.prototype._removeParent = function(t) {
|
|
154
154
|
var e = this._parentage;
|
|
155
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
155
|
+
e === t ? this._parentage = null : Array.isArray(e) && te(e, t);
|
|
156
156
|
}, n.prototype.remove = function(t) {
|
|
157
157
|
var e = this._finalizers;
|
|
158
|
-
e &&
|
|
158
|
+
e && te(e, t), t instanceof n && t._removeParent(this);
|
|
159
159
|
}, n.EMPTY = function() {
|
|
160
160
|
var t = new n();
|
|
161
161
|
return t.closed = !0, t;
|
|
162
162
|
}(), n;
|
|
163
163
|
}();
|
|
164
|
-
|
|
165
|
-
function
|
|
166
|
-
return n instanceof
|
|
164
|
+
X.EMPTY;
|
|
165
|
+
function le(n) {
|
|
166
|
+
return n instanceof X || n && "closed" in n && O(n.remove) && O(n.add) && O(n.unsubscribe);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
168
|
+
function ne(n) {
|
|
169
|
+
O(n) ? n() : n.unsubscribe();
|
|
170
170
|
}
|
|
171
|
-
var
|
|
171
|
+
var pe = {
|
|
172
172
|
onUnhandledError: null,
|
|
173
173
|
onStoppedNotification: null,
|
|
174
174
|
Promise: void 0,
|
|
175
175
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
176
176
|
useDeprecatedNextContext: !1
|
|
177
|
-
},
|
|
177
|
+
}, Se = {
|
|
178
178
|
setTimeout: function(n, t) {
|
|
179
179
|
for (var e = [], r = 2; r < arguments.length; r++)
|
|
180
180
|
e[r - 2] = arguments[r];
|
|
181
|
-
return setTimeout.apply(void 0,
|
|
181
|
+
return setTimeout.apply(void 0, J([n, t], G(e)));
|
|
182
182
|
},
|
|
183
183
|
clearTimeout: function(n) {
|
|
184
184
|
return clearTimeout(n);
|
|
185
185
|
},
|
|
186
186
|
delegate: void 0
|
|
187
187
|
};
|
|
188
|
-
function
|
|
189
|
-
|
|
188
|
+
function Ee(n) {
|
|
189
|
+
Se.setTimeout(function() {
|
|
190
190
|
throw n;
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function re() {
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function De(n) {
|
|
196
196
|
n();
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
|
|
198
|
+
var ue = function(n) {
|
|
199
|
+
se(t, n);
|
|
200
200
|
function t(e) {
|
|
201
201
|
var r = n.call(this) || this;
|
|
202
|
-
return r.isStopped = !1, e ? (r.destination = e,
|
|
202
|
+
return r.isStopped = !1, e ? (r.destination = e, le(e) && e.add(r)) : r.destination = ke, r;
|
|
203
203
|
}
|
|
204
204
|
return t.create = function(e, r, a) {
|
|
205
|
-
return new
|
|
205
|
+
return new Q(e, r, a);
|
|
206
206
|
}, t.prototype.next = function(e) {
|
|
207
207
|
this.isStopped || this._next(e);
|
|
208
208
|
}, t.prototype.error = function(e) {
|
|
@@ -226,11 +226,11 @@ var ie = function(n) {
|
|
|
226
226
|
this.unsubscribe();
|
|
227
227
|
}
|
|
228
228
|
}, t;
|
|
229
|
-
}(
|
|
230
|
-
function
|
|
231
|
-
return
|
|
229
|
+
}(X), we = Function.prototype.bind;
|
|
230
|
+
function U(n, t) {
|
|
231
|
+
return we.call(n, t);
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var Ne = function() {
|
|
234
234
|
function n(t) {
|
|
235
235
|
this.partialObserver = t;
|
|
236
236
|
}
|
|
@@ -240,7 +240,7 @@ var Ae = function() {
|
|
|
240
240
|
try {
|
|
241
241
|
e.next(t);
|
|
242
242
|
} catch (r) {
|
|
243
|
-
|
|
243
|
+
B(r);
|
|
244
244
|
}
|
|
245
245
|
}, n.prototype.error = function(t) {
|
|
246
246
|
var e = this.partialObserver;
|
|
@@ -248,68 +248,68 @@ var Ae = function() {
|
|
|
248
248
|
try {
|
|
249
249
|
e.error(t);
|
|
250
250
|
} catch (r) {
|
|
251
|
-
|
|
251
|
+
B(r);
|
|
252
252
|
}
|
|
253
253
|
else
|
|
254
|
-
|
|
254
|
+
B(t);
|
|
255
255
|
}, n.prototype.complete = function() {
|
|
256
256
|
var t = this.partialObserver;
|
|
257
257
|
if (t.complete)
|
|
258
258
|
try {
|
|
259
259
|
t.complete();
|
|
260
260
|
} catch (e) {
|
|
261
|
-
|
|
261
|
+
B(e);
|
|
262
262
|
}
|
|
263
263
|
}, n;
|
|
264
|
-
}(),
|
|
265
|
-
|
|
264
|
+
}(), Q = function(n) {
|
|
265
|
+
se(t, n);
|
|
266
266
|
function t(e, r, a) {
|
|
267
|
-
var o = n.call(this) || this,
|
|
268
|
-
if (
|
|
269
|
-
|
|
267
|
+
var o = n.call(this) || this, f;
|
|
268
|
+
if (O(e) || !e)
|
|
269
|
+
f = {
|
|
270
270
|
next: e ?? void 0,
|
|
271
271
|
error: r ?? void 0,
|
|
272
272
|
complete: a ?? void 0
|
|
273
273
|
};
|
|
274
274
|
else {
|
|
275
|
-
var
|
|
276
|
-
o &&
|
|
275
|
+
var h;
|
|
276
|
+
o && pe.useDeprecatedNextContext ? (h = Object.create(e), h.unsubscribe = function() {
|
|
277
277
|
return o.unsubscribe();
|
|
278
|
-
},
|
|
279
|
-
next: e.next &&
|
|
280
|
-
error: e.error &&
|
|
281
|
-
complete: e.complete &&
|
|
282
|
-
}) :
|
|
278
|
+
}, f = {
|
|
279
|
+
next: e.next && U(e.next, h),
|
|
280
|
+
error: e.error && U(e.error, h),
|
|
281
|
+
complete: e.complete && U(e.complete, h)
|
|
282
|
+
}) : f = e;
|
|
283
283
|
}
|
|
284
|
-
return o.destination = new
|
|
284
|
+
return o.destination = new Ne(f), o;
|
|
285
285
|
}
|
|
286
286
|
return t;
|
|
287
|
-
}(
|
|
288
|
-
function
|
|
289
|
-
|
|
287
|
+
}(ue);
|
|
288
|
+
function B(n) {
|
|
289
|
+
Ee(n);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function Oe(n) {
|
|
292
292
|
throw n;
|
|
293
293
|
}
|
|
294
|
-
var
|
|
294
|
+
var ke = {
|
|
295
295
|
closed: !0,
|
|
296
|
-
next:
|
|
297
|
-
error:
|
|
298
|
-
complete:
|
|
299
|
-
},
|
|
296
|
+
next: re,
|
|
297
|
+
error: Oe,
|
|
298
|
+
complete: re
|
|
299
|
+
}, Me = function() {
|
|
300
300
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
301
301
|
}();
|
|
302
|
-
function
|
|
302
|
+
function _e(n) {
|
|
303
303
|
return n;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
return n.length === 0 ?
|
|
305
|
+
function Fe(n) {
|
|
306
|
+
return n.length === 0 ? _e : n.length === 1 ? n[0] : function(e) {
|
|
307
307
|
return n.reduce(function(r, a) {
|
|
308
308
|
return a(r);
|
|
309
309
|
}, e);
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
var
|
|
312
|
+
var $e = function() {
|
|
313
313
|
function n(t) {
|
|
314
314
|
t && (this._subscribe = t);
|
|
315
315
|
}
|
|
@@ -317,10 +317,10 @@ var Oe = function() {
|
|
|
317
317
|
var e = new n();
|
|
318
318
|
return e.source = this, e.operator = t, e;
|
|
319
319
|
}, n.prototype.subscribe = function(t, e, r) {
|
|
320
|
-
var a = this, o =
|
|
321
|
-
return
|
|
322
|
-
var
|
|
323
|
-
o.add(
|
|
320
|
+
var a = this, o = xe(t) ? t : new Q(t, e, r);
|
|
321
|
+
return De(function() {
|
|
322
|
+
var f = a, h = f.operator, v = f.source;
|
|
323
|
+
o.add(h ? h.call(o, v) : v ? a._subscribe(o) : a._trySubscribe(o));
|
|
324
324
|
}), o;
|
|
325
325
|
}, n.prototype._trySubscribe = function(t) {
|
|
326
326
|
try {
|
|
@@ -330,37 +330,37 @@ var Oe = function() {
|
|
|
330
330
|
}
|
|
331
331
|
}, n.prototype.forEach = function(t, e) {
|
|
332
332
|
var r = this;
|
|
333
|
-
return e =
|
|
334
|
-
var
|
|
335
|
-
next: function(
|
|
333
|
+
return e = oe(e), new e(function(a, o) {
|
|
334
|
+
var f = new Q({
|
|
335
|
+
next: function(h) {
|
|
336
336
|
try {
|
|
337
|
-
t(
|
|
338
|
-
} catch (
|
|
339
|
-
o(
|
|
337
|
+
t(h);
|
|
338
|
+
} catch (v) {
|
|
339
|
+
o(v), f.unsubscribe();
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
342
|
error: o,
|
|
343
343
|
complete: a
|
|
344
344
|
});
|
|
345
|
-
r.subscribe(
|
|
345
|
+
r.subscribe(f);
|
|
346
346
|
});
|
|
347
347
|
}, n.prototype._subscribe = function(t) {
|
|
348
348
|
var e;
|
|
349
349
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
350
|
-
}, n.prototype[
|
|
350
|
+
}, n.prototype[Me] = function() {
|
|
351
351
|
return this;
|
|
352
352
|
}, n.prototype.pipe = function() {
|
|
353
353
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
354
354
|
t[e] = arguments[e];
|
|
355
|
-
return
|
|
355
|
+
return Fe(t)(this);
|
|
356
356
|
}, n.prototype.toPromise = function(t) {
|
|
357
357
|
var e = this;
|
|
358
|
-
return t =
|
|
358
|
+
return t = oe(t), new t(function(r, a) {
|
|
359
359
|
var o;
|
|
360
|
-
e.subscribe(function(
|
|
361
|
-
return o =
|
|
362
|
-
}, function(
|
|
363
|
-
return a(
|
|
360
|
+
e.subscribe(function(f) {
|
|
361
|
+
return o = f;
|
|
362
|
+
}, function(f) {
|
|
363
|
+
return a(f);
|
|
364
364
|
}, function() {
|
|
365
365
|
return r(o);
|
|
366
366
|
});
|
|
@@ -369,121 +369,121 @@ var Oe = function() {
|
|
|
369
369
|
return new n(t);
|
|
370
370
|
}, n;
|
|
371
371
|
}();
|
|
372
|
-
function
|
|
372
|
+
function oe(n) {
|
|
373
373
|
var t;
|
|
374
|
-
return (t = n ??
|
|
374
|
+
return (t = n ?? pe.Promise) !== null && t !== void 0 ? t : Promise;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return n &&
|
|
376
|
+
function Le(n) {
|
|
377
|
+
return n && O(n.next) && O(n.error) && O(n.complete);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
return n && n instanceof
|
|
379
|
+
function xe(n) {
|
|
380
|
+
return n && n instanceof ue || Le(n) && le(n);
|
|
381
381
|
}
|
|
382
|
-
const
|
|
383
|
-
function
|
|
384
|
-
const { properties: t, title: e } = n, r = Object.keys(t).reduce((a, o) => (a[o] = t[o].type === "object" && t[o].properties ?
|
|
382
|
+
const fe = {}, de = {};
|
|
383
|
+
function Z(n) {
|
|
384
|
+
const { properties: t, title: e } = n, r = Object.keys(t).reduce((a, o) => (a[o] = t[o].type === "object" && t[o].properties ? Z(t[o]) : Pe(t[o].default), a), {});
|
|
385
385
|
return r.id = `${e}-${Date.now()}`, r;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
const e =
|
|
387
|
+
function L(n, t = {}) {
|
|
388
|
+
const e = fe[n];
|
|
389
389
|
if (e) {
|
|
390
|
-
let r =
|
|
391
|
-
const a =
|
|
392
|
-
return r = a ? a({ getSchemaByType:
|
|
390
|
+
let r = Z(e);
|
|
391
|
+
const a = de[n];
|
|
392
|
+
return r = a ? a({ getSchemaByType: L }, r, t) : r, r;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
const e =
|
|
396
|
+
function Be(n, t) {
|
|
397
|
+
const e = Z(t);
|
|
398
398
|
return Object.keys(n).reduce((r, a) => (r[a] = n[a], r), e), e;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Ve(n, t) {
|
|
401
401
|
return Object.keys(n).filter((r) => n[r] != null).reduce((r, a) => {
|
|
402
402
|
if (t.has(a)) {
|
|
403
403
|
const o = t.get(a);
|
|
404
404
|
if (typeof o == "string")
|
|
405
405
|
r[o] = n[a];
|
|
406
406
|
else {
|
|
407
|
-
const
|
|
408
|
-
Object.assign(r,
|
|
407
|
+
const f = o(a, n[a], n);
|
|
408
|
+
Object.assign(r, f);
|
|
409
409
|
}
|
|
410
410
|
} else
|
|
411
411
|
r[a] = n[a];
|
|
412
412
|
return r;
|
|
413
413
|
}, {});
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
const r =
|
|
417
|
-
return
|
|
415
|
+
function qe(n, t, e = /* @__PURE__ */ new Map()) {
|
|
416
|
+
const r = Be(n, t);
|
|
417
|
+
return Ve(r, e);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
function t(
|
|
421
|
-
if (typeof
|
|
422
|
-
return
|
|
423
|
-
if (typeof
|
|
424
|
-
const g = Object.keys(
|
|
419
|
+
function We(n = {}) {
|
|
420
|
+
function t(p, l, u, y) {
|
|
421
|
+
if (typeof u == "number")
|
|
422
|
+
return y[p].length === u;
|
|
423
|
+
if (typeof u == "object") {
|
|
424
|
+
const g = Object.keys(u)[0], i = u[g];
|
|
425
425
|
if (g === "not")
|
|
426
|
-
return Number(
|
|
426
|
+
return Number(y[p].length) !== Number(i);
|
|
427
427
|
if (g === "moreThan")
|
|
428
|
-
return Number(
|
|
428
|
+
return Number(y[p].length) >= Number(i);
|
|
429
429
|
if (g === "lessThan")
|
|
430
|
-
return Number(
|
|
430
|
+
return Number(y[p].length) <= Number(i);
|
|
431
431
|
}
|
|
432
432
|
return !1;
|
|
433
433
|
}
|
|
434
|
-
function e(
|
|
435
|
-
return
|
|
434
|
+
function e(p, l, u, y) {
|
|
435
|
+
return y[p] && y[p].propertyValue && String(y[p].propertyValue.value) === String(u);
|
|
436
436
|
}
|
|
437
437
|
const r = /* @__PURE__ */ new Map([
|
|
438
438
|
["length", t],
|
|
439
439
|
["getProperty", e]
|
|
440
440
|
]);
|
|
441
|
-
Object.keys(n).reduce((
|
|
442
|
-
function a(
|
|
443
|
-
const
|
|
444
|
-
return typeof
|
|
445
|
-
if (
|
|
446
|
-
return { target:
|
|
447
|
-
const g =
|
|
448
|
-
return { target:
|
|
441
|
+
Object.keys(n).reduce((p, l) => (p.set(l, n[l]), p), r);
|
|
442
|
+
function a(p, l) {
|
|
443
|
+
const u = p;
|
|
444
|
+
return typeof l == "number" ? [{ target: u, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: u, operator: "getProperty", param: p, value: !!l }] : typeof l == "object" ? Object.keys(l).map((y) => {
|
|
445
|
+
if (y === "length")
|
|
446
|
+
return { target: u, operator: "length", param: null, value: l[y] };
|
|
447
|
+
const g = y, i = l[y];
|
|
448
|
+
return { target: u, operator: "getProperty", param: g, value: i };
|
|
449
449
|
}) : [];
|
|
450
450
|
}
|
|
451
|
-
function o(
|
|
452
|
-
return Object.keys(
|
|
453
|
-
const g = a(
|
|
454
|
-
return
|
|
451
|
+
function o(p) {
|
|
452
|
+
return Object.keys(p).reduce((u, y) => {
|
|
453
|
+
const g = a(y, p[y]);
|
|
454
|
+
return u.push(...g), u;
|
|
455
455
|
}, []);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
if (r.has(
|
|
459
|
-
const
|
|
460
|
-
return
|
|
457
|
+
function f(p, l) {
|
|
458
|
+
if (r.has(p.operator)) {
|
|
459
|
+
const u = r.get(p.operator);
|
|
460
|
+
return u && u(p.target, p.param, p.value, l) || !1;
|
|
461
461
|
}
|
|
462
462
|
return !1;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
465
|
-
return o(
|
|
464
|
+
function h(p, l) {
|
|
465
|
+
return o(p).reduce((g, i) => g && f(i, l), !0);
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
const
|
|
469
|
-
return
|
|
467
|
+
function v(p, l) {
|
|
468
|
+
const u = Object.keys(p), y = u.includes("allOf"), g = u.includes("anyOf"), i = y || g, b = (i ? p[i ? y ? "allOf" : "anyOf" : "allOf"] : [p]).map((C) => h(C, l));
|
|
469
|
+
return y ? !b.includes(!1) : b.includes(!0);
|
|
470
470
|
}
|
|
471
|
-
return { parseValueSchema:
|
|
471
|
+
return { parseValueSchema: v };
|
|
472
472
|
}
|
|
473
|
-
const
|
|
474
|
-
|
|
475
|
-
function
|
|
476
|
-
return
|
|
477
|
-
const
|
|
478
|
-
return Object.assign(
|
|
473
|
+
const Ue = {}, ze = {};
|
|
474
|
+
We();
|
|
475
|
+
function He(n, t, e = /* @__PURE__ */ new Map(), r = (f, h, v) => h, a = {}, o = (f) => f) {
|
|
476
|
+
return fe[t.title] = t, de[t.title] = r, Ue[t.title] = a, ze[t.title] = o, (f = {}) => {
|
|
477
|
+
const h = qe(f, t, e), v = Object.keys(n).reduce((p, l) => (p[l] = n[l].default, p), {});
|
|
478
|
+
return Object.assign(v, h);
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Ye(n, t) {
|
|
482
482
|
return { customClass: t.class, customStyle: t.style };
|
|
483
483
|
}
|
|
484
|
-
const
|
|
485
|
-
["appearance",
|
|
486
|
-
]),
|
|
484
|
+
const Ge = /* @__PURE__ */ new Map([
|
|
485
|
+
["appearance", Ye]
|
|
486
|
+
]), Je = "https://json-schema.org/draft/2020-12/schema", Qe = "https://farris-design.gitee.io/nav.schema.json", Xe = "nav", Ze = "A Farris Component", Re = "object", Ke = {
|
|
487
487
|
id: {
|
|
488
488
|
description: "The unique identifier for a nav",
|
|
489
489
|
type: "string"
|
|
@@ -575,22 +575,22 @@ const We = /* @__PURE__ */ new Map([
|
|
|
575
575
|
type: "sting",
|
|
576
576
|
default: ""
|
|
577
577
|
}
|
|
578
|
-
},
|
|
578
|
+
}, Ie = [
|
|
579
579
|
"id",
|
|
580
580
|
"type"
|
|
581
|
-
],
|
|
582
|
-
$schema:
|
|
583
|
-
$id:
|
|
584
|
-
title:
|
|
585
|
-
description:
|
|
586
|
-
type:
|
|
587
|
-
properties:
|
|
588
|
-
required:
|
|
581
|
+
], et = {
|
|
582
|
+
$schema: Je,
|
|
583
|
+
$id: Qe,
|
|
584
|
+
title: Xe,
|
|
585
|
+
description: Ze,
|
|
586
|
+
type: Re,
|
|
587
|
+
properties: Ke,
|
|
588
|
+
required: Ie
|
|
589
589
|
};
|
|
590
|
-
function
|
|
590
|
+
function tt(n, t, e) {
|
|
591
591
|
return t;
|
|
592
592
|
}
|
|
593
|
-
const
|
|
593
|
+
const nt = "nav", rt = "A Farris Component", ot = "object", at = {
|
|
594
594
|
basic: {
|
|
595
595
|
description: "Basic Infomation",
|
|
596
596
|
title: "基本信息",
|
|
@@ -672,12 +672,12 @@ const Re = "nav", Ke = "A Farris Component", Ie = "object", et = {
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
|
-
},
|
|
676
|
-
title:
|
|
677
|
-
description:
|
|
678
|
-
type:
|
|
679
|
-
categories:
|
|
680
|
-
},
|
|
675
|
+
}, ct = {
|
|
676
|
+
title: nt,
|
|
677
|
+
description: rt,
|
|
678
|
+
type: ot,
|
|
679
|
+
categories: at
|
|
680
|
+
}, R = {
|
|
681
681
|
/** 未读最大值 */
|
|
682
682
|
maxNum: { Type: Number, default: 99 },
|
|
683
683
|
/** 导航数据 */
|
|
@@ -710,167 +710,167 @@ const Re = "nav", Ke = "A Farris Component", Ie = "object", et = {
|
|
|
710
710
|
/** 当前激活的id */
|
|
711
711
|
activeNavId: { Type: String, default: "1" },
|
|
712
712
|
/** nav切换前事件 */
|
|
713
|
-
navPicking: { Type: Function, default: (n) =>
|
|
714
|
-
},
|
|
713
|
+
navPicking: { Type: Function, default: (n) => $e }
|
|
714
|
+
}, ae = He(R, et, Ge, tt, ct), z = /* @__PURE__ */ ce({
|
|
715
715
|
name: "FNav",
|
|
716
|
-
props:
|
|
716
|
+
props: R,
|
|
717
717
|
emits: ["nav", "update:activeNavId"],
|
|
718
718
|
setup(n, t) {
|
|
719
|
-
const e =
|
|
720
|
-
|
|
721
|
-
|
|
719
|
+
const e = S(n.activeNavId), r = S(n.navData), a = S(n.horizontal);
|
|
720
|
+
S(n.navPicking), ge(() => n.activeNavId, (l, u) => {
|
|
721
|
+
l !== u && (e.value = l);
|
|
722
722
|
});
|
|
723
|
-
const o =
|
|
723
|
+
const o = F({
|
|
724
724
|
get() {
|
|
725
725
|
return r.value;
|
|
726
726
|
},
|
|
727
|
-
set(
|
|
728
|
-
r.value =
|
|
727
|
+
set(l) {
|
|
728
|
+
r.value = l, v();
|
|
729
729
|
}
|
|
730
|
-
}),
|
|
730
|
+
}), f = F({
|
|
731
731
|
get() {
|
|
732
732
|
return e.value;
|
|
733
733
|
},
|
|
734
|
-
set(
|
|
735
|
-
if (e.value =
|
|
736
|
-
const
|
|
737
|
-
|
|
734
|
+
set(l) {
|
|
735
|
+
if (e.value = l, e.value && o && o.value.length) {
|
|
736
|
+
const u = o.value.find((y) => y.id === e.value);
|
|
737
|
+
u && t.emit("nav", u);
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
}),
|
|
741
|
-
set(
|
|
742
|
-
a.value =
|
|
740
|
+
}), h = F({
|
|
741
|
+
set(l) {
|
|
742
|
+
a.value = l;
|
|
743
743
|
},
|
|
744
744
|
get() {
|
|
745
745
|
return a.value;
|
|
746
746
|
}
|
|
747
747
|
});
|
|
748
|
-
function
|
|
748
|
+
function v() {
|
|
749
749
|
if (o.value && o.value.length && !e.value) {
|
|
750
|
-
const
|
|
751
|
-
|
|
750
|
+
const l = o.value.find((u) => !u.disable);
|
|
751
|
+
l && (e.value = l.id);
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
|
|
754
|
+
function p(l) {
|
|
755
|
+
l.disable || l.id === e.value || (e.value = l.id, t.emit("update:activeNavId", l.id), t.emit("nav", l));
|
|
756
756
|
}
|
|
757
757
|
return () => {
|
|
758
|
-
var
|
|
759
|
-
return
|
|
758
|
+
var l;
|
|
759
|
+
return D("div", {
|
|
760
760
|
class: ["farris-nav", {
|
|
761
|
-
"farris-nav-vertical": !
|
|
761
|
+
"farris-nav-vertical": !h.value
|
|
762
762
|
}]
|
|
763
|
-
}, [(
|
|
763
|
+
}, [(l = o.value) == null ? void 0 : l.map((u) => D("div", {
|
|
764
764
|
class: ["farris-nav-item", {
|
|
765
|
-
active:
|
|
765
|
+
active: u.id === f.value
|
|
766
766
|
}, {
|
|
767
|
-
disabled:
|
|
767
|
+
disabled: u.disable
|
|
768
768
|
}],
|
|
769
|
-
onClick: () =>
|
|
770
|
-
}, [
|
|
769
|
+
onClick: () => p(u)
|
|
770
|
+
}, [D("div", {
|
|
771
771
|
class: "farris-nav-item-link"
|
|
772
|
-
}, [
|
|
772
|
+
}, [D("span", {
|
|
773
773
|
class: "farris-nav-item-link-text"
|
|
774
|
-
}, [typeof
|
|
774
|
+
}, [typeof u.text == "function" ? u.text() : u.text, u.num && D("div", {
|
|
775
775
|
class: "farris-nav-item-tag"
|
|
776
|
-
}, [
|
|
776
|
+
}, [u.num <= n.maxNum && D("span", {
|
|
777
777
|
class: "tag-text"
|
|
778
|
-
}, [
|
|
778
|
+
}, [u.num]), u.num > n.maxNum && D("span", {
|
|
779
779
|
class: "tag-text"
|
|
780
|
-
}, [n.maxNum,
|
|
780
|
+
}, [n.maxNum, ie("+")])])])])]))]);
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
|
-
function
|
|
785
|
-
var
|
|
784
|
+
function it(n, t, e) {
|
|
785
|
+
var M;
|
|
786
786
|
function r() {
|
|
787
787
|
e != null && e.resolveComponentContext && e.resolveComponentContext();
|
|
788
788
|
}
|
|
789
789
|
r();
|
|
790
|
-
const a = e && e.getStyles && e.getStyles() || "", o = e && e.getDesignerClass && e.getDesignerClass() || "",
|
|
791
|
-
function
|
|
790
|
+
const a = e && e.getStyles && e.getStyles() || "", o = e && e.getDesignerClass && e.getDesignerClass() || "", f = S();
|
|
791
|
+
function h() {
|
|
792
792
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function v() {
|
|
795
795
|
return !1;
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function p() {
|
|
798
798
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function l() {
|
|
801
801
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
804
|
-
if (!
|
|
803
|
+
function u(m) {
|
|
804
|
+
if (!m || !m.value)
|
|
805
805
|
return null;
|
|
806
|
-
if (
|
|
807
|
-
return
|
|
808
|
-
const
|
|
809
|
-
return
|
|
806
|
+
if (m.value.schema && m.value.schema.type === "component")
|
|
807
|
+
return m.value;
|
|
808
|
+
const A = S(m == null ? void 0 : m.value.parent), d = u(A);
|
|
809
|
+
return d || null;
|
|
810
810
|
}
|
|
811
|
-
function
|
|
812
|
-
const { componentInstance:
|
|
813
|
-
return !
|
|
811
|
+
function y(m = t) {
|
|
812
|
+
const { componentInstance: A, designerItemElementRef: d } = m;
|
|
813
|
+
return !A || !A.value ? null : A.value.canMove ? d : y(m.parent);
|
|
814
814
|
}
|
|
815
|
-
function g(
|
|
816
|
-
return !!e && e.canAccepts(
|
|
815
|
+
function g(m) {
|
|
816
|
+
return !!e && e.canAccepts(m);
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function i() {
|
|
819
819
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function c() {
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
|
|
823
|
+
function s(m, A) {
|
|
824
|
+
A && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(A);
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
const { componentType:
|
|
828
|
-
let
|
|
829
|
-
e && e.onResolveNewComponentSchema && (
|
|
830
|
-
const
|
|
831
|
-
return
|
|
826
|
+
function b(m) {
|
|
827
|
+
const { componentType: A } = m;
|
|
828
|
+
let d = L(A, m);
|
|
829
|
+
e && e.onResolveNewComponentSchema && (d = e.onResolveNewComponentSchema(m, d));
|
|
830
|
+
const j = A.toLowerCase().replace("-", "_");
|
|
831
|
+
return d && !d.id && d.type === A && (d.id = `${j}_${Math.random().toString().slice(2, 6)}`), d;
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
let
|
|
837
|
-
e && e.onAcceptNewChildElement && (
|
|
838
|
-
const
|
|
839
|
-
return
|
|
833
|
+
function P(m, A) {
|
|
834
|
+
const d = String(m.getAttribute("data-controltype")), j = m.getAttribute("data-feature"), w = j ? JSON.parse(j) : {};
|
|
835
|
+
w.parentComponentInstance = f.value;
|
|
836
|
+
let T = L(d, w);
|
|
837
|
+
e && e.onAcceptNewChildElement && (T = e.onAcceptNewChildElement(m, A, T));
|
|
838
|
+
const k = d.toLowerCase().replace("-", "_");
|
|
839
|
+
return T && !T.id && T.type === d && (T.id = `${k}_${Math.random().toString().slice(2, 6)}`), T;
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function C(m) {
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function E(...m) {
|
|
844
844
|
if (e && e.getPropsConfig)
|
|
845
|
-
return e.getPropsConfig(...
|
|
845
|
+
return e.getPropsConfig(...m);
|
|
846
846
|
}
|
|
847
|
-
return
|
|
848
|
-
canMove:
|
|
849
|
-
canSelectParent:
|
|
850
|
-
canDelete:
|
|
851
|
-
canNested: !
|
|
847
|
+
return f.value = {
|
|
848
|
+
canMove: h(),
|
|
849
|
+
canSelectParent: v(),
|
|
850
|
+
canDelete: p(),
|
|
851
|
+
canNested: !l(),
|
|
852
852
|
contents: t == null ? void 0 : t.schema.contents,
|
|
853
853
|
elementRef: n,
|
|
854
|
-
parent: (
|
|
854
|
+
parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
|
|
855
855
|
schema: t == null ? void 0 : t.schema,
|
|
856
856
|
styles: a,
|
|
857
857
|
designerClass: o,
|
|
858
858
|
canAccepts: g,
|
|
859
|
-
getBelongedComponentInstance:
|
|
860
|
-
getDraggableDesignItemElement:
|
|
861
|
-
getDraggingDisplayText:
|
|
862
|
-
getPropConfig:
|
|
863
|
-
getDragScopeElement:
|
|
864
|
-
onAcceptMovedChildElement:
|
|
865
|
-
onAcceptNewChildElement:
|
|
866
|
-
onChildElementMovedOut:
|
|
867
|
-
addNewChildComponentSchema:
|
|
859
|
+
getBelongedComponentInstance: u,
|
|
860
|
+
getDraggableDesignItemElement: y,
|
|
861
|
+
getDraggingDisplayText: i,
|
|
862
|
+
getPropConfig: E,
|
|
863
|
+
getDragScopeElement: c,
|
|
864
|
+
onAcceptMovedChildElement: s,
|
|
865
|
+
onAcceptNewChildElement: P,
|
|
866
|
+
onChildElementMovedOut: C,
|
|
867
|
+
addNewChildComponentSchema: b,
|
|
868
868
|
updateDragAndDropRules: r,
|
|
869
|
-
triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved ||
|
|
870
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
871
|
-
},
|
|
869
|
+
triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || S(!1),
|
|
870
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
|
|
871
|
+
}, f;
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function st() {
|
|
874
874
|
function n(t) {
|
|
875
875
|
var a, o;
|
|
876
876
|
if (!t)
|
|
@@ -880,8 +880,8 @@ function rt() {
|
|
|
880
880
|
return !1;
|
|
881
881
|
const r = (o = e.schema.appearance) == null ? void 0 : o.class;
|
|
882
882
|
if (t.controlCategory === "input" || t.controlType === "form-group") {
|
|
883
|
-
const
|
|
884
|
-
if (e.schema.type !== "response-layout-item" && !
|
|
883
|
+
const f = e.schema.type, h = (f === "response-form" || f === "content-container") && r && r.includes("farris-form");
|
|
884
|
+
if (e.schema.type !== "response-layout-item" && !h)
|
|
885
885
|
return !1;
|
|
886
886
|
}
|
|
887
887
|
return t.controlType !== "field-set";
|
|
@@ -890,7 +890,7 @@ function rt() {
|
|
|
890
890
|
basalDragulaRuleForContainer: n
|
|
891
891
|
};
|
|
892
892
|
}
|
|
893
|
-
const
|
|
893
|
+
const lt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-design.gitee.io/dragging-rules.schema.json", ut = "Dragging Rules", ft = "The rules of designer canvas", dt = "object", yt = {
|
|
894
894
|
"f-page": {
|
|
895
895
|
description: "The root class of page designed by farris.",
|
|
896
896
|
type: "object",
|
|
@@ -1454,39 +1454,39 @@ const ot = "https://json-schema.org/draft/2020-12/schema", at = "https://farris-
|
|
|
1454
1454
|
description: "",
|
|
1455
1455
|
type: "object"
|
|
1456
1456
|
}
|
|
1457
|
-
},
|
|
1458
|
-
$schema:
|
|
1459
|
-
$id:
|
|
1460
|
-
title:
|
|
1461
|
-
description:
|
|
1462
|
-
type:
|
|
1463
|
-
properties:
|
|
1464
|
-
required:
|
|
1465
|
-
},
|
|
1466
|
-
function
|
|
1467
|
-
function n(
|
|
1468
|
-
var
|
|
1469
|
-
if (typeof
|
|
1470
|
-
return ((
|
|
1471
|
-
if (typeof
|
|
1472
|
-
const
|
|
1473
|
-
if (
|
|
1474
|
-
return Number(
|
|
1475
|
-
if (
|
|
1476
|
-
return Number(
|
|
1477
|
-
if (
|
|
1478
|
-
return Number(
|
|
1457
|
+
}, ht = [], bt = {
|
|
1458
|
+
$schema: lt,
|
|
1459
|
+
$id: pt,
|
|
1460
|
+
title: ut,
|
|
1461
|
+
description: ft,
|
|
1462
|
+
type: dt,
|
|
1463
|
+
properties: yt,
|
|
1464
|
+
required: ht
|
|
1465
|
+
}, H = /* @__PURE__ */ new Map();
|
|
1466
|
+
function mt() {
|
|
1467
|
+
function n(i, c, s, b) {
|
|
1468
|
+
var P;
|
|
1469
|
+
if (typeof s == "number")
|
|
1470
|
+
return ((P = b[i]) == null ? void 0 : P.length) === s;
|
|
1471
|
+
if (typeof s == "object") {
|
|
1472
|
+
const C = Object.keys(s)[0], E = s[C];
|
|
1473
|
+
if (C === "not")
|
|
1474
|
+
return Number(b[i].length) !== Number(E);
|
|
1475
|
+
if (C === "moreThan")
|
|
1476
|
+
return Number(b[i].length) >= Number(E);
|
|
1477
|
+
if (C === "lessThan")
|
|
1478
|
+
return Number(b[i].length) <= Number(E);
|
|
1479
1479
|
}
|
|
1480
1480
|
return !1;
|
|
1481
1481
|
}
|
|
1482
|
-
function t(
|
|
1483
|
-
return typeof
|
|
1482
|
+
function t(i, c, s, b) {
|
|
1483
|
+
return typeof s == "boolean" ? b.childrenClassList.includes(c) === !!s : !1;
|
|
1484
1484
|
}
|
|
1485
|
-
function e(
|
|
1486
|
-
return typeof
|
|
1485
|
+
function e(i, c, s, b) {
|
|
1486
|
+
return typeof s == "boolean" ? b.parentClassList.includes(c) === !!s : !1;
|
|
1487
1487
|
}
|
|
1488
|
-
function r(
|
|
1489
|
-
return typeof
|
|
1488
|
+
function r(i, c, s, b) {
|
|
1489
|
+
return typeof s == "boolean" ? b.parentClassList.includes(c) === !!s : !1;
|
|
1490
1490
|
}
|
|
1491
1491
|
const a = /* @__PURE__ */ new Map([
|
|
1492
1492
|
["length", n],
|
|
@@ -1494,228 +1494,270 @@ function ft() {
|
|
|
1494
1494
|
["hasSibling", r],
|
|
1495
1495
|
["hasParent", e]
|
|
1496
1496
|
]);
|
|
1497
|
-
function o(
|
|
1498
|
-
const
|
|
1499
|
-
return typeof
|
|
1500
|
-
if (
|
|
1501
|
-
return { target:
|
|
1502
|
-
const
|
|
1503
|
-
return { target:
|
|
1497
|
+
function o(i, c) {
|
|
1498
|
+
const s = i;
|
|
1499
|
+
return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((b) => {
|
|
1500
|
+
if (b === "length")
|
|
1501
|
+
return { target: s, operator: "length", param: null, value: c[b] };
|
|
1502
|
+
const P = b, C = c[b];
|
|
1503
|
+
return { target: s, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: P, value: C };
|
|
1504
1504
|
}) : [];
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1507
|
-
if (a.has(
|
|
1508
|
-
const
|
|
1509
|
-
return
|
|
1506
|
+
function f(i, c) {
|
|
1507
|
+
if (a.has(i.operator)) {
|
|
1508
|
+
const s = a.get(i.operator);
|
|
1509
|
+
return s && s(i.target, i.param, i.value, c) || !1;
|
|
1510
1510
|
}
|
|
1511
1511
|
return !1;
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return Object.keys(
|
|
1515
|
-
const
|
|
1516
|
-
return
|
|
1517
|
-
}, []).reduce((
|
|
1513
|
+
function h(i, c) {
|
|
1514
|
+
return Object.keys(i).reduce((C, E) => {
|
|
1515
|
+
const M = o(E, i[E]);
|
|
1516
|
+
return C.push(...M), C;
|
|
1517
|
+
}, []).reduce((C, E) => C && f(E, c), !0);
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1520
|
-
const
|
|
1521
|
-
return
|
|
1519
|
+
function v(i, c) {
|
|
1520
|
+
const s = Object.keys(i), b = s.includes("allOf"), P = s.includes("anyOf"), C = b || P, m = (C ? i[C ? b ? "allOf" : "anyOf" : "allOf"] : [i]).map((d) => h(d, c));
|
|
1521
|
+
return b ? !m.includes(!1) : m.includes(!0);
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1524
|
-
const
|
|
1525
|
-
return
|
|
1523
|
+
function p(i, c) {
|
|
1524
|
+
const s = i.const;
|
|
1525
|
+
return s ? typeof s == "boolean" ? s : typeof s == "object" ? v(s, c) : !1 : !1;
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1528
|
-
return (
|
|
1529
|
-
const
|
|
1530
|
-
return
|
|
1531
|
-
const
|
|
1532
|
-
return
|
|
1533
|
-
},
|
|
1527
|
+
function l(i) {
|
|
1528
|
+
return (c) => {
|
|
1529
|
+
const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1530
|
+
return i && i.properties && Object.keys(i.properties).reduce((b, P) => {
|
|
1531
|
+
const C = i.properties[P];
|
|
1532
|
+
return b[P] = p(C, c), b;
|
|
1533
|
+
}, s), s;
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1537
|
-
if (
|
|
1538
|
-
const { rules:
|
|
1539
|
-
|
|
1540
|
-
(
|
|
1536
|
+
function u(i, c, s) {
|
|
1537
|
+
if (c.type === "object" && c.properties) {
|
|
1538
|
+
const { rules: b, contents: P } = c.properties;
|
|
1539
|
+
s.set(i, l(b)), P && Object.keys(P.properties).forEach(
|
|
1540
|
+
(C) => u(C, P.properties[C], s)
|
|
1541
1541
|
);
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1545
|
-
const { properties:
|
|
1546
|
-
Object.keys(
|
|
1547
|
-
|
|
1544
|
+
function y() {
|
|
1545
|
+
const { properties: i } = bt;
|
|
1546
|
+
Object.keys(i).forEach((c) => {
|
|
1547
|
+
u(c, i[c], H);
|
|
1548
1548
|
});
|
|
1549
1549
|
}
|
|
1550
|
-
function g(
|
|
1551
|
-
const
|
|
1552
|
-
return
|
|
1550
|
+
function g(i, c) {
|
|
1551
|
+
const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1552
|
+
return H.has(i) ? H.get(i)(c) : s;
|
|
1553
1553
|
}
|
|
1554
|
-
return
|
|
1554
|
+
return y(), { getRuleValue: g };
|
|
1555
1555
|
}
|
|
1556
|
-
function
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1556
|
+
function vt(n, t) {
|
|
1557
|
+
var A;
|
|
1558
|
+
const e = n.schema, r = (A = n.parent) == null ? void 0 : A.schema, a = mt(), o = S(!1), f = S(!1);
|
|
1559
|
+
let h = !0, v = !1, p, l = !1;
|
|
1560
|
+
function u(d) {
|
|
1561
|
+
return p && p.componentClassList && p.componentClassList.includes("f-form-layout") && p.componentClassList.includes("farris-form") ? d.sourceType === "control" && d.controlCategory === "input" || d.sourceType === "move" && d.controlType === "form-group" : !0;
|
|
1561
1562
|
}
|
|
1562
|
-
function
|
|
1563
|
-
return !(!
|
|
1563
|
+
function y(d) {
|
|
1564
|
+
return !(!st().basalDragulaRuleForContainer(d) || !h || !u(d));
|
|
1564
1565
|
}
|
|
1565
|
-
function
|
|
1566
|
-
|
|
1567
|
-
const d =
|
|
1568
|
-
const
|
|
1569
|
-
return
|
|
1570
|
-
}, []) : [],
|
|
1571
|
-
|
|
1572
|
-
componentClass:
|
|
1573
|
-
componentClassList:
|
|
1574
|
-
childContents:
|
|
1575
|
-
firstChildContent:
|
|
1576
|
-
firstChildClass:
|
|
1577
|
-
firstChildClassList:
|
|
1578
|
-
parent:
|
|
1579
|
-
parentClass:
|
|
1580
|
-
parentClassList:
|
|
1581
|
-
children:
|
|
1582
|
-
childrenClassList:
|
|
1566
|
+
function g() {
|
|
1567
|
+
o.value = !1, f.value = !1;
|
|
1568
|
+
const d = e, j = d.appearance && d.appearance.class || "", w = j.split(" "), T = d.contents || [], k = T.length ? T[0] : null, _ = k && k.appearance ? k.appearance.class : "", N = _ ? _.split(" ") : [], $ = T.length ? T.reduce((K, q) => {
|
|
1569
|
+
const I = q && q.appearance ? q.appearance.class : "", ve = I ? I.split(" ") : [];
|
|
1570
|
+
return K.push(...ve), K;
|
|
1571
|
+
}, []) : [], x = r, V = x && x.appearance && x.appearance.class || "", ye = V ? V.split(" ") : [];
|
|
1572
|
+
p = {
|
|
1573
|
+
componentClass: j,
|
|
1574
|
+
componentClassList: w,
|
|
1575
|
+
childContents: T,
|
|
1576
|
+
firstChildContent: k,
|
|
1577
|
+
firstChildClass: _,
|
|
1578
|
+
firstChildClassList: N,
|
|
1579
|
+
parent: x,
|
|
1580
|
+
parentClass: V,
|
|
1581
|
+
parentClassList: ye,
|
|
1582
|
+
children: T,
|
|
1583
|
+
childrenClassList: $
|
|
1583
1584
|
};
|
|
1584
|
-
const { canAccept:
|
|
1585
|
-
return
|
|
1585
|
+
const { canAccept: he, fixed: be, hidePadding: me } = a.getRuleValue(w[0], p);
|
|
1586
|
+
return h = he, v = me, l = be, !0;
|
|
1586
1587
|
}
|
|
1587
|
-
function
|
|
1588
|
-
|
|
1588
|
+
function i(d) {
|
|
1589
|
+
je();
|
|
1589
1590
|
}
|
|
1590
|
-
function
|
|
1591
|
-
return
|
|
1591
|
+
function c() {
|
|
1592
|
+
return e.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
1592
1593
|
}
|
|
1593
|
-
function s(d,
|
|
1594
|
-
const
|
|
1595
|
-
if ((
|
|
1596
|
-
const { label:
|
|
1597
|
-
return
|
|
1594
|
+
function s(d, j) {
|
|
1595
|
+
const w = e;
|
|
1596
|
+
if ((w.appearance && w.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1597
|
+
const { label: _ } = d, N = L("form-group");
|
|
1598
|
+
return N.editor = j, N.label = _, b(N), delete N.editor.id, delete N.editor.binding, delete N.editor.appearance, delete N.editor.visible, N;
|
|
1598
1599
|
}
|
|
1599
|
-
return
|
|
1600
|
+
return j;
|
|
1600
1601
|
}
|
|
1601
|
-
function
|
|
1602
|
-
const
|
|
1603
|
-
if (
|
|
1604
|
-
const
|
|
1605
|
-
|
|
1602
|
+
function b(d) {
|
|
1603
|
+
const j = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
|
|
1604
|
+
if (j && j.schema && j.schema.componentType) {
|
|
1605
|
+
const w = j.schema.componentType, T = P(w);
|
|
1606
|
+
d.appearance || (d.appearance = {}), d.appearance.class = T;
|
|
1606
1607
|
}
|
|
1607
|
-
return S;
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1610
|
-
|
|
1609
|
+
function P(d) {
|
|
1610
|
+
let j = "";
|
|
1611
|
+
switch (d) {
|
|
1612
|
+
case "form-col-1": {
|
|
1613
|
+
j = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
1614
|
+
break;
|
|
1615
|
+
}
|
|
1616
|
+
case "form-col-12": {
|
|
1617
|
+
j = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
1618
|
+
break;
|
|
1619
|
+
}
|
|
1620
|
+
case "form-col-2": {
|
|
1621
|
+
j = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1622
|
+
break;
|
|
1623
|
+
}
|
|
1624
|
+
case "form-col-3": {
|
|
1625
|
+
j = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
1626
|
+
break;
|
|
1627
|
+
}
|
|
1628
|
+
case "form-col-4": {
|
|
1629
|
+
j = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
1630
|
+
break;
|
|
1631
|
+
}
|
|
1632
|
+
case "form-col-6": {
|
|
1633
|
+
j = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1634
|
+
break;
|
|
1635
|
+
}
|
|
1636
|
+
case "frame": {
|
|
1637
|
+
j = "col-12";
|
|
1638
|
+
break;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
return j;
|
|
1611
1642
|
}
|
|
1612
|
-
function
|
|
1613
|
-
|
|
1643
|
+
function C(d, j, w) {
|
|
1644
|
+
const T = e;
|
|
1645
|
+
if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1646
|
+
const N = String(d.innerText), $ = L("form-group");
|
|
1647
|
+
return $.editor = w, $.label = N, $;
|
|
1648
|
+
}
|
|
1649
|
+
return w;
|
|
1650
|
+
}
|
|
1651
|
+
function E() {
|
|
1652
|
+
return !l;
|
|
1614
1653
|
}
|
|
1615
|
-
function
|
|
1616
|
-
return
|
|
1654
|
+
function M() {
|
|
1655
|
+
return !l;
|
|
1656
|
+
}
|
|
1657
|
+
function m() {
|
|
1658
|
+
return v;
|
|
1617
1659
|
}
|
|
1618
1660
|
return {
|
|
1619
|
-
canAccepts:
|
|
1620
|
-
checkCanDeleteComponent:
|
|
1621
|
-
checkCanMoveComponent:
|
|
1622
|
-
getStyles:
|
|
1623
|
-
hideNestedPaddingInDesginerView:
|
|
1624
|
-
onAcceptNewChildElement:
|
|
1625
|
-
onAcceptMovedChildElement:
|
|
1626
|
-
resolveComponentContext:
|
|
1661
|
+
canAccepts: y,
|
|
1662
|
+
checkCanDeleteComponent: M,
|
|
1663
|
+
checkCanMoveComponent: E,
|
|
1664
|
+
getStyles: c,
|
|
1665
|
+
hideNestedPaddingInDesginerView: m,
|
|
1666
|
+
onAcceptNewChildElement: C,
|
|
1667
|
+
onAcceptMovedChildElement: i,
|
|
1668
|
+
resolveComponentContext: g,
|
|
1627
1669
|
onResolveNewComponentSchema: s,
|
|
1628
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1629
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1670
|
+
triggerBelongedComponentToMoveWhenMoved: o,
|
|
1671
|
+
triggerBelongedComponentToDeleteWhenDeleted: f
|
|
1630
1672
|
};
|
|
1631
1673
|
}
|
|
1632
|
-
const
|
|
1674
|
+
const gt = /* @__PURE__ */ ce({
|
|
1633
1675
|
name: "FNavDesign",
|
|
1634
|
-
props:
|
|
1676
|
+
props: R,
|
|
1635
1677
|
emits: ["nav"],
|
|
1636
1678
|
setup(n, t) {
|
|
1637
|
-
var
|
|
1638
|
-
const e =
|
|
1639
|
-
|
|
1640
|
-
const o =
|
|
1641
|
-
|
|
1642
|
-
o.value.componentInstance =
|
|
1643
|
-
}), t.expose(
|
|
1644
|
-
const
|
|
1679
|
+
var i;
|
|
1680
|
+
const e = S(n.activeNavId), r = S(n.navData), a = S(n.horizontal);
|
|
1681
|
+
S(n.navPicking);
|
|
1682
|
+
const o = S(), f = Ce("design-item-context"), h = vt(f.schema, (i = f.parent) == null ? void 0 : i.schema), v = it(o, f, h);
|
|
1683
|
+
Te(() => {
|
|
1684
|
+
o.value.componentInstance = v;
|
|
1685
|
+
}), t.expose(v.value);
|
|
1686
|
+
const p = F({
|
|
1645
1687
|
get() {
|
|
1646
1688
|
return r.value;
|
|
1647
1689
|
},
|
|
1648
|
-
set(
|
|
1649
|
-
r.value =
|
|
1690
|
+
set(c) {
|
|
1691
|
+
r.value = c, y();
|
|
1650
1692
|
}
|
|
1651
|
-
}),
|
|
1693
|
+
}), l = F({
|
|
1652
1694
|
get() {
|
|
1653
1695
|
return e.value;
|
|
1654
1696
|
},
|
|
1655
|
-
set(
|
|
1656
|
-
if (e.value =
|
|
1657
|
-
const
|
|
1658
|
-
|
|
1697
|
+
set(c) {
|
|
1698
|
+
if (e.value = c, e.value && p && p.value.length) {
|
|
1699
|
+
const s = p.value.find((b) => b.id === e.value);
|
|
1700
|
+
s && t.emit("nav", s);
|
|
1659
1701
|
}
|
|
1660
1702
|
}
|
|
1661
|
-
}),
|
|
1662
|
-
set(
|
|
1663
|
-
a.value =
|
|
1703
|
+
}), u = F({
|
|
1704
|
+
set(c) {
|
|
1705
|
+
a.value = c;
|
|
1664
1706
|
},
|
|
1665
1707
|
get() {
|
|
1666
1708
|
return a.value;
|
|
1667
1709
|
}
|
|
1668
1710
|
});
|
|
1669
|
-
function
|
|
1670
|
-
if (
|
|
1671
|
-
const
|
|
1672
|
-
|
|
1711
|
+
function y() {
|
|
1712
|
+
if (p.value && p.value.length && !e.value) {
|
|
1713
|
+
const c = p.value.find((s) => !s.disable);
|
|
1714
|
+
c && (e.value = c.id);
|
|
1673
1715
|
}
|
|
1674
1716
|
}
|
|
1675
|
-
function g(
|
|
1676
|
-
|
|
1717
|
+
function g(c) {
|
|
1718
|
+
c.disable || c.id === e.value || (e.value = c.id, t.emit("nav", c));
|
|
1677
1719
|
}
|
|
1678
1720
|
return () => {
|
|
1679
|
-
var
|
|
1680
|
-
return
|
|
1721
|
+
var c;
|
|
1722
|
+
return D("div", {
|
|
1681
1723
|
ref: o,
|
|
1682
1724
|
class: ["farris-nav", {
|
|
1683
|
-
"farris-nav-vertical": !
|
|
1725
|
+
"farris-nav-vertical": !u.value
|
|
1684
1726
|
}]
|
|
1685
|
-
}, [(
|
|
1727
|
+
}, [(c = p.value) == null ? void 0 : c.map((s) => D("div", {
|
|
1686
1728
|
class: ["farris-nav-item", {
|
|
1687
|
-
active:
|
|
1729
|
+
active: s.id === l.value
|
|
1688
1730
|
}, {
|
|
1689
|
-
disabled:
|
|
1731
|
+
disabled: s.disable
|
|
1690
1732
|
}],
|
|
1691
|
-
onClick: () => g(
|
|
1692
|
-
}, [
|
|
1733
|
+
onClick: () => g(s)
|
|
1734
|
+
}, [D("div", {
|
|
1693
1735
|
class: "farris-nav-item-link"
|
|
1694
|
-
}, [
|
|
1736
|
+
}, [D("span", {
|
|
1695
1737
|
class: "farris-nav-item-link-text"
|
|
1696
|
-
}, [
|
|
1738
|
+
}, [s.text, s.num && D("div", {
|
|
1697
1739
|
class: "farris-nav-item-tag"
|
|
1698
|
-
}, [
|
|
1740
|
+
}, [s.num <= n.maxNum && D("span", {
|
|
1699
1741
|
class: "tag-text"
|
|
1700
|
-
}, [
|
|
1742
|
+
}, [s.num]), s.num > n.maxNum && D("span", {
|
|
1701
1743
|
class: "tag-text"
|
|
1702
|
-
}, [n.maxNum,
|
|
1744
|
+
}, [n.maxNum, ie("+")])])])])]))]);
|
|
1703
1745
|
};
|
|
1704
1746
|
}
|
|
1705
|
-
}),
|
|
1747
|
+
}), Tt = {
|
|
1706
1748
|
install(n) {
|
|
1707
|
-
n.component(
|
|
1749
|
+
n.component(z.name, z);
|
|
1708
1750
|
},
|
|
1709
1751
|
register(n, t, e, r) {
|
|
1710
|
-
n.nav =
|
|
1752
|
+
n.nav = z, t.nav = ae;
|
|
1711
1753
|
},
|
|
1712
1754
|
registerDesigner(n, t, e) {
|
|
1713
|
-
n.nav =
|
|
1755
|
+
n.nav = gt, t.nav = ae;
|
|
1714
1756
|
}
|
|
1715
1757
|
};
|
|
1716
1758
|
export {
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1759
|
+
z as FNav,
|
|
1760
|
+
Tt as default,
|
|
1761
|
+
R as navProps,
|
|
1762
|
+
ae as propsResolver
|
|
1721
1763
|
};
|