@farris/ui-vue 1.2.8 → 1.2.9
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 +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as ce, ref as
|
|
2
|
-
import { cloneDeep as
|
|
1
|
+
import { defineComponent as ce, ref as E, watch as ge, computed as F, createVNode as w, createTextVNode as ie, nextTick as je, inject as Ce, onMounted as Pe } from "vue";
|
|
2
|
+
import { cloneDeep as Ae } from "lodash-es";
|
|
3
3
|
var Y = function(n, t) {
|
|
4
4
|
return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
5
5
|
e.__proto__ = r;
|
|
@@ -29,16 +29,16 @@ function ee(n) {
|
|
|
29
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), o, a = [],
|
|
32
|
+
var r = e.call(n), o, a = [], l;
|
|
33
33
|
try {
|
|
34
34
|
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) a.push(o.value);
|
|
35
|
-
} catch (
|
|
36
|
-
|
|
35
|
+
} catch (d) {
|
|
36
|
+
l = { error: d };
|
|
37
37
|
} finally {
|
|
38
38
|
try {
|
|
39
39
|
o && !o.done && (e = r.return) && e.call(r);
|
|
40
40
|
} finally {
|
|
41
|
-
if (
|
|
41
|
+
if (l) throw l.error;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
return a;
|
|
@@ -51,13 +51,13 @@ function J(n, t, e) {
|
|
|
51
51
|
function O(n) {
|
|
52
52
|
return typeof n == "function";
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Te(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 U = Te(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, o) {
|
|
@@ -80,56 +80,56 @@ var X = function() {
|
|
|
80
80
|
var t, e, r, o, a;
|
|
81
81
|
if (!this.closed) {
|
|
82
82
|
this.closed = !0;
|
|
83
|
-
var
|
|
84
|
-
if (
|
|
85
|
-
if (this._parentage = null, Array.isArray(
|
|
83
|
+
var l = this._parentage;
|
|
84
|
+
if (l)
|
|
85
|
+
if (this._parentage = null, Array.isArray(l))
|
|
86
86
|
try {
|
|
87
|
-
for (var
|
|
88
|
-
var
|
|
89
|
-
|
|
87
|
+
for (var d = ee(l), v = d.next(); !v.done; v = d.next()) {
|
|
88
|
+
var u = v.value;
|
|
89
|
+
u.remove(this);
|
|
90
90
|
}
|
|
91
91
|
} catch (c) {
|
|
92
92
|
t = { error: c };
|
|
93
93
|
} finally {
|
|
94
94
|
try {
|
|
95
|
-
v && !v.done && (e =
|
|
95
|
+
v && !v.done && (e = d.return) && e.call(d);
|
|
96
96
|
} finally {
|
|
97
97
|
if (t) throw t.error;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
else
|
|
101
|
-
|
|
102
|
-
var
|
|
103
|
-
if (O(
|
|
101
|
+
l.remove(this);
|
|
102
|
+
var p = this.initialTeardown;
|
|
103
|
+
if (O(p))
|
|
104
104
|
try {
|
|
105
|
-
|
|
105
|
+
p();
|
|
106
106
|
} catch (c) {
|
|
107
|
-
a = c instanceof
|
|
107
|
+
a = c instanceof U ? c.errors : [c];
|
|
108
108
|
}
|
|
109
|
-
var
|
|
110
|
-
if (
|
|
109
|
+
var f = this._finalizers;
|
|
110
|
+
if (f) {
|
|
111
111
|
this._finalizers = null;
|
|
112
112
|
try {
|
|
113
|
-
for (var
|
|
114
|
-
var i =
|
|
113
|
+
for (var b = ee(f), j = b.next(); !j.done; j = b.next()) {
|
|
114
|
+
var i = j.value;
|
|
115
115
|
try {
|
|
116
116
|
ne(i);
|
|
117
117
|
} catch (c) {
|
|
118
|
-
a = a ?? [], c instanceof
|
|
118
|
+
a = a ?? [], c instanceof U ? a = J(J([], G(a)), G(c.errors)) : a.push(c);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
} catch (c) {
|
|
122
122
|
r = { error: c };
|
|
123
123
|
} finally {
|
|
124
124
|
try {
|
|
125
|
-
|
|
125
|
+
j && !j.done && (o = b.return) && o.call(b);
|
|
126
126
|
} finally {
|
|
127
127
|
if (r) throw r.error;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
if (a)
|
|
132
|
-
throw new
|
|
132
|
+
throw new U(a);
|
|
133
133
|
}
|
|
134
134
|
}, n.prototype.add = function(t) {
|
|
135
135
|
var e;
|
|
@@ -162,13 +162,13 @@ var X = function() {
|
|
|
162
162
|
}(), n;
|
|
163
163
|
}();
|
|
164
164
|
X.EMPTY;
|
|
165
|
-
function
|
|
165
|
+
function pe(n) {
|
|
166
166
|
return n instanceof X || n && "closed" in n && O(n.remove) && O(n.add) && O(n.unsubscribe);
|
|
167
167
|
}
|
|
168
168
|
function ne(n) {
|
|
169
169
|
O(n) ? n() : n.unsubscribe();
|
|
170
170
|
}
|
|
171
|
-
var
|
|
171
|
+
var le = {
|
|
172
172
|
onUnhandledError: null,
|
|
173
173
|
onStoppedNotification: null,
|
|
174
174
|
Promise: void 0,
|
|
@@ -199,7 +199,7 @@ var ue = function(n) {
|
|
|
199
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, pe(e) && e.add(r)) : r.destination = ke, r;
|
|
203
203
|
}
|
|
204
204
|
return t.create = function(e, r, o) {
|
|
205
205
|
return new Q(e, r, o);
|
|
@@ -227,7 +227,7 @@ var ue = function(n) {
|
|
|
227
227
|
}
|
|
228
228
|
}, t;
|
|
229
229
|
}(X), we = Function.prototype.bind;
|
|
230
|
-
function
|
|
230
|
+
function q(n, t) {
|
|
231
231
|
return we.call(n, t);
|
|
232
232
|
}
|
|
233
233
|
var Ne = function() {
|
|
@@ -264,24 +264,24 @@ var Ne = function() {
|
|
|
264
264
|
}(), Q = function(n) {
|
|
265
265
|
se(t, n);
|
|
266
266
|
function t(e, r, o) {
|
|
267
|
-
var a = n.call(this) || this,
|
|
267
|
+
var a = n.call(this) || this, l;
|
|
268
268
|
if (O(e) || !e)
|
|
269
|
-
|
|
269
|
+
l = {
|
|
270
270
|
next: e ?? void 0,
|
|
271
271
|
error: r ?? void 0,
|
|
272
272
|
complete: o ?? void 0
|
|
273
273
|
};
|
|
274
274
|
else {
|
|
275
|
-
var
|
|
276
|
-
a &&
|
|
275
|
+
var d;
|
|
276
|
+
a && le.useDeprecatedNextContext ? (d = Object.create(e), d.unsubscribe = function() {
|
|
277
277
|
return a.unsubscribe();
|
|
278
|
-
},
|
|
279
|
-
next: e.next &&
|
|
280
|
-
error: e.error &&
|
|
281
|
-
complete: e.complete &&
|
|
282
|
-
}) :
|
|
278
|
+
}, l = {
|
|
279
|
+
next: e.next && q(e.next, d),
|
|
280
|
+
error: e.error && q(e.error, d),
|
|
281
|
+
complete: e.complete && q(e.complete, d)
|
|
282
|
+
}) : l = e;
|
|
283
283
|
}
|
|
284
|
-
return a.destination = new Ne(
|
|
284
|
+
return a.destination = new Ne(l), a;
|
|
285
285
|
}
|
|
286
286
|
return t;
|
|
287
287
|
}(ue);
|
|
@@ -309,7 +309,7 @@ function Fe(n) {
|
|
|
309
309
|
}, e);
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
var
|
|
312
|
+
var Le = function() {
|
|
313
313
|
function n(t) {
|
|
314
314
|
t && (this._subscribe = t);
|
|
315
315
|
}
|
|
@@ -319,8 +319,8 @@ var $e = function() {
|
|
|
319
319
|
}, n.prototype.subscribe = function(t, e, r) {
|
|
320
320
|
var o = this, a = xe(t) ? t : new Q(t, e, r);
|
|
321
321
|
return De(function() {
|
|
322
|
-
var
|
|
323
|
-
a.add(
|
|
322
|
+
var l = o, d = l.operator, v = l.source;
|
|
323
|
+
a.add(d ? d.call(a, v) : v ? o._subscribe(a) : o._trySubscribe(a));
|
|
324
324
|
}), a;
|
|
325
325
|
}, n.prototype._trySubscribe = function(t) {
|
|
326
326
|
try {
|
|
@@ -331,18 +331,18 @@ var $e = function() {
|
|
|
331
331
|
}, n.prototype.forEach = function(t, e) {
|
|
332
332
|
var r = this;
|
|
333
333
|
return e = oe(e), new e(function(o, a) {
|
|
334
|
-
var
|
|
335
|
-
next: function(
|
|
334
|
+
var l = new Q({
|
|
335
|
+
next: function(d) {
|
|
336
336
|
try {
|
|
337
|
-
t(
|
|
337
|
+
t(d);
|
|
338
338
|
} catch (v) {
|
|
339
|
-
a(v),
|
|
339
|
+
a(v), l.unsubscribe();
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
342
|
error: a,
|
|
343
343
|
complete: o
|
|
344
344
|
});
|
|
345
|
-
r.subscribe(
|
|
345
|
+
r.subscribe(l);
|
|
346
346
|
});
|
|
347
347
|
}, n.prototype._subscribe = function(t) {
|
|
348
348
|
var e;
|
|
@@ -357,10 +357,10 @@ var $e = function() {
|
|
|
357
357
|
var e = this;
|
|
358
358
|
return t = oe(t), new t(function(r, o) {
|
|
359
359
|
var a;
|
|
360
|
-
e.subscribe(function(
|
|
361
|
-
return a =
|
|
362
|
-
}, function(
|
|
363
|
-
return o(
|
|
360
|
+
e.subscribe(function(l) {
|
|
361
|
+
return a = l;
|
|
362
|
+
}, function(l) {
|
|
363
|
+
return o(l);
|
|
364
364
|
}, function() {
|
|
365
365
|
return r(a);
|
|
366
366
|
});
|
|
@@ -371,25 +371,25 @@ var $e = function() {
|
|
|
371
371
|
}();
|
|
372
372
|
function oe(n) {
|
|
373
373
|
var t;
|
|
374
|
-
return (t = n ??
|
|
374
|
+
return (t = n ?? le.Promise) !== null && t !== void 0 ? t : Promise;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function $e(n) {
|
|
377
377
|
return n && O(n.next) && O(n.error) && O(n.complete);
|
|
378
378
|
}
|
|
379
379
|
function xe(n) {
|
|
380
|
-
return n && n instanceof ue ||
|
|
380
|
+
return n && n instanceof ue || $e(n) && pe(n);
|
|
381
381
|
}
|
|
382
382
|
const fe = {}, de = {};
|
|
383
383
|
function Z(n) {
|
|
384
|
-
const { properties: t, title: e } = n, r = Object.keys(t).reduce((
|
|
385
|
-
return r.id = `${e}-${Date.now()}
|
|
384
|
+
const { properties: t, title: e, ignore: r } = n, o = r && Array.isArray(r), a = Object.keys(t).reduce((l, d) => ((!o || !r.find((v) => v == d)) && (l[d] = t[d].type === "object" && t[d].properties ? Z(t[d]) : Ae(t[d].default)), l), {});
|
|
385
|
+
return (!o || !r.find((l) => l == "id")) && (a.id = `${e}-${Date.now()}`), a;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
const
|
|
389
|
-
if (
|
|
390
|
-
let
|
|
391
|
-
const
|
|
392
|
-
return
|
|
387
|
+
function $(n, t = {}, e) {
|
|
388
|
+
const r = fe[n];
|
|
389
|
+
if (r) {
|
|
390
|
+
let o = Z(r);
|
|
391
|
+
const a = de[n];
|
|
392
|
+
return o = a ? a({ getSchemaByType: $ }, o, t, e) : o, o;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
395
|
}
|
|
@@ -404,78 +404,78 @@ function Ve(n, t) {
|
|
|
404
404
|
if (typeof a == "string")
|
|
405
405
|
r[a] = n[o];
|
|
406
406
|
else {
|
|
407
|
-
const
|
|
408
|
-
Object.assign(r,
|
|
407
|
+
const l = a(o, n[o], n);
|
|
408
|
+
Object.assign(r, l);
|
|
409
409
|
}
|
|
410
410
|
} else
|
|
411
411
|
r[o] = n[o];
|
|
412
412
|
return r;
|
|
413
413
|
}, {});
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function We(n, t, e = /* @__PURE__ */ new Map()) {
|
|
416
416
|
const r = Be(n, t);
|
|
417
417
|
return Ve(r, e);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
function t(
|
|
421
|
-
if (typeof
|
|
422
|
-
return
|
|
423
|
-
if (typeof
|
|
424
|
-
const
|
|
425
|
-
if (
|
|
426
|
-
return Number(
|
|
427
|
-
if (
|
|
428
|
-
return Number(
|
|
429
|
-
if (
|
|
430
|
-
return Number(
|
|
419
|
+
function Ue(n = {}) {
|
|
420
|
+
function t(u, p, f, b) {
|
|
421
|
+
if (typeof f == "number")
|
|
422
|
+
return b[u].length === f;
|
|
423
|
+
if (typeof f == "object") {
|
|
424
|
+
const j = Object.keys(f)[0], i = f[j];
|
|
425
|
+
if (j === "not")
|
|
426
|
+
return Number(b[u].length) !== Number(i);
|
|
427
|
+
if (j === "moreThan")
|
|
428
|
+
return Number(b[u].length) >= Number(i);
|
|
429
|
+
if (j === "lessThan")
|
|
430
|
+
return Number(b[u].length) <= Number(i);
|
|
431
431
|
}
|
|
432
432
|
return !1;
|
|
433
433
|
}
|
|
434
|
-
function e(
|
|
435
|
-
return
|
|
434
|
+
function e(u, p, f, b) {
|
|
435
|
+
return b[u] && b[u].propertyValue && String(b[u].propertyValue.value) === String(f);
|
|
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 o(
|
|
443
|
-
const
|
|
444
|
-
return typeof
|
|
445
|
-
if (
|
|
446
|
-
return { target:
|
|
447
|
-
const
|
|
448
|
-
return { target:
|
|
441
|
+
Object.keys(n).reduce((u, p) => (u.set(p, n[p]), u), r);
|
|
442
|
+
function o(u, p) {
|
|
443
|
+
const f = u;
|
|
444
|
+
return typeof p == "number" ? [{ target: f, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: f, operator: "getProperty", param: u, value: !!p }] : typeof p == "object" ? Object.keys(p).map((b) => {
|
|
445
|
+
if (b === "length")
|
|
446
|
+
return { target: f, operator: "length", param: null, value: p[b] };
|
|
447
|
+
const j = b, i = p[b];
|
|
448
|
+
return { target: f, operator: "getProperty", param: j, value: i };
|
|
449
449
|
}) : [];
|
|
450
450
|
}
|
|
451
|
-
function a(
|
|
452
|
-
return Object.keys(
|
|
453
|
-
const
|
|
454
|
-
return
|
|
451
|
+
function a(u) {
|
|
452
|
+
return Object.keys(u).reduce((f, b) => {
|
|
453
|
+
const j = o(b, u[b]);
|
|
454
|
+
return f.push(...j), f;
|
|
455
455
|
}, []);
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
if (r.has(
|
|
459
|
-
const
|
|
460
|
-
return
|
|
457
|
+
function l(u, p) {
|
|
458
|
+
if (r.has(u.operator)) {
|
|
459
|
+
const f = r.get(u.operator);
|
|
460
|
+
return f && f(u.target, u.param, u.value, p) || !1;
|
|
461
461
|
}
|
|
462
462
|
return !1;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
465
|
-
return a(
|
|
464
|
+
function d(u, p) {
|
|
465
|
+
return a(u).reduce((j, i) => j && l(i, p), !0);
|
|
466
466
|
}
|
|
467
|
-
function v(
|
|
468
|
-
const
|
|
469
|
-
return
|
|
467
|
+
function v(u, p) {
|
|
468
|
+
const f = Object.keys(u), b = f.includes("allOf"), j = f.includes("anyOf"), i = b || j, h = (i ? u[i ? b ? "allOf" : "anyOf" : "allOf"] : [u]).map((C) => d(C, p));
|
|
469
|
+
return b ? !h.includes(!1) : h.includes(!0);
|
|
470
470
|
}
|
|
471
471
|
return { parseValueSchema: v };
|
|
472
472
|
}
|
|
473
|
-
const
|
|
474
|
-
|
|
475
|
-
function He(n, t, e = /* @__PURE__ */ new Map(), r = (
|
|
476
|
-
return fe[t.title] = t, de[t.title] = r,
|
|
477
|
-
const
|
|
478
|
-
return Object.assign(v,
|
|
473
|
+
const qe = {}, ze = {};
|
|
474
|
+
Ue();
|
|
475
|
+
function He(n, t, e = /* @__PURE__ */ new Map(), r = (l, d, v) => d, o = {}, a = (l) => l) {
|
|
476
|
+
return fe[t.title] = t, de[t.title] = r, qe[t.title] = o, ze[t.title] = a, (l = {}) => {
|
|
477
|
+
const d = We(l, t, e), v = Object.keys(n).reduce((u, p) => (u[p] = n[p].default, u), {});
|
|
478
|
+
return Object.assign(v, d);
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
481
|
function Ye(n, t) {
|
|
@@ -710,36 +710,36 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
|
|
|
710
710
|
/** 当前激活的id */
|
|
711
711
|
activeNavId: { Type: String, default: "1" },
|
|
712
712
|
/** nav切换前事件 */
|
|
713
|
-
navPicking: { Type: Function, default: (n) =>
|
|
713
|
+
navPicking: { Type: Function, default: (n) => Le }
|
|
714
714
|
}, ae = He(R, et, Ge, tt, ct), z = /* @__PURE__ */ ce({
|
|
715
715
|
name: "FNav",
|
|
716
716
|
props: R,
|
|
717
717
|
emits: ["nav", "update:activeNavId"],
|
|
718
718
|
setup(n, t) {
|
|
719
|
-
const e =
|
|
720
|
-
|
|
721
|
-
|
|
719
|
+
const e = E(n.activeNavId), r = E(n.navData), o = E(n.horizontal);
|
|
720
|
+
E(n.navPicking), ge(() => n.activeNavId, (p, f) => {
|
|
721
|
+
p !== f && (e.value = p);
|
|
722
722
|
});
|
|
723
723
|
const a = F({
|
|
724
724
|
get() {
|
|
725
725
|
return r.value;
|
|
726
726
|
},
|
|
727
|
-
set(
|
|
728
|
-
r.value =
|
|
727
|
+
set(p) {
|
|
728
|
+
r.value = p, v();
|
|
729
729
|
}
|
|
730
|
-
}),
|
|
730
|
+
}), l = F({
|
|
731
731
|
get() {
|
|
732
732
|
return e.value;
|
|
733
733
|
},
|
|
734
|
-
set(
|
|
735
|
-
if (e.value =
|
|
736
|
-
const
|
|
737
|
-
|
|
734
|
+
set(p) {
|
|
735
|
+
if (e.value = p, e.value && a && a.value.length) {
|
|
736
|
+
const f = a.value.find((b) => b.id === e.value);
|
|
737
|
+
f && t.emit("nav", f);
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
}),
|
|
741
|
-
set(
|
|
742
|
-
o.value =
|
|
740
|
+
}), d = F({
|
|
741
|
+
set(p) {
|
|
742
|
+
o.value = p;
|
|
743
743
|
},
|
|
744
744
|
get() {
|
|
745
745
|
return o.value;
|
|
@@ -747,35 +747,35 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
|
|
|
747
747
|
});
|
|
748
748
|
function v() {
|
|
749
749
|
if (a.value && a.value.length && !e.value) {
|
|
750
|
-
const
|
|
751
|
-
|
|
750
|
+
const p = a.value.find((f) => !f.disable);
|
|
751
|
+
p && (e.value = p.id);
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
function p
|
|
755
|
-
|
|
754
|
+
function u(p) {
|
|
755
|
+
p.disable || p.id === e.value || (e.value = p.id, t.emit("update:activeNavId", p.id), t.emit("nav", p));
|
|
756
756
|
}
|
|
757
757
|
return () => {
|
|
758
|
-
var
|
|
759
|
-
return
|
|
758
|
+
var p;
|
|
759
|
+
return w("div", {
|
|
760
760
|
class: ["farris-nav", {
|
|
761
|
-
"farris-nav-vertical": !
|
|
761
|
+
"farris-nav-vertical": !d.value
|
|
762
762
|
}]
|
|
763
|
-
}, [(
|
|
763
|
+
}, [(p = a.value) == null ? void 0 : p.map((f) => w("div", {
|
|
764
764
|
class: ["farris-nav-item", {
|
|
765
|
-
active:
|
|
765
|
+
active: f.id === l.value
|
|
766
766
|
}, {
|
|
767
|
-
disabled:
|
|
767
|
+
disabled: f.disable
|
|
768
768
|
}],
|
|
769
|
-
onClick: () =>
|
|
770
|
-
}, [
|
|
769
|
+
onClick: () => u(f)
|
|
770
|
+
}, [w("div", {
|
|
771
771
|
class: "farris-nav-item-link"
|
|
772
|
-
}, [
|
|
772
|
+
}, [w("span", {
|
|
773
773
|
class: "farris-nav-item-link-text"
|
|
774
|
-
}, [typeof
|
|
774
|
+
}, [typeof f.text == "function" ? f.text() : f.text, f.num && w("div", {
|
|
775
775
|
class: "farris-nav-item-tag"
|
|
776
|
-
}, [
|
|
776
|
+
}, [f.num <= n.maxNum && w("span", {
|
|
777
777
|
class: "tag-text"
|
|
778
|
-
}, [
|
|
778
|
+
}, [f.num]), f.num > n.maxNum && w("span", {
|
|
779
779
|
class: "tag-text"
|
|
780
780
|
}, [n.maxNum, ie("+")])])])])]))]);
|
|
781
781
|
};
|
|
@@ -787,32 +787,32 @@ function it(n, t, e) {
|
|
|
787
787
|
e != null && e.resolveComponentContext && e.resolveComponentContext();
|
|
788
788
|
}
|
|
789
789
|
r();
|
|
790
|
-
const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "",
|
|
791
|
-
function
|
|
790
|
+
const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", l = E();
|
|
791
|
+
function d() {
|
|
792
792
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
|
|
793
793
|
}
|
|
794
794
|
function v() {
|
|
795
795
|
return !1;
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function u() {
|
|
798
798
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function p() {
|
|
801
801
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function f(m) {
|
|
804
804
|
if (!m || !m.value)
|
|
805
805
|
return null;
|
|
806
806
|
if (m.value.schema && m.value.schema.type === "component")
|
|
807
807
|
return m.value;
|
|
808
|
-
const
|
|
809
|
-
return
|
|
808
|
+
const T = E(m == null ? void 0 : m.value.parent), y = f(T);
|
|
809
|
+
return y || null;
|
|
810
810
|
}
|
|
811
|
-
function
|
|
812
|
-
const { componentInstance:
|
|
813
|
-
return !
|
|
811
|
+
function b(m = t) {
|
|
812
|
+
const { componentInstance: T, designerItemElementRef: y } = m;
|
|
813
|
+
return !T || !T.value ? null : T.value.canMove ? y : b(m.parent);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function j(m) {
|
|
816
816
|
return !!e && e.canAccepts(m);
|
|
817
817
|
}
|
|
818
818
|
function i() {
|
|
@@ -820,55 +820,55 @@ function it(n, t, e) {
|
|
|
820
820
|
}
|
|
821
821
|
function c() {
|
|
822
822
|
}
|
|
823
|
-
function s(m,
|
|
824
|
-
|
|
823
|
+
function s(m, T) {
|
|
824
|
+
T && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(T);
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
const { componentType:
|
|
828
|
-
let
|
|
829
|
-
e && e.onResolveNewComponentSchema && (
|
|
830
|
-
const
|
|
831
|
-
return
|
|
826
|
+
function h(m, T) {
|
|
827
|
+
const { componentType: y } = m;
|
|
828
|
+
let g = $(y, m, T);
|
|
829
|
+
e && e.onResolveNewComponentSchema && (g = e.onResolveNewComponentSchema(m, g));
|
|
830
|
+
const S = y.toLowerCase().replace("-", "_");
|
|
831
|
+
return g && !g.id && g.type === y && (g.id = `${S}_${Math.random().toString().slice(2, 6)}`), g;
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
let
|
|
837
|
-
e && e.onAcceptNewChildElement && (
|
|
838
|
-
const k =
|
|
839
|
-
return
|
|
833
|
+
function A(m, T) {
|
|
834
|
+
const y = String(m.getAttribute("data-controltype")), g = m.getAttribute("data-feature"), S = g ? JSON.parse(g) : {};
|
|
835
|
+
S.parentComponentInstance = l.value;
|
|
836
|
+
let P = $(y, S);
|
|
837
|
+
e && e.onAcceptNewChildElement && (P = e.onAcceptNewChildElement(m, T, P));
|
|
838
|
+
const k = y.toLowerCase().replace("-", "_");
|
|
839
|
+
return P && !P.id && P.type === y && (P.id = `${k}_${Math.random().toString().slice(2, 6)}`), P;
|
|
840
840
|
}
|
|
841
841
|
function C(m) {
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function D(...m) {
|
|
844
844
|
if (e && e.getPropsConfig)
|
|
845
845
|
return e.getPropsConfig(...m);
|
|
846
846
|
}
|
|
847
|
-
return
|
|
848
|
-
canMove:
|
|
847
|
+
return l.value = {
|
|
848
|
+
canMove: d(),
|
|
849
849
|
canSelectParent: v(),
|
|
850
|
-
canDelete:
|
|
851
|
-
canNested: !
|
|
850
|
+
canDelete: u(),
|
|
851
|
+
canNested: !p(),
|
|
852
852
|
contents: t == null ? void 0 : t.schema.contents,
|
|
853
853
|
elementRef: n,
|
|
854
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: o,
|
|
857
857
|
designerClass: a,
|
|
858
|
-
canAccepts:
|
|
859
|
-
getBelongedComponentInstance:
|
|
860
|
-
getDraggableDesignItemElement:
|
|
858
|
+
canAccepts: j,
|
|
859
|
+
getBelongedComponentInstance: f,
|
|
860
|
+
getDraggableDesignItemElement: b,
|
|
861
861
|
getDraggingDisplayText: i,
|
|
862
|
-
getPropConfig:
|
|
862
|
+
getPropConfig: D,
|
|
863
863
|
getDragScopeElement: c,
|
|
864
864
|
onAcceptMovedChildElement: s,
|
|
865
|
-
onAcceptNewChildElement:
|
|
865
|
+
onAcceptNewChildElement: A,
|
|
866
866
|
onChildElementMovedOut: C,
|
|
867
|
-
addNewChildComponentSchema:
|
|
867
|
+
addNewChildComponentSchema: h,
|
|
868
868
|
updateDragAndDropRules: r,
|
|
869
|
-
triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved ||
|
|
870
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
871
|
-
},
|
|
869
|
+
triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || E(!1),
|
|
870
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || E(!1)
|
|
871
|
+
}, l;
|
|
872
872
|
}
|
|
873
873
|
function st() {
|
|
874
874
|
function n(t) {
|
|
@@ -880,8 +880,8 @@ function st() {
|
|
|
880
880
|
return !1;
|
|
881
881
|
const r = (a = e.schema.appearance) == null ? void 0 : a.class;
|
|
882
882
|
if (t.controlCategory === "input" || t.controlType === "form-group") {
|
|
883
|
-
const
|
|
884
|
-
if (e.schema.type !== "response-layout-item" && !
|
|
883
|
+
const l = e.schema.type, d = (l === "response-form" || l === "content-container") && r && r.includes("farris-form");
|
|
884
|
+
if (e.schema.type !== "response-layout-item" && !d)
|
|
885
885
|
return !1;
|
|
886
886
|
}
|
|
887
887
|
return t.controlType !== "field-set";
|
|
@@ -890,7 +890,7 @@ function st() {
|
|
|
890
890
|
basalDragulaRuleForContainer: n
|
|
891
891
|
};
|
|
892
892
|
}
|
|
893
|
-
const
|
|
893
|
+
const pt = "https://json-schema.org/draft/2020-12/schema", lt = "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",
|
|
@@ -1309,6 +1309,80 @@ const lt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-
|
|
|
1309
1309
|
"f-list-nav-left": {
|
|
1310
1310
|
description: "",
|
|
1311
1311
|
type: "object"
|
|
1312
|
+
},
|
|
1313
|
+
"f-struct-data-grid-in-nav": {
|
|
1314
|
+
description: "",
|
|
1315
|
+
type: "object",
|
|
1316
|
+
properties: {
|
|
1317
|
+
contents: {
|
|
1318
|
+
type: "object",
|
|
1319
|
+
properties: {
|
|
1320
|
+
"f-section-form": {
|
|
1321
|
+
description: "",
|
|
1322
|
+
type: "object",
|
|
1323
|
+
properties: {
|
|
1324
|
+
rules: {
|
|
1325
|
+
type: "object",
|
|
1326
|
+
properties: {
|
|
1327
|
+
canAccept: {
|
|
1328
|
+
type: "boolean",
|
|
1329
|
+
const: !1
|
|
1330
|
+
},
|
|
1331
|
+
fixed: {
|
|
1332
|
+
type: "boolean",
|
|
1333
|
+
const: !0
|
|
1334
|
+
},
|
|
1335
|
+
hidePadding: {
|
|
1336
|
+
type: "boolean",
|
|
1337
|
+
const: !0
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
"f-section-grid": {
|
|
1344
|
+
description: "",
|
|
1345
|
+
type: "object",
|
|
1346
|
+
properties: {
|
|
1347
|
+
rules: {
|
|
1348
|
+
type: "object",
|
|
1349
|
+
properties: {
|
|
1350
|
+
canAccept: {
|
|
1351
|
+
type: "boolean",
|
|
1352
|
+
const: !1
|
|
1353
|
+
},
|
|
1354
|
+
fixed: {
|
|
1355
|
+
type: "boolean",
|
|
1356
|
+
const: !0
|
|
1357
|
+
},
|
|
1358
|
+
hidePadding: {
|
|
1359
|
+
type: "boolean",
|
|
1360
|
+
const: !0
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
rules: {
|
|
1369
|
+
type: "object",
|
|
1370
|
+
properties: {
|
|
1371
|
+
canAccept: {
|
|
1372
|
+
type: "boolean",
|
|
1373
|
+
const: !1
|
|
1374
|
+
},
|
|
1375
|
+
fixed: {
|
|
1376
|
+
type: "boolean",
|
|
1377
|
+
const: !0
|
|
1378
|
+
},
|
|
1379
|
+
hidePadding: {
|
|
1380
|
+
type: "boolean",
|
|
1381
|
+
const: !0
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1312
1386
|
}
|
|
1313
1387
|
}
|
|
1314
1388
|
}
|
|
@@ -1454,39 +1528,38 @@ const lt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-
|
|
|
1454
1528
|
description: "",
|
|
1455
1529
|
type: "object"
|
|
1456
1530
|
}
|
|
1457
|
-
},
|
|
1458
|
-
$schema:
|
|
1459
|
-
$id:
|
|
1531
|
+
}, bt = {
|
|
1532
|
+
$schema: pt,
|
|
1533
|
+
$id: lt,
|
|
1460
1534
|
title: ut,
|
|
1461
1535
|
description: ft,
|
|
1462
1536
|
type: dt,
|
|
1463
|
-
properties: yt
|
|
1464
|
-
required: ht
|
|
1537
|
+
properties: yt
|
|
1465
1538
|
}, H = /* @__PURE__ */ new Map();
|
|
1466
|
-
function
|
|
1467
|
-
function n(i, c, s,
|
|
1468
|
-
var
|
|
1539
|
+
function ht() {
|
|
1540
|
+
function n(i, c, s, h) {
|
|
1541
|
+
var A;
|
|
1469
1542
|
if (typeof s == "number")
|
|
1470
|
-
return ((
|
|
1543
|
+
return ((A = h[i]) == null ? void 0 : A.length) === s;
|
|
1471
1544
|
if (typeof s == "object") {
|
|
1472
|
-
const C = Object.keys(s)[0],
|
|
1545
|
+
const C = Object.keys(s)[0], D = s[C];
|
|
1473
1546
|
if (C === "not")
|
|
1474
|
-
return Number(
|
|
1547
|
+
return Number(h[i].length) !== Number(D);
|
|
1475
1548
|
if (C === "moreThan")
|
|
1476
|
-
return Number(
|
|
1549
|
+
return Number(h[i].length) >= Number(D);
|
|
1477
1550
|
if (C === "lessThan")
|
|
1478
|
-
return Number(
|
|
1551
|
+
return Number(h[i].length) <= Number(D);
|
|
1479
1552
|
}
|
|
1480
1553
|
return !1;
|
|
1481
1554
|
}
|
|
1482
|
-
function t(i, c, s,
|
|
1483
|
-
return typeof s == "boolean" ?
|
|
1555
|
+
function t(i, c, s, h) {
|
|
1556
|
+
return typeof s == "boolean" ? h.childrenClassList.includes(c) === !!s : !1;
|
|
1484
1557
|
}
|
|
1485
|
-
function e(i, c, s,
|
|
1486
|
-
return typeof s == "boolean" ?
|
|
1558
|
+
function e(i, c, s, h) {
|
|
1559
|
+
return typeof s == "boolean" ? h.parentClassList.includes(c) === !!s : !1;
|
|
1487
1560
|
}
|
|
1488
|
-
function r(i, c, s,
|
|
1489
|
-
return typeof s == "boolean" ?
|
|
1561
|
+
function r(i, c, s, h) {
|
|
1562
|
+
return typeof s == "boolean" ? h.parentClassList.includes(c) === !!s : !1;
|
|
1490
1563
|
}
|
|
1491
1564
|
const o = /* @__PURE__ */ new Map([
|
|
1492
1565
|
["length", n],
|
|
@@ -1496,211 +1569,199 @@ function mt() {
|
|
|
1496
1569
|
]);
|
|
1497
1570
|
function a(i, c) {
|
|
1498
1571
|
const s = i;
|
|
1499
|
-
return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((
|
|
1500
|
-
if (
|
|
1501
|
-
return { target: s, operator: "length", param: null, value: c[
|
|
1502
|
-
const
|
|
1503
|
-
return { target: s, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param:
|
|
1572
|
+
return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((h) => {
|
|
1573
|
+
if (h === "length")
|
|
1574
|
+
return { target: s, operator: "length", param: null, value: c[h] };
|
|
1575
|
+
const A = h, C = c[h];
|
|
1576
|
+
return { target: s, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: A, value: C };
|
|
1504
1577
|
}) : [];
|
|
1505
1578
|
}
|
|
1506
|
-
function
|
|
1579
|
+
function l(i, c) {
|
|
1507
1580
|
if (o.has(i.operator)) {
|
|
1508
1581
|
const s = o.get(i.operator);
|
|
1509
1582
|
return s && s(i.target, i.param, i.value, c) || !1;
|
|
1510
1583
|
}
|
|
1511
1584
|
return !1;
|
|
1512
1585
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return Object.keys(i).reduce((C,
|
|
1515
|
-
const M = a(
|
|
1586
|
+
function d(i, c) {
|
|
1587
|
+
return Object.keys(i).reduce((C, D) => {
|
|
1588
|
+
const M = a(D, i[D]);
|
|
1516
1589
|
return C.push(...M), C;
|
|
1517
|
-
}, []).reduce((C,
|
|
1590
|
+
}, []).reduce((C, D) => C && l(D, c), !0);
|
|
1518
1591
|
}
|
|
1519
1592
|
function v(i, c) {
|
|
1520
|
-
const s = Object.keys(i),
|
|
1521
|
-
return
|
|
1593
|
+
const s = Object.keys(i), h = s.includes("allOf"), A = s.includes("anyOf"), C = h || A, m = (C ? i[C ? h ? "allOf" : "anyOf" : "allOf"] : [i]).map((y) => d(y, c));
|
|
1594
|
+
return h ? !m.includes(!1) : m.includes(!0);
|
|
1522
1595
|
}
|
|
1523
|
-
function
|
|
1596
|
+
function u(i, c) {
|
|
1524
1597
|
const s = i.const;
|
|
1525
1598
|
return s ? typeof s == "boolean" ? s : typeof s == "object" ? v(s, c) : !1 : !1;
|
|
1526
1599
|
}
|
|
1527
|
-
function
|
|
1600
|
+
function p(i) {
|
|
1528
1601
|
return (c) => {
|
|
1529
1602
|
const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1530
|
-
return i && i.properties && Object.keys(i.properties).reduce((
|
|
1531
|
-
const C = i.properties[
|
|
1532
|
-
return
|
|
1603
|
+
return i && i.properties && Object.keys(i.properties).reduce((h, A) => {
|
|
1604
|
+
const C = i.properties[A];
|
|
1605
|
+
return h[A] = u(C, c), h;
|
|
1533
1606
|
}, s), s;
|
|
1534
1607
|
};
|
|
1535
1608
|
}
|
|
1536
|
-
function
|
|
1609
|
+
function f(i, c, s) {
|
|
1537
1610
|
if (c.type === "object" && c.properties) {
|
|
1538
|
-
const { rules:
|
|
1539
|
-
s.set(i,
|
|
1540
|
-
(C) =>
|
|
1611
|
+
const { rules: h, contents: A } = c.properties;
|
|
1612
|
+
s.set(i, p(h)), A && Object.keys(A.properties).forEach(
|
|
1613
|
+
(C) => f(C, A.properties[C], s)
|
|
1541
1614
|
);
|
|
1542
1615
|
}
|
|
1543
1616
|
}
|
|
1544
|
-
function
|
|
1617
|
+
function b() {
|
|
1545
1618
|
const { properties: i } = bt;
|
|
1546
1619
|
Object.keys(i).forEach((c) => {
|
|
1547
|
-
|
|
1620
|
+
f(c, i[c], H);
|
|
1548
1621
|
});
|
|
1549
1622
|
}
|
|
1550
|
-
function
|
|
1623
|
+
function j(i, c) {
|
|
1551
1624
|
const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1552
1625
|
return H.has(i) ? H.get(i)(c) : s;
|
|
1553
1626
|
}
|
|
1554
|
-
return
|
|
1627
|
+
return b(), { getRuleValue: j };
|
|
1555
1628
|
}
|
|
1556
|
-
function
|
|
1557
|
-
var
|
|
1558
|
-
const e = n.schema, r = (
|
|
1559
|
-
let
|
|
1560
|
-
function
|
|
1561
|
-
return
|
|
1629
|
+
function mt(n, t) {
|
|
1630
|
+
var T;
|
|
1631
|
+
const e = n.schema, r = (T = n.parent) == null ? void 0 : T.schema, o = ht(), a = E(!1), l = E(!1);
|
|
1632
|
+
let d = !0, v = !1, u, p = !1;
|
|
1633
|
+
function f(y) {
|
|
1634
|
+
return u && u.componentClassList && u.componentClassList.includes("f-form-layout") && u.componentClassList.includes("farris-form") ? y.sourceType === "control" && y.controlCategory === "input" || y.sourceType === "move" && y.controlType === "form-group" : !0;
|
|
1562
1635
|
}
|
|
1563
|
-
function y
|
|
1564
|
-
return !(!st().basalDragulaRuleForContainer(
|
|
1636
|
+
function b(y) {
|
|
1637
|
+
return !(!st().basalDragulaRuleForContainer(y) || !d || !f(y));
|
|
1565
1638
|
}
|
|
1566
|
-
function
|
|
1567
|
-
a.value = !1,
|
|
1568
|
-
const
|
|
1569
|
-
const I =
|
|
1639
|
+
function j() {
|
|
1640
|
+
a.value = !1, l.value = !1;
|
|
1641
|
+
const y = e, g = y.appearance && y.appearance.class || "", S = g.split(" "), P = y.contents || [], k = P.length ? P[0] : null, _ = k && k.appearance ? k.appearance.class : "", N = _ ? _.split(" ") : [], L = P.length ? P.reduce((K, W) => {
|
|
1642
|
+
const I = W && W.appearance ? W.appearance.class : "", ve = I ? I.split(" ") : [];
|
|
1570
1643
|
return K.push(...ve), K;
|
|
1571
1644
|
}, []) : [], x = r, V = x && x.appearance && x.appearance.class || "", ye = V ? V.split(" ") : [];
|
|
1572
|
-
|
|
1573
|
-
componentClass:
|
|
1574
|
-
componentClassList:
|
|
1575
|
-
childContents:
|
|
1645
|
+
u = {
|
|
1646
|
+
componentClass: g,
|
|
1647
|
+
componentClassList: S,
|
|
1648
|
+
childContents: P,
|
|
1576
1649
|
firstChildContent: k,
|
|
1577
1650
|
firstChildClass: _,
|
|
1578
1651
|
firstChildClassList: N,
|
|
1579
1652
|
parent: x,
|
|
1580
1653
|
parentClass: V,
|
|
1581
1654
|
parentClassList: ye,
|
|
1582
|
-
children:
|
|
1583
|
-
childrenClassList:
|
|
1655
|
+
children: P,
|
|
1656
|
+
childrenClassList: L
|
|
1584
1657
|
};
|
|
1585
|
-
const { canAccept:
|
|
1586
|
-
return
|
|
1658
|
+
const { canAccept: be, fixed: he, hidePadding: me } = o.getRuleValue(S[0], u);
|
|
1659
|
+
return d = be, v = me, p = he, !0;
|
|
1587
1660
|
}
|
|
1588
|
-
function i(
|
|
1661
|
+
function i(y) {
|
|
1589
1662
|
je();
|
|
1590
1663
|
}
|
|
1591
1664
|
function c() {
|
|
1592
1665
|
return e.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
1593
1666
|
}
|
|
1594
|
-
function s(
|
|
1595
|
-
const
|
|
1596
|
-
if ((
|
|
1597
|
-
const { label: _ } =
|
|
1598
|
-
return N.editor =
|
|
1667
|
+
function s(y, g) {
|
|
1668
|
+
const S = e;
|
|
1669
|
+
if ((S.appearance && S.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1670
|
+
const { label: _ } = y, N = $("form-group");
|
|
1671
|
+
return N.editor = g, N.label = _, h(N), delete N.editor.id, delete N.editor.binding, delete N.editor.appearance, delete N.editor.visible, N;
|
|
1599
1672
|
}
|
|
1600
|
-
return
|
|
1673
|
+
return g;
|
|
1601
1674
|
}
|
|
1602
|
-
function
|
|
1603
|
-
const
|
|
1604
|
-
if (
|
|
1605
|
-
const
|
|
1606
|
-
|
|
1675
|
+
function h(y) {
|
|
1676
|
+
const g = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
|
|
1677
|
+
if (g && g.schema && g.schema.componentType) {
|
|
1678
|
+
const S = g.schema.formColumns, P = A(S);
|
|
1679
|
+
y.appearance || (y.appearance = {}), y.appearance.class = P;
|
|
1607
1680
|
}
|
|
1608
1681
|
}
|
|
1609
|
-
function
|
|
1610
|
-
let
|
|
1611
|
-
switch (
|
|
1612
|
-
case
|
|
1613
|
-
|
|
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";
|
|
1682
|
+
function A(y) {
|
|
1683
|
+
let g = "";
|
|
1684
|
+
switch (y) {
|
|
1685
|
+
case 1: {
|
|
1686
|
+
g = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
1626
1687
|
break;
|
|
1627
1688
|
}
|
|
1628
|
-
case
|
|
1629
|
-
|
|
1689
|
+
case 2: {
|
|
1690
|
+
g = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1630
1691
|
break;
|
|
1631
1692
|
}
|
|
1632
|
-
case
|
|
1633
|
-
|
|
1693
|
+
case 3: {
|
|
1694
|
+
g = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
1634
1695
|
break;
|
|
1635
1696
|
}
|
|
1636
|
-
case
|
|
1637
|
-
|
|
1697
|
+
case 4: {
|
|
1698
|
+
g = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
1638
1699
|
break;
|
|
1639
1700
|
}
|
|
1640
1701
|
}
|
|
1641
|
-
return
|
|
1702
|
+
return g;
|
|
1642
1703
|
}
|
|
1643
|
-
function C(
|
|
1644
|
-
const
|
|
1645
|
-
if ((
|
|
1646
|
-
const N = String(
|
|
1647
|
-
return
|
|
1704
|
+
function C(y, g, S) {
|
|
1705
|
+
const P = e;
|
|
1706
|
+
if ((P.appearance && P.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1707
|
+
const N = String(y.innerText), L = $("form-group");
|
|
1708
|
+
return L.editor = S, L.label = N, L;
|
|
1648
1709
|
}
|
|
1649
|
-
return
|
|
1710
|
+
return S;
|
|
1650
1711
|
}
|
|
1651
|
-
function
|
|
1652
|
-
return !
|
|
1712
|
+
function D() {
|
|
1713
|
+
return !p;
|
|
1653
1714
|
}
|
|
1654
1715
|
function M() {
|
|
1655
|
-
return !
|
|
1716
|
+
return !p;
|
|
1656
1717
|
}
|
|
1657
1718
|
function m() {
|
|
1658
1719
|
return v;
|
|
1659
1720
|
}
|
|
1660
1721
|
return {
|
|
1661
|
-
canAccepts:
|
|
1722
|
+
canAccepts: b,
|
|
1662
1723
|
checkCanDeleteComponent: M,
|
|
1663
|
-
checkCanMoveComponent:
|
|
1724
|
+
checkCanMoveComponent: D,
|
|
1664
1725
|
getStyles: c,
|
|
1665
1726
|
hideNestedPaddingInDesginerView: m,
|
|
1666
1727
|
onAcceptNewChildElement: C,
|
|
1667
1728
|
onAcceptMovedChildElement: i,
|
|
1668
|
-
resolveComponentContext:
|
|
1729
|
+
resolveComponentContext: j,
|
|
1669
1730
|
onResolveNewComponentSchema: s,
|
|
1670
1731
|
triggerBelongedComponentToMoveWhenMoved: a,
|
|
1671
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1732
|
+
triggerBelongedComponentToDeleteWhenDeleted: l
|
|
1672
1733
|
};
|
|
1673
1734
|
}
|
|
1674
|
-
const
|
|
1735
|
+
const vt = /* @__PURE__ */ ce({
|
|
1675
1736
|
name: "FNavDesign",
|
|
1676
1737
|
props: R,
|
|
1677
1738
|
emits: ["nav"],
|
|
1678
1739
|
setup(n, t) {
|
|
1679
1740
|
var i;
|
|
1680
|
-
const e =
|
|
1681
|
-
|
|
1682
|
-
const a =
|
|
1683
|
-
|
|
1741
|
+
const e = E(n.activeNavId), r = E(n.navData), o = E(n.horizontal);
|
|
1742
|
+
E(n.navPicking);
|
|
1743
|
+
const a = E(), l = Ce("design-item-context"), d = mt(l.schema, (i = l.parent) == null ? void 0 : i.schema), v = it(a, l, d);
|
|
1744
|
+
Pe(() => {
|
|
1684
1745
|
a.value.componentInstance = v;
|
|
1685
1746
|
}), t.expose(v.value);
|
|
1686
|
-
const
|
|
1747
|
+
const u = F({
|
|
1687
1748
|
get() {
|
|
1688
1749
|
return r.value;
|
|
1689
1750
|
},
|
|
1690
1751
|
set(c) {
|
|
1691
|
-
r.value = c,
|
|
1752
|
+
r.value = c, b();
|
|
1692
1753
|
}
|
|
1693
|
-
}),
|
|
1754
|
+
}), p = F({
|
|
1694
1755
|
get() {
|
|
1695
1756
|
return e.value;
|
|
1696
1757
|
},
|
|
1697
1758
|
set(c) {
|
|
1698
|
-
if (e.value = c, e.value &&
|
|
1699
|
-
const s =
|
|
1759
|
+
if (e.value = c, e.value && u && u.value.length) {
|
|
1760
|
+
const s = u.value.find((h) => h.id === e.value);
|
|
1700
1761
|
s && t.emit("nav", s);
|
|
1701
1762
|
}
|
|
1702
1763
|
}
|
|
1703
|
-
}),
|
|
1764
|
+
}), f = F({
|
|
1704
1765
|
set(c) {
|
|
1705
1766
|
o.value = c;
|
|
1706
1767
|
},
|
|
@@ -1708,43 +1769,43 @@ const gt = /* @__PURE__ */ ce({
|
|
|
1708
1769
|
return o.value;
|
|
1709
1770
|
}
|
|
1710
1771
|
});
|
|
1711
|
-
function
|
|
1712
|
-
if (
|
|
1713
|
-
const c =
|
|
1772
|
+
function b() {
|
|
1773
|
+
if (u.value && u.value.length && !e.value) {
|
|
1774
|
+
const c = u.value.find((s) => !s.disable);
|
|
1714
1775
|
c && (e.value = c.id);
|
|
1715
1776
|
}
|
|
1716
1777
|
}
|
|
1717
|
-
function
|
|
1778
|
+
function j(c) {
|
|
1718
1779
|
c.disable || c.id === e.value || (e.value = c.id, t.emit("nav", c));
|
|
1719
1780
|
}
|
|
1720
1781
|
return () => {
|
|
1721
1782
|
var c;
|
|
1722
|
-
return
|
|
1783
|
+
return w("div", {
|
|
1723
1784
|
ref: a,
|
|
1724
1785
|
class: ["farris-nav", {
|
|
1725
|
-
"farris-nav-vertical": !
|
|
1786
|
+
"farris-nav-vertical": !f.value
|
|
1726
1787
|
}]
|
|
1727
|
-
}, [(c =
|
|
1788
|
+
}, [(c = u.value) == null ? void 0 : c.map((s) => w("div", {
|
|
1728
1789
|
class: ["farris-nav-item", {
|
|
1729
|
-
active: s.id ===
|
|
1790
|
+
active: s.id === p.value
|
|
1730
1791
|
}, {
|
|
1731
1792
|
disabled: s.disable
|
|
1732
1793
|
}],
|
|
1733
|
-
onClick: () =>
|
|
1734
|
-
}, [
|
|
1794
|
+
onClick: () => j(s)
|
|
1795
|
+
}, [w("div", {
|
|
1735
1796
|
class: "farris-nav-item-link"
|
|
1736
|
-
}, [
|
|
1797
|
+
}, [w("span", {
|
|
1737
1798
|
class: "farris-nav-item-link-text"
|
|
1738
|
-
}, [s.text, s.num &&
|
|
1799
|
+
}, [s.text, s.num && w("div", {
|
|
1739
1800
|
class: "farris-nav-item-tag"
|
|
1740
|
-
}, [s.num <= n.maxNum &&
|
|
1801
|
+
}, [s.num <= n.maxNum && w("span", {
|
|
1741
1802
|
class: "tag-text"
|
|
1742
|
-
}, [s.num]), s.num > n.maxNum &&
|
|
1803
|
+
}, [s.num]), s.num > n.maxNum && w("span", {
|
|
1743
1804
|
class: "tag-text"
|
|
1744
1805
|
}, [n.maxNum, ie("+")])])])])]))]);
|
|
1745
1806
|
};
|
|
1746
1807
|
}
|
|
1747
|
-
}),
|
|
1808
|
+
}), Ct = {
|
|
1748
1809
|
install(n) {
|
|
1749
1810
|
n.component(z.name, z);
|
|
1750
1811
|
},
|
|
@@ -1752,12 +1813,12 @@ const gt = /* @__PURE__ */ ce({
|
|
|
1752
1813
|
n.nav = z, t.nav = ae;
|
|
1753
1814
|
},
|
|
1754
1815
|
registerDesigner(n, t, e) {
|
|
1755
|
-
n.nav =
|
|
1816
|
+
n.nav = vt, t.nav = ae;
|
|
1756
1817
|
}
|
|
1757
1818
|
};
|
|
1758
1819
|
export {
|
|
1759
1820
|
z as FNav,
|
|
1760
|
-
|
|
1821
|
+
Ct as default,
|
|
1761
1822
|
R as navProps,
|
|
1762
1823
|
ae as propsResolver
|
|
1763
1824
|
};
|