@farris/ui-vue 1.2.7 → 1.2.8
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 +79 -79
- package/components/avatar/index.esm.js +393 -440
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +496 -542
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +437 -483
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +839 -726
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4702 -4972
- package/components/data-view/index.esm.js +2999 -2875
- package/components/date-picker/index.esm.js +2626 -2672
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +934 -976
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1892 -1775
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5245 -5514
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1483 -1556
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +668 -714
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1679 -1563
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6596 -6865
- package/components/mapping-editor/index.esm.js +5592 -5862
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +988 -1034
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1296
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1416 -1462
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +757 -830
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +452 -498
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +117 -117
- package/components/response-toolbar/index.esm.js +1021 -1238
- package/components/schema-selector/index.esm.js +3215 -3308
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +442 -488
- package/components/tabs/index.esm.js +1835 -2004
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +451 -482
- package/components/time-picker/index.esm.js +1345 -1392
- package/components/transfer/index.esm.js +135 -135
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5761 -6020
- package/components/tree-view/index.esm.js +2380 -2253
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +31630 -31224
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -326,7 +326,7 @@ const J = /* @__PURE__ */ ne({
|
|
|
326
326
|
maxHeight: { type: Number },
|
|
327
327
|
minWidth: { type: Number },
|
|
328
328
|
maxWidth: { type: Number },
|
|
329
|
-
containment: { type:
|
|
329
|
+
containment: { type: Object, default: null },
|
|
330
330
|
reiszeable: { type: Boolean, default: !1 },
|
|
331
331
|
draggable: { type: Boolean, default: !1 },
|
|
332
332
|
dragHandle: { type: Object, default: null },
|
|
@@ -51,7 +51,7 @@ const He = {
|
|
|
51
51
|
maxHeight: { type: Number },
|
|
52
52
|
minWidth: { type: Number },
|
|
53
53
|
maxWidth: { type: Number },
|
|
54
|
-
containment: { type:
|
|
54
|
+
containment: { type: Object, default: null },
|
|
55
55
|
reiszeable: { type: Boolean, default: !1 },
|
|
56
56
|
draggable: { type: Boolean, default: !1 },
|
|
57
57
|
dragHandle: { type: Object, default: null },
|
|
@@ -4,7 +4,7 @@ var Y = function(n, t) {
|
|
|
4
4
|
return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
5
5
|
e.__proto__ = r;
|
|
6
6
|
} || function(e, r) {
|
|
7
|
-
for (var
|
|
7
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
8
8
|
}, Y(n, t);
|
|
9
9
|
};
|
|
10
10
|
function se(n, t) {
|
|
@@ -29,24 +29,24 @@ 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),
|
|
32
|
+
var r = e.call(n), o, a = [], f;
|
|
33
33
|
try {
|
|
34
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
34
|
+
for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) a.push(o.value);
|
|
35
35
|
} catch (h) {
|
|
36
36
|
f = { error: h };
|
|
37
37
|
} finally {
|
|
38
38
|
try {
|
|
39
|
-
|
|
39
|
+
o && !o.done && (e = r.return) && e.call(r);
|
|
40
40
|
} finally {
|
|
41
41
|
if (f) throw f.error;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return a;
|
|
45
45
|
}
|
|
46
46
|
function J(n, t, e) {
|
|
47
|
-
if (e || arguments.length === 2) for (var r = 0,
|
|
48
|
-
(
|
|
49
|
-
return n.concat(
|
|
47
|
+
if (e || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
|
|
48
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
49
|
+
return n.concat(a || Array.prototype.slice.call(t));
|
|
50
50
|
}
|
|
51
51
|
function O(n) {
|
|
52
52
|
return typeof n == "function";
|
|
@@ -60,8 +60,8 @@ function Ae(n) {
|
|
|
60
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
|
-
` + e.map(function(r,
|
|
64
|
-
return
|
|
63
|
+
` + e.map(function(r, o) {
|
|
64
|
+
return o + 1 + ") " + r.toString();
|
|
65
65
|
}).join(`
|
|
66
66
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
67
67
|
};
|
|
@@ -77,7 +77,7 @@ var X = function() {
|
|
|
77
77
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
78
78
|
}
|
|
79
79
|
return n.prototype.unsubscribe = function() {
|
|
80
|
-
var t, e, r,
|
|
80
|
+
var t, e, r, o, a;
|
|
81
81
|
if (!this.closed) {
|
|
82
82
|
this.closed = !0;
|
|
83
83
|
var f = this._parentage;
|
|
@@ -104,7 +104,7 @@ var X = function() {
|
|
|
104
104
|
try {
|
|
105
105
|
l();
|
|
106
106
|
} catch (c) {
|
|
107
|
-
|
|
107
|
+
a = c instanceof W ? c.errors : [c];
|
|
108
108
|
}
|
|
109
109
|
var u = this._finalizers;
|
|
110
110
|
if (u) {
|
|
@@ -115,21 +115,21 @@ var X = function() {
|
|
|
115
115
|
try {
|
|
116
116
|
ne(i);
|
|
117
117
|
} catch (c) {
|
|
118
|
-
|
|
118
|
+
a = a ?? [], c instanceof W ? 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
|
-
g && !g.done && (
|
|
125
|
+
g && !g.done && (o = y.return) && o.call(y);
|
|
126
126
|
} finally {
|
|
127
127
|
if (r) throw r.error;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
if (
|
|
132
|
-
throw new W(
|
|
131
|
+
if (a)
|
|
132
|
+
throw new W(a);
|
|
133
133
|
}
|
|
134
134
|
}, n.prototype.add = function(t) {
|
|
135
135
|
var e;
|
|
@@ -201,8 +201,8 @@ var ue = function(n) {
|
|
|
201
201
|
var r = n.call(this) || this;
|
|
202
202
|
return r.isStopped = !1, e ? (r.destination = e, le(e) && e.add(r)) : r.destination = ke, r;
|
|
203
203
|
}
|
|
204
|
-
return t.create = function(e, r,
|
|
205
|
-
return new Q(e, r,
|
|
204
|
+
return t.create = function(e, r, o) {
|
|
205
|
+
return new Q(e, r, o);
|
|
206
206
|
}, t.prototype.next = function(e) {
|
|
207
207
|
this.isStopped || this._next(e);
|
|
208
208
|
}, t.prototype.error = function(e) {
|
|
@@ -263,25 +263,25 @@ var Ne = function() {
|
|
|
263
263
|
}, n;
|
|
264
264
|
}(), Q = function(n) {
|
|
265
265
|
se(t, n);
|
|
266
|
-
function t(e, r,
|
|
267
|
-
var
|
|
266
|
+
function t(e, r, o) {
|
|
267
|
+
var a = n.call(this) || this, f;
|
|
268
268
|
if (O(e) || !e)
|
|
269
269
|
f = {
|
|
270
270
|
next: e ?? void 0,
|
|
271
271
|
error: r ?? void 0,
|
|
272
|
-
complete:
|
|
272
|
+
complete: o ?? void 0
|
|
273
273
|
};
|
|
274
274
|
else {
|
|
275
275
|
var h;
|
|
276
|
-
|
|
277
|
-
return
|
|
276
|
+
a && pe.useDeprecatedNextContext ? (h = Object.create(e), h.unsubscribe = function() {
|
|
277
|
+
return a.unsubscribe();
|
|
278
278
|
}, f = {
|
|
279
279
|
next: e.next && U(e.next, h),
|
|
280
280
|
error: e.error && U(e.error, h),
|
|
281
281
|
complete: e.complete && U(e.complete, h)
|
|
282
282
|
}) : f = e;
|
|
283
283
|
}
|
|
284
|
-
return
|
|
284
|
+
return a.destination = new Ne(f), a;
|
|
285
285
|
}
|
|
286
286
|
return t;
|
|
287
287
|
}(ue);
|
|
@@ -304,8 +304,8 @@ function _e(n) {
|
|
|
304
304
|
}
|
|
305
305
|
function Fe(n) {
|
|
306
306
|
return n.length === 0 ? _e : n.length === 1 ? n[0] : function(e) {
|
|
307
|
-
return n.reduce(function(r,
|
|
308
|
-
return
|
|
307
|
+
return n.reduce(function(r, o) {
|
|
308
|
+
return o(r);
|
|
309
309
|
}, e);
|
|
310
310
|
};
|
|
311
311
|
}
|
|
@@ -317,11 +317,11 @@ var $e = 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
|
|
320
|
+
var o = this, a = xe(t) ? t : new Q(t, e, r);
|
|
321
321
|
return De(function() {
|
|
322
|
-
var f =
|
|
323
|
-
|
|
324
|
-
}),
|
|
322
|
+
var f = o, h = f.operator, v = f.source;
|
|
323
|
+
a.add(h ? h.call(a, v) : v ? o._subscribe(a) : o._trySubscribe(a));
|
|
324
|
+
}), a;
|
|
325
325
|
}, n.prototype._trySubscribe = function(t) {
|
|
326
326
|
try {
|
|
327
327
|
return this._subscribe(t);
|
|
@@ -330,17 +330,17 @@ var $e = function() {
|
|
|
330
330
|
}
|
|
331
331
|
}, n.prototype.forEach = function(t, e) {
|
|
332
332
|
var r = this;
|
|
333
|
-
return e = oe(e), new e(function(
|
|
333
|
+
return e = oe(e), new e(function(o, a) {
|
|
334
334
|
var f = new Q({
|
|
335
335
|
next: function(h) {
|
|
336
336
|
try {
|
|
337
337
|
t(h);
|
|
338
338
|
} catch (v) {
|
|
339
|
-
|
|
339
|
+
a(v), f.unsubscribe();
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
|
-
error:
|
|
343
|
-
complete:
|
|
342
|
+
error: a,
|
|
343
|
+
complete: o
|
|
344
344
|
});
|
|
345
345
|
r.subscribe(f);
|
|
346
346
|
});
|
|
@@ -355,14 +355,14 @@ var $e = function() {
|
|
|
355
355
|
return Fe(t)(this);
|
|
356
356
|
}, n.prototype.toPromise = function(t) {
|
|
357
357
|
var e = this;
|
|
358
|
-
return t = oe(t), new t(function(r,
|
|
359
|
-
var
|
|
358
|
+
return t = oe(t), new t(function(r, o) {
|
|
359
|
+
var a;
|
|
360
360
|
e.subscribe(function(f) {
|
|
361
|
-
return
|
|
361
|
+
return a = f;
|
|
362
362
|
}, function(f) {
|
|
363
|
-
return
|
|
363
|
+
return o(f);
|
|
364
364
|
}, function() {
|
|
365
|
-
return r(
|
|
365
|
+
return r(a);
|
|
366
366
|
});
|
|
367
367
|
});
|
|
368
368
|
}, n.create = function(t) {
|
|
@@ -381,34 +381,34 @@ function xe(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((
|
|
384
|
+
const { properties: t, title: e } = n, r = Object.keys(t).reduce((o, a) => (o[a] = t[a].type === "object" && t[a].properties ? Z(t[a]) : Pe(t[a].default), o), {});
|
|
385
385
|
return r.id = `${e}-${Date.now()}`, r;
|
|
386
386
|
}
|
|
387
387
|
function L(n, t = {}) {
|
|
388
388
|
const e = fe[n];
|
|
389
389
|
if (e) {
|
|
390
390
|
let r = Z(e);
|
|
391
|
-
const
|
|
392
|
-
return r =
|
|
391
|
+
const o = de[n];
|
|
392
|
+
return r = o ? o({ getSchemaByType: L }, r, t) : r, r;
|
|
393
393
|
}
|
|
394
394
|
return null;
|
|
395
395
|
}
|
|
396
396
|
function Be(n, t) {
|
|
397
397
|
const e = Z(t);
|
|
398
|
-
return Object.keys(n).reduce((r,
|
|
398
|
+
return Object.keys(n).reduce((r, o) => (r[o] && typeof r[o] == "object" ? Object.assign(r[o], n[o]) : r[o] = n[o], r), e), e;
|
|
399
399
|
}
|
|
400
400
|
function Ve(n, t) {
|
|
401
|
-
return Object.keys(n).filter((r) => n[r] != null).reduce((r,
|
|
402
|
-
if (t.has(
|
|
403
|
-
const
|
|
404
|
-
if (typeof
|
|
405
|
-
r[
|
|
401
|
+
return Object.keys(n).filter((r) => n[r] != null).reduce((r, o) => {
|
|
402
|
+
if (t.has(o)) {
|
|
403
|
+
const a = t.get(o);
|
|
404
|
+
if (typeof a == "string")
|
|
405
|
+
r[a] = n[o];
|
|
406
406
|
else {
|
|
407
|
-
const f = o
|
|
407
|
+
const f = a(o, n[o], n);
|
|
408
408
|
Object.assign(r, f);
|
|
409
409
|
}
|
|
410
410
|
} else
|
|
411
|
-
r[
|
|
411
|
+
r[o] = n[o];
|
|
412
412
|
return r;
|
|
413
413
|
}, {});
|
|
414
414
|
}
|
|
@@ -439,7 +439,7 @@ function We(n = {}) {
|
|
|
439
439
|
["getProperty", e]
|
|
440
440
|
]);
|
|
441
441
|
Object.keys(n).reduce((p, l) => (p.set(l, n[l]), p), r);
|
|
442
|
-
function
|
|
442
|
+
function o(p, l) {
|
|
443
443
|
const u = p;
|
|
444
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
445
|
if (y === "length")
|
|
@@ -448,9 +448,9 @@ function We(n = {}) {
|
|
|
448
448
|
return { target: u, operator: "getProperty", param: g, value: i };
|
|
449
449
|
}) : [];
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function a(p) {
|
|
452
452
|
return Object.keys(p).reduce((u, y) => {
|
|
453
|
-
const g =
|
|
453
|
+
const g = o(y, p[y]);
|
|
454
454
|
return u.push(...g), u;
|
|
455
455
|
}, []);
|
|
456
456
|
}
|
|
@@ -462,7 +462,7 @@ function We(n = {}) {
|
|
|
462
462
|
return !1;
|
|
463
463
|
}
|
|
464
464
|
function h(p, l) {
|
|
465
|
-
return
|
|
465
|
+
return a(p).reduce((g, i) => g && f(i, l), !0);
|
|
466
466
|
}
|
|
467
467
|
function v(p, l) {
|
|
468
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));
|
|
@@ -472,8 +472,8 @@ function We(n = {}) {
|
|
|
472
472
|
}
|
|
473
473
|
const Ue = {}, ze = {};
|
|
474
474
|
We();
|
|
475
|
-
function He(n, t, e = /* @__PURE__ */ new Map(), r = (f, h, v) => h,
|
|
476
|
-
return fe[t.title] = t, de[t.title] = r, Ue[t.title] =
|
|
475
|
+
function He(n, t, e = /* @__PURE__ */ new Map(), r = (f, h, v) => h, o = {}, a = (f) => f) {
|
|
476
|
+
return fe[t.title] = t, de[t.title] = r, Ue[t.title] = o, ze[t.title] = a, (f = {}) => {
|
|
477
477
|
const h = qe(f, t, e), v = Object.keys(n).reduce((p, l) => (p[l] = n[l].default, p), {});
|
|
478
478
|
return Object.assign(v, h);
|
|
479
479
|
};
|
|
@@ -716,11 +716,11 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
|
|
|
716
716
|
props: R,
|
|
717
717
|
emits: ["nav", "update:activeNavId"],
|
|
718
718
|
setup(n, t) {
|
|
719
|
-
const e = S(n.activeNavId), r = S(n.navData),
|
|
719
|
+
const e = S(n.activeNavId), r = S(n.navData), o = S(n.horizontal);
|
|
720
720
|
S(n.navPicking), ge(() => n.activeNavId, (l, u) => {
|
|
721
721
|
l !== u && (e.value = l);
|
|
722
722
|
});
|
|
723
|
-
const
|
|
723
|
+
const a = F({
|
|
724
724
|
get() {
|
|
725
725
|
return r.value;
|
|
726
726
|
},
|
|
@@ -732,22 +732,22 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
|
|
|
732
732
|
return e.value;
|
|
733
733
|
},
|
|
734
734
|
set(l) {
|
|
735
|
-
if (e.value = l, e.value &&
|
|
736
|
-
const u =
|
|
735
|
+
if (e.value = l, e.value && a && a.value.length) {
|
|
736
|
+
const u = a.value.find((y) => y.id === e.value);
|
|
737
737
|
u && t.emit("nav", u);
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
}), h = F({
|
|
741
741
|
set(l) {
|
|
742
|
-
|
|
742
|
+
o.value = l;
|
|
743
743
|
},
|
|
744
744
|
get() {
|
|
745
|
-
return
|
|
745
|
+
return o.value;
|
|
746
746
|
}
|
|
747
747
|
});
|
|
748
748
|
function v() {
|
|
749
|
-
if (
|
|
750
|
-
const l =
|
|
749
|
+
if (a.value && a.value.length && !e.value) {
|
|
750
|
+
const l = a.value.find((u) => !u.disable);
|
|
751
751
|
l && (e.value = l.id);
|
|
752
752
|
}
|
|
753
753
|
}
|
|
@@ -760,7 +760,7 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
|
|
|
760
760
|
class: ["farris-nav", {
|
|
761
761
|
"farris-nav-vertical": !h.value
|
|
762
762
|
}]
|
|
763
|
-
}, [(l =
|
|
763
|
+
}, [(l = a.value) == null ? void 0 : l.map((u) => D("div", {
|
|
764
764
|
class: ["farris-nav-item", {
|
|
765
765
|
active: u.id === f.value
|
|
766
766
|
}, {
|
|
@@ -787,7 +787,7 @@ function it(n, t, e) {
|
|
|
787
787
|
e != null && e.resolveComponentContext && e.resolveComponentContext();
|
|
788
788
|
}
|
|
789
789
|
r();
|
|
790
|
-
const
|
|
790
|
+
const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", f = S();
|
|
791
791
|
function h() {
|
|
792
792
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
|
|
793
793
|
}
|
|
@@ -853,8 +853,8 @@ function it(n, t, e) {
|
|
|
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
|
-
styles:
|
|
857
|
-
designerClass:
|
|
856
|
+
styles: o,
|
|
857
|
+
designerClass: a,
|
|
858
858
|
canAccepts: g,
|
|
859
859
|
getBelongedComponentInstance: u,
|
|
860
860
|
getDraggableDesignItemElement: y,
|
|
@@ -872,13 +872,13 @@ function it(n, t, e) {
|
|
|
872
872
|
}
|
|
873
873
|
function st() {
|
|
874
874
|
function n(t) {
|
|
875
|
-
var
|
|
875
|
+
var o, a;
|
|
876
876
|
if (!t)
|
|
877
877
|
return !1;
|
|
878
|
-
const e = ((
|
|
878
|
+
const e = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
|
|
879
879
|
if (!e)
|
|
880
880
|
return !1;
|
|
881
|
-
const r = (
|
|
881
|
+
const r = (a = e.schema.appearance) == null ? void 0 : a.class;
|
|
882
882
|
if (t.controlCategory === "input" || t.controlType === "form-group") {
|
|
883
883
|
const f = e.schema.type, h = (f === "response-form" || f === "content-container") && r && r.includes("farris-form");
|
|
884
884
|
if (e.schema.type !== "response-layout-item" && !h)
|
|
@@ -1488,13 +1488,13 @@ function mt() {
|
|
|
1488
1488
|
function r(i, c, s, b) {
|
|
1489
1489
|
return typeof s == "boolean" ? b.parentClassList.includes(c) === !!s : !1;
|
|
1490
1490
|
}
|
|
1491
|
-
const
|
|
1491
|
+
const o = /* @__PURE__ */ new Map([
|
|
1492
1492
|
["length", n],
|
|
1493
1493
|
["hasChildren", t],
|
|
1494
1494
|
["hasSibling", r],
|
|
1495
1495
|
["hasParent", e]
|
|
1496
1496
|
]);
|
|
1497
|
-
function
|
|
1497
|
+
function a(i, c) {
|
|
1498
1498
|
const s = i;
|
|
1499
1499
|
return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((b) => {
|
|
1500
1500
|
if (b === "length")
|
|
@@ -1504,15 +1504,15 @@ function mt() {
|
|
|
1504
1504
|
}) : [];
|
|
1505
1505
|
}
|
|
1506
1506
|
function f(i, c) {
|
|
1507
|
-
if (
|
|
1508
|
-
const s =
|
|
1507
|
+
if (o.has(i.operator)) {
|
|
1508
|
+
const s = o.get(i.operator);
|
|
1509
1509
|
return s && s(i.target, i.param, i.value, c) || !1;
|
|
1510
1510
|
}
|
|
1511
1511
|
return !1;
|
|
1512
1512
|
}
|
|
1513
1513
|
function h(i, c) {
|
|
1514
1514
|
return Object.keys(i).reduce((C, E) => {
|
|
1515
|
-
const M =
|
|
1515
|
+
const M = a(E, i[E]);
|
|
1516
1516
|
return C.push(...M), C;
|
|
1517
1517
|
}, []).reduce((C, E) => C && f(E, c), !0);
|
|
1518
1518
|
}
|
|
@@ -1555,7 +1555,7 @@ function mt() {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
function vt(n, t) {
|
|
1557
1557
|
var A;
|
|
1558
|
-
const e = n.schema, r = (A = n.parent) == null ? void 0 : A.schema,
|
|
1558
|
+
const e = n.schema, r = (A = n.parent) == null ? void 0 : A.schema, o = mt(), a = S(!1), f = S(!1);
|
|
1559
1559
|
let h = !0, v = !1, p, l = !1;
|
|
1560
1560
|
function u(d) {
|
|
1561
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;
|
|
@@ -1564,7 +1564,7 @@ function vt(n, t) {
|
|
|
1564
1564
|
return !(!st().basalDragulaRuleForContainer(d) || !h || !u(d));
|
|
1565
1565
|
}
|
|
1566
1566
|
function g() {
|
|
1567
|
-
|
|
1567
|
+
a.value = !1, f.value = !1;
|
|
1568
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
1569
|
const I = q && q.appearance ? q.appearance.class : "", ve = I ? I.split(" ") : [];
|
|
1570
1570
|
return K.push(...ve), K;
|
|
@@ -1582,7 +1582,7 @@ function vt(n, t) {
|
|
|
1582
1582
|
children: T,
|
|
1583
1583
|
childrenClassList: $
|
|
1584
1584
|
};
|
|
1585
|
-
const { canAccept: he, fixed: be, hidePadding: me } =
|
|
1585
|
+
const { canAccept: he, fixed: be, hidePadding: me } = o.getRuleValue(w[0], p);
|
|
1586
1586
|
return h = he, v = me, l = be, !0;
|
|
1587
1587
|
}
|
|
1588
1588
|
function i(d) {
|
|
@@ -1667,7 +1667,7 @@ function vt(n, t) {
|
|
|
1667
1667
|
onAcceptMovedChildElement: i,
|
|
1668
1668
|
resolveComponentContext: g,
|
|
1669
1669
|
onResolveNewComponentSchema: s,
|
|
1670
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1670
|
+
triggerBelongedComponentToMoveWhenMoved: a,
|
|
1671
1671
|
triggerBelongedComponentToDeleteWhenDeleted: f
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
@@ -1677,11 +1677,11 @@ const gt = /* @__PURE__ */ ce({
|
|
|
1677
1677
|
emits: ["nav"],
|
|
1678
1678
|
setup(n, t) {
|
|
1679
1679
|
var i;
|
|
1680
|
-
const e = S(n.activeNavId), r = S(n.navData),
|
|
1680
|
+
const e = S(n.activeNavId), r = S(n.navData), o = S(n.horizontal);
|
|
1681
1681
|
S(n.navPicking);
|
|
1682
|
-
const
|
|
1682
|
+
const a = S(), f = Ce("design-item-context"), h = vt(f.schema, (i = f.parent) == null ? void 0 : i.schema), v = it(a, f, h);
|
|
1683
1683
|
Te(() => {
|
|
1684
|
-
|
|
1684
|
+
a.value.componentInstance = v;
|
|
1685
1685
|
}), t.expose(v.value);
|
|
1686
1686
|
const p = F({
|
|
1687
1687
|
get() {
|
|
@@ -1702,10 +1702,10 @@ const gt = /* @__PURE__ */ ce({
|
|
|
1702
1702
|
}
|
|
1703
1703
|
}), u = F({
|
|
1704
1704
|
set(c) {
|
|
1705
|
-
|
|
1705
|
+
o.value = c;
|
|
1706
1706
|
},
|
|
1707
1707
|
get() {
|
|
1708
|
-
return
|
|
1708
|
+
return o.value;
|
|
1709
1709
|
}
|
|
1710
1710
|
});
|
|
1711
1711
|
function y() {
|
|
@@ -1720,7 +1720,7 @@ const gt = /* @__PURE__ */ ce({
|
|
|
1720
1720
|
return () => {
|
|
1721
1721
|
var c;
|
|
1722
1722
|
return D("div", {
|
|
1723
|
-
ref:
|
|
1723
|
+
ref: a,
|
|
1724
1724
|
class: ["farris-nav", {
|
|
1725
1725
|
"farris-nav-vertical": !u.value
|
|
1726
1726
|
}]
|